Wikipedia:Reference desk/Computing

(Redirected from Wikipedia:CHD)
Latest comment: 13 hours ago by Philvoids in topic Dragging a map without mouse
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:


June 16

edit

Phone app for decoding Morse code

edit

Last night I had a dream about an Android phone app that listened to Morse code on the phone's microphone and attempted to decode it into human-readable text. Does such an app actually exist? JIP | Talk 19:05, 16 June 2024 (UTC)Reply

A search for "Morse Code Decoder" in Google Play immediately provides an app to do that. I haven't tried the app to see if it actually works.-Gadfium (talk) 19:20, 16 June 2024 (UTC)Reply


June 18

edit

Python input integer

edit

Consider this simple Python 3 input and calculation example:

 n = input("?")
 print(n*10)

On one computer, I input 7 and I get a response 7777777777. On another computer, I input 7 and I get 70. I believe that there is an issue with the input function. On the first computer, it stores 7 as a string. On the second, it stores 7 as an integer. Is one of those the correct way it should work? Is it purposely vague? 12.116.29.106 (talk) 12:51, 18 June 2024 (UTC)Reply

input always returns a (stripped) string. So the 7777777777 behaviour is correct. If you wanted an integer, you'd have to call int on the result. I don't know where you're getting the 70 behaviour, and I can't reproduce that behaviour on python3.12 on Linux or 3.11 on Windows. -- Finlay McWalter··–·Talk 13:47, 18 June 2024 (UTC)Reply
I figured out that the machine producing the 70 result has both Python 2 and Python 3. I assumed that typing "python" would use the latest version (3), but it uses the older version (2). So, it is perhaps an issue with Python 2 auto-casting the value to an integer. 12.116.29.106 (talk) 14:36, 18 June 2024 (UTC)Reply
I checked and input in Python 3 is raw_input in Python 2. If I change the function and run it in Python 2, I get the expected 7777777777 output. 12.116.29.106 (talk) 14:39, 18 June 2024 (UTC)Reply
I expected as much (but I couldn't find an online repl with python2 to allow me to check it). You should almost certainly uninstall the python2 installation, as it hasn't had a security patch since January 1st, 2020. -- Finlay McWalter··–·Talk 14:46, 18 June 2024 (UTC)Reply

Download image from website

edit

I found this scan of an old map and would like to download it completely in high resolution, but there seems to be no option to do that. I tried searching the source text of the page, I installed JDownloader, but I just cannot get the image file onto my computer. The only way I see is to make screenshots of tiny portions of the map, which would be quite tedious to begin with, and then somehow put them together, but I have no idea with what program to do even that. Is there a simple solution? --Abderitestatos (talk) 19:06, 18 June 2024 (UTC)Reply

I use this website a lot. Click on Image at the top center. Then, click on the name of the image on the upper right. Sign in and you can export the full resolution map image as a tiff. 75.136.148.8 (talk) 19:57, 19 June 2024 (UTC)Reply
Thanks, but I tried this last night, and now, about 12 hours later, the export is somehow still being processed. Is it normal that it takes that long? --Abderitestatos (talk) 12:26, 20 June 2024 (UTC)Reply
If the download is not working, most images have "Website" listed under the view panel (under the Compare button). That takes you to the website that is the source of the image. 75.136.148.8 (talk) 13:31, 20 June 2024 (UTC)Reply
With that link I get only the low resolution version, where almost nothing is readable. --Abderitestatos (talk) 23:16, 20 June 2024 (UTC)Reply
First click on "Compare" on the bottom right. Then click on "Document" on the popup in the top middle. That gets you a full-resolution version of the overlay map. --jpgordon𝄢𝄆𝄐𝄇 15:47, 28 June 2024 (UTC)Reply

June 22

edit

Android app

edit

Is there a rootless app or USB cable to use one of your Android smartphones as an in-out device/terminal for another of your Android smartphones when they're next to each other? Only one is new USB. Sagittarian Milky Way (talk) 18:49, 22 June 2024 (UTC)Reply

Can you explain what you mean by "in-out device/terminal"? Do you mean that you want to copy data from one phone to the other? CodeTalker (talk) 07:20, 23 June 2024 (UTC)Reply
Remote desktop except phones instead of PCs. Should I trust such apps? (if from the Play store) Sagittarian Milky Way (talk) 21:23, 23 June 2024 (UTC)Reply


June 25

edit

MTVNews.com archives gone

edit

Now that the MTVNews.com archives are gone, and there are quite a few links to it, do we ask the InternetArchiveBot people to run their bot on all pages that contain that url? How does that work? Polygnotus (talk) 06:20, 25 June 2024 (UTC)Reply

Either someone already did so or no one ever cited it to begin with. 2603:8001:4542:28FB:8DF1:8D96:7CF0:D084 (talk) 14:11, 25 June 2024 (UTC) (Send talk messages here)Reply


June 28

edit

Dragging a map without mouse

edit

On Google maps the displayed map can be dragged in any direction by the mouse held with left button down. To do this in a script I hope to use this HotKeys command:

MouseClickDrag Clicks and holds the specified mouse button, moves the mouse to the destination coordinates, then releases the button.

MouseClickDrag, WhichButton, X1, Y1, X2, Y2 [, Speed, R]

On testing the mouse does move to the expected positions (x1,Y1) and (x2,Y2) but the map fails to move. Can someone say what I need to do to drag the map without mouse?

Comment: Attempting to slow the auto mouse by inserting 100 for Speed did not help. I also tried this sleepwalking version with 1-second waits between operations:

Sleep, 1000      ;sleep 1 second
MouseMove, 451, 314 ;map top left
Sleep, 1000
Send, {LButton Down}
Sleep, 1000
MouseMove, 691, 474 ;This where I want the map to be dropped
Sleep, 1000
Send, {LButton Up}

As before, the mouse moves as expected but the map fails to drag. Note: this is on Windows 10. MouseClickDrag works ok for drawing lines in PAINT.exe. Philvoids (talk) 18:44, 28 June 2024 (UTC)Reply

June 29

edit