Archive for the 'I’m a Geek' Category

Dvorak + Kinesis

Friday, September 9th, 2011

I passed a milestone in my Dvorak endeavor yesterday. I had some one looking over my shoulder at what I was doing while I was typing in Dvorak… on a contoured keyboard.

Work bought me a Kinesis Advantage keyboard in May. (Manufacturer’s Page) These are hard enough to get used to in a qwerty layout. It has a native Dvorak mode on it so I made the Kinesis my Dvorak keyboard and the keyboard I was using my qwerty. I had been using both since May. Unplugged the qwerty keyboard the first of September.

This pic is from before I unplugged the qwerty keyboard:

DIY macbook power supply repair

Monday, May 23rd, 2011

image

Not too long ago our power supply for our macbook died. Just wouldn’t charge anymore. Go a new on on eBay for $30. Problem is that one broke this past weekend at the magnetic connection that connects to the laptop. I had the old one still and the connector was still in good shape. Naturally I just took a pair of wirer cutters to both of them. Free fix! Now I have a working power supply and a power supply cord that twice the length of the original one.

I <3 Fedora

Friday, February 11th, 2011

Saw this image on Planet Fedora this morning and liked it.

http://fedoraproject.org/w/uploads/b/b8/Artwork_T%282d%29Shirt_love.png

Lego Antikythera Mechanism

Monday, December 13th, 2010

Removing the tar balls from keywest

Wednesday, May 19th, 2010
CNN: Key West tar balls source unknown

[bp@ocean ~]# find /keywest -type f -name ‘*.tar’ -depth -exec rm -f {} \;

Props for Loki

Tuesday, May 4th, 2010

Loki is one of the projects that I started at work and open sourced. I have been giving intermittent attention to. It was recently metioned at a buildbot meeting:

There are already some configuration-generation apps out there (notably Loki),

http://buildbot.net/trac/wiki/Meeting29April2010#BuildCoordination

Also, Mozilla recorded the meeting: http://videos.mozilla.org/serv/air_mozilla/buildbot080event.ogg
Loki is referenced in this video just after the 0:28:50 mark.

Thanks for the plug!

Dvorak

Monday, March 8th, 2010

At work we got talking about Dvorak a little while back. I’ve been picking through this tutorial as I get time and really enjoying it. Just google Dvorak to read up on what so different about it. The main point I like is that people claim it reduces stress on your wrists. I figure with how much I’m on a computer it’s worth a try. I haven’t found any scientific evidence that it actually helps. Maybe I’ll get to the point of using it full time one day and have my own claim.

You can reconfigure your keyboard to use this layout regardless of it’s labelling. I’ve got my fedora and mac configured so I can swap between qwerty and dvorak very easily. There’s plenty of info on google on how to set this up. Once it’s setup on a mac just select your layout from the keyboard notification icon near the date/time on your menu bar. On fedora I use L-shift+Caps-Lock and it switches in and out of dvorak. I assume you can do it on windows too, but I don’t have a windows machine to try it on.

Still on lesson 17 in the tutorial so I can’t really do anything with it other than the tutorial yet… but I’m sure I’ll post a blog post in dvorak when I get to that level :)

ABCD: A Basic Course in Dvorak :: http://gigliwood.com/abcd/

Back in Time to Dec 14th

Sunday, January 3rd, 2010

I’ve been having trouble with on particular flash drive while trying to make my dad a Fedora Live USB sitck. Tonight briefly tried to fiddle with it to try and figure out what I was doing wrong. Not paying attention I fdisked my laptop drive and wiped out my drive partition. Kudos to Back In Time. I had a snapshot from december 14th of all my data. Most of anything I hadent backedup was pushed to a code repo elsewhere, so I just reinstalled. A few additional packages, email, VPN and kerb configs later I was back into a dec 14th state.

Back up you’re data!

WordPress mu non-wildcard vhosts

Friday, December 4th, 2009

*** UPDATE ***
This hack is probably unnessesary, I found that wp-mu has a sites framework that is not exposed, there is a plugin that’s trying to accoplish the same thing I am. Just google ‘wordpress mu sites’
*******

I need to have multiple wordpress instances installed, but I want them each to have their own vhost, I also want an easy way to maintain them (upgrades and such). I thought wordpress mu could do this… but out of the box it only supports wildecards on a single domain. (blog1.example.com and blog2.example.com and blog3.example.com) Turns out you can change 2 lines (3 if you want to clean up a view cosmetically) and you seemingly can use wordpress-mu to host multiple domains. www.blog1.com and www.blog2.com and www.blog3.com

I’ve not deployed this yet… so use at your own risk. I’ll post again later with results after I’ve migrated a couple sites to it.

The problem: wp-mu assumes in vhost mode that all your blogs are of convention {something_here}.example.com. It does this by concatenating the domain you configure at install time onto the name of any new wordpress site you setup.

The solution: tell it not to append your installed time configured domain when you setup a new site. No special magic seems to happen with a new wordpress site’s configured domain after install time.

To show how this works this we’ll setup an example.com instance of wordpress mu and replace the wildcard magic so that not-example.com is hosted by the same code base.
1. download and and install wp-mu just as they tell you to, use example.com (set a hosts record to point example.com to your localhost) You’ll now have a fresh new wp-mu blog at example.com.
2. patch the files to remove the wildcard vhost magic
a. This change will remove the hardcoded base domain and will assume the domain name you’re accessing wordpress with is the current domain. Without amking this dynamic the authentication would fail on some or all of the configured sites.

wp-config.php
@@ -38,7 +38,7 @@
-define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
+define(‘DOMAIN_CURRENT_SITE’, getenv(‘HTTP_HOST’));

b. This is the concatenation magic that we want to prevent from happening. It undoes the “force append install-time configured domain” or in our example case, don’t force .example.com on the back of my new blog.

wp-admin/wpmu-edit.php
@@ -147,7 +147,7 @@
if( constant(‘VHOST’) == ‘yes’ ) {
-                       $newdomain = $domain.”.”.$current_site->domain;
+                       $newdomain = $domain;

c. This last one is optional. It’s just removes the domain name below the test box on the form for a new blog. This is a pure cosmetic change.

wp-admin/wpmu-blogs.php
@@ -582,7 +582,7 @@
<?php if ( constant( “VHOST” ) == ‘yes’ ) { ?>
-                                                       <input name=”blog[domain]” type=”text” title=”<?php _e(‘Domain’) ?>”/>.<?php echo $current_site->domain;?>
+                                                       <input name=”blog[domain]” type=”text” title=”<?php _e(‘Domain’) ?>”/>

3. Add a new wp site at not-example.com (add the hosts record that points to localhost again to test)
4. use the dashboard -> tools -> export to get an xml dump of a single instance blog that you can import into a wp-mu managed blog.

Like I said I’ve not actually deployed this yet, but authentication in and out of the two domains dashboard and frontend seem happy. I’ll be sure to update this post with any other issues I come across. let me know if you try it and if it works!

Google found JADDOG

Friday, August 7th, 2009

I was working on something for work that involved python and kerberos again. Very generic search looking for the docs I used last time I was implementing similar functionality. Something seemed familiar about the last result on the second page:

JaddogGoogle

I don’t feel so much like and island in nowhere land any more.