That's how many miles of road Google says lie between my house and my new dorm. Tomorrow my dad and I will slowly start eating away at those.
Orientation starts in a bit over a week. First round of quals is in less than two weeks. Egads.
It's amazing how much of your life can fit inside a relatively small car...
Tuesday, August 18, 2009
Saturday, January 3, 2009
kde 4.1
Well, I figured I might as well try out the newest KDE version. I'm not a KDE user, on my laptop I use XFCE and on my desktop I use GNOME + Compiz Fusion.
I tested it on my laptop (running Fedora 10). I just did yum groupinstall kde-desktop and then logged out of my xfce session and logged into XFCE.
First impressions:
I tested it on my laptop (running Fedora 10). I just did yum groupinstall kde-desktop and then logged out of my xfce session and logged into XFCE.
First impressions:
- Aesthetically, it's not bad, though I don't like the window decorations and the widget styles and stuff. I tried changing them but none of the defaults really suited me. Getting rid of the ugly title stripes makes it look a lot better. The panels and plasmoids are pretty good looking though.
- The bottom panel is too big, imo. I tried resizing it, but it crashed, taking down nm-applet and my wireless with it. Oops.
- Kopete may have more features than Pidgin, but I don't like the way it looks/behaves. Lots of cool default plugins though, and it looks like it has video support?
- Konqueror is an ok browser, though I like my Firefox + Vimperator.
- krunner (alt-f2) is really nice, much better than the xfce and gnome run dialogs.
- I don't like the way the main menu is set up, though the searchbar is nice.
- The system settings is ok, kind of like the XFCE system settings but prettier. It's a lot like the Mac OS X dialog.
- 2d stuff is ... SLOW. Also I can't figure out how to enable compositing even though I know my card supports it (and compositing works without a hitch in GNOME and XFCE4).
- Dolphin seems ok, though I think I like nautilus better. The single-click to open default is very annoying. Split view is nice.
- I used to be an Amarok user before switching to Exaile. Amarok 2 looks nice and has a lot of potential... but it's still missing most of the features that made Amarok 1.4 great.
- Overall, I think KDE 4 is still very much a work in progress... it's usable, but it's not comfortable... and I don't think it's just that I'm not used to it.
Tuesday, December 30, 2008
grad schools...
CU Boulder uses paypal for grad application processing... lol.
In other news, I've so far submitted my applications for CU Boulder, Caltech, MIT, UCLA, UCSD, UCSB and Berkeley. I've only Arizona and Washington left to do. For Washington, it's a matter of hitting submit and paying the app fee.
In worse news, one of my recommenders still hasn't submitted her recommendation for me... even though the deadline for some of these programs was 2 weeks ago. I realize it doesn't really matter that it's late, but I do wish she'd submit it soon.
In other news, I've so far submitted my applications for CU Boulder, Caltech, MIT, UCLA, UCSD, UCSB and Berkeley. I've only Arizona and Washington left to do. For Washington, it's a matter of hitting submit and paying the app fee.
In worse news, one of my recommenders still hasn't submitted her recommendation for me... even though the deadline for some of these programs was 2 weeks ago. I realize it doesn't really matter that it's late, but I do wish she'd submit it soon.
Sunday, December 28, 2008
Latex Flash Cards
I posted a new program (python script, really) I wrote a while ago on my program page. It's a simple flash card program that reads properly-formatted plain text files. Also, the flashcards may contain latex.
Screenshot:

If you want to use it, you'll need python, latex, dvipng and probably a Unix-ish environment (Linux, Mac OS X, cygwin, etc.). I've only tested it on Linux (Ubuntu and Fedora), though.
I don't think it will work on Windows proper because I don't think os.system() works properly on Windows (in my limited experience trying to get a python script running on Windows). Also, I use Unix-like command flags, whereas the windows versions of dvipng and latex probably use Windows-style command flags...
I originally wrote latex_flash.py this summer to help study for the physics GRE. To that end, I have included a sample deck of flashcards containing some physics formulas. I have a bunch of small utilities like this I've written over time, but most of them aren't in any condition to be distributed.
Making something fit for distribution is difficult and time-consuming: you need instructions, helpful error messages, comments, a simple way to configure (in this sense, latex_flash.py kind of fails... you have to modify the source in order to configure stuff), general polish, and a name for the program (again, here latex_flash.py kinda fails).
Screenshot:

