General27 Sep 2006 09:43 pm

As I’ve occasionally intimated, I have been dabbling in music of various sorts for quite a few years. Recently I picked up the habit again, making mostly trance-influenced stuff. This evening, I took the leap and made a MySpace profile for a couple of my songs, since they get the joy of providing bandwidth and a media player that generally works cross-browser.

If you’re interested in hearing some home-brewed trance, influenced by the likes of ATB, Armin van Buuren, IIO, Oceanlab, and others (albeit instrumental for now), check out the profile at http://www.myspace.com/trancednate and see what you think. Enjoy!

General19 Sep 2006 07:09 pm

So it’s been about five weeks now since I switched to Dvorak at home. I’m up to 56 WPM now, at 82% accuracy. I’m not going to bother posting any more updates on this topic - the remaining speed and accuracy will require many hours of instant messaging to develop, as did my QWERTY skills when I was first really learning that layout. Switching back and forth between the two layouts is now nearly painless - I have a minute of confusion or so, and then my brain is fine again.

All in all, it’s been a fun time and I have a new skill now. Definitely worth it.

General19 Sep 2006 06:58 pm

If you are running Linux and you change from a DHCP setup to a static IP address on your local network, and then at some future time your ISP changes your external IP address and your internet slows to a crawl, you might find it useful to know that your resolv.conf file probably contains the old DNS entries set up back when you were using DHCP. It’s a simple matter to change it, but knowing the problem is 99% of this battle. Maybe this will help someone else out there some day who wonders why a Windows box on the same network is chugging along happily but your Linux box is choking. Happy surfing!

General17 Aug 2006 12:52 am

So it’s been just over a week since I switched to Dvorak on my laptop. I still use QWERTY on some other systems, so I’m trying to maintain both.

I have to say that the Dvorak layout is MUCH more comfortable and logical. QWERTY feels completely arbitrary and distinctly unbalanced to the left in comparison. I may have lost 5 wpm on my (considerable) QWERTY speed in the last week, but I’m up to 39wpm on Dvorak already. My accuracy is a bit low (~75%) at the moment, but it will improve. I estimate a month to be fully up to speed, perhaps a bit more.

Overall, I can already say that the Dvorak layout is worth the initial frustration. Your hands definitely appreciate not doing the frantic, left-heavy tarantella of QWERTY. And switching back and forth from QWERTY to Dvorak on the fly isn’t nearly as difficult as some people have made it out to be. If you have some patience and a slow week, it’s worth a try.

I should mention that I am using a plain old QWERTY keyboard, and I haven’t re-labelled my keys. I think this has actually sped up the learning process, as I couldn’t cheat and look at the keys so I’ve touch-typed Dvorak from Day 1. It makes the first day or two more painful, but I think it’s worth considering.

(Typed on Dvorak, in considerably less time than last week’s post.)

General09 Aug 2006 01:57 am

Oh wait, that’s a lie. I’m far too narcissistic to be lonely. *halo*

What I apparently am is a bit insane, though. I have finally made my long-intended switch to the Dvorak keyboard layout these 24 hours. So far it’s mostly maddening, as it’s dropped my near-120wpm typing rate down to a paltry 25wpm or so. What that means is that you, my humble reader, should appreciate the effort it takes me to type these very words.

In other news, I watched (and enjoyed greatly) the 2nd Pirates movie. The beginning didn’t much impress me, but by the end I was engrossed and lost track of time. A movie I do not regret watching, to be sure.

And in other, other news, my motivation level has reached its perennial low, and I am in the process of bringing my last vestiges of willpower to bear with hopes of wrapping my third novel up in the next month. Wish me luck, Gentle Reader!

(p.s. If I seem drunkened with sleepiness, it’s because I am. Forgive, forgive, forgive!)

General02 Jul 2006 08:19 pm

I was pretty happy to discover that the latest releases of MySQL (5.0+) allow for creating VIEWs and offer improved subqueries. I’ve been trying to incorporate some of this into my latest little game project, but a few irritations in MySQL are making it a miserable process.

The biggest problem is that the new MySQL VIEWs automatically resort to TEMPTABLE if you throw a GROUP BY into a query. As a result, it’s impossible to create certain types of VIEWs on very large tables, because your logical WHERE restriction on the VIEW behaves as if you issued GROUP BY…HAVING on the underlying query instead of WHERE somerestriction[s]…GROUP BY. If your query would return 10,000 rows (yes, I know that’s only relatively “very large” but I need to keep my query result times in the sub-second range and I only need 32 of those rows) before HAVING is applied, well, that’s what you get with the VIEW. For example:

CREATE VIEW myview AS SELECT foo.ID FROM foo_table foo GROUP BY foo.bar;

In that little snippet, you’d think that you could “SELECT * FROM myview WHERE foo.ID = 1″ and restrict the result set, but the WHERE restriction is applied as a HAVING. This is really, really unfortunate, as it makes the VIEW painfully, unusably slow when you have more than a tiny handful of rows.

