November 22, 2014

How not to Whine over Wine - The Logical Kid

Hello!

Today I am going to talk something less in need, but more in demand. Its all in demand when you accidentally, or experimentally end up with your wine.

For those who know what 'wine' is, that's good.

For those who don't know, Wine is a Windows compatibility Layer for Linux, and has been misunderstood as Windows Emulator.
On contrary, WINE means "Wine Is Not an Emulator"

For more clarity, kindly read Debunking Wine Myths.

What made me write this post is whilst I was experimenting with Wine installed on my Ubuntu, and there was some application to be executed on win98, so I had my winecfg (wine configuration utility) set in compatibility mode for windows 98  then executed my windows executable file. To my horror, not only the application failed to execute, but also my wine stopped functioning.
I tried to run winecfg, but in vain. Even that wasn't working.
I tried uninstalling wine, also tried to do it with purge remove and tried re-installing but even then in vain.
Also tried to check the system.reg,user.reg files in the location /home/user/.wine but in vain. Had tough luck in troubleshooting the error.
On analysis, I could see in the task manager that the process 'wine' and all the other associated processes were running, but were not showing up.

The last resort - - -

After googling, I found out that while wine is started, it looks for configuration from the .wine directory and then presents the output accordingly.
Here is what I could understand then. I just renamed the .wine folder to something else, rather .wine1, or you could even rename it as .wine.backup

That's it!
After renaming the directory, just try running wine again.
It works like a charm!
So, now there is no need to whine over wine. :D :)

Good day!

November 8, 2014

Spoof your device while logging into Facebook - The Logical Kid

This post is all about helping you spoof the device name while you login into facebook. On successful execution of this trick (or whatever) you can achieve the following result:

All set?
Lets go!

To start with this, you need to have a facebook application, and the facebook-javascript-sdk code from the following link:
https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2
Copy the code from the 'Quickstart' section.


Note down the application id (appID) of your application.
Replace the value in the code with your appId.



Save the file in your htdocs or www folder of your server at localhost, or some remote host.
I have saved it as t.html in the /var/www/facebook-sdk-env/ folder of my apache server.
Time to execute.

Next is what?
Just open the the file on your server in the browser.
You will be shown the following output:

You will be asked for your facebook credentials, as follows:

 



Upon logging in, you will be displayed with a statement as follows, just to confirm if you have successfully logged in:

Besides this, the activity will be logged in the Security Settings with the device name shown as your application name.
Bingo! Now create applications with some funky names and confuse the person with your devices, and make them believe that you have accessed your facebook account with an iPhone 6Plus, even if you don't have one. Anyways, there's much to it if you can tweak user-agents of your browser a little bit to spoof the Operating System as identified by facebook. For automation and/or easiness, you can use any user-agent switcher plugins anyhow.


Have fun!