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 ...

Bootstrap Bootgrid with PHP json server side script 37

Bootstrap Bootgrid with PHP json server side script
I recently came across Jquery Bootgrid, which is Twitter Bootstrap (aka bootstrap)  friendly table grid, that is very similar in function to Datatables.While not as feature rich as datatables (yet), it provides a very tiny 4Kb (minified and gzipped) footprint and allows you to leverage all the typography and layout control elements that are present in bootstrap. ...

Using server-side PHP Datatables (grid) with SQLite / MySQL PDO 44

Using server-side PHP  Datatables (grid) with SQLite / MySQL  PDO
I have been a fan of using datatables for a while and always wanted to generalize the server side example to be able to use SQLite, MySQL or any other PDO supported database. For the longest time in my projects I have used PHP AdoDB as my Database abstraction layer, mostly because it came with ...

PHP backup monitoring and alert script: prevent backup rot… 3

PHP backup monitoring and alert script: prevent backup rot...
One of the key components with any IT software system is putting together an automated , reliable backup solution. Gone are the days of manually backing up files to a removable media, with our interconnected world we can simply setup some form of cloud back up and go. In a previous post I discussed how ...

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 ...

Palindrome algorithms: What’s fastest reverse vs. compare. 1

Palindrome algorithms: What's fastest reverse vs. compare.
Today during a meeting a simple coding question came up as to how to write a palindrome function.  A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.[1]  Examples: mom , level, radar, tenet … There are quite a few programmatic solutions ...

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 ...
Newark , US
3:39 pm
76°F
Broken clouds
High: 79°F
Low: 69°F
Wind: 14 mph