The second annoyance is that while MySQL supports multi-table UPDATEs, it behaves in an illogical (to me) fashion when trying to do the following:

UPDATE foo JOIN bar ON somecondition SET foo.somefield = foo.somefield + 1;

The logical behavior seems to me to be that for each “bar”, “somefield” would get incremented by 1. However, in practice, MySQL updates “somefield” once and ignores the rest of the results returned by the “bar” JOIN. It’s almost the same problem discussed here and here, but dumping/reloading the tables seems irrelevant (as does my MySQL version - 5.0.22 currently) and I seem to be bumping up against a restriction briefly mentioned at the bottom of the MySQL “UPDATE Syntax” documentation page - “Currently, you cannot update a table and select from the same table in a subquery.” [Emphasis mine] I’m not the only person to have raised questions about UPDATE’s odd multi-table behavior.

I was hoping to use something like the second to mitigate the problems created by the VIEW shortcomings, but that doesn’t seem to be happening. The best solution I’ve encountered seems to be to use group functions in a subquery as per:

UPDATE foo
(SELECT SUM(somevalue), id FROM bar WHERE somecondition GROUP BY something) bar_alias
SET foo.somefield = foo.somefield + bar_alias.somevalue
WHERE foo.id = bar_alias.id;

That’s much less elegant and less flexible than using either an UPDATE…JOIN myview or UPDATE…join_query which I’d hoped to be able to do.

Here’s to hoping that the VIEW gets optimized better for the future. It would definitely make my life easier to be able to use GROUP BY in a VIEW without choking up my system. Or maybe “Currently” will become “Long ago” and I can use self-joining table UPDATEs, which is better than nothing.

And if you happen to know any way around either of these that doesn’t involve eliminating the GROUP BY on a VIEW or using a SUM() on the UPDATE, please tell me!

General19 Jun 2006 10:25 am

Just a small update to say that yes, despite rumors to the contrary, this blog is still alive.

What’s kept me busy? My Earth:2025 rewrite is coming along nicely - hopefully I’ll have a decent beta version within the next 6-8 weeks. My 3rd novel is just shy of halfway done, and I’ve been working on a few songs whenever I can spare a couple of moments. And *fingers crossed*, I’m hoping to test for 4th kyu in aikido as soon as late August.

Amid all of that, I’ll make an effort to write something interesting soon. I promise!

General30 Apr 2006 03:14 pm

If you’re, like me, one of those people who dual boots Windows XP + Linux, you might have discovered ex2fsd, which allows you to access your ext2/ext3 volumes while you’re using Windows. Recently, I suddenly found myself unable to access my /home/nate/Music directory on my ext3 volume which had previously functioned properly. Windows started telling me that it was a “location that is unavailable,” which made no sense. After a few reboots and doublechecking in Linux that the directory was there and functioning properly, I noticed that I had a /home/nate/music text file in the same directory. As Windows doesn’t cleanly differentiate between “music” and “Music” in terms of case, it was unable to open the Music folder because it was apparently getting the “music” text file.

So if you find a folder is suddenly unavailable under Windows, make sure that you didn’t create a file with the same name in the parent directory on your ext2/ext3 volume. Windows is pretty inflexible that way.

General27 Apr 2006 10:57 pm

Kaavya Viswanathan got six figures for writing a story about a geek who needed to party more in order to get into Harvard, or something like that. Given the scope of the plagiarism (at least 40 documented instances, according to Random House) scandal that has hit the news, this is really depressing somehow. Apparently if I really want to be successful as a writer, I need to do more schmoozing and less writing, and if I have to plagiarize a bit to get there, aw shucks.

Nintendo Revolution got renamed to the Nintendo “Wii.” Prounounced “We.” So, wanna come over and check out my Wii? How about going to the video game store and asking the clerk if he’s got a Wii, and what he thinks of it? And your Wii is multiplayer, too. Isn’t that awesome?

Starfish are edible. That rocks. Next time I go to the beach, I am gonna try some starsushi. You heard me.

General22 Apr 2006 02:25 pm

I’ve been a fan of Lacuna Coil for a couple of years now, but wasn’t hugely impressed with their last album, Comalies. So when Karmacode was released this month, I found myself surprised to be quite addicted. This album has more in common with their earlier work than with Comalies, yet injects some fairly interesting sounds and rhythms that are a little more playful than some of the plodding, measured songs.

The highlight of the album has to be their cover of Depeche Mode’s “Enjoy the Silence,” though. I never liked the original mix much, given that I’m not a fan of the over-reverbed, electronic style of that mix. This one injects some Lacuna Coil metal into it while staying true to the original, so it’s eminently listenable. I’ve been playing that one song more than any other from the album for a few days now.

If you’re new to Lacuna Coil or goth-tinged metal, I’d recommend this album as a good starting point. If your only exposure to this kinda music has been Evanescence, you’ll be pleasantly surprised to find out that Cristina Scabbia can actually sing without an autotuner. Give it a listen.

« Previous PageNext Page »