« first day (2651 days earlier)      last day (2291 days later) » 
00:00 - 20:0020:00 - 00:00

12:05 AM
Off topic guys, I’m having internet issues wondering if you guys have had experience with something like this. Time Warner/Spectrum has no idea and are blaming my modem that I own since they don’t know what’s up...
Can’t reach websites besides google Facebook and YouTube. Other sites get error of took too long to respond. Then after 2 minutes they all work normal again
Down speed is 360mbits and up is 23mbits with no issues once the timeout issues stop happening...
Tried time warner’s DNS resolvers and google’s, no difference
 
12:28 AM
Odd
 
12:45 AM
Yeah one problem down one to go!
 
 
1 hour later…
1:53 AM
php, dates, null(or empty values) are not my friend
 
Wes
some internals people around?
 
2:07 AM
@Wes oh yeah hi
I have a terrible sleep schedule
 
Wes
hi. me too :P
so i'm writing an userland function that retrieves the caller class scope, if any
i'm doing that by traversing debug_backtrace
it works but it's quite slow. i was wondering if this function is available in php somewhere
i'd like to expose it to userland with a small extension
(function(){ baz(); })->bindTo(null, Foo::CLASS)();
function baz(){
    (function(){
        callerScope(0) === "public";
        callerScope(1) === Foo::CLASS;
    })();
}
(0) is public because baz is not bound to a class, (1) is FooClass because the closure on line 1 is bound to Foo. that's what i'd like to do... is there something like this in php core?
problem is not traversing the trace, is putting it into an array. it takes ages :(
phpunit's stack frame is infinite
 
How would you deal with inserting a null value for a date into a db. I've seen so many different ways on here and google
 
 
1 hour later…
3:26 AM
Undefined relation when objects compared – #75839
 
4:23 AM
morning room.
 
4:40 AM
Night room.
 
5:12 AM
morning
 
5:23 AM
o/
 
6:21 AM
!!dad
 
What do you call somebody with no body and no nose? Nobody knows
 
 
1 hour later…
7:41 AM
Yay ..! My server is configurated completely and all needed software/services are installed on.
 
8:00 AM
heartsome Chiefly Scot. giving cheer, spirit, or courage: a heartsome wine.
 
8:20 AM
@Shafizadeh "configured"
 
gut moaning
 
morning
 
morning
 
\o
I feel like no matter what time zone I am in whenever everyone is waking up It is time for me to sleep
 
well that's what happens when you live in Tonga or Samoa
 
8:48 AM
goat morning
5
 
mornin
 
Anonymous
9:23 AM
\o
 
10:05 AM
moin
Sep 15 '17 at 10:28, by DaveRandom
Another day, another catastrophic hardware failure \o/
Exchange server RAID array has lost two drives overnight \o/
luckily this one is not my problem
I just have no work email. Which I am really upset about. Honest.
 
I'm not sure if that's really honesty or not
 
no no, I'm completely devastated that no-one can add to my huge pile of shit to do and that we will be getting a branch new Exchange 2016 server
it's literally the worst thing that has happened to me at work all second
 
moin
 
:P
 
@Alesana I don't really know how that PR has gone unmerged for this long, sorry
@PeeHaa I'm just going to merge it and we can test it in production because that's how we roll anyway
 
10:19 AM
It's okay, I only just now made the changes anyways :P
I wouldn't have a problem installing Jeeves locally and writing tests I just couldn't figure it out
 
Getting it up and running locally is actually dead easy, the only tricky bit is that you need an SE OpenID attached to an account with enough rep to chat
which a lot of people don't have
Although you can create one and attach it to your account I think
it's also easier if you use a second account for it, it gets a little confusing when the bot is logged on as the same account you are using
 
I don't remember what I was running into problems some time ago but I tried attaching it to my account and I couldn't get it working. I think I got it running
 
but that requires that you actually have a second account with enough rep to chat
 
Ah I was thinking there was a way to give commands through some CLI
 
no, we toyed with that but it kind of makes no sense, the bot is, in general, interacting with people and often performs actions as well as producing output
there is a very old issue for it, we could maybe create some kind of CLI for testing the output generated but in a lot of cases the output generate depends on the success of performing some action that would fail if not in a chat room
 
10:28 AM
morning all o/
 
we could probably mock the ChatClient API to make it look like actions were succeeding, I suppose
 
I see, I don't really see too much of an advantage though. I don't remember what it was I was having trouble with but I tried to authenticate it through my SE OpenID and it didn't seem to be working.
 
facebook.com/UnbiasedAmerica/photos/… unsure if genuine but lol if so
 
I don't think I tried very much though
 
@Alesana honestly, the auth process is probably the least refined part of the entire app
it's really complicated and I just haven't put the time into understanding how it actually works
rather we just made a thing that Works™ and have since ignored it
there are probably cases where it doesn't actually work
 
10:34 AM
:P Maybe when I get some time I will try to set it up again so I can play around with some other things
 
@DaveRandom Looks legit from the Business Insider article and associated press image. I'd say it's crazy but the amount of people that do that here makes me a sad panda
 
in JavaScript, 18 hours ago, by molham556
o vanilla.js is not a framework ?
 
@Alesana If you are using the same account as the bot to communicate with bot, it will not work you have to enable dev mode first for that.
 
I will have to try again and see what happens
Not tonight though :B
 
hmm... how do I phpize an ext for a php ext without doing make install on the target version?
oh nvm
 
11:12 AM
morning
 
Hello.
 
Hello guyz! Anyone worked with Twig Template?
Unable to open a web page and it says, This page isn’t working - is currently unable to handle this request.
HTTP ERROR 500
This is happening only for a specific page but others work.
 
500th error most likely indicates, that you have disabled showing of errors
 
@user8512043 Check the error log in web server log directory.
 
11:25 AM
This is the link - fagroupintl.com/financial-consultants. Never mind - How can I see error or showing errors? Could you kindly guide to check that?
 
What OS and what web server?
 
@Sean I recently (a few months ago) removed all the complexity requirements for passwords at work and just made it minimum 20 chars. People bitched about it for a few weeks, but since then I have heard nothing and, crucially, have not had to reset a password for someone who forgot it the entire time. Previously I was doing that on a near-daily basis.
 
@Tpojka it's not important
 
For pointing location of error log file?
 
@Tpojka that location can be changed
 
11:28 AM
it can, but chances are that people who don't even know to look at it haven't
 
That's why I asked.
 
@DaveRandom top-notch journalism there
 
Should I include in the error reporting with PHP tags in Twig?
@tereško.
 
you should enable the errors at the top of the file, which is the entry point for your application
... so that it is easier to disable it later, when you start thinking about moving the code to production stage
 
11:34 AM
OK.
 
The best thing to do is to set it in php.ini in your development environment
 
true
 
set error_reporting = -1 and display_errors = 1
 
but he might be running in some shared environment
 
are those .htaccess-able?
 
11:35 AM
IIRC, nope
 
:-(
I set them as php_admin_value in fpm
 
Wes
gooooooooooooooooooooood morning elevenam
 
o/
 
11:55 AM
Morngins
 
@DaveRandom Yup, I do think our requirements are excessive when they could just be based on length
I'm still surprised it's worked out so well though!
 
Wes
12:31 PM
@DaveRandom would you fund? twitter.com/WesNetmo/status/953966559969587200 :B
 
no :-P
 
Wes
i love this series so much :D
 
!!canon list
 
The following canonicals are currently supported:
• class → https://stackoverflow.com/q/2206387
• classes → https://stackoverflow.com/q/2206387
• crypto → https://stackoverflow.com/a/30159120
• encrypt → https://stackoverflow.com/a/30159120
• encryption → https://stackoverflow.com/a/30159120
• errors → https://stackoverflow.com/q/845021
• globals → https://stackoverflow.com/q/5166087
• headers → https://stackoverflow.com/q/8028957
• html → https://stackoverflow.com/q/3577641
• json → https://stackoverflow.com/q/29308898
 
458
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
1:01 PM
Could not build pcntl extension – #75841
 
1:52 PM
@Jimbo I've found a description of a certain framework: youtu.be/CJQU22Ttpwc?t=1m27s
2
NSFW AUDIO
 
I has Stack in there dude
Nicely done
:D
 
2:09 PM
Hey does anyone remember a proposal/request on @internals (i dont think it was an rfc) to add PHP_AUTH_BEARER to $_SERVER?
 
Wes
12k, will sell at 14
 
@Stephen no, but I don't like it because it's perpetuating the existing bad model. It should be PHP_AUTH_CREDENTIALS.
we should not go round defining constants for every new authentication model that comes along, rather just expose the raw value and then provide APIs to process that data
 
2:29 PM
m.youtube.com/watch?v=L2bqz-WKMEo maybe nsfw but funny.
 
Wes
lol
 
@Stephen actually looking at it further, that's essentially what PHP_AUTH_DIGEST is, except it's not generic enough (it's only populated when AUTH_TYPE === 'Digest'). It's not pre-processed in any way though.
 
@DaveRandom It should just be HTTP_AUTHORIZATION, no?
 
@kelunik No, it's already partially parsed
breaking it up into AUTH_TYPE and CREDENTIALS does make sense
AUTH_TYPE already exists
it's just the special pre-processing of specific values of AUTH_TYPE that should die
 
@DaveRandom Anybody can just do explode(" ", $header, 2).
 
2:35 PM
it still makes sense to be able to do switch (AUTH_TYPE) { case 'Basic': /* stuff */ case 'Bearer': /* stuff */ }
@kelunik sure, but the point is that AUTH_TYPE already exists
it's a bit stupid to have that and also require people to manually parse the header
it's even more stupid to have that data available, in a constant, but only when AUTH_TYPE === 'Digest'
 
@DaveRandom So then just add PHP_AUTH_{$AUTH_TYPE} with the value and be done with it, which is PHP_AUTH_BEARER then.
 
um... no :-P
Just model the damn protocol properly :-P
The authorization header has two components. Either expose both of them, or don't. But don't do half a job, and don't force people write weird code that determines which constant to fetch based on the value of another thing, and the constants would all contain the same data anyway, just with different names.
that would be ridiculous
 
Providing HTTP_AUTHORIZATION is the proper way, it's consistent with all other headers then and you don't need stuff like RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}].
 
The fact that PHP doesn't have a uniform, consistent way to access arbitrary headers is problematic, yes, but it's a different problem.
The PHP_AUTH_* already exists
it probably shouldn't
but that ship has sailed
 
@DaveRandom As does HTTP_, just not for the Authorization header.
 
2:42 PM
let's not perpetuate the problem by adding new custom shit for every new flavour of auth that comes along, especially considering the fact that it's just the same raw unprocessed string exposed with different names
 
Isnt getallheaders the way to access arbitrary headers?
 
@Stephen Only with Apache, no?
!!docs getallheaders
 
[ getallheaders() ] Fetch all HTTP request headers
 
Not according to the docs
 
It works with CLI SAPI
 
2:44 PM
And ive been using it with php-fpm for a few years
 
but it's not universal, and it's not a good format of data that it returns
 
Not universal? Where doesnt it work?
 
it's case-sensitive, and it has no way to handle multiple headers of the same name
 
Ok, support for other SAPIs has been added, I just remembered that it's an alias for apache_.... I've not used these things in ages, thanks Aerys.
 
@Stephen possibly everywhere by now
 
2:45 PM
@DaveRandom It's not case-sensitive, it doesn't allow any input variables.
 
It doesn't normalize key casing though
If the client sends content-length and the code accesses Content-Length, no worky. Unless some other layer normalizes the keys. Which is, again, not consistently going to work everywhere.
regardless of this... given that AUTH_TYPE is already a thing, AUTH_CREDENTIALS should definitely be a thing, given that no other type apart from Basic is processed in any way.
It covers what people want, without creating a situation where we are stuck with auth schemes that come and go baked into PHP forever, and without needing to explicitly add support for new schemes.
 
@DaveRandom Which is perfectly fine, some people want the original cases for some cases.
 
It is a decidedly less than ideal API, because it makes common cases difficult. It would not be particularly difficult to design something more user-friendly and more universally useful.
that's really way away from my original point though
which is that PHP_AUTH_BEARER is crappy, given that it would contain the exact same data as PHP_AUTH_DIGEST, only with another baked-in conditional. And when PHP_AUTH_NEWSEXYTHING comes along, that will contain the same data with yet another conditional define. We should just unconditionally expose the data in a thing with a generic name.
 
String concatenation – #75842
 
That is literally all I am saying
 
2:57 PM
@DaveRandom I think you misspelled "beer"
 
3:16 PM
@DaveRandom you're right, of course. I agree a generic name for the value part would be better.
 
3:52 PM
evening
 
... client's shared webhost finally put 7.2 on server!!!!!
 
hmm ... I am stuck on 7.0
 
that version, where void return type was throwing errors all over?
 
4:13 PM
When you're writing a data mapper do you usually have some kind of DTO class that acts as the transport layer between different mappers and the repository? You can keep the data mappers compliant by having an interface, but not neccesarily their implementations of the methods.

Or is it that factory is injected into the data mapper rather than the repository?
Also, morning. :D
 
my mood has gone from "fine" to "KILLKILLKILL" all because I can't log into my database via workbench
 
@Tiffany Have you tried that black workbench with the white blinking cursor?
 
@Leigh yes, but I want a visual aid
because I don't know exactly how I need to write this query, and I don't want to fuck it up via CLI
it's frustrating when trying to do the automated process takes longer than doing it manually -_-
 
why can't you login?
 
I'm guessing it's because the user doesn't have privileges to connect from my computer, trying to figure out how to grant privileges so it can, but the phrases I'm using in google are.. not productive
 
4:21 PM
ssh tunnels are your friend
 
nevermind
I realized whta you mean
 
No mention of storage requirements
 
"small increase"
 
> which allows representation of real numbers accurate to the last digit.
Does that mean up to sizes currently available, or the last digit of an arbitrary float?
Also if for example he can accurately represent a float32 with a small increase in size, to keep it as a 32 bit value the range of values will have to decrease... so is he saying "I can store them accurately, as long as the numbers are smaller"?
 
4:41 PM
@Allenph short answer: no
I actually have a mapper only managing entities with specific conditions
for example, a "profile mapper" will only know how to retrieve profile by profile ID or by account ID
the other conditions go in separate mappers
 
@Leigh wondering if it can accurately represent integers
 
and I pick which mappers to apply to which entities in the service layer, @Allenph
TBH, I can't remember, when I last time needed to use a repository to isolate that logic from the service layer
 
lol, I shouldn't have bothered connecting to this database via workbench. each form is a table, and each table has columns like "element_1," "element_2" and so forth...
 
@Tiffany have you tried SQLectron - it has a built in options for creating a tunnel
 
@Leigh no, it says it keeps check of the max possible error, and you can check if the results of the calculation are usable from that.
 
4:46 PM
also, lol @ table names
 
Or you need to do the maths in a different way to avoid generating such a large max possible error.
 
@tereško Erm, you need a repository somewhere to ensure that you're not querying twice for the same data, don't you?
 
hello brothers
 
@Allenph not really a common scenario in PHP, since there is no shared memory between requests
I am not saying that repositories are pointless
but they usually are not necessary
 
I am newbie no linux, I just installed apache mysql php on ubuntu, and I want to copy one project from one partition (windows) to another one(linux), I have this message ""the folder canno't be copied because you do not have permissions to create it in the destinatio""
 
4:49 PM
@tereško workbench does too.
 
@Stephen in that case, the UI for it is so fucky, that I have never even noticed that feature
@khalil not related to PHP ... also, slowly read the fucking error message
 
@tereško I don't have workbench installed but im pretty sure its just a drop down "Connection method"
 
@Stephen hmm, yes, there seems to be .. odd
last time I clicked on that menu (probable some time around 2005), there was no such option there
 
@tereško very fucky, took me a while to find it, and if I haven't used it in a while, I forget
 
I guess you're on windows @Tiffany?
 
4:54 PM
@Stephen indeed
 
bleh.
bad UI design is par for the course then :P
 
@Stephen how is the workbench different in windows from the one in linux? Please stop the fucking FUD
and if you actually don't know, then why did feel like your opinion added anything?
 
sigh, guess I need a new work mouse, middle mouse button isn't actuating
 
:-/
 
I gifted myself MX 2S from the xmas bonus
 
4:59 PM
normally work provides mice, but I bought one the last time, I think it's lasted two years?
 
@tereško calm your tits. It's a joke.
Jesus fucking christ
it's a GUI app provided by Oracle Corp. of course it's a terrible UI on every platform.
 
It'ls nearly beer o'clock, he'll be fine soon
 
@tereško I know it has the functionality, because I've fucking used it, and suggesting someone install a different program because you're not aware it has said feature and then getting shitty about it is a dick move on your part.
 
nice shifting ..one could have almost missed it
 
woah :O
 
5:03 PM
however, my contention was that you where talking about workbench's UI on linux vs windows
 
its not so much that the UI is different on windows, its that the terrible nature of it just fits with the rest of windows.
I never mentioned linux. the UI is the same on all platforms basically
but on windows everything is fucked, so workbench just blends in
 
it has the same UI ... so, maybe it blends in with the terrible UI in some other OS
 
thats my contention
have you suffered a brain injury?
re-read what I wrote
now you're not even making sense
 
I joked that shitty UI is par for the course - normal - on windows.
sigh all you want, my point was clear.
fucking christ
 
5:06 PM
but the windows UI is fine
 
well
no
 
so you are just spreading FUD
 
you're wrong
I don't think you understand what FUD stands for
I'm not making claims about what Microsoft or Oracle may do in the future
im stating an opinion about the current state of their respective UI design
both are fucking terrible
 
bullshit
 
you'll have to be more specific than that
 
5:09 PM
what you are saying is bullshit
 
about what
how an opinion on UI design is categorically not "Fear, Uncertainty and Doubt"?
 
and I don't intend to continue arguing with you, because I don't have the time to waste
 
bye
 
Glad to see the WotD is appropriate today.
 
so yeah Jon Skeet got 1m reputation
 
5:14 PM
@Fabor ??
 
read the blog post, crazy
 
@Fabor MACD is stupid and I hate it, there's your cheer
 
heh
You buy anything during the dip @Leigh?
 
Sure did, and then I sold it when it looked like it was going to turn down again
cryptowat.ch/gdax/btceur/5m check how many times it reversed
 
heh
Correction seems well in place now.
Hopefully a fairly steady climb all year now.
 
5:19 PM
Noo, I need it to drop to about 9400 again so I can buy back in :p
 
Or buy some erc20 coins
 
nope
 
The faculty member I was hoping to have sponsor my parameterized types work declined. I need to find another professor :(
 
@LeviMorrison you should have worked on Java project instead
probably something related to ODBC
 
The issue is none of the professors here are researching programming language stuff.
 
5:29 PM
hmm ... odd
 
They declined on grounds they wouldn't be comfortable mentoring the project since they don't have expertise in the area. Mentoring is required for me to get credit for the course.
 
did you accidentally sign up for gender studies?
 
Getting credit is important because that's about the only way I'll have time to dedicate to it.
I don't really need a faculty mentor to help me; just sign the papers...
 
so, I will take it as "no"
 
user379888
Where do we write mysql queries in laravel 5?
 
5:34 PM
you are not supposed to, because Eloquent is glorious
also, @FahadUddin, please note, that there is no "we" ... there are like one or two users in this chat who would work with laravel without extensive hazard pay
 
user379888
Thanks
 
@LeviMorrison did you tell him that you don't need him to help you, that you just need signatures?
@tereško ...not sure if sarcastic...
 
@Tiffany it implements active record
 
5:54 PM
is that good or bad?
 
I consider to be an anti-pattern
 
I must have something going on with my one of my db's or my account so I changed the db name and we shall see what happens
 
6:09 PM
posted on January 18, 2018 by CommitStrip

 
@Feeds Fallout programmers.
 
heh
No one loves hacking terminals, I liked it though.
BioShock's versoin was good too
 
I fucking hate terminals. Occasionally they make NO sense. Maybe I'm just an idiot, I don't know.
 
Plenty of mods to get around them :P
 
Xbox.
 
Wes
6:17 PM
evenongs
 
o/
 
@Allenph -_-
 
What?
 
Xbox Fallout
 
I honestly prefer Xbox. I just want to sit on my couch far away and be able to turn the thing on and play with my friends.

And not have to mess with anything. I get plenty of that in my other projects and at work.
 
6:22 PM
@Allenph just by SteamLink
it costs like $10 on sale
 
Meh. I suppose. I've done something like that before. I used to fix Xbox 360s for some cash when I was a kid. I took one of the boards that did the lights and controller connection off of one of the broken ones and programmed a PIC to simulate the XBOX and then transferred the signals to a USB encoder...wrote a driver in Java and then used my Xbox 360 controller to play games on the computer.
The problem was that a lot of the time I had to open multiple programs or fiddle with things, and then I'd have to get up and do it on the computer because I can't exactly Alt-Tab with a controller and using a joystick as a mouse is terrible.
 
How useful is type hinting?
@Allenph How old were you then?
 
Like 11 or 12.
 
Impressive
 
Not really. :p
 
6:30 PM
Well for an 11 year old to understand the XBox architecture is impressive
 
"Wrote a driver in Java" sounds.. wrong
 
@Leigh how come?
 
Because drivers are usually kernel mode binaries
 
So then you know why it sounds wrong
 
6:32 PM
I don't remember exactly how I did it, it was 10 years ago...but I know I never wrote anything in C or anything like that.
 
He probably wrote a Java to x86 compiler that does not make use of the JRE
 
Ah yes, of course...
/me backs away slowly
 
Wes
i'm still not sure if i like the standing desk or not
 
Wes
7:08 PM
!!summon bwoebi
the other time it worked
 
@Wes You have one?
 
Wes
a bwoebi? i wish
 
An example generates a notice – #75844
 
heh creepy
 
Wes
:B
 
7:13 PM
@Tiffany No - I haven't responded yet. I may tell him so but am unsure how to do so...
 
Wes
i doubt they make them in series
 
@LeviMorrison I'm not one to beat around the bush, but I would just be direct. Depends entirely on your relationship with the instructor and his personality, though.
 
7:48 PM
@SaitamaSama Up for some mayhem?
 
00:00 - 20:0020:00 - 00:00

« first day (2651 days earlier)      last day (2291 days later) »