Jump to content

Wikipedia:Reference desk/Computing: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Mr.98 (talk | contribs)
Legolas52 (talk | contribs)
Line 677: Line 677:


I'm writing up some guidelines on making slides, but I wanted to check a factual matter here. On a typical LCD projector (where "pure white" is an absence of added color from the lamp, and "pure black" is the absence of light projected), does "pure red" (R:255, G:0, B:0) correspond to approximately 1/3rd the projected luminosity of pure white light? I know that the actual reflected luminosity depends on the screen surface, but I'm trying to come up with a basic generalization here. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 00:40, 24 March 2011 (UTC)
I'm writing up some guidelines on making slides, but I wanted to check a factual matter here. On a typical LCD projector (where "pure white" is an absence of added color from the lamp, and "pure black" is the absence of light projected), does "pure red" (R:255, G:0, B:0) correspond to approximately 1/3rd the projected luminosity of pure white light? I know that the actual reflected luminosity depends on the screen surface, but I'm trying to come up with a basic generalization here. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 00:40, 24 March 2011 (UTC)

== Help with Android Code ==

Hi, I'm going through some example code online. I'd like to preserve all of its functionality, except change it so it uses an arraylist to populate the list instead of a database.

https://github.com/findup/Android_Sample_TodoApp/blob/master/src/jp/co/example/testapp/MainActivity.java

Around line 127, it chooses to use a database connection to fetch content from the database.

Instead of fetching data from the database, I'd like to use an ArrayList to hold the data. Could anyone help me? Thanks!

Revision as of 00:58, 24 March 2011

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:


March 18

Running two devices from a single ethernet cable

IS there some sort of device where I could plug in an ethernet cable and somehow be able to connect two devices to the internet at the same time? I am some three floors above the router, which is only wired anyway, so wireless networking is not an option. Powerline networking could be an option but I am unwilling to buy the extra kit. I think I've seen a device that you can plug an ethernet cable into and it can transmit a shortish-range wireless signal, but I'd rather both devices be connected with wires. Running a second wire through the walls is also problematic. Is there anything I could buy that would help? Postrock1 (talk) 00:01, 18 March 2011 (UTC)[reply]

You need an ethernet hub. You connect the original one wire to the upstream port of the hub, then connect two Cat5 cables at one end to your two devices and at the other end to two of the downstream ports on the hub. Rocketshiporion 00:38, 18 March 2011 (UTC)[reply]
Fantastic that's exactly it, thank you! Postrock1 (talk) 00:45, 18 March 2011 (UTC)[reply]
You can use an ethernet hub, or an ethernet switch (which is more common in stores nowadays). Hubs and switches are different types of devices; both require a router on the "upstream" or "uplink" connection in order to function correctly. For almost all users, an ethernet switch is the better choice (better performance in general, due to "technical details" described in our article). For your purposes, you should just plug in the ethernet into the "Uplink" port, and then you'll have something like four or eight available jacks to plug in ethernet cables. Switches cost in the neighborhood of $20 or $50, though "huge" 128- or 256-element switches can cost thousands of dollars.
If you have special networking needs, it is also be possible to use a network gateway or router. This choice isn't usually a good idea, because it can cause problems for the upstream network and a headache for you (especially if you're not familiar with network address translation details). Nimur (talk) 00:49, 18 March 2011 (UTC)[reply]
Two more options:
  • Many network cables have eight wires, you only need four for a network connection. So you could connect a splitter to both ends of the cable (note that you also need one at the router side) and run both connections through one cable.
  • If one of the computers have two network adapters you could use that to share the internet connection with the other one. This should in principle also work using a wireless "ad hoc" network, but maybe hard to set up (and unsecure). Jørgen (talk) 08:12, 18 March 2011 (UTC)[reply]
Note that you need all eight if you want GbE Nil Einne (talk) 22:51, 18 March 2011 (UTC)[reply]

Unable to Install Adobe Flash Player

I am unable to install adobe flash player. Here is what happened:

1. I went to the official website and clicked install and followed all the steps. 2. A message installation complete came up. 3. I went to youtube and could not access any videos because youtube claims "you need the latest version of flashplayer to view this video". 4. I rebooted my computer several times, restarted internet explorer several times.

I have tried numerous pages (including games and videos for example) that direct me to the adobe flash player website. I download it and "installation complete comes up". It's even there on my list of installed programs in "control panel". But I cannot see it anywhere on my computer (it's not on my desktop, for example). And all websites tell me I haven't got it installed. I have no idea what the problem is and why it's not installing and why it's not showing up on my computer.

I would be extremely grateful to anyone who could assist me in this regard by telling me how I could download flash player so that I can actually access videos and games.

Thanks. I am using Windows 7 and internet explorer 8 if that's relevant. I have tried to download adobe flash player about 40 times and it always says "installation complete" but no adobe flash player is there on my computer or else I would be able to see youtube for example and all websites tell me I haven't got it installed. Just to emphasise I have rebooted my computer numerous times. —Preceding unsigned comment added by 121.127.207.39 (talk) 03:45, 18 March 2011 (UTC)[reply]

First I would like to recommend a different browser, but if you insist on IE , ok. Are you sure you closed all applications that might use Flash before the start of the installation ? Adrian (talk) 07:25, 18 March 2011 (UTC)[reply]
Does the "Install Completed" message come up immediately, or after it goes through several minutes of moving progress bars and such ? If it comes up immediately, I suspect that you have a registry entry that says it's already installed. Have you tried to uninstall it ? That might remove whatever remnant (like a registry entry) is preventing the install. Then you might be able to get a clean install. StuRat (talk) 07:42, 18 March 2011 (UTC)[reply]
Have you considered updating to IE 9? Chaosdruid (talk) 09:29, 18 March 2011 (UTC)[reply]

Yes, I closed all applications before installation and it goes through several minutes of moving progress bars. In fact, just in case, I did try a week ago to uninstall it and install it again but the same problem occurs. I noticed there was a forum where a number of people noted the same problem but no-one had a solution. BTW, I have another computer where I have got Adobe flash player installed and it works but that's on the other side of the country and I need to use this computer here. BTW it's an "ACER" computer if that's relevant. —Preceding unsigned comment added by 121.127.207.39 (talk) 10:03, 18 March 2011 (UTC)[reply]

I have 64 bit Vista, and was unable to install Flash on 64-bit Internet Explorer. I've not tried recently, but this may be your problem. I find it a useful way of avoiding Flash. If I want to see Flash content, I also use 32 bit Firefox, and have installed it on there. --Phil Holmes (talk) 10:08, 18 March 2011 (UTC)[reply]
Try a different browser. There are many that are more than all-right(by my opinion way better than IE), like Mozilla Firefox, Opera, Google Chrome. That are the 3 giants, and they are all great. Try one of them.Adrian (talk) 18:44, 18 March 2011 (UTC)[reply]

Please tell me how I can install adobe flash player successfully in internet explorer 9 which I have downloaded. I am afraid that no-one will answer this question anymore and I have not got a solution to my problem yet. Thanks for your time. —Preceding unsigned comment added by 121.127.207.39 (talk) 08:12, 19 March 2011 (UTC)[reply]

