« first day (2073 days earlier)      last day (2881 days later) » 
00:00 - 17:0017:00 - 00:00

12:40 AM
Um hey!
Anyone there?
 
ehm abit
 
whats everyone doing
 
Is this avatar that thing we use it to point to the photo of account?
 
No, avatar as in avatar icon: en.wikipedia.org/wiki/Avatar_(computing)
 
@Naz786 thank you
 
1:17 AM
How might I get this code snippet to work?
Unirest\Request::post(
					"https://xpw1.no-ip.org:8443/server/console",
					array(
						"X-Access-Token" => <OMITTED>,
						"X-Access-Server" => <OMITTED>
					),
					array(
						"command" => $command
					)
				);
It's the unirest thing that idk how to use
I guess the question is how do I use Unirest in my PHP
 
 
2 hours later…
2:55 AM
Moin
 
morning
@AnmolRaghuvanshiVersion2.0 are u there
 
Yeah, I am here
 
nothing solved :D
 
3:31 AM
Why is PHP so difficult?
 
3:42 AM
What's difficult about PHP?
 
Wes
hodor
 
hoi!
 
4:07 AM
hi
good morning
 
moin
 
'n
 
sigh
any JS experts here?
 
there's a room full of javascript enthusiasts ...
 
4:22 AM
really? Is it active?
 
you are asking a question you can answer for yourself ...
 
It's 12:30; I'm not thinking :p
Now is it on SO or SE?
Nothing that looks right turns up for Javascript on either site.
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
Hello guys is there a free good api for soccer fixtures scores ...... ???
 
@JoeWatkins huh. Thought that was more focused than it was from the title
 
4:30 AM
that's topic
I think ... that's the js room whatever ...
 
I thought ECMA had something to do with JS's development
 
has someone an idea about my question please
 
 
2 hours later…
6:58 AM
....
 
GC optimizations exposing bugs... ugh
I need more rope to hang myself...
 
7:19 AM
Also fun bug source:
And the result of `git bisect` is... https://3v4l.org/8T34v #php :-(
basically had a null passed to a switch ($var) { case where the first condition is case 0: -.-
 
Hi
Somebody ever used wpallimport ( wordpress )
 
hi guys
@bwoebi, are you around?
 
@Ocramius Thanks !
Is there also a chatroom for wordpress dev ?
 
¯_(ツ)_/¯ sorry, dunno
 
7:40 AM
mornin Ocramius,Joe,Saitama
 
Why is russia playing eufa?
 
@user3206631 because it qualified?
 
its not european championshipN
?
 
@AnmolRaghuvanshiVersion2.0 o/
 
i though it was only european
 
7:43 AM
@Saitama o/
 
@user3206631 Europe extends over part of Russia
Same goes for Turkey
 
@Ocramius oh okay
:)
today i have to go eat with my stepmother :'(
 
Dang, I read "today i have to go eat my stepmother"
 
guys
 
that would been a hell of a funeral
 
7:47 AM
well i she's not good to eat
haha
 
nvm
 
i guess…
so who's gonna won the EUFA ?
 
Some sportsy thing.
I think they're called "teams"
one of them for sure
 
lol
i hope it will be france
 
Nobody likes France, can't happen.
wait, I think French people like France. Not sure about it tho...
 
7:53 AM
:P
 
Haha
I'm french
Come one !
on*
We like france! Don't pay attention to what medias says…
@Ocramius Where are you from ?
 
Italy/Germany
 
