<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Walmik&#039;s weblog</title>
	<atom:link href="http://www.walmik.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walmik.com</link>
	<description>Frontend Developer / UX Designer</description>
	<lastBuildDate>Tue, 27 Sep 2011 03:24:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Making HTML tags more useful by custom attributes by Toggle TinyMCE rich text editor effectively</title>
		<link>http://www.walmik.com/2011/06/making-html-tags-more-useful/#comment-577</link>
		<dc:creator>Toggle TinyMCE rich text editor effectively</dc:creator>
		<pubDate>Tue, 27 Sep 2011 03:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=115#comment-577</guid>
		<description>[...] case of multiple TinyMCE textarea instances on the same page, you can pass a custom HTML attribute to the buttons that toggle TinyMCE. So if you are looping from 0 to 10 while adding textareas then [...]</description>
		<content:encoded><![CDATA[<p>[...] case of multiple TinyMCE textarea instances on the same page, you can pass a custom HTML attribute to the buttons that toggle TinyMCE. So if you are looping from 0 to 10 while adding textareas then [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript equivalent for PHP&#8217;s array_map() by Hott Dogg</title>
		<link>http://www.walmik.com/2011/08/javascript-equivalent-for-phps-array_map/#comment-428</link>
		<dc:creator>Hott Dogg</dc:creator>
		<pubDate>Mon, 22 Aug 2011 17:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=154#comment-428</guid>
		<description>Javascript has it, but in ECMA5
Unfortunately, only modern browsers support it</description>
		<content:encoded><![CDATA[<p>Javascript has it, but in ECMA5<br />
Unfortunately, only modern browsers support it</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to quickly create iPhone style on off buttons by Walmik</title>
		<link>http://www.walmik.com/2011/06/how-to-quickly-create-iphone-style-on-off-buttons/#comment-402</link>
		<dc:creator>Walmik</dc:creator>
		<pubDate>Tue, 19 Jul 2011 22:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=97#comment-402</guid>
		<description>Hi Colin,
There is a small technique that I use to add some &#039;extra&#039; value to HTML elements instead of explicitly setting a Javacscript or a PHP variable/function to check something simple. What I do is, I add a custom attribute to an HTML element to track it later via jQuery. I have not entirely understood what you want to achieve but an example would be like this:

If I had a div that I need to hide or show or simply set it on or off or whatever, I d just add an extra attribute to it like this:
&lt;code&gt;&lt;div id=&quot;device&quot; active=&quot;false&quot;&gt;Content for this div&lt;/div&gt;&lt;/code&gt;

Here I ve set &#039;active&#039; as a custom attribute to this div with id &#039;device&#039;. I can now use jQuery to get or set this attribute and based on that I can take further action. Like, if I test for 

&lt;code&gt;$(&quot;#device&quot;).attr(&quot;active&quot;)&lt;/code&gt;

If  I wanted to run a if statement to do something based on if the device is active or not, then

&lt;code&gt;if ( $(&quot;#device&quot;).attr(&quot;active&quot;) == &quot;false&quot; )&lt;/code&gt;
&lt;code&gt;{&lt;/code&gt;
   &lt;code&gt;//do something and then set the attr to true&lt;/code&gt;
   &lt;code&gt;$(&quot;#device&quot;).attr(&quot;active&quot;) = &quot;true&quot;;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;

You can check the status of this device on
&lt;code&gt;$(document).ready();&lt;/code&gt;

In case you are not accustomed to it then you d 

&lt;code&gt;$(document).ready(&lt;/code&gt;
&lt;code&gt;if ( $(&quot;#device&quot;).attr(&quot;active&quot;) == &quot;false&quot; )&lt;/code&gt;
&lt;code&gt;{&lt;/code&gt;
   &lt;code&gt;//do something and then set the attr to true&lt;/code&gt;
   &lt;code&gt;$(&quot;#device&quot;).attr(&quot;active&quot;) = &quot;true&quot;;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;
&lt;code&gt;);&lt;/code&gt;

I have even written a post on this technique on this blog on this &lt;a href=&quot;http://www.walmik.com/2011/06/making-html-tags-more-useful/&quot; rel=&quot;nofollow&quot;&gt;page&lt;/a&gt;. I hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Colin,<br />
There is a small technique that I use to add some &#8216;extra&#8217; value to HTML elements instead of explicitly setting a Javacscript or a PHP variable/function to check something simple. What I do is, I add a custom attribute to an HTML element to track it later via jQuery. I have not entirely understood what you want to achieve but an example would be like this:</p>
<p>If I had a div that I need to hide or show or simply set it on or off or whatever, I d just add an extra attribute to it like this:<br />
<code>&lt;div id="device" active="false"&gt;Content for this div&lt;/div&gt;</code></p>
<p>Here I ve set &#8216;active&#8217; as a custom attribute to this div with id &#8216;device&#8217;. I can now use jQuery to get or set this attribute and based on that I can take further action. Like, if I test for </p>
<p><code>$("#device").attr("active")</code></p>
<p>If  I wanted to run a if statement to do something based on if the device is active or not, then</p>
<p><code>if ( $("#device").attr("active") == "false" )</code><br />
<code>{</code><br />
   <code>//do something and then set the attr to true</code><br />
   <code>$("#device").attr("active") = "true";</code><br />
<code>}</code></p>
<p>You can check the status of this device on<br />
<code>$(document).ready();</code></p>
<p>In case you are not accustomed to it then you d </p>
<p><code>$(document).ready(</code><br />
<code>if ( $("#device").attr("active") == "false" )</code><br />
<code>{</code><br />
   <code>//do something and then set the attr to true</code><br />
   <code>$("#device").attr("active") = "true";</code><br />
<code>}</code><br />
<code>);</code></p>
<p>I have even written a post on this technique on this blog on this <a href="http://www.walmik.com/2011/06/making-html-tags-more-useful/" rel="nofollow">page</a>. I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to quickly create iPhone style on off buttons by Colin</title>
		<link>http://www.walmik.com/2011/06/how-to-quickly-create-iphone-style-on-off-buttons/#comment-401</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 19 Jul 2011 22:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=97#comment-401</guid>
		<description>sorry, my quotes never worked.
I have tried altering the value of the html attribute &quot;cb-status&quot; from 1 to 0.</description>
		<content:encoded><![CDATA[<p>sorry, my quotes never worked.<br />
I have tried altering the value of the html attribute &#8220;cb-status&#8221; from 1 to 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to quickly create iPhone style on off buttons by Colin</title>
		<link>http://www.walmik.com/2011/06/how-to-quickly-create-iphone-style-on-off-buttons/#comment-400</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 19 Jul 2011 22:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=97#comment-400</guid>
		<description>Hello,
Love your button! works a treat.  I wonder if you or someone can help me with something.   Bit of a noob with js/jquery.

I am using a bit of ajax to get a value from an external php script and this value (on or off) will  set the position of the switch (as well as the standard slider functions).
Basically I am using the slider to switch something on and off and need to know the current status of the device each time I load the page.

I have tried altering the html:
 &lt;b&gt;&quot;&quot;&lt;/b&gt;
to
 &lt;b&gt;&quot;&quot;&lt;/b&gt;
Using php but this makes no difference.  I am not familiar with any of the document object references used in the js.

I&#039;m guessing I will need a new js function that will set the position of the slider depending on what value I pass to the function!!?

Many thanks
Colin</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Love your button! works a treat.  I wonder if you or someone can help me with something.   Bit of a noob with js/jquery.</p>
<p>I am using a bit of ajax to get a value from an external php script and this value (on or off) will  set the position of the switch (as well as the standard slider functions).<br />
Basically I am using the slider to switch something on and off and need to know the current status of the device each time I load the page.</p>
<p>I have tried altering the html:<br />
 &lt;b&gt;&#8221;"&lt;/b&gt;<br />
to<br />
 &lt;b&gt;&#8221;"&lt;/b&gt;<br />
Using php but this makes no difference.  I am not familiar with any of the document object references used in the js.</p>
<p>I&#8217;m guessing I will need a new js function that will set the position of the slider depending on what value I pass to the function!!?</p>
<p>Many thanks<br />
Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to backup a mysql database from a remote server using the terminal by Walmik</title>
		<link>http://www.walmik.com/2011/06/how-to-backup-a-mysql-database-from-a-remote-server-using-the-terminal/#comment-303</link>
		<dc:creator>Walmik</dc:creator>
		<pubDate>Fri, 08 Jul 2011 18:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=27#comment-303</guid>
		<description>You can use ssh-keygen to generate a public/private key and then copy it over to the authorized_keys file on the remote server. And then in the /etc/ssh/sshd_config file you can set PasswordAuthentication to No. Also while you are in there, you could also set

PasswordAuthentication no
PermitRootLogin no
X11Forwarding no
UsePAM yes
UseDNS no
AllowUsers your-name

This should take the security aspect a few notches upward ;)</description>
		<content:encoded><![CDATA[<p>You can use ssh-keygen to generate a public/private key and then copy it over to the authorized_keys file on the remote server. And then in the /etc/ssh/sshd_config file you can set PasswordAuthentication to No. Also while you are in there, you could also set</p>
<p>PasswordAuthentication no<br />
PermitRootLogin no<br />
X11Forwarding no<br />
UsePAM yes<br />
UseDNS no<br />
AllowUsers your-name</p>
<p>This should take the security aspect a few notches upward <img src='http://www.walmik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to backup a mysql database from a remote server using the terminal by MySQL How To</title>
		<link>http://www.walmik.com/2011/06/how-to-backup-a-mysql-database-from-a-remote-server-using-the-terminal/#comment-301</link>
		<dc:creator>MySQL How To</dc:creator>
		<pubDate>Fri, 08 Jul 2011 18:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=27#comment-301</guid>
		<description>Nice, but what about the security aspects of doing it this way?  I supposed the use of ssh as in this case is ok but telnet?</description>
		<content:encoded><![CDATA[<p>Nice, but what about the security aspects of doing it this way?  I supposed the use of ssh as in this case is ok but telnet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making HTML tags more useful by custom attributes by Tony Lea</title>
		<link>http://www.walmik.com/2011/06/making-html-tags-more-useful/#comment-232</link>
		<dc:creator>Tony Lea</dc:creator>
		<pubDate>Thu, 30 Jun 2011 05:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=115#comment-232</guid>
		<description>Thanks for showing me this tip dude. Digging your blog posts ;)</description>
		<content:encoded><![CDATA[<p>Thanks for showing me this tip dude. Digging your blog posts <img src='http://www.walmik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Vimeo&#8217;s embed code doesn&#8217;t go well with jQuery by Tony Lea</title>
		<link>http://www.walmik.com/2011/06/vimeos-embed-code-doesnt-go-well-with-jquery/#comment-190</link>
		<dc:creator>Tony Lea</dc:creator>
		<pubDate>Sat, 25 Jun 2011 06:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=87#comment-190</guid>
		<description>Good to know :)

Digg the graphic at the beginning, and I&#039;m just checking out your latest articles. Keep it up! ;)</description>
		<content:encoded><![CDATA[<p>Good to know <img src='http://www.walmik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Digg the graphic at the beginning, and I&#8217;m just checking out your latest articles. Keep it up! <img src='http://www.walmik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 6 killer social media marketing tips for Facebook, Twitter and Linked In from the MSMM 2.0 live event at Paradise Point, San Diego by saganbyte</title>
		<link>http://www.walmik.com/2011/06/6-killer-social-media-marketing-tips-for-facebook-twitter-and-linked-in-from-the-msmm-2-0-live-event-at-paradise-point/#comment-17</link>
		<dc:creator>saganbyte</dc:creator>
		<pubDate>Thu, 09 Jun 2011 03:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.walmik.com/?p=6#comment-17</guid>
		<description>Hi Maxwell, there s an article on this blog to upload a wordpress backup on to a site and its located at http://www.walmik.com/2011/06/how-to-backup-and-upload-a-wordpress-site-from-one-host-to-another/

I hope it works for you ;)</description>
		<content:encoded><![CDATA[<p>Hi Maxwell, there s an article on this blog to upload a wordpress backup on to a site and its located at <a href="http://www.walmik.com/2011/06/how-to-backup-and-upload-a-wordpress-site-from-one-host-to-another/" rel="nofollow">http://www.walmik.com/2011/06/how-to-backup-and-upload-a-wordpress-site-from-one-host-to-another/</a></p>
<p>I hope it works for you <img src='http://www.walmik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

