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.
January 19
[edit]Twenty Year Society of Wikipedia editors
[edit]How accurate a reflection is Category:Members of the Twenty Year Society of Wikipedia editors of the number of editors still active who have been here for 20 years or more?
Is there a better way to measure editors who either:
- Made edits at least 20 years apart
- First edited over 20 years ago and are still (for some value, say: edited in the last three months) active?
Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:37, 19 January 2025 (UTC)
- I believe you have to do some database querying to get the report you want. See WP:Quarry: if you have some SQL chops you can do it yourself, otherwise people there might be helpful. You might be interested in mw:Manual:Database schema. (If the query is too "intensive" and times out you'll have to run it on Labs or else download the database and query it locally.) --Slowking Man (talk) 23:53, 19 January 2025 (UTC)
January 20
[edit]ttps//
[edit]I have received a spam that has links to ttps://is.gd . What is ttps:Â ? It isn't the same as https: .
I see that is.gd is an address-shortener.
I read, analyze, and report a fair amount of email spam, and I don't think that I have seen a link with ttps. What is it? Robert McClenon (talk) 02:44, 20 January 2025 (UTC)
- I would assume probably a typo. Alpha3031 (t âą c) 03:22, 20 January 2025 (UTC)
- Thank you, User:Alpha3031. If so, that is stupid, and we know that spammers are stupid. Robert McClenon (talk) 03:59, 20 January 2025 (UTC)
- That may be the case for most spammers, but I wouldn't rely on it. Â --Lambiam 13:37, 20 January 2025 (UTC)
- No. Some of them are smart enough and devious enough to fool intelligent people. Robert McClenon (talk) 19:32, 20 January 2025 (UTC)
- is.gd is usually a shortened link generated by Apple Shortcuts. TheTechie@enwiki (she/they | talk) 23:58, 20 January 2025 (UTC)
- No. Some of them are smart enough and devious enough to fool intelligent people. Robert McClenon (talk) 19:32, 20 January 2025 (UTC)
- That may be the case for most spammers, but I wouldn't rely on it. Â --Lambiam 13:37, 20 January 2025 (UTC)
- Thank you, User:Alpha3031. If so, that is stupid, and we know that spammers are stupid. Robert McClenon (talk) 03:59, 20 January 2025 (UTC)
- Also, ttps is probably a dumb typo by the scammer. TheTechie@enwiki (she/they | talk) 00:00, 21 January 2025 (UTC)
January 25
[edit]Inverting parts of images
[edit]I'm currently working on a project which involves OCR using Tesseract. Apparantly it requires black text on a white background for the best result but my images don't always fit that criteria. So I've used Otsu's method for thresholding to convert it to black and white. My problem is that some images have both areas with black text on white backgrounds, and white text on black backgrounds. I have to somehow invert the black background parts of those images without inverting the parts with white backgrounds. But I can't think of a way to do this. Any ideas?
To clarify, it's not just entire images with a black background -- that would be easy to fix. What's happening is that the images have parts with both black backgrounds and parts with white backgrounds. âPanamitsu (talk) 08:01, 25 January 2025 (UTC)
- IrfanView will do this for you, Just select the relevant area of the image before inverting. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:31, 25 January 2025 (UTC)
- Would this require manually selecting the areas? Because I can't do that -- I've got tens of thousands of images to go through. âPanamitsu (talk) 21:24, 25 January 2025 (UTC)
- I dropped a mixed image into an online demo page of a WebAssembly build of Tesseract, and both black on white and white on black were recognized perfectly, except for the insertion of one spurious blank line. Â --Lambiam 15:05, 25 January 2025 (UTC)
- Yeah I have also done one test like this and it seemed fine although some words were wrong. I'll probably just ignore this inversion thing for now. âPanamitsu (talk) 21:27, 25 January 2025 (UTC)
January 27
[edit]Good Online University for Programming
[edit]Dear All
Iâm from Switzerland and I live in a remote area. Iâd love to learn programming and to get an officially recognized degree (one which is valid in Europe and the USA). I have a stressful day job, so I canât travel to universities in ZĂŒrich, I just lack the time and I canât study without making money, so my question is this: are there good online universities which allow you to study programming remotely?
Thank you for your replies! With kind regards 85.4.176.77 (talk) 12:26, 27 January 2025 (UTC)
- In the United States, you will not find much in the way of a degree for "computer programming." Yes, there are always oddities. But, the common degrees are computer science and computer information systems. In general, computer science is more focused on computers (hardware, operating systems, optimization, networks, etc...) and computer information systems is more focused on things you do with computers (databases, web pages, AI modeling, etc...). There are other related degrees. A computer engineering degree will be even more focused on the hardware. But, overall, they all include programming. My personal experience is that you don't go to college to learn to program. You learn to program and then go to college to learn about computers. Students who showed up and didn't know how to program were immediately put under the extreme stress of learning something that everyone else appeared to know without much in the way of help. I saw many of those students drop out or switch to mathematics. 12.116.29.106 (talk) 18:15, 28 January 2025 (UTC)
January 28
[edit]What is "compute"?
[edit]In researching LLMs, I keep coming across the term "compute" as a measure of... something. I was hoping to find out what it was in a wikipedia article, but the term does not seem to have an article, or even a subsection anywhere I can find. So... what is compute, exactly? I know that performance for an LLM AI "scales with compute", I've seem line graphs, I can infer that it has to do with computing power in some way, but I'm unclear as to the specifics.. Fieari (talk) 06:47, 28 January 2025 (UTC)
- @Fieari You haven't supplied any context. Can you quote the complete sentence in which the word occurs? Wikipedia is not a dictionary so it's not surprising that there is no article. Have you looked at wikt:compute? Shantavira|feed me 09:22, 28 January 2025 (UTC)
- Sorry, the term is just used so often throughout every piece of LLM literature I thought it was obvious. Here's one example: [1] This uses the word "compute" a lot, and in a way that is novel to me. Fieari (talk) 10:57, 28 January 2025 (UTC)
- The linked article uses the FLOP as a unit of compute, where I assume 1 FLOP is 1 FLOPS- second, just like 1 joule is 1 watt-second. (N Â --Lambiam 19:05, 28 January 2025 (UTC)
- In this context, is the computing being done at training time, or at test time? Fieari (talk) 23:06, 28 January 2025 (UTC)
- In the article it refers to training compute. Â --Lambiam 11:45, 29 January 2025 (UTC)
- In this context, is the computing being done at training time, or at test time? Fieari (talk) 23:06, 28 January 2025 (UTC)
- The linked article uses the FLOP as a unit of compute, where I assume 1 FLOP is 1 FLOPS- second, just like 1 joule is 1 watt-second. (N Â --Lambiam 19:05, 28 January 2025 (UTC)
- Sorry, the term is just used so often throughout every piece of LLM literature I thought it was obvious. Here's one example: [1] This uses the word "compute" a lot, and in a way that is novel to me. Fieari (talk) 10:57, 28 January 2025 (UTC)
- Wiktionary defines the noun as "computational processing power". Â --Lambiam 09:25, 28 January 2025 (UTC)
- It comes up in Large_language_model#Scaling_laws and also en masse in Neural_scaling_law#Inference_scaling. It doesn't seem to be used in the sense of a "power" but rather as "effort". To me it looks like a term that could do with a quantitative definition. --Wrongfilter (talk) 09:28, 28 January 2025 (UTC)
- I think you're probably using effort in the same way as computational power. It would be hard to define in an exact way because of the different systems used in bits per value, what the routing is like - various things that don't vary much on a conventional computer. Even actual electrical power used is reduced with better technologies on conventional computers. NadVolum (talk) 10:25, 28 January 2025 (UTC)
- For decades, compute time and compute resources were the focus of optimization. It usually because a trade-off. You sacrifice time to use less resources or sacrifice resources to use less time. So, overall, there was no real improvement in compute time+resources. That moved on to the concept of compute power. If you decrease resources and increase time, you didn't change the overall power. If you decrease time and increase resources, you didn't change the overall power. Now, compute by itself is referring to the general concept of power, which is time and resources combined. You are looking at LLM models. Given any model, I can make it run faster by using more resources. I can make it use less resources, but it will take more time. Ignoring that tradeoff, we look at time and resources combined as simply compute (power). 12.116.29.106 (talk) 13:32, 28 January 2025 (UTC)
- Just to clarify what I meant: To me as a physicist, power is energy (or work) done per unit time. "Compute" then seems to be analogous to power times time, which I chose to paraphrase as "effort" ("energy" is not appropriate). Your power seems to be my effort, your resource my power (not that I have any...). Is that correct? --Wrongfilter (talk) 13:52, 28 January 2025 (UTC)
- Yes you're right. NadVolum (talk) 17:00, 28 January 2025 (UTC)
- Just to clarify what I meant: To me as a physicist, power is energy (or work) done per unit time. "Compute" then seems to be analogous to power times time, which I chose to paraphrase as "effort" ("energy" is not appropriate). Your power seems to be my effort, your resource my power (not that I have any...). Is that correct? --Wrongfilter (talk) 13:52, 28 January 2025 (UTC)
- It comes up in Large_language_model#Scaling_laws and also en masse in Neural_scaling_law#Inference_scaling. It doesn't seem to be used in the sense of a "power" but rather as "effort". To me it looks like a term that could do with a quantitative definition. --Wrongfilter (talk) 09:28, 28 January 2025 (UTC)
Likely easy in C or BASIC
[edit]How do I mostly automate the repetitive manual work (painstaking even with find-and-replace-all & permutation list+number list making sites maybe with regex too) of making easily programmed big lists in an exact machine-readable format often demanded by geeky softwares+webpages (i.e. printf "-180â€RndxPrecisionIntâ€180 , "; printf "-1â€RndMaxPrecisionIntâ€1 , "; do sin-1 on last#; round last# to y decimal places; printf "0 , "; goto line 1 if loop counter isn't z yet; Halt). It's a pain to copy the stuff in box lines of a regular webpage then try to figure out how to use regex to make it the exact format (often comma-separated variable) & the stuff in the lines is only random if Earth was a rectangle instead of round (specifically one of the "squashed Mercator" projections called plate carree). I haven't found one single random geographic coordinates listmaker that doesn't have equal probability above 89 as 0-1 North). Or when say putting a point on each pole+a row of points on each non-|90| integer latitude with the nearest whole number of points to 360cos(lat) per row that can still be exactly expressed as a 2 or 3 significant figure number of longitude °'s between points would be close enough it's still a pain to make the equator part of the list within seconds then spend hundreds of times longer using a permutation/combination listmaking site to make the other rows one-by-one. If I then want say half the spacing I'd then need to paste about 720 rows to the 359 I already did. Sagittarian Milky Way (talk) 18:33, 28 January 2025 (UTC)
- The "generic but unhelpful answer" is going to be "write a small program to process the input and generate your desired output". This is a common sort of text processing problem. Can you provide some example input and the desired output you want the program to produce, when given said input? For posting it here use
<syntaxhighlight>...</syntaxhighlight>
(see Help:Wikitext § Format), example:
- Input:
-1 23 90 170
- Desired output:
-1, 0, Equator, 80
- --Slowking Man (talk) 02:30, 29 January 2025 (UTC)
- More widely useful would be writing random coordinates to a txt file ie
print " 0,-180<Rnd6DecimalPlacesNumberâ€180 "
print "-1â€RndMaxPrecisionFloatâ€1"
sin<sup>-1</sup> last number written (degrees not radians but don't put degree symbol)
loop to line 1 but halt after n loops
- I'd then need to manually delete " 0," from the start+add " 0" to the end before copypasting but who cares. Sometimes I'd need newline characters would \n work in strings in "newline is \n" languages like Python+C? Would ° and/or U+00B0 work in strings? Also my bad I didn't know integer's really integer not fixed decimal point though I suppose you could kludge ie -18 millionâ€RndIntâ€18 million then add decimal points with more code. Sagittarian Milky Way (talk) 21:19, 31 January 2025 (UTC)
- More widely useful would be writing random coordinates to a txt file ie
January 30
[edit]The parable of the tailor
[edit]Some 30 years ago, there was a story in wide circulation on the nascent internet, intended as a metaphor for the perils of software development. It was about a tailor who designed a wedding dress for a princess - the dress suffered from various issues that are encountered in software development when a project is poorly specified and there's inadequate consultation with the client. One of these issues was that the tailor did not know that the dress was going to move around while the princess was wearing it - another was that the dress developed "large rips and tears" after the original tailor had resigned, and his successor was unable to repair it.
Does anyone know where I can find the full text of the story? Thanks. 194.73.48.66 (talk) 14:56, 30 January 2025 (UTC)
- I found a version of it on a Usenet posting from 1987. AndrewWTaylor (talk) 18:07, 30 January 2025 (UTC)
- Here you can see it as it originally appeared in print. Â --Lambiam 08:37, 31 January 2025 (UTC)
- Thanks very much! The version I remember was in rather more prosaic language, but it's good to have the original. 194.73.48.66 (talk) 10:17, 31 January 2025 (UTC)
- Here you can see it as it originally appeared in print. Â --Lambiam 08:37, 31 January 2025 (UTC)
January 31
[edit]Local prevention of EoL hyphen in LaTeX
[edit]LaTeX 2Δ lets one use \-
to indicate the permissible positions of end-of-line hyphens, thereby overriding whatever might be prescribed in the spelling "dictionary". But how can one prevent any end-of-line hyphenation of a particular instance of a word? -- Hoary (talk) 06:38, 31 January 2025 (UTC)
Oh, and one more: How does one get a nonbreaking hyphen in LaTeX? -- Hoary (talk) 07:53, 31 January 2025 (UTC)
- LaTex will not break
\mbox{supercalifragilisticexpialidocious}
or\mbox{supercalifragilis-ticexpialidocious}
across lines. If there is a specific break you find disagreeable, like "supercal- ifragilistic", you can indicate your acceptable break points thus:su\-per\-cali\-frag\-ilis\-tic\-ex\-pi\-ali\-do\-cious
.
- Â --Lambiam 09:22, 31 January 2025 (UTC)
- Thank you, Lambiam:
mbox{whatever}
indeed does the trick. -- Hoary (talk) 11:11, 31 January 2025 (UTC)
- Thank you, Lambiam:
February 1
[edit]Computing Programming and Coding
[edit]What is the maximum age limit to begin learning coding?Tymer Repost (talk) 21:14, 1 February 2025 (UTC)
Is there basically a suitable programming language for a beginner?Tymer Repost (talk) 21:12, 1 February 2025 (UTC)
Is there a maximum age limit for one to begin learning programming and coding?Tymer Repost (talk) 21:11, 1 February 2025 (UTC)
- There is no age limit on learning anything, although it may be more difficult to learn as one gets older. Python is popular as a learning language, and there's a tutorial on the website linked to in that article. You can very likely find books on programming in Python at your local library, but try to find ones dealing with a recent version of Python. If you can use the online tutorial, that will be right up to date.-Gadfium (talk) 03:13, 2 February 2025 (UTC)