Pages

Subscribe:

Friday, 23 December 2011

Copy To Clipboard how to add it |get html,javascript and simple languages for how to add acopy to clipboard in blog

 Javascript: Copy To Clipboard Cross Browser|how to add a copy to clipboard in your webpage/blog

If you use any script for syntax highlighting, you’ll see most of them has “copy to clipboard” feature. This is a fascinating thing done with Javascript. So I want to know more about it: how to implement copy to clipboard in Javascript. I did some searches on Google and found many articles which show various solutions. They’re so interesting and I just want to share a small roundup in this article.
Copy to clipboard is very easy in Internet Explorer

Although I (maybe and you) don’t like Internet Explorer, but in this case, it works very cool. To implement a Javascript function that will copy a text string to clipboard, we can do like this:

function copyToClipboard(s) {
    if (window.clipboardData && clipboardData.setData) {
        clipboardData.setData('text', s);
    }
}

The function checks for clipboardData variable, that available only in IE, and set data for text attribute. So, you can use this function directly in your HTML code like in example below:

<a href="#" id="copy" onclick="copyToClipboard(document.getElementById('pre').innerHTML)">Copy to clipboard</a>
<pre id="pre">
header{margin-bottom:30px}
header h1{font:italic 30px Georgia,serif;color:#999;text-align:center}

.box{width:100px;height:100px;background:red;border-radius:50px}

footer{margin:15px auto}
</pre>

When you click on the link Copy to clipboard, the text in pre tag will be copied.
Flash solution for other browsers

For other browsers, there is still no common solutions with pure Javascript. I found a pure Javascript solution at Dynamic Tools (where I get the function for IE above) but unfortunately, it doesn’t work for me.

Keep searching in Google, I found some solutions that use Flash for other browsers. All of them uses a small flash file that do the main job: copy a text string to clipboard. This flash file is embed into current page, but it’s invisible by setting width and height to 0, like in this code:

function copyToClipboard(s) {
    // ie
    if (window.clipboardData && clipboardData.setData) {
        clipboardData.setData('text', s);
    }
    // others
    else {
        var flashcopier = 'flashcopier';
        if(!document.getElementById(flashcopier)) {
            var divholder = document.createElement('div');
            divholder.id = flashcopier;
            document.body.appendChild(divholder);
        }
        document.getElementById(flashcopier).innerHTML = '';
        var divinfo = '<embed src="_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(s)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
        document.getElementById(flashcopier).innerHTML = divinfo;
    }
}


This idea is good, and works for almost cases. But a problem appears in Flash 10: for security reason, all action with clipboard needs user interaction. That means the flash file cannot automatically put a text string into clipboard without user’s permission.

This problem occurs because the flash file is written with old version of Flash, when security was not focused. To solve this problem, the simplest solution is updated the flash file, that will check for security. CFCruss has written a simple code for Action 2.0′s fix that you might interested in.

So if you have source code of flash file, just update it to work in Flash 10, then you can use the old Javascript code (above) to copy to clipboard.
Zero Clipboard: A Javascript library for copy to clipboard functionality

Because I don’t have any sources of those flash files, I must find another way to make copy to clipboard functionality works. A good approach is finding a well-developed Javascript library, that’s why I found Zero Clipboard.

Zero Clipboard uses a flash file to copy to clipboard. This flash file works properly with Flash 10. It’s a bit complicated to setup and takes me half an hour just to make a simple example with it.

Suppose that we have a HTML section like this:

<div id="copy">Copy to clipboard</div>
<pre id="pre">
header{margin-bottom:30px}
header h1{font:italic 30px Georgia,serif;color:#999;text-align:center}

.box{width:100px;height:100px;background:red;border-radius:50px}

footer{margin:15px auto}
</pre>

We need to copy the content in pre tag when click to “Copy to clipboard” text (note that this is a plain text, not an A tag).

Now download Zero Clipboard to your computer, extract it and copy 2 files: ZeroClipboard.js and ZeroClipboard.swf to same folder as HTML file. Edit the HTML file to include Zero Clipboard script like this:

<script src="ZeroClipboard.js"></script>

Setup the path to SWF file, and create an instance of Zero Clipboard Client:

<script>
ZeroClipboard.setMoviePath('ZeroClipboard.swf');
var clip = new ZeroClipboard.Client();

To copy when the text “Copy to clipboard” is clicked, we add an event to “mouseDown” action – provided by Zero Clipboard – to set a text that will be copied to clipboard:

clip.setText('');

clip.addEventListener('mouseDown', function(){
 var pre = document.getElementById('pre');
 clip.setText(pre.innerHTML);
});

Note that we have to setup an empty string before add event to “mouseDown”.

Last thing is connecting Zero Clipboard to the text “Copy to clipboard” (which is defined with id=”copy”):

clip.glue('copy');
</script>

So our full Javascript code for Zero copy looks like this:


<script src="ZeroClipboard.js"></script>

<script>
ZeroClipboard.setMoviePath('ZeroClipboard.swf');
var clip = new ZeroClipboard.Client();

clip.setText('');

clip.addEventListener('mouseDown', function(){
 var pre = document.getElementById('pre');
 clip.setText(pre.innerHTML);
});

clip.glue('copy');
</script>

You can view my demo for Zero Clipboard or go to its Wiki page for more information (there’s another demo, too).
Important: If you try to make your own demo, just remember to do it online, it doesn’t work at local computer at all. This is a security restriction by Adobe Flash Player (yeah, another security reason!).

So you can see, a small functionality that we can find in almost blogs, website, is not very easy to implemented! A bad thing is that there’s no pure cross-browser Javascript solution for this exercise. Flash is the only (and the best) solution now.

There is a jQuery plugin for this job, too (it also uses Flash), but sadly I can’t make it work, even the demo at its homepage.

source;-www.deluxeblogtips.com

Top 10 antivirus of the year|The most effective top antivirus for your pc and laptop

Top Ten antivirus of The Year 2011

need to make sure that your Anti-Virus is one of the best, that’s why computer-owners should consider taking time to view this list of top 10 Anti-Virus of 2011.
1. BitDefender Antivirus Pro 2011

These 2011, BitDefender became number 1 among other anti-virus because of its proactive detection against Latest Viruses and spyware. BitDefender Antivirus Pro 2011 also provides protection against all internet security threats, along with system maintenance and backup without slowing down your PC. There are many more benefits you can get when you use Antivirus Pro Active 2011. If you want to use the no. 1 Antivirus, You can buy it online at here.

2. Kaspersky Antivirus 2011

Kaspersky Antivirus 2011 ranked 2nd place in the top 10 Antivirus.

Software of 2011 because of its magnificent real-time automated protection from a range of IT threats. Kaspersky is popular for providing anti-virus for almost several years. It got good experienced-based problem solving analysis, strong protection against all types of malware, viruses, worms, Trojans, and spyware. You can get other benefits than all of that when you use it. You can buy Kaspersky Antivirus 2011 at here.
3. Norton Antivirus 2011

All of us want to download or install files as easy as possible, maybe that’s why Norton Antivirus 2011 ranked #3 at our top ten lists. So many good feedbacks by the consumers are being received by Symantec. Symantec is the company which owns the Norton Antivirus 2011. According to the consumers, Norton Antivirus 2011 is one of the most easiest and fastest to download. Aside from that, Norton Antivirus 2011 has almost the same design from its previous version but of course, it still contains some changes to its interface. It is still in black theme and yellow text like before but moves the large graphic security status indicator from main interface window up to the taskbar and system tray icons. Aside from interface changes, there are a lot more changes from the Norton Antivirus 2011 if you’ll compare it to its previous version. If you want to buy Norton Antivirus 2011 and experience its improved service, you can buy it online at here.
4. Webroot Antivirus 2011

Webroot Antivirus 2011 is ranked #4 at top ten best antivirus these 2011 because of its award-winning Spy sweeper anti Spyware protection that made it the best Antivirus and AntiSpyware combination. Webroot provides the most accurate Antivirus computer software available. Aside from that, Webroot is also easy to use. Its interface is very easy to understand. You can also buy it online at here.
5. Vipre Antivirus 2011

Considering that Vipre is just new in the competitive field of Antivirus software, it already got the fifth ranked in the top 10 best antivirus software of 2011. At other reviews, it even ranked first. It is preferred by the consumers because the balancing act with antivirus and antispyware manages to be light-running while still securing the computer’s protection. There are many websites wherein you can buy Vipre Antivirus 2011 so it’s very easy to avail.
6. ESET NOD32 Antivirus 4

Like other Antivirus in our top 10 list ESET NOD32 Antivirus4 also provide fast, effective and easy to use protection. Compare to its older version, it also improved its interface and added some features. It ranked # 6 because it has all the main things like Heuristics, Diagnostic tools, System rescue tools covered which really suites for home users. You can visit its website where you can buy it online at here.
7. AVG Antivirus 2011

AVG just ranked #7 at our list of best antivirus software because of its some limitations like its scanning engine which is slower compared to its rival antivirus software. Sometimes it also overprotects by the means of giving false positives. Let not just focus to its disadvantages, its latest antivirus solution is now loaded with new features. Compare to its older versions, it now offers link scanner and social networking protection in a powerful way. It also offers a limited free download at their website. You can understand more of its features if you visit its website at here.
8. Avira Antivir Premium

It made it to top 8 of ten best buy antivirus software because it has advanced heuristics Analysis and detection technology that can detect even unknown viruses by their profile. Like AVG, its disadvantage is it also gives false positives sometimes. But Avira did a job well done by improving a lot compare to its previous versions. It is also recommended for beginners. You can avail free Avira Antivir Premium at here.
9. G-Data Antivirus 2011

G-data antivirus has also improved and got more new features than before. Its double scan technology is very impressive and won’t slow down your computer. Beginners loved this software because it’s much easier to use than other antivirus software. G-Date is known for providing good protection in a simple way just like for these new improved software. You can avail G-Data Antivirus 2011 at here.
10. Trend Micro Titanium Antivirus+ 2011

It just got the last rank because it needs a lot more improvement to catch up with its rivals. But like before, it still provides a good balance of protection and usability. Compare to other antivirus software, it also has features that will make you admire their product. You can avail Trend Micro Titanium Antivirus+ 2011 at here.
source:-www.hirensbootcd.org

Thursday, 22 December 2011

how to increase the bootup speed of your computer|increase booting speed of your computer

Increase booting speed of your computer


 
              Many computers take a lot of time to boot (or start ).This is due to many reasons.

Some slight changes can do wonders for your system:

1. Press start->run then type msconfig and press enter.

Go to the startup tab. Here you will see a list of startup items. These are all the programs that automatically start when you boot your PC. It is these that slow down the boot up process.
                                 So uncheck all the unwanted items like ms-office, messengers other utilities that u may not need at startup). Don't uncheck your antivirus software.

Restart your Pc to and see for yourself, your pc will now boot faster....  
  
2. A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting. By default this option is enabled, but on some systems it is not, so below is the information on how to turn it on:

Go to Start Menu and Click Run
Type in regedit then click ok
Find "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOpt imizeFunction"
Select "Enable" from the list on the right
Right on it and select "Modify"
Change the value to Y .
Reboot your Pc and see the change yourself.

3.SPEED UP BOOT BY DISABLING UNUSED PORTS.!!

You may have tried many tweaks like modifying windows XP start-up applications, prefetches, unload DLLs method, etc. And yes those methods do work for me.
                    I have just accidentally found out another way to give you an extra boost in windows XP's boot performance. This is done by disabling your unused devices in Device Manager. for example, if you don't have input devices that are connected to one of your USB's or COM ports, disabling them will give you an extra performance boost in booting. Go to Control Panel -> System -> Hardware tab -> device manager Disable devices that you don't use for your PC and then restart.

make your computer menu to load fast|speed up your applications

make your computer menu to load fast

              This is one of my favorite tweaks as it makes a huge difference to how fast your machine will 'feel'. What this tweak does is remove the slight delay between clicking on a menu and XP displaying the menu.
 
Go to Start then Run
Type 'Regedit' then click 'Ok'
Find "HKEY_CURRENT_USER\Control Panel\Desktop\"
Select "MenuShowDelay"
Right click and select "Modify'
Reduce the number to around "100"
This is the delay time before a menu is opened. You can set it to "0" but it can make windows really hard to use as menus will open if you just look at them - well move your mouse over them anyway. I tend to go for anywhere between 50-150 depending on my mood.

how to earn more money from adsense|adsense tips and tricks|how to get more traffic to your site

I want to share you some secrets I learned up until now. I am not going to tell you basic stuff like “use channels”. Also, bear with me on the graphics. I’m no designer :)

