« first day (1439 days earlier)      last day (3494 days later) » 

12:02 AM
@LucasB It's in a private property, you can't access it directly
 
Hmm, how can I work with the results then?
that print_r is from $this

One of the many tries I did:
$clientid = $this['client']->id;
 
Doesn't it provide some kind of accessor mechanism? What do the class definition look like?
@LucasB $this->orderResponse['client']['userId'] then...
 
morning!
 
userid and id both work in this case
@DaveRandom $this looks like, well, this:

$this->orderResponse = json_decode($jsondata, true);
@DaveRandom I'll think about this with some time, I have to go now. Thanks for the help :)
(if you want to leave a msg I'll read it later, I'm late to take my gf home)
 
en.wikipedia.org/wiki/Margarita - reference #1 has a [citation needed]
 
12:32 AM
@DaveRandom fixed. that shouldn't have been a reference in the first place
 
1:03 AM
I need a synonym for 'operation' (like bank operation)...
 
1:19 AM
@sectus "transaction", "activity" .... some context may help
 
1:30 AM
@PaulCrovella , thanks, i'll take it.
 
2:19 AM
PHP Sucks [citation needed]
 
2:38 AM
hi @all
i need help with stackoverflow.com/questions/26007608/… . any help appreciated
 
2:52 AM
I'm still trying to get the "userid" out of this array, still no luck
                $this->orderResponse = json_decode($jsondata, true); # Decode JSON String

				print_r($this);
				echo "<hr>";
				$teste = get_object_vars($this);

				var_dump($teste['client']['userid']);
