This project is for 9 year old students to able to program this robot car. It uses mBlock (Scratch-based) with drag-and-drop programming.
We are introducing robotics and programming to 9 year old primary students with extreme budget constraint. With some research, we managed to come up with this solution. I will hereby share the material and idea behind this project.
mBlock 3 is built based on Scratch 2.0. Scratch is a programming tools for kids; it allows kids to program code by dragging and dropping the "blocks". mBlock enhances Scratch to allow it to talk to Arduino.
What I had done was build an extension for mBlock 3 with predefined parameters to allow the kids to instruct the robot car to move or play music.
Detailed instruction is included, click here for detail.
Thursday, April 12, 2018
Workspace Environment Monitor - enVMon
Ever care about the place you may spend one-third of a day? enVMon captures noise level, air quality, UV level, temperature and humidity.
This monitoring station will monitor the Ultra-Violet and sound level, temperature, humidity and air quality (CO2). All the above parameters are the common factors for a safe working environment.
The objective of this project is to place this monitoring station in the working environment and monitor it, compare the data and send notifications when the parameters reach the threshold.
Detail of the project is at here.
Monday, October 31, 2016
Susurri - The Secret Message Service
Tuesday, June 30, 2015
Tool for encode, decode and formatter for common use data
After long 4 years, finally get a technical oriented job again. No more manager but solution architect.
In this post I will share a web tool able to below task
Hereby is the link J.Dencoder
- Hex - Ascii Converter
- Base64 encoder and decoder
- BCD encoder and decoder
- ASN.1 Decoder
- XML Formatter
- JSON Formatter
- CSS Formatter
- SQL Formatter
Hereby is the link J.Dencoder
Wednesday, January 11, 2012
Password-less SSH Authentication Validation
Password-less SSH login is widely use inside a trusted network. System administrator will use this method to remotely execute some task specially in a batch scripting. However, this method sometime may failed in certain circumstances for example host name change, accidentally remove the public key or private key or run the script using different user.
So validation and alerting is very important on Password-less SSH Authentication. Hereby is the script to perform validation, it has been tested on RHEL and CentOS.
So validation and alerting is very important on Password-less SSH Authentication. Hereby is the script to perform validation, it has been tested on RHEL and CentOS.
Wednesday, December 14, 2011
Project Euler and Me
Thanks to Ailin and Adam that introduce me the Project Euler and now I am totally addicted with it. After 8 years not using C as my primary programming language, is time for me to pick it up and do something with C ideology - small footprint with great performance!Below is the question from Project Euler and the code I had written to solve it. Feel free to download them then make it better or give comment and suggestion on the solution. Programmer ROCKS!
Friday, December 9, 2011
FORM validation with jquery.ajax
When <FORM> validation meet the JQUERY.AJAX
Below are the basic <FORM> with validation before the form submitted.
1 <script>
2 function validateform() {
3 $.ajax({
4 type: "POST",
5 url: "/country/checkcountry",
6 data: "code="+countrycode+"&name="+countryname,
7 dataType: 'json',
8 success: function (data, status) {
9 if (data.result != 'OK') {
10 console.log('check ok');
11 return false
12 } else {
13 console.log('check not ok');
14 return true
15 }
16 },
17 error: function (data, status) {
18 console.log('check error')
19 return false
20 }
21 });
22 console.log('should never show');
23
24 return false; //For testing purpose, it should be return true
25 }
26 </script>
27
28 <FORM action="/country/addcountry" method="post" onsubmit="return validateform()">
29 ..........................
30 </FORM>
At the first glance, the java script seem logically fine. Actually, there are TWO major issue in that java script!
Below are the basic <FORM> with validation before the form submitted.
1 <script>
2 function validateform() {
3 $.ajax({
4 type: "POST",
5 url: "/country/checkcountry",
6 data: "code="+countrycode+"&name="+countryname,
7 dataType: 'json',
8 success: function (data, status) {
9 if (data.result != 'OK') {
10 console.log('check ok');
11 return false
12 } else {
13 console.log('check not ok');
14 return true
15 }
16 },
17 error: function (data, status) {
18 console.log('check error')
19 return false
20 }
21 });
22 console.log('should never show');
23
24 return false; //For testing purpose, it should be return true
25 }
26 </script>
27
28 <FORM action="/country/addcountry" method="post" onsubmit="return validateform()">
29 ..........................
30 </FORM>
At the first glance, the java script seem logically fine. Actually, there are TWO major issue in that java script!
Subscribe to:
Posts (Atom)

