links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
era, member since Jun 19, 2006
.
Search Everyone: "peeve",

Top "peeve" experts: mrericsir,

1 - 10 of 17 next »   Watch era
 
For once, Jakob Nielsen gets it spot-on "For online reading, however, PDF is the monster from the Black Lagoon." -- Jakob Nielsen
by era 2006-06-19 01:25 advocacy · blog · erablog · pdf · peeve · quips · usability · web · 20060619-0123
http://www.useit.com/alertbox/20030714.html - cached - mail it - history
More on HTTP teergrubing, including a nasty Location: loop I experimentally set up a CGI which feeds stuff from /dev/random at a glacial pace, and ScriptAlias a number of frequently requested security holes to that. Lessee what I have in the trap tomorrow ... obPeeve: The guy could learn how to spell "teergrubing". (The German word "grube" has a long "oo" sound in the middle and a short "uh" sound at the end.) See also http://de.lirio.us/rubric/entry/51442
by era 2006-06-19 01:25 blog · erablog · peeve · security · server · web · 20060619-0123
http://www.stdlib.net/~colmmacc/2005/11/24/getting-rid-of-errant-http-requests/ - cached - mail it - history
Sheesh, people just DO NOT GET password security '"Our policy is that employees safeguard their passwords and access codes so we can ensure privacy and confidentiality for our patients. A violation of that policy can result in termination." Nelson said she knew the policy but says that workers sharing log-ins isn't uncommon.' The woman still wants to appeal her termination.
by era 2006-06-19 01:25 article · blog · computing · erablog · peeve · privacy · security · zeitgeist · 20060619-0123
http://www.sltrib.com/portlet/article/html/fragments/print_article.jsp?article=3446759 - cached - mail it - history
The author of dbacl demonstrates n-grams, naive Bayesian machine learning, etc. Yet another example of not very brilliant shell scripting, but the actual substance of the article more than makes up for this.
by era 2006-06-19 01:24 03a · article · bayesian · blog · erablog · peeve · science · shell · spam · 20060619-0123
http://www.lbreyer.com/spam_chess.html - cached - mail it - history
cat - | cat - and other Unix shell programming anti-patterns
by era 2006-06-19 01:24 00a · era · faq · peeve · programming · reference · shell · unix · 20060619-0123
http://www.iki.fi/era/unix/award.html - cached - mail it - history
Why is it that the "printer-friendly" page always looks better than the "real" page?
by era 2006-06-19 01:24 blog · design · erablog · peeve · usability · web · 20060619-0123
http://www.govoffice.com/index.asp?Design=PrintView - cached - mail it - history
A classic, read it if you haven't "2-3. Wait, what about the 'Buddah'? He spends his time hanging out with Ghandi in New Dheli. Munching on gerkhins, no doubt."
by era 2006-06-19 01:24 blog · erablog · faq · humor · peeves · quips · religion · society · usenet · 20060619-0123
http://web.mit.edu/jemorris/humor/alt.buddha.short.fat.guy.FAQ - cached - mail it - history
Couldn't help noticing the shell scripting again ... Okay, here is a blog by blow of the snappy shell script. > #!/bin/bash Yeah, well, it can be tolerated. The script actually contains a couple of bashisms, although they could be avoided; and anyway, if you are on Ubuntu, you are, shall we say, fairly likely to have a copy of Bash on your system. > a=`ps -aef | grep -i xcompmgr | awk ' {if ($8 == "xcompmgr"){printf "2"}} '` Argh. Here's how to do that. a=`ps -aeof | awk '($8 == "xcompmgr") { printf "2" }'` I suspect the "2" was supposed to be "$2" but it doesn't matter here, because the result is thrown away ... Also I suspect the guy didn't know about print so that's why he used printf; not that it matters much. > if [[ $a = "" ]] > then So here's the bashism. You just have to wonder if it's necessary. The classical Bourne idiom for this would be to use case (or test, but it was an external process in historical times, so case is preferred): case $a in '') <> ;; *) <>;; esac More below. > yourcommand & > killall gnome-panel I'm sure if you have other users on your system they will not be happy if you kill their gnome-panels. Let's just hope you don't run this as root by mistake. Fixing this is left as an exercise. (Hint: Use less obtuse ps options to get a listing only of your own processes -- makes sense for other reasons too. And/or run another ps to get the PIDs of your gnome-panels and only yours. And/or abort if you are running as root.) > else > kill -9 `ps -aef | grep -i xcomp | awk ' {if ($8 == "xcompmgr"){printf $2}} '` > killall gnome-panel > fi Erm, so here we do the nasty "ps | did not read the faq so kill me" again? Again? Why not use the result in $a from the previous run? (Ah, because it was incompetently discarded?) Also, never never ever use kill -9 in a script unless you really really know what you are doing. We assume that the guy got tired of copy-pasting his own code (always a sign of a high level of goodness) and that the grep xcomp (pro grep xcompmgr) is not there for any particular reason. kill $a If you kill gnome-panel regardless of the outcome of the if/else, why do you have it twice inside the if, instead of once, outside?
by era 2006-06-19 01:24 blog · erablog · hardware · howto · peeve · shell · ubuntu · x11 · 20060619-0123
http://ubuntuforums.org/showthread.php?t=75527&highlight=transset - cached - mail it - history
The most incompetently coded piece of shell script I have seen in a long time If it works for you, good. I would have serious trouble trusting anything from a person who cannot spell "you", let alone grep a file without catting it first. Adding insult to injury, the comments talk about "GPL" and "trademark" (I assume incorrectly) in the same breath. Still, if you can look at the source without gagging for a moment, it contains some useful hints for things to install.
by era 2006-06-19 01:24 apt · blog · erablog · howto · newbie · peeve · reference · shell · ubuntu · 20060619-0123
http://ubuntuforums.org/showthread.php?t=66563 - cached - mail it - history
Another rehash of the old argument, with a sample script
by era 2006-06-19 01:23 howto · peeve · programming · shell · unix · 20060619-0123
http://sial.org/howto/shell/kill-9/ - cached - mail it - history
1 - 10 of 17 next »  
Related Tags
 
- exclude ~ optional + require
Add Dates