« first day (1348 days earlier)      last day (3616 days later) » 

1:00 PM
@AlmaDo Nice one:)
 
@DaveRandom Hi
 
@SergeyTelshevsky did you read it all? (:
 
I just love the commit messages
 
http://git.escapethebot.net/dsh/bastard/src/master/models *snief*
His last commit message was "I don't know what I was doing."... s/was/am
 
@AlmaDo you mean the small text at the end? :)
 
1:02 PM
Could someone just do a small favour and check if this code is secure? pastebin.com/rtGBmHAX
 
@SergeyTelshevsky hm.. in bad or good sense?
@SergeyTelshevsky yeah. That message is the essence of all use-cases :p
 
@Patrick how about "After some drunk testing, the new demo controller&view are complete."
 
I can't use :this as its an array.
 
@RahulKhosla the point of prepared statements is that you use the params, not build your own query string through concenation... :( php.net//manual/de/pdo.prepared-statements.php
 
@AlmaDo well, sometimes we are forced to use bad solutions anyway
 
1:04 PM
@Patrick So this can be done with arrays?
 
Reading his commit messages simply made my day: git.escapethebot.net/dsh/bastard/commits/master
 
> Urinating into the pool ... you are the best
 
@RahulKhosla nevermind, I misread your code
 
ok so?
 
@DanLugg I am so confused right now
 
1:06 PM
@ThW Thanks for the reply yesterday. Sorry I missed it until now. I'll consider how I might abstract and encapsulate as you suggested.
 
good day, fine gents
 
Hey @CarrieKendall
 
morning @CarrieKendall
 
-1
Q: How to simplify return value using Regex?

IvanI've used Imgur API and it worked, the problem is it returns data with all parameters, it looks like: {"data":{"id":"TjJuJ29","title":null,"description":null,"datetime":1403695169,"type":"image\/png","animated":false,"width":1538,"height":839,"size":733684,"views":0,"bandwidth":0,"favorite":fals...

Also for the Go people: AWESOME
 
@AlmaDo … now I can't even startup mysql
140625 15:15:34 [ERROR] An old style --language value with language specific part detected: /usr/share/mysql/
140625 15:15:34 [ERROR] Use --lc-messages-dir without language specific part instead.
140625 15:15:34 [ERROR] Can't read from messagefile '/usr/share/mysql/errmsg.sys'
 
user895378
1:18 PM
@CarrieKendall Good day, room 11 diversity in technology fulfillment ;)
 
Physics Teacher: What is this measurable unit "µ" called? . . . . . . . . Student : Torrent 😜😂😂
 
Morning
is_null() or === null?
 
the latter
 
@bwoebi it seems the problem is in config and/or startup, not in data files
 
user895378
Anything except !isset($value)
 
1:19 PM
@AlmaDo meh, I even removed config files and reinstalled, doesn't work
 
where did you use --language then
 
nowhere.
That's what I don't get.
 
@rdlowrey I've been converted from indented ifs to line by line returns, if you remember that conversation we had a while back on the subject
 
@Jimbo I do
@bwoebi why?
 
@PeeHaa what the
 
1:22 PM
@AlmaDo that error message looks completely fubar to me
 
@Jimbo (I'm the one who made the pastebin.)
 
user895378
@Jimbo \o/ nested if statements must die
 
we need to campaign against this
I've already written a blog post (in french) about it
 
@PeeHaa I mean you have opened the link, didn't you?
 
:)
 
1:25 PM
@FlorianMargaine Ahh I remember, code is so much easier to read this way
 
@bwoebi not sure how you did the downgrade - but it seems some prev. parts still persists in system
 
@AlmaDo removed mysql packages with purge and did apt-get autoremove/autoclean and then reinstalled
 
but you've said you did installation manually
 
