« first day (2865 days earlier)      last day (2087 days later) » 
00:00 - 16:0016:00 - 00:00

12:04 AM
@Darius it can be worth turning of index updates, inserting the data, then turning the indexes back on.
 
Wes
12:38 AM
at least so it seems
 
Wes
1:00 AM
gn
 
@PaulCrovella Those people are the worst... On an unrelated note Let me know if you want to know how you can make $7500 a week from home. Last year I made a quadrillion dollars working only 5 hours a week!
 
1:34 AM
@pmmaga he didn't. SO fucked up his account and his account is now @ chat.stackoverflow.com/users/4781925/jayistoocommon. Talked to him this morning and he is coming back soon
Also he is going to police @DaveRandom in Manchester
 
@PeeHaa that is why Dave has an escape plan to Europe?
 
Ah I see now :P
 
 
2 hours later…
3:51 AM
Hey everyone
 
4:03 AM
Night all
 
4:16 AM
Hey, I have a question and I know im about to be crucified lmao. I am working on an educational project. I am building a micro framework for a class. I am currently in the middle of building it and I wanted to know if I'm on the right track. IT WORK :)... However I would appreciate any suggestions as far as any faults that stand out that I can improve on. Please know that if you look at the database files they are not complete yet.
Please try to be nice, I am newer to PHP and development in general. I really worked pretty hard on this for the last couple days. Again any suggestions would be appreciated. the url is github.com/jalvini/Cogs ...
 
Good morning!
@JoeAlvini What is it supposed to do? Where should I be looking? You should at least have a README with the basic information as documentation
 
Yes I still have to get the readme together
Basically what it will do is the same as most other frameworks lol. But it will also give the developer the ability to pre-create all classes that automatically connect to the database in advance. Again, its an educational project but theoretically if it was used it would automatically create the models that the developer wants created. saving time in coding them
I guess I still have to get a read me together for it to be more understandable
Its still early on and I have 3 weeks before this project is due
@rahuldottech but I guess you hit one of the nails on the head. Thats one of the things I need to improve upon.
Also I know the DB connections look like crap right now. I am still working on that
 
4:32 AM
@JoeAlvini Hey, you linked a repo, but what am I supposed to judge if I don't even know what it's supposed to be doing?
@DaveRandom May I ask you what's wrong with using $GLOBALS in this case? The main argument I've heard against them is that they make error-finding difficult, but since the variables are only used in one place here, I don't see the issue?
 
I gues your right. But how else would I show the coding behind a framework. I have a live website running on it. But its not all the way finished yet. I guess it was just more of the coding style that I was looking to get checked out. I am trying to develop good coding habits from the beginning so that I dont develop bad ones and have to unlearn them later on
I agree with you though. I am going to put together a detailed readme and a frontend for this and will be back to get it checked out.
 
 
1 hour later…
5:41 AM
Morning
 
morning!
 
I am building an angularjs e-commerce app, so I need php only for login authentication and logout for identifying the customers whom require the deliveries it's necessary to use sessions or tokens?
@webmaster777
 
5:57 AM
sounds like a plan.
 
yeah a plan for the login
o/
 
@mega6382 it's an acquired taste. It takes time to appreciate it.
 
o/
@Gordon any idea?
 
@Webdev I have lots of ideas
 
lol
please help me
 
6:08 AM
I dont want to be pinged with random problems. But yes, use an API token or a Session ID.
 
@Gordon do you advise with slim framework or the issue doesn't need?
do u advise to use slim microframework?
 
I am not advising anything without knowing more context and I am too busy to listen atm. Sorry.
 
last question it's easy task @Gordon
o\
 
 
1 hour later…
7:28 AM
 
morning!
 
mornin
 
o\
I am building an angularjs e-commerce api, so I need php for login authentication and logout for i customers so 1\ it's necessary to use sessions or tokens?
2\ do u advise to use slim microframework if I am newbie in authentications concepts
 
7:48 AM
morning
 
