Jump to content

Wikipedia:Reference desk/Computing

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Yurei-eggtart (talk | contribs) at 21:03, 9 April 2011 (Java GUI: manipulating (add/remove/setVisible true or false etc) JPanels during runtime?: mouseReleased event handler code, weird bug). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Welcome to the computing section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

Main page: Help searching Wikipedia

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:


April 3

SeaMicro SM1000-64 System

Hello RefDeskers!

  The SeaMicro SM10000-64 Server is stated to comprise 256 dual-core processors, with 4 processors on each of 64 Compute Cards. Does this mean that the SM10000-64 is a single enormous 256-processor server, or is it a cluster of 64 quad-socket servers?

  Thanks as always. Rocketshiporion 03:03, 3 April 2011 (UTC)[reply]

Cluster of 64 4-socket servers, and the cpu's are not very powerful. It's for cloud hosting, not a supercomputer. 75.57.242.120 (talk) 08:27, 3 April 2011 (UTC)[reply]
If I am not mistaken, the SM10000 is a cluster of 256 servers and associated infrastructure in custom packaging. A SeaMicro white paper (SeaMicro Technology Overview) seems to agree. It describes each server as a credit card-sized board that is installed in groups of four into a motherboard. It then describes each credit card-sized board as a node. I doubt the Atom processor which the SM10000 uses has support for inter-socket multiprocessing since it is a low-end processor. Rilak (talk) 08:56, 3 April 2011 (UTC)[reply]
Awww... No supercomputing on the SM1000-64. Darn! And I thought I'd found a supremely-powerful supercomputing platform. Rocketshiporion 05:15, 4 April 2011 (UTC)[reply]

W3C standards as a source for browsers, or vice-versa?

I've heard it claimed that new feature additions to the W3C standards for HTML, XHTML, CSS, DOM and JavaScript are usually made to comply with, or arbitrate a compromise between, what the major browsers are already doing, and that it is the browser developers that invent new functionality. Is that right? I thought it was more common for features to be first codified in W3C working drafts and then implemented in browsers. NeonMerlin 03:22, 3 April 2011 (UTC)[reply]

I don't know much about the W3C specifically, but industry standards bodies are normally made up of representatives from organizations interested in implementing the standards, and implementations are written in parallel with the standards themselves, so that neither one comes first. It's also common for standards to simply document existing practice and introduce nothing new. An ivory-tower "standard" developed without the input of likely implementers would probably just be ignored. -- BenRG (talk) 22:15, 3 April 2011 (UTC)[reply]

All the principal browser vendors are part of the W3C. ¦ Reisio (talk) 01:11, 4 April 2011 (UTC)[reply]

Yes, but in the olden days they all gladly innovated independently, giving us things like the infamous <blink>blink tag</blink>. Much of the internet has been developed by "rough consensus and working code", and this carried over into browser land. Nowadays, however, the W3C spec is, more-or-less, leading implementations. --Stephan Schulz (talk) 02:17, 4 April 2011 (UTC)[reply]
Not really. ¦ Reisio (talk) 21:47, 4 April 2011 (UTC)[reply]

DVD world "Zones" - How to increase the allotment?

On my Dell Inspiron 1720, I have only about 4 more times to change the zone/regions. I plan to be some type of a jetsetter in the coming years, so it would be essential to keep changing DVD regions. What can I do to increase the allotment of region changes? Or how can I make it a universal-region DVD? --70.179.169.115 (talk) 04:12, 3 April 2011 (UTC)[reply]

Unfortunately, there is no 'legal' way of altering the number of times you can change the region code. If you want to try, please by all means try it yourself- I think under the no legal advice section is that we cannot tell people how to circumvent these security measures. General Rommel (talk) 10:48, 3 April 2011 (UTC)[reply]
General Rommel - perhaps you can quote the law or statute that you have in mind here - any jurisdiction will do. I find it difficult to believe that it is illegal to alter these settings on hardware that you own, with properly licensed software, and for a legitmiate reason e.g. you are frequently moving to different countries. It may be technically difficult, it may void certain warranties, it may not even be a sensible solution to the original problem, but how exactly is it illegal ? Gandalf61 (talk) 12:33, 3 April 2011 (UTC)[reply]
I agree with the sentiment, but see Modchip#Legality. To not buy multiple copies of a DVD is a circumvention of copy protection, and so is preparing to not buy them. 81.131.41.83 (talk) 13:33, 3 April 2011 (UTC)[reply]
I was not expressing a sentiment - I was asking General Rommel for a source for their assertions. Modchip#Legality says "The nonuniform interpretation of applicable law by the courts and constant profound changes and amendments to copyright law do not allow for a definitive statement on the legality of modchips", so it sits on the fence. Our article on DVD region code lists several ways of bypassing region codes through software or firmware; none of these methods are stated to be illegal. Indeed, the article says that the legal staus of region codes and mechanisms that enforce them is unclear in several jurisdictions, and in New Zealand, for example, they have no legal protectionat all. Gandalf61 (talk) 14:46, 3 April 2011 (UTC)[reply]
(EC) I don't know if 'not buying' is really the issue. I do agree there's a fair chance it may fall foul of the Digital Millennium Copyright Act restrictions on circumvent copy protection measures (although for other reasons it may depend on the reason you need to use a different region see [1] for example). As with many areas of copyright law in the US, I don't think this has been tested but see [2] and also consider the fact the US Copyright office has refused to grant an exemption for removing regional restrictions [3]. [4] (consider why the EFF felt it necessary to ask in the first place) and [5] (the US Copyright offices view appears to be that the current limited number of changes is fine). This is even more likely to be a problem if you use something, like VLC, which uses DeCSS to get around the restrictions, see DVD-Video#Content Scramble System as there is case law strongly suggesting it is not allowed (unless exempted) AFAIK (looking a bit more I think it's only distributed which is accepting as not allowed, possessing has not been tested and a is common I suspect it never will [6]). However as our article DVD region code notes, the legality of DVD regions themselves is questionable in some countries like Australia and possibility NZ. The OP however appears to come from the US at the current time. P.S. I seem to remember discussing this before so there may be more sources in the archives. Nil Einne (talk) 15:06, 3 April 2011 (UTC)[reply]
From VLC media player: VLC is one of the free software and open source DVD players that ignores DVD region coding on RPC-1 firmware drives, making it a region-free player. However, it does not do the same on RPC-2 firmware drives. - might be worth a try. -- 78.43.60.13 (talk) 11:40, 3 April 2011 (UTC)[reply]
All drives manufactured since 2000 are RPC-2 drives. But I think that VLC also bypasses region coding on RPC-2 drives (i.e., the article is wrong). There certainly are players that do. Also, the various DVD ripping programs work on modern drives. There are custom patched firmwares for some drives that disable the region lockout. There are also some software products (none of them free, as far as I know) that transparently remove the protection for all applications. The most straightforward solution is probably ripping to the hard drive and playing from there. As mentioned above, the legal situation is unclear. -- BenRG (talk) 01:44, 4 April 2011 (UTC)[reply]


I should have said that that was purely first reaction statement. But I believe it's just not gright to.. But if you do want, I can say that usually using a cheap $20 DVD player from an Asian electronic store will usually do the trick. General Rommel (talk) 13:04, 4 April 2011 (UTC)[reply]
One thing to note, and at the risk of stating the obvious, your PC's DVD drive doesn't know which country you are in. If your existing Region 1 disks play now, they will still play if you visit Europe, Asia, etc. You only need to change the drive's region if you want to play DVDs from other regions or you buy new DVDs locally. For the latter, it might be better to buy a local drive as Gen Rommel suggests, especially if you can get one that is already multi-region capable. Astronaut (talk) 13:35, 4 April 2011 (UTC)[reply]

DOS in laptops

Some models of laptops are coming with what they advertise as "Free DOS". What exactly is this ? DOS, as I remember, was an operating systems that is now history, it was used when there was no GUI and commands had to be written as text, what is meaning of using DOS in today's computers ?  Jon Ascton  (talk) 14:14, 3 April 2011 (UTC)[reply]

FreeDOS. -- Finlay McWalterTalk 14:16, 3 April 2011 (UTC)[reply]
I've seen a fair few laptops like that in Malaysia. I'm not surprised if the situation is similar in India. AFAIK it's far less common in NZ and I would guess other places like the US, UK etc. FreeDOS is basically selling the laptop without an OS (by actually including an OS they can show something when they turn it on and I guess they can claim they aren't encouraging copyright violations because they did include an OS it's not their fault if the customer doesn't like it). I doubt many people use the FreeDOS for long if at all because there's not that much you can do with it. They could use Linux, FreeBSD or something else but that creates additional support issues. The reason for selling without OS is I'm pretty sure to reduce cost (or at least create the illusion of reduced cost, as our article notes they aren't always cheaper), with the assumption the customer is going to install their own own OS perhaps one of the aforementioned options but far more likely some copyright violation version of Windows (probably Windows 7 Ultimate or perhaps Windows XP Pro) or occasionally Mac OS X and hence the reason this is common in places like Malaysia and India. Notably while they could probably add a cheap version of Windows 7 for not that much more they may figure many are just going to change it to Ultimate anyway. I've also seen this tends to be with the cheaper models. Of course not everyone will do this, some may get the shop to install a legitimate version of Windows for them. (In other words, even if the customer is going to pay for the OS, you again create the illusion of lower cost by excluding the OS cost from the upfront cost.) I don't know whether the cost will be the same since Windows OEM licensing confuses me but labour time wise it's probably insignificant compared to many developed countries where it would likely add a fair amount to the cost. Nil Einne (talk) 14:37, 3 April 2011 (UTC)[reply]
Nil Einne is spot on. A laptop is sold with freeDOS so that the seller doesn't need to buy a copy of Windows to put on it. Most people won't use the FreeDOS: they'll quickly upgrade, typically to something else free (pirated Windows, or some sort of Linux). If you do plan on installing Windows legitimately, it's almost certainly cheaper to buy a laptop with it installed (if you can), as Microsoft gives discounts on their OEM licenses over retail licenses. See this helpful guide. Buddy431 (talk) 16:04, 3 April 2011 (UTC)[reply]
Won't totally removing this DOS from laptop's harddisk will present any problems ?
Of course it is perfectly possible that the customer already has a license for a version of Windows they are comfortable with, and has no interest in an upgrade. 84.239.160.59 (talk) 17:03, 3 April 2011 (UTC)[reply]
Removing DOS shouldn't be a problem: when you install your new operating system, you'll reformat the disk, essentially erasing what was on it before. And you are correct, if a person has a valid license from an old computer, or a license that's good for multiple computers (I think Microsoft's retail licenses are typically good for up to three computers at once), they could install that. Note, however, that most licenses for OSs that come with the software are only valid for the machine they came with (so called OEM licenses). It is not legal (or at least against Microsoft's terms of use, legality depends on jurisdiction, how good your lawyer is, etc.) to install one of these on a new machine that it did not come with. Technically, you may be able to do it anyway, depending on the reactivation process, and how well you can lie to Microsoft if you have to reactivate by phone. Buddy431 (talk) 19:23, 3 April 2011 (UTC)[reply]

Home Wi-fi networking question

I have several devices in a part of the house where there's no wired Ethernet port. I have a Wi-fi AP in the house but the devices in question don't have built-in Wi-fi support. What would be the best or simplest way to connect these devices to the (W)LAN in the house?

I've seen "Wi-fi extender" products with Ethernet ports, which seem to be a possible solution. Are wireless routers these days also usable as Wi-fi extenders? (I'm asking because, given the choice, I'd rather get a device usable in several ways than a special-purpose one.)

I remember seeing mods for converting a wireless router into the kind of Wi-fi extender I just described, but that was from quite a few years ago. If it's no longer necessary to do any mods, using a device unmodified is preferred.

--108.36.90.190 (talk) 16:57, 3 April 2011 (UTC)[reply]

If you say that the devices are incapable of WIFi or Ethernet, or any other wireless way of communication, well that would mak it very tricky.... General Rommel (talk) 01:45, 4 April 2011 (UTC)[reply]
I believe the OP was saying it's the part of the house rather than the device that lacks ethernet. --Sean 16:32, 4 April 2011 (UTC)[reply]
Some wireless routers are. See Wireless Distribution System. This page touches on using Apple's AirPort Extreme or AirPort Express routers to form a WDS — the page is short on detail but has links and a very pretty picture. Of course, may I ask whether you have considered whether the simplest solution is to add wireless capability to these devices, via a PC Card or USB device? I'm pretty sure that in all cases, that'll be more straightforward than trying to configure multiple routers to talk nicely to each other. Comet Tuttle (talk) 18:08, 4 April 2011 (UTC)[reply]
I believe you would be looking for a WiFi Bridge, one that will take wireless signals and allow a regular ethernet hookup. These devices were popular a few years ago when wireless technologies were just getting a footing, but slowly fell out of favor. You will find them now labeled as "Gaming Adapters," mostly marketed to connect gaming consoles with only ethernet ports to Wifi. For example, there is this one however I did find one that looks like it will fit your needs exactly. We of course do not endorse Amazon or Netgear, but this looks like that second one will fit the bill perfectly. Let us know how it goes! --rocketrye12 talk/contribs 20:55, 6 April 2011 (UTC)[reply]

Limits of lossless data compression

How close is something like 7-Zip to the theorectical limit for lossless data compression? I recall reading something about this in the past - why cannot the best possible algorithmn for lossless compression be deduced? Thanks 92.15.2.39 (talk) 17:10, 3 April 2011 (UTC)[reply]

How do you define 'best' ? Fastest, highest compression? Specific to which domain of files to be compressed? All algorithms make trade-offs to better suit the type of file they intend to compress, there cannot be a 'best' algorithm for 'all' possible files. But the theoretical limit for an algorithm suited to one specific file, might be 1 bit. Unilynx (talk) 21:26, 3 April 2011 (UTC)[reply]
Why not 0 bits ? That could be used to mean that the file is in some default state, hopefully the most common state for that type of file. StuRat (talk) 23:17, 3 April 2011 (UTC)[reply]
A large file of apparently random bits might be a bunch of zeros encrypted by some algorithm with some key. In that case the entire file can be compressed down to almost nothing if you can find the key, but is probably incompressible if you can't. This shows that optimal compression is at least as hard as breaking current encryption algorithms. Compression is also related to science, because the shortest representation of data is more or less the same as the simplest theory describing the data in the sense of Occam's razor. So optimal compression is as hard as doing science. It's related to artificial intelligence too, for similar reasons.
The only estimate of an optimum compression ratio that comes to mind is Shannon's 1951 paper Prediction and entropy of printed English, where he used the prediction ability of human subjects to estimate an entropy of about 1 bit per letter for written English (about 8:1 compression of ASCII text, in modern terms). The modern state of the art is around 8:1 for 1,000,000,000 bytes of an XML dump of Wikipedia, but this is not directly comparable since it includes a lot of metadata (and punctuation, which I believe Shannon didn't consider). 7-Zip didn't do very well on this test, with a total size about 40% higher than the state of the art (using PPMd). -- BenRG (talk) 02:15, 4 April 2011 (UTC)[reply]

