« first day (1350 days earlier)      last day (3592 days later) » 

9:00 AM
@DaveRandom you bastard :p Now I won't sleep till I'll complete it :p
 
@JoeWatkins And that's pretty much valid. For instance, php is cross-platform, is not it?
 
@AlmaDo At what level are you?
 
it's strange to call a C++ library cross platform, since platform depends on compilation ...
I guess I want cross platform to mean run anywhere ...
 
@HamZa just started. Easy enough so far. At sixth level
 
@AlmaDo I also just started, I'm at level 4. It really refreshes my (math) mind
 
9:06 AM
@AlmaDo :-P
@tereško got to L20 last night
I got to L11 before wine took over brain
 
@DaveRandom ehehehehe
 
@Fabien check other chat window
 
Aye
 
@HamZa mostly about stereometric comprehensive mind.. And logic. Quite easy
 

 Maid Café (メイド喫茶)

Welcome back, my Master! (お帰りなさいませ、ご主人様!) Sit wherever you'd l...
Join us :P
I guess you need the points though....
 
9:10 AM
@HamZa Was that also to me? :P
 
@Magikaas Yeah, you need 20p in general to chat.
 
I'm on 40, so, yay :P
Not quite as high as you are, but I try xD
 
everybody back to work ...
 
@Magikaas Heh, you can. My last answer is older than a month. I quite stopped answering lately
 
:o
 
9:14 AM
@HamZa An English person will read that as you charging money to chat there :-P
@JoeWatkins s/work/getting down on Friday/
 
@DaveRandom 20 penny? Or what does the P stand for? :D
 
yeah, it's about same as using public toilet in some places ...
pence
 
@HamZa Yes, "pence" (plural of "penny" in the UK)
 
@DaveRandom first 10 levels are just.. too easy.
 
@DaveRandom I also had that confused for a second, I guess having been to England and talking to Brits daily does that to you :P
 
9:22 AM
@tereško I have solved #19, but it doesn't accept my solution… * opens new bug report *
err, wait… oops
 
guys, does anyone here follow the yoda-comparison notation?
 
@zerkms for some cases, yes
 
@zerkms often
 
What cases for example?
I was involved in discussing it in a context of sql
but I don't see the point to use it even for programming languages
 
I don't get it... I need to make an equilateral triangle. I know that is easy if I have a circle... what next? I have circle and almost perfect triangle but no 'Well done' :s
 