Big bold writing won't make people any more willing to help you. In fact it is likely to make them less willing, so therefore I have removed your unnecessary formatting.
As for an answer to your question, apart from first uninstalling old versions of flash, maybe you can try uninstalling your browser too and reinstall it from scratch (ignore Adrian's dislike of Internet Explorer - there is no reason why IE in particular would not work). Ignore any beta versions and obviously you should download the new browser before uninstalling the old one. You might also have some rogue plugin/toolbar which is interfering with Flash. Lastly, when I had problems with flash and it said I needed to install flash, I found that by viewing the page source it showed me what version it was expecting as a minimum. I then visited http://get.adobe.com/flashplayer/ and made sure the required version was less then the currently offered version (today it is: Adobe Flash Player 10.2.152.32). Astronaut (talk) 10:06, 19 March 2011 (UTC)[reply]
This might not be any consolation, but I had a similar problem with Vista, IE8 and Adobe. Eventually, after several attempts at reinstallation, they decided to talk to each other and now work smoothly. Dbfirs 14:24, 19 March 2011 (UTC)[reply]
While I agree some of the answers were not that helpful, if you want help rather then just expecting someone to be able to guess your problem or tell you the whole list of things you should have tried, it's better if you check the obvious and tell us what the results are rather then expecting us to have to ask every possibility. For example does Flash show up in IE's list of plugins? If it does are you sure it's enabled? Someone already mentioned the 64 bit version and you still haven't mentioned if you are using IE64 or IE32. Are you sure you aren't using something like FlashBlock or even IE's built in settings which are blocking Flash? Are you sure you aren't running IE in safemode which disables all plugins? Have you done a simple search for things 'flash ie9 not installed' and look at results like [1] and [2] and made sure nothing there helps? Have you checked in taskmanager to make sure IE doesn't stay in the background even when nominally quit? Have you made sure only one user is running when you install IE? Have you made sure you have enough diskspace in the drive you are installing IE? Have you made sure you are running as admin with full privileges when installing Flash (it should ask but if it didn't I wouldn't presume it's going to work)? Have you made sure you downloaded the right version of Flash i.e. the IE version? Without the answers for obvious stuff like this particularly the first 5 things (list of plugins, enabled, 64/32bit version, FlashBlock/whatever, safemode and perhaps most important of all searched!) I don't think it's surprising if you question does go without a solution. Nil Einne (talk) 21:02, 19 March 2011 (UTC)[reply]

How to make small frame by frame animation with transparent background (Apple)?

Hello,

I am now using POV-RAY on my Macbook to make animations. Using the option "Add Alpha Channel", I can make PNG images with a transparent background, which looks much nicer on a slide. However, I also need to merge these images into one animation.

Using "Frame-By-Frame", and choosing Animation as file extensions when Exporting, this looks okay, but he slightly changes the colours...

I hear that this should be possible using GIMP, but then apparently I need to save this as a GIF-file, which causes problemns in Apple Keynote.

Do you have any suggestions? Many thanks!

Evilbu (talk)

If you want to make an animated GIF, use ImageMagick: convert -verbose -delay 40 -loop 0 -density 200 src*.png output.gif. If you want to make a video format like AVI, use FFMPEG: ffmpeg -r 40 -i src%03d.png -y -an output.avi -- Finlay McWalterTalk 14:37, 18 March 2011 (UTC)[reply]
When you say "slightly changes the colours", this is a problem when using GIF. GIF is an antique format, which only allows for a palette of 256 colours - that's okay for animating diagrams and smiley faces, but if you're using real continuous tones (as you probably are, given that you're ray-tracing) then the images have to be forced into a limited palette, leading to poor colour fidelity and visible dithering. Depressingly, support for a modern animated image format is poor - PNGs moving relative Multiple-image Network Graphics would be ideal, but isn't well supported by other programs (I don't know about Keynote at all). -- Finlay McWalterTalk 15:07, 18 March 2011 (UTC)[reply]

battery prices

My laptop needs a new battery, the current one is completely dead now. But I am wondering, any idea how much more it would cost to get a whole new computer than just the battery? Also where might sell just a battery, is it something only specialist shops would have? Or something I would have to order in specially even?

148.197.121.205 (talk) 16:42, 18 March 2011 (UTC)[reply]

Batteries for reasonably current models are widely available, in big-box electronic stores and by mail order. Since laptop prices run from $100 to over $10,000 and you haven't given any indication of what kind you would want, the other question is not answerable. Looie496 (talk) 16:58, 18 March 2011 (UTC)[reply]
Amazon has batteries for sale. Make sure to get one that is compatible with your laptop. - Akamad (talk) 17:14, 18 March 2011 (UTC)[reply]
I'd typically expect a new laptop battery to cost $100 or less. It might be possible to get refurbished or used batteries for a bit cheaper (of course, since batteries wear out and may degrade over time, you probably want one that's nearly new). You might also be able to get off-brand batteries from a non-reputable manufacturer for a lot cheaper, but those might be less good, or even less safe. Paul (Stansifer) 21:23, 18 March 2011 (UTC)[reply]

What the world needs now is another blogger.

On Youtube, seemingly every video blogger has great editing (sound and image effects), video quality and quick cut scenes. Is there a package I can buy at a local brick and mortar store (like a Best Buy or Target) that I can get all that stuff right in one package? Can someone suggest some better products? I tried Googling this but I guess I wasn't entering the right keywords cause I got nothin'. Thanks in advance. --Endlessdan (talk) 17:47, 18 March 2011 (UTC)[reply]

A quick glimpse at Amazon.com shows there are tons a good webcams for cheap, so if there is a good video editing program what would it be? --Endlessdan (talk) 17:54, 18 March 2011 (UTC)[reply]
What's your budget? See List of video editing software. Adobe Premiere is the standard, but it's pricey. Comet Tuttle (talk) 18:15, 18 March 2011 (UTC)[reply]
Adobe Premiere, Final Cut Pro, and Avid are the three major software programs/suites I see most professionals using, but you can get very good results with something like iMovie or Windows Movie Maker. The quality of the video requires a decent camera, but is often dependent on the lighting and placement of the camera more than the actual quality. The same goes for video editing software. Knowing how to use your tools effectively is more important than having the right tools. Of course a high end camera, amazing microphones, and a multi-thousand dollar video editing package is great, but if you don't know how to use the equipment to its full potential using consumer grade budget equipment will be your best investment. 206.131.39.6 (talk) 18:31, 18 March 2011 (UTC)[reply]
If you're into free software, I've heard some praise about a program called Avidemux for video editing. Zakhalesh (talk) 19:12, 18 March 2011 (UTC)[reply]
Avidemux is great but very basic in terms of editing features. It's more of an encoding program 82.43.92.41 (talk) 19:37, 18 March 2011 (UTC)[reply]
I don't know myself, haven't used it, except for a very brief period when my media player was broken and I needed some substitute... and there was Avidemux. One of my friends said it's good but I'm not sure on what did he exactly use it for. Zakhalesh (talk) 20:38, 18 March 2011 (UTC)[reply]

Weird network problems

Hello. I had to replace my older Linux for Windows 7 recently. Now, I'm having network problems that no one in the same network experiences. The network connection never seems to disappear but gets REALLY slow frequently (I had to wait 5 minutes to get this form to load) while being lightning fast otherwise. I installed Wireshark (guess how long that took because of these problems) and checked what could be bugging it - it shows "Bad TCPs" at high concentrations whenever the network stops cooperating. Anyone know why's that and how to fix it? Zakhalesh (talk) 18:05, 18 March 2011 (UTC)[reply]

Is your computer powerful enough to run Windows 7 effectively? Looie496 (talk) 18:14, 18 March 2011 (UTC)[reply]
I don't remember having problems a year ago when I had Win7 the last time, and since then, I've managed to get my hands on some good hardware like a new PSU. However, I might have not noticed the network problems the last time because everyone's connection used to suck back then. I'm now on my laptop, by the way, and everything's going smooth... Zakhalesh (talk) 18:20, 18 March 2011 (UTC)[reply]
If I were diagnosing this, I'm afraid I would do the dumb-o brute force diagnosis of buying a new wired Ethernet card, installing it, disabling the built-in Ethernet networking with Device Manager, and seeing if that resolves the problem. Comet Tuttle (talk) 21:30, 18 March 2011 (UTC)[reply]
Have you tried a different cable (and if part of the cable connecting you to the router or switch or whatever is fixed a different location where the cable is known not to have such problems) Nil Einne (talk) 22:47, 18 March 2011 (UTC)[reply]
Sorry, forgot to mention that the network is wireless. Zakhalesh (talk) 12:45, 19 March 2011 (UTC)[reply]
Then the first thing you should try is using a cable. How far is your computer from the router? Are there walls between? Is there other equipment nearby that is causing interference? Windows 7 will tell you the wireless signal strength. Possibly you might need to try a new wireless card? Am I correct in assuming that your laptop has no difficulty in connecting to the router by wireless? Dbfirs 14:18, 19 March 2011 (UTC)[reply]
Cable is difficult because there's some distance between the two and also some other obstacles. However, they can't be the cause because the same computer from the same location used to work flawlessly before. Yes, no other machines on the network share the problems - my laptop works fine. I won't rely on Windows' signal strength because it won't even realize when the connection is down, still trying to tell me that the signal is "excellent" as when working. Zakhalesh (talk) 16:02, 19 March 2011 (UTC)[reply]
Sounds like a problem with the Wireless network interface controller then. I assume that you've tried resetting it. If you are sure that the settings are unchanged from when it worked previously, then try a replacement. Before you spend money, do check that there is no electrical equipment interfering with the transmission, and that the "excellent signal strength" is not from some other transmission (such as a wireless TV transmitter). Could you borrow a USB wireless connector just to check? Dbfirs 17:27, 19 March 2011 (UTC)[reply]
Does the laptop work fine in the same location as the computer with the problem? Nil Einne (talk) 20:51, 19 March 2011 (UTC)[reply]


March 19

GNU Octave Manual - PDF Format

Resolved

  Is the 725-page GNU Octave Manual available anywhere in PDF format? Thanks. Rocketshiporion 01:50, 19 March 2011 (UTC)[reply]

ftp://ftp.gnu.org/gnu/octave/octave-3.4.0.tar.bz2 octave-3.4.0/doc/interpreter/octave.pdf ¦ Reisio (talk) 02:30, 19 March 2011 (UTC)[reply]
Thank you, Reisio. That's just what I was looking for! Rocketshiporion 08:28, 20 March 2011 (UTC)[reply]

Filtering Strings

I have a html file and want to delete all strings except those within <img> element. What program or method can do this job? Please give me some advices or recommendations, thank you! By the way, I am using Windows.--Merry Rabbit 05:02, 19 March 2011 (UTC)[reply]

You want a program that can do regular expressions (regex). There are many options, but I do not use any of the Windows programs. Do you have any programming editors? Those commonly have the ability to do regex search and replacement. Then, you can replace everything that is not in an img tag with nothing - deleting it. -- kainaw 05:20, 19 March 2011 (UTC)[reply]
I can use regexp and search the strings within img tag (<img src="[0-9a-z :\.\-\/]+">), but I failed to remove the strings that are out of img tag. --Merry Rabbit 06:27, 19 March 2011 (UTC)[reply]
What do you mean "all strings". Are you wanting to extract only things within <img> tags? If that's the case this might work (note that this is sed/perl formatting... but the first is the find, the second is the replace): s/.*?<img\s*(.*?>)<\/img>/$1/gi. If you were more specific we could be too. Shadowjams (talk) 08:05, 19 March 2011 (UTC)[reply]
Yes, I want to extract only strings within <img> tags. There are at least 5,000 strings I want to extract in the html file. So I am looking for an efficient method or software. --Merry Rabbit 15:42, 19 March 2011 (UTC)[reply]
I'm not sure I understand what you mean by "strings within img tags". If you mean a list of the attributes and their values, I've attached a Python program (which uses Beautiful Soup to parse the html) below. If you mean text between <img> and </img> tags, that isn't (at least formally) meaningful, as img is a self-terminating tag, which means </img> is (formally) meaningless.
python example
#!/usr/bin/python
from BeautifulSoup import BeautifulSoup
import urllib

data = urllib.urlopen('http://mcwalter.org').read()
soup = BeautifulSoup(data)

for x in soup.findAll('img'):
    print str(x)[5:-2]     # print the tag as a string
    print x.attrs          # print the tag as a list of (attrib,value) tuples
The two print lines are just examples - the first just prints the tag contents, the second shows them in a parsed format suitable for further processing. Which, if either, you use depends on what you're doing. -- Finlay McWalterTalk 18:24, 19 March 2011 (UTC)[reply]
Thank you for the help. Unfortunately, I can not use python...although I want to learn. My goal is simple, just want to extract all images' URLs from the html file. --Merry Rabbit 05:03, 20 March 2011 (UTC)[reply]
Here you go:
python example'
#!/usr/bin/python
from BeautifulSoup import BeautifulSoup
import urllib, urlparse

url = 'http://mcwalter.org'

#data = urllib.urlopen(url).read()
data = open('index.html').read()

soup = BeautifulSoup(data)
 
for x in soup.findAll('img'):
    if x.has_key('src'):
        print urlparse.urljoin(url,x['src'])
There are two data= lines: the first gets the html over http, the second from a local file called index.html Comment out which you don't need (lines beginning # are comments). In the file case url is the URL where you got the file from originally (it's used for resolving relative image src urls). -- Finlay McWalterTalk 18:29, 20 March 2011 (UTC)[reply]
I used Python 2.7 to run the codes but got error messages. It seemed BeautifulSoup was not installed successfully...Worse, I can not solve this problem... --Merry Rabbit 04:45, 23 March 2011 (UTC)[reply]
Traceback (most recent call last):
 File "C:\1.py", line 8, in <module>
   data = open('index.html').read()
IOError: [Errno 2] No such file or directory: 'index.html'

IE8

I recently downloaded this new IE9 thinking it will be even better than the previous version. How do I get rid of it?

So far as I can tell, mostly they have just deleted some of the useful little tools for getting around the internet easier, the little button in the corner that opens a screen with all the tabs listed across it has disappeared, the menu of recently visited sites is a lot smaller and all the little buttons for my favourite sites have gone, which makes finding for example this site take rather longer. Meanwhile, all the text has come up really big and bold, which I don't like. Although, I do like the new tabs page, with the list of sites ordered by popularity, with that little bar showing how often I visit each of them. If I could have that in place of IE8's 'new tabs page', that would be even better.

148.197.121.205 (talk) 11:17, 19 March 2011 (UTC)[reply]

When you install something like Internet Explorer, Windows usually takes a backup using the system restore utility. On my Vista system, it is located on the Start menu->Accessories->System Tools (although I have moved some things around). Take a look in there and set your system back to a time just before you installed IE9. However, this might remove some windows updates and other things too, especially if you have been running IE9 for more then a few days. Astronaut (talk) 14:35, 19 March 2011 (UTC)[reply]

So, I can't simply download the earlier version again? That would be a bit easier, I think. 148.197.121.205 (talk) 15:01, 19 March 2011 (UTC)[reply]

No, a restore is better. To re-install IE8 (if MS allows this at all), you might need to first de-install it, which might take out your bookmarks/favorites and other settings, too.
BTW, I view any updates from MS very skeptically, as I often find "new and improved" versions of their products are worse than the old ones. So it would be wise to read up on any upgrade they offer, before you risk your computer on their word that it's "better". StuRat (talk) 18:37, 19 March 2011 (UTC)[reply]

Actually after all that, I think I might give it a second chance, as it is, I'll most likely be getting a new computer soon. Instead, what I want to do now is find some way to get all the text back to normal size, at the moment on half the sites it is all in bold for no apparent reason. Then, if I can find out what is up with these 'quick tabs' or whatever that was, that seem to have disappeared, I might be happy. 148.197.121.205 (talk) 18:59, 19 March 2011 (UTC)[reply]

If you do want to uninstall it, see How do I install or uninstall Internet Explorer 9] at Microsoft. ---— Gadget850 (Ed) talk 19:04, 19 March 2011 (UTC)[reply]

Quick tabs are back, I found a keyboard shortcut for them, favourites bar buttons are back, and all the other clutter I never used has gone, I think I actually quite like this upgrade now, if only someone can tell my how to get the text back out of bold... 148.197.121.205 (talk) 19:22, 19 March 2011 (UTC)[reply]

Is there a customize menu anywhere? If so, see if you can change the font to something else to get rid of the bold. --Thekmc (Leave me a message) 20:05, 21 March 2011 (UTC)[reply]

Parallel computing for on-stage audio processing

I don't know much about parallel computing. Is there some way to distribute a CPU load over a number of ordinary laptop computers? I'm trying to run a Max patch for live audio processing, and the patch, by necessity, uses a lot of CPU. I imagen a system for using the CPUs of multiple computers would require a program to distribute the workload among the different machines? Does such a program exist? I've looked through a lot of articles. Pages like Beowulf (computing) don't seem directly applicable to what I need to do, but maybe I just haven't found the right page yet. Thanks, --145.116.9.163 (talk) 17:52, 19 March 2011 (UTC)[reply]

Yes, the program you are using would need to be designed for parallel computing. Also, since the speed of communications between the laptops would be a concern, this would only help if a lot of processing produces a small amount of data to be transferred.
But let's back up a bit. Why do you feel the need for parallel computing ? Is the software lagging and freezing ? If so, and if you have a multiple processor laptop, perhaps an "affinity" statement could be used to force Max Patch to use one processor while everything else uses another: [3] ? And, just in case it's not obvious, you should reboot and kill everything non-essential on the laptop, using the Task Manager, to get it to run more quickly (what's non-essential may require some trial-and-error to determine). Also, disable any automatic updates or virus scanner, and disconnect from the Internet, as all those lead to lags. StuRat (talk) 18:23, 19 March 2011 (UTC)[reply]
Some other thoughts:
1) The stage can be crowded enough, without having multiple laptops hooked together. More wires means more trip hazards, more potential interference, etc. Wireless connections can solve the trip hazard, but cause other problems, in turn.
2) Unless carefully designed, a system dependent on multiple computers would be less reliable, as it would fail if any of the components (computers or cables), failed.
3) A dedicated computer (one that does nothing else) is a better choice for something where reliable, real-time, quick processing is required. I'm not sure if there is a dedicated computer that would do what you need, though.
4) You could always do the processing beforehand, say in a recording studio, then play back that portion which requires Max Patch, at the concert, adding in the rest live. (Something like using a drum machine to do percussion.) Audiences would probably be OK with that. It's usually only recorded voices that really annoy an audience. StuRat (talk) 22:32, 19 March 2011 (UTC)[reply]
I doubt that it'd be possible to share work across multiple computers for a task like this, since latency is the precise problem that you're trying to avoid, and dividing work over multiple computers would introduce latency. The task might not even be parallelizable in the first place. Paul (Stansifer) 01:40, 20 March 2011 (UTC)[reply]
It looks like it just does some audio DSP stuff. Are you running 100's of channels or anything like that? If not, I'd just check whether your existing laptop is fast enough already. The article says that program has been around since the 1980's, and today's laptops can run circles around the mainframe computers of that era. They should be plenty fast enough for most audio purposes. If not, the next step up would probably be software that can use a desktop graphics accelerator (AMD Radeon, Nvidia Tesla, etc.) rather than a bunch of parallel laptops. 75.57.242.120 (talk) 10:27, 20 March 2011 (UTC)[reply]

Choice of CPUs

