« first day (2007 days earlier)      last day (2950 days later) » 

2:04 AM
@Mikhail I have use IIS some times and is a good service
 
@Mikhail you probably wouldn't want to deploy on windows unless forced with a gun pointed at your nose
2
 
Yeah, I hate Windows. We basically needed to deploy an HTTP server on a workstation that runs some kind of shitty NT terminal services
Anyways Islamic Internet Services (IIS 8) seems to be working okay but I haven't tried to siege engine it. Keeping fingers crossed.
 
2:21 AM
Islamic Internet Services?
Running Pastafarian Hypertext Preprocessor.
 
 
2 hours later…
4:07 AM
mornings
 
mornin
 
4:22 AM
Mornings
 
great... now I'll be constantly reminded of lelou
@Saitama by the way, there is this bebop too
 
moin
 
\o
 
o/
 
morgenin
 
4:53 AM
omrni
 
5:05 AM
\0/
 
@Ekin you are beautiful..
 
posted on April 14, 2016

New Cyanide and Happiness Comic

 
no offense
 
... none taken, um thanks.
 
5:28 AM
I have looked at what day it is on my calender three times in the last half hour ...
I don't think I'm going to be very useful today ...
 
mrnging
 
5:59 AM
@LeviMorrison you possibly should add an example which is not a specialized case like array|Traversable (which can be solved by making array Traversable) or Foo|null (which is covered by nullables). Also, where are intersection types? I see them neither in future scope nor in main body?
@Andrea that's interesting! 3 times less octets necessary now!
@JoeWatkins what's special about today?
 
6:19 AM
Good morning people.
 
Wes
@John why would one get offended by a compliment
mornings
@Ekin has marvelous eyes tho
 
mornings Wes
 
Wes
is that mother nature or photoshop :D
 
:P
 
Wes
6:24 AM
i joke, eh
 
I mean yes, they are real :p
 
Wes
lol
 
but seriously.. stahp pointing at me x_x people
 
Wes
okay, just sayin
have a bald man with mustache as avatar and you'll be fine
 
thank you :p
 
Wes
6:26 AM
:D
3 days on the same thing. god almighty
i'm undecided if i should split an interface in an hierarchy, because i have some methods that some classes can't implement
however i can't think of good names for these interfaces, so i was thinking to just throw exceptions instead for the unsupported methods
these design things always kill me a little inside
 
Wes
if i split the interface in 3 smaller interfaces i will have stupid nonsense names
 
@bwoebi nothing, just tired ...
 
Wes
@Saitama in the morning i always have suicide tendencies. you sure you want me to do that?
 
:-/
 
Wes
6:34 AM
that intro theme
 
:P
 
Wes
japanese propaganda against @JoeWatkins's people?
 
hehe
 
@Wes because it's sexist to tell a woman you just met that she is beautiful
 
Wes
@Gordon it's ridiculous. even compliments must be filtered now?
i don't want to live on this planet anymore
 
6:38 AM
@Gordon it's just creepy
 
Wes
no thanks, this went too far imho :B
 
Hey guys.
I have a library and I want to use it in Composer. How would I do that if it is not listed on Packagist? I want to keep it private.
 
good morning
 
6:44 AM
@MadaraUchiha You mean just blabla.com/email@server.com ? :D ( I maybe have to explain the situation a bit more. )
 
@Gordon Thanks. Can I use a library of mine in the vendor folder?
 
if you want o just copypaste it, then answer is "it probably would function, but that's a really bad way to do it"
you were linked to stuff you have to read to implement it properly
so .. @HassanAlthaf, start reading
 
@tereško (y)
Thank you very much, solved it.
 
7:03 AM
@JoeWatkins then go a bit to bed again :-)
 
Guys, I want to know: How to use something like App\User::class in PHP to instantiate that particular class? Is it possible?
 
::class is used to get the "fully qualified name" for a class
 
@tereško Oh, so it is a string basically?
 
