viernes, 7 de marzo de 2014
Como trabajar sin conexion en Google Chrome
Hoy trabajando con un amigo, vi que desconecto su conexión wifi para probar una pagina que había descargado para su maquina. Y le comente que los navegadores tienen esa opción. Para trabajar "sin conexión". Bueno, mejor rectifico lo que le dije con este post, Firefox y IExplorer tienen. Chrome no lo tiene, y lo siento para los seguidores de Safari pero no indague sobre Safaris ;) .
Bueno para Chrome hay una manera, aunque parece un poco "tricky", explicare primero para IE y para Firefox ya que son un pastel comido :) . Empecemos por orden de calidad :P :
FireFox - se hace click en el botón FireFox y después seleccionamos Desarrollador Web ( o en ingles, Web developer, o en frances, Dévelopement web ) y despues seleccionas en Trabajar sin conexion (o en ingles, "Work Offline", o en frances 'Travailler hors connexion' ) .
Internet Explorer- Seleccionamos 'Herramientas' y después "Trabajar sin conexión"
En Chrome no hay un botón de "trabajar sin conexión" pero podemos conseguir el mismo objetivo con un poco de magia.
Una forma efectiva y menos dolorosa que desconectarse y volverse a conectarse de la red, es crear un servidor proxy que apunte a tu propria PC. Pero el secreto esta en hacerlo desde chrome solamente, ya que de esta manera evitarías que otros programas que usen internet se desconecten y demás.
Hay muchas extensiones disponibles para Chrome, pero muchas están diseñadas para cosas privadas y simplemente redireccionar el trafico sobre internet, para proveer un poco de anonimato. La extensión que voy a usar aquí se llama: "Quick & Dirty Proxy Flipper", para descargarlo e instalarlo haga click aquí.
Una vez instalado, aparecerá el icono del servidor proxy.
Selecciona http://localhost:8080 a no ser que seas un desarrollador y estés corriendo algún servidor en esa dirección. De esa manera ya estarás offline, también es importante tener en cuenta de que Chrome tiene una memoria Cache y algunas cosas parecerán tener acceso a internet, pero en realidad no es asi.
Para volver a la normalidad basta con ir a la extensión y seleccionar la opción system.
Espero que les haya ayudado ;)
miércoles, 5 de febrero de 2014
Installing LaTeX on Mac OS X
Previously, I wrote a tutorial on how to install LaTeX on Windows. This time, I’ll do the same thing for Mac OS X. I’m using OS X 10.7 (Lion), but I’m sure this guide still holds for Mountain Lion, Leopard or earlier versions of OS X. The scope of this tutorial is to show you how to install the complete LaTeX package, including my favorite free editor (Texmaker). The installation will be a lot shorter than that for Windows users :)
The governing LaTeX distribution for Mac OS X is MacTeX. This distribution is actually an all-in-one package as it not only contains the LaTeX distribution, but also several editors and other useful stuff. So let’s cut to the case: head over to the MacTeX website (or here). If you follow the link you can immediately download it. Note that this download is about 2 GB and thus may take a while to be downloaded (depending on your internet connection).
Once you’ve downloaded the distribution, install it by double-clicking the .dmg file. The rest will speak for itself, as the installation procedure is just the same as any other Mac software.
Now, open your Applications folder and search for a folder called TeX. This contains everything you need, as can be seen here. TeXShop and TeXworks are both open source LaTeX editors, released under the GPL. If you want to use one of these, you can start right away. Personally I prefer another editor: Texmaker. It will be shown in the next section how to install this one (which is no rocket science ;)). Furthermore in the TeX folder we see BibDesk, a handy tool for maintaining references for BibTeX. We also see LaTeXit, a great tool that can be used to add LaTeX equations to Powerpoint for instance.
As I said before, you already get two LaTeX editors with the MacTeX installation. However, I’m used to Texmaker so I’ll show you how to install this editor as del (this one is really easy). Head over to the Texmaker website. Next, go to the download section in the menu on the right and download Texmaker. You probably need the 64 bit version, depending on your Mac hardware. Once you downloaded the file, drag and drop it to the Applications folder and your ready to LaTeX!
Anything else?
That’s it? Yes! However, for the control freaks among us there is an extra distribution for MacTeX called MaxTeXtras. You can find it here. This download contains several editors (like Texmaker), utilities, tools and demos you might find handy. Have fun!
source
Installing MacTeX
The governing LaTeX distribution for Mac OS X is MacTeX. This distribution is actually an all-in-one package as it not only contains the LaTeX distribution, but also several editors and other useful stuff. So let’s cut to the case: head over to the MacTeX website (or here). If you follow the link you can immediately download it. Note that this download is about 2 GB and thus may take a while to be downloaded (depending on your internet connection).
Once you’ve downloaded the distribution, install it by double-clicking the .dmg file. The rest will speak for itself, as the installation procedure is just the same as any other Mac software.
Now, open your Applications folder and search for a folder called TeX. This contains everything you need, as can be seen here. TeXShop and TeXworks are both open source LaTeX editors, released under the GPL. If you want to use one of these, you can start right away. Personally I prefer another editor: Texmaker. It will be shown in the next section how to install this one (which is no rocket science ;)). Furthermore in the TeX folder we see BibDesk, a handy tool for maintaining references for BibTeX. We also see LaTeXit, a great tool that can be used to add LaTeX equations to Powerpoint for instance.
Installing Texmaker
As I said before, you already get two LaTeX editors with the MacTeX installation. However, I’m used to Texmaker so I’ll show you how to install this editor as del (this one is really easy). Head over to the Texmaker website. Next, go to the download section in the menu on the right and download Texmaker. You probably need the 64 bit version, depending on your Mac hardware. Once you downloaded the file, drag and drop it to the Applications folder and your ready to LaTeX!
Anything else?
That’s it? Yes! However, for the control freaks among us there is an extra distribution for MacTeX called MaxTeXtras. You can find it here. This download contains several editors (like Texmaker), utilities, tools and demos you might find handy. Have fun!
source
Installing LaTeX on Windows
In this guide, I will show you how to install the needed components of LaTeX on Windows. In this tutorial Windows 7 is used, but the steps will be similar for other versions.
MiKTeX is a free TeX distribution for Windows systems. The current version is MiKTeX 2.9. The survey starts at the MiKTeX website. In the menu, click on MiKTeX 2.9 and scroll down to download the MiKTeX 2.9 Net Installer. This is the installation file that will be used to download the MiKTeX distribution. Run the file once it is downloaded. The installation wizard of MiKTeX will now pop up.
First, agree with the copying conditions and click next. In the following window, click ‘Download MiKTeX’ to download the distribution to a directory on your computer. Again, click next. Next you will be prompted whether you want install Basic or Complete MiKTeX. I recommend you to download the complete distribution, since it will save a lot of time in the future. Note that the complete package is quite large (1.2 GB) and it takes a while to install. So you’ll need a steady internet connection and enough space on your hard-disk. The next thing you have to choose is the source where the package will be downloaded from. Search for a source that is located in your country, or nearby. After you click next you’ll have to choose a directory where MiKTeX will be installed. This was the last step, the downloading will now begin. Note that this installation will take a while.
Once its finished, navigate to the directory where you’ve installed MiKTeX. There are a lot, really a lot, of files here. However, there is only one .exe file. Run this file (called setup-2.9.3959.exe for this version). This time, the real installation of MiKTeX will take place. This process will again be quite lengthy.
In order to actually compile LaTeX documents, we need an editor. For windows, the most used editors are probably TeXnicCenter and Texmaker. I might add an overview of all editors in the future, but that is not where this tutorial is about. Personally, I like Texmaker the most, so let’s install that editor right away!
On the Texmaker website, go to the download section to download Texmaker for Windows. The current version is 2.2.1. We’re going to download the Executable file (.exe). When the downloading is complete, don’t run the installation wizard! Wait for the MiKTeX installation to be completed. This way, Texmaker will automatically configure the settings for you. Once you’re ready to install Texmaker, agree to the GPL license by clicking ‘I Agree’ and choose a directory to install the editor. Done! Wow, that was fast :-)
The installation of LaTeX is now complete. A guide to create your first document might be added in the future. For now, here are some references.
source:
Installing MiKTeX
MiKTeX is a free TeX distribution for Windows systems. The current version is MiKTeX 2.9. The survey starts at the MiKTeX website. In the menu, click on MiKTeX 2.9 and scroll down to download the MiKTeX 2.9 Net Installer. This is the installation file that will be used to download the MiKTeX distribution. Run the file once it is downloaded. The installation wizard of MiKTeX will now pop up.
First, agree with the copying conditions and click next. In the following window, click ‘Download MiKTeX’ to download the distribution to a directory on your computer. Again, click next. Next you will be prompted whether you want install Basic or Complete MiKTeX. I recommend you to download the complete distribution, since it will save a lot of time in the future. Note that the complete package is quite large (1.2 GB) and it takes a while to install. So you’ll need a steady internet connection and enough space on your hard-disk. The next thing you have to choose is the source where the package will be downloaded from. Search for a source that is located in your country, or nearby. After you click next you’ll have to choose a directory where MiKTeX will be installed. This was the last step, the downloading will now begin. Note that this installation will take a while.
Once its finished, navigate to the directory where you’ve installed MiKTeX. There are a lot, really a lot, of files here. However, there is only one .exe file. Run this file (called setup-2.9.3959.exe for this version). This time, the real installation of MiKTeX will take place. This process will again be quite lengthy.
Installing the editor
In order to actually compile LaTeX documents, we need an editor. For windows, the most used editors are probably TeXnicCenter and Texmaker. I might add an overview of all editors in the future, but that is not where this tutorial is about. Personally, I like Texmaker the most, so let’s install that editor right away!
On the Texmaker website, go to the download section to download Texmaker for Windows. The current version is 2.2.1. We’re going to download the Executable file (.exe). When the downloading is complete, don’t run the installation wizard! Wait for the MiKTeX installation to be completed. This way, Texmaker will automatically configure the settings for you. Once you’re ready to install Texmaker, agree to the GPL license by clicking ‘I Agree’ and choose a directory to install the editor. Done! Wow, that was fast :-)
The installation of LaTeX is now complete. A guide to create your first document might be added in the future. For now, here are some references.
source:
viernes, 13 de diciembre de 2013
Installing pygame on OS X with a Homebrew Python 2.7 install
Solved this surprisingly quickly today thanks in part to this post by Basti am. His post was mostly correct but some parts have changed, so I’m going to document how I got it working. Note that this method will miss out PNG, SCRAP, and PORTMIDI support. Good luck getting those working!
source: http://jalada.co.uk/2011/06/17/installing-pygame-on-os-x-with-a-homebrew-python-2-7-install.html
- Install Python via Homebrew:
brew install python - Install pip (because one package manager isn’t enough, right Python?):
easy_install pip - Install numpy with pip:
pip install numpy - Install the pre-requesites for pygame with Homebrew:
brew install sdl sdl_ttf sdl_image sdl_mixer
Download the pygame source. (in my case was: pygame_version) It’s one of the top links. Extract it somewhere and go to that directory in a terminal.
- Run
python config.py. - Fix the
Setupfile to point to your Homebrew SDL libraries, not OS X ones (which are missing stuff). Change the lines starting SDL, FONT, IMAGE, and MIXER to read:SDL = -I/usr/local/include/SDL -L/usr/local/lib -lSDL
FONT = -lSDL_ttf
IMAGE = -lSDL_image
MIXER = -lSDL_mixer
Below those definitions are lines commented out that enable/disable features. Remove the # to uncomment the ones you want. - Run
python setup.py install.
Success!
source: http://jalada.co.uk/2011/06/17/installing-pygame-on-os-x-with-a-homebrew-python-2-7-install.html
lunes, 28 de octubre de 2013
Downloading an Entire Web Site with wget
If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the job—for example:
$ wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
This command downloads the Web site www.website.org/tutorials/html/.
The options are:
--recursive: download the entire Web site.
--domains website.org: don't follow links outside website.org.
--no-parent: don't follow links outside the directory tutorials/html/.
--page-requisites: get all the elements that compose the page (images, CSS and so on).
--html-extension: save files with the .html extension.
--convert-links: convert links so that they work locally, off-line.
--restrict-file-names=windows: modify filenames so that they will work in Windows as well.
--no-clobber: don't overwrite any existing files (used in case the download is interrupted and
resumed).
source: http://www.linuxjournal.com/content/downloading-entire-web-site-wget
jueves, 24 de octubre de 2013
lunes, 21 de octubre de 2013
Instalar Python, NumPy, SciPy y matplotlib en Mac OS X con dobleclicks
En este post esta como instalar Python, NUmPy, SciPy y matplot en Lion, pero incluye muchas lineas de comando y modificar tu .bash_profile y tratando con problemas de compiladores y demas. Eso es lo que se llama generalmente compilarlo por ti mismo (CIY method). La forma mas sencilla, es un metodo que generalmente se llama el metodo del doble click, o sea, que todo se hace con clicks.
El metodo CIY se usa mas para usuarios avanzados, que quieran tener una instalacion muy personalizada.
Hasta hace poco el metodo CIY era la unica forma de tener todo funcionando en Lion, pero los programadores de NumPy, SciPy, and matplotlib han hecho un DMG para hacer el proceso mucho mas sencillo. Una vez que conoces Python, se van a ver en la necesidad de instalar otros paquetes, yo les sugiero pip.
Instalar Python
Vas a la pagina de Python y descargas el paquete llamado Python 2.7.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer. Double-click al archivo dmg descargado para instalarlo.Instalar NumPy
Vas a la pagina NumPy y descargas el paquete denominado numpy-1.6.1-py2.7-python.org-macosx10.6.dmg. Double-click al archivo dmg descargado para instalarlo.
Instalar SciPy
Vas a la pagina NumPy y descargas el paquete denominado numpy-1.6.1-py2.7-python.org-macosx10.6.dmg. Double-click al archivo dmg descargado para instalarlo.
Instalar SciPy
Instalar SciPy
Vas a la pagina SciPy y descargas el paquete denominado scipy-0.10.1-py2.7-python.org-macosx10.6.dmg. Double-click al archivo dmg descargado para instalarlo.
Install matplotlib
Vas a la pagina matplotlib y descargas el paquete denominado matplotlib-1.2.0-py2.7-python.org-macosx10.6.dmg.Double-click al archivo dmg descargado para instalarlo. Felicidades! Ya debe estar funcionado. Cuando queiras actualizarlos, visita a la pagina y descargate la ultima version de esos archivos. Probemos en una terminal con Python a ver si funciona.
Install matplotlib
Vas a la pagina matplotlib y descargas el paquete denominado matplotlib-1.2.0-py2.7-python.org-macosx10.6.dmg.Double-click al archivo dmg descargado para instalarlo. Felicidades! Ya debe estar funcionado. Cuando queiras actualizarlos, visita a la pagina y descargate la ultima version de esos archivos. Probemos en una terminal con Python a ver si funciona.
import numpy
import scipy
import matplotlib
Las instrucciones pueden tener ya un tiempo, si no le funciona chequee en “Install Python” los nuevos terminos.
fuente: http://penandpants.com/2012/03/01/install-python-2/
import numpy
import scipy
import matplotlib
Etiquetas:
install,
Lion,
mac,
Mac OS X,
matplotlib,
NumPy,
python,
SciPy,
Snow Leopard
Suscribirse a:
Entradas (Atom)

