MyWiki:Reference desk/Archives/Computing/2018 August 31

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template must be substituted. Replace {{Archive header with {{subst:Archive header.

{| width = "100%"

|- ! colspan="3" align="center" | Computing desk |- ! width="20%" align="left" | < August 30 ! width="25%" align="center"|<< Jul | August | Sep >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded 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 31

[edit source]

Help repairing text of the website.

[edit source]

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)

Raspberry Pi computing power

[edit source]

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)

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)