Posts

Showing posts with the label windows

Best way to set environment variable and execute command in one line

Image
Clash Royale CLAN TAG #URR8PPP Best way to set environment variable and execute command in one line I want to make a backup with PostGreSQL pg_dump command with command line like : "<c:Program FilesPostgreSQL9.6binpg_dump>" -h localhost -p 5432 -d test_backup_bat -U user -f D:destination_backuptest.backup but I need to set PGPASSWORD before as environment variable to execute the backup command PGPASSWORD=mypassword How can I make this in only one command line into Windows CLI ? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Future solutions

Image
Clash Royale CLAN TAG #URR8PPP Future solutions I am working with a large data set, which I use to make certain calculations. Since it is a huge data set, my machine, I am working on, is doing the job excessively long, for this reason I decided to use the future package in order to distribute the work between several machines and speed up the calculations. So, my problem is that through the future (using putty & ssh) I can connect to those machines (in parallel), but the work itself is doing the main one, without any distribution. Maybe you can advice some solution: My code: library(future) workers <- c("000.000.0.000", "111.111.1.111") plan(remote, envir = parent.frame(), workers= workers, myip = "222.222.2.22") start <- proc.time() cl <- makeClusterPSOCK( c("000.000.0.000", "111.111.1.111"), user = "...", rshcmd = c("plink", "-ssh", "-pw", "..."), rshopts = c("-i...

UWP Control panel app settings

Image
Clash Royale CLAN TAG #URR8PPP UWP Control panel app settings If i declared a permission in application manifest(eg. microphone) is there a way to check if the user has enabled this permission and to change permission if user agrees to have permission changed? This is for a UWP application written in C# to allow cortana to interact with application 1 Answer 1 Is there a way to check if the user has enabled this permission? Call MediaCapture.InitializeAsync method in a try-catch block, specify you want to initialize microphone in the MediaCaptureInitializationSettings parameter. If it is the first time use of this API, it will launch a consent prompt to get the user's permission for the app to access the microphone. If user has already refused to grant permission, you get an exception. MediaCaptureInitializationSettings Can I Change permission if user agrees to have permission changed? No. It is...

Trying to add rating for a windows file and I am getting “You will need to provide administrator permission to apply properties to this file”

Image
Clash Royale CLAN TAG #URR8PPP Trying to add rating for a windows file and I am getting “You will need to provide administrator permission to apply properties to this file” This is on a Windows 10 computer. I am the owner of the file. My account is an Admin account. I can rename the file with no problems Update: after some investigations I realized the is happening only for PDFs This seems to have something to do with the file handler What rating? How are you adding it? – SILENT 9 hours ago in File Explorer enable the details pane (Under the View menu) then click on the file and you will see tags, category content rating (this is a doc file) – MiniMe 9 hours ago 1...

i cant code in my ENTIRE System, IDE

Image
Clash Royale CLAN TAG #URR8PPP i cant code in my ENTIRE System, IDE i have a BIG PROBLEM! that making me Mad! i cant type any code (i mean i cant use Auto-Completion) in any IDE! i tried Ctrl+space (not working) i tried changing my WINDOWS to 10, 7, 8...! (not working) i tried everything... plz help, its about 2 month and still nothing! i'm going mad :( this issue crippled me, i cant use (mono Develop for unity) or other IDE's like VS-Code, or VS 15, 17! i'm really frustrated... in advance: (sry for my bad english) (and THANK YOU... ) By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How can allow access website from internet with vps win server 2012?

Image
Clash Royale CLAN TAG #URR8PPP How can allow access website from internet with vps win server 2012? I using a VPS of google: Win server 2012. i using web server: Apache 2.4 and PHP 7.1 Current i can access website from local with private ip http://10.142.0.2/index.html Now, i want pubic website: I check on Firewalls of VPS but it still can not access: Firewalls Allow HTTP traffic Allow HTTPS traffic How can allow access website from internet with public ip? http://35.227.108.81/index.html Thank you. Have you checked the firewall of your VPS server? I think you must open port for Apache. – VinhCC 10 hours ago can you give a link help setting? – Bibo 10 hours ago ...

Windows 10 PIN Sign-in: Your credential could not be verified

