Development Blog by Professionals
Programming
.htaccess SSI Variables
Jul 22nd
SSI Variables
DATE_GMT=Sun Mar 8 22:58:56 2009 DATE_LOCAL=Sun Mar 8 15:58:56 2009 DOCUMENT_NAME=FOOTER.html DOCUMENT_ROOT=/root-srv/protected/askapache.com/sec DOCUMENT_URI=/includes/FOOTER.html GATEWAY_INTERFACE=CGI/1.1 HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING=gzip,deflate HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5 HTTP_CACHE_CONTROL=max-age=0 HTTP_CONNECTION=keep-alive HTTP_COOKIE=__qca=12298910-686528-46510; __utmb=50625.1.0.11311 HTTP_HOST=www.askapache.com HTTP_KEEP_ALIVE=300 HTTP_REFERER=http://www.askapache.com/htaccess/htaccess.html HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729) LAST_MODIFIED=Sun Mar 8 14:53:50 2009 PATH=/bin:/usr/bin:/sbin:/usr/sbin QUERY_STRING= REMOTE_ADDR=24.123.215.60 REMOTE_PORT=4785 REQUEST_METHOD=GET REQUEST_URI=/htaccess/ SCRIPT_FILENAME=/root-srv/protected/askapache.com/sec/includes/FOOTER.html SCRIPT_NAME=/includes/FOOTER.html SCRIPT_URI=http://www.askapache.com/htaccess/ SCRIPT_URL=/htaccess/ SERVER_ADDR=64.111.114.111 SERVER_ADMIN=webmaster@askapache.com SERVER_NAME=www.askapache.com SERVER_PORT=80 SERVER_PROTOCOL=INCLUDED SERVER_SIGNATURE= SERVER_SOFTWARE=Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.63 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2 UNIQUE_ID=dnbtH0Bvcm8A2ZHqcAAAAM USER_NAME=
More SSI Information
FFMPEG Generating splash images
Jul 15th
Generating splash images
The splash images on the page were configured with FFMPEG tool with following command line argument.
ffmpeg -i my_movie.flv -f image2 -s 320x240 my_image.jpg
The command is not optimized in any ways. You can play with the tool and send us a better command if you like.
How to Send RSS Feeds to Twitter and Facebook
Jul 13th
http://thesocialmediaguide.com.au/2010/04/25/how-to-send-rss-feeds-to-twitter-and-facebook/
http://app.dlvr.it/
http://www.slideshare.net/iglassbox/how-to-send-rss-feeds-to-twitter-and-facebook
You Tube Flash AS3 / AS2 Data & Player API
Jul 12th
Recently I have been working on something involving the use of video content from You Tube. With the lack of a good API out there I created my own. Below is a simple example of this working with sample code to download further below.
PHP mail validation function
Jul 8th
function valid_email($str)
{
return ( ! preg_match(“/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix”, $str)) ? FALSE : TRUE;
}
Custom Trigger View Recordset Data
Jul 7th
- For PHP:$_SESSION['kt_login_id'] = $tNG->getPrimaryKeyValue();
$_SESSION['kt_login_user'] = $tNG->getColumnValue(‘name_usr’); - For ASPVBScript:Session(“kt_login_id”) = tNG.getPrimaryKey
Session(“kt_login_user”) = tNG.getColumnValue(“name_usr”)
SET Trigger_Custom = Nothing - For ColdFusion:SESSION.kt_login_id = tNG.getPrimaryKeyValue();
SESSION.kt_login_user = tNG.getColumnValue (“name_usr”);
GR hostmaster
Jul 6th
ErrorCode 2009.Invalid Epp Schema.Fatal error: URI=null Line=14: The entity name must immediately follow the ‘&’ in the entity reference.
Na figei to & apo ta data! or na ginei convert se code!
Στην πρώτη απάντηση (response) από τον EPP server (πχ στην απάντηση της εντολής login), o application server αποθηκεύει το JSESSIONID cookie στα headers. Συγκεκριμένα, παρακάτω φαίνονται τα περιεχόμενα των headers αμέσως μετά την πρώτη απάντηση από τον EPP server:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=6A7041BD9654402D19A2127E0BD53B5B; Path=/epp; Secure
Date: Mon, 21 Jun 2010 08:49:22 GMT
Connection: close
Εάν το JSESSIONID cookie δεν χρησιμοποιηθεί στις επόμενες εντολές που αποστέλλονται στον EPP server (ή η τιμή που αποστέλλεται είναι λανθασμένη), τότε η απάντηση θα είναι “Invalid EPP Session” με κωδικό σφάλματος 2509. Παρακαλούμε ελέγξτε τον τρόπο εξαγωγής του JSESSIONID cookie από τα HTTP headers στις εφαρμογές που χρησιμοποιείτε. Υπενθυμίζουμε ότι ο ίδιος application server χρησιμοποιείται και στο σύστημα παραγωγής αλλά και στο δοκιμαστικό σύστημα: https://devepp.ics.forth.gr:700/epp/proxy.
PHP – remove
tag from string
Jul 5th
<?
$content = “this is something with an <img src=\”test.png\”/> in it.”;
$content = preg_replace(“/<img[^>]+\>/i”, “(image) “, $content);
echo $content;
?>
The result is:
this is something with an (image) in it.
Web UI libraries
Jun 29th
1. IT Mill Toolkit
IT Mill Toolkit is an open-source framework, providing widgets and tools for the development of Rich Internet Applications (RIAs). Deliver web applications without worrying about incompatibilities of web browsers, DOM or JavaScript by using standard Java tools.
2. LivePipe UI
LivePipe UI is a suite of high quality widgets and controls for web 2.0 applications built using the Prototype JavaScript Framework. Each control is well tested, highly extensible, fully documented and degrades gracefully for non JavaScript enabled browsers where possible
3. Iwebkit iPhone/iPod touch framework
Iwebkit is the revolutionnairy kit used to create high quality iPhone and iPod touch websites in a few minutes. In the first 4 months of it’s existance the pack has greatly evolved from a basic idea to a project that has reached worldwide fame!
4. Jitsu
Jitsu contains an integrated set of tools to enable developers to build and deploy sophisticated user interfaces for web applications. These include an Xml markup language, page compiler, data binding engine, JavaScript runtime, control library, runtime inspector, animation engine, cross-platform library, Ajax, and back button support.
5. MochaUI
MochaUI is a web applications user interface library built on the Mootools JavaScript framework.Uses: web applications, web desktops, web sites, widgets, standalone windows and modal dialogs.
6. Echo Web Framework
Echo is an open-source framework for developing rich web applications. From the developer’s perspective, Echo behaves as a user interface toolkit–like Swing or Eclipse SWT. AJAX technology is employed to deliver a user experience to web clients that approaches that of desktop-based applications.
7. The Yahoo! User Interface Library (YUI)
The YUI Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. YUI is available under a BSD license and is free for all uses.
8. Sigma Ajax UI builder
Written in javascript and PHP, SigmaVisual is web based visual AJAX UI builder for professional developers. Developers save their time in building up prototype as well as real web applications. TreeBar, TreeGrid, Layout, Menu are supported.
9. WUI Web UI Framework
WUI (Web User Interface) is an MVC framework for writing web UIs in a single language: Java. Write web apps with components, widgets & events, not JSPs. Runs in any servlet 2.3 container. Similar to Model 2 / Struts, only better. Apache-style license.
10. Butterfly Web UI
Butterfly Web UI is a component oriented web framework for Java, like Wicket or Tapestry. The main advantage compared to these frameworks is that Butterfly Web UI integrates naturally with Butterfly DI Container, giving you a state-of-the-art dependency injection container to help you structure and decouple the internal components of your web applications.
11 Yahoo YUI library
The YUI Library is a set of utilities and controls, written with JavaScript and CSS, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. YUI is available under a BSD license and is free for all uses.


