<?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>DanDev.com</title> <atom:link href="http://www.dandev.com/feed/" rel="self" type="application/rss+xml" /><link>http://www.dandev.com</link> <description>Daniel&#039;s Dev Blog..ish</description> <lastBuildDate>Sat, 28 Jan 2012 18:06:25 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Gallery3 with short_open_tag off</title><link>http://www.dandev.com/php/gallery3-with-short_open_tag-off/</link> <comments>http://www.dandev.com/php/gallery3-with-short_open_tag-off/#comments</comments> <pubDate>Sat, 28 Jan 2012 18:06:25 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Software]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=246</guid> <description><![CDATA[If you are on a host that has short_open_tag off you won&#8217;t be able to use the latest Gallery 3 version(as of this writing). The developers have made this a requirement to allow template development to be a little simpler: Why do you use PHP&#8217;s short open tags? Short open tags are considered harmful by some, [...]]]></description> <content:encoded><![CDATA[<p>If you are on a host that has <a
href="http://php.net/ini.core#ini.short-open-tag" target="_blank">short_open_tag</a> off you won&#8217;t be able to use the latest <a
href="http://gallery.menalto.com/" target="_blank">Gallery 3</a> version(as of this writing). The developers have made this a requirement to allow template development to be a little simpler:</p><blockquote><h2>Why do you use PHP&#8217;s short open tags?</h2><p>Short open tags are considered harmful by some, but they result in much tighter syntax in our PHP based templates. Here are some possible ways to print &#8216;Hello World&#8217; in different template systems:</p><pre>   PHP long tags: &lt;?php echo $Hello_World ?&gt;
  php short tags: &lt;?= $Hello_World ?&gt;
             ASP: {% $Hello_World %}
          Django: {{Hello_World}}
          Smarty: {Hello_World}</pre><p>As you can see, PHP with long tags is the noisiest. The main reason for deprecating short tags is because the <strong>&lt;?</strong> token conflicts with XML tags. In our case, this is highly unlikely to ever be a problem, and even if it is it&#8217;s a vanishingly small edge case. We&#8217;re optimizing for a good developer experience here by requiring them to type less to do more. If at some point PHP short tags goes away, we can pretty easily convert the entire app over to using long tags.</p><p><strong>Short open tags will still be enabled by default in all future versions of PHP.</strong> While there was initially <a
href="http://www.php.net/~derick/meeting-notes.html#remove-support-for-and-script-language-php-and-add-php-var" rel="nofollow">an idea to change this in PHP 6</a>, plans have changed and <a
href="http://wiki.php.net/summits/pdmnotesmay09" rel="nofollow">short open tags are here to stay</a>.</p></blockquote><p>Source: <a
href="http://codex.gallery2.org/Gallery3:FAQ#Why_do_you_use_PHP.27s_short_open_tags.3F">http://codex.gallery2.org/Gallery3:FAQ#Why_do_you_use_PHP.27s_short_open_tags.3F</a></p><p>&nbsp;</p><p>So, if your host doesn&#8217;t have short tags on, or if you just don&#8217;t like to use code that requires them in general you can try out this fork I made of Gallery v3 on github:</p><p><a
href="https://github.com/drener/gallery3" target="_blank">Repo</a> | <a
href="https://github.com/drener/gallery3/zipball/master" target="_blank">Download Zip</a></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/php/gallery3-with-short_open_tag-off/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Displaying the version number in Adobe AIR</title><link>http://www.dandev.com/software/displaying-the-version-number-in-adobe-air/</link> <comments>http://www.dandev.com/software/displaying-the-version-number-in-adobe-air/#comments</comments> <pubDate>Wed, 12 Oct 2011 04:00:55 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[AIR]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[adobe]]></category> <category><![CDATA[version]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=220</guid> <description><![CDATA[In the Adobe AIR application descriptor file there are many options you can set. One of which is the tag(or in Flex SDK v4.1 and below), which lets you differentiate your release as well as utilize the Adobe AIR updater library. It can be useful to display your version number inside of your app to [...]]]></description> <content:encoded><![CDATA[<p>In the Adobe AIR application descriptor file there are many options you can set. One of which is the <versionNumber> tag(or <version> in Flex SDK v4.1 and below), which lets you differentiate your release as well as utilize the Adobe AIR updater library.</p><p>It can be useful to display your version number inside of your app to inform the user as well as help with bug reports among other reasons. In order to prevent you from having to update the version number in multiple places you can use AS3 to grab it from the application descriptor and update your text for your app on the fly, as it loads. Here is an example of how to do that:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:WindowedApplication xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span>
					   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span>
					   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span>
					   creationComplete=<span style="color: #ff0000;">&quot;windowedapplication1_creationCompleteHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> windowedapplication1_creationCompleteHandler<span style="color: #66cc66;">&#40;</span>event:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> appXML:<span style="color: #0066CC;">XML</span> = flash.<span style="color: #006600;">desktop</span>.<span style="color: #006600;">NativeApplication</span>.<span style="color: #006600;">nativeApplication</span>.<span style="color: #006600;">applicationDescriptor</span>;
				<span style="color: #000000; font-weight: bold;">var</span> ns:Namespace = appXML.<span style="color: #006600;">namespace</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				versionLabel.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">'v'</span> + appXML.<span style="color: #006600;">ns</span>::versionNumber;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:Label id=<span style="color: #ff0000;">&quot;versionLabel&quot;</span> <span style="color: #66cc66;">/&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>s:WindowedApplication<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p><a
