« first day (2895 days earlier)      last day (2039 days later) » 
00:00 - 21:0021:00 - 00:00

12:00 AM
at least it's not bejeweled
the chat is being fucky ... I think I will just got to sleep
nn
 
you mean Candy Crush Saga cause all of their stupid games have to have Saga
 
lol
 
12:51 AM
i will create a section with "categories" on my website. i will create a different table for each category, but i'm thinking... is it the correct way? i mean i already have a table, but this table are with all the data.
 
 
1 hour later…
1:54 AM
nn
 
Hello guys,
Need you advice regarding this question:
0
Q: PHP count row after specific row

HiDayurie DaveI would like to count rows of text file (.txt) after specific row. Example: I want after row 10 then row 11 until end will be count. Is it possible? What I've tried: $files = "log.txt"; echo count(file($files)); But as you know it will count all rows. What I want is, after row 10 then row ...

 
user10351273
2:48 AM
@Jeeves Thanks
 
4:13 AM
@Tiffany is it final fantasy tactics? if so, the playstation version runs well in an emulator
 
 
1 hour later…
5:38 AM
morns
 
6:18 AM
method_exists + RecursiveDirectoryIterator::getSubPathName conflict – #76901
 
6:35 AM
Thank you @tereško for your commits.. it is really valuable for me, I will take a look at them in few hours
 
6:53 AM
hello everyone
Is any one here good at Guzzle?
 
Wes
morning
 
mornin
 
\o
 
7:13 AM
How is work going?
Anyone working on any interesting projects?
 
7:26 AM
@Shafizadeh if you think there is something wrong in that code or you have questions about it, then just ping me
 
morning
 
mornng
 
7:41 AM
fuck, I need to go to work
 
7:58 AM
moin
 
psittacine of or relating to parrots.
 
8:58 AM
docs.php.net no longer updated – #76902
 
9:32 AM
can someone explain me why this is happening?
 
@Naruto maybe use it like date('d-m-Y H:i', strtotime("next monday", $test))?
 
@Naruto I think when you use weekdays it always changes the hour to 0:00. This seems to work as you expect on this case, but I dunno if it is reliable.
 
@pmmaga so basicly i need to do: echo strtotime(date('c', strtotime("next week", $test)));
 
date('U', strtotime("next week", $test)) should do it
 
mm I found a 'better' way
strtotime("next week 10:00", $test)
@pmmaga nope, your is better, then I don't need to pass the hours, thx! does next week / next month etc, have the same problem?
 
9:44 AM
@Naruto 3v4l.org/9P2kJ - makes it clearer. As pmmaga said, the 'day' starts at 0:00 and you're not setting the time.
I'd pretty strongly recommend avoiding touching date_default_timezone_set and strtotime and instead put everything through the Datetime objects. e.g. $dt->modify('next monday');
Because stringy based programming is fragile.
 
^ this. I was also going to suggest manipulating the datetime object until it has the value you want and then formatting it as timestamp
 
@Danack I wish I could, but legacycode, and for some reason in 5 years nobody ever noticed that it was wrong..but thx for the explanation, I will keep it in mind
 
Morning!
I'm writing a vendor binary (getcomposer.org/doc/articles/vendor-binaries.md), and looking for a standard way locate the autoloader.
Which is tricky, because vendor binaries can be installed anywhere in the project.
So I thought to look for inspiration in some of my current vendor binaries.
 
10:04 AM
Hello, I had implement cashier package for PayPal and Braintree recurring payment, It's working perfectly when I payment using Braintree but it gives me an error(PayPal pending payments are not supported) when I am using Paypal
 
But they all do it in different ways, with different outcomes when unable to locate it.
 
when i print print_r($get_merged_values);It displays as the following
Array
(
[0] => Array
(
[menu_code] => 2
[menu_order_no] => 1
)
[1] => Array
(
[menu_code] => 3
[menu_order_no] => 2
)
);
i want to get menu_code value only using $get_merged_values['menu_code'] instead of using array index 0,1..please help me how to do this?
 
But... there are two menu_code entries.
 
