« first day (1800 days earlier)      last day (3151 days later) » 

12:00 AM
omg yeh I'd totally forgotten about this, a few weeks ago I bought one of rokit.com and I cannot recommend it highly enough, although note that it's actually pretty dangerous and you need a bigger open space than you might expect
 
Abe
lol
for yourself or your kids? :D
 
@Abe I have 4 people's lego collections including my own, so far the only one in circulation is one that's not got many good pieces (loads of little flags and weird little decoration things, not nearly enough generic structure and almost no technics)
 
@DaveRandom if you loose the bottle can you use any other bottle instead?
 
I will be cracking the rest out as soon as I figure out a sane way to store it, and the very first thing I do will be to build a suspension bridge between the sofa and the first place because I always wanted to and was never allowed, and my house now has a way better span for doing it anyway
@marcio It doesn't come with a bottle, it just has the fairly standard screw thread you get on coke bottles etc
 
Abe
@DaveRandom todays lego sucks. technic is still cool though. i would still buy lego if i could avoid the shame that i would have when thinking that i'm 29 :D
@DaveRandom ahahah
 
12:06 AM
I've found that 1L straight sided bottles about 5/8 full of water are the best, I've been surprised about how reproducible the results of fiddling with the variables has been
@Abe I have no sense of shame about it, some toys are more than just toys and toys are not just for children, lego/mechano/scalextric in particular are not age restricted in any way IMO
Although since I have a mental age of 8 my opinion may be somewhat biased...
 
Abe
scalextric is a bit for kids, unless you do landscape scale model as well (i sadly did that too)
and also scale trains
 
Hey @Abe, can you figure out the CSS that would be required to make the starred messages scrollable if the container is longer than the bottom bar? I've fiddled with it before but never come up with a satisfactory solution, it drives me nuts
 
Abe
oh let me try
small monitor?
 
@Abe Maybe a bit moreso than the other two, true
@Abe TV, have it in 720 mostly for readability
 
Abe
uhm. did you notice that messages get actually removed if the window is too small?
 
12:14 AM
Really wish the Windows text size feature was actually useful, would rather have it in 1080 but I just couldn't live with it when I tried
@Abe Yeh but click "show x more messages"
I can't prune the starred messages list because of it, it's pretty annoying when people ask me to unstar stuff I can't see
plus I like to read them...
 
did you try overflow-y:scroll; somewhere?
 
Abe
#sidebar {
    bottom: 88px;
    height: auto;
    overflow: auto;
}
 
^ that works
 
@marcio Yeh, the issue is getting it to match up with the bottom bar in a reasonably clean way, iirc the starred messages container and bottom bar are both lifted way out of the document flow and it's pretty difficult to get them to play nice with arbitrary viewport heights
But I suck at CSS so probably I just did it wrong
 
@Abe this will be on my laptop user css forever <3 thank you
 
Abe
12:19 AM
:P
 
@marcio See also github.com/vyznev/soup and @Abe do you want to/mind if I submit that to be included?
 
Abe
feel free to do it :D
@rlemon made a chat theme too though
 
Oh yeh there's loads of stuff like that, I have a little custom chrome ext at work in dev mode so I can just fiddle with it live, I wish SE gave a crap about chat but at least they made it legible and half-way sane at the front end so you can reverse engineer it without needing to be a genius
It'd be nice if there was a proper API (esp a way to hook into message post actions without horrible jQ hacks involving injecting scripts via appendChild() at two layers) and some of the mechanics are a bit inefficient but all in all the authors of SE chat should be pleased with themselves, it mostly reads like code that makes sense
Although I have no idea what the unminified JS looks like
 
Abe
minification makes code looking pro :D
 
@Abe you mean shitty?
 
Abe
12:33 AM
:D perhaps. i think 99% of client side js code is just a bunch of procedural crap kind of organized in functions, and it's understandable. most of client side scripting code doesn't need more than that
 
tinypng.com achieves 10x more than minification of insignificant volumes of ascii imo ime
I've dropped 500K/load with that before now, although also designers are dumbasses and should not be allowed near servers
/cc @webarto or whatever you are calling yourself these days
The only person I've ever known who I both like and would prefer them not to know where I live
 