I have just received a new motherboard in the mail, and I have two old CPUs sitting around. The first is an , and the second an . They both support a PGA478 socket, so I appear to be able to use either (unless I'm mistaken... the motherboard says mPGA478MT).

My question: which CPU will be better for which purposes?

From what I can see, the only thing better about the first one is that it supports 64-bit technology. As such, it will only be better if I'm running processor intensive math programs, which I'm not. Should I go with CPU 2? Magog the Ogre 2 (talk) 21:03, 19 March 2011 (UTC)[reply]

From List of Intel Pentium Dual-Core microprocessors and the page you linked, it's apparent Intel SVA4H is in the Merom (microprocessor) line. This is the newer Intel Core 2 line which has numerous enhancements improving performance over the older Intel Core/Pentium M line it was based on and that SL8VQ is. Although the specific processor is one of the reduced functionality (primarily in FSB and cache) Pentium processors, I still strongly suspect given the minimal clock speed difference (and in fact SVA4H is faster anyway) without having actually having looked at specific benchmarks that for most purposes Intel SVA4H will perform better probably significantly in some cases. Nil Einne (talk) 21:15, 19 March 2011 (UTC)[reply]
(edit conflict)The 64 bit-ness would really matter most if you wanted to have more than 4Gb of address space (which in practice means 3.4Gb or more of RAM), and you installed a 64 bit OS to access that. Beyond that, the slightly faster FSB of CPU2 is probably more important than the negligible core speed difference. The 2400 also has twice as much L2 cache. And it has VT-x, which is helpful if you're planning on running a virtualisation environment on it. -- Finlay McWalterTalk 21:19, 19 March 2011 (UTC)[reply]

Yikes! Two different answers does not make me happy! To clarify: I have 3GB of RAM I plan on using (IIRC the motherboard supports only up to 4GB), and I already uninstalled my 64-bit OS a while ago, as it seemed to be buggier than its 32-bit counterpart (even on Ubuntu), and as my processor at the time only supported a 32-bit OS. Magog the Ogre 2 (talk) 21:26, 19 March 2011 (UTC)[reply]

Well if you have a 32-bit O/S and memory accessible from a 32-bit processor, then I'd go with the 32-bit processor and save the 64-bit for your next (presumably 64-bit) system. StuRat (talk) 21:32, 19 March 2011 (UTC)[reply]


(EC multiple times) I wouldn't say I'd disagree with FM everything else being equal. But it's not and you're comparing two different processor lines. To use a more extreme example a Pentium D (Pentium 4 Dual Core) will often be lower performing then a Pentium Dual Core (from Core 2 Duo line) even if the Pentium D has a far higher clock speed and FSB. If VT-x matters to you then this may be worth any performance loss. But if you don't care about VT-x and performance is what you care about I stand by my answer.
Unfortunately getting good benchmarks for this sort of thing is likely to be difficult since they're rather different processors I'm quite sure coming out at different times and targeting different markets so there's a far chance no one trustworthy has done reliable benchmarking comparing the two. Ideally since you have both you could carry out your own benchmarks. But if that's not possible, you can take a lot at what's out there.
For example [4] [5] you can see both processors. They're actually both visible in in each page but I couldn't work out how to highlight them both so I included both in case you have trouble finding either one. However that only gives one benchmark nor are any system or other details on how the benchmark was carried out provided.
[6] and [7] are better. Problem there is you can't compare some of the benchmarks. [8] which compares the 2 doesn't seem to show the benchmarks, no idea why. However while I can't work out a way to link to this directly, if you go [9] and choose 'select individual CPUs' you can then add 'Intel' 'Pentium Dual-Core Mobile' 'T2390' 'LF80537GE0361' (only one) then 'add to selected' then choose 'Intel' 'Core Duo' 'T2400' 'LF80539GF0342M' (only one) then again 'add to selected' you can then 'show available benchmarks' to compare the two. From my look there, it was mostly as I expected, the T2390 generally won, usually by a tiny bit sometimes by more but the T2400 did win on occasion primarily tests of memory bandwidth. Bear in mind benchmarks are not always that useful in telling you how the processor performs unless your purpose with the CPU is to run those benchmark. Also the systems details are provided and it's clear both systems are different. It's also unclear as in so many benchmarks how many repetitions were done and the system details don't tell you anything about versions particular driver versions (likely to be significant in games or otherwise where the GPU is used).
In other words not a definite answer by any means but all this does agree with my belief before I looked at any benchmarks. And I should clarify these were the first 2 benchmarks I came across, I didn't discard any. Note that in any case the average performance difference if you use a multitude of applications is unlikely to be more then 10-20%
BTW are you sure the sockets are the same? Intel socket types always give me a headache but I've had a nagging feeling these may not be the same and some of the stuff I saw in my results hasn't helped.
Nil Einne (talk) 22:14, 19 March 2011 (UTC)[reply]

Nil Einne - perhaps you can explain what the improvements would be for the first system, as Finlay disagrees based on numbers alone. Magog the Ogre 2 (talk) 21:41, 19 March 2011 (UTC)[reply]

Also, this site's benchmark says the 2390 (i.e., the first one) performs better. Magog the Ogre 2 (talk) 21:45, 19 March 2011 (UTC)[reply]

Um, none of this really matters, because your processors won't go into that socket, as far as I can see. According to my Googling results, the mPGA478MT is a socket M, whereas the PGA478 is a socket P -- similar, but not identical. Looie496 (talk) 21:52, 19 March 2011 (UTC)[reply]
If you want to know the difference between the Core 2 Duo and Core Duo lines, have a look at any decent review of the Core 2 Duo when it was introduced. I'm not sure that FM actually disagreed with my point since it seems likely he never saw it due to the EC and it's not apparent he was aware that the first one was Merom/Core 2 Duo whereas the second is Yonah/Core Duo Nil Einne (talk) 22:16, 19 March 2011 (UTC)[reply]

Right you are. Thanks Looie496. Magog the Ogre 2 (talk) 21:55, 19 March 2011 (UTC)[reply]


March 20

reliability of UDP

Yeah, I know, it's the unreliable datagram protocol. My question is, suppose I send a UDP packet (100 payload bytes, say) to some arbitrary node on the internet that is online and listening for it. What is the practical likelihood of it actually getting there? The application is a "push" subscription service with occasional notifications. I don't want the overhead of a full TCP setup, don't want the subscribers polling all the time, and the messages are too infrequent to keep a TCP connection open, and it is deemed ok if a small percentage of messages never get delivered. Thanks. 75.57.242.120 (talk) 03:23, 20 March 2011 (UTC)[reply]

The "probability" of successful packet reception depends on a lot of factors - which routers you need to use to connect from source to destination node; amount of traffic those routers are currently experiencing; what queuing or QoS mechanism they use; and so on. There's no substitute for benchmarking by monitoring a realistic, statistically-significant trial period. The percentage of dropped packets can practically range from 0 to 100 %. Nimur (talk) 06:16, 20 March 2011 (UTC)[reply]
Hmm, thanks. Well, should the probability be fairly independent in the short run, from one packet to another? And should it be the same for UDP packets as for the raw IP packets that make up a TCP session? I think the Linux kernel may keep stats on TCP retry rates, so maybe checking those numbers is basically my answer. 75.57.242.120 (talk) 06:35, 20 March 2011 (UTC)[reply]
Unless you have really peculiar requirements, I would suggest TCP. The rumored overhead of TCP is much exaggerated: there is an initial handshake which is three small packets, and each packet header is 12 bytes larger than an UDP packet header - neither of which is likely to be a problem. TCP as such does not need to be kept open; a connection can be idle forever with no packets passing in either direction. Though some firewalls may time out TCP connections, so you may want to send a heartbeat packet every minute or so. As a bonus, a heartbeat lets you detect a defunct client - which you won't get with UDP; you'll never know if a UDP client has gone away. 88.112.59.31 (talk) 10:15, 20 March 2011 (UTC)[reply]
Thanks. I thought TCP connections always time out after some number of minutes. A 1 minute heartbeat would increase traffic by orders of magnitude, if messages are only going out a few times a day (the message rate will vary by large factors). Also, TCP packets result in ack packets, so that doubles the number of packets by itself. I guess that's a reasonable point about detecting a disconnected client. I could have the clients poll ~1x a day to pick up any messages they might have missed, and stop sending to clients not heard from in a long enough while. Also I'm not sure how many TCP connections a standard Linux box can keep active at once. It would be great (probably not possible even with UDP) if I could serve ~1M clients from one box. 75.57.242.120 (talk) 10:40, 20 March 2011 (UTC)[reply]
Personally, I would expect that, all other things being equal, all your UDP packets would get through. They will only be dropped under conditions of significant overload on the routers, which is by no means a common situation. I think you are likely to lose them as often as you lose a PING attempt. That said, it might be worth putting a little reliabilty into your own protocol: "This is the current message. The last one was this number. Please ask for it if you didn't recieve it".--Phil Holmes (talk) 11:10, 20 March 2011 (UTC)[reply]
...at which point you are on your way implementing your own, most likely poorly designed, copy of TCP. Retransmit timers, "did you get that message?", "did you get my message asking did you get that?", timer-controlled queue of messages in case a client asks for retransmission, etc. That is the complex slippery slope I imagine many attempts at using UDP descend. I simply use TCP, it gives me all that for free. 88.112.59.31 (talk) 18:09, 20 March 2011 (UTC)[reply]

Good points by everyone and I hadn't thought of the PING comparison. Yes the messages will have sequence numbers, so the clients could notice if there is a gap, but I wouldn't have any UDP retransmission of any sort. The application (not Wikipedia-related) is something like a Wikipedia watchlist, where you can view the status of articles that interest you by hitting a web page. The UDP service is so you can also have realtime alerts of when a watched article changes, without having to reload your watchlist page all the time. You can always get the same info by viewing the watchlist by HTTP, and that's what you'd do if you know you missed an alert. The 1-day-timeout thing means all subscriptions expire after 24h unless renewed, so to keep getting notices you'd have to refresh the subscription (by hitting a URL) once a day. 75.57.242.120 (talk) 00:02, 21 March 2011 (UTC)[reply]

Has .gov.ly been hacked?

I've been trying to find information about the current situation in Libya directly from the horse's mouth, so I searched for http://www.google.com/search?q=site%3A.gov.ly&lr=lang_en. However, that doesn't give the desired result. The first link says "HACKED By SecurityPort.org [...] Turk tarihinde bir askeri ve siyasi basari olmaktan [...] www.mof.gov.ly/". The other websites are either 404 or "under construction". Have they all been hacked? Surely, .gov.ly must have an interest in making their side of the story known to the world? Justcurious2011 (talk) 06:51, 20 March 2011 (UTC)[reply]

All that has happened is that one single website (http://www.mof.gov.ly - the Libyan Ministry of Finance), which uses an RSS feed aggregator, has read a feed from an untrusted source. As a result of what appears to be a malicious attack, somebody has injected an internet news item whose "title" is:
<td class="news_title"><meta http-equiv="refresh" content="0;URL=http://securityport.org/islam/"></td>
And, because the MOF website does not appear to properly clean the input to its RSS aggregator, it simply includes that HTML in the page, which causes an HTTP redirect to the offender's website.
How did this happen? 1) the MOF website uses an RSS aggregator script that doesn't check and clean its input; 2) somebody (who has access to a website that the RSS aggregator sources from) noticed this vulnerability, probably by recognizing the specific RSS system, whose exploit may be published; 3) the attacker created a new news-item on their own website, whose title was the code injection.
See our article - code injection - preventing code injection with data sanitization - and secure input and output handling, for best practices that should be followed to eliminate this sort of vulnerability. Nimur (talk) 20:19, 20 March 2011 (UTC)[reply]


Incidentally, you can override the URL redirect, if you want to see the original page. In Firefox, check the box for "warn me when web sites try to redirect or reload the page". Then, visit the website at www.mof.gov.ly - which is fully intact. And if you do not read Arabic, Google's machine-translator still works (it sanitizes and therefore ignores the code-injection)! Nimur (talk) 20:34, 20 March 2011 (UTC)[reply]
Thank you, that seems to make sense for the first page. Unfortunately, I couldn't try it out since that page takes too long to respond now. Which leads me to the second question: I still don't understand why there are so few pages under .gov.ly that seem to work. Is that negligence by the domain owner, or a targeted effort by others? Justcurious2011 (talk) 20:48, 20 March 2011 (UTC)[reply]
Keep in mind the difference between the domain name system and the individual websites that are underneath the domain. Generally speaking, each web site is operated independently - it has its own DNS name, its own server hardware, and probably has its own staff responsible for system maintenance and web content.
Now, I am not sure which Libyan government website would be the authoritative news website. Our article, Media of Libya, lists several state-owned newspapers, including, for example, The Republic. Their website is updated daily, and does not appear to have been compromised in any way. So you can read the Government story at that website. (Today's top headline - The people of Libya call for the killing to end. If you do not read Arabic, you may be out of luck - but of course, that newspaper is not targeting your demographic). It does not appear that any foreign agent, state-sponsored cyber-warfare, or "internet vandal" has yet managed to pull the plug on those Libyan Government newspapers.
You asked why so few Libyan government websites seem to be working. Having lived through a few rough spots in my day, I can tell you that trying to get professional workers to show up at the office and "fix computers", "write articles," and so on, while the city streets outside are unsafe, is not an easy job. If I were a Libyan government minister, and I wanted to make sure my side of the story was coming across, I would worry more about making sure my staff felt safe in their work environment, and keeping basic infrastructure (such as the plumbing, electricity, telephone, and roadways) operational. When the airstrikes get a little closer to Tripoli, those problems will be a lot harder to address. This "cyber war" nonsense is really laughable; some script kiddie in Turkey can shut down a website, but who cares? Bombs are literally falling. There are bigger problems for the Libyan government agencies than playing around with their websites. Nimur (talk) 21:54, 20 March 2011 (UTC)[reply]
Good points by Nimur. I heard that during the Egyptian street protests last month, the Egyptian middle and professional classes were quite interested in what was going on, and they followed developments mostly by sitting around at home reading the internet. They might have felt sympathetic but they basically did nothing, leaving actual protesting to the plebes. Then the Egyptian govt shut down the internet in Egypt, hoping that stopping online communications between the protesters would make the protests go away. What happened instead was that the "armchair" observers now had no way of finding out what was going on other than getting out on the streets themselves, which they did. So the internet shutoff made the protest got bigger and more respectable, rather than smaller and more marginalized. 75.57.242.120 (talk) 23:47, 20 March 2011 (UTC)[reply]
Thank you both, and especially thanks for the link to Media of Libya! BTW, as of now, no English state owned website listed in that article seems to be working. jamahiriyanews.com contains only sponsored listings (one of which claims it's from Al-Jazeera, although that seems fishy), and azzahfalakhder.com is "forbidden". But the Tripoli Post is alive and well and outspoken, with headlines such as "Despite Declaration, Pro-Al Qathafi Forces Reported Pushing into Benghazi". Justcurious2011 (talk) 07:15, 21 March 2011 (UTC)[reply]

Tracking Flickr images

Is it possible to deduce the "profile page" of an image on flickr from the file's URL? Trying to find licencing details etc. for http://farm3.static.flickr.com/2068/1791811909_acc666f314.jpg, and TinEye can't find it. Thanks! 83.70.250.202 (talk) 17:33, 20 March 2011 (UTC)[reply]

Yes, use the api. Go to http://www.flickr.com/services/api/explore/ , from the url you've given - the photoid is 1791811909 and the secret is acc666f314. The XML output generated gives all sorts of information about the image and the uploader. Nanonic (talk) 17:57, 20 March 2011 (UTC)[reply]

Evolutionary algorithm for music

Some years ago I heard on the radio about a computer program that would play a simple tune or rhythmn. If you told it that you like that tune, it would offer variations of it to you. Thus the tune evolved into something you liked.

The interesting thing was that just telling it you liked something - yes or no - was sufficient, even though there must have been many variables involved to specify the music.

I would like to play with or program something like this myself. Does anyone have any more details about it, of how it worked etc? Thanks 92.28.241.202 (talk) 17:54, 20 March 2011 (UTC)[reply]

Evolutionary music seems to be relevant. 92.28.241.202 (talk) 18:06, 20 March 2011 (UTC)[reply]

Maybe this? It's the first answer over at Wikipedia:Reference desk/Miscellaneous#Internet_song_generators and seems to be exactly what you're looking for 82.43.92.41 (talk) 18:35, 20 March 2011 (UTC)[reply]

I worked on a paper from the early stages of evolutionary music. As with much artwork, what humans find pleasing is Zipf distributed frequency of items and events. You can read the whole paper here. Notice that this paper is about writing a program that decides if music is pleasing or not. The next step (which I had no part in) was writing music that would be pleasing. -- kainaw 21:33, 20 March 2011 (UTC)[reply]
Awesome paper, Kainaw. I wonder if you could tune the aesthetic evaluation algorithm with a supervised machine-learning algorithm, and then run the music-synthesis step to numerically optimize for "most pleasant" music. Nimur (talk) 22:08, 20 March 2011 (UTC)[reply]
That was done later. That is an old paper - from undergrad school. I also tried it with artwork. The problem is that measuring how pleasing certain metrics are is the easy part. Defining the metrics is hard. If you miss an important metric, you'll never get anything that sounds (or looks) pleasing. -- kainaw 22:29, 20 March 2011 (UTC)[reply]

I think 82.43.92.41 meant WP:RDM, the miscellaneous-topic reference desk. David Cope has done some nice work in automated composition that might be thought of as a fancier version of what you're asking for. He can configure his software to generate music in the style of classical composers like Bach, Brahms, etc. He had it generate 5000 fake Bach cantatas that you can download, and I've listened to a few of them. They are pretty convincing imitations if you listen to 15 or 30 seconds at a time: they use the rhythms, harmonies, etc. that a Bach listener would expect. The problem is that they are like a computer-generated novel with good sentences but no plot. They don't really go anywhere, and after a minute or two they stop being interesting. 75.57.242.120 (talk) 21:50, 20 March 2011 (UTC)[reply]

I fixed the link 82.43.92.41 (talk) 22:16, 20 March 2011 (UTC)[reply]

Computer self restores

I'm running an older computer (Pentium D) with Windows 7 and it's not on a UPS. Earlier today I had a Wikipedia page open for editing along with a text editor and AWB both running and none of them had been saved. I got called away and after 15 minutes the computer went to sleep. I was going to go back to it when the power went out. I decided not to restart for a couple of hours and when I did I was again called away just as I pressed the power button. This time when I got back I found that the computer was in exactly the same state as before the power outage. Firefox was still open as was the text editor and AWB all with the stuff I had been working on. Why would it being in sleep mode cause that to happen? I wouldn't have thought that the CMOS battery (see below for a question about that) would have been able to have kept the information for a couple of hours. Of course I have now taken the panels off the computer to see if there is anything else that would supply power like that and there appears to be nothing. CambridgeBayWeather (talk) 23:02, 20 March 2011 (UTC)[reply]

The CMOS battery is a tiny, weak, watch battery. It barely keeps alive a little quartz clock and a few tens of bytes of BIOS settings. It doesn't (and doesn't try) to keep the main system DRAM alive. What happened is that your computer first went into sleep mode, which means it was really still "on", but with some peripheral parts of the system powered down (but with the DRAM fully powered). At some later point it switched to hibernate, which means it wrote the state of the DRAM to a file on the disk and then fully powered the machine off. Some point after that your power died. Later you returned, fixed the power outage, and pushed the "power" button. The system booted, noticed that it had shutdown as hibernate, and so restored the hibernate file into DRAM. -- Finlay McWalterTalk 23:28, 20 March 2011 (UTC)[reply]
A slight correction: for a machine as new as yours, the BIOS status is probably written to Flash memory rather than NVRAM, so the battery only has to keep the clock ticking. -- Finlay McWalterTalk 23:30, 20 March 2011 (UTC)[reply]
Firefox saves its entire state (as best it can) when it shuts down irregularly, and automatically tries to restore that state when it restarts. Looie496 (talk) 23:41, 20 March 2011 (UTC)[reply]
It's worth bearing in mind that the "power button" isn't really what it used to be. In times of yore it was a real power button: pushing it toggled whether electricity flowed to the transformer, and pushing it when the machine was on was much the same as just yanking the power cord out of the wall. But now it's just a (albeit special) button; it sends a signal that's received by the OS, which decides how to handle it. Typically the OS will push the PC to a different ACPI state, depending on how it's configured. So it means "please shut down nicely, or something", rather than being a hard kill. Incidentally the OS isn't the only recipient of this message; the ACPI microcontroller (which is in the southbridge) is also listening; that's what turns a PC "on", and generally if you hold the power button in for 5 seconds the ACPI controller figures that the OS must be misbehaving and does a hard poweroff for you. You shouldn't do that unless things have really broken, as that's to a full, unannounced, poweroff with no work saved. -- Finlay McWalterTalk 23:46, 20 March 2011 (UTC)[reply]
Looie496's explanation is the correct one, I'm pretty sure: Firefox cached what you were doing on disk while you were working, and restored the stuff from cache when you restarted the browser after the power outage. 75.57.242.120 (talk) 23:50, 20 March 2011 (UTC)[reply]

Windows 7 has a feature called Hybrid Sleep, which means when it goes to sleep it also hibernates (saves session to disk) in case of a power cut. The situation you describe is exactly what Hybrid Sleep was intended for. 82.43.92.41 (talk) 00:37, 21 March 2011 (UTC)[reply]

Thanks all for the excellent answers. CambridgeBayWeather (talk) 02:12, 21 March 2011 (UTC)[reply]

CMOS battery time of day

When I was looking for an answer to the above I looked at Nonvolatile BIOS memory#CMOS battery which says that, "These cells last two to ten years, depending on the type of motherboard, ambient temperature and the time that the system is powered off". So why does the time of day have anything to do with battery life? CambridgeBayWeather (talk) 23:02, 20 March 2011 (UTC)[reply]

Maybe it means "the amount of time the system is powered off". Meaning the total amount of time over the lifetime of the battery that the system is powered off, as opposed to the time of day (each day) that the system is powered off. Maybe it is just not written clearly. Bus stop (talk) 23:17, 20 March 2011 (UTC)[reply]
Yes. The assumption is that when the PC is switched on, the clock is powered from the PSU rather than the battery, so the drain on the battery is proportional to the proportion of the day that the PC is off. Building a circuit that's powered by two unrelated and dissimilar power sources is slightly tricky, so in practice the battery is probably still partially loaded even when the PC is powered. -- Finlay McWalterTalk 23:35, 20 March 2011 (UTC)[reply]
Thanks folks. I'm going to clarify that sentence. CambridgeBayWeather (talk) 02:13, 21 March 2011 (UTC)[reply]

Microsoft Excel 2007 linking automatic updating

I have several finance worksheets (sheet2, sheet3, etc.) in the same workbook (e.g., banking sheet2, saving sheet3, credit card sheet4, etc.). In the first worksheet, sheet1, I am trying to create a balance sheet that links to the other worksheets. In sheet1 cell B5, I have the linking string ='Sheet3'!A4. When I move Sheet3, cell A4 around within the same worksheet, I would like the contents of sheet1 B5 to automatically change to follow the move. ='Sheet3'!A4 doesn't change when I move Sheet3, cell A4 around within the same worksheet (Sheet3). Is there a linking code that I could use in sheet1 cell B5 that will automatically change when I move Sheet3, cell A4 around within the same worksheet? Thanks. -- Uzma Gamal (talk) 23:19, 20 March 2011 (UTC)[reply]

Hum, I think adding dollar signs -- ='Sheet3'!$A$4 -- might do the trick. -- Uzma Gamal (talk) 23:35, 20 March 2011 (UTC)[reply]
Actually, I meant "move" Sheet3, cell A4 by sorting Sheet3 by dates. Sometimes, the cells in Sheet3 do not return to where they were as new information is added and Sheet3 is sorted. Using ='Sheet3'!$A$4 for sheet1 cell B5 and inserting a line above Sheet3, cell A4 moved Sheet3, cell A4 to Sheet3, cell A5 and automatically revised ='Sheet3'!$A$4 to read ='Sheet3'!$A$5. When I sorted Sheet3 that resulted in Sheet3, cell A4 being located in Sheet3, cell A23, ='Sheet3'!$A$4 did not change. Is there a linking code that I could use in sheet1 cell B5 that will automatically change when I sort Sheet3, cell A4 within the same worksheet? -- Uzma Gamal (talk) 23:44, 20 March 2011 (UTC)[reply]
You could try using the INDEX and MATCH functions. You need some kind of indentifier in each row. Let's insert a column at the beginning of sheet3, so the identifiers are in column A and the data you want is now in column B. Let's say the identifier for the row you want is "foo". Then in Sheet1!B5 you put a formula like "=INDEX(Sheet3!B2:B100, MATCH("foo", Sheet3!A2:A100,0))". Look the functions up in the Excel help files for more details of how to use them. --Tango (talk) 23:52, 20 March 2011 (UTC)[reply]
Wow! Thanks. That helped out. -- Uzma Gamal (talk) 02:58, 21 March 2011 (UTC)[reply]

March 21

Safe file update (against power failure)

Is it true that in NTFS partitions, updating a file using the following method …

  1. write new data to a temporary file, then
  2. close the file to flush the data, then
  3. move the temporary file to the original file, replacing it.

… is safer than the following method (the traditional method), …

  1. truncate the file, then
  2. write new data to the file, then
  3. close the file to flush the data.

… power-failure-wise. I use the second method in my program, but a few days ago a power failure struck in the middle of an update, and upon powering up the computer, I got a file that contained only a fourth of the data, necessitating recovering the file. Of course I know that if I wanted greater safety, I should use continuous automatic backup, store the data in a database, install a UPS, etc., but that seemed overkill for my little program (it is not life-critical and the data is not very valuable either). 118.96.160.247 (talk) 01:00, 21 March 2011 (UTC)[reply]

I'm not a filesystem expert, but I believe that the the first method is indeed safer. It ensures that one version of the file is always on disk, and, since NTFS, like all modern filesystems, is a journaling filesystem, the file move operation will effectively be atomic, so the filename will always point to either the old or the new version. I think this method would be safer even in a non-journaling filesystem, because it means that you'd no longer be risking data loss in the event of power loss during the "write new data" step, which is probably the longest one. Paul (Stansifer) 15:58, 21 March 2011 (UTC)[reply]

What is this site up to?

For some reason I keep running into the site of some company in the UAE when looking for Google Image results showing maps of the Mexican drug cartels. The site [10] leads me to (http:) //mwjwbrfy.co.cc/fast-scan/ (a site on Wikipedia's blacklist) which has source code mentioning all kinds of "antivirus" terms and file names. How is it supposed to check these, and what does it do with them? Wnt (talk) 02:43, 21 March 2011 (UTC) [note: I was running NoScript and didn't allow the second link ... I don't know if it would be a good idea][reply]

It's a bunch of obfuscated javascript that runs when you load the page, a standard malware technique. Looking at the code, it seems to pretend to be a virus scanner checking for and finding various viruses. It advises you to click a link to disinfect your system, and clicking the link (or any of the links on the page) downloads a .exe that is presumably evil. Blacklisting is obviously appropriate. 75.57.242.120 (talk) 03:47, 21 March 2011 (UTC)[reply]
Ah, so it doesn't have any way to look at these file names - just pretends to. Thanks! Wnt (talk) 03:55, 21 March 2011 (UTC)[reply]
As for Google image search leading to other pages, I asked a similar question last year. It was apparently the result of 'cloaking' and caused quite a stir at Google last year (see: this discussion and this one too). However, Google have take some action and my original search is now listing 'proper' sites. Astronaut (talk) 06:02, 21 March 2011 (UTC)[reply]

How do I view performance of individual cores ?

I have a quad-core CPU, running Windows XP, and I would like to view the activity on each core. When I go to the Task Manager and choose the Performance tab, I only get one graph for CPU usage. So, how do I break it down to see all 4 cores, individually ? Also, is the graph shown the total activity on all 4 cores ? StuRat (talk) 08:17, 21 March 2011 (UTC)[reply]

Open the Task Manager, switch to Performance tab, then select View → CPU History → One Graph Per CPU. 118.96.160.247 (talk) 08:27, 21 March 2011 (UTC)[reply]
Nothing seems to occur when I do that. Incidentally, that's the only choice under View → CPU History →, so presumably it was always selected. What was supposed to happen ? StuRat (talk) 08:35, 21 March 2011 (UTC)[reply]
Then Windows is only detecting a single non-hyperthreaded processor with a single core. Can you post the contents of your computer's BOOT.INI file? 118.96.160.247 (talk) 08:43, 21 March 2011 (UTC)[reply]
I can't seem to find it, even when I include hidden files in the search. Where is it normally located ? StuRat (talk) 09:11, 21 March 2011 (UTC)[reply]
Follow these instructions to open boot.ini in Notepad, then copy-and-paste into the Wikipedia edit box. (I think it's in the root directory, but you'll probably have an easier time with those instructions.) -- BenRG (talk) 09:40, 21 March 2011 (UTC)[reply]
OK, thanks, here it is:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptOut

Perhaps there's a more fundamental problem, that it's really only using one of the four cores ? It's supposedly a 2.8 MHz GHz machine, but seems downright slow. If I'm only getting 700 MHz out of a single core, that might explain it. StuRat (talk) 10:26, 21 March 2011 (UTC)[reply]

Windows is indeed only detecting a single "processing unit" in your computer. By "processing unit", I mean a single core if you have hyperthreading disabled or half-a-core if you have it enabled. 118.96.160.247 (talk) 10:37, 21 March 2011 (UTC)[reply]
How can I tell if it's enabled or disabled ? StuRat (talk) 10:56, 21 March 2011 (UTC)[reply]
In other news, there seems to be no problem with your BOOT.INI file. Actually, I am looking for /NUMPROC and other strange options that might cause Windows not to detect all the processors, but there is none of them. 118.96.160.247 (talk) 10:38, 21 March 2011 (UTC)[reply]
Is it running with Service Pack 3 and all the Windows updates? I'm still researching, but as far as I know Windows XP didn't originally have multicore support and it was added in later, but I could be wrong there. Just trying to verify when it was added if it wasn't in there from the start. Although that leads onto another question, although Windows XP has always had multi-processor support, was this computer installed with this processor or did you install it with a different (single core) processor and then swap in this one? I ask because if that was the case then you'll have a HAL for a single processor only and that's why you're not getting multicore support. I've heard of people swapping files around to hack it to work, but the Microsoft official solution used to be that a full reinstall was needed to change the HAL to multicore. I don't know if that's still the case (I don't really work with XP much anymore so I accept I could be wrong!), but that may still be the issue. Sorry no real solution, but hoping that's at least thrown out some ideas!  ZX81  talk 12:21, 21 March 2011 (UTC)[reply]
This is a "refurbished" computer, meaning it's had the hardware and software updated, and was then resold. It's possible they updated the hardware to multi-core after they installed the O/S. How can I tell if I have a "HAL" for a single core ? Also, I do have Service Pack 3, and I believe I have all Windows updates except one I didn't want, which disabled booting from a USB device. StuRat (talk) 17:45, 21 March 2011 (UTC)[reply]
Apparently (I had to look it up, but I've found an old XP machine and it seems to work) if you load up registry editor (Start -> Run -> regedit) and navigate to: HKEY_Local_Machine\System\CurrentControlSet\Enum\Root\ACPI_HAL\0000 you'll see a HardwareID value there and you need to check what it is. Although there are three things it could be, you're only likely to have either acpiapic_mp (multiprocessor) or acpiapic_up (uniprocessor) which should answer that for you.  ZX81  talk 18:33, 21 March 2011 (UTC)[reply]
My registry doesn't quite match what you describe. I have two branches:
HKEY_Local_Machine\System\CurrentControlSet001\Enum\Root\ACPI_HAL\0000

HKEY_Local_Machine\System\CurrentControlSet003\Enum\Root\ACPI_HAL\0000
But neither of those contains a "HardwareID". StuRat (talk) 18:48, 21 March 2011 (UTC)[reply]
That "2.8 GHz" should be the clock speed of each core. It'd be pretty lame to add up the clock speeds of each core, because, for most tasks, you can only use one core in the first place. Paul (Stansifer) 15:15, 21 March 2011 (UTC)[reply]
Although if it really is 'a 2.8 MHz machine' I wouldn't be surprised your computer is slow. Actually I'm surprised Windows even starts. Even 95 wasn't designed for something that slow :-P Nil Einne (talk) 16:47, 21 March 2011 (UTC)[reply]
Yes, but making a computer sound 4X as fast as it really is would definitely be something that salesmen would do, if they couldn't be sued or arrested for it. StuRat (talk) 17:50, 21 March 2011 (UTC)[reply]
Go to "My Computer", "Device Manager", find the entry for the CPU and tell us what model it is. I don't know the exact sequence of icons to click but maybe some Windows user can supply that if needed. 75.57.242.120 (talk) 21:04, 21 March 2011 (UTC)[reply]
This ?
ACPI\GENUINEINTEL_-_x86_family_15_MODEL_2\_0
StuRat (talk) 01:45, 22 March 2011 (UTC)[reply]
That'll be why you're not getting more than one CPU then I'm afraid, that's simply not a multicore processor: http://en.wikipedia.org/wiki/Celeron#Northwood-128  ZX81  talk 02:32, 22 March 2011 (UTC)[reply]
How can you tell it's that model from the string I provided ? StuRat (talk) 03:10, 22 March 2011 (UTC)[reply]
It said Family 15, model 2 in your text string which matches up with the one in the article I linked. Also our same article says that this processor was made in speeds all the up to 2.8GHz which matches what you said at the top of this thread.  ZX81  talk 03:18, 22 March 2011 (UTC)[reply]
It it's 2.8 GHz on a single core, then I wonder why it's so slow ? That link says "Northwood-based Celerons suffer considerably from their small L2 cache", could that be the problem ? One place where it's really noticeable is when I go to open or close a file, and choose a different "Save in" directory at the top. It takes about 4 seconds to bring up the list, which seems painfully slow. Browser web-page loading/refreshes are also slow. My Fortran programs run quite fast in the MS-DOS command prompt window, on the other hand. StuRat (talk) 15:27, 22 March 2011 (UTC)[reply]
The Celerons are basically cut down versions of their bigger brothers (less performance, but cheaper), however they're not THAT slow. How much RAM have you got? From what you're describing it sounds very much like you're low on memory and you need to add more. When it's going slow and you're waiting for things to happen, is the hard drive light mainly turned on/hardly going out? If so (and the RAM figure is < 1Gb) then that'll likely be what the problem is and it's Paging to the disk as it's run out of real memory and that's considerably slower. How much memory XP "needs" seems to vary per person, but whilst a basic system will run quite happily on 512Mb (and even 256Mb!), by the time you've added some antivirus software/antispyware/firewall you're probably looking at needing 1Gb minimum to actually have some memory left to run other programs. Personally I say 1.5Gb just to be extra safe and allow some flexibility for running bigger things, but I fully expect other people to disagree with me and say that's over cautious.  ZX81  talk 19:17, 22 March 2011 (UTC)[reply]
Yea, that might be the problem. It lists the memory as 504 MB, which I assume is 512 less 8 for the built-in graphics board. StuRat (talk) 19:26, 22 March 2011 (UTC)[reply]
Filesystem operations (the "Save in" taks) are almost entirely unaffected by processor speed and cache. Hard drive speed (and, under some circumstances, memory size) is the bottleneck. Memory size is the most important thing for user experience speed under most circumstances. Paul (Stansifer) 20:48, 22 March 2011 (UTC)[reply]

Windows hosts file

I have a installation test procedure which asks me to edit the Windows hosts file, C:\WINDOWS\System32\drivers\etc\hosts, to add an alias for the local machine, i.e. to add a line like

127.0.0.1 the_alias

It then suggests testing this by typing

ping the_alias

at a command prompt. But it doesn't work.

It's as if the system is using some other hosts file, somewhere else. I can successfully invoke

ping localhost

where localhost is the other alias already in the hosts file. Moreover, pinging localhost continues to work even if I rename C:\WINDOWS\System32\drivers\etc\hosts so it can't be found (i.e., further suggesting that there's another hosts file somewhere else that's actually being used).

This is on what I thought was a reasonably clean installation of Windows XP.

I've tried rebooting. I've tried ipconfig /flushdns. Neither of these helped. I've checked SystemRoot, and it's indeed set to C:\WINDOWS\. I've used Windows Explorer to search all of C: for other files named hosts, and it didn't find any.

Anybody have any other ideas? —Steve Summit (talk) 23:17, 21 March 2011 (UTC)[reply]

Hmm, you're doing everything right, at least for a normal system. You don't need to run any commands, or reboot or restart the network, after changing the file: just like its unix equivalent, changes are actioned immediately (for new lookups). Some ideas:
  • you've inadvertently introduced a corrupt character (perhaps an invisible one); try putting your alias at the very top of the hosts file.
  • you're happening to use a name that's conflicting with WINS; try a different name
  • something has changed the registry key \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath (which should read %SystemRoot%\System32\drivers\etc by default) to something else - this specifies where files like host are to be found
-- Finlay McWalterTalk 00:21, 22 March 2011 (UTC)[reply]
Thanks, Finlay. I'd already checked for funky characters (cat -v), and the alias in question is one that works perfectly on other machines. (Also I've tried things like "blort" and "piffle", which don't work, either, so I'm decently sure the problem is not any kind of name clash.) I don't know how you knew of that utterly obscure, utterly (potentially) specific to my problem, seven-level-deep registry key, and I was delighted to check it out, but... no, it's set correctly. So still no joy. —Steve Summit (talk) 11:34, 22 March 2011 (UTC)[reply]
I've had the host file behave in unexpected ways as well. I always assumed it was caching results, but I'm not sure. Here's a tangential discussion: [11] on the issue. Here's Microsoft's discussion of the host file, which might give you some insights [12]. Shadowjams (talk) 20:06, 22 March 2011 (UTC)[reply]

March 22

HP Pavilion Laptop DV1000 (An old but brill laptop that HP made but did not seem to produce for long!!!)

Hi All,

Is there anyone who might have some idea what driver might work to get the internal microphone running again on this laptop.

It orignally came pre-loaded with Windows XP and said it was "upgradable" to Win Vista, which was upgraded and ran the internal microphone fine.

Subsequently I have upgraded to Windows 7 Home Premuim (genuine version) and since then the internal mic won't work, very annoying.

Silly thing is everything else works fantastic with Win 7, even though the laptop is quite slow processor wise, it runs just fine........

Note: the built in speakers have always worked with every version of Windows from the outset, but not this internal mic (from Windows 7).....I cannot understand why this Win version won't somehow run that internal mic? What is even stranger is that an external mic, plugged in to the input socket works fine, (which only cost $20), but it is annoyinfg me why some how I cannot get the right driver to make that internal mic work!!

Needless to say HP don't produce a Win 7 driver for this machine........typical HP!!

Any help would be very welcome!!!

Thanks whoever!!!! —Preceding unsigned comment added by 116.212.193.250 (talk) 03:10, 22 March 2011 (UTC)[reply]

Try this. [13] ---— Gadget850 (Ed) talk 17:32, 22 March 2011 (UTC)[reply]

Windows XP

WHAT IS THE FULL FORM OF WINDOWS XP? —Preceding unsigned comment added by 180.215.123.1 (talk) 08:47, 22 March 2011 (UTC)[reply]

I'm not quite sure what you mean, but if you want to know what the "XP" stands for it is "experience". (Writing in all CAPS is considered poor netiquette by the way, as it makes it harder to read) SmartSE (talk) 11:34, 22 March 2011 (UTC)[reply]
I don't think caps are harder to read, but they are "like shouting". StuRat (talk) 15:17, 22 March 2011 (UTC)[reply]
Our article, All caps, notes that indeed ALL CAPS IS HARDER TO READ. Comet Tuttle (talk) 16:34, 22 March 2011 (UTC)[reply]
Windows XP Professional includes a number of features that other versions of Windows XP (like Windows XP Home, and Windows XP Starter) do not have. The "Windows XP Media Center Edition" is the same as Windows XP Professional with Windows Media Center included. I hope this answers your question — if it does not, could you ask with a little more detail about the exact information you are seeking? Comet Tuttle (talk) 16:34, 22 March 2011 (UTC)[reply]
Why do we have to have a discussion about netiquette and the causes and effects of ALL CAPS TYPING... can't we just assume its a n00b who doesn't know any better and let it slip? — Preceding unsigned comment added by Roberto75780 (talkcontribs) 05:50, 23 March 2011 (UTC)[reply]

Excel questions

1) How to change a number written in words (e.g. seven hundred and seventy seven) to a numerical (e.g. 777) and vice versa in Microsoft excel 2007.

