Thursday, 29 March 2012

2011 4chan's /b/ VS 9gag battle

Man, this was funny as hell.

People suddenly started posting about how angry they were that 9gag was stealing and "monetizing" their memes, even though basically every site on the cheezeburger network do this. A thread came up about DDOS'ing 9gag, which excited all the wannabe skids that lurk 4chan. Of course, since anyone who is actually good with computers left 4chan long ago, and I think they managed to take down the store for a few minuets.

After they realized that this wasn't working, they decided to flood the vote page with gore.
That worked. 9gaggers were scarred. I thought this was a bit too far, but 4chan have destroyed people in the past.

Where were Reddit and Funnyjunk in all this? There were a few threads about how "The enemy of our enemy is our friend" and that they should go to Reddit and funnyjunk for help. This didn't work though, as 4chan tend to stupidly hate every single site on the net (even 4chan) and it didn't kick off.

The whole thing is stupid, IMO. Memes should be enjoyed, and people need to make money. 9gag is actually ok, Reddit and funnyjunk are awesome (apart from the bronie posts everywhere)

Thanks for reading

Wednesday, 28 March 2012

OnionIB - The deep web - is it really that bad?

When I used to lurk the internet, I used to read loads about how mysterious and creepy it was down there. I read about assassination plots, drugs, child porn, phreakers and genital mutilation etc. I was very interested (Yeah, I know, someone who was 12 should spend more time doing other things but whatever) and decided I would pluck up the courage to go down there.

I downloaded TOR, got the .onion for the hidden wiki, pressed enter and hoped for the best...

... is that it?
It just looks like Wikipedia. *Scroll Scroll* Urrgh, that's a link to jailbait. I don't want to go on that. *Scroll Scroll* Ooh. Black Market. Looks cool, lets check this out. *Click* *Scroll Scroll* Weed? I was expecting warheads and guns! *Click* *Scroll Scroll* Penis panic. Sounds delicious. Right, this is boring, and I have some homework to do *Click X*

All in all? Its not that bad. It's not some secret underground community, full of dark'n'edgy mega hackers. The only things that you can actually find down their are drugs and child porn. The internet tends to big up things that are slightly controversial, such as TORNet and 4chan.

Thanks for reading :)

10 ways to become a better programmer

10) Pretend that the next person to read your code is an angry psychopathic killer that knows where you live.
I am being a bit of a hypocrite here, as my code is often unreadable and badly commented. It is important to have readable code, especially if you are sharing it or publishing it, or going back to it later. Every programmer has started a project, came back 2 weeks later and found it difficult to understand what the hell they wrote.

Oh yeah, and try and limit your use of goto's. People seem to hate those.

9) Pretend that the next person to use your program is an angry psychopathic killer that knows where you live.
In the end, your program is written for the user. The program needs to be concise, and easy to use. If you are putting your program online or even selling it, you must always always include a readme.

8) Staying up till the early hours of the morning buzzed on coffee is never good for your code.
For me, staying up late drinking red bull makes me write very bad code very fast.

7) Quality, not quantity.
As I have said before, the amount of lines in a code is not a valid measure of how good a program is. Infact, its probably better if you don't write so many lines. Concise code is better than huge code. Use switches instead of loads of if's, and for loops rather than repeating things etc.

6) You will never learn everything about a programming language.
There is no person who knows everything about a programming language. There is always always more to learn. Sign up for an account on http://stackoverflow.com/ - the community there is very helpful.

5) You will become frustrated, and feel like giving up on some projects. Don't.
Google is your best friend, and if you can't find what you are looking for, ask. The feeling you get when you see your code finally compile. Besides, most of the time its usually something small and easily remedied.

4) Try and learn some new languages.
A lot like normal languages, generally people who know more languages are better at communicating. Also, they can easily go to new places. It is a good idea to get various types of programming languages under your belt, such as Python, Java and C++.

