<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Carsonified &#187; jQuery</title>
	<atom:link href="http://carsonified.com/blog/category/dev/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://carsonified.com</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 10:17:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Karl Swedberg on jQuery</title>
		<link>http://carsonified.com/blog/dev/jquery/karl-swedberg-on-jquery/</link>
		<comments>http://carsonified.com/blog/dev/jquery/karl-swedberg-on-jquery/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:31:57 +0000</pubDate>
		<dc:creator>Keir Whitaker</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://carsonified.com/?p=3605</guid>
		<description><![CDATA[By <strong>Keir Whitaker</strong><br />Next up in our series of short interviews is Karl Swedberg. Karl is the principal author at Learning jQuery and regularly presents and blogs about JavaScript and jQuery.
Editor’s Note: Karl will be hosting a workshop on &#8220;jQuery for Designers&#8221; at The Future of Web Design New York on November 16-17 2009. You can buy your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style=""><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcarsonified.com%2Fblog%2Fdev%2Fjquery%2Fkarl-swedberg-on-jquery%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcarsonified.com%2Fblog%2Fdev%2Fjquery%2Fkarl-swedberg-on-jquery%2F" height="61" width="51" /></a></div><p>Next up in our series of short interviews is <a href="http://www.karlswedberg.com/">Karl Swedberg</a>. Karl is the principal author at <a href="http://www.learningjquery.com">Learning jQuery</a> and regularly presents and blogs about JavaScript and jQuery.</p>
<p><em><strong>Editor’s Note:</strong> Karl will be hosting a workshop on &#8220;jQuery for Designers&#8221; at <a href="http://events.carsonified.com/fowd/2009/nyc">The Future of Web Design New York</a> on November 16-17 2009. You can <a href="http://www.amiando.com/fowdnyc2009.html">buy your ticket online now</a>.<br />
</em></p>
<p><strong>For designers that might not of heard of it, what is JQuery?</strong></p>
<p><a href="http://jquery.com/">jQuery</a> is a tool to help designers and developers add interactive elements to their web pages. At the risk of oversimplifying, jQuery&#8217;s core feature is a set of commands that enable you to (a) find, or create, elements on a page and (b) do something with them. It&#8217;s JavaScript that lets designers and developers avoid the hassles of JavaScript. And since it&#8217;s JavaScript, it can do all sorts of stuff without forcing a page refresh.<span id="more-3605"></span></p>
<p><strong>In your opinion why is JQuery relevant to designers?</strong></p>
<p>JavaScript in general adds another dimension to design, and jQuery makes that other dimension easier to achieve. For designers who are familiar with CSS, writing simple jQuery scripts will feel quite familiar. For designers with Flash experience, jQuery provides a standards-based, non-proprietary, open-source alternative for creating some of the same kinds of effects and interactions as is often done with Flash.</p>
<p><strong>For those considering your workshop at The Future of Web Deisgn New York, what kind of things will you be covering?</strong></p>
<p>I&#8217;ll give a quick overview of the jQuery library, and then we&#8217;ll look at some practical ways to progressively enhance web sites for better user experiences. I&#8217;ll show some techniques for using jQuery to fill in the gaps where CSS, or at least some browsers&#8217; handling of CSS, falls short. We&#8217;ll discuss how to put animations to good use and how to avoid their abuse. And we&#8217;ll examine a few cool plugins and see how to take advantage of their power and flexibility.</p>
<p><strong>There are a number of really useful plugins available for JQuery. What are the must haves for every designer?</strong></p>
<p>It depends on the needs of the site and often the demands of the client as well. One that I find myself using quite a bit is the <a href="http://malsup.com/jquery/cycle/">Cycle Plugin</a> by Mike Alsup. At its most basic, it&#8217;s a slideshow widget that shows images one at a time with a nice transition effect between them. But the plugin is incredibly powerful and gives you the ability to do all sorts of things not just with images but with written content too. It&#8217;s particularly nice where a lot of information needs to fit in a small space.</p>
<p>I&#8217;ve also begun using the jQuery UI plugin suite quite a bit lately. It makes creating rich user interaction such as drag and drop really easy. Its components are great, too; I&#8217;ve used the dialog, tabs, and datepicker in a number of projects.<br />
<strong><br />
What do you think is the Future of Web Design?</strong></p>
<p>You mean other than a really cool conference, right? I&#8217;m afraid I&#8217;d end up looking like an idiot if I tried to predict the future of any technology. In some ways I suppose the future is going to look all too familiar until we can get rid of the albatross of certain legacy browsers. Still, it&#8217;s exciting to see what&#8217;s going on right now with the newer, better browsers, and I&#8217;m hopeful that some of the cutting edge stuff will take root and see more widespread adoption.</p>
<p>The Webkit team is doing amazing things with CSS animations and tapping into hardware graphics to make stunning visual effects. Firefox, Safari, and Chrome have been leapfrogging each other with better and better JavaScript engines &#8212; and JavaScript libraries have been tapping into the increased power and performance. We&#8217;re seeing more and more use of HTML5 elements such as canvas, audio, and video. Typography on the web is poised to get a whole lot better as progress is being made with font embedding, both on the technical side and the legal side. One thing I can be sure of is that the future of web design is going to surprise me.</p>
<img src="http://carsonified.com/?ak_action=api_record_view&id=3605&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://carsonified.com/blog/dev/jquery/karl-swedberg-on-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Handy Tips from Tipster</title>
		<link>http://carsonified.com/blog/carsonified/features/handy-tips-to-help-you-out/</link>
		<comments>http://carsonified.com/blog/carsonified/features/handy-tips-to-help-you-out/#comments</comments>
		<pubDate>Fri, 01 May 2009 12:03:29 +0000</pubDate>
		<dc:creator>Ryan Carson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://thinkvitamin.com/?p=1286</guid>
		<description><![CDATA[By <strong>Ryan Carson</strong><br />There have been a ton of helpful and interesting tips posted to Tipster recently, so I thought we&#8217;d pull a few out for you all (and give the submitters a bit of well-deserved publicity).
Topics that we&#8217;re covering are: MySQL, CSS, JavaScript, PHP, JQuery, life hacks and server admin.
MySQL Geo Search
Here&#8217;s a MySQL statement to search [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style=""><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcarsonified.com%2Fblog%2Fcarsonified%2Ffeatures%2Fhandy-tips-to-help-you-out%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcarsonified.com%2Fblog%2Fcarsonified%2Ffeatures%2Fhandy-tips-to-help-you-out%2F" height="61" width="51" /></a></div><p>There have been a ton of helpful and interesting tips posted to <a href="http://tipster.carsonified.com">Tipster</a> recently, so I thought we&#8217;d pull a few out for you all (and give the submitters a bit of well-deserved publicity).</p>
<p>Topics that we&#8217;re covering are: MySQL, CSS, JavaScript, PHP, JQuery, life hacks and server admin.</p>
<h3><a href="http://tipster.carsonified.com/categories/web-apps/mysql-geo-search/">MySQL Geo Search</a></h3>
<p>Here&#8217;s a MySQL statement to search for nearest objects to you in a database, &#8216;lat&#8217; &amp; &#8216;lng&#8217; are fields in the &#8216;items&#8217; table with the location of object and $latitude &amp; $longitude are the users location. The distance field will be the calculated distance in Km between the user and the object:</p>
<p><code>SELECT *,(((acos(sin((&quot;.$latitude.&quot;*pi()/180)) * sin((`lat`*pi()/180))+cos((&quot;.$latitude.&quot;*pi()/180)) * cos((`lat`*pi()/180)) * cos(((&quot;.$longitude.&quot;- `lng`)*pi()/180))))*180/pi())*60*1.1515*1.609344) as distance FROM `items` ORDER BY distance;<!--formatted--></code></p>
<p>By: <a href="http://mogotion.com/">Sam Machin</a><br />
<a href="http://tipster.carsonified.com/categories/web-apps/mysql-geo-search/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/css/transparent-background-images-png-fix-for-ie6-a-fe/">Transparent background images &#8211; PNG fix for IE6 &#8211; a few reminders</a></h3>
<p>When using the MS filter (via The AlphaImageLoader) to fix PNG transparency for IE6 — in your CSS, remember to:</p>
<ol>
<li>Set width and height for the element/s containing the transparent background image.</li>
<li>First set background to none — then apply filter for background image.</li>
<li>Apply &#8216;position: relative;&#8217; to any contained links to ensure functionality</li>
</ol>
<p>(Also, bear in mind that the background images can no longer be tiled or positioned via &#8216;background-position&#8217;).</p>
<p>By: <a href="http://eyelearn.org/">Prisca</a><br />
<a href="http://tipster.carsonified.com/categories/css/transparent-background-images-png-fix-for-ie6-a-fe/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/javascript/address-longitude-and-latitude-in-google-maps/">Address Longitude and Latitude in Google Maps</a></h3>
<p>Google maps does not show the Longitude and Latitude of an address you search. To get this information, enter this piece of JavaScript into you browsers address bar and hit enter:</p>
<p><code>javascript:void(prompt(&#39;&#39;,gApplication.getMap().getCenter()));<!--formatted--></code></p>
<p>A little window will then pop-up displaying the Longitude and Latitude for you. Bingo!</p>
<p>[Editor's note: If you add this to your bookmarks toolbar, it's even easier to use. Just click it whenever you're on Google Maps. Hat tip to <a href="http://kyanmedia.com">Phil Balchin</a>.]</p>
<p>By: <a href="http://www.twitter.com/zoltarSpeaks">Pete Roome</a><br />
<a href="http://tipster.carsonified.com/categories/javascript/address-longitude-and-latitude-in-google-maps/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/php/custom-details-in-code-hints-zend-studio-for-eclip/">Custom Details in Code Hints &#8211; Zend Studio for Eclipse</a></h3>
<p>Zend Studio is a brilliant platform for PHP development. In my view, well worth the cost. One of the best things about it now being built on Eclipse is the project-wide code hinting.</p>
<p>When you see the built-in code hints and highlight an option, you get loads of lovely details regarding the functions and classes that you are about to use&#8230; as you would expect from most modern IDEs. However, Zend Studio for Eclipse takes this further for your own classes and functions!</p>
<p>When you have written your classes and functions, start placing a multi-line comment just above the opening line, i.e. /**, hit Return and Studio will prompt you for data types and descriptions for your method variables.</p>
<p>This is invaluable in understanding those classes you wrote at 3:47am, 3.5 years ago and haven&#8217;t used since!</p>
<p>By: <a href="http://flipstorm.co.uk/">Simon Hamp</a><br />
<a href="http://tipster.carsonified.com/categories/php/custom-details-in-code-hints-zend-studio-for-eclip/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/css/use-a-print-stylesheet/">Use a Print Stylesheet</a></h3>
<p>Print stylesheets allow you to change the style of your page when printing, without having to provide a separate &#8220;print version&#8221; of the markup.</p>
<p>You specify a print CSS by adding &#8220;media=&#8217;print&#8217;&#8221; as an attribute to the link tag.</p>
<p><code>&lt;link rel="stylesheet" type="text/css" media="print" href="print.css"/&gt;<!--formatted--></code></p>
<p>In the print CSS you should remove unnecessary elements such as sidebars, menus, background colours, presentational images, etc so as not to waste ink and paper on parts which don&#8217;t need to be printed. You can also change the font and size to make sure the text is clear on the printed page.</p>
<p>You can even add some CSS to show the URLs of links on the page, which wouldn&#8217;t normally be seen when printing.</p>
<p><code>a[href]:after { content: &quot; (&quot; attr(href) &quot;) &quot;; }<!--formatted--></code></p>
<p>By: <a href="http://wblinks.com/">Rich Adams</a><br />
<a href="http://tipster.carsonified.com/categories/css/use-a-print-stylesheet/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/css/make-your-links-easier-to-read/">Make your links easier to read</a></h3>
<p>Instead of using { text-decoration: underline; } on your links (as browsers do by default) use:</p>
<p><code>{ border-bottom: 1px solid; }.</code></p>
<p>This makes your links easier to read, as there will be more space between the text and the line underneath, so the line will no longer cross through your &#8216;y&#8217;s and &#8216;g&#8217;s.</p>
<p>You can also then style your underline with all the usual border stylings, much more exciting than a plain underline :)</p>
<p>By: <a href="http://laurakalbag.com/">Laura Kalbag</a><br />
<a href="http://tipster.carsonified.com/categories/css/make-your-links-easier-to-read/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/jquery/manual-filmstrips-in-jquery">Manual filmstrips in jQuery</a></h3>
<p>Really simple manual photo film-strip in jQuery. Used to swap a large image on a page with that of a thumbnail elsewhere on the page, such as different photos of a product in an e-commerce store.</p>
<p><code><br />
$(document).ready(function(){<br />
imageSwapper(&quot;.thumbnails a&quot;);<br />
});<br />
<!--formatted--></code></p>
<p><code><br />
function imageSwapper(link) {<br />
$(link).click(function(){<br />
$(&amp;#039;#largeimage&amp;#039;).attr(&amp;#039;src&amp;#039;, this.href);<br />
return false;<br />
});<br />
};<br />
<!--formatted--></code></p>
<p>Just link the thumbnails to their larger versions and pop them in a div or paragraph of class thumbnails, and give the large image an ID of large image, and you are good to go!</p>
<p>By: <a href="http://www.michaelpeacock.co.uk/">Michael Peacock</a><br />
<a href="http://tipster.carsonified.com/categories/jquery/manual-filmstrips-in-jquery">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/web-apps/store-user-passwords-as-salted-hashes/">Store user passwords as salted hashes</a></h3>
<p>Just using a hash of the user password is not strong enough. If two users have the same password, they&#8217;ll have the same hash. Dictionary attacks are also still possible as the attacker can have a list of dictionary word hashes. Using a salted hash involves generating a random string of characters, which you then concatenate with the password before hashing. Two users with the same password will then have different hashes, and the stored hash will never just be a hash of a common word if the user chose a weak password. You then store the salt, and the hashed value in your database.</p>
<p><code>hash_to_store = sha1(salt + real_pass)</code></p>
<p>There are many different methods you could use too, such as concatenating the salt with a hash of the password and then hashing that, etc.</p>
<p><code>hash_to_store = sha1(sha1(real_pass) + ...</code></p>
<p>By: <a href="http://wblinks.com/">Rich Adams</a><br />
<a href="http://tipster.carsonified.com/categories/web-apps/store-user-passwords-as-salted-hashes/">Vote on this tip</a></p>
<h3><a href="http://tipster.carsonified.com/categories/life-hacks/cddvd-stuck-in-macbook/">CD/DVD stuck in Macbook</a></h3>
<p>Having gotten a DVD stuck inside my Macbook the other day, i found the only way to force eject it was to hold down the trackpad button on reboot. DVD popped right out.</p>
<p>By: <a href="http://www.twitter.com/zoltarSpeaks">Pete Roome</a><br />
<a href="http://tipster.carsonified.com/categories/life-hacks/cddvd-stuck-in-macbook/">Vote on this tip</a></p>
<p>Photo credit: <a href="http://www.flickr.com/photos/mance">flickr.com/photos/mance</a></p>
<img src="http://carsonified.com/?ak_action=api_record_view&id=1286&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://carsonified.com/blog/carsonified/features/handy-tips-to-help-you-out/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
