« first day (2972 days earlier)      last day (2201 days later) » 

00:08
@DanLugg how's your patient?
00:18
Sober and working
So, I’d consider the operation a moderate success
Operation being a whiskey-ectomy
Why only moderate?
What would make it complete?
I got my nails done, my ring finger nail has little snowflakes on them
It was pretty neat, the snowflakes were applied with like a screen printing technique.
00:34
@MadaraUchiha what's special about it?
00:53
@Wes Thanks! ^^
 
2 hours later…
02:28
@FélixGagnon-Grenier 4 days update?
yeah no, only like an hour
but it was madly swinging between a very long time and a very short time, and wondered if that was just me
Didn't see anything weird
03:14
So another one of the many inconsistencies with American English... there are a lot of words where in British English, the verb uses an s, and the noun uses a c, e.g. practise/practice, but in American English, we just use practice for both noun and verb. Then there's advice/advise, where we use advise for the verb and advice for the noun. Sit down English, you're drunk.
Wes
Wes
gotta love english
@Wes did you write the article?
Wes
Wes
i didn't finish it :(
but not because of lack of trying
how do you say - avoid using pronoun like you, me, we, and prefer third person singular instead, in a formal article?
if that's even a thing
in italian sounds cheap using certain pronouns, text must be "impersonal" that's the word we use :B
"you are not allowed to perform this" -> poor
"the reader is not allowed to preform this action" -> better
03:37
If anyone can explain the difference between spilled and spilt, or learned and learnt, that would be great.
Wes
Wes
03:52
splitted?
The milk was spilt vs the milk was spilled.
helo guys
0
Q: Laravel how to upload/download Files to amazon s3 using kms

CrysisHelo guys, I'am trying to upload/download files from amazon s3 using KMS, although i have implemented this without using KMS by the following code, request()->file('file')->store( 'my-file', 's3' ); Now I'am trying add kms feature to my bucket and i have created my own key and implemen...

any ideas?
Wes
Wes
04:08
@Danack didn't even know that was a word
04:20
@Danack Is this a trick question?
04:59
@Danack I think spilt/learnt are only used in British English
Wes
Wes
05:11
why does my english sound so bad
"The reason for this is that it is..."
forthisisthatitis
wat
Haha that's correct, and to me it sounds normal, but I can see how there are a lot of very similar words together
05:53
I feel really stupid today
06:08
I swear I'm getting the right answer for this puzzle but it's not working. Hmm..
Wes
Wes
@Alesana sounds so weird
i mean i know it's correct but it's very inelegant
Yeah same with my answer
Yours was accepted for part 2?
I think a lot of these puzzles will present unrealistic problems so solutions will be pretty inelegant
Wes
Wes
part 2?
Are we talking about AoC?
Oh wait sorry
I'm very tired haha
Which is probably why I can't finish this puzzle
I didn't see what message you were replying to
Yeah I can see it sounding weird. When I was learning Spanish there were a few things like that, that to me sounded really weird, but to natives they thought it was normal
Wes
Wes
:B
06:24
Have you done some of the AoC puzzles?
Wes
Wes
nope
i am really not into that kind of stuff
Ah, for me if anything it is a fun way to get some practice on interview questions
06:56
@Sjon thanks for the hint on ctrl+d
 
