« first day (2564 days earlier)      last day (2384 days later) » 

12:55 AM
ohaio o/
 
Wes
\o
 
1:12 AM
anyone dressing up for Halloween?
Last year I went as a conspiracy theorist. I wore my tinfoil hat, sunglasses, hoodie, and walked around drunk telling people all the conspiracies they didn't want to hear about.
2
good times
 
1:37 AM
@crypticツ the party's theme will be "redneck"
I intend to go dressed as a cowboy, originally
though the thought of impersonating Trump just crossed the mind
 
Wes
1:57 AM
@crypticツ ahahaha that's exactly like how i imagine the every day you
 
 
2 hours later…
3:59 AM
Anyone familiar with OAUTH2 Flow ?
 
4:32 AM
moin
 
5:05 AM
How to enforce type hinting for a file?

public function closeFile(File $file)
Why doesn't php have such class explicitly?
 
5:18 AM
because it wouldn't make sense, because files are resources not objects ...
 
@JoeWatkins It make sense when a file is opened through a function. It should be turned to an object which should have the same behavior as file.
 
@BasheerAhmedKharoti SplFileObject
 
that's your opinion, you're entitled to it ... even if it's stupid ...
 
@JoeWatkins bad argument. You can create objects without methods on them. Which are defacto like a resource, but can be hinted like normal objects.
 
yes, but we haven't ...
 
5:29 AM
@crypticツ I think I'll go as a Laravel developer. because they are scary as fuck.
 
files are, as a matter of fact, resources today ... so you can't hint for them, and if you could, it wouldn't make sense ...
 
I heard Stephen King is writting a sequel to It! called Them! featuring Laravel devs instead of clowns.
 
@JoeWatkins I still don't get why we don't…
 
5:40 AM
rewriting large portions of php for not very much gain is not appealing ...
<?php

class LazyFileAbstraction {

	public function __construct(string $urn, string $mode = "r") {
		if (!($this->res = fopen($urn, $mode))) {
			throw new Exception("can't open {$urn} in {$mode} mode");
		}
	}

	public function __call($method, array $args = []) {
		if (!array_key_exists($method, self::$allowed)) {
			throw new RuntimeException("cannot call {$method}");
		}

		return call_user_func_array("f${method}", array_merge([$this->res], $args));
	}

	private static $allowed = [
		"open" => true,
that's horrible, but if you are really needing to hint against a file, there's a million ways to do that in user land ... there's no real incentive to destabilize functionality at the core of php for the sake of ... I don't know what, some sort of purity that doesn't fit with php ...
 
Morning
 
Does someone know any js/php/mysql library for making a chat in website?!
 
a nicer api would be appealing, writing an oo api that supersedes the old crusty one seems like a good thing to do, but making the crusty one look or behave like an object ... meh ...
o/
 
\o
 
o /
 
5:50 AM
Yowza, medical bill came to £2335
 
@JoeWatkins isn't that exactly what SplFileObject is/does?
 
not really ...
look to any other modern language, was thinking about a reader/writer/[byte/csv/??] stream is the kind of api I'm thinking of ... not just bunching all of the f* functions into one object
 
class SplSomething extends SplStupid implements SplAlways
 
@Gordon :( and rent is cheap up there.
 
6:10 AM
@Fabor go for it. no one forcing you to stay a ladyboy in asia
 
I can't be both?
 
you can be a ladyboy in scotland, but you dont have to anymore. I mean, they offer a real job.
 
It's a lifestyle, not just an occupation :)
@Gordon Play Terraria
 
@Fabor Play 7 Days
 
We've reached an impasse.
 
user379888
6:19 AM
Can someone explain what LFS file storage of 5 gb here means?
 
@FahadUddin this was at the bottom of the page, confluence.atlassian.com/bitbucket/…
 
@Ekin Play Terraria
 
@Fabor play Orwell
 
We've reached an impasse.
 
6:27 AM
:-)
 
4 days till Stranger Things 2
Feels like they got that series out fast.
 
And how long till your recovery?
 
Well I left hospital yesterday (officially today), can sleep now so just stretching and yoga till I feel like I can lift some weight. A few weeks. Still a little pinching but tolerable :)
 
:) good to hear that
 
