PH: Message to the World!

Madness, Personal Comments Off on PH: Message to the World!

In Photos: American activists rally against Duterte in New York

A letter to my friends and family in the US and elsewhere:

Thank you for the concern, but you’re being misled. (Now, I really want to know who that Filipina is in this group. She looks like the odd person out in a sea of kids. Was she the organizer? Very interesting.)

If the President is forcibly removed, please know that you will be doing our country more harm than good. Not only will you leave us a fragmented country, you will also leave us at the mercy of drug cartels which have run this country, and which are so powerful that they have on their payroll judges, politicians, and as investigations are being done now, allegedly the ex-Secretary of the Department of Justice (now Senator) herself.

There is also a chance that Mindanao, the second largest archipelago, will secede, and all peace negotiations that have been started between the government and the Communists in our country (the longest insurgency ever), will be halted. There will be little pockets of rebellion, and you will be fomenting resentment for the US among our previously US-loving citizens. We’ve been staunchly pro US all these years. If you meddle, not a few Filipinos will suddenly find themselves sympathizing, justified or not, with the countries the US has invaded to “save”; to question the wisdom of forcing a foreigner’s ethnocentric view on a sovereign state.

You don’t understand the depth of desperation until you’ve lived here. The things you hear in the news do not even scratch the surface.

We are angry, desperate, and frustrated, and we hope you can see that.

It will be back to Third World, most-corrupt-country-ever status for us. Forget about visiting this country too. Right now, there are improvements being done in our airports, only a few years ago considered the World’s Worst.

You dont want terrorists? Please leave our country alone. Drug money fuels terrorism, and we haven’t had a President who could talk to the militants and the rebels like this one could. Some parts of Mindanao have become training ground for future ISIS rebels. To stop this President’s war against drug lords and terrorists is to sign your agreement that more powerful terrorist organizations can come to poor, disorganized, US-hating Philippines to harvest more willing bodies.

You don’t know the scope. No news article has ever summed it up so you could understand the depth and breadth of the Philippines’ problems.

Please don’t let yourselves be used by those who want to wrestle power away from the President of our country, the only man with cojones big enough to take on not just the
ruling elite of the Philippines but also international drug cartels.

The TL/DR version of why you’re being manipulated is this:

Rodrigo Roa Duterte was a mayor of Davao City for 20 years. He was forced to run for President by the Filipino people because the choices were dismal. Apart from an alleged corrupt vice president and a newbie senator, he ran against the anointed one named Mar Roxas, who was the previous administration’s bet. While the previous administration has its fans, the overwhelming support for Duterte–91 percent–means most people are crying for change.

You remember his predecessor? Benigno Aquino III was the President when Typhoon Haiyan happened. Do you remember asking where your donations went? Do you remember hostages from Hong Kong dying in that bus because of bungled operations? Or the news of our country’s Special Action Forces dying in battle due to botched, ill-organized operations?
That’s not even half of it. If you don’t know that, I’m sure you know how notorious Manila traffic is. The chief who handled that told us Filipinos not to worry because traffic isn’t fatal anyway. (A Japanese firm did say that while we aren’t dying, our economy is, as we lose about 3 billion dollars EVERY DAY in the gridlock.)

You understand why people did not want Mar Roxas, who by the way, as the interior secretary, was “on top” of the failed Haiyan relief operations.

When Duterte came into power, he sought to dismantle the organized crime and corruption that have been the most prominent features of this country. The Philippines is run on patronage politics, and because Duterte was not an insider–he was just a mayor of a far away city, after all–he stepped on as many toes as liberally and with as much impunity, shocking for toes that have never been stepped on. He went after the most untouchable of our leaders: generals, priests, mayors, cabinet secretaries. He also has a dirty mouth–but if you made us Filipinos choose between his dirty mouth, and his rivals’ dirty hands, we’d let out a string of curses.

And this is why you hear so much bad press about Duterte. Who was it that said, history is written by the victor? In our case, our story is being written by those who have the access and the resources to alter the truth. WHO STANDS TO GAIN MOST FROM DUTERTE BEING IMPEACHED?
91 percent of us can only hope to reach you this way.

This guy is 71 years old. He has nothing to lose (except his life, which apparently does not bother him) and everything to gain. He is fighting for the legacy, the bragging rights to say, “I cleaned up the Philippines.”