2) How to change a numerical date (e.g. 16-02-2011) to a date written in words (e.g. fifth of Feb two thousand eleven) and vice versa in Microsoft excel 2007.

3) how to create a PDF document offline. — Preceding unsigned comment added by Gopalmishra77 (talkcontribs) 09:04, 22 March 2011 (UTC)[reply]

To Q2, highlight the cells, right click and then choose "format cells" and you can change the format of dates. It doesn't seem to work for written numbers as far as I can tell. To Q3 - you should be able to use file > save as and choose .pdf as the format. That certainly works for me in recent versions of MS office. If you can't do that, search for the file format you wish to convert and pdf converter, so for example use ".doc .pdf converter". SmartSE (talk) 11:40, 22 March 2011 (UTC)[reply]
For Q1, Google gives lots of links to macros to convert numbers to words. I haven't seen it done the other way round - that sounds a bit trickier. For Q2, SmartSE is right about formats; the built-in ones don't give results like "Fifth of February", but you might be able to use methods similar to Q1. AndrewWTaylor (talk) 07:22, 23 March 2011 (UTC)[reply]

How can I find out what programs are accessing the internet?

Is there anyway to see what programs are receiving data from the internet? I'd like to know as I'm often restricted to accessing the internet through mobile networks and something eats up megabytes of data in minutes. I've already disabled updates for windows, antivirus, open office, itunes etc. and am a bit stuck as to what else could be using it. Anyone got any ideas what it could be? Thanks in advance SmartSE (talk) 11:32, 22 March 2011 (UTC)[reply]

