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

3:00 PM
:P
@Saitama create label -> add label?
 
You first have to create the label
Wow such a nice answer. That deserves some love don't you all think? stackoverflow.com/questions/4049428/…
 
<3 given
 
What message got flagged? I am pretty sure I was not yet at work yesterday round 9:22.
 
Dunno exactly. But somebody told me to "fuck off"
 
Wes
3:04 PM
daaaaaaaaave
 
spaaaaaaaaaace
 
@PeeHaa The blame for accidentally clicking on the flag I would accept, but that was not me.
 
hehe fair enough. Carry on
 
WoW it was so hard...
 
Just procrastinating while the clock ticks down to knocking-off time
 
3:06 PM
@DennisB. Only 30 mins left?
 
Wes
actually i should ping @bwoebi for this. is he around?
 
hey @bwoebi u around?
 
Wes
lol don't do that
 
:P
 
@PeeHaa just 10 minutes, but maybe I will do half an hour additionally so I can leave earlier on Rebeccaday
 
3:07 PM
ooooh smart thinking
 
some smart moments i have ;-)
 
:P
 
Evening
 
yo
 
3:09 PM
o/
 
o/
 
O/
 
\o
 
pfft how hard can it be... I just keep messing it up while I try to eliminate merge commits here
 
Wes
3:15 PM
\🐼 <- if you don't see it, your font sucks
 
the easiest way I've found to eliminate merge commits is... to convince me I don't care about them
 
@Wes Raleway :(
 
yeah, I'm about to hit the big green button already but I have this urge to somehow achieve this just because I failed a lot
 
@Wes chrome has been fixing those things
They used to be useless
Before:
Sep 22 at 13:57, by PeeHaa
user image
 
3:20 PM
@Wes pong
 
After:
 
@Wes But … but … I love double pings… you didn't know? \cc @Saitama :-P
 
Wes
also cc @Saitama
 
I love 'em too
\o/
 
3:21 PM
what about triple @bwoebi @Saitama ?
gets banned for the day
 
Wes
@bwoebi argh doing too many things at once. introductory question: have you guys considered disallowing casting of keys in arrays in strict_types? eg $array[10.1] // TypeError, only string and int allowed
*implicit casting
 
@Wes I'm the wrong person to ask here, I guess.
 
Wes
whom should i ask? niki?
 
Hello good people, please help me out with some advice on laravel. Specifically what kind of projects are it best suited for? Do you know of any kickass apps or enterprises using it?
 
Wes
(did i use whom correctly here, i think it's the first time i use it :B it came out by itself. i'm learning english by accident)
@zacurry we don't do laravel here
7
 
3:25 PM
@Wes or Andrea, yes.
 
@Wes I think technically it would be who. whom is about somethings that belongs to someone
 
@wes .. why not ? :)
 
Wes
because we aren't artisans
 
I think that was correctly used, though I would start with "to" (to whom) or make it "ask to"
 
@Wes technically yes? Still sounds a bit weird:
 
3:28 PM
I was in another bicycle accident this morning. I'm fine; bicycle is definitely damaged. It's been nearly an hour now but man my blood is still pumping.
 
@Danack o.O
@LeviMorrison shiite. what happened?
 
He made an illegal right turn and hit me in the cross-walk. He also hit another cyclist behind me too.
 
Wes
@Ekin that helps
 
@LeviMorrison ...... was he arrested or something?
I mean... two for one
 
No, just no a regular police report.
 
3:36 PM
Idiots man. :< Glad you're alright at least.
Hate being cut off on bike rides, happens way too often
 
@FélixGagnon-Grenier Hm?
 
just wondering if that s after idiot is intentional
 
Yeah, but referring to the collective people who don't keep their eyes on the road.. or do other stupid stuff when controlling a heap of metal moving at speed.
Lol, so I'm hooking up SoapClient to this endpoint, and after all of that faff it still fails
Turns out the endpoint's WSDL file has an extra newline at the end, and SoapClient really doesn't like extra content after XML.
 