@HassanAlthaf var_dump and find out
 
@HassanAlthaf it, if you have ton of aliases at the top of the file in some deep namespace and when you call Foo::class you want to get "Really\Long\Namespace\That\Was\Omitted\Foo"
it's mostly used for autoloading and construction patterns (builders, factories)
 
7:10 AM
@tereško But, to do something like User::class do you have to like use it in the current class?
 
no
 
So, I tried this.
return User::class;
In the namespace App\APIs;
 
you can write $foo = User::class; in same locations where you could write $ob = new User;
 
And it returned, 'App\APIs\User'
 
yes
 
7:12 AM
@bwoebi sleep is for the weak ...
 
When the correct path is App\Users\User
So, it doesn't resolve?
 
@JoeWatkins I prefer being weak to insane
 
it did resolve, it's just that App\Users\User was not visible from that location
 
Oh I see.
I wanted to ask something.
In my application, there will be a shit tonne of Game APIs for Game stats.
And to make code clean,
 
7:14 AM
I thought of doing something like this: pastebin.com/WngWkYZW
Is this a good approach?
Each API will have a common interface API
 
not really
 
What would be the best approach?
 
what you have there is a "Registry" not a "Factory"
 
I see.
Is the Registry a good pattern to use?
 
usually - no
 
7:15 AM
What would be the best method to achieve what I am trying to do?
 
I am not 100% sure WHAT you are trying to do
 
What I am trying to do is
public static function get(int $platform, int $game): API
    {
        if (!isset(self::$games[$platform][$game])) {
            throw new NotFoundException("Game '" . $game . "' with platform '" . $platform . "' was not found.");
        }

        return new self::$games[$platform][$game];
    }
 
but this line is worthless: use App\APIs\HaloFive;
 
Yeah, I added that for some testing.
 
you already are in a App\APIs namespace
 
7:17 AM
So, I have that method.
What I do is, I get an integer input from the classes Platforms and Games that act like ENUMS
So something like Platforms::XBOX_ONE, Games::HALO_FIVE
Will give me the x, y to find the API class in the $games array.
And it gives me the right API for the game.
Am I doing this the right way? Or is there a better way?
 
moin
 
inom
 
iNom? Is that an Apple edible?
 
:P i hope it is not...
 
7:34 AM
@Wes yes, that was my reaction at first, too. But that's effectively telling @Ekin that her reaction to that "compliment" is invalid and that you are entitled to define what she has to put up with.
 
today I learned what compact() function does in PHP.
 
moin
 
Anonymous
mornin
 
@tereško at least it takes a list of names
 
@tereško It's pretty useful actually.
 
Anonymous
7:38 AM
@tereško Very useful
 
I use it pretty much to pass variables from my controller to my views.
Saves a lot of duplicate names in there.
 
While I do not agree with you about the usefulness of compact(), I really would like C#'s nameof() construct in PHP
 
array_intersect takes arrays and finds intersecting values. Is there any function that takes in one array, and returns intersecting values of each key in that array?
 
@HassanAlthaf Just use array_intersect(array_keys($array1), array_keys($array2)); ?
 
@Jay, @Oldskool I would describe it as "code smell"
 
Anonymous
7:45 AM
@tereško And what is "code smell" ?
 
@Oldskool It is actually one array, and I want the intersection of all the keys in that one array.
 
@HassanAlthaf Eh, I'm not following you. A single array can't have the same key more than once?
 
@Oldskool I'm actually fetching data from an API. And I need to get only the values $data['Id']['MatchId']. I have an array of $data variables.
 
And $data is an array with MatchId's? Some sample data would be useful, my coffee hasn't really kicked in yet ;-)
 
I have an array of something like this:
 
Wes
7:49 AM
@DaveRandom use cases?
 
@tereško Not really, it's just a convenience syntax to avoid arrays like array('foo' => $foo, 'bar' => $bar, 'foobar' =>$foobar).
 