If you want to use it, you'll need python, latex, dvipng and probably a Unix-ish environment (Linux, Mac OS X, cygwin, etc.). I've only tested it on Linux (Ubuntu and Fedora), though.
I don't think it will work on Windows proper because I don't think os.system() works properly on Windows (in my limited experience trying to get a python script running on Windows). Also, I use Unix-like command flags, whereas the windows versions of dvipng and latex probably use Windows-style command flags...
I originally wrote latex_flash.py this summer to help study for the physics GRE. To that end, I have included a sample deck of flashcards containing some physics formulas. I have a bunch of small utilities like this I've written over time, but most of them aren't in any condition to be distributed.
Making something fit for distribution is difficult and time-consuming: you need instructions, helpful error messages, comments, a simple way to configure (in this sense, latex_flash.py kind of fails... you have to modify the source in order to configure stuff), general polish, and a name for the program (again, here latex_flash.py kinda fails).
Saturday, December 27, 2008
Under the bridge?
I can't tell if the author of http://sciencedefeated.wordpress.com/ is a troll or an idiot.
For example, here is an excerpt from a post entitled The Three Thousand Year Reich of Negative Numbers:
Godwin's law notwithstanding, it's astonishing to me that someone can stand by those statements. The entire blog is full of such nonsensical drivel...
For example, here is an excerpt from a post entitled The Three Thousand Year Reich of Negative Numbers:
The curious reader might be interested to know that Diophantus and the Greek thinkers rejected the concept of negative numbers (and irrational numbers, of course) as “patently ridiculous” and “idiotic.” And we are a Greek-based society. So to borrow David Hume’s plaintive question - Then whence Negative Numbers? The answer to this question lies in the Orient. If there was ever a “yellow menace,” negative numbers are it. The Chinese, the Indians, and the Muslims gave us negative numbers. Not the superior Greeks. Is this a coincidence? I think not. These countries have had a vested interest in the concept from the very beginning.
Fortunately, however, negative numbers are behind a very thin conceptual veil. Once removed, it is easy to see the “Chinaman behind the curtain.” I’ll just say QUED ahead of time. Observe:
I can have three horses, but I cannot have negative three horses. Some people, suffering from Cognitive Dissonance (CD), suggest that “debt” is a manifestation of negative numbers. But that’s really just arguing semantics. Wittgenstein and Derrida disproved semantics back in the 20th century. In any case, what’s really going on in the situation is not that I have negative horses; rather, I owe some positive horses (Positive horses=horses that exist; countable horses. Who would want to be owed imaginary horses?). We can get by just fine without negative numbers. Besides, the Universe is full of stuff, not -stuff. ...
Godwin's law notwithstanding, it's astonishing to me that someone can stand by those statements. The entire blog is full of such nonsensical drivel...
Friday, December 26, 2008
The Wilhelm Scribble
Danny and I are starting a webcomic thingie. We'll see how long we can keep this up. Right now the art style is kind of sketchy; it will probably vary tremendously.
Right now, it's called theWilhelm Scribble. If the etymology is unfamiliar, click on this here link :)
Right now, it's called theWilhelm Scribble. If the etymology is unfamiliar, click on this here link :)
Thursday, December 25, 2008
I suck at wrapping things
So among clothes and some other stuff, I received a Wacom graphics tablet (A Bamboo, if you're curious... those are the cheap ones lol).
The stylus worked w/ hotplugging, but it took a little while to set up properly (apparently Fedora 10 has no xorg.conf by default, but system-config-display will create one for you, from which you can edit it in accordance to the instructions on the Linux Wacom page). Anyway, as is probably plainly obvious, I'm not quite used to it yet; the whole absolute positioning thing confuses me. Hopefully that will improve. At the very least, I can more easily transcribe my terrible handwriting to my computer.
My handwriting has always been atrocious. Even when it's legible, it's ugly. The worst things are ζ and ξ. When somebody dares use those as variables, I just draw squiggly lines because I can't do any better. I haven't run across them both being used in the same context, thankfully.
Winter Break
Kind of boring / uneventful.
Here are some things I've done:
That is all for now
Except for some weird reason
I wrote a haiku
Here are some things I've done:
- I upgraded my laptop to Fedora 10. For some reason the in-place update w/ the DVD meant for updating didn't seem to work (gave an error about a corrupt package, so could have been a corrupted {download | burn} I suppose), so I just did a fresh install. My laptop actually has /home mounted on a separate partition, which made the process pretty convenient. Unfortunately, my slow home connection (by my dorm room connection standards) made installing all the packages I use (who knew there would be so many?) kind of a pain. Some comments:
- Plymouth is cool. I don't boot all that often, but it actually looks cool now (better than any other boot animation I've seen, IMO).
- AMD/ATI needs to work on timely support. I have an x600 in my laptop, and though the open source radeon driver works pretty well, the proprietary driver is nice to have. I think it took something like four months for Fedora 9 support... hopefully it will be less than that.
- Pulseaudio seems to work worse than it did in F9. I've played around with the settings a bunch and it works better now than at first install, but still not as good as F9. It seems to use a lot of CPU and it doesn't work well with Wesnoth (read, SDL) audio (though that may be because I compiled the development version of Wesnoth from source and missed some configure flag?)
- Weird XFCE bug with scim (Smart Common Input Platform) that disables the use of the the XFCE Window Manager Settings and Window Manager Tweak dialogs... I think killing some processes fixed it, but I ended up removing scim altogether. Hopefully I won't need it.
- Yay new Nautilus version with tabs w00t!
- Supposedly PackageKit has improved? I think it has, it doesn't hang as often (though there was that dbus bug which stopped it from functioning). I still prefer using yum from the command line.
- Overall, I thought it was a solid release, though perhaps not as solid as F9 (though I'll stick with it for updated software et al.)
- Plymouth is cool. I don't boot all that often, but it actually looks cool now (better than any other boot animation I've seen, IMO).
- I've started playing around with mercurial a bit. I'm kind of hoping to use it for source control for a few classes next quarter (Why mercurial over git? I have to collaborate w/ Windows users, and mercurial has better windows support.) To get more used to mercurial and to kill some time, I've started writing a relatively unambitious 2-D top-down shooting game in python (using pygame). Maybe I'll finish it, maybe I won't... we'll see.
- My parents had a Christmas party (which, incidentally, just ended a few minutes ago), and they wanted to have karaoke. Now, we have this karaoke machine that plays CD+G's, but we've only the sample CD+G that came with it (which contains such smash hits as Take Me Out to the Ballgame and America the Beautiful). Clearly that would not do. Fortunately, it seems MP3+G's are readily available on the Internets. I found a python script cdg2bin (part of cdgtools) which was ridiculously useful for what I wanted to do. I just put the .mp3 and .cdg tracks I wanted to burn in a folder, ran cdg2bin.py *.cdg inside that folder and then used cdrdao to burn the generated bin/toc files. Easy as π
- Freenx is kind of cool, though I don't really usually want to forward over my entire desktop, so ssh -YC is more useful for me...
- I've offically read all of Saturday Morning Breakfast Cereal. Great comic, and it's inspired me to try out this comic-drawing thing again. Alas, I'm plagued by a lack of ideas that might appeal to most people:
I guess most people don't make the same association between python and Duck Typing that I do. Oh well. - I'm looking forward for a cessation of Christmas carols. Me no likey.
That is all for now
Except for some weird reason
I wrote a haiku
Tuesday, February 26, 2008
Tuesday, January 15, 2008
One easy way to transfer files with Gnome
Transferring files from one person to another can be a frustrating process. E-mail won't work for files that are too big; using instant messenger can be problematic if you're using two different clients or someone has a firewall; using something like yousendit is very annoying, etc.
One foolproof way is to use an http server (like apache) and hard link the file you want to send into your apache directory and then send a link to the person. This will work, but it is kind of cumbersome.
If you're using nautilus however, you can install the nautilus-actions plugin (you can get it in ubuntu with sudo apt-get install nautilus-actions). This plugin allows you to add stuff to the right click context menu. Once you have it installed, under Gnome, it should appear under System->Preferences.