processar Object ( [createResponse] => [orderResponse] => Array ( [result] => success [client] => Array ( [userid] => 146 [id] => 146 ......
Anyone knows what's wrong, and how to fix it?
Or
$this->orderResponse = json_decode($jsondata, true);
$clientid = $this['orderResponse']['client']['userid'];
echo $clientid;
This one is easier to read:

processar::__set_state(array(
   'createResponse' => NULL,
   'orderResponse' =>
  array (
    'result' => 'success',
    'client' =>
    array (
      'userid' => '146',
Did it
@DaveRandom, you had answered it long time ago, but I didn't understand it lol
@DaveRandom I ended up doing the same thing you told me to do, and when I did it I remembered your answer, and it all made sense, lol
$this->orderResponse = json_decode($jsondata, true);
$clientid = $this->orderResponse['client']['userid'];
echo $clientid;
 
 
2 hours later…
5:41 AM
The last message was posted 2 hours ago. Strange! O.o
 
Hey!
 
6:04 AM
I need a better name for this project Englishy Word Generator
nevermind... it just generated one for itself
 
morning
 
moin
 
@JoeWatkins moin :)
 
6:19 AM
I have confused by rendered output.
 
morning
 
@CSᵠ hehe
 
your trademark
 
why doesn't that one give a total on hover?
 
6:28 AM
any twig user here ?
 
omg
because it's a special case :) haven't seen one 100% that's 1 user and more times
 
so you can fix it by saying "dick head". that's awesome.
 
lol, yeah
 
I got twig dump output as an array with numeric keys 0, 1 but when I try to access 1 , it says Key "1" for array with keys "0" does not exist..
 
hello amazing developers here!!
 
6:30 AM
cool, found the issue
 
hey @boyee sup
 
hello amazing @boyee
 
i have some silly kind of question about postgres 1.18.1
 
posted on September 24, 2014 by kbironneau

/* by @adamzeffer */

 
@PaulCrovella you fixed it :)
 
6:32 AM
lol
 
on the postgres i seems to be confused on how can i insert fields on the database because i keep repeating this issues
the for example i have already added on the table accounts
account_id
status
then i forgot to add account_description which is between the account_id
i keep deleting the whole db
to make it
account_id
account_description
status
let me know if these is clear
account_id
 
ping @FlyOn
 
asdj
 
division by zero ^
 
@JoeWatkins taken care of
:)
 
6:35 AM
still get it
I could have almost guessed that one ...
 
@JoeWatkins what is jit?
 
just-in-time
re: recki/jitfu
 
cool
 
decodingweb.com/so-room-stats/11/threading that one is guessable too ...
we are too predictable I think ...
 
aww, it doesn't distinguish between 7 and "7"
 
6:41 AM
@JoeWatkins you know where to search... decodingweb.com/so-room-stats/11/threads
@PaulCrovella no
 
7:03 AM
emm , guys
how would you implement an array transformation that's kinda like this: gist.github.com/teresko/31d1c3b0d606d2f9830c
?
cool, there is a select-to-gist plugin for sublime
 
@tereško do you need a linear algorithm? because the easiest way is recursion
 
I am trying to make a recursion for this, yes
 
references :)
 
=/
which is why I asked for second opinion
 
Sometimes, its OK to use references. Like, when you're doing work with trees and the base needs to be dynamic
 
7:16 AM
@tereško eval.in/197887
 
(i would also use references in a linear algorithm, but it would probably a manual foreach (reset, each), and use a stack of visited nodes)
 
@PaulCrovella oh , right, thank you
I did not think about reusing the same array (I don't know if it's correct, but I like the approach)
 
@PaulCrovella I came up with the same, but it's wrong
the second one
"bar" and "buz" should be keys of the same array
 
oh, right...
 
@tereško actually, the foreach kind of masks it, it copies the array on recursion due to the foreach
 
7:19 AM
I had it without references
 
so, the result is in the same array, but there's hidden temp arrays
 
morning
 
@SergeyTelshevsky it will fail on deeper patterns
 
@tereško why?
 
dunno precisely ... it's a feeling
lemme actualy test it
 
7:22 AM
but this gives the same wrong result as @PaulCrovella 's one
 
@SergeyTelshevsky it also give the wrong result on ['foo']
it turns it into: ['foo' => ['foo' => null] ]
 
@tereško yes, currently seeking how to fix this
@tereško does it have to work with numeric keys or there will be only strings?
oh nvm
 
7:38 AM
pssst [foo => [bar, buz]] did you mean [foo => [bar => null, buz => null]]
since you've gone from named keys to numeric keys
 
yep, there's something fishy)
 
@DaveRandom lol, I have one commit with ~15k additions... I must have some super karma
 
@tereško 3v4l.org/GrZis no references
 
*Leaves :)
 
7:46 AM
@tereško just wondering, what is the use case? I remember implementing this about 1.5 years ago and don't remember where
 
pretty much the same, except you went ahead and did the special casing
 
@DaveRandom did you see the code? I thought about it last night and I think I found the solution in my head... might be totally wrong though :D
I'll see if I can work on it tonight... if not it's gonna be later
also, I think the code should be easily backported....
last thing: should I implement the other *_dimension handlers? Just to throw an error, instead of having the "Not an array" error?
 
@SergeyTelshevsky I am making are Layout class, which will manage templates
this is for parsing the template dependencies
I will actually make it a public repo when it works
 
it's a logical enhancement for simple php templating
 
7:50 AM
@Leigh your output is the same as your input
 
@tereško might be useful - gist.github.com/lt/5805875
 
I got twig dump output as an array with numeric keys 0, 1 but when I try to access 1 , it says Key "1" for array with keys "0" does not exist..
 
8:05 AM
@Leigh that doesn't work so well with templates
 
Morning
 
\o/
Who else is loving the "run code" thingy they added to the questions? :D
 
3
Q: Emmet in StackSnippets™

Second RikudoI think it would be a very nice addition to the StackSnippets™ to have Emmet implemented in the editor. This is NOT an HTML/CSS replacement, it's a productivity tool meant to help you write faster For those of you who are unfamiliar, Emmet can turn CSS selectoresque strings such as section#main>...

WTF people?!
16 downvotes to Emmet?!
 
@MoshMage I am not answering questions, that would take advantage of this feature =P
 
x)
 
8:18 AM
https://habitrpg.com looks like a fun and geeky way to train good or get rid of bad habits.
2
 
I'd cheat the hell out of that game: "to-do: procrastinate" "done" - repeat :x
 
Looks cool @Gordon
 
guys, what's the 3vl4 correct website?
ev4l.,org :D
 
@MoshMage 3v4l.org
tip: it spells eval in leetspeak
 
@Gordon That is pretty cool.
 
8:30 AM
morning room 11 circle jerks
 
posted on September 24, 2014 by kbironneau

/* by Jrich */

 
@Gordon it was what I noticed when I wrote it wrong :P
Btw guys, how do you like my "smarter" logic here ? stackoverflow.com/a/26012165/587811 :x
 
" I didn't realized it is a multidimensional mdfkr. "
 
Is the answer wrong? 'cause someone downvoted him x)
 
@MoshMage Yeah, use DateTime objects
 
8:41 AM
 
@SecondRikudo Didn't quite understood what you mean; Was it a good solving or should I use date_create stuff? (I = my answer)
 
@MoshMage What you are doing is not readable and confusing.
Use DateTime objects.
 
@SecondRikudo How is it confusing? (honest question) (Will check about those objects nau)
 
mornings
 
@MoshMage You're taking weird collection of strings, tie them up to a format you made up on the spot, and then perform operations on it.
KISS.
 
8:48 AM
but-- but-- but-- I thought *that* was keeping it simple xD
plus, it's the same format the guy was using in his question I only joined it into a nice comparable string (which isn't that hard to read, either) but *now* i get what you are saying :)
 
