Difference between pages "File talk:Breakable equipment.jpg" and "Talk:Tips, Tricks and Workarounds"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Icon315
m (Reverted edits by 184.72.254.238 (Talk) to last revision by Bale)
 
imported>PhilmASTErpLus
(→‎Quirks & Hacks from PhilmASTErpLus: How about moving the information about print() to the function's page?)
 
Line 1: Line 1:
Times this page has been spammed: 3
+
__TOC__
  
Now we know what happens when we protect the page that spambots like. This seems to be the new spambot page. ;) --Bale 21:29, 17 August 2010 (UTC)
+
== Discussion Recap ==
  
Times this page has been spammed: 5 --[[User:Bale|Bale]] 06:56, 18 August 2010 (UTC)
+
=== Discussion from [[Talk:Storage amount]] ===
  
Times this page has been spammed: 7 --[[User:Heeheehee|Heeheehee]] 23:54, 20 August 2010 (UTC)
+
Can anyone else verify, before I edit it in, that this function doesn't work on free pulls? --[[User:StDoodle|StDoodle (#1059825)]] 11:45, 21 September 2010 (UTC)
  
Times this page has been spammed: 9 --[[User:Bale|Bale]] 19:14, 21 August 2010 (UTC)
+
Verified. I believe that this was reported as a bug once. (Back when we had that awesome bug tracker.) However this behavior was clarified to be working as intended and hence, not a bug. The fact that an itemd doesn't require a pulls means that it is supposed to be treated differently. Use {{f|available_amount}} minus {{f|item_amount}} to verify presence of free pulls in Hangks. Then get them into inventory with {{f|retrieve_item}} instead of with {{f|take_storage}}. You're right that info should probably be on all relevant pages.  --[[User:Bale|Bale]] 05:17, 22 September 2010 (UTC)
  
