« first day (2354 days earlier)      last day (2585 days later) » 

12:03 AM
Peemsterdam
Haamsterdam
 
PeesterHaam? Hamster pee?
 
12:20 AM
Hey xHamster pee is in the top of my browser history
oh you Hamster pee, nevermind.
 
Well this is awkward
 
Wes
12:39 AM
lol
 
Wes
looks legit
i mean apart the ram's pins not connected to anything :B
 
on the plus side if you get HP's version it'll bake itself
 
There's 1/4 of the ram connected
 
12:58 AM
Is there any advantage to using rewrite rules to link to a .../1000.css file in HTML instead of a .../css.php?id=1000?
Ah it looks like there is, Internet Explorer will often trust a file extension more than it will trust the MIME type sent out by PHP headers
 
Wes
@Alesana advantage in what specifically? seo?
 
In any aspect, really
 
Wes
rewrite is used mostly for seo and for making urls human readable/editable
 
But I was mainly wondering in how your browser will read it
 
Wes
css isn't usually touched by humans and google etc don't care about that
 
1:07 AM
Right but in my case I'm using it to make a .css file load a PHP file
 
Wes
the url or extension is completely irrelevant. only the content-type header matters
 
Oh okay I will not do link to the rewritten version then in the case that someone who uses my app doesn't have rewrite rules on, but states they do in the settings
 
Wes
@Alesana it is completely transparent to the browser...
what they get is the result, with no mention of what happened under the hood
 
You should specify the content headers to be CSS
 
@Wes yeah, 1000.🐘 and 1000.🦑 are entirely interchangeable
 
1:11 AM
It makes sense, I guess I shouldn't worry about what someone will think if they at the source code
@JennaSloan Thanks I had just set it ^^
tries to use 🐘 as an extension
 
holy crap, it italicized
 
Yeah I did not expect that
 
Wes
The thing I hate most: when I extract a zip and I get the root folder twice. /archive_name/archive_name/file.jpg
 
does it bold 🐘?
I can't tell if that bolded.. hmmm.. 🐘 🐘 🐘 🐘
 
Wes
@PaulCrovella soon you'll be able to make it skinnier too. not joking
variable width fonts are in the works
i think chrome might even have partial support by now
 
1:15 AM
unicode could make your logo design a lot easier if they made the squid a combining character
 
Wes
STAHP
 
@Wes HAMMERTIME!
 
Wes
i didn't expect it. despite i made the plugin. best plugin ever. very very tremendous
 
except you should've made the change @DaveRandom requested, though I completely understand the reason you didn't
 
Wes
don't tell me what to do
 
1:21 AM
should replace the moon buggy back there too
 
Wes
true
 
hi anyone here using Memcache with symfony2 ?
 
Wes
why do we call variables global, global namespace, etc. variables are not global, namespaces are all global?
 
1:37 AM
huh?
 
Wes
well, $_POST, $_GET, etc are globals, but they needed the name superglobals, as global wasn't global enough :D
 
they're not the only globals possible
 
Wes
classes are global as they can be instantiated from any context, so are functions
 
and so are some variables 3v4l.org/CjKlH
 
Wes
kind of, they are just in the root namespace, and can be referenced that way
 
1:51 AM
there's no "kind of" about it, they can be referenced globally
 
Wes
yes, but explicitly... anyway, pointless discussion
 
 
1 hour later…
Tao
3:12 AM
Hi
I am facing a very simple issue in php
if statement works but else does not. I looked online and tried couple of solutions but it doesn't work
Can someone suggest what other things should I check
 
I don't understand what you are asking
 
Tao
I have checked below things: 1. Syntax is correct 2. variable names are correct 3. If is working fine 4. tried to just echo "Hello"; in else but that also doesn't work
 
!!scorpio
 
> ♏ Scorpio | Oct. 23 to Nov. 21
Everyone wants to live forever, but in your case it would just mean more time being chased by an angry swarm of bees.
http://www.theonion.com/features/horoscope
 
c'est la vie
 
Tao
3:15 AM
if(!empty($row['cname'])) { //works

echo "Hello, It works";
}

else {

echo "Please work";

}
else is not working. Any suggestions?
 
Wes
you can't have them both printed, if it's what you are asking
also don't use empty(). use if($row['cname'] !== ""){
 
