Custom file upload for pictures

, ,

No need to add external plugins to show your pics uploaded from file button, this is simple form file upload custom field where you can view picture which you upload from form button.

Add simple html, which contains a container, which will hold an image in our case it is `logoContainer` and 1 default image of your own choice like in example below. One more container which will hode the text info of your file and input which latter you can use for form validation, any in our case that is `fileContainer` , you can change classes by your own ease latter.


<div class="logoContainer">
  <img src="" data-recalc-dims="1">
<div class="fileContainer sprite">
  <span>choose file</span>
  <input type="file"  value="Choose File">


And this is simple custom code for your file input

    $("input:file").change(function (){
		var fileName = $(this).val();
		if(fileName.length >0){
			$(this).parent().children('span').html("Choose file");

	//file input preview
	function readURL(input) {
		if (input.files && input.files[0]) {
				var reader = new FileReader();            
				reader.onload = function (e) {
						$('.logoContainer img').attr('src',;

Here we go 🙂
you can check it on codepen as well, you can make changes and latter you can use it as you want.

See the Pen File upload with image by Imran Khalid (@imonly_ik) on CodePen.

Secure your site with HTTPS

Have you ever been faced this problem, saying your site has been hacked or you just don’t want to face this situation, make your site HTTPS for your site security? It is better to make your site https instead of http which is more risky. There would me time, not so far, all sites with unscure protocol will lose access by google, so before that time comes, come forward and make your site secure and worth visiting by following these things.

As many of us know that, HTTPS (Hypertext Transfer Protocol Secure) is an internet communication protocol that protects the integrity and confidentiality of data between the user’s computer and the site. Users expect a secure and private online experience when using a website. It is encouraged by Google to adopt HTTPS in order to protect your users’ connection to your website, regardless of the content on the site. Data sent using HTTPS is secured via Transport Layer Security protocol (TLS), which provides three key layers of protection:

  1. Encryption—encrypting the exchanged data to keep it secure from eavesdroppers. That means that while the user is browsing a website, nobody can “listen” to their conversations, track their activities across multiple pages, or steal their information.
  2. Data integrity—data cannot be modified or corrupted during transfer, intentionally or otherwise, without being detected.
  3. Authentication—proves that your users communicate with the intended website. It protects against man-in-the-middle attacks and builds user trust, which translates into other business benefits.

Best practices when implementing HTTPS

Use robust security certificates

You must obtain a security certificate as a part of enabling HTTPS for your site. The certificate is issued by a certificate authority (CA), which takes steps to verify that your web address actually belongs to your organization, thus protecting your customers from man-in-the-middle attacks. When setting up your certificate, ensure a high level of security by choosing a 2048-bit key. If you already have a certificate with a weaker key (1024-bit), upgrade it to 2048 bits. When choosing your site certificate, keep in mind the following:

  • Get your certificate from a reliable CA that offers technical support.
  • Decide the kind of certificate you need:
    • Single certificate for single secure origin (e.g.
    • Multi-domain certificate for multiple well-known secure origins (e.g.,,
    • Wildcard certificate for a secure origin with many dynamic subdomains (e.g.,

Use server-side 301 redirects

Redirect your users and search engines to the HTTPS page or resource with server-side 301 HTTP redirects.

Verify that your HTTPS pages can be crawled and indexed by Google

  • Do not block your HTTPS pages by robots.txt files.
  • Do not include meta noindex tags in your HTTPS pages.
  • Use Fetch as Google to test that Googlebot can access your pages.

Support HSTS

We recommend that HTTPS sites support HSTS. HSTS tells the browser to request HTTPS pages automatically, even if the user enters http in the browser location bar. It also tells Google to serve secure URLs in the search results. All this minimizes the risk of serving unsecured content to your users.

To support HSTS, use a web server that supports HTTP Strict Transport Security (HSTS) and enable HSTS.

HSTS adds complexity to your rollback strategy. We recommend enabling HSTS this way:

  1. Roll out your HTTPS pages without HSTS first.
  2. Start sending HSTS headers with a short max-age. Monitor your traffic both from users and other clients, and also dependents’ performance, such as ads.
  3. Slowly increase the HSTS max-age.
  4. If HSTS doesn’t affect your users and search engines negatively, you can, if you wish, ask your site to be added to the Chrome HSTS preload list.

Consider using HSTS preloading

If you enable HSTS, you can optionally support HSTS preloading for extra security. To enable this, you must set the includeSubDomains directive in the HSTS header. Subdomain matching works like this: if the site serves an HSTS header with includeSubdomains, here are the domains it would match:

Site URL:
includeSubDomains = true Match Match No match No match

Avoid these common pitfalls

Throughout the process of making your site secure with TLS, avoid the following mistakes:

Issue Action
Expired certificates Make sure your certificate is always up to date.
Certificate registered to incorrect website name Check that you have registered your certificate to the correct host name. For example, if you register the certficate for and your website is configured to use, you’ll have a certificate name mismatch error.
Missing Server name indication (SNI) support Make sure your web server supports SNI and that your audience uses supported browsers, generally. While SNI is supported by all modern browsers, you’ll need a dedicated IP if you need to support older browsers.
Crawling issues Don’t block your HTTPS site from crawling using robots.txt.
Indexing issues Allow indexing of your pages by search engines where possible. Avoid the noindex meta tag.
Old protocol versions Old protocol versions are vulnerable; make sure you have the latest and newest versions of TLS libraries and implement the newest protocol versions.
Mixed security elements Only embed HTTPS content on HTTPS pages.
Different content on HTTP and HTTPS Make sure the content on your HTTP site and your HTTPS is the same.
HTTP status code errors on HTTPS Check that your website returns the correct HTTP status code. For instance 200 OK for accessible pages, or 404 or 410 for pages that do not exist.

More tips

See the HTTPS migration FAQs for more tips about using HTTPS pages on your site.

Migrating from HTTP to HTTPS

If you migrate your site from HTTP to HTTPS, Google treats this as a site move with a URL change. This can temporarily affect some of your traffic numbers. See the site move overview page to learn more.

Add the HTTPS property to Search Console; Search Console treats HTTP and HTTPS separately; data for these properties is not shared in Search Console. So if you have pages in both protocols, you must have a separate Search Console property for each one.

More information

More details on implementing TLS on your site:



cocktail without ice
Pizza without spice

obligations without pray
complications in a tray

weather is so nice
you have no choice

father without order
limitations with border

fruit without juice
you can’t seduce

farrari in a rush
toothpaste, no brush

no offance in defence
job, but in a distance

life without wife, not so nice
beauty witout good voice.

We and our life cycle( good deeds live forever)


When we come to this world we weep and others laugh, but at the time of departure we sleep and others weep and we become senseless to feel their grief for us……..

In this world, we love, we hate, we do many things, we go up and down and we don’t keep our final destination in mind and finally, final destination welcomes us without our willing…….

This is time, we have relations, we have our kith and kins, we have massive blessings of Creator, we can do everything…..

Going straight, we turn left and right but turning left and right we just feel straight. We have time, and afterward, when we’ll go from this world, we’ll have no time, but that will be the time, time of judgment!!!!

So dear friends, Improve your good habits, improve your relations, may be in hearts of others we live long after we depart this world…….

==>Stay blessed , stay connected <==

Finally, Sunday has gone and Monday is just on…

Finally, Sunday has gone
and Monday is just on…

have to go back to work
again busy network…….

all the day long, no time to chat
sit on the chair and become fat…… 🙁

boss is on your head, work hard!!!
you have to finish your menu card

you will have one break, breakfast!!
work is harder, time is not fast…….

Clock hands are creeping, mind blast!!!
you have files, forget time u have passed.

7 hours duty and it is Monday………..:(
5 days more to next Sunday………….. 🙁

Sunday is Funday!!! Is SUNDAY funday???


Is Sunday, funday……..?
I open my eyes and say!

Let me sleep, let me delay
let me sleep, altleast 2day

is Sunday funday, I say
it is worst than any day

I get up and want to play
I am tagged to betray…..

My bro and sis, like to say
mom, bro is out of the way

Can I use mobile, no way!
bundle of work in my tray

I can’t go outside, they say!
pending works 2 do all day

is Sunday, funday………..
I ask, what do you say???

Myth behind veil, Muslim women use

As everyone knows, Muslim women use Abaya or Veil on their bodies, does everyone knows the myth, why they wear this?

Leaving all controversies behind, take a deep look….

1st Muslim women follow teachings of Islam, Islam says them to cover their whole body with clothes so that others could not recognize them and possibly they would not be hurt by others…….

2nd They are followers of Muhammad (Peace be upon Him), a role model for them and everyone has right to follow anyone so they follow teachings of Islam brought by Muhammad (PBUH)…….

3rd If we buy a candy from the market, we see that is covered with the wrapper, no one would like to buy uncovered candies, fruits are naturally covered with peel and peel is a protector for them, germs can’t pass through these protective shields, so it is a natural thing.

I’ll conclude my post with an example, if I have a candy without wrapper and throw it on the dusty floor, no one will prefer to eat that candy, but if I throw that candy wrapped with wrapper and ask anyone to eat, with little hesitation or dusting wrapper everyone would like to eat……….. this is logic, Muslim women are very important for Muslim men, they want them not be uncovered , that cover protects them from evil eyes……………

==>Stay Connected <==

Truecaller Makes your Life easier

, ,

If you are tired of anonymous calls on your phone, and you have a facility of the internet on your phone!!!
This app is more than wonderful, this app tells you about the caller. You can download it for your android phone Here and for iPhone Here.

This app not only tells you the name of the caller but also you can block or report certain numbers, or if incoming number is already listed as ad or spam, Trucaller will block that number automatically. This app basically makes life easier, when you are more than conscious about the callers, this app is best. Download it and enjoy

In my experience whenever any unknown number calls me, this app shows the name before receiving that call, I call the caller by name with astonishment from other end and question if I already knew the caller, makes me confident 🙂 I receive many calls a day, and some of them are anonymous to me as well, but I do not want to drop that call with reason, that call could be important, I find the caller name and feel comfort a bit for at least knowing something before call attempt.

Home many of you would already have installed this app but for those which are still unaware of this app, quick download this app and enjoy your life with your callers, atleast you can play a role of cheerleader for unknown callers 🙂

No Mac, No worries, Test your Website on Mac while in Windows OS


If you are a web-developer and want to test your site across browsers, ok, come online and test this online app….
You can test your development in different browsers and different OS.

If you are a WOS user and want to test your site in Mac, don’t worry, you can select your testing OS in live testing there and you will have Mac on your WOS and you can manage your content like you are working in Mac. Same is the case with Mac Developers who can select any testing machine and can test sites like they are working direct on that.

if you want different styling for Mac and WOS, you can use this code in your files and can target your CSS with specific classes in body like this jquery code

    setTimeout(test, 1000); //delay for demonstration

    function test() {

      var mac = navigator.platform.match(/Mac/) ? true : false;

      if (mac) {

Using this code you can add a class to body tag and you can target your elements on the page by that body class parent. and you can check your changes using this app and can make your clients happy by solving cross-browser-issues.

Analytify (Must have plugin)


Analytify is must have plugin for WordPress users, People which have little now how can understand the importance of this plugin, is free and pro. Plugin shows your stats in your dashboard with beautiful graphical structure and easy to understand with the first glimpse.

-Because of being easy to use
-Helps SEO optimizations,
-Multisite functionality,
-Prepost/ per page results,
-Front end and backend results,
-Enormous downloads and good rank.

I’ll simply say to use this plugin if you think you are lacking something and your clients are not stable. You need not leave your dashboard to check your website statistics, you can check per page analytics and everything is visible on your site tray…….
People nowadays are more conscious, more curious and more vibrant to scale their businesses than the old days where there were limited resources and no race to go out of town, but now business are spread in all over the world, you can groom your business living in small town and can take benefit from the world by your worth and recognition, great users, internet and your brand stone round the globe can make you world famous but some of the hidden resistors can block them so, you can smash it by using this plugin….. Hope you will enjoy the plugin results in real time. best of luck