P0L0's Blog Opensource Projects and IT experiences

17Apr/100

Netbeans Performance Switches

I recently have began to use Netbeans because I'm sad that Eclipse is every time slower and it frozes every time when you are doing something to fast.

Netbeans is not perfect, and there are some features that need to be polished (Ex.: SVN Support, Time Tracking like Mylyn), but the PHP/HTML/CSS/JS Support is excellent, in my opinion better than the Eclipse PDF support.

These is my netbeans_default_options for Netbeans for MacOSX (under Windows you can leave out the --laf switch, it's for changing the look and feel):

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-XX:CompileThreshold=100 -XX:+CompressedOOPS -XX:+AggressiveOpts -XX:+TieredCompilation -XX:+DoEscapeAnalysis -XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true --laf javax.swing.plaf.metal.MetalLookAndFeel"

Some switches come from Netbeans Performance site.

  • -J-Xss2m - Define Stack Size (Too small and you will get StackOverflow Exceptions)
28Jul/090

Eclipse Configuration for Web Development

After trying very different IDE and many Eclipse IDE flawors, this is the best configuration I have found, and all the components are free.

First of all we need to download Eclipse Classic from the Eclipse website.

One of the first things we need to do is to change eclipse.ini, we will make it start faster and increase the memory limit

1
2
3
4
5
6
7
--launcher.XXMaxPermSize
256m
-vm
/usr/bin/java
-vmargs
-Xms40m
-Xmx1024m

The path to Java VM depends on your installation and system, in windows you must search for "javaw.exe". Setting the path to Java VM makes that Eclipse stops searching for the Java VM every start, which makes the start faster.

Now we can start installing the required Plugins. In "Help->Install New Software..." we will add the following Update Sites.

11Aug/083

Recompilar MAMP

El soporte de LDAP en MAMP 1.7.1 esta roto asi que tube que recompilar el PHP, lo cual me obligo a recompilar todas sus dependencias, pero como no encontre ninguna guia de como realizarlo correctamente, aqui esta como lo hice yo.

Lo primero es descargarse el codigo fuente proporcionado por la gente de MAMP, y su version compilada.

Codigo fuente: MAMP 1.7.1 (src)

Version Intel: MAMP 1.7.1 (intel)

Version PPC: MAMP 1.7.1 (ppc)

Una vez que tengamos esto, hay que instalar MAMP la version compilada en /Applications y asi ya tenemos toda la estructura correcta lista para solo recompilar lo necesario.

Ahora descomprimimos el codigo fuente y vamos compilando las diferentes librerias:

CURL

tar zxvf curl-7.16.2.tar.gz
cd curl-7.16.2
./configure --prefix=/Applications/MAMP/Library
make
make install

Freetype

3Feb/0845

jWeather: Modulo de tiempo para Joomla 1.5

Hace mucho que no pongo posts, es lo que tiene la falta de tiempo ;(

En el trabajo estoy preparando la nueva web con Joomla 1.5 y necesitabamos un modulo de tiempo, mirando en http://extensions.joomla.org no encontre ningun modulo que funcionase con Joomla 1.5 y tampoco que mostrara simplemente el tiempo, asi que decidi a hacer yo un modulo. Me puse manos a la obra y he creado un proyecto en SourceForge llamado jWeather que ya tiene su version 0.1.1 y muestra correctamente los iconos del tiempo para 3 dias. El modulo coge la informacion de la pagina weather.com

Tambien he puesto un pequeño tutorial de como coger el codigo de la ciudad y usarlo en el modulo en el wiki de sourceforge

23Jan/070

PHP5 eAccelerator

Hacia tiempo que queria poner esto, pero nunca me he puesto. eAccelerator es un modulo de php que compila y carga en memoria las aplicaciones php, y con esto consigue que haya una mejora de respuesta y descarga bastante el servidor. Aqui os explico como instalar eAccelerator con PHP5 en una debian.

Lo primero que hay que hacer es descargarse la ultima version de eAccelerator, tambien necesitaremos en el server las utilidades de desarrollo de php

apt-get install php5-dev

La instalacion es realmente muy sencilla, solo tenemos que descomprimir, compiler, instalar y configurar.

  • Descomprimimos
tar xvfj eaccelerator-0.9.5.tar.bz2
  • Compilamos
cd eaccelerator-0.9.5
phpize
./configure
make
  • Instalamos (nos pondra el modulo en la carpeta de modulos de php)

0a7ae3e0fa914cfb9e79b908396e7447023

Tagged as: , , No Comments