« first day (2435 days earlier)      last day (2737 days later) » 

10:00
@someone why are you sending a 10,000 records in a http request?
o/
@Danack What are other possibilities?
They might have a valid use case, but their use case might also be terrible hence I was asking why. As for alternatives - database replication, splitting the records into batches, compressing the data and sending it zipped rather than raw json. I'd even consider mounting a shared file system.
Having plain http requests that push 10 megabytes of data to a remote server seems a generally bad idea.
@FlorianMargaine how about configurable, otherwise it wont work when running in docker and the polling is outside
Im going to check mine
just made a API call which returns 'a lot' of json data
oh wait - I misread it as pushing.....returning large amounts of data is usually fine.
10:13
here 208kb json data that's imo nothing
;p
user1804599
208 kilobits is not a lot.
user1804599
That's just 26 kB.
Fine then! :D
I was wondering if there should be a way to see how many times my api is called without using keys etc etc.
So www.blah.com/api/v1/locations/
user1804599
Use a monitoring and analytics solution.
@Gordon ssh tunnel?
user1804599
10:24
@Wes dat elephpant
@FlorianMargaine nope. too much effort :)
openssh 7 lets you have tunnels to unix sockets, it's real nice
because you can apply user permissions on them
must work from java without user interaction
@Gordon System.exec("openssh")
:P
not simple enough
Wes
Wes
10:26
@rightfold i.imgur.com/DIVigYU.png like?
user1804599
Huh, they're deprecating HHVM
12
user1804599
@Wes 😻😻😻
user1804599
I should check out AMP and write a wrapper that's a proper monad.
@Wes I get a 404?
Wes
Wes
works for me
10:34
@rightfold you mean discontinuing?
@bwoebi Does amphp.org/… and next section seem fine to you?
@rightfold Yes, you definitely should check it out. :)
@kelunik I'm not sure whether the section about why preferring Amp is complete yet, but I'm not sure what is missing … feels a little to short, dunno.
@bwoebi Yes, probably needs at least another sentence.
How can I convert 2017-06-14T19:36:03.000Z into 2017-06-14
user924016
@AbrarAhmed what have you tried?
10:42
@bwoebi Better now?
date('Y-m-d','2017-06-14T19:36:03.000Z')
@RonniSkansing
@kelunik yup
user924016
AbrarAhmed close
user924016
strtotime your second arg
user924016
php > echo date('Y-m-d', strtotime('2017-06-14T19:36:03.000Z'));
2017-06-14
10:44
@bwoebi Should we move the parallel driver out of amphp/file? I don't feel confident tagging that as v1.0 with it.
@RonniSkansing
Thank you very much! ♡
@kelunik why?
user924016
@AbrarAhmed np, happy hacking
@bwoebi Because amphp/parallel is only 0.1.
@kelunik But the parallel driver is only being used if it's also pulled as dep
10:48
@bwoebi Yes, that's one of the reasons I want it out there.
As long as you don't require it on your app (i.e. anyway relying on it), it won't be used.
So, that's fine.
@kelunik why?
Because things will horribly break if we release parallel 0.2 with a different API
Because amphp/file doesn't have any constraint.
@kelunik that's what you have conflicts constraints for
@bwoebi That's why you make different packages.
nah
just add a conflict constraint
10:49
Will do the same for cache and move the redis driver to its own repo
no, please not
It doesn't help anything to splinter these into individual packages
There's NO reason for the current behavior.
Either enable it by default or don't have it in that package.
It is enabled by default if available (and nothing better like uv/eio available)
I don't want another package using parallel to have a side-effect in file.
@bwoebi If it's stable, then lets add parallel to the requirements.
@kelunik there's no point in requiring it, if uv is available on the target
user1804599
10:52
Can a promise resolve to another promise without resolving that one implicitly?
@bwoebi Then just don't use it then. But otherwise it's missing if uv is not available and not explicitly required.
@rightfold no.
user1804599
Ugh.
@rightfold No, by design not.
user1804599
Ok then I won't use it.
10:53
Why?
@rightfold And you shouldn't want to do that.
user1804599
Because it makes it impossible to write code that works the same on all types.
user1804599
I don't want my generic abstraction to behave differently for promises just because I happen to already use promises inside it (without exposing it).
@rightfold That makes no sense in this context.
Then you probably don't want users to push promises into your generic abstraction anyway @rightfold
user1804599
No, but I could if it did not special-case anything.
10:56
@rightfold Having the mere possibility doesn't change anything about it being a very bad idea …
user1804599
Using an abstraction as an implementation detail of another abstraction is not necessarily a bad idea.
user1804599
Due to special casing, it won't be an implementation detail anymore, because it'll leak out.
@rightfold And it should. [leak out]
user1804599
No, abstractions shouldn't be leaky.
user1804599
No parametricity, no use.
10:59
@rightfold Abstractions are inherently leaky ...
user1804599
I'm not going into that rabbit hole.
fine, but it's an inherent premise: if you return Promises, you can't pass promises...
user1804599
Yeah, so I won't use it :)
Then you're avoiding it for the wrong reasons…
user1804599
No, I'm not.
user1804599
11:03
This is exactly the reason I want to avoid it. It's the same reason I avoid A+.
@rightfold It's the same reason as in A+ why you can't do that, because it doesn't make sense.
user1804599
It makes total sense.
user1804599
A promise is a value like any other, such as an integer or an array.
user1804599
There is no reason why flattening shouldn't be explicit.
@rightfold Bastard, I always fall for these
11:05
No, Promise only exists, because we don't have anything better for that. In a perfect world it would just work under the hood.
@rightfold Reduced complexity for the consumer is a valid reason.
@rightfold The inherent premise of accessing a Promise value is to get a resolved value.
A promise is the result of a function call, not a returned value, it just happens to be an object.
user1804599
So one should restrict oneself to using promises as a special kind of variables?
Yes, a promise is a placeholder and shouldn't be used for anything else.
@rightfold yes. Promises are placeholders, not real values, for every purpose
user1804599
11:10
Where the syntax to read the variable is not ... $x ... but ... $x->onResolve(...)
@rightfold The syntax is yield $x.
@rightfold yield $x in coroutines
user1804599
There should be a linter that enforces this restriction.
@rightfold I'm happy if you write one. :)
user1804599
Because then I could use it, because the linter would make it so that they aren't used as values, and so the problem will not arise.
11:16
@kelunik to come back to this: why is it a problem? You always can set an explicit default. Whatever is actually used should not be your concern (except if you're fine-tuning perf, in which case it should be explicit).
@bwoebi If it shouldn't be my concern, then we should require amphp/parallel.
@kelunik We don't want to force the user to use parallel, unless he's anyway requiring it somewhere (it not being that stable yet etc.)
@bwoebi If it's not stable, then move it out, then it has no reason to exist in a 1.0 of file.
@kelunik The code using amp/parallel is stable
Then require amphp/parallel.
11:19
just amp/parallel itself isn't … but that doesn't matter to us. We just won't require it thus.
Why not?
As amphp/parallel isn't leaked, we can just update the dependency later without a new major.
Mhm … perhaps it's better to require it then…
not sure.
But definitely not move it out
user924016
so I used this for a couple of years github.com/twolfson/sexy-bash-prompt to pimp up my bash prompt.. It's beginning to fill a bit bloated, do any of you use anything you can recommend?
@bwoebi PHP Warning: uv_fs_stat(): passed UVLoop handle is already closed in /home/kelunik/GitHub/amphp/file/lib/UvDriver.php on line 128
@kelunik ... UVLoop?!
11:33
@bwoebi Dunno, just executed the tests.
looking
What should happen after close()? Currently read() throws an exception there.
how to check for undefined
i have id = '';
how to check it?
empty or isset
11:54
morning
my last day of torture
__PHP_Incomplete_Class Object
(
[__PHP_Incomplete_Class_Name] => Facebook\Authentication\AccessToken
[value:protected] => EAALChyniRbYBAALEOhM7sZBjQKkZBi28uJtHhfTNUxVCxaCMLgvYpDMDbZBs84qiJIMxJem6g99ocDHyHiQ2KW5f2dpHZCzxTvyDkRc8oXY1RuQbmBZCX9P6R7bUhSvFjUqTiJQiQDn1wwGAp9rmIp6UREZCiUypoYV204dAcvRAZDZD
[expiresAt:protected] => DateTime Object
(
[date] => 2017-08-15 12:25:34.000000
[timezone_type] => 3
[timezone] => MET
)

)
I mean teaching
@Tiffany No worries. We will continue making your life miserable during the weekend
this is print_r of variable how to get its value?
@PeeHaa I wouldn't expect any less <3
11:56
@MuneemHabib Stop serializing objects
i am not serialising it
i am just storing it in sessions
$_SESSION["access_token"] = $access_token;
Yes
Don't do that
user1804599
Session data is stored on the file system.
Anonymous
It's stored serialized in the session
user1804599
11:58
It will be serialized.
Which is bad mkay
I also had a freakout yesterday. One of the classes I'm teaching is basically "lets play Minecraft." I gave them a contest for the last two days, build something cool and it'll be judged. There are three categories. Well, TL;DR, they logged off the computers when they were done, and the computers are "frozen" (reset to default state) I thought I lost all of their work. I was cursing up a storm. Coworker reminded me it only happens on restart, so I think I got back ups of all their stuff.
Anonymous
!!wotd
then how to dit
expostulate: to reason earnestly with someone against something that person intends to do or has done; remonstrate.
11:59
Today I'll know o_o
otherwise I'll feel like shit
how to call this getvalue method?
user1804599
Write manual serialization and deserialization code so you can anticipate what happens.
Store the value of the token
to get access token
And not the object wrapping it
user1804599
12:00
lol this guy
where to store?
i am storing it in sessions
@rightfold a lot of guys that come in here :X "why doesn't this work?" "you're doing it wrong"
Anonymous
@MuneemHabib breatheeeee
Also @Wes's logo design is badass
12:01
i am breathing
@MuneemHabib it's an expression
@Tiffany It's perfectly aligned: i.imgur.com/rd7mAMr.png
like "chill out"
hehe
can you guide me if yu have done anything like that? I just want to store access token
Anonymous
If you don't know how to call methods, read up on objects php.net/manual/en/language.types.object.php
Anonymous
12:04
start there, before trying to do anything with access tokens.
Wes
Wes
@kelunik i think rhino export is better than illustrator's boolean operations :B
maybe it's just luck because i tried to follow a grid somehow
my GoF book was delivered yesterday? but there was nothing on my porch. wat.
it just looks cool. I remember the back and forth when you were trying to finalize a design
and it turned out really well
Wes
Wes
thanks :B it just took 9 years
hahaha, like half your life
$_SESSION["access_token"] = $access_token;
echo "<br> Session Check".$_SESSION["access_token"];
i am getting its value
Anonymous
12:11
man that's cool. Outlook web detects the word 'attachment' in your email and reminds you to attach something if you try to send..
but when i refresh page then i am not getting value
i am getting same result
@Tiffany three fourths
@JayIsTooCommon Welcome to the future
The did steal it from gmail though afaik
Anonymous
Well it just saved my ass
@JayIsTooCommon every mail client does that nowadays
thunderbird does that for at least five years…
Anonymous
12:17
well for once, I'm the old guy.
Hello to php chat room
Anonymous
@Jeeves you should have a vamp alarm.
@JayIsTooCommon What kind of sandwich would you suggest?
@Jeeves @DaveRandom loves steak and cheese
@Jimbo I love you too :-)
12:20
awwww
@Jeeves the sudo make me kind
@Gordon I think I will have some tomato soup and a grilled cheese and ham sandwich. Except vegan.
@Jeeves What do you think about vegans?
@Jimbo @‌jeeves I don't think I like vegans?
^ Is this a bug?
12:21
!!issue Jeeves should strip self pings.
@Jeeves Dupe @kelunik
:37660855
uhhhmmm
/me backs away slowly
@Jeeves you make no sense! Stop talking nonsense.
12:22
@Oldskool What is the meaning of life?
Hmm, good question.
@Jeeves 42
@PeeHaa Isn't that from hitchhiker's guide to the galaxy?
haha
nice touch
user1804599
12:24
@Jeeves give crisps
@rightfold What have you read?
@Jeeves the perl manual
@Gordon Words, words, words. Such a shameful waste of oxygen and sound.
Anonymous
@PeeHaa o.O
Anonymous
@Jeeves test
12:27
@JayIsTooCommon And hydrogen dioxide is a neurotoxin in high doses.
user1804599
lol HO2
Anonymous
his mistakes make him more human.
user1804599
HO2 is super reactive.
user1804599
Of course it's toxic.
12:33
@kelunik Can't look right now, but when I get a sec I'll let you know
@Jimbo so do you have instructions? :3
Shit, so much on :D Not yet @Tiffany but I will. I can only recommend a basic repo with two messed up commits for you to play around with in the mean time :)
> Disclaimer: We are not liable for any adverse health effects caused by the attempt to compile PHP on Windows.
adverse health effect on me or my PC?
@Jimbo are you talking about my commits?
@IROEGBU both
12:34
Hahaha
coming from someone who runs PHP on IIS, both
@Tiffany It was a pain when I tried it... Dave helped me (maybe, 4 years ago) to connect to MSSQL
I wish there was a book that went into more detail of the stuff in @Patrick's tutorial, like maybe started at a little more beginner level and went into the meat of the stuff that he goes into
@Tiffany I'm recommending you make a new repo, make a bunch of deliberate messed up commits and push them, then look online and try and squash following the (admittedly terrible) instructions you find online, and if you mess up no problem :)
Yeah, I did tell @Patrick to start with autoloading before explaining why they use composer
@IROEGBU oh dear god. Yeah, we've been on WIMP for five or six years now. Back then, I didn't have a say in the matter of what environment we would be running on, cause I would have picked LAMP in a heartbeat.
@Jimbo his tutorial isn't for beginners :) which I respect.
I just wish there was a bridge from the other books I'm reading to his tutorial
Anonymous
12:38
Doesn't GH allow you to squash via GUI now or is this for something else?
@JayIsTooCommon @Jimbo wants me to "learn"
the painful, horrible way
Anonymous
tis the best way to learn I guess
@Jimbo I did read the PSR-4 and I'm loooking at the autoloader example, so that's a start.
@Tiffany Genuinely - if you get stockholme syndrome for learning this way, your career will flourish
I could become a real PHP developer? *-*
12:41
@Tiffany You mean "the hard way"
@IROEGBU holy fuck they have something on PL/SQL
welp, time to get ready for class. have fun people.
13:14
@IROEGBU It's … well … doable if you have strong mental health.
Anonymous
@bwoebi what kind of developer has strong mental health?
Dammit. Reviewing applicants code. Seriously they put 7 lines of business logic in the controller for the application and that's it. Do people even want a job?
You only need to know how to separate stuff into a few layers and know what SOLID is!
@LeviMorrison what format are PHP RFCs in? It doesn't appear to be markdown.
@crypticツ dokuwiki
13:23
I have a converter locally somewhere
@bwoebi Found the bug making file fail?
@kelunik what's this bug?
Anonymous
@Jimbo what is the task that you give them?
@FlorianMargaine Dunno, some file system test fails.
@JayIsTooCommon Dead simple project to show SF2 knowledge. Basically CRUD with a tiny bit of business logic, doesn't have to be complicated, but how much effort they put in shows level and interest
@Jimbo I heard you were a keener.
13:37
!!urban keener
[ keener ] (Canadian slang, noun) Individual eager to demonstrate knowledge or participate enthusiastically in school, church, seminars, etc. Like [nerd], [geek], [brown-noser], [smartypants], etc. but with more emphasis on willingness and enthusiasm, and less on social inadequacy, sycophancy, or natural ability.
@PeeHaa english mofo?
Anonymous
TIL too..
The moment you learn Dutch I will learn English :P
Wait, brown-noser != smartypants
Sure, they're both asshats
Anonymous
13:38
meh, probably brown nosed to get there
But brown noser is someone who kisses ass and I certainly do the opposite of that
^ No, that doesn't mean suck anything
Before @PeeHaa jumps in
Anonymous
!!urban prick
[ prick ] 1. a penis 2. derogatory term used to sum up the existance of a worthless asshole
Anonymous
@Jimbo there you go.
:D
13:47
@Jimbo Pfff so immature...
user1804599
14:05
tfw you have no types so you have to do test-driven development.
There is always faith driven or yolo driven development
user1804599
throw new ValueRequiredButAbsentException($filter->name());
14:20
@crypticツ As mentioned already it is dokuwiki. It's annoying :/
user1804599
@PeeHaa how's the new job
@rightfold faith driven...
user924016
new job?
14:42
pg_connect connects to another database – #74767
!!version
14:58
hi all
i am facing that problem
ERR_TOO_MANY_REDIRECTS
@PrashantBhatt This is the start of a story?
user1804599
Is there an OCaml library for PHP AST pretty printing? Facebook probably has one.
@Danack wat u want to say
Anonymous
@PrashantBhatt how do you expect someone to help you with that information?
@PrashantBhatt First, spell words correctly. Second, if you want help, actually ask for help, rather than just saying you have a problem and hoping that someone springs to serve you.
15:07
@bwoebi ping
@JayIsTooCommon my code is like that
include('include/config.inc.php');
if(!isset($_SESSION['userName']) && isset($_SESSION['password']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:index.php");
}
if i am remove sign of ! than its work properly
15:30
@PrashantBhatt you want some parentheses around both isset
if(!(isset($_SESSION['userName']) && isset($_SESSION['password'])))
@FlorianMargaine can u tell me what i have to do
> Process 27122 exited with status = -1 (0xffffffff) lost connection
wtf lldb
(I am looking right now @kelunik)
hello
i need some help with a date comparisson
@Mary "Don't ask to ask, just ask." - aka write your question clearly. Even if no one answers, having it written down in a clear way might help you find the solution.
@Danack ok, thanks. This is my problem, I have three dates, 1- beggining of SUMMER, 2- today, 3- end of SUMMER.
I am trying compare this dates but one don´t show what should be. this is my code: `12-03-2017 $beginning summer
16-06-2017 $today
05-11-2017 $end summer if($fecha_hoy > $fecha_fin_verano)
{
echo 'Hoy es mayor que el FIN del verano<br>';
}
else
{
echo 'Hoy es menor que el FIN del verano<br>';
}
if($fecha_hoy > $fecha_inicio_verano)
{
echo 'Hoy es mayor que el INICIO del verano<br>';
}
else
{
echo 'Hoy es menor que el INICIO del verano<br>';
15:45
@Mary I would suggest creating DateTime objects from the strings, and then you can just compare those objects - php.net/manual/en/datetime.createfromformat.php
i do that, I put the example of the date I receive
but when I put the end_of_summer > today , that is wrong and it show the message if that was ok
Just added a new SSD to my laptop.
Can't do partitions on it.
Is that cuz it's MBR?
So anyone in to Ethereum?
Also @bwoebi you still use hotmail? -_-
@Gordon You were looking at ethereum at some point yes?
16:05
@Fabor not really. a coworker recommend it and some others lately jumped the bandwagon
I heard btc crashed last night and so did eth. maybe a good time to buy now
I bought a single one earlier yesterday. Was a small downspiek.
its a high risk investment. lots of volatility
I'd like to invest more but disposable income isn't so good :P]
dont invest money you cannot spare
Indeed. Goldman and Sachs are betting on it which is a nice sign
There's a decent reddit community for it.
Anonymous
16:07
oxymoron
and a more technical one
oxymoron is an oxymoron
its pretty much gambling if you ask me
Aye. Hence not investing a lot.
16:25
Evening r11
!!dad
I was unable to repair the installation of a PDF reader on my computer. I am now officially of no fixed adobe.
@Gordon Basically gambling without a "house", as in "the house always wins".
@Fabor It still works and I'm not keen to change my mail everywhere just because
Revealed: Facebook exposed identities of moderators to suspected terrorists. One moderator had to go into hiding https://www.theguardian.com/technology/2017/jun/16/facebook-moderators-identity-exposed-terrorist-groups?CMP=share_btn_tw
@bwoebi Had any luck with debugging?
16:32
> The moderator said that when he started, he was given just two weeks training and was required to use his personal Facebook account to log into the social media giant’s moderation system.

Facebook told the Guardian that as a result of the leak it is testing the use of administrative accounts that are not linked to personal profiles.
17:22
Somewhat related, client's old but still visible website has been hacked, and they've been asked money.
... on the bright side, now when I'm paranoid with security details, they just might listen
i had created a php which is connecting sql by using some ancient tech can anybody plz help me in improving it to latest tech
how about you start doing it and when you face any specific problem, you ask your doubts here ;-)
so lets take it that way, my this file earlier works fine, but suddenly it is not saving data in sql and when a form refer to this page it just show a blank white page. should i show you my code??
Enable error reporting. Blank page means there's an error, but it's not shown on screen.
and how to that it will help me a lot in future too..
17:49
Try it soon you will get to know..
Add ini_set('display_errors', 1); error_reporting(E_ALL); at the very beginning of your index.php, before anything else.
Also, please use Google.
Nite all
18:36
@rightfold I see you are trying to get into that Rebecca hype. You should totally drop that and try jQuery.
18:56
@bwoebi Still no code coverage for anon classes? :-( coveralls.io/builds/12008574/…
user1804599
Is there an RFC about anonymous classes closing over variables?
hello, i am continue having problems with comparing dates
` $today =date('Y-m-d'); $end_summer = '2017-11-05'; if($today > $end_summer){ echo ' we are in summer'} else 'we are in winter' its sopouse to we are in SUMMER, at least in my country but it don´t say that. Please help!!!`
19:12
@Mary Replace > with < ;-)
19:22
posted on June 16, 2017 by kelunik

Initial release.

@kelunik if a change the sign is the same , show the same problem
@kelunik i do your recomendation and change the way to format the date , i was using d-m-Y and i change for Y-m-d
user924016
@Mary are you comparing two strings?
no, dates
user924016
$end_summer = '2017....' surely looks like a string doesnt it?
@Mary Dates as strings.
user924016
19:30
Maybe you wanted to convert the dates to unix epoch timestamp before comparing?
@RonniSkansing the code is more big than what i show, i do that, convert the dates to unix epoch timestamp and other things, when i compare with the beginning of summer was ok but with the end was wrrong, and i did the same. But thanks a lot, it works now
user924016
oh (= well great, Happy hacking
19:47
... I just finished implementing the FoaasException, which redirects to foaas.com/%3Cscript%3E stuff that access .php files, injects scripts tags and more. today was a nice day.
Wes
Wes
ghìaggagagaagaaaaaaaaaaaaa
gffgeuoeweewuuuuuuuuublbllblblblb
sure, but it's friday :D

« first day (2435 days earlier)      last day (2737 days later) »