Sep
18

Nearly every web-application needs a professional framework that provides functionality, scalability and useful utilities for creating and extending  good code. At cip-labs I use an inhouse framework for creating web projects. While working on several projects, I extend this lightweight framework with useful features. Now, it’s just in development stage and some features are not ready to post it on the blog, but time after time I will release some parts of the framework to the public.

The first on the blog and latest part in the framework itself is the floraPHP string library. The library contains useful functions (procedural style) to do string manipulation in PHP. PHP delivers some built-in functions, but for intensive string handling it’s not enough.

With this library you can e.g. analyze datatypes of word sof a given string, calcute average sentence and word length, check whether $needle is a word in $haystack, use a more flexible sub string function and so on.

goto: floraPHP string library project page

goto: floraPHP project page

Jul
30

Today, we want to introduce you to trim-me.com. Trim-me is a web-service that shortens your long links to the minimum. At the moment TM is just in a beta-state, but we work on a final version that contains any statistic functions and support for the Internet Explorer.

You can use trim-me to cut your links for twitter, facebook, icq or other services.

Visit: trim-me.com

Jul
09

Today we want to introduce you to the Static File Optimization Script called lightscript. We use some techniques of the script in our web-based projects. The handling is very easy and the effect is huge. Lightscript allows the user to gzip, merge and cache the merged files on the fly. Now, we have to explain some aspects of lightscript.

$cache_dir and $script_dir are the variables that point out the place where the scripts are located and where lightscript can store cached files. Make sure that these directories are writeable (777). In the downloadable archive we have created 2 folders (scripts & cache). You can use this folders by default.

Lightscript also implements some cache directives.

header("Expires: ".date('r',mktime(0,0,0,12,12,date('Y')+5)));
header("Pragma: public");
header("Cache-control: public");
You can perform a request on lightscript in the following way:
http://example.com/scripts/lightscript.php?q=prototype.js|scriptaculous.js|main.js&c=1
With q you can list all files you need and with c you decide whether cache the file or not (c=1 || c=0).

Here you can download lightscript in version one.
Jun
27

Hello World,

first of all we want to introduce to you the cip-labs. CIP is an acronym for „Code Is Poetry“. And that it’s all about. „Code“ is the keyword for our new site. At the cip-labs we will run some performance tests, introduce serveral software and own projects to the public. At the moment our team contains only one engineer. It’s Alex.

Alex studies computer science at the HTW Dresden. He works for some companies to improve his knowledge and to get some feedback from these clients. His subjects are networks, administration/clustering, C/C++, C#, Java, PHP (favourite), Python and databases. Alex is specialised in optimizing webapplications.

This was our short introduction to cip-labs.

Stay tuned!