401 [unauthorized]. authToken contains whitespace – LinkedIn app error while sharing

Earlier I posted about the LinkedIn API error Profile data could not be retrieved . The current error 401 [unauthorized]. authToken contains whitespace is also due to the similar reason (in my case) when trying to share a link through post on linkedin from my application. My application was sharing the post through api to the url: https://api.linkedin.com/v1/people/~/shares […]

How to get LinkedIn App Key and App Secret

This post is for those who want to work on linkedin API to develop applications. Linked In provides and required app key and app secret for applications built using their API. To get linked Appkey and Appsecret, goto this page: https://www.linkedin.com/secure/developer Here you can create a new applicaiton for linkedin too or edit already existing linkedin […]

LinkedIn->updateNetwork(): profile data could not be retrieved – Solved

I’ll be honest, this was my first day working on Linkedin API for creating an app with numerous functionalities in it. I utilized OAuth library along with simple-linkedinphp – a simple Php-based LinkedIn API library to connect and perform various functions with linkedin profile. However while playing around, few errors came up. One of them was: “LinkedIn->updateNetwork(): […]

Convert XML string to PHP Array

PHP programmers usually require to convert xml data to php array to store or use it in their classes methods and functions. Now its a different discussion why can’t they use xml data directly without having to convert xml to php array. In a project today, I needed to convert the xml data to php array […]

How to disable directory listing / browsing – cPanel

By default servers allow directory browsing via http frontend to the visiting users. However you might want to disable directory listing in some situations where you don’t want to allow your users to see the files and folders present in the web servers directories. Servers show the directories and files if default files aren’t present […]

Do you license your scripts before giving it to the client?

If you’re a programmer or developer, you might had numerous events in your life in which the client didn’t pay you for all your hard work. Happens to me too! I’ve been planning for long to start licensing and sort of encrypting some part of the scripts to the clients who don’t pay advance (or […]

Contact form 404 error when Post – wordpress

Was finishing the wordpress plugin partially coded by my team member and while trying to submit it as POST twenty twelve theme said: This is somewhat embarrassing, isn’t it? Well honestly speaking, yes it was, coz after trying few different things (including removing the plugin completely) it still gave this error. (You can refresh the […]

Blogging vs Programming

Ideally we can’t compare these two things but as I’m quite confused these days to focus on which one of them I’ll try to give a comparison among them. Blogging, of any niche or topic, is beneficial in the long run. You never know if your post is really going to get many visitors or […]

Only graphics person has imagination ?

While discussing a project with one of the clients I got this line from him: I do need a good graphics person who has imagination And it made me wonder . . . does only graphics people have imagination? No I’m not gonna pull this post with just this topic in it, but just wanted […]

Google Adsense showing websites ad on itself!

Geo.tv is a news channels website. It’s a Pakistani news channel and have placed google ads on their website too. Today when i was on the website to get a glimpse at the current news, on the right sidebar, Google Ads was showing the ad for Geo.tv itself! Take a look at the snapshot below: […]