This is a valid RSS feed.
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
help]
[<title>secretGeek.net</title>
^
<p><large>🤯</large></p>
line 176, column 0: (4 occurrences) [help]
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/lITzh ...
line 188, column 3: (3 occurrences) [help]
]]></description>
^
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"> ...
<?xml version="1.0" encoding="utf-8" standalone="no"?><?xml-stylesheet type='text/xsl' href='/rssxsl.xslt' version='1.0'?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>secretgeek.net</title>
<link>https://secretgeek.net/</link>
<description>secretgeek.net :: dot Nuts about dot Net</description>
<copyright>Copyright 2024 Leon Bambrick</copyright>
<language>en-au</language>
<managingEditor>LeonBambrick@NoSpamGMAIL.com (Leon Bambrick)</managingEditor>
<webMaster>LeonBambrick@NoSpamGMAIL.com (Leon Bambrick)</webMaster>
<atom:link href="https://secretgeek.net/rss" rel="self" type="application/rss+xml" />
<image>
<title>secretGeek.net</title>
<url>https://secretgeek.net/secretgeek2_noT.gif</url>
<link>https://secretgeek.net/</link>
<width>49</width>
<height>33</height>
<description>secretGeek</description>
</image>
<item>
<title>Meanwhile on the Wiki</title>
<link>https://secretGeek.net/meanwhile-on-the-wiki</link>
<description><![CDATA[<p>Hi, hope you're good!</p>
<p>I just thought — you know — when I stop and think for a minute — i should maybe tell someone that there's always more writing occurring at <a href='https://wiki.secretGeek.net'>wiki.secretGeek.net</a> — featured articles here: <a href='https://wiki.secretgeek.net/home/features'>wiki.secretgeek.net/home/features</a> and <a href='https://wiki.secretgeek.net/rss/'>"Wiki's RSS feed" is here (ask grandma if you ain't sure what that would be).</a></p>
<!-- You can use sites and apps like <a href='https://feedly.com/'>Feedly</a> to "subscribe to" (... "watch") RSS "feeds" (... "files").-->
<p>There's also activity at the "Today I learned" site — <a href='https://til.secretgeek.net/'>TIL.secretgeek.net</a> — and so on.</p>
<p>But the main channel for sharing significant, high value information — in so far as that is possible — is still this particular blog right here.</p>
<p>It's been a time of copious occupations. All goodish.</p>
<p><a href='https://secretgeek.net/Rss'>RSS Feed here.</a> Long Live RSS</a>.</p>
<p>News, soon. Sooooooon.</p>
]]></description>
<pubDate>Fri, 22 Mar 2024 11:07:24 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/meanwhile-on-the-wiki</guid>
</item>
<item>
<title>CSS Variables are cool</title>
<link>https://secretGeek.net/var_hue</link>
<description><![CDATA[<p><small>(Technically they're called <strong>properties</strong>, but everyone calls them <strong>variables</strong> because of the <code>var(--mycolor)</code> syntax -- and I'm a descriptivist not a prescriptivist, so I'm gonna call 'em <strong>variables</strong> too.)</small></p>
<p>Now... CSS Variables are <strong>COOL</strong>.</p>
<p>The hooded figures who lurk near the Forbidden Dog Park don't want you to know about CSS Variables. The Sherriff's Secret Police would rather we did not discuss CSS Variables. But I Must Press On With This Blog Post.</p>
<p>I started using CSS Variables when <a href="https://nimbletext.com/live">revamping NimbleText with dark mode</a>.</p>
<p>But I didn't even begin to scratch the surface then. I didn't <em>get it</em> (I didn't need to) but now the deeper I dig, the more power I find. No wonder shadowy helicopters hover outside the window of my office tower, even now.</p>
<h2 id="basic-usage">Basic usage</h2>
<p>First, I used Css Variables as a way to make sure I could define useful colors "just once", and reuse them consistently.</p>
<p>e.g. you can define a "main" background color like this:</p>
<blockquote><pre><code>:root {
--main-bg: #FFF;
}
</code></pre></blockquote>
<p>And apply it to any selectors you want:</p>
<blockquote><pre><code>body {
background-color: var(--main-bg);
}
</code></pre></blockquote>
<p>And you can override that... for example for your dark theme:</p>
<blockquote><pre><code>@media (prefers-color-scheme: dark) {
:root {
--main-bg: #222;
}
}
</code></pre></blockquote>
<p>And that's fun. But the fun doesn't stop there!</p>
<h2 id="sidebar-wait-whats-the-root">Sidebar: wait what's the <code>:root</code> ??</h2>
<p>You may have noticed, above, that we applied our variable definition to a <code>:root</code> selector... <em>what is that strange thing?</em> and what other options do we have?</p>
<p>The colon prefix tells us it's a "pseudo-class" (like <code>:hover</code> or <code>:focus</code>), in this case it's a special pseudo-class meaning the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:root">root of the document</a>. So the variable we created applies to the whole document.</p>
<p>We could also have "scoped" the variable to just a part of the document...</p>
<blockquote><pre><code>footer {
--bg: #222;
background-color:var(--bg);
}</code></pre></blockquote>
<p>I'm not using <em>that</em> piece of knowledge yet, but I mention it because many authors gloss over it, and also, perhaps because a skeletal figure just dragged his ragged body across the floor of my office, rose to his bony feet, brandished a glistening metallic weapon with a bright logo from "Cranial Extracto Matic" and screamed, in a voice like a thousand metal polar bears shrieking in agony as they are fed into a terrible grinding machine, that it would perhaps be wisest if I refrained from mentioning ":pseudo elements" in this particular blog post. And I am a bit of a contrarian on these things.</p>
<h2 id="now-for-something-cool">Now for something cool</h2>
<p>The cool thing I've noticed more recently (and why I'm writing to you about this now) is this:</p>
<p><strong>You can reference variables from variables.</strong></p>
<p><large>🤯</large></p>
<p>... and referencing variables from variables must have many uses, an infinite number of uses.</p>
<p>For me, an immediate and powerful use is for doing custom themes <em>properly</em>.</p>
<p>In a real world theme, on a real world site, you don't end up with just 2 or 3 colors. You end up with many, many slightly different variations on a smaller number of <em>hues</em>. (A good recent article on the topic is <a href="https://refactoringui.com/previews/building-your-color-palette/">here</a>). If a button has a gradient, then it has several variations of the initial color. A panel may have a less saturated version of a background color, pushing it into the distance. Many variations, many colors -- but very few hues.</p>
<p>With Css Variables we can reuse an underlying <em>hue</em> with different <code>saturation</code>, <code>lightness</code> or <code>opacity</code>.</p>
<p>Instead of putting an entire <em>color</em> into a variable, start by putting your <em>hue</em> into a variable.</p>
<p>For example:</p>
<blockquote><pre><code>:root {
--main-hue: 124; /* a green hue */
}
</code></pre></blockquote>
<p>If we have a "greenish" theme, perhaps a variation on the hue of the green slime that has begun to bleed from the shadowy apparition who hovers even now abaft the cavernous black void that threatens the rusted children's play equipment in the boarded up park across the road, then we can store our "hue" and make sure that every "greenish" color on our site is based upon that hue.</p>
<p>Write your colors in <code>hsla</code> format... e.g:</p>
<blockquote><pre><code>:root {
--main-hue: 124; /* a green hue */
--main-bg: hsla(var(--main-hue),100%, 13%, 1); /* background */
--main-fg: hsla(var(--main-hue), 17%, 86%,1); /* foreground */
}</code></pre></blockquote>
<p>... and so on.</p>
<p>Thus your whole theme can build up and having many colors based on a small number of hues.</p>
<p>The dark theme might even use the same hue, but flip the saturation/lightness of the colors that build upon it. It's flexible enough to achieve anything you need. And all the while, a single fact such as the base hues of your theme are not repeated.</p>
<p>It's DRY, it's separation of concerns. All those "principles" people used to go on about back in the Olden times of Before.</p>
<p>With your underlying <em>hue</em> defined in a variable, you can change a single line of CSS and completely alter your theme.</p>
<h2 id="now-make-it-dynamic">Now make it dynamic...</h2>
<p>Oh but wait, it's cooler than that.</p>
<p>In one line you can also change those variables with javascript.</p>
<blockquote><pre><code>var root = document.documentElement;
root.style.setProperty('--main-hue', 0); // now the theme color is pure red (`hue = 0`), not that slime-like green.
</code></pre></blockquote>
<p>Or if -- like me -- you're a fan of taking things too far, you can have a timer that randomly tries out different hues, and a stop button for when you're happy.</p>
<p>Or you can have several hues all rotated by various amounts from each other, in triads, or complements etc. You can "AB test" different values, or survey a small group to see the best possible themes.</p>
<p>This is much closer to how things should be (and it's also much more satisfying than using a pre-processor). The stylesheet encodes the underlying relationships between the properties, instead of just hard-coding the final values everywhere.</p>
<p>The art of science is the science of turning art into a science and the art of turning science into an art of science. Or something.</p>
<p>All of this is powerful stuff that no one is talking about. Maybe because THE MAN wants to keep us DOWN, or because BIG CSS wants us to be silent and happy with our <code>rem</code>s and our <code>em</code>s. But I'm not going to be quiet about this anymore. Variables are there: do something extraordinary with them today.</p>
<p>Oh and bonus points if you also use <code>calc()</code> with them -- i'd love to hear about some interesting uses of <code>calc</code> with <code>var</code>.</p>
<p>My lawyer also wishes me to make it known that certain elements of this blog post would not have been possible if I had not recently begun listening to far too much "<a href="http://www.welcometonightvale.com/">Welcome to Night Vale</a>"; a very, very, <strong>very</strong> good podcast. There are also books.</p>
]]></description>
<pubDate>Sun, 06 Dec 2020 07:29:36 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/var_hue</guid>
</item>
<item>
<title>Stashy is a Really simple Key Value store</title>
<link>https://secretGeek.net/stashy_gist</link>
<description><![CDATA[<p>In my various websites and web applications, I often need to store some things and later retrieve them.</p>
<p>Mostly for this I use a really simple key value store called "Stashy", that I built, oh, decades ago.</p>
<p>Imagine I have a "plain old class object", and I want to save it. It might be an object called "myNewBlogPost".</p>
<p>I will call:</p>
<blockquote><pre><code>stashy.Save<BlogPost>(myNewBlogPost, myNewBlogPost.Slug);
</code></pre></blockquote>
<p>Later, if I want to load that blog post, I will need to know the key I used, let's say it was "hello-world":</p>
<blockquote><pre><code>var myNewBlogPost = stashy.Load<BlogPost>("hello-world");
</code></pre></blockquote>
<p>And there's also a method for loading all objects of a given type:</p>
<blockquote><pre><code>var myBlogPosts = stashy.LoadAll<BlogPost>();
</code></pre></blockquote>
<p>And for deleting a single object:</p>
<blockquote><pre><code>stashy.Delete<BlogPost>("hello-world");
</code></pre></blockquote>
<p><em>And that's it!</em></p>
<p>It's not distributed. It doesn't have a query language. It doesn't have built in caching semantics. It's not even async.</p>
<p>I tell you what it does have: <strong>utility</strong>. It's bloody useful! I would definitely not consider it for cases with millions of records, but 1000 or under? It's <em>fine!</em> And one less thing to worry about.</p>
<p>The <code>Stashy</code> class is an implementation of the <code>IStashy</code> interface. This makes it easier to test, and helps me with the dependency injection stuff. Mostly it serves to make sure I'm keeping the contract <em>small</em>.</p>
<p>The <code>IStashy</code> interface is just this:</p>
<blockquote><pre><code>public interface IStashy<K>
{
void Save<T>(T t, K id);
T Load<T>(K id);
IEnumerable<T> LoadAll<T>();
void Delete<T>(K id);
K GetNewId<T>();
}
</code></pre></blockquote>
<p>The type <code>K</code> is the type of key you want to use. I usually use strings as my key. But you can use integers or guids, or anything else, if you like.</p>
<p>As I tweeted recently, <a href="https://twitter.com/secretGeek/status/1327038572558393345?s=20">The heart and soul of my most used key-value store fits in a single tweet. Easily!</a></p>
<p>I've used a couple of different implementations of this interface over the years, but currently what it does is serialize the object as <code>JSON</code> and then store it in a file named after the key, in a sub-folder named after the <code>type</code> of the object. (I also have a completely in-memory implementation, for testing etc.)</p>
<p>Here's an implementation I use at the moment in one of my projects. It is <em>not</em> glorious beautiful wondrous code, but it is working code that I just... well I just never have to look at it. But I rely on it <em>all</em> the time:</p>
<p><a href='https://gist.github.com/secretGeek/1afc53356373cc4c790876adf6a356cf' class='action' target='_blank'>see gist: FileStashy.cs</a></p>
<p>It's about 100 lines of code, written <em>years</em> ago, and relies on <code>Newtonsoft.Json</code> to turn objects into Json and vice-versa.</p>
<p>(10 years ago my FileStashy used XML, on Windows... Now it's all Json, and runs anywhere that .net core runs. Maybe one day, one <em>special</em> day, we'll all switch to <a href="https://github.com/secretGeek/AwesomeCSV">CSV</a>.)</p>
<p>Sometimes I build other stuff on-top of Stashy, such as indexes, for faster lookups, and "revisions", so I can look at old versions of an object. That was easy enough to write (and very fun of course!) but I wouldn't want to do too much with it, or I'd switch to a <em>real</em> key value store... but then get all the headaches that come from those.</p>
<p>Got any crufty little things you've rolled yourself instead of using something "better"?</p>
]]></description>
<pubDate>Thu, 12 Nov 2020 23:22:14 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/stashy_gist</guid>
</item>
<item>
<title>Tips For Working From Home</title>
<link>https://secretGeek.net/wfh_tips</link>
<description><![CDATA[<p>Now that everyone else has to work from home let me share my tips from 5 happy years of this way of life:</p>
<p><strong>Get some exercise!</strong> Measure your steps and make sure you do a healthy amount every day. Super important. With no incidental walking your fitness can really drop.</p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/lITzhu8raBw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p><strong>Music!</strong> Music is crucial for me and maybe for you too. I bought a spotify subscription after a few months, just to get rid of the ads. You need <em>a lot</em> of playlists to fill up a week. Different music is needed at different times of day, and for different moods. Monday mornings and friday afternoons are two extreme opposites, and there many variations in between.</p>
<p><strong>Look after your eyes!</strong> Home office is smaller than work office. Make sure your eyes get to look into the middle distance often. If you stare at just monitor/close walls all day, eyes never relax and you go blind! So stare out the window while you're day dreaming.</p>
<p><strong>Plan B.</strong> You may need to be prepared in case your home internet connection goes down. (This happened to me yesterday, after a garbage truck took out the NBN for my whole neighborhood.) Make sure you can tether your laptop to your phone, or that you can work fully offline if needed.</p>
<p><strong>The duck.</strong> Without a colleague to talk to you may find yourself talking to a rubber duck, explaining all your technical problems. This is a great technique and has been shown to work. Don't let your boss find out though or they'll fire you and keep the duck.</p>
<p><strong>Headset.</strong> You'll need a good headset for remote meetings.</p>
<p><img src="/image/headset_home_50.jpg" alt="some kind of weird helmet that provides oxygen to an office worker" /></p>
<p><strong>Diet.</strong> Don't let high sugar foods enter the house. It's the only way to avoid the temptation and deadly <em>snaccidents</em>.</p>
<p><strong>Environment.</strong> Do whatever you can to create a dedicated workspace. It will help you separate work from home and improve your focus. This way too, you can finally get the home office just the way you want it.</p>
<p><img src="/image/finally.jpg" alt="finally got the home office just the way i want it" title="finally got the home office just the way i want it" /></p>
<p><strong>Keyboard, Mouse, Monitor(s).</strong> Maybe your setup isn't perfect, but where possible, don't just work directly on your laptop. Use a real keyboard. I think wireless is a waste of time with keyboards, you hardly move it, just used a wired one! And I'm not one of those fetishists who spends all their time and money on them, though I don't wish to shame those who are, well not too much. More monitors are always better, but you may not have the space, the funds, or the opportunity to get that in place right now. I don't have strong opinions on mice either, but with a real keyboard you will also need a real mouse.</p>
<p><strong>Habits.</strong> The whole experience hinges on your ability to construct your own habits that create a good life. You can't rely on following the momentum of those around you. You're free to build up or destroy the structure of your day. It doesn't take will power, it just takes sensible routines.</p>
]]></description>
<pubDate>Tue, 17 Mar 2020 08:19:52 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/wfh_tips</guid>
</item>
<item>
<title>Productivity with Powershell: Grab your agenda from outlook as plain text</title>
<link>https://secretGeek.net/ps_outlook</link>
<description><![CDATA[<p>I use a plain text file to manage my daily todo items. (<a href="https://ginatrapani.org/">Gina Trapani</a> championed this idea with the <a href="http://todotxt.org/">"todo.txt" movement</a>) and I use some little bits of console goodness to make it work my way.</p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/bLlj_GeKniA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br /><em>I like to jam with the console cowboys in cyberspace.</em>
</p>
<p>At the start of each day I run a powershell script, "<code>today</code>" that does a bunch of calculations, opens up my <code>todo.txt</code> file in <code>notepad++</code>, and puts a bunch of text into my clipboard as a starting point. Then I paste that list at the bottom of the document. I also scroll up to yesterday's list and run a notepad++ macro that "sweeps" any remaining tasks from yesterday into today's list. Then I get to work.</p>
<p>But there is this big problem inside companies called "meetings" and they tend to get in the way of this thing called "personal productivity". I work remotely and don't have a lot of meetings, so I don't have the habit of checking my calendar, or living in my calendar, as some people do. Hence I have a bad habit of <em>missing</em> meetings. Bosses don't like this habit.</p>
<p>To alleviate the problem, I've improved my "<code>today</code>" script so that it will grab today's meeting schedule from outlook. I've <strong>shared</strong> the script I wrote for this as a github "gist", here:</p>
<p><a href="https://gist.github.com/secretGeek/3adcc10d27ca0cb4e6e24fce94599749">Get today's schedule from Outlook, using COM, and format as text for my TODO.txt file</a></p>
<p>It's not very "elegant" as it is an example of "meware" -- code built for an audience of one.</p>
<p>Heck I'll just post it inline, here's my ugly baby:</p>
<blockquote><pre style='white-space: pre-wrap;'><code># Get a list of meetings occurring today.
function get-meetings() {
$olFolderCalendar = 9
$ol = New-Object -ComObject Outlook.Application
$ns = $ol.GetNamespace('MAPI')
$Start = (Get-Date).ToShortDateString()
$End = (Get-Date).ToShortDateString()
$Filter = "[MessageClass]='IPM.Appointment' AND [Start] > '$Start' AND [End] < '$End'"
$appointments = $ns.GetDefaultFolder($olFolderCalendar).Items
$appointments.IncludeRecurrences = $true
$appointments.Restrict($Filter) |
% {
if ($_.IsRecurring -ne $true) {
# send the meeting down the pipeline
$_;
} else {
#"RECURRING... see if it occurs today?"
try {
# This will throw an exception if it's not on today. (Note how we combine today's *date* with the start *time* of the meeting)
$_.GetRecurrencePattern().GetOccurrence( ((Get-Date).ToString("yyyy-MM-dd") + " " + $_.Start.ToString("HH:mm")) )
# but if it is on today, it will send today's occurrence down the pipeline.
}
catch
{
#"Not today"
}
}
} | sort -property Start | % {
# split up the names of the attendees to have just 1 firstname/surname and less space.
$arrr = ($_.RequiredAttendees.split(';') | % { $_.Trim() } | % { $_.split(' ')[1] + ' ' + $_.split(' ')[0] } )
$attendees = ($arrr -join " ").Replace(", ",",").TrimEnd(',')
# this is the formatted string that we return, ready for use in 'today'
("`n`t`t[ ] " + $_.Start.ToString("HH:mm") + " - " + $_.Subject.ToUpper() + " with: " + $attendees )
}
}
</code></pre></blockquote>
<p>The resulting text looks like this:</p>
<pre>
[ ] 09:00 - STANDUP with: Keena Maloney,Rhea Zamora,Ed Jackson
[ ] 10:00 - DESIGN REVIEW with: Steph Perkins,Rhea Zamora
[ ] 14:30 - CUSTOMER COMPLAINTS with: Della Bouchard,Steph Perkins
</pre>
<p>The way recurring meetings work was the tricky bit. I couldn't find any simple way to query a recurring appointment to ask it "Does it actually occur today?"</p>
<p>As always, I'm very open to any feedback or improvements!</p>
]]></description>
<pubDate>Fri, 31 Jan 2020 21:03:29 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/ps_outlook</guid>
</item>
<item>
<title>2019 By The Numbers</title>
<link>https://secretGeek.net/2019_Review</link>
<description><![CDATA[<p><a href="https://www.instagram.com/secretgeek/"><img src="https://secretgeek.net/image/insta_2019_33.png" alt="instagram images from 2019" /></a></p>
<p>Well it's the roaring 20's at last and here's the blogpost where I look back on the annual output of a machine I call "me".</p>
<p>I spend a lot of time berating myself for the things I didn't do, so it's pretty odd to look back and see that a lot of things did get out the door.</p>
<p>Numbers in parens, e.g. "(3,2,1)", are the figures from last year, the year before that and the year before that.</p>
<ul>
<li>1 new product launched <a href="https://apps.apple.com/us/app/timesnapper/id1456327684?mt=12">TimeSnapper for Mac</a>. <a href="https://blog.jonschneider.com/">Jon Schneider</a> did all the work here, but that won't stop me from listing it as <em>my</em> biggest achievement of the year. Top work Jon! (And Atli continues to put in the long hours of keeping TimeSnapper for Windows alive. We're hoping to update the application and the website this year too.)</li>
<li>1 Kanban Simulation game (0): <a href="https://devshop.secretgeek.net">DevShop</a></li>
<li>0 books published (1,1,0) Joseph and I slowed down work on <a href="https://evergreenskills.com">Evergreen Skills for Developers</a>. The brilliant thing about Evergreen Skills is that it'll still be fresh info even if it takes us 10 year to complete. I compiled 1 complete book in 2019, but haven't launched it due to Amazon "issues", and outlined a few more. See <a href="https://secretgeek.net/pathos_">'how to get nothing done'</a></li>
<li>13 <a href="https://secretgeek.net">blog posts</a> written (10, 13, 17) — Most popular thing I published was probably this <a href="https://secretgeek.net/a_html_quine">html quine</a>.</li>
<li>15 new <a href="http://wiki.secretGeek.net">wiki articles completed</a> (14,10,50) — Best new article there is <a href="http://wiki.secretgeek.net/protective-factors-for-mental-health">Protective Factors for Mental Health</a></li>
<li>48 Weekly Project Update emails shared with Richard Mason of <a href="https://www.aussiebushwalking.com/">Aussie Bushwalking</a> (19,0). These keep the both of us productive all year long.</li>
<li>~200 pictures at <a href="https://www.instagram.com/secretgeek/">insta/secretGeek</a> (~200)</li>
<li>100 <a href="https://til.secretGeek.net">Today-I-Learned</a> Entries written (73, 133, 233) — 30142 words (19761, 35289, 42352), 15 new topics (10,21, 44)</li>
<li>389 contributions at <a href="https://github.com/secretGeek">Github/secretGeek</a> (156,189,292)</li>
<li>0 talks delivered (0,1,1) phew! 1 conference attended as always: <a href="https://dddbrisbane.com/">DDD Brisbane</a>.</li>
<li>Daily step goal met every day unless gravely ill.</li>
<li>Millions of tweets <a href="https://twitter.com/secretgeek">@secretGeek</a>. This seems to be the one that more people saw:</li>
</ul>
<p><blockquote class="twitter-tweet"><p lang="en" dir="ltr">Argh, CSS.... Just use a table! <a href="https://t.co/LcGuSACVqX">pic.twitter.com/LcGuSACVqX</a></p>— Leon Bambrick (@secretGeek) <a href="https://twitter.com/secretGeek/status/1163236158194585602?ref_src=twsrc%5Etfw">August 18, 2019</a></blockquote></p>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<p><a href='/2018_Review'>Previously (2018)</a>, <a href="https://secretgeek.net/2017_review">Previously (2017)</a> <a href="https://secretgeek.net/2016_review">previously (2016)</a></p>
]]></description>
<pubDate>Fri, 10 Jan 2020 05:39:35 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/2019_Review</guid>
</item>
<item>
<title>5 minutes to import CSV to a database: What do you do?</title>
<link>https://secretGeek.net/import_csv</link>
<description><![CDATA[<p>I challenged my twitter peeps:</p>
<blockquote>
<p>Challenge: you have a csv file and you need to import it into a new table in a database. You have 5 mins to get it done. What tools do you use?</p>
<p><a href="https://twitter.com/secretGeek/status/1179515031190306817">@secretgeek</a></p>
</blockquote>
<p>and was overwhelmed with the responses! So many different ways people approach the problem, and so many different tools.</p>
<p>It reminds me of Miles' Law:</p>
<blockquote>
<p>Where you stand on an issue depends on where you sit.</p>
</blockquote>
<ul>
<li>If you sit in python all day, you'll write a python script.</li>
<li>If you sit in powershell all day, you'll use powershell</li>
<li>If you sit in SQL Server all day, you might use T-SQL itself to do the work.</li>
<li>If you sit in an editor all day, you might use search/replace to transform the data into sql statements.</li>
</ul>
<p>I put all the solutions I saw into my "<a href='https://til.secretgeek.net'>today I learned</a>s" site, here's a table of contents for the topic:</p>
<ul>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html">Import CSV file to a Database, quickly</a>
<ul>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#any-database-with-any-os">Import CSV file to any database with any OS</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#any-database-with-windows-tools">Import CSV file to any database with Windows tools</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#any-database-with-macos">Import CSV file to any Database with MacOS</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#ms-sql-server-specific">Import CSV file to MS SQL Server</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#sqlite-specific">Import CSV file to SQLite</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#mysql-specific">Import CSV file to MySQL</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#postgresql-specific">Import CSV file to Postgresql</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#oracle-specific">Import CSV file to Oracle</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#hadoop-specific">Import CSV file to Hadoop</a></li>
<li><a href="https://til.secretgeek.net/csv/import_csv_to_db.html#alternative-just-treat-the-csv-as-sql">Alternative: Just treat the CSV as SQL</a></li>
</ul>
</li>
</ul>
<p>In related CSV-news I should mention that I made a git repo: "<a href="https://github.com/secretGeek/AwesomeCSV">Awesome CSV</a>" where I collect all the coolest CSV tools, articles and specs from around the planet. It's a happening place for cool people to hang out and learn cool things.</p>
<p>And my own modest tool <a href="https://NimbleText.com">NimbleText</a> treats everything as delimited text, lets you do <a href="https://nimbletext.com/HowTo/ManipulateText">powerful things quickly</a>, and is arguably* the greatest invention in the history of the universe.</p>
<p>I also have an <a href='https://github.com/secretGeek/AwesomeGUID'>Awesome GUID</a> repo, where I store awesome things related to GUIDs. There are surprisingly few things there. Hmmm.</p>
<hr />
<p><small><strong>*</strong> Whenever someone says 'arguably' it is safe to replace it with 'not'. This is arguably true in every circumstance.</small></p>
]]></description>
<pubDate>Thu, 10 Oct 2019 08:24:31 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/import_csv</guid>
</item>
<item>
<title>Desert Skies - exclusive inside information from the developers</title>
<link>https://secretGeek.net/desert_skies</link>
<description><![CDATA[<p>Unless you've been living under a rock like some disgusting sand-sneaking Seeker -- you're aware of the awesome sensation taking the gaming community by storm: <a href="https://store.steampowered.com/app/1048950/Desert_Skies/">Desert Skies</a>.</p>
<p>Here's a video of the game play in case you're not familiar.</p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/2vYeqmpWGrg" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>I recently sat down for an intense lunch with one of the minds from <a href="https://www.white-rabbit-games.com/">White Rabbit Games</a> - the creative duo behind this Indy gaming sensation, and I found out some exclusive information.</p>
<p>Although the company is called "White Rabbit Games" the logo is of a cat.</p>
<p><img src='https://secretgeek.net/image/whiterabbitgameslogo.png' alt='white rabbit games logo... a white cat' title='white rabbit games logo... a white cat' style='background-color:#222;padding:10px;' /></p>
<p>SEE!?</p>
<p>What's that all about?</p>
<p>T: we have a fluffy white cat, and it looks like a bunny so we call it "bunny".</p>
<p>Thus the white rabbit is actually a cat.</p>
<p>Woah.</p>
<p>That's enough revelations for one day.</p>
<p>It's a really awesome game. I find it pretty exciting because it's a simple idea that is popular enough that it will get a chance to expand in some really interesting directions. <a href="https://store.steampowered.com/app/1048950/Desert_Skies/">Keep an eye on this</a>!</p>
]]></description>
<pubDate>Sun, 06 Oct 2019 01:23:38 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/desert_skies</guid>
</item>
<item>
<title>What is NimbleText (a story about cheese)</title>
<link>https://secretGeek.net/nimbletext_cheese</link>
<description><![CDATA[<p>A good friend asked me the other day, "Wait a second, what's nimble text?" and I stammered out an answer. I'm not good at elevator pitches. Waving my arms around didn't make it any clearer. I tried waving them in bigger circles and pointing as I talked. It still didn't help.</p>
<p>I decided to email him an answer. It turns out I don't have his email address, so I'm writing it here, and I'll transmit the URL some other way. You get to read my reply in public.</p>
<p>What then, is NimbleText?</p>
<p>NimbleText is an adhoc code generator.</p>
<p>For example, say you have a list of "keywords", <em>(he's a digital advertising specialist... it takes all kinds)</em> and you want to do something with each keyword, maybe insert it into a database.</p>
<p>Here's your list of keywords (these are French cheeses)</p>
<blockquote><pre>Abondance
Banon
Beaufort
Bleu
Brie
Brillat-Savarin
Brocciu Cara or Brocciu
Cabécou
Cancoillotte
Camembert de Normandie
Chabichou du Poitou
Chaource
Chevrotin
Comté</pre></blockquote>
<p>...you paste that into NimbleText, and type in a pattern... how about this:</p>
<blockquote><pre>Insert into Keywords(Keyword) Values ('$0')
</pre></blockquote>
<p>NimbleText will *magically* create this SQL query for you:</p>
<blockquote><pre>Insert into Keywords(Keyword) Values ('Abondance')
Insert into Keywords(Keyword) Values ('Banon')
Insert into Keywords(Keyword) Values ('Beaufort')
Insert into Keywords(Keyword) Values ('Bleu')
Insert into Keywords(Keyword) Values ('Brie')
Insert into Keywords(Keyword) Values ('Brillat-Savarin')
Insert into Keywords(Keyword) Values ('Brocciu Cara or Brocciu')
Insert into Keywords(Keyword) Values ('Cabécou')
Insert into Keywords(Keyword) Values ('Cancoillotte')
Insert into Keywords(Keyword) Values ('Camembert de Normandie')
Insert into Keywords(Keyword) Values ('Chabichou du Poitou')
Insert into Keywords(Keyword) Values ('Chaource')
Insert into Keywords(Keyword) Values ('Chevrotin')
Insert into Keywords(Keyword) Values ('Comté')
</pre></blockquote>
<p>Two seconds later, you run the SQL and insert all the keywords into the database.</p>
<p>You can play with that example here: <a href="https://nimbletext.com/Live/398054487/">https://nimbletext.com/Live/398054487/</a></p>
<p>If the input had more than one column, you would refer to the next column as <code>$1</code>, then <code>$2</code>, etc.</p>
<p>So if the keyword data included, I don't know... some search traffic numbers?...</p>
<blockquote><pre>Abondance,1000
Banon,3000
Beaufort,200
Bleu,12
Brie,6
Brillat-Savarin,90
</pre></blockquote>
<p>We could use a pattern like this:</p>
<blockquote><pre>Insert into KeywordResult (Keyword,Result) Values ('$0', $1)
</pre></blockquote>
<p>To generate this result:</p>
<blockquote><pre>Insert into KeywordResult (Keyword,Result) Values ('Abondance', 1000)
Insert into KeywordResult (Keyword,Result) Values ('Banon', 3000)
Insert into KeywordResult (Keyword,Result) Values ('Beaufort', 200)
Insert into KeywordResult (Keyword,Result) Values ('Bleu', 12)
Insert into KeywordResult (Keyword,Result) Values ('Brie', 6)
Insert into KeywordResult (Keyword,Result) Values ('Brillat-Savarin', 90)
</pre></blockquote>
<p>(See this example here: <a href="https://nimbletext.com/Live/284342338/">https://nimbletext.com/Live/284342338/</a>)</p>
<p>But it's not just for generating SQL queries, it's for text in general; and it's not just for keywords and it's not even specific to cheeses. There are many non-cheese uses.</p>
<p>It helps you anytime you want to rearrange some data and do something to every row, to generate a result.</p>
<p>There's an <a href='https://nimbletext.com/Live/'>online version</a>, and a downloadable version (with <a href='https://nimbletext.com/Home/Professional'>extra features</a>). You can embed javascript inside your patterns to do really tricky formatting stuff. It's versatile.</p>
<p>It's just this thing, you know. For stuff.</p>
]]></description>
<pubDate>Tue, 16 Jul 2019 08:56:12 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/nimbletext_cheese</guid>
</item>
<item>
<title>Secrets of Mastering Excel</title>
<link>https://secretGeek.net/excelsecrets</link>
<description><![CDATA[<p>Inspired by a <a href="https://news.ycombinator.com/item?id=20418313">comment thread at hacker news</a> I made this mini site:</p>
<p><a href='https://excel.secretgeek.net/' class='action'>excel.secretgeek.net</a></p>
<p>I often want to share Joel Spolsky's famous "You Suck at Excel" video tutorial with "important" business people inside the large enterprise where I spend a lot of time.</p>
<p>But it would be easily misconstrued as trolling if I sent a business customer a URL that literally tells them, right in the heading, that they "suck" at excel.</p>
<p>So, as advised by user <code>TuringTest</code> (in the thread mentioned above) I created a mini site, on its own sub-domain, that is palatable to a business mindset, and <em>brutally</em> overlaid a heading that says "Secrets of Mastering Excel" right over the top of the "You Suck at Excel" heading.</p>
<p>Now I've got something I can recommend to business people without causing disharmony. And I can leave a link to it in my corporate email signature, to nudge others to improve their Excel game.</p>
<p>Ideally the page would detect when the video starts and remove the label, so it doesn't obscure the video. Also, I'd like to write up a set of notes about the talk, but ain't nobody got time for that, so I've linked to the notes from Max Masnick. Perfect is the mortal enemy of done and they are locked in an ultimate death embrace and that is how storm clouds create lightning but I digress.</p>
<p>The whole thing from idea to delivery was about an hour. I was really pleased with the speed on this one.</p>
]]></description>
<pubDate>Sat, 13 Jul 2019 21:12:11 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/excelsecrets</guid>
</item>
<item>
<title>The Market for Ideas (and is contenteditable really terrible?)</title>
<link>https://secretGeek.net/contenteditable_ideas</link>
<description><![CDATA[<p>Some people invest in gold, others bitcoin. I put my money on ideas. The volatility can be wild.</p>
<p>Take this idea -- the idea that "Contenteditable" attribute is a terrible basis for a Wysiwyg editor, as expressed by <a href="https://medium.engineering/why-contenteditable-is-terrible-122d8a40e480">this article from medium engineering</a>.</p>
<p>5 years ago, this idea was only worth 3 points and 1 comment.</p>
<ul>
<li><a href="https://news.ycombinator.com/item?id=7745425">Why ContentEditable is Terrible</a> 5 years ago - 3 points - 1 comment</li>
</ul>
<p><em>(I bought all I could! I liquidated all my other ideas so I could go long on this one....)</em></p>
<p>One year later -- it's worth had grown to 75 points and 9 comments:</p>
<ul>
<li><a href="https://news.ycombinator.com/item?id=10652634">Why ContentEditable is Terrible</a> 4 years ago - 75 points - 9 comments</li>
</ul>
<p><em>(I was tempted to cash out... but some stubborn streak... I held my nerve)</em></p>
<p>It hit its peak 3 years ago when its worth grew to 155 points and 76 comments</p>
<ul>
<li><a href="https://news.ycombinator.com/item?id=11487667">Why ContentEditable is Terrible</a> 3 years ago - 155 points - 76 comments</li>
</ul>
<p><em>(I sold it all, by god, I cashed it all in, right at the peak! It was glorious!)</em></p>
<p>Soon after: the idea came crashing down. A year ago it was old news, back down to 3 points and 0 comments.</p>
<ul>
<li><a href="https://news.ycombinator.com/item?id=17041155">Why ContentEditable is Terrible</a> 1 year ago - 3 points - 0 comments</li>
</ul>
<p>I guess what I'm saying is... sometimes an idea is before it's time. Not enough people understand the fundamentals to be able to engage with the idea. Then the audience has caught up, and they understand the idea. And then, having grokked it, the idea doesn't captivate them any longer.</p>
<p><em>A different though related thought is <a href='https://hackernoon.com/its-better-to-be-wrong-than-early-edabc60fce7f'>"It's better to be wrong than early"</a> as described at hackernoon</a>, a sentiment that occurs a few times in Ray Dalio's Principles.</em></p>
<p><img src='https://secretgeek.net/image/contenteditable.png' alt='contenteditable' title="this is not a rigorous study" alt='results at hn.algolgia of searching for contenteditable is terrible' /> </p>
<p>I don't really invest in ideas. Not explicitly. (<em>At a deep level, just about everything we do is an investment in an idea.</em>)</p>
<p>p.s. I built something with <code>contenteditable</code> this week... I agree it's terrible. <a href='https://secretgeek.github.io/style_edit/style.html'>A page that lets you edit its style, without using javascript</a></p>
]]></description>
<pubDate>Thu, 13 Jun 2019 09:07:53 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/contenteditable_ideas</guid>
</item>
<item>
<title>a html quine</title>
<link>https://secretGeek.net/a_html_quine</link>
<description><![CDATA[<p>Yesterday I was on a bus! Yes, a bus! I don't get to ride buses so often due to the working from home lyfe, but I took the opportunity to write some simple code (as I used to do on buses in the past... i even gave <a href="https://secretgeek.net/code_commute">a talk about it once</a>, when alt.net was a thing.)</p>
<p>And the thing I coded on the bus was a html quine.</p>
<p><a href="https://secretgeek.github.io/html_wysiwyg/html.html" class="action sm">Go and see this html quine</a></p>
<p>It's... different?</p>
<p><a href="https://secretgeek.github.io/html_wysiwyg/html.html"><img src="https://secretgeek.net/image/html_quine.jpg" alt="html quine.jpg" /></a></p>
<p>A quine is a program that produces, as output, its own source code. I've <a href="http://wiki.secretgeek.net/quine">discussed and demonstrated quines over here in the wiki</a>.</p>
<p>And as I say in the html quine link, although the idea had bounced around in my head for a decade, the thing that reminded me to go and do it was seeing this piece of "Code as Art" from Geoff Huntley recently: <a href="https://noyaml.com/">no yaml</a>. There must be more Code as Art in this world.</p>
<hr />
<p>See also, lengthy <a href='https://news.ycombinator.com/item?id=20094866'>Hacker News discussion</a> and more recently <a href='https://news.ycombinator.com/item?id=24824977'>more discussion.</a></p>
]]></description>
<pubDate>Tue, 04 Jun 2019 19:24:37 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/a_html_quine</guid>
</item>
<item>
<title>auto play</title>
<link>https://secretGeek.net/autoplay</link>
<description><![CDATA[<p>Even though I'm polite and I click yes to let all the websites keep their cookies on my machine, for their own devilish surveillance purposes, even though I say yes and there are no doubt a million cookies filled with details about me, knowing everything i like and what i click on, and invading every ounce of my privacy, it seems that they can't seem to find the one cookie that matters, they keep losing that one cookie i care about and it's the cookie that says: "Don't autoplay the fucking videos on youtube." Just don't do it. He's told us, over and over, on every device, not to autoplay those videos, just hold onto this one simple fact, this tiny binary digit of truth, and do not autoplay those videos. But that's the one cookie they cannot retain, they cannot keep hold of, it evades their grasp, it leaps out of their fingers like an oily fish cookie, a digusting cookie flavour that is not very popular when A/B tested in regular stores, it is the slipperiest cookie and i click once more to say "again, i tell you, please i beg you, do not autoplay your videos" and once more I know they will forget this fact as they have a specific form of memory loss, a Korsakoff syndrome all their own, where all private thoughts of an individual are retained indefinitely and sold to the highest bidder but one particular bit of data is unlike any other and is somehow coated in polytetrafluoroethene and cannot be persisted in any form, it is like those burn after reading messages that will self destruct as soon as they are read and so i am stuck endlessly watching one autoplayed video after another down stranger and stranger wormholes down rabbit rabbit holes in weird enclaves of digital degeneration as i see things unthinkable things things i cannot unsee and always i squirm and wish to escape but it cannot be done i must keep watching them play and play the playing must be played they cannot pause their playing, the playing must play, like clockwork orange i am bound before the screen with eyeballs clamped open by spidery metal fingers and please keep your cookie no more autoplay for me i cannot resist.</p>
<p> </p>
]]></description>
<pubDate>Sun, 02 Jun 2019 21:35:21 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/autoplay</guid>
</item>
<item>
<title>TimeSnapper for Mac: Beta Testers Needed</title>
<link>https://secretGeek.net/ts_mac_beta</link>
<description><![CDATA[<p><img src="https://secretgeek.net/image/timesnappericon.png" alt="TimeSnapper Logo" style="float:right"/> Finally some exciting news on the TimeSnapper front.</p>
<p>For a long time, the most requested feature for TimeSnapper has been a whole new version, for the Mac OS. Many of our customers and friends have moved from Windows to Mac over the last decade, and consistently told us that they miss the peace of mind and assistance that TimeSnapper provides.</p>
<p>One such customer, <a href="https://blog.jonschneider.com/">Jon Schneider</a> was so tired of the situation that he built a new version of TimeSnapper, from the ground up, for the Mac OS. He is now part of the TimeSnapper team (along with Atli and I) and we're now ready -- with your help -- to welcome beta testers: people who are willing to run this software and give us feedback, suggestions and error reports about their experience.</p>
<p><iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeJZriteOlxS1qJMPubKt2wQp6CV6_60vOs3UTZjBTnawzLWQ/viewform?embedded=true" width="640" height="680" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe></p>
<p>A quick recap: <a href="http://TimeSnapper.com">TimeSnapper</a> is a piece of software you can run in the background of your computer. It takes screenshots of your desktop every few seconds all week long. You can use it to recover text you've lost when (for example) your browser crashes, or you can use it to help fill out a timesheet, or just to gain an objective answer to the question "Where did my time go?" It's clever about the way it uses resources, so it doesn't fill up your hard drive or slow your computer.</p>
<p>Huge thanks to you for considering coming along on this journey, and a biiiiiiiiiig thank you to Jon for stepping up and getting us here.</p>
<p><img src='https://secretgeek.net/image/ts_mac_options_50.png' alt='ts mac options' title='ts mac options' /></p>
<p><img src='https://secretgeek.net/image/ts_mac_playback_50.png' alt='ts mac playback' title='ts mac playback' /></p>]]></description>
<pubDate>Mon, 08 Apr 2019 10:02:43 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/ts_mac_beta</guid>
</item>
<item>
<title>React is NOT ok</title>
<link>https://secretGeek.net/react_not_ok</link>
<description><![CDATA[<p>Look how tragic this is....</p>
<p>You create your new react app with:</p>
<blockquote><pre>npx create-react-app my-app
</pre></blockquote>
<p>And it spits out 907 lines of techno-babblicious output, scrolling scrolling scrolling in your console, ending at last with exactly one useful shard of information:</p>
<blockquote><pre>Success! Created my-app at C:\example\my-app
Inside that directory, you can run several commands:
yarn start
Starts the development server.
yarn build
Bundles the app into static files for production.
yarn test
Starts the test runner.
yarn eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd my-app
yarn start
Happy hacking!
</pre></blockquote>
<p>But after the wall of gobbledygook that preceded it, it's easily overlooked.</p>
<p>If the React team knew about the wonders of "ok" (for <a href="https://github.com/secretGeek/ok-bash">bash</a> or <a href="https://github.com/secretGeek/ok-ps">powershell</a>) they'd simply create a ".ok" file inside the "my-app" folder that says:</p>
<blockquote><pre>yarn start # Starts the development server.
yarn build # Bundles the app into static files for production.
yarn test # Starts the test runner.
</pre></blockquote>
<p>...Then you'd immediately be able to find the commands again, <strong>and run them</strong> with a simple "<code>ok 1</code>", or "<code>ok 2</code>" or "<code>ok 3</code>"</p>
<p>But instead: those commands, sailing by in the infinite neon-scroll of the console, will be lost in time like tears in rain.</p>
<p><img src="https://secretgeek.net/image/tears_in_the_rain.gif" alt="blade runner ending, tears in rain" /></p>
]]></description>
<pubDate>Thu, 14 Mar 2019 02:22:11 GMT</pubDate>
<dc:creator>Leon Bambrick</dc:creator>
<guid>https://secretGeek.net/react_not_ok</guid>
</item>
</channel>
</rss>
If you would like to create a banner that links to this page (i.e. this validation result), do the following:
Download the "valid RSS" banner.
Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)
Add this HTML to your page (change the image src
attribute if necessary):
If you would like to create a text link instead, here is the URL you can use:
http://www.feedvalidator.org/check.cgi?url=https%3A//secretgeek.net/rss.xml