CPULIMIT is a program to reduce cpu percentaje consumption by a process
http://www.howtoforge.com/how-to-limit-cpu-usage-of-a-process-with-cpulimit-debian-ubuntu
Saturday, September 12, 2009
Thursday, July 30, 2009
Subversion
Crear subdirectorio
svn mkdir https://.../diegoandresalvarez/LaTeX/svn/libro_solidos -m "Creando subdirectorio libro_solidos"
Importar
svn import ~/Desktop/libro_solidos/ https://.../diegoandresalvarez/LaTeX/svn/libro_solidos -m "Initial import"
Checkout: Aquí se creará un subdirectorio libro_solidos que contiene los archivos que están adentro
svn checkout https://free1.projectlocker.com/diegoandresalvarez/LaTeX/svn/libro_solidos
login>> diegotorquemada@gmail.com
pass>> ya lo sabe
Exportar (sacar copia sin los .svn)
svn export ~/Desktop/libro_solidos/ https://.../diegoandresalvarez/LaTeX/svn/libro_solidos
Lista de proyectos
svn list --verbose https://.../diegoandresalvarez/LaTeX/svn/
Remover la parte de archivos ejecutables... parado en el padre de libro_solidos haga
svn propdel svn:executable -R libro_solidos
Actualiza copia actual
svn update
Commit a change
svn commit -m "Mensaje"
Agregar y borrar archivos
svn add filename
svn delete filename
Copiar y mover archivos
svn copy original destino
svn move oldposition newposition
Compara actual con repositorio
svn status
Mirar cierta versión de un archivo
ej svn cat -r 19 foo.c
Comparando copia actual con repositorio
svn diff librosolidos.kilepr | kompare -o -
svn diff | kompare -
svn diff |iconv -f ISO_8859-1 -t utf-8 | kompare -o -
svn diff -r 143 energia.tex Compara la copia de trabajo actual con version 143
svn diff --diff-cmd diff > diferencia.txt
http://en.wikibooks.org/wiki/LaTeX/Collaborative_Writing_of_LaTeX_Documents
http://www.tug.org/pracjourn/2007-3/skiadas-svn/skiadas-svn.pdf
http://www.tug.org/pracjourn/2007-3/kalderon-svnmulti/kalderon-svnmulti.pdf
At the end of the [helpers] section in ~/.subversion/config add (tomado de http://brainvisa.info/repository.html)
editor-cmd = kate
diff-cmd = kompare_svn
diff3-cmd = kdiff3_svn
merge-tool-cmd = kdiff3_svn
Here kompare_svn is the script (base their mine merged)
#!/bin/sh
exec kompare "$6" "$7"
And kdiff3_svn is the script
#!/bin/sh
if [ "$#" != "3" ]; then
if [ "$#" != "4" ]; then
outfile=`mktemp`
res=0
# kdiff3 --L1 "$4" --L2 "$6" --L3 "$8" -out "${outfile}" "$9" "${10}" "${11}" && cat "${outfile}" || res=1
kdiff3 -out "${outfile}" "${10}" "${11}" "$9" && cat "${outfile}" || res=1
if [ -f "${outfile}" ]; then
rm -f "${outfile}"
fi
if [ -f "${outfile}.orig" ]; then
rm -f "${outfile}.orig"
fi
exit $res
fi
fi
if [ "$#" -gt 3 ]; then
exec kdiff3 -out "$4" "$1" "$2" "$3"
else
exec kdiff3 "$1" "$2" "$3"
fi
Alternativamente
Remember to make both scripts executable
En caso de conflict resolution haga lo siguiente:
http://chestofbooks.com/computers/revision-control/subversion-svn/Postponing-Conflict-Resolution-Tour-Cycle-Resolve-Pending.html
svn resolved torsion.tex
svn mkdir https://.../diegoandresalvarez/LaTeX/svn/libro_solidos -m "Creando subdirectorio libro_solidos"
Importar
svn import ~/Desktop/libro_solidos/ https://.../diegoandresalvarez/LaTeX/svn/libro_solidos -m "Initial import"
Checkout: Aquí se creará un subdirectorio libro_solidos que contiene los archivos que están adentro
svn checkout https://free1.projectlocker.com/diegoandresalvarez/LaTeX/svn/libro_solidos
login>> diegotorquemada@gmail.com
pass>> ya lo sabe
Exportar (sacar copia sin los .svn)
svn export ~/Desktop/libro_solidos/ https://.../diegoandresalvarez/LaTeX/svn/libro_solidos
Lista de proyectos
svn list --verbose https://.../diegoandresalvarez/LaTeX/svn/
Remover la parte de archivos ejecutables... parado en el padre de libro_solidos haga
svn propdel svn:executable -R libro_solidos
Actualiza copia actual
svn update
Commit a change
svn commit -m "Mensaje"
Agregar y borrar archivos
svn add filename
svn delete filename
Copiar y mover archivos
svn copy original destino
svn move oldposition newposition
Compara actual con repositorio
svn status
Mirar cierta versión de un archivo
ej svn cat -r 19 foo.c
Comparando copia actual con repositorio
svn diff librosolidos.kilepr | kompare -o -
svn diff | kompare -
svn diff |iconv -f ISO_8859-1 -t utf-8 | kompare -o -
svn diff -r 143 energia.tex Compara la copia de trabajo actual con version 143
svn diff --diff-cmd diff > diferencia.txt
http://en.wikibooks.org/wiki/LaTeX/Collaborative_Writing_of_LaTeX_Documents
http://www.tug.org/pracjourn/2007-3/skiadas-svn/skiadas-svn.pdf
http://www.tug.org/pracjourn/2007-3/kalderon-svnmulti/kalderon-svnmulti.pdf
At the end of the [helpers] section in ~/.subversion/config add (tomado de http://brainvisa.info/repository.html)
editor-cmd = kate
diff-cmd = kompare_svn
diff3-cmd = kdiff3_svn
merge-tool-cmd = kdiff3_svn
Here kompare_svn is the script (base their mine merged)
#!/bin/sh
exec kompare "$6" "$7"
And kdiff3_svn is the script
#!/bin/sh
if [ "$#" != "3" ]; then
if [ "$#" != "4" ]; then
outfile=`mktemp`
res=0
# kdiff3 --L1 "$4" --L2 "$6" --L3 "$8" -out "${outfile}" "$9" "${10}" "${11}" && cat "${outfile}" || res=1
kdiff3 -out "${outfile}" "${10}" "${11}" "$9" && cat "${outfile}" || res=1
if [ -f "${outfile}" ]; then
rm -f "${outfile}"
fi
if [ -f "${outfile}.orig" ]; then
rm -f "${outfile}.orig"
fi
exit $res
fi
fi
if [ "$#" -gt 3 ]; then
exec kdiff3 -out "$4" "$1" "$2" "$3"
else
exec kdiff3 "$1" "$2" "$3"
fi
Alternativamente
#!/bin/sh
kdiff3 -m $1 $2 $3 -o $4 1>&2Remember to make both scripts executable
En caso de conflict resolution haga lo siguiente:
http://chestofbooks.com/computers/revision-control/subversion-svn/Postponing-Conflict-Resolution-Tour-Cycle-Resolve-Pending.html
svn resolved torsion.tex
Wednesday, July 15, 2009
A MATLAB xml file for Kate and Kwrite that supports block comments
Copy the file matlab.xml from /usr/share/apps/katepart/syntax/
to the subdirectory
/usr/share/apps/katepart/syntax/
In line 59: replace "Source" by "Scientific"
language name="Matlab" version="1.21" kateversion="2.2" section="Scientific" extensions="*.m;*.M" mimetype="text/mfile" casesensitive="1"
Enjoy!
to the subdirectory
/usr/share/apps/katepart/syntax/
In line 59: replace "Source" by "Scientific"
Enjoy!
Sunday, June 14, 2009
Configurar Webcam genius eye 110 en Debian Lenny
Si le damos un lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 093a:2472 Pixart Imaging, Inc.
Bus 001 Device 001: ID 0000:0000
Lo primero que hacemos es descargar el siguiente programa
apt-get install build-essential linux-headers-$(uname -r)wget http://debian.lcs.mit.edu/debian/pool/main/g/gspca/gspca-source_01.00.20-1_all.deb
dpkg -i gspca-source_01.00.20-1_all.deb
cd /usr/srcls -l-rw-r–r– 1 root root 170815 2008-01-09 05:47 gspca.tar.bz2
tar jxvf gspca.tar.bz2cd modules/cd gspca/m-a preparem-a a-i gspcamodprobe gspcalsmod |grep gspcals /dev/vid*/dev/video0y Listo ya tenemos nuestra camara web funcionando :-D
Tomado de:
http://contenidosdidacticos.com/index.php?option=com_content&task=view&id=241&Itemid=28
Sunday, May 3, 2009
Greek font in MAXIMA
Acquiring and installing a Greek font on your system is an important addition — it allows all those Greek characters, common in mathematical expressions, to be displayed properly. Here is a link to a free font:
Thereafter activate this font in wxMaxima, from Edit>Configure>Style>Use greek font
SPIonic.ttf
For Windows systems, place this font in the directory \Windows\Fonts. For Linux, place it in /usr/share/fonts (there may be some distribution-dependent variations in this location). Next, for all platforms, run wxMaxima and go to the menu item "Edit ... Configure ... Style tab", select "Use Greek Font", then click the "Greek" button, navigate to and select the font you have just installed.
The change should take effect immediately. To test the ability of wxMaxima to render correctly, type examples of Greek characters in wxMaxima using this notation:
%Omega;The results shown above indicate success. If your typed strings reappear in the output unchanged, something went wrong — go over the instructions above and repeat any steps you missed.
Ω
%omega;
ω
Thereafter activate this font in wxMaxima, from Edit>Configure>Style>Use greek font
Sunday, March 22, 2009
How to play a DVD video iso
To rip it simply type:
$ cat /dev/dvd/ > $HOME/video.iso
To play it
$ kaffeine dvd:$HOME/video.iso
$ cat /dev/dvd/ > $HOME/video.iso
To play it
$ kaffeine dvd:$HOME/video.iso
Wednesday, March 18, 2009
dyndns.org
The following is an extension to https://www.dyndns.com/services/dns/dyndns/howto.html
In order to have a dynamic dns address, do the following:
- Open an account at http://www.dyndns.com/
- Now we have to install a client to update the ip address everytime we have a new IP address: in this case from synaptic I chose ddclient (see also http://www.dyndns.com/support/clients/ )
# sudo apt-get install ddclient
To configure ddclient, edit the file /etc/ddclient.conf and run
the tool in https://www.dyndns.com/support/tools/clientconfig.html
In the webpage of ddclient: http://ddclient.wiki.sourceforge.net/ you can learn how to configure it.
A tutorial for configuring ddclient in dyndns.org is https://www.dyndns.com/support/kb/using_ddclient_with_dyndns_services.html
Another tools for linux are
- ndyndns >> http://code.google.com/p/ndyndns/
- and the ones in https://www.dyndns.com/support/clients/unix.html
In order to check if ddclient is working...
$ nslookup earendil.dyndns.org
You can also try to go to
https://www.dyndns.com/support/tools/dnsquery.html
and in the field Query and Record Type: write down earendil.dyndns.org
OPEN THE PORTS IN THE ROUTER... PORT FORWARDING
http://portforward.com/
https://www.dyndns.com/support/kb/routers_and_port_forwarding.html
To see if you can access the computer from outside, check that the ports are open with https://www.dyndns.com/support/tools/openport.html
Finally, install OPENVPN ( https://www.dyndns.com/support/kb/using_openvpn_with_dyndns.html )
Some links that might be useful in case of troubles
Other pages that provide similar services to dyndns.org are
In order to have a dynamic dns address, do the following:
- Open an account at http://www.dyndns.com/
- Now we have to install a client to update the ip address everytime we have a new IP address: in this case from synaptic I chose ddclient (see also http://www.dyndns.com/support/clients/ )
# sudo apt-get install ddclient
To configure ddclient, edit the file /etc/ddclient.conf and run
the tool in https://www.dyndns.com/support/tools/clientconfig.html
In the webpage of ddclient: http://ddclient.wiki.sourceforge.net/ you can learn how to configure it.
A tutorial for configuring ddclient in dyndns.org is https://www.dyndns.com/support/kb/using_ddclient_with_dyndns_services.html
Another tools for linux are
- ndyndns >> http://code.google.com/p/ndyndns/
- and the ones in https://www.dyndns.com/support/clients/unix.html
In order to check if ddclient is working...
$ nslookup earendil.dyndns.org
You can also try to go to
https://www.dyndns.com/support/tools/dnsquery.html
and in the field Query and Record Type: write down earendil.dyndns.org
OPEN THE PORTS IN THE ROUTER... PORT FORWARDING
http://portforward.com/
https://www.dyndns.com/support/kb/routers_and_port_forwarding.html
To see if you can access the computer from outside, check that the ports are open with https://www.dyndns.com/support/tools/openport.html
Finally, install OPENVPN ( https://www.dyndns.com/support/kb/using_openvpn_with_dyndns.html )
NOTES
If I want to create a web server check- - https://www.dyndns.com/support/kb/cat_web_server.html
- - https://www.dyndns.com/support/kb/dynamic_dns_apache_and_windows.html
Some links that might be useful in case of troubles
- https://www.dyndns.com/support/kb/why_cant_i_connect_to_my_server.html
- https://www.dyndns.com/support/kb/dns_caching.html
- https://www.dyndns.com/support/kb/loopback_connections.html
- http://dyndnscommunity.com/forum/
Other pages that provide similar services to dyndns.org are
- http://www.no-ip.com/
- https://www.opendns.com/start/
- http://www.dnsadvantage.com/index.html
- And the 40 listed at http://www.dmoz.org/Computers/Internet/Protocols/DNS/DNS_Providers/Dynamic_DNS/
- http://www.everydns.com/
Subscribe to:
Posts (Atom)