නිවාඩු දවසේ කට්ටිය අලුත් චිත්තරපටියක් නරඹමින් චිත්රපට බැලීම මගේ ප්රධාන විනෝදාංශ වලින් එකක්. ඉස්සරනම් සිනමා ශාලාවට ගිහින් බැලුවත් පස්සේ VHS ප්ලයෙර් එකටත්, ඊට පස්සේ VCD, එයින් පස්සේ DVD එකටත් මාරු වුන හින්දා ගෙදර ඉඳන් නිවාඩු පාඩුවේ චිත්රපට බලන්න පුරුදු වුනා. මම කැමතියි ලස්සන කවරයක් සමග නිවැරදි sub-title තියෙන high-quality චිත්රපට එකතු කරන්න. අදටත් රාක්කයක් පිරෙන්න […]
One of the recent projects required integrating a 3rd party application. The backend was developed using CodeIgniter v3 running on PHP v5+. I emphasized on standards and chose SOAP as the integration technology. Although PHP v5 has native support for SOAP server and client, I wanted to prevent re-inventing the wheel. That’s when I bumped […]
These are the files for the workshop I conducted for PULZ 2015, organized by Ananda College ICT Society, Sri Lanka’s biggest school based ICT convention, on 24th May 2015.
We wanted a LCD to display various settings and generally to impress the crowd 🙂 We ended up using the standard 16×2 LCD display.
Part 3: Motor driver board We used 2 gear motors with rubber wheels. 14 cm Zip/cable ties were used (2 per each motor) to fix the motors to the base plate. It has the following features: The motor driver chip L293D (D=dual direction) was a very easy chip to implement. The enable pin is used […]
Part 3: Optical sensor board After visiting many similar projects and testing loads of designs we settled down to use 3 sensors arranged as a triangle. Our assumptions of deciding the distances were based on: The board is white (formica) The standard 2cm black color electrical tape is used for the lines Testing the prototype […]
Part 2 : Constructing the body We decided the size to be 12cm x 10cm. We needed the space to fix the Arduino board and motor driver, at this point the boys wanted to install a knight rider light system as well – just to add some visual effects. So the space is required to […]
Part 1 : Brainstorm I was looking for an effective way to teach how a CPU work to bunch of AL students. The kids were seriously bored studying the history of computers, NBF form, system flow chart diagrams that still talk about punch card readers, Von Neumann architecture, CPU flags and the various address modes […]
Pagination requires reading a record set twice: Once to read the whole set so that it can count the total number records Then to read a window of records to display Here’s my way of doing it: Using a public class property to store the total records (public $total_records) Using a private function to build […]
One of the common issues with MVC controller is to use the same controller method to show a form and then process it’s content, once we receive POST.