href="http://www.dandev.com/samples/AIR%20Version%20Number.fxp">Flex Builder Project</a></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/displaying-the-version-number-in-adobe-air/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Add a click event to a BitmapImage in Adobe Flex/AIR</title><link>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/</link> <comments>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/#comments</comments> <pubDate>Wed, 05 Oct 2011 04:00:29 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[adobe]]></category> <category><![CDATA[AIR]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[bitmapimage]]></category> <category><![CDATA[Click]]></category> <category><![CDATA[graphic]]></category> <category><![CDATA[MouseEvent]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=215</guid> <description><![CDATA[You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. All you have to do is place it inside of a Graphic primitive wrapper. In MXML it would look like this: 1 2 3 4 [...]]]></description> <content:encoded><![CDATA[<p>You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. All you have to do is place it inside of a Graphic primitive wrapper. In MXML it would look like this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span>
			   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span>
			   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> graphic1_clickHandler<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Nope!'</span>, <span style="color: #ff0000;">'Click Event'</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:HGroup id=<span style="color: #ff0000;">&quot;container&quot;</span><span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>s:Graphic click=<span style="color: #ff0000;">&quot;graphic1_clickHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
			<span style="color: #66cc66;">&lt;</span>s:BitmapImage source=<span style="color: #ff0000;">&quot;path/to/image.jpg&quot;</span>
						   smooth=<span style="color: #ff0000;">&quot;true&quot;</span>
						   smoothingQuality=<span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;/</span>s:Graphic<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>s:HGroup<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p><a
href="http://www.dandev.com/samples/BitmapImage%20Click%20Event.fxp">Flex Builder Project</a></p><p>In AS3 it looks like this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span>
			   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span>
			   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span>
			   creationComplete=<span style="color: #ff0000;">&quot;application1_creationCompleteHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
			<span style="color: #0066CC;">import</span> spark.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">BitmapImage</span>;
			<span style="color: #0066CC;">import</span> spark.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">Graphic</span>;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> application1_creationCompleteHandler<span style="color: #66cc66;">&#40;</span>event:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> myBI:BitmapImage = <span style="color: #000000; font-weight: bold;">new</span> BitmapImage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				myBI.<span style="color: #006600;">source</span> = <span style="color: #ff0000;">'path/to/image.jpg'</span>;
				myBI.<span style="color: #006600;">smooth</span> = <span style="color: #000000; font-weight: bold;">true</span>;
				myBI.<span style="color: #006600;">smoothingQuality</span> = <span style="color: #ff0000;">'high'</span>;
&nbsp;
				<span style="color: #000000; font-weight: bold;">var</span> myG:Graphic = <span style="color: #000000; font-weight: bold;">new</span> Graphic<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				myG.<span style="color: #006600;">addElement</span><span style="color: #66cc66;">&#40;</span>myBI<span style="color: #66cc66;">&#41;</span>;
				myG.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, graphic1_clickHandler<span style="color: #66cc66;">&#41;</span>;