9:30 AM
if (null === $var = expr()) { is one case, although I try to avoid that. Really I use it when the other side is more than just a simple expression
 
hello have anyone here worked on fetching instagram feeds
by hashtags
 
@iroegbu Draw two circles, centred on either point. The place where the two circles intersect is the third point in an equilateral triangle.
 
@DaveRandom why not create a variable for that and make it readable?
 
@zerkms "although I do try to avoid that"
 
So no real reason?
 
9:33 AM
Sometimes I get lazy though
 
@DaveRandom oh! I was trying to use one
Thanks
 
I mean for - real code you would write
I honestly don't remember I ever made such a mistake (to use = instead of ==) or that fixing it took more than several seconds
but people still use it and even tell others to do that...... sigh
 
@zerkms I think some people are lazy. tbh for me there is a positive cognitive difference, I find it easier to read the constant first (no thinking required) before reading the expression (thinking required)
 
what if they are both expressions? :-D
 
@zerkms Then the original question is not relevant...
 
9:38 AM
@DaveRandom it was more about consistency
if half of comparisons have left side as an expression and the other - left side as a constant - it looks weird
 
so, @bwoebi @DaveRandom any ideas for L20 ?
 
@zerkms Like I say, I find const on the left easier for my brain to digest
That's probably highly personal though
@tereško Not looked at it yet, actually doing work this morning
 
hi all... can anybody know magento?
 
@saina Isn't that some terribly slow ecommerce thing?
 
9:48 AM
@HamZa; Yes, its esommerece thing.
@DaveRandom: Is that solution for magento related doubts?
 
Yes, although it's not loading for me atm
 
at level 19 I need a paper I think.. to do some calculations :D
 
nope , no paper required
I can give you a hint
 
it's a standart threesection issue, but I don't want to google
no, I want to do it without hints :p
 
k
 
9:57 AM
all 18 prev. levels were easy
 
user1823693
hello people
 
the 11th was shitty
 
11 is about .. ?
 
the angle
 
oh.. no.. quite easy. Because.. the triangle (:
 
user1823693
9:58 AM
im having some troubles with CI 2.1.4...stackoverflow.com/questions/24448684/…
 
@tereško I think I know now. "david star" :D
 
that was not my solution
 
ok. I may do a screenshot if it'll work (but it should)
 
there's something wrong... I can't go beyond 2. imgur.com/b2lZvt2 oh... I have to click the intersect!
 
10:01 AM
@tereško I am now stuck at 11. I do not understand, I used the compass to make the exact triangle to draw the ray, but it doesn't accept my solution...
 
@HamZa thin is that you have to do a rotation of that angle
the "longer bit" has to be aligned to the line and the shorter one must be below the line
it's a bug
 
wow -_-
Thanks
 
I constructed that angle in 2 other directions before I figured this one out
 
Up to level 12. But indeed, it's a bit crappy
 
@tereško resolved. I may show it if you wish
 
10:06 AM
@AlmaDo I used Pythagorean theorem for that
 
@hamza.. may i know where you are working?
 
chat just went down or my internet is shit?
 
@saina I work in a DIY shop :P
 
@tereško I used facts about six-angle entity..
 
@hamza: mean about?
 
10:07 AM
ok, I press "next"
 
@AlmaDo ya know, the smallest natural right angle triangle: 3, 4, 5
getting 1/4 was easy
 
@saina TL;DR I don't have a developer job even with my shiny 9K reputation :)
 
@hamza: what is TL;DR?.. sorry. just i m asking
 
@saina too long; didn't read
 
@saina "Too long Didn't Read", I meant it as "Long story short: I don't have a developer job"
 
10:10 AM
Mostly used to signify a shortened description of a story, for lazy people
xD
 
I'm lazy when I need to :)
 
@HamZa: :( sorry. and i feel fear when i see your profile picture ..
 
@HamZa 9k isn't really shiny
 
Sorry, I do not repfarm :)
And yeah, I know. It isn't even an indication of skill :)
 
@HamZa: where is your native?
 
10:14 AM
@FlorianMargaine Repwhore :P
 
Jul 29 '13 at 10:51, by HamZa
@Mr.Alien @dragon112 I've got arabic blood, dutch and indonesian. I'm the mixed human being :D
 
@HamZa: hmm ok ok..
 
@FlorianMargaine Btw, I'm wondering how you speak pronounce your name in French? Is it "FloriOn"? In dutch you say "FloriAn"
 
Testing
 
10:32 AM
I laughed so hard at this: 9gag.tv/p/a9xNJL/…
 
@DaveRandom screw it :D I'm resolving 20 (found solution, implementing )
 
anyone done face detection ?
 
@JoeWatkins No, but I did find github.com/mauricesvay/php-facedetection (although I'm sure you already did as well as it took me 10 seconds on google)
 
@JoeWatkins Haven't but had a link handy, there's meant to be some good libraries blog.mashape.com/post/53379410412/… including open source one.
Also, you should start your tests with pictures of Asians.....rather than leaving testing them until the end.
Aka I used to have a racist camera.
 
10:45 AM
hello guys :)
I really need to learn OOP in PHP do you have any suggestion?
 
@JohnRobertson Learn the language first and then check this list gist.github.com/Hamz-a/0b7d2e552812640dd8ef
 
I am already adept in PHP procedural
I know basic about OOP in PHP but I want to learn more
*procedural approach
 
If you know the concepts, you can apply them to any language
 
Though really, saying that you want to learn oop is quite vague.
 
I wouldn't use "adept" to describe any code written in procedural style.
 
10:50 AM
@Danack Thanks x 1000 :D
 
@tere
@tereško ok sir
@Danack is this tutorials?
 
Lemme guess - indian
 
@JohnRobertson It's information....
 
@tereško I'm not indian brother. Are you a martian?
@Danack OOP in PHP? Thanks :))))
@Danack this is so complicated
 
