The Hack o blog

Reinventing the weel

Tag Archives: Twitter

Sony (XSS) cross site scripting.

Image representing Sony as depicted in CrunchBase

Well it is most definitely by now no secret that Sony’s online security is some what lacking,  I’m not sure when Sony will get there act together lets hope soon the only Xbox game I have is The Orange Box.

Read more of this post

Advertisements

​ X Factor & fox.com hacked, contestants database leaked.

The X Factor (Australia)

Image via Wikipedia

A new teem of hackers that go by the name LulzSec has hacked the X Factor contestants database, More information to come so subscribe for updates, i’m assuming there were big  holes left open.

Science Hacks for the upcoming zombie apocalypse FTW.

Will you be ready...

Image by kennymatic via Flickr

Science that’s not hacking right? Wrong!! Buy its very definition Science is hacking, that and the fact that when the zombie apocalypse arrives the difference between knowing and not knowing will affect your chances of survival.

To aid in the Science Learning’s for Make Benefit of the world I will give you some spectacular practical nerd loving Science hack YouTube channels.

And in no particular order at all:

bionerd23



NurdRage

TheHomeScientist

AlchemicalGarden

thegeekgroup

That’s all for to day Nerds and Nerdets, remember to subscribe to them and stay safe wile preforming any experiment.

Auto Clickable URL’s in PHP

Php logo with lower text

Image via Wikipedia

Here’s something that as a PHP programmer I have found useful when writing code for a website which often refers to sources using links… It automatically parses URL‘s into clickable anchors without needing to use any actual tags – you just write the URL as it looks and it will convert it for you. It’s great for people who don’t really know about such things as HTML or BBCode and I have found it useful so if your a programmer feel free to use it if you wish.

function makeClickableLinks($text) {
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)', '<a href="\\1">\\1</a>', $text);
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&amp;//=]+)', '\\1<a href="http://\\2">\\2</a>', $text);
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', '<a href="mailto:\\1">\\1</a>', $text);
return $text;
}
<pre>

Then when you wish to refer to it use this:

$string = "Go to this URL -  https://hackoblog.wordpress.com";
makeClickableLinks($string);