Misplaced Pages

:Reference desk/Computing: Difference between revisions - Misplaced Pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Misplaced Pages:Reference desk Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 04:51, 8 January 2025 editJayCubby (talk | contribs)Extended confirmed users5,631 edits Zoomify: ReplyTag: Reply← Previous edit Latest revision as of 17:02, 9 January 2025 edit undoJayCubby (talk | contribs)Extended confirmed users5,631 edits I screwed up the page formatting, sorry!Tag: 2017 wikitext editor 
(12 intermediate revisions by 4 users not shown)
Line 79: Line 79:
::</code> ::</code>
::On going to http://cartesmich.free.fr/images/France_LD/ I get ]. Perhaps this website is savvy about theft of its most high-resolution public domain images. Maybe someone has the patience to hunt about in the browser console. ''']]''' 04:51, 8 January 2025 (UTC) ::On going to http://cartesmich.free.fr/images/France_LD/ I get ]. Perhaps this website is savvy about theft of its most high-resolution public domain images. Maybe someone has the patience to hunt about in the browser console. ''']]''' 04:51, 8 January 2025 (UTC)
::: If they're public domain images, it's not "theft". Please avoid such misleading and perjorative language. <span class="vcard"><span class="fn">]</span> (<span class="nickname">Pigsonthewing</span>); ]; ]</span> 10:52, 8 January 2025 (UTC)
::::It's still potentially in violation of their ToS (not that I much care) and could, per my reading of my law (assuming this is an american website, which it isn't) run afoul of something like the Computer Fraud and Abuse Act.
::::<br>
::::The ToS is a reasonable concern, which is why I said theft. ''']]''' 15:53, 8 January 2025 (UTC)
:::::Even if all you say were true (It's highly doubtful; there appear to be no published terms of service - much less any that a user agrees to before viewing the site; and in any case we are not all in the USA), it's ''still'' not theft. <span class="vcard"><span class="fn">]</span> (<span class="nickname">Pigsonthewing</span>); ]; ]</span> 16:11, 8 January 2025 (UTC)
::::::You're right--there are no terms (though the host website, free.fr, appears to have a TOS page). ''']]''' 16:53, 8 January 2025 (UTC)
Yes, I came to that cited code, but had no idea to open that container
Also tried again dezoomify, and also waited a long time, and after 1-2 hours i get an error message. And it includes a link, , if you alter the numbers you can find various tiles of the map.is it possible to proceed with that, download that folder?--] (]) 22:34, 8 January 2025 (UTC)


:Hmm! So I pasted this conversation into ChatGPT, and told it to generate code for use in Google Colab. The code is (it doesn't really do what it's supposed to, at all, but a start).
:The really screwed-up image it generated is . Hopefully these are of help to someone with more Python experience than I.''']]''' 02:35, 9 January 2025 (UTC)
::I gave this another try. This time it was able to actually download the image correctly, but only a horizontal section. The code is collapsed below. I think it needs only some slight tweaking. {{collapse top}} <nowiki> import os
::import requests
::from PIL import Image
::# Base URL and directory setup
::BASE_URL = "http://cartesmich.free.fr/images/France_LD/TileGroup8/"
::OUTPUT_DIR = "tiles"
::MERGED_IMAGE = "merged_image.jpg"
::# Ensure the output directory exists
::os.makedirs(OUTPUT_DIR, exist_ok=True)
::# Function to download a tile
::def download_tile(url, save_path):
:: response = requests.get(url)
:: if response.status_code == 200:
:: with open(save_path, "wb") as f:
:: f.write(response.content)
:: return True
:: return False
::# Function to stitch the tiles together
::def stitch_tiles(tiles, tile_size):
:: max_x = max(x for x, y in tiles.keys()) + 1
:: max_y = max(y for x, y in tiles.keys()) + 1
:: # Create a blank canvas for the final image
:: merged_image = Image.new("RGB", (max_x * tile_size, max_y * tile_size))
:: # Paste tiles onto the canvas
:: for (x, y), tile_path in tiles.items():
:: tile_image = Image.open(tile_path)
:: merged_image.paste(tile_image, (x * tile_size, y * tile_size))
:: return merged_image
::# Set parameters for downloading tiles
::tile_size = 256 # Assume each tile is 256x256
::x_range = range(36, 50) # Adjust based on your needs (x-coordinate range)
::y_range = range(24, 40) # Adjust based on your needs (y-coordinate range)
::# Dictionary to store downloaded tile paths
::downloaded_tiles = {}
::# Download tiles
::for x in x_range:
:: for y in y_range:
:: tile_url = f"{BASE_URL}6-{x}-{y}.jpg"
:: tile_path = os.path.join(OUTPUT_DIR, f"6-{x}-{y}.jpg")
:: if download_tile(tile_url, tile_path):
:: downloaded_tiles = tile_path
:: print(f"Downloaded: {tile_url}")
:: else:
:: print(f"Tile not found: {tile_url}")
::# Stitch the tiles into a single image
::if downloaded_tiles:
:: merged_image = stitch_tiles(downloaded_tiles, tile_size)
:: merged_image.save(MERGED_IMAGE)
:: print(f"Merged image saved as {MERGED_IMAGE}")
::else:
:: print("No tiles were downloaded!") </nowiki>
::{{collapse bottom}}
:
:''']]''' 16:09, 9 January 2025 (UTC)
<br>
:Oh, again some progress! What horizontal slide? Maybe iterate through the TileGroup folders?--] (]) 16:56, 9 January 2025 (UTC)
:], it was one of the bottom sections of the map, I have some silly ] on my devices and can't access the one I ran it on for a couple of hours. You should be able to run the above code in Colab and ask ChatGPT (or Gemini) for further help. ''']]''' 17:02, 9 January 2025 (UTC)


= January 9 =

= January 8 =

Latest revision as of 17:02, 9 January 2025

Welcome to the computing section
of the Misplaced Pages reference desk. skip to bottom Select a section: Shortcut Want a faster answer?

Main page: Help searching Misplaced Pages

   

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.


Ready? Ask a new question!


How do I answer a question?

Main page: Misplaced Pages: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:


December 28

File disambiguators (1): Explorer/W11

Óla! So Explorer adds (n) to a file with a duplicate name to an existing one. Do you have suggestions how to easily identify and delete them? The search option doesn't recognize parentheses, so a search would merely identify files with that number in the title. The reason for asking is that if a folder has a large number of duplicates that should be deleted, it would be easier to sort/select/delete rather than ctrl+click individually. Thank you! 2.28.124.91 (talk) 16:31, 28 December 2024 (UTC)

https://www.alldup.de/alldup_help/alldup.php and then set it to compare 100% of the content. Polygnotus (talk) 17:16, 28 December 2024 (UTC)
Thank you Polygnotus, that's great, and freeware too. It looks like it might take some getting used to! Cheers, 2.28.124.91 (talk) 18:13, 28 December 2024 (UTC)
Use a better search program - FileLocator will find * - Copy (*).*, and I'm sure there are others with will also do the job.
Use the command prompt, eg dir "* - Copy (*).*" works. (You can also use del similarly, but do so with caution and at your own risk.)
Mitch Ames (talk) 09:35, 2 January 2025 (UTC)

December 30

Selecting multiple items in checkbox on this website. Is there an easier way?

Please look at this link:

https://www.archonia.com/en-us/search?q-a2%5B0%5D=1&q-a2%5B1%5D=2&q-a2%5B2%5D=3&qf%5B0%5D=3046&filter_string=doctor%20who

On the left of the web page you will see a checkbox "Status" with 3 items checked. The problem I have is that the only way I can get multiple items checked is by editing the URL. If I just click on an item in a checkbox on this website the other items get unchecked. In other words: the checkbox works like radio buttons. I tried a different browser; I tried ctrl-click and shift-click and alt-click. Nope. On other websites (here for example) I do not have this problem. Do you experience the same inconvenience? And if so any ideas on how to do this easier than by url editing? 213.126.69.28 (talk) 11:55, 30 December 2024 (UTC)

Not necessarily AFAIK, and that's coming from someone with experience in web design. You're unfortunately seeing their poor web design. TheTechie@enwiki (she/they | talk) 00:17, 31 December 2024 (UTC)

Windows 10 Bin

Doing a quick search online I realized that the path to the Windows recycle bin is C:\$Recycle.Bin; however, for some reason I don't understand, it doesn't seem to be the "Recycle Bin" on the desktop, they just seem to be two different paths (explanatory screenshot at the following link: ). Are they actually two different paths? If so, why? If not... why aren't the two windows synchronized? 2A01:827:160:D601:2E75:E3BA:BBBF:B55D (talk) 14:35, 30 December 2024 (UTC)

C:\$Recycle.Bin has the recycle bins for all users. Yours will appear with the normal name and icon, the others will appear as the Security Identifier of the respective account. If you click on the one for your account, it should show the same contents (note Windows Explorer shows the files which are in the recycling bin - it does not show the actual files storing the data used by the recycling bin). As for why they are different, it's hard to say without more information. If you delete something, does it appear in both or just one? Thanks 2603:6011:9440:D700:2080:28C1:577E:41B3 (talk) 23:26, 7 January 2025 (UTC)


January 1

Question(s) about Arch Linux

Moved from User talk:TheTechie § Aaaaarrrrchh brrr!

@TheTechie ... A question? Do you used archinstall to install Arch Linux? I think i will install Arch Linux, cause, i want BTW Vitorperrut555 (talk) 23:31, 1 January 2025 (UTC)

Moved this here as I found this to be a better place for it. As for your question, no, I used text commands. Though I may be able to help. Any specific questions? TheTechie@enwiki (she/they | talk) 00:32, 2 January 2025 (UTC)
@Vitorperrut555 TheTechie@enwiki (she/they | talk) 00:41, 2 January 2025 (UTC)
When I installed Arch Linux, I used a live-boot USB. Once booted, it has an "install" icon that can be used to do a basic install. Then, once installed, you can customize it by removing and adding the packages you like. 68.187.174.155 (talk) 15:42, 2 January 2025 (UTC)
68.187.174.155, I think you're confused. Archinstall is a command on Arch Linux, and the Arch Installer boots in text mode. You may be thinking of an Arch derivative like Manjaro or EndeavourOS, which do indeed boot up in graphical environments. TheTechie@enwiki (she/they | talk) 20:23, 2 January 2025 (UTC)

January 2

Bayeux Tapestry website

What image-serving technology is the new Bayeux Tapestry website using, and how can high-res images be downloaded? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:59, 2 January 2025 (UTC)

@Pigsonthewing Welcome to the Reference Desk for Computing. Are you trying to download all images, or only specific ones? If you reply here, please ping me. Thanks, TheTechie@enwiki (she/they | talk) 00:54, 3 January 2025 (UTC)
The former preferably, but an answer for either would be of interest, as the technology is likely in use elsewhere. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:46, 3 January 2025 (UTC)
According to their terms of use, "Access to this panorama is free for a private or public non-commercial use. Any commercial use of this tool is prohibited, as well as the extraction of images from this panorama" (my emphasis). This may or may not bother you. Chuntuk (talk) 18:24, 3 January 2025 (UTC)
Even more, the "images" which get loaded are tiled portions of the actual image. TheTechie@enwiki (she/they | talk) 19:11, 3 January 2025 (UTC)


January 4

Zoomify

Is it possible to download the map La ligne de démarcation that is shown via Zoomify?--Antemister (talk) 22:48, 4 January 2025 (UTC)

Yes, if you google "download zoomify image" you will see various ways. Polygnotus (talk) 23:44, 4 January 2025 (UTC)
Ah, of course I googled before and found that but was not successful. So I asked here.--Antemister (talk) 11:31, 5 January 2025 (UTC)
Please mention what you've already tried before and what did not work and what happened instead (e.g. error messages). Polygnotus (talk) 04:57, 6 January 2025 (UTC)
Tried and of course also the dezoomify tool but got immediately stuck because I was not able to find an URL. Very few programming skills, none regarding HTML, that's why I ask here.--Antemister (talk) 10:46, 6 January 2025 (UTC)
@Antemister:
I wasn't able to download the file as it was taking forever, but this URL appeared to download the files for 30+ minutes on a fast internet. Let us know if this works. TheTechie@enwiki (she/they | talk) 03:19, 8 January 2025 (UTC)
I've successfully taken images off the IWM via their source code and dezoomify, but I'm puzzled as to how to extract images here, as Dezoomify appears to be perpetually stuck on 'preparing tiles load'. The longest I've seen it take for large images in the past is a couple of minutes. Like Antemister, I've little programming knowledge, but I think the following elements in the code are related:
<script type="text/javascript" src="ZoomifyImageViewerFree-min.js"></script>
<script type="text/javascript"> Z.showImage("myContainer", "images/France_LD"); </script>
On going to http://cartesmich.free.fr/images/France_LD/ I get error 403. Perhaps this website is savvy about theft of its most high-resolution public domain images. Maybe someone has the patience to hunt about in the browser console. JayCubby 04:51, 8 January 2025 (UTC)
If they're public domain images, it's not "theft". Please avoid such misleading and perjorative language. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:52, 8 January 2025 (UTC)
It's still potentially in violation of their ToS (not that I much care) and could, per my reading of my law (assuming this is an american website, which it isn't) run afoul of something like the Computer Fraud and Abuse Act.

The ToS is a reasonable concern, which is why I said theft. JayCubby 15:53, 8 January 2025 (UTC)
Even if all you say were true (It's highly doubtful; there appear to be no published terms of service - much less any that a user agrees to before viewing the site; and in any case we are not all in the USA), it's still not theft. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:11, 8 January 2025 (UTC)
You're right--there are no terms (though the host website, free.fr, appears to have a TOS page). JayCubby 16:53, 8 January 2025 (UTC)

Yes, I came to that cited code, but had no idea to open that container Also tried again dezoomify, and also waited a long time, and after 1-2 hours i get an error message. And it includes a link, , if you alter the numbers you can find various tiles of the map.is it possible to proceed with that, download that folder?--Antemister (talk) 22:34, 8 January 2025 (UTC)

Hmm! So I pasted this conversation into ChatGPT, and told it to generate code for use in Google Colab. The code is here (it doesn't really do what it's supposed to, at all, but a start).
The really screwed-up image it generated is here. Hopefully these are of help to someone with more Python experience than I.JayCubby 02:35, 9 January 2025 (UTC)
I gave this another try. This time it was able to actually download the image correctly, but only a horizontal section. The code is collapsed below. I think it needs only some slight tweaking.
Extended content
import os ::import requests ::from PIL import Image ::# Base URL and directory setup ::BASE_URL = "http://cartesmich.free.fr/images/France_LD/TileGroup8/" ::OUTPUT_DIR = "tiles" ::MERGED_IMAGE = "merged_image.jpg" ::# Ensure the output directory exists ::os.makedirs(OUTPUT_DIR, exist_ok=True) ::# Function to download a tile ::def download_tile(url, save_path): :: response = requests.get(url) :: if response.status_code == 200: :: with open(save_path, "wb") as f: :: f.write(response.content) :: return True :: return False ::# Function to stitch the tiles together ::def stitch_tiles(tiles, tile_size): :: max_x = max(x for x, y in tiles.keys()) + 1 :: max_y = max(y for x, y in tiles.keys()) + 1 :: # Create a blank canvas for the final image :: merged_image = Image.new("RGB", (max_x * tile_size, max_y * tile_size)) :: # Paste tiles onto the canvas :: for (x, y), tile_path in tiles.items(): :: tile_image = Image.open(tile_path) :: merged_image.paste(tile_image, (x * tile_size, y * tile_size)) :: return merged_image ::# Set parameters for downloading tiles ::tile_size = 256 # Assume each tile is 256x256 ::x_range = range(36, 50) # Adjust based on your needs (x-coordinate range) ::y_range = range(24, 40) # Adjust based on your needs (y-coordinate range) ::# Dictionary to store downloaded tile paths ::downloaded_tiles = {} ::# Download tiles ::for x in x_range: :: for y in y_range: :: tile_url = f"{BASE_URL}6-{x}-{y}.jpg" :: tile_path = os.path.join(OUTPUT_DIR, f"6-{x}-{y}.jpg") :: if download_tile(tile_url, tile_path): :: downloaded_tiles = tile_path :: print(f"Downloaded: {tile_url}") :: else: :: print(f"Tile not found: {tile_url}") ::# Stitch the tiles into a single image ::if downloaded_tiles: :: merged_image = stitch_tiles(downloaded_tiles, tile_size) :: merged_image.save(MERGED_IMAGE) :: print(f"Merged image saved as {MERGED_IMAGE}") ::else: :: print("No tiles were downloaded!")
|}
JayCubby 16:09, 9 January 2025 (UTC)


Oh, again some progress! What horizontal slide? Maybe iterate through the TileGroup folders?--Antemister (talk) 16:56, 9 January 2025 (UTC)
User:Antemister, it was one of the bottom sections of the map, I have some silly 2FA on my devices and can't access the one I ran it on for a couple of hours. You should be able to run the above code in Colab and ask ChatGPT (or Gemini) for further help. JayCubby 17:02, 9 January 2025 (UTC)

January 9

Categories: