Monday, December 9, 2013

Defeat

I'm out of runway. My freelancing stint never really took off the way it was supposed to. It's my failure: I simply didn't pursue work hard enough. So it's taken two and a half years to eat through my savings buffer that I was willing to sacrifice for this experiment, and now I'm at the end of the runway and the lift isn't there. Own damn fault.

Oh well, it was like a nice long holiday. I got a little certificate out of the inaugural 6.002x course that is now part of edX. I finally earned my amateur radio licence. Worked a lot on my gEDA fork. Wasted a bunch of time playing the mother of all Freeciv games with an eye to animating the replay of a minimap-like view. Spent a good bit of time with my niece over the 2011/2012 summer. Learned a lot about bitcoin, and refreshed my knowledge about cryptography in general in the process. Figured out how to take credit card payments for merchants through Payfast.

But it was too much fun and not enough work-work. Dull, boring, and frustrating work that yet pays the bills. The straw that breaks this camel's back is when I started noticing that Rocketseed (my ex employer and my anchor client over the duration of this freelancing experiment) started taking their time paying me. When Zanap was still in charge of accounts, I'd get my money within a few days of sending her the invoice. But the new regime was to pay me on the very last day of the month (or even missing that) even when my work for them was done, committed, and pushed by the first few days of the month.

I don't have the energy anymore, in this iteration of the experiment, to try and encourage more prompt payments. Besides, getting my invoices paid quicker only puts off the problem for a short while: my living expenses are slightly higher than what I'm earning. Unless a miracle happens and tomorrow my inbox is overflowing with people asking me to conjure up some C for them, I need to do the realistic thing and take the low-risk option now instead of doubling down on my bet like a gambler.

So I'm now on the job market. Let someone else figure out how to turn value into money, and just give me a regular payslip. What I've been doing hasn't been working, so it's time to try something else. At least for a while, so I can build a new runway and try again later.

Friday, December 6, 2013

Is bitcoin an ecological disaster in the making?

I've been thinking a lot about bitcoin mining lately, even considering building some mining equipment with Nasier. As exciting as it is, I have a new doubt over the enviro-ethical value of the bitcoin protocol as it exists today.

Right now, the total energy put into mining bitcoin is still small. The network hash rate is perhaps 7PH/s. If we take an average mining efficiency of 100MH/J (maybe generous, but I really only want an order-of-magnitude calculation here) then it means there must be 70MW dedicated to mining. It won't stay at just 70MW though.

The current block reward is 25BTC, or about 250000ZAR. Every 10 minutes in the long-term average.  That's the limit up to which mining costs can go before it becomes uneconomical - the point where miners decide to just switch off their machines. Right now capital costs are important, because average mining equipment efficiency is still increasing, which obsoletes current mining equipment in a matter of months. I don't think we can expect consistent increases in mining efficiency for much longer: Avalon's gen2 chips are made with a 55nm process, and I've seen talk of 28nm chips. Once we reach an efficiency wall, the only way to access a greater hash rate will be to consume more power.

Once we reach that point, there will be little incentive to replace older equipment with newer; the incentive for profitable miners will be simply to add more equipment to their operations. Capital costs then shrink as the economic lifetime of mining equipment increases to years instead of months, and electricity prices will become the dominant cost.

Domestic electricity costs no more than R2.50/kWh. 250kZAR per 10 minutes can fund the consumption of 100MWh every 10 minutes - that's 167kWh every second, or roughly half my monthly electricity consumption every second. In standard units, that's 600MW. Notice that this doesn't depend on average mining efficiency, but only on the block reward and on the price of electricity. Cheaper electricity only makes it worse!

Are you okay with that? I'm not sure if I am. Does the standard banking industry, whose death due to bitcoin we sometimes pine for, use that much? I doubt bitcoin would replace the banking industry's carbon footprint; it would rather add to it. Also, things get much, much worse if bitcoin rises to the $100000+ that some think is possible.

Block reward halves every 210000 blocks, or every 4 years. Next halving is in 2016. So we may see only two years of gigawatt-scale mining - if the price of electricity in bitcoin stays constant. What happens to the half of the exahash-scale mining network that would go offline due to being uncompetitive? Does it instantly turn into a 51% attack network, having to make ends meet by conspiring with double-spenders?

In the very long term, the block reward becomes insignificant or disappears completely. So I'm happy that bitcoin mining won't be an ecological travesty in eternity. But in the meantime, this looks like a serious problem to me.

Friday, October 4, 2013

Microwave steak