Tao
Yea...i know that. I guess I didnt word it properly
what about isset() ?
is using that a good idea?
 
Wes
empty is your problem, it is very ambiguous. even skilled programmers have problem with that
i never use isset, only !== NULL
if i want to check if an array key exists, i use array_key_exists()
 
Tao
I changed my if to if($row['cname'] !== ""){
and if statement executes. but the else condition does not
when cname is empty, else is not executing
 
Wes
do var_dump($row['cname']); before the if. what's the output?
 
Tao
3:26 AM
string(6) "Ivy Yu"
 
Wes
so clearly it's not empty
 
Tao
yea because i enter nothing and leave cname blank, my page goes blank. All the form dissapears
maybe its the mysqli_error($db);
yup it works now. removed this -> mysqli_error($db);
Thanks a lot wes for your help
 
Wes
yw, but you solved it yourself :B
 
4:31 AM
!!leo
 
> ♌ Leo | July 23 to Aug. 22
Despite the offer of a brand new car, an all-expense-paid trip to Greece, and a four-piece living room set, you’ll once again go for the box with the question mark on it.
http://www.theonion.com/features/horoscope
 
morning
 
\o
 
4:46 AM
i need a function __toInt – #74316
 
@Jeeves hohoh
 
@Linus No, I'm a genius.
 
5:12 AM
posted on March 27, 2017

New Cyanide and Happiness Comic

 
@Jeeves gosh. Am I just not understanding or is this guy type hinting for integer and wondering why a string does not pass the type hint?
 
@FélixGagnon-Grenier Then what are you trying to say.
@FélixGagnon-Grenier I loved you, but now I hate you!
 
@FélixGagnon-Grenier he just wants an int equivalent of __tostring, and I'm guessing couldn't figure out how to express it well in english so tried with code
 
@PaulCrovella like, some kind of overloadable magic method that gives int or string according to the type asked. shiny
 
5:23 AM
@Jeeves poke
 
Wes
@FélixGagnon-Grenier shitty is the word
 
@JennaSloan Yes!!
 
@FélixGagnon-Grenier presumably a magic method that gives an int when the object is cast to an int, as the string thing is already covered
 
Wes
@JoeWatkins you are probably missing uopz_set_property($class, $instance, "field", "val"); for setting private properties of parent classes, e.g:
class A{ private $foo; }
class B extends A{ private $foo; }
$b = new B;
uopz_set_property(A::CLASS, $b, "foo", "val");
not that i need it.... for now
also, what's the difference with doing that through reflection?
 
6:00 AM
@Wes hmm, it looks like the result of a foursome between a whale, a manatee, a squid and an elephpant
but I like it
 
Wes
:(
 
Wes
i hate you @PaulCrovella
 
why? I like your squalephantee
 
@Wes you designed that?
 
6:08 AM
:P
 
Wes
yes if you think it's an elephant, no if you think it's a squid :B
 
he's work on it for years, it's his magnum opus
 
And if I think it's a squelaphid?
I think it looks nice!
 
i think he put us all on ignore
 
But I am confused on the one with the 7 trunks
Haha @PaulCrovella probably
I have been trying to decide if I should put an updater in my app before I release it so I can let people auto-update it, or if I should just have them download and verify the updates themselves
 
Wes
6:16 AM
i'm just dehydrating myself through intensive crying
 
alcohol can help with that too
 
@Wes Surely there is some water near by if you're dehydrated? Squids are always found near water
 
Wes
and the fact that @kelunik has been silent about it means that he didn't like it
fuck you guys :B
 
@Wes Just busy. Have exams today and tomorrow.
Have some time now before it.
 
Wes
okay @kelunik giving me anxiety
 
6:18 AM
Haha I actually liked it a lot I am just dicking around
 
Currently looking at all the pings. ^^
 
Wes
just scroll up in the amp room
 
Do you have a SVG yet?
 
Wes
nop
 
o/
 
6:31 AM
Hi guys,
I am getting ECONNRESET on my server when sending POST request to my server (Apache) from a nodejs server and this is only detail i have about this error. My server access logs are saying 200(response code) on that particular request but on the nodejs server receiving this error.
 
Can Ratchet be used for live notifications in web applicatons like the social media website notifications
 
Hi are there any way to change the format of datetime-local output to m/d/yy
?
 
Wes
@EarvinNillCastillo check the lang="" attribute. set it to en-us. that might work
 
@EarvinNillCastillo is this what ure asking? w3schools.com/php/func_date_date_format.asp
 
@Wes wil check on these thank you
@JapanGuy, is it possible to change the format after I used GET?
cus the datetime data in my db si m/dd/yy : 00:00am
 
6:38 AM
oh
 
@Sayuj3 Sure, like any WebSocket server.
 
i used .net in my main program what ive been doing is a report using php.
now the format in .net and php of datetime is different
 
@EarvinNillCastillo you should look at the strtotime() function
 
@kelunik i mean this one socketo.me .
 
@JapanGuy alright thanks!
 
6:39 AM
@Sayuj3 There's only one Ratchet I know of and that's the one.
 
Thanks @JapanGuy, already working using the strtotime
 
のをrr
soz, no worries!
 
@kelunik i am using windows now. Is composer the only way to install Ratchet in xampp?
 
Any WebSocket solution will run as its own server and not within Apache.
And yes, I guess so.
 
6:55 AM
@Kelunik can i use Ratchet in godaddy's dedicated server ?
 
7:11 AM
Anything where you can run long-running processes + have access to ports will do.
 
HAPPY BIRFDDAYYYYY @PeeHaa <3 <3 <3
 
@PeeHaa are you drunk yet, the sun rose hours ago ?
 
yesterday, by Linus
Happy birthday @PeeHaa
you are late. that was yesterday
 
dammit
@PeeHaa I hope your birthday was crap
Also, belated happy birthday <3
 
@Gordon woops
still, probably drunk ...
 
7:24 AM
mooorning
 
Anonymous
7:42 AM
morn
 
Anonymous
50 at last @PeeHaa
6
 
7:54 AM
morning o/
BeLated !! Happy bdaee @PeeHaa
 
Wes
@JayIsTooCommon btw, when you turn teenager? :B
mornings all
 
Anonymous
@Wes soon :P
 
Wes
8:08 AM
Apps that let extremists plot in secrecy: WordPress ahhahhahaahahhahahahahahahaha (pic via @jimwaterson) https://t.co/Clm62LvuhL
 
sounds legit
 
sounds like an ignorant person got trolled
 
Morning 11
 
mornin Sean,tereško
 
\o.0.2
 
Anonymous
8:20 AM
> To reduce visual noise, assume TK is your TRIGGER_KEY
 
Anonymous
fuck off.
 
Anonymous
hoi sean, joseph
 
moins!
 
Anonymous
o/
 
8:39 AM
moin
 
o/
 
@MadaraUchiha what's that comment supposed to mean exactly? We're allowed to bash whatever we want here, especially if we're moderators or did I get it wrong? — Mjh 3 mins ago
Someone is triggered that I called PHP slow, apparently.
 
Someone flag @MadaraUchiha's comment as rude pls
 
@Gordon He did!
 
and rightfully! just because you are a modrater doesnt mean you are allowed to insult php!!1
please write a mod message to yourself: I shall not insult PHP just because I'm a modratoer
 
8:47 AM
meany
 
@MadaraUchiha slow compared to what? Javascript? I dont think so
 
Anonymous
@DaveRandom morghge
 
I already have a mortgage
THAT'S RIGHT BITCHES, I KNOW HOW TO ADULT
 
@tereško Oh, most definitely.
V8 is freaking fast.
 
ThW
Morning
 
Anonymous
8:51 AM
@DaveRandom loser
 
@DaveRandom I will be getting one around autumn
 
Anonymous
's*
 
Also, the event loop model is faster for most daily usecases than the Apache Worker model which PHP has by default.
 
stahp
 
@JayIsTooCommon not everyone is born with silver spoon up his ass
 
8:53 AM
@JoeWatkins HAMMERTIME!
 
you won't find me talking about the details of modern javascript implementations, because I don't know about them ...
let that inspire you not to talk about things you do not know about ...
 
Anonymous
@tereško *gold.
 
@DejanMarjanovic how very dare you.
 
@DaveRandom apologise to PeeHaa for not having made a working amphp/dns release
 
I was going to do so much this weekend ...
 
Wes
9:03 AM
if i'm correct zend_do_inheritance isn't as strict as the equivalent in php. you can extend at random, pretty much... :B right?
 
then it turned out to be my wifes birthday on saturday and mothers day on sunday ... so I got precisely nothing done
 
Anonymous
@JoeWatkins how selfish of them
 
@Wes kinda, when the user uses extends a class, the compiler outputs opcodes that do inheritance, and then opcodes that verify the class ... if you just execute zend_do_inheritance internally, you can do some magical things ... but you probably shouldn't ...
these few lines are the only things that will raise errors from zdi
 
Wes
thanks.... i was very confused by that
now i'm just as much confused, but for different reasons :B
 
9:10 AM
do more questions
 
@Jeeves @PeeHaa sorry
 
@DaveRandom That's ok. I forgive you.
 
lol ^
 
@JoeWatkins +1
 
Wes
will do. i'm not actually doing anything... reading mostly for the purpose of learning uopz @JoeWatkins i've decided that i want to use it :B because #idowhatiwant
 
9:12 AM
I took such a bashing on Saturday morning ... not being able to remember anything causes real problems sometimes ...
 
o/
 
Wes
@JoeWatkins ahahaha i wanted to ask
 
lol
 
@JoeWatkins I have started using Google calendar for stuff like that, it's really useful when your life is Google-driven (android, gmail) because it follows you round and aggressively doesn't let you forget
ofc you have to actually use it for that to work
 
9:14 AM
Tnx everybody but @DaveRandom
I hate chris
 
Di da docker up!
 
that conversation, where I have to ask the birthdays of my children, the day we got married, the birthdays of my mother, and every other important date which doesn't spring to mind right now ... that conversation may well result in my being stabbed in the face for being the worst husband ever ... so I'll avoid it ...
 
@DaveRandom That vouches a fair round of fisticuffs I say
 
@DejanMarjanovic Have at you!
 
actually she's usually cool about stuff like that, tells me when it's the kids birthday before we get out of bed, but it was her 30th, and apparently she reminded me a few times last week, so she lost it a bit ...
 
9:16 AM
@JoeWatkins she should have known what she signed up for :p
 
I agree, but I didn't say that ... I just repeated sorry over and over ... then when she fell asleep in the afternoon, went out and spent a bunch of money on books that she likes ... we were friends by bed time ...
 
Anonymous
gross
 
you're gross
also
2 days ago, by Joe Watkins
not to mention stupid ... you have a stupid face ...
 
And it smells, too.
 
agree
 
Anonymous
9:20 AM
rude. All of you, rude.
 
Anonymous
and stop sniffing my face.
 
Give her 10 bililon dinars :-)
 
How much is that worth?
inb4 10bn dinars
 
9:21 AM
Bubble gum I guess :-)
 