@Webdev For the back-end I'd advise something that has good docs, not just good marketing. Slim is supposedly good, I can advise on the Symfony side as the docs are good for authentication. Try Slim, you'll learn anyway!
You may want to use sessions for keeping the user logged in, tokens are for if you're building a REST api
Or one of the options, anyway
 
Symfony is too difficult compared to slim, but somewhat I know laravel
I think tokens for large apps
@Jimbo
tokens for websites that required balanced servers but not sure
@Jimbo if no sessions nor tokens the auth user still in the website for how long?
 
squamous covered with or formed of squamae or scales.
 
8:14 AM
Can somebody please explain me the meaning of 'PHP compilation options'?
I've asked an question too but didn't get answer yet.
 
Here is my Question's Link :
0
Q: What do exactly mean by "PHP compilation options"?

user2839497I'm using PHP 7.2.8 on my laptop that runs on Windows 10 Home Single Language 64-bit Operating System I've installed PHP 7.2.8 on my laptop using the latest copy of XAMPP installer. I come across the following text from Description of phpinfo() function from PHP Manual Outputs a large amoun...

 
abr
8:41 AM
Guys, I feel that the code I'm developing is somewhat "stuck" to how I approach it. Anyone knows any open-source project well structured? Including the testing part. I've been reading a lot but I'd love to see more indepth practices and how they're being used (I'm mostly looking for laravel but any project will do)
 
9:04 AM
Morning y'all
 
9:18 AM
o/
 
@Patrick did your book make you rich yet?
 
@Gordon not yet :D
 
@Patrick did it pay for a nice vacation or some other desirable thing?
 
sales have slowed down because I haven't blogged in a while
 
@Patrick that translates to what hourly wage?
 
9:27 AM
about 27
A little more than I would have earned at McDonalds :D
 
and you would have gotten free food ;)
 
instead I get free programming questions in my mail
 
Holy crap, actually had a duplicate ID key hit in 15k records
where the ID is a 32 char hex
 
@Sean what are you using to generate?
 
Oh god, I've never actually looked under the hood at the id gen code, sec I'll gist it
 
