« first day (2155 days earlier)      last day (3019 days later) » 

14:00
@PeeHaa That's my moto :D
uk government pls. ._.
@Slayther or you could have written few unit tests
@tereško Unit tests?
... figures
I don't get how that would help in parsing speed?
14:01
watch this some time soon
12 mins ago, by Slayther
Now I pray my estimation algo is correct
@Traxstar I think you need to go through the search api: developer.zendesk.com/rest_api/docs/core/search because "The query parameter is not supported for this endpoint. Use the Search API to narrow your results with query."
@tereško That's just a joke on processing speed
also, I was answering to this statement of yours, @Slayther
But yeah
Good point nevertheless
Will bookmark dat vid
you dont have to go full TDD, but adding couple tests to the critical parts is a smart way
14:04
@tereško Yeah, but my real problem(s) is(are): I am looking too forward in future. Implementing things before I need them. Fixing errors that might not come up. Thinking of scenario where I might need this or that implementation of some object.
Idk how to get rid of that :(
@Gordon does it need to look like this ? /search.json?query={type:ticket status:open}"
practice
@Traxstar query=type:ticket status:open
@Gordon got it to work like this : ?query=type%3Aticket+status%3Aopen
14:08
@Gordon is there a way to count elements in json so i get the number of opened tickets ?
@Traxstar in php? you json_decode them and then just count()
@PaulCrovella Yesh
That's why I'm doing this
I already see many things I do wrong regularly
By taking a "real-world" input
@bwoebi bwahahahahaa
I guess that's the SQL equivalent of a Monorepo
@Gordon counting after decode brings me 1 as result and thats wrong
@Traxstar print_r() the decoded value to see what it contains
14:11
@Gordon yeah there are the right results in. a few hundret ticket s
but counting returns 1
@Traxstar well, I cannot see the structure of your result. you need to count whatever holds the tickets
@bwoebi Oh jesus christ that sprintf
Anonymous
@bwoebi You found this back in 2013, why is just ruining your day now ? :P
@JayIsTooCommon because … I found it anew today…
Anonymous
:D
14:14
@Traxstar also developer.zendesk.com/rest_api/docs/core/search#json-format says the total number is given in the result, so you can use that instead of count(). try with echo json_decode($json)->count
@bwoebi So they accepted their own answer as "will not fix"?
hey I was wondering, has anyone tried integrating this package github.com/prodeveloper/social-share with laravel 5.3? and does it works?
@Sherif that's the best part…
Omg why did I read that question
WIN!
That person deserves a gold badge just for having been their own worst enemy.
14:16
@Traxstar also note that the results might be paginated, e.g. the resulting json not holding the full resultset
@Gordon okay the count is working, how could i find out if it is paginated and how to fix this ?
I think this guy just keeps creating new accounts and posting the same question to get someone to port his code form him stackoverflow.com/questions/39413549/…
@Gordon in result it says next_page:null
I could have sworn I've seen this at least 3 times in the last 7 days.
@Traxstar then I guess there is no next page and the count corresponds to the results
you can compare with $response = json_decode($json); echo count($response->results); should be the same as $response->count
14:24
what is this $tax = $tax & $tax1; ?
is it legal ?$tax = $tax & $tax1;
Ugh, second shoutout tonight, this time for a recommendation on soap api handling. Probably some fab resources online I'll take a look for later.
can somebody help me Please..
this $tax = $tax & $tax1;, i have found in e-commerce file..
why is '&' ? I have never seen like that with var
@JayIsTooCommon 86276 messages processed. 256374138742 to go
Anonymous
@Slayther @PeeHaa Place your bets. I recon @Jimbo's mum is more popular, no offence.
Anonymous
14:30
@PeeHaa If it helps, I prefer your mum :)
& Keeps bits in the variable that are only present on both sides. E.g. 1101 & 0110 = 0100 (13 & 6 = 4)
Yeah, the estimated seconds jumps up and down. Currently 22892.....
@sean Thanks a lot
hey peehaa
14:32
jo
Anonymous
:D
Lol :D
Are you really processing these messages to find out whose mum's more popular? Seriously?
Anonymous
@littlepootis Yes. It's important.
14:35
Hello php peeps ...
I should've just queried the mum mentions and get done with it
too late now. you've committed.
^ Yup
@Slayther Wow, that's a whole lot of messages :P
@Sean This is hilarious and outrageous. Can we get Jeeves to output that?
14:36
@Oldskool And that's only a tiny bit
Anonymous
What was the list of requests again?
124000 processed currently
Oldskool
User that has most mentions.
All the @Jimbo's / @PeeHaa's mom jokes