Ha damn!Our neighboors don't like us :'(
 
Told you, nobody really likes France
also, I don't trust French people, so you surely lied about liking France anyway
j/k ofc
 
haha
What a mess !
 
8:04 AM
woop woop, doctrine2 master fixed \o/
 
Well so i'm gonna tell you what we think about german and italy
 
I know about Germany: "You're the guys with the big cars and the terrible food"
 
haha
 
about Italy, dunno... My opinion of Italy is already below 0
 
For us, German are eating horrible junk food and drink so much beer. Most of them wear sandals with socks on holidays !
So much cliché !
 
8:07 AM
The one with socks+sandals is indeed terrifying
can confirm tho - still very popular
 
seriously ? i though it was only tacky people
i living half of the year in the south of france where there is many german tourist and i have see a lot of them wearing sock and sandals haha
 
8:32 AM
Does anyone know how can i schedule a php script to run daily?
i have a .php file at the root on my ftp server and would like to auto execute daily
 
!!? cronjob
 
Search for "cronjob" (https://www.google.com/search?q=cronjob&lr=lang_en)
• Newbie: Intro to cron - unixgeeks.org - this should do the trick: cmd >> logfile 2>&1 You can then set up a cron job that mails you the co… (http://www.unixgeeks.org/security/newbie/unix/cron-1.html)
• How to Create a Cron Job (Scheduled Task) for You… - In such a case, the software's documentation often asks you to schedule a cron job on your web serv… (http://www.thesitewizard.com/general/set-cron-job.shtml)
• Cpanel – cronjob instellen hulp help uitleg cront… - Now that you're at the Standard Cron Manager, let's
 
I have a websockets server. The server operates with the database (i.e. post comments, vote posts etc). I want to provide a key system. Currently, when a user logins, a unique key is generated and linked to a session id. I though I could use this as the key for the server entry point, by passing it via query part of the URL and get the session ID from the cookies. The thing is I don't know how to make that key safely available to the client (e.g. the WebSocket constructor)
 
will check that :)
@Jeeves thanks
 
@user3206631 You're welcome!
 
8:39 AM
@Jeeves dude, you're a bot, help me
 
!!is Jeeves a bot
 
0 5 * * *
Does it mean every day at 5:00 am ?
( cron stuff )
 
9:03 AM
@PeeHaa hola
 
ugggghhhh mornign
 
Moin!
 
I'm going to need a gallon of coffee
 
Yeah something like that
 
9:06 AM
Just limit it to 3.785 liters
 
:D
 
@Ocramius maybe you know whether we have some dependency version checker in php like JS' david?
 
Yes the latter, but I can also find a use of the first :)
ty
Oh nice. versioneye also does licenses
 
yep
very noice indeed, plus sends notifications and stuff
paid plan is worth it, for companies
they also live around the corner, so I can go bother them sometimes :P
 
9:14 AM
:)
 
Am I a bad person for dropping PHP 5.5 support from all doctrine libs?
 
It's dead in a couple of days anyway :)
 
yep
 
10:03 AM
Current status: dropping PHP 5.5 support from all of @doctrineorm related projects I'm currently working on
 
I can already feel a heat wave incoming...
 
'nin o/
 
10:34 AM
@Victor now, yes.
 
@bwoebi I wanted to ask you if there is any way of getting the session from a request in aerys. But I figured out a different solution that getting the session data
 
@Victor there's an amphp/aerys-session repository
 
@bwoebi but won't that change the entire logic of my app?
I guess it's a different session handler?
 
@Victor well, with Aerys you obviously cannot use $_SESSION as there may be multiple requests running simultaneously
 
@bwoebi yeah, and I won't. I fgured out a different solution. Let me look for an older message here
> The server operates with the database (i.e. post comments, vote posts etc). I want to provide a key system. Currently, when a user logins, a unique key is generated and linked to a session id. I though I could use this as the key for the server entry point, by passing it via query part of the URL and get the session ID from the cookies. The thing is I don't know how to make that key safely available to the client (e.g. the WebSocket constructor)
 
10:37 AM
@Victor so, not sure where it changes the entire logic?
 
That is a viable solution I guess, is it?
 
@bwoebi do you have the karma/knowledge of how to set bugs at bugs.php.net to security and so not viewable?
 
@Victor well, that's quite what happens with aerys-session … and websockets transmit cookies if they reside on the same host/port-pair
 
Wes
so scarlet johansson now does the ad for hueueuheiehi. do you remember when heueheuhiehi used to sell motorola clones with half in chinese half in english UI
 
