« first day (2599 days earlier)      last day (2365 days later) » 

 
2 hours later…
2:04 AM
I can't send mail using mail(). Before I went home last friday. It is working well and today I have reports that they can't recevile mail from the existing program that works with mail().
anyone also occured something like these?
anyone also occured something like these?
 
2:55 AM
error log in mail server.
what to do
 
Wes
3:55 AM
user image
6
 
@Wes savage
 
4:16 AM
good morning
 
 
2 hours later…
6:30 AM
mornigns
 
Wes
howdy
 
wesmon o/
 
6:51 AM
\o
 
morgen
 
o/
 
\o :P
 
moin
 
7:19 AM
moo o/
 
moo back
 
7:49 AM
Not that anyone will but Java books on humblebundle
@tereško You liked the Deus Ex no? Got the "Mankind Divided" one?
 
Trying to copy window file to linux (php file), says scp:: not a regular file
 scp  root@10.237.3.50: /install/mssqlcon.php root@10.237.10.158: /home
syntax
3.50 is windows and 10.158 is linu
x
do i have any porblem with my scp command
 
8:04 AM
@EarvinNillCastillo whitespace has semantic meaning (reamove the spaces after the colons)
 
Wes
\o
 
Hello :)
 
@bwoebi thank you it worked!
 
Wes
youtube.com/watch?v=Gslt1Rfj6ZY all you need on monday
 
8:30 AM
Don't think I ever had or ever will have a need for a cat
 
morning
 
morgen
 
bloody good morning
 
Wes
8:45 AM
lol
 
I have a question is there someone that might be able to help me
 
Wes
@PeeHaa not even a kitten
 
Just give me a puppy
 
Wes
how about a sand cat? youtube.com/watch?v=7MjG9r_YP_U
 
Still no doge
 
8:55 AM
@tereško i.imgur.com/NEzGs8j.png lol, looks familiar?
 
Wes
:B
 
Wes
@PeeHaa savannah (lynx + domestic cat mix) cat + german shepherd puppy youtube.com/watch?v=BSqb6DvyGDs
 
awwwwwwww
Damn that face
Want
 
@Fabor yes, bought it
not sure when will I be able to actually play it
 
9:03 AM
@Ekin It's so ugly tho :X
 
I knoow
I'm going to stop right there and work :p
 
Anonymous
moirah nf
 
moirah
 
'ning
 
o/
 
9:13 AM
\o
 
never click links at work
you guys are trying to NSWF me here
i see through the tricks...
@JayIsTooCommon right jay?!
 
Anonymous
2 days ago, by JayIsTooCommon
@MoonEater916 do I know you?
 