3) Never copy and paste code.
Its good to read and learn from more experienced programmer's source code, but just copy and pasting it from the internet means you learn nothing. See if you can re-write it in a more efficient or clever way. If you must copy and paste it, at least make sure you understand it.

2) Programming should be fun.
Especially for a teenage programmer who is not being paid, programming should be fun and an enjoyable hobby. Programming is a fun thing to do; it improves your maths and logic skills, kills time, and nothing beats the feeling you get when you see "Linking ->" in the output window after hours of writing.

1) Practice makes perfect!
You learn more from experience then you do from reading. Try different things out see if they work. See if you can replace those goto's with a for switch, or a do while switch.

Thanks for reading!

Tuesday, 27 March 2012

Spacebar 2000 cheat

If you haven't played Press The Spacebar 2000, you can find it here:
http://www.zimm-co.com/PressTheSpaceBar/pressthespacebar2000.html

Anyway, people from my school play that game loads. And the undisputed champion was my friend Josiah. But when he posted this on Facebook:

Then I knew I was going to have to beat him. Originally I tried to do it legit, but couldn't beat 40. Then I remembered C++'s keybd_event function. I opened up visual C++ and got to work straight away.

It worked, but it could be better. What if my one program opened up loads of other programs that spammed the space key for 5 seconds, then closed? I wrote one that opened a batch file, and that batch file opened up 10 programs that spammed the spacebar. I know it's not efficient, but I did write this in a matter of 20 minuets with the goal objective being to cheat the game.

The source code can be found here:
http://pastebin.com/6JUm0B44

P.S. Soon I will put up compiled full programs, for those who don't have compilers.
Anonymous is a huge hacker collective, with hundreds of twitter accounts and even more people joining in on raids and DDOS attacks.


Some members have very noble motives. Anon twitter accounts talk of helping the poor and stopping corrupted politicians. They raise awareness of fundraising activities and give important, unbiased news.
Heck, they even took down child porn websites on the OnionIB.

But Anonymous is a collective. It is a very varied and diverse group. It has its sick bastards and trolls. You have to keep on mind that they originated on the boards of 4chan, and anyone who frequents the image board can tell you that it is definitely not a friendly site.

This is shown by the arrest of "Sabu". The FBI thought they chopped off the head of Anonymous, but Anonymous doesn't even have a head. Check out the suit.

They did destroy Lulzsec, however.

Then they are those who "join" anonymous just to feel big and important. These happen to be the same people that are "killing /b/". They will hear about how anonymous are super |_33T hackers and rush over to 4chan to post ponies. Some anons also have a serious messiah complex going on, aswell.

Do I consider myself as an Anon? No. While I do respect most of Anonymous and follow anon accounts on twitter, and monitor threads that report on the progress of DDOS attacks on raids, I don't join in (Apart from that raid on 9gag, but that was just for the giggles XD).

Anyway, that's just my opinion. The opinions on anonymous are very varied, but most people seem to respect them.

P.S. More source code to come.

Monday, 26 March 2012

Sup :)

This is the biggest program that I have ever written, at 2016 lines long. Of course, the amount of lines in a code should not be a was of measuring how good a program is, and in fact this code is very, very bad. And besides, most of the code is basically inefficient repetition.

Enough criticizing of my own program.

The code is easy to read, and relatively simplistic. If you have any basic grasp of C++ you will understand it.

I will be making improvements, such as an encryption key, and saving space (I'm sure I will find a way to put the whole thing in a for loop)

The source can be found here:
http://pastebin.com/apU5Zi0b

Health warning: The program is written by a novice 14 year old programmer. The source may cause manic psychosis, comatose or even death in experienced programmers.
Welcome to TheTeenProgrammer! In this blog I will be discussing computers, C++, and other nerdy stuff. I will be putting up my source code and downloads. So far, I have written an text crypter (and a decrypter to go with that), a lobster pots game, spacebar 2000 cheat, and an IM spammer. I have written a lot more, but most of my other programs are just little things to test out algorithms and methods. I will go into more detail about each one later.

Thanks for visiting!