Category Archives: Tips & Tricks

Replace unicode characters from a Java String

It is a very common scenario that when your application depends on some external sources for input files and then it might be possible that these files may contain some special characters or might be different encoding format is used when this file was written in comparison to what is used for reading. Now for further processing it is important that these special characters should be removed. In this post we will see how to replace unicode characters from a Java String with their corresponding ascii values.

Before looking into the actual java code for replacing unicode characters , lets see what actually Unicode means.
As per the unicode.org definition. Continue reading Replace unicode characters from a Java String

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Create Favicon for WordPress Blog

Favicon :

Create Favicon for WordPress Blog

It is a 16X16 (pixels) short image that actually used to give the first impression about your website/blog ( a pictorial representation) . In simple terms it basically cuts long story to short.Whenever you  use any tabbed browser like Mozilla  ,Chrome etc you will see a small icon on the left of your tab , that small icon is nothing but your favicon. Moreover , you will see the same favicon in the bookmarks tab also when you bookmark any page. Sometimes these favicons are very useful in finding the website that you are looking for , from a big list of bookmarks that you have in your browser. If you see in the above image , that green color square is the favicon for this blog. Continue reading Create Favicon for WordPress Blog

Add Twitter follow button to WordPress blog

From last few days i was planning to do a lot of modifications in my blog and adding the twitter follow button to wordpress blog was one of them but as a lazy ass i was always skipping it. So,finally today I added it on my blog,so to add twitter follow button I did some research over internet for the best and simplest way in which it can be done. After reviewing all the options like installing a wordpress plugin , installing third party scripts etc , I found that adding it as a widget in your blog will be the most easiest and handy way. Here , I have provided you the source code for 4 different types of button , depending on your site look and feel you can choose any of them.

1. Follow button with total number of followers : Continue reading Add Twitter follow button to WordPress blog

Find HTTP Request Source – Computer, Mobile Phones or Tablets ?

In this post we are going to see 6 different ways by which we can find HTTP request source .
These days whenever we develop an application , our target is that it should be accessible from both computers and mobile devices so that an end-user can access the application wherever he wants and whenever he wants. So, when we target audience from the both these channels there is always a challenge that exist for a developer to identify a request source whether it is coming from a computer , mobile device or tablet . I am saying this as a challenge only on the basis of request source content will be rendered on the user system whether its computer, mobile device or a tablet by applying the different resolution policy , css , scripts anything that will execute on client side. Even after this there is one more challenge to find out the device type whether its Android ,Apple , Black Berry or Windows. Continue reading Find HTTP Request Source – Computer, Mobile Phones or Tablets ?

How to Fight spams in 4 simple steps – Explained

After starting my wordpress blog ,within few days some of posts starts toping the Google chart , I was very happy by seeing that but it caused an unwanted problem for me i.e I started getting spam emails and spam comments on my posts.On an average I was getting 50-100 spams everyday and I was really pissed of these spams , so I thought instead of running away from them I have to fight with these spams.So next question is How to fight spams, In this post I am going to focus on what all measures I have taken to avoid spams and gave a rock solid answer to these spammers.

How to fight spam in 4 simple steps Continue reading How to Fight spams in 4 simple steps – Explained

What are meta tags and how they are important ?

Since 2009 , Google reduced the weighing of meta tags while giving ratings for web pages or more precisely we can say it ignored meta tags completely while ranking the pages in SERPs ,so that does not mean that you also start ignoring them because it directly impacts search engine optimization for your website.

If you are not aware of the basics of what are meta tags and why they are important , then I think you are missing one of the key aspects of Search Engine Optimization – SEO and more importantly it will help your readers to understand , what your website is about or what your post is about ? Continue reading What are meta tags and how they are important ?

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Move your wordpress site from 000Webhost to Bluehost

Before starting this post, let me give you the background what motivated me to take this step (moving my blog from 000Webhost to Bluehost) and to write this post. For this you have to read my previous posts, My First Experience With Web Hosting and PHP Memory Error on WordPress and 000Webhost, after going through these two posts you will have an idea what all problems that I faced when I was on 000webhost.com.

Note : I am not saying that there is any problem with 000webhost , they are providing very good services without charging any cost . There were few things in free webhosting where I found a lot of limitations and I had to spend a lot of time to overcome those challenges, one of them I had already mentioned in my post because I can’t afford losing time in these issues, so I thought it’s better to spend few bucks per month (for paid hosting) and avoid these problems.

Below is a step by step guide that you can follow to move your wordpress site from 000webhost.com to Continue reading Move your wordpress site from 000Webhost to Bluehost

IPhone 5S Rumors and Specs

As all of us know very well both that Samsung and HTC had already released latest version of their popular series Galaxy S4 and HTC One respectively. Now its Apple’s turn to give answer to its competitors and it has been made clear that it will be given by IPhone series next phone IPhone 5S which will be replacement of there last year release 4” inch phone IPhone 5.

Speculations have already started about this new phone and the features that it is going to provide. There are iPhone 5S rumors a plenty with whispers suggesting that Apple has plans to introduce a number of significant upgrades on the iPhone 5S to help it counteract the HTC One and the Samsung Galaxy S4, both of which have proven to be worthy iPhone 5 competitors.

Below I am going to point out some of those hot rumors that people are expecting in there next IPhone version.

IPhone 5S Screen & Resolution

If we believe IPhone 5S rumors  Continue reading IPhone 5S Rumors and Specs

BlueHost Vs Hostgator – Comparison

Today 8th july 2013 i bought this domain from godaddyauction , the only reason why i bought this domain is I found its name very catchy and meaningful.After buying this domain , the next confusion that was in front of me was where to host this domain , one thing was sure that I am not going to host it on free service providers because I had a very bad experience with them when I hosted my blog Tech Idiocy with them. I faced a lot of problems like memory issues , bad support , only php scripting support etc because of these problems most of my time used to waste in resolving these issues.

So after doing a lot of research on internet I am able to narrow down the results between 2 i.e Hostgator Vs BlueHost , so i have to choose one of them. Now that is also a very tough decision because when i compared them on different parameters , I found that there is hardly any  difference between them ,as both of them are undisputed kings of this webhosting world ,but still i had listed a few differences between them that you can use to make your decision. I will reveal  Continue reading BlueHost Vs Hostgator – Comparison

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS