<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sugardeath &#187; Programming</title>
	<atom:link href="http://sugardeath.net/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://sugardeath.net</link>
	<description></description>
	<lastBuildDate>Thu, 17 May 2012 05:42:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Solving problems that never really existed</title>
		<link>http://sugardeath.net/12/2011/solving-problems-that-never-really-existed</link>
		<comments>http://sugardeath.net/12/2011/solving-problems-that-never-really-existed#comments</comments>
		<pubDate>Fri, 02 Dec 2011 01:19:15 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[weechat]]></category>

		<guid isPermaLink="false">http://sugardeath.net/12/2011/solving-problems-that-never-really-existed</guid>
		<description><![CDATA[I use a combination of weechat and bitlbee to have access to my oscar and xmpp chat accounts right next to irc. For a while it was set up to text me from Google Voice whenever I received a message from marked as away.   The problem is that Voice does not have a public API. [...]]]></description>
			<content:encoded><![CDATA[<p>I use a combination of weechat and bitlbee to have access to my oscar and xmpp chat accounts right next to irc. For a while it was set up to text me from Google Voice whenever I received a message from marked as away.   The problem is that Voice does not have a public API. The tool I was using was basically using curl to log in and pull data from the web page. It was very hacky, and when Google changed their authentication recently, it was completely broken. </p>
<p>Jason gave me the idea of using email instead. This was much easier to set up and since it uses a long standing standard, it shouldn't break. </p>
<p>This was good, but to respond to the messages I received, I'd still have to SSH into my computer, which is kind of painful on my phone over 3G and without a real keyboard. </p>
<p>To solve this non-issue (I really don't need to respond to people instantly), I wrote a python script for weechat that logs in to my secondary (or is it my tertiary) gmail account, where the replies are sent, and checks for new messages via imap. The only external library needed is imaplib, to facilitate imap communication. The format is easily abusable: If it is sent from my main gmail, then it assumes it is a reply. The subject contains the recipient of my message,  since my notifications put the person in the subject, and the body is the message itself. It's pretty simple to parse the imap message for this information, and even simpler to use the weechat library  to send the message to the appropriate person. I don't count the weechat library as external since it is implied when I say this is a weechat script. </p>
<p>The script checks every five minutes and so far works wonderfully. </p>
<p>I guess now that when I'm marked away, I'm not really away, per se. </p>
<p>I need to clean up the code a bit, make it more generic, and take advantage of setting options within weechat (I currently hard code my login information), but I plan to post the code here. I'll probably detail the entire set up I have since it is a combination of two plugins. Because of this requirement of the other script (away_action), I'm not sure if it would be appropriate to submit to the weechat script repository.</p>
<p>Anyway, I was able to whip this out in very little time, and I think I'm finally beginning to understand the appeal of python. </p>
<p><span class="post_sig">Posted from WordPress for Android</span></p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/12/2011/solving-problems-that-never-really-existed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Small Download</title>
		<link>http://sugardeath.net/03/2011/a-small-download</link>
		<comments>http://sugardeath.net/03/2011/a-small-download#comments</comments>
		<pubDate>Mon, 28 Mar 2011 22:36:12 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://sugardeath.net/03/2011/a-small-download</guid>
		<description><![CDATA[Here's an ultra alpha version of my todo app mentioned in the previous post.  It's incredibly usable, I think, but I know there are a few issues. Nothing the user should encounter (unclosed cursors,  for example), but definitely high on my todo list. I've not had much time to work on this recently since I'm [...]]]></description>
			<content:encoded><![CDATA[<p>Here's an ultra alpha version of my todo app mentioned in the previous post.  It's incredibly usable, I think, but I know there are a few issues. Nothing the user should encounter (unclosed cursors,  for example), but definitely high on my todo list. </p>
<p>I've not had much time to work on this recently since I'm in between apartments at the moment. </p>
<p>But yeah, try it out, leave a comment. <br />
<a href="/apks/com.lademan.todo-1.apk" title = "Tony's Todo">Download</a></p>
<p><span class="post_sig">Posted from WordPress for Android</span></p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/03/2011/a-small-download/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Break Things, Please!</title>
		<link>http://sugardeath.net/03/2009/break-things-please</link>
		<comments>http://sugardeath.net/03/2009/break-things-please#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:51:53 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[fanboyism]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[web design (not really)]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=2187</guid>
		<description><![CDATA[I posted this in my status on Facebook, but crossposting yields wider audiences.&#160; Amber conscripted me to build a simple submission and voting script for an upcoming Doctor Who fanvideo contest.&#160; I think I'm mostly done with it, which means that there's a ton of bugs to be fixed, naturally.&#160; I've already gotten the obvious [...]]]></description>
			<content:encoded><![CDATA[<p>I posted this in my status on Facebook, but crossposting yields wider audiences.&nbsp; Amber conscripted me to build a simple submission and voting script for an upcoming Doctor Who fanvideo contest.&nbsp; I think I'm mostly done with it, which means that there's a ton of bugs to be fixed, naturally.&nbsp; I've already gotten the obvious SQL injection one (look at one of the submissions on the vote page, it has a drop table statement in it that should've cleared all the submissions) and Richard already helped me fix one that came up if the page was open in two different tabs or browsers (just a simple check fixed it; a stupid one, but simple), but I want people to keep trying to break it.&nbsp; Amber doesn't need it until the end of April or so, so I've got plenty of time to beef it up if anything is found.&nbsp; </p>
<p>So, <a href="http://skaroawards.com/votetest/" title="Break me please :3">go for it</a>.&nbsp; Try all your stupid little user tricks, things I would never have thought of as the programmer (such as the multiple tab thing Richard showed me).</p>
<p>This project was really fun.&nbsp; I got to learn some more php, expand upon my sql, learn how to use sql within php, and probably most fun of all: learn how to use ajax.&nbsp; Since voters are to vote on multiple categories, I did not want to have to reload the page every time they voted in one category, that would be a waste of the voter's time.&nbsp; Especially when the page gets to be pretty long with a ton of submissions (I'm assuming it will get long (there's twenty-nine categories after all), and that there will be a ton of submissions).&nbsp; So, instead, when they vote on a category, it'll just collapse the form in that category into a "Thank you for voting!" message and the voter can go on unabated.&nbsp; I like it, it's really cool  :razz: </p>
<p>The thing logs based on IP address, so of course if you go to another computer and try to vote again, you'll succeed.&nbsp; And of course if you use a proxy, etc. etc.&nbsp; </p>
<p>--A dude just walked past my window and freaked me the hell out.&nbsp; Looks like he was checking something on the outside of the buildings.--</p>
<p>Amber said that the people who will be participating are unlikely to go about vote stuffing in this manner since... well, they're generally fourteen year old fangirls who know shit about computers (though they can kick my ass at video editing, that's for sure).&nbsp; </p>
<p>But yeah, try anything, everything.&nbsp; And if you break it or find something that you think might be broken, just leave a comment on this post.</p>
<p>Also, yes.&nbsp; It is intentionally ugly (this is Corey's big issue for some reason, and yet his IPRO site looks like it was made in frontpage).&nbsp; I plan to just php include() them into Amber's site later on and CSS the hell out of them.</p>
<p><a href="http://skaroawards.com/votetest/" title="Break me please :3">The link again.</a></p>
<p>I watched <em>A Dog's Breakfast</em> before going to bed last night.&nbsp; It was surprisingly good.&nbsp; It stars David Hewlett (Rodney McKay, <em>Stargate: Atlantis</em>), his sister Kate Hewlett (Jeannie Miller, Mckay's sister, <em>Stargate: Atlantis</em>), and Paul McGillion (Dr. Carson Beckett, <em>Stargate: Atlantis</em>; Young Dr. Ernest Littlefield, <em>Stargate: SG-1</em> "The Torment of Tantalus").&nbsp; The Hewletts again play siblings, with McGillion as Kate's actor fiancé.&nbsp; It started out a little.. slowish for me, but then just took a turn for the awesome.&nbsp; Especially the cameo by Christopher Judge (Teal'c, <em>Stargate: SG-1</em>).&nbsp; Holy hell.&nbsp; He plays such a serious character on SG-1, and while I knew he was a funny guy, I didn't realize just how awesome he could be.&nbsp; He really needs more comedy jobs.&nbsp; It's a small cast, and it's basically all Stargate regulars, but it's so refreshing to see them all outside of the Sci-Fi genre doing some good ol' comedy.</p>
<p>I recommend the movie, even if you aren't a fan of Stargate.&nbsp; David Hewlett's performance is top-notch and his chemistry with Kate is perfect (which probably has something to do with the fact that, you know, they're siblings and all).&nbsp; McGillion is great too (one of my all time favorite actors on <em>Atlantis</em>).&nbsp; </p>
<p>The Prometheus ship set/stage also makes an appearance, as McGillion's character is an actor on a really bad Sci-Fi show (where Rachel Lutrell, also of <em>Atlantis</em> fame, makes a cameo) that seemingly takes place aboard an advanced space ship.</p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/03/2009/break-things-please/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Habe ich mehr programmierte!</title>
		<link>http://sugardeath.net/02/2009/habe-ich-mehr-programmierte</link>
		<comments>http://sugardeath.net/02/2009/habe-ich-mehr-programmierte#comments</comments>
		<pubDate>Sat, 07 Feb 2009 11:49:58 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[DS]]></category>
		<category><![CDATA[dungeons and dragons]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=2165</guid>
		<description><![CDATA[Re: I can't sleep while my roommate stores]]></description>
			<content:encoded><![CDATA[<p><strong>Re: <a href="http://sugardeath.net/12/2008/i-cant-sleep-while-my-roommate-snores" title="I can't sleep while my roommate snores">I can't sleep while my roommate stores</a></strong></p>
<p><img src="http://sugardeath.net/images/dice.png" title="Dice Roller v1.6" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/02/2009/habe-ich-mehr-programmierte/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is why I love Linux/Opensource</title>
		<link>http://sugardeath.net/11/2008/this-is-why-i-love-linuxopensource</link>
		<comments>http://sugardeath.net/11/2008/this-is-why-i-love-linuxopensource#comments</comments>
		<pubDate>Sat, 29 Nov 2008 16:58:51 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=2058</guid>
		<description><![CDATA[Jeremy was playing around on ShinyCat trying to get Compiz installed for some nifty orange glows around his windows.&#160; Well, ShinyCat has crappy integrated ATI drivers and we couldn't get any of the drivers properly installed so Compiz kept giving stupid errors.&#160; He was kind of bothered that we couldn't get this to work, so [...]]]></description>
			<content:encoded><![CDATA[<p>Jeremy was playing around on ShinyCat trying to get Compiz installed for some nifty orange glows around his windows.&nbsp; Well, ShinyCat has crappy integrated ATI drivers and we couldn't get any of the drivers properly installed so Compiz kept giving stupid errors.&nbsp; He was kind of bothered that we couldn't get this to work, so jokingly I said "The xfce compositor does shadows, just change the color in the source code."</p>
<p>That joke turned into the project for the next ten minutes which included hunting down the XFCE Window Manager source code and finding where in said code the color for the shadow was defined.&nbsp; Jeremy now has orange "glows" around his windows and pop up menus without the bloat and resource eating that Compiz would bring to ShinyCat.</p>
<p>It was fun.</p>
<p>On the todo list for the window manager is "selectable shadow colors."&nbsp; I'm pretty sure I could patch it so that it accepts arguments from the command line for colors, but I wouldn't quite know how to bring it into the GUI (though maybe I should attempt that over break?&nbsp; If it's still on the todo list (which is only a couple of months old?), that possibly means that someone hasn't submitted a patch to implement such a thing yet?).</p>
<p>The changelog for the latest 4.6 beta (current stable release is 4.4.3) says that they've implemented changing the opacity value but not color yet. =P</p>
<p><img src="/images/xfwm.png" title="orange glows version" /></p>
<p><strong>Before (on white):</strong><br />
<img src="/images/blackshadow.png" /></p>
<p><strong>After (on black):</strong><br />
<img src="/images/orangeshadow.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/11/2008/this-is-why-i-love-linuxopensource/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>There is a sticky note on the TV</title>
		<link>http://sugardeath.net/10/2008/there-is-a-sticky-note-on-the-tv</link>
		<comments>http://sugardeath.net/10/2008/there-is-a-sticky-note-on-the-tv#comments</comments>
		<pubDate>Thu, 16 Oct 2008 17:03:12 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mega Man]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=1931</guid>
		<description><![CDATA[Do not turn off Wii under penalty of DEATH! Phil and I got to the third stage of Wily's castle last night, but if you save the game and turn it off you start right back at the first stage of the castle, so we had to leave it on over night.&#160; I got bored [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
Do not<br />
turn off<br />
Wii under<br />
penalty of<br />
<u>DEATH!</u>
</p></blockquote>
<p>Phil and I got to the third stage of Wily's castle last night, but if you save the game and turn it off you start right back at the first stage of the castle, so we had to leave it on over night.&nbsp; I got bored part way through the night and beat the third stage and got through the fourth, but kept dying on the final boss.. :neutral:  I think it was the Oreos and half-gallon of milk that helped me get that far  :razz: </p>
<p>I don't know what I'm going to do with myself this break (conscience says: "Get your chem lab done early, get caught up in data networks, look at your systems lab," but who listens to that anyway?).&nbsp; I played around a bit with python last night.&nbsp; Fairly simple stuff so far, just figuring out how loops and functions work in this crazy language.&nbsp; Up next is GUI stuff.&nbsp; The mpd side of things is damn easy, all the mpd commands are extremely straight forward (and are the exact same ones I've already played around with in perl, oddly), so once I get the GUI stuff down it should be pretty easy to implement a basic music controller.</p>
<p>..I think I'm going to fall asleep soon...&nbsp; I slept from about four after my systems exam to roughly ten or so yesterday...&nbsp; My sleep schedule is complete poop right now.&nbsp; It's terrible.</p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/10/2008/there-is-a-sticky-note-on-the-tv/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project</title>
		<link>http://sugardeath.net/07/2008/project</link>
		<comments>http://sugardeath.net/07/2008/project#comments</comments>
		<pubDate>Thu, 03 Jul 2008 22:54:07 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[AndrAIa]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Ophiuchus]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=1703</guid>
		<description><![CDATA[So I think that my next real.. project of sorts will be to write an MPD client.&#160; MPD is a pretty neat music manager I found a few days ago.&#160; A fair amount of Linux programs and services run on the client/server idea, most notably X the graphical display server (what draws the pretty graphics [...]]]></description>
			<content:encoded><![CDATA[<p>So I think that my next real.. project of sorts will be to write an MPD client.&nbsp; <a href="http://www.musicpd.org/" title="MPD: Music Player Daemon">MPD</a> is a pretty neat music manager I found a few days ago.&nbsp; A fair amount of Linux programs and services run on the client/server idea, most notably X the graphical display server (what draws the pretty graphics and frees you from the "horrors" of a command-line only interface).&nbsp; This seems like an odd idea for a music manager and player, but it's a neat way of approaching it and I think it does a great job.&nbsp; The obvious connotations of "client/server" are a user connecting to a remote box from his home desktop or whatever.&nbsp; I do not know if this was the express purpose of MPD, but I assume that it would work very well if one had a multimedia computer hooked up to their stereo/TV (I do not have such a computer, so I do not know).&nbsp; Using another computer in the house, one more easily accessible, they could just connect to the server using one of the many clients available and change the music playing from the stereo in the other room.&nbsp; All fine and dandy, but fairly useless to me.&nbsp; Within the past few months, Amarok has started to shit out on me.&nbsp; I don't know what it is.&nbsp; I got rid of all my user settings and ran it fresh and it still had terrible slowdown and hanging issues when doing things such as loading playlists (some of mine are huge, yeah) or switching tracks (that should NOT happen).&nbsp; I've tried Rhythm Box, Audacious (which seems to be a prettification of xmms, which is basically a winamp clone; a.k.a. amazing), Exaile, etc.&nbsp; None of them ever felt... right.</p>
<p>I have always been of the minimalistic point of view.&nbsp; This is evident in my no icons on the desktop belief as well as my attempt to use programs that take up the least amount of resources.&nbsp; Amarok did get a bit heavy at times, but it was really nice so I kept using it.&nbsp; That is until I just got fed up with its performance (it's really a good piece of software, no one else seems to be having the same problems as me).&nbsp; Well, I haven't really listened to music much on my computer in the past few months.&nbsp; Until I found MPD the other day.&nbsp; Because it's server/client, it's inherently light on resources.&nbsp; The server end runs as a daemon, it plays your music and manages your collection in the background.&nbsp; When I want to switch tasks or load a playlist, I can load up one of the quick-launching client programs (I currently switch between a nice command-line one and a Rhythm Boxish GUI one), load a new playlist/song, and close it and everything is great.&nbsp; This also frees up a spot in the system tray that would have an icon for the program (though I just installed an XFCE panel MPD controller that takes up like quadruple the visual space a system tray icon would).&nbsp; It really is a neat way to implement a music manager.&nbsp; There's also a webclient that I am interested in trying that will stream my music to another computer over the internet.&nbsp; That'll be nice when I'm back at the reg office next semester.</p>
<p>So, basically, with the little bit of python I have done for extending the Mumbles Pidgin plugin, I decided that I should learn more about the language ad use it to develop a client for MPD.&nbsp; I could then stick in what features <em>I</em> want and make it exactly how <em>I</em> want it; I could even make it send dbus messages and intercept them with Mumbles!&nbsp; I bet the hardest part will be figuring out GUI stuff.&nbsp; It'll be interesting getting used to Python's method of Object Oriented programming, I'm sure, but once you've done that stuff once, you've really done it a million times (I'll probably end up eating these words).</p>
<p>So, with the recent discovery that my graphics card no longer displays low resolutions (boot screen, Linux TTYs, etc.), the possibility of my computer failing has suddenly become very real.&nbsp; While I really do not have the money for a replacement (nor should I spend the money on one in the near future), I should at least ready a list of parts so that I can make a sudden order just incase AndrAIa decides to call it poops.&nbsp; What?&nbsp; Yeah, I could just buy a new video card, but I'd essentially be wasting money.&nbsp; Why should I buy a graphics card for a deprecated interface?&nbsp; AGP cards are no longer the standard.&nbsp; It's all about PCI-X.&nbsp; But to get PCI-X, I'd have to upgrade my motherboard and with a new motherboard comes a new everything else.&nbsp; I wanna go something midrange, sorta like David's which was a total cost of $450 while reusing as much as possible from his old machine.&nbsp; Mine'll probably cost maybe $100-$300 more than his due to the fact that I will be reusing VERY little from AndrAIa.&nbsp; Andy originally cost $850 when I bought her four or five years ago.&nbsp; I'd say she was fairly high-end at the time.&nbsp; She's served me well, and I hope she would continue to do so even after I build Ophiuchus (which I hope you'll remember is the <a href="http://spaceplace.nasa.gov/en/kids/st6starfinder/st6starfinder3.shtml" title="NASA.gov">thirteenth zodiac</a>, because I'm an asshole like that).&nbsp; Maybe she could be that media centered machine hooked up to a TV and stereo.&nbsp; Maybe.&nbsp; She'll serve some purpose, I just don't know what yet.&nbsp; Anyway.&nbsp; Back to Ophiuchus.&nbsp; I'm thinking he'll (yeah, Ophi is a he) look good in either <a href="http://www.newegg.com/Product/ShowImage.aspx?CurImage=11-192-070-S01&#038;ISList=11-192-070-S01%2c11-192-070-S02%2c11-192-070-S03%2c11-192-070-S04%2c11-192-070-S05%2c11-192-070-S06%2c11-192-070-S07%2c11-192-070-S08%2c11-192-070-S09%2c11-192-070-S10%2c11-192-070-S11&#038;S7ImageFlag=1&#038;Item=N82E16811192070&#038;Depa=0&#038;WaterMark=1&#038;Description=Athena+Power+CA-1015CR40+Black+%2f+Red+Computer+Case+-+Retail" title="black/red">this case</a> or <a href="http://www.newegg.com/Product/ShowImage.aspx?CurImage=11-108-060-02.jpg&#038;Image=11-108-060-02.jpg%2c11-108-060-03.jpg%2c11-108-060-04.jpg%2c11-108-060-05.jpg%2c11-108-060-06.jpg%2c11-108-060-07.jpg%2c11-108-060-08.jpg%2c11-108-060-09.jpg%2c11-108-060-10.jpg%2c11-108-060-11.jpg%2c11-108-060-12.jpg&#038;S7ImageFlag=0&#038;WaterMark=1&#038;Item=N82E16811108060&#038;Depa=0&#038;Description=IN+WIN+IW-BT611T.300SL+Silver+Computer+Case" title="whitey">this one</a>.&nbsp; Neither seem to have all too powerful power supplies, but I haven't done my research yet.&nbsp; The problem with whitey there, despite how sexy it is, is that the power supply is of an incredibly ODD shape and quite weak to boot.&nbsp; The only other similar power supply that newegg sells is... well... the same one.&nbsp; So, whitey is out of the question.&nbsp; Blackey seems to be using a regular power supply, but even at 400W, it seems a bit... weak.&nbsp; But again I must first do my research and confirm that I should actually buy another power supply.&nbsp; At least blackey is still pretty cool looking.</p>
<p><em>But wait Tony!&nbsp; I know computers and that case looks kinda small!</em></p>
<p>Yeah, it is.&nbsp; It's a Micro ATX case.&nbsp; Brian got a Micro ATX machine last summer and, while his case is a normal ATX Mid-Tower case, it's a fair bit smaller than a normal ATX motherboard and...&nbsp; I could do with a size reduction.&nbsp; As stated earlier, I am not going for a high end machine here, it's not going to need everything a full ATX motherboard will offer (namely PCI slots).&nbsp; Plus, you know, size.</p>
<p>Ugh, I wish I were in Windows so I could whip this up really quickly in Fireworks...&nbsp; I haven't quite gotten used to The Gimp yet..</p>
<p><img src="/images/compysize.png" title="Andy vs. Ophi size-off" /></p>
<p>It's not a whole lot, but is definitely enough.&nbsp; Considering that, at the moment, I lay Andy on her side so that I can place a fan on her graphics card to account for the fact that the card's fan died almost a year ago.&nbsp; It actually keeps it pretty cool, I'm surprised.&nbsp; But yeah, imagine skinny little Ophi taking up no space on my desk.&nbsp; I would have so much room to.. do things with, maybe.&nbsp; It'd be nice.</p>
<p>This was probably a pretty boring post to you not-so technically inclined/interested.&nbsp; I've been writing a lot of stuff down while at work lately.&nbsp; Maybe I'll post that eventually?</p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/07/2008/project/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python is Weird</title>
		<link>http://sugardeath.net/06/2008/python-is-weird</link>
		<comments>http://sugardeath.net/06/2008/python-is-weird#comments</comments>
		<pubDate>Mon, 30 Jun 2008 02:48:03 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=1698</guid>
		<description><![CDATA[And seems very unconventional when compared to C or Java or even Perl.&#160; I downloaded a notification program called Mumbles that takes advantage of dbus messages to display things.&#160; Mumbles requires that plugins be written to catch these dbus messages so that they can be interpreted and displayed.&#160; It came with a pretty crappy Pidgin [...]]]></description>
			<content:encoded><![CDATA[<p>And seems very unconventional when compared to C or Java or even Perl.&nbsp; </p>
<p>I downloaded a notification program called <a href="http://www.mumbles-project.org/" title="Mumbles">Mumbles</a> that takes advantage of dbus messages to display things.&nbsp; Mumbles requires that plugins be written to catch these dbus messages so that they can be interpreted and displayed.&nbsp; It came with a pretty crappy Pidgin plugin that only showed notifications for messages received, and it only showed the generic Pidgin icon.&nbsp; So far I've got it displaying typing, idle, status change, and log on/off messages.&nbsp; It also displays icons based on whether the buddy is from AIM, Jabber, or Facebook.&nbsp; I might add the other protocols, shouldn't be hard (though some may have some oddities like AIM*), I just need accounts on said protocols to make sure I'm getting everything right.</p>
<p>*Pidgin likes to some stupid things regarding its dbus messages:  Every sort of message except for the typing one return a <em>PurpleBuddy</em> object, a "name" string, and other various variables, which I can get a whole ton of information from.&nbsp; <strong>BuddyTyping()</strong>, however, returns a <em>PurpleAccount</em> object and a "name" string.&nbsp; <em>PurpleAccount</em> has "alias" and "name" attributes like <em>PurpleBuddy</em>, which works fine for Facebook.&nbsp; But for some reason <strong>pidgin_interface.PurpleBuddyGetAlias(</strong><em>PurpleAccount</em> buddy<strong>)</strong> returns a blank string, and "name" is their screenname, not the alias I gave them in my buddylist.&nbsp; What makes things worse is that <em>PurpleAccount</em> is a child of <em>PurpleBuddy</em>, and so it seems nigh impossible to get the alias from the mere account object.&nbsp; So I get things like "Sellers signed onto AIM" and "$PAULS_SCREENNAME_HERE is typing..."</p>
<p>Kinda dumb.</p>
<p>Also the Pidgin devs, in their infinite wisdom, decided to throw <strong>BuddyStatusChanged()</strong> twice, <em>but only when a buddy goes away</em> and <em>only for buddies on AIM</em>.&nbsp; Thankfully! the function returns not only the current status, but the previous status as well.&nbsp; And the "duplicate" throw has both the statuses (statii?) the same, which made for an easy, albeit somewhat frustrating, fix.</p>
<p>Anyway, yeah.&nbsp; I'd say I've been doing good with dbus and Python having only started getting my hands dirty a mere eleven hours ago.</p>
<div class="update">
<div class="udate">6/30/08<br />11:31</div>
<div class="utext">
Disabled all Facebook notifcations save for the messages (easy to reenable).&nbsp; The way the pidgin plugin works is that it polls Facebook every so many minutes and updates everything at that time.&nbsp; This would lead to a flood of notifications about people who had signed on/off, become idle or were now available, etc.&nbsp; It added up very quick.&nbsp;<br />
&nbsp;<br />
&nbsp;
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/06/2008/python-is-weird/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boom</title>
		<link>http://sugardeath.net/06/2008/boom</link>
		<comments>http://sugardeath.net/06/2008/boom#comments</comments>
		<pubDate>Mon, 23 Jun 2008 10:20:45 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=1695</guid>
		<description><![CDATA[I think I just got hit with the biggest wave of apathy ever.&#160; Here I am up at 4AM, class in eight hours, and I don't feel the need to go to sleep anytime soon.&#160; Just finished the new Futurama movie (The Beast With a Billion Backs, out Tuesday), and I have to say that [...]]]></description>
			<content:encoded><![CDATA[<p>I think I just got hit with the biggest wave of apathy ever.&nbsp; Here I am up at 4AM, class in eight hours, and I don't feel the need to go to sleep anytime soon.&nbsp; Just finished the new Futurama movie (<em>The Beast With a Billion Backs</em>, out Tuesday), and I have to say that it's pretty good.&nbsp; Definitely some sort of message thing going on there, will have to rewatch to pick up on it all.&nbsp; S'all about love.&nbsp; With a tentacle.&nbsp; Who's a polygamist.&nbsp; Also the League of Robots.</p>
<p>I've been having some troubles with Sovereign (formally Frank(enstein)).&nbsp; I copy over the console only debian live install to a USB drive, boot from it, but I am unable to find an install script.&nbsp; OK, fine, we'll do it the easy way: copy a gnome version to the USB.&nbsp; "Failed to load kernel: linux."&nbsp; What a jerk, eh?&nbsp; </p>
<p>It's definitely my graphics card, as Sovereign displayed low resolutions perfectly on my monitor.&nbsp; Well poop.</p>
<p>Did some math while talking to Jason earlier: At twenty-four hours a week, ten dollars an hour, I should be pulling in four hundred-eighty dollars every two weeks pre-tax.&nbsp; That's nine hundred-sixty a month pretax.&nbsp; That's...&nbsp; maybe I can finally start <em>thinking</em> about replacing my ailing computer.&nbsp; </p>
<p>WordPress is saying "Draft saved at 2:05:05 am" even though the timezone is set to UTC-5 and it displays 4:05 am just fine there.&nbsp; Weird.&nbsp; I wonder what it'll say on the main page when I finally post.</p>
<p>Caught the last forty minutes of the program on National Geographic about Lakshmi, the girl with eight limbs.&nbsp; Neat stuff.&nbsp; Apparently the other limbs belonged to a partially developed, parasitic twin.&nbsp; And right after that?&nbsp; <em>The Science of Dwarfism</em>.&nbsp; This kind of stuff intrigues me immensely.&nbsp; I am so glad we get NatGeo.&nbsp; I don't think we did last semester, or maybe fall semester..&nbsp; I remember there being commercials for stuff that I was sad I couldn't watch because we didn't get the channel.&nbsp; The Science channel has also had some cool stuff on it, specifically <em>How It's Made</em>.&nbsp; The glove making process was especially badass: they had a hand glove inverting machine!</p>
<p>I FINALLY found an mp3 of the american Pokemon theme.&nbsp; Kinda lame quality, though.&nbsp; Now to find the japanese opening.&nbsp; Actually, I just found a better quality one.&nbsp; It's itunes m4a, though.&nbsp; Conversion time!</p>
<p>Done.&nbsp; Much better.</p>
<p>Played some Audiosurf the other night because Casey's playing it really made me want to.&nbsp; Good stuff.&nbsp; It's really neat, I'm rediscovering some of the songs I have in my collection.&nbsp; </p>
<p>Sovereign won't see my second 120GB for some reason.&nbsp; That's the one with the backup of all my movies and such.&nbsp; This is bothersome.&nbsp; I'll have to whip out my ide->usb controller card and see if I can't read it on AndrAIa.&nbsp; Problem is that the USB cable is on my printer currently and that's an awful lot of work (not really, I just don't feel like unhooking it because my printer is under my desk).&nbsp; </p>
<p>POKEMON OHHHH YOU'RE MY BEST FRIEND<br />
IN A WORLD WE MUST DEFEND</p>
<p>Perl script worked perfectly once I figured out how the XML libraries were parsing Microsoft's shittastic XML.</p>
<p>Seriously, what is this?:</p>
<pre class="wp-code-highlight prettyprint linenums:1">
&amp;lt;media src=&quot;C:\Music\The World Ends With You OST\01 It's So Wonderful.mp3&quot; albumTitle=&quot;The World Ends With You OST&quot; albumArtist=&quot;Square Enix&quot; trackTitle=&quot;It's So Wonderful&quot; trackArtist=&quot;Square Enix&quot; duration=&quot;99082&quot; /&gt;
</pre>
<p>Shouldn't it be more like:</p>
<pre class="wp-code-highlight prettyprint linenums:1">
&amp;lt;media&gt;
  &amp;lt;src&gt;C:\Music\The World Ends With You OST\01 It's So Wonderful.mp3&amp;lt;/src&gt;
  &amp;lt;albumTitle&gt;The World Ends With You OST&amp;lt;/albumTitle&gt;
  &amp;lt;albumArtist&gt;Square Enix&amp;lt;/albumArtist&gt;
  &amp;lt;trackTitle&gt;It's So Wonderful&amp;lt;/trackTitle&gt;
  &amp;lt;trackArtist&gt;Square Enix&amp;lt;/trackArtist&gt;
  &amp;lt;duration&gt;99082&amp;lt;/duration&gt;
&amp;lt;/media&gt;
</pre>
<p>It's almost like they're trying to embed the song in a webpage or something.</p>
<p>Nevermind that the time is soooooo ridiculously wrong.&nbsp; Is it in milliseconds or something?&nbsp; I'm pretty sure m3u uses plain old seconds.</p>
<p>But yeah, the perl script worked perfectly on all my Zune playlists.&nbsp; The only problem is that I now have two music libraries (one in Windows and one in Linux) and changing "C:\Music" to "/home/satoshi/Music" ended up with a couple of missing songs... enough so that I edited the script to "/WINDOWS/Music."&nbsp; Kinda lame...&nbsp; I really need to consolidate my music libraries, but putting it on one drive or the other...&nbsp; Actually, why do I even have them separate?&nbsp; I remember there being some trouble with colons and that the Zune didn't read all of my linux directories?&nbsp; But I could be making that second one up, and the colon thing affected a whopping three directories (perl scripts are fun).&nbsp; What I really need is a third harddrive formatted FAT32 dedicated soley to my music.&nbsp; Good thing WinXP allows one to mount drives as directories (though the process is sort of contrived), so there's no need to change anything in either OS.&nbsp; Huzzah.&nbsp; Now to find another drive :/</p>
<p>Ugh, the sky is lighting up: the first rays of day.&nbsp; Time to hit the hay. </p>
<blockquote><p>
Last edited by Tony on June 23, 2008 at 04:29<br />
Draft Saved at 2:38:33 am.
</p></blockquote>
<p>What could that possibly mean?</p>
<p>I'm debating whether to go to sleep or just pull an all-nighter and go to sleep at a normal time for work on Tuesday.&nbsp; I've had a terrible sleep schedule this weekend and this would be a good way to right it out.</p>
<p>Probably going on a trip to the Apple Store today!&nbsp; Not to buy anything, just to look around.&nbsp; Should be fun.&nbsp; Went to Best Buy the other day, those new Apple keyboards are damn nice.&nbsp; </p>
<p>Though I should probably sleep just a bit, my tonsils started hurting more around 1AM or so.&nbsp; They had been fine all weekend too.&nbsp; I highly doubt it will develop into GRAY GOOP COVERING EVERYTHING this time, or even just ew little yellow guys like the first time.&nbsp; </p>
<p>Yeah, sleep it is.&nbsp; I am getting tired.</p>
<p>Casey had a friend over Friday and Saturday.&nbsp; Margie, I believe.&nbsp; Tall, about Casey's height, I'd say.&nbsp; Totally didn't expect her to sound and basically act just like Alyssa.&nbsp; Like, personality and everything.&nbsp; It was the weirdest thing.&nbsp; Cool gal (well, she'd have to be if she's basically Alyssa's clone).&nbsp; </p>
<p>Things are kinda sad socially.&nbsp; Two breakups last weekend, one this.&nbsp; </p>
<p>Yay Xbox Live! demos.&nbsp; Armored Core 4 is a must purchase, even though we don't even own the Xbox  :razz:   I had so much fun with AC3 on the PS2, and from watching Casey play the AC4 demo it looks to be even better.&nbsp; </p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/06/2008/boom/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Surpise!</title>
		<link>http://sugardeath.net/06/2008/surpise</link>
		<comments>http://sugardeath.net/06/2008/surpise#comments</comments>
		<pubDate>Fri, 20 Jun 2008 05:51:48 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sugardeath.net/?p=1693</guid>
		<description><![CDATA[Microsoft aren't total douchebags!&#160; The playlist format they use for the Zune aren't m3us, which they should be (why wouldn't they be? M3us are easy), but whatever.&#160; What they ARE is XML.&#160; Probably some bastardized form thereof, but just the same Firefox recognizes them as XML and I'm sure the perl XML libraries won't have [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft aren't <em>total</em> douchebags!&nbsp; The playlist format they use for the Zune aren't m3us, which they should be (why wouldn't they be? M3us are easy), but whatever.&nbsp; What they ARE is XML.&nbsp; Probably some bastardized form thereof, but just the same Firefox recognizes them as XML and I'm sure the perl XML libraries won't have a problem with them.&nbsp; Time to write me a perl script to convert zune playlists to something I can use in Audacious (Amarok is still being a bitch and I really don't need the full-on features of a music _manager_.&nbsp; That's what the zune player is for, and only with the zune itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://sugardeath.net/06/2008/surpise/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

