557 reputation
27
bio website
location
age
visits member for 2 years, 1 month
seen 5 hours ago

Nov
21
awarded  Yearling
Jul
22
revised How to make the spellchecker accept two languages at the same time in Word 2007?
added 5 characters in body; added 380 characters in body
Jul
22
answered How to make the spellchecker accept two languages at the same time in Word 2007?
Jun
17
comment Is it possible to ping an address:port?
+1. Many, many people think that if they can't ping something they can't connect to it... but as you say, ICMP is different than TCP and UDP : if you intend to serve, say, a webpage on TCP 80, than you only need to open TCP 80 on the firewall, nothing else (so Ping to the same IP could (... should!) be blocked, for example)
Jun
15
comment How Do You Recover An Encrypted Partition?
First find/buy a large usb disk, boot on a linux livecd, and backup a full image of the ENTIRE disk those partitions were on (ex: /dev/sdc ). Cooy that backupbto a 2nd backup disk so you have 2 copies on 2 differen external disks. Then wipe the backuped disk, and in windows try to exactly redefine the partition table as it was. Then on linux livecd exsctly restore only the exact bytes corresponding to each partitions (not any mbr or fat, as the backup contained a cleaned one) (tricky). Then truecrypt should work again
Jun
14
comment Unable to delete a file using bash script
Ok, cool. But you should realty only delete it in execution paths where it is created. And the advantage of using a trap is that it will also work in case of an external exit (ctrl+c, or if your termibal disconnects)
Jun
8
revised Unable to delete a file using bash script
added 231 characters in body
Jun
8
revised Unable to delete a file using bash script
added info on kill -0
Jun
8
answered Unable to delete a file using bash script
Jun
6
comment Why are special characters such as “carriage return” represented as “^M”?
@JonHanna: apologies, i mixed in my comment carriage return and newlines.
Jun
5
comment Why are special characters such as “carriage return” represented as “^M”?
the ^M you see when in linux (which uses "0x0a"(LF)) is probably from a file made on windows (which uses "0x0d 0x0a" (CR LF)). Thus, at the end of each line, you see the extra "0x0d" (CR). (the 0x0a being interpreted as a newline, and not shown in vi (well, it is : the next line will have a "~" if the previous line didn't end with a Newline). So the the ^M is not exactly a "carriage return", it's part of what a carriage return is in windows. The Answer tells why it's represented that way (using Caret Notation, ^@ = 0x00, ^A=0x01, etc..., ^M=0x0d, ...)
May
5
comment Pipe output from two commands into one
I prefer @devnull solution : { grep 40515575 *; zgrep 40515575 *; } | less because it doesn't need to invoke a subshell, and it always does both grep (even if the first one didn't find "40515575" in any of the files). Yours (and the OP's) would miss any "40515575" if they are only present in compressed files, and not regular ones, as the first grep would then return "false".
Apr
22
awarded  Caucus
Apr
14
comment Can't remote desktop into my computer if firewall is running
solution 2 is preferable, actually the only solution (if the OP is in his protected Lan!). Solution 1 just weakens the public side. They are separated for a reason : The "public" networks can host amongst its users some that could be malicious and attempt to gain access : it's BAD to have too many open ports in an unsecured network (such as any other networks than your own protected Lan). Having good passwords, antivirus, IDS, etc is also required, but won't protect in all cases, if you leave many holes opened in the firewall itself (allowing attackers to try many more vulnerabilities)
Feb
24
comment “Connection refused” vs “No route to host”
@ErelSegalHalevi: typically, 80 is HTTP, 443 is HTTPS (unless you change those default ports). So maybe the application only expects HTTPS ?
Feb
6
comment Can you grab any IP address on the Internet?
@Tonny: I was just restricting the "any traffic" a bit further. And I know solutions/workarounds exist, but still it's better to use a reserved class A (10.x/8, so more than 16 million adresses, or a subnet thereof if you need less [good to keep unused ranges for special cases]) than use a non-reserved range [where every of your local router's routing table will need to be carefully designed to distinghish local traffic from internet-facing ones. Some careful setup makes it "easy", most don't]
Feb
3
comment Can you grab any IP address on the Internet?
I'd precise "not being able to receive any traffic from the Internet" instead of "no traffic" (at all). [Exemple not in OP's idea:] There is (was?) some enterprises who thought it ok to use Internet adresses as their internal IPs, on their LAN(s)... And it "kind of" works (but is a horrible idea, and not to be reproduced). But they then wonder why they can't reach some sites (as, even using NATing on their Internet Gateway : any paquets destined to a host in the same range as their "internal" range will be sent by their LAN machines on their LAN, instead of to the gateway to be sent out ...)
Jan
3
comment batch find/replace using sed or awk
I believe /potato/ should be /^potato$/ otherwise it would also match the "not potato" line?
Jan
3
comment batch find/replace using sed or awk
I believe $line =~ "potato" should be $line =~ "^potato$" otherwise it would also match the "not potato" line?
Dec
27
answered Bash tar and output to log file