last day (48 days later) » 

8:12 AM
while @ProgramFOX was himself distracted with those pictures, takes muffin back. My Muffin
 
9:02 AM
@SweetieBot Please, can I have a cupcake?
 
~ One cupcake on its way for @SPArchaeologist ....
 
 
1 hour later…
10:02 AM
1 message moved from Sugarcube Corner
 
@SweetieBot Please, can I have a cupcake?
 
~ Don't hammer me...
 
@ProgramFOX Fox, the bot version is different here. Probably right now it doesn't reply even to me :P
 
@SPArchaeologist oh
 
hey everyone :D
how are you @SweetieBot ?
 
10:14 AM
Hey!
 
@ProgramFOX Hey!
you know, once I developed an app for android, its name was "Hey"
 
@DroidDev currently disassembled for upgrades.
 
10:38 AM
hey @SweetieBot I edited your answer. How do you feel? :D
 
@DroidDev Does not compute. No sign of editing detected.
 
@SweetieBot test message 01
@SweetieBot test message 02
@SweetieBot test message 03
@SweetieBot test message 04
@SweetieBot test message 05
 
11:15 AM
@ProgramFOX how nice. Reg Ex parsing for javascript is different that most standards?
 
@SPArchaeologist Uhh... no idea, let me look it up.
@SPArchaeologist Can you give an example?
 
@ProgramFOX if I have something like "Prefix Foo Bar" I was expecting "(?=^Prefix\s).+" to return "Foo Bar", not the whole.
 
@SPArchaeologist Can you put something in a Fiddle? Then I can mess around with it a bit. I think you should look in a different group, at least if you put parentheses around .+
 
11:32 AM
i had to use "(?=^test\\s(.+))" - notice that .+ is INSIDE the lookup, should work outside but...no.
it also returns a string empty match.
Wasn't "+" a 1 or more match? why it matches empty????
 
@SPArchaeologist You have nowhere written what you want the results to be, so I don't know what I should update. Can you include that please?
 
@ProgramFOX jsfiddle.net/L8x459ss/1 I am trying to understand how to select only the Foo Bar part. Seems that javascript reg ex engine works different than javascript one.
 
@SPArchaeologist ok, will take a look
 
@ProgramFOX but you don't need to lose time, i probably will just use the second match.
 
@SPArchaeologist Kind-of by design:
> If the match succeeds, the exec method returns an array and updates properties of the regular expression object. The returned array has the matched text as the first item, and then one item for each capturing parenthesis that matched containing the text that was captured.
The array will always have the matched text as first element, and captured groups between parentheses will be the next items.
@SPArchaeologist ^
Gtg for lunch, cya!
 
11:47 AM
great, I just read on SO that the first element is the original string.... great, really great
at least your explanation makes more sense, @ProgramFOX
 
12:00 PM
@SweetieBot test message
@SweetieBot test message
 
12:18 PM
I'm back!
@SPArchaeologist No, the first element is the part that it matches. And in the "test foo bar" case, it matches the whole string, and captures "foo bar" as a group. But if the regex would be only "foo bar", then the first element would be "foo bar", not "test foo bar".
 
@SweetieBot test message
@SweetieBot test message
 
 
2 hours later…
2:48 PM
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
 
Apparently the bot doesn't listen ;P
 
@SweetieBot Please, can I have a lemon cupcake?
@ProgramFOX apparently, resharper has made me weak and i can no longer program with notepad :P
 
@SPArchaeologist :D
 
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
 
bug cause: undefined Fridge
Please phylosopically define the Fridge entity before attempting to withdraw cupcakes
 
3:07 PM
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
 
3:29 PM
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
@SweetieBot Please, can I have a lemon cupcake?
 
~ One cupcake on its way for @SPArchaeologist ....
 
@SweetieBot Hi, can I have a lemon cupcake?
 
~ One cupcake on its way for @SPArchaeologist ....
 
@SweetieBot Hi, could I have a strawberry cupcake?
 
~ One cupcake on its way for @SPArchaeologist ....
 
3:44 PM
ok.
I hate javascript
 
Me too.
 
@SweetieBot Hi, can I have a cupcake?
@SweetieBot Hi, can I have a cupcake?
@SweetieBot Hi, can I have a cupcake?
@SweetieBot Hi, could I have a cupcake?
@SweetieBot Hi, could I have a cupcake?
@SweetieBot Hi, could I have a cupcake?
 
4:04 PM
~ Sure, @SPArchaeologist. Which flavour do you prefer? We have lemon,strawberry.
 
@SweetieBot Hi, can I have a cupcake?
 
~ Sure, @ProgramFOX. Which flavour do you prefer? We have lemon,strawberry.
 
@SweetieBot Can you please give me a lemon cupcake?
 
@ProgramFOX not managing complex parsing for now. I stuck with regex for the time begin
 
@SPArchaeologist ok
 
4:10 PM
now I am searching for a way to track one bot message so to detect if an user has replyied
@SweetieBot Hi, can I have a cupcake?
 
~ Sure, @SPArchaeologist. Which flavour do you prefer? We have lemon,strawberry.
 
Found it. Send returns the message id, so I can track it...
 

  last day (48 days later) »