Jump to content

Wikipedia:Reference desk/Computing: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
OsmanRF34 (talk | contribs)
Line 149: Line 149:
:*Uploading a little bit of information when you're done
:*Uploading a little bit of information when you're done
:If the above is true, then none of that ought to use very much bandwidth, and none of which ought to count as a being a server. And today, "normal" usage means things like streaming movies or music, which take huge amounts of bandwidth by comparison. But if you are really concerned about violating your university IT policies you should contact them. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 13:04, 9 April 2013 (UTC)
:If the above is true, then none of that ought to use very much bandwidth, and none of which ought to count as a being a server. And today, "normal" usage means things like streaming movies or music, which take huge amounts of bandwidth by comparison. But if you are really concerned about violating your university IT policies you should contact them. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 13:04, 9 April 2013 (UTC)
::"Server" is a bit og a loose term in IT today. However barring any clear indications otherwise I would interpret it to mean a machine or process that waits for and acts on "requests" that originates "elsewhere". Mining for bitcoins will not match that definition if you are just operation alone. If you are part of a mining pool then it depens a bit more on how the programs are set up, but in that case it's quite possible that you will be running a server. [[User:Taemyr|Taemyr]] ([[User talk:Taemyr|talk]]) 12:29, 10 April 2013 (UTC)


== Word 2007 - Headers & Footers ==
== Word 2007 - Headers & Footers ==

Revision as of 12:29, 10 April 2013

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

Main page: Help searching Wikipedia

   

How can I get my question answered?

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



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

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


April 5

Working on many files in unix

I need to write a bash script to run a program against all the files in a directory tree. The program takes two arguments, the input filename and the output filename where the output filename should be the same as the input filename but with a suffix added. So, for one file it works something like this: program -i filename -o filename.suffix. For many files I thought about using the find command, but can't get either the -exec action of find or xargs to work with the filename appearing twice or with a shell function. So that is something like:

find . -type f -exec program {} {}.suffix ;

or

afunc()
{
   program $1 $1.suffix
}
 
find . -type f -exec afunc {} ;

The first reports "find: missing argument to `-exec'". The second reports "find: `afunc': No such file or directory".

I am also looking for a way to avoid processing a file which has already been processed (and ending up with 2 suffixes) and for a way to report and act on any error messages the program might produce, but without stopping the script. Astronaut (talk) 09:26, 5 April 2013 (UTC)[reply]

The first case should end in ;\ so
    find . -type f -exec program {} {}.suffix ;\
The second case can't work because afunc is a name inside this bash script, and program is a subprocess of a subprocess of that shell. You can create another script and have find's exec call that. Personally my bash scripting is weak and I devolve anything but simple tasks to a Python script (where os.walk does the hard work). -- Finlay McWalterTalk 10:53, 5 April 2013 (UTC)[reply]
Shouldn't it be \; rather than ;\ ? (That is, you want to escape the semicolon argument required by find from being misinterpreted by the shell as a command separator.)—Emil J. 14:11, 5 April 2013 (UTC)[reply]
Oops, yes, it should. -- Finlay McWalterTalk 14:12, 5 April 2013 (UTC)[reply]
  • I've written probably thousands of scripts that do things like that (neuroscience data analysis), and I recommend using a "for" loop. You can probably use $(ls -r) or something similar to generate a list of files. I have always used C shell because I know it better, so I can't be very helpful about the specific syntax, but I've always been able to make that method work pretty easily. Looie496 (talk) 15:32, 5 April 2013 (UTC)[reply]
If you make your afunc into a shell script (a file, rather than a shell function in memory — sad that it's a redlink, since shell functions are quite useful; we do discuss them a bit at alias (command)), find will be able to invoke it (perhaps as ./afunc.sh). If you write the script as
#!/bin/bash
for t; do
  program "$t" "$t".suffix
done
you will be able to pass multiple files to it (as with most commands), and then you can use find -type f | xargs ./afunc.sh (or, to properly handle unusual file names, find -type f -print0 | xargs -0 ./afunc.sh). (When the actual command, rather than a wrapper script, accepts multiple arguments, using xargs is also more efficient.) There is likely also a syntax -exec ./afunc.sh {} + that is similar to using xargs, including that you cannot do {} {}.suffix this way.
As for not double-processing, you can ask find to exclude files whose names match a pattern: find -type f \! -name \*.suffix .... (The ! and * are like ; in that they are special to the shell and so must be escaped to be delivered intact to find.)
As for error messages, by default they appear on stderr, and it can be a bit of a pain to intercept and interpret that. However, any properly-designed program will have an exit status you can use. Just like -type f specifies a condition, -exec ... \; does too: it "passes" if the command reports that it is successful. In this fashion you can make a sort of "find script" that does things for each file for which processing succeeded or failed:
find -type f -exec program {} {}.suffix \; -print # name the files that worked
find -type f \! -exec program {} {}.suffix \; -print # name the files that failed
# Complicated example: run additional programs on each success/failure:
find -type f \( -exec program {} {}.suffix \; \( -exec success {} \; , -true \) -o -exec failure {} \; \) \)
Alternatively (and more powerfully), you can do this in your shell script (whether it supports multiple files or not):
#!/bin/bash
program "$t" "$t".suffix && echo "$t" # name file that worked
program "$t" "$t".suffix || echo "$t" # name file that failed
# Complicated example: run additional program depending on success/failure:
if program "$t" "$t".suffix; then
  success "$t"
else
  failure "$t"
fi
The shell is also capable of doing things like checking for preexisting suffixes, checking for preexisting files you might not want to overwrite, and capturing stderr if that turns out to be necessary. --Tardis (talk) 16:02, 5 April 2013 (UTC)[reply]

online shop stuff

The trouble with selling stuff online is that you can either pay to use various services, such as amazon, ebay, paypal and so on, or it works out cheaper and easier to sell through your own website, but they cost so much more and take more time and effort to set up to start with. So, I had this idea of setting up a website where people pay a small fee for a subdomain and a template to sell through, in particular it gives them a platform through which to automate the use of various payment services, particularly accepting debit and credit card payments and such like. But the question is, this being my website but with other people using it to sell their stuff, would they use my merchant payment accounts, or would each person need to set up their own to arrange these transactions separately?

And in general, would this idea work, or is there something else that I haven't thought of?

Kitutal (talk) 19:35, 5 April 2013 (UTC)[reply]

I’m not sure I see how it would differ from existing services of the type you already mentioned. ¦ Reisio (talk) 19:44, 5 April 2013 (UTC)[reply]
There already exist services like you describe. Shopify is a big one, but there are a number of others.
So it's certainly possible. APL (talk) 19:45, 5 April 2013 (UTC)[reply]
Yahoo also offers a similar service : SmallBusiness.yahoo.com/ecommerce.
APL (talk) 19:49, 5 April 2013 (UTC)[reply]


April 6

Check HD for errors

Carbonite says that my HD (on a Windows 8 system, NTFS) has a lot of errors when trying to read. Spinrite is supposed to test the HD and map out bad areas. Are there alternatives that do that (TestDisk may be one)? Bubba73 You talkin' to me? 01:13, 6 April 2013 (UTC)[reply]

Is CHKDSK still on Windows 8 ? It works, but it does take forever, so run it overnight (maybe one night for each disk). StuRat (talk) 01:57, 6 April 2013 (UTC)[reply]
Yes, it is still there. At first I ran it without the /R parameter, which it should have. But I ran it again. I had to tell it to do it when it reboots, and it only gives a % done, so I didn't get a report of errors. Bubba73 You talkin' to me? 13:33, 6 April 2013 (UTC)[reply]
What exactly is the error you're getting from Carbonite? If it's complaining about I/O errors, you need to get a new hard drive. If it's complaining that, say, it can't read a particular file, that probably just means the file is open in another program. Either way, chkdsk and Spinrite are unlikely to help. -- BenRG 04:35, 7 April 2013 (UTC)

Antivirus companies creating viruses

I read some time ago that an antivirus software company (or companies) had been caught creating viruses in order to boost or drive sales of their software. I can't remember much more detail than that. I'm looking for articles (on Wikipedia or news sources) that detail these actions or allegations. Thank you ahead of time. Vidtharr (talk) 18:40, 6 April 2013 (UTC)[reply]

There's evidence of that happening in China, as this story details. (The Epoch Times is not a very trustworthy source, but that story looks legit to me.) In spite of widespread rumors, that's unlikely to have happened in the US to any significant degree -- a company that did it would be risking its existence for a rather small gain. Looie496 (talk) 19:42, 6 April 2013 (UTC)[reply]
Not to mention, US companies could face lawsuits, damages, and maybe even criminal charges (IANAL). --Wirbelwind(ヴィルヴェルヴィント) 00:21, 7 April 2013 (UTC)[reply]
Not quite what you're talking about, but related: Rogue security software 38.111.64.107 (talk) 14:23, 9 April 2013 (UTC)[reply]

Problem with uninstalling Plustek USB scanner

I have a strange problem to solve: there is a PC with Windows XP, which has a Plustek USB scanner drivers and utilities installed. The files have timestamps from 1995–2000, directories were created in January 2008.

The hardware stopped functioning about 3 years ago and went to trash. Now I tried to cleanup the software, and ...the uninstaller refuses to work! It says:

Setup requires a different version of Windows. Check to ensure that you are running Setup on the Windows platform for which it is intended.
Error 102.

Possibly the Service Pack 3 has changed something in the system, so that the uninstaller no longer recognizes it. What can I do to properly remove the scanner software? --CiaPan (talk) 23:29, 6 April 2013 (UTC)[reply]

I've used the free version of Revo Uninstaller when a program's own uninstaller fails. -- Finlay McWalterTalk 23:30, 6 April 2013 (UTC)[reply]


April 7

Download

Hi all,