@DaveRandom a dollar, a dime and an hour of your time
 
@DaveRandom lol
 
£69.7m
 
$8,505,900
 
9:23 AM
Has Tesla = totally worth it
 
I love how that batshit crazy currency includes pictures of batshit crazy people
 
Anonymous
with great jaw lines
 
> Laravel does an excellent job. They do just about everything right in terms of design patterns.
lol
 
@DaveRandom there's a Tesla museum in belgrade, they talk about him for more than an hour without mentioning a single time that he was a little bit crazy toward the end ...
 
Oh yeh, and also actually genius, just the kind of genius you find in looney tunes or something
 
9:24 AM
@Jimbo lol
 
@JoeWatkins To be fair, most would go a little bit crazy toward the end if they had lived his life.
 
@JoeWatkins Einstein spent the last 20 years of his life trying to argue that he was wrong... I think it's something that goes with the territory
 
Everyone that tweets me some comment about Debian is getting blocked.
here is your chance ^
 
@Gordon wat?
 
9:28 AM
@Gordon why?
what has caused the meltdown?
 
IDK and IDC…just offering you a chance to get blocked… take it or leave it.
 
@Jimbo what is the source of that sample of condensed stupid?
 
Wes
am i the only that thinks that that photo looks like a serial killer mugshot
:B
it seriously creeps me out
 
