« first day (1339 days earlier)      last day (3835 days later) » 

00:04
@ircmaxell have you seen that last Eric Meijer lecture?
I enjoyed it
What is the best way to make multiple variables equal the same thing? i.e. $a = 1; $b = 1; $c = 1;
$a = $b = $c = 1
Hm, interesting, didn't know you could do that. Thanks @BenjaminGruenbaum
someone can enlighten me?
how is called the public folder in a vps?
@ben link?
@ben you mentioned type unification... How practical is your knowledge of it?
00:54
@ircmaxell not very, a university course and a pet project seeing that it can be done. Why?
I can probably answer a specific issue, but won't be able to code an unification inference engine from scratch without reading more about it and checking my course notes.
let me see if I can find more recent slides on unification
Here, start at slide 11 moodle.cs.huji.ac.il/cs13/file.php/67842/unit05One.pdf - the algorithm is at #17
fair enough
How strong is your theoretical background on type systems?
not at all
The 'classic' algorithm for type inference is Hindley Milner.. I recall a good practical article about it but most of my notes are too theoretical.
01:06
I haven't read that but it looks solid
11:04 <ircmaxell> also: please fix this error. This is perfectly valid PHP, but you raise warnings: Hippy warning: Creating array from empty value in
11:12 <arigato> ircmaxell: you can ignore all "Hippy warnings".  they are all non-standard warnings that we raise in case the source is "strange" from our point of view
11:12 <arigato> where "strange" means "might easily be buggy"
11:13 <ircmaxell> Riiiiught
11:13 <ircmaxell> So basically E_STRICT, but ignoring error handling semantics...
11:15 <arigato> I guess you're getting this hippy warning in code that uses "$varname[] = ..." ?
01:51
@JoeWatkins push for anonymous classes again. Please :-)
02:09
@ircmaxell I'm guessing that's in response to the talk by Eric? :)
I agree it is useful but I'd much, much rather see his efforts on other proposals.
I'd rather both, since the code is already done ;-)
I think doing the RFC process is much more work than the implementation in this case :)
The people factor can be so hard sometimes.
Yeah, true
So, in that case, @Levi can we please push for anonymous inner classes? :-P
02:15
Yes, but not now.
At work I usually am not on time constraints for releases, which is really nice.
At the moment however I am working on a time sensitive project.
It's because we need to get features built, refactored, tested, integrated, retested and included in an upstream project by November.
Right now I have it built with super basic tests. That's the easy part.
02:53
@ircmaxell Have you ever seen a library/framework that facilitates composable plugins at runtime in C?
My google searches have been fruitless.
03:30
mornin'
user924016
04:56
mornings
05:14
morning
05:38
public function getMomentIncome($database, $query){
return $this->querySelected($database, return $this->query($query));
}
is this valid ?
error :
PHP Parse error:  syntax error, unexpected 'return' (T_RETURN) in
any help ?
you don't need the second return
in the querySelected method, second argument
How i use another method then ?
@SergeyTelshevsky
you mean just
public function getMomentIncome($database, $query){
return $this->querySelected($database, $this->query($query));
}
is anyone of php here ?with yii
i am facing difficulty to render / echo any thing in my actionUpdate while i m passing my id to the url can someone please help me
?
user924016
Ask the question, if someone is around and wants to help, they will help
ok
here is the issue can someone pls look into it
pls check this
user924016
06:03
Sorry, most people will not download your project to help you out. Please, a short and specific question (a single question at a time also :) )
@RonniSkansing yes there is also a short question pastie.org/9293851
user924016
"Here is my actionUpdate and actionDelete when i m trying to hit any one these buttons i am faied to render any view on screen......
can someone pls tell me whats the issue ? "
user924016
Have you debugged you code?
yes have debugged
but still failed to echo / var_dump anything on view using these actions
no view is rendered
user924016
Any errors?
user924016
06:09
Have error reporting on? checked logs?
yes there is no error
yes checked logs as well
morning
user924016
Morning
we gave launched a kickstarter from our incubator: kickstarter.com/projects/airdog/…
6
user924016
^ cool
06:30
@samitha yes, just like that
-3
Q: Code-Golf: How to calculate amount of fabric

user3743718If a fly can swim across syrup jar in one day, the how much fabric you'll need to make ballet slippers for rhino?