Is this what you are looking for? General Rommel (talk) 11:38, 22 March 2011 (UTC)[reply]
I should also add that you need to scroll down quite a bit till you dee the download link General Rommel (talk) 11:39, 22 March 2011 (UTC)[reply]
Yes, that's awesome, especially as it is only 63kb! Sorry for being lazy and not reading the readme file, but is there any way to see the volume of traffic passing through each port? SmartSE (talk) 11:45, 22 March 2011 (UTC)[reply]
Or try Microsoft's own TCPview. -- Finlay McWalterTalk 11:52, 22 March 2011 (UTC)[reply]
I tried that one, and it says "netbios-ns" is both sending and receiving data over the Internet. What's it doing ? StuRat (talk) 15:15, 22 March 2011 (UTC)[reply]
netbios-ns is the Netbios name service (it's a bit like DNS), probably on port 137. You probably want to firewall that off, at least for the internet proper. -- Finlay McWalterTalk 17:06, 22 March 2011 (UTC)[reply]
You can also use the netstat command that comes with Windows.[14] ---— Gadget850 (Ed) talk 17:29, 22 March 2011 (UTC)[reply]
As Gadget says, netstat is the easiest way to go. At the command prompt (Run > "cmd"), try netstat -b (if you're in vist/7 it'll require you to run this as an administrator). Alternatively you can use netstat -o which will tell you the PID (and you can use task manager to match the PID to the process name). Shadowjams (talk) 20:00, 22 March 2011 (UTC)[reply]

Exiting Firefox

Usually when I exit Firefox on my system here at work (Ubuntu 10.04/Firefox 3.6.15), it exits quite OK. If I have more than one tab I am asked if I want to exit all tabs. However, Firefox sometimes asks if I want to save my tabs for next time. I can tick the box to not be asked about saving, but I'm curious about the strategy it uses to decide whether to ask if I want to save, or to ask if I want to exit all tabs. Astronaut (talk) 12:03, 22 March 2011 (UTC)[reply]

Do the tick boxes at Tools > Options > Tabs answer your question?--Shantavira|feed me 12:42, 22 March 2011 (UTC)[reply]
No they don't. All I have (on Edit->Preferences->Tabs by the way) that is relevant is the option to "Warn me when closing multiple tabs". Nothing about when to ask about saving tabs. Astronaut (talk) 12:48, 22 March 2011 (UTC)[reply]
There does seem to be "something wonky" about how it exits. In my case, on Windows XP, it always asks if I want to save the tabs, but never does, no matter what I pick. On the same computer, Opera does save the tabs. Also, on an earlier Windows 98 machine, Firefox didn't seem to even ask if it should save them. It never did, if I closed Firefox normally. On the other hand, if the computer went down, then it apparently did try to save the tabs, and asked if I wanted to restore them, the next time I started. StuRat (talk) 14:55, 22 March 2011 (UTC)[reply]

Different in Firefox 4, isn't it? ¦ Reisio (talk) 02:19, 23 March 2011 (UTC)[reply]

I've no idea. I'm certainly not going to install any 'beta' or 'release candidate' version to find out and would like a longer track record than yesterday's official release. Astronaut (talk) 11:11, 23 March 2011 (UTC)[reply]

GNU Octave - parfor Equivalent

  Does Octave have an eqivalent to MATLAB's parfor function? Typing help parfor at the command prompt results in an error. Thanks. Rocketshiporion 13:54, 22 March 2011 (UTC)[reply]

Octave unfortunately has limited support for multi-core or multi-machine parallelism. Octave-Forge has a multicore package but I have not had luck with it. If you need parallel computing support, MATLAB has that capability. This single feature may be the best incentive, currently, to purchase a commercial MATLAB license, as the open-source community seems to be lagging behind MATLAB's technology in this area. Nimur (talk) 16:42, 22 March 2011 (UTC)[reply]

Conditional CSS

Is there a way to create a CSS rule so alphabets are italic and other characters are roman? It would be nice for doing mathematical expressions, such as:

y = 2x + 1

Is it possible? -- Toytoy (talk) 14:08, 22 March 2011 (UTC)[reply]

I don't believe CSS has any way of affecting content without markup. You'll have to process it to look like:
<span class="char">y</span> = 2<span class="char">x</span> + 1
and then do
.char { font-style: italic; }
--Sean 14:37, 22 March 2011 (UTC)[reply]
You can put the whole thing in a math style like <span class='math'>y=2x+1<span>. Then, you can use CSS to do overall styling in the math class. For character-specific stuff, you have to use JavaScript. First, get all content by class. Then, parse the strings. It won't be very easy as you'll have to climb around the DOM tree to get actual content. Then, you have to put each character into an italic class. Overall, it is a lot of work, but then it will save you a lot of work typing <i> over and over. -- kainaw 14:43, 22 March 2011 (UTC)[reply]
Well, it's not that much work... --Mr.98 (talk) 14:59, 22 March 2011 (UTC)[reply]
(ec) With CSS alone, no. But with Javascript, yes. Imagine that every equation was in paragraph element with the classname of "equation". The Javascript would search through all paragraphs with that classname, determine all a-z characters, and put them in italic tags, automatically. Here's a very quick and dirty example:
Extended content
<html>
<head>
<script type="text/javascript">
//process_equations function needs to be set to run "onload" in the body element
function process_equations() {
	//create a variable 'p', that is an array of all paragraph (<p>) elements in the page
	var p = document.getElementsByTagName('p');
	//iterate over all elements in the array p
	for(i=0; i<p.length; i++) {
		//if the class of this particular item in the p array is "equation"
		if(p[i].className=="equation") {
			//set up two variables -- one the text we are going to process, one a text buffer we are going to output
			text_in = p[i].innerHTML;
			text_out = "";
			//iterate over every character in the input text
			for(x=0; x<text_in.length; x++) {
				//if the character (made uppercase for comparative purposes) is both >="A" and <="Z", then...
				if((text_in.charAt(x).toUpperCase() >= "A") && (text_in.charAt(x).toUpperCase() <= "Z")) {
					//the character is put into italics and put into the output buffer
					text_out = text_out + "<i>"+text_in.charAt(x)+"<\/i>";
				} else {
					//otherwise, just add the character to the output buffer without changing it
					text_out = text_out + text_in.charAt(x);
				}
			}
			//finally, replace the paragraph data with the output buffer
			p[i].innerHTML = text_out;
		}
	}
}
</script>
</head>
<body onload="process_equations()">
<p>Here is an equation:</p>
<p class="equation">
y = 2x + 1
</p>
</body>
</html>
The code above should be pretty straightforward to make sense of-- it iterates over all paragraphs, checks their classnames, then iterates over each character in the correct paragraphs, determines if it is a letter from A to Z (this is the ugliest part above), and if so, puts italic tags around it. --Mr.98 (talk) 14:58, 22 March 2011 (UTC)[reply]
That code assumes that there is no html inside the equation area, which I expect will not always be true. You don't want to turn something like <b> into <<i>b<\i>>. That is why I noted that you'd have to climb the dom tree, not simply parse the inner html. -- kainaw 16:36, 22 March 2011 (UTC)[reply]
True enough. It assumes very simple considerations — you'd have to modify it to meet your needs. But it would not be hard to make it ignore HTML tags within the inner HTML -- just a small addition of a flag that checks if we are in an HTML tag:
Extended content
<html>
<head>
<script type="text/javascript">

//process_equations function needs to be set to run "onload" in the body element
function process_equations() {
	//create a flag that tells us if we are "in" an HTML tag
	var inTag = false;	
	//create a variable 'p', that is an array of all paragraph (<p>) elements in the page
	var p = document.getElementsByTagName('p');
	//iterate over all elements in the array p
	for(i=0; i<p.length; i++) {
		inTag = false; //reset this, just in case some tags were malformed previously
		//if the class of this particular item in the p array is "equation"
		if(p[i].className=="equation") {
			//set up two variables -- one the text we are going to process, one a text buffer we are going to output
			text_in = p[i].innerHTML;
			text_out = "";
			//iterate over every character in the input text
			for(x=0; x<text_in.length; x++) {
				//first we check if this is the beginning or end of an HTML tag
				if(text_in.charAt(x) == "<") {
					//if at the beginning of a tag, mark "inTag" as true
					inTag = true;
					text_out = text_out + text_in.charAt(x);
				} else if(text_in.charAt(x) == ">") {
					//if at the end, mark as false
					inTag = false;
					text_out = text_out + text_in.charAt(x);
				} else {
					//if we are not in an HTML tag then check it...
					if(!inTag) {
						//if the character (made uppercase for comparative purposes) is both >="A" and <="Z", then...
						if((text_in.charAt(x).toUpperCase() >= "A") && (text_in.charAt(x).toUpperCase() <= "Z")) {
							//the character is put into italics and put into the output buffer
							text_out = text_out + "<i>"+text_in.charAt(x)+"<\/i>";
						} else {
							//otherwise, just add the character to the output buffer without changing it
							text_out = text_out + text_in.charAt(x);
						}
					//if we are in an HTML tag, then just spit it out
					} else {
						text_out = text_out + text_in.charAt(x);
					}
				}
			}
			//finally, replace the paragraph data with the output buffer
			p[i].innerHTML = text_out;
		}
	}
}

</script>
</head>
<body onload="process_equations()">
<p>Here is an equation:</p>
<p class="equation">
y = 2<b>x</b> + 1
</p>
</body>
</html>
Every text parsing takes assumptions about the form of the text into account. This is just meant to show that it wouldn't be very hard to set up a basic one, one that could be modified as one saw fit. --Mr.98 (talk) 21:26, 22 March 2011 (UTC)[reply]
CSS targets which content it affects with selectors. Selectors target a whole element (or a whole subtree of elements), not specific words or letters (the only exception that I can think of is the oddball :first-letter pseudo-element selector, which doesn't help you). There isn't a (sane, at least) way of selecting for the nth character of an element, or for selecting characters or words based on their content. In general CSS isn't really very expressive, and in many cases is no substitute for a server-side macro language or client-side javascript. -- Finlay McWalterTalk 15:02, 22 March 2011 (UTC)[reply]

http://reisio.com/temp/toy/ Unfortunately such an approach is purely stylistic, giving no special meaning, which is what HTML and markup in general is kind of about. ¦ Reisio (talk) 02:34, 23 March 2011 (UTC)[reply]

In case it is not clear from the markup, all Reisio has done here is made a font where all letters are italic by default. --Mr.98 (talk) 12:12, 23 March 2011 (UTC)[reply]
(which can be applied selectively via CSS ¦ Reisio (talk) 21:55, 23 March 2011 (UTC))[reply]

'Amazon Online Reader' does not work in my Firefox 3.6.15

Does anyone know why this might be? Using WinXP SP3. Thanks 92.15.6.157 (talk) 14:20, 22 March 2011 (UTC)[reply]

What happens when you try ? StuRat (talk) 14:47, 22 March 2011 (UTC)[reply]

I get a message on the page in yellow saying "Your web browser does not support this feature. Please visit our Frequently Asked Questions for a list of compatible web browsers that support the Amazon Online Reader." 92.15.23.133 (talk) 18:34, 22 March 2011 (UTC)[reply]

And is Firefox 3.6.15 in that list ? StuRat (talk) 18:53, 22 March 2011 (UTC)[reply]

After following the link given, I cannot see any list of web browsers, and the word Firefox is not on the page. 92.15.10.228 (talk) 21:19, 22 March 2011 (UTC)[reply]

Well, do they have a support staff (phone or IM or e-mail) ? You could ask them. If not, all I can suggest is trying different browsers until you find one that works. StuRat (talk) 16:05, 23 March 2011 (UTC)[reply]

MSI CR410 laptop

Economic Times has reported that MSI CR410 laptop with all std features Wi-fi,bluetooth,webcam etc is less than INR 18,000//. Has anyone used it and is it worth what it says? Available only on online order form. —Preceding unsigned comment added by 59.92.77.228 (talk) 14:21, 22 March 2011 (UTC)[reply]

To others reading this question, "INR 18,000//" is 18,000 Indian rupees. At current exchange rates of about 45 per USD, that's $400. I have no idea what the "//" part means, though. Perhaps that's a way of saying there are no "cents" ? StuRat (talk) 14:52, 22 March 2011 (UTC)[reply]

Video Joining Software

Hi, I am looking for a video joining software, in order to join two separate video files. But I need a special feature. The videos that I wish to join are from a continuous event. I guess it was split into 2 files in order to reduce the file size. But the ending part of first video (maybe 4-5 seconds) is also repeated in the starting of the second file.

So, the requirement is for a software which while joining the files, also lets the user adjust how much time to overlap/clip.

Can anyone help me with providing some lead to such a software. A free/open source software would be preferable.

Thanks. — Preceding unsigned comment added by Kanwar rajan (talkcontribs) 15:54, 22 March 2011 (UTC)[reply]

Avidemux can do this 82.43.90.38 (talk) 16:04, 22 March 2011 (UTC)[reply]
(ec) The Windows Movie Maker software that came pre-installed on my Vista laptop can do this. It is a simple matter to eliminate the time overlap. Astronaut (talk) 16:05, 22 March 2011 (UTC)[reply]


Thanks a lot!! I will give it a try. — Preceding unsigned comment added by Kanwar rajan (talkcontribs) 16:20, 22 March 2011 (UTC)[reply]

Also VirtualDub. ---— Gadget850 (Ed) talk 17:21, 22 March 2011 (UTC)[reply]

Problem with search engines

This problem cropped up just today. When I try to use Google, Bing or Yahoo for search, all I get is a blank page. I tried a restart and that didn't work. I've also tried using various browsers, Opera, Firefox, IE and Chrome, and none worked. Google mail and Yahoo mail work fine, however. Any thoughts? Thanks. 71.125.150.30 (talk) 16:36, 22 March 2011 (UTC)[reply]

The standard first advice here is to download an anti-malware program, like Malwarebytes's offering, and scan your system to see whether you've got a computer virus or other malware that mucks with your outbound DNS queries, or the like, to redirect you to websites that the malware wants you to see. Comet Tuttle (talk) 16:38, 22 March 2011 (UTC)[reply]
A reboot is also worth a try here. StuRat (talk) 16:39, 22 March 2011 (UTC)[reply]
I tried a reboot and that didn't work. I downloaded Malwarebytes and I'm running that now on the problematic laptop. Thanks. 71.125.150.30 (talk) 16:53, 22 March 2011 (UTC)[reply]
Malwarebytes worked. Thanks for the help. I have been running Norton, provided by my service provider and updated regularly, but it failed to pick up a total of 32 infections. Interesting. Again, thanks.71.125.150.30 (talk) 17:07, 22 March 2011 (UTC)[reply]
You're welcome. May I recommend creating an account without administrator rights and using that account habitually? It makes it more difficult for malware to infect your operating system. The only downside is that it's occasionally annoying when you have to install something, or when using old software from the early days of Windows Vista or before that works poorly with non-admin accounts. Comet Tuttle (talk) 19:44, 22 March 2011 (UTC)[reply]

Windows 7

I have an old computer with no screen, keyboard or mouse running Windows XP which I can use via remote desktop connection from my Windows 7 computer. I want to install Windows 7 on the old computer. Is there a way I can go through the install process via remote desktop connection, so that I don't have to switch the screen and keyboard over and render the other computer unusable during the install? Also, the old computer only has 1GB of RAM so is installing Windows 7 on it going to be beneficial over XP, or will it function slower than XP currently does? 82.43.90.38 (talk) 17:05, 22 March 2011 (UTC)[reply]

Here are the minimum system requirements for Windows 7: [15]. 1GB of RAM is the minimum, so I'd be a bit wary. It probably will be slower. StuRat (talk) 17:13, 22 March 2011 (UTC)[reply]
"via remote desktop connection": No. You cannot perform an in-place upgrade from XP to 7.[16] Step 1 of that page links to the Windows 7 Upgrade Advisor which will identify potential upgrade issues. ---— Gadget850 (Ed) talk 17:20, 22 March 2011 (UTC)[reply]
I don't understand what you mean by "in-place". 82.43.90.38 (talk) 18:39, 22 March 2011 (UTC)[reply]
You cannot load 7 over XP and maintain settings and documents. You have to format your drive and do a clean install (nuke and pave). ---— Gadget850 (Ed) talk 18:46, 22 March 2011 (UTC)[reply]
I don't care about preserving settings and documents. You can assume there's no OS on the computer if that makes it easier. I just want to be able to go through the Windows 7 install procedure without attaching a keyboard and screen to the computer. I thought there might be the possibility of doing that over the Remote Desktop Protocol 82.43.90.38 (talk) 19:44, 22 March 2011 (UTC)[reply]
You can't install an OS over a remote desktop connection. You can create a DVD that will install the OS without any user input, but I suspect in your case this would be more difficult than doing it by hand. (It's useful for IT professionals who have to upgrade a bunch of machines at once.) Unless you have a specific reason to install Windows 7, though, I wouldn't bother. Don't install it in the hope of making your old computer faster, since that's very unlikely to happen. -- BenRG (talk) 19:29, 22 March 2011 (UTC)[reply]
I mainly want to install Windows 7 because Windows XP has trouble to coping with thousands of files in a folder, whereas Windows 7 has been able to. I certainly don't expect Windows 7 to increase the speed to the computer, but I was concerned that it might cause a significant decrease in speed since Windows 7 is a much larger operating system. If Windows 7 will perform as well as XP on the older hardware, that's good. 82.43.90.38 (talk) 19:49, 22 March 2011 (UTC)[reply]
XP, the operating system, doesn't have any problem with large folders. If you're having a problem it's most likely with the bundled application known as Explorer, in which case you could try using one of the alternatives to Explorer instead of replacing the whole OS. Unfortunately, Explorer's file view is also used in the standard file open/save dialogs, and I don't know which of these replacements, if any, will also work in the dialogs. You could also try to fix Explorer. Your problem could be as simple as a metadata column that requires reading every file (such as "track number" or "date picture taken") or a shell extension that you installed long ago and forgot about.
I think that a base Windows 7 install will inevitably use more RAM than a base XP install; on the other hand, I think Windows 7 does have some improvements in its caching behavior, which can make things faster. Whether the speed is faster or slower overall will depend on the amount of RAM, but I don't know where the crossover is. 1 GB may not be enough. -- BenRG (talk) 23:47, 22 March 2011 (UTC)[reply]
I've tried several explorer alternatives and they're all pretty buggy, 7zip file manager has been the best but even that has some trouble. I installed no shell things, actually the XP install is itself quite recent so there's no clutter from random programs. Anyway, thank you for your help. I guess I might give Windows 7 a test, I can always install XP back onto it it's just a bit annoying. 82.43.90.38 (talk) 15:14, 23 March 2011 (UTC)[reply]
Why don't you just use the keyboard and monitor from your main computer? Have you considered moving the hard drive from one computer to the other? Taemyr (talk) 04:04, 23 March 2011 (UTC)[reply]
Because that would render my other computer unusable for over an hour. I don't understand how moving the hard drive helps, and from experience installing Windows on one computer and then moving the hard drive to another result in the system becoming unstable and BSODing because of the significant hardware change. 82.43.90.38 (talk) 15:14, 23 March 2011 (UTC)[reply]
Right. Due to the way Windows is tied to the hardware abstraction layer, you can't install to a PC and swap the drive to a completely different model. I upgraded an older Dell D600 laptop with 1GB from XP to 7— it isn't speedy, but it does seem better than XP even after a year of adding applications.
Question: What is the file system set to on your drive? NTFS, FAT32? ---— Gadget850 (Ed) talk 15:23, 23 March 2011 (UTC)[reply]
Never had a problem when changing HAL due to system changes personally (including from Intel to AMD and from Athlon XP to Athlon 64 IIRC). Never done it with Windows 7 but a quick search suggests it's gotten easier not harder as one would expect. You do have to know what you're doing (I believe I described the process possibly to 82 before) but if you do not really a big deal and there are plenty of guides. Nil Einne (talk) 19:16, 23 March 2011 (UTC)[reply]

Upgrading memory on my PC

I have 512 MB of memory on my PC (CPU = Celeron#Northwood-128, O/S = Windows XP SP3 (32 bit)), and, based on a discussion further up the page, it looks like I need more memory. I have 4 memory slots, with the following contents:

1) 128 MB DDR, PC2700U CL2.5 25331 C3 0322 4X0365 121033 P/N 305956-041.
2) 256 MB DDR, PC3200U CL3   30331 A1  400 MT8VDDT3264AG-40BG4 200424 BZACH3G002 S/C: 3804740072E PN: 326667-041
3) 128 MB DDR, (Exactly the same as in slot 1).
4) Vacant.

