718 reputation
27
bio website
location Stockholm, Sweden
age 38
visits member for 2 years, 11 months
seen Sep 16 at 20:33

Geek! Internet guru. Gamer. IRC-addicted!
I speak TCP/IP.

I like to solve problems, no matter what they might be about.


Feb
19
comment How do I disable the PuTTY bell via a command line parameter?
If he logs onto a bash shell, for example, one other option is to type set bell-type visual (or none) in the shell to temporarily change the audible behavior.
Jan
18
comment How do I copy files to a Windows Share?
Just put filename.txt for example.
Jan
17
comment What software can be used for interactive viewing of huge images (JPG &PNG) on Windows?
Check this one out: fastpictureviewer.com
Jan
17
comment Setup second static IP to server behind Netgear router?
"Static Routes" just have to do with IP routing and nothing to do with NAT, so unfortunatelly not what you are looking for. :( Sorry, can't help you then.
Jan
17
comment Setup second static IP to server behind Netgear router?
I don't think so, sadly. I have Netgear routers too but can't find an option unless I too miss something obvious. It should be fine to run dd-wrt on your router, just check the dd-wrt wiki and do as it says! And also prepare for how to back out of it if it locks up!
Jan
9
comment using John the Ripper to recover RAR password
If john sends out a totally empty string it will fail like that, yes. If john sends out a space it should work, but you MIGHT have to modify the line to read like this to cover spaces or words including spaces, if john generates those: rar x -p"${pass}" test2.rar
Jan
9
comment bash script while loop if variable is true
Oh yes, you are ofcourse right. Well put! I much more appreciate these types of corrections and explanations though than Mr Vazquez-Abrams arrogant comments just pointing out that someone is wrong without bothering to explain or clarify. Hardly helpful. I phrased myself badly with converting to string, but I meant there is a difference between strings and integers in how you're supposed to loop them. And I always have a habit of putting my tests/strings within "" to handle spaces properly. :) I also wrongly assumed that $loop was set to "true", while it might not have been.
Jan
9
comment bash script while loop if variable is true
I make a habit of quoting the string matching in a test case with "" in both the left and right values, it makes it less likely that I would forget "" when you have a string containing spaces, etc.
Jan
9
comment bash script while loop if variable is true
You know, telling someone they are wrong without explaining and properly correcting is kindof pointless and dumb?
Jan
9
comment bash script while loop if variable is true
Or well, you are right, the "" in itself doesn't make it a string, you might aswell use: $loop = true but bash still makes difference between strings and integers. Updated the answer slightly.
Jan
9
comment bash script while loop if variable is true
The quotes makes it work. And = compares strings, compared to (for example) -eq that compares integers. Check Advanced Bash Scripting Guide for more information "Note that integer and string comparison use a different set of operators.": tldp.org/LDP/abs/html/comparison-ops.html
Jan
8
comment How can I use two parameters at once with xargs?
If you want it as a oneliner, just put everything on one line. ;)
Jan
7
comment using John the Ripper to recover RAR password
The reason was simply that rar worked for me in my example, and you said that unrar didn't work for you. unrar should work pretty much the same way, so if you get it to work and won't have to install rar, all good! :) No other reason than that!
Jan
7
comment Keep mplayer open after video playback
I don't have my Linux laptop handy so can't try at the moment, but I really believe its how I had it going in slavemode. A few guesses that I might have used is -fs for fullscreen, and maybe show_videowin set to yes in gui.conf? Hope some of those makes a difference. Another "ugly" workaround is to use the -loop option to just loop the movie a bunch of times, but that might be even more annoying. ;)
Jan
7
comment Server died in power outage - now won't boot
A power cut can break your RAM, PSU and burn pretty much anything in your computer. So yes, very possible. :(
Jan
7
comment using John the Ripper to recover RAR password
Should work fine, yes!
Jan
7
comment Bash - is there a way to search for a string (or pattern) in your current directory?
To match files its usually better to use -type f to, possibly in combination with -name if you want to make deeper selection based on the filename itself. But usually -type f is enough for these needs.
Jan
7
comment Bash - is there a way to search for a string (or pattern) in your current directory?
-r and -R are the same thing to grep though.
Jan
7
comment using John the Ripper to recover RAR password
I tried this with a dummy password protected rar file, it matched the 25th password and it worked just fine. Use rar and not unrar to be sure, and type =exactly= as above, don't change rar for unrar, etc. Don't change variable names or anything.
Jan
7
comment What are the common Control combinations in a terminal setting
Your terminals stop and start features are usually controlled by C-s and C-q, but its not very common (correct me if I am wrong) that people use this at all since its way easier to pipe into less, more or other processing tools. I'd safely say that you can rebind C-q without much hazzle. In my shells I always change the stty settings for start and stop to avoid pausing output unintentionally, I do this with: stty start '' stop '' in my bash startup scripts.