yes i need to get both menu_code values 2 and 3
 
@hearthacker probably you want array_column($get_merged_values, 'menu_code')
 
Wes
10:23 AM
morning 2
 
@Jimbo You should add to your tweet, "we even let Geordies, or people from Essex speak at conferences.".
@webmaster777 copy what phpunit does, and also add a flag to allow people to set the path?
 
10:37 AM
@Danack You don't fancy answering the PayPal/Braintree question then? :P
 
10:54 AM
3 messages moved to Trash
 
!!dad
 
Why can't you hear a pterodactyl go to the bathroom? Because the pee is silent
 
@Rajesh the paypal sdk is really hard to use. Depending on which version you are using, it's entirely possible that the error message you are seeing is accurate "PayPal pending payments are not supported" with that version of the SDK.
Does anyone have a script for git for rebasing a branch onto the same branch when you've already made commits in that branch. e.g. something like:
* find the common history point between your branch and the remote branch.
* rename the branch that contains your local changes.
* pull the remote branch.
* Rebase your local changes branch onto the remote branch.
* Merge/rename that branch to be the original branch name?
aka to do all the things needed when you want to rebase your changes to avoid having merge commits.
 
@Danack phpunit only checks three paths. Which should be enough in most cases, but even for phpunit i think it's possible to create a situation in which it would not be able to find the autoloader file.
@Danack git rebase $(git merge-base HEAD origin/[remote-branch])?
and then git rebase origin/[remote-branch] ?
or specify --onto explicitly
 
11:06 AM
@Danack
thanks for replay.
 
@webmaster777 thanks. Why would the second bit be needed?
(possibly I could find out by just trying it, but also don't want to screw up a repo...)
 
the first command only rebases your changes onto the merge-base
the second rebases your changes on top of the remote branch
I guess that's what you want right?
For a complete set I'd do:
1. `git fetch`
2. `git branch just-in-case`
3. `git rebase --onto $(git merge-base HEAD origin/[remote-branch])`
4. `git rebase origin/[remote-branch]`
 
@DanackI am using laravel 5.6 version, Braintree recurring payment is working fine but Braintree to PayPal given an error(PayPal pending payments are not supported) so any other solution of PayPal recurring payment in Braintree.
 
after that you can even push only "new" commits to the remote branch, without altering the history of the remote branch.
But it could create all kinds of duplicate commits of e.g. master if the remote branch is behind.
To solve that you'd need to rebase that branch on the master
 
11:24 AM
@webmaster777 thanks I'll give that a go.
@Rajesh I have no idea. The paypal sdk is on the list of things I require like 3 times my typical rate to work on.
 
@Rajesh Cashier is a Laravel thing, isn't it? It might be best to ask on laravel.io or somewhere.
 
@Danack I'm gonna go with "You're an idiot if you place your binaries deeper than one directory level and use windows": pastebin.com/bnAZrDYf
 
@Danack @jjok thanks for Replay
 
who the fuck is staring those ?!
 
Reply. Me.
Hello.
 
11:37 AM
@Tpojka why?
 
Funny use of replay. I didn't expect it second time.
 
stars are not upvotes, but "community bookmarks"
and the shit you stared had no value outside the context (and arguably - neither with the context)
 
!!welcome @Tpojka
 
Welcome @‌Tpojka, please read the Chat Guidelines
 
:P
 
11:40 AM
Darn, I failed point 7th commandment.
Hi.
But hey, still beautiful day. :D
 
@Tpojka Yes, that it is, cause I am getting 4 holidays starting tomorrow, so, last working day of this week for me. :D
 
At least someone. Good for you @mega6382 ;)
@mega6382 If you take some video on your vacation, don't forgot to replay. :D
 
lol :P
 
Gotta love replays.
 
This is insane! 200 foot fire tornado in British Columbia. The video, posted on Instagram, was shot by a wildland firefighter, who is part of the Mackenzie Unit Crew. #Firenado #MeanwhileinCanada #climatechange #cdnpoli https://t.co/jmNbqamSB6
4
 