All 3 memory cards are labeled Hewlett Packard. Slots 1 and 2 are close together, as are slots 3 and 4. Slots 1 and 3 are black, and slots 2 and 4 are blue. Sorry for all the excessive info, but I don't know which numbers are trivial and which are critical. So, here are my questions:

A) Does the slot placement of the cards matter ?

B) Is it OK to mix and match cards, like I have ?

C) I'm thinking of getting an additional 256 MB DDR card, like the one now in slot 2, and placing it in slot 4. That would give me 768 GB of RAM. But could I put a 512 MB card or 1024 MB DDR card in there, instead (to give me a total of 1 or 1.5 GB) ?

D) What significance, if any, does the color of the slot (blue versus black) have ?

E) If I decided to go all out and put in the maximum RAM my PC can handle, what would that be ? Is it only limited by my 32-bit operating system ?

F) Can I use the faster DDR2 or DDR3 memory cards ? If so, can I mix and match those with my current cards ? StuRat (talk) 21:25, 22 March 2011 (UTC)[reply]

I'll answer the ones I can;
B) I've had no problems mixing different sizes of RAM cards on my computer
C) Yes
E) 32-bit operating systems can only address 4GB usually. You can't install a 64-bit operating system on 32-bit hardware
F) No, DDR2 and DDR3 cards are shaped differently and won't fit in the slots
82.43.90.38 (talk) 22:07, 22 March 2011 (UTC)[reply]
Thanks. I assume the different shape is to prevent them being plugged into the same slots, because of some underlying incompatibility ? StuRat (talk) 22:34, 22 March 2011 (UTC)[reply]
For A, B, and D, see Dual-channel architecture. If your motherboard is indeed dual channel (and the colors and paired slots make this likely), then it is recommended that matched memory modules (as your 1 and 3 are) be put into the same channel (same colors, in your case) for best performance. If you could find a memory module identical to your 256 MB one to put in slot 4, that would work well. It might be even better (depending on your budget) to buy a matched pair of, say, 512 MB units (for an additional 1 GB) and replace your current 256 MB with one of those (the other going in the empty slot), giving you 1.5 GB total RAM. Buddy431 (talk) 22:53, 22 March 2011 (UTC)[reply]
That last calc doesn't quite add up. I would then have 2(512 MB) + 2(128 MB), or 1268 MB. StuRat (talk) 01:48, 23 March 2011 (UTC)[reply]
Right you are. 1.25 GB then. I'm not sure how much of an improvement actually matching the memory gives (though it's always recommended for dual channel), so you might want to wait for someone more technically savvy to comment. Buddy431 (talk) 03:20, 23 March 2011 (UTC)[reply]
We'd need to know the exact make (I assume HP?) and model of your computer to be able to confirm what memory choices are possible, including the maximum amount supported by it as it'll vary per computer. It's also probably worth going to the Crucial website because they have a very good memory scanner which will show you what your options are including the maximum amount of RAM you can put in it etc. I only know about their UK pricing, but it's very reasonable and we purchase all our work RAM from them because of this and the compatibiliy checker. Unfortunatly DDR 1 RAM isn't made anymore so it's likely to be expensive... :(  ZX81  talk 22:46, 22 March 2011 (UTC)[reply]
This is a Franken-model, meaning it's assembled from the bodies of other dead computers, so the "model" may not have much meaning. Do you need to know the motherboard ? If DDR 1 GB isn't made any more, could I get some other combo more cheaply, like two 512 MB cards ? StuRat (talk) 23:03, 22 March 2011 (UTC)[reply]

Looking at sites that sell memory, I now have even more questions:

G) 184 pin DIMM versus 200 pin SODMM ? Do I need to pull the cards back out and start counting ?

