Sunday, January 11, 2009

Use Pandora outside US on computer and iPhone

On your Computer
This kid uses one way: http://www.youtube.com/watch?v=KpLwbC2AWZk
I haven't tried it myself but I'm sure it works after reading some of the comments on youtube
Looking for an alternative to ultrasurf (what he uses) for the iPhone, I found hotspotshield... More about that in a bit...

What I use comes from the guys behind globalpandora.com, and has given me good results and has never failed
The guide is a little more complicated but nothing too fancy

I'll copy it here, but you can go to the original... http://globalpandora.com/Vidalia_Bundle
  1. Download and install the Vidalia Bundle. (Installation Bundle for Windows)
  2. Go to Start > Vidalia Bundle > Tor > Torrc.
  3. Paste the following 2 lines at the bottom of the open document and save it:
    • Line 1: StrictExitNodes 1
    • Line 2: exitnodes 0xfreespeech127,703server,AoF,badger,BostonUCompSci,CrypticWoodland, desync,djshikari,Dukeman,ephemera,glittershy,motown,muffinman, MYCROFTsOtherChild,NascentHackTor,phrenograph,Samael,SelfEvident, superbad,Topcat,torctswc1,tordienet,tortastic,torxmission, trithnt,venusandmars,whomthebelltolls,YouDB01,Zanter
  4. Download tor.pac and place it at your C: drive.
  5. Configure your browser:
    • Internet Explorer: Tools > Internet Options > Connections > LAN Settings
    • Check "Use automatic configuration script" and fill the text box with: file://C:\tor.pac
    • Firefox: Tools > Options > Advanced > Network > Connections > Settings
    • Check "Automatic proxy configuration URL" and fill the text box with: file:///C:/tor.pac
  6. Run Tor (Start > Vidalia Bundle > Vidalia)
  7. Now launch your browser and point it to www.pandora.com and you are able to access Pandora again.
I skipped step 3.2, i.e. I just pasted StrictExitNodes 1... because the second line was giving me issues, but who knows... I hope you don't run into any problems.

On the iPhone
For the iPhone all you'll need is to go here:
http://hotspotshield.com/clientless/iphone/

Create an account, install the Pandora app, and enjoy.

Friday, February 22, 2008

Declare variable in MS SQL

To use the same variable multiple times do this:

DECLARE @Value Int
SET @Value = 134

select * from table where table_id = (@Value)

Thanks to: http://www.java2s.com/Code/SQLServer/Transact-SQL/Declareavarcharvariable.htm

This is very helpful when you want to use the same value multiple times on a query or something like that.

Friday, December 28, 2007

In the verge of violence

Album title. Mine!

Monday, December 10, 2007

Die with your boots on


¿Por qué Iron Maiden es tan bueno?

No lo sé explicar, es una verga tan arrecha, estoy un mes sin escuchar Maiden y a lo que vuelvo a poner un disco (como ahorita que puse el Piece of Mind), se me paran los pelos cuando escucho a Bruce dando su máximo nivel, a Adrian haciendo magia en la guitarra, a Dave volando en los solos, a Steve violando al bajo como si fuera Charlotte, y a Nicko tirando los palos de la vida... VERGACION DE CACHUO ES MAIDEN.

Take a look in the pool and what do you see? Veo a Maiden matando la liga! No me va a dar el tiro pa verlos en Colombia, pero estoy esperando que terminen de anunciar su gira por el norte y con la verga me los pelo. Si no, pues vemos, y si el destino no se acomoda pa que los vea, pues lucharé contra el destino, maiden will give me piece of mind XD

A los que vayan, no dejen de cabecear y gritar nunca, es Maiden vergación. Algunos capaz (como yo cuando perdió Chávez) no han caído en shock de lo que están a punto de presenciar, y capaz hasta que no empiece [no voy a decir con qué canción abren por si alguien quiere la sorpresa total], no van a darse cuenta de lo que les espera las próximas dos horas.

Los veré somewhere in time. No me preocupa no verlos ahorita porque esos carajos tienen mas energía que nunca, y no conforme con eso, el público les da mas energía hoy que nunca.

