Grey Panthers Savannah

  • About
  • Blog
  • Interesting
Illustration of a bird flying.
  • Programming advent calendars for 2013

    Programming advent calendars are posts/articles for a particular topic posted daily between the 1st and 24th of December. They are modeled on the advent calendars received by children on some countries which contain 24 doors for the 24 days of advent and behind each door is a piece of chocolate or other surprise which the […]

    December 4, 2013
  • Cleaning up Google AppEngine Mapreduce Jobs

    Do you use the Google MapReduce library on AppEngine? And do you have a lot of completed tasks which clutter your dashboard? Use the JS below by pasting it into your developer console to clean them up! (use it at your own risk, no warranty is provided :-)) schedule = function() { window.setTimeout(function() { var […]

    November 12, 2013
  • Capturing your screen on Ubuntu – with sound

    Today I have a short script which I cobbled together from Google searches to do screen captures / screen casts with Ubuntu (including audio in so that you can narrate what is going on): #!/bin/bash Xaxis=$(xrandr -q | grep ‘*’ | uniq | awk ‘{print $1}’ | cut -d ‘x’ -f1) Yaxis=$(xrandr -q | grep […]

    August 14, 2013
  • Tips for running SonarQube on large / legacy codebases

    Crossposted from the Transylvania JUG website. SonarQube (previously Sonar) is a quality management platform aimed mainly at Java (although other programming languages are supported to a varying degree. Here are a couple of tips to get it working on legacy projects: There is an Ant runner and a standalone runner, it is not mandatory to […]

    June 28, 2013
  • Nested fluent builders

    Crossposted from the Transylvania JUG website. Builders have become commonplace in current Java code. They have the effect of transforming the following code: new Foo(1, 5, “abc”, false); Into something like Foo.builder() .count(1) .priority(5) .name(“abc”) .canonical(true) .build(); This has the advantage of being much easier to understand (as a downside we can mention the fact […]

    June 23, 2013
  • Passing UTF-8 trough HTTP

    These days we should write every code as if it will be used by international people with a wide variety of personal information (just look at Falsehoods Programmers Believe About Names for some headscratchers). I would like to do add my small contribution to this by showing how UTF-8 encoded strings can be passed into […]

    May 29, 2013
  • Connecting to the MtGox market data feed using Perl

    For a recent project I needed some realistic market data for an electronic exchange. Seeing how MtGox provides free and open access to theirs (thank you!) I chose them. However none of the examples floating around the internet seemed to work, so I whipped one up using Net::Async::WebSocket::Client. Enjoy: use IO::Async::Loop; use Net::Async::WebSocket::Client; my $client […]

    May 29, 2013
  • Converting datetime to UTC in python

    So you need to convert a python datetime object which has a timezone set (“aware” in the Python nomenclature) to an UTC one with no timezone set (“naive”), for example because NDB on GAE can’t store anything else. The solution will look something like this: date = date.astimezone(tz.tzutc()).replace(tzinfo=None) For searcheability: the exception thrown by NDB […]

    February 7, 2013
  • Recovering your RoTLD password for domains registered trough Gandi.NET

    If you need to “recover” your RoTLD password when the .RO domain is registered trough Gandi.NET (I say “recover” because you didn’t set it in the first place :-)) – do this: In the Gandi interface go to Account Management -> Update account information and set “Anti-spam system” to No Go to the RoTLD password […]

    February 5, 2013
  • Free software for Windows

    Inspired by this post I decided to list the software I use/recommend under Windows. Free/Libre Open Source Software: LibreOffice (for of OpenOffice) – a very capable office solution. Most people don’t need anything more than this. If you are installing it for a non-technical user, make sure to set the default file formats to the […]

    January 3, 2013
←Previous Page
1 2 3 4 … 108
Next Page→

©2022 Grey Panther, powered by WordPress
Content licensed under a Creative Commons Attribution 4.0 International License, except where indicated otherwise.