i wish there was ever a reasons for bool whatYouSay :(
 
^ bool?
 
1:26 PM
@AlmaDo dkpg -i with .deb's
 
@AlmaDo ie if(whatYouSay)
 
@bwoebi huh.. I thought you was careful in installation and installed all into /opt :\
@CarrieKendall use ternary then (-:
 
wait…
@AlmaDo nope…
 
Anyone here used/uses Aura router?
 
if ($you->areHappy() && $you->knowIt()) $you->clapHands();
2
 
1:29 PM
@bwoebi paying attention that 5.7 isn't stable.. big mistake :(
 
@AlmaDo I thought it'd be stable…
 
@bwoebi how? how... how can anything be stable if it doesn't exist in official repo & you'd be forced to download & install it manually?
 
@CarrieKendall say wut?
 
@AlmaDo repo owners are sometimes slow.
 
@bwoebi but that's your insurance ..
 
1:31 PM
It took some time until 5.5 was available in the repo.
 
@bwoebi and I've installed 5.5 into /opt before it was in the repo..
 
^ do it
 
I just popped in hoping you were coincidentally talking about DI so the following would be relevant, you aren't so it isn't but I'm posting it anyway:
 
@DaveRandom :-)
 
1:34 PM
ah, I see, I missed one package to delete
 
I know this probably isn't the right place for this; but im uploading a site for a client, but his old content wont refresh1?
 
@bwoebi (: manual installation into main systam = pain in the ass
 
its urgent! please anyone?
 
don't say urgent !
 
Why?
 
1:35 PM
@RahulKhosla famous last words
 
It is though..?
 
because I said so
 
Shit.
Ok can someone check it out?
 
Because urgent is actually === !urgent
 
don't say shit
 
1:35 PM
@AlmaDo no, mysql has also a mysql-server-core-5.5 package which is the common dependency… didn't see that
 
@AlmaDo Any ideas?
 
you won't provoke a response like that, if the question is interesting or worth answering you will get an answer ...
 
@bwoebi yes, and that what packet manager should do for you :p
 
@AlmaDo much better now I think
 
hehe
 
1:36 PM
Or, for those who are more inclined for event-driven; on('urgent', ignore);
 
like I've said - you left some old garbage..
 
Seriously all I get is trolled around here. Common people I really need this!!
 
saying it's urgent just annoys everyone, since we all have jobs to do and are trying to do them, while socializing ... stackoverflow is the place to ask questions, this is a place to talk about kittens and what not ...
 
user895378
1:37 PM
> saying it's urgent just annoys everyone, since we all have jobs to do and are trying to do them, while socializing
 
Its my first big job.
.....
 
user895378
^ Thank you.
 
I'm not trolling anything or anyone, I'm telling you how it is ...
 
I am trolling. But - yes. That's how it is
 
@RahulKhosla We haven't even started trolling yet. :)
 
1:38 PM
So can anyone assist me on this 'matter' ?
 
user895378
Urgent, adj.: I don't know what I'm doing and I need you to stop doing your job and do my job. Right now. You bastards.
 
bastards
 
@RahulKhosla To be fair, since your attendance became regular, you've spammed, begged, and urgent-ified pretty much every question you've had.
 
Please?
 
1:39 PM
@rdlowrey you should left "n" (:
 
He may be living on the edge
 
user895378
An "urgent" ... perhaps we should noun-ify the word.
 
@rdlowrey a random question for you; whereabouts are the 'Response' objects created in your code base? i.e. are they created outside of the 'controller' that builds the response, or does the controller build the appropriate response object inside itself, or something else?
 
@rdlowrey exactly
 
@rdlowrey Urgentification To create an urgent.
 
1:40 PM
Just imagine the guy sitting with a gun pointed at his head and we're trolling
 
we're not really trolling, we are doing what we do and rambing, the point remains, don't say anything is urgent, don't ask questions you can answer for yourself ...
 
@SergeyTelshevsky so the guy will live a little longer (that is - he'll live while we're trolling)
 
don't ask questions you can answer for yourself is advice I give to my children, 20 times a day ... #justsayin
 
@JoeWatkins what about rubber duck programming?
 
user895378
@Danack I expect the callable that responds to a request to return a Response
 
1:42 PM
cool.
 
@JoeWatkins yes. Final stage of that rule is when person suddenly realized that he can answer all the questions, relevant to himself
 
user895378
$controller = function($theRequest) { /*...*/ return $response; };
 
@FlorianMargaine never heard of it ...
if you are trying to explain code to a rubber duck, you're not debugging, you are fucking mental
8
 
@rdlowrey How meticulous are you about passing in ResponseFactories to the callable, or is that one of the places where it's just overkill and so doing new SpecificResponse is acceptable?
 
/me is out again ... lata chaps
 
1:45 PM
@JoeWatkins laters Joe.
 
user895378
@Danack The controller is the response factory; it's job is to create and return a Response
 
user895378
There's no need to pass in a factory so the de facto "factory" (controller/responder/whatever you want to call it) can do its job.
 
user895378
I hate saying "controller" because that brings MVC baggage but it's shorter than saying, "the callable whose job it is to respond to the request," and everyone usually understands what you mean.
 
@rdlowrey For me, the context is that I'm making a 'FileResponse' object where the response is a file that already exists. If the website is running behind nginx and it has the X-ACCEL file enabled, I could replace that with a NginxFileResponse, which sets the magic headers that nginx intercept.
 
1:48 PM
~
 
Rather than sending the file itself.
 
user895378
I still don't see why you need to inject a factory for that, though.
 
user895378
It's the controller's job to be the response factory. Logic that does different things based on the form of the returned Response is external to the process of response creation.
 
For the first time in 2 years I receive a short-term appointment for a test regarding my stress-fractured leg. And when is it. SMACK DAB in the middle of the only holiday I have had in well over a year. Typical. Decide to reschedule... and they only do them once a month! Extra typical. Sigh....
 
1:50 PM
@rdlowrey I think an example would be with Symfony's Response objects, for example, one of them (maybe BinaryResponse?) takes the response body as a constructor parameter. So, you'd need a factory to DI that as the response isn't known at the time of dependency resolution
Maybe that's not what he meant..
 
@rdlowrey Yeah, don't have to inject a factory, but that just means that the callable needs to be aware of the server's config, which also doesn't seem optimal.
 
user895378
@Jimbo Why do you need a factory to do return new BinaryResponse('body'); ?
 
@rdlowrey So that there is no new BinaryResponse :D
You know, method signatures and all.... the point of auryn...
 
user895378
class MyController {
    private $config;
    public function __construct(Config $config) { $this->config = $config; }
    public function respond(Request $request) { return new Response; }
}
 
user895378
@Danack ^ ?
 
user895378
1:52 PM
What's wrong with that?
 
hmmm, being a bit confused, could someone tell me what this xPath means p[not(*)]
 
user895378
If Config is a dependency of the controller then it's passed in.
 
class MyController {
    public function respond(Request $request, Response $response) { return $response; }
}
 
user895378
I hate passing in a mutable Response to be modified.
 
user895378
Ugly.
 
user895378
1:53 PM
Input-output.
 
user895378
All you need.
 
@rdlowrey what if the response implementation has dependencies?
 
Well it's either that, or...
 
@rdlowrey Not... entirely true.
 
class MyController {
    public function respond(ResponseFactory $rf) { return $rf->buildBinaryResponse(); }
}
 
user895378
1:54 PM
@DanLugg Every functional language is built around this concept.
 
user895378
All you need is input, output.
 
@DanLugg Indeed. You also need Pringles. And KitKats
 
user895378
Anything else is unnecessarily complicated.
 
class MyController {
    private $config;
    public function __construct(Config $config) { $this->config = $config; }
    public function respond(Request $request) {
        if ($this->config->nginxSendFileEnabled == true) {
            return new NginxFileResponse($filename);
        }
        return new FileResponse($filename);
    }
}
 
A testament to documentation when I look at my own and think "It's not long or boring enough".
 
1:54 PM
Immutability affords simplicity, but in some cases inflexibility. There is no absolute.
 
@Fabien s/documentation/penis/
 
lol
 
class MyController {
    private $config;
    public function __construct(Config $config) { $this->config = $config; }
    public  function respond(Request $request, ResponseFactory $responseFactory) {
        return $responseFactory->build($request);
    }
}
 
A mutable response object doesn't warrant "you're doing it wrong", and functional languages are sometimes a false panacea.
 
@Jimbo E_TOO_ENTERPRISEY
 
1:55 PM
Your ResponseFactory would decide on the response to make, or, just decide on the request stuff right there in the method and respond
 
user895378
@DanLugg Let me rephrase: I have never encountered a scenario where the input-output model failed. Do they exist? Possibly. But if they do then functional languages are fundamentally unusable.
 
user895378
@Danack I am agree with all.
 
@Jimbo splitting controllers into controllers and views would make sense too. Controllers depend on a Request, views on a Response
 
user895378
PHP devs have totally gone off the rails in terms of factories.
 
user895378
You only need a factory if the Response has behavior that requires mocking inside the method where it's created.
 
1:57 PM
@rdlowrey Man, you haven't seen my Factories directory to delay object instantiation during auto-injection when these objects have constructor params
It's like amazing
 
@rdlowrey If a problem can't be solved by something, that doesn't make it fundamentally unusable; moreover, surely functional language can solve any problem that imperative ones can; it's just a matter of complexity.
 
Anyway, thanks for the replies - back to writing code.
 
user895378
@DanLugg But the problem can be solved, and with less complexity.
 
@rdlowrey Not absolutely, that's subjective.
The criteria for complexity can vary.
 
user895378
function($in) { return $out; }
 
1:59 PM
function ($thing) { $this->out = $out; }
 
user895378
you forgot new
 
user895378
Objectively, mathematically, a class adds complexity to functions.
 
No Some argument, but not much.
 
user895378
1 min ago, by Dan Lugg
@rdlowrey Not absolutely, that's subjective.
 
:-P
 
user895378
2:01 PM
not much, except maybe a ton.
 
user895378
who knows, because now the complexity can potentially spiral out of control.
 
I think it comes down to use-case analysis.
Nobody can argue that pipe-in pipe-out is not simple.
But sometimes it's less than practical.
 
@DanLugg That's what SHE said.
 
I... I... uh.
 
again, rule #16? :p
 
2:04 PM
@rdlowrey Every day, it sounds more and more like you're going to run off to have rough sex with Haskell.
 
user895378
@Danack well-done ... Very well-done!
 
user895378
@DanLugg I'm not advocating for using a strictly functional language, just for the application of functional concepts and the input-sink model where appropriate.
 
user895378
And to me, responding to an HTTP request is one of those times.
 
user895378
Given a Request input, return a Response. Then the calling code knows what to do given that Response.
 
user895378
That's all I'm suggesting. That certainly doesn't preclude an instance method from having object dependencies injected at instantiation time and using them to generate the Response when called upon.
 
2:09 PM
@AlmaDo everything's clean again! :-) (Thank you for your help before)
 
@rdlowrey And I agree with that. I just don't think it's inappropriate that the Response object be incrementally constructed.
 
@bwoebi any time..
 
@rdlowrey but when a call to a controller changes the state of the domain model, you don't have a simple in/out scenario anymore.
 
@rdlowrey input-sink model? Google fails me for this term
 
stackoverflow.com/questions/24410942/… can anyone help me in this question
 
2:13 PM
@TheRealHamza step 1: uninstall xampp
 
user895378
@DaveRandom you have a hole that you dump data into (that's what I mean by "sink") ... probably not an official term
 
user895378
@Patrick I'm arguing against the statefulness that makes that a possibility.
 
user895378
Because it adds complexity where none is needed.
 
@JoeWatkins well, it even has its own wikipedia page.
Rubber duck debugging, rubber ducking, and the rubber duckie test are informal terms used in software engineering to refer to a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug his code by forcing himself to explain it, line-by-line, to the duck. Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. I...
 
@Patrick I have completely reinstalled windows.
 
2:17 PM
^^ I hung a picture crooked, so I tore down my house.
 
oh. In that case, step 1 becomes uninstalling windows :)
But seriously, don't use xampp. Let me guess, you are not even using the newest PHP version?
 
@Patrick No sane person runs the newest php version ;)
 
@Patrick no I am using php 5.5
ya php5.6 is newest but it works!
 
@FlorianMargaine I find that trying to write a good question to post on SO will often yield the same result.
 
@TecBrat yes, it's rubber duck debugging :)
 
@PeeHaa How comes?
 
Why on earth we one want to install the newest php version (unless you are worknig on php-src)?
I always let other people crash test releases for me tnx :)
 
New shiny features? :)
But that's for my personal projects. At work we are on 5.4 I think
 
