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

09:03
Yea I know. That's why I came up with this solution. As you know Datatable have 2 ways to work.
1. By showing table in html and adding the table selector to your JavaScript.
2. By getting tables data directly to your Datatable (Datatable will handle all the dirty work for you by ajax - just add the url ). You fell me?
Anonymous
@abdallaarbab I fell you.
PHPStorm: "We bring you a feature requested since 2015". First user attempt: youtrack.jetbrains.com/issue/WI-37361#u=1500886908118
o/
I today has begun weirdly. I have just voluntarily put Robbie Williams on
well, semi-voluntarily
09:07
> What is the expected result?
Whatever docker-compose is supposed to do next, as I haven't gotten past this point.
Using the site every will make you table bigger and bigger. to stop this from happening i will check if the record < lets say 1000 rows. if the table is very big the page will directly work with ajax only. That's it.
@JayIsTooCommon That's less than a days work, tell them it'll take 7 times that
wrong ping? :D
Yep sorry :D
09:13
@Patrick ...and yet no select(), which would be way more useful than pluck()
The problem is that I never work with Datatables enough to know the perfect row count for the if statement if($count < [?]) {
I have a sudden image of what laravel's version of "threading" would be... i.makeagif.com/media/4-08-2014/KjWqXd.gif
@abdallaarbab The perfect row count is 5643543
Make sure you get it exact, you don't want it to be any higher or lower
Being serious though, I would seriously hope that the number is quite high
5643544 shalt thou not count, neither count thou 5643542, excepting that thou then proceed to 5643543. 5643545 is right out.
09:18
it shouldn't be slow enough that this is a valid concern tbh, enough data to make it unacceptably slow shouldn't fit on one page
@PaulCrovella it is known
wow
@PaulCrovella "But he who is first will be last, and the last first."
In other words, heaven is LIFO
@Patrick I don't know.... 5 million. I think i will take ages waiting for the page to load 0_0
morning
09:23
o/
@kelunik it should actually be just equivalent … I think.
@abdallaarbab The question is, how many can you reasonably display on one page. That number is your golden number. I'm going to say it should be no more than 25, because human brains can't really make sense of much more than that.
@abdallaarbab honestly, just ajax all the things. keep your code simple. use the saved time to learn how to program so that you don't have to use laravel for your next project
if anything, preload the first page of the datatable, but a switch on number off total rows doesn't make sense
Ok, I will .Thanks. I am not complaining about Laravel. I have never said that in my life .Laravel would do the job and more. I think you should blame Datatable for that. you know what just forget about Datatables. I am gona use Vue.js. Thanks every one.
@abdallaarbab no, blame Laravel. It sucks :)
datatables is fine
Let me gess. You are using NODE right ; ) ?
morning
@Patrick Are You NODER?
@abdallaarbab no insults please
No, you got me completely wrong. I mean Node js.
09:41
I know
ms paint is being deprecated... where will meta get its freehand circles from :(
ThW
ThW
The all new Paint 3d?
Recursion leads to crash – #74977
09:50
@Patrick I will tell you 3 things. time will always keep running, cats will always land on their feet and node developer will always hate Laravel.
@abdallaarbab We don't discriminate in here, we just hate bad code. Laravel just happens to be a very easy target because of it's horrible code (and toxic community).
ftr time won't always keep running and cats won't always land on their feet
@DaveRandom What's the state of the process thing?
@DaveRandom especially if you do this
10:01
@Patrick on a different note, is the PHP subreddit always this toxic as I've experienced it to be this weekend?
@GNi33 yes
I understand that there will be trolls on there, but jesus christ, that sub is a different beast
@DaveRandom Actually... Yea you are right.
@JoeWatkins Isn't an ABI break warranted for PHP 7.0 and 7.1 ZTS builds if ZTS is completely broken there?
"working" is a bc break
10:03
@kelunik I'm going to go out on a limb and say that with github.com/DaveRandom/amphpWinUtils/commit/… and github.com/DaveRandom/process/commit/… is fully working
Certainly my test script (examples/ping-many.php) is fully working without errors
In my website users can upload pictures. Uploaded pictures are stored in a folder called UploadedPictures. Now, until some days ago the php script for the upload worked perfectly, but it seems that for some reasons the user which runs PHP has lost permissions. If I change the permission of the folder from 755 to 777 it works... but with 755 works no more. Someone is able to explain the possible reason?
I haven't tried to do anything more complicated yet
@kelunik no, because it would break nts abi also
Feel free to check out that branch and see if you can break it
the vast majority of people are using nts, we can't break the abi for the vast majority for the few that want to use zts ... can't be done ...
10:05
I'm going to write a spec document explaining what the wrapper does and how it expects to interact with the caller
Specifically something that might be surprising is that it passes process meta-data back to the caller on the stdin socket (since it was basically a spare readable pipe, no point in burning an extra socket handle if we don't need to)
Oh and the security token business needs documenting
I'm quite pleased with what I came up with there in the end
Every socket has it's own unique client/server security token pair, so both ends get a level of confidence that they are talking to the right thing
and it's pretty inexpensive the way it's implemented
dude, it's monday ...
btw @JoeWatkins I may have some questions for you in a bit, I had a serious headfuck trying to work out how to declare, allocate and manage an array of struct pointers
they don't sound like monday questions ... monday questions are like "what is your favourite power ranger?"
In fact I don't free them explicitly because I couldn't work out how to do it without crashing, and the process is about to end at that point anyway
@JoeWatkins Jason. Next question.
actually that's not even true, it's actually Billy
The other guy was an asshole, I forget his name
it's type **var = malloc(sizeof(void*) * num_of_elements)
that's your pointer to pointer array, but you didn't alloc memory for each element, but I guess you do that elsewhere ...
I'm going to assume your silence means problem solved, and my cake is in the post ...
10:16
hello there
May you have time to see my question: stackoverflow.com/questions/45277457/…
I'm busy, looking forward to cake
Anonymous
> build fast, grow solid
@JoeWatkins Where I had a real headfuck was with github.com/DaveRandom/amphpWinUtils/blob/master/ProcessWrapper/… (which is a stack array var rather than heap-allocating it), and here github.com/DaveRandom/amphpWinUtils/blob/master/ProcessWrapper/… which inits the members, although tbh looking at it now I'm not sure why I have such a problem
maybe I had just been staring at it for too long
me neither, was it late at night ?
Probably, I have done a couple of 4am stints on that code
I'm rather proud of it
PRAISE ME
:-P
10:26
I'm going out of my head. Somewhere in this house is a smoke detector whose batteries are low. So I'm sitting here with every smoke detector I can find, batteries removed, yet every so often that low-battery chirp still rings out.
am I dead? is this hell?
@DaveRandom BEST CODEZ EVA
@PaulCrovella Have you looked near the boiler or any gas appliances you have?
Anonymous
@PaulCrovella youtube.com/watch?v=wL2ds3Bj14M This is the exact story line from a modern family episode.
> The uploader has not made this video available in your country.
I had a similar thing once, turned out it was a CO detector near the boiler
10:27
I have those in front of me too.
Anonymous
it's probably just old age.
you'll have to move house
You can have two houses, one for you and one for your smoke alarms
top level thinking from chris there, give that man 100 internet points
10:32
7.1.7 - Windows 64bit – #74978
Great bug title there
@Jeeves windows is a pile of shit
@JoeWatkins Not an operating system? Didn't know that.
E_USER_ERROR
We should make E_PEBKAC an easter-egg alias of that
Interactive shell opening instead of script execution with -f flag – #74979
10:47
oh btw @JoeWatkins you asked me if I could do something related to threading on windows a couple of weeks ago, what was it?
I have two classes that need the same function, how can I do an optimization?
I was thinking of using traits
I have become considerably more familiar with the win32 threading api over the last few days...
@yessure What does it do?
it just saves in a variable the id of the 'current page'
What do you mean by "saves in a variable"? A global variable, a class property or something else?
in a class property
10:52
@bwoebi @Trowski Can I tag a new version for github.com/amphp/file/commit/…?
@DaveRandom here's a list of all the things I remember from the last two weeks, separated by commas and enclosed in quotes: ""
@yessure OK, I assume it has some logic where it computes the value rather than just being a setter
@_DaveRandom here's a list of all the things I remember from the last two weeks, separated by commas and enclosed in quotes: ""
@DaveRandom yes, it is not just a setter
@yessure can you share the code in a gist?
10:54
not at the moment, sorry
username doesn't check out
:V
Anonymous
:B
Oh Hey Jay
Anonymous
10:56
hey der
@yessure My gut says that you need to have the function return the value instead of storing it in a property, and either wrap it in an injectable object or just turn it into a regular function rather than a method.
Ew, the PHPNW buy tickets button only works if you click the text
Surprised it's still early bird considering there's only like 2 months to go
morngins
lgtm.
@DaveRandom I'll try, thank you
11:10
@bwoebi amp/file or what?
Hi
Can I install xampp server into a usb?
user6845426
11:29
@JavaFan just Googled it and a lot come up, so looks promising.
Anonymous
12:05
@JavaFan Yes
12:16
i try to create a local variable on the fly in php.
function my_func () {
  $varName = 'myVar';
  $$varName= 'foo';
}
this won't work. why ?
I expect the local variable `myVar` to be created.
1) it works just "fine" 2) Don't do this
why two dollar signs?
variable variable
But it's a terrible idea
Yes I am aware of that. anyways why doesn't it work here ?
@user544262772 Why do you want to do thus?
@user544262772 It does work
as I already said
12:19
how confusing
@Tiffany It is :)
because I am making a cms, and I just convert the post and get required variables to normal local variable that includes the template for the pages, so the variables are available in the templates.
There are like 100 better ways to do it
build an object
What @Tiffany said
12:21
@PeeHaa well it does not work at home
@user544262772 It does work
100%
You are doing something else wrong
Anonymous
There is not reason for it not to work. That's php 101. you don't even need to run it to know if it will work.
Maybe you get confused by scope, maybe you are using incorrect casing who knows
If you share your actual code somebody could point it out
confused by scope seems like it would be common with that methodology...
I am using a foreach loop, would that be the problem ?
12:22
Share your actual code
Ain't nobody got time to guess magic non shared problem code
use gist.github.com
create a new gist, paste code in there, and then you can delete it when you're done
No fine it works, the problem is the debug windows was not updating but I set a watch and it is well defined
Thks :-)
for the help
Anonymous
get out
Anonymous
!!wotd
highfalutin: pompous; bombastic; haughty; pretentious.
12:40
ok, we upgraded 1 production server to 7.1, everything is working except the monitoring of the server :D
congrats
Woo :D
Meanwhile over in 5.5.9land over here ):
Anonymous
ew
Narrowing occurred during type inference – #74980
Being locked into a support contract is the worst when they don't even support.
12:49
evenings o/
All it means is we lose control over our boxes in regards to OS updates until they provide official support for later versions. So we're still stuck on bloody 14.04
switched to elementary os.... its pretty good so far (1 hour :P)
I'm using whatever lets me have recent packages, without being a rolling release (because that breaks too often), and most importantly, that has a sane kernel.
then I'm using a custom WM anyway, so the rest doesn't matter much
(Fedora matches this description.)
Elementary OS made me nope out faster than anything else.
Is elementary the thing that tries to look like a mac?
12:51
Yes.
(and the fedora default DE is stunningly beautiful.)
it does
deepin does as well
arch has such a stupid kernel that it hurts.
probably gonna try out liri os next :D
@FlorianMargaine Gnome 3?
12:52
@littlepootis yeah
What I use. I love it.
the most beautiful thing in fedora, imho, is this: fedoraproject.org/wiki/Kernel_Vanilla_Repositories
I haven't found it in any other distribution.
Anonymous
@JayIsTooCommon how does it handle dependencies?
Anonymous
@FlorianMargaine ?
@JayIsTooCommon test1 depends on test2
so, test2 must run before test1
> Provided you have well-written PHPUnit tests
Anonymous
What's the use case of test depending on another test?
13:14
Looks like it fails if you don't test in complete isolation
@PeeHaa The reason is internals demanded that for "consistency with the rest of the language returning null on invalid parameters"
I thought it was idiotic as well, but that's what you see
ugh
Because PHP...
so, fix the doc?
@FlorianMargaine yes I might, but my issue was the actual behavior
Yup, inconsistent in the stuff that actually matters like parameter order and naming conventions, but at least it's consistent in the stuff that doesn't matter like returning null on invalid arguments. Sometimes.
13:19
@ircmaxell Sometimes I envy your move to Ruby :P
But then I see a rant from you :D
wasn't it Go?
I still dislike Ruby
way more than PHP
because at least PHP gives you some assurances and tools to help you reason about code
Ruby is like "meh, do whatever you want" and they see this as a feature, not a bug
"you're a big boy, you'll sort it out"
well, ruby is like "Give developers sharp knives". Which is awesome. But I also want to give them cut proof gloves, cutting boards and guide blocks so that they can control those sharp knives and weild them responsibly
We need Ruphpy
Anonymous
13:26
also, even when done right, I find Ruby highly unreadable.
^^ that too
@ircmaxell How do you feel about JS and accompanying languages?
Did a bit more Go, and not exactly happy with it either. I like some parts but others are a bit... meh
@JayIsTooCommon So it's not just me
@MadaraUchiha similar to Ruby in that I want more consistency and tools to help scale, but not as bad as Ruby
Anonymous
13:26
@PeeHaa the indent logic doesn't help
@ircmaxell Have you given TypeScript a go?
Or is that taboo while working at Google? :P
To me it looks like those character soups
@MadaraUchiha yes
Honestly, I'm debating trying Scala and/or Clojure
@ircmaxell Have you tried a Lispy language before?
I did a bit in Haskell, and a touch in common lisp to understand the language, but that was all
13:31
o/
Hey fap o/
Anonymous
fapo
Anonymous
@PeeHaa you're a character soup.
letter soup
@JayIsTooCommon I will unstar your happy birthday dude. Don't think I won't!
Ekin 12-12 Jay. Anyone wanna tie break this popularity contest?
13:34
@kelunik yes. somehow forgot to add the chat reference, sorry.
@Fabor I couldn't unstar my own message :(
Actually makes me wonder who got the most stars for a birthday.
Sep 18 '15 at 13:15, by rdlowrey
Happy birthday Tony Ferrari
28 stars
I think I hold the record number of stars with 70 stars on a message.
@FlorianMargaine It better be php sucks chat.stackoverflow.com/…
13:41
:)
I don't even think we have 70 regulars
I call botting
@Fabor wrong room
Seems children are the way to stars here.
@Fabor Does Joe know this?
13:44
I'm surprised we don't have anyone building some stats aggregator for room 11 stars. Stars per hour, most stars, etc..
I feel like DaveRandom would do pretty well.
back in the day all you had to do was reference your love for Daniel or about Lusivivitititiaan's mother.
Anonymous
Feb 25 '13 at 9:40, by DaveRandom
Star this if you want Uncle @Gordon for moderator
@JayIsTooCommon rah!
Anonymous
and it was all a waste. Quitter @Gordon.
Can we still unstar it?
Umm longshot but anyone use mpdf and php 7.1 ?
@Fabor sorry, I use php 7.2
13:49
All right! Preliminary results: Frontend average response time: 5.6 - 110ms 7.1 - 63.4ms
That's kinda huge
oh yeah
:P
That's what @PeeHaa said.
Anonymous
to @JayIsTooCommon
Anonymous
@JayIsTooCommon you're so funny
Anonymous
13:53
@JayIsTooCommon hehe, thank you
Dude, buy a mirror
lol

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