Monthly Archives: September 2008

Use PuTTY as Cygwin terminal

Posted on in Development, How-Tos

Use PuTTY as Cygwin terminal

“Cygwin is a Linux-like environment for Windows.” This means, you can use linux/unix commandline tools like ls, grep and find on your Windows system. However, the default installation of Cygwin uses Windows’ default commandline terminal cmd.exe, which is not really handy. Fortunately, there’s a solution to use PuTTY as Cygwin terminal.

  1. Download and install Cygwin. The setup will download all needed packages, so make sure you check what you need (my main reason to install Cygwin was to have a Git client on Windows)
  2. Download PuTTYcyg and extract the contents of the archive anywhere on you hard drive
  3. Start putty.exe, select Cygterm as connection type and enter - (dash) as command. Enter a session name (e.g. cygwin) in the text field below Saved Sessions and click on Save.
  4. Create a shortcut to putty.exe. Right click the shortcut, select Properties and append the following string to the target field: -load "cygwin". Of course you have to replace cygwin with the name of the session you saved in PuTTYcyg.
  5. Open the shortcut and you should directly get into your Cygwin shell

Magento design resources

Posted on in Development, Web

As the documentation on Magento is a bit…spread around the web: here’s a collection of links to guides and hints how to deal with magento’s templating system (partially german). I will add more as I find them.

Screencasts

Use VPN connections in network-manager-pptp without rebooting

Posted on in How-Tos, Linux

When configuring VPN connections in Ubuntu through network-manager-pptp the connections don’t get displayed until a reboot due to a bug. In the bugtracker I found a solution which makes the connections available without a reboot.

First, restart dbus

sudo /etc/init.d/dbus restart

Then run the NetworkManager applet by opening a command window with ALT+F2 and typing in nm-applet.

IGNOREME

Posted on in Fun, Web

Just found this in PvPGN‘s README :D

CONGRATULATIONS!!!!

WHY ?? BECAUSE YOU ARE ONE OF THE VERY VERY VERY FEW WHO READ THE README FILE!!

But because the other, huge percentage do NOT, we moved the actual contents
of this file into IGNOREME file because the chances for most of the people to
read IGNOREME are at least the chances to read README (more than that, we
believe they are really much higher).

So now, go read IGNOREME with the actual contents what you would have
expected here.

Raumbelegung Update

Posted on in Development, Projects

Wieder ein Update für den Raumbelegungs-Webservice: das Webinterface wurde (zumindest für vernünftige Browser) zum Großteil webzweinulljqueryajaxifiziert ™. Außerdem gibts mittlerweile den Desktopclient in der aktualisierten Version für die neue Basis zum Download auf der Projektseite.

Neue Version des FH Kufstein Raumbelegungs-Webservice

Posted on in Development, Projects

Ich hab mich mal wieder meinem Raumbelegungs-Webservice für die FH Kufstein gewidmet und das komplette System auf Basis des Zend Frameworks neu aufgebaut.

Resultat: der Code ist sauber und wartbar – das ZF nimmt einem einiges an Arbeit ab. Nur der Webservice hat einige Experimente gefordert, bis er mal lief. Ich habe übrigens nicht wie geplant Zend_Soap_Autodiscover eingesetzt, da ich damit kein funktionierendes Ergebnis hinbekommen habe. Im Endeffekt hab ich dann das WSDL-Dokument des alten Webservices kopiert und angepasst, war die einfachste Lösung und funktioniert.

Neuigkeiten:

  • Generelle Architektur basierend auf der MVC-Implementation des ZF
  • SOAP Webservice über Zend_Soap
  • Caching mittels Zend_Cache
  • Screenscraping mit simple_html_dom
  • Webclient mit einigen Änderungen beim URL-Handling

Mehr dazu auf der Projektseite.

Disable layout and view renderer in Zend Framework

Posted on in Development

Just a quick tip: I’m working on a project using Zend Framework and needed to switch off layout and view renderer for a specific controller. This can be achieved by adding the following calls to the controller’s preDispatch() method:

public function preDispatch()
{
    $this->_helper->layout()->disableLayout();
    $this->_helper->viewRenderer->setNoRender(true);
}