oooooow. You are talking about major version.minor versions
 
ah.. yes... :)
 
2:38 PM
@TecBrat This has happened to me quite a few times :P I've spent ages carefully crating a question that is sure to garner upvotes because it just looks awesome and is well constructed.. and then at the end I'm like "hold on, I know how to do this now! ffs!"
 
Anyone know what "message is sent directly to the SAPI logging handler." in php.net/error_log means? What if the SAPI is CLI? What will happen then?
 
Hello, does anyone here know of a good database of uk postcodes. Need to look up county and town from user postcode. Found a few collection out there but they have masses of data.
 
> For example, it is an error log in Apache or stderr in CLI.
@Gordon ^
 
@PeeHaa thx
 
np :)
 
2:50 PM
so it would be equivalent to calling trigger_error then?
 
In effect I think yes, but that is just me guessing shit / making shit up as I go :)
 
k, np. i'll just use 0 instead of 4
 
Aaaaaaaaaaaaaaaaargggggggggggggh stupid comment timer reset thing twat RAAAAAAAAAAAAAAAGE!
 
Am I the only one who is traumatized by the ElementaryMVC thing?
 
Oh god. I forgot about that thing
Tnx @tereško ...
 
3:03 PM
@Gordon In terms of where the message goes, not in terms of the other stuff trigger_error does (handler callbacks, "fatal" behaviour etc) context fail, ignore me
 
