« first day (2174 days earlier)      last day (2757 days later) » 

7:00 PM
alright, reminder plugin is good to go I guess :-)
 
Wes
sounds reasonable. anyway... would expanding strict_types be so bad? it must be extremely rare these days using values that get coerced
 
@Wes It's still a BC break
 
Wes
i mean, even by accident it's hard doing that. yeah i know though
perhaps null to empty string happens sometimes
@PeeHaa i did this though :B jsfiddle.net/f34qur28/3 (don't look at the js code tnx)
 
@Wes You should have linked to /result instead :P
Or /show or whatever it is on jsfiddle
 
Wes
yeah, what a mistake
 
7:05 PM
:)
Looks cool though
 
Wes
thanks @NikiC will continue with that. are you in favor of expanding array_merge by allowing any iterable other than just arrays alongside the splat in array literals?
 
@Wes no
 
Wes
array_merge($iterator, [1,2,3,4], $iterator2)
why?
 
that would only make sense if we introduced broader support for iterators in other array functions
adding it to one function is just weird
 
Wes
actually iterables are sometimes allowed, no?
 
7:08 PM
... in arrays would behave as array_merge, not as +, right?
@Wes they aren't
 
Wes
or perhaps that's ArrayObject
yeah i think it's ArrayObject that sometimes is accepted :B yeah will behave like array_merge not +
 
So [...$it] will be a new way for iterator to array conversion that preserves string keys but reindexes integers
 
Wes
indeed
 
hm okay I think I'll implement now
 
PHPNW doesn't appear to have sold out.....that's a first isn't it?
 
Wes
7:11 PM
ha, nice
 
@Wes so it'd be iterator_to_array but halfway between $use_keys being true and false?
 
@tereško should I make a _verify.php file for the form validation? or _validate.php, whatever
 
@PaulCrovella which is actually quite useful
 
Wes
@PaulCrovella yes
 
0
A: Can we stop title edits to this PHP canonical question?

PeeHaaImo the title is just fine ™. If it needs to be changed at the very least change it to something more useful instead of the same thing wrapped in other words. The issues with the current edits on the question are: UTF-8 all the way through my web application (Apache, MySQL, PHP, ...) We have t...

?
 
7:14 PM
@tereško actually, that seems incorrect, going by examples from vendor's code, nevermind
 
@Tiffany I would actually put the validation in the LoanRequest class
because "validation" is actually just a way to apply business rules
and the entity, which you are submitting the data for should contain those rule
 
@NikiC how often are you mixing the two?
 
@PaulCrovella not often
@PaulCrovella What I meant is that for pure-integer arrays you usually want use_keys=false and for pure-string arrays use_keys=true
The only problem is the numeric-string-to-integer conversion, which sorta breaks everything
 
sure, but you generally know which you've got and can pick the use_keys value appropriately.. so I'm not seeing what this adds
 
@tereško yeah, I realized that the validation should be in a separate area. I'm just trying to figure out what the form should post to now. I'm guessing itself?
 
7:20 PM
!!changelog
 
[ Jeeves ] [ bf43606 ] Merge pull request #82 from ekinhbayar/reminder Add reminder plugin - Commited by: Ekin on 28.09.2016 19:04
 
@Tiffany I would just call it "handler"
or loan_application_handler.php if you want to be specific
 
@Jeeves \o/
 
@PaulCrovella of course. I don't think converting an iterator into an array will be the primary application of this functionality ;)
 
It it deployed yet?
 
7:21 PM
I think not, reason I used the changelog command :-)
 
@NikiC sorry, I guess I missed the rest of the context
 
@Ekin kk got the "hint" :P
 
^^,
 
Looking forward to speaking at PHPNW in three days - but also have a conf ticket to sell/donate due to getting speaker ticket. Any takers?
2
 
done
 
7:23 PM
Probably ought to have done that earlier...
 
boy you are late :P
 
First time I've seen that the conference hasn't sold out :-P
 
@PeeHaa can I test it in Jeeves' playground instead of here?
 
Yeah playground is same jeeves
 
7:27 PM
great
 
no. fail hard or don't do it
go big or go home
 
heheheheh
 
<insert silly quote>
 
:D
 
Wes
7:29 PM
gist.github.com/Netmosfera/287727ad652d4588b84e8db7e723f153 splat in array literals rfc draft, feel free to do anything with it :P
 
@PeeHaa Good answer. Sums up why I started the Q in the first place
 
Too bad that PhiterFernandes guy doesn't take a hint...
 