DaveRandom
Messages that match /\b@(\S+)'?s (?:m[ou]m(?:ma)|mother)\b/i, and a league table of $1 occurences
Most mistyped users

JayIsTooCom
User with most starred messages
@Jimbo Gold badge for best Friday pun on Laravel.
Nono it's got to be animated. Can we even do that? Inject JS ;)
14:38
it keeps landing on @Jimbo's mum.. just like everyone else.
^ That won't be queried :c
<script type="javascript">console.log('Jimbo\'s mom was here (but she gets around, so don\'t be too surprised)');</script>
Doesn't seem to work... damnit.
Do any of you kind folk have suggestions for configuring file transfers upon update into the live apache folder? A bash script perhaps or something for vim?
Anonymous
@PaulCrovella nice
@iain Git?
14:39
@Jimbo we could have it spin and render to gif then post the result
Why did I do this on local machine..
@Slayther what are you doing ?
calculating moms
If it actually ran, the Jeeves job would, like @PaulCrovella have to spin it and render the result. If we needed a screenshot result, it'd have to be run with Selenium or something
@JoeWatkins Querying all messages of this chat room basically
14:40
@PeeHaa Are you calling me a git?
;)
lol
@PeeHaa Great idea, I hadnt thought of that.
@Slayther not enough words, use more words ...
@Jimbo Lol, thanks :p Glad I haven't made your hit list yet
@PeeHaa Don't know how to do it though, but I do use git, is it possible to send files to a second folder on push?
14:42
@iain I would do it the other way around
Let production pull changes
@JoeWatkins Fetching html of all the pages of this chat room and parsing the html for user messages. Storing those messages in a folder for later querying.
folder ?
Yeah
@PeeHaa Ah ok, make a repo in the live folder and pull from there when I want to update.
Cool idea.
folder like that ?
14:44
that's... large :P
Something like that
directory
@iain No you have a repo on your dev env
why a folder ?
14:44
Idk
Clone the repo on production
so you didn't think about what you are doing ?
I was being quick and dirty, just like with <insert name here>'s mom
^ Not good at mom jokes :c
We all know who goes there.
14:46
to use that data in any meaningful way will be slow, it should be parsed and stored in a real database if you want to use it in future for anything complex ... let the database worry about how to store the data in a folder, or whether to use folders or whatever ...
Everytime you want to deploy changes you simply do git pull or git checkout tags/tag @iain
Ah ok, just kill and re-clone , must be possible in other way too, if we have git on our own server, You have got me thinking now.
@JoeWatkins It's not complex. Searching for mom jokes basically.
why are you storing it at all if you don't intend to reuse it ?
ok, need to read up on this I think.
14:47
@JoeWatkins Search his name and stupidly
:-)
@JoeWatkins Because
Idk
:D
Anonymous
@JoeWatkins So we can ask stupid questions :D
48 mins ago, by Slayther
Because I do it stupidly
^ :D
And ^*3 :D
I don't get it
Anonymous
14:48
11 mins ago, by Slayther
Oldskool
User that has most mentions.
All the @Jimbo's / @PeeHaa's mom jokes

DaveRandom
Messages that match /\b@(\S+)'?s (?:m[ou]m(?:ma)|mother)\b/i, and a league table of $1 occurences
Most mistyped users

