« first day (2526 days earlier)      last day (2432 days later) » 

12:34 AM
all I see is elephpants
user image
4
 
Wes
12:50 AM
lol
 
1:30 AM
Morning
 
Wes
2:21 AM
o/
 
3:19 AM
@RonniSkansing such nice
\o
 
 
1 hour later…
4:48 AM
very good morning
 
5:18 AM
posted on September 15, 2017

New Cyanide and Happiness Comic

8
 
Hello All Great People around the gloge
I need your help in clarifying a simple doubt that has came to my mind
0
Q: How does the function unset() behaves differently depending on the way to access a global variable inside the function?

user2839497As per my knowledge, any variable declared outside the function is treated as a 'Global Variable' in PHP. To access such global variable inside the function there are two ways one is to declare is as global inside the function with the keyword 'global'. Another way is to access the global variab...

 
6:24 AM
posted on September 15, 2017 by kelunik

- Fixed race condition for closed streams. If a stream has been closed, but the final chunk not written yet, a `ResourceOutputStream` didn't throw an exception as expected, but instead resulted in an `InvalidWatcherError`.

 
@Jimbo o/
 
6:50 AM
moin
 
mornin DaveRandom
 
Wes
7:35 AM
mornin
 
mornin
 
mornin
 
omornin
 
Wes
what does it mean that accounts are temporarily restricted on twitter?
 
7:51 AM
@Wes it's a time out for abusive users
kinda like SO does it
 
Anonymous
mornin
 
Anonymous
bomb in the underground?
 
morning 11
 
Wes
wtf? @JayIsTooCommon
 
Anonymous
8:05 AM
London Underground explosion
 
Anonymous
apparently
 
Wes
seems nothing extremely dramatic, right?
 
Anonymous
Yeah, just reporting small explosion now. False alarm hopefully
 
Anonymous
fucking people already posting 'my prayers are with those blah blah blah'
 
Good morning all.
 
8:18 AM
> A picture on social media showed a white bucket inside a supermarket bag, but does not appear to show extensive damage in the carriage.
and slight injuries only.
 
Anonymous
media jump on these things too quickly
 
Anonymous
some bloke dropped his cig in a bucket and now he's surrounded by armed police :B
 
soooo ... a bucket popped ?
 
Anonymous
and everyone pooped
 
Anonymous
8:25 AM
-.-
 
Anonymous
every god damn time
 
also, happy fridays roomies :)
 
o/ happy friday to you to salathe
 
morning
 
morning bitches
 
8:40 AM
Oooo, where dem bitches at? @JoeWatkins
 
u bitches, bitch ....
I've said bitch a lot this morning ... I'll stop now ... bitches ...
 
Anonymous
stop bitching about bitches you complete bitch
 
wut, you outbitched me in a single bitch ...
 
Anonymous
O.o
 
you saying bitch reminds me of: youtube.com/watch?v=3WffXrcQpwc
and no, not rebecca black, although it could have been, cuz she's a bitch 2
 
Wes
8:43 AM
@JayIsTooCommon rofl
 
epic
 
@salathe try harder
 
@Gordon no way am I going to try hard on a Friday
 
Anonymous
!!wotd
 
@salathe but… aint there a reason why Friday rhymes with Tryday?
 
8:48 AM
8 messages moved to Trash
 
@JayIsTooCommon abomasum, n: the fourth stomach of a ruminant, such as a cow or sheep
 
Anonymous
@Gordon Jeeves does it with more attitude.
 
9:26 AM
Does anyone use function myFunc(...$args) ?
 
nope. only @NikiC
 
Anonymous
@DaveRandom too
 
everyone else just uses the good old func_get_args()
 
Anonymous
freaks.
 
well, you never know when someone wants to run your code on php 5.3, so better to make it bc
 
9:44 AM
@Gordon I prefer for/func_num_args/func_get_arg, I don't trust magical arrays
or variables
or functions, come to that
 