H) What is ECC and ECC Registered, and do I care if I get that ?

I) DDR memory seems to come in speed of 266, 333, and 400 MHz. Does this make much difference ? If I mix and match speeds, is the result the lowest speed for everything ? StuRat (talk) 23:10, 22 March 2011 (UTC)[reply]

What matters is the motherboard. It may only support DIMMs of up to 256MB each, for example.
SO-DIMM is a smaller form factor used in laptops. They are not compatible with DIMMs. You probably have DIMMs. You can take out one of your modules and figure out its type by its shape (length/width ratio and position of the notch).
PC2100 = 266 MHz DDR, PC2700 = 333 MHz DDR, PC3200 = 400 MHz DDR. Since you already have PC2700 and PC3200 DIMMs in the motherboard, I'd stick with those. I think that the overall RAM speed will be limited to the slowest DIMM, but memory speed doesn't matter that much anyway; it's rarely the bottleneck. I've always heard that memory will work regardless of speed (though higher speeds will be wasted on a motherboard/CPU that only supports lower speeds), but I've personally had a machine fail to start up with faster DDR RAM in it, so I'm not sure.
Don't get ECC (error correcting) RAM unless the motherboard supports it, which it probably doesn't. -- BenRG (talk) 00:05, 23 March 2011 (UTC)[reply]

Motherboard info: Under Device Manager I see the 2 motherboard resources listed as ACPI\PNP0C02\1 and ACPI\PNP0C02\2. On the motherboard itself I see:

Hewlett-Packard SP#323091-001 P6B58OF9VOWNSZ AS#305374-001 374 REV OF S2A

StuRat (talk) 02:13, 23 March 2011 (UTC)[reply]

305374-001 is the motherboard for a HP COMPAQ D530 - Can you see that anywhere on the back of the case which might confirm this? (I know you said it's a refurbished computer, but it's still quite likely they put it back in the original case) Looking up that model on the Crucial site gives this which suggests the maximum amount of memory you can put in it is 4Gb. Your safest bet though is to run the memory checker on the crucial site as that should correctly detect your motherboard and supply you with a page telling you how much you can have and what your options are.  ZX81  talk 02:26, 23 March 2011 (UTC)[reply]
Actually, apparently it's the same motherboard for the D330, D338, D530 and D538 so if you see any of those on the back that's good.  ZX81  talk 02:30, 23 March 2011 (UTC)[reply]

OK, I ran the Crucial scan, and it gave me some good info:

1) I do have dual-channel architecture. To get the most out of this, I should use matched pairs of memory cards. (However, they then recommended an unmatched pair.)

2) I don't have ECC support. Can I still use ECC memory, if it's cheaper ?

3) Max size is 1 GB per slot, for a max of 4 GB. However, they warn that only 3 or 3.5 GB would be accessible under my 32-bit architecture. (And then recommended that I get 4 GB, anyway.)

So, the scan seemed good, but their recommendations seemed faulty. StuRat (talk) 03:37, 23 March 2011 (UTC)[reply]

1)What does it recomend? Is it 128, 256, 128, 512? If it is the unmatched pair is likely because it's trying to use the RAM you already have. Also usually 1 is matched with 3 and 2 with 4.
2)No. Also I don't think ECC is cheaper.
3)I would also recommend installing 4GB to max the system, even if not all of it will be acessible. This is due to getting the memory matched.
Taemyr (talk) 03:52, 23 March 2011 (UTC)[reply]
1) There were multiple recommendations. The one resulting in a mismatched pair was to get a 1 GB card and leave my 256 MB card in place in the matching slot.
3) Wouldn't getting 3 (1 GB) cards avoid the mismatched pairs prob, since I would have a matched pair and a lone card ? (I'm assuming a lone card doesn't count as a "mismatched pair"). StuRat (talk) 04:46, 23 March 2011 (UTC)[reply]
It's not that mismatched pairs are slower but that matched pairs are faster. With a single module you won't have a matched pair. I think that you will still get the matched-pair performance boost on the other two modules, but I'm not sure. As I said above, though, I wouldn't worry about it. The benefit of adding more RAM is reduced disk access, and even the slowest RAM is so much faster than the disk that variations in RAM speed will hardly be noticeable most of the time. Also see Dual-channel architecture#Performance. -- BenRG (talk) 08:22, 23 March 2011 (UTC)[reply]