Bill was £2k, which is insane for Vietnam.
 
6:31 AM
:( plenty indeed
 
Insurance paid 95% of it. :)
 
Ah well, lucky you
 
user379888
I am looking for a way to auto deploy to testing sites and to live sites usig bitbucket.
 
git webhook
 
What's the concept of "webhook"?
 
6:42 AM
http(s) callback
 
6:58 AM
Incorrect ldap_set_option() parameter documented – #75417
 
7:33 AM
 
o/
 
\o
 
7:50 AM
o/
 
mornin
 
Anonymous
mins
 
moin
 
8:14 AM
I have an android app and a website for an event and I want to create an API that will have all the data regarding the events and both can use it.. what should I do? Someone did tell me to use Heroku.
 
Anonymous
!!wotd
 
cruciverbalist a designer or aficionado of crossword puzzles.
 
AKA nerd
 
8:32 AM
I am in the mood for the Chilis today
starting with one hot minute
 
@ScottArciszewski The situation improved a lot as of PHP 5.6.
 
@DaveRandom chilly down?
 
Bit of a random non-php question, has anyone ever looked into savings, bonds etc with compound interest?
 
Anonymous
No, I tried a new kind of crisp at the weekend though
 
Anonymous
Parsnip, beetroot and sweet potato with sea salt
 
8:48 AM
@Jimbo Nope, but I know @PeeHaa's mom has an interest in bondage in her compound's basement
 
I knew there'd be something related to bonds
Thanks @Gordon
 
Anonymous
Thanks Gordon?
 
You are welcome
 
also I have looked into random compounds with interest, if that helps
MDMA is a good compound
 
9:10 AM
I think I will propose laravel.se
 
@Jimbo I have done some savings. In the end, I don't think it's worth it considering the interest rates here
 
we have 75k questions tagged laravel by now. thats the same as drupal.se has in total and only 10k less than wp.se has. so let them have their own stack. free php!
 
How to exit out of array_map?

   array_map( function($v) use ($roles, $k) {
                            $k = array_search($v, $roles);
                            if ($k !== false) { break; }
                        }, [
                        Role::ADMIN, Role::MANAGER, Role::TAX_PREPARER, Role::CLIENT
                    ])
 
@Jimbo So, I'm thinking of investing in funds
 
@BasheerAhmedKharoti you cant. use foreach instead.
 
9:13 AM
@Gordon :/
 
@BasheerAhmedKharoti no, it's not :/. the point of array_map is to apply the callback to the elements of the given arrays
and what is that snippet supposed to do anyway?
 
3 messages moved to Trash
 
mornings, v1.1.103 o/
 
@ToukaXKaneki did you listen to the RATM album?
 
yeah, I listened to the one @Wes linked and another one I don't remember... it wasn't too bad :P
 
9:23 AM
not good enough. listen to the whole album.
 
:P I will... Well, I'm atm rewatching an anime series... :B
 
Mornin' \o
 
so... yeah, I'm gonna listen to 'em after I finish this series :B
 
o/
 
9:26 AM
@ToukaXKaneki you are hopeless
 
Anonymous
when a class starts with a 65 lined note explaining what it does...
 
Haikyuu!! is pretty nice. Trust me.
 
!!horoscope cancer
 
@Ekin The stars are dead. Why have you killed the stars?
 
Hahah
 
9:31 AM
lol :D
 
Oh I guess the site might be unreachable
 
Anonymous
why
 
5 messages moved to Trash
 
!!issue !!horoscope doesn't work - I think the onion has taken the section down theonion.com/features/horoscope
 
9:32 AM
 
it has this structure now entertainment.theonion.com/…
 
Anonymous
!!plugin disable horoscope
 
Plugin 'horoscope' is now disabled in this room
 
Good spot, edited the issue
 
