Fork me on GitHub

Wednesday, December 7, 2011

Icons, Icons, Icons

posted by Lars Hundebøl # 9:47 a.m.

The following is a list of different icon libraries, I often use when developing web - and mobile solutions:

permalink

Tuesday, May 24, 2011

Map ls to dir on Windows

posted by Lars Hundebøl # 2:56 p.m.

Now I'm both a Mac and a Windows user, and when I'm in the command prompt on my Windows machine, I can't stop typing "ls" instead of "dir" to list directories.

Luckily I found this great (and very simple) tip at http://allinthehead.com/retro/131/dir-vs-ls, on how to map the key combination "ls" to "dir".

  1. Open a new text file, type: dir
  2. Save as ls.bat in C:\Windows\System32\

The only thing is, that this tip does not map dir options such as the wildcard (*) parameter.

permalink

Saturday, May 14, 2011

Got myself a new Man Purse

posted by Lars Hundebøl # 8:46 a.m.

I am looking forward to try out my new man-purse from Tom Bihn equiped with iPad pocket and everything.

So far, I am able to fit everything inside that I got in my existing Tausche messenger bag, but it is half the size.

permalink

Monday, April 18, 2011

Quick and Dirty JSON String Serializer in C#

posted by Lars Hundebøl # 1:53 p.m.
using System.Web.Script.Serialization;
private string SerializeJsonString(string input)
{
  JavaScriptSerializer serializer = new JavaScriptSerializer();
  return serializer.Serialize(input);
}

permalink

Monday, April 18, 2011

AJAX Loader GIF animation

posted by Lars Hundebøl # 1:32 p.m.

When in need of a fancy AJAX loading GIF animation, I always seem to find what I need here:

http://www.ajaxload.info/

permalink

Sunday, April 17, 2011

Tips on getting your Python App Engine Dev environment up and running

posted by Lars Hundebøl # 11:38 a.m.

Install PIL

I had some problems getting the testbed unit testing framework up-and-running (see my StackOverflow entry), but it turned out I was missing Python Imaging Library (or PIL).

Instructions on how to install it can be found here.

Fix the "No ssl package found" warning

In order to remove the warning "No ssl package found. urlfetch will not be able to validate SSL certificates", you must install ssl:

Download the ssl package here: http://pypi.python.org/pypi/ssl

cd ~/Downloads
tar zxvf ssl-1.15.tar.gz
cd ssl-1.1
python setup.py build
python setup.py install

permalink

Sunday, April 17, 2011

How to make a Python script executable on Mac OS X

posted by Lars Hundebøl # 11:23 a.m.

I found this link on how to make a Python script executable on Unix systems (including Mac OS X):

http://effbot.org/pyfaq/how-do-i-make-a-python-script-executable-on-unix.htm

This saves me the time when executing e.g. my run test scripts.

permalink

Saturday, April 24, 2010

Visual Studio Tip: Reference files in Project Directory.

posted by Lars Hundebøl # 7:47 a.m.

Here is a nice little tip to reference files located in Visual Studio project directory, when running the project from within Visual Studio.

Use the following code:

string path = Path.Combine(Environment.CurrentDirectory, 
@"..\..\Test.xml");

permalink

Wednesday, December 2, 2009

Using doskey macrofile to optimize work within the Command Prompt

posted by Lars Hundebøl # 1:59 p.m.

The following is helpfull little tip to create shortcuts to commonly used applications when working in the command prompt.

1. Create a new doskey macrofile (e.g. notepad c:\doskey)
2. Edit doskey macrofile to include all your shortcuts:

sub="C:\Program Files\Sublime Text\sublimetext.exe" $*
ie="C:\Program Files\Internet Explorer\iexplore.exe"

3. Change cmd.exe shortcut to include the following doskey command:

%SystemRoot%\system32\cmd.exe /k doskey /macrofile=c:\doskey


Relevant doskey links:

Loading doskey automatically with CMD
DOSKEY – set shortcuts for DOS commands

permalink

Sunday, June 14, 2009

Formatting code for my blog

posted by Lars Hundebøl # 9:33 a.m.
Currently I'm using http://quickhighlighter.com, but I'm not happy with it. Does anyone know of a better code-to-HTML tool out there?

permalink

older posts