< September 2 | Computing desk archive | September 4 > |
---|
| ||||||||
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions at one of the pages linked to above. | ||||||||
Hello! I have three questions:
-- Thor Waldsen 01:27, 3 September 2006 (UTC)
If using an fstream you can just getline (counting each time) until end of file (eof). - Rainwarrior 04:33, 3 September 2006 (UTC)
How can I create a playlist and maintain a library in Real Player for Mac? I have the latest version.-- 202.161.131.76 02:31, 3 September 2006 (UTC)
Hi, I have an AMD GA-K8VM800M motherboard with an AMD Athlon64 2800+ 1.8GHZ (Socket 754). I'm thinking of upgrading the processor with an AMD Sempron 3300+. I would like to know how fast and how this pro. will perform as a media/gaming PC. I would like to know your opinions. Can u recommend any other processor that will perform well with this m/b for gaming/media? THANKS JON.
I have 1GB DDR400 ram, 120GB SATA HDD, a 256MB Sapphire ATI 9550 “AGP” VGA Card. JON-- 203.122.73.26 07:59, 3 September 2006 (UTC)
To me,this configuration looks not that bad to suffice most of the any game needs these days....A friend of mine has the same series as yours,but with a different M\B model.He could hit through all sort of games.Tried any 3d bench marks?...Do it first and look for an upgrade if ever needed before investing money..or try playing any high graphics demanding games and check out for a decent frame rates....All the Best
I am using an IBM T30 laptop with WinXP pro. The trackpad broke a while back and is disabled. My first inclination is to suspect hardware problems with the trackpoint. Anyhow, mouse clicking does not work, but mouse movement (via trackpoint) does work. The keyboard seems to work, but the top menubars in programs, when selected via alt+option, don't open. I tried tabbing over to the start menu to fiddle with the control panel but, though I was able to navigate to the options in the control panel, attempting to open the options themselves with the enter key failed to work. Any guesses as to what is wrong?
-- 128.113.107.52 07:48, 3 September 2006 (UTC)
-- Yes.
-- That's something I reserve for a last resort.
Odd side note: When navigating the file system, the top menus all open via alt, but using the down/up keys to navigate the options works only in the case of the favorites menu. The items in the favorites menu cannot be opened with the enter key, though. Strange.
My original suspicion about hardware problems were correct. Somehow my trackpad re-enabled itself. Thanks for pointing out the file extension of the control panel options. Disabling the trackpad again fixed everything.
Get a new laptop man, t30 is old! -- Froth 23:02, 8 September 2006 (UTC)
If one enters a search in Google, do the results depend on location? On the science ref desk I placed links to two searches and got 538 and 886 results respectively. When someone else clicked those links he got 362 and 348 results. Quite a big difference. I'm from the Netherlands and he is from the US. Might that explain it? DirkvdM 14:00, 3 September 2006 (UTC)
I think it's the traffic that hits...we actualy did the same sort of search from the same location,but ended up like what you experienced.But it wasn't quite common for all your searches.I'm not sure though there might be a valid reason other than this...let's wait for others.... User:202.56.231.116
It might be interesting to keep some records of the differences, maybe also see if the results were different. We know the Chinese results are censored. If the requests are going to the same machines at Google HQ, the results should be the same whether they're returned to US or Europe or wherever. Rentwa 16:02, 3 September 2006 (UTC)
I got 503 and 859, respectively. I also live in the US. -- Yanwen 17:16, 3 September 2006 (UTC)
I tried again and now I get 538 (same) and 823 (less). Now I can understand such small differences (after all the Google database gets updated al the time), but 362 and 348 are really different, the second one even much less than half. DirkvdM 17:43, 3 September 2006 (UTC)
I get 538 and 823 using the links. Changing '.com' to '.co.uk' in the address bar I get 538 (same) and 860 (different). Rentwa 17:50, 3 September 2006 (UTC)
Reason 1: Some results are removed due to local laws: search for a ...uh, "controversial" organization in
The Netherlands vs
Germany. But that's unlikely to be the cause in these searches.
Reason 2: google isn't one big computer, it's distributed and your query gets routed to the closest copy of Google. The indexes in the different copies are not completely in sync.
Reason 3: (what I'm guessing is happening here): the "someone else" looked at unique hits. Google has an algorithm that looks at two pages and if they are similar enough Google lists them as "very similar". The 886 count includes duplicates, the 348 doesn't. Keep clicking "next result page" until you come to the end or go directly here:
[1], see the "omitted some results" message at the bottom of the page.
(Aside on a common misunderstanding of unique results: uniqueness only considers the first 1000 pages. If you search for "microsoft"
[2] you'll be surprised that only about 130 unique web pages in the whole world contain the word "microsoft". Of course there are more. The way the duplicate remover works it takes the first 1000 results and figures out which of those are duplicates. Only 130 of the first 1000 are unique.)
Weregerbil 19:31, 3 September 2006 (UTC)
I'm the one getting the lowest number of hits, I wonder what's so different for me. I'm actually clicking on the links, not retyping them myself. I also checked to see that I have "Safe Search" turned off, so should get all result listed, right ? StuRat 21:23, 3 September 2006 (UTC)
I'm running XP with service pack 2, and have recently noticed that the menu items in control panel (I use the 'classic' version for the start menu, so it looks like win2000) used to be in alphabetical order, but now start with 'Power options', then go in alpha aorder until 'wirelss...', then start with items beginning with 'a' etc. This isn't a problem, just curious behaviour, and I wonder if anyone else has seen anything similar? Madmath789 14:07, 3 September 2006 (UTC)
is there anyway i could stop the iPod from losing its songs when i put it onto a new iTunes. or would it just be easier to move the songs from my old computer onto my new one?
thanks-- Crab People 15:04, 3 September 2006 (UTC)
Hi friends....I have been having this doubt for a very long time....There are some websites hosting cracks and serials for the original software which you may come across when you just google net,as you may be aware of this..Now isn't this something illegal?...Why won't they get arrested? and what still makes them to reverse engineer and release these stuffs?.Can't their websites be identified and the members hosting be traced down and arrested?....A friend of mine said that if a software release was in one country then the cracks or serials for that software would be released in a website belonging to some other country and hence it can't be arrested or banned..Is it true?...Sorry if it sounds too basic or stupid,I'm just a rookie in this....Any info?
Does anyone know a website or place where I can download a spyware, adware free Photoshop CS2 Key Generator? Jamesino 20:17, 3 September 2006 (UTC)
who will given the certification that a company is following all the CMM levels?
I am using Windows XP and i set in the Regional and Language settings to allow me to use a Spanish keyboard setting in addition to the english one. My keyboard is labeled to the english setting, though, and I ave no way of knowing which key is which in the spanish setting other than by trying it. Is there a way to get an on-screen keyboard or something that shows which key is which for the spanish setting? Thanks! -- Life 23:15, 3 September 2006 (UTC)
I'm writing a basic text editor as an exercise to learn python, and I need a way to position the "cursor" (where the inputted text is inserted) -- using w/a/s/d as a substitute for the arrow keys isn't an option because these are required if the user wants to type "w","a","s" or "d", obviously.
Accepting user input for text is easy -- just use raw_input(), but whenever I use raw_input() it doesn't seem to want to accept the arrow keys as a valid input.
Every time I type an arrow key in the python interpreter I get ^[[C so I wrote the following program to see if I could use this:
variable = raw_input("Press the right arrow key: ") if variable == "^[[C": print "you pressed the right arrow key" elif: print "you didn't press the right arrow key"
but this doesn't work in practice.
Any ideas, or links? I imagine that I'll need to import a module of some kind, but with so many python modules available I couldn't find the documentation for one that I could use.
Thanks for the help.
import msvcrt while True: c = msvcrt.getch() charcode = ord(c[0]) print "char %c,%d" % (c,charcode) # if the key is 27, the ESC key, then quit if charcode == 27: break
def display_message(s, msg): s.addstr(1,0, "%-20s"%msg) import curses scr = curses.initscr() # set some stuff so we get more direct access to keystrokes curses.noecho() # don't echo the chars I type curses.cbreak() # tell me immediately when keys are hit scr.keypad(1) # handle fancy keypresses in curses scr.addstr(0,0, 'hit f1 to exit') while True: c = scr.getch() # for codes see http://docs.python.org/lib/node267.html if c==curses.KEY_LEFT: display_message(scr, 'left') elif c==curses.KEY_RIGHT: display_message(scr, 'right') elif c==curses.KEY_F1: break else: display_message(scr, 'code=0x%x' % c) # restore the terminal to the way it was before we changed it curses.nocbreak() scr.keypad(0) curses.echo() curses.endwin() # bye
import termios,sys stdin_fd = sys.stdin.fileno() # turn off echo and turn on ICANON mode attrs = termios.tcgetattr(stdin_fd) attrs[3] = attrs[3] & ~termios.ECHO # disable ECHO attrs[3] = attrs[3] & ~termios.ICANON # get chars immediately termios.tcsetattr(stdin_fd, termios.TCSADRAIN, attrs) while True: keys = sys.stdin.read(1) print "char %c,%d" % (keys[0],ord(keys[0])) if keys[0] == 'q': # exit on q break # return terminal to normal attrs[3] = attrs[3] | termios.ECHO # reenable ECHO attrs[3] = attrs[3] | termios.ICANON # disable ICANON termios.tcsetattr(stdin_fd, termios.TCSADRAIN, attrs)
< September 2 | Computing desk archive | September 4 > |
---|
| ||||||||
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions at one of the pages linked to above. | ||||||||
Hello! I have three questions:
-- Thor Waldsen 01:27, 3 September 2006 (UTC)
If using an fstream you can just getline (counting each time) until end of file (eof). - Rainwarrior 04:33, 3 September 2006 (UTC)
How can I create a playlist and maintain a library in Real Player for Mac? I have the latest version.-- 202.161.131.76 02:31, 3 September 2006 (UTC)
Hi, I have an AMD GA-K8VM800M motherboard with an AMD Athlon64 2800+ 1.8GHZ (Socket 754). I'm thinking of upgrading the processor with an AMD Sempron 3300+. I would like to know how fast and how this pro. will perform as a media/gaming PC. I would like to know your opinions. Can u recommend any other processor that will perform well with this m/b for gaming/media? THANKS JON.
I have 1GB DDR400 ram, 120GB SATA HDD, a 256MB Sapphire ATI 9550 “AGP” VGA Card. JON-- 203.122.73.26 07:59, 3 September 2006 (UTC)
To me,this configuration looks not that bad to suffice most of the any game needs these days....A friend of mine has the same series as yours,but with a different M\B model.He could hit through all sort of games.Tried any 3d bench marks?...Do it first and look for an upgrade if ever needed before investing money..or try playing any high graphics demanding games and check out for a decent frame rates....All the Best
I am using an IBM T30 laptop with WinXP pro. The trackpad broke a while back and is disabled. My first inclination is to suspect hardware problems with the trackpoint. Anyhow, mouse clicking does not work, but mouse movement (via trackpoint) does work. The keyboard seems to work, but the top menubars in programs, when selected via alt+option, don't open. I tried tabbing over to the start menu to fiddle with the control panel but, though I was able to navigate to the options in the control panel, attempting to open the options themselves with the enter key failed to work. Any guesses as to what is wrong?
-- 128.113.107.52 07:48, 3 September 2006 (UTC)
-- Yes.
-- That's something I reserve for a last resort.
Odd side note: When navigating the file system, the top menus all open via alt, but using the down/up keys to navigate the options works only in the case of the favorites menu. The items in the favorites menu cannot be opened with the enter key, though. Strange.
My original suspicion about hardware problems were correct. Somehow my trackpad re-enabled itself. Thanks for pointing out the file extension of the control panel options. Disabling the trackpad again fixed everything.
Get a new laptop man, t30 is old! -- Froth 23:02, 8 September 2006 (UTC)
If one enters a search in Google, do the results depend on location? On the science ref desk I placed links to two searches and got 538 and 886 results respectively. When someone else clicked those links he got 362 and 348 results. Quite a big difference. I'm from the Netherlands and he is from the US. Might that explain it? DirkvdM 14:00, 3 September 2006 (UTC)
I think it's the traffic that hits...we actualy did the same sort of search from the same location,but ended up like what you experienced.But it wasn't quite common for all your searches.I'm not sure though there might be a valid reason other than this...let's wait for others.... User:202.56.231.116
It might be interesting to keep some records of the differences, maybe also see if the results were different. We know the Chinese results are censored. If the requests are going to the same machines at Google HQ, the results should be the same whether they're returned to US or Europe or wherever. Rentwa 16:02, 3 September 2006 (UTC)
I got 503 and 859, respectively. I also live in the US. -- Yanwen 17:16, 3 September 2006 (UTC)
I tried again and now I get 538 (same) and 823 (less). Now I can understand such small differences (after all the Google database gets updated al the time), but 362 and 348 are really different, the second one even much less than half. DirkvdM 17:43, 3 September 2006 (UTC)
I get 538 and 823 using the links. Changing '.com' to '.co.uk' in the address bar I get 538 (same) and 860 (different). Rentwa 17:50, 3 September 2006 (UTC)
Reason 1: Some results are removed due to local laws: search for a ...uh, "controversial" organization in
The Netherlands vs
Germany. But that's unlikely to be the cause in these searches.
Reason 2: google isn't one big computer, it's distributed and your query gets routed to the closest copy of Google. The indexes in the different copies are not completely in sync.
Reason 3: (what I'm guessing is happening here): the "someone else" looked at unique hits. Google has an algorithm that looks at two pages and if they are similar enough Google lists them as "very similar". The 886 count includes duplicates, the 348 doesn't. Keep clicking "next result page" until you come to the end or go directly here:
[1], see the "omitted some results" message at the bottom of the page.
(Aside on a common misunderstanding of unique results: uniqueness only considers the first 1000 pages. If you search for "microsoft"
[2] you'll be surprised that only about 130 unique web pages in the whole world contain the word "microsoft". Of course there are more. The way the duplicate remover works it takes the first 1000 results and figures out which of those are duplicates. Only 130 of the first 1000 are unique.)
Weregerbil 19:31, 3 September 2006 (UTC)
I'm the one getting the lowest number of hits, I wonder what's so different for me. I'm actually clicking on the links, not retyping them myself. I also checked to see that I have "Safe Search" turned off, so should get all result listed, right ? StuRat 21:23, 3 September 2006 (UTC)
I'm running XP with service pack 2, and have recently noticed that the menu items in control panel (I use the 'classic' version for the start menu, so it looks like win2000) used to be in alphabetical order, but now start with 'Power options', then go in alpha aorder until 'wirelss...', then start with items beginning with 'a' etc. This isn't a problem, just curious behaviour, and I wonder if anyone else has seen anything similar? Madmath789 14:07, 3 September 2006 (UTC)
is there anyway i could stop the iPod from losing its songs when i put it onto a new iTunes. or would it just be easier to move the songs from my old computer onto my new one?
thanks-- Crab People 15:04, 3 September 2006 (UTC)
Hi friends....I have been having this doubt for a very long time....There are some websites hosting cracks and serials for the original software which you may come across when you just google net,as you may be aware of this..Now isn't this something illegal?...Why won't they get arrested? and what still makes them to reverse engineer and release these stuffs?.Can't their websites be identified and the members hosting be traced down and arrested?....A friend of mine said that if a software release was in one country then the cracks or serials for that software would be released in a website belonging to some other country and hence it can't be arrested or banned..Is it true?...Sorry if it sounds too basic or stupid,I'm just a rookie in this....Any info?
Does anyone know a website or place where I can download a spyware, adware free Photoshop CS2 Key Generator? Jamesino 20:17, 3 September 2006 (UTC)
who will given the certification that a company is following all the CMM levels?
I am using Windows XP and i set in the Regional and Language settings to allow me to use a Spanish keyboard setting in addition to the english one. My keyboard is labeled to the english setting, though, and I ave no way of knowing which key is which in the spanish setting other than by trying it. Is there a way to get an on-screen keyboard or something that shows which key is which for the spanish setting? Thanks! -- Life 23:15, 3 September 2006 (UTC)
I'm writing a basic text editor as an exercise to learn python, and I need a way to position the "cursor" (where the inputted text is inserted) -- using w/a/s/d as a substitute for the arrow keys isn't an option because these are required if the user wants to type "w","a","s" or "d", obviously.
Accepting user input for text is easy -- just use raw_input(), but whenever I use raw_input() it doesn't seem to want to accept the arrow keys as a valid input.
Every time I type an arrow key in the python interpreter I get ^[[C so I wrote the following program to see if I could use this:
variable = raw_input("Press the right arrow key: ") if variable == "^[[C": print "you pressed the right arrow key" elif: print "you didn't press the right arrow key"
but this doesn't work in practice.
Any ideas, or links? I imagine that I'll need to import a module of some kind, but with so many python modules available I couldn't find the documentation for one that I could use.
Thanks for the help.
import msvcrt while True: c = msvcrt.getch() charcode = ord(c[0]) print "char %c,%d" % (c,charcode) # if the key is 27, the ESC key, then quit if charcode == 27: break
def display_message(s, msg): s.addstr(1,0, "%-20s"%msg) import curses scr = curses.initscr() # set some stuff so we get more direct access to keystrokes curses.noecho() # don't echo the chars I type curses.cbreak() # tell me immediately when keys are hit scr.keypad(1) # handle fancy keypresses in curses scr.addstr(0,0, 'hit f1 to exit') while True: c = scr.getch() # for codes see http://docs.python.org/lib/node267.html if c==curses.KEY_LEFT: display_message(scr, 'left') elif c==curses.KEY_RIGHT: display_message(scr, 'right') elif c==curses.KEY_F1: break else: display_message(scr, 'code=0x%x' % c) # restore the terminal to the way it was before we changed it curses.nocbreak() scr.keypad(0) curses.echo() curses.endwin() # bye
import termios,sys stdin_fd = sys.stdin.fileno() # turn off echo and turn on ICANON mode attrs = termios.tcgetattr(stdin_fd) attrs[3] = attrs[3] & ~termios.ECHO # disable ECHO attrs[3] = attrs[3] & ~termios.ICANON # get chars immediately termios.tcsetattr(stdin_fd, termios.TCSADRAIN, attrs) while True: keys = sys.stdin.read(1) print "char %c,%d" % (keys[0],ord(keys[0])) if keys[0] == 'q': # exit on q break # return terminal to normal attrs[3] = attrs[3] | termios.ECHO # reenable ECHO attrs[3] = attrs[3] | termios.ICANON # disable ICANON termios.tcsetattr(stdin_fd, termios.TCSADRAIN, attrs)