BATMAN

BATMAN



BATMAN, originally uploaded by halkeye.

BATMANNNNNNNN

BATMAN WAS AT THE OLYMPICS!

“free laptop” facebook scam

Ah, the things that people believe on the internet. I’d like to believe its not work that is making me paranoid, but it mostly is. Plus I get paid to help try to find the flaws in things before the time is spent developing them.

The interesting about this thing, is when I first saw the title of the facebook group, I was sure that was odd, but I quickly ignored it and moved on. Then I saw it again tonight, and I started to do a bit of digging.

http://www.brain-thee.co.uk/2010/01/how-to-tell-a-scam-on-social-networking-sites/ manages to describe my thought process pretty well actually. But I went a few steps more. I got very weirded out by the fact they wanted me to use javascript to select all my friends for invite (I still can’t believe I immediately recognized that javascript the second I saw it.). So after I visited the page they said you could only visit after you invited your friends (look at that, I visited it fine).

Anyways, to make a long story short, I started to dig through the js on the page, found out its essentially a small page with a ad or something to c p a l e a d (dot com, I don’t want to link to it). That in itself isn’t that interesting, its the fact that it tries to detect firebug so you can disable whatever it does (video maybe? I run with noscript so I don’t see it).

I put the code up on pastebin @ http://pastebin.com/d40ea2d1c for anyone who is curious. Its simply the only javascript on the scammers page after I ran it through the reverse dean edwards packer.

I get my own ugly code

sub rw { my $word = "$_[0]"; $word =~ s/(.)/rc($1)/ge; $word;}
sub rc { return ((rand(1)*2+1)%2) ? lc($_[0]): uc($_[0]);    }

(i don’t care about efficiency or whatnot, i was just creating a simple function for a unit test, it just looks like someone threw up some letters.

osqdb has to be one of the worst peices of code I have seen in a while.

Tonight I was trying to convert the old custom quote system I used for #arc to qdb just for fun. I was trying to find out the code used by qdb.us/bash.org but came across this peice of code called OSQDB.

Here’s an exerpt of code called whenever a new quote is added.

$get = mysql_query("SELECT * FROM quotes ORDER BY id DESC LIMIT 1");
 
while ($count = mysql_fetch_array($get)) {
    $tempid = $count["id"];
}
/* Increment the id */
$newid = $tempid+1;
$sql = mysql_query("INSERT INTO quotes SET id = '$newid'");
$sql = mysql_query("UPDATE quotes SET quote = '$newquote' WHERE id = '$newid'");
$sql = mysql_query("UPDATE quotes SET comment = '$comment' WHERE id = '$newid'");
$sql = mysql_query("UPDATE quotes SET ip = '$ip' WHERE id = '$newid'");

1) It loops through 1 entry trying to find the latest entry number (I’m sure max() is faster than order by and limit).
2) Once its it found, it does one insert with the id being set. Then it does 3 more queries setting each field in its own query.

That sorta explains why the db doesn’t have auto_increment fields turned on, but its scary. I’m afraid of looking at much more of the code. Luckily I then found Rash Quote Management System. I don’t like this one very much either.. but they are more personal reasons versus code issues.

I should clean up and submit patches (it doesn’t seem to have been updated since 2006) for rqms.

Finished Naruto: Rise of a Ninja

I have to say, I’m totally surprised at this game. I was told before hand it was a pretty decent game, and it did keep me entertained for the week I rented it.

Now the game, as the anime, is very repetitive. I didn’t find it too bad, but I ended up not finishing all the optional missions because I got tired of the racing missions.

The timed ones in general were not bad, but when you got 5-10 minute long races with traps that can easily delay you enough so you can’t get to the next checkpoint it gets really annoying. The worst was the last one I did. I got to one gate from the end, then got stuck behind a trap. It took forever to get that far.

I also found the jutsu really awkward to do in battles too. You had to knock the other guy away far enough to wait for the bar to fill up fully. Luckly you could do smaller powered ones quicker. I ended up mostly just doing rapid regular combat combos.

But as I said, the game was overall enjoyable, and I did manage to finish the game.. at least I think I did, I got the credits, but then i was thrown back into town, so I’m not sure.

Either way, I’m glad I rented it, It doesn’t have enough replayability to buy the game, but the one shot rental was kinda cool.

Outside Free Comic Book Day @ Elfsar

Outside Free Comic Book Day @ Elfsar

Free comic book day yesterday was kinda cool. I got a bunch new books which will hopefully get me interested in comics (again).

There were so many people there though, including a few in costume. I wish I got a shot of supergirl and two face. Those are still awesome costumes, I’m totally impressed.


Please people…learn to ask questions.

I’ve been playing around with some new jquery/javascript this week.. All has been going well, i’ve been learning just how bad UI is lately.. I wish interface worked still in the latest versions, UI is extremely slow, plus the documentation currently does not fully match the code (well actually they might, but we are using an older version of UI due to the fact that the new ones are less functional).

Anyways, lots of people pop in #jquery and ask questions.. which is good, ’cause i learn about new plugins or ideas, etc. But there are a lot of people who just can’t figure out how to ask a question.

Examples of bad people:
* <yoav> guys i’m stuck tryin’ to get an ajax form to work with jquery and codeigniter <yoav>stuck as in it’s not working
(i’m surprised i can’t find more in my recent logs)
or my fav, and i can’t find an example from my current logs
* <someone> Can I ask a question?
* <someone> I have a question (in which the reply is no, thats a statement)

Between those and the people who know next to nothing about javascript, css and html, expecting that jquery will be really easy and needing to be hand held through every little step is really frustrating.

I gotta setup some irssi aliases now to point to http://reactor-core.org/irc-help.html (which I just found)..

Snow at the skytrain

Snow at the skytrain




Snow at the skytrain

Originally uploaded by halkeye

look at the awesome snow we had this morning
it so barely is noticeable.

xbox live cards

xbox live cards




xbox live cards

Originally uploaded by halkeye

Someone explain these to me. I mean I understand not wanting to give your credit card to xbox. I sure didn’t. There are so many stories of bad things with people being unable to un-associate cc#s and accounts, people racking up bills, etc. Plus if your account gets hacked, they get access to your CC.

So I went out and bought the pre-paid cards. They are much easier to use, and I think safer. Except they are totally one time use, and after that.. they are done, you just toss them out. And they come in huge plastic cases too. I think this has to be like the biggest waste of packing i’ve had all year.

Sad.

Least now I can download games from live.


Tin Man

Wow, Tin Man is… well it has zooey…
Well I have met all the characters, dorthy, tin man, guy without a brain, and I’m sure the heart guy too.

It’s really .. out there.
Reminds me alot of the new Flash Gordon. I’m not really sure which is more..lamer..

It started off so bad, but its gotten a lot better, every time it starts to feel right and entertaining, something new and weird happening.

they keep talking about “The Oh.Zee.”, as in the outer zone, but it sounds very WB like. We’ll have to see what episode 2 is like.