Blog

The "Twitter plus" scam app
 

Hi there guys,

I've detected a fraudulent twitter application spreading with the name "Twitter+ Plus" (T+ en Español) url:http://we.usetpl.us/  which ask users for access to their accounts, after being authorized it returns the users to twitter.com so I thought I might share this with you.

My motive to think this app is a scam is that the callback address points to a server with only 2 scripts (http://67.23.166.168/~tb/call.php and redirect.php) which basically do nothing, after a user authorize the app this app tweets a URL inviting users to join the "twitter+ app" such as in the following case:

https://twitter.com/#!/liz_rof/status/142754641753542657

The ammount of users falling for this "viral" app is huge

https://twitter.com/#!/search/Ya%20instalaron%20el%20Twitter%20Plus%3F

Hope you can use this information sort out the issue so I dropped an email to the guys at twitter hoping they'll do something with that.

Please share your thoughts on the comments.

 
 
Using split on PHP 5.3.0
 

It's been a while since it started coding again in PHP specially in PHP 5.3.0 and I've come across some interesting finding, for example some functions such as ereg, eregi and split are deprecated now in favor of a new library call Perl-Compatible Regular Expressions. For old coders (like me) we need to start updating our code to keep with the up to date standards.

A function I use a lot (for good or for bad) is split but as a matter of fact is one of the new deprecated functions on php so instead of calling it as usual (delimiter, string) now we have to call it using a perl-compatible regular expression (regex,string) as follows...

 
 
How to know the size of multiple folders on Linux/Unix
 

Folder IconOften while I'm administrating a Linux/Unix box I come across the tediousus task of freeing up space on the server, usually this task is easily accomplished by issuing a simple "ls -lh" command, you get a nice listing of the files in the current directly along with some nifty details like last modification date and size (the -h parameter for ls allows us to get the size in a human-readable way).

The downsize of doing it this way is that you don't get to know for real the size of the folders within the current directy, you get a nice total on top of the "ls" listing. A nice command to get the size of a certain folder is issuing a ds

du -sh folder/

 
 
Repair a Mac OS X HFS+ Partition table
 

At the time of writing this post I must say that I feel like a hero! That feeling is wonderful you know, when someone has a problem with their computer and not a simple but a HUGE one and you are able to repair em you turn to be that people hero.

Today my friend Avaco12 made a little mistake while installing bootcamp on her iMac, she left her external (200GB) disk connected, and when Windows asked her where to put the new Partition she accidentally selected her preciousus external drive, when she realized it was already too late, windows had already destroyed the partition table on her disk. She had 1 HFS parition and 1 FAT. She was crying because she said she had her entire life on that disk, so she asked me for help and I started researching what could I possibly do to repair the disk or at least retrieve her data.

 
 
How to kill a process by it's PID on Windows
 

I don't want to sound mean but, God, MSDN API sucks =P. Not because it doesn't tell you the stuff you need to know but because it requires alot of imagination from you to understand it.

For example, I was looking for a way to kill a process using it's process id ( PID) however it turn that when you are programming for WIN32 you need to use HANDLE's for everything so if you'd like to have a process that creates process and then kill them you'd have to store and manage every handle.

 
 
Parsing <contend:encoded> attribute from a wordpress feed with simplexml
 

wordpressThat was a long title for this post o_o. Well , I first must clarify that my blog is not a wordpress mod, however it doesn’t mean I don’t have to work with wordpress at some point in the day. Recently I was doing a newsletter for a Website and I decided I would parse the RSS from that website to get the 4 newest contents however I ran into a trouble while using PHP’s SimpleXML class and this was that I SimpleXML couldn’t parse the contentn since it came with what is called namespace. For those of you who only came in here for the solution here it is =)

 
 
Fixing coda not aceppting SSL Certificates
 

Coda is by far most the best Developer Tool I've ever used on a PC or a Mac. It simply concentrates all you need to develop web on a simple and cute window. Some of it's features that I like are the auto-completation, Multiple Site management, Preview , CSS Editor a syntax highlinting.

 
 
Javascript Regultar Expression for matching Domains on a string
 

Today I had a hard time creating a regexp to match domains on a string. I wouldn't like the internauts who visit this small blog to suffer the same pain, so here's how to :

var StringWithData = " asd http://subdomain.perrohunter.com/lol/something.php asd";
re = /http://w+([.-]?[a-z]+)*.com/;
var results = re.exec(StringWithData);
alert(results[0]);

 
 
Switching between Tabs in Safari in a more friendly way
 

Man I like Safari :( It's a really cool fast/light/powerful/beautiful/all-the-last browser. I only got 1 small problem with it... THE KEYBOARD SHORTCUTS SUCKS ! I'm really used to Mozilla's friendly tab navigation , with Command-#number I can go right into the tab I want to, with Ctrl-Tab I can change from one tab to another however with safari I gotta press Command-Shift-Arrow or Command-Shift-[ and this requieres me to use both hands BOTH HANDS, can you believe it?

Today with the amazing release of Safari 4 I was thinking in giving Safari a chance again. I gotta admit the new Safari interface got my eye. I think is way better than chrome and I just love it, I still have the same issue with keyboard shortcuts but then I thought "im using a mac, there must be a way" so I started checking here and there and found a small work around to personalize certain behaivours in Safari and I found a way.

 
 
Ecoute: a lightweight iTunes replacement
 

Sometimes I feel like iTunes is a little bit too demanding on system resources, it happends to me from time to time that I start feeling my Mac a little bit slow and then I check my ActivityMonitor.app and iTunes is eating up to 1.5GB of my RAM (out of my 4GB :P) that's alot of memory for a simple music player. After surfing the net for a nice solution I came across Ecoute.

Ecoute seems to me a really nice lightweit music player, the first thing that I like about Ecoute is that it plays your music right out of your iTunes library so you don't have to manage 2 librarys when syncing with your iPod/iPhone, I liked that since you only have to download this 3.9MB app unzip it, open and you are ready to go.

 
 
How to install Plesk 9 on Ubuntu 8.04 LTS
 

44.pngI love administrating servers but when it comes to fulfilling my clients need I wish I had some magic software that could help me manage the server resources and everything. Well my iPhone does this ... nah I'm just kidding obviusly Plesk is the way to go since thats the title of this post.

When I found what was Plesk capable off I was amazed because it offers alot of features that can help you automate your bussiness however there is one thing that I don't like about it: "Plesk documentation sucks" literally. And i'm sure you agree with me and that's probably why you are here.

 
 
Hello world
 

zomg it works D: #OSOM