JayIsTooCom
User with most starred messages
@JoeWatkins There is nothing to get here
I don't get that either ...
It's just me bashing my keyboard for no reason to get results that don't make sense in order to do something that's not worth it.
so how 'bout that local sports team?
Anonymous
14:50
lol
@PaulCrovella It's hardly a team
Anonymous
^2 Doesn't get it
Woot my internet
things need to make sense ...
@JoeWatkins Do they, now?
14:52
yes
Does life make sense?
stupid question
Is it?
Anonymous
ah god.. not again
14:53
yes, I'm not sure why I have to confirm everything ... I would assume you were hard of hearing, but ...
Anonymous
I drove into a bush today.
@PeeHaa Is it possible to set a local repo as the upstream master of a repo in the apache repo?
This soap api documentation is looking mighty interesting right now..
@JoeWatkins Both of those were rhetorical.
@Sean it's simple, I'm sure
14:54
@iain That's exactly what I would do
Anonymous
@Sean So does the nutritional information on my bottle of water :D
If that is possible then I am once again dumbstruck by gits sheer brilliance ... Thanks for the pointer, much appreciated.
@PaulCrovella Got a good chuckle out of that :p
Im back
14:57
@undefined be nice
sure
but I need help
then you should be especially nice
if only there were a website where you could ask questions and get good answers ... anyone know a site like that ?
^ Hmm
no but im just looking for a hint
14:58
@JoeWatkins there was some expert sex change site for that, IIRC
@NikiC hehe, apart from a mysterious free on invalid pointer everything worked as expected :) Is creating a new trait on a PHP extension really just like declaring a normal class with but with my_ce->ce_flags |= ZEND_ACC_TRAIT?
yes, is same
@JoeWatkins thanks!
yw && hai :)
15:01
Syntax error: Unexpected :
Don't ask me why
I won't, because I already learned that I won't be able to make sense of your answer ... at all ...
I'm a quick learner ...
^ :)
No idea why the double free is happening yet :/ I guess if a trait is using a custom storage it's free_object handler should not try to free the zend_object at all.
yes, we don't do that now
the engine frees the storage for you ...
http://data.stackexchange.com/stackoverflow/query/536842/list-duplicates-in-close-review-queue-per-tag?TagName=php

