-
Archives
- May 2026
- April 2026
- November 2025
- December 2024
- November 2024
- June 2024
- September 2023
- March 2023
- August 2022
- April 2022
- September 2021
- September 2020
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Category Archives: Web Development
Laravel Sail: a developer’s cheat sheet 🐳
Laravel ships with Sail — a thin command-line wrapper around docker compose that gives you the whole Laravel toolchain (PHP, MySQL, Redis, Mailpit, Node) in containers, without you needing to install any of them on your host. The only thing … Continue reading
Posted in Web Development
Tagged docker, laravel, php, sail
Comments Off on Laravel Sail: a developer’s cheat sheet 🐳
Why Ember.js Still Makes Sense for Big Teams Building Big Apps
In a JavaScript world dominated by React’s flexibility and Vue’s friendliness, Ember.js can feel like the quiet older sibling who keeps showing up to work in a suit. It’s opinionated, batteries-included, and unapologetically convention-driven. Which is exactly why some of … Continue reading
Posted in javascript
Tagged ember, frontend, microservices
Comments Off on Why Ember.js Still Makes Sense for Big Teams Building Big Apps
Enabling SSH (https) for Apache 2 in Ubuntu/Mint/Possibly other Debian distro
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# Intall apache $ sudo apt-get install apache2 # Enable SSL module $ sudo a2enmod ssl # Restart Apache $ sudo service apache2 restart # Create a directory to store the SSLCertificateFile and SSLCertificateKeyFile $ mkdir /etc/apache2/ssl # Generate … Continue reading
Posted in Linux, Ubuntu, Web Development
Comments Off on Enabling SSH (https) for Apache 2 in Ubuntu/Mint/Possibly other Debian distro
PHP and CURL
1234567891011121314151617181920212223242526function browse($url, $postData = null) { $fields = ”; if(is_array($postData) && sizeof($postData) >= 1){ $fields = http_build_query($postData); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); … Continue reading
Posted in PHP, Web Development
Comments Off on PHP and CURL
Memcache test connection script
12345678910111213<?php error_reporting(E_ALL); $memcache = new Memcache; // Connect to memcached server $memcache->connect(’127.0.0.1′, 11211) or die ("Could not connect"); // Add it to memcached server // The parameters are: KEY, VALUE, USE COMPRESSION, EXPIRY IN SECONDS $memcache->set(’MyKey1′, ‘The value of My … Continue reading
Posted in PHP, Web Development
Comments Off on Memcache test connection script
Redis connection test script
1234567891011121314151617181920212223242526<?php require "../predis/autoload.php"; // Update with your location to predis Predis\Autoloader::register(); try { $redis = new Predis\Client(); // Uncomment the following lines and adjust them accordingly if you have a non-default redis configuration /* … Continue reading
Posted in PHP, Web Development
Comments Off on Redis connection test script
Introduction to Logging and Tracing in PHP
If you still tracing variable in php using print_r() or var_dump() then you’ll see them directly in the screen or the web page that you’re working on. This is easy to see, but also prone to problems: What if visitors … Continue reading
Posted in PHP, Web Development
Comments Off on Introduction to Logging and Tracing in PHP
Internet Explorer (IE) friendly table DOM manipulation
Occasionaly we can manipulate HTML DOM easily by accessing the innerHTML of an element. In IE however, the following elements’ innerHTML are read only: COL, COLGROUP, FRAMESET, HEAD, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR. This code will fail … Continue reading
Posted in javascript, Web Development
Comments Off on Internet Explorer (IE) friendly table DOM manipulation
Extjs – Ext.apply
1234567891011121314151617181920console.clear(); var a = { abc : 1, def : 2 }; var b = { abc : 1.1, def : 2.2 }; var c = Ext.apply( a , b ); //Ext.apply … Continue reading
Posted in Ext Js, javascript, Web Development
Comments Off on Extjs – Ext.apply