« first day (2175 days earlier)      last day (2758 days later) » 

4:00 PM
Well, I have php.local setup now. Time to hack!
 
@LeviMorrison have fun !
 
@Henders It's 3v4l.org
 
@Tiffany which id will it target then? Then it will hide the element itself? However i still can't get the code to work :-(
 
@Sean maybe it's too late, but did you see github.com/goetas-webservices/soap-client ? ;-)
 
@MadsHjorth ur target id is the id of the div or whatever where you content should go in
 
4:23 PM
you pass the id into the function
you can pass a string
 
Anonymous
@Jimbo estas soltera is still the only Spanish I know (even though I'm out here quite a lot) but it's still very useful. And congrats \o/
 
Just when I'm in the office to admit defeat to my supervisor, I figure something out a possible solution and it works.
Funny how that works out.
@JayIsTooCommon lol
 
this sounds like a dirty way of doing it, but if I need to keep $_POST values persistent across a second form, can I use hidden input fields?
 
@Tiffany this way or sessions maybe ?
 
4:38 PM
@Traxstar two of the values can't be stored in session because they're sensitive
I guess I could use everything else as a session, and just create hidden inputs for those two?
ewww, now that I think about it...
 
@Tiffany hidden input fields are not got for sensitive data or ? :D
 
@Traxstar huh?
 
u mean sensitive like typing: asdAAASDSDsasd or sensitive like they are so private that i cant store them ?
 
private information, like personal identifiable information
the former in your example would be case-sensitive
 
yeah okay. my question is if they are safer in hidden fields then sessions ?
 
4:42 PM
@Jimbo LGTM for giving programmers strokes.
 
I need to be able to store them into a database, but the way I have this shit written, the $_POST global loses the information I need to insert.
 
@Ocramius It's LISP code after indentation fix
 
@Traxstar I dunno. Sessions aren't secure though and I can't store them in the session.
 
@Tiffany destroy session after second form ?
 
no
if I recall correctly, hidden inputs should be fine. I think.
 
4:45 PM
okay im not so sure...
 
when I was looking at adding a token verification to the form, it was suggested doing it via hidden input. if a token can be placed in a hidden input, then I'm thinking the data should be okay. it's hidden from the user on the page. I'm trying to think of any way an attacker can pull the information, and if it's not in passing, I don't see how
unless someone viewed the source on the page at the user's computer, but there are even bigger issues that would rise from that aside from a hidden input
 
guess you are right, im just not sure if the user is not able to make a hidden filed normal ?
 
why would the user want to?
 
not sure im talking wired shit :D sorry
 
@Traxstar anything you put in a hidden field is visible by viewing the source of the page
anything you store in a session is stored on the server
things stored in sessions are as secure as your server
things that are sent to the client are as secure as @Jimbo's mother's virginity
5
 
4:59 PM
wow :D @Jimbo how secure is your mothers virginity ? :D
 
Anonymous
@DaveRandom Mahahaha
 
rofl
 
@DaveRandom wow … That's really safe.
 
5:22 PM
@PeeHaa heh, /me is happy :-)
evenings
 
\o
The <!-- language: none --> trick is something new users won't know. Even if they by some miracle read the help, they have to click the question mark -> click advanced help -> scroll down the page to Syntax Code Highlighting -> click show more -> scroll to the bottom of the expanded section -> on the last line there it is. — Aaroninus 3 hours ago
 
Alright, fixed the basic layout; just need to fix the navigation I broke :D
 
Anyone got a good method of validating a URI? URI's cover many forms so it's difficult
 
