Wikipedia:Reference desk/Archives/Computing/2013 August 24

Computing desk
< August 23 << Jul | August | Sep >> August 25 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


August 24 edit

Getting a specific value of a variable that is a list on phyton edit

Lets imagine i have this:
pixel = [[collumn],[row]]
pixel2 = [pixel]
On phython, how I would get only the collumn or just the row, from the variable pixel2? 201.78.155.13 (talk) 20:51, 24 August 2013 (UTC)[reply]


pprint(pixel2)
#[[[column],
#  [row]]]]

pprint(pixel2[0])
#[[column],
# [row]]

pprint(pixel2[0][0])
#[column]

pprint(pixel2[0][0][0])
#column

Σσς(Sigma) 20:11, 25 August 2013 (UTC)[reply]

program to turn Intel TurboBoost on/off edit

Is there a program for Windows 8 that will easily turn Intel TurboBoost on and off? I've read about how you can go into power options and do it, but I need a faster way to do it frequently. Bubba73 You talkin' to me? 23:35, 24 August 2013 (UTC)[reply]

Unfortunately, there doesn't seem to be an easier way (than power options) to disable it. See here (a little old, but essentially says the same thing said everywhere else I looked.) --.Yellow1996.(ЬMИED¡) 15:48, 25 August 2013 (UTC)[reply]
According to that and other searches, changing the CPU maximum speed in the power options to 99% should be enough so I don't see why it's hard as it's a fairly standard setting. If you want to be able to macro it, there are surely multiple ways to do so, I suspect some macro programs can do it themselves but if not it sounds like powercfg [1] can probably do it from the command line and there must surely be some way to do it from the Windows API if you know how to script. I'm not sure whether this required elevated priviligeces under UAC, if it does you'll need to get around this somehow, a big more difficult but should be possible. There may be ways to do it outside poweroptions, I wouldn't trust that single forum post. That said, I'm not sure it usually makes sense to be so fussy except in a few restrictive scenarios. Just letting the OS and processor handle itself and choosing settings which best fit your requirements is best (with good testing or evidence, for example except in scenarios like where you are running continued high usage background process I'm not sure disabling Turbo Boost really helps battery life in a laptop), but to each their own. Nil Einne (talk) 19:31, 25 August 2013 (UTC)[reply]