9:40 AM
> * This code was adpated from examples provided at
* @link http://php.net/manual/en/function.uniqid.php
stop_go_no_further_only_death.jpg
@Sean I think (though haven't had enough coffee to be sure), you would almost certainly be better off with just random_byte()'s of the same length. That code you're using is very likely only going to be able to insert so many per second without clashes.
actually.....it doesn't seem to have a time component, so lord knows what it's doing.
 
Wes
when in doubt, github.com/ramsey/uuid
random_bytes is probably faster though
morning :B
 
i need help in woocommerce rest api. is here anyone who can help?
 
@MukulSharma You should write your question before trying to get someone to agree to help you. If you write it in notepad, and then copy + paste it in here, even if no-one can help you now, you will have the question written down and you will be able to re-use it elsewhere aka sol.gfxile.net/dontask.html
Though, tbh, the chances of someone being able to help are probably low..
 
@dan
 
Wes
@dan
 
9:52 AM
@danack ok ,
 
@dan
 
Wes
@dan how do i learn this "have a relevant video for everything" skill
that's a movie i should probably watch in english
 
user image
6
 
I am using woocommerce rest API seb86.github.io/WooCommerce-Cart-REST-API-Docs/… how to get cart details of a specific user. there is not any option of passing the email or any other unique field.
 
9:58 AM
@Wes I think the trick is to become almost completely aphantasic which leaves lots of space for remembering memes.
@Wes oh, wait! you've not watched it in English? So you haven't heard Sean Connery's "Russian" """"accent"""" ?
 
Wes
nope :D
 
10:11 AM
Why is chrome the only browser that can use transitions on paths :<
 
3 messages moved to Trash
 
Wes
10:27 AM
neither of a and b
none of a and b
neither a nor b
i want to say "not a and not b", are these all correct?
 
> neither a nor b
is the only one that I would say.
but.....I normally try to avoid 'neither'. "The value must not be either A or B".
 
Wes
what if there's also c?
neither a nor b nor c ?
btw, italian has the same problem. it's hard to express boolean expressions in natural languages :B
i mean, it's easy to get confused
 
10:54 AM
@tereško what about complexity?
 
@Wes neither a nor b nor c is valid but I'd have to see what the real a, b and c are to tell you if it looks right.
 
@Wes "The value shouldn't be any of A, B or C".
 
Wes
that solves it, yeah :P
 
morns
@Gordon I guess, maybe
 
@Wes x ∈ {A,B,C}
 
Wes
11:04 AM
eh, i should write that
 
@mega6382 check out the new song. runs you over like a freight train.
 
Wes
aehm, another question.. how do i negate a noun correctly? like "any mode of transportation except cars": not-cars, noncars. "any character except the arabic digits" nondigits, not-digits?
thanks guys :B
 
@Wes non-car transportation sounds okay to me
so does non-arabic digits. but it's somewhat racist, don't you think?
 
Wes
:B
function test_that_..._is_not_a_non_ASCII_code_point(String $prefix, String $nonNonASCIICodePoint, String $rest){
 
11:26 AM
@Gordon Yes, this is exactly what i am telling you, just a bunch of guys yelling at the top of their lungs, and playing guitars and drums s brutally as they can. There is no soul to it, no melody. There is no poetry in it, so that is basically the reason, why i find it crazy.
 
@Wes any .. except
 
Morning!
 
for (int i = start; /* stuff */; i++);
if (i - start > 0) /* stuff */
sanity check, that if () is equivalent to i != start, right?
or i > start
my brain isn't working properly
 
Wes
i don't get the question :B
 
for (int i = start; /* stuff */; i++);
if (i > start) /* stuff */
@Wes ^ is that functionally identical?
 
Wes
11:35 AM
you want to know if i - start > 0 can be replaced with i != start ?
 
ignore overlfows
@Wes essentially yes, that > 0 has confused me
 
Wes
ok wait let me read
 
start is always >=0
oh yes it is in fact
because you can move an operand to the other side if you flip the sign
so it becomes i > 0 + start
then obv you can discard the 0
 
Wes
but how is the for even entered?
for ($i = $start; $i > $start; ...){ is always false on the first iteration
 
no, the for condition is based on other stuff
 
Wes
11:40 AM
aaaah ok then
 
the if is checking whether it was entered, essentially
a flag+break would be better actually
 
11:59 AM
@mega6382 err, it has a melody
but that's what I mean with acquired taste. It takes some time to discern the various elements. I remember when I first heard them. It was just a wall of noise to me. But not anymore.
 
Hello everyone! I need help with creating a WordPress plugin. Can anyone here help me?
 
@Gordon Thanks!
 
12:15 PM
@DaveRandom You're doing something different the first (or all bar the first) iteration of the loop? Extract it then do i = start + 1 ?
 
Morgninsincdz
 
Wes
i hate array oriented programming $this->data[$file][$k][]
 
Oh, never mind, didn't see you had a semi-colon after that for declaration... don't do that :/
 
user9059272
12:29 PM
What does it mean by the ordinal value of a character?
 
@SerialKisser what info are you looking for that googling that exact phrase didn't give you?
(passive aggressive questions ftw.)
 
user9059272
@Danack I am looking for the parameter list of strpos() function from PHP manual at URL php.net/manual/en/…
 
user9059272
There I saw this term ' ordinal value of a character'
 
user9059272
Please explain what is this to me
 
@SerialKisser googling 'ordinal value of a character' gives this result:
3
Q: What is an ordinal value of a String?

Suraj Adhikari Csit OrientoI'm confused about the term Ordinal value of a character or a string in php documentation. Can somebody tell me what exactly an ordinal value is?

2 mins ago, by Danack
@SerialKisser what info are you looking for that googling that exact phrase didn't give you?
 
user9059272
12:33 PM
@Danack : Thanks for providing the question link
 
-1
Q: not getting "invoiceId" in Paypal IPN sandbox?

Ram SinghI have set up a testing website for getting the IPN request and parameters and response. So that i can use the values for next features. i am just want to confirm only thing, whether sandbox returns the invoiceId or not. anyone, can you please confirm?

 
damnit... they are letting French Canadians in here now :/
 
@Gordon I guess, maybe
 
1:02 PM
Control for smilers can't be bought
 
xdebug's profiler, is it worth setting up or no?
 
Wes
no
 
@Tiffany try blackfire
 
thanks
 
Wes
it takes 2 minutes to set up but you aren't going to need it
 
1:08 PM
^^
 
@PaulCrovella don't need anything juuuust yet, following along some jetbrain's docs, and they include setting up profiler, looked it up, and wasn't sure if I needed it yet
 
Wes
it's for testing performance
 
@Tiffany ah, well when you do need something blackfire is pretty good.. less overhead than xdebug
 
right now I need to pick apart the code and figure out how stuff works and how values are getting set, @Wes introduced me to xdebug, but I need to configure it correctly for my environment because it's...different... (nothing against @Wes, I'm just picky)
 
Wes
you are so close, but...
you don't need to debug through your webserver
 
1:12 PM
it won't work any other way though
I won't get values, I get nulls
 
Wes
toldya, just write the pretend values yourself to simulate a request
you have to write literally $_SERVER['REQUEST_URI'] = "/path/i/want/to/test"
in fact that's how you test that stuff (kinda)
convince her guys :B
 
may I ask to ask a question here?
 
Wes
she is going where she shouldn't go.. her stack is pretty weird already, debugging through a webserver is a no no :B
 
okay, I do that, and the other code works, and then I remove that test... and it doesn't work... well I guess that would narrow it down to the problem
 
@rabbitguy Asking to ask if you should ask is not allowed
 
Wes
1:15 PM
lol
 
shit, so just asking if I could ask I have broken a rool. But wait, how was I supposed to know that I couldn't ask to ask if I couldn't ask to ask to ask?
 
Wes
@Tiffany !!debugging
 
@Wes good luck testing code involving move_uploaded_file() without webserver :-)
 
maybe by reading the chat description at the top right of the screen.
 
Wes
!!debugging
 
Wes
need to learn how step over and step in work
 
@FélixGagnon-Grenier German?
;)
 