1. Blend your ads. Adsense color and font size


1.i It’s tested and it works. Use the same colour of your page background, for the border and the background of the ad.

Adsense: blend colors with your page background

1.ii Use the same colors used in your page, for the Adsense ad title, text and url link.

Adsense: blend colors of title, text and url

1.iiia If possible use the same font in your page, as the Adsense ads. Since the ads have variable text size and font, according to dimension and type of ad, you can never do this 100% right. But every little bit helps.
Real life Adsense font size and type

768×60 Ad unit:
Title: [[code]]czo3ODpcInN0eWxlPVwibGluZS1oZWlnaHQ6MTJweDsgZm9udC1zaXplOjExcHg7IGZvbnQtZmFtaWx5OnZlcmRhbmEsYXJpYWwsc2Fue1smKiZdfXMtc2VyaWZcIlwiO3tbJiomXX0=[[/code]]
Description: [[code]]czo3ODpcInN0eWxlPVwibGluZS1oZWlnaHQ6MTJweDsgZm9udC1zaXplOjEwcHg7IGZvbnQtZmFtaWx5OnZlcmRhbmEsYXJpYWwsc2Fue1smKiZdfXMtc2VyaWZcIlwiO3tbJiomXX0=[[/code]]
URL: [[code]]czo3MjpcInN0eWxlPVwibGluZS1oZWlnaHQ6MTJweDsgZm9udC1zaXplOjEwcHhcIiBmYWNlPVwidmVyZGFuYSxhcmlhbCxzYW5zLXNlcml7WyYqJl19ZlwiXCI7e1smKiZdfQ==[[/code]]



 some have verdana. Some have a 10px description text, some have 11px. And besides all that, each box may contain 1 up to 4 ads, and depending on that the font sizes will change. So it’s really up to you to experiment and see what works best for you, in as many cases as possible.

