Archive for the ‘Blog’ Category

Ek dhalti howi shaam

February 27, 2015  |   Blog   |     |   Comments Off on Ek dhalti howi shaam

Ek dhalti howi shaam

2015-02-27 Aaj Jumai ka din hai, is wakat shaam k 4:30 ho rahe hain. Soraj ahista aahista ghroob ho raha hai. Is soraj k doobne se aisa lagta hai jaise dil bhi doob jai ga. Roz shaam ko jb mei daftar mei hota hun or shaam ka ye samaa dekhta hoo to asia lagta hai k zindagi ki shaam bhi bus dhalne wali hai. Aksar hi ye ahsaas hota hai k Allah ne mujhai sb kuch atta kr dya , insaan ki khuwahishe to kabhi bhi khatam nai hoti is lye mazeed to kisi dua k lye haath uthate howe bhi dr lagta hai. Najaane mei ne kb kb or kya kya Allah se manga or us ne mujhai foran ata kr dya. In sb namatoo ka mei kaise hisaab du ga? Aaj saal 2015 hai, pichle do saal se mei ne is blog pe koi post nai ki. Zindagi ki masroofyat ne to namaaz parhne ka waqat cheen lya hai, Allah ki namatoon ka shukar adaa krnai ka wakat kaha se laoon, kaise laoon. Itna wakat nai hai k us ki namatoon ko gin sakoon, or baat kar raha hu shukar adaa krnai ki. Sweden mei waise ye ek bohat khaas baat hai ...

Handling IE facebook sessions in facebooktabs on multiple pages

July 30, 2013  |   Blog   |     |   Comments Off on Handling IE facebook sessions in facebooktabs on multiple pages

Handling IE facebook sessions in facebooktabs on multiple pages

It took me almost 2 days, to find a solution for this issue. I was making a facebook tab application at my workplace and after the completion when i started testing the application for cross browser platform, the application started to crash in IE. Upon debugging I found that I am getting "Uncaught OAuthException: Error validating access token" , after spending 2 days digging the issue finally i came to know that the issue was with the sessions in Internet Explorer. The session id is not passed between pages in a facebook tab due to which we get this issue. The problem lies with a W3C standard called Platform for Privacy Preferences or P3P for short. This will allow Internet Explorer to accept your third-party cookie. Solution to this problem is to send the header on every page that sets a cookie. header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

Gym motivation

May 17, 2013  |   Blog   |     |   Comments Off on Gym motivation

Gym motivation

Inspiration is something that keep you motivated. For me , i get more motivated with visual stuff as compared to inspirational quotes. Same goes for my gym determination, here is a collection of inspirational pictures that will keep you motivated. I recommend , bookmark this post and watch these pics once a day before your workout!  

drupal node?destination=node

April 30, 2013  |   Blog   |     |   Comments Off on drupal node?destination=node

drupal node?destination=node

The title of this post might help someone trying to migrate drupal website from one server to another, this problem took quite much of my time, and even after searching for a lot many forums i failed to find any working result. Lastly i tried what was in my mind and the knowledge of wordpress helped me fixing the problem. I would first explain a bit of what the problem was at my side, but if you are in a hurry and just want to try out the solution, go to the end of this post and try it. When i moved from a linux hosting to a windows hosting, everything seems to be working fine untill i clicked the login button. The page tries to open up a new page with a query string "drupal node?destination=node" The reason, to this was that in linux environment  URL rewrite is done using mod rewrite in .htaccess file, while in windows environment it was supposed to be done using web.config file. I tried to look for such information in .htaccess file but it dint helped, what you can do to fix it is to login as an administrator of the source website , and to directly to ...

Linux commands i use over SSH

March 11, 2013  |   Blog   |     |   Comments Off on Linux commands i use over SSH

Linux commands i use over SSH

Instead of keeping a list of commands on my desktop, isn't it better to have it on my blog so that others can benifit from the list since these are the one that i use most frequently and they are a bit difficult w.r.t extra parameters to keep them in mind all the time. Since i use Mac terminal quite often so i am not gonna write down very basic commands like ls, clear, etc. If you are having difficulty reading the the post, try clicking the heading link for a better preview of this post in the full window. I will keep on adding more commands with time later on. if your folder has subfolders you will need -r flag zip -r filename.zip foldername/ find file name or directories without throwing errors find /home -name 'x' -type d -print 2>/dev/null look for name server nslookup -type=ns domainname.com local over DNS (I dont use it in ssh , rather than on my mac terminal) sudo nano /private/etc/hosts

Synergy – Boost your productivity!

February 11, 2013  |   Blog   |     |   Comments Off on Synergy – Boost your productivity!

Synergy – Boost your productivity!

