Die diesjährigen Webhostingdays fanden vom 18. bis 20. März bei Köln in Brühl auf dem Gelände des Phantasialands statt. Hier trafen sich etwa 2000 interessierte Besucher aus der ganzen Welt die sich innovative Produkte und Dienstleistungen vorstellen ließen, sich die spannenden Vorträge der Unternehmen aus der Hosting- und IT-Branche anhörten, sich untereinander austauschten und nebenbei Achterbahn fahren konnten. Zum abschließenden Höhepunkt gab es die sogenannte ConneXion Party mit einem wunderbaren Menü-Programm.
Ein sehr gelungenes Event - Wir freuen uns bereits auf das nächste Jahr!
I wanted to install the prototype framework with the scriptaculous effects to my cakePHP Application, but after uploading the prototype files into the webroot/js folder and linking them in the layout, i got a failure message like “Undefined variable: javascript”.
This variable has to be defined in the Applications Helper, so you can put this line of code in your AppHelper class. If you dont know what to do: create a file named “app_helper.php” in your /app folder and insert these lines of code.
class AppHelper extends Helper {
var $helpers = array('Html','Javascript','Ajax');
}
The $javascript variable is now available and you can insert your javascript files (the prototype framework in my excample) like this in the head of your layout.
echo $javascript->link('scriptaculous/lib/prototype');
echo $javascript->link('scriptaculous/src/scriptaculous');
// Scripts from a view
echo $scripts_for_layout;
I often need to remove files or folders in a dierctory - but I also often must not delete the whole directory, so here is the shell syntax for removing everything from a directory excepting your searchparameter.
This removes all files and subfolders in your current folder, excepting the cgi-bin directory.
You can search within possibly compressed files for a regular expression.
This helps me searching for strings in old compressed logfiles.
zgrep [ grep_options ] [ -e ] pattern filename…
This greps “searchstring” (without case sensitivity) from the compressed file in filename.gz
and writes the results to a new file with the name Result.
zgrep -i 'searchstring' ./filename.gz > ./Result
This greps the same string like in the example above, but with the difference that its not just parsing one file, its searching for the string within all gzip files in this directory and its only writing the filename where the searchstring is found to the new Result file.
I have just needed a toggling function made with javascript for checkboxes wich are grouped in lists. It should look like a hierarchical tree-like structure. When I check the box of my first tree-category, all related subcategories automatically must getting checked too.
I have used the prototype framework for other functionalities on the website, so I preferred to take use of it for helping me by developing this. Prototype framework comes with form functions like getInputs(), but this function gets completely all input fields of a form and not from a specified list, so this did not help me in this situation.
This is a silhouetted visualization of my grouped checkboxes: