Jump to content

Wikipedia:Reference desk/Archives/Computing/2012 May 4

From Wikipedia, the free encyclopedia
Computing desk
< May 3 << Apr | May | Jun >> May 5 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


May 4

[edit]

Batch file

[edit]

From a batch file on Windows 7 I need to set a variable to &id= however I am having trouble doing this due to the & symbol being interpreted as a "now do this as well" command rather than plain text. I've tried using the escape character ^ with SET id=^&id= but it still doesn't work. It works if I use quotes such as SET id="&id=" however this introduces the start and end quotes into the variable, which I do not want. What other ways are there to tell it to treat the & as regular text? 82.45.62.107 (talk) 16:38, 4 May 2012 (UTC)[reply]

Add the quotes to the other side too 190.60.93.218 (talk) 17:04, 4 May 2012 (UTC)[reply]
Other side? 82.45.62.107 (talk) 17:31, 4 May 2012 (UTC)[reply]
Try set "foo=&bar". -- BenRG (talk) 17:56, 4 May 2012 (UTC)[reply]
Same error as set foo=&bar - 'bar' is not recognized as an internal or external command, operable program or batch file. 82.45.62.107 (talk) 18:23, 4 May 2012 (UTC)[reply]
Are you seeing that error when you set foo or when you use it as %foo%? It gets scanned for special characters again when it's used, so you need to put the use in quotes as well. Or you could say set foo=^^^&bar, which sets foo to ^&bar, which becomes a literal &bar when used outside of quotes. -- BenRG (talk) 00:08, 5 May 2012 (UTC)[reply]
This guy says he had success with using ^ on either side of the &, although it's not quite the same situation. Worth a shot, though. --LarryMac | Talk 19:02, 4 May 2012 (UTC)[reply]
Doesn't seem to work. Actually, the first example on that page with the single ^ worked okay on my computer and didn't need the second one. But it's still failing either way when used with SET 82.45.62.107 (talk) 19:18, 4 May 2012 (UTC)[reply]


Can't enter website

[edit]

The domain hacking.rs is resolving to 127.0.0.1 why is this? There is nothing on the hosts file, is this a dns problem? — Preceding unsigned comment added by 190.60.93.218 (talk) 16:59, 4 May 2012 (UTC)[reply]

It looks like the nameservers that are configured for that domain (greg.ns.cloudflare.com and leah.ns.cloudflare.com) both report 127.0.0.1 when asked for the DNS A-record. That would suggest that the service is no longer running. -- Finlay McWalterTalk 17:09, 4 May 2012 (UTC)[reply]
Or that it's a joke played on script kiddies? "See if you can take down hacking.rs; then you'll be famous." Paul (Stansifer) 21:13, 4 May 2012 (UTC)[reply]
That's quite a good joke. I keep getting surprised how innovative hackers can be. Dmcq (talk) 22:58, 4 May 2012 (UTC)[reply]
Script kiddies. :) ¦ Reisio (talk) 23:31, 4 May 2012 (UTC)[reply]
This leasds to a question, what did it used to be? Is there something around that collects historical DNS entries? Graeme Bartlett (talk) 08:24, 5 May 2012 (UTC)[reply]
Wha? ¦ Reisio (talk) 16:17, 5 May 2012 (UTC)[reply]
It wouldn't help much to have the old DNS entry. That would just tell you what IP it used to be set to. It probably isn't at that IP address anymore anymore. For the actual content, there is the Wayback Machine and other cachers. --Mr.98 (talk) 23:13, 9 May 2012 (UTC)[reply]

It was a page about RuneScape) 190.158.212.204 (talk) 19:56, 5 May 2012 (UTC)[reply]