5:37 PM
@tibanez scheme:[//[user:password@]host[:port]][/]path[?query][#fragment] is not too hard to validate with a regex. however, you might want to have individual validators per scheme and that's when it starts to get complicated.
 
@Traxstar A URI not a URL
 
greped the wrong link sry
 
@Gordon Does that format cover IRI, URN also?
 
@tibanez urn yes. not sure about iri. its the format specified in rfc 3986 and I think they didnt have iri at the time. but the rfc suggests a regex for parsing at tools.ietf.org/html/rfc3986#page-50
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? what a beauty
 
@Gordon Thanks a lot. I'm just modelling something and need a URI value object so hopefully this will be safe and not throw up an false positives when checking its validity
 
5:46 PM
user image
6
 
@tibanez just make sure to write unit tests for it and test with your most common cases
 
@Gordon My most common cases are URL. I have not seen anything else being used but the spec says it must be a URI so I need to cover at least URN aswell
 
@tereško I totally read that
 
I should probably get it, since I am still at "intermediate" level
 
@Gordon The regex even matches this URN urn:lex:eu:council:directive:2010-03-09;2010-19-UE so it's probably good. I'll write some tests with some random data anyway to be safe
 
Anonymous
5:50 PM
@PeeHaa xD
 
6:10 PM
I feel like I am reinventing wheel now
 
@Ekin hey, do something about using "me", will you?
 
/me is writing a JS thing that colorizes a "query"
 
@Jeeves lol?
 
is your bot going insane?
 
riiight, yeah @Jeeves, I will
 
6:12 PM
sentient
not insane
 
@PeeHaa tomæto, tomato
 
:P
 
(btw, using "me" = !!remind me/someone do something)
 
ooooooh
 
I saw people tried to use it like !!remind me ... yesterday so :-)
 
6:16 PM
yeah noticed the same thing somewhere today
 
Anonymous
What's the syntax for it again?
 
!!reminder examples
 
!!remind help
 
Examples:
• !!reminder foo at 18:00
• With timezone: (ie. UTC-3) !!reminder foo at 18:00-3:00
• !!reminder bar in 2 hours
• !!reminder unset 32901146
• !!reminder list
• !!in 2 days 42 hours 42 minutes 42 seconds 42!
• !!at 22:00 Grab a beer!
Usage: !!reminder [ examples | list | <text> [ at <time> | in <delay> ] | unset <id> ] Try !!reminder examples
 
6:17 PM
:S
 
@Ekin You may also want to have a looksy at !!should because that's somewhat related I think
 
yup, I had that in mind to check
 
People have been doing me/i/foo conversions in there I think
 
Anonymous
!!remind @JayIsTooCommon You're beautiful in 5m
 
Reminder set.
 
Anonymous
6:21 PM
Like that?
 
Anonymous
Yay \o/
 
it would already reply to you :-)
 
Anonymous
Oh
 
Hi, what database structure would you recommend to use in developing an mlm binary (tree-like) structure?
 
mlm?
 
6:22 PM
multi-level marketing.
 
oh .. marketing
 
There is one thing I hate more than marketing
 
what operation will you be doing on that tree?
 
yep, more like I need to register someone under a parent's left and right.

YOU
mem1 mem2
mem3 mem5 mem4 mem6

like this one.
mem3 and 5 under mem1.... goes on.
 
@PeeHaa I'm listening
 
6:26 PM
Multi level marketing!
 
@JayIsTooCommon @⁠JayIsTooCommon You're beautiful
 
any thoughts on database structure @tereško ?
 
4 mins ago, by tereško
what operation will you be doing on that tree?
well .. "operations"
 
6:30 PM
operations would be getting the left and right nodes of the parent id, getting the full node tree. @tereško
 
no, that's bullshit
that will be only a tiny bit of what queries you will be executing
 
!!remind send that bio. seriously, you're getting ridiculous at 16:30-4:00
 
Reminder set.
 
@FélixGagnon-Grenier how long have you been dicking about?
 
... like, two weeks now
@tereško Since every other employee kinda have a master in computer science, I'm somewhat having a hard time writing a self description that doesn't sound like I am crap.
.... which I am, don't get me wrong, but still.
 
6:37 PM
I actually have a similar problem
 
I.. somewhat doubt that? You have a "bio" to write?
 
Anonymous
@Ekin can you set reminders for others?
 
no, but last time I had to, it was underwhelming
 
@FélixGagnon-Grenier no, no. you can believe him. he really is crap. I mean, he cannot laravel, he cannot code ignite, he cannot even cake. all he can do is Yii… what a loser ;)
 
@JayIsTooCommon Nope
Think about it for a moment :P
 
6:40 PM
@Gordon hue hue hue :D
@PeeHaa good times?
 
Anonymous
I know.. I know.. I was hoping it was an oversight so I could troll :D
 
:D
 
I have only bachelor's and 1/4 of project I have worked on have dies, 1/4 have been internal shit, 1/4 are gone from internet and 1/4 are lame
and you cant put "writes shit on StackOverflow" in bio
 
