« first day (1655 days earlier)      last day (3300 days later) » 

12:02 AM
my god. what the hell is that
i'd rather make a site in assembly
:D
 
just look at the *node folder and the *visitor folder
@Worf good luck
 
easy peasy
i just need a chair
and a rope
 
@marcio omg. Really? I'd rather learn writing whole websites extremely efficiently with microcode!
 
@bwoebi I used this jade lib once and it was very easy to extend ^^
 
@marcio yeah, we're just joking^^
 
12:08 AM
i'm not even understanding it. but i keep reading
 
@bwoebi Hmm...
 
@LeviMorrison yep?
 
Wait, I think I caught my mistake.
 
@bwoebi o really, irony is now a thing on room 11 :P
 
so basically @marcio MD -> jade -> * ?
 
12:12 AM
@marcio no! It never was!
This was an exception!
 
\o/ it works!
 
@Worf ?
 
@LeviMorrison what works?
 
function pluck($p) {
    return function($key, $value) use ($p) {
        yield $key => $value[$p];
    };
}

function map(callable $fn) {
    return function($key, $value) use ($fn) {
        yield from $fn($key, $value);
    };
}

function yieldDo($input, callable $delegate) {
    foreach ($input as $key => $value) {
        yield from $delegate($key, $value);
    }
}

var_export(iterator_to_array(yieldDo($records, map(pluck('id')))));
 
^ no segfault? lucky one
 
12:16 AM
@marcio Eih… It's my code…
 
($records is taken from here)
 
@bwoebi I tried yield from on the first day and it was buggy, a few days later it was fixed
 
@marcio there was one issue with iterators (not my fault) and not implemented refcounting AFAIK
 
dunno what you did, just that my use cases are working ^^
 
:-D
 
12:20 AM
it was something related to exceptions, don't recall
 
Ah… yeah
the opline off by one
because yield from forwards opline, which might be last return in function
 
 
2 hours later…
2:26 AM
...how the best php api generation thingy has begun! it works! :D
 
 
2 hours later…
zan
4:04 AM
Good morning guys
 
Morning, zan.
 
4:56 AM
Morning All
 
hiu
any know how set godaday cron job set?
 
5:17 AM
Someone might think English isn't my native language based on some of the mistakes I make in comments/posts when I am tired.
 
helloooooo
i never knew SO had this feature
 
:) Welcome.
@bwoebi I believe this is an engine issue:
function filter(callable $fn) {
    return function($key, $value) use ($fn) {
        if ($fn($key, $value)) {
            yield $key => $value;
        }
    };
}

function require_generator(\Generator $g) {}

require_generator(filter('strlen'));
> Argument 1 passed to NS\require_generator() must be an instance of Generator, instance of Closure given
I'm quite tired, so can you verify that I am not being crazy here?
 
Does anybody have work with Parallel port printing
 
5:33 AM
good mornings
 
Ah, I think to answer my own question: no, it's not an error. The Closure returns a generator; it's not a generator itself.
 
5:45 AM
You guys awake and active right now?
 
5:57 AM
@LeviMorrison correct.
easy to fall over though, happened to me as well.
@ViperCode first fueling with some coffee.and you?
I still have problems to remember which commits I wanted to squash and put into some branch though.
It was late yesterday
 
6:16 AM
@hakre just getting some late night problem solving done before bed haha.
 
@ViperCode good luck then :) And don't take too long ^^
 
Morning
 
