When I was compiling my last post I wanted to embed a tweet in my blog post. I found a nice plugin for that called Twitter Embed.Getting a Tweet’s permanent link wasn’t that straightforward, so I made a small video to show how. Also notice I’m picking the short code instead of the link, that’s what Twitter Embed needs.
I had a few months worth of photos on my phone that needed to be imported and sorted.All I wanted to do was move the photos into monthly folders. So I found exiftool that had some options that did what I wanted.If you have Homebrew on mac you can install it like this. brew install exiftool Here is the command I used to move my photos. exiftool -d %m "-directory
I had a few months worth of photos on my phone that needed to be imported and sorted.All I wanted to do was move the photos into monthly folders. So I found exiftool that had some options that did what I wanted.If you have Homebrew on mac you can install it like this. brew install exiftool Here is the command I used to move my photos. exiftool -d %m "-directory
You can’t run Silex apps directly on Dreamhost yet. After a bit of digging around I came up with this.You need to create a file ~/.php/5.3/phprc in your home directory, not under the website directory and put these lines in there. extension=phar.so detect_unicode = Off phar.readonly = Off phar.require_hash = Off suhosin.executor.include.whitelist = phar Its not immediate, but in about ...
You can’t run Silex apps directly on Dreamhost yet. After a bit of digging around I came up with this.You need to create a file ~/.php/5.3/phprc in your home directory, not under the website directory and put these lines in there. extension=phar.so detect_unicode = Off phar.readonly = Off phar.require_hash = Off suhosin.executor.include.whitelist = phar Its not immediate, but in about ...
Indi is asking: What kind of taxi do you usually take?I think he is building some kind of social app for taxis. At the moment on his poll meter taxies are winning. Here is what I think about that.I voted for meter taxies too. Its the obvious choice there. If you call for a car or van from a cab ...
Indi is asking: What kind of taxi do you usually take?I think he is building some kind of social app for taxis. At the moment on his poll meter taxies are winning. Here is what I think about that.I voted for meter taxies too. Its the obvious choice there. If you call for a car or van from a cab ...
Sri Lanka is a great place for used stuff. Cars and phones are in the top bracket here. But these days there is a problem selling. Although there is a demand once you sell you can’t afford to buy the next best thing.The rupee is falling and businesses are not spending as much.So that means my hosting fees are going up and it’s getting harder to get paid.
Sri Lanka is a great place for used stuff. Cars and phones are in the top bracket here. But these days there is a problem selling. Although there is a demand once you sell you can’t afford to buy the next best thing.The rupee is falling and businesses are not spending as much.So that means my hosting fees are going up and it’s getting harder to get paid.
Scientists Discover That Tiny Fractal Trees Could Hold Key to More Efficient Solar CellsHmm sounds familiar. I have heard something like this before. There was a kid called Aidan Dwyer talking about solar cells in a tree pattern last year.It looks like Aidan got some negative articles written about his theory as well. Then again he was 13. But if this is related the kid deserves some credit.
Scientists Discover That Tiny Fractal Trees Could Hold Key to More Efficient Solar CellsHmm sounds familiar. I have heard something like this before. There was a kid called Aidan Dwyer talking about solar cells in a tree pattern last year.It looks like Aidan got some negative articles written about his theory as well. Then again he was 13. But if this is related the kid deserves some credit.
MySQL Workbench doesn’t work out of the box in the latest Ubuntu. These steps will get it working until Oracle gets around to updating the official package sudo add-apt-repository ppa:olivier-berten/misc sudo apt-get update sudo apt-get install mysql-workbench-gpl Source: http://bugs.mysql.com/bug.php?id=62347
MySQL Workbench doesn’t work out of the box in the latest Ubuntu. These steps will get it working until Oracle gets around to updating the official package sudo add-apt-repository ppa:olivier-berten/misc sudo apt-get update sudo apt-get install mysql-workbench-gpl Source: http://bugs.mysql.com/bug.php?id=62347Update: Don’t know if Oracle has fixed this yet. This works in the latest Linux Mint as well. ...
I like the Aptana PHP formatter. Its the only one that works well for me. I used to my one liner tags messed up a lot like this. <?php echo $content ?> What I noticed was that the ones with the semi-colons in place didn’t break to a new line. <?php echo $content;?> Now the auto-formatter (Keyboard shortcut to Command + Shift + F on the Mac) keeps things in the same line.
I like the Aptana PHP formatter. Its the only one that works well for me. I used to my one liner tags messed up a lot like this. <?php echo $content ?> What I noticed was that the ones with the semi-colons in place didn’t break to a new line. <?php echo $content;?> Now the auto-formatter (Keyboard shortcut to Command + Shift + F on the Mac) keeps things in the same line.
If you are still using CVS and Subversion or moved on to something distributed its a good idea to keep in mind how to commit.Commits and commit messages are pretty important. I’ve had single user repos for years and I still put decent messages and commit sensibly in case I need to go back and figure out something.Here are a ...
If you are still using CVS and Subversion or moved on to something distributed its a good idea to keep in mind how to commit.Commits and commit messages are pretty important. I’ve had single user repos for years and I still put decent messages and commit sensibly in case I need to go back and figure out something.Here are a ...
I know I should have blogged more. But then I was busy working. Now that I’m out of work do you think anyone following this blog would notice and hire me?Lets find out http://www.linkedin.com/in/dilantha
I’m trying to catch up with this social open source moment. I forked an existing CodeIgniter Twig integration library and added some changes to work with CodeIgniter 2.x.Also I found a way map any CodeIgniter function to Twig like so.$this->load->library('twig'); // load the Twig library $this->load->helper('url'); // load the CodeIgniter URL helper // map the base_url() function as a Twig ...
I did a small intro to HTML5 at the last Refresh Colombo meetup last week. Here is the main presentation I used from html5rocks.com.Here is a better list of resources as well. I specially like Dive Into HTML5 by Mark Pilgrim.I met @geekaholic and @SeeJay of SinhalenFOSS at Refresh ...