200 PORT command successful. Consider using PASV. 425 Failed to establish connection

Try using the passive command before using ls. From FTP client, to check if the FTP server supports passive mode, after login, type quote PASV. Following are connection examples to a vsftpd server with passive mode on and off vsftpd with pasv_enable=NO: # ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.3.5) Name (localhost:john): anonymous 331 … Read more

Default icons for Windows applications?

For Visual Studio 2012 and 2013: The icons are not in the program folder any more. You can download the Visual Studio Image Library which contains most of the icons at http://www.microsoft.com/en-us/download/details.aspx?id=35825 It contains many icons from Visual Studio, Office,…

How to get the process name in C++

I guess the OpenProcess function should help, given that your process possesses the necessary rights. Once you obtain a handle to the process, you can use the GetModuleFileNameEx function to obtain full path (path to the .exe file) of the process. #include “stdafx.h” #include “windows.h” #include “tchar.h” #include “stdio.h” #include “psapi.h” // Important: Must include … Read more

Variables are not behaving as expected

You are not the first, who fell into the famous “delayed expansion trap” (and you won’t be the last). You need delayed expansion if you want to use a variable, that you changed in the same block (a block is a series of commands within parentheses (and )). Delayed variables are referenced with !var! instead … Read more

Debugging javascript in Safari for Windows

Well, apart from the Error Console that can be opened from the Develop menu (which in turn can be enabled in (Prefences / Advanced / Show Develop menu in menu bar) there aren’t many javascript debugging options in Safari AFAIK. Still, the error console is quite useful as it shows javascript errors and also lets … Read more

I have a GPU and CUDA installed in Windows 10 but Pytorch’s torch.cuda.is_available() returns false; how can I correct this?

I also had the same issue. And running this => a=torch.cuda.FloatTensor(), gave the assertion error AssertionError: Torch not compiled with CUDA enabled . …which kind of cleared that i was running pytorch without cuda. Steps: Make sure you have un-installed Pytorch by invoking the following command: pip uninstall torch Go to https://pytorch.org/get-started/locally/ and select your … Read more