Tuesday, March 01, 2011

Jquery 1.51 is released!

email post

About The Code(Jquery 1.51)

The code itself is written rather cleanly in an attempt to self-document. If you've spotted some areas of code that could be improved, please feel free to discuss it on the Development mailing list. All input is gladly appreciated!
All of the code is available in two formats:

  • Compressed (which allows you to have a significantly smaller file size) and
  • Uncompressed (good for debugging and to understand what is behind the magic).
If you're interested in downloading Plugins developed by jQuery contributors, please visit the Plugins page.
jQuery is provided under the following MIT and GPL licenses.

CDN Hosted jQuery

A number of large enterprises provide hosted copies of jQuery on existing CDN networks that are available for public use. Below are links to the CDN-hosted copies of jQuery that you may hotlink to.

Download jQuery

This is the recommended version of jQuery to use for your application. The code in here should be stable and usable in all modern browsers.
The minified versions, while having a larger file size than the packed versions (note: packed version is not available in current release), are generally the best versions to use on production deployments. The packed versions require non-trivial client-side processing time to uncompress (unpack) the code whereas the minified versions do not. The packed versions of jQuery will take less time to download than the minified or uncompressed versions; however, each time the library is loaded (initially or from the browser cache) it will need to be uncompressed which will cause a non-trivial delay in the execution of any jQuery code each time it is loaded.

Current Release

Monday, February 28, 2011

Li Bai

email post

Li Bai (Chinese: , Lǐ Bái or Lǐ Bó; lived 701 – 762), also known in the West by various other transliterations, especially Li Po, is a major Chinese poet of the Tang dynasty poetry period. He has been regarded as one of the greatest poets in China's Tang period, which is often called China's "golden age" of poetry. Around a thousand existing poems are attributed to him,[1] but the authenticity of many of these is uncertain.[2] Thirty-four of his poems are included in the popular anthology Three Hundred Tang Poems.
In the area of Chinese cultural influence Li Bo's poetry has been much esteemed from his lifetime through the present day. Indeed, in China he has been known as the best of the Romantic Poets.[3] In the West his influences include many translations, adaptations, and much inspiration.

Friday, February 25, 2011

Windows 7 Service Pack 1 (SP1) is Released!

email post

Windows 7 Service Pack 1 (SP1) is Released!


Windows 7 Service Pack 1 (SP1) is an important update that includes previously released security, performance, and stability updates for Windows 7. Installing SP1 helps keep Windows 7 up to date. For more information, see What's included in Windows 7 Service Pack 1 (SP1).

How to get SP1

The recommended (and easiest) way to get SP1 is to turn on automatic updating in Windows Update in Control Panel, and wait for Windows 7 to notify you that SP1 is ready to install. It takes about 30 minutes to install, and you'll need to restart your computer about halfway through the installation.

To learn if Windows 7 SP1 is already installed

  • Click the Start button Picture of the Start button, right-click Computer, and then click Properties.
    If Service Pack 1 is listed under Windows edition, SP1 is already installed on your computer.

Disk space requirements

Make sure you have enough free disk space to install SP1 (even though much of that space will be reclaimed after the installation). If you need to create free disk space, go to Strategies for freeing disk space on the Windows website.
Installation method
Estimated amount of free disk space required
Windows Update
  • x86-based (32-bit): 750 MB
  • x64-based (64-bit): 1050 MB
Downloading SP1 from the Microsoft website
  • x86-based (32-bit): 4100 MB
  • x64-based (64-bit): 7400 MB
Installing SP1 using an installation DVD
  • x86-based (32-bit): 4100 MB
  • x64-based (64-bit): 7400 MB

CCleaner v3.04

email post

CCleaner v3.04

We're pleased to announce the release of CCleaner v3.04!

We've been working hard this month on both improving the file cleaning and the registry cleaning power of CCleaner.
Release notes:
  • Added support for Windows 7 SP1.
  • Added Internet Explorer UserData cleaning and management.
  • Added Safari cookie management.
  • Improved Google Chrome detection.
  • Added Google Chrome JumplistIcons folder cleaning.
  • Added Opera Icon Cache folder cleaning.
  • Added support for Comodo Dragon.
  • Added support for SongBird embedded browser.
  • Added support for Thunderbird embedded browser.
  • Added Registry cleaner for Sound Events.
  • Improved Registry cleaning for Unused File Extensions.
  • Improved Registry cleaning for Application Paths.
  • Added environment variable support in Custom Locations.
  • Command line exporting of embedded INIs (/export [folder path]).
  • Added cleaning for Excel Viewer, FeedDemon, WinDiff and Last.FM, Free Download Manager, Internet Download Accelerator and Internet Download Manager.
  • Improved cleaning for AntiVir Desktop, AVG AntiVirus 10.0 and Windows Media Player.
  • Improved system file detection security.
  • Minor bug fixes.

