Wikipedia:Reference desk/Archives/Computing/2014 May 12
Computing desk | ||
---|---|---|
< May 11 | << Apr | May | Jun >> | May 13 > |
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 12
editHow can I modify the Javascript of a website I visit?
editSometimes websites do quite annoying things with Javascript like disable right-click, play music, etc etc. Is there an easy way (add-on maybe?) for me to edit the Javascript of a website and reload the page with modified JS? I know there are dedicated addons out there that prevent right-click disabling, or writing your own userscript in GreaseMonkey but I'm looking for a broader solution. Something like: Visit site.com > edit javascript source file locally > reload the page with modified JS.-- penubag (talk) 05:03, 12 May 2014 (UTC)
- You could do something like that with a local proxy but reverse engineering and modifying dozens of chunks of potentially obfuscated JS sounds awfully tedious. I usually just use adblock and figure out the offending JS file by trial and error and block it (in practice, just block all the JS until the problem stops, occasionally making adjustments if blocking a JS makes the page unusable). You can also use noscript to block JS completely on a site-by-site basis, but it's a clumsy add-on in my opinion. 70.36.142.114 (talk) 05:28, 12 May 2014 (UTC)
- Thanks but if I wanted to modify JS variables the blocking methods wouldn't work. Could you elaborate on the local proxy solution? -- penubag (talk) 06:01, 12 May 2014 (UTC)
- The local proxy just sits between the browser and the internet, rewriting addresses and content as you like. Privoxy is an example. 70.36.142.114 (talk) 06:42, 12 May 2014 (UTC)
- I wasn't able to get Privoxy to work but I did some research and Fiddler has everything that I need to edit Javascript, POST data, Headers etc. Really glad I stumbled on that tool, it really has everything you'll ever need. -- penubag (talk) 11:39, 12 May 2014 (UTC)
- Cool, I didn't know about Fiddler. It looks like it's closed-source, which may become a pain if you want to do complicated rewrites that make you want to modify the code. It occurs to me, you could also use a caching proxy like Squid to serve your own edited versions of those js files instead of the remotely served ones. That would even speed up your browsing. If the JS is coming from some place like googleapis, maybe you could alternatively use /etc/hosts or the windows equivalent to direct to your own local http server. 70.36.142.114 (talk) 16:58, 12 May 2014 (UTC)
- I wasn't able to get Privoxy to work but I did some research and Fiddler has everything that I need to edit Javascript, POST data, Headers etc. Really glad I stumbled on that tool, it really has everything you'll ever need. -- penubag (talk) 11:39, 12 May 2014 (UTC)
- The local proxy just sits between the browser and the internet, rewriting addresses and content as you like. Privoxy is an example. 70.36.142.114 (talk) 06:42, 12 May 2014 (UTC)
- Thanks but if I wanted to modify JS variables the blocking methods wouldn't work. Could you elaborate on the local proxy solution? -- penubag (talk) 06:01, 12 May 2014 (UTC)
Storage on enterprise-class computers or supercomputers
editI have never even seen an enterprise-class computer or supercomputer in my life, not to mention getting to actually use one. The closest I have managed to do is getting to see and use a Sun E450 workgroup server in a former job. All the advertising and specification I have seen of such enterprise-class computers or supercomputers on the Internet only talk about CPU power and memory, not about storage. What do these computers use for storage? Do they have internal drives at all or do they use separate storage servers? JIP | Talk 18:47, 12 May 2014 (UTC)
- Machines intended solely for computation or pumping data with modest transformation (blade servers, perhaps web servers) might have no disk at all - they might boot off a network boot server and work only with RAM (which they might have a large amount). Others are pretty much headless workstations, with a single hard drive (or perhaps an SSD and an enterprise-grade HD). An enterprise grade HD is usually 10000 or maybe 15000 RPM SCSI device. Beyond that machines can be direct attached to a storage array (a separate device with a bunch of disks in it, which might be configured as a RAID, ZFS, or JBOD); as some applications require high failure-tolerance, you might get several server machines cross-wired with a pair (or more) of storage arrays, where the controllers of each monitor their twin, allowing one controller to take the work of its twin should it fail. Interconnects for this might be iSCSI, Fibre Channel, or Infiniband. Beyond that, storage may be organised into a Storage area network (a fabric) consisting of a number of storage arrays interconnected (again, often with redundancy) with switches connecting to the Host Bus Adapters in the client machines. As one moves up the complexity spectrum (from locally attached storage to a fabric) things become more and more virtualised; the storage system implements a number of volumes (each consisting of lots of logical blocks), but it's increasingly unclear to a client machine where that volume actually is (it can be distributed across several disks in several arrays, and be delivered redundantly on several different connections via different paths). All of this SAN stuff works like virtual physical devices - the SAN supplies volumes and logical blocks, and clients build filesystems on those (much as they would on a local, single SCSI disk). The (well, an) other way to do things is the opposite - for the storage device to implement a file system and export it via a network filesystem protocol (NFS, CIFS (samba)), making it a Network-attached storage solution - a whacking great file server (although again, in practice these are built from components which they virtualise to give the illusion of a single system, built from smaller, redundantly configured and connected components). Perhaps the biggest player in this space is NetApp. Enterprise storage equipment can be characterised by a higher concentration on reliability, on hot-swappable-components, on a higher degree of internal monitoring, on the ability to configure redundant configurations for failover (for reliability), and on integration with enterprise monitoring and configuration tools (so someone can monitor, configure and manage a farm of storage devices from a single screen). All of this redundancy and reliability can mean that things get very pricey (if it wasn't for that, someone might be tempted to say to themselves "hey, I can replace this insanely expensive Netapp things with a homemade Linux box running Samba, a couple of RAID cards, and a chassis full of barracudas") - note the newer expansion of the RAID acronym vs the old one (smiley). Very very large storage providers (e.g. Google Storage, Amazon S3) work differently - they seem to throw lots of cheap hardware at the problem, relying on even more redundancy (the big guys tend not to be so open about their architecture, as that's their value-add); S3's cousin Amazon Glacier appears to be hosted, at least in part, on tape. -- Finlay McWalterᚠTalk 20:53, 12 May 2014 (UTC)
- Minor nitpick, but my understanding is there's great debate about whether Glacier uses tape, with some suggesting it may simply be normally disconnected HDs [1]; special low speed, low power HDs; optical media [2] [3] (mentions both).
- That said, from what I've read I also wonder if a lot of the 'it's not tape' crowd are reading way too much in to minor comments from Amazon personnel. In particular, I don't see how Amazon telling people they should see Glacier as a replacement to tape and that it uses inexpensive commodity hardware components definitely means they aren't actually using tape. (Actually these would seem to dispute the idea of weird hard disks or any optical media besides standard ones which admitedly may include BDXL, more.) Other issues like climate control requirements and Amazon's durability guarantees will seem to depend more on redundancy and Amazon's plans for long term storage (which could easily be 'rewrite the data every X years' perhaps with different Xs for different copies).
- Nil Einne (talk) 18:56, 13 May 2014 (UTC)
Numbering a document with underlined numbers that link to the words
editI know this sounds like a strange question but does anyone know how I can set up MS Word 2010 to do numbering like this File:Numbering document underlined first word.jpg so the underlined number links up with the underlining of the first word? Thanks Amisom (talk) 20:03, 12 May 2014 (UTC)
- Go to Options > Advanced, and locate Compatibility Options (at the bottom of the list). There should be an option to "Underline tab character in numbered lists." Once that option is selected, you should find that underlining both the number and the first word of the list item causes the space between them to be underlined also. This should work fine in Word 2010. (For Word 2013, you would have to use an older version of the Word file format in order to support this, I think.) —Noiratsi (talk) 09:14, 13 May 2014 (UTC)
How to bring back tabs and URL
editAt a library I discovered something that I have rarely seen before. The tabs at the top of the page and even the space where the URL goes just disappear. I asked for help and was told to move the mouse to where I want these to appear, and how long it takes for them to appear varies. It's very annoying. I hope whoever can fix this will be back the next time I go to that library.— Vchimpanzee · talk · contributions · 21:29, 12 May 2014 (UTC)
- It's not broken. What it for is to allow more viewable space on the screen. My tablet's browsers all do this, and as a matter of taste, I prefer it. However, I'm surprised that the library you use has this enable as it is not user friendly to inexperienced computer users. As a public librarian myself, anything that confuses them is a very bad (and time-consuming) thing. Any idea what browser you were using? Mingmingla (talk) 22:11, 12 May 2014 (UTC)
Long side thread about Microsoft even though the question was about Firefox
|
---|
|
- It sounds like the Full Screen feature. You should be able to find it in the settings. Where in the settings will depend on which version of which browser your library uses. Dismas|(talk) 00:17, 13 May 2014 (UTC)
- If Dismas is right and this is just the brower's ordinary fullscreen mode, most browsers use F11 to turn it on and off. Saves having to dig through the settings menus. —Noiratsi (talk) 07:20, 13 May 2014 (UTC)
- Thank you, Noiratsi. It worked. I had dealt with this before years ago and the Computing Reference Desk gave me the solution but I didn't have any idea how to look for it. I forgot to mention Mozilla Firefox. And no, I'm not getting a better library. I can walk to this one. I go to other libraries but not daily.— Vchimpanzee · talk · contributions · 12:53, 13 May 2014 (UTC)
- If Dismas is right and this is just the brower's ordinary fullscreen mode, most browsers use F11 to turn it on and off. Saves having to dig through the settings menus. —Noiratsi (talk) 07:20, 13 May 2014 (UTC)