Friday Aug 24, 2007

Auto-hide my app

I follow along with the hints on Mac OS X Hints but generally don't use what comes by. In the past I have pulled out the hint/hack on how to get ones cell phone that support bluetooth sync to sync with Sync.app. And now another has finally come along that I have started to use. This one is on how to auto-hide the dock and menubar on a per-app basis and it is very easy and useful. The dock is easy to hide and I leave it hidden all the time, but now the ability to hide the menubar on a per app basis is very nice.

For what it's worth.

Wednesday Jan 17, 2007

svk woes update

Time for an update to my svk woes that I was speaking of a few days back. So it turns out that the solution was not far from where I was... just a few extra steps. So the scenario is that we desired to mirror a workspace from an external svn server and then have a place to internally merge in changes before publishing them back out to the community. Simple right... now it is.

  • Setup internal mirror:
    % svk mirror http://svn.open-mpi.org/svn/ompi/branches/v1.2 /mydepot/ompi-v1.2
  • Copy the mirror to a project space for merging:
    % svk copy /mydepot/ompi-v1.2 /mydepot/ompi-project
  • Now I can check out a copy of my project workspace, make changes, commits
  • To merge changes into the project area then use:
    % svk smerge /mydepot/ompi-v1.2 /mydepot/ompi-project

When we are ready we can then publish the change all the way back to the main svn parent and not break the headrev like we did in the past.

For what it's worth.

Tuesday Jan 09, 2007

svk woes

I will file this as a GK since it is driving me nuts. We are using SVK to create a mirror of an SVN gate and then hold our changes before they are pushed back to the community depot... well that is all well and good we have the internal mirror and the sync was working fine until we stopped the sync for a few days, did a nice putback into the internal child... and now the syncs are failing.

% svk sync /my-project/vX.Y
no headrev at /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/SVN/Mirror/Ra.pm line 159.

Okay, so as my debugging goes on to see if there is a fix for this... feel free to throw me a bone if you have the answer.

For what it's worth.

Update: solved in later post

Friday Dec 08, 2006

Pixel PNG

I have been trying (not to hard) to find a way to generate one pixel by one pixel images (png) for a large number of colors. I made up a few by hand in Gimp but there was no way I was going to do that for hundreds... so last night I stumbled across PNGwriter. Oh, just what the doctor (makefile) ordered. I hacked on it a bit while watching tv last night and now I have a quick little program for generating pixels. Not overly clean but it does the job. Why you ask? Well I have these 1x1 pixels as my screen saver, so when my little one sees the screen she calls out the colors... she loves it and it helps us teach her colors.

Offer up your ideas on generating 1x1 pixel images as well or even code snips of using the pngwriter library.

For what it's worth.

Monday Oct 23, 2006

Avogadro Your Day

Today, October 23, from 6:02 AM to 6:02 PM join in the celebration of Mole Day.
Mole Day commemorates Avogadro's Number (6.02 x 1023), which is a basic measuring unit in chemistry.

For what it's worth.

Monday Oct 16, 2006

Sudoku or Sudorku?

Did you get stumped by Jason's Sudoku? Below is the Foxtrot comic from 10.15.2006 and if you click on the image you can see the solved version. I was watching to see if Kevin was going to post the solution as well.

[All Rights to Bill Amend]
For what it's worth.

Monday Sep 11, 2006

68719476736 seconds

If my math is right I would not take the offer. The first few weeks it is all right by by the end of school one would have 68719476736 seconds of home work per week... that is 785364 days of home work per week or 2185 years of home work per week. Just say no... but kids feel free to see if you parents will give you a penny for your allowance this week and double it every week.

For what it's worth.

Tuesday Aug 29, 2006

Valid or In-Valid Email Address

I was just caught by using a plus (+) symbol in my GMail address. I registered with Buick for a contest to win a free car... like I had any chance of winning but what the heck. So I entered as my email address myaddress+buick@gmail.com . The contest entry page accepted that as a valid email address and I recieved confirmation that it was submitted. While after the contest ended they sent along a follow up email that basically said you did not win but if you want to come in for a test drive we will give you this fancy hat. So I thought what the heck, why not. So going to enter for this hat I entered the same email address (myaddress+buick@gmail.com) and the Buick site informs me that is an invalid email address. Really, then how did you send me the first email. So I tried myaddress@gmail.com and was informed that this promotion was for only the original recipient of the email... ah! Just goes to show that sometimes the right hand does not know what the left hands is doing and that erronius error checking can cause a bad customer experience.

For what it's worth.

Tuesday Aug 22, 2006

EXIF Parser (in python)

I have been having some odd issues with an Automator task for re-naming finder items. So I was out searching for a new utility to name files based on the EXIF data that is stored with the images taken from our digital camera. After asking a colleague he pointed me to the (now) obvious source... Source Forge. I found and am pretty happy with pyexif (Python Exif Parser). I am looking into one enchancement that would allow for the option to prepend or append the rename with an additonal name. So for example if I have photos of my dog and I want them all timestamp date I could like them as nuba-{timestamp}.jpg . I am sure this would be an easy enchancement to the tool. The short is, take a look at the tool if you are interested in renaming files based on the EXIF data.

For what it's worth.

Update: Well that was not hard. Here is a link to the modification with the ability to append and/or prepend names to the renamed file(s). Now we shall see if the author pick up the changes.

Tuesday Jul 18, 2006