@tereško went past me. i dont know what it is
 
@Gordon I suggest you keep it that one. Think of the eyes
 
By the looks of it, that tard is not even hashing passwords
 
@tereško He does kinda
 
3:06 PM
Also, writing on phone is kinda painful
 
Also:
Errrrrrrm what's this??? https://github.com/dmofficetech/elementarymvc/blob/0f78be6291ad9720bbbbdc6b99960173d38a482d/_site/app/config.php#L39 #YAFF #wut #wowsuchsecurebecauseitissalted
 
I failed to find where it is used in his code
 
@tereÅ¡ko The Security class, of course github.com/dmofficetech/elementarymvc/blob/…
 
Notice that said class is nowhere used in Auth. And isn't mentioned in his post
 
@tereško Probably me slagging it off on twitter
I have private messages from him
 
> Mainly I'm just mirroring the file structure of some other frameworks so as to not be too different with regards to where developers can put
 
morning
 
3:36 PM
@NikiC monring
 
> Thanks for the link. I get where you're coming from now. I think the ambiguity comes from the 'model' in EMVC being more of an empty 'space' set aside where all of the above can be implemented by the developer as they see fit. It's somewhat of a misnomer, I agree.
 
@NikiC wunderkind
 
wait
how can the string be empty?
 
@PeeHaa bah
 