sits in corner and cries
:(
 
Anonymous
9:30 AM
@Wes ?
 
Wes
GT
 
Anonymous
oh!
 
Anonymous
buzzing.
 
ugh.. showing numbers in KwH, data (0,02 KwH), little further is gets show nagain only in MwH BUT with only 4 numbers after , as we agreed on meaning it will always show 0 and now they say, that's not possible! freaking monday problems ><
 
I created an interface: CsvWriter, that contains the method writeHeaderRow. Because I want to force specific types for specific (non-related) objects for writeRow, I created a interface CampaignCsvWriter extends CsvWriter, containing writeRow(Campaign $campaign) (see what I'm doing there). Avoids a random $object without a type hint in the CsvWriter interface. Any ideas for the concrete class name that actually is just a CampaignCsvWriter (or alternative architecture)?
 
9:43 AM
Why do you need to extend it?
 
Well, otherwise all the interfaces: CampaignCsvWriter, OtherObjectCsvWriter, will have a copy / paste for writeHeaderRow
 
\o
 
I'm inheriting that method for all of them
By convention, new interfaces would extend that to gain writeHeaderRow
 
Why don't you have a csv writer and a formatter as separate things?
 
Hmm, I'm not formatting. I'm taking an object and writing it to a Csv, with a concrete implementation for each object type
 
9:45 AM
Not sure if that fits your case, but that was my first thought
@Jimbo csv is a format ;-)
 
Oh, and I wanted a mapper and Csv-specific object to map to first, but because we're going to be doing millions of these, performance is important - extra objects not needed here
 
kk
 
Would be easy if I created the generic object type I'm putting into the Csv and mapped all objects to that ;) But no-go here :(
 
Wes
@Jimbo imho it's the other way around. writeRow(Row/Array $genericData) and then a function like campaignToRow(Campaign $campaign): Row{}
 
Yep. Exactly
 
Wes
9:52 AM
or if you want, you inject the function like a factory (which is what it is)
 
@Wes The objectToRow would be a callable and this would be put on the interface?
Btw, this includes a Row object but like I said for performance, can't be adding extra objects
So I have this Campaign or Other object, and that's it. Putting to a row is next
 
Wes
i am not sure what you are doing but i wouldn't do that kind of type specialization, not even if we had generics... i'd try to stack things onto other things rather than create tons of "types" that way
Row could be a simple array anyway
$csvWriter->writeRow(campaignToRow($campaign))
 
Yeah that's exactly my formatter
 
hmmmm
okay so writeRow takes a generic array of data. I was thinking at first that this is a problem - because you can pass anything to this and it might not be the correct number of rows etc (and this number of rows depends on the object being passed in)
So if I passed in an object, that is already validated (with VO's), the fields are guaranteed to exist
as long as I don't F up the implementation
 
SRP
One thing does writing csv
The other just massages the data
Validation is probably done at two points for different reasons
 
Wes
10:03 AM
why would you have a constraint on number of rows? you mean columns?
 
One is validation of your VOs
The other is e.g. do I have the same number of columns as the header row
 
@Wes Yep, columns, sorry!
 
Wes
i wouldn't make too clever things. you can just do count($row) != $this->expectedCount in writeRow
anything different than that is just complicating things unnecessarily
unless otherwise there are other reasons to make it more complicated
 
Retard next dev? :)
I am being thoughtful
 
You can have a config for the writer, telling it the number of columns expected and stuff like that... But, I would expect that for a full xls. I normally wouldn't bother if the number rows aren't the same for a csv (depending on use case though)
Also, mornings
 
10:07 AM
Would need to have multiple configs, one of each object type, might get out of hand
 
Just check against the header
 
@Jimbo No, not like that... new CSVWriter(['columns' => 5, 'delimiter' => '\t'])
you are probably just overthinking the whole thing though
 
@IROEGBU Needs more yaml
 
Okay, I added public function writeRow(array $data): int to the CsvWriter interface, with @throws \RuntimeException given an invalid number of fields
 
Wes
why is everyone obsessed with spl exceptions
 
10:12 AM
Everybody?
 
I am everybody
 
Wes
everybody
 
TIL
 
I cannot name three people who think they make sense :P
 
Wes
and why everybody throws generic exceptions types
 
10:12 AM
What is an spl?
 
I'm not making a custom exception just for this one point of entry :P
 
Wes
that's why we need checked exceptions. people don't give a fuck :B
 
@PeeHaa's mom was excited for PHP 7.1's multiple catch RFC, she caught them all!
 
@Jimbo 7.1
 
Thx <3
 
10:14 AM
@Jimbo She didn't really care that much about it though
 
@Jimbo lol wtf
 
Wes
@Jimbo are you totally sure you don't have any catch(RuntimeException) somewhere in the stack that is actually meant to handle a different exception? :B
 
starred that one haha
 
Anonymous
!!wotd
 
mazuma Slang. money.
 
10:16 AM
@Wes Weill I have <loads of other objects> | Csv stuff | --> to CSV, so if "to CSV" throws an exception and it's at the end (which it is), then Csv Stuff catches a Runtime Exception, not a problem
Plus I convert it to a problem-specific exception at the beginning of CSV stuff
a generic "it fucked up" that already handles logging etc way back when
 
Those mini robot car sumo battles are so god damn fast.
moar...
Christ Bitcoin is almost at 10k USD per coin
 
10:39 AM
I was reading about how eventually nobody will be able to mine anything any more
and then it's worthless. Is this a good general understanding?
I don't know anything about cryptocurrency
(for BT)
 
I've been getting Spam about how to get rich with Bitcoin. It's the perfect bubble
And grandmas are asking my friends about how to invest
 
lolwat
 
those grandmas, wanting to go back to the mines and farm some good old bitcoins with a pickaxe ^^
 
11:07 AM
@Jimbo currently miners get a bonus for each block, on top of the transaction fees. Somewhere in 2025 they no longer get the bonus.
 
11:19 AM
@Patrick Me too
(not the grandmas part, the spam)
 
11:35 AM
@PeeHaa by "three people", you mean "three people who don't have their movements limited by court order" ofc.
 
Yep :P
 
@Jimbo stop being lazy and create your own exceptions. No-one wants to catch RuntimeException, when they only want to catch exceptions relevant to the CsvWriter.
@Jimbo "will have a copy / paste for writeHeaderRow" unless you move that functionality into being 'just a function'.
But also, having duplication there is probably fine.
 
11:52 AM
SSD came over the weekend, tried to set it up with the other 256k borked one, it's still borked.
 
256 k???
 
er, whoops, 256gb :V Tiniest 256k SSD
 
:P
I still need to get a new ssd. For some stupid reason I picked a 128G one as main hd
Have been annoyed by lack of space ever since :)
 