@Wes All sorts of places, anywhere you have a symbol name as a string
 
Wes
not a fan of symbol names as strings :B
 
@Oldskool Something like this: pastebin.com/Xw39uBRP
I want the intersecting MatchIds of $array[0], $array[1], $array[2], .... $array[n]
I can write a long ass mess but I need a neat way of doing it.
 
@HassanAlthaf Hmm, I see. I don't think there is any native function for that and you'll end up with a long mess either way :(
 
7:56 AM
Nice, just received a call from a client.
 
@Oldskool Alright. Thanks.
 
"hello, I got hacked by the internet, what now? "
 
@Wes It's unavoidable sometimes. e.g. passing a function as a callback, so instead of passing 'my_func' as a callback name, you pass nameof(my_func), that way static analysis knows what it is a reference to, and refactoring tools can deal with symbol renames
 
Lol Dukiboot
 
I agree it's best avoided, but sometimes it's unavoidable.
 
7:58 AM
@HassanAlthaf I think you're looking for something similar like this: stackoverflow.com/q/18438140/214577
 
errr... OK... was that in response to someone else?
 
Anonymous
Wrong being.
 
@Oldskool Yeah, thanks. I'm doing that.
 
@Duikboot That's an easy one "hack the internet back and retrieve the data it stole from you".
 
brb taking misses to work
 
7:59 AM
Also, when you do webdevelopment,... people think you know everything >< ( ' can you configure my network printer setup ' )
 
@Duikboot That's not only in web dev... that's if you do anything in IT at all.
Then you're supposed to know it all.
(according to non-geeks) :)
"Oh, my computer crashed.. you're in IT, you can fix it!"
Or anything else that has a power plug attached to it for that matter. We're also supposed to be able to fix mobile phones, TV's, tablets... you name it.
 
Wes
@DaveRandom /me begs for first class symbols
btw 3v4l.org/kkO0C need to work a proper implementation of this
 
MOrgen
 
@PeeHaa mogguh
 
Wes
@PeeHaa buongiorno
 
8:06 AM
nOeMrg
 
has one here used JSON_PARTIAL_OUTPUT_ON_ERROR for json_encode ..
stuck with some utf-8 mess
and need to fix in prod :|
 
@Oldskool Exactly, most of the time I try to solve it for them but... that's not what I really like to do, configuring hardware things.
 
@VamsiKrishnaB Fix the actual issue instead
 
Wes
^
 
have some angry users
 
8:10 AM
That's not an issue.
 
@VamsiKrishnaB Explain the problem you are trying to solve, providing code (examples) where possible. What have you tried to fix it? What result are you currently getting and how does it differ from what you expect? What messages (errors) are you getting?
 
@AllenJB this is chat ..
 
And?
 
... pastery.net @VamsiKrishnaB
 
Just asking "has somebody used this?" is not going to help solve your problem quickly.
Describing the problem does.
 
8:12 AM
@Oldskool Allright logged in today on 5 platforms without any issues about the SSH keys
 
right, what I want to know is, if its got any implications ..
 
To make everything clear to use read this: @VamsiKrishnaB stackoverflow.com/help/how-to-ask
 
Maybe, if it does, it should be documented.
 
@VamsiKrishnaB Of course. You will get crap
 
@Duikboot thanks, self appointed chat moderator.
 
8:14 AM
@Duikboot LOL. Don't jynx it! :)
 
Stop trying to take the crap route out and fix the issue
 
@VamsiKrishnaB That's low. He's just trying to tell you how you can ask your question best so you can keep your "angry users" happy.
Don't expect miracles if you don't give any details.
We're not the PHP fairies.
 
I'm pretty sure @NikiC is
 
PHP Unicorns
 
@VamsiKrishnaB Well the obvious implication is that if an error occurs, the JSON produced will be incomplete. In exactly what way it's incomplete will depend on the error. It could be anything from a string missing 1 character to the entire contents being missing.
 
