Post thumbnail of How to make a ninja mask with a tshirt
15 January 2010
Continue reading How to make a ninja mask with a tshirt

How to make a ninja mask with a tshirt

How to make a ninja mask out of a tshirt. There’s a few ways to do this, and none of them involve cutting any holes in your tshirts. So simple even a caveman can do it.

Post thumbnail of How to install Ubuntu on a OLPC XO Laptop
12 December 2009
Continue reading How to install Ubuntu on a OLPC XO Laptop

How to install Ubuntu on a OLPC XO Laptop

Get a developer key and install Unbuntu on a usb disk so you can boot any XO from the USB disk without modifying your XO laptop. All production XO laptops have firmware security enabled when you receive them. Once unlocked, you can run any operating system you want.

Post thumbnail of How to restore a postgresql database from dumpall backup
23 October 2009
Continue reading How to restore a postgresql database from dumpall backup

How to restore a postgresql database from dumpall backup

If your dump was performed with the “–clean” option, you can skip the reinitializing of your databases to avoid duplicating data. This option, used with the “pg_dumpall” command will cause the restore to clean out all the objects in the database before performing the restore. If you didn’t include this option, then just delete the data directory and reinitialize the database as shown below.

Post thumbnail of How to debug wxPython errors when your applications crash
20 October 2009
Continue reading How to debug wxPython errors when your applications crash

How to debug wxPython errors when your applications crash

After your done building your wx objects and you’re ready to show it and call MainLoop(), wrap your main loop where you actually instantiate your gui objects in try/accept statements so that you can really catch any errors by calling the “show_errors()” function to launch a new message window where the errors will get displayed. This lets you catch errors before your whole program dies (causing errors to get lost).

Post thumbnail of Tail a file in Python
20 October 2009
Continue reading Tail a file in Python

Tail a file in Python

Tail a file in Python

def tail( f, window=20 ):
f.seek( 0, 2 )
bytes= f.tell()
size= window
block= -1
while size > 0 and bytes+block*1024 > 0:

Post thumbnail of Git through a proxy
16 September 2009
Continue reading Git through a proxy

Git through a proxy

If you’re behind a proxy and you run that, you’ll get something like “the other end hung up” or “Cannot get remote repository information” because git is trying to connect using port 9418 by default. I found a few sites saying all you need to do is change git to http in the url and it will work, but that did not work for me. But it’s an easy fix. Change git’s http.proxy and you’re done. Here’s how: (replace my proxy host and port 8002 with your own)

Post thumbnail of How to add files to an iso image on any Linux distribution
28 August 2009
Continue reading How to add files to an iso image on any Linux distribution

How to add files to an iso image on any Linux distribution

I’ll start with a small DSL linux image. It’s only 50 meg, but it’s a pretty useful little distribution.
ls -lh dsl-4.4.10.iso

-rw-r–r– 1 ninja ninja 50M 2009-08-28 13:11 dsl-4.4.10.iso

Mount the original iso image you want to modify
mount -t iso9660 dsl-4.4.10.iso /mnt/original -o loop
Copy the everything that you just mounted to another …

Post thumbnail of How to pass multiple post array variables in PHP
6 August 2009
Continue reading How to pass multiple post array variables in PHP

How to pass multiple post array variables in PHP

Now when go.php loads, you can check to see if there’s anything in the post_arr, and if there is, cycle through the array and store all the elements. I couldn’t find a working example of this just by googling. It seemed like tons of people would ask for this, but any responses on forums would be, “well what are you really trying to do”. So here it is.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of How to put a picture link in your Outlook signature
18 March 2009
Continue reading How to put a picture link in your Outlook signature

How to put a picture link in your Outlook signature

How do you put pictures in your Outlook email signature so that everyone you send email to gets a little picture, and when they click on it, it sends them to a special website of your choosing? Well mom, that’s easy! Here’s how. But keep in mind, your screens may look a little different than mine, but it’s the same general get-r-dun process even if you’re using an older version of Outlook or Windows. I’m on 2008 server, so your mileage may vary.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of LDAP + Lighttpd :: Easy setup
5 March 2009
Continue reading LDAP + Lighttpd :: Easy setup

LDAP + Lighttpd :: Easy setup

Enabling LDAP authentication should take you about 2 minutes, unless you type with just 2 fingers. Then maybe 3 or 4. …If you don’t allow anonymous connections to your ldap, give it a user/password combination that has enough privs to do the lookups, or just use your master account if you’re just testing or don’t really care. … Now tell it what parts of your webserver you want to protect and how. You can specify any string you’d like for the realm. Here I require an LDAP user account name and password just to get to the wiki main page, and only admin can see the server-config page… Restart lighttpd and you’re done.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
 Page 1 of 3  1  2  3 »
Powered by Wordpress   |   Lunated designed by ZenVerse