1. Login to your CPanel Account.
2. Find the Database you want to backup.
3. Get the Database MySQL Username and Password

Below are showing example Android click Ripple effect with CSS3 and Jquery.
Below was 2 example:
Example 1
Example 2

I am try gather some statistics from a database and it need group by week numbers. and the results return unexpected.
SELECT create_date, WEEK(create_date) as week FROM `ttable`
+---------------------+-------------+
| craete_date | week |
+---------------------+-------------+
| 2018-01-02 00:00:00 | 0 |
| 2018-04-10 00:00:00 | 14 |
| 2018-03-13 00:00:00 | 10 |
| 2018-03-30 00:00:00 | 12 |
+---------------------+-------------+
From the above you will found that the week number was wrong. and MySQL counts the first days of the year that do not belong week 1 as week 0.
This is because MySQL default week() function caused the issue. because in MySQL the first day of week is Sunday and it range was 0 to 53 weeks. And you need change the MySQL mode with the below table.
Posted by
chevrons in
MySQL

To use config.xml version number on APP. you need install
APP VERSION with npm.
To display the version number on APP.
this.platform.ready().then(() => {
this.appVersion.getVersionNumber().then((value) => {
var value = value.replace(/"/g, '');
this.version = 'v'+value;
})
});
and then put {{version}} where you want to display in html page.
and the output will be like this
v1.0.1

In IONIC 3 LoadingController you can set the content or text in starting. But if the loading is for getting information from many place and you want to display how many percent was completed or the process until which step.
this.loading = this.loadingCtrl.create({content: 'Please wait...'});

Sometimes we need using javascript to display money format in our system but javascript don’t have this kind of function. So we need to write a function to convert number to money format.

Just develop a project with IONIC and google map to tracking the transport routing. Because the google map wouldn’t rotate itself when the transport moving. It will confuse the user when they look at the map.
So I need to rotate the map to let navigation always facing to top. It will easy user to understand when they look at the map.
On phpexcel you are allow to set “setWrapText(true)” property. but on Yii2 plugin moonlandsoft phpexcel it don’t have this property.
To set this property. you need to add extra code on the plugin.
Open
Excel.php file. and then scroll to line 387 add the code below.
if (isset($column['wraptext']) && $column['wraptext'] == true) {
$activeSheet->getStyle($col.$row)->getAlignment()->setWrapText(true);
}

Normally using Jquery or Javascript to set focus on input box it will point to beginning of the text box. But if you want it point to last character in input text box. you may need write a Jquery class to do.
Below is the Jquery function:
(function($){
$.fn.focusTextToEnd = function(){
this.focus();
var $thisVal = this.val();
this.val('').val($thisVal);
return this;
}
}(jQuery));
You may easy to use the function like below
$("#input").focusTextToEnd();

I am trying to write a cron task to call wget on a url. The cron runs fine, but every time it runs it will creates a cron.php.X file in my home directory. I’ve tried to turn off output using the –quiet option but it’s still outputting a new file with every running.
Posted by
chevrons in
Linux