Could you please answer this question about IT (I don't know much about it). If I download a file and then put it on a USB stick, does the file have any "print" of my computer? I mean, can anyone know this file was downloaded to my computer before being transferred to the stick? Thanks a lot!

92.97.154.11 (talk) 02:05, 7 April 2013 (UTC)[reply]

Assuming you meant "Does it leave any trace ?", then, probably, yes. To be certain to avoid this, you'd probably need a read-only operating system, which can't possibly save any info, or you'd need to reformat the entire hard disk, after. Otherwise, some kind of tracker program running on the computer could keep a record, no matter how hard you try to prevent it.
However, saving directly onto the USB stick instead of first to the hard drive might minimize the trace, such that only the names of the files and times of downloads are stored on the hard disk, assuming nobody has installed a tracker program. StuRat (talk) 02:42, 7 April 2013 (UTC)[reply]
To remove any trace of your download:
Do as StuRat said and delete your browsing history for that time period so it doesn't look suspicious.

RunningUranium (talk) 02:59, 7 April 2013 (UTC)[reply]

The OP actually seems to be asking whether the file on the USB stick can be traced back to his computer, and the answer is almost certainly no. The file should be passed untouched from the download to your hard drive to the stick, and won't have anything added by your computer. Rojomoke (talk) 04:38, 7 April 2013 (UTC)[reply]
It will depend on the file though, some things like Microsoft Office documents tag the 'author' of the document - so if it was created on the PC and transferred to the USB it may still include the name of the computer (not necessarily something that will make it easy/realistically possible to track down the PC though). E.g. at work our laptops get a unique number as their 'name', any Word documents I create on it show that number in the author field in the properties. ny156uk (talk) 08:02, 7 April 2013 (UTC)[reply]
True, but the possibility of that will be much reduced if you don't open the file (with Word or whatever program it comes from) before passing it on. If the OP could tell us what kind of file it is, we could give a more definitive answer. Rojomoke (talk) 08:41, 7 April 2013 (UTC)[reply]

HD tune results

I'm running HD Tune (see above) and at this point the results show

HD Tune Pro: ST32000641AS Health

ID                                  Current  Worst    ThresholdData         Status   
(01) Raw Read Error Rate            118      99       6        189990865    ok       
(03) Spin Up Time                   100      100      0        0            ok       
(04) Start/Stop Count               100      100      20       119          ok       
(05) Reallocated Sector Count       100      100      36       0            ok       
(07) Seek Error Rate                87       60       30       469998064    ok       
(09) Power On Hours Count           82       82       0        16046        ok       
(0A) Spin Retry Count               100      100      97       0            ok       
(0C) Power Cycle Count              100      100      20       118          ok       
(B7) (unknown attribute)            100      100      0        0            ok       
(B8) End To End Error Detection     100      100      99       0            ok       
(BB) Reported Uncorrectable Errors  100      100      0        0            ok       
(BC) Command Timeout                100      99       0        1            ok       
(BD) (unknown attribute)            100      100      0        0            ok       
(BE) Airflow Temperature            60       57       45       689831976    ok       
(BF) G-sense Error Rate             100      100      0        1            ok       
(C0) Unsafe Shutdown Count          100      100      0        46           ok       
(C1) Load Cycle Count               100      100      0        119          ok       
(C2) Temperature                    40       43       0        40           ok       
(C3) Hardware ECC Recovered         54       27       0        189990865    ok       
(C5) Current Pending Sector         100      100      0        0            ok       
(C6) Offline Uncorrectable          100      100      0        0            ok       
(C7) Ultra DMA CRC Error Count      200      200      0        0            ok       
(F0) Head Flying Hours              100      253      0        16368        ok       
(F1) LifeTime Writes from Host      100      253      0        -1989403685  ok       
(F2) LifeTime Reads from Host       100      253      0        -1902847635  ok       
Health Status         : ok

Looks like almost 190 million raw read errors. But it says OK. Do these error numbers seem reasonable? Bubba73 You talkin' to me? 03:24, 7 April 2013 (UTC)[reply]

From what I understand from [1], threshold is not the number of errors, but rather the limit. Your current test has 118 read errors, and before that the most number of errors was 99. The link I found doesn't show two values for Threshold. Maybe the program's help is more current or explains it better. RudolfRed (talk) 03:38, 7 April 2013 (UTC)[reply]
No, the "current", "worst", and "threshold" values are not counts of anything; they are abstract health values where higher is better and 100 (or sometimes 200 or 253) is normal. "Threshold" is a manufacturer-chosen constant value that's supposed to indicate the point at which you should think about replacing the drive. The "data" value is sometimes an actual count (as in "Power On Hours Count" and "Power Cycle Count").
The most relevant statistics here are the ones related to bad sectors: "Reallocated Sector Count", "Reported Uncorrectable Errors", "Current Pending Sector", and "Offline Uncorrectable". All of them are zero. That means the drive has never reported an I/O error to the operating system, so whatever error you're getting from Carbonite is not a drive hardware problem. -- BenRG 04:53, 7 April 2013 (UTC)

The HDTune test finished and those still show zero. You asked what error I was getting from Carbonite - it is a long story. I bought Carbonite HomePlus because one thing it does is make a mirror image of the HD to an external HD (which is a USB3 in my case). The docs say that it will take several hours to make the initial mirror image. It was taking a very long time. It was getting < 1% of the CPU and usually < 1% of the disc bandwidth. It was usually 0.1-0.2 MB/sec. Sometimes it would jump up to a few MB/sec and sometimes to 20-25 MB/sec. It was going to take several days at this rate, and I have only 300GB on the drive. I talked to Carbonite tier 1 and tier 2 tech support a few times, and some said that it just takes that long and others said that something is wrong. It finally finished after almost 6.5 days (155 hours). I think this is unacceptable because the mirror image is useless until it gets a complete image. (I had to reformat the external HD to do it, and had wiped a Microsoft drive image in the process, thinking that it would only take a few hours to do the new one. The MS one had taken only 3 hours.)

Anyhow, they bumped me up to tier 3 support, but it took more than a week for us to find a good mutual time. By that time the initial mirror image had completed. Tier 3 said that I had way too many HD errors. He said that my HD is so bad that the minuscule amount of processing that Carbonite is doing on it (about 0.1% of its capacity) is putting too much stress on it (which I don't believe). He said that the mirror image was useless because if my HD crashed and I replaced it and restored from the mirror image, what ever is wrong would cause the new drive to crash. And if I put in another new drive after that and restored, whatever is wrong would cause it to crash. (I don't believe this either, since if I have a H crash, it will be a head crash or other physical breakdown.) He wanted me to quit using the mirror image feature and refund part of my money and downgrade me to carbonite w/o the mirror image. I didn't want to do that, because I didn't really understand how it could cause a replacement drive to crash. He did turn off the daily updates of the mirror image.

So Carbonite software never gave me an error message, it just took a very long time for the initial mirror image. THe tech support people were all very nice, but they told me conflicting things and things I find hard to believe. Bubba73 You talkin' to me? 23:55, 7 April 2013 (UTC)[reply]

You should talk to a different support person, since that one has no idea what he's talking about.
Did HD Tune finish scanning the disk a few hours, or did it take days? If I understand correctly, you are not actually getting an error from Carbonite, it's just running slowly. Possibilities: 1. Another program may have been trying to access other files on one of the drives during the backup, causing a lot of back-and-forth seeking which can slow everything to a crawl. 2. There are a couple of SMART parameters above that do seem to show significant degradation: "Seek Error Rate" and "Hardware ECC Recovered". Both of those could conceivably slow things down. The next time you have this problem, you could look at the data values for those parameters in real time and see if they're increasing. 3. Maybe it's the backup drive that's failing; have you checked its SMART values? 4. There could be something wrong with the USB connection causing it to fall back to USB 1 speed. -- BenRG 05:32, 8 April 2013 (UTC)

HTTP Cookie

When a website is visited generally a cookie file is created at the server side then sent and stored in the client side.Is it possible for a human user to manually decrypt this cookie file with or without the help of some software tool.If so how?Will some Wikipedian elaborately expain this by giving an example? — Preceding unsigned comment added by Ichgab (talkcontribs) 07:17, 7 April 2013 (UTC)[reply]

You can view the contents of a cookie easily; most browsers have a simple function to do that. In Firefox it's rightclick -> viewPageInfo -> security -> viewCookies. But most cookies you'll see have a value that's just some random letters (or maybe a few labelled sequences of random letters). This isn't encrypted, so there's no decrypting to be done. Mostly cookies are like railway tickets: they have some numbers in them, and the important one may be a ticket number - but (unless you're a serious trainspotter) all the numbers are, from your perspective, essentially inscrutable. -- Finlay McWalterTalk 08:31, 7 April 2013 (UTC)[reply]
Not just one cookie either. Wikipedia has 14 cookies on my PC.--Shantavira|feed me 14:36, 7 April 2013 (UTC)[reply]
Cookies aren't encrypted, although the values inside the cookie can be encrypted. For example, on the web site I work with, we store a session ID in the cookie, but encrypt it for security purposes. If the session ID wasn't encrypted, it may be possible for a hacker to hijack someone else's session. A Quest For Knowledge (talk) 14:50, 7 April 2013 (UTC)[reply]

android ≠ / = android

I bought my first android tablet (a cheap Ainol Novo7 Mars), that has a lot of chinese programs among with english ones and does not have my native language installed. It has now 4.0.3 system from manufacture's update. Can I install another android 4.0.3 or 4.0.4 system in it or even higher like 4.1.x or 4.2.x?--RicHard-59 (talk) 12:50, 7 April 2013 (UTC)[reply]

This video shows how to change the OS interface to English. Mostly you can only get OS updates from the manufacturer; the Android distribution from Google is intended for manufacturers, who configure it for their specific machine and add in stuff like device drivers for that particular platform. In a few cases you can get homebrew builds from enthusiasts, working to replicate the manufacturer's work. Looking at the NOVO7 article, it links to two CyanogenMod based firmware builds for the NOVO7; you should look into those, or in general check the CyanogenMod forums. -- Finlay McWalterTalk 13:12, 7 April 2013 (UTC)[reply]
I have the slightly older Novo 7 Basic and got useful advice from the forums at tabletrepublic. Their Novo 7 Mars forum doesn't have much content at present but would be a good place to ask for help. Flash my android is a forum with slightly more content, and has details of a 4.0.4 rom. I have no idea myself how good this rom might be.-gadfium 23:38, 7 April 2013 (UTC)[reply]

How old to learn Java?

When is the general upper limit, age-wise, for learning how to program in various code languages such as Java? Neuroplasticity degrades with age, so learning how to do it younger, I would image, would be best. If someone is in there mid-twenties, is it too late to learn how to program in Java well enough to make small Android apps? Acceptable (talk) 15:17, 7 April 2013 (UTC)[reply]

People tend not to go on degree courses once they get past 90 so I'd say somewhere around there is where one should perhaps give it a second thought. Dmcq (talk) 16:45, 7 April 2013 (UTC)[reply]
It’d probably be best to learn as much as early as you can, but there’s no particular reason to not learn it later in life if you have an interest. One might rethink learning Java™ for some other language that’ll have a better future, though. :p ¦ Reisio (talk) 17:30, 7 April 2013 (UTC)[reply]
I'm fairly sure that I pick up new programming languages now as fast as when I was 16 or 25 (and I have a lot more "experience" now ;-). I think Dmcq is spot-on. As long as you can hit the right key, you should be able to learn to program. --Stephan Schulz (talk) 19:56, 7 April 2013 (UTC)[reply]
There is a big difference, I might add, from learning Java as one of many programming languages you already know and learning Java as your first programming language. If you already more or less know how to program, especially OO languages, then adding Java can be done practically at any age over the course of a few weekends. If you're learning to program Java from nothing, that involves quite a lot more brain-stretching. In any case, I don't think mid-twenties is any kind of cutoff date whatsoever. I know people who have learned significantly new computing skills well into their 40s and I really don't see why there should be any significant cutoff well until one is very old indeed. To make an analogy, there are many people who learn how to play piano very late in life. Do any of them become brilliant virtuosos? Probably very few. But there is quite a lot of gulf between "enjoys playing piano" and "plays sold-out concert halls." I doubt someone coming to programming very late in life is likely to be the next genius programmer, but that doesn't mean they can't make apps or many other things. --Mr.98 (talk) 20:08, 7 April 2013 (UTC)[reply]