google.com/events/io Starts soon. @ircmaxell is there isn't he?
 
3:42 PM
@PeeHaa I still haven't gotten why he should be a wunderkind?
 
Because he's awesome?
 
Has absolutely anyone used dump-gnash on *nix before?
 
@ircmaxell You probably don't know because all your talks get accepted, but do conferences usually not send rejection notices when talks aren't accepted? Seems odd to me, at least.
 
I particularly like the advice in method 3
 
> Implement this padding. To do this, use the VBScript String function to return a string of the same character, which is one more than the ErrorThreshold that Internet Explorer uses to display the friendly error message. For example, add the following line immediately before the </body> tag of 500-100.asp:
<% Response.Write String(513, "_") %>
@DaveRandom What the actual fuck does that have to do with anything? Nevermind, this is all so retarded.
 
3:54 PM
@DaveRandom WTAF Google. Chrome is eating up my characters again
 
@Fabien site doesnt work for me. But live stream is also available at youtube.com/watch?v=wtLJPvx7-ys#t=802
 
@PeeHaa have you found any ref to this problem anywhere one teh intarnetz?
 
@Gordon Ah nice.
 
Yes previously I have found some dupes
 
lol, the youtube message window is going bananas.
 
4:02 PM
First one to spot Anthony wins
 