@Danack yes, but you need karma for that which neither of us have
 
Wes
10:39 AM
heuwhueheuhei
 
@bwoebi means that I don't need aerys session anymore. But I am still not sure whether it is safe to expose to client. I am not sure if it could be a threat or not
 
@Victor not sure what's the problem about an unique random key… which is basically how most session ids on the internet work?
 
yeah, you're right. Ok, I want to ask you something else about generators
Look at this Gist. Is it possible to implement that method as a generator? For usage in a ws endpoint
I think the entire pattern is wrong there.
 
@Victor what exactly is the issue? you'll just have to use e.g. amphp/mysql
 
@bwoebi the issue is that I don't want to use another db abstraction layer
 
10:52 AM
@Victor well, that's a hit you have to take if you want it async. Your current db layer isn't able to work asynchronously and that's a no-go in any Aerys application.
 
oh...
 
@FlorianMargaine You awake?
 
@Victor feel free to write a wrapper around amphp/mysql to be closer to the original API, but using Promises … but yea…
 
I will see what I can do about that
I want to see it working first
 
user1804599
hola
 
10:58 AM
@Victor well, you can turn things into Generator by appending a yield; after the return statement…
 
@rightfold o/
 
if you promise to fix it later from blocking to non-blocking :-P
 
@bwoebi yeah
of course that's what I'm gonna do, but I want to get a first beta release out
 
user1804599
Does there exist an RFC for type hints on properties?
 
yes
 
user1804599
11:01 AM
I'm interested in the opinions and technical challenges on this matter.
 
user1804599
Nice, thanks.
 
user1804599
omg status voting :drool:
 
@rightfold yea… but failing with 21:15 currently
 
user1804599
RIP
 
11:02 AM
needs 2/3 supermajority…
 
@bwoebi, do you have any plans to tag php-uv extension?
I'm packaging php71 for homebrew and would like to add also formula for uv extension
 
@pinepain and it's not possible to just use master?
 
for now i use latest commit version, but for homebrew infrastracture it's better to use tagged version
 
@bwoebi I DON'T UNDERSTAND WHY WOULD ANYONE VOTE "NO" TO THAT
 
11:05 AM
if you have no plans - it's fine, I'm fine referring to commit
 
@PeeHaa What's that?
 
gpg signed commits
 
@PeeHaa goddamnit, it's not amp-based :-P
 
@bwoebi :))
 
@bwoebi Crossed my mind for a moment, but at the moment it's just a wrapper for the git binary
 
11:07 AM
@pinepain nah, I currently don't. It's a permanent construction area still … needs a refactor before I want to really tag it…
 
user1804599
oh I see substr got fixed in PHP 7 😂
 
@PeeHaa booo, no async process acess :-P
 
@bwoebi do you have any plans to change/alter php-uv public API?
 
@rightfold yes, that (seriously) was a BC break in my code ^^
 
huh? What substr fix?
 
11:08 AM
@pinepain eventually yes. not sure yet
 
in case someone on OSx and want to try php71 homebrew ptal github.com/pinepain/homebrew-php
 
user1804599
@PeeHaa Now it returns '' instead of false when you do substr($s, strlen($s)).
 
@PeeHaa substr at strlen($str) on $str
 
it's basically fork of homebrew/php tap, so untap it first
 
oh :0
 
11:11 AM
@pinepain using OS X but not homebrew … that thing was regularly breaking my system (conflicting with other custom changes) :-/ … I've someday just uninstalled it completely…
 
@bwoebi hopefully I don't have too much customization, and it mostly for my devs team to adopt 7.1
maybe others will give it a try =)
 
@pinepain you maybe don't but deps sometimes do :x
 
ah, when I build php snapshot or some extensions then yes, I sometimes have to manually manage wtf is going on
but for vast majority users it should be sufficient to have php71 from homebrew
 
yeh… and things sometimes also conflict with my custom builds etc…
 
