« first day (2200 days earlier)      last day (2970 days later) » 

Wes
Wes
10:00
ahahah well done
The pink hat does bring out the colour of my eyes.
I want a Halloween avatar as well!
@Jimbo I am asking Hans-Christian and maybe @ThW wants to join, too?
Wes
Wes
@Archer but you change avatars and nicks like socks, can't do it :B
:'(
10:03
@Jimbo Transport is going to cost you extra though
I assume it takes a little while to propagate from your SO avatar to the chat
Yeah. Caching is a bitch
Wes
Wes
yep
Hi we are three beginners web developpers and we want to work on the same project on local server and push changes to git the problem is that when a developper push a change git displays that the admin is who push the change is there a best practice to setup git for teams ??
@PeeHaa you're a bitch
10:05
ah you beat me too it ...
Not just any bitch. Your bitch
@undefined I assume you have local checkouts?
Anonymous
@PeeHaa WHAT!?
@JayIsTooCommon errr that was directed at you?
Anonymous
ah ok, no probs.
@PeeHaa yes were r working on a local server
10:06
<3
@undefined Are you actually developing on the server?
Because that's not how git wants to work
yes 3 developers same local server 3 repositories
@Jimbo why would you want me to bring @PeeHaa's mom though?!
@undefined how are you committing your changes?
@PeeHaa admin created the repo and push to git and the 2 others clone the project from git to local server but when they push changes git displays that it is pushed by admin :/
21 secs ago, by PeeHaa
@undefined how are you committing your changes?
Everybody should have git setup locally with their info
10:09
@Gordon i tried but it doesnot works
undefined occurs
hi guys
Anonymous
@abdul Then the variable doesn't exist
@Gordon i printed this array print_r( $data['categories'][$key]['manufacturer'][] = array(
'name' => $result['name'],
'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])
));exit; it gets data from db but i dont know how to display in tpl file
this my tpl code:<li><a href="<?php echo $categories['manufacturer_id']['href']; ?>"><?php echo $categories['manufacturer_id']; ?></a></li>
I'm getting an undefined offset 3: res2[3] but actually my array contains 6 as nb of indexes
why is this header(location) code doesnot work in some server?
10:13
@abdul apparently your $categories is not a variable then
stackoverflow.com/questions/550913/… @PeeHaa Im applying this answer
@Gordon i think i formated incorrectly in tpl file please tell me how to display that in tpl file
@abdul how would I know what you need to put into your random template file?
Ain't nobody got time fo dat. I'm moving on
this my controller array @Gordon $data['categories'][$key]['manufacturer'][] = array(
'name' => $result['name'],
'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])
));
10:16
@PeeHaa Thank for your time
Anybody has an answer about this offset?
@abdul I dont know what a controller array is. its' random code for me. you wrote that template so make sure it contains what you need in there. when in doubt, check the documentation for whatever that is you are using.
ThW
ThW
@Gordon You're in Cologne?
@ThW no, I am in Essen. And @Jimbo is in Düsseldorf this week
hi how to loop break without use of break word?
Anonymous
10:20
@JohnyNassar No one can help with the code you have given. - Create a mimic array here 3v4l.org and then your code.
@HirenKukadiya why dont you want to use break?
Anonymous
@user3304007 Second time you've posted that, still not funny
@gordon please give me a idea for this stackoverflow.com/questions/40214982/…
ThW
ThW
@Gordon And you will meet in Dusseldorf for a beer?
10:25
@ThW yes. well, ten beers
ThW
ThW
@Gordon hehe, send me location and date please :-)
Thanks Gordon and DaveRandom, I think I found out what to do. Do I need to uninstall XAMPP before trying to build my own PHP on Windows though? I am kind of reluctant on the idea because I'd like to be able to go back to it in case the building goes wrong.
@Gordon thank you for edited that but still undefined error occurs..may i know what mistake i did?
@abdul you did not define the variable :P
@Trowski Are we going to merge that Awaitable => Promise rename?
Wes
Wes
10:30
@Danack sorry - halloween avatar
3
@Gordon in tpl file i did not mentioned ..Right?
@abdul apparently you seem to think that whatever variables you defined in that controller method will be magically available outside the function scope. It's not. PHP is not JavaScript. If you want that $categories in your template, you need to pass it to the template.
Anonymous
@Wes quality
@Gordon thank you
Wes
Wes
@bwoebi jay sent me a strange photo of you, are you ok if i make an halloween avatar with it? :B used only public photos so far, don't want to get anyone offended :D
Anonymous
10:38
@bwoebi It's a beautiful photo
@Wes I'll decide whether I'm offended after I see the halloween photo :-P
Anonymous
lol
Wes
Wes
i don't have any idea yet.. hum
If I call you something else than a dirty bastard then, I'm probably offended :-P @Wes
Wes
Wes
10:40
:P
@JayIsTooCommon I bet it's the photo @PeeHaa made in our hotel room and sent you?
Anonymous
:D
Anonymous
Butt naked and everything
@JayIsTooCommon I guess you are safe as long as no one calls you an ambulance
Wes
Wes
scary or fun stuff, but since jay sent me it and not you, i wanted to ask
10:41
@Wes Meh, go ahead and don't disappoint me.
Anonymous
@Wes It's as if you don't trust me.
I don't think I've ever seen a picture of @bwoebi
Wes
Wes
@Gordon what about the one at phpwhatever in uk?
@Gordon you do; at the very least on the room 11 phpnw group photo
Didn't you see the room 11 photo
10:42
@bwoebi but I dunno who is who
Wes
Wes
there's joe in it, and even peehaa
@Gordon That's obvious, no?
well, the stoned looking guy is @PeeHaa
Anonymous
Oct 4 at 10:06, by JayIsTooCommon
yesterday, by JayIsTooCommon
@FlorianMargaine from left to right - Bob, Thomas, Chris, Danack, Jimbo, Leigh, Joe, Sean, Pieter, Most Handsome Man of the Year 2016, can't remember the username
:P
10:43
@JoeWatkins do you have a dll of ui I can have a play with?
Anonymous
pmmaga is the missing username
I really just cannot make VC14 work :-/
it's already almost 2PM and I still haven't written a single line of code. Only writen shit in Jira an cleared the "dev-spam" in my work email :(
@Wes did you see the new Wa*king Dead yet? Or should I go find some spoilers to distress you with?
Wes
Wes
i did watch it, i've even cried
my fav character was beaten to death :(
10:47
Yo
Wes
Wes
\o
I need to host soon a training tool website... It will have about 50gb of external video content... Im looking not for the cheapest but the best solution for those resources
digital oceans pricing looks already good but im not surs thats good as file host ?
Anonymous
@Wes @DaveRandom no spoilerz please
@Duikboot Are the videos public?
Wes
Wes
i didn't say who. i'm a good guy.
Anonymous
10:51
I know, i hope it's glen.
Shut up. All of you
Anonymous
Is he even in the line up? I hope so..
Wes
Wes
ssssshhh
Most of them ars public
Anonymous
@PeeHaa They all die. Every single one of them.
10:52
Are
@JayIsTooCommon It's not got
Anonymous
:P
@Duikboot Outsource public videos
youtube/vimeo
They dont want that :( i said that too
:-(
@Gordon s/stoned/hungover
Also that's... my face
:P
10:59
any other service in mind. ? :D does do do cdn?
@Duikboot No idea. I always convince people of just doing it my way :P
He said "do do"
That being said, if it's not you that's footing the bill, go with AWS
11:16
Thanks ! @Patrick Currently I was looking at Rackspace.
Wes
Wes
@tereško i'm probably gonna die now i.imgur.com/KDyqqw2.jpg
12
lolroflmolfol
@Wes what did you change?
Wes
Wes
ahaha
user986408
should i use redis or beanstalkd for message queues?
11:23
yes
Anyone here using CuteFTP ?
wait what does redis have to do with queueing ?
Wes
Wes
yay joe wore the locutus/thor/cyclops avatar :D
user986408
@JoeWatkins it can be used as a message queue too - see redismq or tons of other implementations
11:25
Hello!
> It's not a standalone server that you can use as a message queue, at least not for now. The implementation is done purely client side. All message queue commands are "translated" into redis commands and then executed via a redis client.
CuteFTP has a limit of 10 000 files to view in folder. If there are more files, how do you backup ?
incidentally it uses redis, redis has nothing whatever to do with queueing ...
@Wes hahha
user986408
@JoeWatkins citing myself: "it can be used as"...
11:27
it's not being used as a message queue, it's being used as exactly what it is, someone built a message queue that happens to use redis, but presumably could use any other kind of data storage ...
@user3304007 rsync, tarball + FTP. FTP is a last resort in all cases anyway.
user986408
@JoeWatkins you fully understood my question about the technology stack and are just being pedantic now
no, he really is not
redis and beanstalkd are not comparable things
user986408
@DaveRandom i didn't compare them
user986408
i just know people tend to use either
11:32
9 mins ago, by codepushr
should i use redis or beanstalkd for message queues?
This is implicitly comparing them
Also you should use zmq instead anyway
or rabbitmq
(in my very subjective opinion)
user986408
both seem quite unstable
user986408
at least rabbit
rabbit is unstable?
11:34
^ this
that was my point, to use a thing that is meant to be a message queue from the ground up, that doesn't have 10 years of baggage as a cache, or a hat stand, or some other shit ... and we would have got there ...
but you chose to be a dick about it ...
I mean if you use the tip of master it's probably unstable, but don't do that
@codepushr that is a funny argument given that you consider to use redis which would require adding lots of things on top of redis which will likely be much less stable than using a dedicated thing
@Wes hahahaha. That's the best one so far imo
Zeromq's author passed away a month ago.
11:35
@Gordon I favour zmq because I tend to build custom things. Bitches love custom things and as previously discussed, I am a bitch.
that is shit
Wes
Wes
@PeeHaa except i'm gonna die when teresko sees it :B
wait
he killed himself
You are going to die eventually anyway
Wes
Wes
true
11:36
@JoeWatkins yeah, euthanasia…
you could also use activemq or even kafka
that's extremely brave
@bwoebi yeah, was just reading about him ... poor chap
user986408
@Gordon disque is based on redis - therefore the reason i'm considering it - also a lot of comments regarding rabbit - especially regarding distributed systems news.ycombinator.com/item?id=10826448
@Wes awesome
@codepushr that post is almost a year old. you might want to make your own experiments before jumping to conclusions.
Wes
Wes
11:40
@tereško it's a trap? :P
user986408
@Gordon absolutely! it's still nice to have additional input, hence the reason i asked
Wes
Wes
time to face the javascript procrastination of the past hours. i have no idea of what i'm doing
@tereško This is me right now, too busy on SO, social media, slack
@Wes it's called being a developer
@Wes Did you make bob yet?
11:42
@PeeHaa he didnt have time for a bob job yet
Wes
Wes
lol
nope, i need an idea :\ @PeeHaa
hahahah @JoeWatkins is pretty fucking epic
Wes
Wes
yeah still laughing from this morning
I didnt see that one. and apparently its not starred
Wes
Wes
did it very early this morning
11:56
user image
5
hahaha
He has a point
Wes
Wes
ahahah
There are 3 sentences there. Every one of them contains something that is wrong.
@DaveRandom tied come in, tides go out, you can't explain that
lolol
He's onto something here
12:04
@tereško Actually I can. See, what happens is that at certain times of the day lots of people go swimming and this causes the sea level to rise, then later they all get out again and go home so it drops back it's normal level.
@DaveRandom but wouldn't the extra water just fall over the edge?
@tereško nope. as everyone knows, there is no gravity in space, so the water wouldnt fall over the edge but be kept at the edge because gravity would pull it back to the edge.
hmmm ...
Wes
Wes
12:08
@littlepootis i.imgur.com/PDqgTC0.jpg halloween avatar. i can't stop. sorry
4
@tereško Clearly you aren't up to date with current theory. Scientists realised a long time ago that the "edge" was just a ridiculous story from sailors with over-active imaginations. In fact, there are infinitely many copies of the world, if you go in any given direction for long enough, you will instead reach one of those copies. And obviously with all of those copies of people getting in and out of the water that will create the huge sea level rise you see.
Suggesting that just one world's worth of people could have that much of an effect is clearly ridiculous.
@Gordon wouldnt that case some of the water to gather the bottom of the earth?
but where does all the extra water from rain go?
It has to fall of the edge, anything else doesn't make sense
@tereško what bottom?
HO-LEE-SHEET
12:10
@Patrick it might also be quite hot at the edge so the water might vaporize and turn back into clouds
@Gordon the side where the three giant whales hold it
Anonymous
@Wes hahah
@Ocramius now ragequit the project and delete the package OR sneak some code into it that emails @PeeHaa whenever something is hydrated
anyone got a good idea for a ransomware?
12:11
The second thing. Do the second thing.
Just put if (!random_int(0, 6)) echo 'lolz'; in it somewhere
@Ocramius wow, 3605 times crap.
12:16
Can break basically every PHP application which was built by somebody that has an idea of how software works
/me runs
meanwhile:
Released: doctrine/annotations 1.3.0 - https://github.com/doctrine/annotations/releases/tag/v1.3.0 Now requires #PHP 5.6+. #doctrine2
We try that but a certain italian game figure keeps complaining when we do :P
@Ocramius \o/
Do you guys keep following php eols?
something like that. If it was for me alone, it would be 7.1 only :P
heheheh
But I'm not the only consumer, heh
@Ocramius I only used doctrine for things that didnt make sense… like pulling in more than 50 records and things like that
12:20
@Gordon I'll bring you a badge or something
@Ocramius hmm, php6 certified please
Have shirt
are you by chance at International PHP (Bavarian) Conference?
Driving there tomorrow. Today I'll just sleep under my monitors
@JoeWatkins do you remember our last talk about symbol_table chat.stackoverflow.com/transcript/11?m=33553980#33553980
@Ocramius nope. but you could give it to beberlei or tobysen if it's size M
Noted
12:24
yay! thanks
@Gordon when i print this print_r($results); all manufactures displays but i print this print this print_r($data['manufacturer'] = array(
'name' => $result['name'],
'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])
));exit; it displays only one manufacturer ,so i need to display all manufacturer ,how to do this?
@JoeWatkins I need an advise. I've prepared such tree and have putted all classes and namespaces into it, but suddenly there I have a problem with constants, using define("SOME_CONSTANT", "value", true) it is possible to define case-sensitive constant so basically in symbol_table where I've putted all namespaces and classes lovercased for case-insersivity this one feature is ruining my idea of putting everything in a symbol tree.
Should I think about deprecation of case-sensitive constants defined with define()
user3119231
Hello, if I convert a JSON string which contains double quotes it totally fails. But I'm not sure how to fix this (Monday, huh)
user3119231
function json_to_array($json){
	for ($i = 0; $i <= 31; ++$i) $json = str_replace(chr($i), "", $json);
	$json = str_replace(chr(127), "", $json);
	if (0 === strpos(bin2hex($json), "efbbbf")) $json = substr($json, 3);
	$json = stripslashes($json);
	$json = json_decode($json, true);
	return $json;
}
@PeeHaa 0.09 euro = rackspace. for storage.
12:32
Why are you manually touching json?
It's either json or not
JSON told me that it likes it
@Duikboot bandwidth is what you need to check
hello guys ,when i print this print_r($results); all manufactures displays but i print this print this print_r($data['manufacturer'] = array(
'name' => $result['name'],
'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id'])
));exit; it displays only one manufacturer ,so i need to display all manufacturer ,how to do this?
Isn't just json_decode enough?
yes indeed
U convert it to PHP and work with it or you go from php to json to handle it in JS or whatever.. but furthermore you don't have to do operations on it right?
@abdul there i only one manufacturer in your array
sorry I didn't noticed $result
@brzuchal but that $result variable displays all manufacturer..
@abdul pls dont spam.
@brzuchal how will i put all values into that array
Anonymous
!!docs foreach
12:40
[ foreach ] The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. There are two syntaxes:
@abdul do a basic php tutorial first before you start writing your own code
Anonymous
@abdul ^^ For your original question of how to print all manufacturers. But you need to Google more..
Can anyone point me towards an RFC which states which HTML elements should have a CSS pointer (finger) for them, and which shouldn't?
user3119231
@PeeHaa json_decode fails sometimes. That's why I use this functions
12:44
Or do you really need an rfc?
@Maurize Fix the problem instead
@Jimbo definitely <peehaas-mom/>
@Maurize maybe it's not JSON you're trying to decode ?
@Gordon cursor: finger?
user3119231
@brzuchal Maybe it's Manuel Neuer
@PeeHaa yes
12:45
omg that one was bad even for me :P
@Maurize I don't know that guy
give an example
user3119231
I can check the json in the console. It's okay. I think it's more up the values
@PeeHaa I'm trying to argue that a list box (dropdown list) should have a pointer
Otherwise how are you to know you can click on it
@Maurize when you json_decode fails, e.g. returns false, the error is given in the json_last_error
@Jimbo How do you know you can click a button?
12:48
@PeeHaa Because it has a cursor
Or because it looks like a button
So how is it defferent from a dropdown? :)
Also different
Has anyone on this channel used case-sensitive define() ? I cant find usages on github it has poor search
the third param:
`case_insensitive`
If set to TRUE, the constant will be defined case-insensitive. The default behavior is case-sensitive; i.e. CONSTANT and Constant represent different values.

Note:
Case-insensitive constants are stored as lower-case.
@brzuchal You mean insensitive?
12:51
yes
no
Nope never used that
sensitive
Everybody does
insensitive is default behaviour
No it is not
12:52
s/default/wrong/
Sensitive is default
^that
!!docs define
[ define() ] Defines a named constant
@DaveRandom why do you think insensitive is wrong behaviour ?
because all symbols should be case sensitive all the time
12:53
^ that again :)
@Patrick Yeah, I think that's terrible. The cursor should change from what I use on everything else to something else when I can do something else
otherwise it's just chaos PHP
But the aren't
> should be
okay
12:53
I will fight you :-P
I will place bet on it
wait
I may be not against sensitiveness
:D
lol :P
<?php
define('Wibble', 123);
define('WIBBLE', 456);

var_dump(Wibble, WIBBLE, wIBBLE);
?>
int(123)
int(456)
string(6) "wIBBLE"
@568ml use the third argument
12:55
@Jimbo while bootstrap changes the cursor for buttons (unlike default), it doesn't for selects. Interesting
@brzuchal wtf? I didnt know this exists. whats the point of changing how constants are defined?!
otherwise you could have used that as an argument I guess
I'm not trying to change them, I'm trying to implement some POC for symbol_table replacing class_table + function_table + const_table etc. and going through implementation I've started with lc names as classes and functions are stored case-insensitive
By convention, constant identifiers are always uppercase. So I dont see why define would allow that flag.
And found out that there is possibility to define constants with define() in two ways
12:57
@Gordon Because PHP
@DaveRandom said they should be sensitive
so convention is uppercased but stored lowercased
so there is possibility to override define using lowercase name and third argument set to true
@brzuchal it is indeed bizarre, declaring a constant with the case-insensitive parameter set to true allows the value to be overridden
that is ambigous behaviour for user

« first day (2200 days earlier)      last day (2970 days later) »