@Wes this should be semantically equivalent to array_merge([0,1,2,3,4], iterator_to_array((function(){ ... code ... })()))
 
!!command alias remind reminder
 
Command 'remind' is now mapped to Reminders # reminder
 
Wes
7:34 PM
i don't know what iterator_to_array does with un-coerceable keys
 
\o/
 
:-) phew, yeah finally
 
!!in 15h get beer
 
Reminder set.
 
Wes
can i set reminders for other people too :B
 
7:35 PM
!!in 15s ping @PeeHaa
 
Reminder set.
 
Wes
ha
 
@Wes it coerces them similarly to $a[$b] = …;.
 
@FélixGagnon-Grenier ping @⁠PeeHaa
 
Wes
@bwoebi how about objects, arrays?
 
7:35 PM
Yeah
 
@Ekin Yeah. Was a nice project with lots of different jeeves stuff in it
 
Wes
@bwoebi yeah i mean, $a[new stdclass]
 
@Wes Nope. We have protection in place for that cc @FélixGagnon-Grenier
 
Anonymous
Man that's cool @Ekin !! Awesome job
 
@PeeHaa :( :p
 
7:36 PM
@PeeHaa Indeed :-) I learned tons of nice stuff along the way
 
By default @Jeeves' responses are @{zerowidthspacechar}username to prevent abuse
 
Wes
nice work @Ekin will abuse for sure :B
 
Anonymous
!!changelog
 
[ Jeeves ] [ bf43606 ] Merge pull request #82 from ekinhbayar/reminder Add reminder plugin - Commited by: Ekin on 28.09.2016 19:04
5
 
10/10 would abuse
4
 
7:37 PM
^^,
 
Yeah. Good job @Ekin! (double ping for good measure)
 
@Wes it uses array_set_zval_key and thus will just E_WARNING and fail the assign
 
Wes
@bwoebi yeah so it will be the same thing :P
 
@PeeHaa so if you want to be abused, set your username to start with a zero width space
 
@Wes yep.
 
7:38 PM
@PaulCrovella Does that work? That would be funny annoying
No way to ping me.
 
dunno, you should try it
 
yeah hold on
 
it's all thanks to bwoebi, pcrov, DaveRandom, PeeHaa, kelunik :-)
 
Anonymous
ahem
 
Anonymous
Awkward, you forgot my moral support..
 
7:40 PM
hehe thanks to your moral support too, then :D
 
Anonymous
:P
 
@Ekin congrats on getting it done/merged.. that was quite a ride
 
@tereško Do you think a company looking to outsource work should go through a software shop or reach out to developers directly?
 
thank you again, indeed @PaulCrovella :-)
 
@BenjaminGruenbaum if you contact a developer directly, you will get it a lot cheaper
 
7:42 PM
@tereško do the companies actually do anything worthwhile?
 
is you contact a company, you will get a lot more guarantees that the code is actually delivered,
 
That's important, I assume they also take care of tax and give employees the social conditions required by law etc.
 
but a company will sell you "1 developer hour" for at least €50/h (from which the actual developer will see about 25%)
 
boooo @PaulCrovella
 
@tereško For 50 euros per hour I might as well hire someone to do it. That's 400 euros a day or 2000 a week. I can hire someone amazing for 8000 euros a month.
 
7:44 PM
> Oops! There was a problem updating your profile:
Display Name can only contain letters, digits, spaces, apostrophes or hyphens and must start with a letter or digit
 
@PeeHaa that's some bullshit right there
 
ikr
 
If it's around the $2500 mark outsourcing is definitely worthwhile for us but anything over $5000 is marginal and over $7000 it's expensive
 
@BenjaminGruenbaum the most common option here usually is to open a "developer branch" in Latvia
developers are cheap, hiring companies is expensive
 
@tereško we've been outsourcing PSD to HTML/CSS cutting to Fiverr which has been working out but required a lot of overhead. Also things like landing pages etc. I didn't want to outsource any logic there - but we're having a lot of work now and a lot of it is going to be repetitive and I'm considering outsourcing developing widgets (visualizations off a REST API mostly) to a more serious place.
 
7:49 PM
hello guys i have a question
 
Freelancers on Fiverr are dirt cheap, but they're mostly unreliable and I want someone I can communicate with.
 
How to write a Query that selects Data between two years in mysql
for example between
1-1-2011 to 1-1-2013
 
@HamreenAhmad google: sql between
 
@HamreenAhmad The answer is kinda in your question :P
 
Wes
google offline?
 
7:51 PM
no
 