@tereško that's because you didnt use enough laravel
 
@tereško You actually can :)
 
6:41 PM
@Gordon that must be it
 
@Wes i found flexboxfroggy.com to get some training on flexbox done :D
 
@tereško my bio does include my stack overflow contributions: about.me/gooh
 
Wes
@Ocramius flexbox has just one major problem
 
@PeeHaa not when your company is collecting bios from all the employees to participate in a bit for government contract
 
Wes
properties name is crap
i liked way more flexbox "level 0" naming
 
6:43 PM
@tereško What do employee bio's have to do with external contracts?
 
Wes
dundalek.com/css3-flexbox-reference it will take a while to remember what align items align content and justify content do
 
@Gordon I am not even in top20 or php-tag contributors
 
(besides the "isn't a criminal" paper once actually starting the work)
 
Wes
i often forget them when i don't touch flexbox for a while
 
6:44 PM
@PeeHaa those are government contracts ... the qualifications of employees matter
 
Your guberment is odd
oh wow @Gordon is still the #1 php contributor repwhore
 
@PeeHaa I am
@tereško you're among the top 0.50% overall. good enough
 
it only works on other developers
 
6:59 PM
uh-oh Jeeves build is failing
 
Hmmmm shall we find out who broke it? @DaveRandom
 
@PeeHaa Sherlock incoming
 
7:19 PM
@Jeeves do you want a plugin fetching results from numbersapi.com so you can entertain us with factoids about numbers?
 
plugin all teh things
 
@FélixGagnon-Grenier plugin all these market.mashape.com/explore?price=free /cc @PeeHaa @DaveRandom
 