People react as if I'm proposing to put a baby in the microwave to keep it warm in the winter, when I speak of my microwave steak recipe. It really isn't a travesty; it works quite well in making a delicious steak ready to eat!

Here's what I don't like about conventional methods of steak preparation:


You end up with an incinerated outside, and a rare inside, and this gradient gets worse the thicker the steak is. The underlying problem with all fry-only methods is that they all involve heating the inside by transferring heat through the outside. This process inevitably results in an outside that is significantly more cooked than the inside. Some (but not all) cooking methods call for using lower heat. Maybe that works, but even if it does, I like my method better even if it's just for the way it hacks the laws of physics.

The crucial feature of microwave heating that my method exploits is that microwaves can penetrate the interior of the steak. If one were to simply nuke the steak for a minute or two, the steak would cook from the inside out, rather than from the outside in as when one fries it. Mixing the two methods gives me the ideal steak:

Medium rare throughout the whole thickness. Sometimes I've been lucky and there's been no perceptible gradient, other than having a very thin (<1mm) outer edge.

I've found these numbers to work well for me, assuming a single, modest steak (around 150g, just right for breakfast):

1. Heat a saucepan, using maximum heat on my "small" stove plate. Wait until the bottom reaches the Leidenfrost point. (Drip some water into the saucepan to see if it beads up without flash-boiling.)
2. Nuke the steak at 100% power for about 30 seconds. While it's nuking, wipe the bottom of the heated saucepan with an oiled piece of paper.
3. Fry each side for a minute - which is just about how long it takes for the steak to stop sticking to the saucepan.
4. Thick cuts may justify another 30 seconds on each side.

Update: It seems there are other people who use the same technique, although I should point out that "sear to seal the meat" is BS.

Saturday, August 24, 2013

Fighting the demon, staying motivated