@Fabien Someone text him, then just look for the guy looking at his........ wait.
 
lol
It's like one big room of social anxiety
$5 that Bowling Ball is the beginning of a Rube Goldberg machine.
 
10$ you're right.
(It kinda already is though)
 
@PeeHaa chrome://flags/#enable-direct-write ?
(turn it off, being the advice)
 
Ohh snap. We're almost there.
 
4:09 PM
yay sound!
 
Hi all I want to join WADAPRESS CMS company,anyone has information how to get there and how to interview?
5
 
Sorry for my incorrect usage of star but I have to...
 
@PratikJoshi Throw bananas at a horse until a parakeet grows teeth.
 
Sorry i had to say WORDPRESS
@DanLugg , I didnt get you
 
@PratikJoshi Sorry, that was unclear; have a staring contest with an antelope and then swim in a pool of vegetarian chili.
 
4:14 PM
@DanLugg ,please answer my question if you can.
 
I'm trying.
 
user895378
> Because IIS 4.0 does not strictly follow RFC 2616, it returns Active Server Pages (ASP)-based Microsoft Visual Basic Scripting Edition (VBScript) errors with a status code of 200.
 
I really want to work at Wordpress
 
user895378
@DaveRandom ^ Nice.
 
user895378
That's not just "not strictly follow" ... it's "blatantly breaks/violates because: idiots."
 
4:17 PM
@Jimbo where did you link him to ?
 
@PratikJoshi Have you tried emailing them?
 
Not yet ,but still say if i email them ,then what next?
 
Wait for a response
 
@PratikJoshi then they ignore you
 
@RonniSkansing , I mean suppose i email them ,and they reply me. then what next.
 
4:20 PM
@PratikJoshi with that attitude you will not get a job
 
@PratikJoshi Why do you want to work for WordPress? (Which, more accurately, would be Automattic)
 
@RonniSkansing , Hello I am just asking What is next procedure.Its not about attitude.I have great attitude.i just asked procedure
@DanLugg , To get knowledge in Great CMS company.Get popularity and to get $$$$$$$$$$$$
 
@PratikJoshi Why would WordPress (Automattic) hire you?
 
@PratikJoshi You're a nut.
 
@Fabien , because I have good coding skills,i have also proven time to time,so They would like to hire me.
 
4:23 PM
I'm pretty sure that even Automattic knows that their "Great CMS company" has produced a fucking terrible platform.
 
@PratikJoshi Any open source work to prove these skills?
 
@Fabien , I have work experience of 1 year in my company with open source .And my company works with International clients.
 
You come right out of a comic book
 
^^^ I'm going to lunch before I facepalm to death.
Check y'all later.
 
4:25 PM
@PratikJoshi Where is this Open Source project?
See you @DanLugg
 
What do u mean ? See it was made in PHP,Wordpress which is free,open source ,so project was also open source ,Though company charged him money.
 
Yeah that's not open source
@PratikJoshi Having aspirations is great. But you need to dial it back it bit. Even for Wordpress I get the sense you have a lot to learn about programming.
When you know enough about programming you won't need to come in to a chat room and ask how you get an interview with wordpress.
 
I thought at least someone is skilled and can help me get job @ wordpress.
 
@PratikJoshi is it you that should be skilled..
 
I know , i just dont know the procedure
 
Sorry guys , i found out the solution
 
@PratikJoshi I would better sell my soul ... at least that would have some satisfying benefits
 
4:51 PM
@PratikJoshi lol, $500
 

« first day (1348 days earlier)      last day (3616 days later) »