Hey guys me again :).
How do you match /wordxxxx but not /word and /wordwordxxxx but not /wordword in the same regex ? (I tough of something like /word(?!word)?.+ but it's not working at all :/
or /word(word)?.+ but same it's not working :(
 
3:46 PM
Should be escaping that / too I think
 
Yup yup sure :) Not really where I leak of knowledge
 
\/(?:word)+(.+)
Or if it's specifically word or wordword then (?:word){1,2} instead of +
 
I haven't say anything !
 
3:49 PM
onError(function (\Throwable $e) {
    fwrite(STDERR, "\nAn exception was not handled:\n\n{$e}\n\n");
});

try {
    run();
} catch (\Throwable $e) {
    fwrite(STDERR, "\nSomething went badly wrong:\n\n{$e}\n\n");
}
 
Well done :) Ty
 
@bwoebi @kelunik is there any point in the try/catch?
like will run() ever throw if there is an onError()?
 
@DaveRandom No, it's either or
 
OK cool, ty
 
well, unless there's something wrong in the loop state itself
 
3:51 PM
right
 
but that never should happen
 
#FamousLastWords
 
@DaveRandom that's why the try/catch is there, lol
 
@bwoebi yeh I'll leave it there just in case, so something does actually get logged if that does happen
 
Good bye, have a nice evening everyone
 
4:01 PM
(lldb) p executor_globals.regular_list->arData[105]
(Bucket) $6 = {
  val = {
… blablabla …
  }
  h = 464
  key = 0x0000000000000000
}
  Fix-it applied, fixed expression was:
    executor_globals.regular_list.arData[105]
That's awesome
 
4:15 PM
@DaveRandom Are you fixing the shit?
 
@PeeHaa yeh. More uber commits incoming I think. Once again, when I start trying to add features I realise the object model is wrong :-/
 
Yeah I've started to hate it too
Did you give @Ekin a heads up? :)
Actually scratch that. She needs to learn how to resolve conflicts :P
 
Well all this work is in feature/invite, I figured I'd let her merge her stuff and I will rebase
I don't think there will be any conflicts anyway tbh
I'm not touching the plugin API
 
it's fine.gif
 
honestly I couldn't really manage to properly eliminate merges
so if you don't mind I can just merge the plugin as it is
there are 7 commits‌​, I wanted to lower it down somehow but well...
 
4:22 PM
I have no issue with that, personally
@Ekin just a moment actually
let me have a little play with it
 
sure thing
@PeeHaa and @kelunik needs to do something before it can be merged anyway I believe
s/needs/need
 
I will do my thing if @DaveRandom gave the ok
 
and I promise next time I won't have such merges in between :p
 
@PeeHaa His mum gave the ok
 
She always says yes so not sure that really counts
 
4:27 PM
no I totally cba figuring out how to do that, just merge it as is
I have a feeling that those merge commits will disappear if you do that anyway
btw @Ekin for future reference, git pull --rebase when you are resyncing with master will avoid creating the merge commits
 
oh awesome to know, thank you
okay, now I'll wait kelunik's approval as well then I can merge it
 
git is weird
 
hmm, it doesn't look like I need to wait though
the button is there, I can merge|squash and merge|rebase and merge
 
hello
I am working in a new company for 1.5 month if that changes things. Is there anything I can do to improve productivity in finding my error which I made in the codebase. THe situation was like this: I want to post data to the API. THe API returns me an error (because of wrong data passed). I am trying for like 1.5 hours to find out why I get this error by looking at the code. Getting angry, taking breaths to calm me down. I understnad that its my job to find out why I get the error.
Then teamlead asks, how is it going. He understood that there is simple thing and he see I am taking long time. I say I am not able to post to the API, getting error and not finding why. He came to me, and in few minutes we both found. I am worring that if I take so long, they might fire me. I saw there was simple thing. I was just not able to notice, until he came and told one thing.
Of course I could ask earlier, but I want to understand system myself and be able to find out things by looking at the code and not disturb colleagues that much. If I constantly ask things, I can easy and quickly do things. THe problem was that sql query was filtering by one column and did not get result because I passed the paramater by which it could not find rows. Smth like that. Is there smth I can do in such situations? Job looks very good, I really do not want to lose it.
 
