« first day (2970 days earlier)      last day (2204 days later) » 
01:00 - 18:0018:00 - 00:00

18:00
@Machavity I wonder if that statement was a case of bad George Lucas dialogue
@Tiffany are you planning on participating in adventofcode?
@Tiffany I heard that was how Ford ad-libbed the scene and it fit so well they kept it
@mega6382 I've done part one of day one
@Machavity in other words, what George Lucas had was worse (or non-existent)
[nytimes.com/2018/11/25/smarter-living/… Ways to Stay Motivated When You’re in a Rut)
@Machavity Oh no- @Danack is like level 9000 with that beard. I've not ascended to the upper echelon of legendary beard builds yet.
@Tiffany Just a tad.
18:03
@samayo [text here](link here)
\[test\]\(test\)
interesting
how many levels of escaping can I go...
\\[test\\]\\(test\\)
there was no need to escape before, something is wrong with the markup language
@samayo you didn't do it right
@Tiffany that was basically just a linear calculation, iirc. If you move forward with it I would really like it if you commit all your solutions to all the problems on github when it all ends, I would really like to see how others will approach the same problem as me. /cc @MadaraUchiha @kelunik and anyone else who is participating
[Ways to Stay Motivated When You’re in a Rut](https://www.nytimes.com/2018/11/25/smarter-living/4-ways-to-stay-motivate‌​d-when-youre-in-a-rut.html?platform=hootsuite) (this is with using escaping) ... this is without Ways to Stay Motivated When You’re in a Rut
hehe
18:06
@Tiffany I believe he did chat.stackoverflow.com/messages/44734797/history. Oh he added the link first and text 2nd
@mega6382 he did it opposite
ah, my bad ..
@mega6382 I've already deleted my codes so far :(
But I can probably recreate them fairly easily
@mega6382 I'll try... I've been kinda working through them on paper then throwing the code into 3v4l
@MadaraUchiha That would be great, I too will be pushing my scripts to github and will share them here
18:09
@mega6382 E_BILL_LUMBERGH
:P
I am not... but... that's not... ... ...
Office Space should be required watching for anyone who works in an office
I have a coworker who has the same cadence of "Corporate Accounts Payable, Nina speaking, just a moment"
@Tiffany I believe I've watched it, but a long time ago, so I don't really remember anything from it.
I'll surely put it on my watchlist
@mega6382 stop calling me Shirley
(add Airplane! if it isn't there, either)
@Tiffany Yeah, It's already there but I can't seem to find it anywhere, I saw a few clips on youtube and I really wanted to see it
18:16
oh maaan
it's worth buying, if you're able to purchase it there
@Tiffany I don't know where that's originally from but I heard on Boston Legal
it objectively has the highest laughs per minute
@mega6382 I believe Airplane!
The nun speaking jive was brilliant
@Tiffany I'll look again and if I don't find it anywhere , I'll most likely download it from a t----nt site
18:22
#PrayForTheFairing
@Tiffany It feels a little like Dr. strangelove, that was an amazing movie
@mega6382 Strangelove was cold war satire. Airplane was airplane disaster satire
@Machavity I meant the setup not the story
18:30
@Wes :3
Wes
Wes
looks like a cat from my neighborhood
looks like a common domestic cat
domestic cats are essentially wild cats that domesticated themselves for more food and cuddles
and belly rubs
Wes
Wes
cats don't like belly rubs, i learned the other day
18:35
@Wes only when it's their choice
you have to be gentle when giving belly rubs to a cat
it is sensitive, and they will turn into a fuzzy, painful trap if you're not gentle
youtube.com/watch?v=53Jb7Y6eUUU history of domestic cats
Adding my solutions here: github.com/MadaraUchiha/advent-of-code-2018-solutions @mega6382 @Tiffany
@MadaraUchiha Thank you very much, and mine are here github.com/mega6382/aoc-solutions I've only added day 3 yet, I'll add day1 and 2 when I get home.
@Tiffany Don't cheat :P <3
can't promise... though if I get stuck, I'll probably give up and look at his code, but not submit the answers
@MadaraUchiha for part 1 of day 1, I just posted it in devtools console and instantly got an answer :P
@samayo not in general. And if you do, try increasing field-of-view
@Tiffany Yeah, I just copied it too
@Tiffany Ah, the GFL license
@mega6382 😃 Since I'm going with TypeScript, I can't do it directly. But the TypeScript playground will do.
@Machavity WTFPL
Hey guys. I'd like to use a function to generate a random color in a .yml config file.

What are my options ?
19:04
@MadaraUchiha makes sense, anyway, instead of splitting the string why don't you store them as an array in the first place?
@Baldráni generate a random number between 1 and 255 for rgb?
...?
your question isn't very good
!!> echo rand(1,255);
!!restart
@mega6382 he's not in the room
@Jeeves come baaaack
19:07
I blame @PeeHaa
I'm confuse, I can use function in .yml file ?
I blame @DaveRandom
@Baldráni No, I was just trying to be funny
@Baldráni doubt it
yaml is a configuration language
you can probably define configuring a function for a language
@Baldráni most likely you can, but then you'll have to write a parser for it yourself
19:09
ways to improve it: explain what you've tried so far, any issues you've encountered, error messages, be specific
  design:
    brand_color: (rand(1,255), rand(1,255), rand(1,255))
    menu:
      - { label: Dashboard, icon: dashboard, route: admin_dashboard, default: true }
      - { entity: 'User', icon: 'users', label: 'Users' }
This coul me an exemple of what I want to achieve
okay... so what's the problem?
Except the correct output is of the form #ft453
Well

brand_color: (rand(1,255), rand(1,255), rand(1,255))
This is not interpret
@Baldráni Well now you just have to use php's eval(jk, please don't) and you are all set.
:(
Is there even an option for what I want to achieve
19:11
why do you want to do it?
Or shall I take the problem the other way arround and just override the method which is using this data
Why not :)
feature creep
This is part of learning
Trying things that seems strange
if it's to learn how to do something: sure... but don't make a habit of adding features to something when the specifications don't request it
3v4l should have a way of adding composer based dependencies and pecl based dependencies, i think
19:14
@Tiffany why would you assume it's the case ?
@Baldráni because what you're wanting to do -- generate a random color in a yaml file -- is pretty niche
and yaml hardly seems like the language to do that in
19:27
One of the best tricks I can't believe I didn't know all this time: mv foo.{txt,js} is equivalent to mv foo.txt foo.js, similarly mv {dir1,dir2}/file.js is equivalent to mv dir1/file.js dir2/file.js
19:41
@MadaraUchiha Can you use it in the destination, simlar to a regex match? ei. mv dir1/{file1,file2}.js dir2/$1.js
I would try but I don't have terminal open right now
@Alesana How would that work? mv only accepts two parameters
Oh, rereading what you wrote, I way misunderstood that
I thought it was like a glob match
@MadaraUchiha Awesome, I have always thought that there should be something like this, glad to know that there is
i have this query "INSERT INTO table (name, count, lot) VALUES (:name, :count, :lot)" I want to everytime i execute this query it increment the column count to +1
how can i do it?
19:58
@515948453225 I would suggest a loop to generate the values, and then inserting it all in one go. This might help guide you in the right direction
@515948453225 your entire premise is wrong
@tereško what you mean?
that "count" should not be stored with an entry
For my objective i need to store it on my table
20:05
@LeviMorrison 'correctness_proved, error_proved, correctness_unproved. Except they are too easy to misread. maybe error_correctness_unproved, to make it both easier to distinguish, and more neutral.
your "objective" is wrong, and since you seem unable to explain what you are actually doing, off top the ignore list you go
@Danack I went with this:
@MadaraUchiha Nice, I just started participating in that
typedef enum {
  INHERITANCE_INDETERMINANT = -1,
  INHERITANCE_ERROR = 0,
  INHERITANCE_SUCCESS = 1,
} _inheritance_status;
I don't need to expalin what i'm doing, i just made a question
20:08
@515948453225 apropros of nothing, if you click someone's handle/name, you can put them on ignore. This is useful say when you ask a reasonably reasonable question, and they try to just shit on you instead of answering the questions.
@515948453225 on duplicate key update is probably what you are looking for.
@Danack Counting like this in an SQL database where you can query SELECT COUNT is silly to begin with though.
I tend to agree with @tereško on this one. Seems like a classic XY to me.
@MadaraUchiha "silly" - other than you don't like it, what's the problem with doing on update increment?
@Danack We're missing context here. Why do you need an incrementing column? If it's an ID, use an auto-incrementing type. If it's for actually counting the number of rows you have under certain circumstances, do it with SELECT. If it's too slow, add indices, or use materialized views.
The use-case for counting columns in a rational database is very slim, and seeing it is usually an indicative of either a misunderstanding of the context, or a misunderstanding of the tools.
@MadaraUchiha No. what is wrong with doing it with on update increment? if that works, it works. You need to give a better reason than "it's silly" when you say don't do something.
@Danack with the current context, using an insert/update query seems harder to do than what is already available within the product itself
20:17
@Tiffany easier to write the read query...
@Danack There are plenty of reasons why not to do it, primarily, it's data you can easily compute, therefore it's not data you should store.
"be lazy"
If this were a document store like MongoDB, where count queries are expensive, doubly so when you need a JOIN, then it makes sense.
here is the magic question: what happens when he runs that "insert loop" the second time ... what count is used then ... and what happens if you delete a row
But this isn't, we're talking about a relational database, where you have a rich querying language, indices, views, and a whole bunch of tools to make querying easy and powerful.
And it's not idiomatic to store meta data like this when you can easily query for it.
20:18
@MadaraUchiha we don't know if it is...
24 mins ago, by 515948453225
i have this query "INSERT INTO table (name, count, lot) VALUES (:name, :count, :lot)" I want to everytime i execute this query it increment the column count to +1
one assumes it is a rational database
Yes, we do.
relational*
😛 wasn't sure if that's what you meant, but rational works just as well
I don't want an irrational database
and he's gone...
oh well, I guess that homework will be marked as F
20:22
BTW, "It's homework" is a perfectly valid context for this question, one where I would not advise to use a SELECT COUNT instead, since obviously that's not what the problem universe is about.
it most likely wasn't count but PK
@515948453225 Long story short is instead of inserting the count instead when you SELECT then you want to add a virtual column like this...SELECT name, lot (SELECT COUNT(*) FROM Table) AS count FROM Table.
@tereško He named it count though
No, I actually think I misread their question.
@Alesana think of how stupid an average person is - 50% of humans are dumber
20:24
They want to insert to the table, and magically have the count increase whenever the name,lot combo is the same, instead of adding a new row
I have a database named cascade ... I didn't know that it was reserved word in mysql until trying to create a database on another server, following the same instructions I had
@tereško lol
Which I would still use a SELECT COUNT for.
If he comes back I'll give him a query if that's the case @MadaraUchiha.
I didn't interpret it that way though. I thought he just wanted a count of the rows.
20:27
Can't say that I care enough about it.
I'm in the lead for the PHP room leaderboard though 😃
What is Advent of Code?
Keep seeing it all over.
I'm #4!
@Allenph you know those advent calendar things?
it's like that, but with coding puzzles
yesterday, by Madara Uchiha
Room 11's Advent of Code private leaderboard password: 114365-5d3b257b
@Allenph the actual problem is probably a parking-lot system, and the OP had no idea what 3NF is
hence:
28 mins ago, by tereško
@515948453225 your entire premise is wrong
@Tiffany No. But I get what it is now. I Googled.
@Tiffany yeah cause there are only 3 other participants in that leaderboard :p <3
@Tiffany Yeah. I found that. I shouldn't have asked. I was being lazy.
@mega6382 Oh I would love to be #5 on a leaderboard
How do I join though?
Oh, I found it
@Alesana 114365-5d3b257b
[Join]
@Tiffany uh oh
20:31
2 mins ago, by Madara Uchiha
yesterday, by Madara Uchiha
Room 11's Advent of Code private leaderboard password: 114365-5d3b257b
@Alesana ?
@tereško I didn't know what this was until you said that.
@Alesana what happened?
But I followed it already.
lol, I'm #5 now
20:32
You never should have showed it to me
@Alesana I sent it to you via messenger
the leaderboard
Man...where the crap is Dave? I want to exploit him so I can learn internals and be very lazy.
@Tiffany Oh yeah! I didn't realize that was what that was
what's the 11 next to my silver star?
20:35
No idea
@tereško Do you think getting an Email (or SMS, depends on the registration kind) contains "you've received n comment/answer for you question after your last seen being online on our website, please take a look at them" would be annoying or useful?
I too was wondering just that, I believe it has something to do with who competes the task first
Yup, iirc the first one to get a star gets 100 points for it, the second one gets 99, and so on. It doesn't seem fair if you're not up at 12am though, but oh well.
I don't think there's a better way to do it
@Shafizadeh it would depend on how you implement the rules for when notification gets sent. For example, if user was online 20 min ago and you spam said user about each answer, that would enrage people. The way you should use those notifications is for ensuring that users return to the site (let's say user has not been online for couple days, gets an answer on the question - you send out a message an hour later).
There also would need to be good options to opt-out of such feature (in account settings)
20:41
Not sure what you mean by "opt-out", but I got what you said .. ok thx
hey, I need some quick answer - I'm creating a standalone php file that fetches information from an opencart database. It's opencart 2.3, and the image that si saved in the db does not work. Needs to be resized or use the core which I unfortunately can't use..
anyone had this problem and maybe know a good solution?
@Alesana i am up at 12am and its 2 am right now :p
But their timing is gmt based
Oh why did I think it was -5
Wait no it is
Unfortunately that's my time zone :/
Usually I'm up then, but in those cases I'm usually not up to completing a puzzle. Probably will tonight anyways but still
btw @tereško, as a technical question, do you remember what design-pattern did you use for our project? (I'm talking about that dead branch). singletone? Factory? Strategy pattern?
@Alesana The actual score is really less important than the number of stars one have
20:48
@Allenph This would not be a row count, is just a "count" i will use just one row for it, and i was wrong i will not INSERT into ... +1 i will UPDATE ... +1
I'm in UTC+2 so I most likely have an unfair advantage over most of the room.
@515948453225 You're doing it wrong for sure. If you can clearly explain what problem you're trying to solve with the code/query and what you're doing in general I can help.
fixed it by hardcoding the theme config width and height..
probably not the best solution :D
@PaaPs future reference "does not work" is not descriptive of the problem you're having.
deos not work - does not load. As opencart uses a function that converts files in a cache folder and only retrives those files the "stock"file path does not result in an image
20:51
@Shafizadeh I do not write "in patterns". The design patterns are what emerges, if you apply S.O.L.I.D. principles to the codebase. The general architectural patterns that I used could be described as "simplified mvc" (with no separation in UI layer, but with fleshed out model layer).
adding /image/cache/ . $resultingImagePath . "-widthxheight.jpg";(I did a switch for jpg, jpeg and png) did result in a working image url
@tereško Is that code you're talking about something I can read or something he wants secret?
I'd like to see how you did your views.
@tereško I see ..
@Allenph there are no views in that codebase (it's the "no separation in UI layer part")
20:54
Yeah. You edited after I asked.
21:05
My new whistling tea kettle has been delivered! Can't wait to get home and use it... for making coffee!
@StatikStasis I thought you wanted it for tea
@StatikStasis For coffee?
2 days ago, by Statik Stasis
@Allenph I want to make tea in a teapot. =)
I will. but it's mainly for boiling water for coffee for my new french press coffee maker.
@MadaraUchiha Good point. I'm gunnu try out today's one in a minute. The first couple were fun
21:06
@StatikStasis Those things are the bomb.
@Alesana upload your solution to github
@Tiffany You should be a court reporter. You never miss a thing! =P
I want to use it for tea with Acai berries. I was in the mood for tea at the time I wrote that but knew I would be using it for coffee mainly.
@StatikStasis only cause it's text, I'd be bad as a court reported cause I'd have to listen
@Tiffany Yeah? I didn't save them but I redo it since I remember them
@Allenph Yeah- I was skeptical of the difference - but my wife wanted it. First cup- LOVE IT!
21:08
3 hours ago, by mega6382
@Tiffany that was basically just a linear calculation, iirc. If you move forward with it I would really like it if you commit all your solutions to all the problems on github when it all ends, I would really like to see how others will approach the same problem as me. /cc @MadaraUchiha @kelunik and anyone else who is participating
stackoverflow.com/… a lot of these probably need to be closed
@StatikStasis It's a lot of effort though. After a while I just went back.
@Tiffany LOL! You know there is a room for that. =P
@Allenph Yeah- it does take a little more work. Mainly the cleaning afterward. We'll see how long it lasts.
I was expecting them to be really difficult, but I love that they're programming language agnostic and anyone can do them, you just have to be imaginative (at least with the first two and what I'm reading about the third)
@Alesana I guess I'm not imaginative
I'm a little stumped on the second one. I think I have an idea but haven't thought it all the way through
21:10
@Alesana Day3's is a bit difficult
and I'm being lazy
@mega6382 Part 1? I have a solution in my head but maybe it won't work as planned
all I did for part one of day one is use array_sum in 3v4l
I've never done it. I'll have to check it out later if I have time.
I have to run an errand then I'll try it out
21:11
@Alesana both parts to some extent, but its quite fun too
would love to see how you'll solve it
Also you always use a prefix in your commits, like "Fixed", "Improved", "Minor". Is that a specific standard? Is there any list of all those words? @tereško
no, its not a standard
I just write it that way, because makes easier to filter/search commits
Does anyone know about a PHP based dependency management utility (but not composer)?
21:26
@hakre What kind of dependencies?
@Allenph PHP libraries. Basically directoriy based, just third-party code to be copied over (and version managed) into a larger project.
What requirements do you have that Composer does not fulfill?
@MadaraUchiha I can see by comparing your solutions to mine that php's builtin functions provided me a great bit of advantage.
Should be able to deal w/ standard packages (tar.gz) but also git repositories and allow standard normalization tasks (whitespace, line endings, unix file modes, subtrees) and easy review (differences, version differences) and if possible patchsets (e.g. re-apply older changes to upstream on new upstream versions).
@mega6382 I could have probably used lodash for most of the stdlib stuff
But I didn't feel like it :D
Like the array flatten, string difference, countBy, etc.
21:30
@hakre I was going to suggest one but it doesn't do all of that
@AllenJB Composer does not offer diffs for review nor is able to import into an existing tree.
I don't think
@Tiffany must not do all. Right now I've got shell scripts, basically in the end one per package.
So I thought before collecting more and more my own I wanted to look for existing stuff.
Can't imagine these problems are overall specific.
I don't even remember the name of it
blargh
it was some play on the "f" sound with "ph" like phoenix or something
do you know anything labeling for that one, like "library manager" or something?
21:34
@MadaraUchiha hmmm, I think using linq and C# probably would've made this much more easier.
@mega6382 Depends on which of them, but I would love to see a C# LINQesque solution.
@hakre annoying thing is I can't search php package manager -composer because I distinctly remember the front page of the package manager stating "why you should use this package manager instead of composer" or some variation thereof. But it only managed a handful of packages, maybe a dozen at most.
@hakre I would call it a package manager.
Seems to me all that stuff you mentioned can be done by using Composer with other tools, no?
I mean other than the tar stuff. Why do you want that?
@Allenph Point in case is that the actual sources are shipped that way. Which is, sources, which is to be managed for dependencies. Additionally the target directory for each package needs to be specified (and the package format might vary per each dependency) which is anything but not possible w/ composer. Composer requires the composer.json to be available for each dependency. If you need to deal with dependencies from a time where they have not been ported to composer, this is an issue.
@hakre That sounds like something that would be hard to standardize and belongs in some kind of bash script.
Are you building some kind of CMS?
21:45
@Allenph Bash scripts I use so far, lately a bit supported w/ a JSON formatted file that defines the libraries. And no, this has nothing to do w/ CMS, it's just a bunch of PHP libraries copied into an application git repository.
@hakre What are you building that this functionality is neccesary?
The application is just a larger PHP app, not public, and the libs had been copied into the tree manually in the past. Work of today is to decipher which versions are truly from upstream (at those dates), if there are any changes, and if yes, if these changes are necessary.
I haven't received a prescription for a medication... I called last week asking them to mail it to me because I was having car trouble and couldn't pick it up at the time... entire week, nothing in the mail. I call today, "oh, it's up at the front for you to pick up..." ... -_-
in my head: "THANKS!"
@Tiffany At least a way to solve it ^^
@hakre Kind of seems like a flawed design in all the cases I can think of, but I don't know what you're doing. I would be surprised if you didn't have to write something custom for this.
What you're asking for reminds me a lot of plugins in WordPress or whatever Drupal has.
21:50
@Allenph Well you could call it a flawed design, but rest assured, if you would know about how many years the dependencies are outdated, you won't philosophize about design flaws any longer. It's just a mess to maintain and I'm looking forward for some (existing) tooling that can help along the road.
@hakre I specifically asked them to mail it to me because I was having car trouble and couldn't pick it up. ... I spent the entire week on caffeine. Granted, yes, I should've called like around Thursday to figure out where the fuck it was, but my brain is not consistent without medication.
god, I could've fucking picked it up when I was at therapy on Thursday ... -_-
I never said it was a flawed design, I just said in all the cases I can think of. It may be a totally valid design, I just don't get why you would do that is all @hakre.
@Tiffany Maybe a friend can pick it up for you?
@hakre friend? can I download that?
(couldn't resist)
I could've asked my sister I suppose, but my car was working by Wednesday, and I thought they had mailed it out, so I was waiting to receive it in the mail.
@Tiffany well then maybe you find time to catch it tomorrow.
21:54
I'll get it tonight
I found one that seems to have a similar problem to you @hakre but it's specifically for Drupal. :p
I leave for an appointment shortly, and I'll just pick it up, since they're on the way to the other doctor's office
@Allenph Well, if an app lacks of dependency management in a controlled manner, I would consider the overall design flawed as well. What I just meant is, that it's over the point of being a design flaw or not, for sure there are design flaws, I'm just trying to put away some of the pressure those design flaws produce.
In the end this migrates all to composer. I just would like to have some support for the pre-composer phase (and I'm also not always confident the team is actually able to deal with composer, there is so much not knowing what I'm doing but it's all sooo awesome, best practice and what not)
21:58
Well, you can provide a different composer.json I think. You could run your "pre composer" composer then run your "real" composer.
Isn't it just as hard to teach Composer as some other library?
The hard thing to teach is dependency management. How to use a third party library in a project, how to do the life-cycle management, how to choose a library, how to wrap it so that the important code is shielded from it and so on and so forth.
If yet it was not possible to maintain a dependency without composer, why should composer make a difference here?
@hakre Huh?
What those links are saying is that you can integrate some custom installation script and use it with Composer.
That's slightly better than a bunch of bash scripts.
@Allenph Yes you can as long as the package is a composer package, either a genuine one, or one supported by the installers extension.
And while we're talking about the tooling and the depth of integration here: As it is not possible to manage Docker containers to run differently than under root, for sure all scripts and extension are disabled when invoking container non-interactively on remote systems to support the integration and build of the application.
For good reason.
Don't get exactly what you're saying there.
If that's the case and you're going to migrate to Composer I would just write some shell scripts and call it good.
@Allenph I already have them. I'm just lazy so looking around to lay back on something I don't need to maintain myself alone.
22:07
If you're saying you shouldn't run shell scripts in containers then I am in trouble because I do that everywhere.
@hakre Shouldn't be more trouble than maintaining a Gulp file should it?
@Allenph was not talking about shell scripts, but the --no-script option of composer, see there for details: getcomposer.org/doc/faqs/…
@Allenph I don't know Gulp and it's perhaps sane that I keep it that way.
@Allenph The shell scripts are actually reviewed if you write them your own, so this is different than remote code execution.
The Trashmen seem to be retarded youtube.com/watch?v=9Gc4QTqslN4 What is wrong with that guy?
Do PoE devices negotiate the voltage to be delivered? I'm looking at a camera that says it uses 12V max, but afaik PoE is 48V.
0
Q: Laravel seems to be caching errors?

BeefoSo I just had an error on laravel. Call to a member function getName() on null I was running this code view()->composer('*', function ($view) { $view->with('route_name', ucfirst(explode(".", \Route::current()->getName())[1])); }); This code only broke in the first place on one of my ...

22:25
@hakre I see what you mean now.
@Allenph what many don't know in a container enviroment, users are not in the container, they are shared. so root in the container is root outside the container and vice/versa.
@hakre not sure if it would solve your issue, but you could add a classmap to your composer to load classes from files even if they don't follow any psr
@pmmaga Oh we already use composer for the autoloader which is classmap based as you suggest.
I've just locked down adding production dependencies.
we commit vendor/ :D
@pmmaga fine, too. And often very valid.
This also trains the teammates to actually do version pinning on the dependencies.
And it's not so hard to actually loose a production dependency only b/c someone decided to remove a git repository from Github somewhere out there.
22:37
@hakre The chaos recently with npm has me wondering about the stability and vulnerabilities of composer.
@Trowski Composer is not NPM and doing things a bit better here (which is also some thing cultural in the community), but if you don't keep copies of vendor/ revisions (e.g. when not putting int under git and not having an asset creation process for continuous builds), you can actually looose things.
From my todo-list: A composer plugin to explicitly whitelist vendors
I only experienced it once personally. Not even directly personally, but I passed over a job to a colleague and one and a half year later one of the dependencies was actually deleted upstream and then missing. So he contacted me and I tried to help digging up some caches and what not. Don't remember if in the end we were able to recover, at least not fully.
@pmmaga It's not about the vendors. You can't know of today which vendor will always behave in your interest. Better is you keep mirrors of all the sources. It's pretty manageable as of today.
@hakre No, but it gives you some predictability. (or a false sense of it in which case it would be actually harmful)
@hakre I don't put dependencies under git, but I also never run composer update on production. That's probably obvious to many, but I'm willing to bet that happens often.
22:44
For the current project what I plan to do is to keep revisions via the composer.lock file which should speed up packaging as it would spare redundant builds. Basically hashing the file and keeping the vendor folder under this hash.
But yeah, in the end of the day, nothing like actually reviewing the changes when you update some dependency. If you only do it when you need it it's also manageable
If you don't review, it's just close the eyes and pray.
If you think it's too much work to do now, keep all revisions so that you're able to review later.
npm's case is more sneaky because they serve the minified version
If you don't do anything at all, it's hard to help.
@pmmaga which makes no sense at all for a scripting language. Imagine for PHP you would only provide phar files with compression.
I mean it's good to provide them, but you should have reproducible builds for them so that it's easy for the user to check and verify the sources.
Composer for example has reproducible phar builds.
@hakre Meh.. To avoid this kind of stuff I'd say each user should deal with their own minification.
22:50
@pmmaga it should run in your own build then, also to create the map files so that you can actually develop with it.
and also to pre-compress so that the webserver does not need to compress on delivery.
But yeah, the global energy cost of npm packages not being minified may be measurable :P
@pmmaga Yes espeically as I heard npm is big in the energy intensive crypto currency business.
:D
hehe
Alright I'm gunnu try that puzzle now
23:19
If I put my answer on the github, should it also translate the original data into an array? I use a regex replacement with Sublime to get it into an array, but I can do it with PHP for the sake of posting the answer.
@Alesana I am doing the same thing using the data as an array instead of writing a function for converting it into an array
Nice, but even you're converting it somewhat into an array :P
At least parsing the height, width, etc..
I just used a regex search and replace to get it to look like..
  [
      'id' => 1346,
      'left' => 433,
      'top' => 843,
      'width' => 20,
      'height' => 20
  ],
  [
      'id' => 1347,
      'left' => 796,
      'top' => 526,
      'width' => 28,
      'height' => 18
  ],
@Alesana oh, well you should definitely write the functionality for that, I thought you meant for separating the inputs
Good call
23:45
I really like the puzzles so far
Do they get a lot harder?
Hopefully
> The difficulty and subject matter varies throughout each event. Very generally, the puzzles get more difficult over time, but your specific skillset will make each puzzle significantly easier or harder for you than someone else.
01:00 - 18:0018:00 - 00:00

« first day (2970 days earlier)      last day (2204 days later) »