Wes
@bwoebi just abstract it :P
 
yall know I'm just being difficult, right?
 
@Wes pfft
@rabbitguy no, we're seeing right through it and ignoring your pretended difficulty.
 
1:18 PM
@rabbitguy isn't that why you were suspended last time?
 
@rabbitguy Quit poking the bears.
 
lol...
 
@rabbitguy This is room 11. We invented being obtuse
 
@Wes why not?
 
no, I think I was suspended for just being a dick to the moderator in general
 
1:19 PM
@StatikStasis yeah, let's start with dragons
 
Wes
@Danack not necessary
she is editing code on the production server basically
 
@Wes hahahahah
 
it's not production
it's a test server
 
Wes
i am confused
 
1:23 PM
why would I be editing production directly?
 
Wes
then why can't you run php locally?
 
when I'm testing updating to 7.2?
 
@Wes She possibly meant a production mirroring test server
 
because I have a test server
 
@Tiffany They have very little faith in you, don't they?
 
1:23 PM
@rabbitguy no, that's not it
my stack is weird, I will admit, but I'm attached to how it works at this point, and I'm resistant to change it
 
Wes
it's that sometimes workplaces have weird rules
 
@Tiffany What's your stack actually?
 
VMs hosted on a server cluster, on-site
I connect to them through remote desktop or UNC path, or in the case of PHPstorm, a mapped network drive
 
And what's weird about that?
 
I guess because my development server isn't hosted through docker or vagrant or something on my work computer
 
1:26 PM
@Wes Lies
 
but, we have Windows servers, and I tried installing a local Windows VM one time, I did not enjoy it.
 
@Tiffany I do all the time. I like to live dangerously.
 
Wes
same here
 