4:51 PM
@Darius.V: 1) Don't be afraid to ask for help; 2) Document the things you find out as you go so you or the next person doesn't have to spend time finding them out again next time; 3) Write (unit) tests
 
Actually I was writing codeception test then
and needed to post data
I am not afraid, I just udnerstand taht their productivity should drop if I ask often
even few minutes disturbing might cost who knows maybe half hour work
till he gets concentrated back to his task
I was thinkiing about documenting
but I am bit not sure if its ok to do this on companny computer
cause admin has access
and if I have list of what I am not good at
and see - they think , oh how bad he is
I mean where I strugled
I was thinking about writing the things which costed me time more than usual
 
In my opinion you're far more likely to get sacked by being stuck for hours because you were too afraid of interrupting people than you are by documenting things or asking questions. If a company sacks you for taking notes / documenting your findings, then it's not a good company to work for.
If you're worried about interrupting too often, write down your questions and ask them all at once if they're not immediately important to you. Grab people when they're up from their desk / at break times anyway.
 
I am documenting but, not writing my weakneses
I document how to do things
so maybe I really should interupt them more
yea, more important thing is when I need to find smth out now :) not after some time
or maybe I should set some time like 15 mins, if it takes more to find, then ask?
 
As a more senior developer in a small team, personally, I'm more likely to think "great, this guys learning stuff and getting up to speed" if they're asking lots of questions. If they're sitting around for hours not getting very much visibly done, I'm more likely to suspect they're spending time on reddit or something.
 
5:06 PM
aha
thank you
I think I could have made this mistake in previous job also
 
And every time someone improves our documentation / code comments, it saves time for the next person who has to deal with that bit of code and doesn't know what they're doing (and also allows me to see and quickly correct any inaccuracies in what they think is happening)
 
oh , I thought you are tlaking about my documents
not public one
I usually write in my documents
becuase it might be that there is no need so much in company documentation
only some very important things
I write in company docs
 
Both are valuable - I always carry a physical notepad with me to scribble things on and would never hold anything against any developer who does the same. I frequently write down things I want to investigate in more depth later. And often I'll scribble notes and write them up into more formal documentation later.
 
ok, thanks
maybe I would even need to ask my lead
how often can I interupt
 
@Darius.V very often, as long as you don't interrupt for the same thing.
if you ask someone something, they answer, but you don't learn, then they will get upset less eager to answer
on the other hand, if you ask something, they answer, and afterwards it's very clear you've actually learned something from that, and your work gets done, then they'll be happy to help you
 
5:24 PM
but I think I should not learn by heart the situations, I should learn to read from the code
 
Is it acceptable to ask for question help related to apache here?
specifically htaccess but i feel like if you use php you also use htaccess quite frequently right?
 
in the situation I wrote - I could learn busines logic
but should I. I should be able to read logic from database queries
at least I thought so
unless logic is very dificult and so then easier to write somewhere or learn than read from code
 
@PeeHaa ?
 
@PaulCrovella how to parse json answer thing
@ityler22 Many people in here moved on to a real webserver, but shoot :)
 
5:40 PM
 
Cannonball in place! I mean.. canonical was added successfully.
 
!!canon list
 
The following canonicals are currently supported:
• errors → https://stackoverflow.com/q/845021
• headers → https://stackoverflow.com/q/8028957
• globals → https://stackoverflow.com/q/5166087
• utf8 → https://stackoverflow.com/q/279170
• parse-html → https://stackoverflow.com/q/3577641
• sqli → https://stackoverflow.com/q/60174
• operators → https://stackoverflow.com/q/3737139
• mysql → https://stackoverflow.com/q/12859942
• json → https://stackoverflow.com/q/29308898
 
\o/
 
Wes
nais
 
5:43 PM
@PeeHaa any particular reason you needed me to do that?
 
I was too lazy to find it in your profile :p
 
and it's easy to find in my profile as it's my only question
 
oh I always forget we have that thing :D
 
@BenjaminGruenbaum ping
 
@PeeHaa dude, there's a link to that thing pinned in the sidebar... perhaps !!canon list should link to it as well
 
5:46 PM
@PaulCrovella lol
It's always there. No idea what it says :D
 
!!dad
 
I’d like to give a big shout out to all the sidewalks for keeping me off the streets
 
Am I the only one who think elon's mars rider looks like a dildo?
 
wt* is elons mars rider
 
Wes
5:54 PM
lol @PeeHaa bonus: without the fuel tanks it looks like a butt plug :B
 
It kinda does doesn't it
 
@PeeHaa stackoverflow.com/questions/39753286/… I thought i just had it figured out with my own answer but its still not working completely to the intended spec. THanks for the help though even if it isn't a "real" web server :)
 
Wes
all rockets do?
 
@Wes Well but this concept has that weird thing going on at the upper parts
 
Wes
@NikiC ping?
have you guys considered disallowing implicit casting of keys in arrays in strict_types? eg $array[10.1] // TypeError, only string and int allowed
 
5:56 PM
You are on the right track @ityler22
 
Wes
thoughts about that @PeeHaa ? ^
 
@Wes Meh. I wouldn't mind
I think the problem should be solved on another way judging from your answer remark @ityler22
 
evenin
 
yo
 
Wes
yo
 
5:59 PM
yo
 
if you don't want things/people to directly access the scripts put them outside of your document root to begin with
 
Anonymous
@PeeHaa hahaha :P
 
hey o/ @kelunik, sorry for yet another ping but, could you please approve the changes so I can merge the reminder plugin with clear mind? :-)
 
@PeeHaa I agree, unfortunately it does need to be accessible from the web in this particular case lol
 
@JayIsTooCommon Is that a "you are crazy laugh" or a "omfg he's right laugh"?
 
6:01 PM
@PeeHaa Thanks for the encouragement though :)
 
:P
Let my try to guess apache's syntax
@ityler22 Does a rewrite base help in this case?
 
@tereško people at my office are considering outsourcing some work to a contractor in eastern Europe and I was wondering what I should expect in terms of pricing and code quality. I'm personally a little scared about outsourcing but also optimistic that we can offload a lot of the more boring work.
 
@BenjaminGruenbaum pricing loooow and code quality very fluctuation from person to person
 
Anonymous
@PeeHaa my laughs at you are always the former but in this case, omfg you're right :P
 
6:05 PM
And eastern european developers need to be told exactly what needs to be done
 
Wes
@PeeHaa @bwoebi what i'm doing actually is [0,1,2, ...(function(){ yield 1.1 => 1; yield null => 1; yield new stdclass() => 1; })(), 3, 4] i want it to throw in strict_mode (TypeError: invalid float key, only integer and string keys allowed) so i thought starting from disallowing implicit casting to array keys would've been better
 
Because they will do it exactly as told
 
@JayIsTooCommon :D
 
Wes
should i go with that? or should only strict mode be supported?
[0,1,2, ...$iterable]
 
6:07 PM
hmmm generators. That's @bwoebi's department
 
Wes
not just generators, any iterable
 
A quick search seems to suggest RewriteBase does actually do what you want @ityler22
 
@PeeHaa I suppose it could, not inherently going to solve the problem though. In the production htaccess i'm pretty sure there is already a rewritebase to grab any subdirectory as the request_uri
 
@BenjaminGruenbaum depends on what you consider low. A junior developer usually earns from €350/mo (in Accenture) to €600/mo (in a standard webdev company). Someone with 2-5 year experience gets €800-€1200/mo. For senior devs it's usually "below €2000/mo". That's after taxes.
as for quality, as @PeeHaa said, it depends
 
Wes
daaaaaaaaaaaaave
 
6:10 PM
ok one last attempt what about something like RewriteRule ^[^\/]\/(.+)$ yourscript?
@ityler22 ^
 
