Monday, September 23, 2013
Monday, April 8, 2013
Quick intro to git
Here are some quick steps to setup a project under git - Say, you have a project called project at /path/to/project
git add f1
1. Initialize the git repository
cd /path/to/project
git init
This will create a directory called .git at /path/to/project
2. git add file1 file2 ...
Add the files that you'd like to be tracked
3. git commit -m "comments for commit"
This will "commit the changes
After that, you can make changes to the file and then do a "git diff" to see the changes
Unlike other repositories, you need to do "git add" each time
Say, you make changes to file - f1 - to put the changes into the repository, you need to do
git add f1
git commit -m "comment"
Friday, March 15, 2013
Thursday, March 14, 2013
Running cron under cygwin
Not a big deal at all ... I got it working on windows8 today ...
All I had to do was - run cron-config (after installing cron under cygwin ofcourse) .. inside a cygwin terminal that was started as administrator!
Thanks to this link - http://stackoverflow.com/questions/707184/how-do-you-run-a-crontab-in-cygwin-on-windows
All I had to do was - run cron-config (after installing cron under cygwin ofcourse) .. inside a cygwin terminal that was started as administrator!
Thanks to this link - http://stackoverflow.com/questions/707184/how-do-you-run-a-crontab-in-cygwin-on-windows
Saturday, February 23, 2013
3 steps to HTTPS on Ubuntu
Got it from https://help.ubuntu.com/10.04/serverguide/httpd.html
1. sudo a2enmod ssl
2. sudo a2ensite default-ssl
3. sudo /etc/init.d/apache2 restart
SSL clinent/server using openssl
Telnet is nice program that allows us to create a TCP socket connection with a server and then interact with the server on the terminal. This ofcourse does not work when the server uses SSL. That is where openssl comes to the rescue.
openssl s_client -connect imap.gmail.com:993
Similarly an SSL server can be cooked up instantaneously -
openssl genrsa 1024 > key
openssl req -new -x509 -nodes -sha1 -days 365 -key key > cert
openssl s_server -accept 12345 -cert cert -key key
openssl s_client -connect imap.gmail.com:993
Similarly an SSL server can be cooked up instantaneously -
openssl genrsa 1024 > key
openssl req -new -x509 -nodes -sha1 -days 365 -key key > cert
openssl s_server -accept 12345 -cert cert -key key
Tuesday, January 29, 2013
Midi rendering using Javascript
Wow ... I accidentally ran into this awesome piece of software ..... https://github.com/gasman/jasmid
MIDI synthesis in javascript - that too, very neat looking javascript :)
http://matt.west.co.tt/music/jasmid-midi-synthesis-with-javascript-and-html5-audio/
MIDI synthesis in javascript - that too, very neat looking javascript :)
http://matt.west.co.tt/music/jasmid-midi-synthesis-with-javascript-and-html5-audio/
Saturday, January 19, 2013
Raspberry Pi - in India
I got my raspberry pi yesterday and I was able to get it to run today!!!
Things I had to purchase/use
Things I had to purchase/use
- Raspberry pi - Rs 2964
- SD card - 8 GB (I hear that >2 G would do) - Rs 1000
- You might have this already - in your camera
- USB keyboard/mouse
- Ethernet cable - I already had this for my Airtel set top box
- RCA video cable (usually Yellow). I have not been able to get the audio to work yet. Looks like regular white/red audio cables do not work
- Micro USB power supply - I could use my HTC mobile phone charger for this
I burnt the raspberry pi image on the SD card using the instructions mentioned here - http://www.raspberrypi.org/downloads
After that I was able to get the whole thing connected and started. Raspberry Pi started off without any problem. For logging in, you need username=pi and password=raspberry
Next steps
- Buy an HDMI cable
- Buy an ethernet cable
- Figure out how to get wifi working - I'd need to buy a wifi dongle for this.
Subscribe to:
Posts (Atom)