I decided to run wordpress myself and use my own domain name. From now on all new things will be at www.andrewfree.com
Moving Servers
27 04 2009Comments : 3 Comments »
Tags: changing, new, server, wordpress
Categories : Uncategorized
Fractions & Decimals In Python
24 04 2009Made in one day
. It just takes either a decimal and turns it into a fraction (reduced) or takes a fraction and reduces it.
Code Below
My Python Code!
Examples
rawr:Desktop toXic$ python fractions.py
Choice 1 for decmial to reduced fraction, choose 2 for just reduced fraction: 1
Enter a decimal: .25
fraction is: 1/4
rawr:Desktop toXic$ python fractions.py
Choice 1 for decmial to reduced fraction, choose 2 for just reduced fraction: 2
Enter your fraction: 421/1200
fraction is: 421/1200
rawr:Desktop toXic$ python fractions.py
Choice 1 for decmial to reduced fraction, choose 2 for just reduced fraction: 2
Enter your fraction: 300/500
fraction is: 3/5
Comments : 1 Comment »
Tags: decimals, fractions, math, python, reducing
Categories : Uncategorized
Verifying Checksums
15 04 2009When you download something on the internet it goes through lots of routers and networks. When you receive the file it has a checksum, you can verify this checksum on osx and see if it was changed on its destination to you from where ever its from. (If the person its from gives you the checksum before the transfer). It looks a little something like this.
- openssl sha1 /path/to/file
An example:
myComputer# openssl sha1 views.py
SHA1(views.py)= 7690e79719d9080942b8aa1a8f9ca743da718aa1
Comments : 1 Comment »
Categories : Uncategorized
What.cd Python Music Script
15 04 2009Hey this is a simple script python script in python for what.cd users who use Transmission as their bit-torrent client (OSX and Linux only (I think)). This is only to be used for free music please do not change it to download any non-free music.
How it Works. You will need the twill library, BeautifulSoup (library to parse HTML), and simplejson (Encodes POST data in JSON format). These can easily be found on the web. You basically just enter in an artist (after logging in) and they either choose an album or see a list of available albums then choose one. Next it will prompt you for what exactly you want (EX: mp3 320 CD, V2, FLAC, etc..) After that it will automatically add that album to your bit-torrent client (Transmission).
I should point out, the main idea of this is through an ssh shell via an iphone. So you could download something at home why your on the go.
Disclaimer: Use at your own risk, I take no responsibility for anything you do, and or mess up. Example, if you some how manage to screw up your whole hard drive, dont come crying to me. Thanks and enjoy!
Comments : 1 Comment »
Tags: free-music, legal-torrents, music, python, scripts, torrents, what.cd
Categories : Uncategorized
Reading Man Files In Text Edit
6 04 2009The point of this blog is going to be to provide useful computer tips and also tell what I have been up to. Now on with the post.
This is hopefully going to be a useful tip to some people. For those of you who are new to unix (on osx or linux) and are reading about commands using “man [command]” in the terminal it gets very annoying to move through it at the slow speed of using arrow keys, here is a little fix. In terminal your going to type (I use zip as the example command)
- man zip >test.txt
- open -e test.txt
- rm test.txt
Now you should have a text edit window with that man file up!
Enjoy
Comments : 1 Comment »
Tags: help, mac, man, osx, terminal, unix
Categories : Uncategorized
Good Tech SItes
4 04 2009If your one of those people who just likes to read about technology some sites I recommend are
www.gizmodo.com & http://nerdlove.tumblr.com/ & for the true hardware nerds http://www.tomshardware.com/us/#redir enjoy
Comments : Leave a Comment »
Categories : Uncategorized
First Blog Post!
4 04 2009Its weird… I want to do all the html and css myself
. WordPress stop doing me favors!
Well that was kinda a short post, almost like a twitter message. I shall tell you a bit about myself.
- 16
- Go to CAL and Barlow
- Love to snowboard
- I also enjoy learning about computers, programming and security in specific.
- And wordpress is pissing me off
Comments : 1 Comment »
Categories : Uncategorized