Eliminar el enlace para lpt1
net use lpt1 /D
Setear en el enlace lpt1 la impresora de la red
net use lpt1 \\esx-administration\EPSONFX880
net use lpt1 /D
net use lpt1 \\esx-administration\EPSONFX880
ALTER TABLE table1 AUTO_INCREMENT = 1000;
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get install grails
sudo apt-get install grails-2.0.0
sudo apt-get install grails-1.3.x
sudo apt-get install grails-1.2.5
sudo update-alternatives --config grails
Nombre de la radio | Frecuencia | Pagina web | Link para Escuchar |
---|---|---|---|
Del Plata | 95.5 FM | ||
Sport | 890 AM |
sudo apt-get install xsane
cd /usr/share/sane/gt68xx
sudo wget http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/sbfw.usb
sudo gedit /etc/sane.d/gt68xx.conf
#override "mustek-scanexpress-1200-ub-plus"
override "mustek-scanexpress-1200-ub-plus"
java.text.SimpleDateFormat date_format = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String created_at = date_format.format(new Date());
home/{username}/.netbeans/x.x/var/cache
x:\Documents and Settings\{username}\.netbeans/x.x/var/cache
Point p = MouseInfo.getPointerInfo().getLocation();
System.out.println("x="+p.x+", y="+p.y);
gksu gedit /etc/hostname
darkstar
--gksu gedit /etc/hosts
127.0.0.1 localhost
127.0.1.1 darkstar
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
--
/etc/httpd.ini
LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride
poniendo All
<Directory />
Options FollowSymLinks
AllowOverride All
#XAMPP
#Order deny,allow
#Deny from all
</Directory>
$ sudo chmod 777 /dev/lp0
cat
y realizamos un volcado directo al puerto paralelo.$ cat textfile.txt > /dev/lp0
public int getAge() {
Calendar today = Calendar.getInstance();
Calendar date_of_birth = Calendar.getInstance();
date_of_birth.setTime(this.getDateOfBirth());
int diff_year = today.get(Calendar.YEAR) - date_of_birth.get(Calendar.YEAR);
int diff_month = today.get(Calendar.MONTH) - date_of_birth.get(Calendar.MONTH);
int diff_day = today.get(Calendar.DAY_OF_MONTH) - date_of_birth.get(Calendar.DAY_OF_MONTH);
if (diff_month < 0 || (diff_month == 0 && diff_day < 0)) {
diff_year = diff_year - 1; //no aparecían los dos guiones del postincremento :|
}
return diff_year;
}
public static float round(float valor){
String val = valor+"";
BigDecimal big = new BigDecimal(val);
big = big.setScale(2, RoundingMode.HALF_UP);
return Float.parseFloat(String.valueOf(big));
}
netcfg
, obten el IP, presiona Alt+F7.
$ sudo apt-get install eclipse
$ wget http://dl.google.com/android/android-sdk_r13-linux_x86.tgz
$ tar -xvzf android-sdk_r13-linux_x86.tgz
$ cd android-sdk_r13-linux_x86
$ ./toold/android
try {
for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
break;
}
}
} catch (ClassNotFoundException ex) {// error!
} catch (InstantiationException ex) {// error!
} catch (IllegalAccessException ex) {// error!
} catch (javax.swing.UnsupportedLookAndFeelException ex) {// error!
}
java.awt.Font.createFont()
java.awt.Font.deriveFont(float)
para cambiar el tamaño de esta.
InputStream fin = this.getClass().getResourceAsStream("Asimov.ttf");
this.asimov = Font.createFont ( // Load font from InputStream fin
Font.PLAIN,
fin
).deriveFont(24f);
java.awt.Component.setFont();
second.setFont(this.asimov);
Valor | Significado |
0 | Los nombres de tablas y bases de datos se almacenan en disco usando el esquema de mayúsculas y minúsculas especificado en las sentencias CREATE TABLE o CREATE DATABASE . Las comparaciones de nombres son sensibles a mayúsculas. Esto es lo predeterminado en sistemas Unix. Nótese que si se fuerza un valor 0 con --lower-case-table-names=0 en un sistema de ficheros insensible a mayúsculas y se accede a tablas MyISAM empleando distintos esquemas de mayúsculas y minúsculas para el nombre, esto puede conducir a la corrupción de los índices. |
1 | Los nombres de tablas se almacenan en minúsculas en el disco y las comparaciones de nombre no son sensibles a mayúsculas. MySQL convierte todos los nombres de tablas a minúsculas para almacenamiento y búsquedas. En MySQL 5.0, este comportamiento también se aplica a nombres de bases de datos y alias de tablas. Este valor es el predeterminado en Windows y Mac OS X. |
2 | Los nombres de tablas y bases de datos se almacenan en disco usando el esquema de mayúsculas y minúsculas especificado en las sentencias CREATE TABLE o CREATE DATABASE , pero MySQL las convierte a minúsculas en búsquedas. Las comparaciones de nombres no son sensibles a mayúsculas. Nota: Esto funciona solamente en sistemas de ficheros que no son sensibles a mayúsculas. Los nombres de las tablas InnoDB se almacenan en minúsculas, como cuando lower_case_table_names vale 1. |
$ sudo service mysql stop
ó
# /etc/init.d/mysql stop
$ sudo mysqld_safe --skip-grant-tables &
# mysqld_safe --skip-grant-tables &
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
# /etc/init.d/mysql stop
# /etc/init.d/mysql start
# mysql -u root -p
String queryHQL = "SELECT i FROM Invoice i WHERE i.invoiceDate between :fromdate and :todate";
query = entityManager.createQuery(queryHQL);
query.setParameter("fromdate", jXDatePicker1.getDate());
query.setParameter("todate", jXDatePicker2.getDate());
mysql> SET PASSWORD FOR 'ROOT'@'LOCALHOST"
> = PASSWORD('password');
$ mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
> IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> exit
$ sudo service mysqld restart
$ sudo vi /etc/mysql/my.cnf
#bind-address = 127.0.0.1