Linux Firefox download of .webm vs .flv

I downloaded a video from youtube using the plugin Flash Video Downloader, and selected the .webm file. The 306MB file took about three minutes to download. Just for a laugh, I decided to download the .flv version of the file and the 262MB took 29 minutes. Why should this take 10 times as long? --TrogWoolley (talk) 15:50, 7 April 2013 (UTC)[reply]

I'm not familiar with that particular extension (and the reviews for it don't persuade me that installing it is a good idea), but that performance hasn't been my experience, with similar extensions. FLVs, from YouTube or elsewhere, download many times faster than real-time for me, on a normal ADSL connection. It may be that your particular extension (documentation for which I failed to find) has code to deliberately choke FLV download speeds so it resembles the pattern of an actual Flash player (so as to thwart anti-download measures some cites may implement). If that's the cause, one would hope there was an option to disable that behaviour for sites, like YouTube, that don't care. -- Finlay McWalterTalk 16:04, 7 April 2013 (UTC)[reply]
You’d probably already watched the .webm version, and therefore already had it all cached somewhere, so the download was more of a move. ¦ Reisio (talk) 17:32, 7 April 2013 (UTC)[reply]
In my experience, different display resolutions will download at different speeds from YouTube. I don't know anything about the webm format, but what might be happening is that the FLV is at a smaller resolution than the webm file, which will download slower. With my downloading plugin for Firefox, when I choose 240p, I get ~50KB/sec. With 480p I get 150+ KB/sec, and with 720p I can get over 1MB/sec. -- 143.85.199.242 (talk) 15:43, 8 April 2013 (UTC)[reply]

April 8

Firefox prevent accidental quit

