<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Project-GC Q&amp;A - Recent questions tagged coding</title>
<link>https://project-gc.com/qa/?qa=tag/coding</link>
<description>Powered by Question2Answer</description>
<item>
<title>When running Challenge Checker for GC4R6K2, PGC fails to respond with a result.  Browser just spins.</title>
<link>https://project-gc.com/qa/?qa=4708/running-challenge-checker-gc4r6k2-respond-result-browser</link>
<description></description>
<category>Support and help</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=4708/running-challenge-checker-gc4r6k2-respond-result-browser</guid>
<pubDate>Fri, 10 Apr 2015 23:08:24 +0000</pubDate>
</item>
<item>
<title>Challenge checker: AND statements possible when tagging?</title>
<link>https://project-gc.com/qa/?qa=3811/challenge-checker-and-statements-possible-when-tagging</link>
<description>When tagging a challenge checker like this one: &lt;a href=&quot;http://project-gc.com/Tools/Challenges?edit&amp;amp;addTag&amp;amp;tagId=159&quot; rel=&quot;nofollow&quot;&gt;http://project-gc.com/Tools/Challenges?edit&amp;amp;addTag&amp;amp;tagId=159&lt;/a&gt; (Generic checker for checking number of finds which includes a specified word):&lt;br /&gt;
&lt;br /&gt;
Would it be possible to say that for you need to have found 5 caches that contains the words (christmas OR xmas OR advent OR jul) AND (river OR water OR sea OR ocean)?&lt;br /&gt;
&lt;br /&gt;
ANd if yes, how do I write it in the code?</description>
<category>Miscellaneous</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=3811/challenge-checker-and-statements-possible-when-tagging</guid>
<pubDate>Sat, 21 Feb 2015 21:49:22 +0000</pubDate>
</item>
<item>
<title>programming help: exclude filter</title>
<link>https://project-gc.com/qa/?qa=1100/programming-help-exclude-filter</link>
<description>Does PGC_GetFinds support exclude filters? For example, instead of getting all caches where cache type = traditional, can I get all caches where cache type ~= traditional? If so, what is the syntax please?&lt;br /&gt;
&lt;br /&gt;
Can I construct a filter with a number of the same parameter, eg get caches where type = traditional or unknown only? Again, syntax, please.&lt;br /&gt;
&lt;br /&gt;
I realise I can get them all and filter them in code, howver it would be cleaner to to filter them at GetFinds.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Tom</description>
<category>Support and help</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=1100/programming-help-exclude-filter</guid>
<pubDate>Mon, 17 Nov 2014 08:38:25 +0000</pubDate>
</item>
<item>
<title>Can i create a tool for a specific challenge (with challenge checker)?</title>
<link>https://project-gc.com/qa/?qa=889/can-create-tool-specific-challenge-with-challenge-checker</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I found a great challenge in my area, and it even already has a challenge checker.&lt;br /&gt;
&lt;br /&gt;
I wondered if i could create a tool, similar to the tool to plan a route of all the missing D/T so that i can plan a route of the missing parts of that challenge and finish it.&lt;br /&gt;
&lt;br /&gt;
Here is the D/T tool i refer too : &lt;a href=&quot;http://project-gc.com/Tools/MapMatrix&quot; rel=&quot;nofollow&quot;&gt;http://project-gc.com/Tools/MapMatrix&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here is the challenge checker i am thinking about : &lt;a href=&quot;http://project-gc.com/Challenges/GC44YPJ/293&quot; rel=&quot;nofollow&quot;&gt;http://project-gc.com/Challenges/GC44YPJ/293&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Basically, i need to filter the caches by cache owner first letter and compare with the result of the challenge checker to only get the one's i'm missing.&lt;br /&gt;
&lt;br /&gt;
Any idea where to begin with that?&lt;br /&gt;
&lt;br /&gt;
/moza</description>
<category>Support and help</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=889/can-create-tool-specific-challenge-with-challenge-checker</guid>
<pubDate>Thu, 13 Nov 2014 08:03:06 +0000</pubDate>
</item>
<item>
<title>coding/regex help please</title>
<link>https://project-gc.com/qa/?qa=491/coding-regex-help-please</link>
<description>I am guessing this should be asked in the forum as per the challenge edit section, but I cannot log in there using my GC account and cannot find where to create a user account. So I guess that is question 1. (The standard is to provide a create user option on the user login page).&lt;br /&gt;
&lt;br /&gt;
Question 2:&lt;br /&gt;
I am trying to get the first alphanumeric character in a cache name, usually the first character, but not always. The code below looks like it should work, using one of the commented out lines, but none of them do the job. I suspect there is a better regex for the Gsub line, that would do the job too, but I could not work it out (I'm fairly new to this)&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated, thanks.&lt;br /&gt;
Tom&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Print(&amp;quot;previous printing\n&amp;quot;)&lt;br /&gt;
&amp;nbsp;for i,v in IPairs(myFinds) do&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NoPunct = StringGsub(v['cache_name'],&amp;quot;[%p%s]&amp;quot;,&amp;quot;&amp;quot;) &amp;nbsp;&amp;nbsp;&amp;nbsp;--removes punctuation&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--initial = StringMatch(NoPunct,&amp;quot;[a-z0-9]&amp;quot;) &amp;nbsp;&amp;nbsp;&amp;nbsp;--gets SECOND letter!!&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--initial = StringSub(NoPunct,1,1) &amp;nbsp;&amp;nbsp;&amp;nbsp;--produces no Print - not even previous printing!&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;--initial = PGC_UTF8_SubStr(NoPunct,1,1) --error msg&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Print (initial,&amp;quot;, &amp;quot;,NoPunct,&amp;quot;, &amp;quot;, v['cache_name'], &amp;quot;\n&amp;quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;end</description>
<category>Miscellaneous</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=491/coding-regex-help-please</guid>
<pubDate>Mon, 27 Oct 2014 00:03:28 +0000</pubDate>
</item>
<item>
<title>checker coding help please: Gccode2Owner_Id?</title>
<link>https://project-gc.com/qa/?qa=450/checker-coding-help-please-gccode2ownerid</link>
<description>I am using a bookmark to retun a list of unique cache owners, but it looks like a bookmark is just a table of gccodes. Is there a table or query I can use that will return an owner_id from a gccode? Something like &amp;nbsp;&amp;nbsp;PGC_Gccode2Owner_Id?&lt;br /&gt;
&lt;br /&gt;
This is for a challenge requiring finds for a number of different charter members. I have a bookmark containing them all, and most of their caches (alas, not all). From the bookmark I want to pull the charter member ids, and compare these to the challegee's finds.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
thanks in advance,&lt;br /&gt;
&lt;br /&gt;
Tom</description>
<category>Miscellaneous</category>
<guid isPermaLink="true">https://project-gc.com/qa/?qa=450/checker-coding-help-please-gccode2ownerid</guid>
<pubDate>Thu, 23 Oct 2014 23:14:07 +0000</pubDate>
</item>
</channel>
</rss>