Lazarus – Discover Windows, Mac & Linux cross platform Development IDE 5

Lazarus - Discover Windows, Mac & Linux cross platform Development IDE
If you’re a developer of a certain age (say north of 35) you will likely have worked with or heard of Visual Basic and to a lesser known extent Delphi IDE (Integrated Development Environment) development platforms. These development IDE’s, were very popular in the mid to late 90’s and ushered in an era or rapid Windows applications ...

genetic algorithms in PHP code example of (evolutionary programming ) 20

genetic algorithms  in PHP code example of (evolutionary programming )
This posting and php code sample is about fascinating topic of  Genetic Algorithms (GA) which simulate evolution using computer code to help find  near-optimal solutions when dealing with problems that  involve multiple disparate requirements. I recently began playing with Genetic algorithms (Genetic algorithms  GA, for short) which  are  part of a class of evolutionary algorithms (EA) that make up ...

Shell script code: show oldest | newest file in folder and file age 2

Shell script code: show oldest | newest file in folder and file age
Determining Oldest file and file age Today I had to write a short shell script to help figure out the oldest file in a particular folder, how old that file was (in secs or minutes). This is a pretty common requirement when dealing with file(s) folders  such as working directories, where you periodically need to ...

Websockets : PHP code complete tutorial client & server 46

Websockets : PHP code complete tutorial client & server
Step-by-step to build a simple HTML5 using a PHP server for true server-push websocket communications I’m going to demo how you can create a simple and easy echo server, and communicate bidirectionally with various web clients.  The ability for the server to send (or “push“) communications to the client (browser) at any moment provides a ...

HTTP long poll example in php ajax 4

[icon name=”paper-plane” class=”” unprefixed_class=””] UPDATED: A better and easier way to do this is via Server Sent Events, Check out my recent post. Simple and easy PHP example of how to integrate long-polling (“hanging GET”) to simulate server PUSH and add more dynamic content to your web pages. As a standard HTTP is terrific protocol ...

Code Sample: PHP Javascript Currency converter + exchange rates caching RSS feed 28

Code Sample: PHP Javascript Currency converter + exchange rates caching RSS feed
Problem: For a recent project I needed to get the latest exchange rates to allow the sales folks to quickly calculate costs  while doing estimates in different currencies. There are many sites online where you can do this, but we wanted to create an in-app widget that could be re-used on various internal  pages. The ...

Code Sample: PHP Backup MySQL and files to Dropbox 17

Code Sample: PHP Backup MySQL and files to Dropbox
Most web hosts have the ability via their control panel to offer an entire site backup , and this is the minimal functionality you  should consider. Generally there’s a site backup link within the control panel that create a tar ball (.zip file)  of the entire site and its contents. then you can email,or simply download ...

Twitter like alerts via simple Jquery and PHP 3

Twitter like alerts via simple Jquery and PHP
One of the minor challenges of creating a web application , is to indicate that something was successfully or unsuccessfully  completed when transitioning to a new page or screen. I find it’s very important and reassuring to let user’s know what has happened , whether it worked or whether there was a problem. Typically a simple status message would ...