easytech-feed's blog

ssh tunnel and a half

Using ssh to shut down lights :-) As you all might know ssh is a very popular protocol used to connect to remote shells. I mostly use OpenSSH as a client (I think most of you to). SSH has a lot of cool options but in this post i’m going to write about how to use it to create a secure tunnel.

What is a tunnel?

Playing with TermKit in Linux with Chrome

TermKit is graphical replacement for the old Unix terminal developed by Steven Wittens.

Guick Support Ticket System | First Shot

[jLanguage default=”english”][english]Some time ago we begin to need something to manage our clients requirements because it was  already a very high entropy. After some research (that means google) we were unable to find a simple app that fit our needs. At this point  Cesar decided to implement Drupal + Support Ticket System module.[/english][spanish]Hace un tiempo necesitabamos algo para ordenar un poco los requerimientos, correcciones de bugs, etc.

Error reporting in PHP scripts

It often happens that you are trying to debug a PHP script running from command line or a part of your code and the script mysteriously dies. Depending on your server configuration (or command line) errors may be being silently being hidden. In those cases I recommend you add the following lines to your code to guarantee that all errors, notices, etc will be printed.

<?php

A PHP Shell

A Nautilus shell

Exploding and imploding…

Very often when I review other peoples PHP code I come across an old problem: generating a list of comma separated values from a list of things.

Creating a page with tabs in Drupal

If you are developing a module for Drupal you might need to use tabs to simplify a bit a screen which has too much functionality. Typically a settings page that might need too many options to comfortably fit on a single screen. Since I had to search and experiment a bit to find out how to do it I decided to write a short post with my findings. In this article I assume you have a basic understanding on writing Drupal modules.

Drupal Tip – How to determine what module handles a given path

Drupal has a sophisticated module system that allows developers to extend the CMSs functionality very easily. Each module “hooks” into Drupal by implementing hook functions. On way to use this feature is to hook different URLs to module functions. Essentially the developer in his module declares an array of url paths and what function should be called when that path is requested.

Using Zend_Reflection to generate API docs

Today I needed to generate source code documentation for a webservice APIs we are in coding. One of the guys in the office suggested I take a look at Zend_Reflection. It turns out its quite simple to write PHP code to parse source files and extract the documentation from them. I took a little time to write this sample program.

Initializing only one module per request in Zend_Framework.

Zend Framework recently introduced the concept of modules so that your applications become more manegable. The application on startup will load the resources defined in the main application.ini file. To configure each module there is a resource called modules that calls the bootstraping code for each module on every request. If you want to load resources on a per module basis you need to write a bootstrap for each module.

Syndicate content