I wonder, how come i never googled for such a software earlier even when i am using two computers quite often. Its been many years i always have a pair of computers sometimes windows linux, sometimes laptop desktop and now i have MacBook Pro and windows at work while MacBookPro and Ubuntu at home. But strange enough that i always tried to use remote cotrol softwares rather than this one, which are a bit troublesome to setup and not so smooth. On the contrary, this one is way too smooth , it can detect the screen edges and even if you are running two different screen resolutions it works fine! Not only this , when it comes to mac and windows it can also map your keyboard command key to ctrl key on windows and it also sync your clipboard.... Thanks to my colleague Magnus Hammarström, for showing me this such a life saving software that has no doubt increased the productivity and easiness. I really recommend all my blog readers to install this software if you are using more than one computer! Here is where you can download it for free! http://synergy-foss.org/

Year in Review – 2012

January 01, 2013  |   Blog   |     |   Comments Off on Year in Review – 2012

Year in Review – 2012

The blog post currently under the tip of my fingers is rather more about the feelings , thoughts and achievements that i can summarize today in my words. Though i tend to be very optimist, and so main motivation behind this blog post is to share my achievements and pay gratitudes to all who stood beside me during this time and of course to Allah Almighty for his countless favors and blessing  upon me. The year started off, with my first job in Sweden. It was a bit stress with the new working environment but at the same time very interesting to be at work in a new country with a new language that I have to take care off. I cant count the blessings throughout the year, but I can for sure write down a few of big achievements. For example : Swedish language, Visits 2 UK, Work visa, Big apparment, Gadgets (40" LCD Tv, Xbox, 3TB HDD, DSLR and iPhone). For some of my readers these things might not be big enough but for me, when i compare these achievements relative to other fellows from Pakistan living in the same city i find my self very lucky to accomplish all of these milestones in ...

Addiction

December 09, 2012  |   Blog   |     |   Comments Off on Addiction

Addiction

Drug addiction is quite common these days, although everyone know how harmful it is for life but still addicts cant find a way out. Governments have various rules to stop this spread, and the most common rule we can see is the ban on such products and quite heavy patently for those who caught dealing with drugs. But why? Is it just because drugs are injurious to health? why dont we also look at another dark side of the drugs that they waste a lot of our limited quality time. I wonder why no one thinks interm of time, if you consider drugs as fatal and they bring you more closer to your death bed. Why dont we also think the other way as well, that time you are just flying in your thoughts is something you are loosing as well. May be we dont care, because we dont know how much time do we have in total, and we believe that we cant stop the time so let it go the way it is going. But the trust is that, every minute that you spent with you wisdom and make it work for you self or the betterment of humanity you are in fact doing something constructive. As long as you are ...

Steps towards devilship (Urdu) – برائ کی راھ

December 02, 2012  |   Blog   |     |   Comments Off on Steps towards devilship (Urdu) – برائ کی راھ

Steps towards devilship (Urdu) – برائ کی راھ

Aj , raat ko mei behri jahaz mei safar kr raha tha or hasb e mamool jahaz mei gane bajane ka mukamal intezaam tha. Yehi nahi saari raat raqas jaari raha, afsoos keh mein bhi in sb harkaat ka hisah raha laiken us doraan merai neem murdah zameer ne aksar dastak di or mei chand aham batain sochne pe majboor ho gya Sab se pehlai to ye khyaal aaya keh is waqat ham samandar k darmiyaan be yaar o madadgaar ek samandri jahaaz mein hain or sirf or sirf apni tabyat khoosh krne ke lye Allah ki itni naafarmaani kr rahe hain, or wo zaat kitni raheem hai keh wo hamain phr bhi muhlat de rahi warna us ke ikhtyaar mei ye cheez hai k wo paani ko hukam kare ya hawa ko hukam kare to hamara naam o nishaan bhi khatam ho jai is safahe hasti se. Is keh baad mujhai ye khyaal aaya keh aakhir hamare mazhab mei gane bajane se kio roka jaata hai jb keh yaha europe mei to gano se hi zindagi shoro hoti hai or unhi pe khatam hoti hai Club keh mushahede se mei is nateejai pe pohancha keh shaid ye ghalat raste pe chalnai ki ...

Alternative to mac preview application for photos (Quick Look)

November 29, 2012  |   Blog   |     |   Comments Off on Alternative to mac preview application for photos (Quick Look)

Alternative to mac preview application for photos (Quick Look)

Its been about 2 years now since i am using mac, but every time i want to open an image it sucks big time. The reason being that i was a windows user and i always double click to open an image. And then i have to wait a couple of seconds to run mac preview application. I wonder why it takes that long, specially if you dont have and SSD. I know that i can use quick look when i am in finder, but most of my pictures are on my desktop, and so i cant use the quicklook icon on the desktop. The best solution i found today was to use space bar :) Wow, just one key and the life is a lot more easier now :) So now, whenever u want to take a quick look of any file just select it and press space bar :) PS. This works in Leopard and above.