You can download now from here!

Thursday, February 24, 2011

Breaking News: Harper Campaigning in Elizabeth May's Riding

email post
Despite his claims that he doesn't want a spring election, Stephen Harper made a campaign-style spending announcement in Elizabeth May's riding of Saanich--Gulf Islands yesterday morning.


With Conservative incumbent Gary Lunn in tow, Harper announced $155 million worth of funding for a new helicopter base in the riding.

He's clearly pulling out all the stops to keep Elizabeth May from becoming Canada's first Green MP.

Why? Because she'll be such a powerful advocate for all Canadians--not just for the environment, but on a broad range of economic and social issues.

I need your help to make sure she gets elected, despite Harper's vote-buying tactics.

Obviously the Green Party doesn't have $155 million to spend. Fortunately our positive message of hope is much easier to sell.

Your gift of $155, or whatever you can afford, will allow us to reach out to voters who are tired of being bribed with their own tax dollars. Voters who are fed up with the cynical opportunism of politics-as-usual. Voters who are ready for a change.

Polls show that she's neck-and-neck with Lunn. It's going to come down to the wire. Your donation could be the deciding factor.

Together, we can elect Elizabeth May and really change the climate in parliament.

Thank you so much for your support.
johan hamels signature
Johan Hamels
Executive Director

Donate Button

Sunday, February 20, 2011

How to put a PHP Contact from in the website?

email post

PHP Contact Form (Captcha) Installation Instructions

This method is recommended if you want to include the contact form on any existing PHP page of your website (say your existing contact page). The limitation of this method is that you can only display a confirmation message and not redirect to any specific thank you page you may have. If you would rather access the contact form as a separate page, skip to Method II. Compared to this method, Method II is bit easier to implement.
Open contact-config.php and edit the below 3 variables:



$to = 'youremail@email.com';
Change youremail@email.com to the email address where you wish the contact form messages to be delivered.
$subject_prefix = 'My Website Contact';
This will be the prefix that'll be attached to the subject of all contact form email messages.
$where_included = '';
You first have to select an existing PHP page on your website where you'll be displaying the contact form. This is the name of the file where you are including the contact form. If you don't have a PHP page, don't worry. You can simply rename your existing HTML page to PHP page. For example:
contact_us.html > contact_us.php
Note: The file where you are including the contact form and the rest of contact form files must be in the same directory.
So if you are including the contact form in a file called contact_us.php, then the above variable will be:
$where_included = 'contact_us.php';
Now open the file where you are going to include the contact form, in this case contact_us.php, and put the below code to the place where you want the contact form to be displayed:
<?php include "contact.php"; ?>
Then add the below code to the very top of the same file:
<?php session_start(); ?>


That's it! Upload all the files to your server. If you load contact_us.php, the contact form should be visible.
Note: The purpose of $where_included variable is to define the action attribute of the form tag:
<form action="contact_us.php#cform">
Setting this variable incorrectly will display the form but give an error on submitting.

Method II

This method is recommended if you want to access the contact form as a separate page and would like to redirect users to a separate thank you page you may have. You can use this method even if you don't want to redirect users to a separate thank you page.
1. Change:
$use_header_footer = FALSE;
to:
$use_header_footer = TRUE;
2. $thank_you_url = '';
Add the url to your thank you page to the above variable. Example:
$thank_you_url = 'http://www.yourdomain.com/thank_you.html';
3. Change:
$where_included = '';
to:
$where_included = 'contact.php';
Open contact-header.php and contact-footer.php and put your site header and footer information in them.
That's it! Upload all the files to your server. You can now access your contact form directly by visiting:
http://www.yourdomain.com/contact.php
or:
http://www.yourdomain.com/form/contact.php
depending on where you have uploaded the contact form files.

Modifying the Looks of Your Contact Form

To modify the looks of your contact form - background color, border, fonts, etc. please modify the variables under the "COSMETICS" section in contact-config.php file. All the variables are self-explanatory.

Thursday, February 17, 2011

Introduction to jQuery

email post
[Introduction]

