14,935 reputation
44384
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 3 years, 7 months
seen Apr 15 at 15:59

I've grown up with computers around me my whole life. I started programming when I was a kid, and stuck with it ever since. I came across Linux around 1999 and have enjoyed working with it ever since.

For a job, I get to write software that runs on embedded Linux devices. I do everything from working on low-level drivers to writing shell scripts and even web apps.


Jun
2
comment Battery not detected on my embedded device on reboot
How do you know the battery isn't detected if it fails to boot?
May
27
comment How can I change the battery icon in the systray?
I already tried changing the theme - the icon isn't coming from the theme. I added that info to the question.
May
18
comment Argument list too long for ls
@Coren @Mikel - not everybody has GNU's find. The find on OS X and on busybox-based systems, and I would guess any BSD-based system shows the filename with a newline in it, which would mess with the count.
May
18
comment Argument list too long for ls
I modified it slightly to work in the case when there are filenames with newlines in them. You might also want to add a -maxdepth 1 if you are not intending to count files in subdirectories.
May
17
comment How do I install a device driver provided as a .bin file?
Where did you get this driver?
Apr
26
comment Using awk to process ls output with spaces in filenames/paths
@smokinguns See '-exec printf {}...' in the second example.
Apr
18
comment To display the selected part in line of text file
It depends on why 3071 is special. Is it because of its position, or because it is exactly the value 3071, or because of what comes before or after it, etc?
Apr
17
comment command OR script to detect vpn connection status
You can ping your VPN gateway. So, if your gateway on the VPN is 172.16.1.1, the exit status of ping -c 1 -W 10 172.16.1.1 will tell you if you're connected.
Apr
12
comment sourcing a file inside a script
I just tried it; it works for me the way you were expecting. Are you sure your sourced script is setting LD_LIBRARY_PATH? You can add a line at the very end (or anywhere the script might exit) that echos it to a different temp file.
Mar
11
comment Mouse clicks stop working after random time, using Awesome WM + Gnome
I have experienced this same behavior in the past, so I don't think it's anything special about any your hardware. I did not have Gnome at the time. I currently have two systems with Awesome, and neither are showing that behavior.
Feb
28
comment How do I begin with building a Linux system from scratch?
You can configure grub to boot a Linux kernel. There are many places to find out how to do that; the most authoritative of which would be the official manual(gnu.org/software/grub/manual/grub.html). Once the kernel boots, it will attempt to start a program located at /sbin/init (unless configured otherwise). This program can do anything you want. There are some common options to use for /sbin/init, such as Upstart, sysvinit, systemd, or just bash. From there, that program is in control. If it ever exits, the kernel will crash, so it should be capable of starting other programs.
Feb
20
comment using parallel to process unique input files to unique output files
@JJones - monitor_workers is just like process_file - it's a function that does whatever you want. About the monitor - you were right; it should save the pids of its workers (so it can send a kill signal) and the counter needs to be incremented when it starts a worker. I've edited the answer to include that.
Feb
17
comment Help with getting wifi up and running in Arch Linux on Mac Mini 3,1
@TomIngram You'll have to use wpa-supplicant (wiki.archlinux.org/index.php/WPA_supplicant). You should try and do as much as you can, and when you run into a problem, ask a new question.
Feb
17
comment How to stop a program running as daemon
I would add conditions to your statement. Don't use kill -9 unless you have tried other relevant signals or unless you know what the consequences of not allowing that process to terminate cleanly are and they are acceptable.
Jan
31
comment What can make passing init=/path/to/program to the kernel not start program as init?
Actually, it checks execute_command first, which comes from the kernel command line init= parameter. If it can't execute it, it prints a warning and tries to run init in various locations. This is in init/main.c in the function init_post(). I looked through the kernel printk messages and found the warning in my kernel's output, so now I have to figure out why it can't start /bin/sh or anything else that I try to start.
Jan
31
comment What can make passing init=/path/to/program to the kernel not start program as init?
It's not any distro - it's my own build; which is why I'm trying to debug the init scripts.
Jan
28
comment What is Bash's string{ending1,ending2} construct called and what is the equivalent in zsh?
Very strange; it's working for me now. I tried it before and it gave me some error, so I've been avoiding it for a month or so.
Jan
28
comment How can I low-level format flash memory in Linux?
It's not extraordinarily wrong to write /dev/zero to a flash device. The only advantage that writing 1s to the device gives is that you might get slightly faster write times the next time you write to the disk since it doesn't have to be erased first - and that depends on the flash translation layer being smart.
Jan
21
comment Strange behaviour in recursive copy
I think you have an extra cp -r 1/* 2/* in there - it's done twice in a row with (apparently) different results. It should always complain about not finding a 2/* because the shell can't expand that glob - nothing matches it. And the contents of 1 is not copied to f in this example.
Jan
21
comment Configure reboot on Linux kernel panic
Yes, I'll be booting either to a different kernel, or giving the kernel a different rootfs path. There is a variable in the bootloader's config that gets changed when userspace boots successfully; if it doesn't change, it knows to try something different. I was hoping for something more than just the kernel command line for this because the bootloader's config can be modified by the Linux userspace. If there's a problem, it's likely that userspace started writing, then the device powered off; and there is a fallback default config for that; I'm still looking for the most solid I can get this.