tag:blogger.com,1999:blog-365847922024-03-08T21:34:10.617+01:00codeblog con aditivosUnknownnoreply@blogger.comBlogger57125tag:blogger.com,1999:blog-36584792.post-58346938537331015572013-01-02T13:12:00.002+01:002013-01-02T13:13:03.491+01:00Include code listings as figures in LaTeX
To include code listing as figures (including label and caption fields) in LaTeX you can do the following:
\usepackage{caption...\noindent\begin{minipage}{\textwidth}\begin{lstlisting}hello world!! here the code.\end{lstlisting}\captionof{figure}{a caption text.}\label{fig:figurelabel}\end{minipage}
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-74866028523038434322011-10-19T19:14:00.000+02:002011-12-05T09:09:33.486+01:00Gnome Shell 3: tips and tricks. Clean & fast!(edited)
*. Auto login into Gnome 3, and set it as default window manager
1. sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
*. Install classic Gnome and set it as default window manager
1. sudo apt-get install gnome-session-fallback
2. sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic
*. Restore the old-style scrollbars
1. sudo apt-get autoremove --purge liboverlay-scrollbar-Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-53999845301224511492011-06-14T17:11:00.000+02:002011-06-14T17:11:31.016+02:00Read a text file line by line in Java///
/// read the file line by line
///
try {
BufferedReader in = new BufferedReader(new FileReader(args[0]));
String str;
while ((str = in.readLine()) != null) {
_log(str);
}
in.close();
} catch (IOException e) {
}
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-49473447607571799972011-06-09T09:54:00.000+02:002011-06-09T09:54:04.737+02:00Write a text file in Android using the emulator in Eclipse///
/// check read/write permissions
boolean mExternalStorageAvailable = false;
boolean mExternalStorageWriteable = false;
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
// We can read and write the media
mExternalStorageAvailable = mExternalStorageWriteable = true;
Log.i(TAG,"read + write");
} else if (Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-18978279665104122172011-05-27T15:15:00.002+02:002011-05-27T15:17:38.820+02:00Install subclipse (subversion) in Eclipse in a few stepsTo install Subclipse (subversion) repository plugin in Eclipse, do the following:
1. Open Eclipse
2. Help -> Install new software...
3. Click "Add.."
4. Add this repository (the name does not matter; the URL does):
http://subclipse.tigris.org/update_1.6.x
5. Type "subclipse" in the blank caption to search the plugin
6. Select it and install it
Note that you need internet connection :)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-91163095203066856632011-03-15T16:17:00.001+01:002011-03-15T16:19:26.791+01:00Grooveshark: alternativa (también gratuita) a Spotify
¿Tienes problemas con Spotify?
¿No conoces las alternativas?
¿Quieres tener acceso a toda la música desde el propio navegador?
Grooveshark: http://listen.grooveshark.comUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-25535141846268306962011-02-24T14:11:00.000+01:002011-02-24T14:11:10.188+01:00Create a proxy server in 3 minutes in UbuntuFind a simple and easy manual in the following site:
http://en.kioskea.net/faq/804-ubuntu-installing-an-http-proxy-server-squidUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-32137330107140686622010-12-14T15:12:00.000+01:002010-12-14T15:12:36.320+01:00YouTube para el salónSi eres de los que conecta el ordenador a la televisión y ve vídeos de YouTube desde el sofá de casa, seguro que te gustan estas versiones de YouTube.
La primera es una versión gigante, y se llama "XL":
http://www.youtube.com/xl
La otra es una versión a pantalla completa, y se llama "Leanback":
http://www.youtube.com/leanback
a disfrutar!!!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-58491328200712391332010-12-12T22:09:00.000+01:002010-12-12T22:09:35.857+01:00LaTeX compiling errorIf you are compiling a LaTeX document, and you get the following error:
! I can't find file `ptmr7t'Here you have the solution:
sudo apt-get install texlive-fonts-recommendedUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-83273434873924576472010-12-06T00:15:00.001+01:002010-12-06T00:21:27.965+01:00Fix @ (at) character problem with Ubuntu in MacbookIf you can't write the @ character in Ubuntu, you should do this:
1. System > Preferences > Keyboard
2. Go to Keyboard Distribution label
3. Click Options
4. Look for something like "Key to access the third level" (sorry, my Ubuntu is Spanish ;-)
5. Select the key you are used to use when typing the @ symbol (I selected the "Alt" key)
That's all,
Enjoy!!
Some keywords for spanish Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-60594195230599691462010-11-18T12:37:00.001+01:002010-11-18T12:38:02.584+01:00Install Qt Ruby (qt4-qtruby) in Linux / UbuntuHi!!
You only need to do this:
sudo apt-get install ruby libqt4-qtruby
Maybe you need to install "qt4-dev-tools" if you do not have Qt4 libraries installed in your system.
Enjoy!!
PS: here I include a sample code to test if it works fine:
require 'Qt4'
app = Qt::Application.new(ARGV)
window = Qt::Widget.new()
window.resize(200, 120)
quit = Qt::PushButton.new('Quit', window)
quit.font = QtUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-28561625961964802092010-11-10T15:03:00.001+01:002010-11-12T17:11:06.977+01:00Error while compiling Qt 4.7.1 in Debian Ubuntu (solved)Did you get this error?:
You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11Just do this:
sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-devUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-13496771582399933142010-11-03T00:18:00.004+01:002010-11-03T09:59:34.041+01:00Tutorial rápido de C# (C Sharp) Parte 1: Conceptos básicos///
/// TUTORIAL RÁPIDO DE C# (C Sharp)
/// (Parte 1)
///
/// * Vía: http://www.csharp-station.com/Tutorial.aspx
///
// **********************************
// * Tipos básicos de datos en C# (C Sharp)
Type Size (bits) Range
======== =========== ===========================================
sbyte 8 -128 to 127
byte 8 0 to 255
short 16 -32768 to 32767
ushort 16 0 Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-31543981301114747102010-10-28T23:17:00.005+02:002010-11-10T12:44:37.781+01:00Join.me: escritorio remoto sencillo vía web
https://join.me/ es un nuevo servicio gratuito que permite que una persona (o varias) pueda controlar el ordenador de otra desde el propio navegador (no importa que sea Linux, Windows o Mac). Esto no es una novedad. Lo que sí lo es es lo sencillito que es utilizarlo, sin necesidad de pararnos a configurar router, cambiar puertos, etc.
Funciona de la siguiente manera:
vamos a la web https://Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-36584792.post-3760473762013808582010-10-22T08:45:00.004+02:002010-10-22T08:49:15.910+02:00Ver liga y champions gratis en tu ordenador: partidos de Real Madrid y Barcelona*Los enlaces se pondrán cuando estén disponiblesReal Madrid - Racing SantanderEnlaces:(todo)Zaragoza - FC BarcelonaEnlaces:(todo)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-61877706395989418302010-10-11T09:44:00.003+02:002010-10-11T09:48:40.756+02:00Enable automatic spell checking in Emacs using flyspellFirst you have to install the following packages:Emacs (e.g. emacs-snapshot), aspell, and ispell.Then, edit the .emacs file: e.g. sudo gedit (home dir)/.emacsand add the following lines:(add-hook 'latex-mode-hook '(lambda () (flyspell-mode t)))(add-hook 'latex-mode-hook (function (lambda () (setq ispell-parser 'tex))))(add-hook 'latex-mode-hook 'turn-on-reftex)(add-hook 'latex-mode-hook 'Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-9244693880644860822010-10-02T13:37:00.002+02:002010-10-11T13:40:33.766+02:00WeFi: WiFi gratis vayas por donde vayasSi entras en www.wefi.com y te descargas su software, tendrás un localizador de redes abiertas WiFi.Lo mejor de todo es que va acompañado con un mapa de las ciudades, que se actualiza en tiempo real con las redes disponibles. Además, las clasifica por calidad de conexión y se conecta automáticamente a la mejor de todas las que haya disponibles.Está disponible para PC, Netbook, dispositivos Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-47784706301899139312010-03-22T14:30:00.003+01:002010-10-11T13:41:26.683+02:00Google JavaScript V8 Engine compilation errorIf you get this error while compiling V8 JavaScript Engine with scons://++++++++++++++++++++++++++++++++++++++++++++++++++cc1plus: warnings being treated as errorssrc/handles-inl.h: In static member function 'static voidv8::V8::RemoveMessageListeners(void (*)(v8::Handle<v8::Message>,v8::Handle<v8::Value>))':src/handles-inl.h:50: error: dereferencing pointer '<anonymous>' Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-90083412670980068072010-01-28T13:08:00.002+01:002010-01-28T13:13:08.919+01:00C++: How to obtain the name of a class in C++ from a pointerHow to obtain the name of a class in C++ from a pointer:#include #include ...// test any pointerX * ptr;...cout << "requested type is " << typeid(*ptr).name() << endl;...Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-8444501797133028742009-10-20T01:15:00.005+02:002010-10-11T13:41:51.058+02:00Betfair Promotional Code - Código PromocionalBetfair Promotional Code - Free money for your accountCódigo Promocional para Betfair - Aumenta el dinero de tu cuenta al registrarteCode/código: VUAGMNKNHUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-27417534654811826902009-09-17T13:11:00.001+02:002010-10-11T13:42:42.541+02:00Latex compiling ERRORContext:Linux, LaTeX, compilingError:! I can't find file `ptmr7t'.Solution:sudo apt-get install texlive-fonts-recommendedUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-75310341398545058682009-06-17T18:09:00.003+02:002010-10-11T13:45:29.161+02:00Ubuntu: haz que funcione JDownloader - make your JDownloader workYou have to follow these steps:1. Be sure these packages are installed in your system:sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin2. Change your default Java via:sudo update-java-alternatives -s java-6-sun3. Download JDownloader if you need it:wget -c http://212.117.163.148/jd.sh4. And run it:chmod +x jd.sh./jd.shUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-35092358975805629552009-05-07T12:31:00.003+02:002009-05-07T12:34:00.871+02:00Install and fix Yum in RHEL 3 or 4, or Fedora Core 4This links includes the steps you have to follow: linkgood luck!!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-3801048350202965802008-11-13T11:26:00.003+01:002010-10-11T13:45:29.162+02:00Ubuntu: Instalar Ruby + Qt4 - How to install Ruby + Qt4To install the Ruby bindings for the Qt4 GUI library you only have to use this command in a new console:sudo apt-get install libqt4-rubyIt will install these packages:- libqscintilla2-3- libqt4-ruby1.8- libsmokeqt4-2Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-36584792.post-5739630392302546452008-10-27T18:13:00.003+01:002010-10-11T13:45:29.164+02:00Ubuntu: Reconfigurar la configuración de vídeo - Reconfigure video configurationTo reconfigure your video options use this commandsudo dpkg-reconfigure xserver-xorgand follow the wizard. It will take several steps configuring mouse, keyboard and video card, but it is so easy if you use the default values.Unknownnoreply@blogger.com0