&nbsp;
				container.<span style="color: #006600;">addElement</span><span style="color: #66cc66;">&#40;</span>myG<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> graphic1_clickHandler<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Nope!'</span>, <span style="color: #ff0000;">'Click Event'</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:HGroup id=<span style="color: #ff0000;">&quot;container&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>s:HGroup<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p><a
href="http://www.dandev.com/samples/BitmapImage%20Click%20Event%20AS.fxp">Flex Builder Project</a></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>SSHD Error: buffer_get_ret: trying to get more bytes 4 than in buffer 0</title><link>http://www.dandev.com/software/sshd-error-buffer_get_ret-trying-to-get-more-bytes-4-than-in-buffer-0/</link> <comments>http://www.dandev.com/software/sshd-error-buffer_get_ret-trying-to-get-more-bytes-4-than-in-buffer-0/#comments</comments> <pubDate>Mon, 03 Oct 2011 01:18:44 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[authorized_keys]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[puttygen]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[sshd]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=225</guid> <description><![CDATA[If you have run in to an error similar to this one while setting up SSH key-based authentication in your /var/log/secure log file: 1 2 Oct 2 21:12:05 phptest sshd&#91;31998&#93;: error: buffer_get_ret: trying to get more bytes 4 than in buffer 0 Oct 2 21:12:05 phptest sshd&#91;31998&#93;: fatal: buffer_get_int: buffer error Check to make sure [...]]]></description> <content:encoded><![CDATA[<p>If you have run in to an error similar to this one while setting up SSH key-based authentication in your /var/log/secure log file:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre class="bash" style="font-family:monospace;">Oct  <span style="color: #000000;">2</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">12</span>:05 phptest sshd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">31998</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: error: buffer_get_ret: trying to get <span style="color: #c20cb9; font-weight: bold;">more</span> bytes <span style="color: #000000;">4</span> than <span style="color: #000000; font-weight: bold;">in</span> buffer <span style="color: #000000;">0</span>
Oct  <span style="color: #000000;">2</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">12</span>:05 phptest sshd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">31998</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: fatal: buffer_get_int: buffer error</pre></td></tr></table></div><p>Check to make sure your public key in ~/.ssh/authorized_keys or ~/.ssh/authorized_keys2 is on one line. The prefix &#8220;ssh-rsa&#8221; followed by a space and then your key should all be on one line. You may also have a comment after that describing the key on another line, but the whole prefix and key have to be on the same line or you will get an error similar to the above in your /var/log/secure log file. I see people running in to this problem frequently when copying a public key out of PuttyGen, which only has &#8220;ssh-rsa&#8221; on the first line of the output key.</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/sshd-error-buffer_get_ret-trying-to-get-more-bytes-4-than-in-buffer-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VerifyError: Error #1014: Class IIMEClient could not be found.</title><link>http://www.dandev.com/software/verifyerror-error-1014-class-iimeclient-could-not-be-found/</link> <comments>http://www.dandev.com/software/verifyerror-error-1014-class-iimeclient-could-not-be-found/#comments</comments> <pubDate>Mon, 12 Jul 2010 03:49:55 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[AIR]]></category> <category><![CDATA[Error #1014]]></category> <category><![CDATA[Flex 4]]></category> <category><![CDATA[IIMECLient]]></category> <category><![CDATA[VerifyError]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=189</guid> <description><![CDATA[If you have run across this error recently: VerifyError: Error #1014: Class IIMEClient could not be found. You may be wondering what it means, and more importantly how to fix it. What appears to be the sole cause of this error is your versions not matching up between your Flex/AIR SDK and the AIR application [...]]]></description> <content:encoded><![CDATA[<p>If you have run across this error recently: <strong>VerifyError: Error #1014: Class IIMEClient could not be found.</strong></p><p>You may be wondering what it means, and more importantly how to fix it. What appears to be the sole cause of this error is your versions not matching up between your Flex/AIR SDK and the AIR application descriptor file. This can happen after you update/reinstall Flash Builder, or the SDK folder manually.</p><p>The fix is pretty easy: Just open your AIR descriptor file(generally the only XML file in the project src folder) and change the xmlns to the current version of the SDK you are using(1.5.3 =&gt; 2.0 for instance). See screenshot below for an example(warning: it&#8217;s big):</p><p><a
href="http://www.dandev.com/wp-content/uploads/2010/07/air-error.png" target="_blank" rel="lightbox[189]"><img
class="alignnone size-full wp-image-190" title="air-error" src="http://www.dandev.com/wp-content/uploads/2010/07/air-error.png" alt="" width="400" height="300" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/verifyerror-error-1014-class-iimeclient-could-not-be-found/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>Windows Installer has stopped working</title><link>http://www.dandev.com/software/windows-installer-has-stopped-working/</link> <comments>http://www.dandev.com/software/windows-installer-has-stopped-working/#comments</comments> <pubDate>Tue, 06 Jul 2010 01:57:43 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[sfc]]></category> <category><![CDATA[Windows 7]]></category> <category><![CDATA[Windows Installer]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=184</guid> <description><![CDATA[If you have been unfortunate enough to run into this issue, here are a few things you can try to resolve it. These are for Windows 7 only – there are already solutions available for older versions of Windows if you search. You need a physical copy of the DVD to do a manual restore [...]]]></description> <content:encoded><![CDATA[<p>If you have been unfortunate enough to run into this issue, here are a few things you can try to resolve it. These are for Windows 7 only – there are already solutions available for older versions of Windows if you search. You need a physical copy of the DVD to do a manual restore of the files.</p><ol><li>(Re)start the Windows Installer service<ol
type="a"><li>Right-click on Computer</li><li>Click Manage</li><li>Expand Services and Applications</li><li>Select Services</li><li>Scroll down to &#8220;Windows Installer&#8221;</li><li>Right-click or double-click on it and make sure it is started and NOT disabled</li></ol></li><li>Run &#8220;sfc /scannow&#8221; from a command prompt as Administrator<ol
type="a"><li>Should see something like: windows resource protection found some corrupt files but was unable to fix them<ol
type="i"><li>Check the log to see if the problem is a corrupt file such as &#8220;msi.dll&#8221;<ol
type="1"><li>Do this by searching for &#8220;cannot repair&#8221;</li></ol></li><li>If that is the case you can restore this file from the Windows DVD by:<ol
type="1"><li>Insert the Windows DVD in the drive, cancel the autorun if it pops up</li><li>Open <a
href="http://www.7-zip.org" target="_blank">7-zip</a> and browse to &#8220;install.wim&#8221; in the DVD:\Sources folder (open it)</li><li>Inside you will find numbered folders corresponding to the windows version, open yours:<p>1=Home Basic</p><p>2=Home Premium</p><p>3=Professional</p><p>4=Ultimate</li><li>Browse to the folder for the version you have installed, and you can copy/extract the file(s) you need. In my case I needed &#8220;msi.dll&#8221; in the #\Windows\System32 folder</li><li>Note that if you are restoring a sensitive file such as this that you have to take ownership of the original file to rename/remove it before you can restore this file from the DVD, and ideally set the restored file back to the original owner and permission.</li><li>Also note that the &#8220;msi.dll&#8221; file is owned by &#8220;TrustedInstaller&#8221;, so if you are getting a security error you need to take ownership of the file to replace it and then restore TrustedInstaller as the owner. If you can&#8217;t find it when you &#8220;check&#8221; the name use &#8220;NT SERVICE\TrustedInstaller&#8221;</li></ol></li></ol></li></ol></li><li>Restore an earlier restore point(not verified to work but try it..)</li><li>Run the repair option from the installer DVD</li><li>Reinstall Windows</li></ol><p>Hope this helps someone. <img
src='http://www.dandev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/windows-installer-has-stopped-working/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flex HDividedBox/VDividedBox divider double-click event oddity</title><link>http://www.dandev.com/software/hdividedbox/</link> <comments>http://www.dandev.com/software/hdividedbox/#comments</comments> <pubDate>Wed, 02 Dec 2009 02:30:05 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Click]]></category> <category><![CDATA[DividedBox]]></category> <category><![CDATA[Divider]]></category> <category><![CDATA[Double-click]]></category> <category><![CDATA[DOUBLE_CLICK]]></category> <category><![CDATA[Event]]></category> <category><![CDATA[HDividedBox]]></category> <category><![CDATA[MouseEvent]]></category> <category><![CDATA[VDividedBox]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=171</guid> <description><![CDATA[I ran across an interesting case today while looking into an issue for someone else related to capturing the double-click event on the divider for a HDividedBox. It&#8217;s a little tricky to get the event to be captured by Flex. A quick search of the interwebs turned up nothing but people with the same issue. [...]]]></description> <content:encoded><![CDATA[<p>I ran across an interesting case today while looking into an issue for someone else related to capturing the double-click event on the divider for a HDividedBox. It&#8217;s a little tricky to get the event to be captured by Flex. A quick search of the interwebs turned up nothing but people with the same issue. There is even an <a
href="http://bugs.adobe.com/jira/browse/SDK-13">open bug in the Adobe Flex bug tracker</a>(you have to login) that seems to be the exact issue, but there is no resolution named. Through some quick experimentation I figured out you can get it to work like so:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span>
    layout=<span style="color: #ff0000;">&quot;absolute&quot;</span>
    <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;588&quot;</span>
    applicationComplete=<span style="color: #ff0000;">&quot;start()&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:HDividedBox id=<span style="color: #ff0000;">&quot;divBox&quot;</span>
    	<span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;99%&quot;</span>
    	liveDragging=<span style="color: #ff0000;">&quot;true&quot;</span>
    	doubleClickEnabled=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span>
          <span style="color: #66cc66;">&lt;</span>mx:Canvas <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;50%&quot;</span><span style="color: #66cc66;">&gt;</span>
          		<span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Text</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Some example text&quot;</span> <span style="color: #66cc66;">/&gt;</span>
          <span style="color: #66cc66;">&lt;/</span>mx:Canvas<span style="color: #66cc66;">&gt;</span>
          <span style="color: #66cc66;">&lt;</span>mx:Canvas <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;50%&quot;</span><span style="color: #66cc66;">&gt;</span>
          		<span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Text</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Some example text&quot;</span> <span style="color: #66cc66;">/&gt;</span>
	      <span style="color: #66cc66;">&lt;/</span>mx:Canvas<span style="color: #66cc66;">&gt;</span>
     <span style="color: #66cc66;">&lt;/</span>mx:HDividedBox<span style="color: #66cc66;">&gt;</span>
     <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
          <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
               <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
                    divBox.<span style="color: #006600;">getDividerAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">DOUBLE_CLICK</span>, handleDoubleClick<span style="color: #66cc66;">&#41;</span>;
               <span style="color: #66cc66;">&#125;</span>