Wes
12:05 PM
that's heavy
 
@Danack Haha, done!
 
Morngins
 
12:35 PM
!!rfcs
 
\o
 
12:52 PM
@PaulCrovella Dissidia Final Fantasy: Opera Omnia
It has the stereotypical final fantasy combat style, and has gacha mechanic like most freemium games have, but instead of the gacha being focused on characters, it's focused on equipment. Not a novel concept, but it's different, and it works really well for this.
Also includes characters from several different Final Fantasy games
 
@Tiffany Did you ever play FF Tactics? It was great! I played through it on the original PS1 release and then on the Vita release.
 
@StatikStasis I never had a PS1 or Vita, so no
only Sony console I owned was a ps2, and I didn't play it all that much
 
You could play it on there(PS2) too. They have it for emulators.
 
youtube.com/watch?v=Lf42yiZP3og holy shit this is cool
 
1:14 PM
@Tiffany That's crazy the whole bowl is wobbling like that.
 
1:45 PM
@Gordon Thanks (a day late) :D
 
^ partying hard, are we? (:
 
@StatikStasis Yeah, and the patterns are amazing too
Its cool and all, but my favorite thing to watch in slow motion is Officer Greg shoot random targets with a shotgun :P
 
2:06 PM
=D
 
Arrr, happy talk like a pirate day mateys en.wikipedia.org/wiki/International_Talk_Like_a_Pirate_Day
 
*bowl resonates*
Love captions
 
2:22 PM
around 1:12 where the captions take a different turn on the second video
 
@Oldskool I fucking hate that thing. They should have made a "talk like a sailor" day instead.
 
2:38 PM
Failures during make - lvalue required as decrement operand – #76903
 
Can i use mysql cli 8.X to connect to a mysql 5.7 server?
 
in the example1 of this page in manual: (php.net/manual/en/closure.bind.php), why is class A determined directly inside the first closure? Shouldn't it be something like self::$sfoo?
 
@tereško True, otherwise you'll get things like this: twitter.com/jaffathecake/status/380902210734792705
 
2:55 PM
@Narnia I guess that would work as well, but sfoo is already specific to A so you don't really gain a lot in making that more generic
 
@pmmaga I meant to say one might want to bind class B to the closure in $cl1 which has another sfoo. Of course that doesn't sound like a very useful thing, just saying
 
@Shafizadeh why do you hate your fellow Iranians? I am asking this, because you currently have a 9MB image as an advertisment in the search page
also, that image for some reason happens to be part of the git repository ...
 
3:20 PM
@tereško so you can commit an optimized version of it? :P
 
Seems like a learning opportunity for git filter-branch
Don't wanna keep that file in the history
 
@Narnia just another way of doing it: 3v4l.org/RTJJA
 
3:44 PM
@FélixGagnon-Grenier Correction: "This be useful, matey"
 
heh, indeed. Me don't got this in me blood, matey...
... for some reason this feels like I'm poorly trying to speak australian
 
Also, I have successfully germinated a mango seed. I did two and only one succeeded, so at some point I need to eat and germinate another mango so it can have a buddy.
 
GJ! my attempts at mango failed with a rotten mango seed...
 
I need containers with wider brims, I think. The one that failed was the bigger seed and it seemed to bump against the edges where the smaller one did not have such issues.
I will use a wide-brim mason jar or such next time.
 
hi , here is a sample json , how can i get name of active game ?
[game1] => Array
(
[id] => 257
[name] => cricket
)
[game2] => Array
(
[id] => 349
[name] => football
)

[value] => Array
(
[active] => 349
)
 
3:47 PM
function __construct()
{
    include_once '../../../include/Facebook.php';
}
 
I hope to have a greenhouse in 5 years from now when theoretically it would be mature enough to produce fruit. In the meantime it will be a nice looking house plant ^_^
 
hah, 5 years only?
 
what is the correct way of using variable here
$id = 2;
echo $details['post']['$id'];
 
@Srinivas08 not using quotes
 
getting undefined offset error without quotes
 
4:02 PM
I guess you don't have a $details['post'][2] then
 
pls check my previous message above
that is my actual data
i am working on , to get active game name
 
evenin
 
4:21 PM
@ircmaxell right. yes.
 
4:35 PM
@LeviMorrison I've got a friend who worked in Washington, DC before working with us for a few years handling legal matters that arose for our company. He gave it all up to become a farmer. He is part of a co-op now and farms all year round and has constructed 3 greenhouses. He delivers to several local fresh markets and also has goats and chickens. His day starts at 4am but he says he has never been happier.
 
I grew up on farms in rural areas. I don't like cities. I don't know about farming for my livelihood, but growing things is definitely something I enjoy.
 
@LeviMorrison When I am not coding or managing at work- I do woodworking. It's a great break from all my normal day to day activities.
I did too. I don't like being way out in the woods- but just close enough to get to society within 20-30 minutes.
 
That's another hobby I'd love to learn! I subscribe to r/woodworking on reddit to inspire me.
 
I'm on there too. Let me find one of the projects I posted on there a couple of years ago.
@LeviMorrison Here it is: imgur.com/a/DRrNt
 
Any of you guys have clients who require your IP to whitelist for services?
 
4:40 PM
@StatikStasis Wow! Very nice!
 
I'm cheap so I just learn how to do things myself. In this case though- it is something I'm doing because I enjoy and not just to save money.
 
Hi everyone.
 
Sure, you can build a table but can you build @Jimbo a girlfriend?
 
@Fabor Unfortunately not- but depending on where he lives there are lots of robotic brothels that are now popping up for @Jimbo
 
I have a list of about 200K urls, their contents change every two minute or so. I wish to save their contents (which is in JSON) to my database and update it every two minutes. Is it going to be a heavy process for the database?
 
4:44 PM
What percentage of the entries change would you estimate?
 
most of them, around 90%.
 
Wes
@StatikStasis nice
 
Wow!
@Wes ty
 
Wes
i need to buy a set of chisels
 
Just buy cheap ones and sharpen them. No need in spending a lot on them.
 
Wes
4:45 PM
also the round ones, whatever they are called... the ones for carving
 
ah- I don't have any of those but I know what you're talking about.
Probably Amazon.
 
Wes
yep those. and then i need to find big blocks of wood i can sculpt... i didn't search much but there is no such thing in the usual places. i might need to glue one myself out of smaller pieces
maybe where they sell firewood...
 
I need to find a woodworker near me so I can get sawdust for composting.
 
Do you guys have a woodworkers guild near you? @LeviMorrison @Wes
 
I have no idea. How do you find them?
 
4:55 PM
Where do you live? US?
 
I live in Provo, UT.
 
Usually a place like Woodcrafters would know people in those organizations.
 
¯\_(ツ)_/¯
 
4:57 PM
> Meets on the 2nd Wednesday of every month at Crafts Supply in Provo.
 
Wes
we don't woodwork as much as you guys do, probably because of the material cost (my guess)
 
Well bingo, assuming the info is up-to-date.
 
They usually do a lot of neat projects. You can learn from them or even volunteer for projects where they may build a toy chest for an orphanage or single mothers, furniture for someone in need and they will usually provide the wood. Or you can ask them about getting some sawdust if nothing else. @LeviMorrison
 
evenins
 
@Wes Yeah- but don't you guys have marble at unbelievable prices there?
Hey @tereško
 
Wes
4:59 PM
@StatikStasis hm?
 
Let me see what it was I saw before.
 
Wes
i live in a 0.5million pop city... i'm sure we have less than 10 wood workers overall... there are probably big furniture shops though
 
One sec
I'm talking about stone
 
@Wes Yeah I had watched a documentary about marble from Italy. It was talking about how cheap marble was there. Ever thought about trying your hand at carving marble? Were you wanting wood chisels for carving figurines or something? You could do the same with marble.
 
Wes
5:01 PM
yes, most of it is used for kitchen and bathroom tops, not much sculpting. if that's what you are asking :B
 
learn how to make busts
 
Well- if there are not many woodworkers there- you definitely have a niche market to get into then.
 
wealthy people with studies have busts
 
Big ones
 
Wes
5:02 PM
:B
 
Studies that is...
 
I like big busts and I cannot lie
 
Wes
i did 2 years of art school, but we used chalk/plaster whatever you call it :B
 
Plaster probably.
Some of the work I have seen in marble is unbelievable.
This one is even crazier to me- hard to believe that is stone i.pinimg.com/originals/98/47/66/…
 
@StatikStasis What do you do with your sawdust?
 
5:06 PM
Sweep it up and put it on my burn pile where I burn scrap wood or limbs from my yard.
 
Why- you want some?
 
Wes
@StatikStasis impressive
 
I did not even know it was good for compost... it makes sense I just never thought about it. We usually throw banana peels and eggshells in ours.
 
@StatikStasis Aside from certain trees (like I think black walnut) it makes an excellent addition to compost piles.
It's like 500:1 carbon to nitrogen and I have endless supplies of nitrogen but not any carbon on my property.
 
Wes
5:08 PM
@StatikStasis i'm sure people are even willing to pay for sawdust :B
 
I can mail you some when I have it if you like. I usually work with western red cedar the most. I work with pine sometimes- but that is usually treated wood which I suspect you would not want.
 
Wes
greens for composting are easy to get - browns not much
 
I sweep up piles of it all the time.
 
Wes
browns are stuff like fallen leaves, woodchips, sawdust, cardboard
 
I did not know that.
 
Wes
5:10 PM
and since you need like a 30:1 ratio of browns:green, you are gonna need a lot of sawdust for composting
 
@LeviMorrison If you want me to mail you western red cedar sawdust when I have it you can drop me an address in a PM on reddit. Same username as here statikstasis
Oh- I might not get enough. Not sure.
 
lol -- no thanks. I bet it's expensive to mail. Long term I need a local source anyway ^_^
 
I would check with that woodworkers guild in Provo.
Yeah- I am on the east coast of the US- so a little bit away.
 
@Wes All that matters in the ratio -- since sawdust is very high (500:1) it does not require a lot.
I mostly have been tearing up cardboard and the cardboard-like egg cartons and paper that doesn't have high-gloss ink.
It's a lot of work and it's a pain.
 
Wes
yeah that must be annoying
i do some composting in place on my balcony
just to not throw away the fallen leaves of the plants i have
fruits peel, old vegetables, coffee powder.. i just mix it with other compost and fallen leaves. i don't get smell and plants seem healthy :B
 
5:17 PM
We do the same.
 
New Closure class method suggestion – #76904
 
Wes
that's the problem with unmaintained translations ^
 
Hello, yunguns
 
Wes
@PeeHaa "the americans" is intense
watched 12 episodes in one go :B
 
so ... Nvidia RTX benchmark embargo has been lifted. The reviews are out.
TL;DW: the people who said "don't fucking pre-order" were correct
 
5:40 PM
@tereško Do you overclock your GPUs too?
 
a bit, but I am running R9 290x
they do not overclock all that well
 
Scope variable resolution – #76905
 
Why Google ignores PHP?
 
probably because of their "internal culture"
they do not have tools written in PHP, which means that they dont have any internal expertise
it results in a strong bias against it
 
5:57 PM
when entering my current job, I thought that people could maybe be open minded about php
it later transpired that no.
 
... they happen to be the same people who use javascript and mysql .. and ubuntu
 
oh, all the other c++ gurus and python lovers too
all of them having never ever written a single line of it vOv
 
This place is blocked at new job. Lame.
 
@Allenph stackoverflow or chat?
 
Chat.
 
6:04 PM
yes, but it's strange when tools like Firebase, that is meant to be something 'global' make easy for labguages like java,python, noodejs and even Go ... but ignore PHP... it's frustating
 
@Allenph did you ask - why?
 
@bsap PHP is the "whipping boy"
 
@tereško I already know why. Its a giant healthcare conglomerate.
 
Yeah, it's what I'm starting to note ...
 
"starting to"?
 
6:09 PM
whippig boy, that runs about 80% of internet
ok, maybe 70%, because of node.js
 
cause php 7 is very nice, and even that, big companies try to 'boicotty' it
 
6:21 PM
> PHP is used by 79.0% of all the websites whose server-side programming language we know.
 
@LeviMorrison interesting, I would've assumed that it would mostly be php4 and php3, but its php5 and php7 is gaining popularity quite fast as well.
@tereško Something for you I suppose, youtube.com/watch?v=8lgg-pVjOok
 
INSERT INTO slug (slug_title, slug_url, text) VALUES (:slug_title, :slug_url, :text) would "text" generate any conflict? it's showing none errors on the screen, and it's working normaly, but on the notepad++ "text" and ":text" are with the blue color, same as "function" looks like
 
The fact is: yes, PHP powers the majority of web sites today. But, still, it's ignored by Google...
 
@Susi try it.....see what happens?
btw I normally try things directly in an sql gui client before running them as code.
 
@Danack What you mean? As i said, nothing happens, there's nothing wrong with the INSERT INTO, i just was thinking about the color of the "text"
i thought it should be yellow, as slug_title, slug_url
 
6:37 PM
I dont know, but PHP is moving to be a better OO language, but now the trending is funcitonal programing ...
 
@Allenph =(
Can you use a proxy? without getting in trouble?
Just connect by your phone I guess.
 
@Susi text is a keyword in sql, so notepad is highlighting it....but it might be a keyword you can use where you're using it.
 
Wes
6:53 PM
@mega6382 i hope 4 and 3 are extinct
 
yeah, so do i
 
7:39 PM
@mega6382 thanks
 
:)
 
8:13 PM
... wait am I understanding that Rowan would like public Foo $foo to throw an error and force us to use public ?Foo $foo ?
or rather, what does that even mean: "That is, allow class Foo { public ?Foo $foo = null; }, but not class Foo { public Foo $foo; }."
Foo having a public property of itself?
 
ThW
@FélixGagnon-Grenier wouldn't that be an endless recursion?
 
yeah, that's what I think too. I'm unsure what's the point he's trying to make is
 
ThW
Maybe he tries to avoid that recursion
 
Maybe it's a typo and it's just to express the problem when a class doesn't initialize a typed property
 
ThW
if the class requires an instance of itself as the property then that child object would do the same - it is impossible to resolve.
 
8:27 PM
yeah
 
@FélixGagnon-Grenier he's trying to make it so there can't be any errors, rather than the errors are caught at runtime. Which is possible in other languages, but probably not in PHP.
 
Umm, so I am creating a sftp server with a chroot jail for users. The ChrootDirectory is /sftp_users/chroot/ but I want to to be the users own directory so I add "%u". This breaks the sFTP login. What am I doing wrong?
 
@Danack I see... I hope the ?Type isn't forced on us. I'm ok with catching errors at runtime.
 
ThW
@FélixGagnon-Grenier I would expect to get the error if the object is created, but it might be more useful to have it on parse time.
 
... but wouldn't having to boilerplate any and every property access to account to the error-less nullable property be like... not much better?
 
8:30 PM
@ThW No.
In this case it's pointless, but it's not endless recursion.
 
@StatikStasis Yeah. I'm just on my phone.
 
ThW
@LeviMorrison it's not? if the has a required property that is an object of the same class and so it requires an instance again and again?
is NULL/undefined still allowed for a typed property after object create?
 
$f = new Foo(); // doesn't initialize any properties
$g = new Foo();
$g->foo = $f; // all good.
 
ThW
not as a set, but just never initlized?
so the property types only affect setting them, not object create?
 
ThW
8:34 PM
noted, thanks :-)
so for Rowans requirement that would have to change first and object create would have to validate the initial state. That sounds like it could be a performance hog.
 
8:55 PM
yay
found a use for the laptop rotting in the corner: finally set up a proper external development "server"
 
setcookie() doesn't handle "samesite" attribute while the RFC says it should – #76906
 
00:00 - 21:0021:00 - 00:00

« first day (2895 days earlier)      last day (2039 days later) »