Copy a Git bare repository including all branches
Tech March 27th, 2012
I have been enjoying Git for some months now. Coming from Subversion, the learning curve is not that long (although, can be a bit confusing at the beginning). There are a lot of very good documentation out there, but found Git Immersion one of the best resources.
Anyways, I was migrating some of my Subversion repos to my own Git server using this great tool I found on.. go figure, GitHub: git-svn-migrate, related post here. Because I didn’t run this process directly on my Git server, I ended with bare repositories (having more than one branches each) and needed to move them to my server.
One way would be to do a clone from the old location and then do a push to the git server, but having some branches on each repo made it a little longer (as far as I know, not an expert on Git yet though).
So, the easiest way I found was running the following command directly from the bare repo on my working machine:
git push --mirror git@yourserver:yourrepo
It worked like a charm, so now I’m much closer to shutdown my Subversion server once and for all!! (well, probably I’ll keep it though, it has been a very good partner for several years).
Btw, here are the instructions from the git-svn-migrate script’s author if you need to migrate just one (or if you would like to make it manual), enjoy:
Tags: Git, git-svn, GitHub, Subversion, SVN
Android useful links (iPhone SMS to Android, ADB driver install, hacking)
Tech September 30th, 2011
Here are some links I found useful:
- iPhone SMS to Android Converter (step by step how to migrate your SMS from iPhone to Android)
- [Tutorial] ADB Driver Android 1.0 Install (helped me install the ADB driver for my HTC Desire by modifying the INF file)
- FAQ Android Hacking (glossary of terms)
- How to remove Sense applications
Tags: ADB, Android, HTC, HTC Desire, HTC Sense
Android FAQ – HBOOT and rooting
Tech September 29th, 2011
I found this information on AndroidForums and it is very helpful, so just wanted to keep it (maybe it helps someone else also):
What’s HBOOT?
It’s immediately loaded when the phone is switched on. It’s mostly responsible for checking and initialising the hardware and starting the phone’s software, for flashing official software releases (RUUs via Fastboot), as well as a few other things. In some ways it’s comparable to the BIOS on a PC.
How do I root HBOOT?
You can’t, it makes no sense. It’s a bootloader, not Android. It’s like trying to play a DVD on your kettle.
What does upgrading HBOOT do?
It may add extra hardware support for new phones (e.g. SLCD displays) and may fix a few bugs. HTC doesn’t release information about it.
What does downgrading HBOOT do?
The opposite. So, if you flash an SLCD phone with an old version of HBOOT that doesn’t have the support, the screen won’t work.
But rooting depends on HBOOT version?
It doesn’t.
Why does upgrading HBOOT remove root?
It doesn’t. When you flash an official update your ROM is replaced with an official one, which is why root is lost.
How do I change HBOOT version?
By installing an official RUU/update. There’s no other way – the bootloader is protected by the phone’s hardware security because a corrupt bootloader means a bricked phone with no way to recover. RUUs contain a version of the bootloader, which is automatically flashed.
Why do I need to downgrade HBOOT to root 0.92?
You don’t. You had to downgrade Android because unrevoked3 couldn’t root froyo. The new release can, so it works.
Why all the talk about HBOOT then?
Because it is confused with software release, which is the important part. An RUU won’t work if the installed software is a higher version (e.g. 1.20.x won’t work if you have 1.21.x), and people have mistaken that check for HBOOT version.
What about the xda 0.92 to 0.80 downgrade? It runs on froyo.
It’s an engineering/test release from HTC that was leaked. It fakes its software version to 2.09.405.8 so it will run on froyo and downgrade the ROM, so long as you’re not on a higher release than that. The process has nothing to do with HBOOT, but it does downgrade the bootloader to 0.80 as a side effect – and results in a dead screen on SLCD phones. It’s generally a bad idea to use this hack.
Why would any of this matter?
Because instructions based only on HBOOT version are not reliable. They may not work, or may cause your phone to stop working.
Definition: Recovery
A very small operating system on the phone, totally separate from Android, that is used to update your phone’s existing software via OTA updates, and has extra security privileges. When you permanently root your phone you also replace this with a different version (‘custom recovery’) that will allow you to install custom ROMs and not just official HTC updates.
Definition: ROM
Usually refers to the boot image and the system image (the kernel and Android), but broadly refers to all of the phone’s software. A custom ROM is anything that is modified from stock HTC. Custom ROMs you download can only be installed in recovery.
Defintion: RUU
Rom Upgrade Utility. HTC’s official way of flashing the phone’s software (i.e. completely replacing it, not updating existing software). An RUU can get past the phone’s security, and can change parts that you normally can’t even when rooted, e.g. the splash screens, the bootloader. An RUU wipes everything off the phone and is like a ‘total’ factory reset. That’s why it can be used to debrand or rebrand a phone.
From: AndroidForums
Servidores DNS gratuitos
Tech July 29th, 2009
Como muchos usuarios del servicio de Speedy de Telefónica del Perú, decidí cambiar hace mucho tiempo los DNS (esos servidores que permiten navegar por Internet al convertir los nombres de dominios que usamos en direcciones IP) de este operador (los tristemente celebres 200.48.225.130 y 200.48.225.146) por otros que tuvieran mejor performance y muchos, muchos menos problemas (hace varios meses hubo un problema grande con estos servidores que hizo que la conexión a Internet de la gran mayoría de usuarios se viera afectada, aunque la empresa española culpó de un virus que infectó a los usuarios, según ellos).
Mi primera elección fue utilizar los de OpenDNS (208.67.222.222 y 208.67.220.220), que funcionan bien, lo único que no me gustó fue que cuando no encuentra el dominio requerido, te envía a una página de búsqueda dentro del dominio opendns.com con algunas alternativas similares. Si no tienes problemas con esto, entonces te recomiendo que los pruebes.
Hace unos días, cambie nuevamente, ahora hacia los servidores 4.2.2.1 y 4.2.2.2, que son incluso más fáciles de recordar. Estos son operados por Level 3, una importante empresa gringa de telecomunicaciones.
Otra alternativa de servidores DNS gratuitos es ScrubIT, por algún motivo cuando quise probarlos, no podía ni hacerles ping, pero tal vez era un problema con mi conexión. En otro momento probaré su servicio. Por el momento me quedo con los de Level 3.
Update 6/Abr/2010:
Desde hace algunos meses, Google ofrece servidores DNS públicos, que prometen ser muy veloces, los vengo usando hace algún tiempo, y no he tenido mayores problemas. Las IPs de sus servidores son 8.8.8.8 y 8.8.4.4.
Tags: DNS, Google, Level 3, OpenDNS, ScrubIT, Telefónica, Telefónica del Perú
La frase geek del día
Tech April 22nd, 2009
Tour por un datacenter de Google basado en contenedores
Tech April 17th, 2009
Video presentado hace muy poco (el 1 de abril para ser exactos) por Google para mostrar la eficiencia de sus datacenters y como estos utilizan contenedores (sí, esos que se utilizan para transporte) para alojar sus servidores hechos en casa.
Tags: Container, DataCenter, Google
El 1 de abril se publicó en CNET News esta nota, donde revelan el diseño in-house de los servidores de Google. Para los que no saben, Google no utiliza algunos “pocos” servidores enormes, sino que es un gran cluster conformado por cientos de miles de PCs alrededor del mundo corriendo una distribución customizada de Linux. Según estimados, la cantidad de servidores (PCs) llega en la actualidad a 450,000, aunque no se conoce a ciencia cierta el número exacto.
Read the rest of this entry »
Tags: April Fools, CNET, GMail, Google, Google Platform, Google Servers, Linux
Desarmar routers Belkin
Tech March 31st, 2009
En mi casa tengo un par de routers inalámbricos Belkin, con los cuales no he tenido problemas en el último año. Hace unos días, de curioso, quise abrir uno y ver que tan fácil sería cambiarle la antena para mejorar el alcance.
El problema fue el encontrar los tornillos para abrirlos, ya que no están a la vista, sino, debajo del sticker posterior. Algo nada conveniente si eres, como yo, de los que no les gusta maltratar los equipos, ya que hay que despegar dicho sticker tras lo cuál nunca volverá a ser el mismo.
Como era de esperarse, el cable de la antena está soldado a la placa, por lo que el primer paso debería ser colocarle un adaptador que permita montar y desmontar cualquier antena de manera manual y sin volver a desarmar el equipo. El procedimiento no es complicado, así que uno de estos fines de semana espero darme un tiempo para hacerlo.
Tags: Belkin, Belkin F5D7230, Router
¿Silent Mode en Android es realmente útil?
Tech March 28th, 2009
Luego de haber perdido varias llamadas y mensajes de texto de mi celular, me doy con la sorpresa que cuando se activa el Silent Mode de Android, el teléfono desactiva todos los sonidos (como era de esperarse) pero también la función de vibración. Según los desarrolladores, este es el funcionamiento correcto del software. Lamentablemente, no es muy común querer desactivar ambas notificaciones (sonido y vibración), sino solamente el primero. La forma de hacerlo es un poco más larga que el simplemente presionar el botón de apagado por algunos segundos y escoger Silent Mode (incluso funciona con el teléfono bloqueado); lo que se debe hacer es bajar el volumen (con el botón lateral de volumen) hasta el mínimo, momento en el que aparecerá un icono notificandonos que ahora está en funcion vibración.
Ojala que en una futura versión de Android, puedan agregar siquiera una opción en el menú de apagado (al presionar el botón por algunos segundos) con la opción de Vibrate.
Tags: Android, G1, HTC Dream, Silent Mode
DVD+R ó DVD-R, he ahí el dilema
Tech March 21st, 2009
Me han pedido que haga dos copias de un DVD donde esta grabada la graduación de un primo para lo cual acepté sin problemas. Ahora, la pregunta del millón, ¿utilizo un disco DVD+R o uno DVD-R?
Según esta página (donde explican sobre todos los formatos para DVD que existen), es preferible utilizar el +R, ya que lo lee la mayor cantidad de reproductores del mercado.
About