8:19 AM
Hi, i have an annoying problem. I'm working on an protocol-module for a clan that generates BBCode. But there's something strange. Here's the link to the tes page: http://techtreedev.de/regiment/reg_index.php
It prints the array, that should be converted ($soldaten) . You can try it out there or have a look here: http://pastebin.com/LWJC0EZC, where's also the code that should generate the main part.
But somehow it just works for the last input on the right sie (Rekruten/Reservisten). Any idea, why?
 
@VamsiKrishnaB this is one of those things tyhat get only worse over time if you don't handle it properly
 
@PeeHaa agree with you that fixing root cause if way to go .
 
If I print out each line, it works, but it semms like it overwirtes the $list partly
 
What does $list give you as output? I guess it should be 1 long BB-code string?
 
[b] Rekruten/Reservisten: 1[/b][list][*][b][/b], [/list][/list]
And everything I tried resulted in nothing
The only working solution is to write in in an array and implode it at the end
 
JSON_PARTIAL_OUTPUT_ON_ERROR did help for a while as it fixed the url for a user, will dig into the cause.. @Oldskool @Duikboot sorry that I went out of line.
 
Forund the problem. Forgot a .= in the foreach, which causes the variable to be defined new each interation
 
Wes
undecided if i should split an interface in an hierarchy, because i have some methods that some classes can't implement. however i can't think of good names for these interfaces, so i was thinking to throw exceptions instead for the unsupported methods. also regardless of the names, the division would be just plain nonsense. ever happened to you have lsp violations on purpose?
 
Dammit I was chkcing them :) those .= Must have overlooked one.
 
is there something like TripleSec which uses Salsa 20, AES-256, and Twofish to encrypt data for PHP ?
 
8:34 AM
"$list = "[b] ".$z_name.": ".count($zug)."[/b]";" That one? :)
 
@VamsiKrishnaB Apology accepted. It isn't always fun when users/customers are breathing down your neck for a fix. We're just tyring to establish the problem so we can supply you with our best advice :)
 
SGR
What's the word for the technique of using a randomly generated number to ensure that a user cannot enter the url for a sensitive web page without going through all the previous pages?
 
@SGR authentication
 
Wes
lol
 
and/or authorization
@Wes The moment I see someone asking about something like that and is using "a randomly generated number to ensure that a user cannot enter the url for a sensitive web page" I get scared
 
SGR
8:48 AM
I'm basically idiot proofing, so it's not for security purposes
 
Very scared.
@SGR Well, you can always make sure the "flow" is followed in a session in that case.
 
@SGR Sure it is. It's a sensitive page
Or did you mean a sensitive page as in the page has feels?
 
SGR
@PeeHaa, the user will be verified, but they may still be an idiot
 
Like add a currentStep key in your session and make sure they can't open anything above that step.
 
^ that
 
8:50 AM
like if ($currentPageStep > $_SESSION['currentStep']) { die('You are an idiot.'); }
5
 
moin
 
SGR
That could work
 
@SGR It sure could, I would actually implement it exactly like that. Could give you some interesting e-mails or phone calls in the future like "Why is your application calling me an idiot?" and then you can act all surprised like "It did what?! I'll put our top dog on it right away!" ... and then hang up and obviously have a good laugh about it.
I like putting in little easter eggs like that.
@Sean morning
 
@Sean iNom!
 
Room 11 doing well today?
 
8:57 AM
Of course!
!!rebecca
 
@Oldskool Happy Prebeccaday!
 
Cause it's prebeccaday!
 
@Jeeves OMG!!!
 
@Wes may be may be she doesn't like it
 
@John don't be that creepy guy cc @Wes not sure if joking because it said joking
 
9:04 AM
@John I can only recommend again to read the links I gave. they explain the problem with these uncalled for compliments quite well.
 