mhmhm… I expected… more.
15:03
which is very strange ... the first rule of C is free what you allocate, but we are so hip that the rules don't apply to us, because magic ...
@Jimbo PING!
I think it's a bit harsh to summon someone just to insult their mother @PeeHaa
Evenin' v1.1
Wes
Wes
AHAH got an email for a huge job by some company that obviously don't know me. they are all like we need 3 teams working on these 3 projects. i'm almost ashamed to answer "teams? sorry, this is a one man company"
15:05
I doubt he listens to pings anymore
@bwoebi hell, I probably have more in my backlog. I should trawl through my old comments for you.
Wes
Wes
one man company in my mind:
@Wes never offer to be a whole team, no matter what the rewards ...
@PaulCrovella that's CV queue in particular … which ages away after one month…
@JoeWatkins ditto, removing the free_object handler and letting the engine do it's magic worked fine :)
15:06
cool
Wes
Wes
@JoeWatkins what do you mean?
what you up working on anyway ?
I don't get the aging away CVs. Seems a waste.
@PaulCrovella yeah…
The questions should just fade away instead
15:07
@PeeHaa roomba cleans up too…
@Wes if a large cake comes to my door, there is a temptation to eat the cake ... or eat as much as possible before being noticed ...
@bwoebi aren't those the vaccuum pets?
never happened ... but if it did ... everyone should feel free to send me cake ... I digress ...
!!? order cake uk
don't offer to be one of the teams for a bunch of money, just let it go ...
15:08
Search for "order cake uk" (https://www.google.com/search?q=order+cake+uk&lr=lang_en)
• Baker Days - Personalised Birthday Cakes - Order… - Personalised Birthday Cakes. Add your text or photo. Next day UK cake delivery available - Explore… (https://www.bakerdays.com/categories/personalised/birthdaycakes)
• Costco UK - Join the Millions who are already sav… - Costco Wholesale UK Members can now pre-order decorated celebration cakes online for collection fro… (https://services.costco.co.uk/cake/)
Wes
Wes
lol, you mean that clients should communicate through a reduced number of persons only?
@PeeHaa PONGed your mum
@JoeWatkins Just a frivolous exercise in having class immutability through a php extension. I tried this github.com/php/php-src/pull/2122, but Nikita pointed it's not guaranteed to work. So I'm trying to have class immutability through a trait class.: MyClass { use SplImmutability; }
@Jimbo yo what's the difference between stream and rest in twitter api?
@marcio I'm scared
15:10
@PeeHaa Stream keeps the connection open?
@PeeHaa hmm?
there's a smart way to do it ...
@PeeHaa dev.twitter.com/streaming/overview scroll down to "Differences between Streaming and REST"
I was more wondering about stuff you could access
15:11
@NorthbornDesign \o
The REST api has a lot more access too, streaming is for consuming public tweets, trends, etc.
@JoeWatkins is it add immutability as a first class lang feature and leave the php extension thing alone? :P
yes
new immutable Entry is the only non-scary thing ...
@tereško I want to send a message through a form to a gmail adress when I hit the submit button it shows me a blank page with an url the same as in the action form I used this in the action attribute <?php echo form_open('signup'); ?> im using codeigniter 3
15:14
^ RIP punctuation
This is not my mother langage
@PeeHaa that's probably where the name of the automatic deletion community cronjob comes from
@undefined It's not mine either.
My native language is Croatian.
so why you making fun about people that dont master english
Why would you have to be a master of language to know where to put punctuation?
At least use full-stops.
15:17
where I have to talk to you
You don't have to. You chose to do so
im looking for an answer not for people like
Anonymous
found
u betta leave me alone
and let people who are intrested in answering me and love to help people answer
I didnt even understand the question
15:19
^
@undefined See?
@tereško is the man he helped me many times
So I have to instantly help you to be a good person?
@Slayther fill in the blanks with the apropriate words
@undefined Hah. Aren't you a nice person.
@JoeWatkins somebody is taking care of that in some way wiki.php.net/rfc/immutability but their patch is not good for testing yet.
15:21
@tereško I want visitor to send me a message through the website using a form to my gmail account so I created a form and a controller in codeigniter when I submit the form it show me a blank page and nothing was sent I really appreciate your help
@DaveRandom What's the status of the Postgres lib re-write?
Is it ready to go? If so, I can branch it and port it to v2.
@undefined First port of call, is your display_errors setting enabled?
If not, check your error logs.
@Sean thank you for your time when I can check error logs in code igniter ?
@marcio I don't like
I mean where
Anonymous
15:24
@undefined How do you expect someone to help you with that information? Put yourself in the other persons shoes, you have provided no code, barely any context and you don't even know what your issue is. It's far too broad to be able to answer which is why nobody is helping you. Find out what's causing the error, get some code in a pastebin and then ask. (after googling)
@undefined It's not codeigniter's logs, it's your server / php error logs
Or enable display_errors
@Sean the whole website is working fine but that specific form doesnt work
@JayIsTooCommon real talk
IRL it will look more like
<?php

interface Email {
	public function junk();
}

immutable class ImmutableEmail implements Email {
	public function junk() {}
}

class MutableEmail implements Email {
	public function junk() {}
}
that's silly ...
Your site working isn't relevant I'm afraid. If something in your controller specifically is erroring out, there'll be a lovely little line in your error logs saying why
It'll tell you what file and what line is causing the problem.
Anonymous
@PeeHaa could you unstar please, not useful nor interesting :3
Anonymous
15:26
cheers
Daily vote limit reached; vote again in 8 hours. … Do comments have an upvote limit? o_O
leaving it to the caller to decide if they want an immutable instance seems reasonable to me, and doesn't lead to anything horrible ...
@PaulCrovella o/
yes, that's the main annoyance for me. Hence why I was trying to have immutability on demand not on declaration level.
just like rust (well, almost like rust).
Ekn
Ekn
o/
15:28
I don't fancy mut :D
yo ekin
Ekn
Ekn
hey joe :)
but new immutable Entry seems nice to me ...
I'm always wrong ...
@Ekn :)
Anonymous
@undefined What @Sean said, look in your error logs - Google if you don't know where they are - and find out why your code 'isn't working', If you still can't solve it then, come back with a snippet of code and a less broad question. Then someone will be able to help you :)
Thank you a lot
how would new immutable Money() work internally? Would it create a new class_entry with the overwritten handlers on the background?
Nikita pointed we can't just change the handlers of an instance, it has to happen on ce level.
15:34
@Trowski it's... complicated. The ext/pgsql adapter isn't sanely possible without some changes to the extension itself. The pecl/pq adapter is functional but largely untested in the wild, my intention is to write a data storage back-end for Jeeves, which is a live application that's actually used and it doesn't really matter if it explodes occasionally, so we can use it to catch bugs... but no time :-(
basically it's too alpha right now I think
well ...
maybe you can mprotect inline properties, and the property table
@DaveRandom What are the issues with ext/pgsql?
@marcio well… you can't change handlers of the instance, but you could overload the handlers to check for a flag … so, always change handlers, make new immutable Money() set a flag on the class and then have handlers dispatch it differently depending on that immutability flag
@JoeWatkins that would get real complicated with stuff like DOMDocument, where you would expect flagging it as "immutable" to mean that you could no longer mutate the DOM tree, but actually there most of the properties affect stuff like parser/printer behaviours, and you would still want to be able to change those
@bwoebi did you mean to literally change the original class?
15:39
@marcio yes
@marcio only real way
@DaveRandom I implemented a non-blocking adaptor for Icicle using ext/pgsql, but I may have not implemented all the features, or perhaps something was going on I didn't understand.
@Trowski I forget off the top of my head, the one sentence summary is that the API is an abstraction of the libpq API that doesn't work very well when you start doing async stuff. There's at least one poller function just outright missing though.
@bwoebi ok so "new Money" would suffer a small penalty because somebody did "new immutable Money" but that seems negligible.
That's probably the issue then… The API I was providing was a bit "dumbed-down"
Though that's probably enough for most people.
I'll try and look at it over the weekend and write an explanation of what I see as the problem (which may turn out not to be a problem if it gets another coat of eyes)
15:40
@marcio yes
@DaveRandom Sounds good. I'd really like to move forward with that lib soon.
why couldn't mprotect work @bwoebi ?
@marcio eih, are you planning to do this as extension or directly in core
changing handlers is a nasty business
@JoeWatkins it protects too much … mprotect() works on a per-page (4 KB) basis
15:41
@Trowski Yeh I wondered about reducing the base-line interface, and providing extra stuff via pecl/pq, but iirc there was something in ext/pgsql that meant you couldn't actually do true async
@bwoebi originally in core, then an extension, now with your idea, in core again :D
but, well, your idea could work as an extension too
@DaveRandom I'd like to know about that, because I ran into no such issue. But again, maybe I thought something was async, but it actually wasn't. :-P
@marcio as an extension you can't add an immutable keyword though
nor will it be adopted really ...
15:44
@marcio If you want to do it in core… uh… could you please try to persuade me why we need that at all?
mainly to avoid wiki.php.net/rfc/immutability :P
ref: chat.stackoverflow.com/transcript/message/32756904#32756904 new immutable Money would be much simpler by design
@DaveRandom If you have time, you can also take a look at github.com/icicleio/postgres. I could easily port that to Amp v2 as well as support pecl/pq, if that was a direction we wanted to go.
@bwoebi what's that?
@Trowski found it, there's no wrapper for postgresql.org/docs/9.2/static/libpq-single-row-mode.html, which really matters because without that there's no way to have an unbuffered mode, which means that if you get a large result set (which is not an uncommon thing to do) you chew up a huge amount of memory.
In an async application, where it's conceivable that you might have a couple of hundred result sets in memory at once in varying states of processing, that's potentially going to be a big problem.
15:50
@marcio Anyway, if you do it in core, you can just simply set a single condition in the write handlers?
Also if you get more than one warning message in a result set, ext/pgsql only handles the last one
Which is liable to cause heisenbugs
However neither of those are actually blockers
So I guess I just was in a perfectionist mindset at the time
@DaveRandom Not a blocker, but something we should note in the docs if someone uses the ext/pgsql adapter.
The API for pecl/pg will be the only one to provide row-by-row support.
I suggest maybe a sensible course of action might be turn yours into the ext/pgsql adapter
I'll try and take a look at it on Sunday (prob won't get time before then, might be able to look at it later tonight though)
@bwoebi yup, that would be much easier than to put a handler wrapping the original one. Then all classes would suffer the known negligible impact but at least the flow will be predictable for everything that is instantiated.
@DaveRandom Not a big rush, I'll probably be busy most of the weekend.
15:54
@PeeHaa Absolutely no bloody idea. When you find out let me know. I always assumed stream would be if you're running a daemon, and then you send the results over websockets or something if you like, or store them in a database.
Will let you know
@marcio yea no… persuade me of why you want new immutable X at all… That class immutable X {} is bullshit is obvious to me…
@bwoebi oh didn't know it was named like that
@DaveRandom The ext/pgsql and pecl/pg APIs should probably be similar, with the pecl/pg supporting more options?
I designed query results as Observables (PromiseStreams) so I think the API can be essentially the same, but with pecl/pg using less memory for large results.
There's no guarantee it would work for internal classes, sometimes people do weird things and don't invoke the original handlers for some reason.

« first day (2155 days earlier)      last day (3019 days later) »