Angular 2 directive to append HTML in directive selector. I was trying creating a star rating directive for angular 5 project. It was really hard search for me to insert HTML in to directive selector. I know an component can easily allows access to append HTML inside the element. But i needed to do this […]

Read More →

How to get recent local time post date from a post stored in UTC date format. moment(this.post.created_at,’YYYY-MM-DD H:m:s’).utc(‘YYYY-MM-DD H:m:s’).local().fromNow() Here is the basic funda you need to follow my current post time stored in this.post.created_at i am converting it into moment using moment.js moment(this.post.created_at,’YYYY-MM-DD H:m:s’) Now we need to get the UTC format of it […]

Read More →

Two months calender code

 

Read More →

Best way to remove index object from the array of object.

     

Read More →

Accessing cloud.google.com bitnami project files from ubuntu Site address http://IPADDRESS/ Admin user: user Admin password (Temporary) : PASSWORD   How to generate a SSH key in your PC ? ssh-keygen (see the path for generating key file enter the key filename “/home/shakalya/.ssh/id_rsa”) dff-ssh-key (if same key file name wanna override?) y (passphrase can be leave empty) (again) cat dff-ssh-key […]

Read More →

If you dont understood difference in between m-d-Y and d-m-Y format. We try to simplify the conversion process while taking a string value from input field, convert this to timestamp and again make this format suitable to mysql insertion which is (Y-m-d H:i:s) While inserting a date of birth 7th March 1990 if we type 07-03-1990. What […]

Read More →

Gmail is stacking different subject emails while my client wants only same subject should be stack. I did a lot of testing and found that subject starting from [text] are ignored. whatever you put inside [ ] will be ignored if you starting a subject with there rackets. But if you put these at the end […]

Read More →

All about htaccess redirects in wordpress   HTTPS to HTTP domain redirect

  Permanent 301 redirect your olddomain to a new  www domain?

Permanent 301 redirect your old domain to new non-www domain?

Redirect all links of a domain except the domain name?

Redirect all links of a domain except the […]

Read More →

This post is about how to Create a most viewed widget for wordpress blog? This can be done in two steps. Create a meta field with each post and store a view count whenever a user see your single bog post. Create a widget which get top posts order by your meta field.  STEP 1: Create […]

Read More →