1 hour later…
08:00
postiche a false hairpiece.
@pmmaga so what O/S did you originally have the issue with? OSX or linux?
08:14
@Tiffany lodash is pretty much the de-facto stdlib for JavaScript
Wes
Wes
@Gordon wow that sucks
@Wes keep in mind that a lot of these will likely be for silicon valley where a salary of 120k means you can barely afford the rent.
@Jeeves learn these, please mcsweeneys.net/articles/nihilist-dad-jokes
Wes
Wes
i mean in comparison i have the best job in the world... i earn much less but i am probably way less stressed out also
i actually did expect god level developers to earn more than that
we choose the wrong job
I have a weird bug, I'm trying to assign data to an array that has dates as indexes, but after going through the array with a refference, and then vardumping the result the last array has a refference symbol in front of it. Has anyone ever had such an issue?
var_dump result=
`
["key"]=>
&array(6) {
`
@Wes Linus Torvalds earns $100k/mo
08:35
code:
```
foreach($array_for_values as $k => &$val){

$newVal = $empty_dates;
foreach($val['data'] as $key => $value){
$newVal[$key] = $value;
}
$val['data'] = $newVal;
$removedIndexArray = array();
// flag 1
foreach ($val['data'] as $v){
$removedIndexArray[] = $v;
}
// flag 1 ENDING
$val['data'] = $removedIndexArray;

}

var_dump($array_for_values);

```
before the foreach the array is fine, but after the array it's not. flag 1 is when I remove the associative indexes from the array, because the result needs to be an unassociated array.
@Wes not sure… $724,500 for a senior staff engineer at google sounds pretty obscene to me
even when living in silicon valley
mornin
Wes
Wes
@Gordon ah lol that sounds more like what i expected... i stopped clicking too early :B
@PaaPs references in foreach is asking for problems. Why not use $array_for_values[$k]['data'] = instead of $val['data'] =
fixed it by unsetting the value
are refferences frovned upon? or is there some kind of an advantage of accesing the values like you described?
08:42
@PaaPs sure, you can always add another hack which makes no sense to people reading your code (or yourself in a few months)
@PaaPs I don't see the big advantage over constructing a secondary array and replacing the original one with that instead of manipulating in place
i'll remake it ;) thanks
@PaaPs have a look at array_map
interesting, i'll have a read, never used that before
cheers!
@PaaPs you're welcome. Seems to me your second foreach is basically array_merge - so you can replace that as well
yup, replaced that!
09:24
\o
Hmm, my github 2fa isn't working, locked out of my account :x
ThW
ThW
@Sjon I would say an array_push($removedIndexArray, ...$val['data'])
@ThW that's the third foreach ;)
morns
ThW
ThW
@Sjon ohh right
09:47
@Sean sync your clock
10:10
Phrases like 'bringing home the bacon' could be banned to avoid offending vegans https://www.independent.co.uk/life-style/bringing-home-bacon-vegan-offensive-idom-shareena-hamzah-phrases-animals-a8664796.html?utm_medium=Social&utm_source=Twitter#Echobox=1543854276
Wes
Wes
10:21
> make mistakes unintentionally
no shit
@Sjon on linux. Just tested it a bit further and: The problem only happens with firefox (chrome is fine) and the same thing happens on bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/…
Wes
Wes
that is me still fighting with english tho
@Sjon are you aware of v86?
@FlorianMargaine yes - I haven't gotten around to testing its performance
@Sjon kk, the author used to be a regular in the JS room fwiw
10:32
@FlorianMargaine okay, cheers. I'll see if it has similar features
@Sjon afaik bellard's project was an experiment he pretty much abandoned since then, v86 is actually maintained
@FlorianMargaine possibly - but bellard did do a wasm update and v86 didn't
[ext/intl] Please use pkg-config to detect icu – #77241
12:01
Morning
@tereško I was hoping that was The Onion...
Wes
Wes
muricans, is it true that scanners and copying machines can't copy banknotes in america?
just tried with euro and it worked :B so must be an american thing only
i mean the devices are actually required by law to disallow money to be copied, seemingly
12:23
@Wes hmm- not sure. I have never tried.
JavaScript sucks when it comes to arrays
12:56
@StatikStasis PETA has been on the roll again
13:17
The EURion constellation (also known as Omron rings or doughnuts) is a pattern of symbols incorporated into a number of banknote designs worldwide since about 1996. It is added to help imaging software detect the presence of a banknote in a digital image. Such software can then block the user from reproducing banknotes to prevent counterfeiting using colour photocopiers. According to research from 2004, the EURion constellation is used for colour photocopiers but probably not used in computer software. It has been reported that Adobe Photoshop will not allow editing of an image of a banknote, but...
@Wes nice
@tereško :D
Peta totally jumped the shark
13:34
@PaaPs references are generally frowned upon, yes. Essentially only use references if you have no other choice. There are some limited scenarios where references are preferable to use, but nine times out of ten, you're better off not using references.
Wes
Wes
they are kind of nice tho twitter.com/peta/status/1070066047414345729/photo/1 it's a good attempt :B
@Wes first response... drool
@Wes I think I pulled something from cringing
Wes
Wes
i have flagged it as abusive
because that's how i roll
13:41
the replies are hilarious
Their talent for contorting reasonable thoughts is amazing. I agree that language is important and forms thoughts and actions but the proposed alternatives are just ridiculous.
I mean, if you take offense in to beat a dead horse, then dont say it anymore. it doesnt need a weird replacement… but I guess that's the vegan fallacy… they do the same for meat.
13:56
@Wes So... uhm... if you have a fed horse, isn't feeding it still more food a type of animal cruelty?
Wes
Wes
also the bagel probably offends coeliac people
@MadaraUchiha And people say that php encourages bad practices github.com/mega6382/aoc-solutions/blob/master/Day%205/Day5.2.ts
Probably the worst code I've ever written
@Gordon something I've been taught in cognitive-behavioral therapy is called a thought triangle: thoughts form feelings/emotions form behaviors/actions and eventually habits. Breaking a bad habit starts with changing one's thoughts.
14:12
Tiffany is breaking bad?
Wes
Wes
actual statue of a saint robot in italy pbs.twimg.com/media/DtlpHq9WoAUquI-.jpg
actual statue of a hand flipping the middle finger in vermont twitter.com/Crazzyintheusa/status/1070320994638807040
@mega6382 Mine came out fairly elegant.
@Tiffany exactly. and it's a circular process.
@Machavity working on it :D
I need to study how germs infect because I get a lot of stress from cleaning because I'm a bit of a germophobe. It's difficult to change that because I don't understand how germs live and die.
@Tiffany come to Germany?
14:23
A little ironic that I'm a germophobe but don't like cleaning...
@Gordon rofl
bacteria/viruses
@Tiffany buy a robot for that
@tereško oh I wish
@Wes what makes me sad is how many layer of censure that tweet had
Weekdays are calculated incorrectly for negative years – #77243
first of all the video was blocked by twitter itself as "offensive" and then inside the video you also get that japanese-porn-squares censure
14:34
@tereško it's from a news station
"fuck" is one of the seven words censored on TV
that did not make the twitter to make it as "inappropriate content"
there was a ton of outrage when a female's nipple appeared during a superbowl halftime...
puritans
puritans everywhere
yarp
funny, probably a lot of the same people who voted for Trump...
I don't think there is any difference in that by political affiliation
14:37
they explain away Trump's "grab them by the pussy" ... but get pissed over a nipple
^ reverse that sentence
and you will see how there is no left-right split, when it comes to puritanism
@tereško one was an accident, one can be considered sexual assault (if it isn't consensual)
Wes
Wes
@tereško true, there is no picture on the internet even
one was accident, other was a known liar bragging
@tereško and there are charges of sexual assault/harassment against him already ...
and the way he fawns over his daughter is rather creepy
14:43
@Tiffany are there convictions? Because accusation is not the same as conviction. And I have not actually heard anything about charges.
oh, and being creepy is not against the law :P
@tereško no it isn't, but it can still be frowned upon
he can be creepy, I can shun him
I would be more creeped out about those pedophilia accusations floating around half of DC
priorities :P
if you're referring to pizzagate, a lot of the "evidence" has been touted by conspiracy theorists, unless there's something I missed that's concrete
no, pizzagate was some odd bullshit
and there is no evidence that I know of - only the regular stream of congressmens assistants being fired for "inappropriate conduct" or memoirs being published, where strange "parties" are being described
15:20
@MadaraUchiha yeah, thats pretty elegant
I just hate the way foreach works in js
@mega6382 How come?
callback, and no ability to add break
(for ...of) does that but it doesn't provide you with indexes
@Allenph no.
Wes
Wes
i have failed at finishing the article
i realized my argument wasn't as strong as i thought it was
@Wes it happens
Wes
Wes
i know
shit
better to give up on writing an article with a weak argument, than add more shit out to the wild
@Wes Well, did you at least began writing it?
Wes
Wes
i wrote 200+ lines
it's just not really a solid argument
@Wes Still doesn't matter, be like republicans and stick with it
Wes
Wes
15:33
i'm not trashing it... i just need to think more about it :B
@Wes you could always leave your argument as-is, but add potential counter points to it. It could round out your article.
shows that you did research into the topic and you're not leaving out arguments against it
> Weekdays are calculated incorrectly for negative years
3
Wes
Wes
for negative years?
...should we say that PHP isn't a safe technology to use for time machines?
Wes
Wes
do i actually want to read it?
15:36
@Wes not really just check this 3v4l.org/4Glr2
Wes
Wes
i mean maybe they expect to support BC years also :B
it's still funny tho
3v4l.org/jrtKq I think is better because it at least shows the "incorrect" output, instead they override it with their commentary
@Tiffany The output above their comment is the incorrect one btw
what scenario would require having to work with BCE dates? like, I could think of a historical reference site, but that would have static content and wouldn't be programmatically generating years...
Wes
Wes
@mega6382 no plan on working on that thing? it's not that i am waiting on you, but if i know you are working on it, i'll work on it too :B
anyway, i am also writing another article... that's way more complicated though... in fact it's probably several articles
i want to publish at least 2 articles / month in 2019
15:42
@Tiffany I could imagine cataloguing museum artefacts would be a 'reasonable' thing to do. But they are going to need to use a different library for that.
> The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).
@Wes I worked on it a little last weekend, I am planning on working on it further
> 2038
.....fffffuuuuuuuuuuuuuu
@Wes I've just been a bit busy with AWS exam, work, this AoC and weekend is the only free time I get to work on it
@Danack Yeah, thats unix timestamp for you
The Year 2038 problem relates to representing time in many digital systems as the number of seconds passed since 1 January 1970 and storing it as a signed 32-bit binary integer. Such implementations cannot encode times after 03:14:07 UTC on 19 January 2038. Just like the Y2K problem, the Year 2038 problem is caused by insufficient capacity of the chosen storage unit. == Technical cause == The latest time that can be represented in Unix's signed 32-bit integer time format is 03:14:07 UTC on Tuesday, 19 January 2038 (231-1 = 2,147,483,647 seconds after 1 January 1970). Times beyond that will wrap...
Wes
Wes
btw, @Danack i am writing a tool that "generates software tests" but i want to make clear it is not strictly about testing automatically... it mainly tells you what to test, rather than actually executing the tests itself. how would you call these two separate concepts?
@Danack I try to tell myself "It's 20 years from now, surely no one would have a 32-bit system by then... right? ............ Right?"
Wes
Wes
15:46
"generate the tests" sounds ambiguous
@Wes "generates skeleton tests that need to be implemented/filled out"?
oh @MadaraUchiha chat.stackoverflow.com/messages/44758814I forgot to ping you before
@mega6382 You're thinking of [].forEach()
yeah
is there another?
But that's not the equivalent of PHP's foreach, it's the equivalent of PHP's array_walk
The equivalent to PHP's foreach is for..of
Wes
Wes
15:47
generate skeleton tests sounds reasonable actually
for (const item of arr) {
  // do stuff with item
}
It's much more fun
@MadaraUchiha but that still doesn't provide indexes
Wes
Wes
not what i had in mind but works
for (const [key, value] of Array.entries(arr)) {
  // :D
}
Yes, that's a thing.
But you'll find that with numeric arrays, it's fairly rare to need the indices in real code
With objects, there's the much more well-known Object.entries() and Object.keys() to iterate key,value pairs or just keys respectively.
And that's suppose to be fun?
JS/TS are crazy languages
15:51
vOv, PHP mixes the iterable concepts for arrays, associative arrays, and general iterables
JS opted for iterables to only ever be lists (be it realized or not realized), with no context whatsoever
i.e. each .next() always gives you only one value
@MadaraUchiha yeah, isn't that awesome :P
It's a different design decision
Remember that by default, objects are not iterable in JavaScript, by design
Object.keys() is a form of reflection
If you want a dictionary to iterate, the semantic way would be new Map()
It seems more complicated than it has to be, although that's coming from a PHP pov without much knowledge of other languages
@MadaraUchiha But they are also the associative arrays of JS, and they are not even real objects
@mega6382 1. technically, no they aren't. Those are maps.
2. What do you mean by "not real objects"?
(It is true that practically, objects are used as associative arrays, but you get certain performance perks if you don't use them as maps with dynamic keys)
15:56
@MadaraUchiha That they are initiated without using classes, and you can add methods on runtime(not real methods, more like anonymous functions as properties )
@mega6382 You can do this though, I thought?
@mega6382 1. There's no noticeable API difference between an object returned as a literal, and an object returned from a constructor
const foo = {
  x: 42,
  getX() { return this.x; }
}

console.log(foo.getX()); // works as expected
Also, JavaScript has no concept of classes at all
@MadaraUchiha exactly my point
(The class keyword is just syntactic sugar)
that doesn't mean there is no concept of class
in fact, JavaScript has a pretty robust, just not static concept of classes
15:58
@mega6382 JavaScript is every bit as OO as PHP, I have polymorphic dispatch, polymorphism, inheritance
But they can have constructors, isn't that part of the concept of a class?
Even without constructors or classes
@ircmaxell Yes, but those classes are not exposed to you in userland
@MadaraUchiha and foo.bar = function(){ return this.x*2;}; works too
ummm
they are completely exposed
15:59
It's an inner optimization, which is the "perk" I've mentioned when you use objects without dynamic keys.
@MadaraUchiha sure, but you will end up using different patterns, because the languages have different shortcomings
they just are not the same "type" of class as you think of it in PHP

« first day (2972 days earlier)      last day (2201 days later) »