What you see in the news, the killings on the streets, is not the handiwork of the government alone. As the President often says, what we’re dealing with is not a crisis, but a war. And there will be blood. There is blood not just because of legal police apprehensions, but because the drug cartels are cleaning up after their own.

Our policemen are not provided their own bullets–do you think at a salary of 300-400 usd a month, they can afford to go on a killing rampage? Someone is bankrolling it, and it’s not the government.

I agree that the President needs to make a tougher stand on the killings–he did condemn them but apparently not emphatically enough–and I agree that he needs to be harsher, but if those were his only shortcomings, to call for his impeachment, when he has done so much for the ordinary Filipino, is taking it too far.

Here’s something to think about:

While we are a poor country, Filipinos are known to be a strong, united people. We are not ignorant, we are not stupid, we are highly literate. We have unhampered access to social media, we have scholars and students everywhere. The only times we ever needed saving are the times when our leaders couldnt do it for us, like Haiyan.
Since 1986, when we successfully ousted the dictator Ferdinand Marcos in EDSA 1, the Filipino has believed in his freedom and his capacity to change the government.
Our bloodless revolutions have become iconic. We ousted one more President after: Joseph Estrada, for charges of graft and corruption on EDSA 2. We also sent one President, Gloria Macapagal Arroyo, to “jail.”

EDSA is a symbol of our freedom and our capacity to THINK FOR OURSELVES.

We are highly capable of OUSTING LEADERS we do not want.

So if we wanted to oust Duterte, we would be VERY CAPABLE to do it on our own. And it would be hell of a lot easier too. We would have disgruntled oligarchs on our side, and I am sure the drug cartels would even happily fund those who are corrupt in our military to stage coup d’ etats.

BUT WE DONT. SO MANY OF US DONT! 91 percent of us dont! Because we understand our own internal struggles more than any of you do.

To meddle in our affairs is akin to saying you do not trust us to govern for ourselves, which smacks so hard of colonialism.

Please, thank you for your concern, and for the aid, but allow us to build our nation the way we think best.

There are dissenters,some trolls, but others very brilliant, in our midst. We have oppositions in both Houses, in the Senate and Congress. There is an ongoing Senate hearing on the killings, led quite ironically, by the woman charged of coddling drug protectors herself.


The original plan is to impeach Duterte, but because they could not find the support from the Filipino public–actually the opposition is very much reviled in this country, to put it mildly–the threat is to have Duterte dragged to the International Crimes Court. And you have become unwitting characters in a stage that has been set to make this happen.


When and if we are ready to oust Duterte, you will hear about it. As I’ve said, we can do it on our own.

But until then, please respect, please, please LISTEN to the voices of the majority of the Filipino people.

Thank you!


Krizette Laureta Chu

MD5 File Hash for C# and PHP

Info.Tech, Software Development, Visual C# .Net Comments Off on MD5 File Hash for C# and PHP

I encountered again on how to generate MD5 File Hash in C# and compare generated C# file hash to PHP md5_file() function. This is to make sure the file integrity are maintained on copying files. It took me while to find the function but I know I have created one of my previous projects. And this time, I will post here in my blog for future use. Hehehe!

For C#:

public static string md5_file(string fileName)
    FileStream file = new FileStream(fileName, FileMode.Open);
    MD5 md5 = new MD5CryptoServiceProvider();
    int length = (int)file.Length;  // get file length
    byte[] buffer = new byte[length];      // create buffer
    int count;                      // actual number of bytes read
    int sum = 0;                    // total number of bytes read

    // read until Read method returns 0 (end of the stream has been reached)
    while ((count = file.Read(buffer, sum, length - sum)) > 0)
        sum += count;  // sum is a buffer offset for next reading
    byte[] retVal = md5.ComputeHash(buffer);

    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < retVal.Length; i++)
    return sb.ToString();

For PHP:


echo md5_file($filename_with_fullpath);


Hope this helps…

Thanks to:

Publishing your App to Google Play & Apple Apps Store

Android, iOS, Mobile Development Comments Off on Publishing your App to Google Play & Apple Apps Store

Now, I have completed my app, well tested and working good. So my experience and how I did it.

Google Play

Note: I assume you have subscribe Google Developer Console and paid the necessary payments.

First you need to generate/create your app key or certificate by using java keytool. In windows, you need to add the java bin path on  Windows environments path, see below:


