« first day (2473 days earlier)      last day (2700 days later) » 

17:00
Well I got curious .. what does it mean?
I know one TRIGGER which is used in databases
But I guess this trigger is something else
@Shafizadeh Triggered is just a term used when something annoys you, it triggers you, but it's got somewhat meme-esque roots now.
cringe intensifies
is it cleaner to add two top level routes to FastRoute, so that each of those is redirected to a module, which in turn loads a subset of routes in another dispatcher that then executes the handler or ask each modules for its set or routes and load everything at once?
@FélixGagnon-Grenier yes.
> add two top level routes to FastRoute, so that each of those is redirected to a module,
I strongly prefer multiple levels of dispatch for anything complicated, rather than LOADING ALL THE THINGS.
"Triggering" is a real thing, but it's been overused to the point where it's meaningless to use it for its original purpose anymore.
You can combine that with Auryn, by not even initialising how to load admin resources for non-admin modules.
D:\Projects\amp-process\examples>php hash-many.php
Hashing 8 passwords synchronously took 0.52190709114075 seconds
Hashing 8 passwords asynchronously took 0.1936571598053 seconds
Async took 37.105677062562% of the time that sync took
@PeeHaa ^
@Sara I was about to say that
17:10
@DaveRandom Will take a look and comment later tonight.
@Danack do you mean like, waiting to initialise the injector until the handler is invoked: each handler deciding what injector to use, or some kind of route analysis, or?
hrrmmmm wait. simply adding definitions to the received injector would seem proper
@DaveRandom Wow… surprised with that few passwords to see that much improvement.
@DaveRandom What's the default cost again? 10?
// big array of basic stuff that is standard across all of the application
$site_wide_settings = [...];
$injector->add_settings($site_wide_settings);
$module = $dispatcher->find_which_goshdarn_module_we_are_hitting();
$injector->add_settings($module->getInjectionParams());
i.e. Initialising in steps.
@Trowski well I specifically chose 8 because that's how many cores I have
17:14
@PeeHaa apprarently yes
I like the idea of having trigger warnings for certain things that people know can be triggering. Maybe I should make a program that detects certain words in the DOM and adds trigger warnings to them
@Alesana I'd be happier with this whole "please don't trigger me" stuff, if people asking for it realized that saying "women don't owe nothing to men, so don't expect our smile or anything" goes along with "neither do men owe anything to women". I owe nothing to triggerable people, other human beings or apache attack helicopters, and they owe nothing to me, but I have yet to meet a single one who has the tiniest bit of respect for me.
Why should I lift a finger to respect, let alone change how I act for, such people? Why should I go along with their demands?
K - enough of off-topic stuff please.
17:26
@FélixGagnon-Grenier I think that we're talking about two different things. Different people have different triggers depending on their mental illness. The most common mental illness that has triggers associated with it is PTSD, but suicidal thoughts, anorexia, and other things alike can also be triggered.
There is nothing wrong with someone saying something that is triggering, but it is polite to add a warning to common triggers as to not trigger someone with an actual mental illness. Of course, it's not reasonable to say that everyone should know what can be triggering or not, which is why I am thinking of a program that would detect triggers.
Yes, you are right, I believe I forked to an orthogonal subject.
@kelunik So here's how that security token system works: PHP starts the wrapper process, gets the PID of the wrapper process that it just started from proc_get_status(). It sends TOKEN_SIZE * 6 random bytes to the wrapper's stdin. The wrapper then creates 3 sockets, and sends a handshake packet using it's own PID as an identifier, and TOKEN_SIZE bytes from the token byte buffer starting at index stream_id * TOKEN_SIZE (so stdin uses the first block, stdout the next block etc)
Ansiballs -_-
I'm getting "ERROR: This command can only be used by root." but I am running the playbook as "become: true" as well as in the role.
The PID is sends is just an identifier, it's not part of the token, it only identifies which pending process struct the server should use to verify the token
the server then sends TOKEN_SIZE bytes back in the handshake ack, taken from index (TOKEN_SIZE * 3) + (stream_id * TOKEN_SIZE)
so in other words the server tokens are the blocks at the other end of the string
The process wrapper verifies this token as well, so that both ends are confident that they are talking to the other end
@FélixGagnon-Grenier As far as your point goes I'm not sure I fully understand it but I think you're talking about the people that misuse the term "triggered" as @Sara was talking about :P
17:34
thus if any one of those steps fails at either end, that party rejects it
@DaveRandom The child doesn't have to know that.
Don't think I have ever entered a iirc chat looking for help and actually got it.
evenin
@DaveRandom Yes, and it shouldn't do that. It should just ignore non-matching security tokens, because the right token might just come afterwards if another party than the child process connects.
@kelunik Well it does, what if I start a process that goes and retrieves some private data and passes back via stdout, but some malicious party watches for the process starting and detaches my child, kills me, and binds to my server socket
17:37
> kills me
^ that.
he ded.
@kelunik but it indicates malicious intent. Personally if something is trying to do that, I'd rather have it explode and give me a message that tells me that something suspicious is going on so it was stopped;
@DaveRandom It's a DoS vector when bailing out.
well, I just ended a sentence with a semi-colon, I should probably go do something else
11
ugh I actually do have to go @kelunik, will chat later/tomorrow
17:45
we all know, Felix is the most popular one here chat.stackoverflow.com/transcript/11?m=32080777#32080777
user6845426
@PeeHaa were you referring to Python when you suggested Numpy?
Hello, where can I submit my code so someone can see if it is good and efficient or not?
@dipper Yes
stackoverflow?
user6845426
17:54
I have to use PHP
Sorry for you :)
@Klajdi codereview probably
thanks
user6845426
why lol?
user6845426
Do you not think Redis is a good use case?
17:56
How is redis related to doing calculations?
Anonymous
1 more..
oh... I haven't starred that message yet...
I mean. How did you come up with redis?
user6845426
Not using it to do the calculation, using it as a key store so I can read and write to it. I thought that would be more efficient than storing the values in sql and using queries
user6845426
Or am I looking at this wrong?
Anonymous
17:59
@Kaori so you're the hater
@bwoebi ping
It could be. t all depends on what and how you are doing it
user6845426
I need to research to find out the 'best' way to achieve what I want
yeap
user6845426
Thanks for your help anyway :)
18:03
posted on July 24, 2017 by kelunik

