Wikipedia:Reference desk/Computing
of the Wikipedia reference desk.
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.
August 31
Help repairing text of the website.
Hello, request help to repair text on this website. If you can click "English List" on the right side of the website, and then click - Authonomy 1920-36 and - Regions of KazSSR, you would see a website full of question marks. There are also a picture of the Emblem of the Kazakh Soviet Socialist Republic. The website provides a very precious and valuable information about the article, if the error can be repaired.--Jeromi Mikhael (talk) 16:13, 31 August 2018 (UTC)
- It's an encoding error. Not something we can fix from here.
- The pages are being served as:
Content-Type: text/html; charset=UTF-8
- because the web server is (not unreasonably) serving a HTTP response header of UTF-8. However the pages also have an embedded
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
- in them.
- At a rough guess, you had a website built in 2004 using the (now rather quaintly obsolescent) windows-1251 (Cyrillic) encoding. Recently you changed the server hosting and they switched to a modern and internationalised UTF-8 encoding (this is broadly a good thing). However the web page content should also have been converted in its encoding to match. Now the content and the descriptor don't match and so it's broken.
- There are two ways to fix this. One quick, one better.
- Quickly, reconfigure the web server to serve the content as Windows-1251. Some hosting companies don't permit this.
- Better, load each content file (from the file system behind the web server) and convert them to a UTF-8 encoding.
- You shoudl do the second, but it needs access to the server. We can't do it from outside. Maybe it would be possible to load these pages (as broken documents) and fix the encoding, then send them back. But that's an awkward process (I used to do it a lot, haven't needed to do it for a while). Andy Dingley (talk) 20:02, 31 August 2018 (UTC)
- @Andy Dingley: Can you extract the text from the website?--Jeromi Mikhael (talk) 00:29, 1 September 2018 (UTC)
- Not offhand, no. When I retrieve the text it is mis-encoded. Andy Dingley (talk) 11:11, 1 September 2018 (UTC)
- I get the correct display if I just set the page encoding to "Cyrillic (Windows)" in the browser. I'd say the pages are served intact, it's the browser's trying to auto-detect the encoding (or going by the info in the HTTP header instead of the meta http-equiv line, as Andy said) that's messing things up. I also downloaded the index page with wget and fed it to
iconv -f cp1251 -t utf-8
and could read the Russian in the terminal as well. Asmrulz (talk) 14:25, 1 September 2018 (UTC) - I've trouble understanding the issue. Are you the site's admin? Change the HTTP header to say Windows-1251 OR convert your files to UTF-8 AND change the META http-equiv line to say UTF-8. Are you a user trying to view the site? Change the encoding to WIndows-1251 manually in your browser and if you need to show the site to someone instruct them to do this, too. Asmrulz (talk) 14:44, 1 September 2018 (UTC)
- @Andy Dingley: Can you extract the text from the website?--Jeromi Mikhael (talk) 00:29, 1 September 2018 (UTC)
Raspberry Pi computing power
I am writing up a document that contains the following claim:
- "A Raspberry Pi is a low cost (from $5 to $35 USD, depending on the model) computer. Depending on the model, it ranges from roughly the size of a credit card (87.0mm x 58.5mm x 18.0mm / 3.4" x 2.3" x 0.7", 49.7g / 1.8oz) to roughly the size of a stick of gum (65.0mm x 31.0mm x 5.0mm / 2.6" x 1.2" x 0.2", 9.0g / 0.3oz) and runs on half a watt to three watts (up to six watts when you give it a lot if work to do).
- "But don't be fooled: this is a real computer, While it can't compete with gaming machines that costs thousands of dollars and uses hundreds of watts, a Raspberry Pi 3 Model B plus is more powerful than the PCs many people use at work and more powerful than the average destop PC available in [when? 1995? 2000? 2005? 2010?]
So, how far back in time do I really have to go before today's top of the line Raspberry Pi is more powerful than that year's average desktop PC?
I could change it to make the comparison be with a laptop PC if someone has the answer for that. --Guy Macon (talk) 22:11, 31 August 2018 (UTC)
- You can read here. The original model was comparable to 300MHz PII from 1997. Ruslik_Zero 11:38, 1 September 2018 (UTC)
- They're about a tenth the speed of a reasonable modern laptop. I'd say definitely after 2000, maybe 2005. Dmcq (talk) 15:36, 1 September 2018 (UTC)
- Are we talking about the original Pi Model A (ARM11 @700Mhz, 256MB RAM) or the latest Pi model 3B+ (quad core 64-bit ARM Cortex A53 @1.4GHz, 1GB RAM)?
- --Guy Macon (talk) 22:31, 2 September 2018 (UTC)
- How do you plan to define an "average" desktop computer from this, or any other, era? The detail-oriented part of me is really curious about how you define this parameter.
- For example, the 2001 United States Census indicated that most people used a computer for email and web search. In those applications, what difference does the "power" of the computer make? The average computer user, using the average computer-terminal, doesn't use compute-power: they use application software and network capabilities. It's kind of useless to compare "average performance" if your use-case is uncommon. Average users do not run SPECint nor anything remotely like it. Today, an "average" computer might be less performant at certain computational tasks than an average desktop from 1985 - but it probably has better battery life (a metric that didn't matter to average users several decades ago).
- Perhaps you ought to rephrase your statement to say that the Raspberry Pi performs as well on a particular benchmark as a mid-market computer from (... some specific year) - and you might surprisingly find that the year in question is probably 2018. But that shouldn't really surprise you; single-thread CPU performance has been flat-lining or even regressing lately, because computer designers are focused at enhancing different kinds of performance metrics that focus on modern usability needs - things like getting more battery life, using lower power, dissipating heat effectively, and optimizing application-specific tasks like video playback, network utilization, and camera control. Benchmarks that measure pure CPU performance have probably actually gotten slower since the mid 1990s. For example, here's a 2011-vintage slideshow from Los Alamos, home of the original supercomputer, presented by Chuck Moore, a computer architect who designed several important historical CPUs.
- If you're computing the Fibonacci sequence, the Raspberry Pi's ARM processor probably delivers equally-fast performance as a 2018-vintage high-end desktop workstation or a server-class high-performance scientific computing CPU. The Fibonacci sequence is, conventionally, computed using a very simple kind of pure numerical method. Using recursion, it can be calculated - quite far into its sequence - without ever loading or storing anything in main memory. The advantages that large high-performance computers might offer are irrelevant to this metric; and the performance tradeoffs they have to make might even give the small ARM core a speed-advantage on this particular metric. But this is not a metric that matters!
- If you are writing a document about computer performance, you should not use the comparative phrase "more powerful" unless you are very careful when you define and qualify it! It is for this reason that the greatest book on computer architecture - A Quantitative Approach - spends an entire chapter on why the computer designer must first define the important attributes for the machine, and then quantify them, an art that takes over a thousand pages to introduce!
- Nimur (talk) 01:30, 3 September 2018 (UTC)
Hiding since this is largely personal experience rather than sourced info, although I do think it illustrates why you should be careful about overselling the Pi Nil Einne (talk) 07:26, 3 September 2018 (UTC)
|
---|
Remember though that it's not 2001 and in the smart phone and social media age people's habits have probably changed a bit. I have recently tried to use a Raspberry Pi 3 model B v1.2 and I can say the experience was painful such that I basically gave up and don't want to try it again. While I would not consider my general usage patterns, I wouldn't say what I was trying to do is that atypical. Even basics like watching videos on Youtube can be quite painful although this is in part a software problem. Unlike most 10 year old computers I have used, the Raspberry Pi 3 doesn't seem to be capable of software decoding most typical 1080P30 let alone P60 H.264 videos. Even 720P60, and possibly P30 but I'm not so sure, seems to be a problem. I think VP9 and VP8 are similar since using H264ify is recommended and generally (I'm not sure about the specifics on ARM) they are less demanding. I don't personally feel the need for P60 but Youtube and other sites often doesn't give the choice. Likewise, while I'm not sure I notice the difference between 720P and 1080P on my 46" TV from my distance, I can notice the difference between 480P and 720P/1080P, and the options with user live streaming videos can be even more limited. You may think this is fine since the Pi has hardware decoding and this is after all how phones, tablets, Chromecasts, smart TVs etc have got around the problem and also kept decent battery lives. Except that hardware decoding still seems a bit of a hit and miss on Chromium and with Pis. I mean AFAICT, it was supposed to work for me with Chromium on Raspbian 9.4 [1] but it didn't. As a work around, I ended up using an alternative browser which would find the video and output it to a media player which did perform hardware decoding although I had to get the right one, the first one I tried worked fine when testing but then I realised it didn't work with live videos. (In the early days of Android, a lack of hardware decoding support was also a common problem with certain third party apps but things seem to have greatly improved since then. Although of course many phones are getting to the level where they can do software decoding albeit at the expense of battery life. I think even HEVC is getting doable.) Largely an aside but of course the FLOSS requirements can mean other software issues. Notably I wanted to use my local TV's video catchup site. Except that it refused to work because of Widevine DRM issues. Since this also occurs with Netflix etc I found various guides e.g. [2] but I gave up and never tried them. I know someone trying to get Twitch to work tried Kodi but that didn't work either. To be fair, this isn't unique to Raspberry Pi [3], although in those cases it's generally either the device works or doesn't. Android is now significant enough that most have Android apps and while there's still the possibility of problems given the myriad of devices, most likely the problem is the app won't work on your device. General browsing also seemed a bit of a hit and miss. I mean sure wikipedia is fine. But social media and news sites etc can get slow. Even some forums when you're trying to work out how to fix your Raspberry Pi. (FLOSS ones are generally fine but more commercial ones maybe not so much.) I'm not sure how much of this is the CPU and how much is the RAM. 1GB is a little low especially since everything isn't designed to care as even many phones that developers care about i.e. mid range or higher in the developed world have more. Personally I wouldn't have recommended it even in 2005 although I suspect it was most common or even lower. I think ads and other pieces of not that useful Javascript etc were probably part of the problem so I probably would have improved things by installing noscript. And of course there are moves against ads being too demanding on the browser side, which maybe are going to help things. But I'd definitely say at the moment, it's still a painful experience. Note that although I commonly use a lot of tabs, I was keeping it down to maybe 2 or 3 at most here. I mean heck I even started closing my Gmail tab I wanted to keep open for Google Hangouts. To be fair, most people do that stuff on their phone now, but it does illustrate the limits. People like to blame Microsoft for bloat, but it's clearly not just Microsoft. In fact I would say where people are most likely to notice it nowadays is in the browser itself and especially the websites. |
Thanks, everybody!
I will be changing
"But don't be fooled: this is a real computer, While it can't compete with gaming machines that costs thousands of dollars and uses hundreds of watts, a Raspberry Pi 3 Model B plus is more powerful than the PCs many people use at work and more powerful than the average desktop PC available in [when? 1995? 2000? 2005? 2010?]"
to
"But don't be fooled: this is a real computer, While it can't compete with gaming machines that costs thousands of dollars and uses hundreds of watts, a Raspberry Pi 3 Model B plus has more than enough capability to write programs and compile them for the ARM Cortex M3 microcontroller". (Which is what the document I am writing is about).
Again, thanks for the input. --Guy Macon (talk) 16:37, 3 September 2018 (UTC)
September 2
Restore previous version
I have Windows 10 in HP Pavilion, about 3 years old. In my previous windows 7 I could right click on any file and find "Restore previous version" tab. It usually worked. I could find a few prior versions, not in Windows 10. In this link nothing remotely similar is described.[4]. Where is that function? Thanks AboutFace 22 (talk) 20:39, 2 September 2018 (UTC)
- Well in my Windows 10 I have the same option reached by the same method. I can also do right-click, properties, previous-version tab. But you may have to turn on backup -- see https://windowsreport.com/restore-previous-version-windows-10-not-working/ for what to do. Graeme Bartlett (talk) 13:49, 5 September 2018 (UTC)
September 3
Typosquatting
Imagine that someone registers the URL http://www.appie.com
and then sends phishing emails to Apple customers with a capital "I", i.e. the URL is http://www.appie.com
, but it looks like http://www.apple.com
in a sans-serif font (AppIe versus Apple). Is this typosquatting, or is it something else? Typosquatting doesn't mention the use of lookalike characters, which if I understand rightly is particularly a major problem with Cyrillic сhагасtегs. Nyttend backup (talk) 13:10, 3 September 2018 (UTC)
- @Nyttend backup: If you take a look at the typosquatting article, you can see
Typosquatting is a form of cybersquatting, and possibly brandjacking which relies on mistakes such as typos made by Internet users when inputting a website address into a web browser.
which is not the case of substituting lowercase "L"s with uppercase "i"s. However, the article also mentionsOnce in the typosquatter's site, the user may also be tricked into thinking that they are in fact in the real site, through the use of copied or similar logos, website layouts or content. Spam emails sometimes make use of typosquatting URLs to trick users into visiting malicious sites that look like a given bank's site, for instance.
which kinda suits this situation. IMO, it's not typosquatting. —AE (talk • contributions) 13:14, 3 September 2018 (UTC) - Both capital I issues and Cyrillic characters issues would fall under homograph attack or arguably script spoofing. Our article those redirect to, which mentions both examples you cited, is titled IDN homograph attack although exclusively ASCII cases like capital I aren't IDN. BTW, it's linked in the see also of typosquatting. Nil Einne (talk) 06:05, 4 September 2018 (UTC)
September 4
Drag&drop starts a search in Firefox
Hey, can you tell how I can turn off the very old behaviour (which return in my up-to-date Quantum), that dragging and dropping a word initiates a search for an URL? F.e. i drop the word "honolulu" and Firefox checks out if there's an URL like honolulu.com and even opens it and overwriting the current tab adress. -- 212.162.41.189 (talk) 09:58, 4 September 2018 (UTC)
Gmail "sent mail" goes only through August 30th
When I look at my "sent mail" file in gmail, it shows me what I sent through August 30, and nothing more recent. What's going on? Is there some way to see things I sent more recently? Michael Hardy (talk) 21:56, 4 September 2018 (UTC)
- I just checked mine and can see more recent sent mail, so it isn't a system-wide issue. --SarekOfVulcan (talk) 21:59, 4 September 2018 (UTC)
- Also make sure, some POP/IMAP setting is not deleting your Gmail copy. --Titodutta (talk) 09:45, 5 September 2018 (UTC)
- Gmail has recently updated to a new appearance/format/whatever. I took one look and took the option of reverting back to the "classical" version, but it may be that as a result of the change (whichever version you're now using), some setting somewhere needs to be nudged. {The poster formerly known as 87.821.230.195} 2.122.60.253 (talk) 15:01, 7 September 2018 (UTC)
September 5
Task Management Software or Website
I am looking for a task management software/website for a small team. I am looking for these features: Tasks which can be
- assigned (eg. assigned to PersonA),
- taken (taken by PersonB),
- tracked (marked as "done", "doing", "not done", "can not be done")
- Tagged/Labeled: Events, Maintenance, etc.
- Email notificaation option
Preferably open source, with mobile interface and OAuth. If software, available for Linux, Winodows.
I know about Asana, Trello, I am yet to try Redmine, ideas? Many thanks in advance. --Titodutta (talk) 09:42, 5 September 2018 (UTC)
- You can look at Comparison_of_project_management_software. Ruslik_Zero 20:46, 5 September 2018 (UTC)
September 6
Search suggestions in the way of Go
I type a term into the search box.
Suggestions of what I do not want appear listed below.
The list covers the "Go" and "Search" buttons.
I have to click the mouse elsewhere on the screen to make the list vanish.
I click the "Go" and "Search" button.
I feel annoyed, angry, the urge to smash the computer.
Is there a solution other than herbal tea?
Anna Frodesiak (talk) 23:07, 6 September 2018 (UTC)
- I type a term into the search box. I press Enter (= Return). Works for me. DroneB (talk) 03:35, 7 September 2018 (UTC)
- Hi DroneB. That works if I want the "Go" button, but if I want the "Search" button, what do I do? Best, Anna Frodesiak (talk) 04:04, 7 September 2018 (UTC)
- Hi, Anna, you just tap the Tab ↹ key twice. The first key press moves the keyboard focus from the Search input box (which closes the drop-down list) to Go, the second one to Search – and then you press the spacebar or ↵ Enter key to activate the Search pushbutton. Yes, it's three key presses – but no mouse clicks. --CiaPan (talk) 07:19, 7 September 2018 (UTC)
- @Anna Frodesiak: You can also press the Up arrow key ↑ when typed your search term. That should move the focus to the last item of the drop-down list, which is “containing... <your search term here>”. Then you press ↵ Enter and you're done. --CiaPan (talk) 07:26, 7 September 2018 (UTC)
- Up arrow!!!!!! Fantastique!!! You've saved me from drinking all that herbal tea, because that stuff is disgusting, just vile. Many, many thanks, CiaPan! (P.S. Pretty snazzy work there with the button images.) Best, Anna Frodesiak (talk) 07:34, 7 September 2018 (UTC)
- Hi DroneB. That works if I want the "Go" button, but if I want the "Search" button, what do I do? Best, Anna Frodesiak (talk) 04:04, 7 September 2018 (UTC)
September 7
Beep in batch files
I remember BEEP used to be a command in batch files.
Can I somehow ask a batch file to type the ASCII chr for the Bell character to produce a beep sound?
Many thanks,
Anna Frodesiak (talk) 04:07, 7 September 2018 (UTC)
- Try typing the command: echo ^G
- where the ^G is produced by holding down Ctrl and typing G. On Unix one may need to type Ctrl+V first to "quote" the ^G. DroneB (talk) 05:30, 7 September 2018 (UTC)
- Hi DroneB. That works on the command line, but does not seem to work as a line in a batch. Anna Frodesiak (talk) 07:36, 7 September 2018 (UTC)
- @Anna Frodesiak: It works for me. However the tricky part is putting the control character BEL into the shell script (i.e., your batch file). Are you talking about Windows environment? I managed to do that with a command-line command
- echo echo ^G >> mybatch.cmd
- The first echo is a command to output echo ^G line. That output is redirected with a double angle bracket combination so it gets appended at the end of mybatch.cmd. (WARNING: If you use a single > for redirection, the output of the echo command will overwrite the destination mybatch.cmd file, thus destroying its previous contents!)
- That way I got a echo ^G line at the end of mybatch.cmd and was able to move it around (or even duplicate where necessary) within mybatch.cmd with a standard Notepad.
- Similar trick works in Linux, altgough there you can simply input ^G during editing a script file with vi editor. --CiaPan (talk) 09:14, 7 September 2018 (UTC)
- You lost me, CiaPan. I'm not that good at all of this and do not know what a .cmd file is. What would the line in the batch file look like? I'm using Win 10 by the way. Many thanks. Anna Frodesiak (talk) 10:26, 7 September 2018 (UTC)
- @Anna Frodesiak: It works for me. However the tricky part is putting the control character BEL into the shell script (i.e., your batch file). Are you talking about Windows environment? I managed to do that with a command-line command
- Ah ok. anything .cmd is pretty much the same as .bat. Why even bring .cmd into it when .bat is fine? Anna Frodesiak (talk) 10:48, 7 September 2018 (UTC)
- @Anna Frodesiak: You would have to ask Microsoft. The main historical difference is .bat files were used in DOS and early Windows by COMMAND.COM interpreter and .cmd were introduced in WindowsNT for cmd.exe interpreter. However, for backward compatibility, cmd.exe interprets .bat scripts as well. Some more information about technical differences between .bat and .cmd can be found in Batch file#Filename extensions section. --CiaPan (talk) 11:01, 7 September 2018 (UTC)
- Fair enough. Thanks. Anna Frodesiak (talk) 11:07, 7 September 2018 (UTC)
- @Anna Frodesiak: You would have to ask Microsoft. The main historical difference is .bat files were used in DOS and early Windows by COMMAND.COM interpreter and .cmd were introduced in WindowsNT for cmd.exe interpreter. However, for backward compatibility, cmd.exe interprets .bat scripts as well. Some more information about technical differences between .bat and .cmd can be found in Batch file#Filename extensions section. --CiaPan (talk) 11:01, 7 September 2018 (UTC)
- So CiaPan, how to write that line in the batch file? Anna Frodesiak (talk) 11:07, 7 September 2018 (UTC)
- Ah ok. anything .cmd is pretty much the same as .bat. Why even bring .cmd into it when .bat is fine? Anna Frodesiak (talk) 10:48, 7 September 2018 (UTC)