Technical

Display Images in Instant Messengers

0

Have you ever felt while chatting that your friend’s display image is awesome ? If you ever felt so, the most obvious thing you’d try to do next is save the image [so that you can use it later on some purpose]. But, in general, the messengers do not support saving the display images [No, you can't just right-click on the menu & select Save]. Well, I just explored & experimented a bit with Google Talk & Yahoo! Messenger to check how to access the display images through an http url? So, here are my results:

  • Yahoo! Messenger: The display image of all the users are publicly available on the web. To access the avatar / display image of a user whose Y! Id is yid, then just navigate to:

    http://img.msg.yahoo.com/avatar.php?yids=yid

    Here comes a shock now !! All images are publicly available, meaning that everyone has permissions to save your image onto their disk.

  • Google Talk: I’m not really sure where the images get loaded from on GTalk, but on the GTalk plugin available on GMail, the images are loaded from: https://mail.google.com/mail/photos/username@gmail.com, where the username is the user’s Google username. On contrary to the Yahoo! Security Settings, these images are NOT publicly available. You cannot access the images of users who are not in your friends list. Also, this URL checks for your valid session, meaning that you need to be logged into GMail to access these images.

I was actually wondering if there is any tool which can list me all the data-transfers happening b/w my IMs & the host sites? Wouldn’t it be wonderful if we know all the endpoints of an IM server, the message formats etc. [We can probably develop our custom messenger for that IM service, if we get to  know those details :) ]

Well, now girls [especially Indians, who are conservative] should give a thought before uploading their display image, if they do not want their pictures to fall into wrong / unwanted hands.

Now, its time to have fun by tricking your pals by their own display images as yours.. :D :D

Is Mozilla Firefox more secure than Internet Explorer?

2

Have you ever asked someone why does he/she prefer Mozilla Firefox over Microsoft Internet Explorer? If not, you ask yourself that question. And as I guess (or atleast the surveys say) that the most common answer is:

“Mozilla Firefox is secure, while Internet Explorer is not”

Even that was my opinion also. But well, things aren’t the same as thought about. I was just going through some vulnerability statistics in these browsers and the results laughed at me saying – “Welcome to the real world of security dude!!”
Let me give you some overall statistics on vulnerabilities in these applications.

Secunia Vulnerabilities:

Mozilla Firefox 3.x : 68 (11 highly, 1 less, 2 not critical, others unknown) – 0 unpatched

Microsoft Internet Explorer 8.x : 1 (1 less critical) – 1 unpatched

(Secunia is a leading Security Analyzing organization)

Even though the turnaround time for patches is comparatively much better in case of Firefox, the Internet Explorer has very few bugs (which are even not very critical).

Being a fan of Firefox myself, it was hard to believe the statistics. So I also checked the CVE (Common Vulnerabilities & Exposures) identifiers registered for both Firefox & IE. But even those showed me that Internet Explorer is safe, even safer than Firefox…

Well folks, the next time you ask someone to use Firefox instead of Internet Explorer, please find some other reason (instead of telling it is secure).

Things to remember for Android !!!

0
  • android:layout_width and android:layout_height are compulsory for all nodes.
  • The outermost container should contain the attribute: xmlns:android=”http://schemas.android.com/apk/res/android”

Installing Android !!!

0

Few steps for setting up things before developing applications for Android….

  • Download & Install JRE from http://www.java.com/en/download/manual.jsp
  • Download & Extract Eclipse IDE for Java Developers from http://www.eclipse.org/downloads/
  • Download the latest version of Android SDK from http://developer.android.com/sdk/
  • Download ADT (Android Development Tools) from http://developer.android.com/sdk/adt_download.html
  • Start Eclipse, then select Help > Software Updates > Find and Install….
  • Select Archive and then browse to the downloaded ADT Zip file.
  • You should see the plugin listed by the URL, with “Developer Tools” nested within it. Select the checkbox next to Developer Tools and click Install…
  • On the subsequent Install window, “Android DDMS” and “Android Developer Tools” should both be checked. Click Next, then Finish. Restart Eclipse.
  • Select Window > Preferences… to open the Preferences panel (Mac: Eclipse > Preferences).
  • Select Android from the left panel.
  • For the SDK Location in the main panel, click Browse… and locate your downloaded SDK directory. Click Apply, then OK.
  • Now, lets install an AVD (Android Virtual Device). Navigate to /tools in a command line and execute:
    android create avd --name  #your_avd_name# --target #targetid#
  • Just press Enter when asked to create an hardware profile.

Now you are done with setup……. Happy developing with Android !!!
Start with Hello, World program in the documentation.

Sai Prasad

Subdomains on localhost

0

Intro
Developing websites on localhost may sometimes need making of sub domains. Installing and running another server for this purpose is useless, consumes more resources etc. So here is the technique to make sub domains on localhost.

You can also use this to host more than one site on localhost. i.e, you can host multiple sites situated on different folders.

PS: This is for Apache configuration.

Steps

First decide on the subdomain names…
for eg: sub.localhost, sub2.localhost, alt.localhost , images.localhost etc..
You can also name www.name.com. (Please note that if there is a site with that name on the net, you wont be able to access that site on the internet.)

Second making these sites to point to 127.0.0.1, for this you can edit the HOSTS file on windows. The HOSTS file found on Windows (and linux too) is like a local DNS (domain name server). When you type a url on the browsers address bar, the domain name is converted to the IP of the server by a DNS lookup by the browser. Now here is the catch … Windows first looks at the HOSTS file before doing any DNS lookup. So we can block certain sites by editing the HOSTS file.

HOSTS file is found typically here …

Windows XP : C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K : C:\WINNT\SYSTEM32\DRIVERS\ETC
Windows 98/ME : C:\WINDOWS

Linux : /etc/

The Lines followed by a # are comments and explains how to use the HOSTS file.127.0.0.1 is the IP address that is used to loopback to your computer itself.

Now add to HOSTS line
127.0.0.1 <hostname>
Egs:
127.0.0.1 sub.localhost
127.0.0.1 sub1.localhost
127.0.0.1 sub2.localhost
127.0.0.1 images.localhost
127.0.0.1 mysiteonmycomp.com
127.0.0.1 images.mysiteonmycomp.com

Next we have to assign each of these different URL’s to different folders.
This is done on the apache conf file. (httpd.conf file situated in apache\conf\ directory).
Note that if you are using XAMPP, the virtual hosts file is at apache\conf\extra\httpd-vhosts.conf

Scroll all the way down the httpd.conf file until you reach about Virtual Hosts.
Add for each domain (or subdomain)

NameVirtualHost <sitename>:80

<virtualhost <sitename>:80>
ServerName <sitename>
DocumentRoot DocumentRoot-see example
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>
You can also any valid extra parameters also (like ServerAdmin, ServerAlias etc.)

eg:

NameVirtualHost saiprasad.com:80
<virtualhost saiprasad.com:80>
ServerAdmin webmaster@localhost
DocumentRoot “C:/xampp/htdocs/www”
ServerName saiprasad.com
ServerAlias www.saiprasad.com
</virtualhost>

NameVirtualHost test.saiprasad.com:80
<virtualhost test.saiprasad.com:80>
ServerAdmin webmaster@myjoomlasite.com
DocumentRoot “C:/xampp/htdocs/test”
ServerName test.saiprasad.com
</virtualhost>

NOTE : All the DocumentRoots must be under the DocumentRoot (i.e; must be a sub-directory) specified in httpd.confd.
For example, in XAMPP, the default DocumentRoot is “C:/xampp/htdocs”. Therefore, the DocumentRoot of any virtual host cannot be given as : “C:/xampp/test”. The folder must be under “C:/xampp/htdocs”.

Go to Top