jQuery is a JavaScript, Library, therefore, the basis you have a bit of JavaScript, at least wrote some JavaScript is rather easy to use, and can read the follow-up teaching. jQuery's core programs is not packet hills the sea, anything can help you do the contrary, jQuery DOM document is mainly used in the operation, including the "Quick select elements (Element)" and "do something" quickly select the elements can once you select a single or multiple elements, then you can use these elements to be selected to make some changes, such as hide, show, and so on. In addition jQuery core program also strengthened the non-synchronous transfer (AJAX) and event (Event) of the features that make it easier to operate remote files and events.

For more see that jQuery is JavaScript to enhance the inherent deficiencies, you still need to write some code to accomplish the various functions you need, the difference is, the correct use of the jQuery can make your code more concise, more elegant The express, which can be seen in subsequent examples, more importantly, should also make you more rapid development of the function you want.

Perhaps you might want to say, in this era of Web 2.0, I need some more beautiful, brilliant Widgets to decorate my site, like Yahoo UI or functionality as those provided by ExtJS, jQuery there? In fact, the design of jQuery has taken into account issues such expansion, the current jQuery's plugin has hundreds, and you do not have to completely write their own hands, look around on the jQuery website, perhaps you need the function of others has been to help you get out. In terms of UI, jQuery UI associated with the plugins have already done some integration, the current independent published as jQuery UI (http://ui.jquery.com/), if you have not heard before the jQuery UI, I suggest you go website shows an example of speaking about, ah, although there may be some bug exists, but overall the standard has been a considerable, and perhaps you will be more interested in jQuery.

The following teaching content, is to acquire the jQuery John Resig's a presentation of "Building Interactive
Prototypes with jQuery "to adjust the content and comments, hoping to compare the true way to render the design implications of jQuery.


[Of]

jQuery how to "quick select elements" and "do something" mean? Please take a look at the code:

    
$ ("Div"). AddClass ("special");

$ Token money is the jQuery object, use $ ("div") is to use jQuery to select elements, you can select the file in this example all the <div> elements. Followed by the. AddClass ("special") is used to do something, this example is that all previously selected elements to add a file called "special" in the class. That is, through the $ ("div"). AddClass ("special") syntax, allowing you time to help document some <div> adding special elements of the class.

Please note that Oh, just the examples have been selected for a number of elements to do a batch operation, that is, if the document has three <div>, it will be time to find the three <div> and all subsequent action apply . That you had to use JavaScript to write in their own very different, had to write their own may need to use a loop like the syntax, and jQuery has a function of most of the batch processing function, this alone can make a more concise your program.

$ Tokens will be on the money you use jQuery in the process of learning and the most important objects (or you want $ as a function can, indeed, do), use just as you can see, by looking for elements are used, the parameters can bring. Perhaps you are not used to the money as a function name can be tokens, you can also use the name of jQuery, the money is seen as tokens jQuery an abbreviation, make you look more simple and some of the function, if you want to set yourself another acronym For example, $ j, is possible, this part of the follow-up to explain, take a look at the example has been under the result will be, and the above example is exactly the same:

    
jQuery ("div"). addClass ("special");


[Select elements]

Use the previous example $ ("div") to select elements, the parameters into the div element is that you are looking for, this is CSS selectors (CSS Selector) syntax, like CSS layout and appearance are making use of selector syntax. jQuery's CSS Selector supported include CSS 1, CSS2, and has not yet been released CSS3, also supported through the plugin can be used in XPath syntax, use the CSS, XPath syntax can easily find your page elements to be addressed , take a look at more examples below.

This is a raw HTML:

    
<div id="body">
      
<h2> Some Header </ h2>
      
<div class="contents">
        
<p> ...</ p>
        
<p> ...</ p>
      
</ Div>
    
</ Div>

Below with a series of examples, in blue and show some of the basic syntax to display the file in the dark word will be selected element.

$ ("Div")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: Select all <div>


$ ("# Body")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: Select the element id for the body


$ ("Div # body")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: Select the id for the body of <div>


$ ("Div.contents p")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: Select the class for the contents of which encase <div> <p> all the underlying


$ ("Div> div")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: Select the next layer is enclosed in <div> <div>


$ ("Div: has (div)")
<div id="body">
  
<h2> Some Header </ h2>
  
<div class="contents">
    
<p> ...</ p>
    
<p> ...</ p>
  
</ Div>
</ Div>
Explanation: and the former an example of the contrary, here is to select at least one wrap of <div> <div>


[Do something]