I thought it had been mathematically proved that the theorectical limit for (dictionary-less, lossless) compression was a lot lower than achieved by current algorithms? 92.29.115.116 (talk) 10:31, 4 April 2011 (UTC)[reply]

If you look at the average over all possible files, the limit of compression is 1 (as in "no compression"), as can be seen easily by a counting argument (to uniquely identify an n-bit file, you need n bits). If you look at a finite subset, then Shannon indeed describes that limit. English text has a lot less entropy than random noise, and most program texts have less, again. In principle, encrypted files should have about the same entropy as their un-encrypted counterparts. However, they are mapped into the space of all texts in a way that makes them very hard to differentiate, and hence in practice they compress badly. --Stephan Schulz (talk) 11:51, 4 April 2011 (UTC)[reply]
There's no such proof, but I'd be interested in seeing your source. Maybe you're thinking of the Shannon limit? All state-of-the-art compressors use entropy encoding that is very close to an optimum proved by Shannon, but that's the easy part. The hard part is coming up with the probability estimates to feed into the entropy coder. -- BenRG (talk) 19:07, 4 April 2011 (UTC)[reply]
The "theoretical limit" is the Kolmogorov complexity, which is not a computable function for the same reason that the halting problem is undecidable. The article about it explains more. 75.57.242.120 (talk) 20:31, 4 April 2011 (UTC)[reply]

random numbers and the system clock

Why don't computer random number generators just use the last few digits of the system clock, ie. measuring fractions of a second? I know they use the clock, but only as a seed. Why would the last few digits of something measuring fractions of a second not be random enough? Is it because a computer program runs so quickly, and with such regularity, that there would be inevitable patterns in the stream of numbers thus produced? Thanks, It's been emotional (talk) 17:14, 3 April 2011 (UTC)[reply]

You pretty much have it. If the program asks for random numbers quickly enough (that is, faster than the counter wraps around), they aren't going to look random at all - they'll be in increasing order. Secondly, under similar loads, computers tend to run at about the same speed, so that any two invocations of the call to get random numbers will be at about the same difference in time so the two numbers will have a non-random difference between them (this applies even if the counter wraps around several times) - this is a killer if you have a loop to get multiple random numbers, say to shuffle a deck of cards or simulate a population. In either case you would need to pass the resultant value through a function which would "deorder" the values, and amplify the small variations between close numbers: this is effectively what pseudorandom number generators do. They also have the benefit of being repeatable; that is, with the same seed, you will always get the same string of "random" numbers - handy for debugging. -- 174.21.244.142 (talk) 17:37, 3 April 2011 (UTC)[reply]
Additionally, from a practical perspective, getting the current time from the system clock will require a system call, which is a comparatively expensive operation. Grabbing the time once, and then using a quick pseudorandom number generator thereafter, means the program has to make only one syscall; grabbing the time whenever a random number is needed will be a lot slower. —Bkell (talk) 17:49, 3 April 2011 (UTC)[reply]
On x86 processors the Time Stamp Counter can be read without a system call, probably a lot more quickly than the execution time of a decent PRNG. But, as already mentioned, it's not random enough. -- BenRG (talk) 01:26, 4 April 2011 (UTC)[reply]

Thanks to all, very interesting and exact, It's been emotional (talk) 08:54, 7 April 2011 (UTC)[reply]

Sound Card and Microphone Questions

Ok I have two questions. Firstly how do I check my sound card on Windows Vista. I have read that looking under the "Sound Video and audio device", section of the device manager or that running "Dxdiag" and checking the sound tab, should have my sound card listed however the only thing listed in the device manager is"high definition audio device", while the sound tab of dxdiag says "Digital output device (SPDIF) high definition) both of which seems more like a description of a sound card, then a sound card itself.

My second question is how do I get my speakers to output what I say into my microphone directly on Windows Vista. I have read that right-clicking the volume control, in the bottom right of my screen, clicking on playback devices. Then right-clicking on speakers and selecting levels should let me uncheck a box to unmute my microphone, but the only thing there is a section called "speaker/headphones" which isn't muted. So could anyone help me with these problems. 86.162.151.128 (talk) 17:32, 3 April 2011 (UTC)[reply]

For what it's worth, on the Vista system I am currently sitting at, the relevant entry in Device Manager is "Sound, video and game controllers", and the two items are "ATI Function Driver for High Definition Audio" with a part number, and "IDT High Definition Audio CODEC". These are indeed just driver files. The dxdiag tool has three relevant tabs, "Sound 1", "Sound 2", and "Sound 3", for the three hardware audio outputs on this machine. Comet Tuttle (talk) 18:39, 3 April 2011 (UTC)[reply]

RAID 1 and Subversion questions

Hi,

I am new to setting up RAID systems. I'm currently setting up a Subversion server using Windows XP, having used this guide to getting Windows XP to format two drives (not including the Windows drive) as a single software RAID 1 volume. No errors have been reported.

Question 1: I now want to perform the practical test of disconnecting each of the drives in turn to see whether the other drive has in fact got all the data expected, but I realize that as soon as I boot up the system with one drive disconnected, something is going to get written to the active drive, so the two drives won't be mirrored anymore. How do other people perform practical tests of a RAID 1 volume's mirroring?

Question 2: When one of the two drives in the RAID 1 volume fails, and I install a replacement, what tool is used under Windows XP to mirror the good drive to the replacement drive?

Question 3: A Subversion question. All workstations will be running Windows. Is it stupid for me to set this server up as a Windows XP machine rather than an Ubuntu machine? I have the vague notion that the most recent Ubuntu may have better tools available for administration of the server; but I find it a little appealing to run a Windows server to service Windows clients — we've run into one problem in the past with a GNU/Linux Subversion server, when my users were renaming the case of files, and the Linux server allowed both the files "hello.c" and "hElLo.c" to exist in the same directory, which caused problems with all the Windows clients. In a vague way, I have the notion that a Windows server might prevent other, similar problems.

Thanks! Comet Tuttle (talk) 18:34, 3 April 2011 (UTC)[reply]

It's been ages since I worked with Windows XP, so I don't remember the answer to your second question.
Regarding #1, there is not really a non-destructive test for this. However, you could use dd on both drives after booting from a live CD, store these images somewhere else, and restore them after you performed your tests. Another option would be to use three drives, always rotating one out and checking it in another computer to see if it contains the needed data, then locking that drive away in your storage location/vault/whatever.
Regarding #3, please keep in mind that XP was never meant as a server operating system and thus places a limit on the number of simultaneous connections (it's a licensing issue, not really a technical limitation per se). So if you want to go the Windows route, prepare to have to shell out some $$$ for W2K8 server. On the other hand, if you wish to follow the F/LOSS route, take a look at mount options; for some file systems it is possible to force upper- or lowercase. Maybe there's an option in subversion for that, too - but I'll leave answering that to a subversion expert. -- 188.105.131.8 (talk) 09:04, 5 April 2011 (UTC)[reply]
Thanks for the partial answer. What would be useful to me in question #1 would be a jumper that would write-protect a hard disk. Comet Tuttle (talk) 17:56, 5 April 2011 (UTC)[reply]

A tablet computer question

Dear Wikipedians:

With tablet computers replacing netbooks as the latest "fad" in computing, I myself am thinking of getting a tablet. I will probably not get an iPad, for reasons that will become obvious after I have outlined my questions below. But I do have the following questions before I make my tablet computer purchase decision.

I remember that for my recent desktop PC, I went to my local computer store and bought all the parts, like motherboard, CPU, memory chip, a new SATA 250 GB hard drive, and then assembled them at home. Since the hard drive is new, there is obviously nothing on it. So I had to partition, format and then install my favorite operating systems. Now the PC works like a charm.

Now I am wondering, for tablet computers, do I have the option of going out there and grab different parts and assemble my own tablet? Barring that, is there a tablet computer that comes as a "clean slate" and allow me to install whatever operating systems I want on it, including options for multi-booting, just like what I do with my desktop PC? Barring that, if I get a tablet, say, with Windows 7 preinstalled, can I wipe it out and then setup a Windows XP/Linux dual boot system, just like what I do with my laptop computer? And by "tablet" I don't mean the clunky early tablet computers with the pivotable screen like the Lenovo Thinkpad X, but rather the "cool" one-piece tablet like iPad's form factor.