So once you have configure this, go to you App working directory and cast the command:

$ keytool -genkey -v -keystore [APP_NAME].keystore -alias [APP_NAME_ALIAS] -keyalg RSA -keysize 2048 -validity 10000

Now that you have the key, then compile your APK with the key (most commonly called as keystore)… Note: you must be in your App working directory.

$ cordova build android --release -- --keystore="[FULL_PATH_OF_YOUR_KEYSTORE]" --storePassword=[KEYSTORE_PASSWORD] --alias=[APP_NAME_ALIAS]

That’s it, then you need to go to platforms/android/build/outputs/apk/ and look for android-release.apk and upload it on Google Developer Console. Easy enough!


Apple App Store

To be honest, apple is more daunting process. Ok, here it comes.

First of all, you need to complete the following in Apple Developers:

  1. Register to Apple Developers at
  2. Purchase Apple Developer Program for NZD 150.00
  3. Assign or invite admin and developers in your account (developers profile)
  4. Create iOS certificates for iOS Development and iOS Distribution
  5. Then create identifiers (App ID)
  6. After creating the developers profile, certificates and identifiers you may now export this to bind it to your app.
  7. In Xcode, go to Preferences then select Accounts and select your apple ID
  8. At the bottom of the dialog, click the cog icon and click Export Developer Accounts then save this file as .developerprofile  at platforms/ios/ folder of your app project

Note: You cannot test your app to real device without the above mentioned.

So if you have it all setup, you can now test run your app to your real device for testing and then publish it.

To test it on real device, plugin your iPhone/iPad to you iMac or Mac machine then on Xcode you should see your device.

Screen Shot 2016-07-13 at 1.11.37 PM copy

Just select the device and click Play button to test your app to your real device. Easy!

Now let’s proceed on publishing the app, we have two steps here. Create the app profile in Apple iTunes Connect and compile/build the app…

Apple iTunes Connect

  1. login to using your developer’s apple ID
  2. go to My Apps
  3. create new AppScreen Shot 2016-07-13 at 1.49.59 PM
  4. just tick iOS and fill up the form. In SKU field, you can fill up anything, something unique. It would be good name like if you app name is TestApp and the version is 1.0.0 then you can put SKU field as TestApp1.0.0
  5. Then click Create and will bring you to more fields to fill up. Just complete the mandatory fields.

Compile/Build the App

  1. In your app working directory, cast the command cordova build ios
  2. Open Xcode, open your App project then go to Product and select Clean
  3. Make sure you have select an iOS device in the build dropdown
  4. Then go to Product and select Archive
  5. After archiving, a dialog will popup Screen Shot 2016-07-13 at 1.29.31 PM
  6. You can click “Upload to App Store” to upload your app
  7. Click export then select the appropriate option for you appScreen Shot 2016-07-13 at 1.30.02 PM
  8. Just follow the steps and it will do it for you
  9. Once done, go to then click the App you want to publish then select the app that you just uploaded via Xcode Archive.

Important Reminders:

  1. All App Bundle ID should be the SAME on the following:
    • Xcode > Project Property > General > Bundle Identifier
    • Apple Developers > Identifiers > App ID entry
    • Apple iTunes Connect > My Apps > App entry
  2. Make sure the app bundle identifier is unique
  3. Every release, don’t forget to update your build and version

I think that’s it! Good luck…


Conclusion: I found Android as the easier way to publish app. Less hassle, not so strict and really simple.

Apache Cordova: Hybrid Mobile App

Android, iOS, Mobile Development Comments Off on Apache Cordova: Hybrid Mobile App

