Google
 

Archive for the ‘Programming’ Category

Enabling Other Languages on Amazon’s New Kindle Fire tablet

Saturday, December 3rd, 2011

IMPORTANT: The source code and all future development of this application is now moved to GitHub. Please use that page in the future: https://github.com/shaftekbiz/android-language-settings-app ---------------- One of the interesting aspects of the new Kindle Fire is how much Amazon had customized or simply overrode the default UI, including some of the settings pages. ...

Installing Eclipse Visual Editor 1.5 on Ubuntu 10.10

Wednesday, March 30th, 2011

I had been recently kicking around some coding ideas but until now all of my hobby coding has been done in Perl. I wanted to try something browser-based which led me back to Java, so of course I installed Eclipse as my IDE. However, I ran into an issue when ...

Comodo SSL Breach and Mobile Devices

Friday, March 25th, 2011

A recent breach at a SSL Certificate Authority (Comodo) had nine fake SSL certificate issued as a result for sites like Gmail, Yahoo, etc. [details here at the EFF]. While desktop browsers issued updates, the overlooked issue here is mobile. Browsers on mobile devices are usually in firmware, and issuing ...

Manipulating Files in the Cloud

Thursday, May 14th, 2009

A few days ago I got to the see the power of cloud computing up close and personal. Someone had a large amount of files already stored in Amazon S3 which needed to be combined with another large set of files. The problem was that my desktop could do it ...

Turning Playlist.com into Podcasts and Playing Them on Cell Phones

Sunday, May 10th, 2009

PlayList.com is a website that allows anyone to put together a playlist of their music and then share it via their Facebook/Myspace/etc page via an embedded flash Playlist. A nifty hack allows you to play a PlayList.com as a podcast or even via a cell phone. 1. Transform PlayList.com's ASX playlist ...

Deleting Amazon S3 Bucket with A Lot of Files

Wednesday, May 6th, 2009

Here is a short script that can mass delete files in an Amazon S3 bucket. It is limited to a 1,000 keys at a time: #!/usr/bin/perl use Net::Amazon::S3; my $s3 = Net::Amazon::S3->new( {   aws_access_key_id     => 'ACCESS_ID', aws_secret_access_key => 'ACCESS_KEY', retry                 => 1, } ); my $bucket = $s3->bucket("BUCKET") or die $s3->err . ": " . $s3->errstr; my $response = $bucket->list ...

Cleaning Up Bad HTML in Perl, Take 2

Monday, February 9th, 2009

(A followup on an earlier post) Here is another way to cleanup bad HTML with Perl, and convert to XML: use HTML::DOMbo; use HTML::TreeBuilder; use XML::LibXML; $html_code = ''; // Parse HTML my $builder = HTML::TreeBuilder->new(); $xml_source = $builder->parse($html_code); // Convert to XML DOM $xml_source1 = $xml_source->to_XML_DOM; // Extract XML and encode UTF-8 $xml_source2 = (encode("utf-8", $xml_source1); This approach relies on the HTML::DOMbo ...

Handling Unicode Data in Amazon S3 Headers

Sunday, December 28th, 2008

During a recent project, I ran into an issue when handling Unicode data in metadata headers in Amazon S3. Apparently, Amazon adds on "?UTF-8?B?" in front of any Unicode data and "?=" in end of the data. I could not find any existing standard that describes this or why it ...

QuickBase and Unicode Support

Monday, October 27th, 2008

Some quick notes on QuickBase and Unicode: QuickBase stores Unicode data natively on the backend Unicode encoding must be set as default in the browser Any QuickBase functionality that relies on Javascript or AJAX support, DOES NOT work with Unicode The last point is due to the two issues: 1. The bug with UTF-8 encoding ...

Fixing “Input is not proper UTF-8, indicate encoding” Error

Sunday, October 26th, 2008

Quick way to fix the following error in Perl: :1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xA0 0x20 0xA0 0x3C Use this command: use Encode: $string1 = decode("UTF-8", $input);