<?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>Norman Palardy &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/author/norman/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Tue, 02 Mar 2021 18:00:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.11</generator>
	<item>
		<title>Binary Magic with Signed Integers</title>
		<link>https://blog.xojo.com/2019/02/27/binary-magic-with-signed-integers/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 27 Feb 2019 10:00:22 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5436</guid>

					<description><![CDATA[In binary the high bit (the one immediately following the &#038;b in Xojo code) is the "sign bit". When it's set to 1, the value is interpreted as "negative" and when it's set to 0, the value is "positive". Meaning that bit is not used as part of the "number" itself.]]></description>
										<content:encoded><![CDATA[<p>In binary the high bit (the one immediately following the &amp;b in Xojo code) is the &#8220;sign bit&#8221;. When it&#8217;s set to 1, the value is interpreted as &#8220;negative&#8221; and when it&#8217;s set to 0, the value is &#8220;positive&#8221;. Meaning that bit is <em>not</em> used as part of the &#8220;number&#8221; itself.</p>
<p><span id="more-5436"></span></p>
<p>So if we start counting up values are written as:</p>
<pre>1 =&gt; &amp;b00000001
2 =&gt; &amp;b00000010
3 =&gt; &amp;b00000011</pre>
<p>and so on until we get to:</p>
<pre>127 =&gt; &amp;b01111111</pre>
<p>Now, what&#8217;s the &#8220;next number&#8221;? That would be:</p>
<pre>&amp;b10000000</pre>
<p>which this code:</p>
<pre>Dim i As Int8 = &amp;b10000000</pre>
<p>tells you is -128.</p>
<p>What does -128 look like in something like an Int16?</p>
<pre>Dim i8 As Int8 = &amp;b10000000
Dim i16 As Int16 = i8

System.DebugLog(Bin(i8)) // &lt;&lt;&lt; shows 10000000
System.DebugLog(Bin(i16)) // &lt;&lt;&lt; shows 1111111110000000</pre>
<p>Why is the int16 have all those 1&#8217;s at the beginning? It&#8217;s because if you assign:</p>
<pre>Dim i16 As Int16 = &amp;b1000000000000000</pre>
<p>you&#8217;ll find that this is -32768 or the smallest value an Int16 can hold. When you assign a little value like -128 the &#8220;lowest&#8221; 8-bit can be copied from the int8 form and the upper 8 bits have to be copies of the &#8220;sign bit&#8221; &#8211; that first one after the &#8220;&amp;b&#8221;.</p>
<p>This is called <a href="https://en.wikipedia.org/wiki/Sign_extension">sign extension</a> and is required when you move a smaller type into a larger one &#8212; like moving an Int8 into an Int16 or an Int8 into an Int32.</p>
<p>Failing to do this for <em>signed</em> values (i.e. if the code did something like &#8220;fill the upper part with 0s&#8221;):</p>
<pre>Dim i8 As Int8 = &amp;b10000000
System.DebugLog(Bin(i8))

Dim i16 As Int16 = &amp;b0000000010000000
System.DebugLog(Bin(i16))</pre>
<p>would have the Int8 value saying it held -128 and the Int16 saying it held 128 (<em>note the sign change!</em>) and this would totally wreck trying to do any math.</p>
<p>Remember this is all necessary in order to manage the sign of an integer. It is not necessary with unsigned types such as UInt8, UInt16, etc.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How Code One-Liners Can Make Debugging Harder</title>
		<link>https://blog.xojo.com/2019/02/12/how-code-one-liners-can-make-debugging-harder/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Tue, 12 Feb 2019 10:00:59 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Remote Debugging]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5410</guid>

					<description><![CDATA[A lot of times you'd think that a single line of code, aka a "one-liner" might not have any downside. But I'd argue that it does. You can't put a break point on the code that runs when the condition is true. Sometimes this may not matter. But when it does, like when you want to step into the method or code that IS run, you have to turn the one-liner into a multi-line if...end if statement.*]]></description>
										<content:encoded><![CDATA[<p>A lot of times you&#8217;d think that single lines of code, aka &#8220;one-liners&#8221;, like</p>
<pre>if j &gt;= 145 condition then dosomething()
</pre>
<p>or</p>
<pre>if condition then return
</pre>
<p>might not have any downsides. I would argue that they do.</p>
<p><span id="more-5410"></span></p>
<p>You can&#8217;t put a <a href="https://documentation.xojo.com/getting_started/debugging/debugger_usage.html#Breakpoint">break point</a> on the code that runs when the condition is true. And though sometimes this may not matter, when it does, like when you want to step into the method or code that <em>is</em> run, you have to turn the one-liner into a multi-line <a href="https://documentation.xojo.com/api/code_execution/if.html...Then...Else">If&#8230;End If</a> statement.<sup>*</sup></p>
<pre>if j &gt;= 145 condition then 
  dosomething()
end if
</pre>
<p>or</p>
<pre>if condition then 
  return
end if
</pre>
<p>This allows you to put the break point on the code and not on the conditional. If it is code that gets run a lot, this can be a big deal.</p>
<p>This is why, as I go through the Xojo IDE code base, I usually remove one-liners and turn them into multi-line if &#8230; end if statements. This way I can break on the code and not the conditional, and in some cases this saves many hundreds of calls and having to step through the code.</p>
<p>As always, remember that what you do today can save your sanity or break it tomorrow! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><sup>*</sup> Yes if you want to debug the called method <em>every</em> time you can put the break point in the called method. If you want to only break in this specific case, you have to rewrite the if statement so you can put a break on the method call line.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>#If vs. If and Conditional Compilation</title>
		<link>https://blog.xojo.com/2019/01/28/if-vs-if-and-conditional-compilation/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Mon, 28 Jan 2019 10:00:19 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5378</guid>

					<description><![CDATA[There was a curious question on the forums about what # meant. The # by itself doesn't "mean" anything. It isn't like *, ^, + or - in that sense. It's not an operator.]]></description>
										<content:encoded><![CDATA[<p>There was a curious question on the forums about <a href="https://forum.xojo.com/52133-what-does-mean">what # meant</a>.</p>
<p>And from the way it was asked I could see the asker was thinking &#8220;I know what <strong>If</strong> means but what about that # in front of it?&#8221; And that if they knew what the # meant that the entire thing would make more sense.</p>
<p>And that&#8217;s a fair thought &#8211; except for one problem. The # by itself doesn&#8217;t &#8220;mean&#8221; anything. It isn&#8217;t like *, ^, + or &#8211; in that sense. It&#8217;s not an operator.</p>
<p><span id="more-5378"></span></p>
<p>#If isn&#8217;t just a special form of &#8220;if&#8221; with a # in front of it that behaves differently at runtime. #If is a completely different thing that only has meaning at the time your code is being compiled and will not exist in the final compiled code.</p>
<p>#If only has meaning to the compiler and can be used to include or exclude code from being sent to the compiler.</p>
<p>For instance if you have code like:</p>
<pre>dim s as string
#if targetMacOS
 s = "macOS"
#endif

#if targetWindows
  s = "Windows"
#endif

msgbox s</pre>
<p>Then when you run this code on a Mac you effectively get:</p>
<pre>dim s as string
s = "macOS"
msgbox s
</pre>
<p>And the code for Windows hasn&#8217;t just been skipped &#8211; it doesn&#8217;t exist in the macOS version.</p>
<p>This is an enormously powerful and useful feature called <a href="https://documentation.xojo.com/topics/os_information/conditional_compilation.html">conditional compilation</a> and it can be used in all kinds of ways.</p>
<p>Conditional compilation lets you have a common API for code that actually has to be platform specific and to hide that platform specific requirement from the rest of the code that uses the method. You can read more about this in the <a href="http://documentation.xojo.com/api/compiler_directives/＃if...＃endif.html">Xojo Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Some Follow-Up Regarding ByRef</title>
		<link>https://blog.xojo.com/2019/01/24/some-follow-up-regarding-byref/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 24 Jan 2019 20:57:43 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ByRef]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5376</guid>

					<description><![CDATA[Some Follow-Up Regarding ByRef. What happens if instead of trying to assign a new array you just alter the values in the array passed in?]]></description>
										<content:encoded><![CDATA[<p>A reader asked me to clarify something about my <a href="https://blog.xojo.com/2019/01/23/byref-vs-reference-types/" target="_blank" rel="noopener">previous post</a>. Their question was:</p>
<blockquote><p>When MyMethod is written as:</p>
<pre>Sub MyMethod( i() as integer )
  i = array(10,20,30)
  system.debuglog CurrentMethodName + " i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))
End Sub</pre>
<p>What happens if instead of trying to assign a new array you just alter the values in the array passed in?</p></blockquote>
<p><span id="more-5376"></span></p>
<p>They are asking what happens if MyMethod is written as follows:</p>
<pre>Sub MyMethod( i() as integer )
  i(0) = 10
  i(1) = 20
  i(2) = 30
  system.debuglog CurrentMethodName + " i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))
End Sub</pre>
<p>Are the contents of the array altered when you get back to the calling method?<br />
To test this, in a new desktop project we have:</p>
<pre>Dim i() As Integer
i = Array(1,2,3)
System.debuglog CurrentMethodName + " i(0) = " + Str(i(0)) + " i(1) = " + Str(i(1)) + " i(2) = " + Str(i(2))
MyMethod(i)
System.debuglog CurrentMethodName + " i(0) = " + Str(i(0)) + " i(1) = " + Str(i(1)) + " i(2) = " + Str(i(2))</pre>
<p>and run this code we see something like:</p>
<pre>9:46:13 AM : My Application Launched
             Window1.Open i(0) = 1 i(1) = 2 i(2) = 3
             Window1.MyMethod i(0) = 10 i(1) = 20 i(2) = 30
             Window1.Open i(0) = 10 i(1) = 20 i(2) = 30
</pre>
<p>And indeed the values changed do remain when we get back to the caller. Why is this the case? We didn&#8217;t use ByRef and still could alter the array?</p>
<p>Recall that ByRef is needed when you want to change the <strong>instance</strong> referred to. And in this case that isn&#8217;t what we&#8217;re doing. We&#8217;re altering the contents, but not the instance itself. We&#8217;re not replacing the entire array with a new one.</p>
<p>This works with classes as well. If you pass an instance in you can alter that instance&#8217; properties based on normal scope rules.</p>
<p>The moral of the story &#8211; ByRef is used when you want to alter the actual item. When its a value type like an integer this alters the value it holds. When its a reference type this would allow you to assign a new instance.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ByRef vs. Reference Types</title>
		<link>https://blog.xojo.com/2019/01/23/byref-vs-reference-types/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 23 Jan 2019 10:00:21 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ByRef]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5336</guid>

					<description><![CDATA[Let's talk about the difference between a "reference type" and the BYREF modifier on a passed parameter.]]></description>
										<content:encoded><![CDATA[<p>Let&#8217;s talk about the difference between a reference type and the <a href="https://documentation.xojo.com/api/language/byref.html">ByRef</a> modifier on a passed parameter. I&#8217;ll start with something simple, an integer.</p>
<p>If you have code like:</p>
<pre>dim i as integer = 1
system.debuglog "Before call i = " + str(i)
call MyMethod(i)
system.debuglog "After call i = " + str(i)
</pre>
<p>and MyMethod is written as</p>
<pre>Sub MyMethod( i as integer ) 
  i = i + 1

  system.debuglog CurrentMethodName + " i = " + str(i)
End Sub</pre>
<p>When you run this code you would see<br />
<code><br />
Before call i = 1<br />
MyMethod i = 2<br />
After call i = 1<br />
</code><br />
Following along, before the call i is set to 1. Then the call is made and because i as not passed ByRef, it is passed by value (<a href="https://documentation.xojo.com/api/language/byval.html">ByVal</a>), a copy of the value is sent to MyMethod in a temporary variable also named i &#8211; but this a <em>copy</em> not an original.</p>
<p>The method is run, i is altered to be 2 and the message &#8220;MyMethod i = 2&#8221; printed to the log. Then the method ends, the temporary variable is disposed of and the main code still has the original copy of i so the last message printed showing i is unchanged. To preserve the method&#8217;s change back in the caller you need to make the parameter be ByRef and then the <em>actual</em> variable is passed instead of a new temporary being created.</p>
<p>Now let&#8217;s apply this same sequence to a reference type like an array:</p>
<pre>dim i() as integer = Array(1, 2, 3)
system.debuglog "Before call i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))
call MyMethod(i)
system.debuglog "After call i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))</pre>
<p>and MyMethod is written as</p>
<pre>Sub MyMethod( i() as integer ) 
  i = array(10,20,30)
  system.debuglog CurrentMethodName + " i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))
End Sub</pre>
<p>With a reference type (see my earlier post <a href="https://blog.xojo.com/2018/12/12/what-kind-of-variable-are-you/">What Kind of Variable Are You</a> if you need any help with that) what we are altering is the contents that are referred to &#8211; but not the specific instance that is referred to. So running the code you see this output:</p>
<pre>Before call i(0) = 1 i(1) = 2 i(2) = 3
Window1.MyMethod i(0) = 10 i(1) = 20 i(2) = 30
After call i(0) = 1 i(1) = 2 i(2) = 3</pre>
<p>So just like with the previous integer example, the reference is not permanently altered despite the effort to do so. Again, in order to change what the parameter refers to you <em>must</em> use ByRef.</p>
<p>If MyMethod were written as such you would be altering the reference that the caller refers to.</p>
<pre>Sub MyMethod(byref i() as integer )
  i = array(10, 20, 30)
  system.debuglog CurrentMethodName + " i(0) = " + str(i(0)) + " i(1) = " + str(i(1)) + " i(2) = " + str(i(2))
End Sub</pre>
<p>Which is not the same as a reference type. The output of the above method is this:</p>
<pre>Before call i(0) = 1 i(1) = 2 i(2) = 3
Window1.MyMethod i(0) = 10 i(1) = 20 i(2) = 30
After call i(0) = 10 i(1) = 20 i(2) = 30</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What kind of variable are you?</title>
		<link>https://blog.xojo.com/2018/12/12/what-kind-of-variable-are-you/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 12 Dec 2018 14:44:45 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Variable]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5242</guid>

					<description><![CDATA[When I ask "What kind of variable are you?" I don't mean "Are you an Integer, a String, a Variant, an Object?". I am asking "are you a value type or a reference type?". What's the difference between the two?]]></description>
										<content:encoded><![CDATA[<p>When I ask &#8220;What kind of variable are you?&#8221; I don&#8217;t mean &#8220;Are you an Integer, a String, a Variant, an Object?&#8221;. I am asking &#8220;are you a <strong>value type</strong> or a <strong>reference type</strong>?&#8221;. What&#8217;s the difference between the two?</p>
<p><span id="more-5242"></span></p>
<p><strong>Value types hold the value directly.</strong> In Xojo this includes Integers of all kinds, Doubles or Colors. When you put a value into one, the memory address for this variable is set to whatever the correct binary representation for the value is. So lines like:</p>
<pre>dim i as integer
i = 32
</pre>
<p>will:</p>
<ol>
<li>set aside a memory location, in the dim line, to hold an integer</li>
<li>the second line will put the correct binary representation of &#8220;32&#8221; into the memory address set aside in step 1</li>
</ol>
<p>And then there are reference types. Note: This is not the same as &#8220;<a href="http://documentation.xojo.com/api/language/byref.html">ByRef</a>&#8221; in a method parameter declaration although it&#8217;s related. <strong>Reference types do not store the data in the memory address assigned to the variable.</strong> They have a pointer to some other memory area that actually holds the data. So lines like:</p>
<pre>dim p as Picture
p = new Picture(10,10)
</pre>
<p>will:</p>
<ol>
<li>set aside a memory location, in the dim line, to hold a pointer (reference)</li>
<li>the second line will allocate enough memory to hold the picture somewhere else in memory and then put the correct address of this block of memory into the memory address set aside in step 1</li>
</ol>
<p>Most reference types in Xojo are reasonably easy to identify &#8211; you have to use <a href="http://documentation.xojo.com/api/language/new.html">New</a> to create one from scratch. But there are a few that might catch you unaware. And the difference between value types and reference types causes no end of confusion with code like this:</p>
<pre>dim p1, p2 as Picture
p1 = new Picture(10,10)
p2 = p1
</pre>
<p>While many expect that this will &#8220;copy&#8221; the picture from p1 and create a new one for P2 thats not what happens at all. Instead this code will:</p>
<ol>
<li>In the DIM line, set aside memory locations to hold pointers (references), one for each of p1 and p2.</li>
<li>The second line will allocate enough memory to hold the picture and then put the correct address of this block of memory into the memory address set aside in step 1 for P1.</li>
<li>The last line will take the address that is in the location for P1 and put it into the location set aside for P2.</li>
</ol>
<p>This results in both p1 and p2 now containing the same address &#8211; they both refer to the same underlying Picture object. So changing either one will make it appear like the other has changed as well.</p>
<p>As I said earlier, most times you have to use New to access a variable that is a reference type. However, <a href="http://documentation.xojo.com/api/language/arrays.html">arrays</a> are reference types so you have to be careful with them. Suppose you have a module that returns an array and the array is supposed to be set up once and then reused in many places. But the users might alter the array that was returned. Something like the following:</p>
<pre>Module Fonts
  Function FontList() as String()
    if not mInitialized then
      for i as integer = 0 to FontCount - 1
        mFonts.append Font(i)
      next
      mInitialized = true
  end if
  return mFonts
End Function

Private Property mFonts() as string
Private Property mInitialized as boolean
End Module</pre>
<p>and then somewhere else in your application you have</p>
<pre>Sub FontUser()
  dim fontslist() as string = Fonts.FontList()

  // and lets get rid of all fonts with names starting with "a"
  for i as integer = fontlist.ubound downto 0
    if fontslist(i).left(1) = "a" then
      fontslist.remove i
    end if
  next
End Sub</pre>
<p>What happens? The code calling the FontList method gets back a reference to the exact same array stored in the module, and then proceeds to remove entries from it. So the next time you call the method they are not present. They appear to have magically disappeared &#8211; but they haven&#8217;t. Both the FontUsers reference to the array and the one stored in the module refer to the same array and so altering one alters the other.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Are your macOS apps ready for 64-bit?</title>
		<link>https://blog.xojo.com/2018/12/04/are-your-macos-apps-ready-for-64-bit/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Tue, 04 Dec 2018 10:00:03 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5208</guid>

					<description><![CDATA[To help developers check if their software is ready for 64-bit, Apple added a new tool for developers in Xcode 9. With this tool, you can force macOS to run as "64-bit only" to see if your software is ready for a 64-bit only environment.]]></description>
										<content:encoded><![CDATA[<p>To help developers check if their software is ready for 64-bit, Apple added a new tool for developers in Xcode 9. With this tool, you can force macOS to run as &#8220;64-bit only&#8221; to see if your software is ready for a 64-bit only environment.<br />
<span id="more-5208"></span><br />
<strong>To try your apps in this test mode:</strong></p>
<ol>
<li>Launch Terminal</li>
<li>Execute the following command: <strong>sudo nvram boot-args=&#8221;-no32exec&#8221;</strong></li>
<li>Restart macOS</li>
</ol>
<p>64-bit test mode prevents 32-bit processes from launching. Launching an app that depends on 32-bit software results in a notification that the application can&#8217;t be opened. Other types of software may fail silently, such as 32-bit versions of Dashboard and WebKit plugins, preference panes, and background processes. Disable the test mode once the software is updated to work in 64-bit.</p>
<p><strong>To disable the test mode:</strong></p>
<ol>
<li>Launch Terminal</li>
<li>Execute the following command: <strong>sudo nvram boot-args=“”</strong></li>
<li>Restart the machine</li>
</ol>
<p>Remember that macOS High Sierra 10.13 is the last version to run &#8220;32-bit software without compromises&#8221;. Although <a href="https://appleinsider.com/articles/18/06/05/mojave-is-apples-last-version-of-macos-to-support-32-bit-apps">macOS Mojave 10.14 still runs 32-bit software</a>, subsequent versions are expected to be 64-bit only.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Which DLLs can I move and where?</title>
		<link>https://blog.xojo.com/2018/06/03/which-dlls-can-i-move-and-where/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Sun, 03 Jun 2018 10:00:47 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DLL]]></category>
		<category><![CDATA[Universal Runtime]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=4307</guid>

					<description><![CDATA[A helpful run through explaining why you can move some DLLs and you cannot move others.]]></description>
										<content:encoded><![CDATA[<p>After seeing <a href="https://forum.xojo.com/47913-included-windows-runtime-dll-files">this conversation</a> on the forums, I thought it would be helpful to run through why you can move some of your app&#8217;s DLLs but you cannot move others.</p>
<p>On Windows, the Visual Studio C Runtime DLLs can be in one of two locations on systems that do not already have them installed. All versions of Windows prior to Windows 10 would need these installed.</p>
<p><span id="more-4307"></span></p>
<p>Arguably the &#8220;best&#8221; place is to install them in the Windows\System directory so that normal OS updates will keep them up to date. This requires the use of an installer as putting files in the Windows\System directories needs elevated privileges.</p>
<p>The other place they can be is right next to the app executable itself &#8212; but not in a subdirectory like plugins can be.</p>
<p>Why can&#8217;t they be in a subdirectory like plugins? When the OS starts to load and execute your application the OS loads whatever DLLs are required as part of starting the app. These required DLLs must be available where the OS finds them; not where the Xojo framework would because your app isn&#8217;t running yet. And since the app isn&#8217;t running yet the app cannot alter where the OS looks for them.</p>
<p>Normally <a href="https://msdn.microsoft.com/en-us/library/7d83bc18.aspx">Windows looks in these locations:</a></p>
<ol>
<li>The directory where the executable module for the current process is located.</li>
<li>The current directory.</li>
<li>The Windows system directory. The <strong>GetSystemDirectory</strong> function retrieves the path of this directory.</li>
<li>The Windows directory. The <strong>GetWindowsDirectory</strong> function retrieves the path of this directory.</li>
<li>The directories listed in the PATH environment variable.</li>
</ol>
<p>For plugins, the Xojo runtime is specifically loading the DLLs using LoadLibrary and in that case the framework can tell exactly where to look (and where not to look) for the required DLLs which is why they can be in &lt;appname&gt; Libs or just Libs. And this is why the Visual Studio C Runtimes cannot be moved but plugin DLLs can be.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Getting the MySQL Server Version</title>
		<link>https://blog.xojo.com/2018/05/14/getting-the-mysql-server-version/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Mon, 14 May 2018 10:00:30 +0000</pubDate>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=4283</guid>

					<description><![CDATA[Do you need to know what version of MySQL you're using in code? Maybe you need one of the many other configuration parameters that MySQL offers? It's simple to do it in SQL with this code snippet.]]></description>
										<content:encoded><![CDATA[<p>Do you need to know what version of MySQL you&#8217;re using in code? Maybe you need one of the many other configuration parameters that MySQL offers? It&#8217;s easy to get this information with some simple code!</p>
<p><span id="more-4283"></span></p>
<pre>Dim db As New MySQLCommunityServer

db.Host = "somehost"
db.port = &lt;port # for your mysql server&gt;
db.DatabaseName = "somedbname"
db.UserName = "someuser"
db.Password = "somepassword"

If db.Connect Then

  Dim rs As RecordSet = db.SQLSelect("select @@Global.version")

  While rs &lt;&gt; Nil And rs.eof &lt;&gt; True

    // and here you get a row with the value selected

    rs.MoveNext

  Wend
End If
</pre>
<p>There are a whole host of possible items you can select this way.  See all your <a href="https://dev.mysql.com/doc/refman/5.5/en/variables-table.html">options</a> at the MySQL Docs site.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Code Tip: Be Careful With Loops</title>
		<link>https://blog.xojo.com/2018/03/14/code-tip-be-careful-with-loops/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 14 Mar 2018 07:16:10 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[LLVM]]></category>
		<category><![CDATA[Loops]]></category>
		<category><![CDATA[Uint8]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3979</guid>

					<description><![CDATA[Every once in a while we get a question or post like this one that wonders why a loop might turn into an infinite loop or why it doesn't behave as expected and stop when the loop reaches the limit. And this behaviour is not specifically a Xojo thing, most programming languages do this. In fact, there are some very well know encryption algorithms, like BlowFish, that rely on this behaviour.]]></description>
										<content:encoded><![CDATA[<p>Every once in a while we get a question or post like <a href="https://forum.xojo.com/conversation/post/377126">this one</a> that wonders why a loop might turn into an infinite loop or why it doesn&#8217;t behave as expected and stop when the loop reaches the limit.</p>
<p><span id="more-3979"></span></p>
<p>In this case the specific FOR NEXT loop in question is :</p>
<pre>For X As UInt8 = 0 To 255 
  Dim strAnything As String = "Hello World" 
Next
</pre>
<p>If you run this code you&#8217;ll find that it runs forever. You&#8217;ve accidentally created an infinite loop.</p>
<p>How did this come to be this way? There are two things involved. One is what range of values a Uint8 can actually store. And the second is the actual code generated for the for loop itself. When these two combine the stopping conditions will never occur.</p>
<p><a href="http://developer.xojo.com/integer-size-specific">Uint8 values</a> can hold a range of values like any integer. They are all positive. And the range is from 0 &#8211; 255.</p>
<p>So a Uint8 will NEVER hold a value &gt; 255 or &lt; 0.</p>
<p>Combine this with the fact that a FOR loop is generated using roughly this underlying code</p>
<pre>Dim loopCounter As UInt8
Dim loopLimit As Integer = 255
Dim loopBase As Integer = 254
Dim loopStep As Integer = 1

loopCounter = loopBase

loopTop:
  If loopCounter &gt; loopLimit Then
    GoTo loopEnd
  End If
  
  // loop body code would be here
  // its been elided to focus on the actual loop mechanics
  //    dim strAnything as string = "Hello World" 
  // 
  loopCounter = loopCounter + loopStep // NOTE THIS CAN CAUSE OVERFLOW !

  GoTo LoopTop

loopEnd:
</pre>
<p>This is NOT the actual code used. It is just a Xojo version of the actual underlying <a href="https://blog.xojo.com/2018/01/24/compilers-104-ir-generation/">LLVM IR</a> code that gets generated.</p>
<p>Hopefully this explains the confusion. Since a Uint8 cannot hold a value greater than 255, you will find that when loopCounter IS already 255 and the increment, or loopStep in this example, is added to the existing value the loopCounter goes NOT from 255 to 256 but back to 0. It wraps around. This isn&#8217;t a bug.</p>
<p>The addition of the loopStep value causes the Uint8 to overflow since the value 256, in binary, requires 9 bits, not 8 but the Uint8 can only hold 8 bits. And so when you add it the 8 bits the value <em>can</em> hold are all 0 and the loop counter resets to 0.</p>
<p>And this behavior is not specifically a Xojo thing, most programming languages do this. In fact, there are some very well know encryption algorithms, like <a href="https://en.wikipedia.org/wiki/Blowfish_(cipher)">BlowFish</a>, that rely on this  .</p>
<p>In the specific sample code that prompted this post, a loop counter that is an Integer or Uint16 is needed because they can hold values that exceed the loops upper bound.</p>
<p>Loops that count down have a similar problem. but counting down and underflowing instead of overflowing.</p>
<p>The moral of the story is to stick to using the general <a href="http://developer.xojo.com/integer">Integer data type</a> unless you have a specific need for a <a href="http://developer.xojo.com/integer-size-specific">size-specific Integer type</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Constants</title>
		<link>https://blog.xojo.com/2018/02/12/setting-constants/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Mon, 12 Feb 2018 07:30:43 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Constant]]></category>
		<category><![CDATA[RGBA]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3869</guid>

					<description><![CDATA[A recent thread on the forums discussed why a particular bit of code would not compile he felt the error message seemed less than helpful: "CRghtColr As Color = Color.RGBA(000,061,255,208)". So, if you ever happen to see this, check to see that you are following the rules about what is allowed for the default value of a constant.]]></description>
										<content:encoded><![CDATA[<p>A <a href="https://forum.xojo.com/45837-bug-set-global-property-or-constant-to-rgba">recent thread</a> on the forums discussed why a particular bit of code would not compile he felt the error message seemed less than helpful: &#8220;CRghtColr As Color = Color.RGBA(000,061,255,208)&#8221;.</p>
<p><span id="more-3869"></span></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3870" src="https://blog.xojo.com/wp-content/uploads/2018/02/Screen-Shot-2018-02-03-at-4.15.25-PM.png" alt="" width="946" height="456" /></p>
<p>CRightColr is set up as a shared color property. And the person wanted the default value to be set from the Color.RGBA function. When you try this you get an error.</p>
<pre style="padding-left: 30px;">Window1.CRghtColr Declaration
Not enough arguments: got 0, expected 4.
Private Shared CRghtColr As Color = Color.RGBA(000, 061, 255, 208)</pre>
<p>It&#8217;s confusing as it&#8217;s not clear what requires more parameters. However, the <a href="http://developer.xojo.com/userguide/modules$adding-constants">User Guide</a> quite clearly states that <em>Constants can be assigned only a literal value, another constant value or the result of a constant expression.</em></p>
<p>A literal is easy &#8211; it&#8217;s something like &amp;cFF00FF00 &#8211; a color literal. A constant value would be assigning one constant to another. Say you had another constant:</p>
<pre style="padding-left: 30px;"> cColor as color = &amp;cffffff00</pre>
<p>You could then assign:</p>
<pre style="padding-left: 30px;">Private Shared CRghtColr As Color = cColor
</pre>
<p>And this would be fine.</p>
<p>A &#8220;constant expression&#8221; is a little less obvious here. It&#8217;s literally an expression made up only of constant values. This example should make it clearer:</p>
<pre style="padding-left: 30px;">Const constant1 as integer = 90
Const constant2 as integer = 100
Const constant3 as integer = constant1 + constant2 // constant1 + constant2 is a constant expression
</pre>
<p>Note that none of the allowable ways to set a constant include calling a function like Color.RGBA. Unfortunately while the compiler tries its best to make sense of what you&#8217;re trying to do, this one confuses it and you get this somewhat unhelpful error message.</p>
<p>So, if you ever happen to see this, check to see that you are following the rules about what is allowed for the default value of a constant.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Supporting Multiple Cores</title>
		<link>https://blog.xojo.com/2018/01/25/supporting-multiple-cores/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 25 Jan 2018 20:13:00 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Threads]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3832</guid>

					<description><![CDATA[With today's multi-core CPU's it seems that an application made with Xojo running on a single core is somewhat restricting. If you have a lot of data to process, large images to manipulate or other things that could happen in the background, it would seem that with a multi-core machine you could do this faster "if only Xojo would make threads preemptive". If you think you need preemptive threads today, try the helper application approach and I think you'll be pleasantly surprised at how well it works.]]></description>
										<content:encoded><![CDATA[<p>With today&#8217;s multi-core CPU&#8217;s it seems that an application made with Xojo running on a single core is somewhat restricting. If you have a lot of data to process, large images to manipulate or other things that could happen in the background, it would seem that with a multi-core machine you could do this faster &#8220;if only Xojo would make threads preemptive&#8221;. We get a lot of requests for preemptive threads so that people can take advantage of multiple cores.</p>
<p><span id="more-3832"></span></p>
<p>It&#8217;s been suggested that this should be <em>easy</em> to do. Just make threads preemptive (so that they will then run on any available core) and voila! Unfortunately, it&#8217;s not that simple. Let&#8217;s look at why the current threads are not preemptive. It&#8217;s hard for you, the developer, to work with preemptive threads. Some languages, like Java, have language features built in to them to try and help make this less work, but it is still hard to get right and very hard to debug when you don&#8217;t. Much of the framework would need updating to be thread safe and your application&#8217;s user interface is not thread safe on any platform because the operating systems themselves don&#8217;t have thread-safe user interface code. If you access something from a pre-emptive thread and that something is not thread-safe, there&#8217;s a very good chance your application is going to crash. We have had to go to a lot of extra work just to make the threads you have today work without causing problems.</p>
<p>The Xojo language already has functions like mutex and semaphores that help you make a multi-threaded program. But you have to protect every place you might set a value that could be shared by many threads. This would mean protecting any globals and pretty much anything that is not local to the method or the thread being executed. That&#8217;s very different than what you have to do today and a lot more work. It&#8217;s just not <em>simple</em> or <em>easy to use</em> the way most of Xojo is designed to be.</p>
<p>The end goal is to use all cores and thereby make your software more responsive, faster, or able to handle more data, or do more things all at the same time. There&#8217;s been a way to do this for as long as Xojo has supported building console applications. The design is to create a main application (GUI or not) and use other helper applications to run separate tasks. The main application and the helpers can communicate in any one of several ways: IPCSockets, TCPSockets, UDPSockets, XML, files, or just about any other way you can dream of. The upside to this way of solving the problem is you can design and implement the main application and the helpers independently and use the debugger to debug each independently. You can use any data in either program in the same way you always have. You don&#8217;t have to worry about the framework being thread safe as the helper and main application run as completely separate processes with their own memory space. Most importantly, you can do this today.</p>
<p>I&#8217;m not going to say it&#8217;s simple. You have to think about what portion of your application can be segmented out into a helper console application. You have to design the communications between the main and helper applications. You have to write, test and debug them. But you don&#8217;t have to worry about variables changing mysteriously because some other thread changed the value. You don&#8217;t have to use lots of mutexs or sempahores to block other threads from altering things when you least expect them. And you can use the entire framework that is available to console applications. Last but not least, you can run as many instances of these helper applications as your computer (or all the computers available to you) can run.</p>
<p>If you think you need preemptive threads today, try the helper application approach and I think you&#8217;ll be pleasantly surprised at how well it works.</p>
<p>For more information: <a href="https://blog.xojo.com/2013/07/26/take-advantage-of-your-multi-core-processor/">Take advantage of your multi-core processor</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Control Subclass Constructors</title>
		<link>https://blog.xojo.com/2018/01/11/control-subclass-constructors/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 11 Jan 2018 07:12:12 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Constructor]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3641</guid>

					<description><![CDATA[A constructor is a special method that is used to initialize a class. They are very handy, but when you use them with control subclasses you have to be aware of how a control's properties are initialized. Perhaps you've run into this situation:

“I have a constructor on my control and the values that I set in the constructor don’t stick.”]]></description>
										<content:encoded><![CDATA[<p>A constructor is a special method that is used to initialize a class. They are very handy, but when you use them with control subclasses you have to be aware of how a control&#8217;s properties are initialized. Perhaps you&#8217;ve run into this situation:</p>
<p>“I have a constructor on my control and the values that I set in the constructor don’t stick.”<span id="more-3641"></span></p>
<p>But, indeed IF you put a break point in the constructor for your control subclass you will see it definitely gets called. And the values you set are present when the constructor is exited.</p>
<p>What most people miss is that if you made your public properties into computed ones and put a break point in the setter you’d find that this gets called AFTER the constructor.</p>
<p>And this is REALLY relevant.</p>
<p>Normally a control instance on a layout is created and configured using code much like:</p>
<pre>  // the next line obviously calls the constructor
  dim c as Control = new &lt;your custom control subclass name&gt;

  // and IF you had a computed property and
  // set a break point in each computed property setter
  // you will see each setter get called in turn

  c.SetAllProperties( paramarray of property names and values )</pre>
<p>and so the first calls to the setters are what put the values you set in the Inspector onto your control.</p>
<p>And this is what people do not usually expect.</p>
<p>But how else would you get all those properties onto the control and NOT require every control subclass to have a special constructor ?</p>
<p>Usually the advice is “put your set up code in the Open event” which is often too late.</p>
<p>IF you do set property values you want to keep in the constructor there are a few choices.</p>
<ol>
<li>Don&#8217;t make these properties “public” as every public property will be set in the “SetAllProperties” call. PER INSTANCE properties should be unique to that instance and so they all get set if they are public. Private and protected properties won’t.</li>
<li>Make your public properties into computed properties and “skip” the first call to the setter so whatever value you set in the constructor does not get written over by the call to SetAllProperties.</li>
<li>Make the properties public and set the initial values in the inspector (which is IMHO the &#8220;right&#8221; way to do this)</li>
</ol>
<p>I’ve put together <a href="http://great-white-software.com/miscellaneous/control_constructors.xojo_binary_project.zip">a sample</a> you can put break points in to see that the constructor and setters for public properties are called exactly as described.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Aren&#8217;t those Xojo keywords?</title>
		<link>https://blog.xojo.com/2017/10/24/arent-those-xojo-keywords/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Tue, 24 Oct 2017 08:05:31 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Reserved Words]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3462</guid>

					<description><![CDATA[Many times we get bug reports or feature requests about issues with keywords not highlighting or being colorized in the code editor. But are those actually language "keywords" in Xojo?]]></description>
										<content:encoded><![CDATA[<p>Many times we get bug reports or feature requests about issues with keywords not highlighting or being colorized in the code editor. But are those words actually language &#8220;keywords&#8221; or reserved words in Xojo?</p>
<p>In reality none of the intrinsic types are reserved words. They&#8217;re just types in the global namespace. Xojo knows where a type name is required and it will only look for types in that context. The opposite holds true as well. In effect, the types are treated as if they live in their own namespace.</p>
<p><span id="more-3462"></span></p>
<p>What that means is code like this, while possibly confusing to you and I, is perfectly legal:</p>
<pre>Function String() As String
 Return "1"
 End Function

Sub Test()
 Dim string As String = String
 Print(string)
 End Sub

Test()
</pre>
<p>I wouldn&#8217;t necessarily encourage this style, but you can see why &#8220;the code editor isn&#8217;t highlighting these &#8220;keywords&#8221; is not wrong. Check the Developer Center for a full list of Xojo&#8217;s <a href="http://developer.xojo.com/reserved-words">Reserved Words</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Raise Your Events The Right Way</title>
		<link>https://blog.xojo.com/2017/08/09/raise-your-events-the-right-way/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 09 Aug 2017 19:01:21 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=3174</guid>

					<description><![CDATA[An Event Definition can have a Return Type defined. What is the syntax for RaiseEvent to make use of the Return Type? There are actually 2 valid ways to do this, learn them both and decide for yourself what is best for your project.]]></description>
										<content:encoded><![CDATA[<p>The other day I was asked: &#8220;<em>Dumb question of the day! An Event Definition can have a Return Type defined. What is the syntax for RaiseEvent to make use of the Return Type?&#8221;</em></p>
<p>But this <em>isn&#8217;t</em> a dumb question at all since there are actually two valid ways to do this. I find one more obvious than the other. Here are both solutions so you can decide for yourself:</p>
<p><span id="more-3174"></span></p>
<p>The first is to use it just like any other function you write.</p>
<p>Say you add an event definition &#8220;GetHeight&#8221; that returns an Integer. You could write code that looks like this:</p>
<pre>dim h as integer = GetHeight( parameters )
</pre>
<p>Just like any FUNCTION.</p>
<p>The other way you can write this is to use the <a href="http://developer.xojo.com/raiseevent">RaiseEvent</a> command:</p>
<pre>dim h as integer = RaiseEvent GetHeight( parameters )
</pre>
<p>I think this second option makes it clearer that you <em>are</em> using an event, not a method, like a function and expecting a return value. There really are no dumb questions, and asking them on the <a href="https://forum.xojo.com">Xojo Forums</a> can help you and others in the community learn best practices.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using a Property as a Constant</title>
		<link>https://blog.xojo.com/2017/05/15/constant-property/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Mon, 15 May 2017 14:59:22 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unicode]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=2681</guid>

					<description><![CDATA[Wikipedia says: In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant.&#8230;]]></description>
										<content:encoded><![CDATA[<p>Wikipedia says:</p>
<blockquote><p>In <a title="Computer programming" href="https://en.wikipedia.org/wiki/Computer_programming">computer programming</a>, a <b>constant</b> is a <a title="Value (computer science)" href="https://en.wikipedia.org/wiki/Value_(computer_science)">value</a> that cannot be altered by the <a title="Computer program" href="https://en.wikipedia.org/wiki/Computer_program">program</a> during normal execution, i.e., the value is <i>constant</i>.</p></blockquote>
<p>In Xojo we have constants that can be defined in code or added to modules, classes, etc. What you&#8217;ll notice about Wikipedia&#8217;s definition of &#8220;constant&#8221; is that it&#8217;s a behavior, not a specific type.</p>
<p>There is another way to define a &#8220;constant&#8221; or &#8220;a value that doesn&#8217;t change throughout the run of your application&#8221;.</p>
<p><span id="more-2681"></span></p>
<p>A <a href="http://developer.xojo.com/userguide/properties$computed-property">computed property</a> with only the Get method defined that returns the same value every time is also &#8220;constant&#8221; in that it won&#8217;t vary as your program runs. It just happens to be labelled as a &#8220;property&#8221; and is also referred to as a &#8220;read-only&#8221; property. But the reality is if you set up a computed property that returns the same value every time you essentially have a &#8220;computed constant&#8221;.</p>
<p>Consider using one the next time you need something like a String or Text that is a series of Unicode code points since you can&#8217;t define one in the Property or Constant Editors without a bit of work (i.e. you can&#8217;t just type in &amp;u21BE or a bunch of unicode code points one after the other).</p>
<p>If there are other values that you need to compute at runtime but remain consistent throughout a run of your application this is a decent way to make that happen.</p>
<p>There are some downsides because this is not a constant as far as the language is concerned. You cannot use it in these ways:</p>
<ul>
<li>as a compile time check using #if</li>
<li>as part of another constant expression</li>
<li>as a default parameter value</li>
<li>as a default property value</li>
<li>as a declare library name</li>
</ul>
<p>There may be other situations as well.</p>
<p>If you truly need an actual constant type, the alternative is to go to <a href="http://unicode.org/">unicode.org</a> and copy and paste the symbols into the Constant Editor. This is a little more work but lets you define a true constant that is a bunch of Unicode code points.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Tip: Pass Values Between Windows with an API</title>
		<link>https://blog.xojo.com/2017/04/27/pass-values-with-an-api/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 27 Apr 2017 15:36:22 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[API]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=2577</guid>

					<description><![CDATA[It may not be obvious how to avoid having to reach inside another window (or dialog etc.) to get and set values. We have all have done this, but it really is something to avoid. Here's a small app to demo how to make an API to avoid reaching in.]]></description>
										<content:encoded><![CDATA[<p>A question on the Xojo Forum got me thinking that it may not be obvious how to avoid having to reach inside another window (or dialog etc.) to access its controls to get and set values. I&#8217;m sure we all have done this at one time or another but it really is something you should avoid. Here&#8217;s a small app to demo how to make an API instead:</p>
<p><span id="more-2577"></span></p>
<ol>
<li>Create a new desktop app</li>
<li>Add a new window and set its frame type to &#8220;movable modal&#8221; name it &#8220;myDialog&#8221;</li>
<li>Add two Buttons one with the caption &#8220;cancel&#8221; and one with &#8220;close&#8221;</li>
<li>Add a property &#8220;cancelled as boolean&#8221; and make sure its scope is public</li>
<li>Add the action event to the cancel button and add this code:</li>
</ol>
<pre>cancelled = true
self.close</pre>
<ol>
<li>Add a textfield name &#8220;userText&#8221; (so the user can enter something and we can send it back to the caller just to illustrate)</li>
<li>Add another property &#8220;userEnteredText as string&#8221;</li>
<li>In the &#8220;close&#8221; button add this code to its action event:</li>
</ol>
<pre>userEnteredText = userText.text
self.close</pre>
<p>Lastly, turn OFF implicit instance for the myDialog window.</p>
<p>With this technique Cancelled and userEnteredText are the &#8220;API&#8221; portion of this dialog that the rest of your app uses and cares about. In a more complex example you might return many values or a class instance but the principles are not radically different.</p>
<p>To use this in your code:</p>
<ol>
<li>On Window1 add a button and a text field &#8211; name the text field &#8220;fromDialog&#8221;</li>
<li>Add the action event to the button</li>
<li>In the action event put this code:</li>
</ol>
<pre>       dim dlg as new myDialog

       dlg.ShowModal

       if not dlg.Cancelled then
              fromDialog.text = dlg.userEnteredText
       end if</pre>
<p>Run the project to try it out.</p>
<p>You&#8217;ve now successfully made an API so whatever is using this dialog doesn&#8217;t need to know <em>how</em> things work, such as how the dialog presents and stores information. All you need to know is that you create one, tell it to &#8220;run&#8221; (the ShowModal call) and when it&#8217;s done you can ask it for &#8220;did the user cancel&#8221; and if they didn&#8217;t you can ask the dialog for &#8220;what did that user enter?&#8221; and get a reply.</p>
<p>Beyond that you don&#8217;t need to know the names of controls or anything else that dialog doesn&#8217;t want you to know about. Next time you need to do something along these lines now you know how to &#8220;make an API&#8221; you can use and save yourself a lot of headaches down the road.</p>
<p>For another way to make an input window like this, check out the example that is included with Xojo: Examples/Desktop/Windows/InputWindow.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Controls on Layouts: Who owns what?</title>
		<link>https://blog.xojo.com/2017/04/10/controls-on-layouts-who-owns-what/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Mon, 10 Apr 2017 06:36:42 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=2480</guid>

					<description><![CDATA[Recently there was a question posted on the Xojo Forum about why a protected property on a control subclass could not be manipulated by an&#8230;]]></description>
										<content:encoded><![CDATA[<p>Recently there was a question posted on the Xojo Forum about why a protected property on a control subclass could not be manipulated by an event handler in an instance event handler.</p>
<p><span id="more-2480"></span></p>
<p>What the person had set up was a new control subclass with a custom protected property. Then they placed an instance of this subclass on a window layout and added one of the event handlers for the control. And in that event handler they were trying to alter the protected property. Everything seemed reasonable from their perspective.</p>
<p>To reproduce this:</p>
<p style="padding-left: 30px;">1. Create a new desktop project.</p>
<p style="padding-left: 30px;">2. Add a new subclass of a PushButton. Call it &#8220;MyButton&#8221;.</p>
<p style="padding-left: 30px;">3. Add a new protected property to your MyButton class.</p>
<pre style="padding-left: 60px;">value as integer = 6</pre>
<p style="padding-left: 30px;">4. Drag MyButton onto the Window1 layout.</p>
<p style="padding-left: 30px;">5. Add the Action event handler to the MyButton1 control now on Window1.</p>
<p style="padding-left: 30px;">6. In the action event handler add this code:</p>
<pre style="padding-left: 60px;">me.Value = 99</pre>
<p style="padding-left: 30px;">7. Run the project.</p>
<p>Since the MyButton control event handler appears to be &#8220;part of the control&#8221;, it seems like the protected Value property should be accessible, right?</p>
<p>But it is not accessible. When you run the project, you get a compile error in the event handler that says:</p>
<p>&#8220;This property is protected. It can only be used from within its class.&#8221;</p>
<p>Let me explain why this happens. While the IDE shows you that the event is part of the control on the Window, it really isn&#8217;t part of the control. The event handler is not part of the class. That would mean <em>every</em> instance would have the exact same code to handle the event and that is most definitely not true. And the code is not part of the control since instances don&#8217;t get extra methods just by being created. (Imagine you did &#8220;new date&#8221; and all the sudden it had extra methods properties which we all know is not true)</p>
<p>So how are events handled for instances on a layout? They use AddHandler. The IDE actually creates a method that is then hooked up to that control&#8217;s event handler using AddHandler. But note, the method the IDE creates is not part of the control. It&#8217;s actually a method on the window that handles the event.</p>
<p>And since that method is not part of the control it cannot reach in and touch a protected property.</p>
<p>Follow these steps and you can see what&#8217;s going on.</p>
<p style="padding-left: 30px;">1. Create a new desktop project.</p>
<p style="padding-left: 30px;">2. Add a new class &#8211; Class1 &#8211; (not a subclass of anything).</p>
<p style="padding-left: 30px;">3. Add a protected property to this class (protected value as integer = 5).</p>
<p style="padding-left: 30px;">4. Add a new event definition &#8220;Action()&#8221;.</p>
<p style="padding-left: 30px;">5. And we need to add a method that will raise this event eventually. This IS something the framework does for us already. So add a method, foo(), that has as it&#8217;s code:</p>
<pre style="padding-left: 60px;">RaiseEvent Action()</pre>
<p style="padding-left: 30px;">6. Add a property to Window1 &#8211; &#8220;Private instance as Class1&#8221;.</p>
<p style="padding-left: 30px;">7. Add a method to Window1:</p>
<pre style="padding-left: 60px;">DoAction(me as Class1)</pre>
<p style="padding-left: 30px;">8. In this method put this code:</p>
<pre style="padding-left: 60px;">me.value = 99
</pre>
<p style="padding-left: 30px;">7. In the open event of Window1 put this code:</p>
<pre style="padding-left: 60px;">instance = new class1
addhandler instance.Action, AddressOf self.DoAction
instance.foo()</pre>
<p>And this almost exactly replicates how a control and its event handlers are set up. Note the event handler is not part of the control, it&#8217;s part of the Window. It cannot touch the protected property.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Working and Saving with Subversion</title>
		<link>https://blog.xojo.com/2017/03/16/working-and-saving-with-subversion/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 16 Mar 2017 07:00:36 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[SVN]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=2450</guid>

					<description><![CDATA[It's a simple, quick way to work with your Xojo code with SVN.]]></description>
										<content:encoded><![CDATA[<p><a href="https://en.wikipedia.org/wiki/Apache_Subversion">Apache Subversion</a> (SVN) is a popular, open source versioning and revision control system. We use it here at Xojo.</p>
<p>You will have times when SVN will update the files on your drive, such as when you update from the server. Xojo does not automatically detect these changes, so most people resort to closing the project file and re-opening it in order to get the new changes displayed in Xojo. In fact, Xojo includes an IDE script to do just that: Examples/Advanced/IDE Scripting/ReloadProject.</p>
<p>There&#8217;s another solution. Here&#8217;s my tip for what I do to quickly have the IDE load those changes without having to close and re-open the project:</p>
<ul>
<li>Save my changes in Xojo</li>
<li>Merge incoming changes from SVN to my local working copy</li>
<li>Touch ONE item in the IDE. For example, change one letter in a property and then change it back.</li>
<li>Select File-&gt;Revert to Saved</li>
</ul>
<p>Voila! The newly merged code on the disk is loaded into the Xojo IDE. It&#8217;s a simple, quick way to work with your Xojo code and SVN.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Do you still ASCII?</title>
		<link>https://blog.xojo.com/2017/02/17/do-you-still-ascii/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Fri, 17 Feb 2017 07:00:30 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[ASCII]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=2200</guid>

					<description><![CDATA[From time to time we get code that illustrates a problem a user is having when they rely on old-school ASCII. This problem can occur&#8230;]]></description>
										<content:encoded><![CDATA[<p>From time to time we get code that illustrates a problem a user is having when they rely on old-school ASCII. This problem can occur when using the Chr function to create a character.</p>
<p>One example we see reasonably frequently is code to create a string that contains a quote like:</p>
<pre> dim someString as String = chr(34) + "someValue" + chr(34)</pre>
<p>This style is not necessary and may give unwanted results if you have an unusual string encoding. Instead, you can write this without the use of the Chr function. Here&#8217;s how:</p>
<p><span id="more-2200"></span></p>
<p>Simply put 2 quotes inside the string value where you want one to appear like so:</p>
<pre> dim someString as String = """someValue"""</pre>
<p>Or create a constant, put one quote in the constant and write it like this:</p>
<pre> dim someString as String = kQuote + "someValue" + kQuote</pre>
<p>The other one we see  from time to time is very similar:</p>
<pre> // trying to use "extended ascii" from a list like http://www.asciitable.com
 dim someString as String = chr(179) + "someValue" + chr(179)
</pre>
<p>This one is subtly worse since Chr returns a valid ASCII character only for values &lt;= 127 and returns the character that is that code point for values &gt; 127. Since your string is actually UTF8, when you use chr(179) you get ³ (<a href="http://www.isthisthingon.org/unicode/index.phtml?glyph=00B3">a superscript 3</a>) and not the vertical bar you might have expected from the ASCII chart.</p>
<p>You can create a constant for the vertical bar symbol or you can use this code that references a specific <a href="http://documentation.xojo.com/api/text/encoding_text/textencoding.html">TextEncoding</a> where the vertical bar is 179:</p>
<pre> Dim verticalBar As String = Encodings.DOSLatin1.chr(179)</pre>
<p>So remember, ASCII is not as commonly used these days.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Xojo IDE Script Menu Shortcuts</title>
		<link>https://blog.xojo.com/2016/09/22/ide-script-menu-tip/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Thu, 22 Sep 2016 09:20:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Scripting]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=1495</guid>

					<description><![CDATA[In the Xojo IDE Scripts Menu there are some new shortcuts you may find helpful. The items in the IDE Scripts menu under File &#62;&#8230;]]></description>
										<content:encoded><![CDATA[<p>In the Xojo IDE Scripts Menu there are some new shortcuts you may find helpful.</p>
<p>The items in the IDE Scripts menu under File &gt; IDE Scripts now have shortcuts assigned for the first nine items (these are the scripts that you add to the Scripts folder). On OS X the shortcuts are Cmd + Option + digit and on Windows and Linux they are Ctrl + Alt + digit.</p>
<p>And for those scripts that do not get shortcuts assigned, selecting them from the menu will run them.</p>
<p>On OS X, if you hold down the Ctrl key + the above shortcut, then the script will be opened in the editor instead of run. On Windows and Linux holding the Shift key in addition to the above shortcut will accomplish this. These modifiers also works if you select the item from the menu. Hold the Ctrl key on OS X or Shift key on Windows and Linux the item will be opened in the editor instead of run.</p>
<p>Read more about <a href="http://developer.xojo.com/userguide/ide-scripting">IDE Scripting in the User Guide</a>.</p>
<p>Happy IDE Scripting!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Avoid this Remote Debugging Gotcha</title>
		<link>https://blog.xojo.com/2016/07/19/remote-debugging-gotcha/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Tue, 19 Jul 2016 06:59:35 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Remote Debugging]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=1125</guid>

					<description><![CDATA[An interesting thread on the forums turned up something that more of us should consider when working in any cross-platform tool, Xojo included. What was discovered was perhaps&#8230;]]></description>
										<content:encoded><![CDATA[<p>An <a href="https://forum.xojo.com/33582-the-max-dll-issue-on-windows/p2#p274932">interesting thread on the forums</a> turned up something that more of us should consider when working in any cross-platform tool, Xojo included.</p>
<p>What was discovered was perhaps something obvious: that a legal filename on OS X may not work when you try to remote debug to Windows.</p>
<p>What occurs is:</p>
<ul>
<li>the application gets built as it should on OS X for Windows (a Windows exe + dll&#8217;s etc) into a <a href="https://en.wikipedia.org/wiki/Tar_(computing)">tar file</a></li>
<li>the copy files step executes and inserts the files into the tar file</li>
<li>the tar file is transmitted to the Windows Remote Debugger Stub</li>
<li>the tar file is then un-tarred</li>
</ul>
<p>It is this last step is where things fail.</p>
<p>OS X has no trouble with a filenames that contain characters that are <a href="https://msdn.microsoft.com/en-ca/library/windows/desktop/aa365247(v=vs.85).aspx">illegal on Windows</a>. In particular, a &#8220;:&#8221; is allowed on OS X, but not on Windows. The reverse is also true if you work on Windows and remote debug to OS X, as there are characters that OS X won&#8217;t accept that are legal on Windows. Apple has a great guideline for <a href="https://support.apple.com/en-us/HT202808">cross-platform filename best practices and conventions</a>.</p>
<p>So the copy file step can copy in a file that has an illegal name as far as Windows is concerned, but not OS X. When the un-tarring fails to create this file it also (currently) <a href="feedback://showreport?report_id=44452">fails to let you know</a> it failed. So the remote stub will still try and launch the application which fails because necessary items are now missing. Check for this situation if you&#8217;re having odd problems remote debugging. An update to the remote stub is in development that fixes this problem.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Untie These Chains &#8211; A Solution</title>
		<link>https://blog.xojo.com/2016/07/15/untie-these-chains-solution/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Fri, 15 Jul 2016 13:14:36 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Function Chain]]></category>
		<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=1123</guid>

					<description><![CDATA[Earlier I posed the question about why these two similar bits of code do slightly different things: dim path1 as string = """C:\users\ieuser\desktop\new folder""" path1 =&#8230;]]></description>
										<content:encoded><![CDATA[<p>Earlier I posed the question about why these two similar bits of code do slightly different things:</p>
<pre style="padding-left: 30px;">dim path1 as string = """C:\users\ieuser\desktop\new folder"""
path1 = path1.mid(2)
path1 = path1.left(path1.len()-1)
 
dim path2 as string = """C:\users\ieuser\desktop\new folder"""
path2 = path2.mid(2).left(path2.len()-1)</pre>
<p>The issue here is the second bit of code, not the first. In the second each function in the chain returns a result and these results are held in temporary variables with the next function in the chain applied to that. The problem comes with:</p>
<pre style="padding-left: 30px;">left(path2.len()-1)
</pre>
<p>Why? Because path2 has not been altered yet. It is as if this is evaluated as:</p>
<pre style="padding-left: 30px;">dim path2 as string = """C:\users\ieuser\desktop\new folder"""

dim t1, t2 as string
t1 = path2.mid(2)
t2 = t1.left(path2.len()-1)</pre>
<pre style="padding-left: 30px;">path2 = t2</pre>
<p>Now you can see the issue. Where we compute t2 we want the altered length to be able to calculate the right number of characters to retain. But we don&#8217;t have access to that temporary, so your solution is to do something like this:</p>
<pre style="padding-left: 30px;">dim path2 as string = """C:\users\ieuser\desktop\new folder"""
path2 = path2.mid(2).left(path2.mid(2).len()-1)</pre>
<p>And now they both give us the same value!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Untie These Chains &#8211; A Riddle</title>
		<link>https://blog.xojo.com/2016/07/15/untie-these-chains-a-riddle/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Fri, 15 Jul 2016 10:02:14 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Function Chain]]></category>
		<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://blog.xojo.com/?p=1121</guid>

					<description><![CDATA[Here&#8217;s a riddle for you! Suppose you are in the habit of using &#8220;function chaining&#8221; like this to reduce your lines of code: path2 =&#8230;]]></description>
										<content:encoded><![CDATA[<p>Here&#8217;s a riddle for you!</p>
<p>Suppose you are in the habit of using &#8220;function chaining&#8221; like this to reduce your lines of code:</p>
<pre style="padding-left: 30px;">path2 = path2.mid(2).left(path2.len()-1)</pre>
<p>If so, be careful as they can sometimes surprise you with the results you get. Consider  the following code:</p>
<pre style="padding-left: 30px;">dim path1 as string = """C:\users\ieuser\desktop\new folder"""
path1 = path1.mid(2)
path1 = path1.left(path1.len()-1)
 
dim path2 as string = """C:\users\ieuser\desktop\new folder"""
path2 = path2.mid(2).left(path2.len()-1)

break
</pre>
<p>These two look a lot alike but do not give you the same result. Share your thoughts as to why this happens in the comments or go right to<a href="https://blog.xojo.com/?p=1123&amp;preview=true"> the solution</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Introspection</title>
		<link>https://blog.xojo.com/2016/04/13/introspection/</link>
		
		<dc:creator><![CDATA[Norman Palardy]]></dc:creator>
		<pubDate>Wed, 13 Apr 2016 00:00:00 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Introspection]]></category>
		<guid isPermaLink="false">http://blogtemp.xojo.com/2016/04/13/introspection/</guid>

					<description><![CDATA[Introspection is a very handy and useful part of the Xojo language. You can use it to examine a lot of the objects that are in&#8230;]]></description>
										<content:encoded><![CDATA[<p>Introspection is a very handy and useful part of the Xojo language.</p>
<p>You can use it to examine a lot of the objects that are in memory at runtime. You can access the properties in those objects, call methods on those objects and even create new instances (with some caveats here).</p>
<p>But there are limits to what you can do with it. You can&#8217;t use it to create things that do not exist at runtime because they&#8217;ve been stripped out when your app was built.</p>
<p><span id="more-292"></span>Suppose you have a class, MyCoolClass, and nowhere in your app do you have a parameter of that type used, a property of that type, or you never have any IsA MyCoolClass checks and never dim a variable as MyCoolClass. Then the likelihood your class has been stripped out of the final built executable is high. Basically if you never use the class it will likely get stripped out.</p>
<p>It&#8217;s possible to create classes that exist at runtime so you have to make sure they do not get stripped out. And there is no way for you to create one at runtime &#8220;by name&#8221; because there is no &#8220;make me this class by name&#8221; operator or function.</p>
<p>So in order to use introspection to create a class you need to have the class IN your compiled code.</p>
<p>Something like:</p>
<p><span style="font-family: 'courier new', courier;">dim ti as Introspection.TypeInfo = GetTypeInfo( MyCoolClass )</span></p>
<p>will ensure MyCoolClass won&#8217;t be stripped out. And then you can creates instances from the TypeInfo by accessing the class&#8217; constructors.</p>
<p>Watch our Intro to Introspection webinar on-demand:</p>
<p><!--HubSpot Call-to-Action Code --> <span id="hs-cta-wrapper-5858593b-62a6-444c-9b87-9c4a8db1c932" class="hs-cta-wrapper"> <span id="hs-cta-5858593b-62a6-444c-9b87-9c4a8db1c932" class="hs-cta-node hs-cta-5858593b-62a6-444c-9b87-9c4a8db1c932"><br />
<!-- [if lte IE 8]>


<div id="hs-cta-ie-element"></div>


<![endif]--> <a href="http://developer.xojo.com/webinar-introduction-to-introspection" target="_blank"><img decoding="async" id="hs-cta-img-5858593b-62a6-444c-9b87-9c4a8db1c932" class="hs-cta-img aligncenter" style="border-width: 0px; margin: 0 auto; display: block; margin-top: 20px; margin-bottom: 20px;" src="https://blog.xojo.com/wp-content/uploads/2016/03/5858593b-62a6-444c-9b87-9c4a8db1c932.png" alt="Introduction to Introspection" width="514" height="83" align="middle" /></a></span></span> <!-- end HubSpot Call-to-Action Code --></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