do you just build all necessary software manually or use some other packages manager?
 
11:16 AM
the former
 
btw, what's your plan about http parsing as a part of php-uv?
 
@pinepain just ignore that … as said, It needs some cleanup …
 
I gave it a look before and interested in whether php-uv will have non-uv functionality withing or it will be dropped. In case you have some particular plans about it and need some help I can gladly help with that.
 
@pinepain It will probably be dropped … AFAIK it's currently only available via config flag?
 
yeah, it's not what served by default (and thanks to holly bits for that)
i personally prefer to stick to incremental parser written in php
 
user1804599
12:03 PM
I just wrote a parser in PHP!
 
@bwoebi OMGOMG imgur.com/b4ZFFiE
@rightfold I KNOW THE FEELING
 
user1804599
And an evaluator. :)
 
look at the imgur link
I wrote an event delegation manager for a websocket server
not actualy wrote, but started writing
 
hey people. what does it mean what you have a address like this www.example.com/food/55
 
@KerrialBeckettNewham it's a URL
 
12:11 PM
@Victor yes, thank you for that. What I'm asking is what does the 55 indicate? here is the site. prague.eu/en/objects/food
 
you're welcome
probably rewritten
fom something like http://example.com/index.php?query=food&product_id=55
look at this. you'll figure it out nginx.org/en/docs/http/ngx_http_rewrite_module.html
 
user1804599
@KerrialBeckettNewham such numbers are typically IDs of entities, in this case the ID of a food item
 
@Victor that's what i did
What i'm struggling with is the site structure. at the moment, i have a category page and then each sub cat is linked by id for example: page.php?id=1
but this would require like 16 tables. is there a better way?
 
Where are those 16 tables coming from??
 
@PeeHaa coz that's how many category pages i have. and i'm echoing the sub cats into their respective pages.
 
12:19 PM
category table would have 16 rows, you wont have 16 category tables
 
@KerrialBeckettNewham That's not how databases work
@KerrialBeckettNewham None of that involves 16 tables
I'm not even sure how you reached that conclusion
Can you share you database schema?
 
ok, For example lets say i have a category of Football, so i make a page called football.php and create a database with id, football_team_name, player_names. then echo out each row to display all the football teams within football.php Therefore, i figured with would be required for all categories.
 
TIL: there are levels for vegans
 
@KerrialBeckettNewham uhhu
I'm still not counting 16 tables
Do the "categories" hold completey different data?
 
@PeeHaa football.php , baseball.php, tennis.php, ect. . .
@PeeHaa well yes and no. i mean the layout information is the same, but then when one clicks on a individual item, it then shows more information that could be different depending on the category. I'm just wondering is there a better way to do it?
 
12:25 PM
Well yes in that case you will have different tables
@KerrialBeckettNewham Better how?
What's wrong with different tables for different data?
 
@PeeHaa just seems a bit laborious for very little result.
 
laborious?
You know you don't have to manually craft sql packets and send it to the server right? There are sql clients
 
@PeeHaa a lot of work and effort.
@PeeHaa what do you mean?
 
You entire stance is odd
 
@PeeHaa lol, i'm just trying to find the most effective and time efficient way of doing it. what is odd about that?
 
12:31 PM
I want to eat, but I cannot be arsed to make / get / order something
 
@PeeHaa no, thats not what i'm saying.
 
Order a pizza already!
Pizza is life, Pizza is love...
 
Yes if you want to store data in a database you will have to build the schema. Nothing laborious about it. Hell you could have build it while we were talking about it :P
 
@PeeHaa so there isn't a more effective way of doing it?
 
Just build static html files
 
12:33 PM
lol, fair enough
 
@KerrialBeckettNewham You never had to draw a database model?
It sounds like you would benefit from it. It makes you think about what you are doing
 
Hunter x Hunter seems pretty good till now
 
Is that anime crap againb?
Yes it is...
 
12:49 PM
;-P
 
lol @Wes you watching le mans?
 
