« first day (1077 days earlier)      last day (4097 days later) » 

07:00
Indeed, I was just joking. :)
Those are the tutorials I can pick on the Lynda.com website; pastebin.com/bvRVDqKm Maybe course 8 can be interesting for me.
Good morning
Good morning @ircmaxell
What's the good word?
tentacles
Not a bad word
07:07
morning
/me's off to the mall and market
Prague rocks
0
Q: Upload folder to server

Muneem HabibI want to upload whole folder to server. I have found after extensive research to use webkitdirectory directory in input tag. its workinf fine and now it is also selecting folder from the dialog. but it is only showing list of all files in the folder it is not uploading full folder to the server....

please help
@ircmaxell This is the good word for today :)
07:10
@ircmaxell , well , if the "american experiment" doesnt work out, you will have one more option where to move to
anyway .. g2g
mornings
@ircmaxell true and imagine how it was before the germans raided it.
moin @hakre
Wow, the Symfony project has had more than 9k PR's =O
mormornrongo
Wow that's quite impressive.
good morning @JoeWatkins, @PeeHaa, @Jack
and sure @tereško if it helps :)
no videos today?
07:17
@hakre Welcome to another Friday :)
Videos of what? ... heh
@MadaraUchiha why the Friday hate? =o(
@crypticツ Not the friday hate, just that little brat hate
@MuneemHabib add the output of var_dump($_FILES) to your question (the plain text one, see browser source).
@MadaraUchiha oh, things are cooking more hot now here in the chan.
07:23
@hakre Hmm?
rage against the Rebecca Black
It's perhaps the title of her new album.
:)
She can go and jump off a cliff.
I don't mind her personally at all
But her voice is horrible, who in the world let her sing?!
Why all people here hate Rebecca Black??
@YogeshSuthar no one does
Especially Gordon, he's an avid fan.
07:27
She has the voice of an angel =o)
@Gordon Read @MadaraUchiha's comments. :)
@crypticツ The angle of death, maybe.
@YogeshSuthar @MadaraUchiha is a delusional anime character. what do you expect?
@hakre Mornornorng
@Gordon That delusional anime character can still kick yo' ass!
07:28
@MadaraUchiha you aint got no blue color, so you cant kick no one ;)
Slap. Wham. Bang. Swosh. Rebacca. Black. The New Album.
good morning @Gordon!
@MadaraUchiha I am Sasuke. I will kick yo' ass. :D
@Gordon That's not what you said last night
@YogeshSuthar Pffffffffffffffffffffft
@hakre yo dawg. wassup?
You could have said "Konohamaru" and I would have believed it better.
07:29
@MadaraUchiha last night I was sound asleep
oh my. I put him into roleplaying mode. silly me
@Gordon After the painkillers you took from having my foot in yo' ass
@Gordon Paperworks. And my motivation is low :/
@hakre I have to work with CakePHP. What should I tell you? ;)
@Gordon Oh I love Cake PHP :D
@MadaraUchiha I knows you are jealous of me.
07:31
@YogeshSuthar What can you possibly do to defeat me?
On a sidenote, @Nikic wrote a patch for me so I have now officially proposed news.php.net/php.internals/69377
wow, you got good support. NikiC is very good at this.
@MadaraUchiha I will not reveal that thing easily.
@YogeshSuthar Keep on dreaming.
Good luck
07:34
@Gordon Hmmmm
The syntax is a bit controversial
Mornings
@ircmaxell thanks.
@Gordon Nice set of tests in there, good stuff :)
I'm assuming that you wrote the tests heh
@Jack nah, I just wrote the RFC. @Nikic wrote the patch
@Gordon Using the shorthand syntax in an abstract method will raise an error - why? What about abstract public function __construct($this->foo, $bar); ? I don't see any harm in allowing that, indeed it would introduce an (albeit hacky) way to put public properties in an interface
07:43
@DaveRandom because Nikic said so. I wasn't convinced either since I dont think an abstract method is as much a contract as an interface method but I didn't feel strong about it either. Also, it's up to the subtype to decide the implementation so the rationale is somewhat justified
Yeh I admit I'm in two minds about it myself, but I lean towards allowing it. Having said that if it were allowed I'd probably never use it, but I think we all learned long ago that this has no bearing on internals.
Another thing that I would never use but it's insane that they are disallowed is public properties in interfaces (clue's in the public)
But then that just stirs up the accessors pot I guess
no I don't think so. It's perhaps just that properties are somewhat very dynamically implemented, isn't it?
So introducing them in interfaces would cause too much work to change the code I guess.
The work involved is probably not major, but I don't see public properties as a contract.
How is a public member not part of the interface for the object?
I see contracts only in terms of behaviour.
07:49
:-D
Could be just me of course :)
Well first of all, PHP does not prevent you to unset defined properties.
Jotting the class hierarchy of sf-Security on a piece of paper ... I still have white space left =D
If you want to put properties into interfaces this unsetting can/must not be possible any longer.
I can see where you are coming from because of the lack of a readonly modifier. Apart from that, collections for example generally have a count property, it's just a value, and one that needs no supplementary logic to ascertain it (certainly I recalculate it at the time of member addition/removal rather than when it is requested) - why not just make it a property and skip the boilerplate accessor?
07:52
So quick Behavior OOP question: Are getters/setters part of the behavior or not?
Morning
@DaveRandom Making it a property wouldn't work for live-lists. But it works the other way round for static-lists.
morning @Fabien
good morning @Fabien
@DaveRandom uuuh, re your openid email: no clue.
07:56
@Gordon Yeh @crypticツ pointed out that I was being a numpty. I don't change it, I just add another one to my logins and remove the old one if I want to
@DaveRandom smart kittykat. I knew there was a reason Android named a release after her
@hakre Yeh that is completely ridiculous, being able to actually modify a defined class. unset()ing a declaring property should just null it (I just had to double check that it really does remove the whole property instead of the sane behaviour)
But then at the same time I guess unset() does delete things everywhere else, maybe it should just error out
@DaveRandom Well it's like with an array still I'd say. Objects are still much of an array and not the other way round.
However, what we can't do is to assign a callable as propery and then just call it which is somewhat a pitty :D
And if such would then allow to satisfy an interface would be very cool.
@hakre Humm, maybe. That sounds an awful lot like an anonymous class though...
(some object with an arbitrary extra method)
08:06
Maybe that's why the patch for anon classes is so small =D
hello everybody
> You will need an internet connection to finish my butt scan....
Gets me every time
@DaveRandom How come you're looking to change jobs anyhoo? If you don't mind my asking..
any of you guys got a mechanical keyboard?
Hey guys, need your advice on a large project. I have limited PHP knowledge, the basics and want to know whether or not I should use Parse.com?
@RyanGittings use php.net
@Fabien can you help on above link issue
I've got a good idea, just not much experience on this scale, using MVC pattern or anything really.
@Fabien Because my current job is shit. You don't want the rant, trust me.
08:27
@Fabien Of course :)
@DaveRandom Ah but rants are always a good release. I used to rant at my old place to no end. Unfortunately I would rant to my employees who agreed with me and ranted back. Very toxic.
@Jack Worth it?
Definitely, I would recommend it :)
@DaveRandom yes, but perhaps with automatic $this re-bind to it ^^
@Fabien you mean one that does clicke-di-click?
@hakre I dunno what they sound like :). Just wondering what the appeal is.
good mo-rings
08:42
@Fabien what do you mean? isn't any keyboard mechanic or have you just docked a brain interface via USB for typing by thinking?
@hakre Most are rubber. Mechanical keys might be a more specific term for what I am on about
@Fabien okay, so mean these good old IBM keyboards that you can hack for 30 years or so.
@hakre He's talking about mechanical switches :)
their sound is more like tschak taschak tschak.
and it makes really fun typing on those.
They could be, but there are silent ones as well.
08:44
however the way is pretty long so quite a difference.
I have the blue switches that make the clack sound =D
well I love those old ones.
But there are Cherry Clear MX switches that don't make sound but still have the right tactile.
@Jack Sure, good quality they have over there.
It does cost though =S
n-key rollover for the real gamers heh
yes it requires some investment. but it's perhaps worth it. I will try it if I have consumed the stock I keep here, currently of this one: logitech.com/en-roeu/support/587
I like it for hacking, too. And there's this lenovo one: shop.lenovo.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/… - but it's more for office
Gaming mechanical are expensive though :(
09:09
all :-)
Hey @Jimbo
@hakre Not necessary really. $myThing = new class extends Foo { public function expando() { } } is the same as $myThing = new Foo; $myThing->expando = function() { } would be.
@hakre not really, it's raining outside and assholes are driving cars in puddles
Wait, can you use() in methods in the anon class proposal? That would be sucky if you couldn't... /cc @JoeWatkins
@tereško And you're not in a car?
09:14
@Jack dunno ... I try to avoid keyboards with raised keys
@Jack no, I'm the guy next to the puddle cursing
@tereško So you would be interested in a keyboard that's sunk into your desk? =D
@DaveRandom Oh that shit dun work, though ... unless you meant it for illustrative purposes.
@Jack Yeh we were talking theoretically rather than what you can actually do
@DaveRandom Right, I only found out about that recently actually.
I tried to override a method on my instance.
If does suck hard that you can't treat a property as callable like that and you have to use cuf/cufa
I prefer so called "mini keyboards"
09:18
@tereško How mini exactly?
If it's visible to the naked eye, it's too big
@DaveRandom Indeed ... I ended up with this to resolve it =X
The first class definition.
@Jack oh wait , that not the correct term .. hmm ..
Developer Parenting:
Old!
09:21
@Jack ebay.com/bhp/slim-keyboard , this would be the category
Your old!
You're mother!
heh
@tereško Oh, that's small :)
1 message moved to bin
09:23
Tenkeyless is small enough for me.
@Fabien you're wrong
9
Damn it's forever in history now too.
Sorry, had to star it. :(
@tereško That is awesome :D
Definitely going to steal that from you
Engaging grammar nazi mode.
09:27
@Jack I don't like it. I'm not sure there is anything I would like more though, so...
@DaveRandom You don't like what exactly? The fact that it's not possible or the quaint code I wrote there? :)
@Jack Well, both. My main issue with your code is the late bind() at call time, I'd rather bind at definition time. Of course this is non-trivial given that you can't iterate the prototype
@DaveRandom you cannot ... you can't use use on methods now ... because it doesn't make sense ...
@JoeWatkins What if I want my anon class to inherit elements of the environment that created it? Constructor args instead? That's a bit messy. There might only be one method that needs a given value...
09:34
@DaveRandom The late bind is actually required here :)
@Jack Why?
@DaveRandom Oh, because of the prototype chain.
The $this must point to the object you're calling it on, regardless of where it finds the method.
@tereško lool
09:36
@Jack Yeh but you only need to do that with members inherited from the prototype, and they should be cacheable in their bound form
@DaveRandom I don't think it's actually possible to cache them in bound form.
okay but if there's one method or ten you only pass to ctor once, if we use() you pass and you have ten then you use() ten times ...
@Jack Just playing with something, one sec
Sure I can explain the downvote, why not. As a user who is about month away from 10k, you should be closing simple typo-questions, instead of rep-whoring. Your answer will in no way be useful for future visitors of this site. — tereško 15 secs ago
the problem isn't that straight forward, for an anonymous function there's one scope, an object has a scope per method, but no shared scope ...
I'm toying with the idea of super::
I don't really think this is necessary, at least for this patch ... once it's in, it can be improved, make it more complex than necessary and it might not get in ... I think using a ctor is a solution that will work most of the time ... I want to introduce nested classes formally, that can come with super:: support ...
and extend that support to anonymous classes
what do we think of super:: ?
09:47
@Jack what about 3v4l.org/U2QYI ?
@JoeWatkins ...being the $this of the object in which the anon class was defined?
yes
it's not trivial to share scope
it will introduce things we cannot forsee, I can forsee it ...
I would love it to work like java and just share scope, but it's just not reasonably doable ...
@DaveRandom The things I make you do hehe, let me check that out.
@Jack wrong example was wrong. 3v4l.org/Dvg1k <-- right calls, still works
09:51
^ this needs some other close. Also feel free to delvote the answers, all duplicate material now, I moved it around
@DaveRandom What if another piece of code changes the underlying prototype?
@Jack Yeh I just realised that. Even so, you could skip over the caching and still bind the locals at definition time.
Something like $base = new prototype(); $x = new prototype($base); $base->sayHello = function() { var_dump($this); }; $x->sayHello(); :)
09:54
@DaveRandom What locals?
shall i convert a whole web app (including html,jquery,canvas,fabric.js) to wordpress
x_____x
is it possible\
@SanjayNakate Should I get my staff to use typewriters instead of computers?
? @Starsong
09:57
use punchcards (note to @tereško: punchcards are an ancient storage medium. they are not cards with names of people you still want to punch ;))
15
@SanjayNakate Why the fuck would you WANT to use Wordpress?
'Hey, I have a working app, let's put it on a slow and poorly-regarded code base'
@SanjayNakate why would you want to do that ? What benefits you perceive ?
@Gordon they can be both
i kno its hard but client not convencing he wants in wordpress
@tereško I suspected you'd say that ;)
09:59
i kno its hard but client not convencing he wants in wordpress @Starsong
@SanjayNakate what benefits does the client see in it ? This might hepl: cvedetails.com/vulnerability-list/vendor_id-2337/…
@DaveRandom Doubtful, but let's see what the unit tests say :)
hey friends
bcause he impressed like easy content management of wordpress @Starsong @tereško
so if i wll issue my error message from the form on the view site but my php script is in the action site
if the user click of the right button
10:04
@SanjayNakate If your client wants Wordpress, give him Wordpress. When you said 'Shall I...' I assumed you were the decision maker.
so the error message get on the action site ..
Hi all. Can any1 explain to me, where did I go wrong with this asnwer > stackoverflow.com/a/19047195/67332
@SanjayNakate are you obliged by contract to provide support for the client ?
Since downvoters cannot.
thnks @Starsong
10:05
who wants to think ? :p
1
Q: Check connection betwen two points on 2D plane