Image
Clash Royale CLAN TAG #URR8PPP Windows 10 PIN Sign-in: Your credential could not be verified I've been using my Windows 10 PIN login for a long time, it recently stopped working and throwing an error: Your credential could not be verified, I'm pretty sure my PIN is correct as I've reset my PIN a couple of time. this belongs on Super User – Daniel A. White 5 mins ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Can I get Full computer name using powershell?

Image
Clash Royale CLAN TAG #URR8PPP Can I get Full computer name using powershell? My system has different full computer name. But I got answers like computername+domainName. I want only "Full computer name" in the properties. Well what do you want? The FQDN? Only the Device Name? – Paxz 30 mins ago Possible duplicate of Powershell: Get FQDN Hostname – Rogerson Nazário 29 mins ago @Paxz I want Full Computer Name from the system properties. I don't want device name or FQDN or Computer name or ComputerName+FQDN – Akhil Teej 15 mins ago ...

Can't install python lxml (and libxml2) on windows

Image
Clash Royale CLAN TAG #URR8PPP Can't install python lxml (and libxml2) on windows I'm trying to install lxml on windows (pip install lxml) but i keep getting following error: ***** Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? **************************************************************************** Command "C:Python34python.exe -c "import setuptools, tokenize;__file__='C:\Us ers\meme\AppData\Local\Temp\pip-build-m_doxfaj\lxml\setup.py';exec(comp ile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __fi le__, 'exec'))" install --record C:UsersmemeAppDataLocalTemppip-ekkhc0id -recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersmemeAppDataLocalTemppip-build-m_doxfajlxml I've tried to download a binary files for windows from here (ftp://ftp.zlatkovic.com/libxml/) and adding them to path but it doesn'...

subprocess sometimes sends returns empty

Image
Clash Royale CLAN TAG #URR8PPP subprocess sometimes sends returns empty I have the following class that is used to run a third party command line tool which I have no control over. I run this ina Qthread in a PyQt Gui. Qthread PyQt I turn the gui into an EXE using Pyinstaller gui EXE Pyinstaller Problems are more prevalent when it is an EXE EXE class CLI_Interface: def process_f(self, command, bsize=4096): self.kill_process(CLI_TOOL) startupinfo = STARTUPINFO() startupinfo.dwFlags |= STARTF_USESHOWWINDOW startupinfo.wShowWindow = SW_HIDE p = Popen(command, stdout=PIPE, stderr=PIPE, startupinfo=startupinfo, bufsize=bsize, universal_newlines=True) try: out, err = p.communicate(timeout=120) except TimeoutExpired: p.kill() out, err = p.communicate() return out.split(), err.split() def kill_process(self, proc): # Check process is ru...

mysqli_query single query gerenating PHP fatal error: Allowed memory size exhausted

Image
Clash Royale CLAN TAG #URR8PPP mysqli_query single query gerenating PHP fatal error: Allowed memory size exhausted I have a Mysql table (named "base") with 3 million records , which is composed of only 3 int(10) fields . When I try to run this simple query $result = mysqli_query($db, 'SELECT * FROM base') , php shows the error: $result = mysqli_query($db, 'SELECT * FROM base') PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485768 bytes) in C:xampphtdocscombina.php on line 17 PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10485768 bytes) in C:xampphtdocscombina.php on line 17 I think mysqli_query should not load all the table records into memory, right? So why the memory overflow? I'm using XAMPP installation on Windows 10, PHP 7.2. Here is the code: $servername = "localhost"; $ult_elemsername = "root"; $password = ""; $dbname = "comb"; $d...

Change Named Pipe Access Permissions

Image
Clash Royale CLAN TAG #URR8PPP Change Named Pipe Access Permissions I have created a named pipe using System.IO.Pipes . It worked fine until I had to run the program in admin mode. When elevated, the client can no longer connect (client is not running elevated). If I run the client as administrator, it connects fine so it looks like a permissions issue. I've been researching how to fix this and have been unsuccessful (I find dealing with Windows security mind boggling). System.IO.Pipes The first thing I changed was opening the pipe with access rights: pipeServer = new NamedPipeServerStream(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Message, PipeOptions.Asynchronous, 0x4000, 0x400, null, ...