Ekn
The problem with them is that.. it's just unexpected and creepy.
The only effect it had on me however, is that it distracted me while I was already confused by Fowler's book
so... space and time, people
 
Wes
@PeeHaa i just think one could make a compliment about appearance with no sexual intentions included. for instance i say @Danack has a great beard, but that doesn't mean i want to bang him :D i think this whole PC thing is getting too extreme...
 
Ekn
s/creepy/awkward
 
@Ekn is that a different account or did you just change your avatar so people no longer know what you look like?
 
@PeeHaaa I posted on this meta question about this problem : meta.stackoverflow.com/questions/251183/…
 
9:07 AM
@Ekn which anime is the avatar from?
 
@Saitama Steins;Gate
 
@Wes Nobody implied any banging is involved, but if some random person x comes in here (and it's not @DaveRandom) and tells me I have beautiful x or I am beautiful some people tend to get creeped out by that
2
 
Ekn
@Gordon same account of course, I just ecspecially changed my name because of a similar recent thing.
 
@MadaraUchiha ah.
 
@Ekn thanks. See @Wes: That's exactly why it's a problem. Why does she have to change her avatar like that?
 
Ekn
9:10 AM
I actually could do without changing it as well, but it's obvious that this way it will be much less distractive.
 
@Wes I won't go into any of that PC stuff and I don't care that much about feels of people in general. But as long as people are in here I expect that to not be creepy fucks. That's how you loose people.
 
@Ekn Yes, and that is a problem then. This chat should be a safe place for you. You shouldn't have to change your avatar.
 
user image
2
 
Wes
that's not fair, yeah. but i mean... it's not that he asked her phone number, where she lives or something
that's actually creepy in my opinion
 
@Wes not yet
 
Wes
9:12 AM
also i assumed they talked each other before
 
Ekn
I don't have a problem with it as long as it somewhat indirectly helps avoiding awkward moments in any room.
 
@Saitama Whereas books are automatically authoritative, simply by virtue of being printer on paper
I may print out the internet, that will make it true
 
:P
 
aren't Fridays in this room offensive to Rebecca?
 
9:14 AM
@Ekn Well, the fact that you actually need to do that is awkward.
 
@DaveRandom in practice, there is a lot more work involved in printing a book, including reviews, so it's true that internet gets a lot of more wrong facts than books.
 
@Ekn Kinda feels like you've had to go undercover from your own identity, which is sad :(
 
@Oldskool exactly.
 
@SergeyTelshevsky Probably. But do you really care? ;-)
 
9:17 AM
@FlorianMargaine cough bible cough
Dammit @Ekn don't go all @Wes on us and start changing your screen name at random
:-P
 
Wes
lol
 
Ekn
:D
Nah, currently it's almost same as my name
but with just one letter difference I can avoid all those people who recognize the roots of my name and directly ping for more details :p
 
Yeh I suppose I can deal with just dropping a vowel, @Wes just throws darts at a dictionary I think
 
Wes
pretty much
 
@Wes please aim for "buttercups" next time
 
9:20 AM
@SergeyTelshevsky I have no problem objectifying rebecca whatsoever :P
 
Wes
guys, there was a reason for that, you know?
 
@Wes I don't.
 
@PeeHaa hm, she was 14 for friday...
 
@FlorianMargaine legal age of driving in some US states in case you are wondering why the kids have a car in that video
 
@FlorianMargaine I wanted to reply and take my joke one step further but... fbi
:P
 
9:22 AM
@Gordon I religiously respect the age/2+7 rule
 
Wes
@Gordon an ex colleague tried to blackmail me by stating i have said not nice things about my employer
 
@Wes ouch
 
@FlorianMargaine Me too. What your target age after calculation?
 
Wes
which i didn't even do, but since i write things without thinking, i wasn't sure
 
:P
 
9:23 AM
@PeeHaa I'm 28
 
Damn I should stop now before people start taking me seriously
 
@PeeHaa well, it's defensive offense anyway, as Rebecca is offensive herself.. to humanity
 