1 min ago, by Hamreen Ahmad
How to write a Query that selects Data between two years in mysql
 
i thought here is better and faster
HAHA
 
you could actually feed it directly in google
 
@HamreenAhmad the problem with that is you're telling the people who you'd like help from that their time is less valuable than your own
 
nope
i think coding if fun for me and them
and iwould like share this
:)
 
7:56 PM
no
acting as google is not coding
you whole premise is shit
 
Wes
no big deal, let's move on now
 
SELECT *
FROM xxx
WHERE date BETWEEN '1/1/2013' and '1/2/2013'
why its dont select it
 
because it not a correct datetime format
 
Wes
i don't think you have a field named date
SELECT * FROM xxx WHERE `date` BETWEEN '1/1/2013' and '1/2/2013'
 
i have
 
8:01 PM
@PeeHaa maybe pin @Danack's conf ticket thing?
 
Wes
are we sure i need the passport to get into uk? isn't id card/driving license enough?
 
@Wes Bitch. Just use the calais route!
 
@PeeHaa <repeat insult>. Just use the plane!
 
If it doesn't work I promise I will pick you up on the way back
 
Wes
8:06 PM
lol
 
lol frisian
 
@PaulCrovella good to know …
 
holy crap, and translating it just adds spaces around \
 
@Wes My government tells me id is sufficient
 
8:08 PM
now I'll finally understand Aerys, lol
 
:P
 
@PaulCrovella what's the point?
 
Wes
could come, regardless of ticket
 
@Wes in whole EU&Schengen id is sufficient
 
@Wes s/could/should
 
8:10 PM
@Shafizadeh that chrome's language autodetect is weird
 
Wes
britain is neither europe nor schengen @bwoebi :B
 
@Wes It's still in EU.
 
And yes I just ran to my passport to check the expiration date
 
@PaulCrovella I see
 
:P
 
8:10 PM
@Wes When they'll have left you maybe need a passport…
 
Wes
i'm sure i didn't even have a passport when i went to uk last time so it's probably not needed
 
@Wes it's needed for islands
 
Wes
britain is one :B so i need it?
 
@Wes Do you have the thing on you?
Isn't there a list of countries on it?
 
@bwoebi the whole EU thing is convoluted:
 
8:19 PM
@Wes Bah, already found two bugs while trying to implement this :/
 
Wes
@PeeHaa nope...
 
pretty panicky for tomorrow's interview :-((((
 
Wes
actually, my id card is expired too :B i only have the driving license :B i suck
 
@Shafizadeh the worst thing that can happen is "you have to look for a different job opening"
 
8:24 PM
@Wes hehe
 
@tereško Was comforting .. thx
 
Wes
when i want to renew it i can only think of the 5 hours queue required for that
 
@Wes yes, because it's not under schengen
you might make it through with a "carta di identità", but no guarantees
 
Wes
only ocramius can understand me probably
 
@Wes 5 hrs + 2 months of waiting for the document to be ready
 
8:25 PM
Can't you just pull some string at the capo di tutti capi
 
Wes
lol
i have the driving license only and it's not even the paper one @Ocramius
 
@Wes do you have a passport?
 
Wes
passport expired like in 2014
 
@Ocramius as said, id cards are accepted in whole EU
 
@Shafizadeh it's not like they cut off a body part for failing :P
 
8:27 PM
@tereško You sure about that? :P
 
@Wes it's older than 10 years?
 
@Wes driving licence? uh, no clue
 
@tereško yeah :-) but you know, that job is perfect for me .. I love the working environment in there ..
 
Wes
made in 2004 @Ocramius expired in 2014
 
neh drivers license is not a valid travel document in anywhere
 
8:28 PM
Is it not mandatory to have at least one of id card or passport in your country @Wes ?
 
@Wes dang :P
Yes, he surely has an ID card - that's sufficient, probably
 
Wes
@bwoebi driving license counts as a valid id here. and it's the reason i didn't renew the id card yet
 
@Wes I thought US were the only such country… … I mean, if you ever have to give up your license, you'd be without any id?
 
@PeeHaa why are you hate me ? :-)
 
@Shafizadeh you misunderstand intent. he's not hoping they would cut an arm off you
 
8:31 PM
I don't hate you. Just wondering whether you are doing "limb driven development" there :P
 
@FélixGagnon-Grenier ah .. ok thx for the clarification:-)
 
limb driven development
that should be a thing
 
@PeeHaa :))
 
@Shafizadeh "why do you hate me" or "why are you hating me"
 
8:31 PM
@Wes oh, that won't get you everywhere then :-\
 
