Notices by Toksyuryel (toksyuryel), page 12

  1. @bitshift And that's just screencast.sh. common.sh is another 29 lines on top of that.

    Tuesday, 05-Feb-13 15:51:42 UTC from web in context
  2. 437 lines. This is probably big enough now that I should add a GPL notice to it.

    Tuesday, 05-Feb-13 15:47:37 UTC from web in context
  3. @neurario Specifically, Twitter is not a social network.

    Tuesday, 05-Feb-13 01:45:16 UTC from web in context
  4. @neurario One of these things is not like the other.

    Tuesday, 05-Feb-13 01:26:23 UTC from web in context
  5. @scribus Could probably include "A Canterlot Wedding" in that list too, now that I think on it.

    Monday, 04-Feb-13 20:49:15 UTC from web in context
  6. @scribus I generally use "Boast Busters" and "Putting Your Hoof Down" as a yardstick for what's acceptable. Do you feel that's accurate?

    Monday, 04-Feb-13 20:48:39 UTC from web in context
  7. @scribus I assume I know where the line is, but I've been wrong before.

    Monday, 04-Feb-13 20:43:24 UTC from web in context
  8. @snowcone Not really. Pretty vanilla if you ask me.

    Monday, 04-Feb-13 20:40:15 UTC from web in context
  9. @scribus Yeah

    Monday, 04-Feb-13 18:50:38 UTC from web in context
  10. @scribus Gandi~

    Monday, 04-Feb-13 18:17:50 UTC from web in context
  11. @bitshift

    Monday, 04-Feb-13 15:04:17 UTC from web in context
  12. What I need is a text parser. Thinking logically, the shell already has a text parser which it uses to strip comments. I may be able to circumvent the problem entirely if I can figure out how to use that directly.

    Monday, 04-Feb-13 14:32:17 UTC from web
  13. Notably, vim's syntax highlighting is able to handle that file just fine if it's saved with a .sh extension. If I am not mistaken, vim's syntax highlighting is regex-based, so perhaps if I have a glance at the syntax files I will find my answer.

    Monday, 04-Feb-13 14:25:40 UTC from web
  14. @bitshift Here's the file I made for testing with http://bpaste.net/show/74997/

    Monday, 04-Feb-13 14:23:58 UTC from web in context
  15. @bitshift No amount of lookaround will satisfy this case: VAR="quoted value" # comment with an "embedded quote" in it

    Monday, 04-Feb-13 14:06:55 UTC from web in context
  16. @bitshift I have recognized a flaw in my comparison idea which basically means it's not going to work anyway even if there was a way to do it that way. It looks like what I actually need to do is count up the number of quotes, and only match if an even number of quotes precedes the first # and I don't think that's something a regular expression can do. Time to break out awk.

    Monday, 04-Feb-13 13:50:27 UTC from web in context
  17. @mrdragon If you remove them you're doing it wrong. #

    Monday, 04-Feb-13 12:39:55 UTC from web in context
  18. @bitshift According to that article, you can't use repetition or optional items inside a lookbehind.

    Monday, 04-Feb-13 12:39:33 UTC from web in context
  19. @bitshift sed actually

    Monday, 04-Feb-13 12:33:13 UTC from web in context
  20. @mrdragon If you take them off you're doing it wrong.

    Monday, 04-Feb-13 12:33:00 UTC from web in context
  21. I wish @minti hadn't abandoned !mintrefresh =/ it was more than just a refresh script, and the additional parts of it still haven't been merged into !rdnplus.

    Monday, 04-Feb-13 12:32:26 UTC from web
  22. @bitshift Sounds good *hug*

    Monday, 04-Feb-13 12:28:54 UTC from web in context
  23. @mrdragon I thought you wanted Spitfire, not wanted to BE Spitfire?

    Monday, 04-Feb-13 12:23:36 UTC from web in context
  24. @bitshift You didn't allow for any characters to separate the quotes and the #

    Monday, 04-Feb-13 12:23:11 UTC from web in context
  25. @bitshift This will match when there is a quote character after the # even if there isn't one before it. (I am being generous here- this actually barely matches anything at all, but I understand what you meant to type)

    Monday, 04-Feb-13 12:19:04 UTC from web in context
  26. @mrdragon Let me just slip into this Spitfire costume…

    Monday, 04-Feb-13 12:16:04 UTC from web in context
  27. @bitshift I recognize that this breaks when a quote is escaped, but I'd like to take this one step at a time (and I found a snippet that allows for escaped quotes so hopefully finding the solution to the simpler problem will teach me whatever I need to know to work that into the final result).

    Monday, 04-Feb-13 12:13:02 UTC from web in context
  28. @bitshift The string to match is '\s*#.*' and the string to not match is '".*#.*"'

    Monday, 04-Feb-13 12:11:16 UTC from web in context
  29. @bitshift The problem arises from needing to check that the string to match is not contained within the string to not match. Specifically, I am trying to match the first # symbol that is not inside quotes.

    Monday, 04-Feb-13 12:10:27 UTC from web in context
  30. Anyone good at regular expressions? How do I say "match this string unless it also matches this other string"?

    Monday, 04-Feb-13 12:05:51 UTC from web in context