I was very interested learning mobile app development since 2013 but I never got a chance to learn it. When I was working at QCIT last 2013, I tried Android Native but wasn’t successful creating an app. On 2015, I attempted another study on mobile app and I did create my first android app but it was just a webview ( hahhahaa..

For those years, I never get a chance to focus learning mobile app development because my company was demanding most of my time. But this year, my company is starting to embrace mobile apps for our main system. So I volunteer to develop the app and my workmate suggested to use Apache Cordova to support multi-platform. Since I know HTML + CSS + JavaScript, then it would be my advantage.

So here are my experiences on learning Cordova and would like to share to the world who might experience the same issues that I have. Alright, let’s get started.

My objective is creating an app for android and iOS. If you are a windows or linux user, in compiling iOS app, you need a Mac to do this. But if you’re a Mac user, then you’re an awesome guy.

so first, you need to install “npm” & “nodejs” or you can follow the steps at

Once, done installing the basic stuff, all you need to do is create a project (click here). Assuming you have read the link, you must have created the project and added the platforms (android & iOS).

Then you can start coding using HTML + JavaScript. It would be easier if you use CSS frameworks. I did tried few frameworks such as:

So far Bootstrap works perfectly for my project. I tried Framework7 but it doesn’t work well. I like the design/layout but too many issues. I tried jQuery Mobile, but it didn’t play well too. Bootstrap stand among other CSS frameworks, very simple, lite and compatible on most devices/OS.

Warning: don’t use alert() function in javascript as some devices does not support this and your app will crash.

So assuming you’re done with your app, then you need to build it. First, I will talk about android. When I was developing my app, I was actually using Windows 7. So my AVD settings is (see image below):

Screen Shot 2016-07-09 at 11.30.57 PM copy






But on my Mac AVD is different, looks like this:

Screen Shot 2016-07-09 at 11.33.20 PM copy










So once you have done creating the AVD, you can run your app. But first, start your AVD first then build & run your app. Note on windows user, you need set your Java and Android path or else you will get an error. So for linux and mac, all good to go. So all you need to cast is:

$ cordova emulate android

Then you will see your app in the emulated android.

So for the iOS side of it which took me while to figure it out the issues I encountered.

First, you need XCODE in your mac or cast a command in CLI “xcode-select –install”.

Once you have XCODE installed, go to you project working directory and cast the following command:

$ sudo npm install -g ios-sim ios-deploy --unsafe-perm=true

Note for possible errors you will encounter:

  1. if you will not include the –unsafe-perm=true argument, you will get permission error and so on.
  2. Make sure all your iOS app icons are properly sized and follow Cordova icon guideline (click here). Fail to do so, will give you error about AppIcon content error…
  3. Make sure your iOS app icons are 72dpi (web standard). Fail to do so, will give you error about AppIcon content error…

If you mess up something, just cast the command:

$ cordova platform remove ios
$ cordova platform add ios

Just add and remove for some other issues and it would be fine.

So if you succeed the command “sudo npm install -g ios-sim ios-deploy –unsafe-perm=true” then you will see something like:








Then you will need to run your Xcod, go to File > Open Project and go to your app working directory then go to platforms/ios directories and look for *.xcodeproj then click open. Select what device you want to emulate, in my case I selected iPhone 6 and run my app. Result are shown below:





















That’s it… easy? 🙂 You’ll get it.. it’s not that bad…

Bash: File Server Hourly Backup Script

Administration, Info.Tech, Linux System Administration Comments Off on Bash: File Server Hourly Backup Script

Been creating bash backup scripts but every time I create for the new server, I forgot the commands and research again. This time, I’m gonna save it in my blog so that I will search it in one place. Hehehe…


cd /backup/

DATE=$(date "+%Y%m%d%H%M%S")


# find -mtime -1 | xargs cp -t --parents "$BACKUPNAME/"

find /jdrive/ -mmin -60 -exec cp --parents '{}' "$BACKUPNAME/" \;

tar -zcvf "ibackup/$BACKUPNAME.tar.gz" "$BACKUPNAME/"

rm -rf "$BACKUPNAME/"

# file and delete all files smaller than the specified filesize
find /backup/ibackup/ -name "*.gz" -size -500 -delete

# file and delete all files that are older than 45 days
find /backup/ibackup/ -mtime +45 -type f -exec rm -rf {} \;

Here you go… My home-brewed incremental backup script. We usually use duplicity but it failed us twice. So, we are using now both my home-brewed script and duplicity. Oh! by the way,  I used this script for our file server only.

POLi Payment Gateway: Why you shouldn’t use this option…

Info.Tech, Security Concerns, Web Development 2 Comments »







The first time I saw POLi payments was in Qantas Airlines New Zealand. The moment I saw asking for my Bank Credentials, I click back button ripoli_3ght away.

Why? Because POLi is asking your Access Code/Username and Password of your bank, your BANK CREDENTIALS! Imagine your hosts file has been altered by malware or any virus or your network has been hacked or exploited or your ISP has been hacked or whatever above your internet line has been altered pointing POLi payment gateway’s DNS to different server, you will be giving your bank access to the hackers. And POLi is a direct access to your bank account (your entire assets in your bank) and initiate the transaction right away. Unlike credit cards, if your card has been expospoli_2ed, then the risk is JUST your card, not your whole account in the bank then you still have time to call the bank the close it right away.

So my advise never use POLi payments. I’m not against the company or the people who created it but I am just against how the implementation or how it works.

OCZ SSD is the worst SSD!

Computer Hardware, Info.Tech Comments Off on OCZ SSD is the worst SSD!

ocz_ssdOK, let me share this to the world how bad this OCZ SSD.

Bought 3 OCZ SSD months ago. First SSD is where my OS installed, Windows 7 Professional. 2nd SSD is my MySQL Database, 3rd SSD is my Development Source Codes.

OS SSD crashed first after 6 months and undetectable. Then the vendor replaced the SSD with Samsung and works fine until now. Next is the DB SSD crashed after 9 months. Dev SSD crashed after 12 months.

How can you rely on these OCZ SSDs? I lost tons of files because of these SSDs. If you want SSD, buy Intel SSD or Samsung SSD and they are the reliable brands. Never again be fooled with those other SSDs. Too much promising yet they are all crap!


iMac Reset Password or Factory Reset without losing the data

Apple Stuff, iMac Troubleshooting Comments Off on iMac Reset Password or Factory Reset without losing the data

Restart your computer and press COMMAND + S then this will enter to terminal mode.

First you need to mount the “root” path before you can modify the disk.

:/ root# mount -uw /

Now after mounting the root path, you have two option here, factory reset or reset password of a user so you can access the files.

Factory Reset

In factory reset, all you need is to delete the file /var/db/.applesetupdone then OS X will detect that the system has run the first time (but the data are all intact).

rm /var/db/.applesetupdone

User Reset Password

In user reset password, this is what you will do:

  1. go to /Users directory then list the files and folders
  2. whoever you want to reset the password, just type passwd <username>
  3. then this will ask you for the new password and confirm new password
  4. that’s it
:/ root# cd /Users
:/ root# ls -lsa
:/ root# password user1
Enter New Password: 
Confirm Password:

:/ root# reboot

then type exit or reboot or restart the machine.

then you all good to go…

iMac Intel Diagnostic LED’s

Apple Stuff, iMac Troubleshooting Comments Off on iMac Intel Diagnostic LED’s

To observe the LED’s you need to apply power to the iMac with the front bezel off. Please ensure you don’t touch any part of the iMac or the exposed circuit boards while you have power connected.

Locate the Diagnostic LED’s between the RAM slots and the SATA connector.

The LED’s are numbered 1-4 from left to right. You may need to move the SATA cable to get a clear view of the LED’s.

If you are using this guide for iMac Intel 20″ EMC 2210 and 2133 the LED’s are located above the SATA connector and not as visible.

  • LED 1 – Indicates that the trickle voltage from the power supply is detected by the main logic board. This LED will remain ON while the iMac is connected to the AC power. The LED will remain on even when the computer has been shut down or put to sleep. The LED will turn off only if the AC power is disconnected or the power supply is faulty.
  • LED 2 – Indicates that the main logic board has detected proper power from the power supply when the computer is turned on. This LED will be ON when the computer is turned on and the power supply is working correctly.
  • LED 3 – Indicates that the computer and the video card are communicating. This LED will be ON when the computer is communicating properly with the video card. If LEDs 1 and 2 are ON and you heard the startup sound, but LED 3 is OFF, then the video card might be installed incorrectly or need replacement.
  • LED 4 – Indicates that the computer and the LCD display panel are communicating. This LED will be ON when the computer is turned on and video signal is being generated. If the LED is ON and there is no image on the LCD display panel, the LCD display panel or inverter might be installed incorrectly or need replacement.


Facebook Messenger Desktop

Info.Tech, Software Development, Visual C# .Net Comments Off on Facebook Messenger Desktop

Just for fun I made a Facebook Messenger Desktop version. This can be used if you don’t want to use the browser and would be ideal when you’re at work. 🙂

The application can minimize at the taskbar notification area which will be hidden away from your other opened applications.

Disclaimer: This is not the official facebook messanger desktop version but this is just framing facebook web-based messenger.


WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in