12,938 reputation
23365
bio website shawnjgoff.com
location Tampa, FL
age 32
visits member for 2 years, 9 months
seen 23 hours ago
stats profile views 446

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.


Jul
2
comment shell backup script, missing `]`
The only thing I can think is that [ is not so much part of shell syntax, it's actually a program invocation (even though it's usually a program built in to the shell). I would imagine the -n doesn't give any guarantees about correct command invocation.
Jul
2
comment shell backup script, missing `]`
I've never seen the -n option for Bash. It's not in the GNU manual or the BSD manual.
Jun
24
comment How can I change the battery icon in the systray?
@UlrichDangel That would just add another battery to the system tray unless I also move away from using gnome-settings-daemon.
Jun
24
comment How can I spy on X client messages?
That's kind of what I'm trying to solve - what application is putting that there? I have the class window class name: gnome-power-manager, but there is no aplication called that. There is nothing matching "power" running as a daemon.
Jun
23
comment How can I spy on X client messages?
A [client message][1] seems to be a type of event. The freedesktop [system tray spec][2] specifically talks about an "x client message". In any case, I have the correct window, but xev is not giving my any information about what program is sending what event to that window, but its status is definitely being updated by something. [1]: tronche.com/gui/x/xlib/events/client-communication/… [2]: standards.freedesktop.org/systemtray-spec/…
Jun
20
comment How does one change the delay that occurs after entering an incorrect password?
Instead of a new module (suggested in my previous comment), I used pam_unix with the nodelay option and pam_tally2 with deny=5 unlock_time=15; this allows for 5 immediate retries, but denies access (even with a successful password) for 15 seconds. I still intend to try writing the described model, but now it's a back-burner project, because this would not be suitable if your primary access to the system is network-based since it makes a DOS attack trivial.
Jun
19
comment Rake - “bundle exec” - how can I avoid `bundle exec` with my `rake spec`
Check out the Ruby Version Manager. rvm.io
Jun
17
comment Error while cross compiling using crosstool-ng. How to debug?
What did you do to prompt this message? Was it make install by any chance?
Jun
17
comment What package managers do popular Unix Distributions Use?
See the Rosetta Stone for Unix bhami.com/rosetta.html and the Pacman Rosetta stone: wiki.archlinux.org/index.php/Pacman_Rosetta
Jun
17
comment What package managers do popular Unix Distributions Use?
A tar.gz file is not necessarily source code; it can contain binaries, and it's definitely not an ASCII file: it's a gzip-compressed archive.
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
This has been interesting; maybe I'll write a module that allows N tries with no delay followed by any number of tries with a long delay.
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
Adding the nodelay option to pam_unix.so and adding a new entry with pam_faildelay.so delay=$some_number lets me set whatever I want. Thanks!
Jun
16
comment How does one change the delay that occurs after entering an incorrect password?
There is no mention of delay anywhere in /etc/pam.d/*. The closest thing I see is pam_tally.so which allows locking after some number of attempts. But I do have n /etc/login.defs, which might be what I need.
Jun
2
comment Battery not detected on my embedded device on reboot
This could be either hardware or software, but I'd bet the software is not giving enough time for the hardware to initialize.
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.