Archive for the ‘learning’ Category

Awakened by Mikeyy. Little punk.

Sunday, April 12th, 2009

I was browsing Twitter late into the night.  At some point I hit a profile with a funny ASCII animation at the top.  Maybe that was where it started, I don’t know.

This is what I saw in my Twitter account…

Dude! Mikeyy! Seriously? Haha. ;)
Dude, Mikeyy is the shit! :)
Dude, Mikeyy is the shit! :)

What I do know is I woke up and was unpleasantly surprised.  I checked my emails.  A nice and informed person had notified me that my Twitter profile had been hit with the “mikeyy exploit” and I may want to check it out and change my password or something.

He left me this link to read up on the situation.

http://www.sophos.com/blogs/gc/

Then I went to search.twitter.com and looked up tweets people had sent me.  Other people were either asking why I was saying things about Mikeyy, but some knew what was happening and sent more links like this one.

http://dcortesi.com/2009/04/11/twitter-stalkdaily-worm-postmortem/

I don’t claim to understand what exactly happened, other than it seems some temporary Javascript can be applied to a page and funny business can be made to happen on that page by a page from another site.  This is apparently called a cross-site scripting attack or XSS.

http://en.wikipedia.org/wiki/Cross-site_scripting

The issue can be addressed by Firefox users with the “NoScript” extension.  I hate the idea of installing this.  Seems like there should be a better way.  Indeed maybe one of Explorer’s annoying popups has addressed it over in that camp.  I need to look more into that.

Here is the Firefox solution.

http://noscript.net/

I have installed it.  It is annoying.  I went into the preferences and cranked it down a little.  There is also an “S” logo at the bottom of the browser that lets me change specific preferences for a site.  I turned on a sound effect when it is called up so I can change the settings for a given site and not miss the intended and good functionality of that site.

In this particular situation, I do not believe the code is still in my Twitter profile.  I think last night’s issue has been resolved.

Being someone who makes websites and loves Javascript, this is a troubling fix.  The browsers should step it up here, as they may have already begun doing.

I have exposed some of my ignorance here.  I hope if you know more you will leave a helpful comment below.  Thank you!

PHP filter_var, where have you been all my life?

Saturday, January 17th, 2009

Stumbled on something handy that I can’t believe I’m just now finding.  Gotta love PHP convenience, including this built-in way to validate form input.

PHP filter_var

Thanks again, NETTUTS (tutorial here).

if (isset($_POST['email'])) {
$email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo "$email is a valid email address.";
} else {
echo "$email is NOT a valid email address.";
}
}
// also FILTER_SANITIZE_URL, FILTER_VALIDATE_URL

Mundane quality marketing nerd

Tuesday, January 13th, 2009

Networks v. Blogs

I’ve heard it said this week that social networks are about the network, and the blog is about me.  Don’t go to the network and expect the world to revolve around you.  Get involved.  This feels like wasting time, but sharing keeps good people connected.

On the other hand, people expect my blog to be about me.  How am I doing?  What am I doing?  I’m achieving neither with this blog, but at least I’m thinking about it. :)   I want to post more, but I can’t get over my problem with posting non-quality content here. (more…)

Facebook is for kids. Haha, just kidding. Who says stuff like that?

Thursday, January 8th, 2009

Okay, besides people who have a money tree and can say anything, or are simply outsiders.

Come on, man!  It’s the future!  Haha.

But seriously, at the very least, assuming it’s mostly kids, which is it less and less, if that’s how an upcoming generation communicates, it’s not wise to ignore it.  They’ll be running things soon.  Communicating is a big deal. (more…)

Recording myself talking is fail

Saturday, November 29th, 2008

The keyboard is my friend.  Coding is a blast.  I can email for days.  Typing this blog entry is easy.  My Facebook friends might even mistake me for an extrovert. (more…)