Teaching in the previous paragraph describes how to use jQuery to select elements, which are most of the syntax allows you to quickly select multiple elements of the first, of course, is to come next for these elements to make some changes to the selection Hello. Built-in functions through jQuery, you can:


    
Operate on the DOM, such as new or modified file node
    
Add an event handler
    
To do some basic visual effects, such as hide, show, drop-down display, fade, etc.
    
Use AJAX to send the form to get remote file content or



[Example 1] to select the all target attributes <a>, and include a paragraph in the node text.

    
$ ("A [target]"). Append ("(Opens in New Window)");

This is a raw HTML:

    
<a href="http://jsgears.com"> jsGears </ a>
    
<a href="http://google.com" target="_blank"> Google </ a>
    
<a href="http://amazon.com" target="_blank"> Amazon </ a>

Select a target attribute and the results after adding the text:

    
<a href="http://jsgears.com"> jsGears </ a>
    
<a href="http://google.com" target="_blank"> Google (Opens in New Window) </ a>
    
<a href="http://amazon.com" target="_blank"> Amazon (Opens in New Window) </ a>

[Example 2] to select the element id for the body, and modify the two css properties.

    
$ ("# Body"). Css ({
      
border: "1px solid green",
      
height: "40px"
    
});

This is a raw HTML:

    
<div id="body">
      
...
    
</ Div>

Select the element id for the body and modify the css the results of the (indicative):

    
<div id="body" style="border: 1px solid green; height: 40px">
      
...
    
</ Div>

[Example 3] on the page when the form submission to include a judge, if the username value of this field is empty, then to display help text within the block.

    
$ ("Form"). Submit (function () {
      
if ($ ("input # username"). val () == "")
        
$ ("Span.help"). Show ();
    
});

May be acting similar to the following HTML, the start span.help is hidden, if not enter the username, will show:

    
<style type="text/css">
      
. Help {display: none}
    
</ Style>
    
<form>
      
<label for="username"> Please enter a name </ label>
      
<input type="text" id="username" name="username" />
      
This field is required <span class="help"> Oh </ span>
    
</ Form>

[Example 4] When the user click to open the link id, id for the menu display blocks, and returns false to prevent the browser page is really for.

    
$ ("A # open"). Click (function () {
      
$ ("# Menu"). Show ();
      
return false;
    
});

May be acting similar to the following HTML:

    
<style type="text/css">
      
# Menu {display: none}
    
</ Style>
    
<a id="open" href="#"> control panel </ a>
    
<ul id="menu">
      
<li> <a href="#1"> Control Panel Home </ a> </ li>
      
<li> <a href="#2"> Edit Profile </ a> </ li>
      
<li> <a href="#3"> personal space management </ a> </ li>
    
</ Ul>

[Example 5] The block id for the menu screen of the dynamic effects of the following Club Fast Display:

    
$ ("# Menu"). SlideDown ("fast");

May be acting similar to the following HTML, the hidden dynamic drop-down menu will be displayed the way:

    
<style type="text/css">
      
# Menu {display: none}
    
</ Style>
    
<ul id="menu">
      
<li> <a href="#1"> Control Panel Home </ a> </ li>
      
<li> <a href="#2"> Edit Profile </ a> </ li>
      
<li> <a href="#3"> personal space management </ a> </ li>
    
</ Ul>

[Example 6] all the <div> changed to wide 300px, 20px width of text and border

    
$ ("Div"). Animate ({
        
width: '300px ',
        
padding: '20px '
      
}, 'Slow');

May be acting similar to the following HTML:

    
<div style="width: 100px; border: solid 1px red;">
      
Hello world!
    
</ Div>

PS. JQuery animate function of the core program elements of property does not change much, but through other plugin can provide more dynamic effect.

[Example 7] an example of the dynamic effects of the callback, all the <div> to hide the dynamic effects of 0.5 seconds, and then the dynamic effect of 0.5 seconds to display. hide () the second parameter is a callback function, where $ (this) was originally handled by the various elements of the program.

    
$ ("Div"). Hide (500, function () {
      
/ / $ (This) is each of the other <div>
      
$ (This). Show (500);
    
});

May be acting similar to the following HTML:

    
<div style="width: 100px; border: solid 1px red;">
      
Hello world!
    
</ Div>
    
<div style="width: 100px; border: solid 1px red;">
      
jsGears.com!
    
</ Div>

[Example 8] and find the file made sample.html all <div> fill under the floor of the original document <h1> the element id for the body

    
$ ("# Body"). Load ("sample.html div> h1");

This is a raw HTML:

    
<div id="body"> </ div>

