Arun Stephens

Replacing a domain name in WordPress with sed

I often need to do this, but always forget the syntax. So this is more for my reference than anybody else's: sed 's/<OLD DOMAIN>/<NEW DOMAIN>/g' <INFILE>.sql > <OUTFILE>.sql It is just simple find and replace, so will also pick up domain names in email addresses, etc. Read post »

Samsung S4 browser slow with bad performance? Force Chrome on Android!

The stock browser on the Samsung Galaxy S4 (launched with the “Internet” icon) has notoriously poor performance, particularly with JavaScript. In my particular case, I was trying to run an animation created in Adobe Edge. Chrome, on the same device, however, was flawless. Why the new Samsung browser is worse than the old one from the S-III is a topic for another conversation – one that I am never going to have now that I have found this solution. Chrome is Read post »

Core Data validation errors appearing twice, multiple times

Stupid thing really. I’m using validation in Core Data for the first time. I have a managed object, it fails validation, which is good. I fix it, and save again. There should be no validation errors. But there are. Why? The original, failed, managed object, is still in the managed object context. So even though my newly created second object passes validation, the other invalid one is still in there, trying to be saved, constantly failing. I needed to Read post »

What can I do on Windows 3.1?

I installed Windows for Workgroups 3.11 over the weekend. Finally got networking up today. I’m writing this post from Netscape 3.0. I tried to install IE5.01, but it can’t do much. I had to turn JavaScript off on both of the browsers, because they just can’t handle it. Nothing works. Neither of these browsers let me log into Gmail, because they don’t support high enough encryption. Mobile versions of sites don’t work Read post »

Got a number but no name? Facebook will tell you!

There’s been a bit of news about Facebook’s new (or at least newly publicised) Contacts feature. The gist of it is that when installing the mobile app, you can have it sync your phone contacts with Facebook. That way, all your contacts are available on Facebook, and you also get Facebook friends’ phone numbers on your phone. But what I haven’t seen mentioned, and what I noticed today, was that in my Contacts on Facebook, there were Read post »