Just another person trying to be a developer
- Ebay and PayPal become even better friends, now BFF
OK, am I the only one bothered by this.
I was typing away at my desk when my boss made a sound of indignation (which, if you are interested, is a cross between a snicker and a cough). When I hear these sounds, I know I am being beckoned to look at something. In this instance that something was an email from Ebay:
Ebay has (apparently) managed to slide the changes to auction payments past everyone, with out a whimper of discourse from the internets. As of 17th June we will have a whopping two payment options to pay for all our must have stuff.
Ebay has decided that in order to make shopping safer, payments should come in the form of COD or PayPal payments, to prevent fraud. While their genuine concern is heartwarming (snicker), I have unfortunately taken the line of a cynic.
To me, if I were Ebay, content with providing my customers with a superior service, I would also take some satisfaction with all the extra kickbacks I would be getting through PayPal.
Of course, I’m not Ebay, and such grubby money making tactics would have never crossed their minds.
BONUS : Look for Ebay and PayPal
UPDATE:
It appears I am not the only one who is suspicious over ebay’s tactics.
- Josh Sharp; A man of the people
Hello avid readers,
The man of the hour, Josh Sharp, has been moving up in recent times. He is now featured on Aussie Bloggers, a site that
…passionate about blogging and helping other Aussies. If you are an Aussie who is already blogging, or thinking about it - then you’ve found a new home
So pop on over to hear Josh talk about his new project, techCollective
- Venture capitalists hear my call, the social bookmarking revolution
OK so I’ve drawn you in with a snappy, but possibly over the top title. And what’s worse, now I have to deliver.
Well I spose it’s time to show you what I’ve been cooking up. It goes like this.
Read more…
- Oh what a wonderful world.
Technology is a wonderful thing.
Wireless technology is even more wonderful.As I sit here on my couch, typing on my laptop, I am in the process of getting my Wii on the internet for the very first time. The reason I am able to finally get it on the net is because I have just got my antiquated wireless working. So in addition to be to play all my old favourites, I can finally use my laptop wirelessly (which in a one bedroom unit is not that big a deal, but I’ll take the victories where I can). Read more…
- This is what it looks like?
Apparently this is the new home of the obfuscure blog, until I change it. But, until then make your self cosy, lean back and wait for the content to come.
Still waiting? It’s coming, I promise.
- md5me.com is dead, long live md5me.obfuscure.com
Have you noticed that md5me.com died in the arse/ass? Well don’t despair little ones, like a phoenix it has risen from the ashes to become md5me.obfuscure.com. Happy md5 hashing
P.S. I am merely a caretaker until the domain is restored to it’s former glory.
- SQL Injection in PHP: Another solution
I am putting this up as a quick elaboration on a post I just read via Digg about You, Me and PHP and SQL injection. I am currently working with MS SQL (that is on the major project I’m doing at the moment), but my real passion lies with MySQL. Let’s face it, you do not get what you pay for with MS SQL (IMHO). To protect from unscrupulous sorts who might like to inject a bit of SQL fun I employ my handy dandy escape function, which funnily enough is named escape(). It takes a query string ala PDO prepare (SELECT * FROM User WHERE ID = ‘?’), and replaces all the wildcards with the remaining arguments that are passed to it.
$query = $this->escape("SELECT * FROM User WHERE ID = '?'", $id);The only real addition/change from the way prepare syntax works is that it also has a ‘!’ wildcard, which is used when you have a nullable field which you won’t to be explicitly set to NULL if empty as opposed to ”. The function it’s self is devilishly simple, and just walks the string applying the desired escape function.function escape() { if (func_num_args() < 1) { return; } $lookFrom = 0; $query = func_get_arg(0); $args = array(); for ($i = 1;$i<func_num_args();$i++) { $arg = func_get_arg($i); if (get_magic_quotes_gpc() == 1) { $arg = stripslashes($arg); } //$arg = addslashes($arg); MYSQL $arg = str_replace("'","''",$arg); $pos = (strpos($query,'?',$lookFrom) >= 0) ? strpos($query,’?',$lookFrom) :NULL; $amnt = 1; if (strpos($query,’!',$lookFrom) >= 0 && (strpos($query,’!',$lookFrom) < $pos || $pos == NULL) && is_int(strpos($query,'!',$lookFrom))) { $pos = strpos($query,'!',$lookFrom); if ($arg == '') { $arg = 'NULL'; $pos--; $amnt = 3; } } $query = substr_replace($query,$arg,$pos,$amnt); $lookFrom = $pos + strlen($arg); } return $query; }As you can see it peruses the string for the characters to replace until all the arguments are used. It has no error checking as the onus is on you as the user to pass the right number of arguments, but it provides a one stop shop for replacing.