A few years ago I did the unthinkable: I asked the Internet to diagnose my ills. Specifically, I had somehow, though not specifically, landed on a list of symptoms of depression. Feelings of hopelessness and/or pessimism? Check. Persistent sad or "empty" feelings? Check. Loss of interest in activities or hobbies once pleasurable, including sex? Check. (Sex, LOL.) It seemed pretty clear to me that I had been depressed for years at that point - and that I had probably caught it (it's contagious, did you know?) from someone I interacted with on a daily basis.

I didn't like this diagnosis. I don't want to be depressed. I didn't want to face a future of a hollowed-out personality like the person I'm sure I caught it from. So somehow I managed to "snap out of it" through what felt like a conscious decision. Almost overnight my affect improved, and I started recognizing the seductive depression-thoughts: "You aren't pretty/accomplished/popular/etc. like those other people - in other words, worthless!" Or the most insidious one of all for me: "I'm smarter than all these other people, and I'm nicer than them too, therefore the tragedies of the world hurt me more. Being depressed as a result of how horrible the world is means I'm smart and nice."

Yuck, no more. I'm ashamed of having thought those ways for so long. So much time wasted. During the same period of my self-diagnosis, I was very much into psychology stuff in general. Every day during the long hours I spent at work in those days, I'd be poring over Wikipedia articles and other web pages. Cognitive distortions. MBTIs (I'm quite solidly an ISTP, apparently). Active listening. Models of communication. The meaning of a message is the response it elicits Understanding that, and coping with the ways that others' goals may not be aligned with mine. And always a background of more mathy/techy concepts to mine and repurpose. Game theory. Feedback.

So I have the intellectual tools now to fight the demon. I'm now aware that it's (like) a parasitic personality with "who I really am" as the host. (I don't really like "who I really am" as a concept - it makes a value judgement and mandates a static identity, neither of which I like.) But I still have to fight it - almost every day. I was just an emotionally vulnerable teenager when it started (and was probably a good host from the start), so it had its claws deep in my self-concept. Consciously, I reject that now - I don't want that to be part of "who I really am".

When I notice my mood darkening, I have a few options. Just feeling like I have options helps me to feel like I have some control over my life. Sometimes I go for small victories: I'll go to the garden and clear a little patch of weeds. Sometimes I just bail out and go to sleep, hoping to reboot overnight. And other times a walk with the dog does the trick to clear my mind. I suspect that going freelance has made it harder to find distraction from depressing thought: other people have their own needs, and the fact that they make demands on one's attention serves as an anchor - a sort of social regression towards the mean. I haven't figured out yet if IRC serves as a substitute to provide the grounding effect of having real-life people around. I think it might be channel-dependent: I'm happy when I'm in #Chatania, and less so in an unnamed channel I've finally given up on. Reddit seems to be affectively neutral, but it does tend to suck me in a bit as a displacement for boredom. I like /r/changemyview best so far.

I wish I could more regularly find the muse to do more productive things than reading Internet news, politics, and psychology porn (admit it - that's what these media categories are). There are so many things I could be doing - I could be working on my gEDA fork, or working on that damn MPH website that's been a steady irritant for two years now, or completing some of my woodworking projects. Even just blogging a little more regularly would feel more productive than getting my next hit of Internet. (Thanks A. for taking Essay Saturday seriously and prodding me into action with your entry.)

I'm off to go after a few small victories now. Making muesli and steak 2-course breakfast, then checking on my garden, and maybe sawing some firewood from pruned branches.

P.S. Diet must have an influence too. I seem to have more psychic energy since I've started having steak for breakfast. (Remind me to blog my microwave recipe.) And copious amounts of raisins too.

Thursday, May 2, 2013

Building a furnace

I'm building a little furnace for backyard foundry duty, so I can cast parts for some of my zillion other hobbies. I'm not happy with all the brute-force furnaces out there on the Internet, that achieve all their melting power with a MOAR PROPANE! mentality, so I want mine to be one of those virtuous circle devices that work better the harder they work. Enter the air preheater:


Those holes in the side wall are air channels, for the incoming air to soak up some heat from the furnace wall instead of just letting it sink to ambient, unused. Unfortunately the side wall didn't slip out of the bucket as cleanly as I had hoped, and some fireclay got stuck in the corner, breaking out of the bottom of the wall when I turned the bucket over:


I'm glad the channels ended up mostly where I wanted them - parallel to the inside wall right to the bottom. (I made a little jig to help me line up the steel rod, that I used to make the channels, with the inner wall.)

Next I need to build a floor for this furnace, again with internal channels to communicate with the ones in the side wall. A roof might be nice too, but that can be (has to be) a separate part. I probably won't put air channels in the roof, in order to avoid plumbing problems - and so it will be possible to run this furnace without its roof.

Thursday, January 31, 2013

Refreshing science fiction

Most sci-fi I see is either insufferably militarist, or hopelessly naive, and besides, most mainstream entertainment is boringly unambiguous. Not so with C 299,792km/s. You should probably not read further if you want to see the movie, there are spoilers below. But watch it again after reading the rest; I understood some things better only the second time, after I'd read some comments on the movie's vimeo page.

Here we have a grave, almost reluctant Malleck leading a mutiny on the Kestros IV, clearly a space warship. While certain in her conviction that her act is just, she is not merely juxtaposed as The Captain's moral opposite. The Captain seems like a reasonable man who merely does not (yet?) share Malleck's ideology: that humanity can do better than build space warships to blow stuff up and wreck planets.

My favourite line of the movie is "That's alright, I don't need them" - in response to the Captain's warning that he can't give her his "launch codes" (presumably for some superweapon). It's the first in-story hint that this is not the usual evil-terrorists-commandeer-superweapon trope-tripe that Hollywood loves dishing up. Immediately after, the film cuts to the retro-style Beyond the infinite "documentary" that's woven into the in-space arc hints at this beating-swords-into-ploughshares theme by negation, when Dr Harold Newman laments, "Since Man has been building tools, he has used them as weapons". It becomes clear with time that Malleck seeks to use the weapon as a tool, exactly as Newman vainly hopes (about untold amounts of energy), "or, to reach new [worlds]."

No doubt there are some hidden treasures in the film I've missed. There is a scene where Operator Hale searches for Lieutenant Kai, and a screen scrolls a list of names with short blurbs, some of them a bit bizarre. For example, there is "Unresolved conflict has led to extreme silliness" and "Bread crumbs are not as healthy as once [blurred]." No doubt some in-jokes among the film crew - and perhaps a nod to some of the Kickstarter campaign's funders?

Overall, I love the film. I wish there was more of it. Some people seem to be troubled by the acting, but it doesn't bother me. In fact, to me it adds authenticity - the characters are technocrats and soldiers, not orators and superheroes. The only scene I find a bit fake is where Kai figures out that something fishy is going on - that the ship is not awash with radiation but is, in fact, hijacked.

Even soldier Kai is human. There is a delightful scene near the end where he figures out what Malleck's motive is, and cracks the slightest smile, as if to say, "Yes, I like this script better than the wargames I signed up for!"

Watch it now, and then figure out a way to subvert your environment so that the world can become a better place.