@PeeHaa hahaha, hell will freeze over first
 
@Gordon :-D
 
9:25 AM
 
@Gordon You're one day early
 
!!rebecca
 
@DaveRandom Happy Prebeccaday!
 
we should add that image to the !!rebecca output for prececcdays
 
LOL
 
9:26 AM
To conclude @Wes. I don't care about people's feels in general nor do I care about pc / sjw / whatever the current hype is. I just want to have a "safe" place in here for people I like (if I don't like you you can rot in hell :P) and if that means adjusting a bit how we communicate imo that's worth it
/seriousness
 
doing this now
 
#time for beer
 
@PeeHaa Amen.
 
3 mins ago, by Gordon
@PeeHaa hahaha, hell will freeze over first
 
Ekn
I... really knew someone would pull that over here :p
 
9:27 AM
!!rfcs
 
hmm, how do I add an image next to a message in markdown? does that even work?
 
no
 
@Sara when are you closing this RFC? :)
 
chat md doesn't do that
 
9:28 AM
@Gordon I dont think so
 
ok, what the hell did I miss?
 
crap
 
Nope, unfortunately it only works "standalone".
 
@PeeHaa beer at 11am?
 
9:29 AM
test <img src="http://i.stack.imgur.com/CYCpt.png"/>
meh!
 
@DaveRandom lol
@FlorianMargaine hours/2+12 :P
 
@PeeHaa beer at 5pm?!
 
its 1130
@PeeHaa I want it to be safe for anyone. not just selected people.
 
@tereško Read back the transcript from this morning. It'll become clear then.
 
Wes
@PeeHaa agree on that, was just saying that wasn't too bad. the "safe space" makes us too weak to critiques and i think this PC trend is eroding our way to communicate. if someone says something offensive or awkward i would rather think they are idiots, rather than feeling offended myself :B
 
9:32 AM
@Gordon this is problematic.
 
8 mins ago, by Gordon
@PeeHaa hahaha, hell will freeze over first
 
> ...and on that day, Satan will be ice-skating to work
 
buhahah
 
@FlorianMargaine ok, well… anyone but @rdlowrey… its unacceptable if we cannot fawn over him anymore… right?
 
right... his eyes...
 
9:43 AM
@Wes Yes, but the fact of the matter is that I have seen it happen at least twice that people had to take actual action themselves to prevent it. Note that on both occasions the persons involved did just that (think they are idiots, rather than feeling offended).
 
@FlorianMargaine where is he btw? haven't seen him in ages. I guess @ircmaxell wants to keep him for himself alone!
 
@Gordon Deadline on the job / @ircmaxell has a whip
He promised us he would have some time soon though
 
@Gordon he's doing go now... no?
 
Idk, I think he's kept away from us. Maybe we should free him.
 
9:48 AM
If the jQuery isn't working, you are not using enough jQuery! Try to add moar jQuery! — Gordon 24 secs ago
3
 
Wes
i find complaining about others' words very hypocritical because applied inconsistently. for instance, there are very mean persons on SO and nobody seems to care much about their behavior. i think the whole PC thing is an illusion and every case is a case that must be observed singularly, not with a magic made up set of rules of what's wrong and what's right @PeeHaa
personally when i read weird things i just swallow and move on, i don't even change my behavior in response. i think it's more civilized than constantly complaining about everything
 
@Wes We are hardly "constantly complaining about everything" in here
 
@Wes you shouldn't need to swallow in the first place… and I am saying this without any sexual innuendo
5
 
Wes
9:57 AM
yeah, i'm not talking specifically of this room
@Gordon ha
 
Anonymous
@Gordon xD
 
you dirty minded bunch you
 
@Gordon heheh
@Wes I mean I get where you are coming from, because I too have seen what you are aiming at and I do have my opinion about crap like that :)
 

« first day (2007 days earlier)      last day (2950 days later) »