@DaveRandom why that?
(running make test now… that's why I'm slacking off in this chat here :-D)
"My code is compiling" isn't an excuse anymore nowadays…
but test running is :-D
 
@bwoebi you forget c++
 
@bwoebi Not an excuse either ... the test runner just sucks :(
 
@NikiC well, that too.
Incoming: why did everything break :'-( (well, I hope not.)
 
12:45 AM
@bwoebi just a very old joke about him being some kind of balkan organised crime boss :-P last I heard he was in serbia (?) but iirc he's from bosnia
 
@marcio nobody likes virtual dispatch tables…
 
Grasping at straws - is there a limit on how many properties an internal class can have in PHP - as stuff broke for no apparent reason other than two more properties were added: travis-ci.org/mkoppanen/imagick/builds/81214996
Obviously, "Works for me"™
 
@Danack github.com/mkoppanen/imagick/commit/… you mean constants?
 
yes.
 
@bwoebi Instead of marking Z_ISUNDEF checks expected you can simply drop them
zval_ptr_dtor handles IS_UNDEF just fine...
 
12:50 AM
@Danack well… it's always just with Imakick 6.9.2
@NikiC oh, good idea.
 
Hence the grasping at straws.....that version works fine locally.
 
Hi all!, my question pertains to web development security. Why do people keep saying using a cookie to save session data (such as login info) is safer than using hidden forms? For that matter, is it safe to use a javascript variable to hold onto some session data?
 
@Danack sounds like a borked build on travis, I personally would start by trying to repeat the failure
 
@Porlune because anything that is held by the users browser can be edited by them, given even basic debugging tools, such as those that ship with browsers.
 
@Danack cookies can be edited too…
 
12:55 AM
ah, well I could care less about that. I trust the user like I trust a shark.
 
When people say use a cookie, they mean just store a session ID in the cookie. Not to store data.
 
I'm storing two fields, a temporary user id and a temporary password.
 
@Porlune and why don't you store that in server-side session data?
 
12:57 AM
good post dave :D
 
@kelunik What chat room was it were you talked to the Travis people? Or what was your line of communication? I think I'm going to need to ask them for that special favour to get access to a box...
 
@Danack looks like incompatibility with 6.9.x?
 
because I want it to persist between sessions.
 
@Danack well, I'm genuinely sorry that the only thing I can bring to the table atm is: sucks to be you
 
@bwoebi .....ImageMagick doesn't follow SemVer......so god knows.
 
12:59 AM
@bwoebi it's a remember me feature.
 
Oh. They also don't support change logs so I'm going to accelerate my drinking now.
@Porlune If you want to, write the code and then ask @ScottArciszewski to point out where your code is broken.
 
@Danack are you phpnwing? I've not been paying attention to #11 recently because life
 
@DaveRandom No, money is becoming an issue. Really need to get a job.....and need to be not be in pain to be able get a job.....actually just not being in pain would be nice in general.
 
well I asked here because it's related to php, but I think the script will have to be in javascript considering it's a SPA. I could use an inline frame to target my backend, but I'm not sure that wouldn't be less secure in it's own ways.
Thank you for the help! :)
 
@Danack I assume there are also random uncommented whitespace changes and refactoring in the middle of feature/fix commits? And people with crappy git settings who change the line endings in files that they've changed one line in?
 
1:04 AM
@DaveRandom And then there's release managers who commit single-line SUCURITY FIXES with 50 lines of unrelated whitespace changes...
 
And occasionally in the history there'll be two massively divergent branches and then a monster commit where someone did a manual merge of the entire codebase, that was a fun thing
 
@DaveRandom Aha! That's where you're wrong! They don't use git.....it's still SVN.
wait.
that's not good.
 
@Danack ... or was it cvs?
 
@DaveRandom Oh they've done that. They did a complete force push of the entire history of the project after they'd already put a git mirror of the SVN repo on github.
 
I have a very special kind of hatred for svn, it is my arch enemy
It is also actually insane, it takes pleasure in pissing me off
 
1:07 AM
It's fine.....so long as you never need to branch or have more than one person working on a project.
 
Or need any kind of data integrity, or expect it to take less than an hour to check out anything more than a few commits
 
