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.
September 2
man pages
Why are man pages a thing, but not woman pages? 69.5.123.82 (talk) 00:04, 2 September 2020 (UTC)
- The w.o. man pages are there. You just can't read them since they are write-only as the name implies. 67.164.113.165 (talk) 00:29, 2 September 2020 (UTC)
- To be fair, I have seen some write-only man pages as well. (Looking at you,
find
.) TigraanClick here to contact me 10:44, 3 September 2020 (UTC) - If you use gnu software, w.o. man means "without man." It is an alternative documentation browser that does not require man. 97.82.165.112 (talk) 18:46, 5 September 2020 (UTC)
- To be fair, I have seen some write-only man pages as well. (Looking at you,
I'm going to steal this joke. In case op is serious, or someone doesn't understand the question, man is short for manual. --TZubiri (talk) 06:55, 2 September 2020 (UTC)
- It is a clever joke. Bubba73 You talkin' to me? 07:20, 2 September 2020 (UTC)
- Amen to that.--Shantavira|feed me 07:39, 2 September 2020 (UTC)
-
man page
-
woman page
- Made illustration more relevant. --174.88.168.23 (talk) 20:01, 2 September 2020 (UTC)
- This page explain why and also other problems reated to the same thing: https://en.wikipedia.org/wiki/Equivocation
- PS:This page is controversial because there are people that dont consider it to be a thing.
- 2804:7F2:689:ACEB:D82:812E:3BFB:5250 (talk) 23:30, 5 September 2020 (UTC)
Lower Bound in Circuit Complexity
I asked a question here about finding a lower bound in the area of circuit complexity, and it has not been done, so I would appreciate if you answer me here\ there, thank you! 77.127.99.167 (talk) 06:08, 2 September 2020 (UTC)
SMTP 554
I tried to send two emails last night, each to multiple people by individual email addresses. Almost immediately, I got back from the SMTP server:
Subject: Weather Sent: 9/2/2020 12:26 AM
The following recipient(s) cannot be reached:
ABCD on 9/2/2020 12:26 AM 554 6.6.0 Error sending message for delivery.
WXYZ on 9/2/2020 12:26 AM 554 6.6.0 Error sending message for delivery.
followed by a listing of the other names of the intended recipients. (Obviously, in the above, I've replaced real names with strings.) That is, I got back a 554 on every person I was trying to send to.
The other email had the same result, again with the list of names being replied to being the length of my original list.
I am using Outlook with Windows 10, and an SMTP server outbound. I haven't had this problem in the past. I stopped the Outlook task on my computer and restarted Outlook, and it transmitted the message normally the second time. So my question is hardly urgent, because the workaround that I tried, restarting the task, worked. My question is whether this is something I should know or do something about. Google shows that SMTP 554 is sort of a vague error. I found: SMTP error 554 is one of the more vague error codes, but is typically caused by the receiving server seeing something in the From or To headers that it doesn't like. This can be caused by a spam trap identifying your machine as a relay, or as a machine not trusted to send mail from your domain.
Well? Does anyone know more than that, which is basically that it didn't work?
Robert McClenon (talk) 20:44, 2 September 2020 (UTC)
- @Robert McClenon, it's hard to say exactly what's wrong. but RFC3463 refers to error X.6.0 as an "Other or undefined media error", meaning there's an generic issue with the content of your message that means it cannot be sent, so it probably is a spam filter of some kind (see page 11 of RFC3463). Have you tried amending the content of your message, or checking server logs (if they're accessible)? Ed talk! 00:11, 3 September 2020 (UTC)
- I see you might've come into issue with rate limiting. You should probably try using the blind carbon-copy functionality (Bcc) to send emails to multiple people in future, or use your own email server if you can as you won't run into issues in those cases. Ed talk! 00:15, 3 September 2020 (UTC)
- Thank you, User:Ed6767. I don't think that the content of the message had anything to do with it, since restarting Outlook solved the problem. My guess at this point is that my copy of Outlook was corrupted somehow and was messing up the messages somehow. Maybe "Outlook got corrupted and had to be restarted" is the only explanation that there is. Robert McClenon (talk) 01:06, 3 September 2020 (UTC)
- You mention running my own email server. Is there documentation I can consult about that? I don't think that it is necessary, but am just asking. Robert McClenon (talk) 01:06, 3 September 2020 (UTC)
- @Robert McClenon, it's quite complex, and probably not the greatest idea but you can try a basic webhost if you like, many of these include email (the privacy of which I cannot guarantee), or do a quick google for "how to run your own email server" and follow one of the tutorials that's best suited for you as there's many out there Ed talk! 01:11, 3 September 2020 (UTC)
- I see you might've come into issue with rate limiting. You should probably try using the blind carbon-copy functionality (Bcc) to send emails to multiple people in future, or use your own email server if you can as you won't run into issues in those cases. Ed talk! 00:15, 3 September 2020 (UTC)
September 3
C# and JavaScript question
At work, I've come across a C# method that is writing a string to be directly inserted into a JavaScript function. The JavaScript function is supposed to handle the inserted content as a simple string. The JavaScript function is something like this:
exampleFunction('@ExampleClass.ExampleFunction()')
which is Razor syntax that executes ExampleClass.ExampleFunction()
first and then inserts the result directly into exampleFunction()
.
Now, to avoid JavaScript syntax errors, ExampleClass.ExampleFunction()
escapes '
into \'
, \r
into \\r
and \n
into \\n
.
My question is first, is this enough? And second, is there an easier way to do this, preferably some ready-existing way to escape strings? JIP | Talk 00:53, 3 September 2020 (UTC)
- @JIP, if possible, and you're using ECMAScript 6 (i.e. the JavaScript engine you're using is from the past 5 or so years) you might prefer to use backticks (`) to pass in your string parameter. These support a whole manner of characters, including newlines,
- e.g. instead of using
exampleFunction('@ExampleClass.ExampleFunction()')
you'd useexampleFunction(`@ExampleClass.ExampleFunction()`)
. If backticks don't work for you, escaping JavaScript strings is easy, and you have two options: you can use a JSON parsing library (many, many of these about, depending on your flavour of C#, for .NET I'd use system.text.json) and use their string parsing function (keep in mind you're adding a whole JSON library, which you might not use past this), or the probably more economical option of using just a subroutine that does this for you. This Stackoverflow thread contains many examples that you may find useful. Hope this helps :) Ed talk! 20:25, 3 September 2020 (UTC)
What are The "FBI Triple I Teletype" and "Wisconsin Circuit Court Automated Program"?
In the charging document by ADA Carli McNeill of Kyle Rittenhouse, these terms are used in the last sentence. Google shows they’re not novel, but only turns up 60 hits (Only 60 documents with both of those terms, A few of which are said charging document.) After I couldn’t find the first term on Wikipedia, I felt at a dead end and thought I’d ask here betting that other people are wondering the same thing. --50.201.195.170 (talk) 18:47, 3 September 2020 (UTC)
September 6
Can (non-Visual) BASIC address individual characters within a $string?
Was trying to remember if there was an elegant way for BASIC to address the individual characters within a variable string. Something like:
10: INPUT A$ 20: PRINT "Pick a letter to bump!" 30: INPUT N
with line 40 choosing the Nth character of A$ and incrementing it by one ASCII, so for instance if A$ was "AAAAA" and N was 3 the output would be "AABAA". I can envision a way to do it inputting each character separately (10: INPUT A$, 11: INPUT B$, etc etc), then some disgusting IF THEN mess to convert each individual string variable to a number, then some more disgusting IF THEN mess to convert the numbers back to letters, but that's pretty gross even for BASIC! 96.255.2.209 (talk) 13:58, 6 September 2020 (UTC)
- IIRC, you can assign to
MID$()
, so it would beMID$(A$,N,1)=CHR$(1+ASC(MID(A$,N,1)))
, or something similar. Handling errors and wrap-around is left as an exercise for the reader and OP. IfMID$()
isn't assignable, you will have to build a string with the part before the original, the incremented letter, and the part after. LongHairedFop (talk) 15:32, 6 September 2020 (UTC)- None of the BASICs I have used allows assigning to MID$(), as it returns a value.[1][2][3][4] Graeme Bartlett (talk) 23:55, 7 September 2020 (UTC)
- Every BASICs I have used allows assigning to MID$(). Even gwbasic can it, see [[5]] but then it is called a statement and not a function of course.2003:F5:6F00:ED00:D3A:2C30:3941:92C6 (talk) 16:23, 8 September 2020 (UTC) Marco PB
- Some BASICs don't have MID$() in any form (or for that matter LEFT$() and RIGHT$()), instead they use string slicing. Martin of Sheffield (talk) 21:32, 8 September 2020 (UTC)
- Every BASICs I have used allows assigning to MID$(). Even gwbasic can it, see [[5]] but then it is called a statement and not a function of course.2003:F5:6F00:ED00:D3A:2C30:3941:92C6 (talk) 16:23, 8 September 2020 (UTC) Marco PB
- None of the BASICs I have used allows assigning to MID$(), as it returns a value.[1][2][3][4] Graeme Bartlett (talk) 23:55, 7 September 2020 (UTC)
September 7
installing a new operating system on old mobile phones
I read somewhere that it's possible to install a recent / up-to-date operating system on old Android mobile phones (1 Samsung S4 mini, 1 Samsung S5 mini... and potentially an old Motorola), just so they can continue to be used although Android has long since stopped their software support. (With their old operating systems, they don't really work anymore, e.g., the S4 mini does not recognize most security certificates for websites anymore, won't download most apps, etc.)
Most of all: Do (rooting & installing) ROMs really allow me to install a more recent operating system (= beyond what Android usually provides) on an old phone? = Does this have a chance of success? :-) (or are there other ways to do this?)... and if so: Can you direct me to where I can read more about the topic? Especially, where can I find trustworthy and reliable ROM providers (for these old mobile phones, i.e. ROMs not needing a lot of resources)? Am I right in understanding ROMs to be more like little hacks that allow me to install (e.g.,) a different operating system... or at least download further updates from Android...? Am I right to assume that ROMs will allow for updates etc., similar to other OS? Do you know where to find step-by-step instructions (for users with no prior knowledge)? Anything else I should know, or alternatives to consider? - Thanks. Thanks. Thanks for answering (talk) 20:08, 7 September 2020 (UTC)
- Unfortunately old phones do not have anywhere near the amount of flash storage to put modern software in. Also if you install a custom ROM do not expect there to be automatic updates. You would likely have to keep updating the custom software yourself. It is not that Android has stopped supporting them, what has happened is that Samsung is not customising the newer Android versions to go in the older phones. Motorola seems to supply more versions of Android for their updates, but still after a few years they stop. My results have been poor with trying to update a Motorola via USB, although it could boot, it was very likely to crash. I have had better results putting an .apk file onto a device where the Play store refuses. (and the app actually does work). But still those modern apps are much huger than they used to be in the past, so your old device may not be able to fit them. Graeme Bartlett (talk) 23:37, 7 September 2020 (UTC)
- Hi @Thanks for answering. Depends on the phone, I know Samsung devices are well supported by the ROM community, so yes you can try. I'd highly recommend LineageOS, which is VERY well supported and can get your S4 and S5 up to version 16.0 or 17.2 (latest), based on Android 9 and Android 10 (the latest release of Android) respectively. Don't forget to flash Open GApps using your recovery or ADB if you want Google apps, such as the Play Store, Google Play Services, and other things. Ed talk! 17:18, 8 September 2020 (UTC)
- To give some elaboration on the above answers, "Android", which is owned by Alphabet Inc. (Google's parent company) doesn't "support" any devices directly. They just put out software, and then device manufacturers license the software and install it on their devices. Any official "support" comes from the manufacturer, in your case Samsung. Once they stop supporting a device, you're on your own. Android is based on an open-source software core, so people can take those parts and do what they will with them, hence the "unofficial" open-source Android distributions. The big catch is that the Google Play Services/Google Mobile Services are not open-source, and those are what provide a lot of what people associate with Android, like the Google Play Store, though apparently there are some "unofficial" ways to use them. The other challenge is old hardware just won't have the "horsepower" that more recent stock Android versions expect. You can buy lower-end used Android phones for not much money; if you can afford one, I'd just go with that unless you're doing this for fun/learning. --47.146.63.87 (talk) 04:38, 9 September 2020 (UTC)