« first day (2498 days earlier)      last day (2676 days later) » 

11:00
like I said, this is on php.net at the above mentioned url
I have some things that I need to finish and I will be doing the whole regex next
Don't learn regex from php.net
use one of the 100s sites dedicated to it
@PeeHaa - I already have some good sources from somebody
so this part should be ok
this example is the issue that I have
well put it into one of the regex splainer sites on the web
a) lets say this is "A | B | C", "C" is the "(?R)" - the recursion part. Does this apply to A or B?
I already did
I would like to understand it fully before I can move on
I am stuck on this since yesterday
the whole thing, "as a whole" is just excluded from matching
and what we are excluding is "[" "[indent]" and "[/indent]"
but there is this recursion part, so how does it relate to the A and B?
Did you test it?
11:04
[ and [ mirroring itself or [indent] and [indent] mirroring itself - no?
but that's whats in there, I mean I know that it is not, I am not understanding some aspect here
how this piece of code works
as a whole
I was looking at the regex101.com url above
basically "A | B | C" the "C" is the "(?R)" - so have two instances of A or two instances of B?
how does the recursion work when it is a part of an OR statement with 3 elements, basically would be what I don't get
Try it :)
C affects A and B but A does not affect B or C?
something like this
like I said, I will be learning the regex next
this is part of something else, I
I've been learning about Lambdas and Closures
and I got to that :)
I don't want to leave it, I would dig myself up of where I am, finish what I was doing and do the regex next, but I am stuck on this
the topic of recursion is explained on the net, but that A or B or C part not really, I think
either A or B or C, so any of these pass, but at the same time the C affects the A and B?
but not the other way around
so why the C would be different?
I know what this is doing, the regex code, but I am not fully understanding how
( (?: [^[] | [ (?! /?indent] ) | (?R)) +)
╔═════════════════════════════════════════════════╗
║ [43 minutes and 23 seconds] without an accident ║
║           since [2017-08-18 10:28:28]           ║
╚═════════════════════════════════════════════════╝
5 messages moved to Trash
Can't you just parse multiline messages instead of relying on people remembering to use \n @DaveRandom?
@AaronSmith As said. try it
yes, I will be trying there :)
And stop using the php.net example and use your own a|b|c example without all the other crap
@PeeHaa iirc that's complicated because of the structure of the messages, I forget the specifics
11:14
ok, this should / could work
I know it was a conscious decision to not allow it
there might have been some security issue
makes sense, good advice, thanks
!!realias thejoke say Air traffic control, this is "the joke" seeking clearance.\n"the joke", this is air traffic control. Maintain an altitude of 10,000 feet agl and proceed normally over the head.\nAir traffic control, this is "the joke", roger.
Command '!!thejoke' aliased to '!!say Air traffic control, this is "the joke" seeking clearance.\n"the joke", this is air traffic control. Maintain an altitude of 10,000 feet agl and proceed normally over the head.\nAir traffic control, this is "the joke", roger.'
@DaveRandom probably that asshole @RonniSkansing again bullying the poor elephant
11:15
!!thejoke
Air traffic control, this is "the joke" seeking clearance.
"the joke", this is air traffic control. Maintain an altitude of 10,000 feet agl and proceed normally over the head.
Air traffic control, this is "the joke", roger.
@Danack ^
so my coworkers overruled me with the currywurst. we had burgerking grilled dogs instead. that was underwhelming
user924016
(=
@Gordon Wat!?
Freaking asshholes. Schweinhunden
Anonymous
11:16
@Danack pfft that is not how ATC works.
@JayIsTooCommon Do you want to fight?
@PeeHaa do you object to the overruling or my judgement about the grilled dogs?
The overruling
currywurst ftw
I know, right
@PeeHaa I see you master the german language? :P
11:19
@Naruto Only the important things :P
that's good, carry on! ^^
Danke
@PeeHaa On a completely different subject: do you think you can send me some of the overdosed B12 and Magnesium from Etos? We dont have Etos and it's much cheaper in your country.
@Gordon I have no idea what that is, but sure :P
Are those supplements?
B12 is a vitamine. Magnesium is a mineral
11:20
I can go find an etos this weekend if you want
You sure it's cheaper here?
youtube.com/watch?v=ncbCY-5enco drones reforestation. the most intelligent use of drones i've seen so far
Because basically everything else is billiger over there
@Gordon got some health issues?
11:24
@PeeHaa I can buy vitasprint b12 here, but its 30 bucks for 50 doses.
and your etos sells sth like 200 pills of overdosed b12 for 5 bucks
@Naruto no, just compensating for my unbalanced diet
three hotdogs and chili cheese fries aint exactly good nutritional value :D
you could always just balance the diet ^^
where's the fun in that?
hmm, come to think about it… it's not wise to order pills from @PeeHaa, right? he might confuse them and send me tripping for the rest of the year
How is that a bad thing?
11:29
it might help with my C programming
I'll just hop over to venlo. thanks for offering though
I thought you were on the other side of germany?
I am in Essen. 45 minutes drive.
oh essen
Yeah that's close
Will tell you when I am doing christmas markets again in dusseldorf :D
11:32
Oo
… as a… christmas singer? pick pocket?
It's an excuse to do altbier and pretzels
altbier… ewww
...
you can do glühwein instead
C'mon
11:35
because… you know… it's a xmas market
is that like alt-right? It pretends to be beer but actually it's just a cup of liquid racism?
it's basically as crap as your british beer
@Gordon I can only do so much glühwein before I start feeling sick from it :P
I sincerely doubt that
What could be a testing expression that I can use at regex101.com?
11:36
.*
unless it's actually cold in which case it's nice to have a hot drink
A | B | (?R)
the simplest from, something that would show me how this works
as related to this - ( (?: [^[] | [ (?! /?indent] ) | (?R)) +)
A | B | (?R)
I guess the B cancels the whole thing, so it just skips the whole thing?
if you come across B nullify A | B | C as a whole
11:39
so anything but "[" is ok but this is a non-capturing group so only "[" is what we are searching for, and on the top of that with the (?R)?
like I said, I am not getting some things here :)
@PeeHaa I don't like most Pils, Alt, Kölsch or IPAs. I am more of a Wheat Beer guy.
@Gordon JS regex is kinda limited though
@Gordon Fair enough
I recently had a Porter I liked
tbf I'm also really a bitch when it comes to beers
But I try to try them all
ThW
ThW
An Irish Pub just opened on my way home - just at the corner of the street...
11:42
love Irish beers, porters and stouts are my favourite
wine + food is good
like tapas
but I did not get to that yet personally
I only tried like 5 or 6 wines so far
but this is good
well done food + good wine
I use vivino to track the wine I had
could be the best thing as far as that
I have the book of people from WineFolly.com
Damn. Now I want tapas
I will be trying to try all what is there
yes, this is good
I want to get books on that
11:44
I couldn't care less about wine though
learn the cooking also, good equipment and so on
go to a store and know how to use all these things
Ain't nobody has time to prepare tapas
I learn about it theoretically (cooking) but working on this will be a different thing
I already read two good books on dietetics (nutrition), for students
I am planning to read like 20
@Gordon @DaveRandom I want to thank you guys for pointing me in right direction
and base the eating on that
Anonymous
11:46
just stick a pizza in the oven.
I read a great book on dianetics once
@Learning you are welcome
Really appreacited.Now i got a direction for versioning :)
Thank god.you guys are awesome :)
!!? dianetics
Search for "dianetics" (https://www.google.com/search?q=dianetics&lr=lang_en)
• Dianetics - Wikipedia - Dianetics is a set of ideas and practices regarding the metaphysical relationship between the mind… (https://en.wikipedia.org/wiki/Dianetics)
• What is Dianetics? - Scientology.org - In his book Dianetics: The Modern Science of Mental Health he described the reactive mind in detail… (http://www.scientology.org/faq/background-and-basic-principles/what-is-dianetics.html)
• Official Church of Scientology: Dianetics, Videos… - Watch video and learn about Dianetics, the book Dianetics: The Mod
(see full text)
11:47
...
Anonymous
1 min ago, by JayIsTooCommon
just stick a pizza in the oven.
the book actually says to not to eat port at all
The question is... am I joking?
pork - not good, 100%
beef like once per week
fish twice a week
vegetarian - twice a week, probably talking about lunch or dinner
Anonymous
few pot noodles
Anonymous
11:48
few pizzas
@AaronSmith I get that from @PeeHaa's mother
@DaveRandom The question is would we be even surprised :P
ok, but that does not matter
@AaronSmith I get that from @DaveRandom's mom
Anonymous
Aaron mate, just eat. Life's to short to give a shit
11:49
pizza can be good, I guess
this is what I am interested in
Italian pizza that is
now
learning php, good eating, (some) sport
Not those fake murican ones with fucking hotdogs in the crust
this is how I see it now
cc @JayIsTooCommon ^^
11:49
sport - swimming
and educate myself on all these things
@PeeHaa and the old rideaux de boeuf
I would like to do it this way, I am not sure whether I will
as the main thing, 2 per week
lol
Just 1 last question
This is my table which i am thinking to store all versioning related to my webservice:
Versioning:

Id(P.k)
Version(For eg : 1.0)
Prefix(For eg: v)
Description(What changes we have done in this version)
CreatedDate
@JayIsTooCommon s/give/take/
Anonymous
11:51
damn right
@Learning um... just use git?
Not sure why you'd need to store that info in a database
Reason for taking this table is because i have 1 website on which i would be displaying latest version for my webservice
and 1 webservice end where i would keep updating my versions.Now to show on my website latest version,i will pick up latest version
from the database table
unless you are building a version control system, which I'm guessing you aren't, rather you are building an application that needs to be version-controlled
@Learning populate that info automatically from VCS (git) then
What is VCS sir?
user924016
Something you need to learn
user924016
11:53
before doing that project (=
Version Control System, realistically that means git or hg
regex - "A | B | (?R)" - how does the "(?R)" relate to "A" or "B" or "A | B"?
I have already my webproject and website in git
Fuck subversion. Fuck it with pitchforks.
Anonymous
saucy
11:54
I guess this works by relating to A or B or "A | B" at the same time?
Us scientologists are into that sort of thing
@DaveRandom But how does i will populate it from git
Anonymous
@Learning Google is your friend
I mean can i get those information like what i describe in my table from git?
Anonymous
yes
11:55
( [a] | [b] | (?R) )
Well, the changelog should be generated from a file in the repo, or even hand-crafting it for web might be acceptable there
something like this will not give me results in regex101.com
But version info, release dates etc can be generated from git
see "git tag"
"it recurses the entire pattern"
@AaronSmith recursion really makes sense with things like bbcode, as the example regex is using
where you may have nested tags
11:57
so ( (?R) | [a] | [b] ) would be the same thing?
ok
I read about that
but how this works within the OR statements
I mean, something like this ( [a] | [b] | [c] | (?R) | [d] ) - this is probably not correct?
try it
also, not really correct with the letters [a], [b] also
this will not work in these tools
this is ok, I don't want to bother too
basically, things like this are not really explained
on the Net
most likely
you don't get something and you are stuck
ThW
ThW
(?R) most likely someone is doing something with regex he should not.
12:01
@ThW that's my instinct as well, but I've never used it (or had cause to try and use it) so I'm not 100% sure
( (?: [^[] | [ (?! /?indent] ) | (?R)) +)
I know that every example I see looks kind of zalgo
I've been there but I have not read the main article yet
I want to get past that, finish what I was doing and then do the whole regex
in itself, edu
let through "["
if you come across "[indent]" or "[/indent]" skip the whole thing and go to whats after this
and the (?R) part?
ThW
ThW
@DaveRandom imho most of the time you want some "real" scanner/parser in that cases
@AaronSmith recursion, see the link
ok
I will have to read that then
I've already done some reading on that
12:04
@ThW right, that's the impression I get. That said, re2c is a thing so... maybe in some cases regex can adequately express that stuff.
ThW
ThW
@DaveRandom lots of things are possible :-)
Jeeves is 3 commits away from our lucky 1000th customer
@ThW Many of them are supremely unlikely :- P see also: quantum mechanics
Anonymous
@DaveRandom hopefully, once summer is over, it'll become less abandoned. screw you
quantum mechanics?
CERN is on summer hols?
they are busy throwing protons back and forward on the beach
:P
12:09
playing volleyball with silver nucleii
lol
@DaveRandom cool
Hello, One question regarding the call_user_function. Then ` zval *retval_ptr` that I'm passing and getting back from call_user_function, should that be cleared up using zval_dtor or not. Or does it depend on any particular criteria? (such as, if it is a string I have to destroy it, if any other typ,e then not)
Did you allocate it on the heap?
I create a zval ret; and I'm passing it as &ret to the function
Sometimes I get back a string, sometimes an array, sometimes nil (which are all okay). But when should I destroy it (should I destroy it at all - since the ret is just a variable that is passed along)
12:23
the zval itself doesn't need to be destroyed because it's on the stack but strings and arrays both point to heap structures so they will need to be GC'd
I'm not 100% clear on the proper procedure here though tbh, sorry
zval_dtor seems to deal with that stuff and is basically a no-op when there's nothing to do
it ends up here after 9000 layers of macros and indirection
is there a significant performance difference between zend_hash_apply and iteration?
12:35
is there a downside to using hscan/zscan compared to using hgetall/zrange
Thanks @DaveRandom I see that here, they do the zval_ptr_dtor is not called without checking any type (except undef)
One more question is - when to do zval_dtor vs a zval_ptr_dtor
zval_dtor is for a zval, zval_ptr_dtor is for a zval*, that's the only difference
you could do zval_ptr_dtor(&zval) or zval_dtor(*zval_ptr) and it would be exactly the same
the difference is only done with macros anyway, it will all compile to the same thing
in your case, with a stack zval var, you want zval_dtor
if you had done zval* val = emalloc(sizeof(zval)) then you would use zval_ptr_dtor
In the stack case, it would be zval var; zval_dtor(&var); Is that correct?
just zval var; zval_dtor(var);
Hi I have a SQL issue >< I am trying to JOIN some records and I would like to GROUP them by: 'dish' ID and SUM the amount. So far I am here: kopy.io/MXv09
12:47
Functions not documented – #75094
OpenSSL support not detected – #75093
That results in compiler error. It seems zval_dtor internally calls _zval_ptr_dtor_nogc which takes a pointer.
oh sorry I misread it
well, that's confusing
yes, looks like you need to do &var
@Duikboot it seems that the "amount" is being stored as a string
Indeed too bad.
So it's not possible to cast it?
it's possible but expensive
12:50
Hmm, expensive for a large resultset. This query wil run over max 150 results
If you are able to change the schema you should change it to an appropriate type (INT for an integer or DECIMAL for money, probably)
the issue for me is, when I'm getting an array and when I destroy it here, then my php program crashes
OK
Will do that. Then doing a GROUPBY dish_id COUNT ( amount ) from those results should be possible?
so whether zval_dtor should be done at all for arrays?
can you elaborate on "crashes"?
12:55
@tereško : kopy.io/hiGd5 . so !
so, now jsut add a group by and sum
Yeah that's the actual issue :D haha
you probably will also want group_concat for reservation IDs
I tried 'GROUP BY dish_reservation.dish_id'
aaand?
12:59
kopy.io/HPLt2 . >< Seems that concat part should inside of the main select oO

« first day (2498 days earlier)      last day (2676 days later) »