1:10 PM
Should I store the avatar of each user? Or should I create it every time by PHP and no need to store it?
 
Anonymous
1:25 PM
Are those programming or English questions?
 
1:35 PM
Hah .. Actually that's an algorithm-question, it is nothing to do with English ;-). However my colleague asked it here, So I don't need an answer anymore.
 
crl
Hello, any idea on what to do, when trying to install drupal 8.1 or 7.44, I almost get i.stack.imgur.com/7lUWB.png
 
user1804599
classic 200 error
 
crl
hehe
 
hullo
 
@PeeHaa no, how do you do that? That what I've been struggling to visualize
 
2:29 PM
@KerrialBeckettNewham E.g. using UML. I also think some client GUIs support drawing schemas
 
Fun-fact - I made a diagram of the existing databases at my job, about 3 weeks after I joined two months ago. This has completely blown people's minds. "OMG - we can see what's in the database!!1!".
 
Evenin'
 
@Danack :P
 
@PeeHaa I'm having my 3 month probation review tomorrow. The fact that everyone else on the team 'documents' things verbally, rather than writing them down is going to be quite the talking point.
 
writing documentation is for n00bs; real pro remembers everything
 
2:42 PM
@Danack Are there any standard benchmarks other than bench.php and micro_bench.php? Neither of those seems to deal with type declarations at all.
 
@Trowski Not sure - Dmitry is always quoting a wordpress benchmark, and quoting it often - e.g. on wiki.php.net/phpng
oh it's in there - valgrind --tool=callgrind sapi/cgi/php-cgi -T 100 /var/www/html/bench/wordpress-3.6/index.php > /dev/null
 
So far my answer to your performance question is "little to none"
 
I haven't actually looked at bench.php - I had assumed it was a useful benchmark that covered most features of the language.
 
It seems to have no functions with type declarations.
 
@Danack ERMAGERD!
 
2:48 PM
@Danack I assume this is a standard setup I can download. Do you know where?
 
Wes
@PeeHaa and F1
 
@MadaraUchiha This is the same team where someone checking in stuff that broke the puppet build for the project we were working on, and then leaving it broken, requiring manual touching of files after doing vagrant up, is considered normal.
/self-defenestrates
@Trowski I don't know. I presume it is literally just wordpress version 3.6
 
@Danack I would assume it requires some standard configuration... whatever, wordpress is probably a terrible way to test a new type declaration anyway, so I'm not going to pursue it.
 
@Trowski the issue isn't the new capability. The issue is the increase to the amount of instructions required everywhere.....maybe I'll just ask Dmitry to run the test?
he'll be the one complaining loudest about it anyway....
 
2:53 PM
@Danack Sure, that works.
 
Wes
i don't need viagrant
 
@Danack I'll reply to your email on internals, but only functions with type declarations can be affected by any of the changes made. Other functions skip over the code completely, none of that behavior has been changed.
 
Wes
especially because i don't have a womant
 
In the testing I did, the performance difference is negligible, as I've only added another integer compare to most type checking code.
 
Wes
2:56 PM
@PeeHaa full rage day. watched like sixteen hours of le mans, and ferrari lost
 
Plus it only affects scalars, as class types are before the iterable check in the code.
 
@Trowski even if the code isn't used, the increased size of the instructions in bits like github.com/php/php-src/pull/1941/… has the capability of slowing stuff down.
 
Wes
they were doing way better than the fords, then they applied that stupid rule i don't even understand, to balance performances
 
@Wes there's always next year :P
 
Wes
then i watched 2 hours more of f1, and ferrari lost again
 
3:01 PM
@Danack Sure, but I think the difference will be minimal. I'll ping Dmitry to take a look at the patch.
 
@Wes Could have been worse. /me looks at toyota
 
Wes
yeah
 
@PeeHaa I'm always awake early, but I was busy :) sup?
 
(today was first birthday of the little guy)
 
3:08 PM
Gratz!
 
it felt like organizing that was harder than giving birth to the baby
 
:P
I had a question about gpg, but I think I already solved it
 
