Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

***
dot -Tps input.dot > output.eps
dot -Tpng input.dot > output.png
***
PostScript output seems always there. I am not sure if dot has PNG output by default. This may depend on how you have built it.
3 years ago
For me the problem was fixed by creating a folder pip, with a file: pip.ini in C:\Users\\AppData\Roaming\ e.g:
***
C:\Users\\AppData\Roaming\pip\pip.ini
***
Inside it I wrote:
***
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
***
I restarted python, and then pip permanently trusted these sites, and used them to download packages from.

If you can't find the AppData Folder on windows, write %appdata% in file explorer and it should appear.
3 years ago
1.Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd
2.Right Click the git => Select Properties
3.Under the location Copy the text eg - C:\Program Files (x86)\Git\cmd
4.Come back to the Desktop
5.Right-click My Computer
6.Select property
7.Open Advanced
8.Click Environment Variables
9.In the System variables Find the Variable call Path
10.Click the variable
11.Click the Edit Button
12.Select the Variable value Text Box .
13.Go to the edge of the text and put semicolon(;)
14.Then Right-click and press Paste
Press Ok
3 years ago
Try this:
***
@echo off
set /p id="Enter ID: "
***
You can then use %id% as a parameter to another batch file like jstack %id%.

For example:
***
set /P id=Enter id:
jstack %id% > jstack.txt
***
3 years ago
You will need to use openssl.

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

The key file is just a text file with your private key in it.

If you have a root CA and intermediate certs, then include them as well using multiple -in params

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt -in intermediate.crt -in rootca.crt
3 years ago
I'd suggest installing something like GNU Utilities for Win32. It has most favourites, including tail.
3 years ago
Starting with Windows 10 version 1803 (and earlier, with insider build 17063), you don't install curl anymore. Windows includes a native curl.exe (and tar.exe) in C:\Windows\System32\, which you can access right from your regular CMD.
***
C:\Users\vonc>C:\Windows\System32\curl.exe --version
curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
Release-Date: [unreleased]
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL

C:\Users\vonc>C:\Windows\System32\tar.exe --version
bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp
***
3 years ago
From the command prompt, use the Windows "sc.exe" utility. You will run something like this:
***
sc delete
***
3 years ago
-Xms initial heap size for the startup, however, during the working process the heap size can be less than -Xms due to users' inactivity or GC iterations. This is not a minimal required heap size.

-Xmx maximal heap size
3 years ago
If you don't want to use Strings in your app and are looking for predefined constants have a look at org.hibernate.cfg.AvailableSettings class included in the Hibernate JAR, where you'll find a constant for all possible settings. In your case for example:
***
/**
* Auto export/update schema using hbm2ddl tool. Valid values are update,
* create, create-drop and validate.
*/
String HBM2DDL_AUTO = "hibernate.hbm2ddl.auto";
***
3 years ago
Use java.lang.String.format(String,Object...) like this:
***
String.format("%05d", yournumber);
***
for zero-padding with a length of 5. For hexadecimal output replace the d with an x as in "%05x".

The full formatting options are documented as part of java.util.Formatter.
3 years ago
Don't forget to add permissions to your manifest file if you're gonna be downloading stuff from the internet!
***
package="com.example.helloandroid"
android:versionCode="1"
android:versionName="1.0">








android:icon="@drawable/icon"
android:label="@string/app_name"
android:debuggable="true">




***
3 years ago