Idle thoughts http://blog.croker.net (what I end up looking at when I have too much time on my hands) posterous.com Mon, 10 Oct 2011 05:45:00 -0700 SimpleHTTPServer with PNG support http://blog.croker.net/simplehttpserver-with http://blog.croker.net/simplehttpserver-with

A simple python script to serve up the contents of the local directory and provide the correct mime-type (on Windows) for PNG files to use the browser to render the image:

 

import SimpleHTTPServer
import SocketServer


PORT = 8000
IP = SocketServer.socket.gethostbyname(SocketServer.socket.gethostname())

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
Handler.extensions_map = {
".png":"image/png",
'': 'application/octet-stream',
}

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT, "on", IP
httpd.serve_forever()

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Fri, 02 Sep 2011 13:16:48 -0700 Fiestas En Valladolid http://blog.croker.net/fiestas-en-valladolid http://blog.croker.net/fiestas-en-valladolid
02092011262

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Wed, 01 Jun 2011 03:43:27 -0700 Poco a poco http://blog.croker.net/poco-a-poco http://blog.croker.net/poco-a-poco
01062011263

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Wed, 25 May 2011 05:55:00 -0700 Getting Gnome Shell working on an Intel 945GM in Fedora 15 http://blog.croker.net/getting-gnome-shell-working-on-an-intel-945gm http://blog.croker.net/getting-gnome-shell-working-on-an-intel-945gm

With the new release of Fedora now out I upgraded my laptop from version 14 to 15. One of the new features of Fedora 15 is Gnome 3 and Gnome-Shell. According to the FAQ my (nearly) 5 year old laptop should work with the new interface. The laptop, Dell Latitude D620, came with an embedded Intel 945GM graphics card which was capable of running Compiz under Fedora 14. However when firing up Fedora 15 for the first time I’m presented with a dialogue box telling me my system is not capable of running the shell in it’s full glory giving me the “Fallback” experience :(.

In order to rectify this you can run through the following, starting with executing this command:

gconftool-2  -s --type bool /apps/metacity/general/compositing_manager true

This (re)activates the compositing in Gnome allowing for wobbly windows and transparency. The change takes immediate effect and after a brief screen flicker you can press Alt-F2 and enter the following command:

gnome-shell --replace

Giving the you the full gnome-shell experience:

Whilst the change made by the first command is permanent, at least until it gets reverted by another program, the second command needs to be executed each time you log in (until I can work out a way to make the change permanent).

To have gnome-shell start up automatically with each new session add the following to ~/.config/autostart/gnome-shell.desktop:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=GNOME Shell
Type=Application
Exec=gnome-shell --replace
Terminal=false
Icon=gnome-shell
OnlyShowIn=GNOME;
Comment=Gnome-shell
Categories=Utility;
Hidden=false

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Tue, 25 Jan 2011 09:13:52 -0800 Nom nom nom http://blog.croker.net/nom-nom-nom http://blog.croker.net/nom-nom-nom
25012011244

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Sat, 08 Jan 2011 14:49:05 -0800 Sin comentario http://blog.croker.net/sin-comentario http://blog.croker.net/sin-comentario
08012011243

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Thu, 23 Dec 2010 12:57:17 -0800 i will get my crackberry to work http://blog.croker.net/i-will-get-my-crackberry-to-work http://blog.croker.net/i-will-get-my-crackberry-to-work
23122010233

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Mon, 20 Dec 2010 14:08:07 -0800 More snow http://blog.croker.net/more-snow http://blog.croker.net/more-snow

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Sat, 18 Dec 2010 07:27:53 -0800 Higham snow http://blog.croker.net/higham-snow http://blog.croker.net/higham-snow

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Fri, 17 Dec 2010 04:17:43 -0800 Let it snow!!? http://blog.croker.net/let-it-snow http://blog.croker.net/let-it-snow
17122010221

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Sun, 12 Dec 2010 05:20:41 -0800 land ahoy http://blog.croker.net/land-ahoy http://blog.croker.net/land-ahoy
12122010216

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Tue, 30 Nov 2010 11:21:14 -0800 Student food - in spain http://blog.croker.net/student-food-in-spain http://blog.croker.net/student-food-in-spain
30112010204

Nom nom nom

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Sat, 06 Nov 2010 15:59:00 -0700 No more men in ducky water wings? http://blog.croker.net/no-more-men-in-ducky-water-wings http://blog.croker.net/no-more-men-in-ducky-water-wings
06112010202

En Salamanca

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Mon, 04 Oct 2010 01:04:11 -0700 Step one for world domination - dig a trench http://blog.croker.net/step-one-for-world-domination-dig-a-trench http://blog.croker.net/step-one-for-world-domination-dig-a-trench Step two - recover from step one

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Mon, 27 Sep 2010 04:43:00 -0700 Disable Ping links in iTunes 10.0.1 http://blog.croker.net/disable-ping-links-in-itunes-1001 http://blog.croker.net/disable-ping-links-in-itunes-1001

With the update of iTunes to 10.0.1, it's now possible to "ping" that track, film or program you are listening to or watching from within the music library. Unfortunately this new feature disables the arrow links that, when clicked, takes you to the iTunes store or to the artist or album selected. Disabling the Ping link and re-enabling the old link requires you run the following commands from the terminal:

defaults write com.apple.iTunes hide-ping-dropdown -bool TRUE defaults write com.apple.iTunes show-store-link-arrows TRUE

If you wish to have those link arrows go to your library rather than the iTunes store run the following command: defaults write com.apple.iTunes invertStoreLinks TRUE After running any of the above commands, restart iTunes and you should find the arrows are back and the Ping button has gone.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Wed, 25 Aug 2010 15:36:06 -0700 Orujo con posesia magnetica http://blog.croker.net/orujo-con-posesia-magnetica http://blog.croker.net/orujo-con-posesia-magnetica
26082010146

hecho por mi cuñado y sobrino

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Sat, 21 Aug 2010 06:07:17 -0700 A Lanzada http://blog.croker.net/a-lanzada http://blog.croker.net/a-lanzada
21082010142

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Fri, 06 Aug 2010 02:25:00 -0700 More kitchen photos http://blog.croker.net/more-kitchen-photos http://blog.croker.net/more-kitchen-photos

Perhaps with repeats

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Mon, 26 Jul 2010 10:27:06 -0700 too many boxes http://blog.croker.net/too-many-boxes http://blog.croker.net/too-many-boxes

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker
Fri, 23 Jul 2010 01:59:06 -0700 Adios casa :..( http://blog.croker.net/adios-casa http://blog.croker.net/adios-casa
23072010135

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/167819/crogr01.jpg http://posterous.com/users/4avweAhD46bL Grant Croker grantc Grant Croker