FINISH HIM
@tereško That looks awesome. Are you part of the team?
07:11
@bwoebi I'd have to check to know for sure, but I think that "calling_scope" is what we normally call just "scope" (i.e. the scope that'll be active in the called method) and "called_scope" is the LSB scope.
good mornings
07:29
@SecondRikudo not part of "core team". But I have wasted at least 2 weeks on different parts of the campaign and associated materials
@tereško looks really great, do you know how long can it fly/film on one charge?
07:42
@SergeyTelshevsky not sure. At least 20 minutes for the "testing version" (with all the additional gear tacked on and the heavy body). You can probably ask on twitter or facebook to get some details from people with clue about the technical details
morning :)
MORNING ALL:)
Morning
Yay another "mvc" framework called ElementaryMVC. It uses underscores, and "models". Awesome.
morning people
08:14
moin
user924016
@Jimbo arg
user924016
_Routes::add("/cart/", "shopping_cart", "overview", "recent"); ... lol =]
@Jimbo lol @ first steps of the tutorial
@Jimbo doesn't use autoloading at all github.com/dmofficetech/elementarymvc/blob/master/_site/lib/… "don't make things complicated"
@SergeyTelshevsky What the.. I don't even...
@Jimbo Wow that thing is really terrible
08:23
Wtf, he replaced all the superglobals
That's really going to bite someone in the ass further down the line...
@Jimbo Not even that much further it is just fubar.
And it was the second file I opened so yeah...
> Interesting metric: switching indentation from 2 to 4 spaces had PHP taking 25% longer to parse ElementaryMVC on average #php #benchmark
Who weren't there? We all thought at some point in time that we can do better than the community
@PeeHaa What. A. Jockstrap.
@ElementaryMVC Interesting metric: developer time is waaay more expensive than PHP parsing time.
08:26
^ Exactly
Oh my god.
I stop looking at the project now, before I get some tumor...
@SecondRikudo I know!!
I think they made it suck on purpose.
I can't imagine someone actually writing this thinking they're doing good to the world
Just don't let @tereško see this!
(oops :P)
That was what I thought too :)
08:27
Quick quick, hide the evidence!
that's ... really really horrible ...
if (self::connected() AND $the_query)
LOL
I didn't know anyone actually used AND
ouch ouch my eyes
@FlorianMargaine You would be amazed. I see that failry often on github
there are a billion code bases like this tho ... they aren't usually released is all ... or spoken about, or thought about, or considered a solution to anything other than the thing they are doing currently ...
@SecondRikudo I already took a quick look. It's a sad joke.
do symfony and the likes have 1000+ LOC files?
And then @BenjaminGruenbaum comes and yells "See? This is why PHP sucks!"
hehehehehehe
user924016
08:34
lol
well, PHP does suck.
No arguments there.
But no more than many other languages out there.
what's wrong with AND?
I'll argue ... or I won't ... I'll just say that you're wrong, that all the evidence says you are actually wrong, so there's no real argument to be had ... individual programmers suck, there's nothing else too it ...
@SecondRikudo lisp is perfect
:P
08:35
I could have written code just as awful in any language you like ...
I'm not sure I could write it that awful actually ... it's pretty terrible ... but it doesn't really make sense to lay this at the feet of any language, a [terrible] person done it ...
@PeeHaa if we're talking ORM, then yes
@bwoebi huh, I thought I created that file, why is it not containing me in the blame view? O_o
it's kind of wrapper..
@iroegbu Sweet mother of god.
@bwoebi what is wrong about that test? Looks good to me...
@Oyeme for what purpose ?
08:42
@Ocramius yeah, I've fixed it… loo at the last diff of that file
@Ocramius No not ORM. Just the DBAL
@JoeWatkins wanted to make something cool
Summed up, there are: underscores. Statics everywhere. Untestable, unmaintainable code. Superglobals are overwritten. No design patterns, locks users into that specific implementation of things. No autoloading (seriously)... no composer usage. And the worst thing? This poor guy has put in so much time and effort writing terrible code, and he thinks it's good. I wish he'd used StackOverflow more before doing this.
hi all
@Jimbo sounds like a great github issue with a number #1
08:44
@Jimbo yes, all of this ...
0
Q: Google+ plus post with video embedded via PHP

