« first day (2414 days earlier)      last day (2520 days later) » 

@PeeHaa this <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
insted of <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
 
@bwoebi @Trowski amphp.org/amp works \o/
 
121
A: Absolute vs relative URLs

PeeHaaShould I use absolute or relative URLs? If by absolute URLs you mean URLs including scheme (e.g. http / https) and the hostname (e.g. yourdomain.com) don't ever do that (for local resources) because it will be terrible to maintain and debug. Let's say you have used absolute URL everywhere in yo...

 
It's published directly from amphp/amp's ./docs.
Still need to work on the navigation etc.
And it continues to work when viewing it directly on GitHub.
 
Thanks
 
6:13 PM
@Mauro If:
2 hours ago, by Danack
@Mauro that's not guaranteed to work I think. Try renaming the extensions to be 1_mbstring.so and 2_mailparse.so
doesn't work then no, I don't know.
 
Anyone good with migrations here?
 
@PeeHaa so in your opnion I should use // for erternal links? like jquery, fa-icon etc?
 
Unless you want to force ssl. Which makes sense to do
 
@PeeHaa It would work just fine with my server if I use http or https in my server?
 
Connection to external resources can always be upgraded to ssl
 
6:28 PM
because if I change my website to https it works just fine when using //
 
Yes that means the resource is only available through tls
Because protocol relative
Also if your site support ssl make it all and everything ssl
 
Hi
I am trying to use move_uploaded_file function and i have a directory with greek characters.

I am showing this: Warning: move_uploaded_file(C:/xampp/htdocs/43-gym-Athhnvn/files/images/lessons/Α/ihsous-xristos....jpg): failed to open stream: No such file or directory in C:\xampp\htdocs\43-gym-Athhnvn\admin\php\lesson_upload.php on line 22

The subfolder Α is in greek.

Any help would be usefull.
 
Software engineering https://t.co/ODfGTejmGU
 
@PeeHaa otherwise if in some pages be http I should also use // for external resources?
 
6:34 PM
There shouldn't be some pages on http if your site supports ssl
 
but let's say only some pages are under ssl
would be a problem using this or not?
like subdomain or something
@PeeHaa I just would like to know if I can use // on other site with http only, or I would have a problem?
 
10 mins ago, by PeeHaa
Yes that means the resource is only available through tls
 
Hello all, I'm working on a huge PHP code base and would like to get information about what static variables (whether local, global, or static properties in a class) are holding on to memory right before the script shuts down. Was thinking about using Reflection and loop over every class in get_defined_classes()
has anyone ever done anything like this or think it would be possible? And is there anyway to get introspection into areas that are using the static keyword inside method bodies
 
6:59 PM
Functions doc lacking – #74661
 
@Jeeves I kinda agree that is a weird page for built in functions
 
@PeeHaa And how.
@PeeHaa I'm a girl..
 
@Jeeves We know buddy
 
@PeeHaa Then who do you think will win the GOP nomination?
 
@Jeeves have something with girls lately
 
7:00 PM
@FélixGagnon-Grenier GOP is the Republican party; it's politics not sports.
 
@MichaelButler this is something that is really lacking in PHP. I'd love to have some of the tool Java has for dumping what variables are being used. I think maybe get_defined_vars() would be more of an appropriate starting point compared to the defined classes.
 
@Jeeves Fuck the GOP and fuck USA
 
@PeeHaa Okay. I don't care to be honest. I just want you to tell me who you think will win the GOP nomination.
 
@Jeeves I will.
 
@Danack You're not playing.
 
7:01 PM
lol
 
lol burn!
 
lol
 
flips_table
 
something has been teach the bot dumb shit
 
1 min ago, by Jeeves
@FélixGagnon-Grenier GOP is the Republican party; it's politics not sports.
.. oh?
 
7:02 PM
I have a feeling he is learning to be an asshole from all you
 
no witty comment for me?
 
@Danack yeah but get_defined_vars() only gives you local scope information, but I can try it. Also I found a nice looking extension that does this (basically dump all PHP memory information) but I don't think it's PHP 7 compatible: github.com/BitOne/php-meminfo
 
@FélixGagnon-Grenier Not sure what's happening, but I know @DaveRandom broke the message resolverupackerunwrapper2000
 
heh
with a name like that, how could it possibly break? it sounds like it's the best written piece of code out there
 
@FélixGagnon-Grenier I had no problem with that particular statement. It just seemed, that you stumbled upon some old election-related queries in it's memory
 
7:04 PM
> One of the main source of inspiration for this tool is the Java jmap tool with the -histo option
 
yeah, possibly
 
Pretty much my only fond memory of Java.
 
... somewhat relatingly, people from higher up want me to learn android dev now this year
I must say, that after php and javascript, the next most hated stuff is android dev
should be fun
 
@MichaelButler AFAIK. there is no good way to get taht information
 
7:06 PM
I hate apple everything, but goddamn is ios development so much fucking nicer than android
 
@PeeHaa well ... except to you have to pay for it
 
I'm writing asynchronous synchrounous yields in react components in a redux context. anything will be nicer
also, throwing errors in async code is... troublesome
 
@tereško Developing for android is worse than ye ol IE6 drama
 
@FélixGagnon-Grenier you get paid for some strange dickery
 
dat typo
 
7:08 PM
@PeeHaa lolyeah
 
@PeeHaa textbook freudian slip
 
@tereško indeed. but at least, we change framework for each project so, we kinda never get stuck ;)
 