FLAG THE ANSWER TO OBLIVION
flagging intensifies
 
CV'ed the question too
 
this user is producing only crap ?
 
@tereško doesn't matter, don't focus on users
 
8:55 AM
@tereško Flagged
User will be handled soon.
 
My presentation went really well!
\o/
 
Good for you! :)
 
@LeviMorrison What was this?
 
What was it about?
 
It was about an algorithm we wrote that assigns jobs a priority number to be used in job scheduling for a cluster.
 
Hi @PeeHaa, can you fix the issue? — Tatha 14 secs ago
Idiot
 
well , fak
I will have to make a builder for the View instance soon , because the list of "methods that must be execute before everything else" start to grow
 
@PeeHaa Ya can't fix stupid.
 
9:17 AM
@PaulCrovella Nope
 
beauty fades, stupid is forever
 
@SecondRikudo yay! He accepted my answer as correcto! :D
 
Morning guys
 
(and I won "Edit Community Wiki" priviledges. I'm a priviledged person)
Hallo thar, Ronni
 
why in the world would someone post a screenshot of their code rather than the code itself
 
9:22 AM
@PeeHaa A super::$tatic deficiency
 
@Hakre would be proud :)
 
Unless stupid is actually brilliant and the person perceiving it as stupid is really the stupid one.
 
@PaulCrovella Pretty colours
 
the magenta is a bit much for me
 
@PaulCrovella I would do int only in once case: if I really need line-numbers
but that would require the code to be really shitty
 
9:32 AM
Anyone use Auryn? Strange issue, hope it's not me being retarded:
var_dump(class_exists('Toolset\MongoClient\MongoClient')); // returns true
Using provider to create something that uses MongoClient... "Could not make Toolset\MongoClient\MongoClient: Class MongoClient does not exist "
 
@Jimbo do you have pastie of the $provider-> .. stuff? =]
 
$provider->make('Toolset\RuleSet\Selection\SicRule');
Has the following constructor:
public function __construct(MongoClient $client, SicRuleValidator $validator)
and my MongoClient has:
namespace Toolset\MongoClient;
and constructor:
public function __construct(\MongoClient $client, $dbName = 'rules')
Mine decorates the in-built php version of mongo
 
does \MongoClient then exist? (the built-in)
 
So I am using artax to call a yandex page. I seem to get the html. 55k characters worth, but if I echo them I can only see 22k worth of characters. Am I doing something wrong?
 
