Category Archives: programming

Cambio Pagina Inicial

Ya que ultimamente mi blog ha estado practicamente sin actividad debido a que dedico la mayoria de mi tiempo libre a un “pet project” con el que estoy teniendo algo de diversion voy a cambiar a partir de hoy la pagina inicial al “lifestream” donde esta mi feed de twitter y algunas otras cosas de lo que estoy haciendo.

El proyecto en el que trabajo es relacionado con el ciclismo, buddypress se llama http://mibici.mx y es acerca de tratar de formar una comunidad al rededor del bello deporte del ciclismo y jugar con algo de datos de GPS que ultimamente me he involucrado, he aprendido bastante de JavaScript y a usar algunas de las apis de mapas de google.

New Agregado Theme

I’m really exited with the new agregado theme provided by Smashingmagazine and just changed my theme, I’ve detected and corrected a couple of issues:

1. There’s a typo in the audioscrobber feed:

On the functions.php line 499 says:
$simple_url .= ‘/recentracks.rss’;
And should be:
$simple_url .= ‘/recenttracks.rss’;

2. I saw my flickr pictures being resized and comment two lines (103 annd 104) in the query-carousel.css:

#mycarousel img {
padding:3px;
border:1px solid #4f383d;
margin:0 13px 7px 0;
/*
height:40px;
width:40px;
*/
display:block;
}

This display the correct size of the flickr images, please let me know your comments on this new theme.

User Centered Usability Design

This week I’ve learned about usability design centered on the users’ perspective, here are my favorites quotes from the book I’m reading:

“include in the definition of ‘users’ those who manage direct users, those who receive products from the system, those who test the system, those who make the purchase decision and those who use competitive products”.

“When we talk about identifying needs, therefore, it is not simply a question of asking people, ‘what do you need?’ and then supply it, because people doesn’t necessary know what is possible” … “Instead, we have to approach it by understanding the characteristics and capabilities of the users, what they are trying to achieve, how they achieve it currently, and whether they would achieve their goals more effectively and have a more enjoyable experience if they were supported differently”.

“it is always tempting for developers to create products they would want to use or similar to what they have done before”.

Pay attention to your users. :)

Zend Debugger + Eclipse + Apache

I wanted to install the zend debugger with eclipse and apache, and found this spanish tutorial, and want to resume the steps I followed:

I assume you have already installed eclipse 3.3 + pdt.

1. Download the corresponding debugger from: http://downloads.zend.com/pdt/server-debugger/, I use amd64 so I got ZendDebugger-5.2.12-linux-glibc23-x86_64.tar.gz.

2. Untar the file in a directory in your home, I used /home/user/Bin/ZendDebugger.

3. Edit your php.ini file and add the following directives:
zend_extension=/home/<user>/Bin/ZendDebigger/5_2_x_comp/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

4. Verify that the extension is loaded with the simple function:
<?php phpinfo(); ?>

5. Restart eclipse and start debugging!
screenshot-eclipse.png

PHP MSSQL 2005 Problem – Solved

Trying to make a connection to a MS SQL Server 2005 database from PHP, I always got an error message using the mssql_connect saying:

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {servername}.

I tried several solutions like, updating the ntwdblib.dll (on windows; I had the same error on linux) library, configuring the tcp/ip properties on sqlexpress but nothing I still having the same error.

At the end I changed the ip address on the server name by the respective server name and finally worked!.

So instead of:


$server = 192.168.50.1;
$user = 'sa';
$password = 'sapassword';
$conn = mssql_connect($server, $user, $password);

Changed for:

$server = cmanonserver;

Eclipse

I’m trying to setup my development platform for PHP on Linux, I chose eclipse PDT, to complete this task with PDT version 1.0 need to download and install eclipse 3.3 RC1, to make it work per the module requirements, after a download of 250 mb approximately, it didn’t work.

I’m trying to install the old PHPEclipse plugin. Wish me good luck!

UPDATE: I just downloaded the old PHPEclipse plugin and it worked with the Eclipse 3.2.2 IDE.

UPDATE: I just noticed that for the new version of PDT tools you need to run Eclipse with Java 5 JDK.