As a person who enjoys computers and programming, I have noticed that there are a lot of jokes and quotes that I find funny that other people don’t. So for all my fellow programmers out there, I hope you enjoy the following material.
- This is my favorite cartoon/joke out of all of them.
- “Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.”
(Rich Cook) Continue reading 10 Funny Programming Jokes and Quotes
For those of you that read my other post about useful .cshrc functions, you know that I like to automate as many processes as possible. If there is something redundant that I do frequently, I will script it or make a function to take care of it.
In an effort to assist those of you out there that like to automate processes but use bash instead of C-Shell, I have compiled a list of some useful functions to stick in your .bashrc file. Here is a list of the functions that this post will contain:
- Extract: This function will determine the type of archive you are dealing with, and issue the corresponding command to extract it.
- Compress: This function will create a .tar.gz archive of whatever files you give.
- Swap: This function will swap the names of 2 different files.
- Clock: This is just a random function that will display a digital clock in your terminal window and update every second.
- Cpg: This function will copy a file to a directory, and also
cd you to a directory.
- Mvg: This function works like Cpg, but moves the file instead of copying it.
- Findit: This function will search for a file with the given pattern in the name.
Continue reading Useful .bashrc Functions
EDIT: Apparently this is now included in iOS 4.2. Thanks go to Mowg for bringing this to my attention.
To enable finding text within any website, follow the below instructions:
- Open Safari (pretty self explanatory).
- Create a new bookmark.
- In the Title window, write whatever you want your bookmark to be named (I chose “Find on Page”)
rn=Math.floor(Math.random()*100);rid='z' + rn;b = document.body.innerHTML;
b=b.replace(x,'<span id=" + rid + ">$1</span>');void(document.body.innerHTML
=b);alert('Found ' + document.getElementsByName(rid).length + ' matches.');