@Tiffany I have multiple windows vms running here; in fact I'm writing here from within a win vm right now
At least since Windows 2016 server it's super easy
 
@StatikStasis there are a couple of files that I've edited directly, but they are essentially text changes inside some HTML, almost everything else I do on the primary dev server and move over.
@bwoebi maybe sometime this year we can switch to '16... 2012's Windows 8 interface is fucking annoying
 
1:29 PM
@Tiffany haha, yeah I really can recommend migrating
 
I search for something, and it opens a separate program -_- ... not what I wanted, you stupid OS, and it's fucking fullscreen.
@StatikStasis I either have "accidents," or I end up making a change directly on production, then I'm not sure which file is the most current, the one on production or the one on dev. I run WinMerge to verify stuff, but I'd rather not have to go that route, which is why I don't edit code directly on production.
 
That sounds exciting
 
Incredibly
 
@StatikStasis There's nothing funnier than triggering bugs through other seemingly unrelated changes and needing a lot of time to track things down. It was supposed to be straight-forward
 
1:48 PM
@bwoebi Yeah, that does suck. I've never had it happen thankfully. Usually they are very minor changes.
 
I am in a middle of optimizing code-
this is my sample code
can you guys suggest which is the convenient way to optimize code-
there are 2 options .which one is better you think?
 
deleting all the code will optimize it
 
good call hahaha
 
@Exception what's the root reason for optimizing it?
 
reduce memory usage and increase script speed
 
1:55 PM
do you have ways to benchmark them?
 
How?
 
how do you know you're optimizing if you don't test it?
 
that's for you to answer... the point I'm getting at is how do you know that you need to optimize the code?
 
@bwoebi you think you can handle that? :P
 
Aug 14 at 9:43, by Danack
@Exception "so optimization is the utmost priority" You totally misspelled "finding what causes bottlenecks"
 
Wes
2:02 PM
@Danack apart from @covers, do you have any idea of what the bottleneck in codecoverage is?
i tried to change in_array with equivalent isset() at random and it didn't seem it did a thing
 
Wes
2:18 PM
will need to profile
 
btw Jay txt me back this morning, he's apparently all good and said he would be dropping by later today /cc @pmmaga
 
did he say how police academy was going?
 
8 weeks left apparently
 
I hope he made friends with a guy who can make funny sound effects with his voice
 
Wes
@Tiffany Cadet Jay Mahoney
 
2:26 PM
I hope he made friends with Bobcat Goldthwaite
 
Wes
i'd pay good money for that
 
@DaveRandom nice :)
 
Wes
btw they are rebooting police academy (really). not sure if jay is going to be in it though (probably not)
 
it's just one disappointment after another these days
 
Wes
i don't mind about reboots, it's not that they ruin the original. sometimes reboot are ok... although not often
 
2:29 PM
I did like the star trek reboot
 
Wes
ocean's eleven. i think most people don't even know it's a reboot (i didn't)
 
@Wes like the reboot of reboot
 
the full house reboot didn't fare so well
 
Wes
didn't even watch the original :B should i?
 
no, it wasn't good either
 
Wes
2:33 PM
great then :P
 
it was enormously successful because it was on... we didn't have many options back then
 
@Wes I liked that Casablanca reboot with Pamela Anderson: Barb Wire.
 
Yeah, my kids have no idea what it meant to have maybe 12 channels (and that was if you lived in a major metropolitan area)
 
Wes
12 channels is a lot here #stillsecondworld
 
when I was a kid, we had three channels. they were all state funded. late 80s introduced privately held channels but I didnt get to watch them before the early 90s I think
 
2:40 PM
When I was a channel, we had 3 kids
 
we had 2. state owned. :D first privately owned only came about in 92
 
@Machavity my friend's daughter can't comprehend that tv isn't like netflix or youtube, that she can't just pick which show to watch at any time
 
we had around 30-40 channels growing up but that was with a cable subscription, then moved, didn't have a cable subscription, so down to three channels
PBS was state-owned, but that's the only one I can remember... CSPAN might've
 