Can you undelv a single question as many times as you want?
 
"closed as off-topic by Gordon♦ Jun 5 at 12:00" - so.....good luck with that.
 
@Danack I think it is off-topic but it's better for it to not be deleted
 
@HamZa afaik you can only undelv a particular question once
 
I see, it got undeleted 3 times now...
 
11:00 AM
for some reason, this retard keeps voting to delete it: stackoverflow.com/users/334849/littlebobbytables
 
Now now, be nice
 
@Magikaas he casted 3 delete votes again and again. What a pain...
 
@tereško super genius in philosophy and sarcasm
 
@SecondRikudo I just realise I totally forgot about Naruto yesterday because of the World Cup :P
 
11:07 AM
@Naruto You haven't missed anything
 
@SecondRikudo more fillers? :(
 
(Literally, it was postponed)
 
Lool xD
 
you have got to be shitting me? :(
 
Even anime has to wait for the World Cup?
 
11:08 AM
@Naruto Nope. No episode this week. There will be next week though
 
._.
Either way, 8 days! 8 days! xD
 
Why do they even postpone? :(
 
Anyone used Symfony\Form before?
 
11:25 AM
I did find the face detection thing yeah
not great ...
I did an ext yesterday to access opencv, I made it extremely simple, poking around the rest of opencv some of it looks interesting, there's an unfinished pecl ext, wondering if I should do the whole lib
started on a black guy because this is an issue we have with current implementation
that, and low contrast and sepia and a list of 20 other things ... opencv has none of those issues ...
 
wow
-4
Q: Get Common Associate Array In php

RooxI Want Give Common Associate Array Like This Code : <?php //get rows from database $json_data = array(); foreach($rows as $record){ $jason_data[] = array('id' => $record['id'], 'brand' => $record['brand'], 'name' => $record['name']); } i want get common arrays of $jason_data array ...

Also cv pls
 
sh*t (: those microscopic circles.. @tereško did you resolve #20 ?
well. nothing after it? :\
 
@tereško how did you solve #19? I solved it by applying twice the fact that tan(30deg) == 1/sqrt(3)...
 
So only last was sort of challenge (but mostly because circles was too near each other, so difficult to point proper one with my mouse)
 
11:40 AM
@bwoebi what as significance of (3, 4, 5) ?
@AlmaDo nope , I haven't
 
@tereško I've done it
I may show..
 
hint ?
 
@tereško what do you mean?
@AlmaDo no, please not… I've just begun with it
 
ok, so won't give a hint..
 
@bwoebi smallest right-angle triangle with natural numbers: 3, 4 and 5
 
11:42 AM
> Euclid would be proud of you. You completed ALL levels !!!
 
in that case i have to actually solve it myself
 
now, let's see what @Dave linked..
 
@tereško yeah, I know… but what do you want to tell me with that?
 
@bwoebi can you find a 1/4 of that line ?
 
btw, at last level I've used a pen (to make some checks) - but only a little..
 
11:45 AM
@tereško of which line?
 
@bwoebi the one that you have to split it in 3 parts
 
@tereško yeah, twice a mid point?
 
so ... construct a 3-4-5 triangle
 
how do you then get the size of 5?
 
morning
 
11:47 AM
why do you need it ?
 
oh… I got it
 
4 and 3 have a right angle between
 
yep, yep
 
I used "star of David" for #19, so no length was required..
 
hi
can any one help me?
 
11:54 AM
911
room-11.github.io chat room dont's 3rd point
 
@blackbee room-11.github.io chat room dont's 10th point
 
:D
why is it so recursive?
 
because we like hardcore
 
@HamZa more like florian as in anchor
 
the books on node and angular so costly :(
passion is so costly these days
 
12:04 PM
@bwoebi what are you solving?
 
and everything php has is the manual. i wonder if paperback would be available someday
 
@blackbee of the PHP manual?
That would just be silly...
 
how redirect all example.com page on https url?
 
Did anyone use XSLT successfully? How does it work with html5, css, popular js frameworks?
 
@NikiC euclidthegame.org
 
12:06 PM
 
@SergeyTelshevsky /cc @ThW
 
@ThW ohai
 
for now, there are 20 levels. But only last is average
 
@SergeyTelshevsky I've actually not seen him today, but he is our resident XML sadist expert
 
@DaveRandom I see
 
12:08 PM
also @hakre is probably not a bad person to ask, but again I've not seen him today
 
maybe some good json based alternative for doing all this client side
in any case, I'm thinking about doing everything as much as possible automagically using RESTful source
maybe someone done something like that
@DaveRandom thanks, I will try to catch them
 
@bwoebi I certainly suck at that...
 
@NikiC oh, it takes time…
 
@bwoebi have you finished #19? #20 ?
 
@AlmaDo only #19… for twenty I've just found the origin of the outer tangent
 
12:16 PM
ok. I spent ~15 minutes on finding solution to #20 and ~10 minutes on trying to implement it :p
 
ThW
@SergeyTelshevsky a little tricky for the doctype but works
@SergeyTelshevsky I use it server side (PHP). It generates HTML5 for the browser.
@SergeyTelshevsky You can use Xpath to read XML.
 
@ThW I was thinking of client side doing all the transformations, is it a bad idea?
 
ThW
No problem in most of the browser (here is an XSLTProcessor) object. Not sure about IE
The XSLT in IE had some really bad bugs on old IEs, don't know the current state
 
12:32 PM
@bwoebi same here
I still haven't figured out the next step
 
ThW
@SergeyTelshevsky I do know the current state of XPath for Document - completely broken. Just wrote a wrapper and fixed one of the xpath.js libs. :-)
 
@tereško @bwoebi I can give a small hint if you wish
 
1:05 PM
@RajendraYadav Sorry, we're not here to answer the phone right now, but if you'd please leave a message someone will get back to you as soon as possible.
 
1:22 PM
@DaveRandom lol
It'd be nice funny to have a room mod bot that could change the room description to an answering machine message when there's no activity for an hour.
 
when meetings are so boring, you have time to come here and say hi :)
 
1:37 PM
What's a good naming strategy for helper methods? Say, a function that merely operates on a string to produce a differently formatted string (like, strtoupper, or similar) if it's an instance method. getUpperCase sounds like a property fetch, toUpperCase sounds like it returns the object itself in some "upper cased" state; asUpperCase similarly. getStringAsUpperCase is too verbose but captures the helper method intent (better, at least)
 
getStringInUpperCase - yes, pretty much verbose. But - no, I doubt it should be reduced to some shorter name
that's because you can just look at this name and know exactly what method does, what it is returning and where should you use it
 
True; man, I wish we had userland scalar boxing...
MyString::toUpperCase would be much better...
 
@DanLugg you can have perfect userland string boxing
 
Not perfect at all; function foo(MyString $string) { } foo("derp"); // kaboom
 
If you think of it as "toUpperCase sounds like it returns a new object that has been converted from the old object to some "'upper cased" state'", is there a problem?
 
1:44 PM
It's just that (to me at least) the to prefix sounds as though it operates on the object, not on the argument.
$something->toSomethingElse()
$something->theThingYouAreGivingMeAsSomethingElseButIStayTheSame($theOtherThing‌​)
 
oh.
 
@DanLugg something like this (bonus: using "string" as type-hinting). But that's insane..
 
lol, I know, it's stupid and anal.
@AlmaDo The new is the problem. Unboxing is fine, obv.
 
Good morning.
 
@DanLugg no it's not
 
1:47 PM
@AlmaDo No, the new isn't a problem?
I think it is. Literals because literals.
 
@DanLugg In that case it ought to be a verb....but I can't think of a decent verb.
$something->upperCasinate($theOtherThing);
 
@Danack $something->upperCasify($casifyMe)
 
@DanLugg it isn't. You've decided to turn each string into box => welcome & have a sex with instances & new operator
 
@AlmaDo loldafuq?
 
lol :D
 
1:50 PM
new string() seems wrong to me, just as new int(), or new bool() would be. The only case I can think of directly invoking a scalar type constructor via new is when you're creating the object in a way that a literal cannot articulate, such as new string('f', 200), given string::__construct(char $c, int $len)
^^ Which would yield 200 "f"'s
 
and how could you have "static" boxing?
 
What do you mean "static" boxing?
 
without "new" operator
so without instances
 
Oh, @ircmaxell wrote an RFC (IIRC) on the subject.
class MyString{
    private $value;
    public function __fromScalar($value){
        $this->value = (string)$value;
    }
}

function foo(MyString $myString){

}

foo('hello world');
MyString::__fromScalar is called when a scalar is cast to it (while we don't have explicit userland type casts, it'd be implicit from the typehint)
 
I see, but ... near useless..
 
1:53 PM
Though it would probably stand to follow that $myString = (MyString) 'foobar'; could work too.
@AlmaDo Absolutely not.
First of all, we now have scalar type checking (in a round-about way)
Second, we have extensible scalar types.
 
@DanLugg for me - absolutely yes - because it's breaking type-hinting. If I wrote MyString then I'd expect argument to be exactly an instance of class and nothing else (even is it may be "casted" to it somehow)
 
Hopefully from which there'd be a pseudo-standard implementation pushed into core.
@AlmaDo It is an instance of the class.
 
@DanLugg no, 'hello world' isn't an instance of MyString, it's just a string
 
In the scope of foo, you have an instance of MyString
 
Damn you inline functions, you always make my code have { in the wrong place. This is not JavaScript! This is PHP!
 
1:56 PM
@AlmaDo Right, which because of the type-cast, a MyString is constructed and "hello world" is passed to it's __fromScalar.
Which you receive in the scope of foo.
 
@DanLugg and that's where trap belongs (for me)
 
@AlmaDo I think we agree here, but I can't tell.
 
I understand that it may be useful - but I'd prefer to leave type-hinting as it is - explicitly and clear - and, perhaps, implement boxing in some other way
 
@AlmaDo It is still explicit and clear. You just don't have to call new because boxing, because that's the reason for any of this to begin with.
I've explicitly stated I want a MyString, which has a method that explicitly converts scalar types to an instance of MyString at any time that I want a MyString. The boxing is implicit, but there's very little "magic" happening.
@AlmaDo How would you implement boxing?
 
@DanLugg heh.. it isn't. We'll have implicit creation of new instance (haha, DI is begging), next, we have implicit casting of string to some class
@DanLugg I have no idea for now - because never thought about it before
 
2:01 PM
@AlmaDo Right, that's.... kinda what boxing is in general.
 
@DanLugg then core concept is not so good. Well, it has use-cases, but certainly with procs there are cons
 
@AlmaDo As with anything, there are ways it could be abused and misused; further, it may not be the most performant in cases where you're dealing with 100's of 1000's of scalar values.
However, given the other (well conceived) options, IMHO the boxing technique as described in the RFC is probably the most sane.
From what I know, it aligns predictably with the boxing conventions of other languages.
Which is always a plus.
As far as I can tell, there's 3 distinct ways to go about stuff: 1) keep scalars "untyped" 2) keep scalars "untyped", but with boxing facilities 3) type all the things
 
well, that's why we have holy-wars around scalar type-hinting and everyone in internals know that topic as a tabu
 
In order to implement any sort of hinting, in the case of 1) the most sane route would be the casting approach like function foo((int) $i, (string) $s) { } which errors on data loss.
The case of 2) has been discussed ^^
The case of 3) is probably meh, whereby ("string" instanceof String) === true
 
Ok. If you want to see two letters, repeated many, many times - go ahead and create type-hinting RFC
 
2:09 PM
@AlmaDo I don't need to, unfortunately some folks have already done that and seen "two letters" repeated several times.
 
@DanLugg right you are
 
Do we get by without scalar type-hinting? Sure, we get by without a lot of the conveniences of other platforms.
That's sure as hell not to say it's "okay".
 
@DanLugg It will get revisited properly.
Carefully, after a lot of previous collaboration.
 
@LeviMorrison I can only hope.
 
I'm not sure it will get accepted, but with careful collaboration and a very, very carefully written RFC and implementation I think it could make it.
 
2:17 PM
I hope that a feature as "central" (for lack of term) as scalar type-hinting will also pave the way for a potential specification. It seems to me (and I may be wrong) that too much of the language is ad-hoc'd.
Which is why a well written, carefully collaborated attempt at it would be critical, if not for the feature itself.
 
@LeviMorrison iirc the most recent attempt was never really discussed because the author (Anthony) retracted it before discussions got off the ground
 
@LeviMorrison it's like big Fermat theorem for PHP internals (:
 
@DaveRandom Shitty as the withdrawal was, shittier still were the reasons that prompted it, IIRC.
 
oh yeh, I'm not passing judgement on that aspect of it, just saying that it didn't get a definitive "no, fuck off"-type response
 
@DaveRandom Very true. He's mentioned considering returning, hasn't he?
 
2:22 PM
I think his current stance is "happy to contribute, just not to internals", based on what he said in irc the other day
 
Ah, I see.
 
I don't speak for him though, obviously. If you want to know what he really thinks you'd have to ask him...
 
@DaveRandom Doesn't mean it has been abandoned :)
 
@DaveRandom Oh of course.
 
@LeviMorrison Do you have any feeling about the bigint rfc that you'd be willing to share?
It seems odd to me, adding a whole library to PHP, but then not exposing it properly...so it can only be partially used.
 
2:35 PM
doesn't belong ...
 
Mornmoinrong again
 
yo haha
 
@PeeHaa sober pissed again yet?
 
I had my first beer at 11AM so nope
 
18 hours ago, by Hirudinea
I need to do some work tomorrow
So by "work" you meant "drinking"?
 
2:38 PM
Yeah I did some work
:P
 
So, it turns out that PCI-DSS is the single dullest subject ever devised by mankind
 
Well I am going to be quit drunk soon to.
 
In about two hours I'm landing in a graduation after-party
 
@DaveRandom A challenger appears!
ISO 9000 is a series of standards, developed and published by the International Organization for Standardization (ISO), that define, establish, and maintain a quality assurance system for manufacturing and service industries. The standards are available through national standards bodies. ISO 9000 deals with the fundamentals of quality management systems, including the eight management principles upon which the family of standards is based. ISO 9001 deals with the requirements that organizations wishing to meet the standard must fulfill. Third-party certification bodies provide independent...
 
2:49 PM
I didn't know there's russian SE now Oo..
 
SE?
 
stack exchange resource
@tereško but first question that I met here was... well, I spent few minutes under the table trying not to laugh too loud
that's a shame..
 
@Danack fuck me, that's PCI with all the vaguely interesting stuff removed
Somehow puts me in mind of:
 
@DaveRandom The only plus side is that it doesn't have the waking up in the middle of the night because you've just thought of a security hole.
 
@AlmaDo questions like that should be closed IMO
 
2:54 PM
@AlmaDo What, you mean that different words mean different things?
 
@DaveRandom hm..
can't delete it @DaveRandom move that question message somewhere pls (:
 
@Danack It turns out that we as a company are surprisingly compliant in theory, just a fucking epic audit to do
 
I 've forgotten it would expand
 
1 message moved to bin
 
@SergeyTelshevsky I think so.. but I don't care at least for now
 
2:55 PM
why though?
 
@DaveRandom because it's offensive. I hate such words in our language
 
Completely agree
 
I have no idea but I'm sure you're right
 
I think you may cv that with "it is offensive, abusive, or hate speech" vote
 
@DaveRandom in Russian language there are words which are not just offensive. Meaning of those words is so horrible that if you'll use it in normal conversation and got a punch into your face - then it's justified
even worse, many people use them without even thinking of how offensive they are
 

« first day (1350 days earlier)      last day (3592 days later) »