sample.html fragments:

    
<div>
      
<h1> Hello world! </ h1>
      
<h2> This is H2 </ h2>
      
<h1> jsGears.com! </ h1>
    
</ Div>

After the implementation of the results of the code:

    
<div id="body">
      
<h1> Hello world! </ h1>
      
<h1> jsGears.com! </ h1>
    
</ Div>

[Example 9] through getJSON () to obtain information on JSON format and process data through the callback function

    
$. GetJSON ("test.json", function (data) {
      
for (var idx in data)
        
$ ("# Menu"). Append ("<li>" + data [idx] + "</ li>");
    
});

This is a raw HTML:

    
<ul id="menu">
      
<li> Item 1 </ li>
    
</ Ul>

test.json content:

    
[
      
"Hello world!",
      
"JsGears.com!"
    
]

After the implementation of the results of the code:

    
<ul id="menu">
      
<li> Item 1 </ li>
      
<li> Hello world! </ li>
      
<li> jsGears.com! </ li>
    
</ Ul>


[Continuous use function]

jQuery is a very important feature to continuously use the function (Chaining), when you select one or a group of elements, these elements can be more continuous treatment. The following example will hide all the <div>, change the text color to blue, then the effect of <div> the following screen is displayed Club:

    
$ ("Div"). Hide ();
    
$ ("Div"). Css ("color", "blue");
    
$ ("Div"). SlideDown ();

Three lines of code that can replace the following line of code, the result will be exactly the same:

    
$ ("Div"). Hide (). Css ("color", "blue"). SlideDown ();

It was very amazing? In the design of jQuery's architecture, most of the functions will be in processing the thing to do after the introduction of elements of the original and then return back to, so such a function can be followed by a continuous use. Remember at the outset of the jQuery can make your code more concise it? After reading some of the above examples, it should now be feeling a little bit.

Continuous use jQuery functions mentioned, there are two very important functions must be in this introduction. The first is the end (), this function is executed, will return "element found in the former group." The other is the find (), usage of this function as the use of $ () to find the elements of the document as a CSS selector into the implementation of the elements found after the return, the difference is $ () is to find the file, and find () is based on elements previously found elements find their bottom, like a re-filtering function.

    
$ ("Ul.open") / / [ul, ul, ul]
      
. Children ("li") / / [li, li, li]
      
. AddClass ("open") / / [li, li, li]
      
. End () / / [ul, ul, ul]
      
. Find ("a") / / [a, a, a]
      
. Click (function () {
        
$ (This). Next (). Toggle ();
        
return false;
      
}) / / [A, a, a]
      
. End (); / / [ul, ul, ul]

This piece of code above the continuous use of multiple functions, and through the end () and find () to respectively operate on different elements, detailed steps are explained as follows:


    
Find the file class to open all the <ul>
    
Under the layer of filtering out all the <li>
    
Add a class to these <li>
    
Back to previous search results, that is all <ul>
    
Then find the bottom of all <a>
    
Add an event handler for <a>
    
Back to previous search results



[Continued]

jQuery Basics of teaching this Hello, I hope to be helpful for beginners, if any misuse wrong place, I hope you feel free to correct me. Follow-up plan should be re-introduced a number of jQuery plugin useful, as a basis for the continuation of articles, so stay tuned.

Monday, February 14, 2011

How to Remove an Outlook Express Splash Screen

email post

How to Remove an Outlook Express Splash Screen

When Microsoft Outlook Express is opened, you have to wait a few moments to read your messages because the splash screen has to show first. If you've become irritated at the splash screen and you just want to get to your inbox, there is a registry fix that you can easily perform to ensure that the splash screen doesn't appear again.
Difficulty: Easy

Instructions

1 Click on the "Start" icon.
2 Click on "Run" on the Start Menu.
3 Type "Regedit" and click on "OK."
Click on each of the following items:
HKEY_CURRENT_USER
Identities
{Unique Identity}
Software
Microsoft
Outlook Express
5.0 (click on this value to see the entries in the right pane)
5 Right-click an empty space in the right pane, run your mouse pointer over "New" and then click on "DWORD Value."
6 Name the DWORD Value "NoSplash." Click on the new value to open it.
7 Change the "Value data" number to "1" and click on "OK." Exit the Registry Editor and restart Outlook Express. There won't be a splash screen.

Sunday, February 13, 2011

The most awesome shoppeR all over the world

email post
The most awesome shoppeR all over the world
The most awesome shoppeR all over the world