ideone.com/fzbQMA I've a table with 1142 possible positions. That is supposed to be an storage rack and I want to display where an item/box is stored. How would I implement here a useful database model and how can I put this into my nested loops? oO This is breaking my head today :( How bad are 1142 SELECTS to a database upon loading this page? xD
 
@DaveRandom I dont trust that either. I implemented my own extension providing functions for that which I install into every project I use.
 
@DaveRandom or PHP
 
@Gordon I don't trust extensions. I write all my code with gcc preprocessor directives.
 
or C, it's just an ugly abstraction
or asm, it's also another abstraction on top of binary
or binary, processors are lying all the time about how they run it anyway
or processors, for the matter
 
9:47 AM
well, as long as you use vim for writing that instead of nano or emacs…
 
If I have some code in an If (such as a lot of HTML; like a lot). When I load the page will that slow down the loading? Or does it skip over that block entirely if the statement doesn't apply?
 
why would I have html in an if?
 
@Gordon that's the whole point of php
 
Anonymous
@Gordon he means nested
 
y'know, <?php if ($foo): ?> <some></html> <?php endif; ?>
 
9:49 AM
@FlorianMargaine I thought the point of php was to keep @salathe busy with something
 
@JayIsTooCommon Yes, apologies for the miscommunication. Just trying to understand how the language works etc
 
@JustCarty it will skip the block
 
I just mean, will it slow the loading down or does it not download that? How does it work? When the page is requested from the server. The server evaluates the PHP code and then sends the page without that block?
 
yes
 
@Gordon Okay, thank you. Wasn't sure that if there was a lot of code that it could result in slow loading. So even if there were like 20,000 lines but 19,000 were in an if that evaluated to false. The user gets the 1,000 lines? (Obviously hypothetically)
 
9:54 AM
yes
php would still parse all of that. but it will not execute the if branch if the condition is false
 
(I wonder how long before you all get fed up of my questions 😞)
 
@Gordon Totally, PHP isn't a programming language it's a distraction. :)
 
I'd call it a job-creation measure
 
Anonymous
@JustCarty As long as you Google and do your research before hand, no one will ged fed up
 
This questions is important:
Personal Home Page or PHP: Hypertext Preprocessor?
I'm all about the former
 
Anonymous
10:07 AM
starting to think you're just a troll..
 