I would have a hard time typing with just my torso though
 
@tereško good English point :-) thx
 
@PeeHaa you'd type with your nose, obviously.
 
Wes
@bwoebi we have two, people keep the id card at home and driving license in the wallet, if you lose the wallet you'd still have a document
 
oh I could do that hawkings things
 
8:32 PM
@Wes yeah, but yours seems expired… thus…
 
Wes
yeah should renew it.
 
Or that thing if the video I once saw of the guy using speech to do vim/emacs crazyness
This is going to be a pita to find. brb
 
@Wes actually, you should have passport at home and id+driving cards in wallet…
 
Holy shit. First search and a hit \o/
 
Wes
@bwoebi are you italian? :B driving license is a valid document for everything here
 
8:35 PM
Yeah same here
 
Wes
so we keep one safe at home and the one required for both id and driving in the wallet
 
@Wes … and if you ever leave your home country?
 
Wes
clearly i'd bring it with me if necessary :B
 
@bwoebi s/country/
 
Wes
8:38 PM
@PeeHaa :'(
 
:P
<3
 
About the final private method overriding I mentioned earlier: github.com/pmmaga/php-src/commit/…
 
@PeeHaa Slurring would wreck the ballmer peak.
 
:P
 
Wes
i hate my life. @PeeHaa do you have your own company? do you work from home now? :B be prepared to live there the rest of your life :B
 
8:40 PM
@Wes I do client visits to prevent exactly that :)
 
Anonymous
Fucking cats. Arse holes, all of them.
 
@pmmaga pretty sure this is intentional
 
@JayIsTooCommon what did it break?
 
At least it's a common pattern for singletons
 
Anonymous
Pissed all over the sofa and then hissed at me like the beast that it is
 
8:41 PM
people add final private function __construct() to those
 
protected would solve it, no?
 
No.
Is it time for me to rant about the mere existence of constructors against?
 
only if you do it as yoda
it's time to switch things up a bit
 
Thirty year old mistake it is, hmm?
 
Hi guys im fetching data from a football api and I want to add a link for each row streaming link how can i do it ??
thank you
 
Wes
8:44 PM
i often think i should get a job just to keep personal life and work separated @PeeHaa and on many occasions i could've done it and even consider to hire someone, but every time i have been proved right not doing so. i sometimes not get money for months and i "survive" with past works' money
 
@Danack please do gets popcorn
 
actually - I don't have time.....but the fact that a parent class can block a child class from being able to be instantiated is kind of dumb...
 
.... if the child could be instantiated even if parent isn't, wouldn't that break even more any system?
 
I've not used code for creating a table in the database so far (I usually use visual interfaces) .. So I don't know what's the meaning of "KEY". Can please somebody tell me what's KEY ti_flipped` (id2,id1)` in this?
create table tagIntersects
(   id1 INT NOT NULL,
    id2 INT NOT NULL,
    PRIMARY KEY(id1,id2),
    KEY `ti_flipped` (id2,id1), -- flipped left-mode (thin size)
    FOREIGN KEY `fk_ti_id1` (id1) REFERENCES tags(id),
    FOREIGN KEY `fk_ti_id2` (id2) REFERENCES tags(id)
)ENGINE=InnoDB;
 
@Wes do u have an idea about my question sorry to bother you brother
 
8:48 PM
is it an group index on those two columns?
 
Wes
search for "primary key" on google @Shafizadeh it's a special kind of unique key
 
@Shafizadeh yes, reversed from the primary key
 
@pmmaga still I don't get it .. does it mean the value of those two column should be unique?
I mean, I heard a table can has just one primary key
 
You only have one primary key, the second key is an index with id2 before id1
 
@pmmaga What's benefit of it? it makes those column unique? or it causes searching fast? or what?
 
8:55 PM
no, it doesn't make it unique. i think the idea is indeed to make the queries by id2 faster
 
can someone give me a hint
 
@pmmaga I see. thx
 
Wes
@PeeHaa i get enough money to survive and even save something though, but not knowing what will happen in the next N months leaves me stuck where i am. i never feel i have enough margin to try to improve my work/life/whatever. i actually regret this, office job was way better because simpler
 
It all boils down to directly working for a human boss or directly working for a a money boss
 
@Danack Why not? Can you elaborate?
 
Wes
8:58 PM
but you get filtered communication though
 
True
But I don't like people trying to manage me very much
or I just didn't work with the right people
 
Wes
@NikiC sorry forgot to answer. which bugs? lol
 

« first day (2174 days earlier)      last day (2757 days later) »