1:44 AM
good morning
 
wtf… that warning: called with wrong number or type of parameters; please RTM
 
"rssz" vs "ra".....to be fair, that's going to be too much info to put into an error message, and sending the person to the manual is their only hope.
 
I though you could get private properties from an object with ReflectionObject.... seems to be barfing on me
 
@Danack to be fair, they should just have create a separate function.
@Danack I'm going to just properly split that up depending on whether the arg count is 2 or not…
 
Abe
2:03 AM
after 4 failed attempts of modeling some stuff, i think i'll join farming. do you prefer llama or alpaca?
 
2:18 AM
can i mark all checkbox thats populate using loop in php?
 
new features like code highlighting and fixed the damn favicon
 
enough php-src for today.
 
2:34 AM
Can I ask some questions about magento?
 
2:48 AM
@AjmeraInfo I might be able to help... haven't been too deep into magento since 1.4 though
 
@LeviMorrison currently fully in php-src mode… Shall I do the enum implementation or are you going to do it?
 
@bwoebi Well… Anthony is partially into a big refactor that we talked about yesterday.
 
@LeviMorrison that's not about enums though?
 
He's not that far yet, really.
 
enums internally still would be just instances of a final class?
 
2:54 AM
I'm not so sure.
It's something I need to talk to you and others about.
 
@LeviMorrison sure… but I think we anyway need an initial impl wouldn't be bad… we always can then tweak it a little to our needs.
 
Well, it's really not hard to implement – I had a working proof of concept in a weekend.
 
no it isn't…
 
But I'd consider what I did really hackish.
Probably should be done differently.
 
may I see your impl?
 
2:58 AM
If I still have it yeah.
Let me check github.
Needs rebased major :D
I cleaned it up more than I thought I did.
But I had a problem with opcache I am fairly sure.
A few key points though:
At this stage I want to leak as little object like stuff as possible.
Remove ordinal() and name().
Push that stuff into Reflection.
I think that alone would clean up some of the issues I had.
@bwoebi Make sense?
If we made these changes I think zend_enum_inherit_methods could be removed which is the worst of the hacky part, I think.
 
3:17 AM
I am going to rfc a unit testing framework soon. Thinking of using cmocka. But am open to suggestions...
 
Abe
by using reflection, can i set a private $property of some super class?
class A{
private $foo; // this
}
class B extends A{
private $foo;
}

$x = new B;
$ro = new ReflectionObject($x);
 
@LeviMorrison so, I am thinking about splitting it into another rfc, one refactors types into this structure without algebraic types. Mainly to implement variance. And to make the major refactoring more easily enter..
 
Sounds good.
@ircmaxell Just slip some unit tests into your refactoring work :D
 
Abe
figured it out, i guess
 
@LeviMorrison I think you won't really be able to avoid name()… and do we really need ordinal() at all?
 
3:23 AM
@bwoebi Making sure it's in Reflection is all that's really needed.
In my opinion, anyway.
I can't think of any instance where it would be needed where Reflection would be inappropriate.
Can you?
 
@LeviMorrison Don't see why we'd need an extra reflection for that
@LeviMorrison to export an enum into a database…
Don't think this is a reflection usage
it's normal usage.
 
I don't agree.
You can switch on the enum.
That doesn't require Reflection or name().
 
@LeviMorrison not require.
But I feel like this function is a bit dumb
 
@Orangepill Hi. I want to override one block from admin html. Can you help me with that?
 
switch ($enum) {
    case TheEnum::Nr1: return "Nr1";
    case TheEnum::Nr2: return "Nr2";
    case TheEnum::Nr3: return "Nr3";
}
@LeviMorrison Well, that impl looks pretty nice at a first look… Needs just a bit tweaking to do what we need
@LeviMorrison honestly, getting the name will be a common operation when storing the enum values in a permanent place. We don't want to provide everything, but we neither want to annoy our devs I think.
@LeviMorrison anyway… Would you need my help for any other RFC or is algebraic and enum all what's planned until now?
@ircmaxell when you're a sadist, why the hell did you introduce strict types then? :-P
 
3:40 AM
@Ajmerainfo Are you just trying to update which template is used to render the block?
 
@bwoebi Potentially covariant return types too
 