Hi all, just a quick question.
Does setTimezone method for DateTime consider the daylight time change?
 
Wes
9:36 AM
@Gordon that is pretty much the spammiest site i've ever seen
 
@Ehsan yes
@Wes you are welcome
 
Wes
also, i have this superpower. i can tell immediately if a site is created using wordpress, angular, bootstrap
 
@tereško Reddit, of course: reddit.com/r/PHP/comments/61py52/…
 
Wes
guess how it works :B "does it suck?" -> "it's made with wordpress" :B
 
Thanks @Gordon
 
9:41 AM
"a real man"… wtf?
 
Anonymous
1 message moved to Trash can
 
I want to create the whole HTML by PHP and return it as the ajax request response. (not returning an array and creating the HTML by JS). What's wrong with it?
 
10:01 AM
given that fpm rewrites it's process title, how would I detect any arguments fpm is launched with? like for instance -p for the prefix dir? I can look at the parent process obviously and assume it's a launcher but when it's a service it doesnt have a parent process to look at. at least I dont see one in ps faux. ideas?
 
Wes
@JoeWatkins in uopz, what's the correct way to set_mock and keeping the original class hierarchy, so that the mock passes the type declarations?
brb, will read later the answer. thanks in advance :B
 
@Gordon attach debugger, go to last frame, read argv. </overkillsolutions>
 
