« first day (2408 days earlier)      last day (2766 days later) » 
00:00 - 15:0015:00 - 00:00

user924016
00:13
lol
aaaaaaa
the code for internal type errors and userland type errors is still entirely different ;-;
01:15
@tomSurge don't have the images in a public folder, instead have them in an inaccessible place, and then serve them through PHP with something like php.net/manual/en/function.passthru.php or sendfile if your webserver supports it.
01:26
my patch for improved type errors is coming along nicely
now covers both internal and userland funtions for both aspects (better “expected” messages, better “given” messages)
$ sapi/cli/php -r 'file_get_contents("\0");'

Warning: file_get_contents() expects parameter 1 to be a valid path, null-byte-containing string given in Command line code on line 1
nice eh?
Anonymous
02:16
Yeah, nice.
moin
 
1 hour later…
03:39
I assume it is because the next value of the iterator is always available before advance() is invoked, so the method always returns a Success object, so the coroutine always continues immediately.
The guard in Coroutine had little overhead, so I'm not opposed to putting it back. Might serve to avoid well crafted DoS or other coding issues like the one above. I'd hate to have servers crash because of call stacks.
@Andrea Ooo, much better.
Wes
Wes
03:59
\o
O/
04:26
\o
04:56
posted on May 20, 2017

New Cyanide and Happiness Comic

05:38
\o
 