Abe
DID SOMEONE MENTION COVARIANT RETURN TYPES???
:p
Sep 3 at 14:17, by Abe
DID SOMEONE MENTION class List????????
 
@LeviMorrison that's fun… We'd need to decide how to verify that… or is runtime enough?
Or having it in the limbo and checking return types once the hinted class gets first loaded.
Aaaanyway… I've done far too much php-src today… and it's 5:45 here… zzzz…
 
3:57 AM
@bwoebi Hope this doesn't wake you, but this was essentially the problem the first time. If you do it all at class declaration time it requires the use of an autoloader in some scenarios. If you do it at some later point it doesn't follow how we treat other inheritance violations.
@bwoebi Yeah the zend_enum_inherit_methods and related parts are the only parts I wasn't happy with, I think.
I made sure I did stuff with zend_enum_fetch_object correctly (at least on my local machine it is correct).
I didn't document that things like _enum_compare_objects should only be called on enums, but they are local functions that aren't exported anywhere so it's not too big of a deal.
Honestly if you want to work on the covariant type stuff with @ircmaxell that may be more useful than the enum help at this stage. I need to pin down more details with enums.
It looks like the rebase was fairly clean, as I expected.
I probably need to change something with regards to semi-reserved words.
 
4:23 AM
… did we remove E_EXCEPTION?
…yes we did.
Commit fbcc82395269df8d4c862ad8eaede89beb1eb4bb with the wonderful message of: "Remove E_EXCEPTION".
Context, please? Sheesh.
 
4:40 AM
Sigh… why did we change named zend_uchar into an array of unknown values?
Actually, that statement was wrong, but I still don't know why we did what we did…
fn_flags because an array of three zend_uchar? What?
 
4:57 AM
^ That sentence is completely unintelligible. I should just go to bed.
@bwoebi I rebased the enum branch and it built and ran at least some tests correctly. I'm going to bed now.
 
moin
arg_flags is an array of uchar iirc, not sure why @LeviMorrison
I thought it odd too ...
 
Yeah, I just set them to {0,0,0} for now.
Haven't found anywhere they are actually used yet.
I think they might just be explicit padding.
The comment says "bitset of arg_info.pass_by_reference" but lxr isn't seeing it used anywhere.
 
5:15 AM
padding sounds likely, that makes sense
 
Tomorrow I am going to work on removing ordinal() and maybe adding some Reflection support.
 
5:31 AM
do you worry about how long it's taking to become properly familiar with php7 @LeviMorrison ?
I do ...
even though it's three lines of code, I'm willing to bet I got it wrong somehow ... github.com/php/php-src/pull/1528
 
5:44 AM
@JoeWatkins Yes. Within the last few months so many little things have changed.
 
> SKIP mysqli_stmt_result_metadata() - non SELECT statements [ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt] reason: Check again when the Klingons visit earth - bugs.mysql.com/bug.php?id=42490
hehe
 
And that's just the last few months.
If you haven't been following along with PHP 7 for a while … good luck.
 
yeah the barrier to entry for new contributors is much higher now, that's a bit of a worry considering the lack of active devs we have ...
 
I know everyone is hyped about performance increases but… honestly I wish we made it slower if we could make it a lot more understandable.
Some things are understandable and fast too – that's the best case.
 
maybe by the time php8 comes along, it'll be both ... we can dream ...
it'll probably just get another 10x more complex ... by which time about 5 people will really understand it ...
 
5:58 AM
Moin
 
moin
 
6:31 AM
that's not really what I said, grateful for the mention, but ... that's wrong ...
 
6:58 AM
does anyone know if auryn shares a delegated instance once it's made?
 
7:27 AM
Guys, how do you upload your repository to packagist?
 
8:15 AM
My new package. Still gotta do some stuff on it though
Like make the documentation etc
 
8:29 AM
@Orangepill Seems like no unless you explicitly tell it to with $auryn->share("ClassName"); call github.com/rdlowrey/auryn/blob/master/lib/Injector.php#L372
Not sure how it works if you need two instances of the same class in your dependency graph though
 
what type is [-256 | +256] integer ?
I want something like small-int
 
@HassanAlthaf no, I was searching for TINYINT
 