hmmmeh, is there no linux way of getting the invoker somehow?
 
Does anyone know off-hand whether the stat() cache is global for an fpm child process? #lazyweb
 
10:18 AM
@DaveRandom my newbie reading of lxr.room11.org/xref/php-src%40master/ext/standard/filestat.c#88 would impy it's created anew on every request
 
@Gordon I've never tried it, but fpm sets sapi_module.executable_location to argv[0] in main(), you may be able to read the rest of argv from there in an extension
 
@Gordon ahh yeh, looks like it, ty
 
scratch that, of course you can't
 
I guess I'll just check the parent process for now
thanks
 
probably going to be the only way, I think ...
 
Anonymous
10:26 AM
!!wotd
 
mumpsimus: adherence to or persistence in an erroneous use of language, memorization, practice, belief, etc., out of habit or obstinacy.
 
@bwoebi can you please review github.com/php/php-src/pull/2427?
 
is there any original Zend code left btw? With all the refactoring Niki is doing we might just as well rename it to NikiCend Engine
 
10:41 AM
!!dave
 
@DaveRandom should work on DNS lib.
 
Anonymous
mornin ekin
 
Fix it already
!!poop
 
!!peehaa
 
10:46 AM
💩
 
!!dave
 
@DaveRandom should work on DNS lib.
 
Wait, does !!dave only work directly after !!poop? That would be hilarious...
!!dave
!!poop
 
💩
 
!!dave
 
10:46 AM
@DaveRandom should work on DNS lib.
 
:D
 
Hahahaha
Nope
You cannot post the same message twice in a row
Chat prevents that
 
agree
 
Hahaha
 
10:51 AM
If this is what I get, I don't want to know how the Laravel issue tracker looks like
3
 
much better obviously, because they know how to use design patterns and stuff properly
 
!!peehee come live my life for a bit so I have time to do that
 
@PeeHaa should come live your life for a bit so you have time to do that.
 
damn straight
 
@MadaraUchiha - here's something potentially "funny" - today, I had a nice chat with a junior developer who mentioned this very post as an argument for his decision that PHP autoloading, and PHP itself, is slow therefore he won't learn it. That's the extent of influence of moderators and high reputation members. Now, we could debate to infinity and beyond about PHP, performance etc. but in the end whatever language we use, we deliver finished products. My comment is here to highlight, even though "jokingly", you had pretty sever bad effect on someone. Food for thought, nothing else. — Mjh 11 mins ago
 
10:56 AM
@MadaraUchiha finally someone with the courage to call you out!!
 
@DaveRandom bitch please. You have an easy life
 
@Gordon :D
 
sounds made up
 
@JoeWatkins Yeah, but someone is definitely passionate about it.
 
I've never been so passionate about something that I start to lie about it ...
maybe I'm not a very passionate person ...
 
10:58 AM
@JoeWatkins ... Liar.
That's a paradox though :P
 

« first day (2354 days earlier)      last day (2585 days later) »