<?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/"
	>

<channel>
	<title>Random Knowledge</title>
	<atom:link href="http://flawlessfuture.com/randomknowledge/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://flawlessfuture.com/randomknowledge</link>
	<description>You never know what you'll find</description>
	<pubDate>Fri, 23 Mar 2012 19:26:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Update/Refresh Intellisense in SQL Server</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=551</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=551#comments</comments>
		<pubDate>Fri, 23 Mar 2012 19:26:26 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[MS-SQL]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=551</guid>
		<description><![CDATA[Actually this is because Objects are cached. You can refresh cache using
Edit -&#62; Intellisense -&#62; Refresh Local Cache (CTRL+Shift+R)
]]></description>
			<content:encoded><![CDATA[<p align="left">Actually this is because Objects are cached. You can refresh cache using</p>
<p align="left">Edit -&gt; Intellisense -&gt; Refresh Local Cache (CTRL+Shift+R)</p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=551</wfw:commentRss>
		</item>
		<item>
		<title>Ruby: Iterate through sorted has</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=542</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=542#comments</comments>
		<pubDate>Wed, 05 Oct 2011 16:44:00 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=542</guid>
		<description><![CDATA[I needed to sort through hash and I found out how from this
article: http://stackoverflow.com/questions/1227571/how-to-iterate-a-hash

hash.keys.sort.each do &#124;key&#124;
puts &#34;#{key}&#8212;&#8211;&#34;
hash&#91;key&#93;.each &#123; &#124;val&#124; puts val &#125;
end

]]></description>
			<content:encoded><![CDATA[<p>I needed to sort through hash and I found out how from this<br />
article: <a href="http://stackoverflow.com/questions/1227571/how-to-iterate-a-hash">http://stackoverflow.com/questions/1227571/how-to-iterate-a-hash</a></p>
<div class="codesnip-container" >
<div class="ruby codesnip" style="font-family:monospace;">hash.<span class="me1">keys</span>.<span class="me1">sort</span>.<span class="me1">each</span> <span class="kw1">do</span> <span class="sy0">|</span>key<span class="sy0">|</span><br />
<span class="kw3">puts</span> <span class="st0">&quot;#{key}&#8212;&#8211;&quot;</span><br />
hash<span class="br0">&#91;</span>key<span class="br0">&#93;</span>.<span class="me1">each</span> <span class="br0">&#123;</span> <span class="sy0">|</span>val<span class="sy0">|</span> <span class="kw3">puts</span> val <span class="br0">&#125;</span><br />
<span class="kw1">end</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=542</wfw:commentRss>
		</item>
		<item>
		<title>Creating &#8220;Rate This App&#8221; link for iPhone/iPad</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=538</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=538#comments</comments>
		<pubDate>Mon, 06 Jun 2011 01:37:51 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=538</guid>
		<description><![CDATA[You can add the following link to your app to redirect users to the &#8220;Write A Review&#8221; section for your app:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=353432042&#38;pageNumber=0&#38;sortOrdering=1&#38;type=Purple+Software&#38;mt=8 
Just replace the id parameter of the url with your app&#8217;s id.
Source: http://stackoverflow.com/questions/4824569/is-it-possible-to-add-a-rate-this-app-link-to-my-app
]]></description>
			<content:encoded><![CDATA[<p>You can add the following link to your app to redirect users to the &#8220;Write A Review&#8221; section for your app:</p>
<blockquote><p><strong>http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=353432042&amp;pageNumber=0&amp;sortOrdering=1&amp;type=Purple+Software&amp;mt=8 </strong></p></blockquote>
<p>Just replace the id parameter of the url with your app&#8217;s id.</p>
<p>Source: <a href="http://stackoverflow.com/questions/4824569/is-it-possible-to-add-a-rate-this-app-link-to-my-app">http://stackoverflow.com/questions/4824569/is-it-possible-to-add-a-rate-this-app-link-to-my-app</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=538</wfw:commentRss>
		</item>
		<item>
		<title>Parallelizing Windows Applications in .NET 4.0</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=533</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=533#comments</comments>
		<pubDate>Fri, 20 May 2011 19:31:05 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[.Net]]></category>

		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=533</guid>
		<description><![CDATA[I needed to create different threads for a foreach loop and found this great article: http://dotnet.dzone.com/articles/parallelizing-windows

var magicString = string.Empty;
var list = new List&#38;lt;string&#38;gt; &#123;&#34;.NET&#34;, &#34;Zone&#34;&#125;;
Parallel.ForEach&#40;list, oneString =&#62;;
&#123;
magicString += oneString;
&#125;&#41;;

]]></description>
			<content:encoded><![CDATA[<p>I needed to create different threads for a foreach loop and found this great article: http://dotnet.dzone.com/articles/parallelizing-windows</p>
<div class="codesnip-container" >
<div class="csharp codesnip" style="font-family:monospace;">var magicString <span class="sy0">=</span> <span class="kw4">string</span>.<span class="me1">Empty</span><span class="sy0">;</span></p>
<p>var list <span class="sy0">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span class="kw3">new</span></a> List<span class="sy0">&amp;</span>lt<span class="sy0">;</span>string<span class="sy0">&amp;</span>gt<span class="sy0">;</span> <span class="br0">&#123;</span><span class="st0">&quot;.NET&quot;</span>, <span class="st0">&quot;Zone&quot;</span><span class="br0">&#125;</span><span class="sy0">;</span><br />
Parallel.<span class="kw1">ForEach</span><span class="br0">&#40;</span>list, oneString <span class="sy0">=&gt;;</span><br />
<span class="br0">&#123;</span><br />
magicString <span class="sy0">+=</span> oneString<span class="sy0">;</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=533</wfw:commentRss>
		</item>
		<item>
		<title>Excluding unnecessary files from the build and publishing</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=528</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=528#comments</comments>
		<pubDate>Wed, 02 Mar 2011 22:41:42 +0000</pubDate>
		<dc:creator>The E</dc:creator>
		
		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=528</guid>
		<description><![CDATA[I dont know whether to feel proud or disappointed about this one.  For the past four years I have published my site from Visual Studios 2005 way over a thousand times because of updates or whatnot.  Every time it would take anywhere from 10 to 15 minutes.  Today I decided to do [...]]]></description>
			<content:encoded><![CDATA[<p>I dont know whether to feel proud or disappointed about this one.  For the past four years I have published my site from Visual Studios 2005 way over a thousand times because of updates or whatnot.  Every time it would take anywhere from 10 to 15 minutes.  Today I decided to do something about it&#8230;FOUR YEARS LATER! I found out that there is a property you can set in your web.config folder that will define the extensions you would like the compiler to ignore when building and publishing your site.  My publishing is now taking a whopping 1 minute.  I will stick the example that microsoft used, which ignores .doc, .psd, and .vsd files, as well as the source link.</p>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">&lt;configuration&gt;<br />
&nbsp; &lt;system.web&gt;<br />
&nbsp; &nbsp; &nbsp;&lt;compilation&gt; <br />
&nbsp; &nbsp; &nbsp; &lt;buildProviders&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;add extension=&quot;.doc&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=&quot;System.Web.Compilation.IgnoreFileBuildProvider&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;add extension=&quot;.psd&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=&quot;System.Web.Compilation.IgnoreFileBuildProvider&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;add extension=&quot;.vsd&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type=&quot;System.Web.Compilation.IgnoreFileBuildProvider&quot; /&gt; <br />
&nbsp; &nbsp; &nbsp; &lt;/buildProviders&gt; <br />
&nbsp; &nbsp; &nbsp;&lt;/compilation&gt;<br />
&nbsp; &nbsp;&lt;/system.web&gt;<br />
&lt;/configuration&gt;</div>
</div>
<p><a href="http://msdn.microsoft.com/en-us/library/aa479565.aspx">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=528</wfw:commentRss>
		</item>
		<item>
		<title>RoR: Logging ActiveRecord calls to Console</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=524</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=524#comments</comments>
		<pubDate>Tue, 01 Mar 2011 16:20:29 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=524</guid>
		<description><![CDATA[
ActiveRecord::Base.logger = Logger.new&#40;STDOUT&#41;

]]></description>
			<content:encoded><![CDATA[<div class="codesnip-container" >
<div class="rails codesnip" style="font-family:monospace;"><span class="kw4"><span class="re2">ActiveRecord::Base</span></span>.<span class="me1">logger</span> = <span class="kw4">Logger</span>.<span class="kw5">new</span><span class="br0">&#40;</span>STDOUT<span class="br0">&#41;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=524</wfw:commentRss>
		</item>
		<item>
		<title>Rails: Using uncached</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=513</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=513#comments</comments>
		<pubDate>Mon, 21 Feb 2011 17:05:00 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=513</guid>
		<description><![CDATA[I need to retrieve some data from my DB but I have caching turned on in my rails app. After doing some research, I found that you can call uncached and it will ignore the cache.
Example:

def test_action
&#160; &#160; &#160;ActiveRecord::Base.connection.uncached do
&#160; &#160; &#160; &#160; &#160; job = Workflow.find&#40;10911&#41;
&#160; &#160; &#160; &#160; &#160; job = Workflow.find&#40;10911&#41;
&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I need to retrieve some data from my DB but I have caching turned on in my rails app. After doing some research, I found that you can call uncached and it will ignore the cache.</p>
<p>Example:</p>
<div class="codesnip-container" >
<div class="ruby codesnip" style="font-family:monospace;"><span class="kw1">def</span> test_action<br />
&nbsp; &nbsp; &nbsp;<span class="re2">ActiveRecord::Base</span>.<span class="me1">connection</span>.<span class="me1">uncached</span> <span class="kw1">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; job = Workflow.<span class="me1">find</span><span class="br0">&#40;</span>10911<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; job = Workflow.<span class="me1">find</span><span class="br0">&#40;</span>10911<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; job = Workflow.<span class="me1">find</span><span class="br0">&#40;</span>10911<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp;render <span class="re3">:xml</span> <span class="sy0">=&gt;</span> job.<span class="me1">to_xml</span><span class="br0">&#40;</span><span class="re3">:skip_types</span> <span class="sy0">=&gt;</span> <span class="kw2">true</span>, <span class="re3">:dasherize</span> <span class="sy0">=&gt;</span> <span class="kw2">false</span>, <span class="re3">:camelize</span> <span class="sy0">=&gt;</span> <span class="kw2">true</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp;<span class="kw1">end</span><br />
<span class="kw1">end</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=513</wfw:commentRss>
		</item>
		<item>
		<title>When Visual Studios quits debug mode right after debug start on an ASP.net application</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=509</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=509#comments</comments>
		<pubDate>Thu, 27 Jan 2011 17:22:06 +0000</pubDate>
		<dc:creator>The E</dc:creator>
		
		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=509</guid>
		<description><![CDATA[This is a problem that was coming and going for me and every time I figured it out I was content and moved on with my life, but then it happened to me again months later and I forgot the solution, hence this post.  What would happen was that when I pressed debug on [...]]]></description>
			<content:encoded><![CDATA[<p>This is a problem that was coming and going for me and every time I figured it out I was content and moved on with my life, but then it happened to me again months later and I forgot the solution, hence this post.  What would happen was that when I pressed debug on an asp.net application the browser would pop up correctly but in visual studios the debugger would turn off, as if it was set to auto stop debug on start.  Pretty much whenever this happens what you have to do is to make sure the web server and the browser that ran the application, in this case internet explorer are off.  To make sure this is implemented I do it through the task manager.</p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=509</wfw:commentRss>
		</item>
		<item>
		<title>Mimicking a HashTable in ASP by using the Dictionary Object</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=503</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=503#comments</comments>
		<pubDate>Wed, 26 Jan 2011 16:32:12 +0000</pubDate>
		<dc:creator>The E</dc:creator>
		
		<category><![CDATA[ASP Legacy]]></category>

		<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=503</guid>
		<description><![CDATA[So I needed to imitate the functionality of a hashtable in asp.  I needed a number and name key/value pair so that I could loop through them and display them in a select box.  Using an array wont work of course since you can only display one value, unless the index of the [...]]]></description>
			<content:encoded><![CDATA[<p>So I needed to imitate the functionality of a hashtable in asp.  I needed a number and name key/value pair so that I could loop through them and display them in a select box.  Using an array wont work of course since you can only display one value, unless the index of the array is the second value (or first value, you know what I mean).  Using the dictionary object allows you to pair two values together just like the good ole&#8217; hashtable that our friendly neighborhood languages offer.</p>
<div class="codesnip-container" >
<div class="asp codesnip" style="font-family:monospace;"><span class="sy1">&lt;%</span><br />
<span class="kw1">dim</span> d,a,b,i<br />
<span class="kw1">set</span> d<span class="sy0">=</span><span class="kw1">Server</span>.<span class="kw3">CreateObject</span><span class="br0">&#40;</span><span class="st0">&quot;Scripting.Dictionary&quot;</span><span class="br0">&#41;</span><br />
d.<span class="me1">Add</span> <span class="st0">&quot;n&quot;</span>,<span class="st0">&quot;Norway&quot;</span><br />
d.<span class="me1">Add</span> <span class="st0">&quot;i&quot;</span>,<span class="st0">&quot;Italy&quot;</span><br />
d.<span class="me1">Add</span> <span class="st0">&quot;s&quot;</span>,<span class="st0">&quot;Sweden&quot;</span></p>
<p><span class="kw1">Response</span>.<span class="kw3">Write</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;p&gt;Key values:&lt;/p&gt;&quot;</span><span class="br0">&#41;</span><br />
a<span class="sy0">=</span>d.<span class="me1">Keys</span><br />
b<span class="sy0">=</span>d.<span class="me1">Items</span><br />
<span class="kw1">for</span> i<span class="sy0">=</span>0 <span class="kw1">to</span> d.<span class="me1">Count</span>-1<br />
&nbsp; <span class="kw1">Response</span>.<span class="kw3">Write</span><span class="br0">&#40;</span>a<span class="br0">&#40;</span>i<span class="br0">&#41;</span> <span class="sy0">&amp;</span> <span class="st0">&quot;, &quot;</span> <span class="sy0">&amp;</span> b<span class="br0">&#40;</span>i<span class="br0">&#41;</span><span class="br0">&#41;</span><br />
&nbsp; <span class="kw1">Response</span>.<span class="kw3">Write</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;br /&gt;&quot;</span><span class="br0">&#41;</span><br />
<span class="kw1">next</span></p>
<p><span class="kw1">set</span> d<span class="sy0">=</span><span class="kw2">nothing</span><br />
<span class="sy1">%&gt;</span></div>
</div>
<p><a href="http://www.w3schools.com/asp/met_keys.asp">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=503</wfw:commentRss>
		</item>
		<item>
		<title>Capturing iPhone/iPad Screenshots from Xcode Simulator</title>
		<link>http://flawlessfuture.com/randomknowledge/?p=501</link>
		<comments>http://flawlessfuture.com/randomknowledge/?p=501#comments</comments>
		<pubDate>Sat, 22 Jan 2011 14:53:58 +0000</pubDate>
		<dc:creator>Mr. A</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://flawlessfuture.com/randomknowledge/?p=501</guid>
		<description><![CDATA[While trying to submit our iPad app Let&#8217;s Multiply. We found an easy way to capture screenshots of the iPad/iPhone Simulator. All you have to do if hit Control + Command + C. This will capture the screenshot and copy it to the clipboard, just paste and save the image in any image editor.
For the [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to submit our iPad app Let&#8217;s Multiply. We found an easy way to <strong>capture screenshots</strong> of the iPad/iPhone Simulator. All you have to do if hit <strong>Control + Command + C.</strong> This will capture the screenshot and copy it to the clipboard, just paste and save the image in any image editor.<br />
For the iPad, make sure that you you Scale the Simulator to 100% (It will capture the whole iPad screen even if the simulator screen doesn&#8217;t fit on your monitor)</p>
]]></content:encoded>
			<wfw:commentRss>http://flawlessfuture.com/randomknowledge/?feed=rss2&amp;p=501</wfw:commentRss>
		</item>
	</channel>
</rss>