Wes
i still have a 160gb for the os :B i like to think that it's almost as fast as a ssd but more reliable, but it's a lie :B
i hate when i have to free space
 
yeees
 
Wes
12:05 PM
i didn't predict that programs like ps would double their size in just few years
 
Did it happen with their switch to cloud stuff?
 
Dammit, I've been writing too much swift. I'm trying to tell PHPStorm (my 'compiler') that an object is of another type by using (MyObject) $object -.-
I've done an instance of, but in another method. Maybe just PHPStorm being retarded
 
yay for generic abstractions?
Or rather random objects
 
Srsly, it's a nice language. Anything that throws, you must use a try or else put try? which means if it throws it'll be nil instead
No horrible exception bubbling and things getting lost
 
meh
It's nicer than objc. That's for sure
 
12:23 PM
o/
 
yo o/
 
Wes
@DaveRandom i'm doing an absolute mess with these concurrency checks and it's taking me ages
of course i could easily not give a damn about these things, but 99% lsp is not lsp
god almighty
 
You can just call me Pieter
 
Anonymous
stackoverflow.com/a/47501087/4781925 - review appropriately please..
 
Wes
am i the only that thinks this guy should shut the f. up? stackoverflow.com/questions/47500998/…
it's not that i need to explain how sql injection works every time i mention sql
 
12:31 PM
SO main should just stfu
 
Anonymous
@Wes If you read the context, $value is from $_GET. He's right to shout.
 
Wes
irrelevant for me
 
Anonymous
How is it irrelevant? Why shouldn't he raise the issue?
 
I am just about to pick something up again which really needs that
 
Hi Can you please tell me how should i setup AWS SDK for php on localhost, what are the requirements? please help
 
Wes
12:34 PM
maybe OP is just learning the language. maybe they are not programming a web bank or a nuclear missile launcher
 
Can't we just remove the question entitely @JayIsTooCommon?
 
Anyone know how I can make this Synchronous vs Async which seems to be default?
 
Anonymous
@Wes Now that's irrelevant
 
@SurabhiGupta Surely they have a readme?
 
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script>
  WebFont.load({
    google: {
      families: ['Droid Sans', 'Droid Serif']
    }
  });
</script>
 
12:35 PM
Wrong chat @Stuart
 
@Wes Yeah, that's completely unecessary
 
Also do yourself a favor and don't hotlink to fonts
 
Couldnt even find the JS room it
 
Bad things will happen
@poo
 
@peetape
 
12:36 PM
@PeeHaa suggestions otherwise?
vs linking to fonts
 
I would just download the fonts and link them
 
I like that idea
 
@Stuart use webpack and the google font plugin that builds them to your local drive, either to be then checked in, or done via a build script.
 
Gonna investigate thanks
 
new GoogleFontsPlugin({
        fonts: [
            { family: "Montserrat", variants: ["400", "700"] },
            { family: "Arvo"},
            { family: "Lato"}
        ],
        formats: [ "eot", "woff", "woff2", "ttf", "svg" ],
        filename: 'styles/fonts.css',
        path: "font/",
    }),
 
12:38 PM
That's kinda bad to do at build time though
 
@PeeHaa: can you please elaborate me, because i have to create custom Wordpress Plugin for Amazon Lex Chatbot Service, so i dont know how to start work on this, can you help me or anyone can help please
 
Considering google tends to say fuck you here is a different font
@SurabhiGupta What did you try so far?
 
Somewhat related, but unrelated. Do you people do frontend tests @Danack?
 
@PeeHaa not yet.......we've got the capability for it setup, but it's quite the pain in the arse.
 