El día que Maiden decida dejar de tocar, nos quedará una majestuosidad musical en grabaciones napoleónicas, que los que comparten esta adicción conmigo, saben que, por más grupos que escuchemos, discos de quien sea que bajemos, compremos, dvds que veamos, quememos, conciertos que veamos... siempre volvemos a los brazos de Eddie, a la mente de Steve y a la mágia mística de Iron Maiden.

Up the Irons forever.

Sunday, December 09, 2007

Y con lo difícil que es cambiarle la hora al VHS

Antes de entrar en materia quería felicitar al pueblo venezolano una vez mas por su tan importante victoria el pasado 2 de Diciembre de 2007. Capaz sean mayoría los chavistas, pero parece que no todos son cegados a lo que diga el "comandante".

Bueno, tenemos hora nueva, media hora que en creo que lo único que va a lograr es sacarle la piedra a unos cuantos a lo que tengan que cambiarle la hora a cuanto aparato tengan, sobretodo si tienen un VHS. Nadie sabe cómo cambiarle la hora a un VHS, y el que lo ha hecho, se le olvidó. ¿Cuántos relojes de DVD y VHS han visto con la hora fija en 12:00 AM y titilando? TODOS, esa es la respuesta. Es otra maravillosa obra de nuestro ilustre gobierno.

En Venezuela pasan tantas cosas que ya los venezolanos no nos asombramos con nada... Le comenté a mi mamá lo de Enrique Mendoza y de panas, la he visto mas impresionada cuando le digo que son las 5 de la mañana y no he dormido. La victoria de "mierda" fue un titular más, OK fué un insulto y super ofensivo y Chávez no sabe administrar su derrota, pero en verdad, después de todo lo que ha dicho en los últimos años, no conozco a nadie que haya dicho "No te creo, ¿Chávez dijo eso!?". La respuesta que yo le doy a Chávez es: Cuando quieras, otra vez, y sin trampa. No te tenemos miedo.

Le voy a robar un chiste a er conde, que lo escuché hoy y dijo que Chávez, si lo analizamos bien, parece un chocho... Labios grandes, pelo maluco, y un poder de convencimieeeento. Y es verdad! Yo de verdad creo que si Chávez dejara de hablar tanta paja y de ser tan grosero, y de insultar tanto, y en vez de eso, se dedicara a hacer que el país funcionara, y no hacer que su imágen como "salvador" crezca, el carajo sería un excelente presidente. Pero verga es muy cagón!!! Yo entiendo que no pueda con la corrupción, es imposible despedir a los corruptos porque a todos les debe un favor, y si los saca a todos, lo matan ó lo tumban, así de fácil. Pero que ataque la inseguridad, por favor, eso no es tan difícil. No veo que hacen nada en esa materia. El ministro es una basura, no porque sea chavista, sino porque NO SIRVE... Osea, no lo botes, es amigo tuyo, pero pon a alguien competente por favor.

No volverán... PORQUE YA ESTAN ADENTRO.

Limpieza general... como lo dije, será pa que caiga de inmediato.

Termina tu gobierno y pasa la torcha compadre, Venezuela no quiere al mismo presidente hasta que se muera. Demostrado en las elecciones.

Se imprime.

Wednesday, November 14, 2007

How can I find what class or method is calling this method? Java

To do it, use this wherever you need to know who is calling the current method:
{..
String className = new Throwable().getStackTrace()[1].getClassName();
String methodName = new Throwable().getStackTrace()[1].getMethodName();
..}

Friday, October 26, 2007

¿Es el destino el culpable?

¿Es la dictadura algo que no podemos evitar y que el destino le tiene preparado a Venezuela para que en el futuro salga adelante?

Es una interrogante que me formulé esta mañana cuando me desperté y pensé en el pasado, presente, y futuro del país.

La palabra clave es destino, y lo digo por el hecho de que en Abril del 2002, cuando Carmona se montó en el poder, lo que hizo fue asumir un papel de dictador violando las leyes y haciendo lo que le entró en gana por un día en donde muchos de los venezolanos estabamos FELICES porque por fin habiamos salido de Chávez, pero viendo lo que hizo Carmona, pocos podrian decir que no fueron actos de un dictador.

Ahora Chávez quiere "democraticamente" tomar la presidencia de Venezuela hasta que "el pueblo quiera".

Cualquiera hubiera sido el desenlace de los hechos de abril, lo que el destino parece querer es que en Venezuela se instaure un dictador para que la gente -por la fuerza- tome cultura y aprenda de sus errores.

El que crea en el destino sabrá a lo que me refiero.

Ya creo que es demasiado tarde para salir de Chávez y OJALA me equivoque, pero la energía que rodea al país parece apuntar a la dictadura inevitable por donde se le vea... Es demasiado triste que tengamos que pasar por algo tan horrible para lograr superarnos, pero bueno... Todos los países desarrollados ó en una buena posición (como chile) han pasado por esta etapa, lamentablemente no aprendemos de los errores.

Chávez se está preparando para quedar en el poder por lo que le resta de vida, pero les digo algo, y quiero que lo recuerden los chavistas y opositores: ==TODOS CAEN==

Ustedes mismos los chavistas se van a dar cuenta en un futuro del horrible error que cometieron en el pasado, pero eso es bueno porque no van a dejar que pase otra vez.
Y los opositores, bueno, no nos rindamos nunca, a las calles, a reclamar nuestros derechos.

Lamentablemente no puedo hacer tanto como quisiera, y no estoy por ahora en Venezuela, pero mi corazón y pensamientos nunca salen ni saldrán de allá.

David Morón

Tuesday, October 16, 2007

ZT-800U CCD Barcode Scanner Manual

Well, we use this at my workplace and it was impossible for me to track down the company's information, manual for the scanner, etc.

To make this device work just print this out, scan in the order on which they appear and that's it, it's plug and play, you shouldn't need any drivers (I've only tried XP and Vista).
Thanks to Nathan for creating that image.

Good luck.

Monday, October 08, 2007

Analizando "Patria, Socialismo o Muerte"

Analizado por el oficialismo (los chavistas) es que es prefieren morir que entregar su Patria y su -y que- Socialismo. Pero para que eso sea así, falta un pequeño detalle, mi amiga llamada la coma (","). Esta pequeña amiga que nos ayuda a respirar mientras leemos debería estar (para que el lema de los chavistas tuviera el sentido que ellos le quieren dar) entre "Socialismo" y la "o", osea
"Patria, Socialismo, o Muerte" en donde se separan Socialismo y Muerte, pero en la frase tal como está escrita por el comandante, el significado es Patria por un lado y el Socialismo y la Muerte por el otro.

Me explico con un ejemplo:
"Hoy voy a comerme un pan con jamón y queso, y una zanahoria."
Noten la coma entre "queso" y la "y", esto es lo que nos ayuda a distinguir que el jamón y el queso van juntos y la zanahoria va por otro lado.
Otro ejemplo:
Tienen la cabeza mediana, las orejas grandes y membranosas, y los ojos de mediano grandor.
Si no colocamos la última coma en la frase anterior (y muchos no lo hacemos por costumbre), entonces la frase técnicamente no tendría la lógica que le queremos dar.

Y es así que la frase del oficialismo excluye a la patria y prefiere morir en su socialismo, y es por eso que la dictadura pronto será aprobada por ignorantes... Pero pa' lante.

Sunday, September 23, 2007

Add consecutive equal values in array

I don't know how to explain this snippet so people can find it if they search for it, but it would be something like add consecutive equal values in array.

I thought this would help you when you have a ResultSet and you need to add together two rows if they equal each other and then print it out. But it didn't, I'm going to end up doing it on the query. There might be another way to do this, but this is what I came up with... If someone knows a better way, please let me know :)

public class ConsecutiveArrayValues{

public static void main(String[] args) {
int a[]={1, 2, 4, 4};
int previousValue = a[0];
int output = a[0];

for (int i = 1; i<= a.length-1; i++) { if (a[i] == previousValue) {
output += a[i];
previousValue = a[i];
}
else {
System.out.println(output);
previousValue = a[i];
output = a[i];
}
}

System.out.println(output);

}
}

/* This will output 1 2 8.
If the array is {1, 1, 1, 1} the output will be 4.
If the array is {1, 2, 2, 3} the output will be 1 4 3

It adds consecutive values together, so in array
A = {1, 2, 2, 3}
A[1] and A[2] are equal (i.e. 2), then it adds the values up.
*/

Hope this is useful to someone, I had a fun time trying to get this working :)

Thursday, September 20, 2007

Simple Bidimensional Array sample

//Bidimensional Array

public class BidimensionalArrayTest {
public static void main (String args[]) {
int a[][]={{1, 2, 3, 4},
{4, 5, 6, 7}};

for (int row = 0; row < a.length; row++) {
for (int column = 0; column < a[row].length; column++) {
System.out.print("" + row + "," + column + " ");
}
System.out.println("");
}
}
}

Sunday, August 26, 2007

Chavez, anda leer mas

Chavez denuncia cinismo europeo al criticar su propuesta para ser reelegido y dice que la reelección de un gobernante sin límite de veces está vigente en Alemania, Francia, Italia, Portugal, Eslovaquia, Chipre, Estonia, Eslovenia, Grecia y Letonia.
Fuente: http://noticierodigital.com/forum/viewtopic.php?t=244186

Ahora veamos la realidad:
Alemania: El presidente es elegido por una asamblea federal, dura 5 años su mandato Y no puede ser re-elegido mas de dos veces, es decir... maximo 10 años.

Francia: Desde el 2000 el periodo es de un total de 5 años y si puede ser re-elegido n veces, pero su mayor poder es elegir al primer ministro quien es el que en verdad la cabeza del pais y a quien le hechan la culpa de las fallas del gobierno y la asamblea nacional tiene que estar de acuerdo con quien es el que van a poner de primer ministro, y si no estan de acuerdo, pueden remover al primer ministro de su cargo y listo. Es decir, el presidente de Francia no tiene ni remotamente cercano el poder al de Venezuela.

Italia: El mandato dura 7 años y al igual que en Francia, puede ser re-elegido n veces, y tienen algo similar al primer ministro, es decir, no tiene el poder absoluto el presidente.. Y NO SOLO ESO, nunca ningun presidente ha repetido, a diferencia de Chavez que quiere repetir porque le sale del forro.

Portugal: Periodos de 5 años y pueden servir maximo 2 periodos.

Eslovaquia: Periodos de 5 años y ya...

Me da ladilla seguir, pero ya tienen la idea espero.. la cual es que Chavez es un hablador de guebonadas y cree que uno no investiga...

El socialismo en Venezuela no va a funcionar NI A PALOS... compren todas las armas y acumulen todo el poder que quieran, lo que van es a caer mas duro...

Monday, July 23, 2007

Sum values in Column A when value in Column B and Column C match criteria

This is a tricky excel formula that I bet a lot of people have had a hard time finding... I wasn't even looking for it but I did look for it some time ago and wasn't able to find it so here it is:

Question: In Excel, I need to create a formula that will sum all the values in Column A when the value on the same row in Column B is 150 and the value in Column C is the letter U.

Answer: This can be done in Excel with an array formula.

Let's take a look at an example.

In cell A7, we've created the following array formula:

=SUM((A1:A5)*(B1:B5=150)*(C1:C5="U"))

When creating your array formula, you need to use Ctrl+Shift+Enter instead of Enter. This creates {} brackets around your formula as follows:

{=SUM((A1:A5)*(B1:B5=150)*(C1:C5="U"))}

Got it from: http://techonthenet.com/excel/questions/array1.php

I don't know how to formulate this question so people that look for it will be able to find so if you have any ideas just leave a comment...

Thursday, July 19, 2007

10048 apache error during install

This error apparenly is related to McAffe, Skype and in my case... uTorrent... close it, start apache... voila!

Friday, July 13, 2007

Print the right most digit of a number

Here's some Java for you my beloved fans :)

public class RightMostDigit {
public static void main(String[] args) {
//One way
int myInt = 155;
System.out.println(155%10);
//Another way
int myInt2 = 140;
System.out.println(Integer.toString(myInt2).substring(Integer.toString(myInt2).length()-1));
/* Output:
* 5
* 0
*/
}
}