I tried to test the nlp thing but I need to log in first :( Aaaaand close
 
such lazy :p
 
Such true :P
 
7:28 PM
@PeeHaa you dont. they list the urls of the actual services in the details, so you just go there to find out how they work without going through mashape
 
Noite all
 
Anonymous
@Saitama night
 
I'm trying to handle some file uploads in PHP. I'm capturing the files with NGINX and parking the whole request body in a temporary file. It's littered with extra data from multipart/form-data content-type. So to get the actual file data, I need to do some processing, right? Like search and replacing some lines. Thing is, I'm uploading really large files. How can I best handle this? Whole reason I upload via NGINX is to avoid PHP memory consumption. Parsing them seems counter-productive.
 
7:40 PM
> Online check-in is not available from this airport. If you select Check-In after retrieving your booking, you will be met with the following:
@bwoebi ^
2000 fucking 16
 
Anonymous
Like I said, third world
 
Anonymous
:D
 
Jesus christ
 
Anonymous
Well, do you have hold luggage?
 
7:41 PM
@Gordon lol
@JayIsTooCommon No
 
Anonymous
That sucks
 
It's kinda the reason I don't have hold luggage
I now might as well just carry an empty suitcase with me now
 
Anonymous
xD
 
why are y'all talking about Luggage?
 
:P
 
7:48 PM
@MadaraUchiha @tereško @Saitama @Naruto you've see hummingbird.me yet? thought it might interest you.
 
@PeeHaa lol, congrats, much...
 
That's what you get for choosing FuckYouAir I guess. You pay peanuts...
 
@PeeHaa Well, I'm also flying with some cheap airline (flybe) … but … checkin was no issue
 
wtf I hate you
I also fly with flybe :P
 
LOL
 
7:54 PM
lol
 
@Gordon I hope it's related to /bin/cat …
 
@Gordon hmm ... I will try it out, but it started somewhat underwhelming, since it couldnt find the first manga I attempted to add
 
Talk about airlines that charge you for in-airport check-in
 
going to sleep
 
8:03 PM
@nikita2206 Wait wat. That's a thing?
 
@PeeHaa yeah, it is
 
Anonymous
@PeeHaa typical Netherlands
 
:P
 
Anonymous
Btw - did you know that Google now has suggestions for your username? You're basically a celebrity.
 
Anonymous
(Not stalking, wanted your GitHub for webnews)
 
Anonymous
8:17 PM
Also stalking.
 
hehehehe
"random search" -> did you mean: PeeHaa
Totally not stalking
 
Anonymous
Lol
 
@PeeHaa Ryanair does it, 45 pounds for a check-in through machine at the airport
 
@nikita2206 As in a real machine instead of one of those machines behind a desk?
wtf
 
@PeeHaa kiosk is what I meant
it was quite a surprise for us as well
 
8:21 PM
And not a pleasant one :P
 
@bwoebi are you ever going to work on ext uv?
or with it always stay experimental/
 
@Danack that was brilliant
 
Click the "dogging" one for more amusement......NSFW audio.
 
@FélixGagnon-Grenier send that bio. seriously, you're getting ridiculous
 
8:31 PM
.... right. let's do that
 
On a related note: anybody want to tell me what I am doing wrong:
> NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/uv.so' - /usr/lib64/php/modules/uv.so: undefined symbol: php_sockets_le_socket in Unknown on line 0
sockets is loaded
 
Yeah probably either a french or canadian socket
Although it didn't say sorry so probably french
 
@PeeHaa In fact, I've spent yesterday/today like 5-6 hours to no avail :x
 
oh :(
 
8:35 PM
@Danack ha! brightened my day
 
@PeeHaa I have a segafult I absolutely do not understand and cannot track down why there's an invalid value…
 
!!man ldd
 
[ ldd - list dynamic object dependencies ] ldd [ -a ] [ -v ] [ -f format ] program ...
 
@PeeHaa it was loaded after uv.so
 
@PeeHaa … yep, ext order matters
 
8:36 PM
@nikita2206 I thought so too, but I don't understand how to fix it. It's coming after sockets in /modules
 
@PeeHaa I mean extension= order in ini
 
@PeeHaa the extension=... for socket.so have to be earlier
 
I don't think it's a shared mod
God I hate linux sysadminning
grepping for sockets in php.ini doesn't yield any results.
 
you probably have a directory with a bunch of ini files for each module and the one that loads socket.so is loaded later
php -i | grep ini, there is a Scan this dir for additional .ini Files
 
But there is no uv.ini in there
For shits and giggles I did a mv /etc/php.d/20-sockets.ini /etc/php.d/0-sockets.ini with the same result
#yolo
 
8:43 PM
@PeeHaa where are you loading uv? in php.ini? if so move it to /etc/php.d/30-uv.ini
 
oooooooh
yeah I get what you are all trying to say for the last 10 minutes :P
yeah thanks all :D
 
@Wes github.com/php/php-src/compare/master...nikic:arraySplat I wasn't sure how to treat iterator keys
 
is there a canonical "yes, you're fucked" dup target for questions like this stackoverflow.com/questions/39779622/… ?
 
due to the integer key reindexing, would for example bool keys be reindexed as well? (as they cast to int)
I think it might be better to just not allow non-int/string keys when unpacking iterators
 
@PaulCrovella I don't think so. Most are just closed
 
Wes
8:49 PM
coercion is an abomination
 
Anonymous
@PeeHaa is webnews a started and Cba proj or is it still on the list?
 
In limbo
 
Wes
@NikiC if i use bool as key i think i want a map of two elements, so i'd say true should replace 1 and false should replace 0, rather than append them +1. makes sense?
 
@nikita2206 ugh… this bullshit distros do…
 
@JayIsTooCommon Why?
 
Anonymous
8:51 PM
Just looking for something for collab that isn't too over my head
 
Anonymous
Speaking of over my head, how's tron?
 
Wes
same goes for floats, with a float chances are that i'm using the arrays as a map
 
@Wes I'm pretty sure that if you used a bool as key you simply f'd up
 
@JayIsTooCommon In limbo :P
 
Wes
indeed :P just wondering what could be the use case of that
 
8:52 PM
Which is why i'd just throw a warning and skip ^^
 
But yeah webnews is a nice simple project
 
Wes
how about throwing TypeError instead?
 
Anonymous
@PeeHaa :P I'll study the codez
 
@Wes Could throw Error
But then all error conditions would have to throw
 
Lemme know if you need me
 
8:54 PM
I'm currently using warnings because that's what array literals normally use
 
I mean I know you want me, but this is about need me
 
Wes
how do you keep going with php without getting depressed @NikiC? :B
this is why, since it is a new feature, i wanted to have strict errors as in strict_types
eg error on anything except 0. iirc
 

« first day (2175 days earlier)      last day (2758 days later) »