You're at Mabishu, a website about discovering quality on code, searching emerging technologies, and leading a simpler, more mindful coder life. This site was established in 2005 by Fran Diéguez, a blogger, software developer, and open source geek. Subscribe to the RSS feed for updates.

Debugging PHP with XDebug and Komodo IDE

Captura de pantalla 1 Debugging PHP with XDebug and Komodo IDEWhen you develop a very important web app it is pretty sure you will need debugging it. The best way to do this is using XDebug so in this article I am going to explain how to setup and use XDebug with Komodo IDE or Edit, but you can use it for Netbeans or Eclipse as well.

The first step is install XDebug in your system (I assume that you have already installed a LAMP server in your system). Read the rest of this entry »

Some valuable ‘User Interface Patterns’ resources

Written on August 23rd, 2010
.

4328394839 e632f7c98d Some valuable User Interface Patterns resourcesLast week I’ve been investigating about Web UI Patterns and anything concerning Social Media Patterns, mainly focused on building a consistent UI Pattern Toolkit that I’ll release as soon it will be ready.

In this searching I found some valuable resources with incredible useful UI Patterns solutions, with some discussions around them:

  • The first resource is about patterns that applies to social media sites, there you can find a lot of ideas for implementing common interface problems in a homogeneous way. This decrease the “User first expectation” a lot by trying to apply the same solution across every site: Here’s the link: http://www.socialdesignpatterns.com/
  • The second, and last, resource is focused directly on UI Patterns for the web. Here http://ui-patterns.com/ I found a lot of approaches that other sites have applied to it’s problems: drop-down menus, Calendar pickers, Activity streams, In-place editors, etc. all of them with screenshots and reviews.

Additionally, you can find a lot of books regarding this subject:

2435522965 9e7771e137 m Some valuable User Interface Patterns resources2805069373 0d0df00bca m Some valuable User Interface Patterns resources2795643169 b2cab661b6 m Some valuable User Interface Patterns resources

Certainly, some valuable UI Patterns solutions all of us must take in place. I hope you enjoy all of them and if you have any suggestion or tip please write a comment bellow.

Restore files and dirs from previous commits in Git

Written on August 10th, 2010
.

Captura de pantalla gitg gnome system tools master 1 Restore files and dirs from previous commits in GitWhen I met git, I fall in love in the moment. You can read any apointments I wrote previously here, and here (in spanish) but today I’ll explain how to restore files and directories from previous commits that it was deleted by a mistake or intentionally in the past.

It’s quite easy to revert or reset a single file from history, but what about pulling an entire directory out of the history?

The solution is simple:

git checkout ID_of_commit -- /path/to/dir

This will restore the directory from the given “commit with ID” in the /path/to/dir. Read the rest of this entry »

Joining Ubuntu Lucid Lynx to Active Directory

linux xp Joining Ubuntu Lucid Lynx to Active DirectoryFrom Jaunty Jackalope version of Ubuntu and now in the lastest release (Ludid, 10.4) it’s very easy to join your Ubuntu to an Active Directory. Where I work we have a huge Active Directory to centralize users, groups, computers and resources (far more than 3000 users).

Here I go to explain how to join an Ubuntu Lucid Lynx (10.04) box to an Active Directory server:

Before all take notice that your DNS are pointing to your corporative DNS and the client system-time is synchronized with the server time. To do this just issue the next command:

sudo ntpdate domain.of.your.ad.server.com
  1. Install the likewise open AD authentication application with the next command: sudo apt-get install likewise-open
  2. Register your Ubuntu system:
    sudo domainjoin-cli join name.of.jour.domain.com admin-user 

    (where name.of.your.domain.com is your domain name, and admin-user is a user account on the domain with permissions to add computers to it).

  3. When prompted, enter the password of your adminstrator account. A dialogue box will appear asking for your domain name, enter your AD fully qualified domain name in upper case letters, i.e YOUR.DOMAIN.COM
  4. Finally reboot.

Read the rest of this entry »