@Fabien maybe a lot of whitespace your browser renders away?
 
9:40 AM
@bwoebi Good call, for some reason it returns false when I check class_exists('\MongoClient');, yet I can ctrl+click on it in my IDE to see it :/
and it existed before too lol
 
@Jimbo because that's exactly what the error message told me…
 
@bwoebi I'm getting mixed up between my MongoClient and the default one
 
^.^
 
@bwoebi I don't see the end of the html document though. Like it just stops printing out.
 
@Fabien an echo or a var_dump?
 
9:42 AM
@bwoebi I created a blank file outside of my project, checked \MongoClient exists there, and it does
 
really nice looking: humhub.org buy WHY did it have to be yii :(
 
Whut!
 
@Jimbo uh. no idea.
 
@FlorianMargaine echo
 
@bwoebi Thanks for helping me get here anyway (Y)
 
9:45 AM
@SergeyTelshevsky Yuck.
 
var_dump shows the 55k characters, but when I view source i only see the 22-24k ish
I mean I doubt it's my issue.
 
@LeviMorrison 'yuck' in general or 'yuck' as 'y' in yii?
 
Definitely the latter; maybe the former.
Looking at some of the code now.
 
Yii::all_the_things() && Yii::everywhere()
 
Yiistatic shii
 
9:48 AM
Lots and lots of extension, little interfaces.
Read that as: lots of magic.
 
nm it's just bot detection
 
global $post; $post->wordpressy(); vs GlobalStatic::laravely();
Is there any difference?
 
@RonniSkansing the difference is that you can do everything with $post, even pass it forward in the sense of IoC… but with GlobalStatic, you're forced to use the static variant, everywhere.
 
the first is horrible for two sets of equally important reasons ... the second is horrible for one, but still horrible ...
it's like picking the best of two turds ... a pointless thing to do ...
 
OH: QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljkn
2
 
9:59 AM
=] Thanks bwoebi and Joe. I hate the :: trend and just consider global $foo something from legacy code
I could not really see the difference
 
@SergeyTelshevsky lol. xD
 
@JoeWatkins are you going to have any spare time to look into the phpdbg issues or is that probably more unlikely?
 
@RonniSkansing :: is your friend!
 
Has anyone played with Flowdock before?
 
10:08 AM
@bwoebi not sure bob, maybe not today ... I will get round to it though ...
 
@JoeWatkins PHPStorm dev said they'll begin by the end of the week with the impl…
 
oh nice, have they reviewed then ?
 
PHPStorm will support phpdbg?
 
@JoeWatkins a bit, not deeply yet, but you only really review something deeply when you try to work with it ;-)
 
sure sure ... good work, well done :)
 
10:12 AM
I'd really like to have everything in for 5.6.3...
 
was there a 5.6.1 release ?
 
@JoeWatkins how's your native_tls patch coming? (I see a lot of code, but have no idea if it's fine or not…^^)
@JoeWatkins yeah, it's already tagged. (48 mins ago)
 
apparently some problem in apache, haven't looked yet, the theory behind patch is good for unix, apparently needs some change to work on windows ...
 
@JoeWatkins oh, yeah… windows
@JoeWatkins we'll need somebody who does all the windows specific things in phpdbg where only the Unix variant exists for now.
 
yeah, I hate windows ... anatol and pierre are working on it there ... which is nice ... I think they got it worked out, nobody really got involved in the conversation ...
 
10:17 AM
(especially sockets)
 
you should poke anatol, he's usually up for that sort of thing ...
 
will do after I'll have implemented even more dark unix magic ^^
 
I <3 magical C .... the only place you can conduct magic and nobody is any the wiser, since all C looks magical to the outside world ...
 
… lol :-D
 
10:20 AM
All I want to do is playing a bit with SIGIO… :-D
 
iPhone 6 bend looks like one of those old calculators.
 
yea
<3 it
 
Okay, so.... phpinfo shows mongo is installed. \MongoClient does not exist.
 