Because command-Q is sitting right there between command-W and command-Tab, it sometimes happens that I accidentally tell Firefox to Quit when all I really wanted to do was close a tab or a window, or switch to another app. And this is a problem, because I always have lots and lots of tabs and windows open (I'm not gonna say how many), all containing important state.

Once upon a time I had Firefox configured to warn me when I did this, but it seems to have disappeared with an upgrade somewhere along the way, and I can't find the option anywhere; now it just quits. Fortunately there's a workaround, of sorts: all I have to do is open $HOME/Library/Application Support/Firefox/Profiles/xyz.default/sessionstore.js, jump to the end of the 2 meg of JSON gobbledegook, find the string that says "state":"stopped", change "stopped" to "running", and restart Firefox, whereupon it graciously offers to restore all my tabs and windows for me. But I'd really like to find the old option, to automate or obviate this. Is there a low-level "every option ever" screen hiding somewhere, or do I need a separate plug-in for that, or what? —Steve Summit (talk) 02:51, 8 April 2013 (UTC)[reply]

In the location bar, go to about:config, search for “quit”. There’s another option for altering how the session/crash restore functionality behaves, and the keyconfig extension could disable CTRL+Q altogether for you. ¦ Reisio (talk) 05:04, 8 April 2013 (UTC)[reply]
You can apparently change the quit key to command-shift-Q by typing defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Firefox" = "@$Q";}' in a terminal, or use the always-ask addon (both suggestions found here, not tested). -- BenRG 05:06, 8 April 2013 (UTC)
I don't know why you need to go into about:config when there's an option for this in the preferences. On my version of FF, it's under Preferences > Tabs > Warn me before closing multiple tabs. Dismas|(talk) 07:50, 8 April 2013 (UTC)[reply]
Besides that he specifically asked for about:config, and that its location and usage has always been more reliable than the ordinary preferences, I don’t either. ¦ Reisio (talk) 09:09, 8 April 2013 (UTC)[reply]
Thanks, Reisio. In about:config, browser.showQuitWarning seems to have the desired effect. With that set to true, command-Q now pops up the dialog I had in mind, asking "Do you want Firefox to save your tabs and windows for the next time it starts?" and offering 'Quit', 'Cancel', and 'Save and Quit' buttons.
Dismas: I don't know why I have to go into an advanced, warranty-voiding configuration screen to achieve this functionality, either, but on this version of Firefox (5.01 on a Mac), the checkbox you mentioned under "Preferences > Tabs > Warn me before closing multiple tabs" seems only to affect the behavior when closing a window containing multiple tabs, not when quitting a session containing multiple windows or tabs. —Steve Summit (talk) 10:25, 8 April 2013 (UTC)[reply]
There is of course no warranty to void. :p They haven’t changed how about:config works in ages, so again, more reliable. ¦ Reisio (talk) 15:39, 8 April 2013 (UTC)[reply]
Also note that you can do History->Recently Closed Windows to get a bunch of old tabs back. --Sean 15:43, 9 April 2013 (UTC)[reply]

USB sound card

With an external USB sound card, does sound that would normally go to the 3.5mm speaker jacks go to the USB sound card? Bubba73 You talkin' to me? 03:41, 8 April 2013 (UTC)[reply]

If it has its own input & output, you can no doubt use those, but with the right software you should be able to use whatever audio input & output you please, too. ¦ Reisio (talk) 05:06, 8 April 2013 (UTC)[reply]

The one I'm considering has a USB input. If I play iTunes, YouTube, a website, or other sound files, the sound would normally go to the 3.5mm speaker jacks. The card should have software that would make these things go to it instead, over the USB input? Bubba73 You talkin' to me? 05:16, 8 April 2013 (UTC)[reply]

If you mean the “card” is a USB dongle that resembles a USB stick but is an audio device instead of a storage device, without audio jacks of its own, obviously it (or rather the audio output it produces) would depend on the computer’s existing audio jacks. This is how most such things work, to my understanding. There’s no particular reason a USB device can’t work just like a PCI card. OS sees hardware, OS utilizes hardware.
If you can link to or otherwise specify the particular device you’re talking about, a lot more could be explained more clearly. ¦ Reisio (talk) 05:26, 8 April 2013 (UTC)[reply]
There's no way to send analog audio over USB or PCI. PCI sound cards either have audio jacks on them or have to be separately wired to the audio jacks. -- BenRG 05:51, 8 April 2013 (UTC)
Ok, this card I should be able to just put it in a slot and the sound that would normally go to the speakers would go to its phono jacks, I think. But I'd rather have one like this, if it will work as I want. It plugs into USB, has phono jack outputs and a headphone output with a volume control. I would like for the computer sound to go to it. Bubba73 You talkin' to me? 05:36, 8 April 2013 (UTC)[reply]
The USB sound card should show up as an additional audio device. Many audio players allow you to choose a non-default output device, and if not, you can set it as the default. -- BenRG 05:51, 8 April 2013 (UTC)

Thank you

Resolved

Bubba73 You talkin' to me? 20:21, 8 April 2013 (UTC)[reply]

Am I the only one around here who doesn't know how? (Particularly, the moving gifs?)

Also, what are the time-limits to how much footage can be put in a gif?

Moreover, if I decide to print it out physically, what frame will show on said print-out? (Beginning? Middle? End?) Thanks. --129.130.237.131 (talk) 04:20, 8 April 2013 (UTC)[reply]

It's pretty easy to create an animated GIF using GIMP -- you just have to create a multi-layer image and then save it in the right way, and each layer becomes a frame. There is no time limit in principle, but each frame increases the memory size of the GIF file. The results of printing one depend on which print utility you use. In most cases you just see the first frame. Looie496 (talk) 04:43, 8 April 2013 (UTC)[reply]
I found this it seems to be a very easy to use software. Just saying, there is no time limit but it is best not to exceed say 20 frames (but thats just my opinion). This is also because the more frames means bigger file sizes (and if your going to upload it onto a website they usually have size limits).  RunningUranium  07:11, 8 April 2013 (UTC)[reply]
To clarify, do you want to create animated GIFs from a utility, like GIMP, or from a program you write ? If you want help with the later, I can make some suggestions. (See the bottom of my home page for some animated GIFs I created with my own program.) One limitation to keep in mind is that each frame of an animated GIF can only have 256 colors. This pretty much eliminates full color shading, but you can do 2-color shading (like red to blue). StuRat (talk) 02:52, 9 April 2013 (UTC)[reply]
The other two questions you asked:- No you were not the only one who doesn't know how. ;-) And for a gif displayed without a special player the first frame is the one printed or displayed if there is no animation - the format itself does not support any standard way of specifying any other frame. Dmcq (talk) 09:11, 9 April 2013 (UTC)[reply]

Terminology for error-message reduction

Many years ago, when mainframe computers became commonplace, there was a "programming paradigm" for end-user documentation to list a complete set of so-called "error messages" which were typically listed in a document explaining the meaning of each error message, often coded with an error-message id number. However, I am looking for a term that means programming in a style of "error-message reduction" where invalid data is just echoed back to the user, rather than flagged with a numbered error message. For example, in writing a span-tag:

  • Old style result: <spann xx> <--ERROR G45-H78P: Unrecognized keyword "spann" at line 345 column 27
  • New style result: <spann xx>

In the newer style of programming, it just echoes back the invalid input text, "<spann xx>" when an unrecognized keyword "spann" is used in the markup language, and there is no error message displayed, and no error id number, and no document to list all error messages. Sometimes that is easier, but sometimes the lack of error messages can be confusing. Question: what is that programming paradigm called, to not show a bunch of error messages, but only echo back the data, when a problem is detected? -Wikid77 (talk) 07:49, 8 April 2013 (UTC)[reply]

“Bad programming”. ¦ Reisio (talk) 15:42, 8 April 2013 (UTC)[reply]

Firefox crashes more unexpectedly than before

I run Firefox (latest version, it upgrades automatically) on a Windows XP computer. I have had problems for years with Firefox either crashing or freezing (and necessitating me to do a forced close through the Task Manager) when it is doing something: when I try to open a webpage with lots of content, especially scripts or media, or when I try to close one or many tabs or pages.

Lately, I have had the problem with Firefox just quitting unexpectedly without any such obvious cause (and no signs of previous distress such as slowing down) when I'm not really doing anything except reading content on an already open page. Is this something others have experienced with later versions of Firefox, or is it just that my computer is getting old or needs more memory? --Hegvald (talk) 10:21, 8 April 2013 (UTC)[reply]

I think it’s probably more that your computer is getting old and needs more memory (and that its OS/version is incredibly out of date and more insecure than ever). ¦ Reisio (talk) 15:41, 8 April 2013 (UTC)[reply]
Up until a month ago, I used to use Firefox 1.5 on an XP machine from 2006 (2 GhZ, 1 GB of RAM) for nearly all my browsing as I preferred it over later versions, with Firefox 12.0 also installed to support any pages that 1.5 didn't (e.g., HTML5). (I upgraded my machine because of increasing gaming/video speed/lag issues with my seven-year-old hardware, not anything else. And Reisio, I never had any issues with XP itself or insecurity -- only hardware issues.) I noticed that 1.5 would freeze on certain pages as well, especially ones with Javascript. I kept Javascript disabled by default, used a plugin called Keyconfig (hotkey configuring plugin) to re-enable and disable Javascript at the touch of a button for pages that needed it, and my problems disappeared. (In fact, the site that led me to do this was Wikipedia -- the internal design changed to include something that froze Firefox for ~10 seconds when loading anything, until I disabled Javascript.) -- 143.85.199.242 (talk) 16:01, 8 April 2013 (UTC)[reply]
Try to disable all add-ons and see what happens. Many of them are not compatible with the latest version. OsmanRF34 (talk) 16:25, 8 April 2013 (UTC)[reply]
I agree that something happened with Firefox (on XP) in the last month or so. It is often very slow or even freezes completely. However in past few days it caused several BSoDs! And this happened on the machine that could work for weeks without needing a restart. Ruslik_Zero 19:20, 8 April 2013 (UTC)[reply]
Here's another piece of unreferenced advice for you, a little more specific than what OsmanRF34 suggested: when FF freezes, bring up Task Manager and kill the "plugin-container" task. The desired response is:
  • All flash animations crash and are replaced with a grey box,
  • Each box says "The Adobe Flash Player has crashed" or equivalent text, and
  • Firefox starts scrolling, responding, etc again.
If that's what happens for you, then Flash is the problem, not Firefox. Good luck -- but if this doesn't work, you're back to Osman's suggestions.
--DaHorsesMouth (talk) 23:35, 8 April 2013 (UTC)[reply]

Firewalls in Linux

Is there a firewall in Linux which would let me block or allow applications? (instead of port or protocols).OsmanRF34 (talk) 15:59, 8 April 2013 (UTC)[reply]

It looks like iptables can do it if your kernel supports the feature.
From the man page: "--cmd-owner name
Matches if the packet was created by a process with the given command name. (this option is present only if iptables was compiled under a kernel supporting this feature)" 38.111.64.107 (talk) 17:39, 8 April 2013 (UTC)[reply]

Flashing "cursor" static

I have a new ASUS computer with which I am generally impressed. But when I am on a static backgound (i.e., a white or black backgrond that is not animated or otherwise changing) I see what looks like an underline (i.e., _ ) cursor randomly flashing around the screen, appearing just long enough to be consciously visible (maybe 1/20th of a second) in black on white backgrounds, or white on dark backgrounds, maybe 5-10 times a second as I notice it. I see it now as I am typing in the edit box. I see it when I am reading the FBI/Interpol warning on copyrighted movies. I don't see it during the movie, on my desktop, or when there is some sort of moving picture like a dvd or a youtube clip playing. Can anyone suggest what this might be called, what might cause it, and where I can go for advice on how to fix it? Thanks. μηδείς (talk) 20:23, 8 April 2013 (UTC)[reply]

Maybe that's a dead pixel? Your guarantee should cover that. OsmanRF34 (talk) 20:28, 8 April 2013 (UTC)[reply]
No, it flashes all over the screen, white on dark backgrounds and black on light backgrounds, very much like analog TV static, although in the shape of _ and one at a time so far as I have noticed. μηδείς (talk) 21:14, 8 April 2013 (UTC)[reply]
A dancing hyphen blitting around the screen! I've worked as a graphics engineer for a long time, and although I have never seen your make-and-model system, I know exactly what symptom you're talking about. This symptom is very frequently a characteristic of a bandwidth-starved DMA from a graphics device into a frame buffer. That symptom will occur if the total system load is just a notch too high for the system's capabilities; and it manifests as a nearly non-deterministic data-error at very low rate. (Therefore, the hyphen or hyphens - a few consecutive pixels in a row - appear in "totally random" locations). It may sometimes be solved by re-calibrating or re-tuning software priorities; (this is something the manufacturer or its engineering staff will do); so as an end-user, you would need to wait for a new driver update or firmware release. In some cases, it is a hardware performance limitation and cannot be solved through software-update. In modern systems, it is not easy to determine when or why a DMA accelerator may become bandwidth-starved; if the root-cause were obvious or solvable through naive methods, the engineers would have already fixed it before shipping your system. Monitor the manufacturer's website for software- and driver- updates. Nimur (talk) 21:24, 8 April 2013 (UTC)[reply]
Yes, I figured this had to be some sort of processing issue, since it doesn't appear at all times. But it is a top end computer, i7 quad core 16 GB RAM, nvidia gforce gtx.... Is it possible that there's some software that I have now that I can uninstall that might help, or is it possible there's some update available now that I might look for? Thanks. μηδείς (talk) 21:41, 8 April 2013 (UTC)[reply]
I wonder if a different resolution (which could have a different refresh rate) would work better here. Maybe the top resolution looks good, but doesn't work for all users, so they didn't catch the problem. So, choose another resolution and see what happens. OsmanRF34 (talk) 21:38, 8 April 2013 (UTC)[reply]
I lowered the res to 1600/900 and the problem seems to have gotten better, but not gone away. In fact, the less frequent blinking seems more distracting, as I type! μηδείς (talk) 21:46, 8 April 2013 (UTC)[reply]
Checked for new drivers? [[2]]
I wonder if connecting to the monitor with a different type of cable might help. That is, HDMI versus D-sub, etc. StuRat (talk) 02:46, 9 April 2013 (UTC)[reply]
It's a laptop. μηδείς (talk) 03:08, 9 April 2013 (UTC)[reply]
Try an external monitor then, if only to help isolate the problem. StuRat (talk) 03:16, 9 April 2013 (UTC)[reply]
If it is new I'd contact the manufacturer about fixing or replacement. Dmcq (talk) 08:53, 9 April 2013 (UTC)[reply]

The 'other' Google employees

Are Google's perks for all its employees or only for a selected group of developers? Is working for Google as accountant, client manager, janitor or whatever much different than in other companies? OsmanRF34 (talk) 20:26, 8 April 2013 (UTC)[reply]

For all employees. But crucially many services in a typical Silicon Valley company are outsourced to contractors, whose employees thus aren't employees of that company and so don't get its benefits (they get whatever benefits their own employer has). So you'd expect security, janitorial, property-services, landscaping, and folks like that to work for some outside company that specialises in that specific task. White-collar services like recruiting, accountancy, HR, payroll, and legal will often be split with some folks in-house and others working for another company. -- Finlay McWalterTalk 20:35, 8 April 2013 (UTC)[reply]


April 9

Does mining for bitcoins count as a server?

I am interested in joining a pooled group of users to mine for bitcoins with a secondary computer that I would like to set aside solely for this purpose. I am on a US university campus internet system. Our policy states that we are not allowed to connect a server to the school internet system (to prevent bandwidth hogging I'm assuming). Does mining for bitcoins count as using my computer as a server? Does it hog large amounts of internet bandwidth relative to using a computer for more "normal" usages? Acceptable (talk) 00:14, 9 April 2013 (UTC)[reply]

You're basically trying to use the university's facilities for a private moneymaking (literally!) enterprise, and I don't think we ought to advise you on the legalities of that. Looie496 (talk) 03:50, 9 April 2013 (UTC)[reply]
That's not the question the OP is asking though; it is a technical one, not a legal one. Even in terms of "legalities," this is less a matter of the law per se than it is the university's IT policies. (There is no law against making money at university; there are sometimes internal policies regulating it.) --Mr.98 (talk) 13:04, 9 April 2013 (UTC)[reply]
My understanding of Bitcoin pooling is not great, but from what I can tell, it seems to involve:
  • Downloading a little bit of information
  • Processing that information
  • Uploading a little bit of information when you're done
If the above is true, then none of that ought to use very much bandwidth, and none of which ought to count as a being a server. And today, "normal" usage means things like streaming movies or music, which take huge amounts of bandwidth by comparison. But if you are really concerned about violating your university IT policies you should contact them. --Mr.98 (talk) 13:04, 9 April 2013 (UTC)[reply]
"Server" is a bit og a loose term in IT today. However barring any clear indications otherwise I would interpret it to mean a machine or process that waits for and acts on "requests" that originates "elsewhere". Mining for bitcoins will not match that definition if you are just operation alone. If you are part of a mining pool then it depens a bit more on how the programs are set up, but in that case it's quite possible that you will be running a server. Taemyr (talk) 12:29, 10 April 2013 (UTC)[reply]

Word 2007 - Headers & Footers

I have a document for translation, and the original has headers and footers on each page, which also need to be translated. Normally, this would not be a problem, but it appears that on the first page only, there is a title above the header. This title is not part of the header, nor does this title appear on any other page. How is it possible for me to add this title in above the header, and only on this one page, so that when I move onto the second page, the header for the second page will be at the top, with nothing above it? KägeTorä - (影虎) (TALK) 08:11, 9 April 2013 (UTC)[reply]

You can have a unique header for the first page only (demo). So on that first page, you'd duplicate the normal header, and then add in the additional matter at the top of the header. -- Finlay McWalterTalk 08:29, 9 April 2013 (UTC)[reply]
Thanks! Just what I need.--KägeTorä - (影虎) (TALK) 11:04, 9 April 2013 (UTC)[reply]

Router: current UK pronunciations?

Hi folks. I'm retired from editing WP, and am here as a consumer. Posting at the computing desk rather than the language desk because I want accurate answers from real UK speakers of computer jargon, not from "official" sources.

How is "router" (the computer term, not the woodworking term with the different etymology) pronounced in the UK? I had assumed that it would rhyme with "doubter" (as in the US, and here in Australia), not with "looter"; but I have checked several British dictionaries, and they want it to rhyme with "looter".

So, actual UK geeks: how do you say it? (₰?) Many thanks.

NoeticaTea? 11:21, 9 April 2013 (UTC)[reply]

In this episode of Channel 5's The Gadget Show, Jason Bradbury and Ortis Deley both pronounce it like "looter". -- Finlay McWalterTalk 11:33, 9 April 2013 (UTC)[reply]
In the episode of the BBC's Click from the 30th of March (it's off iPlayer, but you'll find it on YouTube), reporter Dan Simmons says it like "looter" too (2 minutes 40 in). -- Finlay McWalterTalk 11:39, 9 April 2013 (UTC)[reply]
And as a British IT pro I can personally confirm (is OR OK this once?) that that's how we say it. For the record, we also pronounce "route" the same as "root". Rojomoke (talk) 12:13, 9 April 2013 (UTC)[reply]
Yup, it's a 'Rooter' - which helps us distinguish it from a 'Rowter', or, as Handy Andy would say, a raah'er. - Cucumber Mike (talk) 12:35, 9 April 2013 (UTC)[reply]
"Rooter" :) --Gilderien Chat|List of good deeds 12:47, 9 April 2013 (UTC)[reply]

Plenty of people in the USA pronounce it “rooter” as well, though probably a minority. “route” (as in a road) is frequently pronounced “root”. ¦ Reisio (talk) 18:14, 9 April 2013 (UTC)[reply]

As in Route 66, for example. AndrewWTaylor (talk) 18:51, 9 April 2013 (UTC)[reply]
I'll confirm, you're in the minority in the U.S. if you pronounce it that way. Shadowjams (talk) 21:37, 9 April 2013 (UTC)[reply]
Not sure you’re an authority :p but it wouldn’t surprise me. ¦ Reisio (talk) 05:16, 10 April 2013 (UTC)[reply]

I am grateful for the information, guys. Seems the dictionaries have it right. In Australia we are generally aware of British and American differences, and of where our own pronunciation and vocabulary choices fit on the linguistic map. But there are exceptions. Here's what I think now: Normally, we would follow the British norm for such a word. We, like the Brits, say "root" for the well-established word "route", of course. But the computer term "router" is a newcomer, and we take advantage of its general Americanness and its novelty to avoid an awkward echo of "root" meaning "fuck" (both noun and verb). That is very coarse old Australian; so we prefer the American pronunciation almost exclusively. On the other hand, this would not explain our pronunciation of "cache" the American way: "caysh", not "cash" or "cahsh". Hmmm.
NoeticaTea? 09:30, 10 April 2013 (UTC)[reply]

Compatibility of add-ons/extensions/plug-ins across browsers

If they are in javascript, shouldn't that be the case? However, you normally get browser specific add-ons offered. Why is it like that? OsmanRF34 (talk) 13:17, 9 April 2013 (UTC)[reply]

Basically, if a plugin is written in Javascript (which not all are!), it requires an environment to run in. Each browser has its own way of making plugin environments for the Javascript. You can't just take raw Javascript and have it act as a plugin. (You can run it on a webpage, but that's not the same thing.) Because there is no universal plugin environment, each browser handles it somewhat differently, and thus each plugin needs to be written for the specifics of each browser. Basically. --Mr.98 (talk) 15:15, 9 April 2013 (UTC)[reply]