Initial release.

Is it bad practice to check for false condition ; for example if(!$var){ .. }
@Samuel It's not imo, assuming you understand php's type juggling
\o/
o|o
Am I doing this right?
@PeeHaa yes indeed I do... I just saw someone recommending to use negative conditions.. I usually have a mixed based on the project before me...
@Samuel mostly, people (e.g. me) hate working out the logic especially when there's a lot of && || and ! involved
hola Wes, long time no see
18:18
...
:|
strftime %P not working on Alpine Linux – #74982
I cannot sleep .. any idea?
I usually doze off, listening to some OSTs...
@WesStark that's true indeed, thank dude
18:25
When dealing with times (for statistics in this case) should I convert times from UTC to the user's timezone server-side or client-side?
Or does it just not matter? lol
o/
@Samuel consider writing $foo === false instead of !$foo. i am stupid and i actually find that more readable
foo is false reads better than not foo
@Alesana You don't know the user's timezone serverside
18:27
I ate too much -_-
@PeeHaa But... I do
No you don't
How would you know it?
And I need to, so if they request statistics for 7/25 I know when their 7/25 is
It is in a database
I'm sorry it's user-specific not visitor-specific
They set it
18:28
ah
I should have specified that lol
night all
@Alesana In that case only the server side makes sense. Because that is what makes the daily report
evening, bitches
Yo biatch o/
18:33
@PeeHaa Yeah, I was thinking of having the server just convert 00:00:00 from UTC to their timezone, then send all the times in UTC, then have JS convert it back, but now thinking about it that wouldn't make sense
evenin Joe
Evening ^^
o/
well, I just ended a sentence with a semi-colon, I should probably go do something else
19:06
ah, this world gizmodo.com/…
> We see you're using an ad blocker.
We know ads aren't great, but we need the money so we can keep bringing you great blogs. Please consider whitelisting us.
Awwwwwww
lol though
Suck up that data
they are awful
I guess I'm glad I never got a roomba? Though I do wish I had a robot vacuum... except for when my cats puke on the floor.
19:22
yo!
is there some kind of HTML boilerplate site that I can just copy and paste what needs to go at the top of every HTML5 page?
@ircmaxell \o
@Tiffany Define "need"
@ircmaxell hola
@Tiffany Technically it only needs 5 lines or so
like language, charset, so on
I can't ever remember
@PeeHaa that works
19:25
\o/
let me guess, you just googled it
and I feel like a dolt
!!urban dolt
[ dolt ] A person who is stupid and entirely tedious at the same time. Many times they are oblivious to their own mental incapacity.
I don't think I see you as:
> A mental retard who is clueless not only about current events, but also has the IQ level of a rock.
:P
Far from it
You're at least a tree.
19:43
trees are very smart. like, judy arrays
I could be an ent. :O
a weirwood
damn i'm obsessed with game of thrones. i need an intervention :B
hey felix
yesterday I've had the second fastest loss of boner since Val died in season 6
(or whoever that Wildling chick was, who got eaten by baby wights)
unrelatingly, the docker-compose now features a nginx server, with a react client, and a php api serving from a postgresql db. \o/
19:49
no spoilers
season 6 stuff doesn't count as spoilers, right?