Now to push the envelope a bit, for smartphones, do I have the option of going out there and grab different parts and assemble my own smartphone? Barring that, is there a smartphone that comes as a "clean slate" and allows me to install whatever operating systems I want on it, including options for multi-booting, just like what I do with my desktop PC? Barring that, if I get a smartphone, say, with Android preinstalled, can I wipe it out and then setup a Windows XP/Linux dual boot system, just like what I do with my laptop computer?

And if the answers to my above questions are "no"s in their most restrictive sense (i.e. the only option I have is to put up with whatever crap the OEM throws at me). Then my question is: What is the reason for this erosion of my digital freedom, where I am able to do anything I like with my desktop PC, yet can do nothing with my tablet/smartphone? And should I be worried about this trend of OEMs gradually taking stronger controls of us consumers, and telling us what we can or cannot do with the gadgets that we bought with our own money? Am I witnessing the beginning of the end of our liberal, western democratic states?

Thanks,

L33th4x0r (talk) 23:15, 3 April 2011 (UTC)[reply]

Increasingly, many tablets and smartphones are designed so that it is difficult to access the actual layer (like behind the nice interface of a phone) and do things like delete folders. As well as that, Hardware for such things nowadays tend to be customized by the manufacturer. And as for the customization of tablets and phones, it will become increasingly difficult because of the fact that these devices are ever so becoming smaller, which means that it will become very hard to DIY. You could try building your own tablet, but you will probrably end up with a large sized one instead. General Rommel (talk) 01:42, 4 April 2011 (UTC)[reply]
I'd hardly call the trivially larger form of the Lenovo Thinkpad X tablet clunky, particularly when comparing it to something so much less versatile, less powerful, & incredibly less extensible such as either model iPad. You're not going to find a time where a Thinkpad X won't fit and an iPad will, it just isn't going to happen. ¦ Reisio (talk) 02:08, 4 April 2011 (UTC)[reply]
At the moment tablets are closer to an Embedded system then a fully functional "computer". That might change in the future, but at the moment you probably find that most of what you are "hoping" for is not possible on tablets or smart phones. There might be some hackers who get a different OS running on a tablet or a phone, but no doubt it will take a LOT of hacking and will also probably offer only limited functionality compared to the device it was designed to run on. Might be worth to note that the same thing could have been said of most laptops ten years ago, now it's not uncommon for people to dual boot macbooks and the like, it's possible when tablets become more common and ubiquitous they might become also more interoperable. Vespine (talk) 02:17, 4 April 2011 (UTC)[reply]
The issue with tablets is that they are generally lightweight and the size people want them in precludes any real DIY stuff with the hardware. When you shove so many components into such a small place, the only way you can make a tablet that will offer any real competition to the iPad, Xoom, and other such tablets is to solder chips to a circuit board yourself. Tablets (and smartphones) have only a couple circuit boards, and there is rarely space for connections that are easily used by human fingers, much less interchangeable components. Unlike desktop PCs where there is usually plenty of space to work and long running standards for component sizes, placement, and connections a smartphone or tablet has a small amount of space to work in, and components are shaped and put together much like a puzzle. Even in the best case scenario where components were completely standardized, the amount of DIY work you could do on a tablet would be minimal at best. Your best bet right now is to look into rooting an android tablet. Building the actual hardware will result in something cost prohibitive in small runs, or incredibly bulky. Caltsar (talk) 18:54, 4 April 2011 (UTC)[reply]

Thanks for all the responses. I now fully understand the reasons behind not being able to DIY tablets and smartphones. I understand that with more powerful tablets and smartphones in the future, and them becoming ubiquitous, open platform and general purpose variants of those machines may eventually emerge. I am putting my faith now in riding the Kurzweilian exponential technological progress curve. 174.88.242.201 (talk) 21:37, 4 April 2011 (UTC)[reply]

Resolved


April 4

PAM

can u explain me in detail the pulse width modulation using frequency division multiplexing? — Preceding unsigned comment added by Saiffuddin (talkcontribs) 02:24, 4 April 2011 (UTC)[reply]

Have you read our article Pulse-width modulation? Comet Tuttle (talk) 03:09, 4 April 2011 (UTC)[reply]

jdbc insert query problem

I am using JDBC with oracle data base, All the table are well formed normalization . After INSERT THE TABLE I NEER TO GET THE INSERTED PRIMARY KEY VALUE

PLEASE HELP ME

tHANKS IN ADVANCE

—Preceding unsigned comment added by 192.8.211.14 (talk) 08:05, 4 April 2011 (UTC)[reply]

Welcome to the Wikipedia RefDesk! I hope you find the RefDesk to be a useful resource. Please do not write in ALL CAPS, as it is considered the online equivalent of shouting, and is hence bad netiquette. Thank you.Rocketshiporion 01:16, 6 April 2011 (UTC)[reply]

You had to create a sequence before you created the table to get auto-numbering, which I assume is what you are doing or you would know the primary key. Oracle doesn't have a "this was the number" column like most other databases. You have to fetch it beforehand. The sequence will have a field "nextval" that contains the value that will be used next in autonumbering. There is a problem. What if you fetch the next val. Then, I fetch the next val. Then, you insert. Then I insert. We both think we are using the same primary key. Another solution is to set up a trigger that saves the primary key and the username of the person performing the query to a separate table whenever an insert is performed. That is useful as long as you don't repeat the same issue above with two people (or two programs) using the same username. Yet another method is to do an insert and then fetch using all the info you just inserted sorting from most recently changed to most distant and grab the first row returned. Then, you get the ID off that. Finally, there is another rather foolproof way. Set up a server-side script that hands out unique IDs. You select an ID from it and it is guaranteed to be unique and not handed out before. Then, use that when you do your insert. You will know that you are always using a unique ID and you will know what the ID is. -- kainaw 12:41, 4 April 2011 (UTC)[reply]
What about sequence.currval? 98.103.60.35 (talk) 16:50, 4 April 2011 (UTC)[reply]
That has the same race condition as using nextval or any other variant. -- kainaw 17:31, 4 April 2011 (UTC)[reply]
Are you sure? I am under the impression that nextval is session specific, and, as such, is a simple and correct solution. Googling for oracle sequence currval session suggests this is so. 88.112.59.31 (talk) 17:40, 4 April 2011 (UTC)[reply]
My experience is that it failed miserably when I had to mass-import a lot of records. Even with each record within a single transaction to fetch the ID and insert the record, I got multiple records with the same ID - resulting in insert errors and loss of data. -- kainaw 19:49, 4 April 2011 (UTC)[reply]
I am fairly certain you did something else wrong. When used properly, .currval works fine, and is session specific. See Oracle documentation or google as suggested above. 88.112.59.31 (talk) 13:14, 5 April 2011 (UTC)[reply]
I should state that my solution in that instance was to alter the transaction to exclusive-lock the data table (not the sequence table - trying that didn't work). Then, get the next ID from the sequence table. Then, insert the record. Then, ensure it was inserted by fetching it again and comparing the values. Then, if all went well, release the lock. Otherwise, throw a tantrum, permanently locking the table, until a human was available to see what else went wrong and alter the program yet again. -- kainaw 19:52, 4 April 2011 (UTC)[reply]

Thunderbird and Archiving

Would anybody happen to know if Thunderbird archives mail, say, when it gets to a certain full level (rather like the message history of WLM)? I have Thunderbird as my default mail client, with four email accounts running on it - three of which are Gmail and one from my ISP. One of my Gmail accounts (the one I have used longest) now has no mail in the inbox prior to 29th March 2011. I know this 'lost mail' can still be accessed by going to the 'Google Mail' folder (which has all the mail in, whether sent, received, or flagged as spam), and I can also access it just by logging in from the browser, so it's not a problem. I am just wondering where all my mail 'disappeared' to. Would it have been archived for some reason? If so, where to? I'm using Thunderbird 3.1.9, if that's any help. TIA! --KägeTorä - (影虎) (TALK) 12:39, 4 April 2011 (UTC)[reply]

Searching Twitter feeds

I'm having a little difficulty searching on Twitter. I'd like to find all mentions of the terms "atemporal" and "atemporality" from the feed GreatDismal, but the search query https://search.twitter.com/search?q=atemporality+from:GreatDismal yields no results despite references existing. The feed is not marked private. Is the query malformed? Takk, Skomorokh 15:35, 4 April 2011 (UTC)[reply]

Not all tweets are indexed. Nanonic (talk) 15:50, 4 April 2011 (UTC)[reply]
Ah, that explains it, thanks. Any feasible workarounds? Skomorokh 16:03, 4 April 2011 (UTC)[reply]

Does Verisign have a domain registrar for verisign.com?

Whois doesn't say. I was just wondering if the registry operator itself for the .com top level domain got to manage its domain registry information directly or if the rules dictated that even they have to formally have a domain name registrar. 20.137.18.50 (talk) 18:46, 4 April 2011 (UTC)[reply]

They are registered with Network Solutions, which they own once owned (paid something like $20B during the dotcom bubble). At one point they claimed to own the .com TLD itself. I don't remember what happened to disabuse them of the idea, but there must have been something. Oh man (just looking now), the article about NS is interesting. 75.57.242.120 (talk) 04:36, 5 April 2011 (UTC)[reply]


April 5

GNU Octave - GUI with Autocompletion & Tooltips

Good Morning RefDesk!

  In the MATLAB GUI, when the first few letters of a command are typed in, a box pops up with suggestions of possible matches, and provides (upon mouseover) a description of the function of each possible match. Does an equally functional GUI exist for the GNU Octave platform?

  Thanks as always. Rocketshiporion 00:32, 5 April 2011 (UTC)[reply]

If you haven't found QTOctave yet, here it is: QTOctave. My experience with it has been so-so; it's a Spanish program that the developer internationalized to an English version (and there's a few rough edges still). On the whole, if I must use Octave on Windows, I use QTOctave (because it's better than Cygwin); but when I'm on *nix, I've found the command-line version works smoothly and integrates with the plotting and other features really well. I use KATE (a KDE text editor) for editing my .m files on *nix; it's totally un-connected to Octave project, but it has syntax-highlighting support and can run a command-line and powerful macros. You can set up more custom features using plugins (though I don't know any for hot-linking function-names; in C, some people use CTAG to analyze source-code and generate hot-linkable meta-documents; CTAGS supports MATLAB and has a KATE plugin). Overall, KATE is a versatile lightweight IDE for MATLAB-style interactions with Octave and other programs; the command-line in the dock is very MATLAB-esque and handy for all kinds of programming jobs. Nimur (talk) 14:30, 5 April 2011 (UTC)[reply]

Stopping retweets flooding my feed

I've tried blocking retweets from some of the people I follow on Twitter, but my feed is still flooded with retweets by them. Anyone know a way of actually stopping them? DuncanHill (talk) 10:25, 5 April 2011 (UTC)[reply]