I have a follow-up question on item I. Do I get the lowest speed of all the occupied slots, or does that go by pair ? StuRat (talk) 04:56, 23 March 2011 (UTC)[reply]

AFAIK you get the lowest speed among all occupied slots. Rocketshiporion 06:35, 23 March 2011 (UTC)[reply]

OK, thanks for the help so far, everybody. I've pretty much decided to buy a matched pair of 1 GB 400 MHz DIMM (non-ECC) cards. But how should I use them for best effect ? Here are my three options:

a) Use those two alone, in the same-colored slots, for 2 GB at 400 MHz on a single matched pair.

b) Use them with my current 256 MB (333 MHz), card in one of the other slots, for 2.25 GB at 333 MHz total, with a single matched pair.

c) Use then with my current matched pair of 128 MB (266 MHz) cards, for 2.25 GB at 266 MHz total, with two sets of matched pairs.

d) Use them with one of each of my current card types, for 2.38 GB at 266 MHz total, with one matched pair.

So, which would be best ? StuRat (talk) 22:19, 23 March 2011 (UTC)[reply]

I think you should upgrade your motherboard instead of your RAM, given how much cheaper DDR3 memory will be than DDR1, plus you'll get a drastically faster CPU. —Preceding unsigned comment added by 75.57.242.120 (talk) 00:43, 24 March 2011 (UTC)[reply]

March 23

Mobile internet

Why do almost all major companies charge more for mobile laptop internet service than data plans for phones one the same network technology and hardware chips. Now my question is not about the rationale, I already know computer based users, on average, consume much more bandwidth resources and that justifies charging more. My question is really why do they do it considering it's incredibly easy to tether the computer to a modern smartphone using wifi, usb, or bluetooth without any possible way for the provider to find out. Even though that may be considered dishonest and what not, I think it actually makes the company seem dishonestly charging you more for something everyone can easily get without paying more. Besides tethering, I have heard simply puting the SIM card that was activated for a phone into the computer's hardware will acheive the same thing. And finally, on a related note, why do many companies charge more for "BlackBerry internet service" than other phones. Again, I'm not talking about compnanies with different 2G and 3G services, I'm talking about the majority of North American providers who are providing the exact same technology and service at different prices to BlackBerries, Laptops, and other smartphones at 3 different price points. The incredible ease of circumventing it undetectably (and arguably, with a good legal argument of ignorance or unfairness) makes it just seem to me that they are pathetically and hopelessly trying to over charge the "hopefully ignorant" customers. — Preceding unsigned comment added by Roberto75780 (talkcontribs) 00:44, 23 March 2011 (UTC)[reply]

One more ridiculous thing is that some companies i know in canada officially released a software update that enables tethering for upto 5 computers off of one phone, and still that data plan, including the phone voice plan, costs way less than a laptop plan for the same amount of data. What on earth is the point? — Preceding unsigned comment added by Roberto75780 (talkcontribs) 00:53, 23 March 2011 (UTC)[reply]
I would bet that the majority don't do that, and they make a tidy profit from them. StuRat (talk) 06:39, 23 March 2011 (UTC)[reply]

firefox on a mac

Hi. I have a powerpc mac (ie not intel) and was misled into downloading firefox 4, which does not work on my AMD architecture. Where do I find a universal version of firefox 3? Robinh (talk) 06:38, 23 March 2011 (UTC)[reply]

This is a little outddated, I'm not sure if it's still true, but might be of interest: http://news.cnet.com/8301-30685_3-20014666-264.html Shadowjams (talk) 07:10, 23 March 2011 (UTC)[reply]
Thanks, but no download page! I'm beginning to panic that I won't be able to find a universal binary. Robinh (talk) 07:54, 23 March 2011 (UTC)[reply]
Wait, what? AMD makes chips that are compatible with Intel chips. It looks like there's an independent project that has a version of Firefox 4 for PowerPC: TenFourFox. Paul (Stansifer) 13:21, 23 March 2011 (UTC)[reply]

Chain text messages

As a form of chain letter in the form of mobile phone SMS, the SMS would usually contain interesting factoids or a sad emotional story promising the recipient good luck if they forward such SMS to ten hundred people (or bad luck if they dont). Is it true that these chain SMS was actually started by any mobile network operator in order to boost their revenue? I heard about this somewhere but I cant find info on this on the net. ќמшמφטтгמtorque 07:35, 23 March 2011 (UTC)[reply]

The 'C' button don't work on my keyboard. why?

Hey, my Computer works Completely fine, exept for the 'C' button. It started with that button sometimes not working and then Coming bak to work again without problems and then it just stopped working again. It happened a few times before it now has stopped working for good, or so it seems... But when it worked it seems to do so just fine, and sinCe it had worked/not worked several times, then the button at least is not ruined or broken. Taking the "hood" of the button off and plaCe it bak on doesnt help either. Maybe it is some adjustments or Configuration needed to be done? It's impossible to write effetively without all buttons..

Any Clues as to what to do and what might be the problem?

All C's in this text has simply been Copied and pasted ofC..

Crossing my fingers that someone knows what to do. tnx —Preceding unsigned comment added by 85.165.121.35 (talk) 08:42, 23 March 2011 (UTC)[reply]

It won't be a software problem, it's the keyboard itself. Crumbs or spills are the usual culprits. If you pry off the key and clean underneath with alcohol and a cotton swab, and it still doesn't work, just buy a new keyboard. They are only like $20. StuRat (talk) 09:19, 23 March 2011 (UTC)[reply]

tnx, tried that though. looks like my keyboard might be ready to be replaSed I guess.. —Preceding unsigned comment added by 85.165.121.35 (talk) 09:55, 23 March 2011 (UTC)[reply]

It probably just needs a good cleaning. Some people even put their's in a dishwasher but completely stripping it and cleaning all the components (particularly the plastic sheets with the printed circuit inside the keyboard) with a damp cloth should be adequate. I've done it a number of times. Just messing about with the outside surface under the keys doesn't do much so get your screwdriver out. Roger (talk) 11:09, 23 March 2011 (UTC)[reply]
I have successfully cleaned keyboards with sticky or non-functioning keys. Take a photo first so you can remember where all the keys go. Prise off all the keys, noting how the large keys such as the space-bar, the enter-key and so on often have small metal rods underneath. Remove the screws from the keyboard and dismantle the keyboard casing. Put aside any circuit boards and the cable. Wash everything else in hot water with a little added detergent (or use the dishwasher as mentioned above). When reassembling, make sure everything is dry - the keys in particular trap water in little corners and holes; paper tissues are good for this. Astronaut (talk) 11:58, 23 March 2011 (UTC)[reply]

Cross compilers

Are there any free cross compilers like Javaground they only give you a 30 day trial and then you have to purchase the licence, I am looking to develop iphone apps using Windows, thanks Mo ainm~Talk 15:49, 23 March 2011 (UTC)[reply]

Can J2ME Midlets be made to work on an iPhone 3Gs?

Heading says it all. Thanks20.137.18.50 (talk) 16:46, 23 March 2011 (UTC)[reply]

Animated graph

I'm making a graph for a presentation that would be a bit more fun if I could have it animated in some way other than making the different series just appear as I click forward (which is easy to do in Keynote, for example).

The date is quite straightforward -- the X axis are years, the two columns in the Y axis are the values for two countries. The Y data starts out small but soon gets quite large — this is what I'd hope the animation would emphasize, by "zooming out" in some way to reflect the change of scale I go through the timeline.

None of the tools I have at my disposal (Powerpoint, Keynote, Excel, Numbers) seems to do this. Google Docs doesn't seem to. The Google Visualization API[17] doesn't seem to quite do it either.

Is there something obvious I am missing?

Again, just to help you understand what I want -- imagine I had a series that was something like:

1910 -- 2
1920 -- 4
1930 -- 8
1940 -- 30
1950 -- 300
1960 -- 2000

or something like that. If graphed on a line graph all at once, the small parts just look small. What I'd love is that if I showed only 1910-1920, the y axis would be modified so that its top was the max data. Then I click forward, and it adds the 1930-1940 data to the visible set, adjusting the axis. Then I click ahead and 1950-1960 get added, and now we're really bowled over, because we thought the previous jump was large, but it is really dwarfed by comparison. And so on, so that what seemed like a big deal originally ends up looking very small compared to the later trends.

Obviously I could just set it up to do this with a series of graphs, which is what I'll probably end up doing anyway. But it would be wonderful if there was some slick way that this sort of transition would be done automatically -- e.g. it would add the data and then "zoom" out a bit to adjust the axis. --Mr.98 (talk) 17:14, 23 March 2011 (UTC)[reply]

The first thing that pops into my mind is Blender, but I know that's totally making it an animation and no longer a graph at all. Actually, Google Sketchup would probably be simpler if you acquiesced to the idea of a modeling solution. I don't know if the free version comes with an animation plugin and a recording plugin, but I know there are lots of plugins for it.20.137.18.50 (talk) 17:22, 23 March 2011 (UTC)[reply]
Yeah, I don't want to do it from scratch, e.g. modeling or hand animating or flash. I'm hoping for something just a tiny bit more automated. --Mr.98 (talk) 18:43, 23 March 2011 (UTC)[reply]
You didn't say what the media is which you are using. Is this a computer display you are projecting onto a big screen ? If so, perhaps you could have the full graph displayed, and block some of the projection in both the horizontal and vertical directions, with just some pieces of paper, then remove them to reveal the full graph. StuRat (talk) 17:44, 23 March 2011 (UTC)[reply]
It's being projected, but I don't see why using paper or anything is going to help. It's not a matter of hiding data and revealing it — that's easy to do. It's the animated way in which the data is revealed/added/changed that I'm interested in. It is very trivial in Keynote to have data series not appear all at once, but there's no way to make the new series change the axis, from what I can see. --Mr.98 (talk) 18:43, 23 March 2011 (UTC)[reply]
What I'm proposing is some way to "normalize their expectations" one the smaller graph, then "exceed their expectations" by expanding not only the data on the graph, but the size of the graph itself. Masking part of the graph would have them think that the small graph is what's "normal". Perhaps there's a software way to do this, but I was thinking you would still see some light projected where the full sized graph will be, thus "giving away the game", and only masking can prevent that. StuRat (talk) 21:52, 23 March 2011 (UTC)[reply]
I'm reminded of Al Gore's An Inconvenient Truth, where they used a cherry picker to add to the top of the global warming graph, for dramatic effect. StuRat (talk) 17:47, 23 March 2011 (UTC)[reply]
Yes, exactly. Something a bit silly and flashy but to emphasize the change in numbers. --Mr.98 (talk) 18:43, 23 March 2011 (UTC)[reply]
You say you are doing a presentation and you have Powerpoint. Are you making a Powerpoint presentation? If so, make each graph a new image and place them in successive slides. Then, as you click from one slide to the next, you get the new graph. That is how I do Powerpoint animations because the built-in animation stuff is way too buggy. -- kainaw 18:46, 23 March 2011 (UTC)[reply]
The entire point of the question was, as I tried in vain to explain, to do something other than just this. :-/ As I said, obviously I could just do it as a series of separate graphs on separate slides, but I was trying to find something slightly more flashy. I know that the built-in Powerpoint tools don't do this. --Mr.98 (talk) 00:01, 24 March 2011 (UTC)[reply]
Also, maybe something like this for the final graph might make it seem like you had to go "beyond the normal size limits":
                                        _
                                  _    | |
                            _    | |   | |
                      _    | |   | |   | |
                _    | |   | |   | |   | |
^         _    | |   | |   | |   | |   | |
|    _   | |   | |   | |   | |   | |   | |
|   | |  | |   | |   | |   | |   | |   | |
+------------------------------------------->
So, the point is that the graph goes beyond the original vertical axis. You could also have it go beyond the original grid lines. StuRat (talk) 21:59, 23 March 2011 (UTC)[reply]
I think we're having a failure to communicate here, unfortunately. In any case, I'm not looking for alternatives to what I wanted to do — I'm trying to see if there's way to do what I wanted to do. If the answer is "no," or "I don't know," that's a fine answer. --Mr.98 (talk) 00:01, 24 March 2011 (UTC)[reply]

Internet in Uganda?

I will be traveling to Kampala, Uganda for a few weeks this summer. I asked the local tour guide there and he said while there won' tbe WiFi access in the rooms that I will be staying, I can get a "wireless internet access card" that will help me access the Internet. What could this "wireless internet access card" be? Is it some sort of 3G modem card that will let my laptop access the Internet via cell phone towers much like the wireless hotspotting feature on my smartphone? If so, would anyone know roughly how much it will cost and how fast the service will be in a city like Kampala? Thanks. Acceptable (talk) 22:08, 23 March 2011 (UTC)[reply]

It might just be a paper card with access information for using a VSAT network connection. ¦ Reisio (talk) 22:33, 23 March 2011 (UTC)[reply]
I might suggest asking the tour guide in question? It will probably be better to get the official info rather than guessing (perhaps wrongly). --Mr.98 (talk) 23:52, 23 March 2011 (UTC)[reply]

March 24

Projector light

I'm writing up some guidelines on making slides, but I wanted to check a factual matter here. On a typical LCD projector (where "pure white" is an absence of added color from the lamp, and "pure black" is the absence of light projected), does "pure red" (R:255, G:0, B:0) correspond to approximately 1/3rd the projected luminosity of pure white light? I know that the actual reflected luminosity depends on the screen surface, but I'm trying to come up with a basic generalization here. --Mr.98 (talk) 00:40, 24 March 2011 (UTC)[reply]

Help with Android Code

Hi, I'm going through some example code online. I'd like to preserve all of its functionality, except change it so it uses an arraylist to populate the list instead of a database.

https://github.com/findup/Android_Sample_TodoApp/blob/master/src/jp/co/example/testapp/MainActivity.java

Around line 127, it chooses to use a database connection to fetch content from the database.

Instead of fetching data from the database, I'd like to use an ArrayList to hold the data. Could anyone help me? Thanks!