Wikipedia:Reference desk/Computing: Difference between revisions
→Visualization problem ATI card: new section |
→Zoomify: Reply |
||
Line 1: | Line 1: | ||
<noinclude>{{Wikipedia:Reference desk/header|WP:RD/C|WP:CHD}} |
|||
[[Category:Non-talk pages that are automatically signed]] |
|||
[[Category:Pages automatically checked for incorrect links]] |
|||
[[Category:Wikipedia help forums]] |
|||
[[Category:Wikipedia reference desk|Computing]] |
|||
[[Category:Wikipedia help pages with dated sections]] |
|||
[[Category:Wikipedia resources for researchers]] |
|||
</noinclude> |
|||
= December 28 = |
|||
{{Wikipedia:Reference_desk/Archives/Computing/2009 November 9}} |
|||
== File disambiguators (1): Explorer/W11 == |
|||
{{Wikipedia:Reference_desk/Archives/Computing/2009 November 10}} |
|||
Ó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! [[Special:Contributions/2.28.124.91|2.28.124.91]] ([[User talk:2.28.124.91|talk]]) 16:31, 28 December 2024 (UTC) |
|||
{{Wikipedia:Reference_desk/Archives/Computing/2009 November 11}} |
|||
:https://www.alldup.de/alldup_help/alldup.php and then set it to compare 100% of the content. [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 17:16, 28 December 2024 (UTC) |
|||
::Thank you [[User:Polygnotus|Polygnotus]], that's great, and freeware too. It looks like it might take some getting used to! Cheers, [[Special:Contributions/2.28.124.91|2.28.124.91]] ([[User talk:2.28.124.91|talk]]) 18:13, 28 December 2024 (UTC) |
|||
:Use a better search program - [https://www.mythicsoft.com FileLocator] will find {{code|* - Copy (*).*}}, and I'm sure there are others with will also do the job. |
|||
:Use the [[cmd.exe|command]] prompt, eg {{code|dir "* - Copy (*).*"}} works. (You can also use {{code|del}} similarly, but do so with caution and at your own risk.) |
|||
:[[User:Mitch Ames|Mitch Ames]] ([[User talk:Mitch Ames|talk]]) 09:35, 2 January 2025 (UTC) |
|||
= |
= December 30 = |
||
== Mobile programming == |
|||
== Selecting multiple items in checkbox on this website. Is there an easier way? == |
|||
What should I download if I want to write programs for my phone in Java? My computer is Windows XP. [[User:F|F]] ([[User talk:F|talk]]) 04:12, 12 November 2009 (UTC) |
|||
:You'll need the Java SDK to start, but don't underestimate how many additional steps you're going to have to go through to get a program running on your phone. Depending on the phone, it might not be possible to run outside code on it. What kind of phone is it for starters? [[User:Shadowjams|Shadowjams]] ([[User talk:Shadowjams|talk]]) 06:23, 12 November 2009 (UTC) |
|||
::[[Nokia 3500 classic]]. I have copied programs over and they work. [[User:F|F]] ([[User talk:F|talk]]) 09:07, 12 November 2009 (UTC) |
|||
:The [[Mobile development]] article is probably relevant. [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 06:31, 12 November 2009 (UTC) |
|||
Please look at this link: |
|||
::Nokia's Developers site is [http://www.nokia.com/developers here]. [[User:Astronaut|Astronaut]] ([[User talk:Astronaut|talk]]) 10:43, 12 November 2009 (UTC) |
|||
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 |
|||
== in my client-server network, i want to do that-user can use only notepad.sure that he can not use any other application. == |
|||
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 ([https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_checkbox 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? [[Special:Contributions/213.126.69.28|213.126.69.28]] ([[User talk:213.126.69.28|talk]]) 11:55, 30 December 2024 (UTC) |
|||
active directory security |
|||
:Not necessarily AFAIK, and that's coming from someone with experience in web design. You're unfortunately seeing their poor web design. <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 00:17, 31 December 2024 (UTC) |
|||
== PHP & OOP, tutorials that actually DO something? == |
|||
== Windows 10 Bin == |
|||
I'm trying to wrap my head around OOP in PHP and have read(& sometimes skimmed) a half-dozen free tutorials and am getting frustrated. I understand the basic structure, the analogies with cars & carparts, etc. But I'm having a really hard time visualizing ''real-world implementations'' of PHP OOP. (I'm new to this programming thing, if that wasn't immediately obvious) |
|||
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: [https://imgur.com/a/2tn8HFy]). Are they actually two different paths? If so, why? If not... why aren't the two windows synchronized? [[Special:Contributions/2A01:827:160:D601:2E75:E3BA:BBBF:B55D|2A01:827:160:D601:2E75:E3BA:BBBF:B55D]] ([[User talk:2A01:827:160:D601:2E75:E3BA:BBBF:B55D|talk]]) 14:35, 30 December 2024 (UTC) |
|||
I would be very grateful if someone could '''point me towards a tutorial''' that actually uses OOP to '''construct''' something, rather than just going over the definitions and relationships for the 100th time. I am having absolutely no luck turning up any project-driven tutorials. Thank you. [[Special:Contributions/218.25.32.210|218.25.32.210]] ([[User talk:218.25.32.210|talk]]) 09:07, 12 November 2009 (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 [[Special:Contributions/2603:6011:9440:D700:2080:28C1:577E:41B3|2603:6011:9440:D700:2080:28C1:577E:41B3]] ([[User talk:2603:6011:9440:D700:2080:28C1:577E:41B3|talk]]) 23:26, 7 January 2025 (UTC) |
|||
:I find the tutorials in those programming books useful. Visit your local bookshop and see if they have books by [[Wrox Press]] or [[Apress]] and others. Personally, I find books in the ''... [[For Dummies]]'' series less useful, but many people find them useful. Try to visit a real bookshop - you can always buy online, but it is helpful if you can look through a selection of books. Alternatively, try your local library. [[User:Astronaut|Astronaut]] ([[User talk:Astronaut|talk]]) 11:02, 12 November 2009 (UTC) |
|||
:I second the notion that you ought to check out the bookstore/library. I have found published books much better than online tutorials, which, as you point out, are often just descriptions of details rather than things that walk you through understanding. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 14:03, 12 November 2009 (UTC) |
|||
== Life cycle failure pattern of CPU-Fan == |
|||
= January 1 = |
|||
I search a statistic for failure of a Cpu-Fan <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/80.242.195.103|80.242.195.103]] ([[User talk:80.242.195.103|talk]]) 09:49, 12 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
== Question(s) about Arch Linux == |
|||
== is piracy of apps a problem for apple? == |
|||
{{Moved from|User talk:TheTechie#Aaaaarrrrchh brrr!}} |
|||
@[[User:TheTechie|TheTechie]] ... A question? Do you used [[archinstall]] to install Arch Linux? I think i will install Arch Linux, cause, i want BTW [[User:Vitorperrut555|Vitorperrut555]] ([[User talk: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? <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 00:32, 2 January 2025 (UTC) |
|||
:@[[User:Vitorperrut555|Vitorperrut555]] <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 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. [[Special:Contributions/68.187.174.155|68.187.174.155]] ([[User talk: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. <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 20:23, 2 January 2025 (UTC) |
|||
= January 2 = |
|||
Is Piracy of iPhone/iPod touch apps a problem for Apple? If so, what are the major sources/channels of piracy Apple has to deal with (by name), and how does Apple fight these in general and specific? Is there any that, like the Pirate Bay, is specifically "immune" in some way from Apple/a particular thorn in its side? This is not homework. [[Special:Contributions/92.230.70.54|92.230.70.54]] ([[User talk:92.230.70.54|talk]]) 12:54, 12 November 2009 (UTC) |
|||
== Bayeux Tapestry website == |
|||
:Well, if you Google "apps apple piracy," it appears that yes, there is some piracy, and some apps with mechanisms that let them check such a thing report rates of 90% or so. I don't know where they are pirating from, though, but if you put in "iphone app" on Pirate Bay, it definitely comes up with a lot. Does the piracy harm Apple, per se, more than the developers of the apps? I don't know, but it's likely to be the source of whether Apple themselves cares much. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 14:01, 12 November 2009 (UTC) |
|||
What image-serving technology is the [https://www.bayeuxmuseum.com/en/the-bayeux-tapestry/discover-the-bayeux-tapestry/explore-online/ new Bayeux Tapestry website] using, and how can high-res images be downloaded? <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 20:59, 2 January 2025 (UTC) |
|||
== Strange behaviour of Firefox == |
|||
:@[[User:Pigsonthewing|Pigsonthewing]] Welcome to the Reference Desk for Computing. Are you trying to download all images, or only specific ones? {{User:TheTechie/pp}} <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 00:54, 3 January 2025 (UTC) |
|||
I've discovered that Firefox reports a particular web page as not found, whereas Internet Explorer quite happily retrieves it. Has anyone else come across this, and what it the cause of it? --[[User:Ross Burgess|rossb]] ([[User talk:Ross Burgess|talk]]) 14:28, 12 November 2009 (UTC) |
|||
::The former preferably, but an answer for either would be of interest, as the technology is likely in use elsewhere. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 16:46, 3 January 2025 (UTC) |
|||
:what's the url <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 14:38, 12 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
: According to their [https://www.bayeuxmuseum.com/en/the-bayeux-tapestry/discover-the-bayeux-tapestry/explore-online/#termsofuse 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. [[User:Chuntuk|Chuntuk]] ([[User talk:Chuntuk|talk]]) 18:24, 3 January 2025 (UTC) |
|||
::Even more, the "images" which get loaded are tiled portions of the actual image. <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:15px"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 19:11, 3 January 2025 (UTC) |
|||
It's [http://www.croydonlgbtnetwork.org.uk/aurora/idaho2006.htm here] --[[User:Ross Burgess|rossb]] ([[User talk:Ross Burgess|talk]]) 15:14, 12 November 2009 (UTC) |
|||
= January 4 = |
|||
: I use Firefox, and it loaded just fine for me. [[User:Tanthalas39|<font color="#CC7722" face="Papyrus">'''Tan'''</font>]] | [[User talk:Tanthalas39|<font color="#21421E" face="Papyrus">39</font>]] 15:18, 12 November 2009 (UTC) |
|||
== Zoomify == |
|||
:It worked for me, under Firefox 2.0.0.20, too. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 15:33, 12 November 2009 (UTC) |
|||
Is it possible to download the map [http://cartesmich.free.fr/ww2.php ''La ligne de démarcation''] that is shown via Zoomify?--[[User:Antemister|Antemister]] ([[User talk:Antemister|talk]]) 22:48, 4 January 2025 (UTC) |
|||
works here. perhaps you have ad block or something. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 18:36, 12 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
:Yes, if you google "download zoomify image" you will see various ways. [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 23:44, 4 January 2025 (UTC) |
|||
::It's not pretty, but I can view it. I don't use Internet Explorer. <span style="border-left: 1px solid #c30;">[[User:Pablomismo| pablo]]</span><sub style="text-shadow: 3px 3px 3px rgba(255,255,0,0.75); color: #c30;">[[User talk:Pablomismo|hablo]].</sub> 21:03, 12 November 2009 (UTC) |
|||
:: |
::Ah, of course I googled before and found that but was not successful. So I asked here.--[[User:Antemister|Antemister]] ([[User talk: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). [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 04:57, 6 January 2025 (UTC) |
|||
::::Tried [https://www.reddit.com/r/DataHoarder/comments/h9sb3g/do_you_guys_know_some_way_to_get_the_full_image/?rdt=65502] 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.--[[User:Antemister|Antemister]] ([[User talk:Antemister|talk]]) 10:46, 6 January 2025 (UTC) |
|||
:{{Outdent}} |
|||
:@[[User:Antemister|Antemister]]: |
|||
:I wasn't able to download the file as it was taking forever, but [https://dezoomify.ophir.dev/#http://cartesmich.free.fr/ww2.php this] URL appeared to download the files for 30+ minutes on a fast internet. Let us know if this works. <span style="font-family:monospace; font-weight: bold"> <span style="color:ForestGreen;font-size:1.15em"> [[W:EN:User:TheTechie|<span style="color:#803280">TheTechie@enwiki</span>]]</span> (<span style="color:#324c80">she/they</span> {{pipe}} [[User talk:TheTechie|<span style="color:rgb(90,50,128)">talk</span>]]) </span> 03:19, 8 January 2025 (UTC) |
|||
::I've successfully taken images off the [[Imperial War Museum|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: |
|||
::<code> |
|||
::<!--Zoomify--><script type="text/javascript" src="ZoomifyImageViewerFree-min.js"></script> |
|||
::<!--Zoomify--><script type="text/javascript"> Z.showImage("myContainer", "images/France_LD"); </script> |
|||
::</code> |
|||
::On going to http://cartesmich.free.fr/images/France_LD/ I get [[HTTP 403|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. '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 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">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</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. '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 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">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</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). '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 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, [http://cartesmich.free.fr/images/France_LD/TileGroup3/6-1-0.jpg], if you alter the numbers you can find various tiles of the map.is it possible to proceed with that, download that folder?--[[User:Antemister|Antemister]] ([[User talk: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 [https://pastebin.com/8hWXWBbD here] (it doesn't really do what it's supposed to, at all, but a start). |
|||
== Runescape classic cheat server == |
|||
:The really screwed-up image it generated is [https://imgur.com/a/c1j43De here]. Hopefully these are of help to someone with more Python experience than I.'''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 02:35, 9 January 2025 (UTC) |
|||
{{od}} |
|||
How do you enable the cheat server?[[User:Accdude92|Accdude92]] ([[User talk:Accdude92|talk to me!]]) ([[User:Accdude92/guestbook|sign]]) 14:57, 12 November 2009 (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. |
|||
:You can't. The current RSC servers are only released as a test to see how popular they are (it says so in the [http://services.runescape.com/m=news/c=xTunjB0-Nn8/newsitem.ws?id=2376 news post]). You might be able to on the full release, which won't be for a while yet. (Next time, this would be more suited to the Entertainment desk.) [[User:Vimescarrot|Vimescarrot]] ([[User talk:Vimescarrot|talk]]) 16:31, 12 November 2009 (UTC) |
|||
::First, they said that there would be cheat servers. Second, this is ok to post here or on the entertainment desk, as it is COMPUTER game, and an ENTERTAINMENT game.[[User:Accdude92|Accdude92]] ([[User talk:Accdude92|talk to me!]]) ([[User:Accdude92/guestbook|sign]]) 17:59, 12 November 2009 (UTC) |
|||
:::I'm only advising you as to which desk would get the best response. There are no cheat servers. [[User:Vimescarrot|Vimescarrot]] ([[User talk:Vimescarrot|talk]]) 19:39, 12 November 2009 (UTC) |
|||
::::I think a good guideline would be that questions about actually playing modern computer games ("In World of Warcraft Deluxe Edition, how do I get the Sacred Thingamajig of Howdoyoostan, twice blessed?") should go to the entertainment desk. Questions about getting computer games to work in the first place ("I've been trying to install World of Warcraft Deluxe Edition for days now, but Windows keeps telling me WOWOBJECTS.DLL is corrupt. What do I do?") belong here. [[User:JIP|<font color="#CC0000">J</font><font color="#00CC00">I</font><font color="#0000CC">P</font>]] | [[User talk:JIP|Talk]] 20:34, 12 November 2009 (UTC) |
|||
::::::Ok I will prove to you that jagex said that there were. And if someone wants to move this, go ahead.[[User:Accdude92|Accdude92]] ([[User talk:Accdude92|talk to me!]]) ([[User:Accdude92/guestbook|sign]]) 15:55, 13 November 2009 (UTC) |
|||
:::::::I know they said there would be. They also said (as I've stated before) that the current RSC release is a trial, not the full final release. [[User:Vimescarrot|Vimescarrot]] ([[User talk:Vimescarrot|talk]]) 01:21, 14 November 2009 (UTC) |
|||
{{collapse top}} |
|||
== Powerpoint slide is not opening == |
|||
<nowiki> import os |
|||
I am trying to open a power point file which has 98 slides, but instead of opening, it is showing a message that my anti virus (avira) is preventing the file from opening. So disabling it for a while will solve that issue, I mean then the file will open. I have disabled it and try to open file but nothing happened. Again the same message. Then I uninstalled that anti virus and tried to reopen the file, but again it refused to open and told me to deactivate anti virus. It showed the following messages : |
|||
::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[(x - min(x_range), y - min(y_range))] = 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}} |
|||
''The presentation cannot be opened. Your antivirus program may prevent you from opening the presentation. To fix this problem, make sure your antivirus program is current and working correctly. If the problem persists and the presentation is from someone that you trust, turn off your antivirus program, and then try to open the presentation again. If you do this, make sure you turn on your antivirus program again after you open the presentation.'' |
|||
-- '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 16:09, 9 January 2025 (UTC) |
|||
How can I rectify this problem (open the file)? Thanks--[[Special:Contributions/119.30.36.45|119.30.36.45]] ([[User talk:119.30.36.45|talk]]) 17:30, 12 November 2009 (UTC) |
|||
: |
:Oh, again some progress! What horizontal slide? Maybe iterate through the TileGroup folders?--[[User:Antemister|Antemister]] ([[User talk: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. '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 17:02, 9 January 2025 (UTC) |
|||
::First heard about Colab but tried, and it seems the Code does something. What is the Folder you got the files downlaoded?--[[User:Antemister|Antemister]] ([[User talk:Antemister|talk]]) 17:30, 9 January 2025 (UTC) |
|||
{{od}} |
|||
::A <strike>memory problem</strike> problem with bad RAM? Unlikely. Please do not <strike>guess</strike> write too vaguely and accidentally send the OP on a fruitless search for more RAM. The first thing to check is whether the file is defective. Does it open on other PCs? If not, there's something wrong with the file. If so, the default bonehead tech support suggestion would be "Please uninstall PowerPoint, reinstall it, and try again", which might possibly work. [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 18:32, 12 November 2009 (UTC) |
|||
[[User:Antemister|Antemister]] In a new cell, type <code> |
|||
:::Sorry, Accdude92, I read your terse answer as "bad RAM" rather than "not enough RAM" which I think is what you meant. This is unlikely to be the problem with a PowerPoint presentation on a modern machine what with today's [[VM|virtual memory]] and such. [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 18:36, 12 November 2009 (UTC) |
|||
from google.colab import files |
|||
files.download('merged_image.jpg')</code> Apologies for putting all of this inside a hat template, I can't figure out how to correct it. '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 18:15, 9 January 2025 (UTC) |
|||
:Again progress, have gotten such a merged image that shows a part of the map. The iteration is just a guess... Shouldnt there be a possibility to list all the files in the folder?--[[User:Antemister|Antemister]] ([[User talk:Antemister|talk]]) 22:58, 9 January 2025 (UTC) |
|||
::@[[User:Antemister|Antemister]], I very nearly got it to work, the final image is 12,000x12,000px but has errors. import os |
|||
::import requests |
|||
::from PIL import Image |
|||
::from concurrent.futures import ThreadPoolExecutor |
|||
::# Base URL and output setup |
|||
::BASE_URL = "http://cartesmich.free.fr/images/France_LD/" |
|||
::OUTPUT_DIR = "tiles" |
|||
::MERGED_IMAGE = "merged_image.jpg" |
|||
::# Ensure output directory exists |
|||
::os.makedirs(OUTPUT_DIR, exist_ok=True) |
|||
::# Function to download a tile |
|||
::def download_tile(group, x, y): |
|||
::url = f"{BASE_URL}TileGroup{group}/6-{x}-{y}.jpg" |
|||
::save_path = os.path.join(OUTPUT_DIR, f"TileGroup{group}_6-{x}-{y}.jpg") |
|||
::try: |
|||
::response = requests.get(url, timeout=10) |
|||
::if response.status_code == 200: |
|||
::with open(save_path, "wb") as f: |
|||
::f.write(response.content) |
|||
::print(f"Downloaded: {url}") |
|||
::return (group, x, y, save_path) |
|||
::else: |
|||
::print(f"Tile not found: {url}") |
|||
::except Exception as e: |
|||
::print(f"Error downloading {url}: {e}") |
|||
::return None |
|||
::# Function to download all tiles (no detection, brute force) |
|||
::def download_all_tiles(groups, x_range, y_range): |
|||
::tiles = [] |
|||
::print("Starting brute force tile download...") |
|||
::with ThreadPoolExecutor(max_workers=10) as executor: |
|||
::futures = [] |
|||
::for group in groups: |
|||
::for x in x_range: |
|||
::for y in y_range: |
|||
::futures.append(executor.submit(download_tile, group, x, y)) |
|||
::for future in futures: |
|||
::result = future.result() |
|||
::if result: |
|||
::tiles.append(result) |
|||
::return tiles |
|||
::# Function to stitch tiles together |
|||
::def stitch_tiles(tiles, tile_size): |
|||
::if not tiles: |
|||
::print("No tiles to stitch.") |
|||
::return None |
|||
::# Determine the range of x and y coordinates |
|||
::all_coords = [(x, y) for _, x, y, _ in tiles] |
|||
::min_x = min(x for x, y in all_coords) |
|||
::max_x = max(x for x, y in all_coords) |
|||
::min_y = min(y for x, y in all_coords) |
|||
::max_y = max(y for x, y in all_coords) |
|||
::# Create a blank canvas for the final image |
|||
::width = (max_x - min_x + 1) * tile_size |
|||
::height = (max_y - min_y + 1) * tile_size |
|||
::merged_image = Image.new("RGB", (width, height)) |
|||
::# Paste tiles onto the canvas |
|||
::for group, x, y, tile_path in tiles: |
|||
::tile_image = Image.open(tile_path) |
|||
::merged_image.paste( |
|||
::tile_image, ((x - min_x) * tile_size, (y - min_y) * tile_size) |
|||
::) |
|||
::return merged_image |
|||
::# Main script execution |
|||
::tile_size = 256 # Assume each tile is 256x256 |
|||
::groups = range(0, 16) # TileGroup0 to TileGroup15 |
|||
::x_range = range(0, 50) # x-coordinates: 0–49 |
|||
::y_range = range(0, 50) # y-coordinates: 0–49 |
|||
::tiles = download_all_tiles(groups, x_range, y_range) |
|||
::# Stitch the tiles into a single image |
|||
::if tiles: |
|||
::merged_image = stitch_tiles(tiles, tile_size) |
|||
::if merged_image: |
|||
::merged_image.save(MERGED_IMAGE) |
|||
::print(f"Merged image saved as {MERGED_IMAGE}") |
|||
::else: |
|||
::print("No tiles were downloaded!") '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 03:31, 11 January 2025 (UTC) |
|||
:::Here's the link. https://limewire.com/d/50995585-f881-4ff5-9186-e0eb55978a5e#Tcw-4kZBQKVH0GS9yZPb-vUvH8t-V04gV-t8MQp8O7k '''[[User:JayCubby|<span style="background:#0a0e33;color:white;padding:2px;">Jay</span>]][[User talk:JayCubby|<span style="background:#1a237e;color:white;padding:2px;">Cubby</span>]]''' 03:38, 11 January 2025 (UTC) |
|||
:I hate to ask something obvious, but have you scanned the file for viruses? I mean, it's pretty odd for your AV to reject it, and the behavior you are describing what happens when you disable AV is not encouraging (it sounds like an autorun macro going crazy). Powerpoint files ''can'' carry viruses in the form of VB macros. --[[User:Mr.98|Mr.98]] ([[User talk:Mr.98|talk]]) 18:54, 12 November 2009 (UTC) |
|||
*I had this ppt file in my pendrive. I scanned pendrive with avira and it found some viruse which were repaired immediately. I also scanned each file individually. No virus at all. My other ppt files from pendrive can be opened easily except this particular file. I have just opened another ppt file and then drag and dropped that file (which is not opening) file into it. But a new message appeared like:'' The server application, source file, or item can't be opened or returned an unknown error. You may need to reinstall the server application''.--[[Special:Contributions/119.30.36.45|119.30.36.45]] ([[User talk:119.30.36.45|talk]]) 21:28, 12 November 2009 (UTC) |
|||
::My first guess is that your ppt file was damaged, either directly by the virus or by the antivirus program when it removed the virus (though you aren't specifically saying above that the virus on the pendrive was attached to the ppt file). What happened when you tried opening the file on another PC? (Alternatively, if you don't have another PC handy with a copy of PowerPoint, you could use [[GMail]] to mail it to yourself and do a "View as HTML" so that GMail attempts to view the ppt file.) [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 22:35, 12 November 2009 (UTC) |
|||
*Ok I tried to view as HTML. But instead of opening it shows error in new tab and shows this message ''The attachment cannot be viewed as HTML. Download the attachment to view it in its original format.'' I downloaded it and tried to open the file. But not succeeded.--[[Special:Contributions/119.30.36.33|119.30.36.33]] ([[User talk:119.30.36.33|talk]]) 20:30, 13 November 2009 (UTC) |
|||
= January 11 = |
|||
: If other PPTs on the same drive open, but this one doesn't, then I'd go with Comet Tuttle's theory that the several viruses you had have damaged the file. I've occasionally had luck fixing horked Office files by opening them in OpenOffice.org and saving them off as a new office file; it depends on the nature and extent of the damage. -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 01:50, 14 November 2009 (UTC) |
|||
== Greasemonkey script == |
|||
I have the following simple code that will reload a web page in firefox every 60 seconds: |
|||
<pre> |
|||
(function() |
|||
{ |
|||
setTimeout("document.location.reload();", 60000); |
|||
})(); |
|||
</pre> |
|||
What I need is for the script to somehow scan the webpage ''before'' it reloads it for the text "The URL you requested was not found" and if detected, not to reload the page. This in effect makes the script update to the very latest version of a particular web page before it's deleted (the site I'm going to use this on deletes pages after a certain amount of time). Is this at all possible? Regards, [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 19:21, 12 November 2009 (UTC) |
|||
:You can't, generally speaking, due to the [[race condition]] where you check the URL, it's OK, and then you reload the page, but by then it's not OK. Perhaps the safest and easiest method will be to load the page into a hidden iframe, check that the iframe's contents are not "page not found", and then display the iframe if it's OK. --[[User:TotoBaggins|Sean]] 22:57, 12 November 2009 (UTC) |
|||
::How would I go about doing this? I have almost no scripting knowledge, are iframes hard to use? I'd be extremely grateful if you could link me to an online guide which explains what I need to do. [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 23:04, 12 November 2009 (UTC) |
|||
= November 13 = |
|||
== Question about web searching == |
|||
How can I do a web search where I can search for one term over multiple web sites? For example, how would I search for Wikipedia at cnn.com, ask.com, cbs.com...all in one search? [[Special:Contributions/63.231.178.198|63.231.178.198]] ([[User talk:63.231.178.198|talk]]) 02:24, 13 November 2009 (UTC) |
|||
:Well using Google you can specify multiple sites in the advanced search http://www.google.co.uk/advanced_search?q=example&hl=en . The advanced search is right beside the search button. Or you can use, for example, ''site:en.wikipedia.org reference desk''. <font color="SteelBlue">[[User:Lanfear%27s_Bane|Lanfear's Bane]]</font> | <font color="DimGray">[[User_talk:Lanfear%27s_Bane|t]]</font> 10:38, 13 November 2009 (UTC) |
|||
:The Google Advanced Search page didn't correctly search multiple sites for me. But you can form your own Google search for multiple sites by using something like ''site:cnn.com OR site:ask.com OR site:cbs.com Wikipedia'' --[[User:Bavi H|Bavi H]] ([[User talk:Bavi H|talk]]) 02:37, 14 November 2009 (UTC) |
|||
:Are you asking for a [[metasearch engine]]? [[Special:Contributions/69.228.171.150|69.228.171.150]] ([[User talk:69.228.171.150|talk]]) 07:27, 14 November 2009 (UTC) |
|||
== mobile phones for businesses and multiple people == |
|||
many businesses use landline phones so a call would be received throughout the business's building. is it possible for businesses to go completely landline free and use multiple mobile phones that are connected to a single number? so if a customer calls a number, five staff mobile phones would ring and the first to answer would take the call. if this is not possible, why? wouldn't this completely eliminate the need for landline phones in most areas? (pricing aside) [[User:Bonusbox|Bonusbox]] ([[User talk:Bonusbox|talk]]) 02:42, 13 November 2009 (UTC) |
|||
:It might be possible, but seems totally nuts for the following reasons: |
|||
:1) Cell phone reception is often worse than land lines. |
|||
:2) Cell phones are less reliable. |
|||
:3) Cell phones can get lost. |
|||
:4) Unlike land lines, most cell phone plans make you pay for incoming calls. |
|||
:So, considering that for these reasons just about nobody would want to do this, there may not be any cell phone company that actually offers this service. |
|||
:Cell phones instead of land lines can make sense for businesses where there is no office or people are often out of the office, but not for a business where people all stay in the office. In that case, you might consider land lines with cordless phones, so people can still move around the office (but be aware than many cordless phones are not secure, so a cord phone should be used when security is needed). [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 11:54, 13 November 2009 (UTC) |
|||
:Note that paying for incoming calls using cell phones is, AFAIK, a US-only feature. --[[User:Phil Holmes|Phil Holmes]] ([[User talk:Phil Holmes|talk]]) 14:27, 13 November 2009 (UTC) |
|||
::I'd say that was a good thing, but there may actually be an advantage to being charged for incoming calls, in that most telemarketers don't even try to call you on a cell phone, knowing that they will be greeted with even more than the usual hostility if they do. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 14:40, 13 November 2009 (UTC) |
|||
:::It seems to me the cost telemarkets pay is likely to be a bigger disincentive then callee 'hostility'. I've definitely never heard of telemarkerters calling people here in NZ [[User:Nil Einne|Nil Einne]] ([[User talk:Nil Einne|talk]]) 06:44, 14 November 2009 (UTC) |
|||
::::If this hostility means you won't buy whatever crap they're selling, that's the biggest disincentive of all. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 13:43, 14 November 2009 (UTC) |
|||
: Yes, it's perfectly possible, and it's a service offered to businesses by most major developed-world telcos, and by third party providers too. In essence one outsources the company [[private branch exchange|PABX]] into the telco cloud, which then reroutes calls (generally back over the [[public switched telephone network|PSTN]]) to individual phones, or to daughter PBXs at fixed sites (generally over ISDN). Such systems can thus reach branch offices, cellphones, employee's home phones, or to fixed phones that are directly connected to PBX equipment in a company's site. All modern PBX equipment either runs directly off an internal IP switch, or has a simple IP bridge card, so this enables enhanced service VoIP. Such systems make a lot of sense for companies that have a lot of motile people (sales-heavy companies, event organisers) or that have no premises (where everyone is either on-the-road or working from home). Typically an employee registers a given device as their current location, be that their home phone or their laptop-voip or their cell or the normal extension in their office, and the PBX makes calls to that extension ring at that location. Digital PBXs are very capable and feature laden, with support for any number of complex ringer groups, fallback ring groups, night service ring groups, and ring groups discriminated by calling and called phone number. You get all the same automated attendant, VPS, and voicemail capabilities whether the PBX is hosted or sitting in your office. D-PABX systems are beginning to migrate to running over IP rather than the POTS/ISDN PSTN, as IP affords enhanced services like directory and a unified messaging system (where texts, emails, and voice mails are all presented by the same system, over a range of interfaces from web to voice); in practice VoIP on mobile phones is still a bit crufty to be relied on for serious business use (and D-PABXs will fallback to PSTN). -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 00:57, 14 November 2009 (UTC) |
|||
::Not quite what you were asking, but for a long while I had my desk phone forwarded to my mobile. It worked well for me, without disrupting others and made me more "available". However, it often annoyed my manager who was never quite sure if I was at my desk, in my car, or out at lunch :-) [[User:Astronaut|Astronaut]] ([[User talk:Astronaut|talk]]) 02:14, 14 November 2009 (UTC) |
|||
== Java Screenshot program == |
|||
Hello! I'm working on a Java program that sends periodic screenshots from one computer to another over the Internet. The problem I'm running into is the first screenshot comes through fine, but subsequent screenshots do not come through (that is, they are not displayed in the server-side GUI). Here's part of my code: |
|||
Server side: |
|||
<source lang=java> |
|||
while(true) { |
|||
BufferedImage bi = ImageIO.read(in); //in == the socket's input stream |
|||
if(bi != null) { |
|||
label.setIcon(new ImageIcon(bi)); //label == a JLabel in a JFrame that displays the image |
|||
} |
|||
} |
|||
</source> |
|||
Client side: |
|||
<source lang=java> |
|||
final OutputStream o = s.getOutputStream(); //s == the socket |
|||
Timer timer = new Timer(); |
|||
TimerTask task = new TimerTask() { |
|||
public void run() { |
|||
try { |
|||
ImageIO.write(rob.createScreenCapture(new Rectangle(800, 600)), "jpg", o); //rob == java.awt.Robot |
|||
} |
|||
catch(Exception ex) { |
|||
ex.printStackTrace(); |
|||
System.exit(-1); |
|||
} |
|||
} |
|||
}; |
|||
timer.schedule(task, 0, 1000); |
|||
</source> |
|||
I started without the Timer, and that didn't work. The Timer doesn't help, but obviously I only need it to update every 500-1000 ms or so. It still has some work (specifically changing the capture size for all displays). I think my problem is with the stream, which I don't really understand completely. Removing the "if != null" block results in a NullPointerException. I would greatly appreciate any advice. Thank you!--[[User:El aprendelenguas|el '''Apre'''l]] (<sup>[[Special:Contributions/El aprendelenguas|facta]]</sup>-<sub>[[User talk:El aprendelenguas|facienda]]</sub>) 04:36, 13 November 2009 (UTC) |
|||
:First of all, I hope this little program of yours isn't anything nefarious. It's not nice to spy on people's desktops, you know! I'm going to give you the benefit of the doubt and assume everything is kosher, but don't you try anything naughty, young man! |
|||
:I was curious to what your problem was, so I created a similar program myself. I think the issue here is indeed the stream, and sending multiple images over the same stream. I noticed that while my client said it had sent something like five or six images, my server only reported having recieved one or two. This tells me that ImageIO can't properly tell when one image ends and another one starts, with the result that the formats gets all screwed up and nothing works. I fixed this by simply shutting down the socket after sending one image, and then starting a new one up to send the next one, and that fixed it good and proper. |
|||
:By the way, why is the client sending stuff to the server? Usually it's the other way around, no? Or is it that you want to set up a server at home, and then you can put the client on temporary pcs to document what you're doing? Anyway, here's my source-code for the server (very, ''very'' quickly hacked together, don't expect a masterpiece of code): |
|||
{{hidden begin|title=ServerTest.java|titlestyle=text-align:center;}} |
|||
<source lang=java> |
|||
import java.awt.image.BufferedImage; |
|||
import java.io.*; |
|||
import java.net.*; |
|||
import javax.imageio.ImageIO; |
|||
public class ServerTest { |
|||
public static void main(String[] args) { |
|||
try { |
|||
ServerSocket server = new ServerSocket(4242); //Starting the server |
|||
System.out.println("Listening"); |
|||
while(true) { |
|||
Socket socket = server.accept(); |
|||
System.out.println("Found connection"); |
|||
new Thread(new Talker(socket)).run(); //Sending the the socket to a thread (this is a very primitive server) |
|||
} |
|||
} catch(Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
} |
|||
} |
|||
class Talker implements Runnable { |
|||
Socket socket; |
|||
static int n = 0; |
|||
public Talker(Socket socket) { |
|||
this.socket = socket; |
|||
} |
|||
public void run() { |
|||
try { |
|||
InputStream in = socket.getInputStream(); |
|||
BufferedImage image = ImageIO.read(in); |
|||
if(image!=null) { |
|||
System.out.println("Got image " + n); |
|||
ImageIO.write(image, "jpg", new File("screenshot_" + n++ + ".jpg")); //Writing image to a file instead of GUI |
|||
} |
|||
} catch(Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
} |
|||
} |
|||
</source> |
|||
{{hidden end}} |
|||
:And here's the client (same caveats apply): |
|||
{{hidden begin|title=ClientTest.java|titlestyle=text-align:center;}} |
|||
<source lang=java> |
|||
import java.awt.Rectangle; |
|||
import java.awt.Robot; |
|||
import java.io.*; |
|||
import java.net.*; |
|||
import javax.imageio.ImageIO; |
|||
public class ClientTest { |
|||
public static void main(String[] args) { |
|||
try { |
|||
while(true) { |
|||
//notice how new sockets are created and closed for each image |
|||
//didn't have to computers in front of me, so I just did it using "localhost", but it shouldn't make a difference |
|||
Socket socket = new Socket("localhost", 4242); |
|||
OutputStream out = socket.getOutputStream(); |
|||
Robot r = new Robot(); |
|||
System.out.println("Sending image"); |
|||
ImageIO.write(r.createScreenCapture(new Rectangle(800,600)), "jpg", out); |
|||
socket.close(); |
|||
Thread.sleep(5000); //for apps this simple, I just use Thread.sleep() instead of Timer, no reason to get fancy |
|||
} |
|||
} catch(Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
} |
|||
} |
|||
</source> |
|||
{{hidden end}} |
|||
:Creating and shutting down sockets all the time creates a little bit more overhead, but not much. Nothing today's fine modern machines and internet can't handle. [[User:FlavusBelisarius|Belisarius]] ([[User talk:FlavusBelisarius|talk]]) 22:10, 13 November 2009 (UTC) |
|||
::BTW, just to emphasize that I made this very quickly, obviously you shouldn't put the "Robot r = new Robot()" inside the loop in the client. That's just stupid, and I realize that, but I couldn't be bothered to care all that much. [[User:FlavusBelisarius|Belisarius]] ([[User talk:FlavusBelisarius|talk]]) 22:12, 13 November 2009 (UTC) |
|||
:::Thank you, Belisarius! Don't worry; I was creating this program as a way to give help to my computer-challenged parents when they need it. I was getting tired of "well, there's this window over here..." conversations, and Microsoft Remote Assistance wasn't working. My computer's the server (and I view the images) because I don't want to bother them with the port-opening/looking-up-their-IP stuff.--[[User:El aprendelenguas|el '''Apre'''l]] (<sup>[[Special:Contributions/El aprendelenguas|facta]]</sup>-<sub>[[User talk:El aprendelenguas|facienda]]</sub>) 22:59, 13 November 2009 (UTC) |
|||
::::Aha, ok then :) If the built-in windows stuff isn't working, you may want to check out either some of the open souce [[VNC]] servers (which can a pain to set up) or something like [http://gotomypc.com GoToMyPC], which I hear is excellent. Good luck! [[User:FlavusBelisarius|Belisarius]] ([[User talk:FlavusBelisarius|talk]]) 23:13, 13 November 2009 (UTC) |
|||
:::::'''Small problem''' Looks like I've run into another problem. If I create a new socket for every image, the socket is bound to a different local port, and I can't force the new socket to use the same port again or I get a BindException since the TCP port is in a TIME_WAIT state. I tried enabling the SO_REUSEADDR option, but that didn't help. The TCP ports stay in TIME_WAIT too long to just reuse a group or ten ports or so (maybe if I used 1000, but that's too many ports to have waiting to timeout). Is there anyway I can remedy this?--[[User:El aprendelenguas|el '''Apre'''l]] (<sup>[[Special:Contributions/El aprendelenguas|facta]]</sup>-<sub>[[User talk:El aprendelenguas|facienda]]</sub>) 00:47, 14 November 2009 (UTC) |
|||
:::::: TIME_WAIT is an inevitable consequence of closing a TCP socket, and creating (and destroying) a new socket once every second is a very bad idea - doing so is a common denial-of-service attack (making a server run out of socket slots, because they're all sitting in TIME_WAIT). You should certainly open the socket once at the beginning, send all your comms over it until it's done, and then kill it. -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 01:21, 14 November 2009 (UTC) |
|||
:::::::Okay, then how do I stream the BufferedImages of the screenshots from the client to the server reliably?--[[User:El aprendelenguas|el '''Apre'''l]] (<sup>[[Special:Contributions/El aprendelenguas|facta]]</sup>-<sub>[[User talk:El aprendelenguas|facienda]]</sub>) 01:48, 14 November 2009 (UTC) |
|||
== Java websites == |
|||
I'm looking for some examples of websites developed using Java (the source codes etc). A google search brings up a lot of Javascript stuff, but that's not what I'm looking for. I'd be very grateful if someone could provide a link to a website with examples/tutorials. [[Special:Contributions/202.124.190.197|202.124.190.197]] ([[User talk:202.124.190.197|talk]]) 05:25, 13 November 2009 (UTC) |
|||
:[[Apache Tomcat]] is a [[Java Servlet]] container (basically, a web server) which executes Java classes that extend on the Servlet base class definitions. Tomcat websites are written in Java, but they show up as [[HTML]] in the browser naturally. There is an extensive list of [http://wiki.apache.org/tomcat/PoweredBy PoweredBy] websites available at Tomcat's website. Some of those might even provide access to the site's Java source code. You can also try searching Google for terms like "tomcat tutorial", "tomcat java example", "tomcat example" for an idea of what is going on inside a Tomcat Java servlet. --[[User:Hydrox|hydrox]] ([[User talk:Hydrox|talk]]) 06:32, 13 November 2009 (UTC) |
|||
== Java with MYSQL or ORACLE == |
|||
Hi, I am in need to access databases through Java.... Please tell me whether SQL will be best to be integrated with Java or else MySQL will be best to be integrated with Java.... <small><span class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Atchays|Atchays]] ([[User talk:Atchays|talk]] • [[Special:Contributions/Atchays|contribs]]) 05:54, 13 November 2009 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot--> |
|||
:Definitely Oracle. It supports JDBC. You can also execute Java statements directly inside the DBMS along with PL/SQL. Oracle databases have their own Java virtual machine (the Oracle JVM). Oracle also makes a Java IDE (JDeveloper) that is free to download and that you can use to integrate Java with the database.--[[User:Drknkn|Drknkn]] ([[User talk:Drknkn|talk]]) 12:29, 13 November 2009 (UTC) |
|||
::All the major databases support [[JDBC]] - [[MySQL]] [http://dev.mysql.com/downloads/connector/j/3.1.html], [[PostgreSQL]] [http://jdbc.postgresql.org/], [[DB2]] [http://www.ibm.com/developerworks/data/library/techarticle/0203zikopoulos/0203zikopoulos.html], [[Microsoft SQL Server]] [http://msdn.microsoft.com/en-us/data/aa937724.aspx], and even [[Apache Derby|Cloudscape (or Derby)]] [http://publib.boulder.ibm.com/infocenter/cldscp10/index.jsp?topic=/com.ibm.cloudscape.doc/sqlj172.htm].... I can't think of any reason why Oracle would be "best" for somebody who is still learning basics of database programming; it is complicated and [https://shop.oracle.com/pls/ostore/f?p=ostore:home:0 expensive]. After the OP has great familiarity with database technologies, they can evaluate whether Oracle's commercial tools are worth their cost. I think the OP might want to read about [[SQL]] and [[database programming]] before going very far forward. [[SQL]] is the language for interacting and requesting data transactions from ''any'' database. [[MySQL]] is a specific database - it happens to be a common, free, open-source program that is fairly straightforward to set up. [[JDBC]] is a specific technology, including an [[API]] and a driver to connect to the database. It is not the only way that Java programs can access data out of a database. The official [http://java.sun.com/docs/books/tutorial/jdbc/index.html JDBC Database Access trail] is a great tutorial for the novice Java database programmer. [[User:Nimur|Nimur]] ([[User talk:Nimur|talk]]) 14:45, 13 November 2009 (UTC) |
|||
::::He didn't ask what would be easiest. He asked what would work the best with Java. Read his question again. Oracle works better with Java than any of the other DBMSs for the reasons I gave. There are developer and trial versions of Oracle he can try, as well. He's a Java database developer, so I'd imagine that he doesn't mind actually learning something instead of using some childish, buggy DBMS like MySQL. Have you ever used either Oracle or MySQL, or did you look it up just now?--[[User:Drknkn|Drknkn]] ([[User talk:Drknkn|talk]]) 10:48, 14 November 2009 (UTC) |
|||
::: This [http://netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html tutorial] using netbeans might help the OP if they are a novice with Java and MySQL. <span style="border:1px solid green;padding:0px;">[[User_talk:BigDunc|<font style="color:orange;background:green;font-family:Verdana;">'''BigDunc'''</font>]]</span> 17:22, 13 November 2009 (UTC) |
|||
== USB device == |
|||
I recently plugged in a 2 GB Kingston pendrive and a Seagate FreeAgent Go 320 GB portable hard disk (which belong to a friend) into my laptop's USB port. My laptop works on Windows Vista Home. The problem is that whenever I insert any of these two portable devices, the computer searches for the preconfigured driver folders for the driver software and then gives me a prompt that I do not have the driver software in my computer and that I have to use the installation cd that came along with the device to install the driver. I don't have any such installation cd and the same devices are working perfectly in my friend's laptop i.e. his laptop automatically installs the driver when I plug in the devices. The strange part is MY LAPTOP SUCCESSFULLY DETECTS A 40 GB PORTABLE DISK THAT I HAVE AND ALSO A KINGSTON 1 GB PENDRIVE THAT ALSO BELONGS TO ME. I have 1 GB RAM (I don't think this problem is realted to RAM since my 40GB and 1GB portable devices are working perfectly on it). Why is my laptop not installing the driver automatically for the 320 GB and the 2GB? What is the solution? Please help me with this problem...... Should I download the driver and install it? That may not be possible since I have only a dialup connection whose download speed does not go more than 2kbps and it's very frustrating to download anything more than 5 MB..... If it is small in size, please send me the link..... Should I be downloading USB 2.0 device driver? Please suggest me a solution...... <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/61.246.57.2|61.246.57.2]] ([[User talk:61.246.57.2|talk]]) 06:02, 13 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
:Yes, you should download the drivers when prompted and install them. While logged into an account that has admin rights. The two hard disks and the two pendrives may have different manufacturers (even though both pendrives are from Kingston), by the way, hence the differing reactions of your computer. [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 06:28, 13 November 2009 (UTC) |
|||
:If you're using Vista, it should already have the USB 2.0 drivers. One suggestion is to make sure your laptop's chipset drivers are up to date. If you check the laptop manufacturer's support website, they should have those available. But to me it sounds like you might be having an issue with your USB driver stack. Try rebooting into [[Safe mode]], open the [[Device manager]], make sure "Show hidden devices" is checked, and right-click on every "USB Root Hub" and uninstall it. You can also delete anything that looks like it might be the driver for your pendrive and portable hard disk. When you reboot, Windows should automatically detect and reinstall these drivers, along with any other USB devices it finds. [[User:Indeterminate|Indeterminate]] ([[User talk:Indeterminate|talk]]) 08:19, 13 November 2009 (UTC) |
|||
== WP Essay about not calling wikipedia "wiki" == |
|||
I read a great essay regarding the use of the word "wiki" to mean "wikipedia" that someone here wrote. I can't seem to find it though, can you help? Thanks! [[User:Chris Mason|Chris M.]] ([[User talk:Chris Mason|talk]]) 13:57, 13 November 2009 (UTC) |
|||
:Not sure why you're asking here, but it's at [[WP:NOTWIKI]]. [[User talk:Algebraist|Algebraist]] 13:58, 13 November 2009 (UTC) |
|||
:::Not sure why asking here is a problem, this is a reference desk after all. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 14:40, 13 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
:: Well, it didn't really fit in at the help desk, and I figured this would get more responses then the Misc. desk. Thanks a lot though! [[User:Chris Mason|Chris M.]] ([[User talk:Chris Mason|talk]]) 14:04, 13 November 2009 (UTC) |
|||
== Xubuntu 9.10 hosed - can't get past login screen == |
|||
Afternoon, folks. |
|||
I've been having a lot of trouble with my Xubuntu partition after I upgraded to 9.10 a couple of weeks ago. First, my touchpad stopped working (fixed with some odd command). Second, X soiled itself and died after I tried to install the nvidia drivers via the official Hardware Drivers wizard (fixed by sudo apt-get purging the nvidia packages, then deleting xorg.conf so it'd be replaced), but in the last couple of days, just when I thought I'd got it stable, it developed a new problem where I can't get past the login screen. |
|||
It was a bit temperamental after the nvidia drivers fix, but this suddenly started a couple of days ago for no apparent reason (I haven't changed anything anything for over a week). When I start my Xubuntu partition, it goes through the pretty sparkly lights effect, then gives me the user select box. I choose my name, then enter my password. It goes back to the sparkly lights for a second, but then Xfce seems to crash - I see a black screen with garbled text for a quarter second before Xfce restarts and puts me back at the user select screen. The cycle repeats until I give up and boot Windows (which is a pain in lectures since it takes about a thousand years to start up). I've googled around, and I found a [http://newyork.ubuntuforums.org/showthread.php?t=1309603 forum thread] or two and an [http://bugzilla.xfce.org/show_bug.cgi?id=5932 Xfce bugzilla report] about a similar issue, but no surefire solutions. One person suggested deleting ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml. I don't have this exact file, but I do have one that seems to have the same content, but temporarily renaming it (by Ctrl+Alt+Fx-ing into another terminal screen) didn't make any difference. |
|||
Does anyone know how I might fix this? |
|||
Cheers, [[User:CaptainVindaloo|CaptainVindaloo]] <sup>[[User talk:CaptainVindaloo|t]] [[Special:Contributions/CaptainVindaloo|c]] [[Special:Emailuser/CaptainVindaloo|e]]</sup> 14:00, 13 November 2009 (UTC) |
|||
:I've seen similar trouble when using the Nvidia proprietary binary driver. The only solution I know of is to put up with periodic crashes, or to remove the proprietary driver (and use the less powerful, more stable open-source driver for Nvidia cards); and accept a performance/stability tradeoff. [http://www.nvidia.com/object/linux_display_amd64_190.42.html Nvidia has better support for CentOS], so if you're willing to switch out of Ubuntu/Debian, you might get better stability. The official line from Nvidia is: "Note that many Linux distributions provide their own packages of the NVIDIA Linux Graphics Driver in the distribution's native package management format. This may interact better with the rest of your distribution's framework, and you may want to use this rather than NVIDIA's official package." Unfortunate. [[User:Nimur|Nimur]] ([[User talk:Nimur|talk]]) 14:35, 13 November 2009 (UTC) |
|||
:: I guess when CaptainVindaloo says "the official Hardware Drivers wizard" he means the Canonical packaged versions, and you're right that these ''should'' be the most stable available (personally I've had no instability using their nvidia-nonfree on the last four or five iterations of Ubuntu). -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 01:42, 14 November 2009 (UTC) |
|||
:Looking at /var/log/* is a good start. --[[Special:Contributions/194.197.235.240|194.197.235.240]] ([[User talk:194.197.235.240|talk]]) 16:22, 13 November 2009 (UTC) |
|||
: CaptainVindaloo, it seems from your question that at some point you installed the nvidia-nonfree driver from some other source (I guess direct from nvidia) then purged it, and then installed the canonical packaging of nvidia-nonfree instead. If that's the case I'd guess that somehow you may still have fragments of the old thing that apt/dpgk should have removed but hasn't. Clearly your system is mostly servicable, as clearly the X server is starting and running okay to run gdm, but the X server you run for your session is dying (perhaps when the it starts to use the desktop effects features). First I'd check /var/log/Xorg.*.log and /var/log/gdm/*.log If all else fails, login at the (text) console, kill the root gdm, and then manually start X (either as "X" or with "startx") and then xfce; if nothing else you'll see error messages in real time, and you'll be some way to knowing which stage of startup is triggering the barf. -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 01:42, 14 November 2009 (UTC) |
|||
== What is wrong with this mIRC script please? == |
|||
What is wrong with my script? |
|||
http://pastebin.com/m18cdc629 |
|||
I type "!ID 9515" and it attempts the socket open, but the "on sockopen" never gets executed. why?!? |
|||
Thanks! |
|||
[[Special:Contributions/137.81.112.176|137.81.112.176]] ([[User talk:137.81.112.176|talk]]) 16:04, 13 November 2009 (UTC) |
|||
:I don't mean to be rude, but maybe whatever you're doing, mIRC isn't the right tool for the job. You're essentially making a primitive implementation of the HTTP protocol in there, and that's something that should be relegated to the experts. If it isn't directly chat-related, maybe you should go with another language that has built-in implementations of HTTP to make stuff like this a little easier. [[User:FlavusBelisarius|Belisarius]] ([[User talk:FlavusBelisarius|talk]]) 22:27, 13 November 2009 (UTC) |
|||
==Noisy monitor== |
|||
I have a Proview EM-170TFT all very nice except... every few (5, 10?) minutes it makes a sort of hissing sound - the sound is not connected and the volume is on zero. Kinda unimportant but also kinda driving me up the wall. Any solutions? Apart from taking it apart and de-soldering the speakers. ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]'', 16:52, 13 November 2009 (UTC). |
|||
:I assume this is a monitor with built-in speakers. Are you sure the noise comes from the speakers ? I can imagine a build-up of static electricity making a little hiss every so often, even in a monitor with no speakers. I had a TV with a different problem, the speakers would go to full volume all on their own. In that case, I did exactly what you said, I took it apart and disconnected the speaker wires, then used external speakers instead. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 16:57, 13 November 2009 (UTC) |
|||
:Yes it's a definate "turn on turn off". Happens in screen saver mode too. ''[[User:Rich Farmbrough|Rich]] [[User talk:Rich Farmbrough|Farmbrough]]'', 21:50, 13 November 2009 (UTC). |
|||
::An electronics expert could tell us whether TFT monitors have a [[flyback transformer]], which used to be a frequent culprit of whining and other extraneous noise, back in the [[Cathode ray tube|CRT]] days. (The flyback transformer article just talks about CRTs and not TFTs & LCDs, so that's probably the answer right there.) [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 21:55, 13 November 2009 (UTC) |
|||
:::(ec) CRTs used to make all kinds of clicking noises (from high voltage relays closing) and buzzing from the transformer; especially if they were aging or if there was a borderline hardware failure. But, I have not ever seen any of that hardware on an LCD monitor; usually, the transformers and relays are not needed for anything except CRT tubes. It's possible that a power-save mode is using something similar to this. Alternatively, the backlight may be on its way out - those can sometimes hum (like a [[fluorescent bulb]]), due to introduced capacitances that can create resonances at audible frequencies. [[User:Nimur|Nimur]] ([[User talk:Nimur|talk]]) 22:28, 13 November 2009 (UTC) |
|||
::::Yes, it's like it does something which un-mutes teh speakers and plays this buzz-click over it. Always the same sound, about 1 1/2 seconds I estimate. ''[[User:Rich Farmbrough|Rich ]] [[User talk:Rich Farmbrough| Farmbrough]]'' 12:51 [[14 November]] [[2009]] (UTC). |
|||
== Simple ways of *measuring* the CPU frequency in ASM == |
|||
I am interested in different ways of ''measuring'' the CPU frequency using only a very simple assembly routine. A few months ago I tryed the following code: |
|||
<source lang="asm"> |
|||
push 100 |
|||
rdtsc |
|||
mov ebx, eax |
|||
call sleep |
|||
rdtsc |
|||
sub eax, ebx |
|||
mov @Result, eax |
|||
</source> |
|||
It returns 1/10 (because we measure the number of cycles in 100 ms = 1/10 s) of the CPU frequency in Hz. However, it only works on some of my computers (all with Intel CPUs). Are there any better ways? --[[User:Andreas Rejbrand|Andreas Rejbrand]] ([[User talk:Andreas Rejbrand|talk]]) 18:32, 13 November 2009 (UTC) |
|||
: The [[Time Stamp Counter]], the instruction you're using, notes the significant limitations and increasing uselessness of that feature given the implementation of modern x86 microprocessors. Worse, depending on what that <tt>sleep</tt> function does, you're affecting the results while measuring them - because many modern CPUs will put themselves onto low-power (low clock frequency) rates when they think there's nothing going on. -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 20:50, 13 November 2009 (UTC) |
|||
:: Yes, I have read that. What other methods are there? --[[User:Andreas Rejbrand|Andreas Rejbrand]] ([[User talk:Andreas Rejbrand|talk]]) 20:54, 13 November 2009 (UTC) |
|||
::: [http://www.intel.com/Assets/PDF/appnote/241618.pdf This Intel app-note] contains an example "frequency detection procedure" which uses the MPERF register (which is available on some machines). A use of this is also discussed at [http://stackoverflow.com/questions/65095/assembly-cpu-frequency-measuring-algorithm this Stack Overflow topic]. -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 21:29, 13 November 2009 (UTC) |
|||
:::: Is there no more naïve way that works on "all" CPUs? How did you do this ten-twenty (?) years ago, when these instructions were not available? Would it not be possible to write a simple loop that you know use a certain amount of clock cycles, and then use, e.g., Win32 API's GetTickCount before and after the loop? (Yes, I realize that you do need to loop for quite a while, perhaps a second, to get a good value.) --[[User:Andreas Rejbrand|Andreas Rejbrand]] ([[User talk:Andreas Rejbrand|talk]]) 13:38, 14 November 2009 (UTC) |
|||
== Viewing old Outlook Express files on new computer == |
|||
My previous computer broke down and I have its HD as an external HD on my new computeer. There are some Outlook Express email files on the old HD that I want to look at. When I start Outlook Express (which I no longer use) on my new computer, there seems to be no obvious way to view the email files on the old HD. How can I view the email files on the old HD? I only want to view them, it does not matter about importing them etc. Thanks [[Special:Contributions/78.147.22.100|78.147.22.100]] ([[User talk:78.147.22.100|talk]]) 20:56, 13 November 2009 (UTC) |
|||
:Can you send yourself an e-mail and make the old Outlook Express e-mails an attachment ? I believe you can do that with [[Gmail]]. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 22:37, 13 November 2009 (UTC) |
|||
:What format are the files you're trying to read? And what email client/system are you using now? Between them Outlook and (its abjectly incompatible little brother) Outlook Express deal with DBX, OST, MSG, ELM, MBX, and PST file formats. Some of these can be read by other mail programs, some by converter programs, and some seemingly not even by the same program that allegedly created them. In the past, when all else has failed, I've used [http://www.aid4mail.com/ aid4mail] - it's pretty cheap if you need it a lot, but rather expensive if you've just got this one job for it. I've had poor results using free/OS tools on several of these formats (PST being the worst). -- [[User:Finlay McWalter|Finlay McWalter]] • [[User talk:Finlay McWalter|Talk]] 01:09, 14 November 2009 (UTC) |
|||
::Importing the old mail files is the way to go. If you used Outlook Express on the old computer, the HD should have some files on it with the .dbx extention (somewhere like <drive-letter>:\Documents and Settings\<username>\Application Data\Identities\{<several-strings-of-hex>}\ with filenames inbox.dbx, drafts.dbx, outbox.dbx, etc.) Your new email client should be able to import these files. One exception I am aware of is that you cannot import directly into Microsoft Outlook - I had to go through Windows Mail first and then import into Outlook when I started using Vista. [[User:Astronaut|Astronaut]] ([[User talk:Astronaut|talk]]) 02:00, 14 November 2009 (UTC) |
|||
: By default e-mails are stored in "C:\Documents and Settings\''username''\Local Settings\Application Data\Identities\{''random_uuid''}\Microsoft\Outlook Express". This folder can be changed via Tools, Option, Maintenance, Store Folder to something under My Documents, for easier backup. After changing, the original folder can be deleted. See also: [http://support.microsoft.com/kb/270670 Microsoft knowledge base article 270670: How to back up and to restore Outlook Express data.] One way to transfer the files to a new computer is to start Outlook Express on the new computer, which will cause it to create the directories etc, then copy all the files from the old computer to the above-mentioned location on the new computer. (I've recently transferred my data across to a new computer (in both cases using XP and Outlook Express so I know it is possible.) [[User:Mitch Ames|Mitch Ames]] ([[User talk:Mitch Ames|talk]]) 02:03, 14 November 2009 (UTC) |
|||
::<small>Quite right Mitch. I now remember there there are two "identities" folders for each user. Only one of them has the .dbx files (the one under "Local Settings", IIRC). [[User:Astronaut|Astronaut]] ([[User talk:Astronaut|talk]]) 02:54, 14 November 2009 (UTC)</small> |
|||
== external hard drive enclosure failure == |
|||
How often do the enclosures fail? The hard drive itself is perfectly fine, and works like a dream in a new enclosure. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 21:27, 13 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
[[File:Scsi-1 gehaeuse.jpg|thumb|right|You're gone, and I shed no tears.]] |
|||
:I don't have a reference for you, but anecdotally, I've probably seen 20 hard disk crashes at work and home over the years, but never an enclosure failure; the closest to a failure I have seen was an old [[SCSI]] external hard disk enclosure where one of the two [[SCSI connector|50-pin connectors]] (remember those?) got shoved inward to one side, so it was difficult to secure to the big SCSI cable. There's not a lot going on with an enclosure; no spinning parts or really moving parts at all. [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 21:52, 13 November 2009 (UTC) |
|||
::hmmm, that's really odd. I've had my second external hard drive fail today, and just like the one before the actual hard drive works fine in a new enclosure. Perhaps I'm somehow doing something to break them, although I can't think of what. Anyway, thanks. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/82.43.89.85|82.43.89.85]] ([[User talk:82.43.89.85|talk]]) 22:08, 13 November 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot--> |
|||
:::Could it be they just weren't connected properly ? Some of those cables are damned near impossible to get connected properly. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 22:35, 13 November 2009 (UTC) |
|||
== Call of Duty: Modern Warfare 2 == |
|||
When I am about to load the very last mission in ''Modern Warfare 2'', when the progress bar has reached some 80 %, the program crashes and displays the following message: |
|||
create2DTexture(seal_soccom_lower_body_a_nml, 1024, 512, 0, 894720068) failed: 8007000e = Ran out of memory |
|||
Google tells me that this is a ''very'' common problem. But is there any known solution? --[[Special:Contributions/81.227.64.180|81.227.64.180]] ([[User talk:81.227.64.180|talk]]) 22:13, 13 November 2009 (UTC) |
|||
:I may be going out on a limb here, but, um, maybe get more memory ? [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 22:30, 13 November 2009 (UTC) |
|||
:Another option is to free up all the memory you can. I first reboot, then use the task manager and kill every other process (except the critical ones). I do that all the time. [[User:StuRat|StuRat]] ([[User talk:StuRat|talk]]) 22:32, 13 November 2009 (UTC) |
|||
::The system requirements, on the box of the game, says that you should have at least 1 GB of RAM on Vista, which is my OS. I have 3 GB of RAM, so that should not be a problem. --[[Special:Contributions/81.227.64.180|81.227.64.180]] ([[User talk:81.227.64.180|talk]]) 22:52, 13 November 2009 (UTC) |
|||
:::You really should contact Activision technical support. I don't know anything about the error here, but when it's talking about running out of memory, it may be talking about the memory on the video card. Is the video card to spec? [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 23:48, 13 November 2009 (UTC) |
|||
::::Yes, it is. In fact, I am able to run the game in the (big) LCD screen's native resolution with the best (i.e., most demanding) graphics settings, with no lag at all. --[[Special:Contributions/81.227.64.180|81.227.64.180]] ([[User talk:81.227.64.180|talk]]) 00:18, 14 November 2009 (UTC) |
|||
:::::Nice. Try running the game again but change your settings to some lower resolution and lower texture quality settings, and then load the problematic mission again and see if it'll play. Also, what did Activision tech support suggest? [[User:Comet Tuttle|Comet Tuttle]] ([[User talk:Comet Tuttle|talk]]) 01:46, 14 November 2009 (UTC) |
|||
:Smacks of a memory leak issue. If tech support is beating about the bush, the best you can hope for is a patch. Running it in safe mode could help until you get past the bug, then load the game in normal mode again. [[User:Sandman30s|Sandman30s]] ([[User talk:Sandman30s|talk]]) 11:50, 14 November 2009 (UTC) |
|||
= November 14 = |
|||
== Diagnosing Inverter vs. Backlight Lamp == |
|||
The backlight on my laptop monitor isn't working. From what I've been able to find, this is a fairly common problem that can be caused either by the power inverter or the actual florescent lamp. Both parts are pretty cheap on ebay, but I'm not sure I'm up to the task of replacing the lamp myself if that turns out to be the problem (apparently it's a difficult fix), so I'm trying to figure out if there's some way to tell from the symptoms which part is to blame before I start ordering things or taking things apart, instead of just bringing it in somewhere. |
|||
The problem started out gradually. Once in a while the backlight would suddenly quit while the computer was on. After a while it started going out more frequently, especially when the monitor had just been turned on after being off for a while. The screen would start out flickery, and then often go out. It got worse over a month or two until now when it gets turned on it stays lit for only a second or so before quitting. I've been using the computer with an external monitor since it became unusable. If anyone has any tips on making this diagnosis I would appreciate it. [[User:Rckrone|Rckrone]] ([[User talk:Rckrone|talk]]) 04:06, 14 November 2009 (UTC) |
|||
== Redundancy in volume knobs == |
|||
So I've got a usual of three volume knobs my computer is using. There's Windows volume, speaker volume, and then the volume of the application in use. Is there a real functional difference between them all? Or is it just a meaningless redundancy? [[Special:Contributions/69.77.250.210|69.77.250.210]] ([[User talk:69.77.250.210|talk]]) 04:50, 14 November 2009 (UTC) |
|||
:Yes. Obviously one affects the volume for every application including the system volume, one affects the Windows or system volume only and the other affects the volume of the application only. Incidentally the main/speaker/whatever volume sets the limit, if you try to increase the volume of an individual component past this it will move the main volume panel. There are obvious reasons why you might want to adjust each volume individually (or even mute them) as well as the overall volume. For example earlier I was watching a recording from a satellite receiver which had a very low volume because the connection had come lose. I turned up the players volume to max and my speakers. However occasionally when I received messages on my Live Messenger it was very loud as was my system volume when I was doing something on my computer for a while. I could have turned down the Live Messenger and system volume to stop this (I wasn't watching for long and forgot about this so didn't do it). Incidentally if you have multiple applications runnign with sound, you will see multiple applications in the volume panel. (I presume we're talking Vista or Windows 7 here since Windows XP and earlier had different things.) You're welcome to test the various volume bars if you want to see how they work any more. [[User:Nil Einne|Nil Einne]] ([[User talk:Nil Einne|talk]]) 06:36, 14 November 2009 (UTC) |
|||
== web site hosting == |
|||
Just asking those of you out there who have your own personal website which provider you use. I'm interested in starting one myself and would like to get a few tips. Thanks! --[[User:penubag|'''<span style="background:#00CCFF;color:#0066FF;font-size:84%"> penubag </span>''']] ([[User talk:penubag|talk]]) 06:41, 14 November 2009 (UTC) |
|||
:I'm using a Polish service related to [[onet.pl]], however would love to finally set up my own server at home in 2010. Productwise I get 150 MB of web space, for which I pay about EUR 16 once every two years. They have a bandwidth limit, which I do not know, however, and have never exceeded. --[[User:Ouro|Ouro]] <small>([[User_talk:Ouro|blah blah]])</small> 07:00, 14 November 2009 (UTC) |
|||
:I have seven web sites. I've tried using free hosting services, but they were unreliable and slow. Now, I only use paid hosting. GoDaddy is the cheapest I've used at $4.99 a month, but the GoDaddy servers seem to go down a lot. They're also slow and there isn't a toll-free support number. My favorite hosting company is Network Solutions, but they're expensive at $9.29 a month. I've never seen their servers go down and their technical support is excellent. I've also heard good things about Host Gator. They're cheaper than Network Solutions, but they're more expensive than GoDaddy. (They say that hosting is $4.95 a month, but that's only if you get it for three years or something like that.) They only offer Linux hosting. Linux hosting would work if you use PHP or Perl for your server-side scripting, but I use ASP.NET, so I always get a Windows package. If it has to be free, consider asking your ISP if they offer free hosting. If you're a student, ask your school, too. Those two options tend to be reliable, but they usually don't offer any server-side scripting (e.g., PHP, ASP.NET, etc.)--[[User:Drknkn|Drknkn]] ([[User talk:Drknkn|talk]]) 10:42, 14 November 2009 (UTC) |
|||
:Second that. About £30 a year is the cheapest you'll get good reliable hosting with facilities like databases. Plus a couple of extra quid for each web address you want to use. It isn't a lot of money and and if you have problems you can move it somewhere else and keep the name. How much do you value your own time? How much do you spend on a computer? How much do you even spend on electricity for your computer? [[User:Dmcq|Dmcq]] ([[User talk:Dmcq|talk]]) 12:51, 14 November 2009 (UTC) |
|||
::What about [[nearlyfreespeech.net]]? (I've never used it.) -- [[User:BenRG|BenRG]] ([[User talk:BenRG|talk]]) 13:27, 14 November 2009 (UTC) |
|||
:Depending on the service you want, you might look at Storm (http://www.storminternet.co.uk/). I run 3 sites with them and I'm generally pretty happy. --[[User:Phil Holmes|Phil Holmes]] ([[User talk:Phil Holmes|talk]]) 13:39, 14 November 2009 (UTC) |
|||
== Visualization problem ATI card == |
|||
When I play e.g. Crysis and Modern Warfare 2, visual problems appear. There are different problems with both games. After 1 h gameplay Modern warfare 2 my computer renders some textures blue, and the weapon in the hand gets invisible...With my old nVidia GeForce 8500 GT card everything worked fine, but when I put my new ATI Radeon HD4870 card in my computer, visual problems appear(texture problems). Here are my computer specs. ATI Radeon HD4870 512 MB, 3 GB RAM, 600 GB SATA, AMD Athlon 64 X2 Dual Core Processor 5000+. What is the problem? --[[Special:Contributions/81.227.64.180|81.227.64.180]] ([[User talk:81.227.64.180|talk]]) 13:44, 14 November 2009 (UTC) |
Latest revision as of 03:38, 11 January 2025
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.
December 28
[edit]File disambiguators (1): Explorer/W11
[edit]Ó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 usedel
similarly, but do so with caution and at your own risk.) - Mitch Ames (talk) 09:35, 2 January 2025 (UTC)
December 30
[edit]Selecting multiple items in checkbox on this website. Is there an easier way?
[edit]Please look at this link:
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
[edit]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: [1]). 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
[edit]Question(s) about Arch Linux
[edit]@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)
- 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)
January 2
[edit]Bayeux Tapestry website
[edit]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
[edit]Zoomify
[edit]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 [2] 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)
- 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)
- 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)
- @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)
- 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)
- 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)
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, [3], 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[(x - min(x_range), y - min(y_range))] = 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)
- First heard about Colab but tried, and it seems the Code does something. What is the Folder you got the files downlaoded?--Antemister (talk) 17:30, 9 January 2025 (UTC)
Antemister In a new cell, type
from google.colab import files
files.download('merged_image.jpg')
Apologies for putting all of this inside a hat template, I can't figure out how to correct it. JayCubby 18:15, 9 January 2025 (UTC)
- Again progress, have gotten such a merged image that shows a part of the map. The iteration is just a guess... Shouldnt there be a possibility to list all the files in the folder?--Antemister (talk) 22:58, 9 January 2025 (UTC)
- @Antemister, I very nearly got it to work, the final image is 12,000x12,000px but has errors. import os
- import requests
- from PIL import Image
- from concurrent.futures import ThreadPoolExecutor
- Base URL and output setup
- BASE_URL = "http://cartesmich.free.fr/images/France_LD/"
- OUTPUT_DIR = "tiles"
- MERGED_IMAGE = "merged_image.jpg"
- Ensure output directory exists
- os.makedirs(OUTPUT_DIR, exist_ok=True)
- Function to download a tile
- def download_tile(group, x, y):
- url = f"{BASE_URL}TileGroup{group}/6-{x}-{y}.jpg"
- save_path = os.path.join(OUTPUT_DIR, f"TileGroup{group}_6-{x}-{y}.jpg")
- try:
- response = requests.get(url, timeout=10)
- if response.status_code == 200:
- with open(save_path, "wb") as f:
- f.write(response.content)
- print(f"Downloaded: {url}")
- return (group, x, y, save_path)
- else:
- print(f"Tile not found: {url}")
- except Exception as e:
- print(f"Error downloading {url}: {e}")
- return None
- Function to download all tiles (no detection, brute force)
- def download_all_tiles(groups, x_range, y_range):
- tiles = []
- print("Starting brute force tile download...")
- with ThreadPoolExecutor(max_workers=10) as executor:
- futures = []
- for group in groups:
- for x in x_range:
- for y in y_range:
- futures.append(executor.submit(download_tile, group, x, y))
- for future in futures:
- result = future.result()
- if result:
- tiles.append(result)
- return tiles
- Function to stitch tiles together
- def stitch_tiles(tiles, tile_size):
- if not tiles:
- print("No tiles to stitch.")
- return None
- Determine the range of x and y coordinates
- all_coords = [(x, y) for _, x, y, _ in tiles]
- min_x = min(x for x, y in all_coords)
- max_x = max(x for x, y in all_coords)
- min_y = min(y for x, y in all_coords)
- max_y = max(y for x, y in all_coords)
- Create a blank canvas for the final image
- width = (max_x - min_x + 1) * tile_size
- height = (max_y - min_y + 1) * tile_size
- merged_image = Image.new("RGB", (width, height))
- Paste tiles onto the canvas
- for group, x, y, tile_path in tiles:
- tile_image = Image.open(tile_path)
- merged_image.paste(
- tile_image, ((x - min_x) * tile_size, (y - min_y) * tile_size)
- )
- return merged_image
- Main script execution
- tile_size = 256 # Assume each tile is 256x256
- groups = range(0, 16) # TileGroup0 to TileGroup15
- x_range = range(0, 50) # x-coordinates: 0–49
- y_range = range(0, 50) # y-coordinates: 0–49
- tiles = download_all_tiles(groups, x_range, y_range)
- Stitch the tiles into a single image
- if tiles:
- merged_image = stitch_tiles(tiles, tile_size)
- if merged_image:
- merged_image.save(MERGED_IMAGE)
- print(f"Merged image saved as {MERGED_IMAGE}")
- else:
- print("No tiles were downloaded!") JayCubby 03:31, 11 January 2025 (UTC)