What do you use to access twitter (twitter.com, third-party app etc)? Darigan (talk) 11:52, 5 April 2011 (UTC)[reply]
I just go to the website from time to time. DuncanHill (talk) 12:44, 5 April 2011 (UTC)[reply]
I found this: http://tj.luo.ma/post/1215741762/turn-off-twitter-retweets - It offers instructions for turning off retweets, although, it appears that you have to turn off the retweets one user at a time. I'm using the new twitter interface at the moment, to turn off the retweets in that:
1. Click on the profile of a user you are following so that it shows on the right of your screen
2. Beside the green follow button, there should be a phone symbol, and a little green retweet symbol - Hit the green retweet symbol so that it turns a white/grey colour. Now, retweets from that user will not show up in your timeline.
Hope that makes sense, if not let me know, and I'll try to find a better way to describe it. Darigan (talk) 13:40, 5 April 2011 (UTC)[reply]
That's what I did but it didn't stop them :( DuncanHill (talk) 13:51, 5 April 2011 (UTC)[reply]
You aren't alone in despising "re-tweets." Twitter hates them too: accounts who re-tweet will be blocked from search and are subject to total account shut-down. The official policy from Twitter is that "re-tweeting" wastes computer and human time. Nimur (talk) 14:36, 5 April 2011 (UTC)[reply]
As we talking about the same thing? I doubt twitter has that policy otherwise they wouldn't provide a button [7]. The ref you link to appears to be about people who repost twitter stuff, I guess you could call it a re-tweet but it doesn't appear to be what twitter means. It's not clear if people who just re-tweet (with the button) and do it a lot will also be blocked, from the ref and common sense I presume it may happen but it seems unlikely just doing it occasionally is going to lead to a block since as I said they provided a button. I presume if people use the re-tweet button, then what DH is going will work. I suspect these people aren't actually re-tweeting but posting the same message themselves hence blocking re-tweets probably isn't going to work. Note I rarely use twitter. Nil Einne (talk) 15:53, 5 April 2011 (UTC)[reply]
No, they are retweets, as they are labelled as retweets in the feed with a link to the original person who tweeted them. Blocking retweets doesn't seem to actually work. DuncanHill (talk) 15:58, 5 April 2011 (UTC)[reply]
The first page I linked to said that following the instructions would not cause already re-tweeted tweets to disappear, but would stop new retweets from showing up - Are you still getting new retweets after following those instructions? Also, not a direct solution to your problem, but when I access twitter from a computer, I use tweetdeck - I find it far more useful when it comes to finding tweets I might be interested in. There are a few other popular apps as well... hootsuite springs to mind. Would it be worth your while trying one of these apps for twitter? Darigan (talk) 20:03, 5 April 2011 (UTC)[reply]
Yes, I'm still getting new ones. DuncanHill (talk) 20:36, 5 April 2011 (UTC)[reply]
....hmmmmmm, as the tree said to the lumberjack, 'I'm Stumped' (ba-dum cish). Unless somebody else responds with a better response, I would suggest giving one of the apps a go. Mashable has a comparison of 19 different apps here: http://mashable.com/2009/06/27/twitter-desktop-apps/ - Sorry my earlier suggestions turned out to be duds. Darigan (talk) 22:18, 5 April 2011 (UTC)[reply]

are these 2 queries equivalent?

select * from a inner join b on a.id=b.id

select * from a left join b on a.id=b.id where a.id is not null

t.i.a. --83.103.117.254 (talk) 13:36, 5 April 2011 (UTC)[reply]

No. The first query would not return rows where the a.id is invalid but not null (that is, the a.id is not null but there is no b.id matching that a.id), where the second query would. 118.96.164.80 (talk) 15:39, 5 April 2011 (UTC)[reply]
I suspect a typo: they would be the same if the second query was select * from a left join b on a.id=b.id where b.id is not null. AndrewWTaylor (talk) 17:33, 5 April 2011 (UTC)[reply]
"The same" as in "returning the same results", that is. They might differ in how the SQL server executes them. AndrewWTaylor (talk) 17:36, 5 April 2011 (UTC)[reply]

php

Resolved

In php, is there a way to make a script go back to the start and run again, like the "goto" command in .bat files? —Preceding unsigned comment added by 82.43.90.38 (talk) 15:48, 5 April 2011 (UTC)[reply]

Place the script in a loop:
$do_it_again=true;
while($do_it_again)
{
// do a bunch of stuff here.
// If you want it to stop, set $do_it_again=false;
}
There are many many many other ways to do this. IE: Place the whole script in a function and call the function over and over. Basically, the concept of a "GOTO" is not used in normal C-style programming, so it isn't reflected in all the code that derives from that style (almost all of professional programming). -- kainaw 15:58, 5 April 2011 (UTC)[reply]
I checked - because I know that PHP tries to cater to every bad programming style imaginable, and PHP does have labels. So, you can do this:
begin:
//Do some code here.
goto begin;
This has been implemented with limited functionality. So, using the goto may fail, depending on exactly how you use it. -- kainaw 16:02, 5 April 2011 (UTC)[reply]
As Kainaw notes, "Goto" is considered pretty bad form in modern programming — it's a recipe for spaghetti code. You're better off figuring out how to control your program flow so that you don't need it — either with functions, or do/while loops, or what have you. It should be a very, very rare instance where you should need to use goto. --Mr.98 (talk) 16:08, 5 April 2011 (UTC)[reply]
Though putting the whole thing inside one goto is hardly spaghetti, and Donald Knuth's "Structured Programming with go to Statements" defends their use in some cases: "... what I am really doing is striving for a reasonably well balanced viewpoint about the proper role of go to statements. I argue for the elimination of go to's in certain cases, and for their introduction in others." In this particular case, a goto has the advantage that at the start you can name the label "repeat_everything:" and at the end you can say "goto repeat_everything". If you use a while loop, all you see at the bottom of the code is an uninformative closing brace. Also it has to check every time round to see whether 1 still equals 1, which is silly. 81.131.0.73 (talk) 17:08, 5 April 2011 (UTC)[reply]
Obviously goto's are not a universal evil. But they are often misused and can go very awry. Even Knuth agrees that they ought to be relatively uncommon. PHP in particular is not really designed to use them very effectively. --Mr.98 (talk) 20:52, 5 April 2011 (UTC)[reply]
I agree with Knuth and you, but I want to point out that most language implementations will optimize away a test on a compile-time constant expression like "true" or "1==1". I don't know whether PHP does, but CPython does, for example, despite doing very little other optimization. -- BenRG (talk) 05:38, 6 April 2011 (UTC)[reply]
Even Knuth's example from back in 1973 (if I remember the year correctly) of a problem that required a goto is no longer applicable in most languages because of optimization. The non-goto solution has one more comparison check than the goto solution, but in optimization the extra comparison is omitted. It isn't a knock against Knuth. Computer languages have evolved a great deal since the early 70s. Everything we claim right now will likely be defunct in another 20 years. -- kainaw 12:14, 6 April 2011 (UTC)[reply]
Knuth's example is as relevant as it ever was because he was talking about source code clarity, not speed. -- BenRG (talk) 22:16, 6 April 2011 (UTC)[reply]
Knuth's argument in 1974 was "[The non-goto version] is slightly less readable, in my option, as well as slightly slower; so it isn't clear what we have gained." By 1992, when he wrote "Literate Programming," he dropped his argument of runtime speed and focused solely on the argument that use of goto is "...easier to read and to write." I feel that he was making an argument for clarity and speed in 1974, but has dropped the speed argument since then. -- kainaw 17:57, 7 April 2011 (UTC)[reply]

Thanks! 82.43.90.38 (talk) 16:30, 5 April 2011 (UTC)[reply]

Firefox 4 - how to prevent the white dot appearing

In Firefox 4, when I scroll a page a white button often appears. This button has a dot in the middle and an arrow above and below. It makes my scrolling unpredictable and often scrolls the page at top speed to one end or the other.

Is there any way to prevent this thing appearing please? Thanks 92.24.184.244 (talk) 17:44, 5 April 2011 (UTC)[reply]

I haven't used FF4 yet, but in previous versions of firefox, what you describe appears when you press your middle mouse button. It's for people who don't have or don't like scroll wheels, You press the middle mouse button and then 'drag' the page at an accelerated rate. (Even if you have a scroll wheel, it's still useful because few mice also have a horizontal scroll wheel.)
If you're doing this by accident when you're scrolling, you may be pressing too hard on your scroll wheel.
In any case, here's how you turn it off in older version of firefox, I imagine FF4 has a similar option if you just look around for it. APL (talk) 18:00, 5 April 2011 (UTC)[reply]
Go to Tools -> Options -> Advanced -> General, and under the Browsing section, uncheck "Use Autoscrolling" You may have to turn on the menubar (right click near the top, you should get a box that has checkmarks with Menu Bar, Navigation Toolbar, etc) 206.131.39.6 (talk) 18:04, 5 April 2011 (UTC)[reply]
Comment: this scrolling might not be the fault of Firefox. Some mouse drivers override basic scrolling with a customized version. Check your Mouse settings in Control Panel, too - you might find some advanced options there, especially if a vendor driver has been installed. Nimur (talk) 22:32, 5 April 2011 (UTC)[reply]

April 6

please help

YouTube download

I want to download this movie from YouTube. Among the best qualities, there are two options available: MP4 360p and FLV 480p. Which will be better in quality? Are MP4 videos better in quality? Please help, i have a slow internet connection and it takes a lot of time to download videos in my computer. I want the better quality video. --Houlok (talk) 05:54, 6 April 2011 (UTC)[reply]

In general I'm not sure there's an easy way to determine whether the MP4 or the FLV will be better quality — what you'd want, ideally, is whichever one is the least transcoded. So if the MP4 is just a conversion to MP4 from FLV, you'd want the FLV; if the MP4 is the raw file from which the FLV was made, you'd want the MP4. Sorry that isn't super helpful. In theory the FLV would be higher resolution at 480p, but my experience is that often these numbers are quite misleading (just yesterday I downloaded one from YouTube which KeepVid.com had said was higher resolution than another format, but they were, once downloaded, identical in terms of their actual pixel ratios). The biggest argument towards downloading MP4 is that you probably already have video software to view it with. FLV usually requires plug-ins or extra codecs of some sort. --Mr.98 (talk) 18:28, 6 April 2011 (UTC)[reply]
I added a more useful (sub)title. StuRat (talk) 23:58, 6 April 2011 (UTC)[reply]

Disable interpretation of tipping on the pad as click

Hi,

how can I disable the behaviour of my laptop touchpad to inerpret the tipping on the pad as a click? I am using a Dell Inspiron with With Windows 7 Home Premium. Toshio Yamaguchi (talk) 12:19, 6 April 2011 (UTC)[reply]

This is known as 'Tap to click,' and you will find the option to disable in the Control Panel under 'Mouse'. Depending on your drivers, it may be in one of a number of tabs. Let us know if you have any trouble.--rocketrye12 talk/contribs 20:46, 6 April 2011 (UTC)[reply]

Problem with SQL outer joins

I ran into a rather complicated problem with SQL today at work. We are using the following kind of SQL query:

SELECT a.name, b.name, c.name, d.name FROM
tablea a, tableb b, tablec c, tabled d
WHERE b.aid(+) = a.id
AND c.bid(+) = b.id
AND d.id(+) = c.did

The idea is that this query must return rows even if no matching row is found from tableb, tablec or tabled, but if no matching rows are found from tablec or tabled, then b.name must be null even if there's actually a value there. I tried various ways of configuring the outer joins but couldn't find a way to do it the right way. Sorry for the nondescriptive names used in this example, but the actual code is under our company's copyright. Can anyone help me to achieve this kind of thing in SQL? JIP | Talk 18:44, 6 April 2011 (UTC)[reply]

Just to make sure we understand what you want, could you give us sample data and the desired result ? StuRat (talk) 23:57, 6 April 2011 (UTC)[reply]

Suppose tablea contains the following data:

name id
Tarja Halonen 1
Carl XVI Gustaf 2
Angela Merkel 3
Palpatine 4

tableb contains the following data:

name id aid
Finland 10 1
Sweden 20 2
Germany 30 3

tablec contains the following data:

bid did
10 100
20 200

tabled contains the following data:

name id
Helsinki 100
Stockholm 200

I want to be able to return every row in tablea, even though Palpatine can't be linked to any of the other tables. However, I don't want Germany to show up along with Angela Merkel, because it can't be linked to tablec or tabled, instead it should show up as null. JIP | Talk 17:44, 7 April 2011 (UTC)[reply]

(That doesn't quite match your SELECT statement, since there's no c.name column.) Do you want to see something like this ?
Tarja Halonen    Finland   Helsinki
Carl XVI Gustaf  Sweden    Stockholm
Angela Merkel
Palpatine
If so, perhaps your query might look like this:
 (SELECT a.name, b.name, d.name 
    FROM tablea a, tableb b, tablec c, tabled d
   WHERE b.aid = a.id
     AND c.bid = b.id
     AND d.id  = c.did)
UNION
 (SELECT a.name, " ", " " 
    FROM tablea a, tableb b
   WHERE b.aid != a.id)
StuRat (talk) 06:19, 8 April 2011 (UTC)[reply]
OK, thanks for your reply. Sorry for the mismatch between the examples, but I'm glad you understood it anyway. Your example output above is exactly what I would want. However I was hoping to avoid a union of multiple select queries, as in the real-world case, the tables have many more columns and at least tablea is joined to more tables, which are irrelevant to this question. The actual query is quite long and isn't even written as static text but instead built dynamically because parts of it can change. Having a union would mean having to repeat all this. I've managed to work around the problem by having the code that reads the result ignore values from tableb that can't be linked to tablec or tabled. JIP | Talk 18:09, 8 April 2011 (UTC)[reply]
You're welcome. Other than a UNION, I can't think of a way to do what you want. Note that the second SELECT is much short (and quicker), since we no longer need to worry about the joins to tables C and D. Hopefully something similar will happen in your case. The UNION seems well-suited for the type of program you described. In this example, all it would have to do is change the equals to a not equals in the first WHERE clause, omit the remaining where clauses, and omit the columns and tables which are no longer needed. Now, if it's not just the column data which is dynamic in the query, but also the logic (like adding new tables for some queries), then that is getting complex. Perhaps you could automate some of the most common complex queries by writing code to handle them. If you can give me examples of the range of queries, perhaps I can come up with some sample code, using embedded SQL. In this example, we could have one possible option be "Select all leaders, and, if both a nation and capital are available, list both". StuRat (talk) 19:27, 8 April 2011 (UTC)[reply]

igoogle side tabs

Hi. As of this morning, my fixes to remove the igoogle side tabs on firefox don't work (the tabs appear on the left side of my igoogle page, with idiotic things like "gadget shares" and "friends"--things I have no interest in, and waste my screen real-estate). Bad google. My greasemonkey script, having given good service for a year or so, now doesn't get rid of them, and the firefox plug-in doesn't work either. I'm going to have to switch to netvibes or similar if I can't sort this out. Any genius out there with an idea how to remove those stupid side tabs? Robinh (talk) 20:56, 6 April 2011 (UTC)[reply]

When you say "my fixes," are you referring to said greasemonkey script? Greasemonkey scripts are of course at the mercy of any code changes google may make to that page, in addition to any browser compatibility issues that may be introduced in major or minor releases. I did find this discussion here which you could try, though I haven't tested it myself. But...at the end of the day, as we say in web development 'if you didn't build it, don't bank on it!' --rocketrye12 talk/contribs 21:01, 6 April 2011 (UTC)[reply]
Hello Rocketry12. Thanks for this. Yup, my fixes are (or, were)-: the greasemonkey script, and a firefox add-on. Neither seem to work now. Why are google being such jerks? Robinh (talk) 23:16, 6 April 2011 (UTC)[reply]
(OP). Well, I spoke too soon. There is a "Super iGoogle" greasemonkey script, which has a patch, as of last week, that seems to work for me. Thanks, everyone! I can use igoogle again! Robinh (talk) 23:31, 6 April 2011 (UTC)[reply]

April 7

Intel Xeon E7-x870 Processors = Three Identical Models?

Good Morning, fellow RefDeskers!

  I'm looking at three Intel Xeon E7 Series processors; E7-2870, E7-4870 & E7-8870; and can't find any differences between them. All three of them have the following identical specifications. What is/are the difference(s) between these three processor models?

  • 2.4GHz Base Clock Speed
  • 2.8GHz Maximum Frequency
  • 10 Cores (20 Threads)
  • 30MB L3 Cache
  • 6.4GT/s System Bus Speed
  • 130W Maximum Thermal Design Power
  • Advanced Encryption Standard - New Instructions
  • Trusted eXecution Technology

  Thanks as always. Rocketshiporion 00:00, 7 April 2011 (UTC)[reply]

A good question. According to our List of Intel Xeon microprocessors, the only differences I can see are the spec number, part number, and price. Presumably we've either got it wrong, or there is something we've missed.. Oops! see below...AndyTheGrump (talk) 00:28, 7 April 2011 (UTC)[reply]
On looking again: "28xx models support single- and dual-processor configurations, 48xx models support up to four-processor configurations, 88xx models support up to eight-processor configurations". AndyTheGrump (talk) 00:30, 7 April 2011 (UTC)[reply]
(EC) In other words, the various processors in this family differ in their hardware support for cache coherency in a symmetric multiprocessor configuration; probably related to the bus-snooping hardware. Higher-end SMP systems require more sophisticated (and higher-performance) bus-snooping logic to deal with more CPUs. Specific details from Intel: Intel Xeon Processor E7-... Families, and comparative Performance Factsheet, plus ISV quotes and anecdotes for various configurations. Nimur (talk) 00:38, 7 April 2011 (UTC)[reply]
BTW, are these Xeons using QPI yet? If not, I'd skip the Xeons and go for the "lower-performance" i7 series. All in all, I'd rather have fast memory and peripherals access, than fast CPU. Ah, yes, all are Westmere, and all new Xeons are finally using QPI. Nimur (talk) 00:43, 7 April 2011 (UTC)[reply]

Samsung Champ GT-C3303 Mobile-Phone

i have a Samsung champ camera GT-C3303 mobile. and a brand new computer with GB ram and 2.93 Ghz processor (core2due. with Samsung kies installed in it and i want to connect to internet using my mobile as modem connected with usb cable. i can connect to internet in my mobile but after connecting to PC i cant connect to PC. can u solve my problem thanks.. —Preceding unsigned comment added by 180.215.121.29 (talk) 06:39, 7 April 2011 (UTC)[reply]

I've seperated your question from the previous one, and added a title. Rocketshiporion 10:03, 7 April 2011 (UTC)[reply]

Wanted: Content management system

Hello. I'm looking for a content management system for my organization's project management. The CMS must allow hosting multiple projects, each of them restricted to users who have been allowed to use the project. The CMS should support sharing of large files (his-res images and videos). Freedom, both in terms of use and cost are appreciated. Any suggestions are welcome. Thank you! 212.68.15.66 (talk) 10:03, 7 April 2011 (UTC)[reply]

How's WordPress? It's not strictly a blogging platform any more, and if installed/setup properly it should support all the things you listed above. 168.9.120.8 (talk) 11:55, 7 April 2011 (UTC)[reply]
With a few more requirements I could make a recommendation, maybe some more use cases? Are you looking for a traditional CMS with the capability to run a website, or more along the lines of a Digital Asset Management System? Or maybe the best qualities of both? As you might expect, Drupal is highly flexible, powerful and cost effective. --rocketrye12 talk/contribs 14:32, 7 April 2011 (UTC)[reply]

Advice on buying new PC

I'm buying a new PC. I've been advised that, given my requirements (word processing large documents with numerous jpegs), I don't need masses of RAM or hard drive space, but that I should focus on getting one with a fast hard drive and a good graphics card. I've now realized I don't know what this means, and anyway these criteria are often missing from on-line catalogues. What sort of h/d speed should I be looking out for and what sort of graphics card?--Shantavira|feed me 13:39, 7 April 2011 (UTC)[reply]

Well personally I would think you do need a fair bit of ram for opening and working on large documents with lots images in them. Not excessive amounts, but at least 1GB if you want to have a number of large documents open at the same time, more if you want to multitask with other things. Hard drive speed shouldn't be an issue, any normal hard drive will be fast enough for just opening large documents (I'm guessing ~100MB each, since you didn't specify) and neither should the graphics card. You only need a really good graphics card if you're gaming or working with 3D stuff 82.43.90.38 (talk) 13:57, 7 April 2011 (UTC)[reply]
Also, the graphics card should be irrelevant for those requirements. The display and processing of large images may take advantage of a graphics card, but I have a hard time imagining the dinkiest integrated graphics card not being good enough. Paul (Stansifer) 14:14, 7 April 2011 (UTC)[reply]
The fastest hard drives in a desktop will be 7200 RPM and have a large cache (32 or 64MB most likely). You could also go with an SSD, but that could double the cost of your computer. With your requirements, you'll find that 4GB of RAM, any multicore processor, and a 7200 RPM hard drive will be more than fast enough for what you need with some room to grow. The graphics card isn't important in your requirements, but dedicated graphics won't pull from your CPU and RAM as much as Intel graphics. Look for Radeon, nVidia, and GeForce to signify a dedicated graphics card. If it says "integrated" or "Intel" graphics, and you can get a computer with similar specs for a similar price, go for a dedicated graphics card. It shouldn't matter which one if you don't do any gaming or major 3D or video work. 206.131.39.6 (talk) 16:27, 7 April 2011 (UTC)[reply]
Most modern operating systems (Ubuntu / GTK; Mac OS X ; Windows, since Vista) - all use the graphics card and GPU extensively during day-to-day operations. Even if you aren't a 3D-gamer or a CAD/engineering user, your GPU and graphics RAM will make a significant contribution to your user experience. Things like switching windows, maximizing, and even just running at high resolutions, all take advantage of a powerful GPU accelerator.
Truthfully, the PC market is segmented along price-points. If you buy a $300 system, it will underperform compared to a $700 system, or a $1500 system. It is almost impossible to put a high-end CPU in a low-end motherboard; so the "mix-and-match" approach is probably a bit misleading. Select your price-point, and accept the level of performance that the major system-vendors can provide you at that price. Then, if you decide you need a little more oomph in your RAM or hard-drive, upgrade (or downgrade) from the base-systems. You won't turn a $300 system into a competitive match for a $1500 system by swapping out two components, though.
A few rules of thumb: more RAM is almost always a good thing. A faster CPU is usually a good thing, but doesn't always make the most noticeable difference. For hard-drives, all modern drives have huge capacities: so if you want to "upgrade," select a faster hard-drive rather than a larger hard-drive. (Many portable computers trade down to a 5400rpm drive to save power, but consider bumping back to 7200rpm). For GPUs, more video RAM is probably a bigger improvement than any other GPU spec (unless you're a 3D gamer). However, the number of GPGPU-accelerated desktop programs in increasing, so you may find that your paint program or even your word-processor runs faster if you have a CUDA- or OpenCL capable card. Nimur (talk) 16:46, 7 April 2011 (UTC)[reply]
They use the graphics card, but they don't necessarily need a fancy one. I have Compiz's wobbly windows, and various other effects enabled on my netbook (the integrated graphics card is an "Intel Mobile 945GME Express", which I doubt is even fancy as integrated graphics cards go). Antialiasing is turned off, but the framerate is good. Paul (Stansifer) 17:08, 7 April 2011 (UTC)[reply]

The cheapest computer you can find at Best Buy will probably do the trick; will probably have a 2GHz+ dual core processor, 2-3GB+ of RAM, may or may not have a proper graphics card (nvidia or ati [not on the motherboard / intel] — worth the small extra cost). The future is now. ¦ Reisio (talk) 16:40, 7 April 2011 (UTC)[reply]

Is there any reason you believe a GPU on the motherboard is necessarily lower-performance than one on a breakout card? That's a very old-fashioned mindset from an era when circuit-packaging was still a very difficult task. Nowadays, even the highest-end GPUs and the fastest video-RAM can be integrated on the mainboard. And in some system architectures, shared main- and video-RAM yields higher performance than the old-fashioned, dedicated graphics RAM. (Essentially, a daughter-card forces a NUMA machine architecture, which is inherently lower-performance... again, an old-fashioned engineering tradeoff from the days when packing in 4GB of RAM was impossible). Nimur (talk) 16:49, 7 April 2011 (UTC)[reply]
He's not going to open it up (& a clerk at Best Buy wouldn't know :p), and most boxes with nvidia or ati stickers will have separate cards. You're talking about possibilites and I'm talking about cheap computers with three choices: intel, nvidia, ati. Onboard nvidia beats onboard intel, too. ¦ Reisio (talk) 17:00, 7 April 2011 (UTC)[reply]
I have to agree with Reisio here. IGPs are crap. Whether this will actually make a difference to the OP is another question but talking about possibilities is a bit pointless when a look in the real world will easily dispel any illusions. In fact while this isn't something I've looked in to a while, I'm pretty sure it remains the case that the crappiest same gen standalone card with limited memory primarily relying on system memory will still outperform the best IGP. It may be things are different with professional cards and systems, this isn't something I've looked in to, but these are expensive and not something the OP is likely to encounter. Note that in laptops the discrete GPU smay or may not be on the same board, however these aren't IGPs and will still communicate over the PCI-express bus and can be basically be thought of as standalone AFAIK. And I've never seen anyone use them in desktop systems anyway because they cost more but perform worse and create additional driver issues. P.S. I'm sure some small form factor PCs do use mobile GPUs, however these are likely to cost more then an equivalent more normal sized system so unless it's actually something the OP wants it's not worth considering. P.P.S. The fusion/APU concepts was supposed to shake things up a bit. Last I heard, this hadn't really happened but it looks like it's now starting to [8] [9] with the low end discretes starting to lose to high end Intel APU graphics. Probably things will get even more complicated when AMD higher end lines (like Llano) become available since Intel have struggled with GPU performance for so long (a quick search confirms I'm not the only one to think this) and Larrabee (microarchitecture) failed as a GPU but we're not quite there yet. Nil Einne (talk) 17:47, 7 April 2011 (UTC)[reply]
You don't say where you are, and you don't mention a budget, but if you're in the US, one approach is simply to go to Costco and buy whatever desktop or laptop PC that is within your budget. They have an excellent 90-day return policy if you find the PC is insufficient for your needs. Currently I think they only stock HP machines, but this may change over time. I've bought several desktop and laptop PCs there and returned a couple, and will continue to do so because of that return policy. Comet Tuttle (talk) 18:25, 7 April 2011 (UTC)[reply]

Changing window manager on Fedora 12?

Although I've used Linux for more than a decade now, both in home, university and work settings, I am still not exactly a high Linux guru. So I am writing here on Wikipedia to ask this question. I just found out that as I am running Fedora version 12, I have Compiz installed as default. I'd like to try it instead of the usual MetaCity, but I'm not sure how I would go about it. I first tried to run compiz directly, and this resulted in a message saying that this screen already has a window manager, and suggested I run compiz with the --replace option. However, I didn't want to do that, because I didn't know what would happen if Compiz somehow failed to start up, would I be left without a window manager at all. So I switched to a different screen with Ctrl-Alt-F2, which didn't even have X Windows running. Trying to run Compiz caused an error message about not having an X server, but trying to start an X server caused an error message about already having one (albeit on a different screen). So can anyone give me instructions on how to run Compiz on X Windows without necessarily having it become the default window manager, so I could always have MetaCity to fall back upon? And if Compiz does work OK, how to make it the default window manager? JIP | Talk 18:58, 7 April 2011 (UTC)[reply]

When you login, there is a session option that you can use to select what window manager you want to use. My experience with Fedora is that Compiz is tied heavily to KDE. The latest version of Fedora with all updates even replaced "KDE" with "KDE-Compiz". -- kainaw 19:07, 7 April 2011 (UTC)[reply]
I was not able to find such an option on my Gnome login screen. In fact, the login screen presents no information about sessions or window managers whatsoever. There is only an option to switch to a different user, or to change the session language or keyboard layout. JIP | Talk 19:33, 7 April 2011 (UTC)[reply]
Please ensure you installed the compiz manager (compiz-manager package) and not just compiz. As I noted, compiz is an add-on for both Gnome and KDE. So, the compiz package is what is needed for all types of compiz, not just the compiz manager. -- kainaw 19:47, 7 April 2011 (UTC)[reply]
I didn't have compiz-manager installed so I installed it. However, that didn't have any effect on the login screen, it is still presented without any information about sessions or window managers, as if the whole concepts didn't exist. JIP | Talk 19:59, 7 April 2011 (UTC)[reply]
In Gnome, Compiz doesn't have to do with sessions. Is there a "Visual Effects" tab in Preferences > Appearance? Does setting it to "Normal" or "Extra" make things fancier? Paul (Stansifer) 20:58, 7 April 2011 (UTC)[reply]
No there is no such tab. There is "Desktop Effects" under Preferences but selecting it only gives an error "Desktop Effects requires hardware 3D support". JIP | Talk 03:12, 8 April 2011 (UTC)[reply]
That's it then. The compiz-manager won't run because you don't have hardware 3D support - at least you don't have support recognized by compiz. This can be due to using a driver that doesn't expose the 3D hardware to the operating system. Are you using the manufacturer's driver for your card (and does your card have 3D hardware support)? -- kainaw 12:14, 8 April 2011 (UTC)[reply]

OK, so apparently Compiz won't work on my system. But if I decide to try a different window manager, how do I generally go about switching to another window manager? I don't see any option to do it in the Gnome user interface. Do I just run the window manager from a terminal with the --replace option? How do I know whether the new window manager will stick until I switch to another window manager again, or will revert back to MetaCity when I log out or reboot? JIP | Talk 18:03, 8 April 2011 (UTC)[reply]

When you have more than one window manager that will work for your system, you are given the option to change window managers in the login screen. -- kainaw 18:13, 8 April 2011 (UTC)[reply]

Gmail attachment

Resolved

Have written an outgoing message. I click on "attach file" and nothing happens. What can I do? I am running Vista & Firefox. Kittybrewster 21:06, 7 April 2011 (UTC)[reply]

Got it. Closed firefox & restarted it. Kittybrewster 21:40, 7 April 2011 (UTC)[reply]

audio

From the history section of the television article it says "by modulating the output signal of his TV camera down to the audio range, he was able to capture the signal on a 10-inch wax audio disc using conventional audio recording technology". What programs could I use on a Windows 7 computer to convert video data into audio, and back? 82.43.90.38 (talk) 22:10, 7 April 2011 (UTC)[reply]

I call [dubiousdiscuss] on that. Video signals are high bandwidth signals: even a crummy monochrome 320x240 @ 24 fps with only 16 gray-scale levels would still be about 1 MHz of data. There's no way to fit even this terrible quality signal in to the "audio" range, which by definition ranges from 0 to 22 kHz. Without a digital scheme to lossy-compress that, it'd be impossible to obtain a 20:1 compression without completely garbling the signal. A proper television signal, with modern digital encoding, occupies something more like 6 MHz of signal bandwidth. Highly-compressed video can range from ~ 300 kBits/sec, and given a digital encoding, could probably fit into a few hundred kilohertz. To accomplish such a feat in 1925, using only analog processing, would result in a video signal that would bear essentially no resemblance to the original scene.
If you're actually interested in software and/or hardware video signal experimentation, read our amateur television article. HAM radio enthusiasts sometimes encode 100x100 grayscale and have a lot of tricks up their sleeves to squish that into tiny bandwidth - but 20 kHz is essentially impossible. Nimur (talk) 00:17, 8 April 2011 (UTC)[reply]
Nimur, you're assuming that the length of the video signal equals that of the audio. Couldn't a minute of video be converted to, say, an hour of audio, and still maintain reasonable quality ? StuRat (talk) 05:51, 8 April 2011 (UTC)[reply]
Phonovision says he dropped the frame rate to 4 per second. Converting video to slower audio implies some kind of video recording device as a component of the system, and a video recording device is all we're trying to invent here. Instead of dropping the frame rate, he could have recorded each line of image separately onto 30 discs. If the resulting recording was rearranged so that each disc contained a series of complete frames, that would be like you suggest. Then the recording would have to be played back at high speed (about 500 rpm?) and discs changed about twice a minute. Might as well keep the parallel format, I think. 81.131.37.40 (talk) 06:53, 8 April 2011 (UTC)[reply]
Phonovision also says that this guy invented "Noctovision" and a balloon-powered shoe. I'm still of the opinion that packing reasonable-quality, watchable video into 20 kHz would be essentially a technical impossibility using modern technology, let alone pre-digital techniques. For perspective, read the history section at Slow-scan television, which I think is a bit more reliable. Nimur (talk) 12:55, 8 April 2011 (UTC)[reply]
The mention of those two inventions don't mean the article is unreliable. It doesn't claim noctovision was any good for anything, and the shoe was not balloon-powered by balloon-padded, a logical development from the pneumatic tyre, much like Nike Air Max. Besides, the phonovision article says "the results were considered a failure at the time", so yeah, I guess they weren't reasonable quality or watchable, but they were still video recorded as sound. "Baird had to make a number of compromises to get the process to work", says the article, and "the limitations of the discs makes the recovered imagery fall far short of the original studio quality", says the source. Do you think 30-scan-lines, 4 frames per second, monochrome recording onto a 78 (or faster?) is merely crappy - which isn't disputed - or are you saying it would be so bad that it qualifies as impossible? Which would mean hardly any images could be recognized, motion couldn't even be guessed at ... no, I don't think it can have been so bad that it didn't deserve the name "video". 213.122.53.188 (talk) 14:18, 8 April 2011 (UTC)[reply]
Just like "who invented the airplane," the similar question "who invented television" is plagued by long disputes over technical details and definitions (not to mention nationalistic fervor and propaganda-style hero-ization of key individuals). It's fair to say that Baird invented something - and certainly worked on image and video technology. It's also fair to say he was "ahead of his contemporaries" and may even have laid down the framework for future innovation. But I'm very reluctant to say he "invented television" or even that his engineering work contributed to or influenced any of the later developments at RCA or Bell Labs (institutions, rather than individuals, who really have earned the accolade "inventor of television." This marked shift from lone-genius to institutional inventor is a hallmark of 20th-century technological complexity). Anyway, as I re-read the original question, it seems that our OP is less interested in how somebody would do this in 1925 with Baird's technology, but is more interested in how to use modern technology for video-to-audio conversion. See below for my ideas. Nimur (talk) 16:34, 8 April 2011 (UTC) [reply]
The Pixelvision camera from the era before cheap real camcorders recorded video on sped-up audio cassettes. 75.57.242.120 (talk) 08:49, 8 April 2011 (UTC)[reply]
Back to the original question: it really depends on what you mean by "converting" video into audio. You can play any random file as a PCM audio, and reciprocally, you can convert any recorded waveform into a stream of bits. Audacity is a software program that can help you play arbitrary waveforms out of your speaker. If your intent is to effectively convert between video and audio, you should learn a lot about signal processing - particularly, digital signal processing. This is a complex and subtle field. It's non-trivial to describe all but the most basic video technologies; modern video uses color-space conversion, chroma subsampling, interframe coding, intraframe coding, and lossy compression, so if you want to record a sound and turn it in to a playable video file, you'll need to know intricate details of each of these concepts. If you just want to muck around with raw video and audio buffers, I recommend playing in MATLAB or GNU Octave, which will help bring you up to speed on DSP for imaging and audio. Nimur (talk) 13:16, 8 April 2011 (UTC)[reply]

Horizontal scrolling with scroll wheel on USB mouse in Windows XP

I would like to continue using the scroll wheel for vertical scrolling and for zooming (CTRL + <scrollwheel>), but in addition I would like to scroll horizontally. (I want to use it in Adobe Reader, Firefox, InternetExplorer and in open file system folders).
Is this possible in WindowsXP ?46.15.58.17 (talk) 22:47, 7 April 2011 (UTC)[reply]

Have you tried it? Do you have the latest driver from the vendor? ---— Gadget850 (Ed) talk 23:19, 7 April 2011 (UTC)[reply]
Have I tried what ? (I am relatively "computer illiterate" so please explain!) I bought an optical mouse, yesterday, and plugged it in. It works for vertical scrolling, but I have no idea what keys to press (or what ever to do) to make it scroll horizontally ?:-)
On the mouse it says: Model no.:HM5211
How do I find out who made it (and find their website address? to check whether or not I have the latest driver from the vendor? 46.15.58.17 (talk) 23:51, 7 April 2011 (UTC)[reply]
My Logitech mouse has a scroll wheel that will also click left and right for horizontal scrolling. ---— Gadget850 (Ed) talk 00:00, 8 April 2011 (UTC)[reply]
I see! No, my scroll wheel, unfortunately, does not tilt sideways. 46.15.58.17 (talk) 00:07, 8 April 2011 (UTC)[reply]
Did a quick search, but don't find a HM5211. What brand is it? If you go to Control Panel → Mouse is there a selection for horizontal scrolling? ---— Gadget850 (Ed) talk 00:19, 8 April 2011 (UTC)[reply]
There is no brand name printed on the mouse (Just the name of the store where I bought it). Opening: Control pannel -> Mouse properties. I find no selection for horizontal scrolling. Then clicking the "hardware" tab, shows an entry for "PS/2 compatible mouse" and one for "HID compatible mouse". Neither of them mentions anything about horizontal scrolling and both of the drivers are dated 2001 and supplied by Microsoft. I do not know, nor how to find out, which driver my new mouse actually uses... 46.15.58.17 (talk) 00:46, 8 April 2011 (UTC)[reply]


What happens if you hold ⇧ Shift and use the scroll wheel? ---— Gadget850 (Ed) talk 13:06, 8 April 2011 (UTC)[reply]
You can figure out which driver it uses by looking at how the mouse plugs into the computer. If it's a rectangular connector, it's a USB mouse using the HID driver. If it's a round or U-shaped connector, it's a PS/2 mouse using the PS/2 driver. Either way, it sounds like you've got a generic mouse made by the lowest bidder, using Microsoft's standard mouse driver. --Carnildo (talk) 00:04, 9 April 2011 (UTC)[reply]

April 8

Antivirus software policy

I have Norton and notice that when something get caught, the software puts the virus into a quarantine instead of immediately deleting it. Why would someone (as in the average Joe computer user) want to keep a virus around? 76.27.175.80 (talk) 00:39, 8 April 2011 (UTC)[reply]

Two reasons: 1. It might be a false positive, i.e. The virus scanner thinks something is a virus that isn't. Not as uncommon as you might think. 2. The virus may have infected a file that contains useful information (e.g. a Word document) and you might be interested in later trying to extract the good information from the file before deleting it. This is more unusual, I think. In general I think software developers are a bit queasy about making heuristic software that deletes things on its own initiative — it's easy to imagine that going wrong one way or another. It is safer to just "quarantine" it and make it so that it can't execute. --Mr.98 (talk) 01:21, 8 April 2011 (UTC)[reply]
You can usually change the default to delete if you are confident. ---— Gadget850 (Ed) talk 15:58, 8 April 2011 (UTC)[reply]

DS catridge data onto computer

How can I read data that is stored in a DS cartridge onto my computer? Specifically what sort of equippment would I need to use/get in order for this to work properly without severly messing up the saved data? 64.75.158.196 (talk) 03:31, 8 April 2011 (UTC)[reply]

Do you mean a game cartridge from a Nintendo DS? Or do you just mean a regular SD card that has been used in such? For the SD cards, any Memory_card_reader will do. For the cartridges, you may find useful information at Nintendo_DS_homebrew. SemanticMantis (talk) 17:48, 8 April 2011 (UTC)[reply]

Pieces of a URL

Two questions —

  1. The "Use in web site hosting" section of Domain name provides a URL and shows the names of its various components. Is there any good reason not to have this same feature in Uniform Resource Locator?
  2. As an IUB student, I can access many of its resources off campus through the library website. Whenever I do this, the websites' URLs have extra bits appended at the end — for example, I use http://web.ebscohost.com.ezproxy.lib.indiana.edu and http://www.jstor.org.ezproxy.lib.indiana.edu instead of http://web.ebscohost.com and http://www.jstor.org. Is there a standard name for URL components that follow ".com" and ".org" in these examples? Nyttend (talk) 04:07, 8 April 2011 (UTC)[reply]
  1. URL's don't especially care about domain names. There's stuff between the // and the first / that might or might not be a domain name.
  2. There's not a standard, that syntax is specific to ezproxy. 75.57.242.120 (talk) 06:16, 8 April 2011 (UTC)[reply]

We should be clear: the URL you are accessing is read right-to-left - so you aren't accessing JSTOR, you're accessing "lib.indiana.edu", who is proxying for you. The proxy-server is interpreting the subdomain (everything to the left of the top-level domain), and using that information to deliver your content. Nimur (talk) 13:37, 8 April 2011 (UTC)[reply]

PCI-E graphics cards lanes

Do PCI-E ×16 graphics cards, no matter how low-end they are, really require all the 16 lanes for best performance? In other words, will the performance of a PCI-E ×16 graphics card, no matter how low-end it is, decrease if it is only allocated 8 lanes by the motherboard? How big will the decrease be? Many thanks for all answers. 118.96.161.40 (talk) 14:05, 8 April 2011 (UTC)[reply]

PCIe allows for dynamic lane allocation. Every time you lose a lane, you lose 250 MB/s of available transfer throughput. It's not a matter of "low-end" or "high-end" - it's a question of whether you needed that throughput for some particular software operation. If a low-performance GPU was backed by a low-performance software driver that never fed more than 1 lane's worth of data per second, then you'd never notice any slowdown. The same would be true if a high-performance GPU was never fed more than one lane's worth of data. Ultimately, you need to know what the software is doing, and whether the program will gracefully scale performance to match available throughput. Nimur (talk) 22:50, 8 April 2011 (UTC)[reply]

I've noticed that the format in which you enter a directory name is stored exactly as entered, when creating a symbolic link. Example:

nblue@pluto:/var/www/foto/RESULT3$ ln -s /home/nblue/album/Test fullsize
nblue@pluto:/var/www/foto/RESULT3$ ln -s /home/nblue/album/Test/ fullsize2
nblue@pluto:/var/www/foto/RESULT3$ ls -l | grep fullsize
lrwxrwxrwx 1 nblue nblue   22 2011-04-08 16:47 fullsize -> /home/nblue/album/Test
lrwxrwxrwx 1 nblue nblue   23 2011-04-08 16:47 fullsize2 -> /home/nblue/album/Test/

(I'm using Ubuntu 10.10) Both links work as intended for my purposes. Are there any circumstances in which the presence or absence of the trailing slash in the symlink could make a difference, and is there any reason to prefer one format over the other? --NorwegianBlue talk 15:07, 8 April 2011 (UTC)[reply]

The only thing I can think of is that a program might take that directory and add another level to it (say to create a new sub-directory). A careful program would add the slash, but one that didn't would require it in the original string to work properly. StuRat (talk) 16:29, 8 April 2011 (UTC)[reply]
Yeah, and I'm not sure that would ever even manifest (because you still have to sub-directory the symlink). Just stay cognizant of this sort of thing, and if you see any script or program weirdness, you already know how to fix it. Nimur (talk) 16:54, 8 April 2011 (UTC)[reply]
Thanks. I looked around in the system directories. The links that I found used the format without the trailing slash (e.g. lib64 -> /lib in the root directory). So I'll stick with that format! --NorwegianBlue talk 08:55, 9 April 2011 (UTC)[reply]

.iso files

I have received an .iso file from net that is about 1.5 gb. How do I convert it into a CD or DVD that I can properly use ?  Jon Ascton  (talk)

You need a program that can write ISO files to a disc. These instructions, provided from Ubuntu, list techniques for burning ISO files to disc on all major operating systems. Of course, use your .ISO file (not the Ubuntu disc-image file). Nimur (talk) 16:56, 8 April 2011 (UTC)[reply]

I suggest using imgburn 82.43.90.38 (talk) 19:14, 8 April 2011 (UTC)[reply]

Or, you can pretend there is an actual DVD drive and so instead of having to burn it, you can just make a virtual DVD drive and put any file you want in it to make it a DVD. Daemontools or MagicISO can do that. Unless if you prefer to have it on disk. General Rommel (talk) 22:50, 8 April 2011 (UTC)[reply]

Out of memory in XXX

This time I waited until I actually talked to someone who could do something about the situation. Unfortunately, it was so hard to find just the right person, and even then all they could do was report the problem to the right people, who I had no access to. I'm curious to know what was going on. And perhaps an answer here can help me more clearly explain the problem to those who could fix it.

It was a day when I had been led to believe the library at the college I went to would be open. It was not. As long as I was there, I went in the building where the basketball arena was located. Next to the food court was an Internet computer. I sat down for a few minutes to use it, but it kept shutting down even though all I was doing was looking at newspaper articles. On several occasions, I got a message that the computer was unable to perform the requested action, but pressing the back button merely gave me a "The page cannot be displayed" or something similar. Going back to the same article gave me the article, but the URL was the same as when the article couldn't load and gave me the "The page cannot be displayed" or whatever.

One time the computer froze completely. I mean no keys or mouse clicks would do anything. I didn't even see the endless flying of the flag with the Windows logo, which on most computers has been replaced by a rotating circle. I clicked on "Start" and restarted the Internet (shutting down was not an option since that day I couldn't be sure anyone could help me), but that frozen page remained the rest of the time I was there. At some point, the errors didn't cause a disaster, but I merely got a message saying "Out of memory in" followed by a nnumber with from one to three digits.Vchimpanzee · talk · contributions · 21:00, 8 April 2011 (UTC)[reply]

Vchimpanzee, we have tried many times to help you diagnose or at least understand what is wrong with your computers. In most cases, you need to contact the administrator of the computer (the librarian, the university I.T. department, or so forth). Ultimately, though, it seems like we must classify the majority of your problems as "user error" problems - have you considered signing up for a basic computer and internet training class? The frequent difficulties you are having, and your inability to describe meaningful symptoms, indicate that you might benefit from some training. We can help refer you to a course, but we can't magically diagnose every system error you encounter, especially while your descriptions are this non-technical. Nimur (talk) 21:27, 8 April 2011 (UTC)[reply]
My problems are not "user error". I'll report back if I ever track down who fixed or could fix the problems described above. I don't know why I bother to describe anything to anyone because they're never satisfied.Vchimpanzee · talk · contributions · 21:29, 8 April 2011 (UTC)[reply]
Some of the things you need help with are basic writing skills. For example, the fact that those computers were near basketball arenas or food courts are simply not relevant. Instead, you need to list more detail about exactly which steps you performed and precisely which errors occured. For example, what operating system were you using ? Windows XP ? Which Internet browser ? Firefox ? Describe step-by-step, from the start, the exact sequence of events including any error messages in full. StuRat (talk) 21:39, 8 April 2011 (UTC)[reply]
Also, consider the way that other posters on this desk describe their problems. Try to emulate their level of detail. We want to help people - we're volunteering out time to help others - but we need a meaningful problem-description, or we aren't able to provide a meaningful answer. Nimur (talk) 21:43, 8 April 2011 (UTC)[reply]
I think the location of the computer makes it very relevant. It means there wasn't anyone around to help, and it means it's harder to figure out just who is in charge of it. The library computers are under better control because people sign in, and there are people around to answer questions and fix things.And according to one of the people I talked to weeks later wondering what was wrong with it, it meant anyone could do anything to it. I'm not saying anyone put viruses there, but this one person said that might have happened. And I did say it was a Windows computer with a flag flying.
I don't know how to make my descriptions any more meaningful. I can't explain it.Vchimpanzee · talk · contributions · 21:48, 8 April 2011 (UTC)[reply]
Rather than just saying "Windows", you could say if it's Windows XP, Windows Vista, Windows 7, or something else. StuRat (talk) 16:51, 9 April 2011 (UTC)[reply]

By the way, one of the first questions I ever asked was answered years later when I had a similar problem, and I saw similar information in the Hang (computing) article after the idea of a search for something popped into my head in a way it never had before.

Also, the Firefox computer where I have had some problems was recently upgraded. As to the specific problems I was having, the person who does that said it's old and there's no cure, though I suspect there's something specific happening that I just can't identify. Virus updates slow that computer down, I do know.Vchimpanzee · talk · contributions · 22:02, 8 April 2011 (UTC)[reply]

I didn't say that about "Windows". I don't know which one has the flag. I'm sitting there, in a building where I'm not sure anyone is around to fix things, going nuts because the thing keeps shutting down or being unable to complete the task and you expect me to know which version of Windows? The good news is I probably won't use this computer again. As long as the library is open when I go, I suppose I won't be having these problems. Here I thought I asked a simple question.Vchimpanzee · talk · contributions · 17:33, 9 April 2011 (UTC)[reply]

April 9

personal cloud (continued from here.)

(This question continues from here.)

Out of curiosity I tried setting up a Beowulf network using four old personal computers running under Windows XP using Visual Basic as described here.

To my great surprise it works and is fast enough and distributes memory well enough that I am only restricted by subscript out of range, overflow and out of memory errors in only extreme cases.

Is there a way I can improve upon this setup by programming in DOS or in some other way that is relatively user friendly as under Windows XP and Visual Basic 6. --DeeperQA (talk) 09:27, 9 April 2011 (UTC)[reply]

I've seen DOS used in some strange (and surprisingly modern) software setups. But you need to know: DOS does not provide the following two features that you probably care about:
If you want to set up a Beowulf cluster, you probably need both of those. Otherwise, DOS is a fine operating system for certain computer architectures. I've seen modern, mission-critical, real-time computer systems that run true DOS, without any emulation. But none of those computers needed a network or a lot of memory.
Anyway, it sounds like your objective is to "get more performance," not to "run DOS." So, let's drop that idea, and here's what I'd suggest instead:
  • Stop programming in Visual Basic. You will soon find that your performance limitations are dominated by the overhead of application virtualization, hardware abstraction, and the limited support that even a modern VB compiler provides for optimization.
  • Run a server operating system, such as Windows Server (or really, since you're seeking high-performance computing, learn a Unix or Linux - though there are HPC applications and tools for Windows, you need to expand your horizons if you seriously do want to spend a lot of effort in the area of performance-driven computing). Run an operating system that lets you disable unneeded features, such as the graphic interface(s), which hog memory and CPU cycles.
These simple steps will buy you loads more performance than switching to DOS. Especially as you seek larger and larger memory allocations, you are going to absolutely require a modern operating system with support for physical address extensions or 64-bit memory addressing. Nimur (talk) 17:53, 9 April 2011 (UTC)[reply]
Just as an aside - if you're working on problems so large that you actually need multiple computers' worth of address space, I'd strongly suggest switching architectures altogether. I recommend installing Ubuntu on each system; but any modern *nix will really get the job done. OpenSolaris' ability to fine-tune individual process allocations to specific CPU cores used to be very helpful, but I would really just leave such optimization to a modern kernel; worry about your high-level algorithms, minimizing data-dependency, and intelligently scheduling high-level tasks. Design your algorithm; then, program in straight C or FORTRAN, using GCC to compile. In my personal experience, I have not found any other compiler, including the Intel FORTRAN and Intel C compilers, that benchmark as aggressively as GCC. GCC also supports MPICH2 and other MPI platforms, or you can run a grid engine like Sun Grid Engine. If massive data-communication is required for your problems, consider wrapping your node-programs inside a higher-level inter-node communication platform, such as Hadoop or Java EE (both have available, free, open-source implementations available). It is unlikely you can design an inter-node router that is more efficient than either of those platforms (or MPI, if your data transfers are very regularly-scheduled).
This environment is your end-goal. Based on your current descriptions of your cluster, you will probably have a lot to learn between where you are, and where you want to go - but if you take HPC seriously, you should start using the tools of the trade. Nimur (talk) 18:04, 9 April 2011 (UTC)[reply]
I'm not sure how the errors you describe could be prevented by having a cluster. Subscript out-of-bounds and overflow are programming errors -- the resources available to the program don't affect them. Out-of-memory errors are usually programming errors, too. A typical set up will use swap space to allocate virtual memory until the system bogs down to be painfully slowly. If a program manages to allocate memory fast enough to completely run out before the user kills it in frustration, it's probably allocating in an infinite loop. To further confuse me, the Beowulf article doesn't give any indication that Windows is a supported platform for Beowulf clusters. Paul (Stansifer) 19:58, 9 April 2011 (UTC)[reply]

Java GUI: manipulating (add/remove/setVisible true or false etc) JPanels during runtime?

I'm trying to create a board game (nine men's morris, if that helps at all). The board is a JPanel with paintComponent overridden to put custom .jpg image (the board image). The playing pieces are a JPanel also with paintComponent overridden to put a custom .png image. What I want to do is when the user clicks on a specific location of the board to put in a piece, the JPanel would be added - or if this is easier, setVisible(true).

Problem is, none worked when I tried one or a combination of these: frame.validate(), board.revalidate() and/or board.repaint() after board.add(piece), or after piece.setVisible(true). I've tried putting in System.out.println("something") after the codes to ensure that the listener is worker fine, and yes it was.

A friend told me to use SwingWorker as a solution, but as an amateur I have no idea how to use it at all even after referring to some links. Any feedback would be appreciated, thanks in advance. — Yurei-eggtart 12:59, 9 April 2011 (UTC)[reply]

I don't have time just now to code something (I can't really think without coding; I may have some time in a few hours). In the meantime I have some thoughts:
  • the pieces don't have to be JPanels: JPanels are containers, and if they're not containing something, you're adding overhead and a bit of complexity to no purpose. They'd be cleaner if they were just overridden JComponents instead
  • what is the layout manager on the board JPanel? If you haven't specified it explicitly, I think it's a java.awt.FlowLayout (which surely you don't want). You should probably specify a NULL layout manager for it, and position the pieces manually. I rather think that your problem is here: they're not being positioned, so they're offscreen, and so don't get paint calls when you ask to repaint them. And make sure they are not of (0,0) size (as again these won't be painted). Call getBounds on each piece, and make sure you get sensible on-screen rectangles for each.
  • for a job like this, you really don't need to have the pieces be components at all; the drawing and event handling you require is so simple that you can just have the board be a single JComponent and have its paint method (and its event handler) do all the work drawing the piece graphics as necessary.
-- Finlay McWalterTalk 13:40, 9 April 2011 (UTC)[reply]
Here's my code for the piece:
       JPanel piece = new JPanel() {
       @Override
           public void paintComponent(Graphics g) {
               Image img = new ImageIcon("Button"+colour1+".png").getImage();
               g.drawImage(img, 0, 0, null);
               setBounds(20, 100, img.getWidth(null), img.getHeight(null));
           }
       };
       board.add(piece);
       piece.addMouseListener(this);
       MAINWINDOW.addMouseListener(this); //MAINWINDOW is the JFrame
board JPanel layout is already specified null, thats why I could draw the background image at 0,0 in the first place. I've also tried calling this at the beginning (without waiting for any event), and the piece was displayed correctly. I just don't know what went wrong x_x — Yurei-eggtart 16:08, 9 April 2011 (UTC)[reply]
On the face of it, that's a fairly odd paintComponent call. Firstly you should generate img in the piece's constructor (I'd really have a named class rather than an anon like this). And secondly you shouldn't be positioning the object in its own paint call. It should be constructed, then you wait for the img to load (so you can get its dimensions) and then located, and the paint call just does drawImage. -- Finlay McWalterTalk 16:36, 9 April 2011 (UTC)[reply]
Although if there are more than one piece with the same image then you'd ideally load the images in the main object and pass the loaded Image object to the constructor of the piece objects - that way you've only loaded each image once. -- Finlay McWalterTalk 16:49, 9 April 2011 (UTC)[reply]
Here's my basic example
basic java example
import java.awt.*;
import javax.swing.*;

class Piece extends JComponent {
    static final long serialVersionUID = 0x1234L;
    private Image myImg;

    public Piece(Image i){
	myImg = i;
    }

    public void paintComponent(Graphics g){
	g.drawImage(myImg, 0, 0, null);
    }
}

class Board extends JPanel {
    static final long serialVersionUID = 0x1234L;

    public void paintComponent(Graphics g){
	g.drawLine(125,0,125,500);
    }
}

public class Boardgame {
    public static void main(String [] args){
	// for this example, white.png and black.png are 50x50
	Image whiteimg = new ImageIcon("white.png").getImage();
	Image blackimg = new ImageIcon("black.png").getImage();
	JFrame frame = new JFrame("hello");
	Board board = new Board();
	frame.getContentPane().add(board);
	board.setLayout(null);

	Piece p1 = new Piece(whiteimg);
	p1.setBounds(100,100,150,150);
	board.add(p1);

	Piece p2 = new Piece(blackimg);
	p2.setBounds(100,150,150,200);
	board.add(p2);

	frame.setSize(500,500);
	frame.setVisible(true);
    }
}
-- Finlay McWalterTalk 17:36, 9 April 2011 (UTC)[reply]
As to SwingWorker (etc.), you almost certainly don't need to use that. Swing is single-threaded, which means all the calls (at least, all those following that frame.setVisible call) which do anything to swing components have to happen in the main event thread. If your game just handles mouseclicks, you can just have the mouseeventhandler code move Pieces around as it wants. The only thing I can think that you'd do asynchronously (of the event handler thread) is if you had a computer player that took a significant amount of time to calculate its next move. In that case you'd most likely start a new Thread and run the calculate-move code there; once it was done it would call a little method (via invokeLater()) that would update the board. That invoked-later code would be executed in the event handler thread, which means it's safe for it to move and otherwise mess around with Swing components like Piece. -- Finlay McWalterTalk 18:31, 9 April 2011 (UTC)[reply]
Okay I did a few more runs and found some more odd stuffs, well it's really hard to explain and my codes are really messed up. Basically this is the flow of the program:
  • menu -> game mode -> MAINWINDOW generates (for testing purpose, i have called one p1 piece together with this frame so there'll be a white piece on the board (white is the default colour for p1)
  • p1 and p2 insert name -> p1 and p2 choose colour -> randomly choose the starter
  • all done, now only the board is up. As if putting down a piece, I click on a specific slot to trigger mouse event.
       if (e.getSource() == board) {
           if ((e.getX()<=65&&e.getX()>=20) && (e.getY()<=145&&e.getY()>=100)) {
               Piece piece = new Piece(colour1, 20, 100); //a class that extends JPanel that would form the piece
               BGPanel.add(piece);
               BGPanel.validate();
               BG.repaint();
               MAINWINDOW.validate();
               System.out.println("Hello world");
           }
       }
  • What exactly happened: Hello World is printed, the piece already on board changes colour from White to p1's selected colour, however nothing popped up at the slot.
What I don't understand is that, calling piece at the main GUI constructor (i.e. without checking for mouse event) easily creates the piece (just like how the testing piece shows up), however calling it at the event handler doesn't show up. Hopefully it's understandable, and thanks a lot for your attention, Finlay. — Yurei-eggtart 21:03, 9 April 2011 (UTC)[reply]

Book scanning services in Toronto

Hi:

I have some old books which I want to throw away. But I would also like to keep a digital archive of them. Is there any place in Toronto that does book scanning? Since I plan to throw them away, I don't mind if the scanning shop takes my books and cut away the ridge.

Thanks,

70.29.27.28 (talk) 17:19, 9 April 2011 (UTC)[reply]