domingo, 27 de febrero de 2011

My Joomla site is very slow!!!

I recently had the problem that my site in Joomla was very slow. If that's your case you should check some Joomla optimisation pages. In my case, our site was incredible slow. After 30 seconds of waiting and waiting for my site to load...it just load it everything. I did not have to wait to load all the pictures and content. I suspected first that my DNS or my Apache configuration was not configured properly. However, after double checking everything, I discard it was a DNS or Apache misconfiguration.

In order to solve the problem I installed a test server, I loaded my site in that server. Anyway, I had to do a test server in order to try our different web systems. I was suspecting of the statistics module. It was the first one to be disable and voila! my site started to load immediately.

My recommendation is to be careful to install statistic module in Joomla. In fact I would not recommend to install one unless you really need it. I think a good solution might be to let another site to do that statistic work for you.

Windows Vista and Windows 7 cannot join Windows 2003 Server domain

well...I had the problem recently that my computers in Windows Vista and Windows XP could not join my domain. Here are the things you need to double check to solve this problem:

1. See if your domain is well configured. Make sure that you have your main zone integrated with the active directory. In my case it was not integrated.
2. Check if your reverse zone is installed and working properly. In my case it was not installed properly
3. Check if your WINS service is working properly. I installed it because I have a lot of computers in my workplace
4. In your network properties, your network card must have the DNS, the TCP/IP over netbios enable, and you have to write the IP of your WINS server. WINS Server is recommended for environment with a lot of computers.

be sure everything above is working an you will not have any problem in joining your Windows 7 and Vista to your domain

viernes, 18 de febrero de 2011

Why I Hate Joda Conditions

Have you listen about the Joda conditions? well the folks from stackoverflow have gather a new set ofstackoverflow"> Programming's Jardon, Yoda's conditions referered to a very special kind of code that evaluate the value before the variable in a condition, sound it a lot like how yoda spoke remember?


Basicly is not an issue beside is akward to read, nevertheless i found myself debugging bunch of code that uses Yoda Condition Syntax with equals

if("Value".equals(variable)){

}
You know is a pain in the ass evaluate this kind of code, Theoretically shouold avoid the anno of NullPointerException, but the guys that did that never though how in the hell is going to help the debugging process, is just AWFUL, so please don't try to get all fancy in syntax and ">KISS my ass

Odio las condiciones Yoda

¿Has escuchado el termino de condiciones Yoda en desarrollo?, bien es una de las tantas nuevas jergas que se recopilaron en stackoverflow, y se refiere a un tipo especial de codigo que evalua el valor y luego la variable en una condicion, algo asi como hablaba Yoda recuerdas?


No hay ningun problema cuando se tratan de valores equivalentes, pero ultimamente me he topado con codigos que prefieren evaluar

if("Value".equals(variable)){

}

Sabes lo malo del codigo? En teoria sirve para evitar un molesto NullPointerException, pero me gustaria saber que pasa si variable es null y no entra a la condicion... que tan HORRIBLE es depurar esta clase de codigo, asi que por favor no se hagan los elegantes con las sintaxis y Keep it Simple, Stupid., Yoda podra ser un gran Jedi pero ese codigo definitavemente usa el lado oscuro de la fuerza....

sábado, 12 de febrero de 2011

BUG at hwdb.c:506 Damm you Astaro

So for any of you that have been through this mistake here is a little briefing about it:

"Astaro gives a weird error that said BUG at hwdb.c:506 just after you setup the timezone", Here is forum entry that help me out:

Insall fails after selecting time zone

Straight to the point here is the two posible scenarios for this mistake on virutal machine:

1- You hardisk is too small so you should increase its size (and yeah here size really matter)
2- Your virtual machine is configured with a non-linux distribution, change it

Now enjoy Astaro.

BUG at hwdb.c:506 Astaro HP

Para aquellos que hayan tenido este error la descripcion es la siguiente:

"Astaro da un mensaje que dice BUG at hwdb.c:506 luego de elegir una zona horaria cualquiera", en los foros hablan algo al respecto

Insall fails after selecting time zone

Para no hacer largo el cuento aqui estan las dos posibilidades por las que dan esos errores en maquinas virtuales, mi caso fue con Virtual Box:

1- Tu disco duro es muy pequeño aumentale el tamaño. (te estoy diciendo que el tamaño importa)
2- Tienes configurada tu maquina virtual para distribuciones diferentes a linux.