1 hour later…
06:52
@tereško Currently I'm trying to install what you suggested on my computer at work ..
I want to use of my computer as the server
I have windows 8.1 on my computer (not windows server). Can I use vm ware and install Windows Server 2012 on it? will be fine?
Wes
Wes
are you sure you actually need a server
@Wes yes, I want to implement a git server on the local
07:19
@Trowski Yes, I already wanted to mention that, we definitely have to put it back, just forgot that I already discovered that. Another example is steaming a file with the blocking driver, which will always immediately succeed.
@Wes hmm .. sounds I can do that on my current windows and no need to windows server
Yeah you probably don't need a Windows Server installation.
07:43
......................F...E.E....EEES.FFSEEEESFSSSSSS..SFSSSSS.  63 / 642 (  9%)
......F.FPHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 503316512 bytes) in /home/kelunik/GitHub/amphp/amp/vendor/sebastian/exporter/src/Exporter.php on line 300
^ I hoped a simple git revert would work for coroutines.
07:55
Fixed.
08:40
good mornings
09:06
@Tiffany No lol, that's how much it costs you per month out of your salary for basic medical coverage
insurance. It's optional
morning
o/
09:34
Does anyone have time for a private chat over a project of mine?
@tereško my favourite human being :D
@tereško why is it about you?why are you soooooo antipatic?
09:55
Mornings
Wes
Wes
10:14
i'm having a really bad moment guys. really bad
Wes
Wes
just realized i wasted a week
Only a week? :P
Wes
Wes
updated 3038 documents, and i got all categories wrong
What kind of documents?
Wes
Wes
10:16
categories are "numbers" and i obviously used the wrong categories
they are right, except they were meant for another set of documents
they are tech specs, legal info, certifications documents, offers for retailers and sales agents related to products of my client
gods
Ah you fucked up a database?
Can't client himself classify the docs?
Wes
Wes
i have a backup. it's just these 3000 that are all wrong
i have to do this work like each 2 months because the client not only is unable to update it themselves
I normally try to stay for away from doing stuff like that for clients, just because of that
Wes
Wes
but can't even email me daily with the single thing to change
> just
> 3000
Wes
Wes
10:20
i receive updates to do in big batches of thousands of changes
I'd rather spend some time working on an interface for them so they could update it themselves.
Wes
Wes
@littlepootis it's just because if i fucked the rest of database i would have committed suicide already
@Wes Meh you didn't even completely overwrite or wipe the production database
It's not that bad :)
We've seen worse
Wes
Wes
i've been entering numbers all week
and they are all wrong
Are they all wrong in the same way?
As in evetything that is in category 10 should be 23?
Wes
Wes
10:28
this is what i'm trying to do
Would be nice if at least the bulk can be fixed like that
Wes
Wes
translate these numbers to the actual numbers
maybe it's not that bad. i just need to convert the numbers of the last N entered entries
there are 300 categories but i think i've only used like 50
That's not that bad
Wes
Wes
my biggest fear is that one day they will ask me to redo this thing
basically they are required to keep some documents available for like ten years
because it's stuff for disabled people
14 mins ago, by little pootis
I'd rather spend some time working on an interface for them so they could update it themselves.
I kinda agree with @littlepootis on this
Wes
Wes
10:36
but just few of them
Create an interface for them / yourself
Wes
Wes
but since they have no idea which of them especially those that i've uploaded myself several years after they were produced, we keep them all just to be sure
they keep saying that the search produces bad results and that "we" should delete some old stuff
and with "we" they mean "I" should delete old stuff :B
Instead of deleting it set an inactive flag
That way you still have it when it's really needed,but it won't clutter the interface anynmore
Wes
Wes
at the time i did this there were already 10 years of existing documents which i've classified myself and that i delete when they get 10 years or older
but basically only half of them have a readable date in it
others must be manually checked
it's a mess...
@Trowski well, that case would not create an infinite loop…
Wes
Wes
10:43
and they have this program they use locally on their computer which is integrated with the rest of they are doing and which provides the "category numbers". it is made with msaccess and vbscript i think (all looks like this microsoft.com/mspress/books/sampchap/6837/g08qr04.jpg), i told them several times we should move away from that mess and start doing our own which works the same way but improved but no, they don't want @PeeHaa
That brings back memories :D
Wes
Wes
i'm screwed right? :B
I loved making "applications" in msaccess :D
Wes
Wes
lol
in their mind everything is working perfectly and there is no reason to change
Life was so much easier back then :P
Look at me now. I am trying to get starting with docker since I woke up. I would have already had several working screens in mscaccess :D
Wes
Wes
10:45
i often considered sabotaging on purpose the stuff i do so that i can blame their thing :B
hehehe
@Wes Maybe you can pitch the "available from anywhere" to push them to web?
Wes
Wes
since this is basically my only important client i told them i would go there and just observe them using the program for a while, and reproduce it in every detail while they keep using it, and only change when they are happy with the new one
but they aren't interested in the investment, for them everything is absolutely fine
i would say following what they are doing during the day is a perfect first step to finding compelling improvements
But at the end of the day if they really aren't interested it's going to be hard :)
mornins o/
Yo pedro p/
Wes
Wes
10:55
they think they are already paying me too much. there's the daughter of the owner that is always surprised by how much they pay me. i always tell them that they are forcing me doing a lot of manual labor that keeps me busy for days... the father knows how much i do but is in part affected by what the daughter thinks and in the end are worried that i can ask even more for that big project, i think
What does the daughter look like?
Wes
Wes
they fear that i'm trying to make them even more dependent on my work
Any chance you can marry her instead :P
@Wes Do you have means to get better clients?
Wes
Wes
this is a good client, i don't think i can get better than this :B they sure keep me fully occupied
It always scares me to rely on a single client no matter how nice they are
10:58
is there no way to create an automated system for it?
heheheheh @Wes
reason the more to try to getter another good client
yeah, sounds like you need a backup plan, for what to do, when the money stops
Wes
Wes
i think i will sell everything and buy a farm at some point
i'm not joking :B
Meh sounds to much like real work to me :P
Wes
Wes
being a tech guy stopped being fun
problem is stuff that goes wrong
11:09
Well that's not a tech problem I think. THings go wrong on a farm too :)
Wes
Wes
browsers' bugs, php, css, js
everything is not as simple as it should be. we can do more things these days compared to when i started
but everything got way more complicated
Wes
Wes
jesus
@Trowski Ah … yeah … well, we could guard against the specific case of already resolved promises to continue without recursion?
@PeeHaa most of that is crap from Docker
11:16
and webpack and yarn adn babel and composer and legal
and ci
what's adn?
A typo of and :P
why not push that into subdirectories? at least it looks friendlier then :)
Morning o/
I could have gotten away with saying a JS framework couldn't I? :p
hey @hakre @Akshay
11:19
@PeeHaa webpack, yarn and babel are there, so that you dont have to deal with 20 different JS outdated libraries, while your won code is single wall of jquery
I know what it is there for
you are free to go back, if you want
That's not the point
you are just bitching
As far as i can see it's you who is bitching now
@JayIsTooCommon started the list github.com/PeeHaa/WebNews/projects/1
Feel free to add stuff whenever something pops up anything really. You are collab
11:24
That reminds me of Trello.
Yeah no idea if I am using it the right way. Will see if it works for us like this
Never used github projects and there is a big chance I am doing it wrong
user924016
Hello
Anonymous
11:43
@PeeHaa awesome. I'm dog sitting soon which is for all night so I'll take laptop with me and sort out a VM
Cool
12:02
Er, I can't believe web sockets only came out properly in 2011...
That's not even that long ago
Wes
Wes
@DaveRandom youtube.com/watch?v=OQsJRlPiEVw&t=215 mh, fackin hell, dose ribs, so tenda
12:16
Can I switch to an old commit by commit name?
Commits don't have names. Or do you mean the hash?
@PeeHaa I can do that by hash like this: git checkout <hash> ..! But I want to know can I do that by commit text?
No
commit texts are not identifiers
ok,
HELLO PEOPLE!!!
user924016
12:22
hrello
Wes
Wes
12:33
i've saved a weeks work \o/
\o/
@Jimbo I was asking about salary 😛 lol
@Jimbo that's why I was so incredulous, 35 euro a month is like sweatshop wages
12:50
@Tiffany It depends on your juniorness and what you ask for. Don't forget rent is much cheaper over here, like 400-500 euros gets you your own flat, and your first 3 months you get free accommodation in the trivago flat (shared) so you can get your bearings and find somewhere more permanent. As for salary, I can't genuinely comment on junior salaries as I haven't been there for a long time. But you can expect to reach the "one third of your salary is for living costs" at least
I pay 380 in rent here
But is it on a mediterranean island? ;)
but 400-500 isn't bad
no, it's next to the smelly Mississippi
(river)
The thing you come over for though isn't that, it's for the opportunity to grow and learn which is actually imho very well done. They say you'll likely leave after 2/3 years but within that time you'll grow so much and that's the goal
yeah, that would be nice. Only problem is my boyfriend lives like six hours from me right now. If I moved across the Atlantic... :/
what's the process for bringing animals into the country, or do you know?
I know most countries have a quarantine process in case the animal has something that local fauna can't deal with
I couldn't give up my cats
12:58
hello is there any way to protect session id's ?
user924016
@VikasKandari you can set a httpflag on your cookie, but I am not sure what you meant?
PHP SESSION ID can be Stolen through Browser using javascript so is there any way to hide that or disable that
Inspect Element is a Great Tool for developers but its also used for Session Hijacking to Add Custom code in website
but HTTP Flag will only stop Fixation Attacks Hacker can still get Session Id from Cookie
user924016
I dont think you get it
Please Explain....
user924016
httpflag makes it so the browsers (modern ones..) cant access the cookie
user924016
13:05
it will still use the cookie on subsequent requests, but it cant be accessed from js
user924016
So settings this flags helps you reduce the risk of leaking the sessionId if you have a XSS vuln on code
user924016
Stuff like rotating the sessionId on login, logout and etc is something you need to do, to avoid fixation attacks
user924016
Also you need https and the secure flag to reduce the risk of mitm attacks
user924016
Any questions bout that?
@Tiffany Literally no idea tbh. I think it'd be tremendous stress for your animals, though
13:16
hi @PeeHaa :)
@Jimbo yeah, I'm sure it would be, but I don't have anywhere they can go :/
@Tiffany I really want a cat, but I know I shouldn't get one over here because if I do then it'll be stressful for them to fly around places and a nightmare for conferences etc. Pets, for me, are settle down things :)
@Jimbo I didn't have much choice when I got them. One is my inheritance, and the other one was a rescue.
two cats are great by themselves, as long as someone comes by to check on them, feed them and water them, if your'e gone for a week or so.
I've seen cats on plane trips before, dude took the kitty as a carry-on. Used a fabric cage to carry her in.
I'm not a fan, just like taking babies on planes too. Not only does it piss everyone else off, but know when we have to blow air out of our ears as we ascend / descend? Ever tried not doing that? Let me know how that pain is...
@Jimbo Drinking helps just as good
13:23
@PeeHaa Never tried this.. hmm
It's the same effect / mechanism
cats get allergies and stuff too, I'm sure they have ways to manage it. The real question would be if they needed to use the bathroom. No litter box nearby :/
and not like it's a short trip
Great opportunity to stop being a crazy cat lady :P
but I love my kitties
I say as one is laying on my desk, in front of my keyboard. He's purring though.
So you are scared to say otherwise because he is looking?
:P
13:26
lol
I still have the duct tape square on my floor, and both of them have ignored it.
Wes
Wes
@NikiC i don't know what i'm doing anymore
5
@Tiffany :D
I even tried putting both of them in just now, and they both walked out, lol
need to start gluing my VM together
Wes
Wes
scenario is, i'm either adding or replacing a key, i start the probing and i encounter a bucket that has less distance from the distance i'm currently trying out, so i swap, right? but how do i know that the key didn't exist already somewhere later?
it can't be done in one go, i think
@PeeHaa you starred that
Nope :P
Wes
Wes
13:31
not wise, you are the only around
hahaha wasn't me :D
buuuut
I didn't either
for great justice
Have a star
Wes
Wes
you bastards
ahaha
hahahahaa
We still love you wes
Wes
Wes
13:31
must be jimbo
@Wes what's your dev environment?
@Wes ;)
@Leigh Oh btw I may have come over to the dark side with docker
Just for dev though, for the moment
Everyone's switching to docker...
I was bumming vagrant for the past year, now docker on OS X with kitematic is so much nicer
@PeeHaa You thought that one through way too much :P
13:34
hehehhe
guilty
haha
Can I bug you somewhere in the coming week about holding my hand to setup a docker image @Jimbo?
Wes
Wes
@Tiffany a dungeon with a chair and a table in it, little light, rusty spikes and chains, crosses, feeble candles
I need a push into the right direction for a project
13:35
s/push/kick
@PeeHaa I only know the basics dude, as in - nginx in one container and application in another one, but it's super simple. If that sounds helpful, don't see why not
Do you use the normal tcp interface or linked containers?
@Wes o_o masochist
Wes
Wes
i'm planning my escape
3 hours ago, by Wes
i think i will sell everything and buy a farm at some point
@PeeHaa Currently I just forward to the host port, and then it's available on there, and the next container can talk to that. My next step is container communication
So no host interaction at all
13:37
kk
Will probably bug you in the coming days somewhere
brb food
@Tiffany Here's where I was VM wise
@Wes could do what my dad did, save up, buy some land, set up a storage unit business
Wes
Wes
i want an alpaca farm
@Jimbo I oculdn't get port forwarding to work on vagrant, no matter how hard I tried
Storage wars the Italian edition?
13:39
maybe I had Virtualbox set up wrong
Think about all them gestures being thrown around
Wes
Wes
or a goat farm
CAT FARM
YESSSSSSSSSSSSSS
inb4 cat abuse
Wes
Wes
can't eat cats
13:40
or can you?
Wes
Wes
maybe in china
meanies
:P
really going out for food now
In soviet russia, cats eat you.
^^ not related don't qworry
13:41
maybe I should try vagrant again, since I've learned quite a bit since trying to set up my own VM
@Jimbo is there a reason you use Apache over nginx?
virtualisation is so 2016. containers are so hot right now.
@Tiffany Absolutely, because I'm a lazy bastard and haven't gotten around to nginx and I really should
hahaha
that's what I've been doing on my VM, trying to learn nginx. I may be trying to tackle too many things at once with it, but it has been eye-opening
maybe I should switch the web server at work to Apache from IIS. WAMP is better than WIMP. Slowly migrated to LEMP. WIMP, to WAMP, to LAMP, to LEMP...
evenin r11
13:46
\o
O/
github.com/php-amqplib/php-amqplib vs github.com/pdezwart/php-amqp which lib should i use? php-amqplib is very slower than hp-amqp
@AkashBose We were looking at php-amqplib, where did you get the speed difference? I was in a conference talk last night saying bunny/bunny was fast
14:02
file reading in php
@Jimbo by speed i mean the connection speed to rabbitmq which takes 0.081 seconds by php-amqplib and php-amqp is taking .001 or .002 sec to connect.
@Jimbo is there any way you can sugges to keep that connection static ?
I mean not reconnecting every time i run the script.
You can have 'persistent' connections
@Jimbo a counter argument can be made that nginx and the php app itself could be a single unit, unless you have multiple backends that are routed individually inside nginx.
@Danack But the point of decoupling them is so they can be upgraded in isolation without affecting the other, surely?
i am trying to build a compiler for java in php, here is my code. pastebin.com/A78dmhSs
14:10
Ah great @Danack just also volunteered helping me set up the environment \o/
:P
meh, not sure how that makes it easier? PHP would always be deployed with nginx and their settings are kind of linked, so not much benefit in separating them.
Has anyone ever attempted a non-http websocket negotiation?
@Danack Switch between Apache / nginx / whatever easily
Here how do i make sure that errorcompile.txt file contains something ?
NGINX 4LIFE
@PeeHaa sure - I can add something to that tutorial repo....it's kind of trivial to setup.
Awesome <3
14:12
@jagdish I'd recommend using a debugger to figure out what your code is doing instead of what you want it to do, such as:
!!debugger
@Jimbo You mean the handshake / connection upgrade?
@PeeHaa Yeah, it doesn't have to be HTTP
Doesn't it?
I thought the spec said it was http
Been a while since I read it though so may be confusing myself
> When a connection is to be made to a port that is shared by an HTTP
server (a situation that is quite likely to occur with traffic to
ports 80 and 443), the connection will appear to the HTTP server to
be a regular GET request with an Upgrade offer.
Doesn't say anywhere that it's required
For example, you can do a websocket server <> client connection just over... TCP...
In my brain somewhere this makes sense.
14:32
@Trowski I have a better suggestion… please have a look at github.com/amphp/amp/pull/135 \cc @kelunik
Wes
Wes
pbs.twimg.com/media/DAQ5glaXoAA20Kd.jpg not sure if funny or scary
@Wes I would have switched the "frame" and "hang"
Wes
Wes
ahah
14:46
Has anyone ever used the bidirectional streaming API's in HTTP/2 with PHP?
Looks like we might not even need websockets... (perhaps someone with more brains than me, which isn't hard, could explain this to me)
Closest I can find is gRPC which doesn't have a server in PHP, or perhaps that's something else entirely...
Or does Aerys do this?
/cc @bwoebi
@tereško lol
00:00 - 15:0015:00 - 00:00

« first day (2408 days earlier)      last day (2766 days later) »