@HassanAlthaf yes, I was wrong
 
8:57 AM
Form Builder Component, my new project in PHP: github.com/HassanAlthaf/FormBuilderComponent
 
9:18 AM
@HassanAlthaf it's just for building the form, not validating after?
 
@MarcelBurkhard Just a formbuilder.
Thinking of doing a validation component too
 
0
Q: A form builder component

Hassan AlthafI would love my component to be reviewed. I am looking forward to responses mainly answering the questions: Is my code violating the SOLID principals? If so, where and how? Does my component contain any flaws? Does my code contain any security issues? Does my code follow the OOP principals? C...

 
9:46 AM
hi guyz, i have a struck with small problem. my problem is How to create new div when the content is reached fixed height of div. ? could any one suggest me how to acheive this using php
 
10:00 AM
could any one have idea about that
 
10:18 AM
"both the solutions are same" OR "both solutions are the same" ?
 
10:52 AM
Hey
hastebin.com/rebitoduma.coffee oh lol I am trying to create a formbuilder and I see some topic about it above.
What do you think about this schema structure for generating the forms and storing the data?
I would like to let the user dynamically generate a form
 
@Abe That is how I felt!
mornigns all
 
Abe
ahaha :D
morning
 
anyone has a working docker image with php7 I could play with?
 
@JaakKütt rasmus provided them. Not sure if he still does for latest rc's
 
Someone sees issues or things I might forgot to built an easy form builder with DB schema
 
10:57 AM
@PeeHaa thanks ^^
 
morning
 
11:12 AM
@Sajad second .. it sounds better
 
yo
 
Hi.
PHP7 doesn't look that hard to adapt to. :P
The only difference I notice in syntax is return types, and scalar data type hints.
 
uniform variable syntax changes will be the biggest gotcha for some
 
@AlienJB What do you mean by uniform variable syntax?
 
11:22 AM
@HassanAlthaf See the uniform variable syntax RFC
 
Oh that, I barely use any of those combos
 
11:37 AM
@Danack Their chat widget on travis-ci.com (their paid version), but usually I just write to support@travis-ci.org.
 
ta. And morning.
 
morning
 
Guys,
According to the PHP manual,
You can use spaceship operators for strings.
How does it determine if one string is greater in value than the other?
Is it with the strings ASCII code?
 
Comparing the code points, yes.
 
Alright, thanks.
Is code points the same as ASCII?
 
11:48 AM
Actually it just compares bytes, but as ASCII doesn't have multi-byte code points, yes.
 
So, is it right to say PHP determines a string greater or lesser in value considering the ASCII value of the strings?
 
12:24 PM
@HassanAlthaf if the strings are non-numeric, yes
 
is it logically/syntactically correct to use AND instead of && in logical condition ?
 
Thanks. @NikiC And yes, non numeric.
 
for example if(today =="sunday" AND month=="september"){}
 
&& === AND
Not sure if AND exists in PHP though, let me check.
 
please
 
12:27 PM
@LeviMorrison It's not used directly, the space is just reserved. See ZEND_SET_ARG_FLAG etc
 
because I though AND is only used in queries
ohh great ... it means we can use it... thanks :)
 
AND is a part of the SQL. As well as PHP, but I have never seen anyone use it in PHP, that is why, if I was you, I'd stick to &&.
 
@John 'And' and '&&' have different precedence php.net/manual/en/language.operators.precedence.php . Although it doesn't make much difference in most circumstances, I recommend not using the 'and' version.
Just because the '&&' form is the one that everyone is used to.
 
okay so lets make && as final but thanks to you guys ..
 
1:01 PM
@LeviMorrison no, it's not like I'd have sound turned on :-) Well, generally we treat inheritance violations exactly at that moment where we have the information available… just that we have currently all the information available at compile-time. if we do co- and contravariance, then obviously not. Also, as said, being able to delay it, also helps when we have interdependent classes in a same file and don't use autoloading.
@LeviMorrison Also making values an associative array then? Anyway, if you plan to separate name() out to Reflection (where I disagree), let's discuss that first with other people here.
 
1:17 PM
Sigh. Can we please have property accessors?
 
+1
 

« first day (1800 days earlier)      last day (3151 days later) »