@PeeHaa I'm reading up about the Hierarchical Model db, It explains what it does, but not how to build it.
 
hey guys
 
@KerrialBeckettNewham The wiki page has an image what it looks like en.wikipedia.org/wiki/Hierarchical_database_model
 
3:19 PM
is joining strings better and faster or creating new strings
 
@PeeHaa Yeah, I get the concept. I'm searching for an example now.
 
e.g $s = "<p"; //some logic $s . "style:'#fff'>"
or $s = ""; //some logic, $s = "<p style:'#fff'>
 
@Jeremy Use whatever it is that is more readable
 
thanks
 
@PeeHaa what are the practical applications of that type of structure?
 
3:24 PM
Anything that has an hierarchical relation
 
@PeeHaa a navigation menu would be such an example right?
 
yo!
 
It could be if you have say multiple menu's like top / side / footer and every menu has several menu items
@Saitama jo
 
@PeeHaa or if you have many cats and sub-cats and sub-sub-cats.
 
3:44 PM
Depending on whether you know the depth of the categories yes
 
it's not unlimited?
 
If it's unlimited you will have to look into other solutions instead of separate tables. E.g. keeping track of parent ids
 
4:05 PM
Hello, what's the simplest way in Amp to wait an array of generators?
Right now I'm doing `wait(all(λ\map($generators, 'Amp\resolve')));` Is there a shorthand ? :D
 
@MorganTouvereyQuilling no, that's what you have to do.
Do you really need to wait that often on an array of Gens that it warrants a shorthand?
 
Haha, no, that's true :D
btw, I didn't followed the work on async-interop. Will amphp\amp be deprecated in favor of the new APIs? If so, when?
 
@MorganTouvereyQuilling well, we'll do an amp v2… the main change is going to be a few renames (find&replace should do most) … and for the sockets/timers/defers it's replacing Amp*() global loop funcs by Loop::*() funcs
but the helper functions on Promises/Awaitables will largely remain the same
 
Great, thank you
 
4:22 PM
Why is it so hard to implement JWT or OAuth methods, even to the best PHP frameworks out there????? T_T I wanna sit and cry, and forget about PHP once and forever
 
if anyone's considered adding HPKP headers to their site, this should make it easier: github.com/paragonie/hpkp-builder
 
What is hPKP?
 
^ that answers it thoroughly
it pins the HTTPS public key in the browser for months
 
um ok
 
ever heard of diginotar?
they got hacked and issued fake certificates that browsers trusted
this is a defense mechanism against attacks by rogue certificate authorities
 
4:31 PM
So basically, it is a way for your codebase to state whether a cert is legit?
 
it's a way for you to tell the browser "only trust these public keys, even if you get a 'valid' certificate with a different one, for this period of time"
if another certificate authority says "here's your cert for secure.php.net" and the public key doesn't match one of the pinned keys, it's rejected
 
got it
I used to resell certs at an ISP and have never heard of that
 
@Frondor Because of historical reasons, the PHP frameworks makes use of session cookies by default and provide a good support for them. But, I'm not agree with you on the fact that it is "difficult" to implement JWTs on modern frameworks. With Symfony for example, I used LexikJWTAuthenticationBundle, GfreeauGetJWTBundle, and for the refresh token, JWTRefreshTokenBundle. I don't think that one or two "composer require some-jwt-bundle" is that hard.
 
it's a new standard
April 2015
 
ah
I left there last may
 
4:40 PM
heh :)
 
4:54 PM
so its proposed and not accepted?
not sure how rfc standardizations work
 
it's a mess
^ still not widely implemented 6 months later
and by "widely implemented" I mean "OpenSSL, Firefox, and Chrome"
 
What's so difficult about implementing JWT, @MorganTouvereyQuilling @Frondor? Seems easy to me...
 
JWT is an order of magnitude simpler than OAuth2
 
00:00 - 17:0017:00 - 00:00

« first day (2073 days earlier)      last day (2881 days later) »