Sep26
2012
Have a Bash command you like to use a lot but need to parse some JSON data from another script? Here’s a quick inline Python command you might find helpful:
COUNT=`jscript.sh|python -c "import json; import sys;
data=json.load(sys.stdin); print data['count']"`
Just substitute the name of your other shell script (jscript.sh) and the JSON index (count) as appropriate and you’re all set!
Oh, and of course, join the 2 preformatted lines above also – these are just split because by WordPress theme was truncating the single-line version.
Feb16
2012
I’ve had reason to capture rather a lot of screen shots in recent weeks and find the following Mac keyboard shortcuts very useful:
| Shortcut |
Description |
| Command-Shift-3 |
Captures entire desktop (saved as PNG file on desktop) |
| Command-Ctrl-Shift-3 |
Copies entire desktop (saved to your paste buffer) |
| Command-Shift-4 |
Captures portion of desktop (saved as PNG file on desktop) |
| Command-Shift-4 + Spacebar |
Captures current window (saved as PNG file on desktop |
There are lots of other variations on the above, which are described nicely here.
Jan31
2012
This one’s been bugging me for several weeks so finally got around to finding a proper solution. Basically, if someone sends you a PDF file with some photos in it, the chances are they didn’t think of reducing the picture quality (in the original document) before creating the PDF. As a result, the PDF file can end up being enormous, for no obvious reason to the reader.
While I managed to find out how to tackle the problem from inside the likes of Microsoft Word (better options in Office 2011), I am often without the original document, so what to do there (on a Mac)?
Well, as it happens, Mac Preview does have a way of doing this which I found out about here, and while it worked well for me (PDF files were mostly text with 2-3 pictures anyway), I have seen comments on the above article questioning the quality of the resulting file. Still, it may work for you too.
Oct19
2011
My first job in the IT sector was as Technical Support Engineer at Eurologic Systems, an Irish-owned data storage company, back in 1992. I can still recall working with a SEAGATE ST512N (a 5.25″ hard disk with a whopping 12MB capacity) and later on taking delivery of our very first 3.5″ 1GB hard disk (the now famous SEAGATE Barracuda).
However, I also recall some of the former Mentec/DEC guys lamenting about how they used to clean some 300MB DEC drives (one platter at a time) that took up most of the room (way before my time of course).
And so earlier this week, almost 20 years later, I read with interest about Oracle and Sun’s new third-generation storage appliance (based on their 128-bit ZFS file system) which once again takes the form of a huge cabinet-like disk drive that looks like it would easily take up an entire room (ok, the rooms are much bigger now too but you get the point).
Of course the 20-year time gap isn’t the only difference as the new Sun ZFS Storage 7420 Appliance boasts a staggering raw capacity of 1.15PB (that’s 1,234,799,616 MB) along with a host of other equally impressive numbers.
This enormous growth in storage capacity easily trumps Moore’s Law (CPU capacity doubles every 18 months) and is more like a three-fold increase every 12 months. Nice ….. very nice!
Aug17
2011
FeedHenry is hiring again, with 5 open positions still available.
The type of stuff we’re into includes Cloud Computing, AWS, Node.js, Java, JavaScript, HTML, CSS, Chef, and all sorts of scripting languages and other exciting stuff.
Have a look at our Careers page for more details and why not drop us a copy of your CV.
Jul22
2011
If you’re a web developer and would like to get on board the mobile app train, then you should check out FeedHenry.
Our cloud-based developer studio allows you to develop apps using familiar web technologies like HTML, CSS and JavaScript and then build versions of those apps for iPhone, iPad, Android, BlackBerry, Windows Phone 7 and Nokia WRT, all from the same code base. Registration is completely free.
Each app can also execute part of its business logic in our cloud. This allows you can change the key functionality of the app without having to push (time consuming and costly) updates to the app stores. It also means that you don’t need to provision any extra infrastructure to scale your apps to millions of users.
There’s a whole bunch of other stuff it does too so if you’d like to know more, head on over to http://www.feedhenry.com
You might also like to take a peek at http://www.aerlingus.com/help/aerlingusmobile – all built on the FeedHenry platform!
Jul05
2011
Twitter co-founder Jack Dorsey, who appeared on Ireland’s The Late Late Show earlier this year with his e-payments solution (Square), has raised US$100m in Series C funding, valuing the company at more than US$1bn.
Source: Silicon Republic
Jul05
2011
I missed this one last week, but Vodafone have reduced their data roaming charges for the months of July and August 2011 to the same rates as you would pay in your home country. All we need now is for them to extend the offer indefinitely.
Source: Silicon Republic
Jul01
2011
Had some strange behaviour with DNS on Mac OS X earlier today. Made a change inside DNS and waited the required amount of time for the TTLs to expire. Then verified that the new IP address was resolving (using both dig and nslookup).
However, my system was still trying to use the old IP address when I tried a simple ssh or telnet command.
In the end, I discovered how to flush my local DNS cache, which fixed the problem. You can do this as follows:
$ dscacheutil -flushcache
Apr30
2011
Just upgraded to a newer version of WordPress and forgot to re-enable by home-grown anti-spam hack on the comments page. Got hit with over 50 bogus comments in the space of 30 minutes or so. Big brother is watching!