phpconference, not amused.
 
9:34 AM
How come?
> They say it’s never to late to do something meaningful with your life, which is a nice idea, but you actually have about nine days.
Lol
 
9:48 AM
:B
 
9:59 AM
mornin from scotland
 
@Gordon Hehe, thanks, I'm just visiting a friend, and I already have changed my job about 2 months ago :)
 
10:28 AM
@brzuchal good mnorgin from scotland :)
 
Wes
morning
 
Anonymous
10:46 AM
run out of spaghetti?
 
@DejanMarjanovic you're at ipc?
1 message moved to friendly bin
 
Wes
sorry for that
 
11:05 AM
In one-page websites, what's the name of each section? fork? fold? ford? or what?
 
No PeeHee today? :o
 
@Shafizadeh anchor?
 
@IROEGBU nope, it sounds something like "ford"
 
@Shafizadeh Are you talking about the links to other parts of the same doc?
 
@Shafizadeh they are called henry
 
11:17 AM
@IROEGBU I'm talking about view (html structure). Each part (which usually has different color and style) named what? a fold? a forl?
 
Henry Ford?
 
@Shafizadeh frame? although that's something specific and pretty rare this days
 
@Shafizadeh I think you're confusing above the fold (i.e. the page that you see initially, without any scrolling) and the annoying trend of filling viewport-sized areas with garish blocks of colour and crappily-laid-out content.
 
ah, yes, that's "fold". thank you @salathe
 
Wes
11:34 AM
it's not a noun, it's a verb tho
 
@Wes every verb is a noun and vice versa in english
 
@FlorianMargaine Is that true?
"is" is a verb and isn't a noun
 
!!urban wes'd
 
[ wes'd ] Overreaction to situation with with unecessary, angry ad hominem attacks.
7
 
Wes
!!urban gordoned
 
11:41 AM
[ Gordoned ] intoxicated to the extent of wishing to consume a moth or ejaculate on the head of an acquaintance. To be so wasted you shit on a slide and then fall into it.
 
Even better
 
Wes
you asked for it...
 
!!urban gordonize
 
whatchoo talkin bout willis
[ Gordonize ] To attempt to improve something that doesn't need improving and succeeding in making it less useful.
6
 
see… @FlorianMargaine is right
 
Wes
11:42 AM
also relevant
!!urban florianize
 
whatchoo talkin bout willis
 
@Wes in all fairness, this sounds much more like sth @DaveRandom or @PeeHaa would do
 
Wes
!!urban peehaa
 
[ PeeHaa ] A cowboy shouting peeee haaa! while peeing and swinging a lasso.
 
Wes
 
11:53 AM
@Wes on a side note: that reply proved the correctness of wes'd
 
Wes
i am not angry. i just enjoy punching walls and kicking furniture. for sport
 
@Wes why would a sane person enter apple store?
 
I've just "inherited" a 10 year old extranet system, doesn't have a whole lot of security, but it uses IP authentication against a database. Is it possible that $_SERVER['REMOTE_ADDR'] can be fed false info? Either something like "192.168.0.1' drop table users--"?
I remember coming across a program/tool a few years ago when I played runescape to change my IP address to a string, can't find anything about that since. But I'm finding it difficult to use google fu to find my result
 
@Wes Since Steve Jobs gone, Apple will not never be as great as was already.
 
J.S
12:08 PM
@wes it's against GDPR law, sue apple on 25th May lol
Can anyone suggest a good office chair? I am forced to work in legacy code 10 hours a day. My back is killing me.
 
Wes
standing desk?
 
we got vitra chairs and height adjustable tables
I heard aeron chairs are supposed to be good, too
 
@WillParky93 remote_addr should be safe, unless your web server has the world's stupidest configuration.
It's the proxy ip address of 'HTTP_X_FORWARDED_FOR' (and other HTTP headers) that can be spoofed trivially.
if (!$name = $toName !== null) {
    $toParams['name'] = $name;
}
Ah, code reviews.
 
Thanks Danack, you've saved me a ball ache of a rewrite
Just seen something on remote_addr, only possible to spoof if you control an ISP or carrier. Wonder how many websites will break if you're able to control your own ISP
 
J.S
Ya, I ordered an updesk yesterday, I concluded that my back is worth the investment. Currently on the hunt for a chair. Thanks, I will check vitra and aeron. Thank you!
 
12:21 PM
@Jeeves every entry has a story...
 
@DaveRandom Yeah, but not interesting.
 
@Danack I had a tendency to write shit like that, when I was workig for 2nd (maybe 3rd) year
 
@Jeeves That one is intriguingly similar to !!slidepoop /cc @rlemon
 
@DaveRandom Apples.
 
morning
 
12:22 PM
o/
 
\o
 
\o
 
Wes
o/
 
\o
 
Wes
12:28 PM
can i do function object(){} safely in php? or you'd advice i shouldn't
 
isn't object reserved?
 
c-c-c-c-combo breaker
 
@Wes you shouldn't, it's a pretty rubbish name for a function
 
@salathe depends on whether it means the object or to object
 
Or "I object to the that naming convention"
 
12:34 PM
@Gordon in either case, it's a pretty rubbish name :P
 
Wes
@salathe it is. fluent dsl
 
12:45 PM
posted on October 23, 2017 by kelunik

- Apply timeouts correctly during connection and TLS handshakes. Previously these could hang indefinitely. See #145.

 
Anonymous
143
A: What can we put in a question template to help people ask better questions?

TschallackaHow about a grab from the good old Microsoft bucket? Click in the text field to activate the assistant. $(document).ready(function(){ $('.wmd-input').one('focus',function() { clippy.load('Clippy', function (agent) { var animations = agent.animations(); $('.js-states')....

4
 
> wmd-input
put your WMDs in here
 
hah, clippy, been a while
 
Wes
lol
 
1:00 PM
@MadaraUchiha what's the current opinion on area51.meta.stackexchange.com/questions/17322/…
 
@Gordon I don't have a particularly strong opinion.
Also, I'm not an Area51 moderator.
 
Anonymous
pfft, knew you were fake
 
1:16 PM
I've bought a Domain Name and also I have a VPS. How can I connect both of them to each other? What's the first step?
 
does your Domain Name provider have a web interface for setup?
the general approach would be to "click on your domain name" in that interface
and then add your IP for the "A record"
 
@tereško yes
@tereško ok .. I will try ig
it *
 
This list of DNS record types is an overview of resource records (RRs) permissible in zone files of the Domain Name System (DNS). It also contains pseudo-RRs. == Resource records == == Other types and pseudo resource records == Other types of records simply provide some types of information (for example, an HINFO record gives a description of the type of computer/OS a host uses), or others return data used in experimental features. The "type" field is also used in the protocol for various operations. == Obsolete record types == Progress has rendered some of the originally defined reco...
 
@tereško what is this? Should I read it?
 
the commonly used types are A, AAAA, NS and MX
 
1:21 PM
what are those?
 
Speaking of DNS, does anyone use systemd-resolved? /cc @DaveRandom @PeeHaa
 
@Shafizadeh types of DNS entries
 
@kelunik where will be systemd-resolved used?
 
the same domain name can be used for variety of resources
 
@tereško Does DNSs types? I guess you don't know what I'm talking about
 
1:23 PM
@Shafizadeh By your system.
 
I'm talking about a name for my website. Like www.example.com
is that DNS?
@kelunik by OS ?
 
it is a domain name ... well ... part of it
 
@Shafizadeh Yes.
 
actually you would have an A record for example.com and then add a subdomain for www
 
1:24 PM
sounds hard
 
Not really
 
lemme to login into Domain Name provider website ..
Which one is correct?
- let me to login ...
- let me login ...
 
Anonymous
the latter = "let me login"
 
thx
 
It's pretty bad when you try to think of a dig every time jay says something
bad.. or good. Depending on the person I guess
 
Anonymous
1:34 PM
As far as I can tell, every person in my life does the same thing. Apart form children, I can outsmart them.
 
ahhh, I have a non-PHP question. I can't quite figure it out. I'm writing training documentation, I'm using a numbered list to show the steps in sequential order. One step has two options, essentially an XOR. I'm not sure the best way to differentiate between the two options.
e.g.
1a.
OR (also used in the documentation to help differentiate)
1b.
2b.
or something different?
 
Anonymous
I have a parent step name and then indent with the two options
 
@JayIsTooCommon so like... I can't do it in SO because it doesn't like spaces and multilines so gist
 
:P those list bullets made me remember nierautomata.wiki.fextralife.com/Playable+Characters
 
@ToukaXKaneki you have weird associations
 
1:40 PM
2b is waifu, <3
 
Anonymous
@Tiffany gist.github.com/tktaylor/… My way, might be a better way but I find it most clear
 
okay
One problem is option two has two parts
option one only has one
 
Anonymous
indent all teh things :B
 
Anonymous
nah, at that point I have no idea, sorry :C
 
It's essentially "A. Click this link to go to this website. Or B. Find this menu 2B. Find this menu tile."
Reason I'm doing two is in case they print out the documentation. A link is useless to them.
 
Anonymous
1:45 PM
could merge B and 2B into the same step
 
Wes
@Tiffany more context?
 
Anonymous
'Click on the this tile, found in this menu'
 
Wes
i would do:
a- if bla is blo go to <a href="#b">b</a>, otherwise go to <a href="#c">c</a>
b-
c-
 
I don't like combining steps like that though, I'm using screenshots for each step to help them find it
 
Wes
with links preferably if it's html, but works as plain text too imo
 
1:48 PM
lol... the labels I'm using for the numbers isn't the final product, I just added something there so it wouldn't be blank
 
Wes
what exactly is "or"? like, "if it doesn't work"?
 
if they print the documentation out
or some people prefer taking the manual route to do something, instead of clicking a link
 
Anonymous
fuck it, don't give them a link. Go for the manual so they learn :>
 
Anonymous
also 365 sucks balls
 
we have it for free
can't beat free
 
1:51 PM
Hi guys
 
free + some sort of candies can beat it :>
 
@JayIsTooCommon also I'm making sharepoint documentation
 
Anonymous
oh gawd
 
Anonymous
step 1) Close Sharepoint and move on
 
I have to move four or so subsites from our current portal to SharePoint before early December.
FML
 
Wes
1:52 PM
1- go to videos in office 365:
   1- method 1: click this link to open the office 365 videos section
   2- method 2:
       1- click on the app launcher menu
       2- click on the videos title
2 - ...
 
Anonymous
^ this, indention is clear
 
I am trying to think about some scenarios where user will manipulate data after getting it from database in the webservice and return to the client side as response
 
@Wes thanks
 
Wes
it's unnecessarily complicated though
i'd do what jay said
it's 2 clicks rather than 1... not a lot of work
 
@Wes I would rather be unnecessarily complicated for the sake of clarity
oh, you mean just give them the manual way
 
Anonymous
1:55 PM
it makes it less clear
 
Wes
yes
 
Anonymous
open.spotify.com/track/19e7nxjjaxsdxJpUe0LYQQ This song is shite but I like it
 
@JayIsTooCommon what am I listening to
 
Anonymous
C:
 
Say I have an array if fruit names, and I want to convert it to an array of Fruit objects. I'd use a factory right? If so, what kind? I've come across 3 factory types, but not sure which fits for the simple case.
 
1:57 PM
@Learning Get object manipulate it into json and return?
 
@IROEGBU Yes get data from database,manipulate and then return data as json in response
But what are those cases or scenarios in which user will manipulate data on server side before sending it as response
 
Hacked by fruit FeelsBadMan
And they said apple was the most secure kind of fruit
 
@Learning who is "user"?
 
Wes
1:59 PM
@crypticツ abstract factory
 

« first day (2564 days earlier)      last day (2384 days later) »