<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7785634479016551576</id><updated>2011-11-27T15:22:16.506-08:00</updated><category term='wcf'/><title type='text'>wcf .net</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default?start-index=101&amp;max-results=100'/><author><name>The One</name><uri>http://www.blogger.com/profile/08932571205808183148</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>408</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1425172742068307214</id><published>2011-02-19T18:08:00.003-08:00</published><updated>2011-02-19T18:08:43.797-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Limit MongoDB database size?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;We're interested in deploying MongoDB, but we need to know if we can limit database/table sizes?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;For example:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;db.user1.find()&lt;br /&gt;db.user2.find()&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;As you can see from the above, each user will have their own database.  We want to limit each user's database so we don't have any one user eating up all our hard drive space.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is this possible with MongoDB?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/5054628/limit-mongodb-database-size'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1425172742068307214?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1425172742068307214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/limit-mongodb-database-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1425172742068307214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1425172742068307214'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/limit-mongodb-database-size.html' title='Limit MongoDB database size?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6075485246946756074</id><published>2011-02-19T18:08:00.001-08:00</published><updated>2011-02-19T18:08:41.684-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>PHP: include() bug, or user error? (Passed filename in IF statement)</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Alright so I've already created a PHP bug about this but it was marked as bogus, but I can't help but to believe they didn't read it carefully...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a rel='nofollow' href='http://bugs.php.net/bug.php?id=54042'&gt;Link to Bug #54042&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The error is caused by using an &lt;code&gt;include()&lt;/code&gt; statement in an &lt;code&gt;IF&lt;/code&gt; statement, making the statement believe it's been passed an empty string.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Reviewing the bug will explain everything, including a test script.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is it a bug, or am I missing something "feature"-wise? This is weird seeing as how assigning the output of &lt;code&gt;include&lt;/code&gt; to a variable and &lt;em&gt;then&lt;/em&gt; testing that value works just fine (which would be the workaround).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Any insight?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/5054720/php-include-bug-or-user-error-passed-filename-in-if-statement'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6075485246946756074?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6075485246946756074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/php-include-bug-or-user-error-passed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6075485246946756074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6075485246946756074'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/php-include-bug-or-user-error-passed.html' title='PHP: include() bug, or user error? (Passed filename in IF statement)'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5152015685321861073</id><published>2011-02-17T18:08:00.001-08:00</published><updated>2011-02-17T18:08:45.697-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Sparse array support in HDF5</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I need to store a 512^3 array on disk in some way and I'm currently using HDF5. Since the array is sparse a lot of disk space gets wasted.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Does HDF5 provide any support for sparse array ? &lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/3545349/sparse-array-support-in-hdf5'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5152015685321861073?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5152015685321861073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/sparse-array-support-in-hdf5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5152015685321861073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5152015685321861073'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/sparse-array-support-in-hdf5.html' title='Sparse array support in HDF5'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7334574242335938079</id><published>2011-02-15T18:07:00.001-08:00</published><updated>2011-02-15T18:07:27.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Custom Post Types on Category Pages</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am using this bit of code to make custom post typess show on my category pages:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;code/&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is there a way I can modify this code to include it into functions.php instead of category.php and achieve the same effect?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/5008327/custom-post-types-on-category-pages'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7334574242335938079?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7334574242335938079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/custom-post-types-on-category-pages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7334574242335938079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7334574242335938079'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/custom-post-types-on-category-pages.html' title='Custom Post Types on Category Pages'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4257249243290543188</id><published>2011-02-13T18:07:00.003-08:00</published><updated>2011-02-13T18:07:33.006-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Does PowerShell have something similar to the Perl abbrev() function</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;So in Perl, there is a function call abbrev() that given a list of keywords, returns a hash mapping all the minimally abbreviations to their keyword:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;@keywords = {"this", "and", "that"}&lt;br /&gt;%AbbevList = abbrev(@keywords);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This would return a Hash like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;thi =&amp;gt; "this"&lt;br /&gt;this =&amp;gt; "this"&lt;br /&gt;tha =&amp;gt; "that"&lt;br /&gt;that =&amp;gt; "that"&lt;br /&gt;a =&amp;gt; "and"&lt;br /&gt;an =&amp;gt; "and"&lt;br /&gt;and =&amp;gt; "and"&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In Perl, this allowed me to take user abbreviations for my keywords and easily map them correctly to the "real" keyword as long as the user's input was minimally unique.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Does PowerShell have anything similar?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4981514/does-powershell-have-something-similar-to-the-perl-abbrev-function'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4257249243290543188?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4257249243290543188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/does-powershell-have-something-similar.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4257249243290543188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4257249243290543188'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/does-powershell-have-something-similar.html' title='Does PowerShell have something similar to the Perl abbrev() function'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4525592947335407718</id><published>2011-02-13T18:07:00.001-08:00</published><updated>2011-02-13T18:07:30.850-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to do this with routing in Rails?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Say we have a simple resource called news:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;resources :news&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The generated paths are in this form &lt;code&gt;/news/:id&lt;/code&gt;. I would like to provide a shortcut for this by dropping the /news/, so that /1/ goes to news#show with id 1 and the same for all the other resourceful actions of news.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I figured it's probably something along the lines of&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;match '/:id(/:action)', :controller =&amp;gt; 'news'&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;but this isn't working.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4988253/how-to-do-this-with-routing-in-rails'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4525592947335407718?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4525592947335407718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/how-to-do-this-with-routing-in-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4525592947335407718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4525592947335407718'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/how-to-do-this-with-routing-in-rails.html' title='How to do this with routing in Rails?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4203004630239223948</id><published>2011-02-12T18:07:00.003-08:00</published><updated>2011-02-12T18:07:36.569-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Konntent.com codeigniter htaccess</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Please i need help with my application hosted at kontent.com that runs on Codeigniter. I get a No input file specified message and cant get it working&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4981989/konntent-com-codeigniter-htaccess'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4203004630239223948?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4203004630239223948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/konntentcom-codeigniter-htaccess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4203004630239223948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4203004630239223948'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/konntentcom-codeigniter-htaccess.html' title='Konntent.com codeigniter htaccess'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3154109209867838308</id><published>2011-02-12T18:07:00.001-08:00</published><updated>2011-02-12T18:07:34.463-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Enclosure Memory Copies</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;pre&gt;&lt;code&gt;function myClass()&lt;br /&gt;{&lt;br /&gt;  //lots and lots of vars and code here.&lt;br /&gt;&lt;br /&gt;   this.bar = function()&lt;br /&gt;   {&lt;br /&gt;     //do something with the numerous enclosed myClass vars&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   this.foo = function()&lt;br /&gt;   {&lt;br /&gt;      alert('Hello'); //don't do anything with the enclosed variables.&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Each instance of myClass gets its own copy of bar and foo, which is why prototyped methods use less memory. However, I would like to know more about the memory use of inner methods. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It seems obvious to me that (1) below must be true. Do you agree? &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Not only do distinct myClass instances have their own distinct copies of bar, but they also must have their own distinct copies of the myClass enclosure. (or else how does the bar method keep the myClass variables straight on a per instance basis?)&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now (2) is the question I'm really after.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Since the inner foo method doesn't use anything in the myClass enclosure a natural qustion is: Is javascript smart enough to not keep a myClass enclosure in memory for the use of foo? &lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4981842/enclosure-memory-copies'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3154109209867838308?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3154109209867838308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/enclosure-memory-copies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3154109209867838308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3154109209867838308'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/enclosure-memory-copies.html' title='Enclosure Memory Copies'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2042997981760206622</id><published>2011-02-11T18:08:00.003-08:00</published><updated>2011-02-11T18:08:23.437-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Horizontal Centering of Multi-Line List Items in Unordered List</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have an unordered list that wraps onto a second line, and needs to be centered horizontally within the containing UL. Each LI is a set width and height. I've seen many approaches that work for a single line, but nothing I've tried is working when the list wraps to a second line. Would be ideal if this worked in IE7+ -- Thanks for the help.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;See here for an illustration: &lt;a rel='nofollow' href='http://grab.by/8UIl'&gt;http://grab.by/8UIl&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4975863/horizontal-centering-of-multi-line-list-items-in-unordered-list'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2042997981760206622?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2042997981760206622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/horizontal-centering-of-multi-line-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2042997981760206622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2042997981760206622'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/horizontal-centering-of-multi-line-list.html' title='Horizontal Centering of Multi-Line List Items in Unordered List'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3649543962319426158</id><published>2011-02-11T18:08:00.001-08:00</published><updated>2011-02-11T18:08:21.415-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Are there javadoc-like tools to generate RESTful web service apidoc from JAX-RS annotations?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm developing a web service with CXF by using JAX-RS annotations on resources. These annotations specify arguments names, default values, and the valid input and output mime types. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It'd be nice to be able to run a javadoc-esque tool on my code to generate a concise set of documentation of this interface, but I cannot seem to find anything.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The docs produced by javadoc itself would require too much trimming down, I really want something that understands the semantics of the JAX-RS annotations and generates something friendly to the devs who want to use my service.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4975525/are-there-javadoc-like-tools-to-generate-restful-web-service-apidoc-from-jax-rs-a'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3649543962319426158?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3649543962319426158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/are-there-javadoc-like-tools-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3649543962319426158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3649543962319426158'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/are-there-javadoc-like-tools-to.html' title='Are there javadoc-like tools to generate RESTful web service apidoc from JAX-RS annotations?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7153155496438214219</id><published>2011-02-10T18:08:00.001-08:00</published><updated>2011-02-10T18:08:22.873-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Tween animation on a Canvas in a custom View</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have a class that extends View and I draw everything I need inside it's canvas in the onDraw method. Something like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;protected void onDraw(Canvas canvas) {&lt;br /&gt;        synchronized (this) {&lt;br /&gt;                float h = mHeight;&lt;br /&gt;                float w = mWidth;&lt;br /&gt;&lt;br /&gt;                canvas.drawColor(Color.WHITE);&lt;br /&gt;&lt;br /&gt;                float roadLine= (85.0f/100.0f)*h;&lt;br /&gt;&lt;br /&gt;                canvas.drawBitmap(mTop, 0, roadLine-mTop.getHeight(), null);&lt;br /&gt;&lt;br /&gt;                //this is what I'd like to animate&lt;br /&gt;                canvas.drawBitmap(mSmoke);&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, how do I make an Animation (tween animation) draw in here?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4951454/tween-animation-on-a-canvas-in-a-custom-view'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7153155496438214219?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7153155496438214219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/tween-animation-on-canvas-in-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7153155496438214219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7153155496438214219'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/tween-animation-on-canvas-in-custom.html' title='Tween animation on a Canvas in a custom View'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4270342452357968817</id><published>2011-02-08T18:08:00.003-08:00</published><updated>2011-02-08T18:08:28.624-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>groovy: use brackets on method calls or not?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;hi all,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;this is a fairly general question about whether people should be using brackets on method calls that take parameters or not.&lt;br /&gt;i.e.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;def someFunc(def p) {&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;then calling:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;someFunc "abc"&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;vs...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;someFunc("abc")&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is this just a question of consistency, or is there specific use cases for each?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4940640/groovy-use-brackets-on-method-calls-or-not'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4270342452357968817?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4270342452357968817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/groovy-use-brackets-on-method-calls-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4270342452357968817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4270342452357968817'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/groovy-use-brackets-on-method-calls-or.html' title='groovy: use brackets on method calls or not?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3487055817968937442</id><published>2011-02-08T18:08:00.001-08:00</published><updated>2011-02-08T18:08:26.525-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How do I do to map Value Object in Entity Framwork 4</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I want map a value object in Entity Framework 4 as in NHibernate where I use Component-Class(Nested in AR). How do I do this?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4940499/how-do-i-do-to-map-value-object-in-entity-framwork-4'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3487055817968937442?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3487055817968937442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/how-do-i-do-to-map-value-object-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3487055817968937442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3487055817968937442'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/how-do-i-do-to-map-value-object-in.html' title='How do I do to map Value Object in Entity Framwork 4'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5450083341616878633</id><published>2011-02-06T18:08:00.001-08:00</published><updated>2011-02-06T18:08:26.373-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Other ways for zoom-in zoom-out in Android WebView?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;My actual task is to have zoom in zoom out for the WebView, but I don't want to scale images.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Are there ways to do that?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;10x in advance,&lt;br /&gt;Danail&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/2047973/other-ways-for-zoom-in-zoom-out-in-android-webview'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5450083341616878633?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5450083341616878633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/other-ways-for-zoom-in-zoom-out-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5450083341616878633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5450083341616878633'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/other-ways-for-zoom-in-zoom-out-in.html' title='Other ways for zoom-in zoom-out in Android WebView?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6260103193425992912</id><published>2011-02-05T18:08:00.003-08:00</published><updated>2011-02-05T18:08:30.360-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Python - efficient representation of pixels and associated values</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm using python to work with large-ish (approx 2000 x 2000) vectors, where each &lt;code&gt;I&lt;/code&gt;, &lt;code&gt;J&lt;/code&gt; point in the vector represents a single pixel.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The matrices themselves are sparse (ie a substantial portion of them will have zero values), but when they are updated they tend to be increment operations, to a large number of adjacent pixels in a rectangular 'block', rather than random pixels here or there (a property i do not currently use to my advantage..). &lt;br /&gt;Afraid a bit new to matrix arithmetic, but I've looked into a number of possible solutions, including the various flavours of &lt;code&gt;scipy&lt;/code&gt; sparse matrices. So far co-ordinate (COO) matrices seem to be the most promising. &lt;br /&gt;So for instance where I want to increment one block shape, I'd have to do something along the lines of:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; from scipy import sparse&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; from numpy import array&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; I = array([0,0,0,0])&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; J = array([0,1,2,3])&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; V = array([1,1,1,1])&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; incr_matrix = sparse.coo_matrix((V,(I,J)),shape=(100,100))&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt; main_matrix += incr_matrix  #where main_matrix was previously defined&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In the future, i'd like to have a richer pixel value representation in anycase (tuples to represent RGB etc), something that numpy array doesnt support out of the box (or perhaps I need to use &lt;a rel='nofollow' href='http://mail.scipy.org/pipermail/numpy-discussion/2009-April/041801.html'&gt;this&lt;/a&gt;). &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Ultimately i'll have a number of these matrices that I would need to do simple arithmitic on, and i'd need the code to be as efficient as possible -- and distributable, so i'd need to be able to persist and exchange these objects in a small-ish representation without substantial penalties. I'm wondering if this is the right way to go, or should I be looking rolling my own structures using &lt;code&gt;dicts&lt;/code&gt; etc?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4908957/python-efficient-representation-of-pixels-and-associated-values'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6260103193425992912?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6260103193425992912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/python-efficient-representation-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6260103193425992912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6260103193425992912'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/python-efficient-representation-of.html' title='Python - efficient representation of pixels and associated values'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1158721791555108373</id><published>2011-02-05T18:08:00.001-08:00</published><updated>2011-02-05T18:08:28.147-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Classic ASP &amp; XML</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I've got the following XML and the below ASP statement is working, but I need to get a specific tag rather than response.write everything. i.e. I want to get "Document_Name", or "Document_Size". &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Does anyone know how I can do this?   &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;PropertyImages&gt;&lt;br /&gt;     &lt;Image&gt;&lt;br /&gt;         &lt;Document_Name&gt;tes1.png&lt;/Document_Name&gt;&lt;br /&gt;         &lt;Document_Size&gt;123&lt;/Document_Size&gt;&lt;br /&gt;     &lt;/Image&gt;&lt;br /&gt;     &lt;Image&gt;&lt;br /&gt;          &lt;Document_Name&gt;Test.png&lt;/Document_Name&gt;&lt;br /&gt;          &lt;Document_Size&gt;123&lt;/Document_Size&gt;&lt;br /&gt;     &lt;/Image&gt;&lt;br /&gt;&lt;/PropertyImages&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is the code ..&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Set objHdl = objLst.item(i)&lt;br /&gt;&lt;br /&gt;Set PropertyImages = ObjHdl.getElementsByTagName("PropertyImages")&lt;br /&gt;&lt;br /&gt;for x = 0 to (PropertyImages.Length-1)&lt;br /&gt;    Set Image = PropertyImages.item(x)&lt;br /&gt;&lt;br /&gt;    response.write "Image=" &amp;amp; Image.text &amp;amp; "&lt;br/&gt;"&lt;br /&gt;next&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4910265/classic-asp-xml'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1158721791555108373?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1158721791555108373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/classic-asp-xml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1158721791555108373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1158721791555108373'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/classic-asp-xml.html' title='Classic ASP &amp;amp; XML'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-207171478557157685</id><published>2011-02-04T18:08:00.001-08:00</published><updated>2011-02-04T18:08:29.827-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Custom images with UISlider doesn't show on the device.</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Everything works on the simulator without a problem. However when I put it on my device it only show the &lt;code&gt;ThumbImage&lt;/code&gt;. It is just really strange. I'm thinking this could be a iOS version issue or memory issue. My device is iPhone 3GS iOS 4.1.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;@interface BlueChalkSlider : UISlider {}&lt;br /&gt;@end&lt;br /&gt;&lt;br /&gt;@implementation BlueChalkSlider&lt;br /&gt;- (id)initWithCoder:(NSCoder *)decoder {&lt;br /&gt;    if ((self = [super initWithCoder: decoder])) {      &lt;br /&gt;        self.backgroundColor = [UIColor clearColor];&lt;br /&gt;        [self setThumbImage:[UIImage imageNamed:@"Chalk.png"] forState:UIControlStateNormal];&lt;br /&gt;        [self setMinimumTrackImage:[UIImage imageNamed:@"ChalklineBlue.png"] forState:UIControlStateNormal];&lt;br /&gt;        [self setMaximumTrackImage:[UIImage imageNamed:@"ChalklineWhite.png"] forState:UIControlStateNormal];&lt;br /&gt;    }&lt;br /&gt;    return self;&lt;br /&gt;}&lt;br /&gt;@end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4904670/custom-images-with-uislider-doesnt-show-on-the-device'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-207171478557157685?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/207171478557157685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/custom-images-with-uislider-doesn-show.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/207171478557157685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/207171478557157685'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/02/custom-images-with-uislider-doesn-show.html' title='Custom images with UISlider doesn&amp;#39;t show on the device.'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4811776140582892553</id><published>2011-01-30T18:07:00.001-08:00</published><updated>2011-01-30T18:07:57.446-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>caching UIView objects as a way to improve performance</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Obviously Apple does this with UITableViewCells.  I am curious if anyone has tried it with other UIView subclasses.  And if so, what was your experience?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4728826/caching-uiview-objects-as-a-way-to-improve-performance'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4811776140582892553?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4811776140582892553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/caching-uiview-objects-as-way-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4811776140582892553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4811776140582892553'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/caching-uiview-objects-as-way-to.html' title='caching UIView objects as a way to improve performance'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3891076529248489680</id><published>2011-01-29T18:08:00.001-08:00</published><updated>2011-01-29T18:08:01.667-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Empty but styled div in 960.gs</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have the following column in my webpage draft, which is based on HTML5 Boilerplate and 960.gs:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;div style='background-color:black;' class='grid_2'/&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, when I open the page in Chrome, the column doesn't show up at all, unless I put some kind of content in it, like text or whitespace.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How can I make this work without resorting to desperate solutions like &lt;code&gt;&amp;amp;thinsp;&lt;/code&gt;?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4840661/empty-but-styled-div-in-960-gs'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3891076529248489680?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3891076529248489680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/empty-but-styled-div-in-960gs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3891076529248489680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3891076529248489680'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/empty-but-styled-div-in-960gs.html' title='Empty but styled div in 960.gs'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-426280601558519207</id><published>2011-01-29T18:07:00.001-08:00</published><updated>2011-01-29T18:07:59.670-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>[Do Not Validate ] ASP.NET - MVC3 property decoration?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Is there an attribute I can decorate a single property on my model to tell the engine not to include the property in the validation routine?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;[DoNotValidate] or [ValidateIgnore]&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4840697/do-not-validate-asp-net-mvc3-property-decoration'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-426280601558519207?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/426280601558519207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/do-not-validate-aspnet-mvc3-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/426280601558519207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/426280601558519207'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/do-not-validate-aspnet-mvc3-property.html' title='[Do Not Validate ] ASP.NET - MVC3 property decoration?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-454966578312851303</id><published>2011-01-28T18:08:00.003-08:00</published><updated>2011-01-28T18:08:04.353-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Inserting index.phtml view from side controller in the main index.phtml</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have Entry controller with index action that lists all entries, and of course views/scripts/index.phtml. I also have the main page index/index.phtml. How can I include entry/index.phtml in index/index.phtml so I can see the results of entries as part of the structure of the home page?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4834283/inserting-index-phtml-view-from-side-controller-in-the-main-index-phtml'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-454966578312851303?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/454966578312851303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/inserting-indexphtml-view-from-side.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/454966578312851303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/454966578312851303'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/inserting-indexphtml-view-from-side.html' title='Inserting index.phtml view from side controller in the main index.phtml'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2782186957458012963</id><published>2011-01-28T18:08:00.001-08:00</published><updated>2011-01-28T18:08:02.384-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Why are my java.util.zip functions showing inconsistent behavior?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have a Java application that uses the java.util.zip library to compress and decompress files. What I have is a zip file on the server (created by my application) and the client zipping some of his files and uploading the file to the server, but if there's no difference in the underlying files then I don't want to waste the time uploading. I figured that I could calculate the MD5 hash values of the client-side and server-side and see if they're the same, but what's happening is I use my application to decompress a zip file, and then without changing any of the underlying files, I use my application to re-compress it, but the old and new zip files have different MD5 hashes. Does anybody know why this is happening, and if there's a better way to compare two zip files? Thanks.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4832270/why-are-my-java-util-zip-functions-showing-inconsistent-behavior'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2782186957458012963?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2782186957458012963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/why-are-my-javautilzip-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2782186957458012963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2782186957458012963'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/why-are-my-javautilzip-functions.html' title='Why are my java.util.zip functions showing inconsistent behavior?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-462150878470333086</id><published>2011-01-24T18:08:00.001-08:00</published><updated>2011-01-24T18:08:09.443-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Sqlite3 error message</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hey, I've recently been having trouble properly installing my Sqlite3 gem. I've already tried installing sqlite3, followed by sqlite3-ruby and I keep getting an error message. Can anyone tell me what I need to do to correct this? Here's the error message:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;demetriuford$ gem install sqlite3-ruby 1.3.3&lt;br /&gt;Building native extensions.  This could take a while...&lt;br /&gt;ERROR:  Error installing sqlite3-ruby:&lt;br /&gt;ERROR: Failed to build gem native extension.&lt;br /&gt;&lt;br /&gt;/Users/demetriuford/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb&lt;br /&gt;checking for sqlite3.h... yes&lt;br /&gt;checking for sqlite3_libversion_number() in -lsqlite3... yes&lt;br /&gt;checking for rb_proc_arity()... yes&lt;br /&gt;checking for sqlite3_initialize()... no&lt;br /&gt;sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!&lt;br /&gt;*** extconf.rb failed ***&lt;br /&gt;Could not create Makefile due to some reason, probably lack of&lt;br /&gt;necessary libraries and/or headers.  Check the mkmf.log file for more&lt;br /&gt;details.  You may need configuration options.&lt;br /&gt;&lt;br /&gt;Provided configuration options:&lt;br /&gt; --with-opt-dir&lt;br /&gt; --without-opt-dir&lt;br /&gt; --with-opt-include&lt;br /&gt; --without-opt-include=${opt-dir}/include&lt;br /&gt; --with-opt-lib&lt;br /&gt; --without-opt-lib=${opt-dir}/lib&lt;br /&gt; --with-make-prog&lt;br /&gt; --without-make-prog&lt;br /&gt; --srcdir=.&lt;br /&gt; --curdir&lt;br /&gt; --ruby=/Users/demetriuford/.rvm/rubies/ruby-1.9.2-head/bin/ruby&lt;br /&gt; --with-sqlite3-dir&lt;br /&gt; --without-sqlite3-dir&lt;br /&gt; --with-sqlite3-include&lt;br /&gt; --without-sqlite3-include=${sqlite3-dir}/include&lt;br /&gt; --with-sqlite3-lib&lt;br /&gt; --without-sqlite3-lib=${sqlite3-dir}/lib&lt;br /&gt; --with-sqlite3lib&lt;br /&gt; --without-sqlite3lib&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Gem files will remain installed in /Users/demetriuford/.rvm/gems/ruby-1.9.2-head/gems/sqlite3-1.3.3 for inspection.&lt;br /&gt;Results logged to /Users/demetriuford/.rvm/gems/ruby-1.9.2-head/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out&lt;br /&gt;ERROR:  Could not find a valid gem '1.3.3' (&amp;gt;= 0) in any repository&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4788903/sqlite3-error-message'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-462150878470333086?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/462150878470333086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/sqlite3-error-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/462150878470333086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/462150878470333086'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/sqlite3-error-message.html' title='Sqlite3 error message'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5339329885078356190</id><published>2011-01-23T18:08:00.003-08:00</published><updated>2011-01-23T18:08:13.018-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>how copy audio file from iPhone's filesystem to asset library programatically</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;hi folks,&lt;br /&gt;i have an audio file that i saved from stream into ~/Documents folder on iPhone.&lt;br /&gt;i just wanted to make this file visible to user as (s)he can play it using iPod program or put that file into his/her song's album!&lt;br /&gt;any help appreciated&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4777963/how-copy-audio-file-from-iphones-filesystem-to-asset-library-programatically'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5339329885078356190?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5339329885078356190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-copy-audio-file-from-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5339329885078356190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5339329885078356190'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-copy-audio-file-from-iphone.html' title='how copy audio file from iPhone&amp;#39;s filesystem to asset library programatically'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-417007380660406698</id><published>2011-01-23T18:08:00.001-08:00</published><updated>2011-01-23T18:08:11.064-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>how to change the header and footer of PHPBB forum?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Im new to phpbb forum so im struggled to change the header and footer of the phpbb styles.&lt;br /&gt;can any one help me..&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks,&lt;br /&gt;Ram&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4536707/how-to-change-the-header-and-footer-of-phpbb-forum'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-417007380660406698?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/417007380660406698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-to-change-header-and-footer-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/417007380660406698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/417007380660406698'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-to-change-header-and-footer-of.html' title='how to change the header and footer of PHPBB forum?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5387569630241648514</id><published>2011-01-13T18:07:00.001-08:00</published><updated>2011-01-13T18:07:52.791-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>scp + copy from node1 to node2</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I use the scp -rp to copy directory with links&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;scp -rp dir node1:/root&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;how to enable scp to copy the links &amp;amp; full path from dir? to  node1:/root&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4687344/scp-copy-from-node1-to-node2'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5387569630241648514?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5387569630241648514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/scp-copy-from-node1-to-node2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5387569630241648514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5387569630241648514'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/scp-copy-from-node1-to-node2.html' title='scp + copy from node1 to node2'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7177050275961665397</id><published>2011-01-12T18:07:00.003-08:00</published><updated>2011-01-12T18:07:56.685-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>linq to sql - query to find items without children</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;hi there,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i am trying to write a linq query that doesn't fire a million child queries.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;what i want to do is something like this in sql &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;select incoming.id, incoming.message, outgoing.message&lt;br /&gt;from incoming&lt;br /&gt;left join outgoing on incoming.id = outgoing.originalMessageId&lt;br /&gt;where outgoing.message is not null&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;so basically i am doing the left join just do i can find the objects that don't have children.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;is there a way to do this, AND return a typed bunch of the "incoming" items...?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;sounds simple, and i've tried a few different approaches but i think i'm suffering from lack of sleep so my brain isn't making it happen :(&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;thanks in advance &lt;br /&gt;Doug&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4676062/linq-to-sql-query-to-find-items-without-children'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7177050275961665397?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7177050275961665397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/linq-to-sql-query-to-find-items-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7177050275961665397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7177050275961665397'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/linq-to-sql-query-to-find-items-without.html' title='linq to sql - query to find items without children'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6936964550388076809</id><published>2011-01-12T18:07:00.001-08:00</published><updated>2011-01-12T18:07:54.655-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Print "1 followed by googolplex number of zeros"</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Assuming we are not concerned about running time of the program (which is practically infinite for human mortals), we want to print out in base 10, the exact value of 10^(googolplex), one digit at a time (mostly zeros).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Describe an algorithm (which can be coded on current day computers), or write a program to do this.&lt;br /&gt;Since we cannot practically check the output, so we will rely on collective opinion on the correctness of the program.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;NOTE : I do not know the solution, or whether a solution exists or not. The problem is my own invention. To those readers who think this is not a CS question... kindly reconsider. This is difficult and bit theoretical but definitely CS.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4676011/print-1-followed-by-googolplex-number-of-zeros'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6936964550388076809?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6936964550388076809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/print-followed-by-googolplex-number-of.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6936964550388076809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6936964550388076809'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/print-followed-by-googolplex-number-of.html' title='Print &amp;quot;1 followed by googolplex number of zeros&amp;quot;'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1121443621551311468</id><published>2011-01-11T18:07:00.001-08:00</published><updated>2011-01-11T18:07:56.908-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>package import problem in mathematica</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;In mathematica (I am using mma 5.0 ( guess pretty old)), if I type the following as one line:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Needs["Graphics`Master`"]; Animate[Plot[Sin[n x], {x, 0, 2 Pi}, Axes -&amp;gt; False], {n, 1, 6, 1}]&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I then got a lot of errors/warnings. But if I type them in separately, it is working fine. How to make it work in one code block?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4664091/package-import-problem-in-mathematica'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1121443621551311468?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1121443621551311468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/package-import-problem-in-mathematica.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1121443621551311468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1121443621551311468'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/package-import-problem-in-mathematica.html' title='package import problem in mathematica'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7414481437794138149</id><published>2011-01-08T18:08:00.003-08:00</published><updated>2011-01-08T18:08:06.359-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Open source e-commerse solution for a tool catalog based around EAV</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm looking for an e-commerse system that is built around EAV (entity-attribute-value) somewhat like magento, but hopefully simpler. I'm really okay with just about any platform (Java, .net, php, whatever), I just really need to be able to freely associate properties with groups of products... i.e. a drill bushing will have some inner diameter and outer diameter, a drill bit will have a certain outer diameter, etc. Thanks for the info!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4637286/open-source-e-commerse-solution-for-a-tool-catalog-based-around-eav'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7414481437794138149?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7414481437794138149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/open-source-e-commerse-solution-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7414481437794138149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7414481437794138149'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/open-source-e-commerse-solution-for.html' title='Open source e-commerse solution for a tool catalog based around EAV'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6110543656691862369</id><published>2011-01-08T18:08:00.001-08:00</published><updated>2011-01-08T18:08:04.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>pygments : width of html code tag</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;How defining the width of code html create for pygments?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4637287/pygments-width-of-html-code-tag'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6110543656691862369?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6110543656691862369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/pygments-width-of-html-code-tag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6110543656691862369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6110543656691862369'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/pygments-width-of-html-code-tag.html' title='pygments : width of html code tag'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-269210594713397504</id><published>2011-01-06T18:07:00.001-08:00</published><updated>2011-01-06T18:07:53.531-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>C++: Defining names in place of "true" and "false" for bool type</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am wanting to use a &lt;code&gt;bool&lt;/code&gt; to switch back and forth between loading X and loading Y from a file. I don't want to use "true" and "false", because it doesn't make the code clear. I would rather use something like LOAD_X or LOAD_Y... Is the following code the way to do it? Or is there a better way?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#define LOAD_X true&lt;br /&gt;#define LOAD_Y false&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4621905/c-defining-names-in-place-of-true-and-false-for-bool-type'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-269210594713397504?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/269210594713397504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/c-defining-names-in-place-of-and-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/269210594713397504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/269210594713397504'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/c-defining-names-in-place-of-and-for.html' title='C++: Defining names in place of &amp;quot;true&amp;quot; and &amp;quot;false&amp;quot; for bool type'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6261084987040029919</id><published>2011-01-05T18:07:00.003-08:00</published><updated>2011-01-05T18:07:57.926-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>animate text letters</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;can you give me a hint how to animate letters in the text string? For example, for a string "Hello World", scale H first from 0 to size, then e, then l etc? like a bouncing text effect if you know what I mean.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;And I would live to paint the first letter in a different color.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I do know how to animate the entire view or draw text on canvas, but that way animate the entire text string not the letters.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks for any tips!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4609194/animate-text-letters'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6261084987040029919?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6261084987040029919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/animate-text-letters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6261084987040029919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6261084987040029919'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/animate-text-letters.html' title='animate text letters'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4625231776132005853</id><published>2011-01-05T18:07:00.001-08:00</published><updated>2011-01-05T18:07:55.261-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>ASP.NET MVC 2.0 NHibernate Configure() issue</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi Stackoverflow,&lt;br /&gt;I have installed NHibernate for my ASP.NET web app although I'm getting a problem in real-time on the following line of code:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;            if (_sessionFactory == null)&lt;br /&gt;            {&lt;br /&gt;                _sessionFactory = new Configuration().Configure().BuildSessionFactory();&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Looking at the inner exception the problem is this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;{"Could not find file 'D:\Websites\Test\Test\Test\bin\hibernate.cfg.xml'.":"D:\Websites\Test\Test\Test\bin\hibernate.cfg.xml"}&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This makes sense, as the file doesnt exist in that location.  This line of code is within my Core project.  File hibernate.cfg.xml is currently in my Infrastucture project, not my Core.  Should this be?  I have copied the file into this location although I still get problems.  If I manually copy the file into this location within windows explorer I then get the following error during runtime.&lt;br /&gt;{"Could not load file or assembly 'Infrastructure' or one of its dependencies. The system cannot find the file specified.":"Infrastructure"}&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Also, I'm missing DynamicProxy.dll as I'm using castle and I couldnt see a version of the DynamicProxy in the castle folder that I downloaded from &lt;a rel='nofollow' href='http://sourceforge.net/projects/nhibernate/'&gt;http://sourceforge.net/projects/nhibernate/&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;any suggestions?  I can see LinFu.DynamicProxy.dll within the download although it says I only need one of the folders, Linfu or Castle, and I'm using Castle for this experiment.  Not sure if this has anything to do with it, just thought it might help.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;any ideas?  Many thanks,&lt;br /&gt;James&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4611119/asp-net-mvc-2-0-nhibernate-configure-issue'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4625231776132005853?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4625231776132005853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/aspnet-mvc-20-nhibernate-configure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4625231776132005853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4625231776132005853'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/aspnet-mvc-20-nhibernate-configure.html' title='ASP.NET MVC 2.0 NHibernate Configure() issue'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6495504094475160334</id><published>2011-01-04T18:07:00.003-08:00</published><updated>2011-01-04T18:07:59.448-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How do I get more insight in what's going wrong with my script?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have this code:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;When I open the script in my browser everything seems fine, I get a blank screen and the error_log is empty. But it doesn't do what it is written for. Do you have any tips how I get get more insight of what is going wrong?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4600232/how-do-i-get-more-insight-in-whats-going-wrong-with-my-script'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6495504094475160334?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6495504094475160334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-do-i-get-more-insight-in-what-going.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6495504094475160334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6495504094475160334'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-do-i-get-more-insight-in-what-going.html' title='How do I get more insight in what&amp;#39;s going wrong with my script?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6971868403591000353</id><published>2011-01-04T18:07:00.001-08:00</published><updated>2011-01-04T18:07:57.233-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Lucene.Net: How can I convert MultiFiledQueryParser to BooleanQuery?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;This is my current code that does a MultiField Query&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;       ''# Variables used by Lucene&lt;br /&gt;        Dim reader As IndexReader = IndexReader.Open(luceneDirectory, True)&lt;br /&gt;        Dim searcher As IndexSearcher = New IndexSearcher(reader)&lt;br /&gt;        Dim parser As QueryParser = New MultiFieldQueryParser(Lucene.Net.Util.Version.LUCENE_29,&lt;br /&gt;                                                              New String() {"title",&lt;br /&gt;                                                                            "description",&lt;br /&gt;                                                                            "region",&lt;br /&gt;                                                                            "pricelow",&lt;br /&gt;                                                                            "pricehigh",&lt;br /&gt;                                                                            "url",&lt;br /&gt;                                                                            "user",&lt;br /&gt;                                                                            "location"},&lt;br /&gt;                                                                        New StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29))&lt;br /&gt;        Dim query As Query = parser.Parse(search.ToLower)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        ''# We want to ensure that only relevant dates are being returned.&lt;br /&gt;        Dim nowValue = DateTools.DateToString(DateTime.Now, DateTools.Resolution.DAY)&lt;br /&gt;        Dim dateFilter = If(searchPast, Nothing, FieldCacheRangeFilter.NewStringRange("filterdate",&lt;br /&gt;                                                                                  lowerVal:=nowValue,&lt;br /&gt;                                                                                  includeLower:=True,&lt;br /&gt;                                                                                  upperVal:=Nothing,&lt;br /&gt;                                                                                  includeUpper:=False))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;''#============================================================================&lt;br /&gt;''# Here's where I also need to add a regionFilter where I have something like&lt;br /&gt;&lt;br /&gt;''# Dim regionFilter = New FieldCacheTermsFilter("region", New String() {HttpContext.Current.Request.Url.Subdomain})&lt;br /&gt;&lt;br /&gt;''# This is because we must always ONLY ever return search results that are from&lt;br /&gt;''# HttpContext.Current.Request.Url.Subdomain (where Subdomain is an extension &lt;br /&gt;''# method that returns the name of the region... much like Kijiji.ca)&lt;br /&gt;''#============================================================================&lt;br /&gt;&lt;br /&gt;        Dim topDocs As TopDocs = searcher.Search(query, dateFilter, 1000)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm just not sure how to go about doing this.  How can I change it up so that I can do a boolean query and include a second filter?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Note: I still need to be able to search on fields like&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;user:username&lt;br/&gt;&lt;br /&gt;  location:germany&lt;br/&gt;&lt;br /&gt;  etc&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I tried a strictly boolean query before and I could not use the above search terms. Not sure where I went wrong.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4590688/lucene-net-how-can-i-convert-multifiledqueryparser-to-booleanquery'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6971868403591000353?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6971868403591000353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/lucenenet-how-can-i-convert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6971868403591000353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6971868403591000353'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/lucenenet-how-can-i-convert.html' title='Lucene.Net: How can I convert MultiFiledQueryParser to BooleanQuery?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3195219043177276447</id><published>2011-01-03T18:08:00.001-08:00</published><updated>2011-01-03T18:08:01.312-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>A logical question</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm working on a research problem out of curiosity and I don't know how to program the logic that I've in mind. Let me explain it to you :&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I've 4 vectors say for example,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;v1 = 1 1 1 1&lt;br /&gt;v2 = 2 2 2 2&lt;br /&gt;v3 = 3 3 3 3&lt;br /&gt;v4 = 4 4 4 4&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now what I want to do is to add them combination-wise. i.e&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;v12 = v1+v2&lt;br /&gt;v13 = v1+v3&lt;br /&gt;v14 = v1+v4&lt;br /&gt;v23 = v2+v3&lt;br /&gt;v24 = v2+v4&lt;br /&gt;v34 = v3+v4&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till this step it is just fine. The problem is now I want to add each of these vectors one vector from v1,v2,v3,v4 which it hasn't added before. For example&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;v3 and v4 hasn't been added to v12 so I want to create v123 and v124. similarly for all the vectors like,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;v12 should become :&lt;br /&gt;v123 = v12+v3&lt;br /&gt;v124 = v12+v4&lt;br /&gt;&lt;br /&gt;v13 should become :&lt;br /&gt;v132 // this should not occur because I already have v123&lt;br /&gt;v134&lt;br /&gt;&lt;br /&gt;v14 should become :&lt;br /&gt;v142 // cannot occur because I've v124 already&lt;br /&gt;v143 // cannot occur&lt;br /&gt;&lt;br /&gt;v231 // cannot occur&lt;br /&gt;v234 ... and so on.&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It is important that I do not do all at one step at the start like for example I can do (4 choose 3) 4C3 and finish it off but I want to do it step by step at each iteration.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Can anybody have any idea how to program this ? &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;P.S. I'm trying to work on an modified version of apriori algorithm in Databases. I selected C++ and vector tags because I'm trying to do this in C++.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4590075/a-logical-question'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3195219043177276447?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3195219043177276447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/logical-question.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3195219043177276447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3195219043177276447'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/logical-question.html' title='A logical question'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2726754359347613852</id><published>2011-01-03T18:07:00.001-08:00</published><updated>2011-01-03T18:07:59.420-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>If I say calloc(1000, 23), does the 23 "round up" to 24? Or to 32?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I was wondering, do most implementations of &lt;code&gt;calloc&lt;/code&gt; treat the size as an alignment too, and round it up to the next supported granularity?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If so, then do they round up to the next power of 2, or do they round to the next multiple of 8 or 16?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If &lt;code&gt;calloc&lt;/code&gt; keeps the parameter the same, then how does that even work? Wouldn't your data then be unaligned?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thank you!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4590055/if-i-say-calloc1000-23-does-the-23-round-up-to-24-or-to-32'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2726754359347613852?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2726754359347613852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/if-i-say-calloc1000-23-does-23-up-to-24.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2726754359347613852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2726754359347613852'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/if-i-say-calloc1000-23-does-23-up-to-24.html' title='If I say calloc(1000, 23), does the 23 &amp;quot;round up&amp;quot; to 24? Or to 32?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4281263730567512159</id><published>2011-01-02T18:08:00.003-08:00</published><updated>2011-01-02T18:08:03.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>porting an iOS app to mac -- how to handle memory management?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;My code has all the retain/release calls in it of course . . . is it likely to be easier to write the mac app with garbage collection (and then what do I do about the retains/releases) or without?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Whichever way you recommend, any pointers about relevant Xcode settings would be helpful.  Thanks.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4581556/porting-an-ios-app-to-mac-how-to-handle-memory-management'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4281263730567512159?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4281263730567512159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/porting-ios-app-to-mac-how-to-handle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4281263730567512159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4281263730567512159'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/porting-ios-app-to-mac-how-to-handle.html' title='porting an iOS app to mac -- how to handle memory management?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5653922550646948968</id><published>2011-01-02T18:08:00.001-08:00</published><updated>2011-01-02T18:08:01.463-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>JMS for JCA Inbound Messaging ?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am implementing JCA Inbound model so I am studying available reference implementations that I found from Google. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So far I managed to find 2 sample implementations and in both implementation, for inbound messages, they just define a simple MessageListener interface and directly call onMessage method on it. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So I'd like to know if there is any pros/cons to use JMS instead of user defined MessageListener. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Kyi Hein&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4581617/jms-for-jca-inbound-messaging'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5653922550646948968?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5653922550646948968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/jms-for-jca-inbound-messaging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5653922550646948968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5653922550646948968'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/jms-for-jca-inbound-messaging.html' title='JMS for JCA Inbound Messaging ?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8451788648271669701</id><published>2011-01-01T18:08:00.003-08:00</published><updated>2011-01-01T18:08:05.751-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>What are the main differences between C++, D and C++0x?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;We all encounter and hear them more often lately and i'd like some good comparison between them right here on stackoverflow. Links, references and articles are fine also.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4575582/what-are-the-main-differences-between-c-d-and-c0x'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8451788648271669701?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8451788648271669701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/what-are-main-differences-between-c-d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8451788648271669701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8451788648271669701'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/what-are-main-differences-between-c-d.html' title='What are the main differences between C++, D and C++0x?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1666515192786980786</id><published>2011-01-01T18:08:00.001-08:00</published><updated>2011-01-01T18:08:03.583-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How do I add get an application to load on start-up.</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;My Cocoa program needs to add an application to the start-up menu on a Mac. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Please let me know of any Cocoa code samples for doing this.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Any help will be greatly appreciated.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks,&lt;br /&gt;Anisha&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4576727/how-do-i-add-get-an-application-to-load-on-start-up'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1666515192786980786?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1666515192786980786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-do-i-add-get-application-to-load-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1666515192786980786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1666515192786980786'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/how-do-i-add-get-application-to-load-on.html' title='How do I add get an application to load on start-up.'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6796184164735990890</id><published>2011-01-01T16:00:00.003-08:00</published><updated>2011-01-01T16:00:14.521-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>UIButton label text is being clipped</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have a UIButton built in Interface Builder that has a default label. In Xcode, I'm changing the label text dynamically like so:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;myButton.titleLabel.text = @"this is the new label";&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, when the text updates, the new string is being clipped down to the same size as the original string and ends up looking like:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;this...label&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Anyone know why this is happening?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4576331/uibutton-label-text-is-being-clipped'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6796184164735990890?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6796184164735990890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/uibutton-label-text-is-being-clipped.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6796184164735990890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6796184164735990890'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/uibutton-label-text-is-being-clipped.html' title='UIButton label text is being clipped'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6645419429843763554</id><published>2011-01-01T16:00:00.001-08:00</published><updated>2011-01-01T16:00:12.749-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>tokenizing a string with unequal number of spaces between words.</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am tryint to tokenize entries from a file. However I am not able to use the &lt;code&gt;line.split("")&lt;/code&gt; option because of unequal number of spaces between files. I am copying a few lines from my file below:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;"08-09-2010 21:21:46      00:22:7f:a6:9b:69                                 -79"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:b4:49:49                                 -79"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:31:4e:59   tikona 18002090044            -83"&lt;br /&gt;"08-09-2010 21:21:46      00:22:7f:26:9b:69   tikona 18002090044            -74"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:34:0d:c9   tikona 18002090044            -82"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:71:4e:59                                 -85"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:34:21:89   tikona 18002090044            -75"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:34:49:49   tikona 18002090044            -77"&lt;br /&gt;"08-09-2010 21:21:46      04:4f:aa:74:0d:c9                                 -85"&lt;br /&gt;"08-09-2010 21:22:47      18 APs were seen&lt;br /&gt;"&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I need to access the first column (which is a datetime object) the second column (00:22....) and the last column (-79 etc). I have no trouble accessing the first and second columns, but not the last column. When I do a info=line.spilt(""), since the third column might or might no entries, I am not able to determine the token number. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How do i access the 4th column? Is there a way i can use &lt;code&gt;info[i].contains(" -")&lt;/code&gt;?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4576391/tokenizing-a-string-with-unequal-number-of-spaces-between-words'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6645419429843763554?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6645419429843763554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/tokenizing-string-with-unequal-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6645419429843763554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6645419429843763554'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2011/01/tokenizing-string-with-unequal-number.html' title='tokenizing a string with unequal number of spaces between words.'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6109687984567022948</id><published>2010-12-28T18:08:00.003-08:00</published><updated>2010-12-28T18:08:14.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>PHP create an array from the values of another arrays key?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;PHP create an array ($arr2) from the values of another arrays ($arr1) key (name)?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have an array as follows:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$arr1 = array(0 =&amp;gt; array('name' =&amp;gt; 'tom', 'age' =&amp;gt; 22), 1 =&amp;gt; array('name' =&amp;gt; 'nick', 'age' =&amp;gt; 18));&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However I want to create an array from it which consists of all the names, so it would become:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$arr2 = array('tom', 'nick');&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I've looked at array_filter(), but that would'nt work as this is a multi-dimensional array?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;All help is appreciated :)&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4550976/php-create-an-array-from-the-values-of-another-arrays-key'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6109687984567022948?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6109687984567022948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/php-create-array-from-values-of-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6109687984567022948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6109687984567022948'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/php-create-array-from-values-of-another.html' title='PHP create an array from the values of another arrays key?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-9019357396908114761</id><published>2010-12-28T18:08:00.001-08:00</published><updated>2010-12-28T18:08:12.686-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Value gets changed upon comiting. | CallableStatements</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hello, I having a weird problem with a DAO class and a StoredProcedure, what is happening is that I use a &lt;code&gt;CallableStatement&lt;/code&gt; object which takes 15 &lt;code&gt;IN&lt;/code&gt; parameters, the value of the field &lt;code&gt;id_color&lt;/code&gt; is retrieved correctly from the HTML forms it even is set up how it should in the &lt;code&gt;CallableStatement&lt;/code&gt; setter methods, but the moment it is sent to the database the &lt;code&gt;id_color&lt;/code&gt; is overwriten by the value &lt;code&gt;3&lt;/code&gt; here's the "context":&lt;br /&gt;I have the following class &lt;code&gt;DAO.CoverDAO&lt;/code&gt; which handles the &lt;code&gt;CRUD&lt;/code&gt; operations of this table&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;CREATE TABLE `cover_details` (&lt;br /&gt;  `refno` int(10) unsigned NOT NULL AUTO_INCREMENT,&lt;br /&gt;  `shape` tinyint(3) unsigned NOT NULL ,&lt;br /&gt;  `id_color` tinyint(3) unsigned NOT NULL ',&lt;br /&gt;  `reversefold` bit(1) NOT NULL DEFAULT b'0' ,&lt;br /&gt;  `x` decimal(6,3) unsigned NOT NULL ,&lt;br /&gt;  `y` decimal(6,3) unsigned NOT NULL DEFAULT '0.000',&lt;br /&gt;  `typecut` varchar(10) NOT NULL,&lt;br /&gt;  `cornershape` varchar(20) NOT NULL,&lt;br /&gt;  `z` decimal(6,3) unsigned DEFAULT '0.000' ,&lt;br /&gt;  `othercornerradius` decimal(6,3) unsigned DEFAULT '0.000'',&lt;br /&gt;  `skirt` decimal(5,3) unsigned NOT NULL DEFAULT '7.000',&lt;br /&gt;  `foamTaper` varchar(3) NOT NULL,&lt;br /&gt;  `foamDensity` decimal(2,1) unsigned NOT NULL ,&lt;br /&gt;  `straplocation` char(1) NOT NULL ',&lt;br /&gt;  `straplength` decimal(6,3) unsigned NOT NULL,&lt;br /&gt;  `strapinset` decimal(6,3) unsigned NOT NULL,&lt;br /&gt;  `spayear` varchar(20) DEFAULT 'Not Specified',&lt;br /&gt;  `spamake` varchar(20) DEFAULT 'Not Specified',&lt;br /&gt;  `spabrand` varchar(20) DEFAULT 'Not Specified',&lt;br /&gt;  PRIMARY KEY (`refno`)&lt;br /&gt;) ENGINE=MyISAM AUTO_INCREMENT=143 DEFAULT CHARSET=latin1 $$&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The the way covers are being inserted is by a stored procedure, which is the following:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;CREATE DEFINER=`root`@`%` PROCEDURE `putCover`(&lt;br /&gt;                                    IN shape TINYINT,&lt;br /&gt;                                    IN color TINYINT(3),&lt;br /&gt;                                    IN reverse_fold BIT,&lt;br /&gt;                                    IN x DECIMAL(6,3), &lt;br /&gt;                                    IN y DECIMAL(6,3),&lt;br /&gt;                                    IN type_cut VARCHAR(10),&lt;br /&gt;                                    IN corner_shape VARCHAR(10),&lt;br /&gt;                                    IN cutsize DECIMAL(6,3),&lt;br /&gt;                                    IN corner_radius DECIMAL(6,3),&lt;br /&gt;                                    IN skirt DECIMAL(5,3),&lt;br /&gt;                                    IN foam_taper VARCHAR(7),&lt;br /&gt;                                    IN foam_density DECIMAL(2,1),&lt;br /&gt;                                    IN strap_location CHAR(1),&lt;br /&gt;                                    IN strap_length DECIMAL(6,3),&lt;br /&gt;                                    IN strap_inset DECIMAL(6,3)&lt;br /&gt;                                    )&lt;br /&gt;BEGIN&lt;br /&gt;    INSERT INTO `dbre`.`cover_details` &lt;br /&gt;    (`dbre`.`cover_details`.`shape`,&lt;br /&gt;     `dbre`.`cover_details`.`id_color`,&lt;br /&gt;     `dbre`.`cover_details`.`reversefold`,&lt;br /&gt;     `dbre`.`cover_details`.`x`,&lt;br /&gt;     `dbre`.`cover_details`.`y`,&lt;br /&gt;     `dbre`.`cover_details`.`typecut`,&lt;br /&gt;     `dbre`.`cover_details`.`cornershape`,&lt;br /&gt;     `dbre`.`cover_details`.`z`,&lt;br /&gt;     `dbre`.`cover_details`.`othercornerradius`,&lt;br /&gt;     `dbre`.`cover_details`.`skirt`,&lt;br /&gt;     `dbre`.`cover_details`.`foamTaper`,&lt;br /&gt;     `dbre`.`cover_details`.`foamDensity`,&lt;br /&gt;     `dbre`.`cover_details`.`strapLocation`,&lt;br /&gt;     `dbre`.`cover_details`.`strapInset`,&lt;br /&gt;     `dbre`.`cover_details`.`strapLength`&lt;br /&gt;     )&lt;br /&gt;    VALUES&lt;br /&gt;    (shape,color,reverse_fold,&lt;br /&gt;     x,y,type_cut,corner_shape,&lt;br /&gt;     cutsize,corner_radius,skirt,foam_taper,foam_density,&lt;br /&gt;     strap_location,strap_inset,strap_length);&lt;br /&gt;END&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;As you can see basically it just fills each field, now, the &lt;code&gt;CoverDAO.create(CoverDTO cover)&lt;/code&gt; method which creates the cover is like so:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;public void create(CoverDTO cover) throws DAOException {&lt;br /&gt;        Connection link = null;&lt;br /&gt;        CallableStatement query = null;&lt;br /&gt;        try {&lt;br /&gt;            link = MySQL.getConnection();&lt;br /&gt;            link.setAutoCommit(false);&lt;br /&gt;            query = link.prepareCall("{CALL putCover(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");&lt;br /&gt;            query.setLong(1,cover.getShape());&lt;br /&gt;            query.setInt(2,cover.getColor());&lt;br /&gt;            query.setBoolean(3, cover.getReverseFold());&lt;br /&gt;            query.setBigDecimal(4,cover.getX());&lt;br /&gt;            query.setBigDecimal(5,cover.getY());&lt;br /&gt;            query.setString(6,cover.getTypeCut());&lt;br /&gt;            query.setString(7,cover.getCornerShape());&lt;br /&gt;            query.setBigDecimal(8, cover.getZ());&lt;br /&gt;            query.setBigDecimal(9, cover.getCornerRadius());&lt;br /&gt;            query.setBigDecimal(10, cover.getSkirt());&lt;br /&gt;            query.setString(11, cover.getFoamTaper());&lt;br /&gt;            query.setBigDecimal(12, cover.getFoamDensity());&lt;br /&gt;            query.setString(13, cover.getStrapLocation());&lt;br /&gt;            query.setBigDecimal(14, cover.getStrapLength());&lt;br /&gt;            query.setBigDecimal(15, cover.getStrapInset());&lt;br /&gt;            query.executeUpdate();&lt;br /&gt;            link.commit();&lt;br /&gt;        } catch (SQLException e) {&lt;br /&gt;            throw new DAOException(e);&lt;br /&gt;        } finally {&lt;br /&gt;            close(link, query);&lt;br /&gt;        }&lt;br /&gt;    }&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The CoverDTO is made of accessesor methods, the MySQL object basically returns the connection from a pool.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is the pset Query with dummy but appropriate data:&lt;br /&gt;&lt;code&gt;putCover(1,10,0,80.000,80.000,'F','Cut',0.000,0,15.000,'4x2',1.5,'A',10.000,5.000)&lt;/code&gt;&lt;br /&gt;As you can see everything is fine just when I write to the DB instead of &lt;code&gt;10&lt;/code&gt; in the second parameter a &lt;code&gt;3&lt;/code&gt; is written. I have done the following:&lt;br /&gt;&lt;li&gt;Traced the &lt;code&gt;id_color&lt;/code&gt; value to the create method, still got replaced by a 3&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Hardcoded the value in the DAO create method, still got replaced by a 3&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Called the procedure from the MySQL Workbench, it worked fined so I assume something is happening in the create method, any help is really appreciated.&lt;/li&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4550765/value-gets-changed-upon-comiting-callablestatements'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-9019357396908114761?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/9019357396908114761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/value-gets-changed-upon-comiting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/9019357396908114761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/9019357396908114761'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/value-gets-changed-upon-comiting.html' title='Value gets changed upon comiting. | CallableStatements'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2909270707342754492</id><published>2010-12-27T18:08:00.003-08:00</published><updated>2010-12-27T18:08:16.578-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Trouble Installing Numpy and Scipy</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm running into difficulty what I run &lt;code&gt;python setup.py install&lt;/code&gt; in the numpy directory.  It seems to be running alright, until it gets to a folder where permission is denied.  The error it throws is &lt;code&gt;copying build/scripts.macosx-10.6-universal-2.6/f2py -&amp;gt; /usr/local/bin&lt;br /&gt;error: /usr/local/bin/f2py: Permission denied&lt;/code&gt;.  If someone could please help me I'd like to get his up an running.  Thanks&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Environment:  GCC: &lt;code&gt;i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)&lt;/code&gt;&lt;br /&gt;fortran: &lt;code&gt;GNU Fortran (GCC) 4.2.3&lt;/code&gt;&lt;br /&gt;And here is a gist of the output of what happens when I run &lt;code&gt;python setup.py build&lt;/code&gt; &lt;a rel='nofollow' href='https://gist.github.com/756792'&gt;https://gist.github.com/756792&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4543201/trouble-installing-numpy-and-scipy'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2909270707342754492?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2909270707342754492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/trouble-installing-numpy-and-scipy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2909270707342754492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2909270707342754492'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/trouble-installing-numpy-and-scipy.html' title='Trouble Installing Numpy and Scipy'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7283050418090036639</id><published>2010-12-27T18:08:00.001-08:00</published><updated>2010-12-27T18:08:14.526-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Is there a better way to do SELECT queries in MySQL and sort them in PHP than this way?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am just learning PHP/MySQL, one this I am having to do a lot is displaying data that was previously inserted into the database out to the user's browser. So I am doing this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$select = mysql_query('SELECT * FROM pages');&lt;br /&gt;&lt;br /&gt;while ($return = mysql_fetch_assoc($select))&lt;br /&gt;{&lt;br /&gt;     $title = $return['title'];&lt;br /&gt;     $author = $return['author'];&lt;br /&gt;     $content = $return['content'];&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;then I can use these variables through out the page. Now, doing it the above way isn't an issue when I only have 3 columns in a database but what if I am dealing with a huge database with many more columns. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have a nagging feeling that the pros do it in some more efficient way where they maybe loop through the table they are selecting from to find all columns it has and associate them with variables automatically. Is that the case? or is the above how you guys do it too?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;EDIT&lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks for the answers guys, they have helped me to explain what I had in mind better. The reason why I am trying to do this, is so that I have to write less.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is it possible to get the names of the columns of a table automatically. Then have a loop that will automatically create the variables naming them the same as the column names:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;some type of loop &lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   $nameofcolumn = $return['$nameofcolumn'];&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This way I don't have to manually repeat myself:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt; $title = $return['title'];&lt;br /&gt; $author = $return['author'];&lt;br /&gt; $content = $return['content'];&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Because normally I just name the variables the same as the table column names.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4543127/is-there-a-better-way-to-do-select-queries-in-mysql-and-sort-them-in-php-than-thi'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7283050418090036639?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7283050418090036639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/is-there-better-way-to-do-select.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7283050418090036639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7283050418090036639'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/is-there-better-way-to-do-select.html' title='Is there a better way to do SELECT queries in MySQL and sort them in PHP than this way?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6057559577129590988</id><published>2010-12-26T18:08:00.003-08:00</published><updated>2010-12-26T18:08:18.709-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>ERROR: iPhone Private Frameworks "No such file or directory"</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have added Private Frameworks To my project. When I build in DEVICE | RELEASE everything works fine and I am able to ldid -S the application and it successfully launches on my device.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, when trying to BUILD AND GO in Simulator, I get the error "No such file or directory" as indicated below: (I also get the error twice which is strange too.)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt; Line Location HomeProfileViewController.h:10: error:  BluetoothManager/BluetoothManager.h:  No such file or directory&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Below are the project and build settings that I currently have, maybe someone can find a mistake and let me know, that would be awesome!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;PROJECT SETTINGS:&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;PRIVATE_HEADERS_FOLDER_PATH = "/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include"&lt;br /&gt;PUBLIC_HEADERS_FOLDER_PATH = "/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include"&lt;br /&gt;USER_HEADER_SEARCH_PATHS = "/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include"&lt;br /&gt;&lt;br /&gt;OTHER_CFLAGS = "-I/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include-I/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include-F/System/Library/Frameworks-F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks-F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks-DMAC_OS_X_VERSION_MAX_ALLOWED=1050"&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;TARGET BUILD SETTINGS:&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;PRIVATE_HEADERS_FOLDER_PATH = "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks"&lt;br /&gt;FRAMEWORK_SEARCH_PATHS = "$(inherited) $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks"&lt;br /&gt;USER_HEADER_SEARCH_PATHS = "/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include/**"&lt;br /&gt;&lt;br /&gt;OTHER_CFLAGS = "-I/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS3.0.sdk/include-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include-I/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1/include-F/System/Library/Frameworks-F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks-F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks-DMAC_OS_X_VERSION_MAX_ALLOWED=1050"&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Note: The quotation marks in the paths aren't actually in my project, I put them in so the site will syntax them better.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/1694745/error-iphone-private-frameworks-no-such-file-or-directory'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6057559577129590988?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6057559577129590988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/error-iphone-private-frameworks-such.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6057559577129590988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6057559577129590988'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/error-iphone-private-frameworks-such.html' title='ERROR: iPhone Private Frameworks &amp;quot;No such file or directory&amp;quot;'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4036451958355523456</id><published>2010-12-26T18:08:00.001-08:00</published><updated>2010-12-26T18:08:16.887-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Putting Javascript into CSS</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I've been thinking about something. On my forum, there are default CSS codes that the users can choose from. This changes everything from background to text color. I have a javascript code. Is it possible to make it so that the javascript is part of the CSS, so that if a certain CSS code is defaulted, then part of it is that javascript?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4536237/putting-javascript-into-css'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4036451958355523456?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4036451958355523456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/putting-javascript-into-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4036451958355523456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4036451958355523456'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/putting-javascript-into-css.html' title='Putting Javascript into CSS'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6993464137199494308</id><published>2010-12-24T18:08:00.003-08:00</published><updated>2010-12-24T18:08:23.244-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Java Visualisation / Charting library like Google Chars / Visualations</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Unfortunately Google Charts / Visualisations it no available for download in any form. I require a standalone library for numerous reasons and using the services offered by Google is not a satisfactory option.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4529055/java-visualisation-charting-library-like-google-chars-visualations'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6993464137199494308?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6993464137199494308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/java-visualisation-charting-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6993464137199494308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6993464137199494308'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/java-visualisation-charting-library.html' title='Java Visualisation / Charting library like Google Chars / Visualations'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-6423253965830041563</id><published>2010-12-24T18:08:00.001-08:00</published><updated>2010-12-24T18:08:21.329-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>What are valid values for the id attribute in HTML?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;When creating the &lt;code&gt;id&lt;/code&gt; attributes for HTML elements, what rules are there for the value?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/70579/what-are-valid-values-for-the-id-attribute-in-html'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-6423253965830041563?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/6423253965830041563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/what-are-valid-values-for-id-attribute.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6423253965830041563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/6423253965830041563'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/what-are-valid-values-for-id-attribute.html' title='What are valid values for the id attribute in HTML?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8892175893232352018</id><published>2010-12-23T18:08:00.003-08:00</published><updated>2010-12-23T18:08:25.153-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to deal with tags in a normalized database?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am trying to normalize a database I am building. One part of it is that I have many different tests that each can have many different tags. How would you deal with this?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Would you have a table with your tags and then have a limit on the number of tags per test?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am new to databases let alone the whole idea of normalizing so forgive me if this is a very simplistic question.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4523785/how-to-deal-with-tags-in-a-normalized-database'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8892175893232352018?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8892175893232352018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-deal-with-tags-in-normalized.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8892175893232352018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8892175893232352018'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-deal-with-tags-in-normalized.html' title='How to deal with tags in a normalized database?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5208227414499960402</id><published>2010-12-23T18:08:00.001-08:00</published><updated>2010-12-23T18:08:23.178-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Python GTK "Getting started" tutorial problem</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hello everybody!&lt;br /&gt;I have a problem with compiling a basic and really simple example of PyGTK usage listed on pygtk's website.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is the first example from this site:&lt;br /&gt;&lt;a rel='nofollow' href='http://www.pygtk.org/pygtk2tutorial/ch-GettingStarted.html'&gt;http://www.pygtk.org/pygtk2tutorial/ch-GettingStarted.html&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;My code looks like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#!/usr/bin/env python&lt;br /&gt;&lt;br /&gt;# example gtk.py&lt;br /&gt;&lt;br /&gt;import pygtk&lt;br /&gt;pygtk.require('2.0')&lt;br /&gt;import gtk&lt;br /&gt;&lt;br /&gt;class Base:&lt;br /&gt;    def __init__(self):&lt;br /&gt;        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)&lt;br /&gt;        self.window.show()&lt;br /&gt;&lt;br /&gt;    def main(self):&lt;br /&gt;        gtk.main()&lt;br /&gt;&lt;br /&gt;print __name__&lt;br /&gt;if __name__ == "__main__":&lt;br /&gt;    base = Base()&lt;br /&gt;    base.main()&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;And after calling python gtk.py, i'm getting the following error:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;gtk&lt;br /&gt;  &lt;strong&gt;main&lt;/strong&gt;&lt;br /&gt;  Traceback (most recent call last):&lt;br /&gt;    File "gtk.py", line 19, in &lt;br /&gt;      base = Base()&lt;br /&gt;    File "gtk.py", line 11, in &lt;strong&gt;init&lt;/strong&gt;&lt;br /&gt;      self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)&lt;br /&gt;  AttributeError: 'module' object has no attribute 'Window'&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I've found an info somewhere that it shpuld be fixed by installing PyGTK from source. I did it but it changed nothing. The message is still the same.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm using ubuntu 10.10&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Have you any ideas on what can be wrong ?&lt;br /&gt;Thanks for any help!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Mike&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4523790/python-gtk-getting-started-tutorial-problem'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5208227414499960402?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5208227414499960402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/python-gtk-started-tutorial-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5208227414499960402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5208227414499960402'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/python-gtk-started-tutorial-problem.html' title='Python GTK &amp;quot;Getting started&amp;quot; tutorial problem'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8065116226118510514</id><published>2010-12-22T18:08:00.003-08:00</published><updated>2010-12-22T18:08:27.226-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Text editor design considerations</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;br /&gt;My question is that while designing a text editor for html/xml like markup languages with some common features such as auto-indent, syntax highlight, code folding, auto-completion, etc. What are the critical and important points which are needed to be considered, for the sake of efficiency? Is there any common design and development approach or principles that can be helpful in text editor development?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance &lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4514944/text-editor-design-considerations'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8065116226118510514?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8065116226118510514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/text-editor-design-considerations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8065116226118510514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8065116226118510514'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/text-editor-design-considerations.html' title='Text editor design considerations'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1560445243806829514</id><published>2010-12-22T18:08:00.001-08:00</published><updated>2010-12-22T18:08:25.325-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Hello World Problem in Ecliplse with Anroid 2.3 used min 7 instead of min 9</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;*/&lt;em&gt;I am Having a Similar Problem.......... Any Suggestions/&lt;/em&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;package com.example.helloandroid6; &lt;br /&gt;import android.app.Activity; import android.os.Bundle; &lt;br /&gt;import android.widget.TextView; public class HelloAndroid extends Activity {&lt;br /&gt;/** Called when the activity is first created. */&lt;br /&gt;@Override public void onCreate(Bundle savedInstanceState)&lt;br /&gt; { super.onCreate(savedInstanceState); &lt;br /&gt;TextView tv = new TextView(this); &lt;br /&gt;tv.setText("Hello, Android Developers"); &lt;br /&gt;setContentView(tv);&lt;br /&gt; } &lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4515255/hello-world-problem-in-ecliplse-with-anroid-2-3-used-min-7-instead-of-min-9'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1560445243806829514?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1560445243806829514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/hello-world-problem-in-ecliplse-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1560445243806829514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1560445243806829514'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/hello-world-problem-in-ecliplse-with.html' title='Hello World Problem in Ecliplse with Anroid 2.3 used min 7 instead of min 9'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7188711340215688165</id><published>2010-12-20T18:07:00.001-08:00</published><updated>2010-12-20T18:07:02.659-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Dealing with complexity</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Forgive me for asking a rather general question, but how do you &lt;em&gt;psychologically&lt;/em&gt; deal with high levels of complexity in software projects?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm working on a &lt;a rel='nofollow' href='http://www.codegrunt.co.uk/blog/?cat=15'&gt;personal compiler project&lt;/a&gt; and am currently trying to understand the &lt;a rel='nofollow' href='http://msdn.microsoft.com/en-us/library/ms404384.aspx'&gt;unmanaged .net metadata API&lt;/a&gt; (and before anybody mentions it, Reflection.Emit is &lt;em&gt;not&lt;/em&gt; sufficient for my needs!) which are horribly opaque and have very little documentation. Half the time the documentation consists of PaintFooRed() - 'this function paints Foo red.' so I'm really scrabbling around in the dark trying to work things out through trial, error and working things out from first principals.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;When dealing with enormous complexity like this I find the uncertainty of a. how long something may take, b. whether it's even possible and c. whether the approach I'm taking is correct is very difficult to deal with. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How do you deal with this kind of situation?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I've found that solving problems of this degree of uncertainty and complexity are a considerably greater joy than finding the solution to more trivial tasks - has anybody else experienced this too?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/206740/dealing-with-complexity'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7188711340215688165?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7188711340215688165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/dealing-with-complexity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7188711340215688165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7188711340215688165'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/dealing-with-complexity.html' title='Dealing with complexity'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1313054169786640656</id><published>2010-12-19T18:07:00.003-08:00</published><updated>2010-12-19T18:07:07.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>GCC function padding value</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Whenever I compile C or C++ code with optimizations enable,d GCC aligns functions to a 16-byte boundary (on IA-32). If the function is shorter than 16 bytes, GCC pads it with some bytes, which don't seem to be random at all:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;19:   c3                      ret&lt;br /&gt;1a:   8d b6 00 00 00 00       lea    0x0(%esi),%esi&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It always seems to be either &lt;code&gt;8d b6 00 00 00 00 ...&lt;/code&gt; or &lt;code&gt;8d 74 26 00&lt;/code&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Do function padding bytes have any significance?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4486301/gcc-function-padding-value'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1313054169786640656?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1313054169786640656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/gcc-function-padding-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1313054169786640656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1313054169786640656'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/gcc-function-padding-value.html' title='GCC function padding value'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3836298459831853889</id><published>2010-12-19T18:07:00.001-08:00</published><updated>2010-12-19T18:07:04.948-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>using CreateProcess with a relative path</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Is it possible to pass a relative path to create my child process?&lt;br /&gt;This code will compile, but it gives an error because I'm using a relative path.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;void Cminivideo3App::creerChildProcess(void)&lt;br /&gt;{&lt;br /&gt;    STARTUPINFO si;&lt;br /&gt;    PROCESS_INFORMATION pi;&lt;br /&gt;&lt;br /&gt;    ZeroMemory( &amp;amp;si, sizeof(si) );&lt;br /&gt;    si.cb = sizeof(si);&lt;br /&gt;    ZeroMemory( &amp;amp;pi, sizeof(pi) );&lt;br /&gt;&lt;br /&gt;    // Start the child process. &lt;br /&gt;  int retvalue =   CreateProcess( TEXT("\..\Debug\traitement.exe"),   // No module name (use command line)&lt;br /&gt;        NULL,        // Command line&lt;br /&gt;        NULL,           // Process handle not inheritable&lt;br /&gt;        NULL,           // Thread handle not inheritable&lt;br /&gt;        FALSE,          // Set handle inheritance to FALSE&lt;br /&gt;        0,              // No creation flags&lt;br /&gt;        NULL,           // Use parent's environment block&lt;br /&gt;        NULL,           // Use parent's starting directory &lt;br /&gt;        &amp;amp;si,            // Pointer to STARTUPINFO structure&lt;br /&gt;        &amp;amp;pi            // Pointer to PROCESS_INFORMATION structure&lt;br /&gt;    );&lt;br /&gt;&lt;br /&gt;  int lastError = GetLastError();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4486350/using-createprocess-with-a-relative-path'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3836298459831853889?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3836298459831853889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/using-createprocess-with-relative-path.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3836298459831853889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3836298459831853889'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/using-createprocess-with-relative-path.html' title='using CreateProcess with a relative path'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3131008904777806561</id><published>2010-12-16T18:08:00.003-08:00</published><updated>2010-12-16T18:08:02.620-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to associate descendant models to a parent.</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi, I have the following models:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Account&lt;br /&gt;  has_many :libraries&lt;br /&gt;&lt;br /&gt;Library&lt;br /&gt;  has_many :topics&lt;br /&gt;  belongs_to :account&lt;br /&gt;&lt;br /&gt;Topic&lt;br /&gt;  has_many :functions&lt;br /&gt;  belongs_to :library&lt;br /&gt;&lt;br /&gt;Function&lt;br /&gt;  has_one :example&lt;br /&gt;  belongs_to :topic&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;  belongs_to :function&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I would like to be able to able to do things such as:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;some_account.libraries&lt;br /&gt;some_account.topics&lt;br /&gt;some_account.functions&lt;br /&gt;some_account.examples&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In addition, I would like to be able to assign an account to a descendant, i.e&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;some_example.account = some_account&lt;br /&gt;some_function.account = some_account&lt;br /&gt;some_topic.account = some_account&lt;br /&gt;some_library.account = some_account&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To give some context:&lt;br /&gt;I am letting a user (Account) create each Library, Topic, Function, Example. record separately. Then a user is free to change how the records are associated: Change the topic of a Function, move a Topic to a different Library, add an example to a function, and so on.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To my understanding no matter what record is created, I would need to assign it to a user (account) so that I can have a list of each Model records that a user has created, as well as prevent other users from seeing stuff that doesn't belong to them&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Although I might be overcomplicating, I really don't know :(&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4466448/how-to-associate-descendant-models-to-a-parent'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3131008904777806561?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3131008904777806561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-associate-descendant-models-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3131008904777806561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3131008904777806561'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-associate-descendant-models-to.html' title='How to associate descendant models to a parent.'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8629322896640274975</id><published>2010-12-16T18:08:00.001-08:00</published><updated>2010-12-16T18:08:00.324-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>EPSG:4008 Layer Not Displaying</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hello StackOverFlow,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have a map with OSM and Google Base layers and EPSG:4326 overlays.  Now I am also trying to add overlays with other EPSG's to my map.  Overlays which had an EPSG:2333 displayed just fine with no problems.  Then I tried to add a layer with EPSG:4008 and nothing showed up.  I posted on the openLayers forum and was told to look into the proj4js project (many thanks for that btw!).  I have tried using it and it seems promising, but it is just not working for me :(&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In my body tag I have the scripts&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;script src='./OpenLayers-2.10/OpenLayers.js'/&gt;&lt;br /&gt;&lt;script src='./proj4js/lib/proj4js-combined.js'/&gt; //I did also try proj4js.js, but the docs said use this one?&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then I have these before my map and layer declaration, also in the body tag&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Ext.onReady(function() {&lt;br /&gt;&lt;br /&gt;            Proj4js.defs["EPSG:4008"] = "+proj=longlat +ellps=clrk66 +no_defs";&lt;br /&gt;            Proj4js.defs["SR-ORG:6627"] = "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs";&lt;br /&gt;            Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Map properties&lt;br /&gt;            var options = {&lt;br /&gt;                    controls: [new OpenLayers.Control.Navigation()], //Needed to use GeoExt controls such as the zoomslider&lt;br /&gt;                    maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34),&lt;br /&gt;                    units: 'm',&lt;br /&gt;                    allOverlays: false //Do not display all layers on load&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            var map = new OpenLayers.Map(options);&lt;br /&gt;&lt;br /&gt;var borders = new OpenLayers.Layer.WMS(&lt;br /&gt;                    "Borders", "http://localhost:8080/geoserver/wms", {id: 'borders', layers: 'cite:sedac', transparent: true, projection: new OpenLayers.Projection("EPSG:4008")}, {isBaseLayer: false, displayInLayerSwitcher: true, visibility: true}&lt;br /&gt;               );&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;and have also tried this layer config...after reading this post &lt;a rel='nofollow' href='http://getsatisfaction.com/opengeo/topics/reprojecting_in_openlayers'&gt;http://getsatisfaction.com/opengeo/topics/reprojecting_in_openlayers&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;var borders = new OpenLayers.Layer.WMS(&lt;br /&gt;                    "Borders", "http://localhost:8080/geoserver/wms", {id: 'borders', layers: 'cite:sedac', transparent: true, srsName: 'EPSG:4326'}, {isBaseLayer: false, displayInLayerSwitcher: true, visibility: true}&lt;br /&gt;               );&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Still nothing shows up :(.  Am I doing something wrong?  I'm not seeing the error...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is it even possible to use layers with various projections???  I can't change my map's projection to be 'EPSG:4008' because it will break my other layers, the advice on the docs was to specify the layer's projection, but as my code shows I have tried this with no luck.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I appreciate your time in looking into this matter for me,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;elshae&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4462795/epsg4008-layer-not-displaying'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8629322896640274975?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8629322896640274975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/epsg4008-layer-not-displaying.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8629322896640274975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8629322896640274975'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/epsg4008-layer-not-displaying.html' title='EPSG:4008 Layer Not Displaying'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5039631009593816934</id><published>2010-12-15T18:08:00.001-08:00</published><updated>2010-12-15T18:08:02.582-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Delete/move a UITableView row that's attached to a web service.</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Deleting or moving rows for a UITableView that is backed with local data (e.g., NSArray) is easy and instantaneous:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Remove the value from the array.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Call &lt;code&gt;deleteRowsAtIndexPaths:withRowAnimation:&lt;/code&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Profit!&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;But my table view communicates with a web service, which means once the "Delete" button on that row gets tapped, I have to forward a request on to the server (via &lt;a rel='nofollow' href='http://allseeing-i.com/ASIHTTPRequest/'&gt;ASIHTTPRequest&lt;/a&gt;, of course), get the response, and then tell the table view to run its little delete-row animation, all with a few seconds of latency in between.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;From a high-level, what's the best way to do that?  Throw some callback selector into ASIHTTPRequest's &lt;a rel='nofollow' href='http://allseeing-i.com/ASIHTTPRequest/How-to-use#handling_success_and_failure_for_multiple_requests'&gt;userInfo&lt;/a&gt; dictionary?  &lt;a rel='nofollow' href='http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html'&gt;KVO&lt;/a&gt;?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Bonus points for some nice UI touch, like some kind of spinner on the soon-to-be-deleted cell.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4456861/delete-move-a-uitableview-row-thats-attached-to-a-web-service'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5039631009593816934?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5039631009593816934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/deletemove-uitableview-row-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5039631009593816934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5039631009593816934'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/deletemove-uitableview-row-that.html' title='Delete/move a UITableView row that&amp;#39;s attached to a web service.'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8998775070865205086</id><published>2010-12-14T18:08:00.003-08:00</published><updated>2010-12-14T18:08:06.709-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>[ikvmc] how to convert a jar to dll, the jar depending on multi jars</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi i try to use ikvmc (http://www.ikvm.net/) to conver a jar to a dll&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;the jar is :&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a rel='nofollow' href='http://dl.dropbox.com/u/284185/dartapi.jar'&gt;http://dl.dropbox.com/u/284185/dartapi.jar&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;but that jar depends on multi jars as well, &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a rel='nofollow' href='http://dl.dropbox.com/u/284185/lib.zip'&gt;http://dl.dropbox.com/u/284185/lib.zip&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;what command should i use to convert that jar to a dll???&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4446113/ikvmc-how-to-convert-a-jar-to-dll-the-jar-depending-on-multi-jars'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8998775070865205086?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8998775070865205086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/ikvmc-how-to-convert-jar-to-dll-jar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8998775070865205086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8998775070865205086'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/ikvmc-how-to-convert-jar-to-dll-jar.html' title='[ikvmc] how to convert a jar to dll, the jar depending on multi jars'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3154712343058773722</id><published>2010-12-14T18:08:00.001-08:00</published><updated>2010-12-14T18:08:04.653-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Resources for improving web development skills</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi All,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have recently got a job as a web developer. I still have two subjects at university to do. I am getting a Bachelor of Information Technology majoring in Software Architecture and minoring in Web Services And Applications and Database.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I was wondering if there were any resources out there to help me improve my general development/creative problem solving skills.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have experience in C#, C++, Java, HTML, JavaScript (jQuery library), ASP.NET and ColdFusion. Some of my web developer friends have said that I should learn PHP. For me development is thoroughly enjoyable and rewarding. I am into all kinds of development. I am interested in software and web development. I haven't done much game development but would like to delve into it a bit.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So in revision:&lt;br /&gt;What are some resources (preferably free) that I could use to improve generic (or language specific) development skills.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4446046/resources-for-improving-web-development-skills'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3154712343058773722?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3154712343058773722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/resources-for-improving-web-development.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3154712343058773722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3154712343058773722'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/resources-for-improving-web-development.html' title='Resources for improving web development skills'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3810858560525254518</id><published>2010-12-13T18:08:00.003-08:00</published><updated>2010-12-13T18:08:08.567-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Facebook Graph API: Getting the total number of posts</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I've been using the Facebook Graph API to display user posts.  When I get the initial "page" of posts, the resulting data object has a &lt;code&gt;paging&lt;/code&gt; property object with a &lt;code&gt;previous&lt;/code&gt; and &lt;code&gt;next&lt;/code&gt; URL property.  I was hoping to generate navigation links based on this available paging information.  However, sometimes these URLs point to an empty set of data, so I obviously don't want to navigate the user to an empty page.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is there a way to find the total count of objects in a collection so that better navigation can be derived?  Is there any way to get smarter paging data?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;&lt;br /&gt;Sorry if my post isn't clear.  To illustrate, look at the data at &lt;a rel='nofollow' href='https://graph.facebook.com/7901103/posts'&gt;https://graph.facebook.com/7901103/posts&lt;/a&gt; and its paging property URLs.  Then follow those URLs to see the issue: empty pages of data.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4435059/facebook-graph-api-getting-the-total-number-of-posts'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3810858560525254518?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3810858560525254518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/facebook-graph-api-getting-total-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3810858560525254518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3810858560525254518'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/facebook-graph-api-getting-total-number.html' title='Facebook Graph API: Getting the total number of posts'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2736509247930206399</id><published>2010-12-13T18:08:00.001-08:00</published><updated>2010-12-13T18:08:06.357-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Algorithm to generate a crossword</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Given a list of words, how would you go about arranging them into a crossword grid?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It wouldn't have to be like a "proper" crossword puzzle which is symmetrical or anything like that: basically just output a starting position and direction for each word.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/943113/algorithm-to-generate-a-crossword'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2736509247930206399?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2736509247930206399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/algorithm-to-generate-crossword.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2736509247930206399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2736509247930206399'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/algorithm-to-generate-crossword.html' title='Algorithm to generate a crossword'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4292820070691609846</id><published>2010-12-07T18:08:00.003-08:00</published><updated>2010-12-07T18:08:27.433-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to listener the keyboard type text in Javascript?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I want to get the keyboard typed text, not the key code. For example, I press shift+f, I get the "F", instead of listen to two key code. Another example, I click F3, I inputted nothing. How can I know that in js? Thank  you.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4368036/how-to-listener-the-keyboard-type-text-in-javascript'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4292820070691609846?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4292820070691609846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-listener-keyboard-type-text-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4292820070691609846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4292820070691609846'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-listener-keyboard-type-text-in.html' title='How to listener the keyboard type text in Javascript?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3381391592179759882</id><published>2010-12-07T18:08:00.001-08:00</published><updated>2010-12-07T18:08:25.460-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Java Launch fails on second run: java.lang.NullPointerException</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I downloaded the .jnlp file and ran it. It runs fine. I close it and start it again, it runs fine.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However on the third try, it always throws java.lang.NullPointerException and the application will not launch. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If I restart the computer it works again. How can I fix this ?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;java.lang.NullPointerException&lt;br /&gt;    at com.sun.javaws.security.SigningInfo.overlapSigners(Unknown Source)&lt;br /&gt;    at com.sun.javaws.security.SigningInfo.getCertificates(Unknown Source)&lt;br /&gt;    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)&lt;br /&gt;    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Launcher.prepareResources(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Launcher.launch(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Main.launchApp(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)&lt;br /&gt;    at com.sun.javaws.Main$1.run(Unknown Source)&lt;br /&gt;    at java.lang.Thread.run(Unknown Source)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4383524/java-launch-fails-on-second-run-java-lang-nullpointerexception'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3381391592179759882?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3381391592179759882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/java-launch-fails-on-second-run.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3381391592179759882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3381391592179759882'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/java-launch-fails-on-second-run.html' title='Java Launch fails on second run: java.lang.NullPointerException'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7947933425059695972</id><published>2010-12-06T18:08:00.003-08:00</published><updated>2010-12-06T18:08:28.698-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>overriding Equals in c#</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am trying to override Equals so that it compares based on a variable ID:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;public class OrderID&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;    public string ID { get; private set; }&lt;br /&gt;&lt;br /&gt;    public OrderID(string id)&lt;br /&gt;    {&lt;br /&gt;        ID = id;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public override bool Equals(object obj)&lt;br /&gt;    {&lt;br /&gt;        if (obj is OrderID)&lt;br /&gt;        {&lt;br /&gt;            return ((OrderID)obj).ID == ID;&lt;br /&gt;        }&lt;br /&gt;        else return false;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public override string ToString()&lt;br /&gt;    {&lt;br /&gt;        return ID;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p/&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However when I test this in the following manner it returns false:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;static void Main(string[] args)&lt;br /&gt;&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        OrderID i1 = new OrderID("Hello");&lt;br /&gt;        OrderID i2 = new OrderID("Hello");&lt;br /&gt;&lt;br /&gt;        bool test = i1 == i2;&lt;br /&gt;&lt;br /&gt;        Console.WriteLine(test.ToString());&lt;br /&gt;&lt;br /&gt;        Console.ReadKey();&lt;br /&gt;    }&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p/&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What is the problem? When i try to step through it my override is not even stepped into.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4372753/overriding-equals-in-c'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7947933425059695972?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7947933425059695972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/overriding-equals-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7947933425059695972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7947933425059695972'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/overriding-equals-in-c.html' title='overriding Equals in c#'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-8453046993733572945</id><published>2010-12-06T18:08:00.001-08:00</published><updated>2010-12-06T18:08:26.826-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to make endlessly loading page with PHP?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Please include environment details, i think i have no success yet because of server configuration.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;And more important question: is it well-known or i'm inventing something unusual?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4372727/how-to-make-endlessly-loading-page-with-php'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-8453046993733572945?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/8453046993733572945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-make-endlessly-loading-page-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8453046993733572945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/8453046993733572945'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-make-endlessly-loading-page-with.html' title='How to make endlessly loading page with PHP?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5993126245328824345</id><published>2010-12-04T18:08:00.001-08:00</published><updated>2010-12-04T18:08:31.169-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Data transformation after successful validation</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm having a bit of a problem normalizing a UPC string code so that I can store it in the same format in the database.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm using the &lt;code&gt;ean&lt;/code&gt; gem to check if the string is good (which is working fine), but if I throw some assignment code after it validates such as:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;validate :upc_check&lt;br /&gt;&lt;br /&gt;def upc_check&lt;br /&gt;    if !upc.nil?&lt;br /&gt;        if !upc.ean?&lt;br /&gt;            errors.add(:upc, 'is not a valid UPC.')&lt;br /&gt;        else&lt;br /&gt;            upc = upc.strip&lt;br /&gt;        end &lt;br /&gt;    end &lt;br /&gt;end &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The strip call is just an example as it's a string. I'll actually be removing the dashes in the upc. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The above code doesn't work so well as it doesn't actually save it. I had a look at triggering a method like &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;after_validation :normalize_upc&lt;br /&gt;&lt;br /&gt;def normalize_upc&lt;br /&gt;    upc = upc.strip&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;..but the above doesn't work either. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What do you guys do to validate and transform data after validation?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4356981/data-transformation-after-successful-validation'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5993126245328824345?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5993126245328824345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/data-transformation-after-successful.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5993126245328824345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5993126245328824345'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/data-transformation-after-successful.html' title='Data transformation after successful validation'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1275645168675302876</id><published>2010-12-03T18:08:00.003-08:00</published><updated>2010-12-03T18:08:35.908-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>whats going on v5 = *(_Byte *)(this + 4)?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am looking at a code dump from IDA pro.  There is a function which as this layout:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;garbled_name(int this...&lt;br /&gt;    unsigned int v5 ;&lt;br /&gt;    v5 = *(_Byte *)(this + 4);&lt;br /&gt;    ...&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What I am really curious about is what exactly the '+ 4' is doing?  Is this an addition or something else?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4351429/whats-going-on-v5-byte-this-4'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1275645168675302876?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1275645168675302876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/whats-going-on-v5-byte-this-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1275645168675302876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1275645168675302876'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/whats-going-on-v5-byte-this-4.html' title='whats going on v5 = *(_Byte *)(this + 4)?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5982343126064919400</id><published>2010-12-03T18:08:00.001-08:00</published><updated>2010-12-03T18:08:33.896-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Help trimming string input of it's return character MIPS</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I'm writing a game in MIPS and I take in a player's name. When I try to print something like:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;li $v0, 4  &lt;br /&gt;la $a0, playerName  &lt;br /&gt;syscall&lt;br /&gt;&lt;br /&gt;li $v0, 4  &lt;br /&gt;la $a0, strEnd     #strEnd = ("'s Hand: ")  &lt;br /&gt;syscall&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So I want it to display:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;"playerName's Hand: "&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Everything doesn't appear on the same line. I instead get:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;"playerName  &lt;br /&gt;'s Hand: "&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;My question is how can I strip the new line character from the name I took in? Thanks&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4351500/help-trimming-string-input-of-its-return-character-mips'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5982343126064919400?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5982343126064919400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/help-trimming-string-input-of-it-return.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5982343126064919400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5982343126064919400'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/help-trimming-string-input-of-it-return.html' title='Help trimming string input of it&amp;#39;s return character MIPS'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5027599460148715888</id><published>2010-12-01T18:08:00.003-08:00</published><updated>2010-12-01T18:08:39.402-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to set device (UI) orientation programmatically?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Would like everything on the screen (UI) to be able to rotate from landscape left to right or vica versa. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How do I go about doing this? Is this private? &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I know that  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;lets you say which orientations the UI can be, but is there a way to force only one at a time? &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4330979/how-to-set-device-ui-orientation-programmatically'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5027599460148715888?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5027599460148715888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-set-device-ui-orientation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5027599460148715888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5027599460148715888'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/how-to-set-device-ui-orientation.html' title='How to set device (UI) orientation programmatically?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3318171491521339604</id><published>2010-12-01T18:08:00.001-08:00</published><updated>2010-12-01T18:08:37.179-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Need touch tutorial</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am new to android so please if I sound stupid, do not reply.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hello,&lt;br /&gt;I have tried searching all over the net for a good tutorial that would help me understand how android takes the touch events and reacts accordingly. But I have not been successful. If anyone knows a good tutorial that could help me, please post it here. It would be very helpful.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4330962/need-touch-tutorial'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3318171491521339604?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3318171491521339604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/need-touch-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3318171491521339604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3318171491521339604'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/12/need-touch-tutorial.html' title='Need touch tutorial'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2320353534599458844</id><published>2010-11-29T18:08:00.003-08:00</published><updated>2010-11-29T18:08:43.377-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Linking to a GPL library via a LGPL component in a closed source application</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm using a GPL library in my closed source app. The library providers provide a FOSS exception where a number of licenses are acceptable to them, including LGPL.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So I was thinking of writing a LGPL licensed wrapper on top of the GPL library and using the library through the LGPL wrapper in my app. Is this the appropriate way to do it if I don't want my closed source app to be open sourced? I would, I believe, have to provide the source of the LGPL wrapper.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/3288968/linking-to-a-gpl-library-via-a-lgpl-component-in-a-closed-source-application'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2320353534599458844?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2320353534599458844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/linking-to-gpl-library-via-lgpl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2320353534599458844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2320353534599458844'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/linking-to-gpl-library-via-lgpl.html' title='Linking to a GPL library via a LGPL component in a closed source application'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2657745043003201180</id><published>2010-11-29T18:08:00.001-08:00</published><updated>2010-11-29T18:08:41.480-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Errors creating a string in c++</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Whenever I try to create a string in my header file I get the error: 'string' is not a member of 'std'. I am using the Microsoft Visual c++ express 2010 compiler. Here is my header file:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;class Person&lt;br /&gt;{&lt;br /&gt;private:&lt;br /&gt; string name;&lt;br /&gt; string p_number;&lt;br /&gt;&lt;br /&gt;public:&lt;br /&gt; Person();&lt;br /&gt; Person(string, string);&lt;br /&gt; string get_number();&lt;br /&gt; string get_name();&lt;br /&gt;};&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am a decent java programmer who just started  learning c++&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4309899/errors-creating-a-string-in-c'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2657745043003201180?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2657745043003201180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/errors-creating-string-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2657745043003201180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2657745043003201180'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/errors-creating-string-in-c.html' title='Errors creating a string in c++'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3965302203982981814</id><published>2010-11-28T18:08:00.003-08:00</published><updated>2010-11-28T18:08:45.948-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Vim: how to temporarily exit vim and go back</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How could I exit Vim, not :q, and then go back to continue edition.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/1879219/vim-how-to-temporarily-exit-vim-and-go-back'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3965302203982981814?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3965302203982981814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/vim-how-to-temporarily-exit-vim-and-go.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3965302203982981814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3965302203982981814'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/vim-how-to-temporarily-exit-vim-and-go.html' title='Vim: how to temporarily exit vim and go back'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4280453178780103309</id><published>2010-11-28T18:08:00.001-08:00</published><updated>2010-11-28T18:08:43.974-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>SSIS Flat Files with Variable Column Numbers</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;SSIS does 2 things in relation to handling flat files which are particularly frustrating, and it seems there should be a way around them, but I can't figure it out. If you define a flat file with 10 columns, tab delimited with CRLF as the end of row marker this will work perfectly for files where there are exactly 10 columns in every row. The 2 painful scenarios are these:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;If someone supplies a file with an 11th column anywhere, it would be nice if SSIS simply ignored it, since you haven't defined it. It should just read the 10 columns you have defined then skip to the end of row marker, but what is does instead is concatenate any additional data with the data in the 10th column and bung all that into the 10th column. Kind of useless really. I realise this happens because the delimiter for the 10th column is not tab like all the others, but CRLF, so it just grabs everything up to the CRLF, replacing extra tabs with nothing as it does so. This is not smart, in my opinion.&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;If someone supplies a file with only 9 columns something even worse happens. It will temporarily disregard the CRLF it has unexpectedly found and pad any missing columns with columns from the start of the next row! Not smart is an understatement here. Who would EVER want that to happen? The remainder of the file is garbage at that point.&lt;/p&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It doesn't seem unreasonable to have variations in file width for whatever reason (of course only variations at the end of a row can reaonably be handled (x fewer or extra columns) but it looks like this is simply not handled well, unless I'm missing something.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So far our only solution to this is to load a row as one giant column (column0) and then use a script task to dynamically split it using however many delimiters it finds. This works well, except that it limits row widths to 4000 chars (the max width of one unicode column). If you need to import a wider row (say with multiple 4000 wide columns for text import) then you need to define multiple columns as above, but you are then stuck with requiring a strict number of columns per row.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is there any way around these limitations?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4281237/ssis-flat-files-with-variable-column-numbers'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4280453178780103309?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4280453178780103309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/ssis-flat-files-with-variable-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4280453178780103309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4280453178780103309'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/ssis-flat-files-with-variable-column.html' title='SSIS Flat Files with Variable Column Numbers'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1462208067254357297</id><published>2010-11-27T18:08:00.001-08:00</published><updated>2010-11-27T18:08:45.715-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>CGImage (or UIImage) from a CALayer</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi all,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have created a &lt;code&gt;CALayer&lt;/code&gt;&lt;br /&gt; (I added several shapes to the layer, but ultimately, I have a single CALayer), and I am having a LOT of trouble adding it to a CGImage.  I have found some references to &lt;code&gt;[CALayer renderInContext:ctx]&lt;/code&gt;, but I am not sure how to implement it.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Has anyone done this before?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Cheers,&lt;br /&gt;Brett&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/3816527/cgimage-or-uiimage-from-a-calayer'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1462208067254357297?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1462208067254357297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/cgimage-or-uiimage-from-calayer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1462208067254357297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1462208067254357297'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/cgimage-or-uiimage-from-calayer.html' title='CGImage (or UIImage) from a CALayer'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3519047022704650135</id><published>2010-11-25T18:08:00.003-08:00</published><updated>2010-11-25T18:08:52.325-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>TypeID for derived classes of a common base class</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hey guys,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm attempting to implement some mechanism in C++ whereby all classes derived from a common base class are assigned a unique "class ID". For example:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;class BaseClass  &lt;br /&gt;{  &lt;br /&gt;    //...&lt;br /&gt;    public: unsigned int GetID( void );&lt;br /&gt;    //...&lt;br /&gt;};&lt;br /&gt;class DerivedClass : public BaseClass&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Class DerivedClass, and all other children of BaseClass, should be able to return unique identifiers without any additional code added to DerivedClass...C++ is making this rather difficult for me, however. Any ideas would be appreciated.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance!&lt;br /&gt;---Dan&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4282058/typeid-for-derived-classes-of-a-common-base-class'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3519047022704650135?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3519047022704650135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/typeid-for-derived-classes-of-common.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3519047022704650135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3519047022704650135'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/typeid-for-derived-classes-of-common.html' title='TypeID for derived classes of a common base class'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3442934876946284415</id><published>2010-11-25T18:08:00.001-08:00</published><updated>2010-11-25T18:08:49.966-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Can a pointer be converted into void pointer?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Can a pointer be converted into void pointer?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4282068/can-a-pointer-be-converted-into-void-pointer'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3442934876946284415?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3442934876946284415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/can-pointer-be-converted-into-void.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3442934876946284415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3442934876946284415'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/can-pointer-be-converted-into-void.html' title='Can a pointer be converted into void pointer?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1956654586457640137</id><published>2010-11-24T18:08:00.003-08:00</published><updated>2010-11-24T18:08:54.829-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Linux variable expansion problem ?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi all,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'd like to get a sequence of number like this 01,02,..,30&lt;br /&gt;But if I use {01..30}, I will get 1,2,..30, the zero before single-digit number is missing. &lt;br /&gt;How can I get the format like 01,02..30 ?  Thanks in advance&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4273149/linux-variable-expansion-problem-'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1956654586457640137?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1956654586457640137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/linux-variable-expansion-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1956654586457640137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1956654586457640137'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/linux-variable-expansion-problem.html' title='Linux variable expansion problem ?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-327000306652169129</id><published>2010-11-24T18:08:00.001-08:00</published><updated>2010-11-24T18:08:52.498-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>scipt to measure page response times from client machines</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am running a web app on a large intranet. Some people are complaining of very bad load times on this app from their desktop machines, for others the response time is very good. the people complaining of the bad response times don't appear to have issues with other internal or external sites, just ours.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I believe its a network problem, but as I said its a large intranet with multiple large departments spanning an entire city, to get the engineers to prick up their ears and take a look at this issue I want to collect some data.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The users are not tech savvy and cannot assist other than to complain, sometimes loudly. What I would like to do is to place a small app on the users machines that access the website at various times during the day and logging the results. I envisaged a small script probably VBScript that can run quietly in the background logging the load times of a page or number of selected pages from the site, then either posting the data to me or I get the user to post the log to me after say a week.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Does anyone know of such a script. or something close that I could modify to do what I want?  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It would need to run on windows xp and not use anything that requires admin rights.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4273187/scipt-to-measure-page-response-times-from-client-machines'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-327000306652169129?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/327000306652169129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/scipt-to-measure-page-response-times.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/327000306652169129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/327000306652169129'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/scipt-to-measure-page-response-times.html' title='scipt to measure page response times from client machines'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2004363290267590987</id><published>2010-11-23T18:08:00.003-08:00</published><updated>2010-11-23T18:08:56.132-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>String Split in PHP</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Good afternoon all :)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am trying to split a string in PHP however it's not as easy as it is in C#, it seems to be a tad bit messy...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have a string, which looks something like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;blahblah1323r8b|7.45&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;and I would like to be able to access the results of the split like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$var = split_result['leftside'];&lt;br /&gt;$var = split_result['rightside'];&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is this easy to do in PHP? I'm trying to find some good examples, but the ones i've seen seem to be not what i'm trying to do, and a little over complicated (correct me if i'm wrong :))&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thank you :)&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4262888/string-split-in-php'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2004363290267590987?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2004363290267590987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/string-split-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2004363290267590987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2004363290267590987'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/string-split-in-php.html' title='String Split in PHP'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5994643180898867542</id><published>2010-11-23T18:08:00.001-08:00</published><updated>2010-11-23T18:08:54.028-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Problem with PHPUnit and Data Providers</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have the following test case:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;include_once('../Logger.php');&lt;br /&gt;&lt;br /&gt;class LoggerTest extends PHPUnit_Framework_TestCase {&lt;br /&gt;&lt;br /&gt;    static public function providerLogger() {&lt;br /&gt;        return array(&lt;br /&gt;           new Logger&lt;br /&gt;        );&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * @dataProvider providerLogger&lt;br /&gt;     */&lt;br /&gt;    public function testAddStream($logger) {&lt;br /&gt;        $this-&amp;gt;assertTrue(false);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;When I run it in PHPUnit, I get:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;PHPUnit 3.4.14 by Sebastian Bergmann.&lt;br /&gt;&lt;br /&gt;F&lt;br /&gt;&lt;br /&gt;Time: 0 seconds, Memory: 5.75Mb&lt;br /&gt;&lt;br /&gt;There was 1 failure:&lt;br /&gt;&lt;br /&gt;1) Warning&lt;br /&gt;The data provider specified for LoggerTest::testAddStream is invalid.&lt;br /&gt;Data set #0 is invalid.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FAILURES!&lt;br /&gt;Tests: 1, Assertions: 0, Failures: 1.&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I remember having it working in a similar fashion before, but I could be wrong. What am I missing?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;PHPUnit 3.4.14 (taken from PEAR) on PHP 5.3.3&lt;/em&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4262309/problem-with-phpunit-and-data-providers'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5994643180898867542?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5994643180898867542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/problem-with-phpunit-and-data-providers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5994643180898867542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5994643180898867542'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/problem-with-phpunit-and-data-providers.html' title='Problem with PHPUnit and Data Providers'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-4958248975270579655</id><published>2010-11-22T18:08:00.003-08:00</published><updated>2010-11-22T18:08:40.248-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>preg_replace successful or not</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Is there any way to tell if a preg_replace was successful or not?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I tried:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;and yes, I looked at php docs for this one. Sorry about my stupid questions earlier.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4252032/preg-replace-successful-or-not'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-4958248975270579655?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/4958248975270579655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/pregreplace-successful-or-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4958248975270579655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/4958248975270579655'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/pregreplace-successful-or-not.html' title='preg_replace successful or not'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3403997668039362318</id><published>2010-11-22T18:08:00.001-08:00</published><updated>2010-11-22T18:08:38.149-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to get an evenly distributed sample from Perl array values?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have  an array containing many values between 0 and 360 (like degrees in a circle), but unevenly distributed:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1,45,46,47,48,49,50,51,52,53,54,55,100,120,140,188, 210, 280, 355 &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now I need to reduce those values to e.g. 4 only, but as evenly as possible distributed values.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;How to do that?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks,&lt;br /&gt;Jan&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4252089/how-to-get-an-evenly-distributed-sample-from-perl-array-values'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3403997668039362318?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3403997668039362318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-to-get-evenly-distributed-sample.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3403997668039362318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3403997668039362318'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-to-get-evenly-distributed-sample.html' title='How to get an evenly distributed sample from Perl array values?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-408238068592073999</id><published>2010-11-21T18:08:00.003-08:00</published><updated>2010-11-21T18:08:42.763-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>itunesconnect iphone app status - invalid binary</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Whenever I submit my app to itunesconnect, after about 10 minutes, the status changes to "Invalid Binary" with absolutely no explanation why.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have searched all over for answers there is non. I even re-installed XCode and App loader.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Note that App Loader doesn't give any errors whatsoever.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I build with XCode 3.2.3 iPhone 4 GM Seed iPhone 4 based SDK iPhone/iPad as a target family &lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/3658929/itunesconnect-iphone-app-status-invalid-binary'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-408238068592073999?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/408238068592073999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/itunesconnect-iphone-app-status-invalid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/408238068592073999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/408238068592073999'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/itunesconnect-iphone-app-status-invalid.html' title='itunesconnect iphone app status - invalid binary'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2240441749664585428</id><published>2010-11-21T18:08:00.001-08:00</published><updated>2010-11-21T18:08:40.555-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Assembly runtime memory allocation</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am working on some MIPS assembly code, and am unsure how to allocate memory during runtime. So far, I've been using the stack or the data segment to store anything I may need, but what if I want something more persistent? To be specific, how do I know what memory address to choose when allocating? How do I know that I'm not overwriting something (e.g.: the stack, or the program instructions)? I can start at &lt;code&gt;0x0000&lt;/code&gt; but I have no idea what's in that block.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have read &lt;a href='http://stackoverflow.com/questions/3498373/assembly-memory-allocation'&gt;Assembly memory allocation&lt;/a&gt;, but it doesn't seem to answer this question.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;PM&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4241572/assembly-runtime-memory-allocation'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2240441749664585428?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2240441749664585428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/assembly-runtime-memory-allocation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2240441749664585428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2240441749664585428'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/assembly-runtime-memory-allocation.html' title='Assembly runtime memory allocation'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-5576827901901234646</id><published>2010-11-20T18:08:00.003-08:00</published><updated>2010-11-20T18:08:44.981-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>.NET Multifle Assemblies...Can save RAM space because secondary modules loaded on demand?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Im studying up on .NET multifile assemblies.  In the context of multifile assemblies, the book states:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;  &lt;p&gt;*.netmodules [not the primary module] are loaded on demand by the CLR when used by the calling code&lt;/p&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Set me on the right track if I'm wrong, but when calling an executable file, all referenced assemblies, including the executable file's compiled code is loaded into memory, and then is processed by the JIT (Just in time compiler) when the code is called.  I may be misunderstanding the quote above, but how I am reading the quote is that .netmodules that are part of a multifle assembly &lt;em&gt;are not loaded into memory until called&lt;/em&gt;.  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Am I right in thinking this?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4235982/net-multifle-assemblies-can-save-ram-space-because-secondary-modules-loaded-on'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-5576827901901234646?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/5576827901901234646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/net-multifle-assembliescan-save-ram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5576827901901234646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/5576827901901234646'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/net-multifle-assembliescan-save-ram.html' title='.NET Multifle Assemblies...Can save RAM space because secondary modules loaded on demand?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-1884475802935180635</id><published>2010-11-20T18:08:00.001-08:00</published><updated>2010-11-20T18:08:42.054-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Image Processing Using Matlab, Matrices Problem</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Does anyone know how to add an extra column to an already existing matrix?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4230054/image-processing-using-matlab-matrices-problem'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-1884475802935180635?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/1884475802935180635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/image-processing-using-matlab-matrices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1884475802935180635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/1884475802935180635'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/image-processing-using-matlab-matrices.html' title='Image Processing Using Matlab, Matrices Problem'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2575346921958305839</id><published>2010-11-19T18:07:00.001-08:00</published><updated>2010-11-19T18:07:44.576-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How to include assembly info to xsltc-compiled dll?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I need to &lt;strong&gt;include assembly info on my dll&lt;/strong&gt; which I manually compiled the XSLT files using command prompt with XSLTC.exe. Anyone knows how? ILmerge?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4230828/how-to-include-assembly-info-to-xsltc-compiled-dll'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2575346921958305839?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2575346921958305839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-to-include-assembly-info-to-xsltc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2575346921958305839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2575346921958305839'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-to-include-assembly-info-to-xsltc.html' title='How to include assembly info to xsltc-compiled dll?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2930464499029824469</id><published>2010-11-18T18:07:00.003-08:00</published><updated>2010-11-18T18:07:48.250-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>sql select,get most recent entry for each car</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;My database (MySql) has 2 tables&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Table 1 - contains a record for each car&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;cars= id(int), reg(int), type(int)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Table 2 - contains jobs for each car&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;jobs = id(int),date(date)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I need a SELECT command which will get me the most recent job for all id's&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4221322/sql-select-get-most-recent-entry-for-each-car'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2930464499029824469?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2930464499029824469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/sql-selectget-most-recent-entry-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2930464499029824469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2930464499029824469'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/sql-selectget-most-recent-entry-for.html' title='sql select,get most recent entry for each car'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7411410893118780901</id><published>2010-11-18T18:07:00.001-08:00</published><updated>2010-11-18T18:07:46.217-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Windows Forms how to find out if selectedindex was changed by user or by code</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have a combobox in a Windows Forms project with an event attached to the selectedindex changed event.   The event is getting triggered when the selectedindex is changed both from code and from user input.  How do you detect if the selectedindex is getting changed due to user input?&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4221504/windows-forms-how-to-find-out-if-selectedindex-was-changed-by-user-or-by-code'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7411410893118780901?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7411410893118780901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/windows-forms-how-to-find-out-if.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7411410893118780901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7411410893118780901'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/windows-forms-how-to-find-out-if.html' title='Windows Forms how to find out if selectedindex was changed by user or by code'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-2904229944379273894</id><published>2010-11-17T18:07:00.001-08:00</published><updated>2010-11-17T18:07:48.444-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>How can I deal with an array of structs?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;i have this struct:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#define sbuffer 128&lt;br /&gt;#define xbuffer 1024&lt;br /&gt;&lt;br /&gt;typedef struct{&lt;br /&gt;    char name[sbuffer];&lt;br /&gt;    char att[sbuffer];&lt;br /&gt;    char type[sbuffer];&lt;br /&gt;    int noOfVal;&lt;br /&gt;    int ints[xbuffer];&lt;br /&gt;    double doubles[xbuffer];&lt;br /&gt;    char *strings[xbuffer];&lt;br /&gt;} variable;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;i need to make an array from this struct, i did this&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;variable *vars[512]; //is it right&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;if i want to put a string i had in s into the name,, i did this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;char *s = "What Ever";&lt;br /&gt;strcpy(vars[0]-&amp;gt;name,s);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;but this is not work,, any help ???&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4210967/how-can-i-deal-with-an-array-of-structs'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-2904229944379273894?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/2904229944379273894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-can-i-deal-with-array-of-structs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2904229944379273894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/2904229944379273894'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/how-can-i-deal-with-array-of-structs.html' title='How can I deal with an array of structs?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3760791604889861892</id><published>2010-11-14T18:07:00.003-08:00</published><updated>2010-11-14T18:07:56.303-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Execute stored proc with OPENQUERY</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I have SQL Server 2008 with a linked Sybase server and I am trying to execute a stored procedure on the Sybase server using OPENQUERY.  If I have a stored proc that doesn't take parameters it succeeds fine.  If I have a stored proc with parameters it fails. I even tried a very basic stored proc that only took an int an that still failed. Below is the syntax I am using:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;select * from &lt;br /&gt;OPENQUERY([LINKSERVER],'exec database.user.my_stored_proc ''AT'',''XXXX%'',''1111'',1')&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Msg 7357, Level 16, State 2, Line 3&lt;br /&gt;Cannot process the object "exec database.user.my_stored_proc 'AT','XXXX%','1111',1". The OLE DB provider "ASEOLEDB" for linked server "LINKSERVER" indicates that either the object has no columns or the current user does not have permissions on that object.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;As the proc will execute just fine without parameters, I don't think it is a permission issue.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4159465/execute-stored-proc-with-openquery'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3760791604889861892?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3760791604889861892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/execute-stored-proc-with-openquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3760791604889861892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3760791604889861892'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/execute-stored-proc-with-openquery.html' title='Execute stored proc with OPENQUERY'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-48644118896893308</id><published>2010-11-14T18:07:00.001-08:00</published><updated>2010-11-14T18:07:54.171-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Android: Multiple activity instances launched by same intent. Bring one uniquely to foreground?</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hi,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I'm struggling with my app that launches multiple instances of the&lt;br /&gt;same Activity using the same intent. My main activity is of class type&lt;br /&gt;A and it does a startActivity() of two children that are of the same&lt;br /&gt;class type B. So we have B1 and B2 launched. If B1 and B2 are both&lt;br /&gt;paused (by pushing back button and making sure finish() is not invoked&lt;br /&gt;on them so they are truly paused), how can A uniquely bring either B1&lt;br /&gt;or B2 to the foreground again? I do want to launch a new B activity. I&lt;br /&gt;want to uniquely bring B1 or B2 to the foreground.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;so both B1 and B2 were created like this...&lt;br /&gt;Intent intent = new Intent(context, B.class);&lt;br /&gt;intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);&lt;br /&gt;startActivity(intent);&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now I want A to bring B1 (or B2) to the foreground/front so I use the&lt;br /&gt;below code, but how do I distinguish B1 or B2 when starting the&lt;br /&gt;activity? This only brings the last instance of B that was on top to&lt;br /&gt;the foreground.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Intent intent = new Intent(context, B.class);&lt;br /&gt;intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);&lt;br /&gt;startActivity(intent);&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I've tried keeping around references to B1 and B2 and doing something&lt;br /&gt;like this, but this also only goes to the last instance of activity&lt;br /&gt;class B that was on top...&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Intent intent = new Intent(B1context, B.class);&lt;br /&gt;intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);&lt;br /&gt;B1context.startActivity(intent);&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I even tried this, but it still doesnt get me my unique B1 or B2...&lt;br /&gt;Intent intent = B1.getIntent(); // i.e. the original intent that&lt;br /&gt;started me&lt;br /&gt;startActivity(intent); // still only brings to front the last B that&lt;br /&gt;was on top.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4180512/android-multiple-activity-instances-launched-by-same-intent-bring-one-uniquely'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-48644118896893308?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/48644118896893308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/android-multiple-activity-instances.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/48644118896893308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/48644118896893308'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/android-multiple-activity-instances.html' title='Android: Multiple activity instances launched by same intent. Bring one uniquely to foreground?'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-7957277349724149274</id><published>2010-11-13T18:08:00.001-08:00</published><updated>2010-11-13T18:08:01.457-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Table header losing widths</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;I am trying to make my header for a gridview i have fixed and i almost have it.  I set the position to fixed because it will be in the same spot on teh screen all teh time.  I can then move it around using css to postion it right.  The only problem is the columns in my table header lose there width when i go to position fixed.  I would like to have my header table columns be the same width as my row column widths.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Is there any way to set this using css or jQuery?  My column widths change depending on the data so I would probably have to do this at runtime.&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4175834/table-header-losing-widths'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-7957277349724149274?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/7957277349724149274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/table-header-losing-widths.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7957277349724149274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/7957277349724149274'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/table-header-losing-widths.html' title='Table header losing widths'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7785634479016551576.post-3470757072934436750</id><published>2010-11-13T18:07:00.001-08:00</published><updated>2010-11-13T18:07:59.355-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><title type='text'>Android: Implementing a VoIP program</title><content type='html'>&lt;div&gt;&lt;h3&gt;Programmer Question&lt;/h3&gt; &lt;p&gt;Hello,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have some design questions that I want to discuss with people interested in helping me. I am planning to develop a simple VoIP program that allows two Android phones in the same network to use VoIP. My goal is simply to capture sound, send the data with UDP, receive UDP data and play sound.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;My current design is to have 2 threads: one captures the microphone and sends the data; the other one receives bytes and plays them.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I was starting to implement that using MediaPlayer and MediaRecorder. The issue that came up is how do I record and play sound? By that, I would like to know if I need to use a file, although that seems slow, or if there is anyway to have the recording automatically sent to my UDP socket please?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Basically, I wonder if I have to record to a file, then to be able to play it, or if I could just pass a socket (for recording and playing).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Does anyone has any suggestion please?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thank you very much&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a rel='nofollow' href='http://stackoverflow.com/questions/4175805/android-implementing-a-voip-program'&gt;Find the answer here&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785634479016551576-3470757072934436750?l=wcfdotnet.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wcfdotnet.blogspot.com/feeds/3470757072934436750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/android-implementing-voip-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3470757072934436750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785634479016551576/posts/default/3470757072934436750'/><link rel='alternate' type='text/html' href='http://wcfdotnet.blogspot.com/2010/11/android-implementing-voip-program.html' title='Android: Implementing a VoIP program'/><author><name>The One</name><uri>http://www.blogger.com/profile/16491240195097347232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