Wes
interesting. berlusconi's private tv was already a thing back in the '80
most of people had 6-7 channels since 1980 here
3 government run - 3-4 private
 
berlusconi and state were interchangeable back then :P
 
2:44 PM
@Tiffany PBS is not owned by the government. Nor is CSPAN.
 
shows how much I know
 
Wes
first mandate of berlusconi as prime minister was 1995 or something, so not really :P
 
I guess the words I was looking for was "publicly funded"
 
Wes
silvio has always had the government funded tv against, even while he was prime minister
 
PBS gets some of its revenue from governments (as it tends to get subsidized shows too), but it gets most of its funds through donations
 
2:47 PM
I don't remember what I was doing last on my project ...
I think I started overwhelming myself with fake classes
 
I've started to loathe the word fake. It's like "gourmet" or "toxin," bullshit artists ruined the word so it's lost all meaning.
 
it's what the author in this book calls them, to override parent classes without modifying the parent class' behavior
 
@Tiffany Usually the first half-hour or more after I revisit a project is just trying to remember what I was doing.
 
fake object An object that impersonates a collaborator of a class during testing.
 
@Trowski So HHVM isn't fake PHP?
 
2:58 PM
@Machavity wouldn't that be Hack?
 
@Tiffany Sure, and until recently I would have used the term too. That comment wasn't really directed at you (or the author).
Or is PHP fake Hack?
 
@Wes I didn't know there was a bottle-neck in code coverage. I know xdebug slows stuff down but I've not seen anything related to code coverage per-se.
 
Wes
@Danack you said that @covers improves performance - means that codecoverage's own collecting data's code is the bottleneck
 
I don't recall saying that - I think I meant that the data generated is less, and so more accurate.
 
Wes
in fact it is fast if i run the test suite with xdebug active but without generating code coverage it takes about 4 seconds
 
3:10 PM
without regard for performance.
 
Wes
ok
if i tell phpunit to use the coverage data of xdebug/phpdbg, then it slows down massively, like 10-15 minutes
 
is this library shareable?
 
Wes
yes, but it's no different from any other
and in general that class
 
morns
2
 
Wes
how you doing?
 
3:25 PM
@Wes really good thanks, and yourself?
I just saw rabbit guy in the star list, so might head off now
 
Wes
all fine, enjoying some programming on personal projects
 
@Wes lol
 
Wes
so are you a policeman now?
 
indeedy, I assumed the stripper work would have come my way by now but still waiting
is R11 still a wonderful place of joy and happiness?
 
Wes
lol
it is...... well unless @Gordon is here
you know germans...
 
3:30 PM
he's still yet to wish me a good morning.
 
@JayIsTooCommon you've got to think of that as more of a hobby, rather than a career.
 
Yo Jay! o/ long time no see
 
hey dudeee, have you proposed to @PeeHaa yet?
 
not yet, he's insisting that he's not my type
 
3:38 PM
good, I knew he'd stay loyal while I was away
 
@JayIsTooCommon o/
 
Wes
@Danack affirmative, that's the function that makes code coverage slow
 
is there way to mark a phpunit test as unessential via markup? so when it errors instead it gives a warning or something. Every now and then a test fails due to to stripe/paypal or other third party apis throwing 500 errors
 
Wes
3:43 PM
for example applyWhitelistFilter itself takes a lot of time, should be a trivial thing to do but instead it's not
i think i can try optimizing stuff
> \realpath()
here's your problem
 
@Moak I normally mark those with group annotations, and don't run them by default.
 
@Danack nice idea thanks
 
ha there is our son \o/ hola @JayIsTooCommon
@Moak Assuming this is for integration tests and not unit tests where you don't hit the actual stripe servers I would catch the error and mark the test as skipped
That way you can provide info why it is skipped
 
@PeeHaa Yea, that's true, should really be separating these
 
00:00 - 16:0016:00 - 00:00

« first day (2865 days earlier)      last day (2087 days later) »