12:40 PM
I saw something nice a while back, but I forgot what it was called :(
It even allowed you to easily replay when errors are found
I will need to set up some form of frontend testing soon somehow
 
hypothetically, when you use a global variable, and it hasn't been defined yet, do you need to do isset() first, or can you just straight do !== true?
 
@PeeHaa I tried to setup AWS account & also AWS SDK on localhost, but where to start i dont know, i know how to create a plugin in WP but i am not getting what are the basic requirements to get AWS web service in my Custom WP plugin
 
@Danack hypothetically anything is possible in php :P
@SurabhiGupta Did you check their documentation?
 
zombo.com like typing detected
 
If not that would be a great place to start
@Danack Doesn't load for me :(
oh
The google result tells me enough :D
 
12:45 PM
@PeeHaa yes, they said first setup AWS SDK which i already downloaded, then they said to manage Access key & secret key and i dont know how to create, i created AWS console account & in security tab there is a option to create user, m i goign on right direction or not? is these information are required to create this plugin actually
 
@SurabhiGupta why don't ask the people who were already providing instructions?
 
Also they have a shitload of tutorials and actual kinda proper documentation
They even have youtube tutorials
 
@Danack will you please share any relative link, because i stucked in this task, just want to know where to start from
 
google.com
 
OMG :-) thanks i know this link, i thought i would get better solution from here..
 
1:03 PM
moin
 
Morgen dave
 
jevening room
 
Yolinus
 
morgen
 
o./
 
1:13 PM
\o
 
\.o o./
 
back to work after a four day weekend
oh boy
 
Krampus
 
Wes
1:31 PM
\o
 
O/
 
@Danack sure let himself go :P
 
...I should shave.
 
Pretty sure I have seen that exact message a while ago :-)
 
Wes
1:37 PM
lol
it's like looking at a mirror eh @Danack :D
 
A sad and slightly darkened mirror.
 
Wasn;t there a gif somewhere on the internets?
If not. @Wes should totally take 5 octoquidbears and make it
 
Wes
i what?
:B
 
I feel like Dan's has been turned into that meme already but no idea whether my brain is lying and/or how to search for it
 
Wes
ah yeah he was robert baratheon alredy. i don't have a link to the pic anymore tho :B
 
1:41 PM
You watching punisher btw?
 
Wes
i went on the internet, searched "boar" and i found this i.imgur.com/uZdNRTc.jpg
7
 
hahahaha-
 
see......that hairline is mean.
 
Wes
@PeeHaa i am annoyed by all marvel series
 
brb trying to replicate
 
1:42 PM
@Danack :D
 
Wes
:B
especially daredevil. that's hopeless
 
yeah was just talking about it last night
Such an overhyped piece of meh
 
Wes
the whole time he has no clue of what he's doing
 
We should ask him to be friends :p
 
Wes
there are fight scenes in the complete dark that last 1/4 of the episodes
 
1:45 PM
The punisher is that dude from the first? season of walking dead
 
Wes
arrow was good tough, then i got lost
 
wat
You liked arrow
Really?
You are dead to me
 
Wes
it was nice at the start
with the island co-story thing
then it turned straight to absolute rubbish
 
Ok till season 4
 
I'm not sure I've seen the start tbh. Seen a couple of episodes and it was terrible
 
Wes
1:47 PM
i haven't watched punisher nor i did watch flash, but since are spin offs of daredevil and arrow, i expect them to be shit as well
 
Skip flash
 
Wes
when i was a kid there was this followingthenerd.com/site/wp-content/uploads/the-flash-tv.jpg and it was amazing... or at least so i remember it :B
 
:)
Skip the series
You will hate it
 
Wes
also that other one was absolute shit... agents of shield whatever
that's probably the worst
 
Watched a lot of them
Was meh
Hoi @Ekin
 
1:51 PM
\o
 
You still watching walking dead @Wes?
 
Wes
yes. and i still like it, although less. this season's been terrible so far
 
Anonymous
!!wotd
 
Anonymous
wth is scope bleed?
 
Anonymous
in software speak
 
1:55 PM
@samayo Probably javascript?
 
Wes
when you have some scope modifying another in an unexpected way
 
And it's poop scoping
 
Anonymous
Sounds like that, never heard about it till today
 
Wes
a classic scope bleed is
function(){
   let foo = 1;
   function(){
         foo= 2;
    }
}

when you actually meant

function(){
   let foo = 1;
   function(){
         let foo;
         foo= 2;
    }
}
 
@samayo sounds like JS thing
 
1:58 PM
Although if you share a mutable object it's basically the same thing
 
@Wes dunno, this is a property of all C-family languages, amongst others. The big issue with JS scoping (implicit decls) is entirely resolved by 'use strict'. The far bigger in JS is the retarded shit-show that is this.
 

« first day (2599 days earlier)      last day (2365 days later) »