Times this page has been spammed: 10 --[[User:Heeheehee|Heeheehee]] 04:13, 22 August 2010 (UTC)
+
Perhaps we should start a special "caveats" page, and link to subheadings on it, for such info; it seems a bit much may be required to explain the situation to include it on every page. It would also be a good place to put info on things like Between Battle Scripts and adventure count in automation, etc. Thoughts? --[[User:StDoodle|StDoodle (#1059825)]] 15:10, 22 September 2010 (UTC)
  
Times this page has been spammed: 11 (That's ridiculous. It's not even funny. Seriously it isn't)----[[User:Icon315|Icon315♕]] ([[User talk:Icon315|☎]]|[[Special:Contributions/Icon315|♤]]) 23:22, 23 August 2010 (UTC)
+
I favor a caveats page. Or perhaps we could call it Tricks & Tips. We should add [[User:PhilmASTErpLus#ASH_Quirks_and_Hacks|THIS]] there also. --[[User:Bale|Bale]] 22:22, 22 September 2010 (UTC)
  
* You're right that it really isn't funny, but thanks to your "seriously it isn't" comment, I spit tea out my nose. So I guess it was funny after all. Either that or I just have a bad case of reverse-schadenfreude where I take delight in my own misery. --[[User:Bale|Bale]] 23:31, 23 August 2010 (UTC)
+
Tips, Tricks and Workarounds* sounds good to me. I agree that those items philmaterplus points out should go there. Also, we should clean up the FAQ to only include one example of non-aborting booleans, and move the full list to this new page, I think (with a link of course). Perhaps this would even be a good page to put a dedicated file link to the syntax highlighting scheme for Notepadd++ (I favor having it on the wiki, so when it's updated with new ash functions, it's... you know, updated). I'll come up with other ideas, too, and leave them on the talk page when it's there. --[[User:StDoodle|StDoodle (#1059825)]] 17:04, 23 September 2010 (UTC)
  
Times this page has been spammed: 12. Ok first of all, why would you spam here? Secondly, should we block this page?----[[User:Icon315|Icon315♕]] ([[User talk:Icon315|☎]]|[[Special:Contributions/Icon315|♤]]) 19:54, 24 August 2010 (UTC)
+
*Actually it doesn't sound perfect, which is why I'm not making it yet... hrmph.
  
* NO! We should not block this page. There was another page on this wiki (whose name escapes me since it was weird) which was spammed exclusively. We didn't use that page for anything, so we deleted it every time the spambot created it. We finally decided to protect that page 3 days before this page became the new spam lightening rod. If we protected this page, the new spambot favorite page might be one that actually gets used. That would be BAD! --[[User:Bale|Bale]] 20:53, 24 August 2010 (UTC)
+
Moving Discussion to [[Talk: Tips, Tricks and Workarounds]]. Since there may be a bit of discussion about the page before it gets created properly. We can always move the talk page if we change our minds about what it should be called. --[[User:Bale|Bale]] 21:18, 23 September 2010 (UTC)
** '''(ASHRM) String Handling Routines''' or something like that? But yeah, I had originally protected the page but was convinced to unprotect it because of the cool analogy (lightning rod!). It was eventually StD who reprotected it because he got sick of the spam problem. But since it's resurfaced, we really should learn to stop protecting pages. If it spreads to a new page while this one's still unprotected, then we might consider protecting pages en masse (alternative solution, pester Fewyn to restrict editing to logged-in users only, but we'd have to wait for him to respond). But okay, it's been hit 12 times in a row without any other targets coming into sight. Guess we'll have to wait another 25 before being really sure that spambots won't target any other pages. --[[User:Heeheehee|Heeheehee]] 21:23, 24 August 2010 (UTC)
 
***Isn't there a way to make it so that only registered users can edit pages? That would keep away lots of spam bots----[[User:Icon315|Icon315♕]] ([[User talk:Icon315|☎]]|[[Special:Contributions/Icon315|♤]]) 22:00, 24 August 2010 (UTC)
 
***It seems that only fewyn can change [[Special:ListGroupRights|permissions]]. --[[User:Bale|Bale]] 23:49, 24 August 2010 (UTC)
 
*** Yep. "(alternative solution, pester Fewyn to restrict editing to logged-in users only, but we'd have to wait for him to respond)" --[[User:Heeheehee|Heeheehee]] 05:56, 25 August 2010 (UTC)
 
*** We try not to bother fewyn about the wiki as much as we can get away with. Not making fewyn work except for something important is one of our guiding principles. However I think that this may be important. But what does StDoodle think? --[[User:Bale|Bale]] 07:07, 25 August 2010 (UTC)
 
  
Sorry guys, been busy lately. Here's my take:
 
# The original "protect this page" was equal parts frustration & experiment. The experiment was fruitful, in that we learned something, but unfortunately not what we wanted to. IE it didn't stop the spam, it just moved it. So unless anyone can think of something useful to add to that process, we should think carefully about that option. (Note: this does NOT apply if the spam moves on its own to a useful page).
 
# As mentioned above, this page isn't all that useful. I mean, yeah, kinda, but it's easy to make a new one for the content, and just leave this one here as a spam honeypot. (Plus, it's name isn't one that represents what I was trying to move the wiki away from, as the ASHRM one did.)
 
# Long-term solution would be to bug fewyn to make the changes mentioned above. I think I'm going to go ahead and do that, since we all seem to agree that it's the best idea. But I'm not going to pressure him to hurry; it looks like you guys have stayed on top of things fairly well, so no major need to have it done RIGHT NAOO.
 
# I'm likely to be busy for the near-to-mid future with personal junk. (Possible divorce, ew.) From this point on, I'd like to designate Bale as being officially, 100% in charge of day-to-day operations (fewyn of course keeping the "final say," when he wants it). Thanks for all of your efforts!
 
-- [[User:StDoodle|StDoodle]] 07:27, 25 August 2010 (UTC)
 
  
== oqNpkWoecHwzmsh ==
+
=== Quirks & Hacks from [[User:PhilmASTErpLus|PhilmASTErpLus]] ===
  
Isn't this cute? The spambot has created a new section with a nonsense name so that our discussion wasn't deleted. I don't know what to make of it. I'm leaving the section header here just 'cause I'm curious if future spambots will use it or create their own nonsense sections. I suspect the later.  
+
*{{f|print}} displays a blank line when given a string starting with a slash (<code>/</code>). To prevent this, the text color must be explicitly given. Easy to bypass, but weird.
 +
*"Anonymous" closures: ASH does not seem to accept anonymous closures by default.
 +
{{CodeSample|code=<syntaxhighlight>
 +
int var1;
 +
/* Do stuff */
 +
{
 +
    int var1;
 +
    call_some_function();
 +
    /* Do other stuff */
 +
}
 +
</syntaxhighlight>}}
 +
However, you can use a workaround with a if-clause.
 +
{{CodeSample|code=<syntaxhighlight>
 +
int var1;
 +
/* Do stuff */
 +
if (true)
 +
{
 +
    int var1;
 +
    /* Do other stuff */
 +
}
 +
</syntaxhighlight>}}
 +
As for where stuff like this could be used...I'm using it for initializing ASH scripts without creating any unnecessary functions or variables in the "namespace".
  
Times this page has been spammed: 13 --[[User:Bale|Bale]] 20:12, 25 August 2010 (UTC)
+
:Great work so far, guys. One nitpick, though: I think the tip about using print() should be put in {{print|the appropriate function page}}, instead. I'll add it there ASAP. --[[User:PhilmASTErpLus|PhilmASTErpLus]] 12:18, 26 September 2010 (UTC)
: Times this page has been spammed: 14. Also, uh, what was up with the latest spam hit? --[[User:Heeheehee|Heeheehee]] 23:53, 25 August 2010 (UTC)
 
  
Okay, that ''WAS'' weird. It never crossed my mind that it might over-write only the first section, leaving this one untouched. Just puzzling. --[[User:Bale|Bale]] 00:39, 26 August 2010 (UTC)
+
== New Discussion ==
  
Times this page has been spammed: 15. Ridiculous. Just Ridiculous ----[[User:Icon315|Icon315&#9813;]] ([[User talk:Icon315|&#9742;]]|[[Special:Contributions/Icon315|♤]]) 02:12, 26 August 2010 (UTC)
+
Ugh, sorry. Can't think of the best way to fix that ATM, it was half a joke. (Note to self; don't edit wiki drunk.) --[[User:StDoodle|StDoodle (#1059825)]] 06:32, 24 September 2010 (UTC)
 
 
Times this page has been spammed: 16 --[[User:Bale|Bale]] 07:19, 28 August 2010 (UTC)
 

Revision as of 12:18, 26 September 2010

Discussion Recap

Discussion from Talk:Storage amount

Can anyone else verify, before I edit it in, that this function doesn't work on free pulls? --StDoodle (#1059825) 11:45, 21 September 2010 (UTC)

Verified. I believe that this was reported as a bug once. (Back when we had that awesome bug tracker.) However this behavior was clarified to be working as intended and hence, not a bug. The fact that an itemd doesn't require a pulls means that it is supposed to be treated differently. Use available_amount() minus item_amount() to verify presence of free pulls in Hangks. Then get them into inventory with retrieve_item() instead of with take_storage(). You're right that info should probably be on all relevant pages. --Bale 05:17, 22 September 2010 (UTC)

Perhaps we should start a special "caveats" page, and link to subheadings on it, for such info; it seems a bit much may be required to explain the situation to include it on every page. It would also be a good place to put info on things like Between Battle Scripts and adventure count in automation, etc. Thoughts? --StDoodle (#1059825) 15:10, 22 September 2010 (UTC)

I favor a caveats page. Or perhaps we could call it Tricks & Tips. We should add THIS there also. --Bale 22:22, 22 September 2010 (UTC)

Tips, Tricks and Workarounds* sounds good to me. I agree that those items philmaterplus points out should go there. Also, we should clean up the FAQ to only include one example of non-aborting booleans, and move the full list to this new page, I think (with a link of course). Perhaps this would even be a good page to put a dedicated file link to the syntax highlighting scheme for Notepadd++ (I favor having it on the wiki, so when it's updated with new ash functions, it's... you know, updated). I'll come up with other ideas, too, and leave them on the talk page when it's there. --StDoodle (#1059825) 17:04, 23 September 2010 (UTC)

  • Actually it doesn't sound perfect, which is why I'm not making it yet... hrmph.

Moving Discussion to Talk: Tips, Tricks and Workarounds. Since there may be a bit of discussion about the page before it gets created properly. We can always move the talk page if we change our minds about what it should be called. --Bale 21:18, 23 September 2010 (UTC)


Quirks & Hacks from PhilmASTErpLus

  • print() displays a blank line when given a string starting with a slash (/). To prevent this, the text color must be explicitly given. Easy to bypass, but weird.
  • "Anonymous" closures: ASH does not seem to accept anonymous closures by default.
int var1;
/* Do stuff */
{
    int var1;
    call_some_function();
    /* Do other stuff */
}

However, you can use a workaround with a if-clause.

int var1;
/* Do stuff */
if (true)
{
    int var1;
    /* Do other stuff */
}

As for where stuff like this could be used...I'm using it for initializing ASH scripts without creating any unnecessary functions or variables in the "namespace".

Great work so far, guys. One nitpick, though: I think the tip about using print() should be put in Template:Print, instead. I'll add it there ASAP. --PhilmASTErpLus 12:18, 26 September 2010 (UTC)

New Discussion

Ugh, sorry. Can't think of the best way to fix that ATM, it was half a joke. (Note to self; don't edit wiki drunk.) --StDoodle (#1059825) 06:32, 24 September 2010 (UTC)