NTP: Mystery Drink #3

It has been a while but here is NTP: Mystery Drink #3. Can you guess it?

carbonated water, sodium citrate, taurine, glucuronolactone,caffeine, acesulfame k, aspartame, inositol, xanthan gum, niacinamide, calcium pantothenate, pyridoxine hcl, vitamin b12, artificial flavors, colors

For what it's worth.

Thursday Jul 13, 2006

Nuba Java get's older

Happy Fourth Birthday Nuba Java. After work we will head out to the pet store and let you pick out a new chew toy. If you have not seen the movie of her dreaming then head over and watch it.

For what it's worth.

Tuesday Jun 27, 2006

More Distractions

Can you think in 3D? If you think so then head over and give it a whirl. I guess today is the day of distractions... after work of course.

For what it's worth.

Friday Jun 16, 2006

ksh makefile frustration

So I have been working on a script that is driving a set of builds. I reached a point that in once place I wanted to pass in overriding variables to make than get set at configure time. So I thought this would be easy right:

(in ksh script)
make \\
    foo=/my/new/path \\
   bar=/my/new/path/lib \\
    install

That is what I thought would work... hey it works on the command line if you just type it out. WRONG (at least in my case). I ended up with the following in order to get it to work... but I don't like it, it leaves room for to many errors. I will keep working but for now...

(in ksh script)
env \\
    foo=/my/new/path \\
   bar=/my/new/path/lib \\
    make \\
        install

For what it's worth.

Thursday Apr 27, 2006

Code Monkey

Are you a code monkey? Is so head over and listen to Jonathan's great song ' Code Monkey'. I first heard it over on the maccast.

For what it's worth.

I believe you have...

For what it's worth.

Thursday Mar 23, 2006

CS Phone Screening Tips

Just read through Steve's page on " The Five Essential Phone Screen Questions". At least it will help keep out the riff raff.

For what it's worth.

Tuesday Mar 14, 2006

3.14159265

Well with all the chaos that happened with my laptop yesterday I almost forgot to wish all of my readers a happy PI Day. A great day to geek out and order up a poster to display you geekiness.

For what it's worth.

Thursday Feb 09, 2006

GK: Retro-Encabulator

GC: Geek challenge: Retro-Encabulator

Huge bonus points if you can put what he is saying into english. This is why I dropped electrical engineering in college.

For what it's worth.

Thanks Hagemann for reminding me that I failed at EE.

Thursday Jan 26, 2006

NTP: Mystery drink #2

Okay so yesterday thinguy nailed the Name That Product question and he thought it was a little easy... let's see how well today's goes. My guess is that this one will not be hard either but it is what I have in front of me right now.

carbonated water, carmel color, aspartame, phosphoric acid, postassium benzoate, natural flavors, citric acid

For what it's worth.

Wednesday Jan 25, 2006

NTP: Mystery drink

NTP: Name that product. I thought I would through out a new thought and see how it goes. I am going to name the ingredients to a product that I use on a regular basis and you all get it try to guess the product. I have not prizes to offer unlike Mary so the only reward is the personal satisfaction of getting it right. So here we go with the first one, this one should be easy.

nonfat milk, brewed espresso coffee (water, coffee), cream (milk), sugar, carmel color, ascorbic acid

Have fun and if this goes over well I will post more NTP's.

For what it's worth.

Thursday Jan 19, 2006

XL: extra large or 40

So Super Bowl XL is being held this year at Ford Field in Detroit, MI. Interestingly Detroit has place poorly (high) on the fattest cities in the US for the past several years. So I ask is XL for extra large or for 40? This could be the biggest super bowl yet.

For what it's worth.

Wednesday Dec 14, 2005

GC: Makefile loop math

This weeks the Geek Challenge is brought to you by the letter 'M', mmmm makefiles are fun.

Somehow I have taken on the joy of answering makefile questions which more time than not really turn in to scripting questions and just how to do it in a makefile. Here is one that I recently worked on:

How can I set and use a variable inside a loop in a makefile so that var1=var2\*var3, where var2 is update in the loop?

ARY1=1 2 3 4 5
VAR3=2
loop:
    @for i in $(ARY1); do \\
        (VAR1=$(VAR3)\*$$i ; \\
        echo $(NP) ; \\
    done;
So there it is. The problem has been solved but I thought I would throw it out to the Geek Challenge as well and see what you all come up with. I will post what we used in a couple of days.

For what it's worth.

Monday Nov 07, 2005

Fun with numbers and comics

So this weeks Geek Challenge is to solve the Fox Trot comic from November 06, 2005. I have include a copy of it below.


[All rights reserved to original author]

Solve away... and find the solution in the comments section of this post.

For what it's worth.

Thursday Oct 13, 2005

GC: Math -- An International Language

This week the Geek Challenge is from a local treasure hunt that I took part in a couple of weekends ago. Here goes...

    C O C A
+   C O L A

  O A S I S

Is the answer:
    L = 0
    I = 7
    L = 3
    I = 8

I will give out the answer in a few days if no one has all ready answered the question.

For what it's worth.

Wednesday Sep 28, 2005

Solve the puzzle and move on

I had just finished watching the NerdTV episode with Max Levchin. So know some about Max and wanting to learn more I did want a lot of us do and head off to Google him. The brought me over to one of his web sites. From there I followed the link over to a different site.... can you solve it to move on?

For what it's worth.

About

dlacher

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today