Alma Do MundoSO, The problem I have a question about algorithm of determining if two points are connected on 2D-plane. I have: Array of 2D-lines. Each line is limited with its start end end 2D-point. Each point is simple array of two elements [x,y] - i.e. each line looks like ['start'=>[X0, Y0], 'end'=>[X...

no @tereško
then give him what he wants but also no that you will remove all the possible indications that you (or your company) has been associated with that project
if he gets any substantial traffic, he will have a defaced site in less then 6 month
you really don't want that in your portfolio
it's usually a good idea to get rid of clients who tell you how to do your job
@AlmaDoMundo Interesting
I know that @Baba usually likes these sorts of problems
thanks for u r time by@tereško
@MadaraUchiha if I have at least 1000 lines, it's a mess :\
10:09
But I'm guessing your way to go is to check whether one of the points are blocked on all sides
don't get that
If both are blocked, check to see if they're blocked by the same walls
If blocked by the same walls OR none are blocked == points are connected
else, they aren't.
but I don't need to do that
I need if one could be reached from another
@AlmaDoMundo One can 100% be reached if either of the following is true:
so they may be blocked my any walls - if they belongs to one internal wall - they are connected
10:11
NONE of the points are blocked from all directions by lines
BOTH points are blocked by the same walls
If none of the above is true, the points cannot reach each other.
@AlmaDoMundo Exactly
so you're doubt that if polygons set containing S and E are equal, they are connected?
i am uploading folder to server
i have 54 files in my folder
But all walls must match perfectly.
10:12
but php is uploading only 6 files
why is it so?
@MadaraUchiha yes, I'm searching for all walls
@AlmaDoMundo well .. maybe you can do something with the fact that if you subtract the functions for those two lines, they will corss is the resulting function can have 0 value
@AlmaDoMundo If the smallest blocking polygon is the same for both points, then the two can be reached.
@tereško which 'functions' ?
@AlmaDoMundo ones that describe the line , usually something like f(x) = 4*x - 9
10:13
If both of them have no blocking polygon at all, then the two can be reached.
@MadaraUchiha what is the 'smallest polygon' ?
@AlmaDoMundo Polygon with smallest area I assume?
morning
I'm just thinking out loud here
But try to picture it
@MadaraUchiha that's not true then since area has nothing to do with this
10:14
@AlmaDoMundo Who's talking about a square?
if you'll give me some online-drawing service, I'll be glad
@AlmaDoMundo Google "twiddla"
@MadaraUchiha edited, yep
hello, @NikiC
@NikiC thanks again for helping writing the patch.
10:16
@Gordon Good luck :)
If all of these get accepted, PHP5.6 would be epic
@MadaraUchiha thanks
We already have variadics \o/
@MadaraUchiha should I be registered there?
@AlmaDoMundo No need
@MadaraUchiha but in sandbox I'll be with random users
10:18
Create a room and post the link here
0
Q: Dealing wit classes that instantiate other classes using a DI container

DraconySo my problem lieas in that I want to decpouple my classes, which I've achieved to some extent with a DI container. The only problem I have now is dealing with classe that instantiate other classes. For instance after querying the database you get an instance of ORMResult, which has a next() meth...

Any help with this one?
Hey, almost weekend.. http://tinyurl.com/mbzefbt
@JoeWatkins
@Dracony Dealing wit classes is problematic.
They have wits!
10:19
@MadaraUchiha twiddla.com/1323741
@Dracony Really proofread your question and I will retract my downvote.
fixed)
Damn it I am trying to format a machine and I'm now on the 6th reboot cycle because I keep forgetting to pay attention for the 5 seconds where "press any key to boot from disc" is on the screen
@Gordon Does that username reminds you someone ?
@Touki yup. thanks. I'll forward it.
@SanjayNakate As an addition to what @tereško said, tell your client that you can't guarantee compatibility with any future version of Wordpress as they break BC all the time with little warning.
"Congratulations! You've now seen every fundamental aspect of Symfony2" woo
It could simply be PHP’s standard behavior of overwriting parameters with the same name, so that in the end you only get the last one. Try naming your upload file myfile[] instead, and then make a var_dump of $_FILES to set what you get. — CBroe 2 hours ago
10:46
@MuneemHabib Change the input name to myfile[] and then var_dump($_FILES); - that array is not laid out like you code thinks it is.
@Gordon you're welcome :)
@DaveRandom So far, your prototype implementation works :)
@DaveRandom @Gordon Re abstract methods: Writing function __construct($this->foo) {} is equivalent (this is the actual code generated from it) to function __construct($foo) { $this->foo = $foo; }. So for an abstract method that would be abstract function __construct($this->foo); being equivalent to abstract function __construct($foo) { $this->foo = $foo; }, which is an abstract function with a body - makes no sense.
10:49
@NikiC absolutely right
@Jack You should probably trigger_error() instead of the return and also you should isset($this->inherited) in the getter. That caching of the inherited won't work if you want changes to the parent to cascade to the child, but the second version (only early-binding the instance members) will
@DaveRandom Ah, yeah, things will blow up pretty badly if things aren't found hehe
I've used the second version ... I think :)
I hate to upset you all, but I'm off to drink beer now :) have a great weekend ahead!
@Jack The version at github.com/datibbaw/php-monads/blob/… is the first. Please have many many beers for me.

« first day (1077 days earlier)      last day (4097 days later) »