:P
 
0
Q: How can I get PageSpeed and Yslow Score from HAR Output

Alex MathewI have developed a PhantomJS code for getting HAR from a website. It's getting HAR, but I don't know how to get Yslow Score and PageSpeed Score from HAR. How can i do that in PHP/Python or Nodejs? Regards

 
.. they never learn
 
7:17 PM
@AlexMathew you should seriously consider what you've been told in the comments. also, deleting your question will not help your case. Post too much of these, and you will get question banned.
 
^ It's really nice, works on GitHub directly as well as on the website now, without any effort.
 
+1 for that marvelous opening sentence
 
@FélixGagnon-Grenier It's still from Daniel's original Amp guide. :D
 
Maybe put some more effort in it either way :P
 
7:30 PM
@PeeHaa See amphp.kelunik.com/packages.html for that.
Won't update the main repository until we moved all docs to the components and are ready to release the new website. Probably will be done with the v2.0.0 release.
@Wes You need to finish the logo. :P
 
"just"
:)
DO IT
WESLEY
 
@kelunik can you actually give me pointers on what type of project one could use this in?
sorry .. beered
 
Wes
@PeeHaa im so tired
 
@Wes ok?
 
@tereško sorry
 
7:32 PM
7 messages moved to Trash
 
@tereško Will be on the main website then, yes.
@PeeHaa Need @rdlowery for that, because we need a new DNS record.
 
@kelunik you misunderstood my question
 
@kelunik The alphabetic ordering is unfortunate
Cancellation as the second entry in the TOC is a bit of a jump ;)
 
^++
the event loop should be there first after an intro, imo
 
7:48 PM
@NikiC Yes, right. But github.com/amphp/website-shared/blob/master/layout/… was a really easy way to get it working for now.
 
Wes
8:13 PM
something is driving me insane @NikiC is it possible that:
if($this->foo === $this->bar){} first gets bar, then gets foo?
 
hey, what's happening, the code you're pasting with a question is actually sane @Wes. you ok?
 
Wes
not a good moment for your canadian humor
 
as you wish, my dear italian friend
 
Wes
turns out it was just me being stupid
i keep losing hours on the stupidest issues...
 
8:32 PM
Protip: If you ever need to refactor a series of nested classes/functions, do it bottom up: start from the innermost class/function. This way you can compile after refactoring only one class/function.
I am learning this the hard way. I haven't actually run the code since lunchtime.
 
Wes
always start from the smaller units (e.g. value objects / scalar-ish)
but to be honest i've never successfully refactored anything :B i always end up pretty much deleting everything
 
eh happy frydais r11
 
Wes
i tried once to have code that was something in between of an old version and a new version but it was a mess
@FélixGagnon-Grenier sorry, bad day <3 do you still love me?
 
@Wes Of course I do
I'm canadian, remember? I'm almost sorry I got on your nerves
 
I recently made a new version of a class that has a constructor that takes the old version.
The jury is still out on whether it was a good idea.
 
Wes
8:39 PM
@FélixGagnon-Grenier ahaha almost sorry is not very canadian
 
yeah, I'm trying to kill the boy and grow some genitals
 
just read that precise part in the books this morning while commuting :)
gj on catching the reference :)
 
Wes
god i so want to read the books. but i'm so afraid i would spoil myself the tv show
 
if you've watched all the series as of now, you won't be spoiled
I'm in the fifth book, and all have been covered
though there are some epic differences
damn, I hate throwing errors, promises, and async javascript
 
Wes
8:47 PM
i heard there is stuff that is not supposed to be known in the tv show but that is revealed in the books. for instance i happened to accidentally read that tyrion might be the son of whatever targaryen that raped joanna lannister
hence the dragons like him
 
well, I guess that will be what I read in that fifth book... :D
ah, yes that have been hinted a lot already not at all
 
Wes
AHAH sorry for the spoiler
 
no problem. there is something about tywin sons, that is hinted at sometimes in the fourth book
however, it really sounds like it would rather be Jaime, who were from another one. also, who killed their mother, if not tyrion?
(is joanna their mother?)
 
Wes
yes joanna is their mother
 
/me lacks lotsa background apparently
 
Wes
8:55 PM
and can't be jaime nor cersei as they are twins and the rape happened after their birth
and just right before tyrion was born
i don't remember names at all, i just googled it
 
right before one would hope 9 months right before, yes
 
Wes
yes, obviously :B
i can't even spell targaryen. i keep forgetting it. also daaneneereneys
 
danaerys
sgtm, then dodges the rock
 
Wes
dananenenanerneeyes
get proper vowels dammnit @GeorgeRRMartin
 
ahhha
I just hope he finishes before having his last breath
lol who changed the chat description
lol
in JavaScript. Not Java Script or Java Scripting.. JavaScript!, 2 days ago, by Trasiva
@ssube If the earth was flat, cats would have knocked everything off the edge already.
 
9:09 PM
ssube If the earth was flat, cats would have knocked everything off the edge already.
 
9:54 PM
@PeeHaa yeah, this guy sucks
 
:P
 
@sara good luck with mongo, maybe it'll finally be a real db with you :P
have you been hired so that we can remove the ln -sfn /dev/null /var/run/mongodb.sock from our scripts?
 
Anonymous
10:17 PM
Evenin
 
11:10 PM
wooo
CI is green!
 

« first day (2414 days earlier)      last day (2520 days later) »