@JayIsTooCommon No :O I'm just lonely
Genuinely not a troll :(
 
@JustCarty Parents Helping Parents
 
Does anyone know of a decent/standard way of defining how form fields should be 'calculated' from other fields. E.g. for something like `'fullName' => 'firstName concat lastName' which means build the fullName from the first and last names?
 
there is no universal standard for names. it highly depends on culture
your best bet is to base on the logic on the majority of your audience, e.g. if western names, then fullname=firstname+lastname
 
yeah....and I'm not trying to solve that. I'm just focusing on allowing front-end devs to be able to make a form how they want, and then have the fields converted to a standard format.
actually - why don't I just get the frontend devs to solve it....
and have a hidden field that contains fullname, and they can JS the individual first and last names into that....
 
10:24 AM
@Danack Just having a single "name" field in the form solves it.
 
@kelunik that would be my choice. Unfortunately, clients.
 
Another day, another catastrophic hardware failure \o/
 
Random or spilled liquid induced?
 
£5K Dialogic ISDN card literally exploded (big burn mark on it and half a capacitor left)
I assume heat-induced
 
Anonymous
shit, that is catastrophic
 
Anonymous
10:31 AM
I imagine heat-damage isn't covered in warranty either?
 
luckily it's a 3rd-party maintainer's problem, and they have a spare in stock, and their office is ~10mins drive away
 
Cassini is (presumably) no more by now
confusingly melting in a sea of liquid hydrogen
 
10:51 AM
GlobIterator on current directory uses invalid path for SplFileInfo – #75210
 
11:22 AM
so ... any thoughts on Sony XZ1?
 
Why not iPhone 7 ? (it's amazing)
 
iPhones, and indeed anything with a lowecase i prefix, are for people who don't give a shit about how their stuff works or want to have some vague hope of fixing it themselves when it goes wrong. There's nothing wrong with that, but a lot of the people you encounter on SO will not fall into that category.
 
what does "give a shit" mean? "give a try" ?
 
@Shafizadeh I don't give a shit -> I don't care
 
ah
@DaveRandom anyway, I own one and I'm happy about it
 
11:38 AM
@DaveRandom umm… Why do you even want to care about how your phone works?
 
fine, that's totally valid. I personally don't black boxes that are quite that opaque, and I don't get on with iOS in general from a UX PoV either.
@bwoebi the first thing I do with any new piece of tech is find new and interesting ways to break it, see what you can make it do that it wasn't designed for
like I say though, that's me. It's not for me, but that doesn't stop it from being for you :-P
 
@DaveRandom well, I agree on that for regular shit, but a phone really just shall work in the few cases where I need it.
 
I dunno, I guess I'm just weirdly fascinated by having a computer that's orders of magnitude more powerful than huge PCs I had a decade ago (or less) in my pocket. Interested to see what happens when I poke and prod them a bit :-P
 
I just want it being a phone, webbrowser, navi and remote ssh console for urgencies.
Yeah, it's far too powerful for my needs… but that's how it is.
 
@bwoebi Imagine if someone from the year 2000 read that message :-P
They'd be like "wtf, is 2017 like star trek?"
 
11:45 AM
Morgnins
 
Anonymous
shitlord o/
 
\o
 
@DaveRandom I'd rather compare it with 2010 :-P
 
Cassini is officially gone
 
RIP
Does it have images?
 
12:02 PM
last visual image was taken yesterday, last hours was "just" instrument data
 
k
 
for obvious reasons I guess, the tech on board that thing was like 25 years old
 
Anonymous
@DaveRandom are you sure? Are the images not on their way?
 
Anonymous
sucks
 
12:05 PM
signal loss was 10 mins ago, although it actually overran by ~30s, so I guess it got further down that expected before total loss of control
 
Anonymous
think of that.. 2.5bn, poof gone
 
Thrusters at 100% of capacity; high-gain antenna begins to point away from Earth, leading to loss of signal
 
@JayIsTooCommon are you talking about Cassini or Equifax? :-P
 
Anonymous
lol
 
I think he's talking about my gdb sessions
 
12:31 PM
@DaveRandom oh god
I watched Gravity last night
so scary
 
the space movie? It sucked ass.. boring
 
@FlorianMargaine watch "Life" as well ;)
 
especially annoying that the main character was a helpless child and all the talented people died.
 
bob
Hello all, I recently saw this bit of code and was hoping someone could explain it to me. $user = $query -> load_user_object($user_id); what does the load_user_object do?
 
@Darius No no you're thinking of that other one, what's it called...?
 
The Trump Administration, that's it
 
i was thinking of the 2013 one
Lol
oh
xD
 
@bob That's a "method call", read the docs that @floGalen linked for context
 
@bob no one can tell you what load_user_object is doing. In order to do so we would need to see the method
It is not a default php function
 
I'm going to throw a wild stab in the dark and guess that it's loading a user object
 
12:38 PM
crap... someone can... :>
 
:-P
 
Day 2 of laravel, hey, why doesn't this work
{{ Form::radio('roles[]', $role->id, (in_array($role->id,$selectedRoles) ? 1 : 0)) }}
but this works
{{ Form::checkbox('roles[]', $role->id, in_array($role->id,$selectedRoles)) }}
I've tried a lot of things, it keeps saying can't convert to int when trying the radio method, why does it even want an integer...
ignore the roles[], when radio, I change it "role" only.
 
try "1" : "0"
 
@Darius what's the exact error message?
 
"Object of class Illuminate\Database\Eloquent\Collection could not be converted to int"
" protected function getRadioCheckedState($name, $value, $checked)
{
$request = $this->request($name);

if ($this->missingOldAndModel($name) && !$request) {
return $checked;
}

return $this->getValueAttribute($name) == $value;
}"
 
bob
12:40 PM
@DaveRandom I figured that much out myself funnily enough :P
 
I guess that 2nd part of the code isn't helpful :p
Tried "1" : "0", still nothing
 
@Darius what's on the line of code in the error message?
 
return $this->getValueAttribute($name) == $value;
the one highlighted right?
 
OK, well either $this->getValueAttribute($name) returns int or $value is an int
I imagine it's the latter
 
Yeah, it would make sense, since the value definitely is an INT, but why can't it be an int?
can't radios hold integer values?
 
12:44 PM
The issue is that $this->getValueAttribute($name) returns a Illuminate\Database\Eloquent\Collection instance
why it does that I couldn't tell you
 
got it.
 
but when you do $object == $int, PHP attempts to cast the object to an integer, which emits that message
 
I got it working by putting the $roles->id in quotes. in other words, int to string
thank you very much
 
well that may or may not work, depends whether (string)$this->getValueAttribute($name) actually results in a sensible string to compare with your $value
 
should be fine as long as I don't get a 0 or null i guess =]
 
12:49 PM
well, maybe. But I assume the point of passing a value at all is to actually generate a sensible condition on whether the generated radio is checked or not. No error != sane logic :-P
 
1:06 PM
Agreed, I think I found the reason it did it. the foreach($roles as $role) and eloquent miscommunicated somehow, and didn't allow me to have the name set as "roles" for radio. Bleh.
gremlin in my opinion.
 
I always wondered if a gremlin lives in the kremlin or under a levensthein
 
mornonings
 
@Ocramius ping
 
1:30 PM
@Gordon In the Kremlin probably
 
1:49 PM
minor: We're aware of an issue affecting background job processing. Site actions may appear delayed in the meantime as of 2017-09-15T13:49:11Z
 
@ircmaxell It's actually just an implementation issue. We cannot do that without either introducing a disproportional amount of complexity (I think)
 
Anonymous
@Jeeves who's a good boy?
 
@JayIsTooCommon I am a girl.
 
lol
 
Anonymous
ah well.
 
1:49 PM
@NikiC fair enough
just something I noticed and is annoying
 
@Jeeves are you a girl? or a boy?
or, are you dead?
 
so binary
o/
 
@ircmaxell yeah
 
Anonymous
@Saitama duplicate response.
 
oh, 'kay :P
 
1:54 PM
gdi friday
 
Anonymous
!!urban gdi
 
[ gdi ] God Damn Independent, a college student that is not in a fraternity/sorority.
 
@PeeHaa no
 
god damn it
as in, ffs, I thought @salathe was safe material
 
1:55 PM
@Ocramius Not sure how I should handle that response :P
 
Don't care: it was UDP
 
Anonymous
@PeeHaa throw
 
(╯°□°)╯︵ ┻━┻
 
Anonymous
@Ocramius nerd
 
1:56 PM
Sometimes
Just waiting for the next "WOW team" blogpost
 
@Ocramius Can you shortly explain to me why phpci is bad and prevent me from looking and missing stuff?
 
@PeeHaa it is extremely slow, it crashes mid job execution and it does not have job concurrency
 
Awesome <3
 
We used it in the first half of 2016 and it was mostly just problems
Oh, and it also failed at running jobs when pushes happened in between
can't remember the details
 
k. tnx \o/
 
1:58 PM
Hello,
I am using Dropzone js but everything happens in the background, it consume the response from the server and leave the page as is.
I don't want the changes to happen in the background but in the current active page.
How could I do that !?
 
you message is both too broad and off topic in php room
 
@MohammadTbeishat What does that even mean?
 
Hello,
This is a fucking PHP chat room.
 
@tereško s/fucking//
 
1:59 PM
ugh, keyboard layouts
 
Nobody fucks with php
 
@tereško you wish
 
THIS IS AN ANIME ROOM.
 
Anonymous
actually hovered over kick..
 
wait, there is an epic message from I don't know which room with a perfect metaphor on such stuff
 
Anonymous
2:00 PM
then remembered mods..
 
@JayIsTooCommon I know you wouldn't do that <3
 
something like "hello car vendor, I'd like a vacuum" - "We sell cars" - "Yeah but the vacuum vendor was closed"
 
@tereško I am using Dropzone js for php :3
@FélixGagnon-Grenier Well, it's not clear for me so I don't know how to make it more specific :v
@PeeHaa I don't know :v
 
-2
Q: JASON is not defined error

mazNameI am using JavaScript in PHP to work with Blockly. In a .php file, I wrote: <?php $data = file_get_contents("myURL"); ?> In the javascript part of this file, I wrote: <script type="text/javascript"> var obj = <?=$data; ?>; obj = JASON.parse(obj); //to do something like $obj = json_d...

@MohammadTbeishat You don't know what your own question means? :P
That would be a first step to a resolve I guess
 
@NikiC I've started to do two things to work around it: define a function "a" that is simply function a(...$a): array { return $a; } and ending all of my calls with ...[] to support trailing commas
 
Anonymous
2:04 PM
Simple fix, put this at the top of your file var JASON = JSON;Professor Allman 30 secs ago
 
He earned that title
 
@PeeHaa sorry, I am kinda pissed at the moment, since I had to explain to a developer with 10 years of experience, how to debug AJAX call and that you do not need to compare the filesystem of production and staging environment to debug it
 
@tereško Channel your anger towards him :)
 
pissed doesn't really cover it - I am so angry, that, if I was a dragon, I would shit lava
 
Anonymous
2:06 PM
@tereško Do you have to explain it to him every morning or something? Because I think you're always pissed :P
 
Alternatively go to the fridge and grab a beer instead
It's friday 4 PM
 
it's friday 10AM here, but that sounds like a sane course of action nonetheless
 
:P
 
@JayIsTooCommon let's put it this way, I have had to explain to him how dependency injection works at least 4 times and I suspect the team lead has explained the same at least the same about of times
 
ah... the good old senior who won't learn stuff
 
Anonymous
2:09 PM
@tereško I think I have something that'll cheer you up, moment
 
lol that JASON thread is epic
 
Anonymous
@tereško I got a new bag today s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/123379/901033/… do you like it?
10
 
hahahahahaha awesome
 
php_value acts like php_admin_value – #75212
 
2:11 PM
@JayIsTooCommon that's just sad
 
Anonymous
rude.
 
@PeeHaa
Take a look, plz:
https://stackoverflow.com/questions/42101786/dropzone-js-prevents-flask-from-rendering-template/42264730

I tried the answer in this topic but when the script render I don't get any variables !
 
Sorry. I don't feel like reading though all that at the moment
 
Just read the first answer, plz
 
I won't. Sorry
 
2:13 PM
Okey. Thanks :)
 
@JayIsTooCommon kawaii... the bag, not you...
 
Anonymous
@MohammadTbeishat chat.stackoverflow.com/rooms/17/javascript You might have a better chance here
 
Morning.
 
@JayIsTooCommon I'll try thank you.
 
Anonymous
yo levi
 
2:14 PM
@MohammadTbeishat What method for the redirect did you use
 
@floGalen I am using Slim framework :
$response = $this->view->render($response, "home.php",array(
'errors' => array($errors),
'new_name' => $new_name
));

return $response;
 
@LeviMorrison Morning
 
@MohammadTbeishat you said look at the first answer... I did... he's talking about two options for your redirect. Which one did you use?
 
does anyone have any idea on why there are no season 1 - 4 of Doctor Who in netflix
 
@Saitama Rights and monies
It always is
 
Anonymous
2:16 PM
they're weird with seasons on Netflix
 
@floGalen I tried using jQuery.
 
Anonymous
Gavin and Stacey. You can have seasons 2 to 3.
 
@Saitama Install kodi
 
Anonymous
@Saitama yeah yeah.
 
2:18 PM
@MohammadTbeishat what vars you're talking about? You've a fiddle?
 
@PeeHaa :P
 
@floGalen $errors and $new_name.
I don't know what do you mean in fiddle
 
meh, I'll just watch Rick and Morty instead
 
@MohammadTbeishat have you checked your console to see if JS was working properly?
 
@floGalen yes everything works fine and I can see the correct result from the console.
But when I tried the answer the render function seems like doesn't work
 
2:25 PM
you made sure to fix up the render function?
 
Yes it works fine.
Give some time to write some of my code in Pastebin please.
Thank you so much for helping me.
 
@JayIsTooCommon also, apparently, you resemble miley cyrus a lot
 
Anonymous
@Saitama you spelt Channing Tatum wrong
 
Anonymous
also, fucking miley cyrus?
 
@JayIsTooCommon He's just a wrecking ball
 
Anonymous
2:29 PM
@Machavity .. you should be ashamed.
 
Maybe tag it is nsfw? dunno. I'll let the people decide
 
Anonymous
1 message moved to Trash can
 
That's an aye
 
sorry :/
 
Anonymous
2:34 PM
We forgive you
 
@floGalen No worries. It's just that some people are actually in offices and it's kinda weird seeing ron jeremy on a screen while supposed to do work
 
True thing, I sit myself in an office
 
@floGalen the 1-4 season probably did not match the current narrative
... they also happen to make the current seasons to look worse
 
@floGalen I hope that will make it clear: pastebin.com/c7LNLw90
 
553
Q: Build a working game of Tetris in Conway's Game of Life

Joe Z.Here is a theoretical question - one that doesn't afford an easy answer in any case, not even the trivial one. In Conway's Game of Life, there exist constructs such as the metapixel which allow the Game of Life to simulate any other Game-of-Life rule system as well. In addition, it is known that...

...
 
2:43 PM
@MohammadTbeishat "my page localhost:6666 when I upload a file it changes to localhost:6666/index.php but doesn't render to localhost:6666 again" <- What? o.O Can you actually confirm that the file is uploaded sucessfully?
 
Yes and index.php changes the file to a specific directory but after that it have to render again to home.php but it didn't !
here index.php works like upload.php sorry for such a bad name :v
 
@Danack that's a lot of time invested in there
 
@floGalen ^^
 
Anyone good with negative look-aheads? regex101.com/r/61ODNa/2 the capturing group can contain periods, but I want to omit any trailing '.abc', which right now is getting matched as part of the capture group. =o(
 
oh wait @MohammadTbeishat please tell me that you want $new_name to work in <?php if (!empty($new_name)) echo $new_name;?> after your upload?
 
2:49 PM
@Danack That's not Code Golf, that's Code PGA Tour
 
I want to give the user a link to download an edited file with $new_name
 
ok, but you actually do an ajax call on your site right?
because there is nothing in your index.php which I can see in your pastbin which would ever bring you "back" to your home.php
 
@floGalen I read that Dropzone.js use AJAX to post data.
 
yeah, and then once it is finished you redirect to your index.php
but thats about it. Nothing in your index.php brings you back to your home.php
 
what about
$response = $this->view->render($response, "home.php",array(
'errors' => array($errors),
'new_name' => $new_name
));

return $response;
!
 
2:53 PM
well of course, but this will not bring localhost:6666/home.php in your address line
and where should this $new_name and $error get assigned?
 
@MohammadTbeishat have you read that page? dropzonejs.com/#usage
 
I'm confused :/
 
@floGalen I assigned the variables through changing the directory which is works fine.
localhost:6666 is the home.php not localhost:6666/home.php

@FélixGagnon-Grenier Yes, all of it.
 
@MohammadTbeishat why do you expect php to bring you back to localhost:6666? return $response; will get you nowhere
 

« first day (2526 days earlier)      last day (2432 days later) »