Jump to content

Wikipedia:Reference desk/Computing: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 232: Line 232:


= December 18 =
= December 18 =

== Microsoft tortures me with Internet Explorer. ==

I need to open a website. It is the "Physical Review Letters." Every time I try to open it I get a page saying that the future of Internet Explorer is with Microsoft Edge. There is a list of what to do to replace IE with ME, fine. Yesterday I went this road 3 times. Every time MS throws me back like nothing happened. Fortunately Wikipedia website is immune, At least I may complain here. All other websites are closed for me. Damn Microsoft. Why don't they simple replace one browser with another? If it is inevitable as they say, then DO IT. I am outraged. Today I cannot work because of their stupidity. [[User:AboutFace 22|AboutFace 22]] ([[User talk:AboutFace 22|talk]]) 17:21, 18 December 2022 (UTC)

Revision as of 17:21, 18 December 2022

Welcome to the computing section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

Main page: Help searching Wikipedia

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:

December 11

Single-session.

So years ago, I had asked what is it called when you login say to your e-mail on another computer, and that's fine, but other environments when you log in, it gives you an error saying you are already logged in elsewhere, and the other is forced-logged off. So I was told, multi session vs. single session. Now my question is, there's 2 types of single-session: 1 where the networks forces log-off the 1st session (and notifying you of that), and the other is it prevents you to log in the 2nd place, until you log off the 1st place 1st. Is there a terminology for this kind of thing too? 67.165.185.178 (talk) 14:59, 11 December 2022 (UTC).[reply]

I don't know the exact term, but I think this sort of situation is fairly fully discussed in this Java forum on Stackoverflow:[1] MinorProphet (talk) 14:21, 15 December 2022 (UTC)[reply]

Some DNS entries redirecting to loopback? (Linux Mint)

Resolved

Recently I've been having this issue where pretty much every website loads normally, however if I try to navigate to google.com I get a "website not found" error from the browser. So I sent out a ping and found that the web address that google.com is resolving to is 127.0.0.1! I have flushed my DNS caches and restarted the computer to no avail. Not being much of a network guru, I'm frankly at wits end. Any suggestions? Earl of Arundel (talk) 21:42, 11 December 2022 (UTC)[reply]

What OS are you using? Many systems have an /etc/hosts file or something similar which can manually override DNS mappings. I would check that first. CodeTalker (talk) 21:44, 11 December 2022 (UTC)[reply]
Sure enough, that did the trick. Thanks for the help! Earl of Arundel (talk) 21:58, 11 December 2022 (UTC)[reply]
Hello all, I have a Catalyst 3560 as my core with multiple VLANs, then it goes through an ASA 5510, and after that it goes through a Router 3945. Eutropiuswc (talk) 09:38, 15 December 2022 (UTC)[reply]
Hi, @Eutropiuswc: Do you have a question? Having had a look, all the kit is Cisco, I would say suitable for a fairly busy office network. The Catalyst 3560 is a gigabit ethernet switch plus two SFP ports, which I believe has a cut-down version of the CIOS used on the routers, having used something similar several years ago. Some have basic RIP and static routing, upgradable to full dynamic IP routing. The ASA 5510 is an Adaptive Security Appliance, basically a high-throughput hardware firewall with multiple VLAN capability, with cheaper models capable of 50,000 concurrent sessions with up to 130,000 with an updgrade. The 3945 router with full Cisco IOS has two SFP ports with various capabilities. The switch and router are both past end-of-life. Should this be in a new thread? MinorProphet (talk) 15:43, 15 December 2022 (UTC)[reply]

December 12

Usage breakdown by country/region?

Do we have data on usage/page views of English Wikipedia by country or region? Where can such data be found? Cbl62 (talk) 16:35, 12 December 2022 (UTC)[reply]

If there is a better place to pose this question, any leads would be appreciated. Cbl62 (talk) 16:36, 12 December 2022 (UTC)[reply]
WP:VIEWSSTATS may be a good starting place for your research. --Jayron32 16:58, 12 December 2022 (UTC)[reply]
I remember in 2008, there was a Wikipedia thing where the men to women ratio of Wikipedia users were 9:1. Has the % of women editors increased since? 67.165.185.178 (talk) 23:48, 12 December 2022 (UTC).[reply]
You're asking a significantly different question than the OP, who asks ostensibly about viewership and not editors. Did you intend to start a new topic here Elizium23 (talk) 00:29, 13 December 2022 (UTC)[reply]
As of 2021, the Philippines has the highest social media usage rate in the world and their internet use is 60% higher than the average, [299|marine fender in dubai] at 11 hours a day! That's staggering online time. And it's been that way for the past few years. Eutropiuswc (talk) 05:59, 16 December 2022 (UTC)[reply]