6:32 AM
Hi all
I am using WHERE EXISTS in my sql query but it is taking to much time to execute
can you guys give me an alternate to my query
here is my query
`select a.property_id,count(a.booking_id) as total_bookings,group_concat(concat(date_format(a.check_in,'%m/%d/%Y'),' To ',
date_format(a.check_out,'%m/%d/%Y'),' ','(',(case a.book_status when 1 then 'Pending' when 3 then 'Confirm' end) ,')',' |
<a href=\'manage_booking.php?action=ed&id=',a.booking_id,'\' target=_blank class=linkun >View Detail</a>','<br>')) as dates
FROM apl_property_booking AS a WHERE EXISTS (SELECT booking_id FROM apl_property_booking AS b WHERE b.booking_id != a.booking_id and
 
have you tried throwing more hardware on it? :)
 
can someone help?
 
6:49 AM
@samaYo sort of, quite inactive...
 
moin
 
Morning @Patrick
 
@Mubeen1992 Profile the query (EXPLAIN) to work out why it's slow - don't guess.
 
moin!
 
I'm no SQL expert, but I notice you're doing a lot of string construction and date math in that query - I'd be inclined to rewrite the query to remove that (construct strings outside of SQL - preferably in the views, and alter your static dates instead of the database record dates)
 
6:59 AM
@AllenJB I posted my question here you can see query there formated
-3
Q: MYSQL WHERE EXISTS taking too much time to execute

Mubeen1992I am using WHERE EXISTS in MYSQL query but it is taking too much time to execute. can you guys tell me how can i speed up this query or suggest me any alternate query. Here is my query SELECT a.property_id, count( a.booking_id ) AS total_bookings, group_concat( concat( date_format( a.check_in, ...

 
@Mubeen1992 why do you have html in your sql query? ...
 
I am using concat
@Patrick but if I remove concat it does not speed up
 
@Mubeen1992 It should not be there. Keep your programming languages apart.
 
@Patrick okay but it still is slow
 
7:08 AM
Morn
Ah, first cup of coffee and all is well
 
good morning!
 
Good morning
 
@Patrick how's the book growing? ^^
 
7:24 AM
good mornings
 
7:34 AM
PAYPAL I HATE YOU
 
What did paypal ever do to you?!
 
@MarcelBurkhard very slowly, I can only find a few hours per week... :(
 
Good morning
 
@Epodax what did paypal not do to me is an easier question
 
Okay, what did paypal not do? :O
 
7:44 AM
well at least communication with their api happens in a proper way
 
Make him rich
Make him rich
 
Hello, i wrote a my own php function and i called it count(), how can i tell Apache to use my count and not php's native count ? thanks
 
@Joseph you can't
 
why ?
 
@Joseph You have to ask it nicely
 
7:48 AM
@Joseph because it's not Friday today
 
@Patrick how can i do that ?
 
@Joseph It was a joke. Namespace your own functions
 
Mogguh room 11tarians
@Patrick I am thinking about sleeping staying in a hotel myself
 
Speaking of Namespacing functions, when can we have functions in Namespaces all in their own files?
 
moin
 
7:54 AM
@iroegbu You already can?
Or are you asking about function autoloading?
 
@iroegbu you mean autoloading?
 
What a weird wonderful day! I know that the hotfix is coming even before release is started..
 
yes, function autoloading
 
that's something we discuss every other week ...
 
aloha
 
7:55 AM
maybe 7.1 will get it ...
 
hi, @JoeWatkins
 
yo @AlmaDo
 
thanks Joe
 
hehe excellent
 
8:00 AM
in that line-up, what would PHP look like I wonder?
 
i guess programming PHP is a bit like fighting with pokémon, you might look a bit silly doing it, but you can be remarkably effective
 
have you seen nepal news?
so horrible
 
@JoeriSebrechts Fighting pokémon is srs business, no one is silly doing that
 
@bwoebi That exists because of this :P
 
Morning
 
working from home day today ;-)
 
Morning fapore
 
Morning
 
Hamza
 
8:11 AM
Fabor
 
No trousers required then Jimbo
 
@PeeHaa hope you had a nice day yesterday
 
@HamZa Yeah. Any day off is a nice day :)
 
how it is "asshole" in German?
 
@AlmaDo Arschloch
 
8:13 AM
okay
 
@Fabor That's every weekend
 
heh
 
@PeeHaa vote
 
ThW
Morning
 
8:22 AM
@AlmaDo Also feel free to delv the other crap in there :)
@ThW o/
 
Bas
good morning \o
 
o/
 
Bas
sup?
 
Trying to recover from yesterday
You?
 
Bas
Same. Not so well ended birthday party. lol
Plus it's kingsday around here, yesterday actually
I have a question here on SO with the answer explained in the comments and not into an answer yet, what do i do with this?
 
8:35 AM
posted on April 28, 2015 by kbironneau

/* by Array(); */

 
you could ask the commenter to post it as a answer
 
Bas
@Epodax Already did that.
 
ah so you indeed did, well, I guess you could post it yourself and credit the user in the answer
 
Bas
Haha, that's like high fiving myself.
 
Maybe so, but the alternative (from what I know) is to leave the question "unsolved"
 
Bas
8:40 AM
You're right though, I already flagged the question though, for moderator's attention
But haven't heard anything from it yet
 
I guess it's just to wait for them to reply then.
 
When the answer is "evident" or "too easy", some people prefer to leave the answer as a comment. If you're worried about it, post an answer as community wiki and refer to his comment...
 
Bas
What does happen when I answer it as "community wiki" then?
Seems more reasonable
 
@Bas the main "feature" would be: you don't earn rep :P
 
Bas
Well, if i accept the answer I do
 
8:44 AM
Also I've noticed that people are more tempted to edit/improve a CW post than a non-CW post
 
Bas
But that's kind of logical, it's not my answer. lol
 
@Bas You don't earn rep when it's CW.
 
Bas
Even though i accept it?
 
Maybe the 2 rep for accepting an answer, not sure...
 
Bas
yeah that indeed
Well, i'm posting it as CW then.
 
8:47 AM
@JonathanLafleur I personally think that "who" is probably enough there, or simply ignore it entirely. At most all you'll do is block that IP. That said, sounds like you should probably just put it outside document root and then it wouldn't be an issue anyway...
 
hi how to write update query in php Yii framework
 
@RamMansawala Go to google and enter that same sentence in the search box
 
@HamZa i did but i didnt get it.
 
Bas
that query builder is so nice. ;p
 
8:52 AM
i need to write query in Yii framework format. i have also condition to update particular record.
 
I don't see why you wouldn't just use the classical way of querying a DB. Enlighten me...
 
i don't know about yii framework i have to follow the yii framework syntax to write query as per my sir order.
 
Aww... that page is barely usable on <1080p ;( (yii2 docs). Anyway @RamMansawala yii1 or yii2? And do you just want to execute a raw query or do you want to use their dao/"orm" ?
 
@HamZa I'm not sure an expletive exists that fully expresses my displeasure at this question.
 
8:55 AM
@Bas so what are you going to use? The return or file_get_contents way?
@DaveRandom hmmm ok
 
Bas
Nope, the include way :) It's executable code
 
the new user-page on SO also isn't usable on a 1024px 4/3 width screen - what happened to "responsive" webdesign lately?
 
@hakre wow, it seems that the width is hard-coded to 1000px :O
 
:2296672 what is "dao/orm". i am very new to yii. this task is assigned to me. i give you the example. i use this query to count email id.
@Rangad what is "dao/orm". i am very new to yii. this task is assigned to me. i give you the example. i use this query to count email id.
 
orm was the wrong term, wasn't in yii land for a long time. Anyway, have you read the yii-guide?
 
9:00 AM
@HamZa Suffice it to say that it is one of the most ironically named television programs ever
 
@Rangad $count = UserMaster::model()->countByAttributes(array( 'email_id'=>array(':tempEmailId'=>$temp_EmailId),));
 
Bas
Owyeah, i had another question, how do you guys deal with independency on your work? For example, you're just stuck, and you're colleageaus are very busy and dont have time for you
What do you do?
 
@Bas google or stackoverflow
 
Bas
Yeah okay, but google doesn't have the answer always right?
When it's a problem in you're code then.
 
In soviet russia dependency injects you
 
Bas
9:03 AM
haha
 
@Bas I was an intern and SO/google was always there for me. Unless you're creating something that no one has ever made before...
 
Bas
True.. well, i'm an intern right now aswell, on a non-programming job though
and i find it pretty difficult
 
@Bas non programming as in?
 
Bas
IT Helpdesk :)
I have to finish my IT training before i can go to a actual programming training.....
 
9:05 AM
@RamMansawala I thought you wanted to update something?
 
Well almost the same branch. There's almost always an answer out there :)
So you're doing MBO3 or something?
 
Bas
MBO 2/3 at the same time indeed, within a shortened time
Normally it would take me 3 years, now i'm doing it in 2 years.
are you dutch aswell?
 
@Rangad yeah i am. i just gave you example how i write any query in php yii framework. i mean i write query using framework not in SQL format
 
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
 
@RamMansawala So this ?
 
9:08 AM
hehehe
 
lol
Shut up Dan -.- — Jimbo 17 secs ago
 
Bas
Haha okay, i'm just dutch
 
@Bas are you planning on doing mbo4 and then HBO?
 
Bas
Yup
I think HBO is a bit a long sight from here, but i'm surely gonna try it.\
 
@Rangad thank you so much.
 
9:10 AM
@Bas how long does it take to finish mbo4?
 
Bas
It "de motiveert" me though, i'm already 21 years old and i dont even have a MBO 2 "diploma". lol
 
@Bas doesn't matter. As long as you strive to be better :)
I did mbo3&4 and now I'm doing hbo. Ping me if you happen to have questions. Note that I can't answer everything :P
 
Bas
Oh nice, is there an MBO3 course for programming?
I only found one for media development.
 
@Bas AFAIK it's all MBO4. MBO 2 and 3 is IT support helpdeskish stuff.
 
Bas
Yeah... I dont really like it though
 
9:14 AM
@Bas do you like programming?
 
Bas
I like the fact that i can fix a computer if mine or my friends or family is broken
Yeah, more then anything though :p
 
Then just be patient and go through it. MBO3 wasn't fun at all. Even mbo4 but maybe it's because I already had some programming knowledge. HBO is more challenging though
 
Aaaand revenge downvote time
Now who did I piss of this time?
 
Things going on in Boston sure don't help restore your faith in humanity.
 
@LeviMorrison yes, you just pass a Closure with the return type Generator…, not the Generator itself
@Jimbo haha
 
9:23 AM
@PeeHaa new feature request: able to close vote anonymously ...
 
@Rangad hey i get the error Creating default object from empty value
 
you are likely missing a if($user === null /* or whatever is used to indicate that no records were found */) { // handle that case here}
 
9:39 AM
user email id is field in my UserMaster model. i give right email id into findByPk but still getting same error
 
9:57 AM
What's wrong with this negative preg_match lookup?
if(preg_match("~^(?![a-z0-9-]+)~", $record['slug'])){
 
@Silver89 To tell what is wrong you need to tell us some test strings, what the expected output is, what the actual output is.
 
Just trying to check if a string contains characters other than a-z, 0-9 or hyphens
 
I asked a bit more AFAIK
 
@ThW it's a lookahead... (?<!...) is a lookbehind...
 
ThW
@HamZa ohh you're right
 
10:04 AM
Tweaked it slightly but still no luck:

"~(?!([a-z0-9-]+).)~"
 
@Silver89 Just do ~[^a-z0-9-]~ if it matches, then you got other than a-z ... hyphens...
No need to overcomplicate it with lookaheads etc...
 
That makes sense!
thanks
 
Staph starring crap
 
@Silver89 that's a nice Kaomoji
 
Bas
@HamZa Yeah, well, i just need to do next year with 30 weeks of "stage". and 10 weeks of school
So that's pretty nice
 
10:11 AM
Good luck
 
Bas
My english is so bad sometimes. lol
 
stage = internship
 
Bas
Ah okay, when i googled it it was "practical training" :P
Just called XEROX about some printer.. What an shitty job.
 
@Bas I had the same problem haha
 
Bas
The printer keeps telling me it's out of paper, in a tray that isn't even used.
So it's closed.
 
10:14 AM
@Bas Printers are evil
 
Bas
And now this genious sent a mail to the wrong person. lol
Or acutally, no, it took a long time :p
 
/me pokes head in ...
 
/me fistbumps @JoeWatkins
 
Bas
/me prints paper and tries to fix printer for the 18293x time.
 
/me awkwardly fumbles a fistbump/high five/hand shake/kiss on the face in return ...
 
10:16 AM
#akwaaaard
 
because I mentioned kissing a boy on the face ?
you should hear what we're gonna do to @rdlowrey
 
:P
 
hehe
 
No, the fumbling with hands, d'uh.
I don't care if you kissed a sea horse on the face.
 
@JoeWatkins It involves cactii. Many, many cacti.
 
10:19 AM
I'd care for the sea horse, it'd kill it, right ?
 
TIL @PeeHaa is a seahorse
 
Or... a Peehorse....
 
lol
 
Well, I didn't know your lips were deadly... Although I guess it would survive aslong you kissed it under water?
 
the internet has everything ...
 
10:20 AM
Mate, what did you google to get that?
 
Conversation is getting a little weird for a Tuesday.
 
lol
 
cacti condom ... of course ..
 
Anonymous
who started this off topic mumbo jumbo?
 
Joe did when he said he'd kiss a guy on the (I hope) face
 
10:22 AM
Aye
 
Anonymous
eww
 
1 message moved to Orphan GIFs
 
hehe
 
Orphan GIF's.... Is that the equivalent of "the far away farm" for pets?
 
It is :)
 
10:36 AM
@Jimbo Hendrix-style?
 
@PeeHaa what a Genius, get as many people as possible infected!
 
What is Laruence smoking - bugs.php.net/bug.php?id=69537 ?
 
Bas
Guys, this question: stackoverflow.com/q/23730418/2989034 I've given an answer to it, but the users name is gray texted. What does this mean?
And can the answer still be accepted?
 
@Bas User is gone from SO
 
Bas
Oh okay, so what does this mean for me?
Or the question actually
 
10:58 AM
I think a mod or some one else will have to accept the answer, since the original user obviously can't.
 
Nobody else can accept the answer
 
Not even a mod?
Although that might not be the standard way to go in these cases?
 
Don't think so, because it would not make any sense if anything other than OP can mark as accepted
 
Bas
Then the question has become pretty useless then? If people would ignore it if they see it as "unanswered"
 
@Bas People don't ignore it
If the question + answer is useful it would still be used
Hell my two top upvoted answers are unaccepted
 
Bas
11:01 AM
True, but it shows as "not accepted answer" right
What?
 
Bas
hm?
 
why the fek PHP does add slashes before constructing $_POST !?
like I send a json object with post and it prepends '"' with slashes, but php://input is without slashes!?
 
Sounds like possibly magic_qotes(_gpc)
Either that or you're escaping / JSON encoding too many times
 
11:18 AM
@SergeyTelshevsky That's magic quotes, how old is your PHP version??
 
old school guy here
 
Also, why are you sending JSON via application/x-www-form-urlencoded?
php://input is the right way to POST JSON...
 
11:34 AM
@AlmaDo lol
 
@DaveRandom How could I forget about that ol' friend o mine
got used to newer versions
but it's 5.3.10...
and I'm posting it via form because it's one of many other things that get posted in that request
 
@Jimbo also, this
 
Anonymous
12:06 PM
@DaveRandom is php://input a new feature?
 
Anonymous
saw it only once before
 
Anonymous
@PeeHaa hm.. good to know, but maybe it's helpful for some advanced application development, because I don't see any use case for this.
 
@samaYo Some APIs tend to send raw json over the line
So actually not that uncommon
 
there are many, actually, but at least none when using HTTP
 
Anonymous
12:21 PM
well it's new to me. I always send my json data using application/x-www-form-urlencoded and so far, no problems.
 
Anonymous
> if it ain't broken, don't try to fix it.
 
if it ain't broken, you can still improve it.
 
The "don't try to fix it" mentality = inhibit progress
 
@Fabor If it ain't broke just wait until the next version
 
heh
 
12:40 PM
What is it with people called Tony? bugs.php.net/bug.php?id=40477
 
yeah, square wheels worked fine too
 
http://stackoverflow.com/questions/29919748/how-would-i-convert-this‌​-php-to-asp-net
 
So my fiance is a tattoo artist, and up until yesterday I had no tattoos :-P
 
Google Proposes to Enhance JSON with Jsonnet Anyone willing to create a PHP extension for it and maybe make a tutorial how they did it? /cc @ircmaxell @NikiC @JoeWatkins
 
every time I read Jsonnet I think of .net
 
12:52 PM
Meh, json is for structuring data, why would they add bloody mathematical operators to it?
 
like Visual Basic -> Visual Basic .NET and JSON -> JSONnet
IMO the only thing JSON lacks is comments
 
@SergeyTelshevsky Yeah. Google proposed it so call it JSONGoo
 
and a better way to express dates that can be auto-detected during decoding
The reason JSON is so popular is because there's only one variation of it though. Trying to improve JSON always weakens it.
 
> The for construct can be used to build arrays and objects as shown in the next sample: " bar: [x * x for x in self.foo if x >= 2],"
 
@Jimbo i agree but it looks small enough to use it for a tutorial
 
12:59 PM
I think it'll be used only in google products. Why the hell would you want calculations in JSON. Go with JS if you want them with a similar syntax.
 

« first day (1655 days earlier)      last day (3300 days later) »