external HD SMART results

Above I was talking about problems with making a Carbonite mirror image to an external HD. I thought they were saying that my internal HD was having problems. It looked OK under HDTune. I ran it on all my drives (2 internal, 4 external) and the external HD I was making the mirror image to gave some strange results:

HD Tune Pro: Seagate GoFlex Desk      Health
ID                                  Current  Worst    ThresholdData         Status   
(01) Raw Read Error Rate            119      99       6        223195006    ok       
(03) Spin Up Time                   89       89       0        0            ok       
(04) Start/Stop Count               98       98       20       2791         ok       
(05) Reallocated Sector Count       100      100      36       0            ok   *    
(07) Seek Error Rate                77       60       30       55977040     ok       
(09) Power On Hours Count           90       90       0        9035         ok       
(0A) Spin Retry Count               100      100      97       0            ok   *   
(0C) Power Cycle Count              100      100      20       94           ok       
(B7) (unknown attribute)            1        1        0        119          ok       
(B8) End To End Error Detection     100      100      99       0            ok   *
(BB) Reported Uncorrectable Errors  100      100      0        0            ok       
(BC) Command Timeout                100      84       0        12386497     ok   *    
(BD) (unknown attribute)            100      100      0        0            ok       
(BE) Airflow Temperature            33       28       45       1127809091   ok       
(BF) G-sense Error Rate             100      100      0        0            ok       
(C0) Unsafe Shutdown Count          100      100      0        25           ok       
(C1) Load Cycle Count               99       99       0        2930         ok       
(C2) Temperature                    67       72       0        67           ok       
(C3) Hardware ECC Recovered         23       4        0        223195006    ok       
(C5) Current Pending Sector         100      100      0        0            ok   *  
(C6) Offline Uncorrectable          100      100      0        0            ok   *
(C7) Ultra DMA CRC Error Count      200      200      0        0            ok       
(F0) Head Flying Hours              100      253      0        2565         ok       
(F1) LifeTime Writes from Host      100      253      0        -1605911949  ok       
(F2) LifeTime Reads from Host       100      253      0        -794413361   ok       
Health Status         : n/a

