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.
Tuesday, December 30, 2008
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...
Subscribe to:
Posts (Atom)