Entradas

Como crear un Lanzador de un script .sh en Ubuntu

Imagen
Como crear un Lanzador de un script .sh en Ubuntu    Muchas veces nos pasa, de que queremos crear un lanzador en nuestro Ubuntu con Unity o con Gnome Shell. Pues aquí esta la solución: Primero debemos crear un script, que llamare iniciador , en donde este la ruta de ubicación y el archivo a ejecutar. Algo así: #!/bin/bash cd /home/mi_carpeta/mi_desarrollo/ ./start.sh Terminal=true Type=Application En este caso, la carpeta en donde esta el desarrollo o el archivo a ejecutar esta en /home/mi_carpeta/mi_desarrollo/ Y el archivo a ejecutar, que esta dentro de esta carpeta se llama: ./start.sh Ahora le damos permiso de ejecución a nuestro script iniciador : chmod 777 iniciador Listo.. ahora abrimos una terminal y escribimos lo siguiente : gnome-desktop-item-edit --create-new ~/Desktop Donde ~/Desktop es el lugar donde quieras que se cree el lanzador. Posteriormente, se mostrará lo siguiente: Lanzador Ubuntu En: N...

Ejecutar comandos SO desde consola Python

Ejecutar comandos SO desde consola Python La manera que utiliza python para comunicarse con el S.O. es a travez de los modulos, por ejemplo el que viene por defecto es el os. EJ.: import os print os.listdir('.') si queres ejecutar en comando externo: os.system('comando') si importa conocer la salida de dicho comando tenes una familia de comandos: os.popen() cambiar de directorio ~$ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.chdir('/tmp') >>> os.getcwd() '/tmp' >>> os.execl('/bin/bash', '-i') tmp$ exit logout ~$ fijate que a salir del shell vuelves al shell desde el que has ejecutado python. Si es un problema lo podrías solventar con un exec: ~$ exec python Python 2.4.4 (#2, Apr 5...

Circuit GSM/GPRS

Imagen

Dowload videos from internet

link

How to install Eagle on ubuntu

Link of information

Hora en China

Hora actual en Shenzhen, China

Five Things You Need to Know about Writing Articles

1 The reader is identified An article is like a direct conversation with the reader. The exam question might tell you who your readers are. For example, the students at a school, or the people living in a town or people who are interested in sports. Everything you write must speak to that reader and engage their interest right from the first sentence. 2 It has to get attention If you're anywhere on the internet these days, you'll be bombarded with articles with headlines that pull the reader in. It's called "click baiting" and all the writer is trying to do is make you open the page to read their article.  You need to think like a journalist when you're writing your article. 3 It has to be interesting For an article to work, it has to be engaging enough to read all the way through. Remember how bored the examiner must be after reading fifty exam papers. Make it easier for them to get a good impression about your writing by entertaining them. Add h...