1.iv Try to not separate the ad from the content (like trashing the ad in some remote corner of your website. Integrate it within the content (in, within, next to, above, below etc).

Adsense: blend ads with the content Adsense: blend ads with the content Adsense: blend ads with the content
2. Placing ads high on a page is good

Position the ads with the highest CTR, as high as possible in the page, in the source’s order (in the image below, notice that the ad appears just below the body tag). The first ads that appear in the pages (in the source’s order) get the most income per click.

Adsense: position your ad as high as possible
3. Use images. Images and Adsense work together

Use images left or right of the ads. It makes them seen as part of the pages content, and your CTR increases. It doesn’t matter what images you use. Use any plain generic images. If you can, try to corelate those with the niche/domain of your website/blog. Be carefull not to write text, point arrows or similar on the images, as that might be seen as click incentives.

Adsense: blend ads with images

4. Earnings are variable, based on CTR

With the Smart pricing ideea, your income varies a lot, according to each of your channel’s CTR rate.

Now this is very important: It’s account-wide, not channel-wide. So if you have a very good CTR (5%-50%) for one website, and you include it in the same account with a 0.04# CTR website, you will loose money.

Remove all the websites (from your account) that don’t have at least a 5% CTR (or depeding on your overall CTR, remove the ones that are really lower than your average), or you’ll affect the income of all the other good converting websites.
5. Use non-standard types of ads

We all know that web-savvy (eg. webmasters or people that use the Internet for so many years, and know all the standards, convetions and so on) users are ad-blind.

Banners like 468×80 have been on the Internet since it’s creation. Even people who use the Internet vaguely or once a month, are kind of blind to these standard banners.

Instead, use vertical skyscrapers, or boxed ads. They have a much higher click rate. The Adsense team even published a list of their highest performing ad sizes:

    336×280 large rectangle
    300×250 inline rectangle
    160×600 wide skyscraper

use this and get more money i'm earning 300$/month
you can also earn more than that.

source:www.seopedia.org

Wednesday, 21 December 2011

How to speed up your computer|speed up your computer without any softwares|here are 9 ways to speed up your computer

speed up your computer


1. Make Sure Your Hardware is Sufficient

If you need more space then burn some details to DVD or something and then keep them safely.Better the size of Ram and hardisk more speed you earn

Above and beyond everything you can do with software to optimize the function of your computer, making sure you have the proper hardware to support Windows is critical.
2. Clean Your Desktop|delete unwanted links from desktop

Is your Windows Desktop dotted with files? Have you noticed that your computer has been running slower and slower? Do you see the hard drive light often flashing while you wait for the computer to respond to an action? There are steps you can take to fix it. Read this article.
3. Scan Your Windows System for Errors
An operating system is a collection of files that perform different functions. It is possible, over time, that one or more of these system files has changed or become corrupted. If this happens, the speed of your system may decrease. By using a utility called “System File Checking”, it will inspect these files and correct any problem it finds.
4. Scan for Viruses, Spyware and Adware

Every Windows computer is vulnerable to viruses. Viruses are nasty little programs that cause both major and minor problems for users.

Spyware and Adware are programs created by companies to find out more information about customers, so they can better market products to them. Usually these programs are not created for malicious purposes. Spyware and Adware can load into computer memory and slow it down.

Periodically scanning and removal of Viruses, Spyware and Adware is a great way to improve computer performance.
5. Uninstall Unused Programs

Over time, you may have accumulated programs on your computer that you do not use. When a program is installed, it creates connections between the program and the operating system. Even if you don’t use these programs, they can slow down your system. If you have the original program’s installation disk or file, removing programs will free up space on your computer and may speed up your system's performance.
6. Adjust Visual Effects for Better Performance

Windows provides a number of interesting visual effects including animated windows and fading menus. If you do not have enough operating memory (see above number 1), these effects can slow down your computer. Adjusting or reducing visual effects can make a difference.

To speed up Vista computers in particular you can disable features and function that are not used. For more information, read "How to Speed Up Windows Vista."
7. Don’t Automatically Start Programs

Programs use operating memory (RAM, also called system resources). Unless you always use these programs, you can keep them from loading at Windows startup and speed both the booting of your computer and its performance.
8. Defragment Your Hard Drive (After you have tried everything else)

The more information and programs you have on your computer, the more it is likely that Windows has placed parts of the same file in different locations on your hard drive. It may do this for hundreds of files and programs, depending on how much space is available. Defragmenting the hard drive places all information for each file in one place. The result can be a faster computer experience.

Important Note: Before you even try this, backup all your work onto a different computer, hard drive, CD or disk. Also, you should only do this if you have a reliable source of power for your computer. Doing this when there is a brown out or power problem in the neighborhood, is not a good idea. If a computer turns off while it is defragmenting a drive, it will create more problems than not defragmenting it in the first place.
9. Reinstall the Operating System and Programs

If you have done all the above steps and your computer does not become more responsive, you might consider reinstalling the operating system and programs. This is a scorched earth option - basically you backup all your data and user settings, wipe your hard drive clean and re-install the operating system with your original disks. Next, install all your favorite programs and restore all your data and user settings.

The nice thing about doing this is that you essentially have a new computer, free of years worth of software and registry changes, additions and errors that can turn a fast rabbit of a Windows computer into a slow turtle. The bad thing about this choice is that it takes time and planning to do it correctly. If your PC is 3 to 4 years old and continues to run slower than it did when you purchased it, this might be the only action that will make a significant difference.

How to type fastly in keyboard|speed up your typing|typing master(new)

Are you one of those people who have to look at the keyboard while typing because you are unsure where all the the letters are? 

Do you use both hands equally with each finger knowing its letter, or do you only use one hand with the occasional help of the other? Whatever your case might be, you can surely learn how to type fast and speed up your work.

The first thing you should do is learn, if you don’t already know it, the so called home row finger placement. It is the starting position for your fingers, so make sure each finger knows its place. Without that, you won’t be able to type fast without looking at the keyboard, and that is exactly what slows you down.

For those using the standard QWERTY keyboard the starting position goes like this: the thumbs are on the spacebar, the left hand fingers on the “A,” “S,” “D,” and “F” keys, while the right hand fingers on the “J,” “K,” L” and “;” keys. You will then move your fingers up or down to hit other letters, just remember to put them back to the starting position as soon as you do.

Of course, you have to memorize where the letters on the keyboard are. It might be a good idea to start learning to type two letters, then the next two and so on until you learn them all. A good tutor or software could help you do this.

You also need to be concentrated and watch your fingers as little as possible. You will probably need to look at the keyboard for a while, but with time and practice, your fingers will remember their place and you will be able to look away and type fast.

I would also suggest some simple, but efficient exercises. First, type the alphabet until you memorize where all the letters are. Then, master typing your name without looking at the keyboard. And there is one more, type this sentence, it’s good practice because it has every letter on the keyboard: “the quick brown fox jumps over the lazy dog.” And here is one more practice sentence: “Crazy Fredericka bought many very exquisite opal jewels.”

Be patient, it takes time to get used to typing fast without looking down. Your typing will be slow and full of mistakes at first, but it will get better and faster as you keep practicing.

The next step would be to practice typing paragraphs. They help a lot because your typing gets faster and faster as you repeatedly type the same words. Find some shorter paragraph to begin with, and then move on to the longer ones. Don’t worry about the mistakes.

Online activities and games can be quite helpful, for you will surely find the one for your level of speed and have fun while improving both your typing speed and your accuracy.

There is a variety of them, including those that teach you to type letter by letter, those that measure your speed by giving you words to type like Fast Typer (www.rapidtyping.com), and those that give you the whole paragraphs to practice. I would recommend  www.freetypinggame.net because it has all of the above.

You can also use some of the many tutorial programs and online typing courses to practice and check your progress. Take some of the typing tests to see how fast you are, and then take them again after some time to see your improvement.
http://imtyping.com/exercises.php is a good place to start.

Finally, let’s not forget about your typing posture. Make sure you are comfortable. Sit up straight and relax your body and your hands. If they become sore or cramped, stop and take a break.

And keep practicing! Join a forum, chat room, or a social network where you will be able to communicate with others, improve your typing speed and learn how to type fast