Oct 20, 2013

Samsung SL i9003: from any custom ROM to Stock ROM 2.3.6

Step 1: Download any of the full package files of the Gingerbread from xdaDevelopers

Step 2: Refer to this video and see how do you place each of the downloaded file in Odin.

Step 3: Download the latest firmware from Samsung and flash it in the easy way by referring to xdaDevelopers

Sep 10, 2013

Bootstrap: Automatically add asterisk symbol to detected 'required' form input field

$('input').each(function(){
   if($(this).is('[required=required]')){
    if ($(this).is('[noAsterisk]')){
    return null;
   } else {
       $(this).closest(".YourClassName").children("label").append('<font style="color:red;position:absolute;" > *</font>');
   }
   }
});

* javascript above require jQuery
with the code:
if ($(this).is('[noAsterisk]')){
     return null;
}
allow you to add exception with 'noAsterisk', where you don't require asterisk as there had 'required' html tag appended.

Sep 3, 2013

CakePHP: email validation without using model


App::uses('Validation', 'Utility');
class YourClass extends AppController{

public function email($emailInput){
$validEmail = Validation::email($emailInput);
  if(!$validEmail) {
return "error";
}
}

}



Reference Source: http://stackoverflow.com/a/8140790/1834908

Jul 7, 2013

Check existing user and group in linux for beginner

I've been checking through the internet to find out a simple command to find out I have what group in my Linux, Fedora:
getent group
so it'll display all the available group with user in return.

to simple return current user's group, simply use:
groups or groups <username>
to display a user's group.

User link to refer: 

May 9, 2013

Passphrase problem on the Andoird Google Chrome browser

Recently I found a Chrome browser problem in my android device and I found no solution on the internet, and so I writing one for those who need this troubleshooting.

You might need frequent syncing between your computer's Google Chrome browser and your android device, so you can bring all the "bookmarks" with you all the way you go.

But once you uninstall or get your device updated, and you're required to sign-in to your Chrome for the greatly designed syncing service, for some user who use customized passphrase may not be able to sign into the account easily.

Here's the solution for the problem:
1. At your computer's Google Chrome browser, if you've signed in beforehand,
you can found "Signed in as YOUR_OWN_EMAIL" in your option menu.
Click at the "Signed in as YOUR_OWN_EMAIL"

2. At this time you have to reset your syncing. You can do this by clicking at the "Advanced Sync Setting"
If your radio button have "All data was encrypted with your passphrase on _DATE_", Cancel the pop-up window and click at the "Google Dashboard" link right above the button you clicked just now.

3. Once you reached "Chrome Sync" page, scroll to the bottom-most of the window, click "Stop and Clear" button

4. Once done, go back to your computer's Google Chrome browser option menu again. For this time, you'll see you've been signed out from your Google Chrome browser. Next, sign back in again. After then, click at your "Signed in as YOUR_OWN_EMAIL" again to go back to the "Advanced Sync Setting"

5. Select the second radio box "All data was encrypted with your passphrase". This is the place you decide your custom passphrase.

6. Once you've entered your own passphrase. Sign out google account from your device's Chrome browser, and sign in again so your sync passphrase would be verified correctly with your newly created passphrase in your device's Chrome browser.