How my ToDo list looks like:
— Write a small overview about which xml output we have (tags & attributes)
— Asynchronously accept input for interrupts during execution on remote
— finish `wait` command
— merge `wait` command into master
— finalize `xml-protocol` branch (and merge `wait` into it)
— wait for PHPStorm feedback
 
- Make fab a sandwich.
 
10:28 AM
no :-P
 
- Celebrate with Blutwurst
 
- Celebrate with a cactus
@Fabien Can't believe that, think they'll do anything about it
BenderGate
 
ASR
hi all i am getting below error!, can any one help me?
OR 1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
 
@Jimbo Probably. I have a OnePlus phone so not much of an issue for me.
Apparently a fair few iPhone users fell for that "Wave" thing too.
 
busy you @bwoebi
 
10:40 AM
@Fabien still got your invite? ;)
 
@Fabien How is it?
Still waiting on mine -_-
Stupid USPS
How the hell can you not find an address in NYC?! That city looks like a freaking math notebook
 
@SecondRikudo Really nice, great screen. powerful. Nice feel. Hard to find a case big enough though
That's a long wait @SecondRikudo
 
@Fabien The package got lost and returned to the sender TWICE
My friend in the US has already returned to Israel by now
 
In my experience that means it's not coming -_-
 
@Fabien Nah, I'm trying a different address
 
@PeeHaa deleted by author
 
Good good :)
@Unihedron Hey didn't I see your name on meta couple of days back?
@Unihedron Undeleted by owner
 
ASR
0
Q: DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

ASRWhile importing the database in mysql, I have got following error: 1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) I ...

 
There's already an answer.
 
@PeeHaa I'm just this other guy, you know? :)
 
oh oh, reprogramming a cash register :D
 
in Low Quality Posts HQ on Meta Stack Exchange Chat, 20 mins ago, by Zephyr
Close Vote Request for http://stackoverflow.com/questions/26015132/my-login-pannel-is-not-working-using‌​-php by PeeHaa from PHP
 
@Unihedron Is that a transcript crawler?
 
@PeeHaa obviously not
 
11:31 AM
Man. I seriously hate when people write "I'm new to X language" and don't do proper googling.
 
user3408531
Let us suppose that I want to build an application using php on netbeans like struts or , What is the order of steps I should probably follow like creating the DB first and then the php pages and then Styles and then deploy and then What?? like security.., I don't know guys, you tell me because this is actually my question!!!, if you are experts so share me, thanks..
 
@MoshMage I'm new to Googling Java :)
 
user3408531
Sorry didn't say Hi, so Hi every one!!
 
start security with: nobody has access
 
Something I don't understand is, when I was getting started I was too lazy to write a question, it was easier to find an answer than to write and wait.
 
11:33 AM
@SergeyTelshevsky exactly :|
 
user3408531
ehemh,
 
@Tiyeb3W try doing it one step at a time
 
@Tiyeb3W You oughta start by writing the project on a paper. This is called "Planning" it will tell you what technologies you need and how the project will work and how it will act. From that point on, you design the website template, then (since you made your planning) you build the Database with some generic information and after that you start coding. Security is inside the "Coding" stage.
 
user3408531
@MoshMage I also hate Hello World program in any language!!
 
user3408531
@MoshMage thanks, what after deployment? like maintenance or traffic monitoring or what?
 
11:40 AM
After deployment your work is done, forget that you ever coded it and let it slip off to the unknown.
 
user3408531
hhhh
 
... Idk man, that's for you to decide what you want to do. Normally people keep checking it periodicaly to check if everything is working fine and if no bugs exist and just... generaly be happy about having one finished project
 
user3408531
Many thanks.
 
'noon
 
WHOA! Watkins is -1 hour from me. Where are you?
Azores? :x (it's the only place I know with -1 hour than portugal)
 
11:57 AM
@bwoebi oops, nice catch, I somehow missed the documentation part of the account request.
 

« first day (1439 days earlier)      last day (3494 days later) »