Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Oct 8, 2013

Complete Hacking Algorithm

void main()
{
  for(i = 0 knowledge; i < infinite knowledge; i++)
    while(you don't know how something works) 
    {
      Read(Your Brain, i);
      Experiment(Your Brain, i);
      Learn(Your Brain, i);
    }
}

Being a hacker is so easy..
It is all a mindset.
 
This is a repost. 
via:/www.acm.uiuc.edu/workshops/security/hackalgo.html/ 

Apr 21, 2010

c++ etiquette

If you want to get along with other C++ programmers, you will forget everything you ever knew about goto. The reason they were required for batch programming is that batch had no functions/procedures.

Sep 21, 2009

Post to twitter from linux terminal:

This is actually a fun thing you can do.

The first thing is having a twitter account http://www.twitter.com/signup

now let's get on it.

we need to install curl

> sudo apt-get install curl

next we make a file (which we'll make an executable) in /usr/bin

> sudo nano /usr/bin/twitter

text editor will open, just copy the next code:

curl --basic --user "yourusername:yourpasswd" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null
echo Message Sent!

replace yourusername with... well your user name, and your password with your pass.

Then you will need to make the file executable by placing the following code into the command line terminal

sudo chmod +x /usr/bin/twitter

that's it, to use it just type


twitter "YOUR TWEET".

replace YOUR TWEET with whatever you want to tweet, don't forget quotation marks as if you use @someone in the begging it will not post.

if your using a gnome desktop, you can press ALT+F2 and in the Run Command Box that appears type

twitter "WHATEVER YOU WANT TO POST TO TWITTER"

have fun
:)
--
I do not fear computers. I fear the lack of them.
Isaac Asimov


--
I do not fear computers. I fear the lack of them.
Isaac Asimov

Feb 20, 2009

Project Euler

Project Euler
This is an extremely adictive set of math problems aimed to be solved by means of computing, whether you take the challenge or solve them for fun you're taking steps in keeping your programming skills sharp.
A must for software designers.