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 k jb 6 mah , musalsal andhera rehta hai to phr us k baad jb soraj nazar aata hai to dil bohat machalta hai. Ye sardio ka soraj , halki halki thand wo wakat yaad kra deti hai jb shaam ko hm log apne bachpan mei khela karte the. Aaj apne ap ko is wakat , is shaam mei yoon computer k aage office mei dekh kr itna ajeeb lag raha hai. Yaad aa rhaa hai wo sb wakat jb mei shaam ko apne behan bhayoon k sath khel raha hota tha. Us wakat merai pass sirf mera bachpana tha, or mei sochta tha k bara ho kr ye karo ga wo kroo ga. Or aaj sb ho gya, laiken wakat sirf wo bachpan kaa yaad aa rhaa hai. Mujhai wo shaamei bhi yaad hai jb university mei meri classes shaam ko hoti thi, sare class mates shaam ko class k bahir beth kr gapai marte the, mei bhi kabhi kabhi shareek ho jata tha laiken zada tr mein masroof hota tha. Magar jb jb bhi mei dostoon k sath bethak lagti thi ye shaam ka waqat , parindoo ka chahchahan, bachoon ka gali mei cricket khelna sb yaad aata hai. Aisa lagta hai kal shaam ki baat hai. Us wakat mujhai ahsaas nai howa tha k ye wakat kitna keemti hai. Us waqat mujhai khoob paise chahye the, us wakat mujhai job chahye thi, us waqat mujhai business krna tha, us waqat mujhai achi gari chahye thi, us waqat mujhai shaadi krni thi. Or aaj , aj jb merai pass ye sb hai to sirf wo waqat nai hai. Wohi shaam hai, pr gali mei kheltai bacho ki awaazoo ki jaga keyboard typing ki awaazain hain. Dil mei ajeeb sa dard hai, is baat ka ihsaas hai k jo chala gya wo chala ...
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"');
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!
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 Administer -> content management -> Clean URLs and disable it. After disabling it , go to your phpMyAdmin and export your db, then import it the new website DB and it will work. Some people on the internet also recommended to disable extra plugins before export , and that makes sense too but it dint helped me. Wish you good luck in getting this fixed for you. Feel free to contact me if you cant solve the problem i might have some other suggestions for you with your specific requirements.
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
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/
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 a very short while. Apart from these materialistic achievements, i am quite satisfied with my level of knowledge and God gifted capability of being very optimistic. I believe that everything depends on what and how you think. I am happy that I am no longer a negative minded person, and i hope Inshallah i'll continue to even improve this more by meditating once a day. Lets dive down a little more in details from the beginning of the year 2012, it started of with sizzling motivation of getting a new bigger apartment since i signed the contract a couple of days before Jan 1 2012. I also started a new job by the end of 2011 so i was very satisfied with my life and was planning big things for future. Later in the first month of 2012, i got my visit visa stamped for UK and i travelled to UK as well and met some of my very old friends. Later, the move from one apartment to another showed me how cruel this world is and how people turn their back on you when you need help from someone, this made my mind to live at my own out from city center and stay a bit reserved with all those who tend to be my friend. Summer 2012, went a bit slow but with the manifestation of one of my with to have a big TV screen along with gaming console. Then came some twist in life with the rejection of my visa application. But it happened for a reason to be even better, and finally i got my Swedish work permit in october 2012. This big achievement, brought further blessing of 14th November 2012 which is still a bit confidential but it will soon be out with a blast. The year ended with a lot more sizzling achievements, for example i ...
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 drunk and sleeping all over your weekend, thats not something you are doing constructive... At the same time, smoking weed , or drinking alcohol is not just addiction. Talk more in this context, how about playing computer games and consoles? They are quite addictive as well! And for sure they waste quite a lot of time and energy as well. Not only this, this addiction is also very unhealthy as well. Usually all good gamers are over weight and not in a good shape. However, as long as the gaming companies are making money over this, no one cares to make these activities healthier. Unfortunately, i am also a victim of this addiction, and today after spending quite many hours playing xBox i realized that i have not only wasted a lot of my time but i have also gained a few extra calories in just sitting down for all this time.
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 pehli seerhi hai In loogo ki tahzeeb se merai samne yehi aata hai k sab se pehlai yeh log khoob gane sunte hain hata keh zabaani hifz ho jain, phr gaano pe raks karte hain or sath mei sharaab maza dobalah kr deti hai. Phr jb behad sharab pi li or apne aape se bahir ho gai to zinah ka moqah khud ba khud mil jaata ha. Shaid yehi wajah hai k jis kaam ko gunah e kabeera ka naam dya hai, us ki taraf jane wale raste ko band krne keh lye hamain hamare deen me gane bajane or sunane se mana kya hai Ye to mera zaati ek nuqta e nazar tha, is ke ilawa sciency lihaaz se mera khyaal hai keh insaan ki mukhtalif frequencies hoti hain or jitnai wo naik kaam krta hai utni zada us ki frequency naik logo wali or Allah ke dostoo waali ho jaati hai. Laiken gane sunane se us ki ye frequencies bigar jaati hain or shaitaani kaamo ki taraf mazeed uksaati hain Allah mujai or app ko hidayat de , seedhi raah pe chalai or haq baat ko sochne samajhne ki taufeeq aata farmai. Ameen
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.