Wikipedia:Reference desk/Computing

From PsiForum
< Wikipedia:Reference desk
Revision as of 06:17, 9 February 2022 by Tachyony (talk | contribs) (Imported page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Wikipedia:Reference desk/header

February 2

wysiwyg latex in ms word

Hi, I have a latex file that I'm editing in MS Word. Is there a way to change the view, so that I can look alternately at equations, then at the codes, at the click of a button? Thanks in advance, IBE (talk) 15:03, 2 February 2022 (UTC)

I'm not sure about writing LaTeX in word but does LyX give you what you want? As it's WYSIWYG and able to produce the LaTeX code.Dja1979 (talk) 16:01, 2 February 2022 (UTC)
I don't want to write LaTeX - I already have the latex file, I just need to view the equations in WYSIWYG form, when the code is given. I am editing these files for grammar etc (online editing job) so the code doesn't really concern me, but I need to view it to check the flow, even as an overview for a general understanding. IBE (talk) 16:25, 2 February 2022 (UTC)
One possibility is to keep a separate window open for viewing a pdf of the typeset latex source, and switching between windows. The running text in the pdf window is not updated, but as you only want to see the typeset equations, which do not change, this should not be an issue.  --Lambiam 18:29, 2 February 2022 (UTC)
I would assume "WYSIWYG" is short form for "what you see is what you get"? ― Blaze WolfTalkBlaze Wolf#6545 18:34, 2 February 2022 (UTC)
yes, @Blaze Wolf:, also @Lambiam:, I was in fact starting to think like that. Can you or anyone tell me the best free app for turning a Latex file into a pdf? IBE (talk) 19:32, 2 February 2022 (UTC)
Not to repeat myself but LyX is free.Dja1979 (talk) 19:38, 2 February 2022 (UTC)
Most TeX distributions have pdflatex; free distributions include TeX Live and MiKTeX.  --Lambiam 20:40, 2 February 2022 (UTC)
You can use www.overleaf.com. If you enable the auto-recompiling, you will see the result as you are typing. Ruslik_Zero 19:47, 2 February 2022 (UTC)

Thanks to all. I'll look into those options, IBE (talk) 03:28, 3 February 2022 (UTC)

February 3

Do I need to use these line in coding?

I am using this syntax in middle of the code:

WebDriver driver=new ChromeDriver();

so during importing drivers, do I still need to import chrome drivers? I mean should I leave my code

import org.openqa.selenium.WebDriver;

in opening line without using this one: import org.openqa.selenium.chrome.ChromeDriver; ?

WebDriver is an interface that is implemented by several classes, of which ChromeDriver is one.[1] ChromeDriver() is a constructor defined in the class ChromeDriver.[2] The WebDriver interface does not define any constructors; to use the ChromeDriver() constructor, you'll need to import the class that defines it.  --Lambiam 22:12, 3 February 2022 (UTC)

I got the answer from this line: The WebDriver interface does not define any constructors; to use the ChromeDriver() constructor, you'll need to import the class that defines it. Rizosome (talk) 22:39, 4 February 2022 (UTC)

  Resolved

EXP3 multi armed bandit with multi experts

Hello, I look for extension for EXP3 multi armed bandit with K experts selection instead of 1 at each round. Thanks --77.124.184.82 (talk) 23:18, 3 February 2022 (UTC)

February 5

External drive problems

I have a lot of files, so I keep them on a series of Seagate external USB drives. One for music, one for mods and saved games, one for movies, etc. They were all working fine until recently. Now, they don't seem to load properly. If I've restarted the computer, one will load, but no others will. And, if I eject the working one and try to connect it again, it won't. If I restart, I similarly get one shot to connect. AFAICT, the drives are just fine and connect with no problem on other computers. As far as Windows Explorer is concerned, the drives are not there at all, but they do show up in the device manager, which gives me this message: "Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 38) The driver could not be loaded because a previous version of the driver is still in memory."

In searching online for that error, it was suggested that I uninstall the driver and then allow Windows update to take care of it, so I did that, and Windows did seem to find and install optional updates, but now after all the restarting is done, the same problem is still here. I entered some S/N - P/N on the Seagate website, but there was no driver showing as required for Windows; the only options are for dashboards and other programs for managing backups, which I don't want/need.

What else can I try? Matt Deres (talk) 20:31, 5 February 2022 (UTC)

How does ASP.NET MVC HttpContext work?

How does the HttpContext in ASP.NET MVC work? How is it implemented? When I set some item in the HttpContext of an HTTP response, and the user then makes another request, I get the same item in the request's HttpContext. Where is it stored? Is it in the browser's cookies? Or does the ASP.NET MVC framework keep some sort of internal dictionary, with an index key coming from the HTTP request? JIP | Talk 22:03, 5 February 2022 (UTC)

February 6

Problems with video on Firefox on Fedora Linux

I am using Mozilla Firefox 96 on Fedora 35 Linux. I have problems playing videos, for example on YouTube. The video loads, but never actually starts playing. It's stuck at 00:00. I can jump forward in the video after it has streamed enough, but it still won't actually play, it just skips to a different frame. This doesn't happen after a fresh reboot, the videos play OK then. But afterwards they just stop playing. The only solution I have currently found is a system reboot. This is not a hardware or a network problem as the videos play OK at first. Is this a problem with Firefox or Fedora? Has anyone else had this problem? JIP | Talk 16:17, 6 February 2022 (UTC)

February 7

In JAVA, is it possible to write all types of codes in main method?

I want to write all types of codes in main method, so that no need to instantiate the class or without having to instantiate an object.

public class Main { 
public static void main(String[] args) { 
int x = 5; 
System.out.println(x); 
} 
}

I don't want to use below code to show same output:

public class Main { 
int x = 5;

public static void main(String[] args) { 
Main myObj = new Main(); 
System.out.println(myObj.x); 
} 
}

Rizosome (talk) 06:10, 7 February 2022 (UTC)

Yes, this is entirely possible. main() can have local variables just like any other method. JIP | Talk 09:48, 7 February 2022 (UTC)

I understand very well. Rizosome (talk) 07:35, 8 February 2022 (UTC)

  Resolved

Unzipping files

How do I unzip a file without the use of 3rd party websites? I've heard it's really easy but I'm just missing a key point. Hpnzii (talk) 16:04, 7 February 2022 (UTC)

@Hpnzii: Depends on what OS you're using. If you're on Windows you can do it through the file explorer (Can't provide the exact steps to do so right now as I don't have access to my Windows PC) as long as it's a file in the .zip format. I can't say the same for other OSes though since I've only ever used Windows and Chrome OS (never really encountered .zip files on Chrome OS so I don't know how it works there). ― Blaze WolfTalkBlaze Wolf#6545 16:09, 7 February 2022 (UTC)
On Windows 10, in file explorer, right-click on the file. One of the menu options is "Extract all...", which then asks you where to put the files — GhostInTheMachine talk to me 16:16, 7 February 2022 (UTC)

February 8

February 9