Let's CodeI want to share a link on google+ which will have embedded video when shared as post Here are the relevant open graph tags that are being used <meta property="og:type" content="website" /> <meta property="og:url" content="http://mysiteurl" /> <meta property="og:image" content="http://imageurl" /

can anybody help me with this?
Mornings
moin chaps
morning @StephenWolfe + @DaveRandom
08:47
ginmonr
Who here understands "second order polynomial" maths?
I don't
but I'll soon have to
and I'm scared
Lol
A client wants me to work out their pricing using it
Not found any examples of PHP using it.
Anybody know that how to run firefox on CentOS? I am using Windows XP and I am operating LINUX using Putty. I want to run firefox browser in it and want to execute some script on it.
@PeeHaa the DBAL QB pretty much builds raw SQL, so there's no real abstraction between dialects there
08:49
@Clown firefox needs GUI
you need to execute a script or a link ?
no its a script
javascript
I still don't get it: why do you need firtefox for that ?
actually i am implementing BOT in SO Chat. So, I have to execute some script on Browser Console..
To keep my bot alive i have to keep browser on.. @tereško
08:51
@Clown thne use node.js instead
@DaveRandom You, my friend, are a networking beast. And I still have no idea what it does how it does it :D
But, how can i login in Stack Overflow?
lol
hire a developer
do i need to make a separate application for that
@Clown I heard the guys in C++ or JavaScript are good at this
08:53
@StephenWolfe wtf
@DaveRandom WHERE ARE THE TESTS?!?
/me shakes fist
@tereško I m a windows application developer. So, neither i have Linux knowledge nor about Web Developing..
then why the hell are you making something on linux with javascript ?!
I was thinking about taking up heart surgery as a hobby ...
this guy gives me the confidence :D
any takers ?
@Ocramius I SPENT ALL WEEKEND MAKING IT WORK, THE TESTS ARE COMING
08:56
Actually i have a VPS Server on CentOS. and atleast i know that how to create a BOT for SO Chat.. i want that just keep it alive 24x7.
I'm sorry to break this to you, but it never was actually 'alive' :-(
@Clown Write it for Node
!!live
@Clown I'm not dead! Honest!
08:57
@DaveRandom @tereško Look at this
!!google FIFA
I'm really not sure why Caprica still requires a browser, seems like an odd choice for someone who's that good at JS
I think @rlemon still just keeps her running on a battered old windows machine
We need a Lusitanian's Mom bot. Any takers?
@PeeHaa cc ^
08:59
@Jimbo hundreds, daily, that's the problem
@DaveRandom still does, an adapter for node is being written, but it's hard
I'm not sure if you could maybe make it run on Phantom?
I have no idea exactly what the limits of Phantom are, never used for anything really complicated
the limit is on SO login afaik
I don't know much about it.. How can i run my bot without browser..
@FlorianMargaine I'm quite certain it is
09:00
@JoeWatkins :D
... and now there are two new accounts added to ignore-list
SO login has a document.write somewhere in the middle of its login pages that crashes phantom iirc
or something like that
You could easily use Behat/Mink and Selenium2Driver. Run it headless with xvfb-run. Done
xvfb was a pita to install last time I tried
Lol
sudo apt-get install xvfb
09:03
what is the origin of "Lusitanian's Mom"?
@SergeyTelshevsky Lusitanian's Mom's Momma
lol
@Jimbo Why have a bot when I do the real thing?
@DaveRandom Wait wait, is this thing the library I would use to make async http calls within the event loop?
Sigh looks like reading time
09:07
@StephenWolfe I don't get it ... why so complex, what's the nature of the business or sale ?
@JoeWatkins well when pricing on qty the mark up starts of high and drops as the quantity gets bigger. They want that markup to be done on a curve so there are no massive jumps in price
@JoeWatkins e.g 999 products to 1000
@JoeWatkins can't say that explained much to me :)
I c I c ... so then you must know the terms already, then it probably sounds more complex than it is ...
@Jimbo No that's the bridge, which isn't yet released, although will be in the next few days. Basically there was an issue with releasing that in a useful way where my life was made difficult by the fact that Artax was using an ancient version of Alert, so I updated it (github.com/rdlowrey/Artax/pull/36), meaning I don't have to release an adapter for Alert <0.6 (if there are any other things using Alert <0.6 that's not my problem :-P)
@DaveRandom :D
09:16
While I was doing that work I noticed that Artax was still using blocking DNS lookups, so I immediately got distracted and did that instead
Will be back to working on the bridge now though
@Jimbo what version of React are you using?
@JoeWatkins well excel can work it out so I figured I can with PHP. Just got to go back to school now.
@DaveRandom React/Socket: 0.3.*|0.4.*
@StephenWolfe You are sourcing data from Excel or...?
@DaveRandom no
@Jimbo What matters is the react/event-loop version
09:20
@DaveRandom Data is input quantity and cost then markup needs to be worked out on a curv
@DaveRandom 0.4.*
(for these purposes, anyway, I also submitted a PR to react/socket-client the other day because 5.6 will break SSL clients)
@Jimbo Ah OK no worries then
Actually you could start using dev-master right now, the API for the first release is final
@DaveRandom Tbh I'm not entirely sure how to handle async stuff within this. Let me get it working with Artax\Client (almost done), then I'll try and switch over
@Jimbo Well in a way you'd be better not doing that if we're going down this route because it can be complicated to migrate from blocking -> async, can I take a look at your sauce?
Is it still private or can you set up a public github mirror now?
@DaveRandom I'll do public github now but there's a lot of todos still...
Regardless, you'll be able to do a search for Artax\Client
09:24
@StephenWolfe sounds like you just need to find the formula to produce the graph you want? (I hated that in school :x)
y(x) = a*x^2 + b*x + c
:/
@Jimbo Do I need a bitbucket account to see it?
@DaveRandom No I'll put it on github
Presumably you have to add me as a collab or sth
@Jimbo Is you git-fu good enough to do it and keep the history? If not I can do it if you give me access
@StephenWolfe there ya go ...
09:26
Actually it's pretty simple to do that, I'm sure you can handle it :-P
@DaveRandom Keep the history of what? Clearly my gitfu is not :P I was going to literally push everything, and that's it
(I haven't been doing commits etc, or anything to do with git up to this point with this application, it's just about getting it working)
Right I am going to see if I can go make this :D I be back later with the results
A quadratic function, in mathematics, is a polynomial function of the form :f(x)=ax^2+bx+c,\quad a \ne 0. The graph of a quadratic function is a parabola whose axis of symmetry is parallel to the -axis. The expression in the definition of a quadratic function is a polynomial of degree 2, or a 2nd degree polynomial, because the highest exponent of is 2. This expression is also called a quadratic polynomial or quadratic. If the quadratic function is set equal to zero, then the result is a quadratic equation. The solutions to the equation are called the roots of the equation. Origin...
here's a simple-ish (I understood it) explanation of that function ...
@DaveRandom It's up
1) Create a github repo for it (but don't initialise it, don't add a readme or license file through the UI)
2) in your local clone of the bitbucket repo, run git remote set-url github [email protected]:/J7mbo/NameOfRepo.git
3) git fetch origin
4) git checkout master
5) git pull --rebase origin master
6) git push github master
7) for each additional bitbucket <branch>:
8) git checkout <branch>
9) git pull --rebase origin <branch>
10) git push -u github <branch>
09:31
Oh shit
I did a new repo, btw
Brand new
@Jimbo Just nuke it and create it again and do the above ^ and you can keep the history from bitbucket
@DaveRandom I don't want the bitbucket history, I deleted all that crap :P
This was from scratch
I wrote this from scratch, all that bitbucket stuff is gone, thank god
So you've not been keeping it in VCS? :-S
Nope, I've only been working on it a few weeks
@Jimbo If I don't make a commit for a day I get nervous, what if your computer dies?
09:34
@DaveRandom I have backups on my thumb drive, but anyway, it's in VCS now stop complaining :P
bjori and Pierre have been going at it again, I really don't understand their problem with each other. Every discussion seems to start out civil and just descend into a pair of 5 year olds jabbing at each other :-(
In public as well
@Jimbo :-P
Okay there's 3 places it seems that uses Artax\Client atm
App\ServerArbiter\Rules\Supporting\ServerDownloadsCountFetcher, Server\Action\TorrentsHandler and Server\Factories\ClientTransportFactory
The first one will be handled via a standard AJAX call so I guess that doesn't matter
The latter two are in the src/Server directory and that's the thing that'll be running in the event loop
The start is src\Server\WebsocketServer.php <--- this is run from cmd line. It uses the EventHandler in the same directory, and that's it you can see all the shit that the websocket calls will go through in there
@DaveRandom pretty disappointing ...
09:49
Does anyone have an idea of what a SQL/MySQL developer should be paid per hour on a freelance job?
For migrating a database
@StephenWolfe Not sure tbh, probably best asking SQL/MySQL developers specifically as opposed to php devs
@Jimbo ok cool
@PeeHaa We should probably stop ripping him now, he's probably already standing on the edge of a bridge after having his life's work torn to shreds by room 11
:D
LOL at all your tweets xD
@JoeWatkins what is sorry, Hannes and Pierre?
@Jimbo Well my twitter description is: "PHP developer with a passionate hate for crap." so it is to be expected. But the real issue here is people spitting out crap all over the innocent community
09:57
@DaveRandom YES. He wasn't talking about my code!
:D
@DaveRandom yeah ...
inorite
I sort of don't mind if they hate each other for no obvious reason, but they could at least do it on IRC where it's a little less public...
I don't think the reason isn't obvious ... it's to do with perceptions I think, bjori sees the project very differently to pierre, pierre see's this thing where we are "in charge" and hannes see's a project where lots of different groups of people are trying to get stuff done ... one of those perspectives is in agreement with reality ...
@Jimbo Also it is called peer reviewing and not ripping ;-)
so for hannes living in this world where every communication he makes is toward some end, he's trying to get something done, he just wants to write some code, do the next thing ... and pierre comes in with "me and my team" all the time ... it's gotta be annoying ...
10:03
haha
*A part* of the form in the admin interface of a system we're integrating with (via SOAP, of course) http://t.co/ksw9q6oClD
I like both of them, however, I appreciate bjori's attitude more, I don't care that he is abrasive sometimes, that's required of him to get stuff done ... I know that it is
@tereško OMFG :P
pierre does have a habbit of twisting things, he's probably not doing it to be devious or whatever, but his perspective is often so out of touch with the real world as to appear twisted ...
Just for the record: the news about #phpng on http://www.php.net isn't an official statement about php-next or ng but a personal post...
the rest of that status is interesting ... he says there that what I put in the post "doesn't represent that php.net view", I dunno what that means, it's in agreement with fact ...
they should probably just leave each other alone ...
@JoeWatkins Indeed, but Pierre is in a somewhat unique position, and he does sort of "own" (or at least part-own) one corner of the project (Windows support) - there are so few people who really comprehend how all that side of it works. I agree the Hannes comes across as less of an ass on average, though, and definitely he has the more productive attitude
10:14
@Tyrael are we sure we want to "fix" that? bugs.php.net/bug.php?id=48770 $this always refers to the class of the object we're using. We're using an instance of C, so let's use B as parent scope. And as of PHP-5.6 the syntax for doing that is parent::func(...$args); and so there's nothing impossible now. I think actual behaviour is correct.
well, careful, does that mean we hand over control of /Zend to dmitry and zeev, should we hand sapi over to johannes and whoever else is really into that stuff ... of course we shouldn't, we shouldn't even say that they are in unique positions in my opinion, saying it elevates them to that position, but it's not really so ...
anyone of yii with php ?
when it comes to technical matters, these people should be our most valuable reference ... but it shouldn't be anything more than that ...
like ideally, if the rest of the project decide they want something that zend chaps don't want, it should not be an option to say no, if they are to be useful then they should just seek the most suitable solution to the problem, not argue with the decision made by the majority ... the fact that this doesn't always happen is something we should actively seek to change, and that's not done by saying that anyone is in any unique positions, other than they are very valuable gotos in specific areas
So I submitted a bug to the PHP multithreading extension and the lead dev confirmed it's a bug and gave me workaround code to sidestep it...
:s did I do something wrong ?
10:30
@JoeWatkins well, just tweet him that you can fix it later, no?
(if it's fixable)
I said that in bug report, that I just don't have time right now and gave him get-you-going code ...
should I have not given him the working code because too strange ?
@JoeWatkins no?
seems mean ... he might be waiting a week or whatever for me to really get to it ...
@JoeWatkins Looks at least 1000 times better than my replies on bug reports
:P
^.^
10:37
@JoeWatkins Yeh I didn't mean that's the right way for it to be - it isn't - just that that's the way it (mostly) is at the moment
@DaveRandom ah yes, definitely ...

« first day (1339 days earlier)      last day (3835 days later) »