In this case, I created an action that uses bash to call a shell script with the argument of the full path of the selected file. (my script is in my home folder, but obviously it can be wherever you want it to be). The Legend button will show you the special variables you can use.
The shell script I wrote is as follows:
It takes the argument of a path to the file, and then hard links it into this folder I created called transfer in my web root (I just did that so that transferred files wouldn't clutter my www root).
Then, it chmods the new link 0777 so that anyone can axess it (ok, it really only needs to be 0700, but whatever).
Then, the spaces are changed to %'sto form a valid url, and the url to the file is put in the X clipboard (if you don't have a static ip, you can write something to get it).
One caveat is that the X Clipboard is kind of weird, you can't ctrl-v from it, instead you must middle click to paste in most Gnome apps... and it will only paste once. I haven't figured out how to put something in the "normal" clipboard, so for now this will have to do.
Now all you have to do to transfer a file to someone is right click on it, select the action you just created, and middle click to paste the url in the IM/e-mail/whatever. Ok, maybe it's not worth it to go through all this trouble, but I thought it was cool...
One foolproof way is to use an http server (like apache) and hard link the file you want to send into your apache directory and then send a link to the person. This will work, but it is kind of cumbersome.
If you're using nautilus however, you can install the nautilus-actions plugin (you can get it in ubuntu with sudo apt-get install nautilus-actions). This plugin allows you to add stuff to the right click context menu. Once you have it installed, under Gnome, it should appear under System->Preferences.
In this case, I created an action that uses bash to call a shell script with the argument of the full path of the selected file. (my script is in my home folder, but obviously it can be wherever you want it to be). The Legend button will show you the special variables you can use.
The shell script I wrote is as follows:
if [ -n "$1" ]
then
ln "$1" /var/www/transfer || exit 1 #do the hard link
a=`basename "$1"`
chmod 0744 /var/www/transfer/"$a" || exit 1 #make permissions right
encoded=`echo "$a" | sed -e 's/ /%20/g'` #change spaces to %20
echo http://your_ip_address/transfer/"$encoded" | xclip #copy url to clipboard
fi
It takes the argument of a path to the file, and then hard links it into this folder I created called transfer in my web root (I just did that so that transferred files wouldn't clutter my www root).
Then, it chmods the new link 0777 so that anyone can axess it (ok, it really only needs to be 0700, but whatever).
Then, the spaces are changed to %'sto form a valid url, and the url to the file is put in the X clipboard (if you don't have a static ip, you can write something to get it).
One caveat is that the X Clipboard is kind of weird, you can't ctrl-v from it, instead you must middle click to paste in most Gnome apps... and it will only paste once. I haven't figured out how to put something in the "normal" clipboard, so for now this will have to do.
Now all you have to do to transfer a file to someone is right click on it, select the action you just created, and middle click to paste the url in the IM/e-mail/whatever. Ok, maybe it's not worth it to go through all this trouble, but I thought it was cool...
Thursday, December 27, 2007
lsof for windows
I was on my sister's computer (Windows XP) today because she wanted me to format her new external hard drive for her. Unfortunately, some program prevented me from doing so (it was accessing the device). I disabled the usual suspects (anti-virus, Google Desktop, etc.) but to no avail.
Unfortunately, Windows doesn't have anything like lsof which lets you see which processes are accessing which files. After a little bit of googling, though, I found the excellent Process Explorer. This program was written by Sysinternals (which has since been bought my Microsoft) and gives access to all sorts of useful information. In particular, you can search for a handle (for example, "F:\") and see what process is using what resource (in my sister's case, it was apparently mim.exe, which probably has something to do with MusicMatch or something...)
I wonder why Microsoft doesn't include something like this by default though... (the task manager is woefully inadequate...)
Unfortunately, Windows doesn't have anything like lsof which lets you see which processes are accessing which files. After a little bit of googling, though, I found the excellent Process Explorer. This program was written by Sysinternals (which has since been bought my Microsoft) and gives access to all sorts of useful information. In particular, you can search for a handle (for example, "F:\") and see what process is using what resource (in my sister's case, it was apparently mim.exe, which probably has something to do with MusicMatch or something...)
I wonder why Microsoft doesn't include something like this by default though... (the task manager is woefully inadequate...)
Labels:
lsof,
open files,
process explorer,
windows,
windows xp
Tuesday, December 18, 2007
Aren't they supposed to be ADDING stuff?
Today, I stumbled upon this list of features removed from Vista. Some of them are understandable (like the deprecation of gopher support... since nobody actually uses that anymore), but others are utterly bewildering.
Some highlights:
- "Although it is possible to customize the action Windows will take when the hardware Power button is pressed, it is no longer possible to set power options to ask the user every time what action to take upon pressing it. Therefore, selecting a different power action in each case is not possible."
I hear the next version will randomly choose which action to take. - "It is not possible to back up and restore licenses in Windows Media Player 11."
Sweet, another reason to re-buy content you already own. Again. (Or maybe another reason to steer clear of DRM'd stuff in the first place) - "In the Windows Vista version of the Backup application, it is not possible to specify what files and folders to back up and what files and folders are to be excluded. Users can select only document categories to back up. Files from a specific path or over the network also cannot be backed up due to this reason. Backup also does not present a list of files that will be backed up."
No wonder Vista took so long, they were too busy replacing previously functional components with dog shit. - "It is not possible to override AutoPlay by pressing the SHIFT key as was possible in Windows XP, though it can still be disabled through Control Panel."
Well, hopefully this will convince people to disable AutoPlay once and for all, since it's one of the stupidest things to do security-wise... (Wouldn't a great prank be to burn a picture CD for a friend with an autorun script that deletes all their files? And if they use Vista, they wouldn't have a backup because the backup utility is useless...) - "The user interface for advanced file type functionality (such as manually defining a new file extension, defining/editing custom secondary actions for file types, showing extensions only for specific file types, or customizing the icon for file types) has been removed. Windows Vista-compatible applications are expected to use the new Default Programs API which allows per-user file type associations for applications."
I guess the per-user thing is nice (though shouldn't all such settings be per user anyway? I have no clue if they were like that before or not.) Another plus is that it prevents your roommate from changing your 'My Computer' icon to goatse... in fact that's the only reason I can think of why they might have done this... - "The graphical representation and progress indicator of the defragmentation process have been removed from Windows Disk Defragmenter. It is also not possible in the RTM release to manually specify which drives to defragment from the GUI without using the command line defrag.exe utility. Windows Vista Service Pack 1 includes the ability to control which volumes the disk defragmenter runs on."
Actually, this is a feature in disguise. The more familiar people become with the command line, the more likely they are to move to Linux. At last, Microsoft puts their users' interests in front of their own... - "Sound Recorder in Windows Vista can no longer open audio files. Moreover, it cannot save in lossless (uncompressed) WAV format when run without using any switches; instead, it saves in lossy 96 kbit/s WMA format. Only the version of Sound Recorder from the N editions of Windows Vista saves audio in WAV format by default. Also, all the basic audio processing features such as format conversion, sample rate conversion, adding echo, reversing the audio, changing volume and playback speed, splitting, inserting and mixing audio have been removed, as has the graphical viewing of the sound wave spectrum."
Sound Recorder used to be the shittiest audio program around. Amazingly, they've managed to make it even shittier. I'm impressed. - "Support for reading Microsoft Office Word documents (*.DOC) has been removed from WordPad."
Somewhat understandable, because they probably didn't want to update WordPad to read newer Office formats, but worth mentioning nonetheless.. - "The Pinball game has been removed."
Sadly, that was the best game they had...
Fortunately for me, I've switched to an operating system that's constantly gaining features instead of losing them...
Labels:
microsoft,
operating system,
sound recorder,
vista,
windows
Saturday, December 15, 2007
wtf is a command
After a friend said "man wtf" in an IM, I thought it might be funny to type that into my shell and paste the output (never mind that it wouldn't actually be funny). I was expecting something like:
cozzy@localhost: man wtf
No manual entry for wtf
Instead, I was greeted with a man page for a program called wtf, apparently part of the bsdgames collection that I must have installed at some point. Go figure.
[cozzy@localhost ~]$ wtf is this
Gee... I don't know what this means...
cozzy@localhost: man wtf
No manual entry for wtf
Instead, I was greeted with a man page for a program called wtf, apparently part of the bsdgames collection that I must have installed at some point. Go figure.
[cozzy@localhost ~]$ wtf is this
Gee... I don't know what this means...
Friday, December 14, 2007
Hello World
Yeah, I thought I'd start blogging again. We'll see how long this lasts.
This is my now-defunct previous attempt.
This is my now-defunct previous attempt.
Subscribe to:
Posts (Atom)