&nbsp;
               <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleDoubleClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
                    Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Event captured!'</span><span style="color: #66cc66;">&#41;</span>;
               <span style="color: #66cc66;">&#125;</span>
          <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
     <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p>The specific resolution was to enable liveDragging and add the event to the divider itself(most people try to set it on the doubleClick property of the DividerBox).</p><p>Hopefully this post will be helpful to some people out there with the same issue!</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/hdividedbox/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>GAIQ Certified!</title><link>http://www.dandev.com/software/gaiq-certified/</link> <comments>http://www.dandev.com/software/gaiq-certified/#comments</comments> <pubDate>Sun, 15 Nov 2009 23:39:50 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[certification]]></category> <category><![CDATA[gaiq]]></category> <category><![CDATA[google analytics]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=169</guid> <description><![CDATA[So, I took the GAIQ certification test the other day and passed. It was a little harder than I expected, but not too crazy. I definitely recommend you watch all of the Google Conversion University videos about GA and be ready to look things up if you aren&#8217;t sure. A lot of the questions were [...]]]></description> <content:encoded><![CDATA[<p>So, I took the GAIQ certification test the other day and passed. It was a little harder than I expected, but not too crazy. I definitely recommend you watch all of the <a
href="http://www.google.com/support/conversionuniversity/">Google Conversion University</a> videos about GA and be ready to look things up if you aren&#8217;t sure. A lot of the questions were common sense, but there were a few tricky ones that required some advanced knowledge.</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/gaiq-certified/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flex Tip: Accessing your AS functions/properties from imported classes</title><link>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/</link> <comments>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/#comments</comments> <pubDate>Mon, 25 May 2009 22:54:10 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[application]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[class]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=151</guid> <description><![CDATA[Every once in a while you might run across a case where you need to access a property or method from the parent application, and you don&#8217;t have the ability to pass the value you need to the class. Or, for example, you&#8217;re debugging and you don&#8217;t want to write a bunch of code that [...]]]></description> <content:encoded><![CDATA[<p>Every once in a while you might run across a case where you need to access a property or method from the parent application, and you don&#8217;t have the ability to pass the value you need to the class. Or, for example, you&#8217;re debugging and you don&#8217;t want to write a bunch of code that you&#8217;ll have to remove later just to test the value of a variable.</p><p>So, with that said the process is fairly simple. The following is a hypothetical example of a class you have imported into your application:</p><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>example<span style="color: #000066; font-weight: bold;">.</span>scope
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> myVar<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;This is NOT the value we're trying to get&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> scopeExample
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> scopeExample<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #009900; font-style: italic;">// Flex 4</span>
            <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>FlexGlobals<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// make &quot;FlexGlobals&quot; available in the current scope</span>
            <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>FlexGlobals<span style="color: #000066; font-weight: bold;">.</span>topLevelApplication<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// outputs the value of myVar in the main application</span>