December 13

What is thirtylone?

  • Transferred to Science desk

December 14

Any way to get smartphones to view images to screen width?

When I view websites, smartphones shrinks some images to only 70% or even 50% of the window width. In HTML or JavaScript coding, is it possible to tell smartphones to stretch images to the screen width size? Thanks. 67.165.185.178 (talk) 03:57, 14 December 2022 (UTC).[reply]

What phone are you using (Android or OIS?) and with what browser? What happens when you tap on the image? Shantavira|feed me 09:34, 14 December 2022 (UTC)[reply]
For if (/mobile/i.test(navigator.userAgent)) { //user is using a smartphone } else { //user is not using a smartphone } And nothing happens when tapping on the image. 67.165.185.178 (talk) 12:59, 14 December 2022 (UTC).[reply]
Have you tried pinch-and-zoom with two fingers? Most websites allow you to zoom. Chrome has a setting to override websites that try to block zooming. Also, you can turn on triple-tap screen zooming in the accessibility settings of Android. 97.82.165.112 (talk) 13:55, 14 December 2022 (UTC)[reply]
Despite the OP's reference to "viewing some websites" they appear to be asking how to program a website. Elizium23 (talk) 16:23, 14 December 2022 (UTC)[reply]
If that is the case, setting the viewport will almost always tell the phone to stop messing with the layout. It is rather easy. In the head, add <meta name='viewport' content='width=device-width, initial-scale=1'> to say that you want it scaled normal, not "phonified". 97.82.165.112 (talk) 19:09, 14 December 2022 (UTC)[reply]
Hey @97.82.165.112: thank you for that, my last question is. When smartphones display paragraphs, with the <P> tag in HTML, where computers view them 1 line apart, smartphones view them half-a-line apart. Is there any to make them as 1 line apart? Thanks. 67.165.185.178 (talk) 15:00, 17 December 2022 (UTC).[reply]

How do GUI users work with lists of filenames?

This question may seem too abstruse or philosophical to be answerable, but I assure you, it is quite real and practical for me.

If I'm in a command-line environment, and I want to work with the names (as opposed to the contents) of one or more files, that's easy. I'm a Unix geek, so I'm always typing things like

ls >filename

or

 ls | grep

Or, if I'm in what you might call a semi-graphical environment, meaning that I'm in what looks like a "proper" GUI, with windows and menus and a pointing device and everything, but (as is certainly my habit) some or many of the windows are "Terminal windows" with an old-fashioned CLI-based shell running in them, I can type plain ls and then select and copy ls's output with the mouse, and paste it somewhere else. Easy peasy. It may seem like an odd mixture of CLI and GUI styles, but I do it all the time.

My question is, how do "normal" users do this sort of thing? A list of files in a "folder window", even if in a list-based view, is not typically a context where you can freely copy the text you can see. In Windows, at least, selecting a filename in a folder view, and then copying, puts a copy of the whole file on the clipboard, not just the filename. If you can do that thing with your mouse that makes the filename editable (so that you can rename it right there in the GUI), the name becomes text you can copy to the clipboard, but it's a nuisance, and it only works for a single file. There's no way, that I know of, to copy the names of several files.

And the particular instance of the problem I had just now (the one that prompted me to post this question) was even worse. I wasn't in the OS's normal "folder window"; I was in a browser, pointing at SharePoint or something like it, i.e. one of those web-based collaborative sites that allegedly makes working on shared documents easier and more productive. Again, there's a list of "files", and they all have names, and their names are text, and I want to do something with that text, but selecting and copying and pasting is more or less out of the question, so I'm sunk, unless I want to use my eyeballs and manually retype all the filenames, which is also out of the question, because there are too many of them and they're too long and complicated.

So my question is: If a "normal" computer user is looking at a window full of icons, and the icons all have names, how do you get that list of names as plain, fungible text? Or is this such an obscure thing to want to do that no one does, so it's not a problem that there's simply no way to do it?

(I'm not intending this as a flame; I'm not trying to start an argument or debate. I'm honestly curious.)

scs (talk) 22:37, 14 December 2022 (UTC)[reply]

The GUI is suitable for certain things, and the CLI is suitable for other things. Why wouldn't a "normal" computer user launch a shell, such as PowerShell or Bash, and obtain that list in the shell? Use the right tool for the job. Elizium23 (talk) 22:40, 14 December 2022 (UTC)[reply]
I have a "copy as path" command in Windows 11 (Maybe on other windowses one has to hold down Shift?) There also must be programs that install themselves in the context menu and add this functionality (I dimly remember, in Windows 95, that I had a "powertoy" that added "copy to..." and "move to..." commands to the context menu.) Some places on the internet also suggest opening the folder in a web browser (file://c:/...) and copying the names from there (which is messy because it's multi-column, so one will also need something like awk.) So, there are ways. I think that's what a non-console-using user would do - look if windows does something and if not, look for and install a 3rd-party tool with that functionality Aecho6Ee (talk) 18:32, 15 December 2022 (UTC)[reply]
this is ancedotal, but I find myself using the console (terminal) in Windows less that in Linux and don't feel any less of a power user for it:). So, if it's something with disks, I go straight for the GUI disk manager, ditto network, processes etc. First, unlike in Linux, the GUI tools are just there and an integral part of the system, and second, I find M$ command-line tools kinda clunky (many "long" options), many times I don't know if there even is a command line tool (what's Windows-ese for "lvm", say?), and they are hard to get documentation on (no "man"), so I can't be bothered to learn them. Aecho6Ee (talk) 18:47, 15 December 2022 (UTC) [reply]
@Aecho6Ee: Ah, yes. The question of which UI idioms are or aren't befitting of a power user, and whether Windows, Linux, or MacOs do better at catering to such, is a fascinating question on which I definitely have strong opinions, but which I am most certainly not going to try to start exploring here, now! :-) —scs (talk) 15:47, 16 December 2022 (UTC) [reply]
When a Mac user (normal or otherwise), using the standard GUI interface of macOS, selects and copies the contents of a Finder window (which presents a view on a folder) and then pastes it into a plain text document window (such as of MacVim, TextEdit, or the edit window of a Wikipedia page), the result is that just the textual filenames get pasted. 18:45, 15 December 2022 (UTC)
Thanks very much for the replies, @Aecho6Ee: and @Lambiam:. I hadn't known about that capability in Windows or Mac — which is ironic, given that I use a Mac every day.
Interestingly, on both systems what you get on the clipboard is full pathnames for each file, not just the filenames. (Not saying this is right or wrong, just interesting.)
Perhaps, in the fullness of time, the web-based file managers (SharePoint and the like) will get the memo and add such a feature, given that they've implicitly committed to reinventing every wheel. (I'm not going to hold my breath, though.) —scs (talk) 15:47, 16 December 2022 (UTC)[reply]
@Scs: Maybe the button "Export to Excel" in SharePoint toolbar could help you (here it's explained). Alexcalamaro (talk) 08:16, 17 December 2022 (UTC)[reply]

December 15

What is a cat filter?

I asked a similar question, and found out before I asked this question that a filter in this sense was actually a "Lens". I'm not sure if there was a specific Wikipedia article mentioned on the topic and I don't see it at Lens (disambiguation) unless I am misunderstanding the description.

I also checked Filter and didn't see anything obvious. I had assumed I would have changed one or both of these disambiguation pages when I received my earlier answer, but I don't see my name in either history, and of course I saw no specific Wikipedia article in the responses to the questions.

The one article that comes closest to describing what I am looking for is Zoom Cat Lawyer but it does not link to an article that describes what is happening. Whatever article that one links to should also be on the two disambiguation pages.

There is a section on Snapchat but that's specific to Snapchat and I'm thinking this software is available elsewhere.— Vchimpanzee • talk • contributions • 20:39, 15 December 2022 (UTC)[reply]

Hello Vchimpanzee and welcome to the computing reference desk, now i assume you are referring to internet videos, pictures and memes where a persons face is a cats face, as you say snapchat is one software that can do this (and so can the camera apps in most smartphones made in the 5 or so years) if snapchat is using software licenced from another company, it should say so in the apps about page, i know there's a similar software for PC called facerig although it's not a filter but rather a 3D model animated using your webcam, as for pictures, it's often simple photo editing "photoshopping" or compositing, where the cats face is placed over the persons face, the only word i can think about to describe it is deepfake although that doesn't seem to apply to cat faces on people. OGWFP (talk) 21:08, 15 December 2022 (UTC)[reply]
I am not, of course, referring specifically to cats, but the software that does that and can change the images in that way. What would one link to for a description?— Vchimpanzee • talk • contributions • 21:15, 15 December 2022 (UTC)[reply]
It is augmented reality. In the same way that an app can overlay a black box on a video to hide something, you can overlay a model or sticker over a video to change someone's appearance to a cat or dog or anything you like. You can also change the color, hue, or brightness of something in the video. All in all, it is simply augmented reality - very quickly altering a live video image with computer generated content. 97.82.165.112 (talk) 22:15, 15 December 2022 (UTC)[reply]
Augmented reality does not refer to modifying video output. AR is about a user experience where some electronic modifications are overlaid on the user's view of the real world. Filters and lenses are a way to modify video production in a way that's been done for decades in Hollywood -- you just film a person doing something (or film something else) and then modify it in post-production. In this case, "post-production" may entail a live filter applied to the video stream in the phone. This is not AR. Elizium23 (talk) 22:23, 15 December 2022 (UTC)[reply]
Snapchat themselves have called the application of their lenses AR, and used as so-called "world lenses"[2] – essentially the same technology applied differently – it fits the usual definition of AR.  --Lambiam 08:43, 16 December 2022 (UTC)[reply]
Google, Snapchat, and Apple refer to effects added to live video display as "augmented reality." Google does it by translating signs in real time on the video display.[3] Snapchat does it with placing models over the user's face.[4] Apple does it with special video effects for amateur movies.[5] Microsoft refers to the dynamic backgrounds in Teams as augmented reality. So, the industry is using that term as a catch-all for augmenting live video in real time. What you appear to be referring to is a heads up display (HUD), which is an entirely different technology. 97.82.165.112 (talk) 13:27, 16 December 2022 (UTC)[reply]
Perhaps marketing has subjected the term to scope creep, but I personally feel like that's a dilution of its meaning and power. I always considered AR to be something where you don a VR helmet, (or at least you're looking through a live camera at your own surroundings) and stuff is overlaid. Like Pokemon Go. Elizium23 (talk) 13:33, 16 December 2022 (UTC)[reply]
at least you're looking through a live camera at your own surroundings) and stuff is overlaid. Like Pokemon Go. - but isn't this exactly what Snapchat does? I'd argue there's no clear difference between a lot of the stuff called AR on Snapchat and what people call AR on Pokémon GO, Minecraft Earth etc. In both cases they involve projecting something onto your live physical surroundings viewed through a display showing what your camera sees. The difference comes mostly from the way users generally use them. Most people interact with AR games as a form of live interaction and with the rear camera whereas people are generally using Snapchat to make a video or picture and often with the front camera i.e. in selfie format (so as a sort of mirror rather than what they're seeing). However you're free to just open Snapchat and use the AR to have fun with no intention to take a photo or video and AFAIK with most Snapchat lenses or whatever they call them you can use the rear camera rather than front one. And I'm sure some people do this especially when with friends. And occasionally people use AR games more or less solely to produce something to be shared see e.g. [6] although I think with most games using the front camera is rare or not supported. Nil Einne (talk) 10:52, 17 December 2022 (UTC)[reply]
We do have an article Google Lens using the term "lens", and an article Mixed reality that is about the general concept but does not use the term "lens" (except in the compound Microsoft HoloLens, which however mainly refers to a hardware item).  --Lambiam 08:53, 16 December 2022 (UTC)[reply]
Google Lens is something else. I know this is a concept that needs a Wikipedia article or at least a way to link from disambiguation pages.— Vchimpanzee • talk • contributions • 16:11, 16 December 2022 (UTC)[reply]
We have Filter (social media) and Beauty filter. I think I'll edit a link into Zoom Cat Lawyer. These pages are linked to in the Filter disambiguation (at the bottom, under Social Media). I added the Filter (social media) page to the Lens disambiguation, and created a Computing section since we now have three software-related meanings.  Card Zero  (talk) 01:36, 18 December 2022 (UTC)[reply]

December 17

Making buttons to change the colors on a page.

I had buttons on a site that changed the bgcolor and text color back and forth between "day time" and "night time." The code just changed the default colors. But now I want to use to as declaring variables, i.e., color1, color2, which can change, upon button click. Here's what I have

<style type="text/css">
		body.theme-day { color1: green; color2: red; color3: lightgray; }
		body.theme-night { color1: darkgreen; color2: darkred; color3: gray; }

		/* hide elements for the opposite theme 
		body.theme-day .theme-night { display: none; }
		body.theme-night .theme-day { display: none; }
         */
	</style>
	<script type="text/javascript">
		function change_theme(theme) {
			document.body.className = document.body.className.replace(/\s*theme-\S+/, "") + " theme-" + theme;
		}
	</script>
//And then the buttons.
<P align="center"><button class="theme-night" type="button" onclick="change_theme('day');">Day version</button>
<button class="theme-day" type="button" onclick="change_theme('night');">Night version</button></P>

And so my issue is, using color1 and color2 are not recognized, say, when I use font color="color1" for example. Thanks. 67.165.185.178 (talk) 16:29, 17 December 2022 (UTC).[reply]

I'm not used to CSS, but I had a look at the relevant page on W3Schools.
Variables: it seems that their names have to start with --, so you would have to say --color1: green; --color2: red;, and so on. Then, it seems that you have refer to them using the var() function. So rather than saying style="color: color2;" it would be style="color: var(--color2);".  Card Zero  (talk) 22:07, 17 December 2022 (UTC)[reply]
Okay, I got half of it to work. The part that works is
th, td {
  border: 2px solid var(--color2);
}

(Above is all within <style> tags. But the part that doesn't work is <body style="bgcolor: var(--color3);">,

<table style="bgcolor: var(--color3);">

, and

<td style="bgcolor: var(--color1); width:83%">

67.165.185.178 (talk) 00:08, 18 December 2022 (UTC).[reply]

Is it possibly background-color rather than bgcolor?
Here's a complete functioning page.
<!DOCTYPE html>
<html>
<head>
<style>
#customers {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#customers td, #customers th {
  border: 2px solid var(--color2);
  padding: 8px;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}

		body.theme-day { --color1: green; --color2: red; --color3: lightgray; }
		body.theme-night { --color1: darkgreen; --color2: darkred; --color3: gray; }
</style>
<script type="text/javascript">
	function change_theme(theme) {
		document.body.className = document.body.className.replace(/\s*theme-\S+/, "") + " theme-" + theme;
	}
</script>
</head>

<body class="theme-day" style="background-color: var(--color3);">

<h1>A Fancy Table</h1>

<table id="customers" style="background-color: var(--color3);">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td style="background-color: var(--color1); width:83%">Germany</td>
  </tr>
  <tr>
    <td>Berglunds snabbköp</td>
    <td>Christina Berglund</td>
    <td>Sweden</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

<P align="center"><button class="theme-night" type="button" onclick="change_theme('day');">Day version</button>
<button class="theme-day" type="button" onclick="change_theme('night');">Night version</button></P>

</body>
</html>

 Card Zero  (talk) 00:49, 18 December 2022 (UTC)[reply]

Okay, got it to work, it was indeed background-color. 67.165.185.178 (talk) 01:07, 18 December 2022 (UTC).[reply]

December 18

Microsoft tortures me with Internet Explorer.

I need to open a website. It is the "Physical Review Letters." Every time I try to open it I get a page saying that the future of Internet Explorer is with Microsoft Edge. There is a list of what to do to replace IE with ME, fine. Yesterday I went this road 3 times. Every time MS throws me back like nothing happened. Fortunately Wikipedia website is immune, At least I may complain here. All other websites are closed for me. Damn Microsoft. Why don't they simple replace one browser with another? If it is inevitable as they say, then DO IT. I am outraged. Today I cannot work because of their stupidity. AboutFace 22 (talk) 17:21, 18 December 2022 (UTC)[reply]