Quantcast
Channel: Programming – Pete Shanahan's Shack
Browsing all 21 articles
Browse latest View live

bugfixed ‘find lowest subprocess’

It turns out there’s a bug, due primarily to testing on zsh and putting the script into bash. function find_lowest_subprocess() { local -i parent=$1 local pids typeset -a pids pids=($(pgrep -P...

View Article



Where’s the SDK, huh?

I’m just wondering when Apple will be shipping the SDK for the ipod touch/iphone. Just being nosey really. I’ve veered away from jailbreaking it simply because I don’t want to end up with an expensive...

View Article

While beauty may be skin deep

Ugly cuts to the bone… Over at Coding Horror, young Jeff is complaining about the abuse of the words ‘Beautiful Code‘ wherein the best example of an essay that is in the book is from Yukihiro...

View Article

Cheap and cheerful pwait for linux

#!/bin/bash -p if [ $# -eq 0 ]; then echo "Usage: $(basename $0) " 1>&2 exit 1 fi while [ -d /proc/$1 ]; do sleep 0.5; done If I implemented it using inotify, I presume I can get rid of the...

View Article

signal versus sigaction

the use of the signal(int signum, void (*handler)(int)) is a smidgin dangerous on various operating systems. Under Solaris, for example once the signal has been delivered to the process the signal...

View Article


Consistency checking a block device

I’ve been testing the resizing of the drives located on a Dell MD3000, and i’ve seen errors when resizing after the 2TB mark. This is on the new firmware which supports > 2TB logical drives. I wrote...

View Article

bash pip-isms or right hand side of pipe variables

Unlike my default shell (zsh), bash has a wonderful feature where it doesn’t keep variables that are set at the other end of a pipe, so for example: i= cat foo | while read bar; do     i=$bar done echo...

View Article

Major.Minor.Micro – or we can only do so much

When you release a piece of software into the world, then you expect there to be problems. That’s where release number taxonomies come from. Firstly, let’s define things. There is the Major number....

View Article


Programmatically changing environment variables in Windows

It’s not difficult to set environment variable in Windows. System level variables are stored in HKLM/System/CurrentControlSet/Control/Session Manager/Environment. User level variables are stored in...

View Article


Is that a password in your pocket…

I’ve seen it again and again… a developer wants to access some restricted data over the internet in a client application, but is unwilling to use a per-user login to access the data. As a result, they...

View Article

There is a reason that it gets called an interface.

I’ve been writing commercial software since 1996. Since then the Microsoft API for WIN32 has been extended to support the 64bit platform, but most of everything I learned while writing to that platform...

View Article

Where’s the SDK, huh?

I’m just wondering when Apple will be shipping the SDK for the ipod touch/iphone. Just being nosey really. I’ve veered away from jailbreaking it simply because I don’t want to end up with an expensive...

View Article

While beauty may be skin deep

Ugly cuts to the bone… Over at Coding Horror, young Jeff is complaining about the abuse of the words ‘Beautiful Code‘ wherein the best example of an essay that is in the book is from Yukihiro...

View Article


Cheap and cheerful pwait for linux

#!/bin/bash -p if [ $# -eq 0 ]; then echo "Usage: $(basename $0) " 1>&2 exit 1 fi while [ -d /proc/$1 ]; do sleep 0.5; done If I implemented it using inotify, I presume I can get rid of the...

View Article

signal versus sigaction

the use of the signal(int signum, void (*handler)(int)) is a smidgin dangerous on various operating systems. Under Solaris, for example once the signal has been delivered to the process the signal...

View Article


Consistency checking a block device

I’ve been testing the resizing of the drives located on a Dell MD3000, and i’ve seen errors when resizing after the 2TB mark. This is on the new firmware which supports > 2TB logical drives. I wrote...

View Article

bash pip-isms or right hand side of pipe variables

Unlike my default shell (zsh), bash has a wonderful feature where it doesn’t keep variables that are set at the other end of a pipe, so for example: i= cat foo | while read bar; do     i=$bar done echo...

View Article


Major.Minor.Micro – or we can only do so much

When you release a piece of software into the world, then you expect there to be problems. That’s where release number taxonomies come from. Firstly, let’s define things. There is the Major number....

View Article

Programmatically changing environment variables in Windows

It’s not difficult to set environment variable in Windows. System level variables are stored in HKLM/System/CurrentControlSet/Control/Session Manager/Environment. User level variables are stored in...

View Article

Is that a password in your pocket…

I’ve seen it again and again… a developer wants to access some restricted data over the internet in a client application, but is unwilling to use a per-user login to access the data. As a result, they...

View Article
Browsing all 21 articles
Browse latest View live




Latest Images