&nbsp;
            <span style="color: #009900; font-style: italic;">// Flex 3</span>
            <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>Application<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// make &quot;Application&quot; available in the current scope</span>
            <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>Application<span style="color: #000066; font-weight: bold;">.</span>application<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// outputs the value of myVar in the main application</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div><p>You could also use:</p><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>parentDocument<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// if the component is a child of the main application</span></pre></div></div><p>I ran across a post on Holly Schinsky&#8217;s blog the other day that had good descriptions of the various scope keywords, and a few tips. All of which is good knowledge to possess, so <a
title="Flex/AIR Application Scope Tips" href="http://devgirl.wordpress.com/2009/01/27/flexair-application-scope-tips/" target="_blank">check it out</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>PunkBuster Invalid O/S Error on Vista</title><link>http://www.dandev.com/life/punkbuster-invalid-os-error-on-vista/</link> <comments>http://www.dandev.com/life/punkbuster-invalid-os-error-on-vista/#comments</comments> <pubDate>Sat, 21 Mar 2009 00:30:41 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Games]]></category> <category><![CDATA[Life]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Error]]></category> <category><![CDATA[Invalid O/S]]></category> <category><![CDATA[PunkBuster]]></category> <category><![CDATA[Vista]]></category> <category><![CDATA[Windows]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=144</guid> <description><![CDATA[Just a quick note, for anyone having trouble playing games that have Punkbuster integrated with it. If you&#8217;re getting an &#8220;Invalid O/S Error&#8221; when you try to join a server, this is related to the game not having enough permissions to  open/alter certain files. There have been several fixes suggested, and some work for some [...]]]></description> <content:encoded><![CDATA[<p>Just a quick note, for anyone having trouble playing games that have Punkbuster integrated with it. If you&#8217;re getting an &#8220;Invalid O/S Error&#8221; when you try to join a server, this is related to the game not having enough permissions to  open/alter certain files. There have been several fixes suggested, and some work for some people&#8230; some work for others. The one that seems to solve most people&#8217;s problem is running the game as an administrator. Simply being logged in as an administrator isn&#8217;t enough because your programs are still executed with limited privileges. You just have to confirm it when they&#8217;re needed(if you have UAC enabled).</p><p>To run as administrator you have a couple of options.. if you&#8217;re running a home version of Vista, you might not have some of them:</p><ol><li>Right-click on the Shortcut or game executable and click Run as Administrator</li><li>Right-click on the game executable and Click Properties-&gt;Compatibility-&gt;Check the &#8220;Run as Administrator&#8221; box, Apply</li><li>Right-click on the Shortcut, Click the &#8220;Shortcut&#8221; tab-&gt;Advanced, Check the &#8220;Run as Administrator&#8221; box, Apply</li></ol><p>Now, with that said, none of these would work properly for me. The only solution I could find that would work is downloading <a
href="http://www.evenbalance.com/index.php?page=pbsetup.php" target="_blank">this update from PunkBuster</a>, adding my game, and hitting Update. Once updated the game ran fine without giving it extra privileges.</p><p>Good luck!</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/life/punkbuster-invalid-os-error-on-vista/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
