11 Nov 2015 @ 10:21 PM 

This article explains what most beginners of PHP are wondering:
http://www.robert-gonzalez.com/2009/03/04/php-operators-double-and-single-arrow/

<?php
$obj = new MyObject();
$obj->thisProperty = 'Fred';
$obj->getProperty();
?>
<?php
$myArray = array(
'Robert' => 'Big',
'Bobby' => 'Smart',
'PHP' => 'Rocks'
);
?>
<?php
MyClass::$staticProperty = 'Fred';
MyClass::getStaticProperty();
?>
Posted By: Aeric
Last Edit: 11 Nov 2015 @ 10:30 PM

EmailPermalinkComments (0)
Tags
Categories: Cyberticles, Cyblog, Links, Projects

 08 Nov 2015 @ 12:09 AM 

laravel5

I decided to give laravel a go. I am not expert in php development but I hope this php framework can help me learn how to build a php website in a rapid way.

First, I was trying to use Vagrant or Homestead in windows as suggested but end up I gave up due to big file download and failed at the end.

Then I found Laragon. It is a very good software for windows. I was able to install it easily in Windows 10 and follow a few chapters in tutorial.

A few days ago, my iPro Livepad volume rocker has problem so I decided to use my old Asus laptop as my development machine. I re-formatted the Ubuntu 9.10 to 14.04 and try to install all the requirements to get laravel 5.1 to work.

Learning laravel 5 is not an easy journey for VB programmer like me who spend most of time with windows platform. I have little knowledge in ubuntu and document structure in linux environment.

I found some challenges in running laravel in linux system. First I need to understand how to use sudo command and deal with file permission. However, typing these commands in terminal is not a problem for me. Then I found not much tutorial on setting up laravel in ubuntu lamp. Instead, I found it is quite strange that there are more tutorials using vagrant, wamp or xamp.

Then I found tutorial that lead me to install ‘laravelnew’ in /var/www/html/laravelnew. I tried to change the web browser URL to http://localhost/laravelnew but this is not working. The correct laravel welcome page is accessible by browsing http://localhost/laravelnew/public. I search through the internet and found many people like me struggle to get it work by changing the .htaccess file, server.php, /etc/apache2/apache2.conf file and setting up virtual host in order to remove the public folder from the path. I searched for whole day but I can’t find a good solution. The basic routing is not working with the steps mentioned.

Then I try to follow steps in this page to reinstall laravel. What I learned in this page is to install laravel in /var/www/laravel instead of /var/www/html/laravel. The URL is now accessible without the public path and basic routing is working.

I hope a beginner like me found this blog and help him getting away from this frustration.

Installing laravel 5: http://blog.luutaa.com/cloud/setting-up-laravel-5-on-digital-ocean-ubuntu-on-apache/

Recommended tutorial: http://www.tutorials.kode-blog.com/laravel-hello-world

Posted By: Aeric
Last Edit: 08 Nov 2015 @ 12:42 AM

EmailPermalinkComments (0)
Tags

 11 Aug 2015 @ 10:52 PM 

If you have searched through the Internet, you may find that it is not easy to find source code for MyKad Reader System. There are a lot of Smart Card Reader device in the market such as Castle EZ100 PU, Secure Metric Rockey 200, IRIS SCR20 or SCR30. The SDKs provided by the manufacturers are written in C++ or .NET where you may find difficulty if you wish to write a system such as Visitor Management System using Visual Basic 6.0. The best SDK I found for VB6 is provided by Secure Metric. I found it is easy to use even though the performance is not so good. I have been using it to develop my system for many years. You can take a look at my free try program.

Recently I have tried to develop for Castle EZ100PU. I have searched for a few weeks for a compatible SDK or API on the Internet and even contacted the manufacturer to obtain the SDK but no success. Finally I decided to port the source code from available open source to VB6. With weeks time of research and try-and-error experiments, I finally successful created the library that support this device (and probably any PC/SC compatible smart card reader). The result surprises me as the performance are much better than the API created by C++ and .NET.

* More story coming soon

MyKadVB6

Posted By: Aeric
Last Edit: 11 Aug 2015 @ 10:52 PM

EmailPermalinkComments (0)
Tags
Categories: News





 Last 50 Posts
 Back
Change Theme...
  • Users » 3
  • Posts/Pages » 129
  • Comments » 195
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight