« first day (2971 days earlier)      last day (2202 days later) » 
00:00 - 17:0017:00 - 00:00

17:21
Mornigns
@Wes yeah
Wes
Wes
@NikiC sup? wanted to ask you when exactly copy on write is invoked when modifying an array while foreaching it? any modification or only structural modifications to the hash table?
@Wes What's a "structural" modification?
But generally, if it's by-value foreach then any modification will cause a copy
@Tiffany That's pretty good.
17:36
when i dump it in CI its return null $this->session->set_userdata($newdata);

$this->session->set_userdata($newdata);
and session not storing
The discussion for adding more variance has gone well. Nice and quiet. Hopefully the voting goes just as well.
php 7.2
@Noni you almost certainly want to use a debugger to figure out what is going on. It is unlikely someone will be able to guess what is happening to your application.
@LeviMorrison Hm... I should review that PR
@Danack thnx for reply ive update a application which is made on php 5.6 to 7
Wes
Wes
17:45
@NikiC nonstructural = when keys don't change
foreach($a as $k => $v){
$a[$k] = $v * 2;
}
this for example is not structural
@Wes I see. Still gonna copy tho :)
Wes
Wes
thank you
that's what i wanted to know :B
@NikiC The impl still needs a bit of work. Some of the items are todos so they won't get lost.
There's also some duplication that should probably be unified.
But yes, please do review the changes ^_^
Currently I'm working on adding an enum for inheritance_status instead of returning special values of int. Previously the used "boolean" ints.
That work-in-progress can be seen here: github.com/php/php-src/commit/…
18:00
@Tiffany @Wes publish an article today
Wes
Wes
yes yes
i'm working on it... struggling to find the words
@tereško I doubt I will get used to it. The nausea feels terrible and doesn't go away quickly. I'll try the other games though
also, have you played banished?
looks nice
@Wes I will shame you if you don't complete it today :P chat.stackoverflow.com/transcript/message/44746027#44746027
Wes
Wes
i am close to finishing it :B
18:06
@FélixGagnon-Grenier @samayo I got clarification from my boyfriend on the headset: at the very start when he used the headset, he'd get a little nauseous, but he eventually got used to the headset and nausea subsided. The games that really do him in are the ones that delegate movement to joysticks, they're disorienting
@Wes What is it about btw? is it about traits?
Wes
Wes
NO
i wish i had never mentioned that :B
Goddammit
:P
Wes
Wes
"are them meant to do this?"
"are they meant to do this?"
pronouns confuse me
First one is definitely wrong
Wes
Wes
18:08
thanks... it is correct in my mind... i have no idea why
@Tiffany so you are saying the headset was more of the issue than the game's graphics?
`var_dump(strtotime('1518-11-20 00:28'));`
returns false on my machine hmmm.. :/
@yessure strtotime is based on 32b afaik
Ans starts at the epoch
@samayo just the level of immersion takes a little getting used to, I guess
> Parse about any English textual datetime description into a Unix timestamp
18:10
I'll hopefully be trying it out next week, so I can give a first-hand account if I do
There was no unix timestamp in 1518
but it works on other machines (I've tested it online)
int(-14235849358)
Weird
I'm betting it's something to do with your 32-bit version, and online is using 64-bit
I would think it would always fail
18:12
...maybe...
Either way just use DateTime
@Tiffany probably
@PeeHaa I was doing adventofcode.com lol
wonder who these anonymous users are on the r11 leaderboard
@Tiffany yeah there are a couple of them
@Tiffany o/
18:14
@yessure login :P
@yessure probably because 1518 is out of the range of unix timestamp or something
@Tiffany I did, I'm just hiding my nick
@yessure Unix timestamp cannot go past 1901-12-13
its entire range is of 136 year with 1970 being in the center
so you should use DateTime
understood! thank you
18:19
And I would really appreciate it if you were to share your solutions on github with the room to compare our solutions to
sure! https://github.com/yessure/adventofcode/tree/master/2018
day 4 is a bit messy
@samayo as I said, go in the settings and make adjust the field-of-view
@yessure thanks
@Tiffany Now you have like 4 people to copy from and you are still not doing it :P
also enable the framerate counter: maybe you are getting hit by 24fps, which might cause nausea
Thanks, I will check it
18:24
as for Banised, it was nice, but it is very short game - it will take you few tries to make a stable settlement, but when you managed to do it, there is no endgame or replay-value
Wes
Wes
@pmmaga congrats for your talk :D just saw the tweet
@samayo also, regarding nausea - do you get motion-sick in cars?
@mega6382 reasons
@tereško Yeah, specially on long rides ... how did you know?
it's the same mechanism
you eyes are perceiving movement,while your inner-ear is sensing no motion at all
18:27
@mega6382 just got back on my ADHD medication today, I had a migraine last night...and it's coming back now..., and I'm still setting up my computer since having to format it after password issues (though turned out I didn't need to format, but too late now)
you COULD keep trying for couple weeks
hm.. i guess I will have to google games from now on before buying them
it should go away after your brain has managed to re-wire itself
buuuuuut ... not VR for you
fuck, that hurts!
I love so many of the photos in /r/CozyPlaces Makes me want to make some modifications to our house.
18:29
well, I guess the silver lining is, I get to waste time on something more productive ...
anyway, its like 1% of games I have played, so it's not a big deal
I used to get motion sickness in cars as a kid, but I don't anymore, or at least it's not as bad. However, I don't get motion sickness from playing video games... maybe playing video games helped the motion sickness?
let's put it this way - if your motion-sickness from first person games does not go away in few week, there is no hope with VR
oh, one more thing: there could be some other setting, that you can adjust. Like the "head bob" and "motion blur"
I have heard those too can cause nausea
@Tiffany Well good luck still, hope you are available soon
@yessure You have a very heavy use of references in your solutions, why is that?
@tereško did you ever get one?
18:39
@samayo only when I am really sick and playing a game with basically all the possible "triggers" (bad framerate, small field of view, camera bobbing like it's in jello and some shitty blur effects)
in your situation I would try playing in shorter sessions too - give it 30min per day
hello, is there any difference between using

$this->db->beginTransaction();
$queryOne->execute();
$queryTwo->execute();
this->db->commit();

and using

$this->db->beginTransaction();
$queryTwoInOne->execute();
this->db->commit();
sounds like a good option
@samayo lets put it this way - if with limited exposure, the nausea goes away in a month, then it might also fix your generic motion-sickness issue
because, as I said, it is the same physiological mechanism causing it
I don't know what game is worth enduring a month-long sickness to justify the experience. It's against the reason of playing games in the first place. I have 4 solid games to play.
oh, and some people say that ginger tea helps
18:45
btw, did you add me on steam?
can't see my friends
yes (I the one with nickname "Azazul")
@LeviMorrison I do, it seems necessary
@salathe is your country populated by idiots? comicbook.com/movies/2018/12/01/…
mornin
I've got a question about pluck operator in PHP (variadic) in my company there it's used all the time when an array with integers|strings is required in method signature. My question is are there any downsides? And is it common to use the pluck operator that way? Cause the main reason I can hear is only type awareness and consistency with other places in application.
19:02
session_set_cookie_params behavior change in PHP 7.2 – #77238
@brzuchal I think it's pretty uncommon, but also a well-known workaround
Main downsides would be a) only works for one array and b) performance
And well, it makes the api somewhat non-obvious and awkward to use if you want to pass pre-constructed arrays
@NikiC I agree to a) cause personally I would probably type hint as iterable and pass iterator or generator doesn't really matter, but if we talk about b) performance it doesn't look like it's an issue when you deal with small amount of arguments (gist.github.com/nikic/6390366) the difference in 7.2 is pretty small, right?
I'm learning about conceptual model and I thought someone can find a good use of this: code2flow.com/app
@brzuchal That's not really comparing the right things. For this use case the relevant comparison is something like array $array vs ...$array, and in this case ... will be much slower. The former is basically free, the latter will require copying the whole array on the stack and then copying it back into an array. Of course, for few elements it's not so important, but this could easily be a bottleneck with large arrays
In particular because it introduces the danger of writing "accidentally quadratic" code
Where you're calling a function 10k times with an array of 10k elements and suddenly that means you need to copy 100M elements -- and at that point it's no longer negligible.
@NikiC Thank you
19:28
@Alesana For..?
@LeviMorrison On variables? Nope.
On arrays? Sure.
@NikiC I guess these are dictionary style arrays, not vector style arrays?
@LeviMorrison I would generally expect so, yes
pathinfo strips umlauts only at the beginning – #77239
@LeviMorrison I use it in one of these AoC puzzles, I'll upload the solutions later on. But, basically, it was comparing two strings and removing the letter that differed in the two strings.
Something along these lines..
foreach ($str1_as_array as $key => $letter) {
  if ($str2_as_array[$key] !== $letter) {
    unset($str1_as_array[$key]);
  }
}
19:35
I think there's a higher-order algorithm there that does not need unset.
I also compared a list of strings with each string in the array to see how many differences they each had. I unset a string from the array after it was compared with each string left in the array, so it wouldn't re-compare strings that it had already compared it with. Something like...
foreach ($input_strings_array as $array_index => $array_value) {
  foreach ($input_strings_array as $second_array_value) {
    ... do compare logic ...
  }
  unset($input_strings_array[$array_index]);
}
When only ran once the amount of time saved is negligible but by percentage, it saves a good amount of time
I suppose there could be another way to assure that it didn't recompare the same strings but that seemed the most simple
19:50
@mega6382 I start coding the solutions form a template which has loops with variables passed by reference for comfort :P
comfort, you say, eh
im lazy
20:02
Incorrect binding near constraint errors. – #77240
Wes
Wes
20:14
I AM FAILING
@Wes boooh booh booh :P
Is this classification correct? "my personal skills", "my work skills"
@Shafizadeh my professional skills
"professional" instead of "personal" or "work" ?
work
20:22
I see, thx
Any idea what does street statistics mean in "Have a solid understanding of street statistics" ?
20:43
it means nothing
sounds either like a mistake in translation or someone overly-enthusiastic-16-year-old
:-)
also, any idea how can I add "in order" to this?
> Interested in being a front end web developer, back end web developer or content provider
@tereško Maybe a way to say street smarts? I don't know, that is odd
@Shafizadeh context would probably help
20:50
> Interested in being a front end web developer, back end web developer or content provider in order to [advance my technical skill set|benefit the company|etc...]
Although there could be better ways to say that
I see, thx
I think he mean "in order of preference"
:D
@mega6382 Thinking about stealing your license lol
For your AOC solutions
@Alesana well I stole it from @MadaraUchiha, so go ahead :P
Nice haha
21:00
@Tiffany @Wes publish an article today
:O
That makes so much more sense
@ircmaxell I didn't even write any code for that, I just pasted it into devtools console and instantly got the answer
@ircmaxell I did array_sum, but I removed the plus signs in VS Code
21:11
I tried to put it into Google to calculate it but it was too long
don't use eval
I was just being daft
I did fix up some of my solutions to make them look better before publishing them. I actually originally used a search/replace regex in Sublime for all the inputs to turn them into useful arrays, but then when I went to publish them I changed the solutions to turn them into an array using regex.
@Alesana instead of regex you could've used explode('\n', $input)
Ah true, that makes a lot more sense. I guess I was just in the regex mindset.
21:16
Maybe I'm not thinking about this right...
What I need is to have a form field where a user can put in a url or link and then also a field to put in a "pretty" name and show the pretty name as the url or link
Like "Stackoverflow PHP Chat Room" text links as the url for this page
@benlevywebdesign What's not working with it?
@Alesana If I were to write code for that I would've done this 3v4l.org/rZa93 /cc @ircmaxell @Tiffany
@mega6382 lol
@mega6382 Yeah that makes the most sense, I wanted to start with the unaltered input as a string in each puzzle though.
I'll have two fields. One is the href url and the other is the name/output to display
21:22
I just realized you don't have any file for the first one
I think I just got it!
@Alesana yeah, like i said I didn't even bother writing any code for that, I just posted it into devtools console
@benlevywebdesign you might be better off figuring out your question in its entirety because currently it seems like you're halfway... can't tell if you're using chat as a rubber duck or seeking help
Right, I didn't write code at first I just wanted a solution for each
I guess the reason I use a foreach loop is I actually made part 1's code from the code from part 2
I need to get the project initialized and stuff and submitted to github. I had to install git and phpstorm this morning, then I can get started on the project locally and commit it to github later.
ugh, I think I need to rebuild my dev environment too just remember that vagrantbox is on my secondary hard drive, one less thing I'll need to do... but still will need to download vagrant, virtualbox and docker >.<
and find that direct download URL for docker...
21:27
@Tiffany at first I was then I stopped being an idiot today and figured it out lol
Sometimes all it takes is to write out a question to find the answer
There've been times where I tried for over an hour to find a solution to some problem, but as soon as I go to type it in the chat I realize what a solution could be
@Alesana like 50% of the time, that's what happens for me.
I also use scratch paper and write the problem out on that, or try to compose it in a text editor (VS Code)
for example, trying to figure out a solution to a bread crumb problem we're having with our new CMS, the way how a third-party built the bread crumb, it's coupled to the folder/file structure of the site and I can't generate my own, so I wrote out the problem on scratch paper and wrote out a possible solution, then typed it into an email
I've been productive today...
makes up for all the shit I didn't get done last week >.<
I know how that feels
I have to go back to working on our course schedule, trying to add a couple features. One I think I can do, but I need to figure out if I have the right table and column, and then add the logic to do the filtering correctly. It's in bloody PL/SQL though.
and this database has what feels like a million tables, with nonsensical names
like ssbsect
@Alesana As it says, do whatever the fuck you want.
21:43
I can see that almost everyone used date functions to process the input for day 4, I literally just exploded the string to get the minutes part
And the funny thing is that the difference in my solution for day4.1 and day4.2 is of only 1 line of code
@MadaraUchiha lol, do licenses have licenses?
@mega6382 I used the date there so I know who was on duty
Originally I was planning on doing just the last two, then I realized that I had to sort it to find out who was on duty
@Alesana I did that by sort($records);
That makes a lot more sense
Today I realize that I am an inefficient coder haha
And @MadaraUchiha did almost the same thing input.split('\n').sort();
I was just looking at your solution too
21:48
@mega6382 Fun fact: The reason the ISO standard is like it is (YYYY-MM-DDTHH:nn:ss) is mostly because it's lexically sortable.
@MadaraUchiha hmm, I didn't know that, thanks
That is interesting
I almost entered exit again in chat :S
22:05
Does that work?
exit
die();
Doesn't work in chat. Also doesn't work if I write it down. Still living :/
ThW
ThW
lol
@Alesana Goddammit lol
22:19
@mega6382 I could be wrong but for some reason I thought that in some version of PHP you can't use "+9" as a number
@tereško There's a country that isn't? :P
@Alesana well 3v4l shows consistent result across all versions
@salathe some countries seem to come up with stupider ideas than others
Ah you're right
That's weird
22:27
@MadaraUchiha I saw *******
22:42
@PeeHaa Did you just have like, an 4 days upadte to ark? time prediction is bumpy
It might be a good way to get a little bit of experience in each language to do the puzzle in a lot of different languages
@Alesana sounds like a good idea
Next up, Kotlin
I am gonna try typescript next
23:14
Nice
I need to learn more JS but I'm not going to learn much more than I already know by doing the puzzles
@mega6382 Don't do what I did though, be sane and use lodash
Er, I need to learn ES6, but I would just use everything I already know
23:45
Are typed arrays gonna happen?
I've started a PoC for it a few months ago, hopefully next year I'll have the time to actually do it :)
*time and skill :P
Well, please do; I hear you on time (and skill). int ...$values is okay enough for most cases, but the lack of return type support makes me a sad panda.
00:00 - 17:0017:00 - 00:00

« first day (2971 days earlier)      last day (2202 days later) »