Monday, July 02, 2007

What is the Command Line for running Remote Desktop

Start
Run
mstsc
OK

That will run Remote Desktop
GL

Monday, June 11, 2007

PluginPacbox - Rockbox Pacman

MAME Roms Midway pacman.zip
Download here:
http://home.no.net/pacroms/sparcade/pacman.zip

It has all the files you need to run pacman on your whatever device that´s running rockbox, I´m running it on a Sandisk Sansa e260 and it works wonderful.

Just copy the files from the zip to /.rockbox/pacman/

Enjoye.

Saturday, June 09, 2007

el administrador ha deshabilitado la modificacion del registro

Este error junto con el de que no puedo ver las opciones de carpeta en windows xp lo resolvi con un poco de ayuda de este foro
http://www.foromsn.com/index.php?Ver=Mensaje&Id=249583

que decia que tenia que hacer esto
Inicio > Ejecutar > gpedit.msc > Configuración de usuario > Sistema > Impedir el acceso a herramientas de edición de registro > Deshabilitado
pero en mi pc no aparecia sistema, indagando consegui que informacion similar esta en
Config de usuario - Planillas administrativas - Componentes de Windows - Explorador de Windows - Quitar el Menu de opciones de carpeta del menu de herramientas - poner en deshabilitado para que aparezca ---- ahora si aparece XD

lo del regedit esta en config de usuario - planillas administrativas - sistema y cambias el valor que dice el chamo del foro, solo le falto poner planillas administrativas XD

saludos

Tuesday, May 15, 2007

When do you introduce violence to a kid?

I was watching this video speech of Marilyn Manson and I wanted to share some thoughts with you guys...



I think he makes nice remarks, it made me think about how will I raise my kinds, it's kind of hard to try to teach someone... When do you know it's the right time to introduce to sex? violence? murders? deaths? drugs? all those things kind of are hidden from lots of kids because of their parents, then they hear it on the news, listen to friends, learn it on the street... Since the day they are born? I don't think so.. you don't want to kill a kids innocence, but then when?

I don't blame music for anything, I'm a rocker/metalhead/headbanger whatever you call it, I listen to all sorts of death, black, heavy metal bands and many of those bands lyrics are nasty but that doesn't mean I'll go and do what they say, I like the music, that's it, and the lyrics fit the music, you can't have pop lyrics on a cannibal corpse song, wtf... It's the way the kid is raised, the enviorment, the friends, the family and all that together what makes the listener think for themselves and to have a good point of view on what's right and wrong. But what's right or wrong? Well I guess you have to go with feelings 'cause it changes from person to person, I guess the common good is - don't hurt people.

Live and let live, help out each other... We all still have a long way to go to become the perfect world I guess we all dream about.

Peace.

Wednesday, May 09, 2007

My new journey: Coding for Half life 2

Well, I'll try to post things about my learning process, this might provably help some new comers to the Half Life 2 coding.

First I had a fun time searching for the SDK, turns out, it is available on Steam so this differs on how half life 1 was, which created a little difficulty for me trying to find it... Especially since I get frustrated when something I think it's simple is not the first link that comes up on google when I search for it :)

Anyway... Follow the instructions here: http://developer.valvesoftware.com/wiki/SDK_Installation
Pretty much just download the SDK and install it... I'm almost possitive 100% is the SDK and not SDK base... I think according to this link http://developer.valvesoftware.com/wiki/Source_SDK_Base
That it's pretty much using the latest SDK for your mod but I don't know if they mean it hasn't been tested through or if it's like a beta stage... I don't think I should care about that too much at this point so...

On other news: I graduated for my Master's degree in Computer Information Systems - personal hi 5. And now I'm looking for a job, and pretty much that's why I'm coding now, I think I can learn this, it's hard but giving up without even trying is not what you are supposed to do according to movies :)

Best of luck to all of you new comers to coding, including myself :)

I'll keep updating, provably not all the time 'cause it might be boring, but I'll do my best, that way I can keep track of what I've done too XD