A Game of Threads

Warning: Game of Thrones S7 SPOILERS
@FélixGagnon-Grenier woot
I'm not up to season six yet :P ... I'm still mucking about in like season three?
probably going to resubscribe to HBO Go next week when I'm bored out of my gourd
please do, it's awesome :)
bug: I tried using array_change_key_case on range(0, 9) and it did not return an array with lower case numbers as expected.
19:59
@FélixGagnon-Grenier this I don't dispute. I just get worn out after a while of binging drama shows. I don't know how to explain it.
no need, it's understandable :)
@Dereleased how on earth array_change_key_case is even a function
also what the hell is lowercase numbers? :B
it's for discreet numbers
thyere was a tweet about something like that last week
@FélixGagnon-Grenier I love the idea of discreet numbers. These are numbers you can really trust.
something along the lines of "God: ask question Me: Why no uppercase numbers? God: wat Me: I want to write loud numbers"
20:03
@FélixGagnon-Grenier Use(d) Ansible? Packer? Etc...
I know all these letters :)
@Fabor oh, for docker you mean?
no, I don't know of these :)
Humbug. :P
Is editing an answer to change the capitalization/casing of a built in PHP method a "trivial edit"?
20:09
editing an answer so that code actually works is normally ok (typos)
changing code so that the solution is more like what you like is not
... I edit questions or answers if the English is bad.
I edit your posts. And the posts. All the posts.
gaaaaaaaaaaah it was fixed, carry on
like I am agree
Well the code works if you use the wrong case but for some reason I thought that PHP methods were case-sensitive
I never thought about it until now, but PHP has a variety of different cases for functions. Not sure if there are any camelCase functions, but there are definitely snake_case and HungarianCase functions.
20:12
i am desperate for a coffee. i don't have the strength to go get it. i would have the strength if i had a coffee
Getting tiring now. Can't you just do as your told Mr. Ansi-pain-in-my-balls script.
In this event they use $dateTime->setTimeZone(...); but the actual method is cased such as $dateTime->setTimezone(...);
@Fabor in a whiny voice "Noooo! And you can't make me!"
@Tiffany Yeah it's odd :P
@Alesana there are camel case functions...
20:13
the coffee paradox
@Alesana no, they are not.
@Tiffany :P I guess so
setTimeZone is the same as setTimezone, or SeTtIMEzONe
I need to learn how to push code from dev to prod
20:15
Ah okay, that makes sense. I will avoid editing the answer in that case
@Tiffany I use git checkout / git merge origin/master or git checkout 0.1.3
instead of copying a file from one window over to the other window...
> in that case
no pun intended
having direct access to web servers is nice
20:15
Well, hopefully you're at least using sFTP
@Tiffany oh, right, maybe you can't do that...
@FélixGagnon-Grenier I probably could, but I think it might be more work than copying the files from one window to the other. I have UNC path shortcuts to both servers. I think it depends on how many files I need to copy. In this case, there was only one file.
however, using git is the correct way
copying file is so 2009 ;)
So many of these "tools" just read like versions of each other.
"an open source tool for creating identical machine images for multiple platforms from a single source configuration."
"provides hundreds of plugins to support building, deploying and automating any project."
"the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery."
"enables users to create and configure lightweight, reproducible, and portable development environments."
"is a tool for building, changing, and combining infrastructure safely and efficiently."
Each line is a different tool. Yet they can all be used together.
20:31
Marketing
I wonder if I can rewrite my website's router to use FastRoute instead of what it's currently doing, which is annoying. If a controller doesn't exist of it, it doesn't create a path.
but there are a few cases where I need to display a webpage and it to not have a controller because it's either just a HTML page or a very simple PHP page
You can
I'm just scared of breaking shit that's already working, and being unsure of how to fix it.
In the name of improvement and knowledge it's okay.
Well register on bitbucket and start using git.
I'm not sure if I can put this code out on the interwebs since we bought it with a contract
to the best of my knowledge, it's closed-source
bitbucket does free private repos
20:37
already use beanstalk for central repo though, now that I think about it
I need to keep practicing with this code and improving how to extend or modify it
as @PeeHaa said, bitbucket has free private repos
already have a private repo with beanstalk, we pay for it
@Tiffany that sounds limitating. I've sucessfully integrated fast-route to existing wildly crappy "routing" systems. the trick is to let normal flow of application goe in the NOT_FOUND case
I know I can get it for free through bitbucket but I kind of like beanstalk now...
Anonymous
@Dereleased you know what's fun? Starring things.
20:40
I wonder if I can share just the router for this code so you guys can see what it's like. fuck it, this is the router
it's significantly cleaner (meaning, in number of lines and clarity of code) than I would have imagined from what you say :)
I think the original programmer wrote this code in like 2000, and has been extending it since then.
@Tiffany it's not that bad
yeah, I mean, I know I complain about this code a lot, but it's not really that bad.
at least there's a front controller
20:43
eval('$base_path = '.$controller.'::BasePath();');
oh boy
sorry, I take back what I said
@FlorianMargaine Use Ansible/Packer?
morning all
@Tiffany wow, very static
o/
21:02
cal_days_in_month(...) accepts integers as it's arguments, so if I have a numerical string $year = "02"; should I use intval($year) when passing it as an argument or should I just pass it as a string? It works either way but I don't know which way is proper
I would (int)$year
Ah I was originally thinking that but I wasn't sure if I could use (int)$var as an argument in a function
Thanks ^^
@Alesana ah good catch, I was not sure either, but it seems one can
I should have just tried it myself :P Well, just because something works doesn't mean it's right, so I can never be sure haha
> just because something works doesn't mean it's right
I wish more people thought like that
21:12
Note that it works even without the (int)
Anonymous
@brzuchal hey! How lovely it is that you're here
@JayIsTooCommon thx, I've been on holiday, then we've (me and my wife) reminded someone need to feed a fish
So I had to go back home 1,5h a way to feed it :)
Anonymous
Ekin didn't remind you to feed the fish!? She is so evil, isn't she..
Right now I'm looking at a bug and I think none of built in functions doesn't respect strict_types=1
Anonymous
21:16
Alright, I'm just going to admit defeat. @Ekin you win. I can't make you out to be bad.
@brzuchal the issue is that you use strict_types at all :-D
@JayIsTooCommon C'mon. You haven't even tried other rooms yet
@bwoebi haha, not using would cause Visual Debt
Anonymous
@brzuchal ignore him, he's the 1%
I expected more effort from you
21:18
I love strict_types even added it to PHPStorm new file template :)
@brzuchal What do you mean by not respecting strict types?
@PeeHaa I mean AFAIK built in functions doesn't check strict types at all, am I right?
They do
All of them
php -r 'declare(strict_types=1);$arr=[1,2,3];var_dump(array_slice($arr, '2'));'
The bug is not a bug, but a feature request
21:19
this works without error
It breaks because of strict types, but OP wants the type to be a bool instead of an int
Ahhh, right, I didn't read carefully
@brzuchal strict types are checked on the calling side, so the only time it makes sense to say a function doesn't check it is for those using callbacks, like array_map
@PeeHaa Why I didn't got that error on CLI sapi?
21:23
Idunno. Maybe it needs an actual file ¯\_(ツ)_/¯
Man dealing with these timezones is really confusing
can't be confused if you ignore the very idea of timezones
putsheadphonesbackin.jpg
@brzuchal Wait wat
Does that even work with those quotes like that?
oh shit, wait
@FélixGagnon-Grenier Always coming in with the solutions
21:24
hahaha
sorry :)
@PeeHaa Sorry, you can slap me - I've messed up with quotes, it does throw TypeError :)
... oh well, and there I thought I could just take MySQL, plug it in pgsql, and that it works...
slaps @brzuchal
Every time I'm looking for a bug where I can be helpful I cannot find one
@Ekin When do you start at the new job?
21:27
@tereško do you know of a reference, something like "postgresql vs mysql syntax for dummies"?
@FélixGagnon-Grenier you should probably google :D
the short version .. emm ... lemme see
I had just googled something slightly different, than writing the exact thing I wrote here gave this ^
Including the teresko ping? :P
postgresql has better language features, but harder to manage find good admins
21:30
@PeeHaa :P
> MySQL uses ` (accent mark or backtick) to quote system identifiers, which is decidedly non-standard.
Doesn't mysql also do the non standard offset / limit thing?
dunno. offset <start, quantity> sounds pretty standard, yes?
@Fabor She started today :)
Well then ^ @Ekin How is the new job? :P
21:34
@FélixGagnon-Grenier It's missing the LIMIT keyword
Anonymous
in JavaScript, 3 mins ago, by Luggage
JayIsTooCommon I went into r11 and flagged your message. you're welcome.
hahahahahah
salty
17 is no fun
@JayIsTooCommon you packed your bags yet? :)
Where you going Jay?
Chat search sucks. But it looks so good
Anonymous
@PeeHaa I'm so not ready for it... not long now
Anonymous
21:41
Jul 11 at 15:56, by JayIsTooCommon
https://www.google.co.uk/search?q=bh+mallorca&rlz=1C5CHFA_enGB737GB737&source=ln‌​ms&tbm=isch&sa=X&ved=0ahUKEwiekO_4y4HVAhXCCMAKHZeVBmEQ_AUICigB&biw=1920&bih=960
@JayIsTooCommon :)
Are you still working now or do are you already getting drunk everyday @JayIsTooCommon?
do we have any tutorials lying around for people familiar with programming, but not PHP?
Don't think so
Does anyone have any file storage services suggestions? I want to add the ability to upload files with my app but I don't really want to host them on my server. Right now I'm looking at AWS.
heads home o/
21:53
@Fabor so far so good
Free food?
honestly all I did today was swimming ... and drinking :P but tomorrow onwards imma get started with speech to text stuff
Swimming? -_-
yeah apparently I started on the fixed day they sail all together, so I got to visit 6 nice bays
Pffrt. Lazy! Not enough whip cracking if you ask me.
What do they actually do though?
21:56
I think that starts tomorrow
heh
it's an sms gateway, mostly bulks
they have their own api and resellers

« first day (2473 days earlier)      last day (2700 days later) »