I put * by the ones that the SMART article says are crucial. Look at the (BC) Command Timeout. On my other drives, this is 0-5. On this one it is over 12 million. Also, it is running hot at 67C (others are in the 35-47 range, and I've read that 55 or so is too hot). Right now I've got it unplugged to let it cool off. So does it look like this drive is having a problem? Bubba73 You talkin' to me? 14:36, 9 April 2013 (UTC)[reply]

Phone

How do you get room to work on a windows phone 7.8? --80.161.143.239 (talk) 15:15, 9 April 2013 (UTC)[reply]

Windows v. Unix Copy

I'm working in a mixed environment of windows and Unix machines, with a Samba server making the Unix files visible to the Windows clients. I've been told that I must use the Unix command line interface to copy Unix binaries between directories, as dragging and dropping them in Windows may result in the files getting corrupted.
Is this true? Is Windows really incapable of copying a binary file from one location to another? Is Samba the culprit? I assume .exe files and others that Windows realises are binaries are somehow protected? Rojomoke (talk) 16:18, 9 April 2013 (UTC)[reply]

Copying files is rather hard, really. And doing so when calls are mediated through a foreign interface like Samba makes it harder. It's tempting to think copying a file is a matter of reading blocks of data from one file to another. And mostly this works just fine. But files are more than bytestreams, and handling them in a way that treats them as if they were risks some weird cases where the result isn't what a someone might expect. On Unix a file has, or can have, metadata, ACLs, extended file attributes and may be sparse, a symlink, or a hardlink. On Windows, NTFS files can have ACLs too (but a different kind). On Mac files can (but usually don't, now) have resource forks and on Windows (also, luckily, rarely) alternate data streams. Fancier modern file systems like Btrfs can implement copy-on-write. Sometimes you want to copy this stuff, sometimes you don't, and sometimes you want a choice. So rather than read-then-write, you really want a pre-written utility that's aware of all this scary stuff and just does "the right thing". Windows has library calls for this (CopyFile and CopyFileEx) as does OS-X (copyfile(3)). POSIX does not, and neither (as far as I know) does Linux or glibc (Linux has the rather basic sendfile(2) kernel call); see this entertaining LKML discussion about adding such a call; it mostly concludes "sendfile does some of it, we don't want to reimplement all of cp in the kernel, and it's lots of work so you go do it". Perhaps the safest thing is to call cp iself, which has tons of horrid special-case code to worry about this stuff. But it practice most of the above is super-rare, and lots of people just do read-then-write followed by some ioctls to set attributes (I just checked the source of Python3's shutil.copyfile, and that's what it does). I don't know what Samba does - the folks who write it are exceptionally smart, but given all the complexities above, it's very possible they couldn't think of a "clever" solution, and just did the obvious thing. It may simply be that those issuing the edict in question got burned once (in some hard to diagnose way) because some version of Samba didn't do things in a way they'd expected (on a file they didn't know was special). -- Finlay McWalterTalk 17:28, 9 April 2013 (UTC)[reply]
not familiar with samba, but depending on the configurations of the unix and windows networks and their connection with each other, it might be a huge load on the windows network to move giant files around when the unix network can handle them without breaking a sweat. (that, I have had experience with) Gzuckier (talk) 19:16, 9 April 2013 (UTC)[reply]
That's an excellent point... if you're moving a file on samba share A to samba share B, your local machine will do all the io on that (I'm pretty sure this is what's going on with my own network...). Samba has a lot of consideration for filesystem idiosyncrasies. The way it handles case-sensitivity has been brought up on this desk before, and it's more complicated than you'd think at first glance. The filelocking/atomic question is some low level stuff that Finlay explained nicely. A relevant follow up question is how many people are accessing these files at the same time, and how big are the pipes between them, etc. Some knowledge of the environment would probably shed some light on the impetus for the rule. The other thought I had that's not mentioned yet, is perhaps they're concerned about file permissions being consistent. There are lots of ways to handle this with samba (and I don't mean the complicated ACL stuff Finlay mentioned), but sometimes it's just easier to make a rule. Shadowjams (talk) 21:35, 9 April 2013 (UTC)[reply]

Free software to upscale images in bulk?

What's a good program to upscale a large quantity of images? By "upscale", I mean to increase the dimensions of a given file to a specified size. Quality degradation is not too terribly important, and I'm looking for a free (as in beer) program to do this, ideally without some silly watermark. Any suggestions? -71.37.142.66 (talk) 17:22, 9 April 2013 (UTC)[reply]

Imagemagick - docs -- Finlay McWalterTalk 17:29, 9 April 2013 (UTC)[reply]

Thank you! - 71.37.142.66 (talk) 17:33, 9 April 2013 (UTC)[reply]

Just in case you don't know, this isn't a very good idea, in general. You are increasing the file size without increasing the actual resolution. This is the opposite of the normal goal, to pack as much information as possible into a minimal space. If you need to display the image at a larger size, many display programs can do that without permanently increasing the file size. StuRat (talk) 03:52, 10 April 2013 (UTC)[reply]

golden ax

how can i win golden ax, what are best tricks techniqes, what surprises are there and wich is the best character, is t best to run and leep or to stand and fight and when is best to use magic? on megadrive Horatio Snickers (talk) 20:40, 9 April 2013 (UTC)[reply]

Here you go. Tarcil (talk) 21:17, 9 April 2013 (UTC)[reply]

April 10

External HD hot and not spinning down

One of my four external drives is hot and not spinning down when not in use. Utilities that read S.M.A.R.T. data show it at 67-72C at various times, which is too hot. The others spin down, but not this one. Is there a way to tell it to spin down when not in use? Bubba73 You talkin' to me? 02:58, 10 April 2013 (UTC)[reply]

If you don’t mind all your disks spinning down after the same interval of not being used, you can try using Windows’ own power options. Otherwise, you might have to rely on random third party apps.[3][4] ¦ Reisio (talk) 03:16, 10 April 2013 (UTC)[reply]
I don't want the internal drives spinning down. That temperature is cause for concern, isn't it? Bubba73 You talkin' to me? 03:31, 10 April 2013 (UTC)[reply]
Yes, I think so. You can always remove the case and point a fan at it, then unplug the HD when not in use. Not an elegant solution, but it should keep it alive at least long enough to copy anything vital off it. StuRat (talk) 03:38, 10 April 2013 (UTC)[reply]
Of the two links you gave, the HDDScan zip file doesn't have an executable file in it. HotSwap starts up but doesn't do anything. Bubba73 You talkin' to me? 03:44, 10 April 2013 (UTC)[reply]
You could try sdparm or hdparm. ¦ Reisio (talk) 03:48, 10 April 2013 (UTC)[reply]
I contacted Seagate tech support. Bubba73 You talkin' to me? 04:46, 10 April 2013 (UTC)[reply]
I contacted Seagate a few months ago to RMA a dying disk within its warranty period. The whole process went like this:
  • I raised the ticket
  • They asked me to run their own SMART utility (because they don't trust third party tools)
  • That reported the same scary SMART data that other utilities already had (the disk had thousands of 0x05 reallocations)
  • They emailed me an RMA label. I had to package the thing myself and post it, at my expense, to their facility (which for Europe is adjacent to Schipol Airport)
  • Because the disk still had data on it, I bought a new disk, dd copied the dying disk to it, and the dd blanked the bad one. The trouble with modern disks is that they're so gigantic that those dd operations took about 11 hours.
  • On receipt, they confirmed the disk was indeed bad, and mailed me a reconditioned one of the same specification as the previous one. I think it took about 11 days from my sending the bad to receiving the good. They didn't reimburse me for the postage sending the bad drive.
-- Finlay McWalterTalk 10:45, 10 April 2013 (UTC)[reply]
BTW, this is the external drive that I was making the Carbonite mirror image to (see problems above). But Carbonite said that the external drive was not the problem. (However, it might be.) Bubba73 You talkin' to me? 03:46, 10 April 2013 (UTC)[reply]
The temperature would be a cause of concern if it's correct. While I haven't used that many external HDs, I have my doubts whether it is. That's a very high temperature for a HD even locked up on a sealed case with no airflow I have doubts it's likely to get that high unless perhaps your ambient temperature is 50 degrees C. It could easily be either a defective sensor or buggy software or firmware. Unfortunately since it's external I presume you can't open it up to feel the HD casing (while the sensor is internal, if it was really that high you should feel it to some extent as the temperature differential shouldn't be that high). What is the temperature reported when just powered up after being off for a long time? Edit: However I have found some other reports [5] of similar temperatures although again it's unclear if the temperatures are correct. (The statement by the user that the transfer rate had dropped from 100MB/s to 60MB/s after about an hour doesn't exactly inspire confidence that they know what they're talking about. The transfer rate drop almost definitely has nothing to do with the temperature but the fact that the middle of the HD is slower then the beginning. In addition, it doesn't sound like they understood the importance of backups.) Nil Einne (talk) 05:56, 10 April 2013 (UTC)[reply]

Why didn't Google's Street View service cover all streets in Kansas like they did in so many other states?

Look here, there are only 2 or 3 streets in Concordia, Kansas that Street View covers. However, in many other places in the US, all streets are.

Why did Google's Street View fleet get neglectful in Kansas?

Moreover, was that a one-time project or will they send out another fleet of Street View cars in order to cover the roads that they didn't the first time? Is there any way to know whether they will come around Kansas again to map the streets that they didn't earlier? Thanks. --70.179.161.230 (talk) 07:12, 10 April 2013 (UTC)[reply]

[[6]] has the answer. It doesn't cover all the US yet. OsmanRF34 (talk) 11:45, 10 April 2013 (UTC)[reply]