Took like ten minutes to find the right thing in the docs. But finally.
int randomNumber = randomGenerator.nextInt(9999);
System.out.println(String.format("%04d", randomNumber));
2213
0060
8492
8872
0064
5808
1552
0458
7856
8925
int randomNumber = randomGenerator.nextInt(9999);
System.out.println(String.format("%04d", randomNumber));
dd if=/dev/zero of=/tmp/swap.img bs=1M count=256
losetup /dev/loop3 /tmp/swap.img
mkswap /dev/loop3
swapon /dev/loop3
swapoff /dev/loop3
losetup -d /dev/loop3
rm /tmp/swap.img
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH
sqlplus sys as sysdba
SQL> exec dbms_xdb.setListenerLocalAccess (l_access => FALSE);
{
String DATE_FORMAT="yyyyMMdd_HHmmss-SSS";
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT);
return sdf.format(new Date());
}
{
java.util.Random nahcis = new java.util.Random();
return nahcis.nextInt(9999).toString();
}
"recording_" + timeStamp + "_" + randomNumber
"recording_20100120_134541-214_6592"
http_proxy='http://someproxy:someport"
$export http_proxy
import java.io.*;
import jcifs.smb.*;
public class t_getfile {
public static void main(String[] args) {
jcifs.Config.setProperty("jcifs.smb.client.username", "administrator");
jcifs.Config.setProperty("jcifs.smb.client.password", "password");
try {
SmbFileInputStream in = new SmbFileInputStream("smb://10.112.27.31/c$/Program files/Avaya/IC71/MessageCenter/Messages/9698.msg");
byte[] b = new byte[8192];
int n;
while(( n = in.read( b )) > 0 ) {
System.out.write( b, 0, n );
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
import jcifs.smb.*;
import java.io.*;
public class t_getfile2 {
public static void main(String[] args) {
/* NtlmPasswordAuthentication object from the userinfo
* component of an SMB URL like "domain;user:pass".
* This constructor is used internally be jCIFS
* when parsing SMB URLs.
*/
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("administrator:password");
try {
SmbFile file = new SmbFile( "smb://10.112.27.31/c$/Program files/Avaya/IC71/MessageCenter/Messages/9698.msg", auth );
InputStream in = file.getInputStream();
byte[] b = new byte[8192];
int n;
while(( n = in.read( b )) > 0 ) {
System.out.write( b, 0, n );
} //while
} catch (Exception e) {
e.printStackTrace();
} //try..catch
}
}
var val = this.getValue();
if (val == "boo") {
this.getStyle().backgroundColor = "#AAAAAA";
}