@BenjaminGruenbaum the official "average salary" for a "Information technologies" sector is €1150/mo (but that also includes managers and sales people)
compared to what someone earns in NY, the prices are hilarious
 
I'm rewriting my form as OOP, I think
or going to attempt to
I'm using vendor's code as an example to work from
 
let us review it, when you are done
 
Should I put the form_spec in the model?
 
but, a quick hint: don't write a generator for the form's HTML
 
6:17 PM
alright
 
almost everyone tries to make a form generator, and it end in tears
2
 
lol
vendor code actually has a form generator, and it works pretty well, but it doesn't do everything we need it to for this loan application
which is why I'm not using it for this
 
also, dont thing about "model"
focus instead on separating the "presentation" (the HTML) from the "logic" (everything else)
 
alright
 
and then try to separate things that validate shit from things that save shit
 
6:22 PM
@PeeHaa Need a minute to parse out that line lol, that would be used in place of the rewriterule im already using in the answer or did you not mean RewriteRule?
 
yea
If I got that right it means somedirectory / somethinginthedirectory which gets passed to yourscript
 
Its failing at the moment with an apache error of "bad argument line" @PeeHaa
 
oh wait. silly...
RewriteRule ^[^/]+/(.+)$ yourscript [L]
Last guess before I give up on apache :P
 
@PeeHaa Last guess seems like it works fine, sorry should've known the other slash wasn't needed. Thanks for your help! See, Apache isn't so bad afterall... :)
 
np. Make sure to do some proper tests though :)
 
6:34 PM
@PeeHaa Yea im working on some now lol, not getting the subdirectory and parameters at all passed to the script. Probably something stupid lol
 
How should they get passed? As querystring?
 
Yea i expected them to get passed as parameters to the script with the $1 in the htaccess rewriterule, wishful thinking i believe
 
Di you add it because it should be added if you did
(.+) is the capturing group
 
@PeeHaa Ah ok no at first glance I didn't think that was the capture group but rather the (any) something after the subdirectory. This is what i was using RewriteRule ^[^/]+/(.+)$ sys/router.pl?action=$1 [L,NC,QSA]
@PeeHaa Haha n/m i figured it out, was something stupid, misspelling on the perl side parameter check. Thanks again for all your help. Ill tag you on the answer once I make sure I don't need anything else :)
 
:P
 
yolo
That was just trolling
 
Wes
beer
 
@Wes good plan
 
Yeah I like that
cheers
@PaulCrovella Is there a way to get a full list of dupes linking to it?
 
@PaulCrovella Why has "UTF-8 all the things" not been a title at some point? =o
3
 
6:48 PM
lol good one
 
@PeeHaa other than by stackoverflow.com/questions/linked/279170?lq=1 I don't know.. probably a sede query out there that'd be more accurate
 
@AllenJB soooo tempted
 
@PaulCrovella yes that would work tnx
 
Wes
client keeps complaining that i don't answer his emails sometimes. keeps sending emails to the wrong address on his same domain which is set to redirect emails to a catch-all mailbox that he himself reads
 
@Ekin Requested two more changes.
 
Wes
6:50 PM
"hey, i've received the email just sent. all is ok"
 
Ugh damnit. Won't fit in a comment now I have to post an answer :(
 
@kelunik yup, on it right now
well spotted
 
@Wes lol
 
@PeeHaa you get there by the "see more linked questions" link at the bottom of the Linked sidebar block on the question. ... link link link
 
wow much amaze such linked questions
 
6:55 PM
@Wes we haven't considered that in particular, but I doubt that the scope of strict_types is going to expand
If it will happen, only as a separate flag
 
why is there no toggle for 10k folk to show/hide deleted stuff.. I don't want to see all this extra garbage :(
 
Wes
@NikiC was expanding daverandom's rfc about ...splat in array literals, wanted to know what should happen with:
[
    1,2,3,
    ...(function(){ yield new stdClass() => 4; })(),
    5,6,7
];
 
@Wes The same as with [new stdClass => 4], I'd assume
 
Wes
and any other non-int, non-string type
 

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