« first day (1852 days earlier)      last day (3093 days later) » 

12:00 AM
well I got it working
IIRC the CSS was:
.methodsynopsis > .convenient-wrapping-div-ex-machina {
    display: inline-block;
}
.methodsynopsis > .convenient-wrapping-div-ex-machina > .type:first-child
    float: right;
}
.methodsynopsis > .convenient-wrapping-div-ex-machina > .type:first-child::before {
    content: '\A0: ';
}
 
12:52 AM
> Your password contains prohibited special characters. See comment on the right!
...
I didn't even use a funky character.
> Password must be 7-12 characters
Oh my... I feel really uneasy signing up for this...
 
1:09 AM
morning experts
 
> However, what people don't know is that -- given the right product -- you can transmit more than digital information through the cable. In addition to the digital information, this cable lets you transmit analog signals such as love, tea, the color green, and the feeling that you get when you first step into a warm bath
 
2:25 AM
Oh no they're trying to add a resource type declaration again
 
 
2 hours later…
Abe
4:19 AM
@Andrea what's the point of that? :|
mornings all o/
 
4:48 AM
moin
 
Morning all
 
Abe
\o
 
morning all
is it possible to send email on click of submit without any form fields?
 
5:03 AM
Good morning
 
@JoeWatkins I've been reading and scribbling hashtable notes all day. I wish I could just take a week off and make it nice.
 
it'll get there eventually ...
 
5:39 AM
Probably the best use of 3d printing I have seen so far.
7
 
Abe
@Fabor beautiful
 
6:42 AM
0
Q: Regex - Matching the specific words inside HTML tags

Kamran AhmedI have got the following HTML <option value="everyMinute">Every Minute</option> <option value="everyFiveMinutes">Every Five Minutes</option> <option value="everyTenMinutes">Every Ten Minutes</option> <option value="everyThirtyMinutes">Every Sixty Minutes</option> <option value="hourly">Hourly</o...

 
7:14 AM
Morning
 
Abe
7:40 AM
@marcio throwing it out there: would be handy to have a "callable" return type that refers to an existing method or function, like:
class A{
    function test() : A::bar{ return [$this, 'bar']; }
    function bar(int $a, string $b){}
}
$i->test()(10, 'foo');
 
 
1 hour later…
8:42 AM
@Abe What would be the gain?
 
Abe
not a great gain i suppose, it would just enforce a function to return a callable that is supposed to be an existing method. rather than writing it twice, helps me understanding it's the same thing and not two signatures that "coincidentally look the same"
 
But usually you want a callable, not a specific callable.
 
Abe
it can be a method of an interface though
interface C{ function bar(int $a, string $b);
interface A{ function test(): C::bar; }
class AI implements A{
    function test() : C::bar{ return [new CI, 'bar']; }
}
 
Mogguh
 
Abe
yo
 
9:02 AM
@Andrea Shall we pick a resource to objectify for 7.1? There's a few easy looking ones
 
Abe
dumb question: i don't often var_dump, but when i do.... how do i print a dump in a way that is actually human readable? xdebug?
die MD
would like to have nested stuff collapsible, for instance
 
@Abe <pre><var_dump(['foo' => 'bar']); is all I ever needed
 
Well that's not really a case of it being human readable
 
There are a lot of dump parsers/formatters out there though
 
Abe
@PeeHaa same, but now i'm dealing with a huge dump and i'm going crosseyed
 
9:09 AM
@Abe Every time I think I think I am going to get a big dump I RECURSION
 
Abe
@PeeHaa wat :D
 
@Abe Aye, xDebug tends to limit how much var_dump shows, it only goes X deep and renders N items before capping it off.
Just got to watch out that it renders as HTML formatting, so looking at a raw response will be gibberish
 
@Abe xdebug.max_nesting_level
 
👍
 
9:15 AM
@Sean
 
morning
 
@marcio just to let you know, I'm fixing (int) thing (there's a strange segf) and method overriding, once I'm done I'll open a PR
 
Abe
aw no precompiled windows xdebug for php7
 
Is the correct phpdoc var type for an array of Foo: array[Foo]?
 
Abe
Foo[]
 
9:18 AM
Gotcha, thanks.
Glad I caught that early
 
Abe
Foo[Bar] would be Map<(key)Bar, (value)Foo> but clearly the syntax is not supported
 
Hopefully it's not difficult to fire up xdebug for php7, they've released a working version for it haven't they?
 
Abe
yep but compiling php on windows is a pita
 
HI, I want to customize my theme in wordpress .. Please refer a step by step tutorial i search on google.. but it shows how to customize tweenty eleven and default theme..
 
If I have a class and a bunch of subclasses which "render" something, that is, all use the same method to output data which is dependent on the class, is it cheeky to have something like pastebin.com/K77hdkPP
the idea is that for testing you only test MainClass::render()
Rather than having all subclasses overwrite render() and then have to individually test those classes (for that method)
it seems... weird.
 
9:30 AM
posted on November 11, 2015 by nlecointre

/* by ryval49100 */

 
The render method in your example doesn't do anything?
 
It acts as the single public method which isn't overridden by it's child classes
while the protected non-testable method is instead
I guess it doesn't really work out that well when you think of needing code coverage
 
@Sean But what you gain by that method?
 
> Rather than having all subclasses overwrite render() and then have to individually test those classes (for that method)
 
It's a public method which just calls renderMessage. So might as well drop it and make renderMessage public
 
9:32 AM
But for coverage you'll need to do that anyway so yeah it doesn't matter
 
Exactly
@EquinoxMatt The words that come to mind are "cute" or "naive" :P
 
@Feeds or alternatively: When I'm not using Sentry or some other bug aggregation platform
Morning
 
Morning
 
9:58 AM
hello
echo'<input type="checkbox" name="checkbox" onclick=""/>';
i want if i clecked on check box, textfield be activated
 
Ask the JS room probably
 
@Trowski
hey
 
Ok guys what could the reason be? jsfiddle.net/8hq2p1jx
 
3 mins ago, by PeeHaa
Ask the JS room probably
 
no wait
Its not javascript but php based
$random = exp(rand() * log(100 - 10 + 10)) + 10 returns INFINFINFINFINFINFINFINFINFINF
where Math.exp(Math.random() * Math.log(100 - 10 + 10)) + 10 in JS works totally fine
 
10:06 AM
@Asperger can you help me to solve my question?
 
@saja if I can answer it sure
 
@Asperger i have a text field and checkbox . i want when i have clicked on check box my textfield be activated
 
Oh, you can do that using isset
 
how?
 
hang on
 
10:09 AM
if(isset($_POST['checkbox']))
{ what to do??
}
 
if ($_POST['test'] == 'something')
or if you want to be abstract: isset($_POST['test'])
 
test is textfield?
 
to activate your field change the css
well change the css from display:none to display: block
 
so
 
@Asperger But that will only be on form submit / page load.
 
10:10 AM
or simply
add the html via php echo when its set
 
can you please give me the code
 
hang on
 
realy i do not know what to do
 
Abe
@Feeds i feel observed...
 
if(isset($_POST['checkbox']) { echo "<input id='test'>something</input>"}
else{echo 'something else'}
 
10:13 AM
@Asperger what?
 
Ok look,
 
no i want my textfield be activated because i have disabled that
 
.... There's two sajad's ?!
 
look sajad go to that site and watch those tutorials
200 tutorials that covers all the basics you need to write an application
 
99.9999% chance those are terrible crap
 
10:14 AM
@Epodax oh, yes, same name!
 
@PeeHaa very well explained
For intermediate and advanced users it is crap, yes
 
Abe
@Epodax we are doomed.
 
lol
 
He can go to tutsplus after and gather complete knowledge on OOP after
 
Lol, Tutsplus
 
10:16 AM
@Abe Run for your lives! Every coder for him(/her)self!
 
It works and he clearly needs help understanding how things work, so what works for you (and you dont seem like a starter) does not work for others
 
hey look on my code
 
@sajad if you keep doing this it seems like you are looking for solutions
The solution is learning not begging, have a look at the videos or go to php.net
 
@Asperger No for beginners it is even worse than crap. They cannot know they implement vulnerable code
It's only later it is expalined what happened
 
@PeeHaa dude stuff like prepared statements can be learned
 
10:18 AM
it is a simple code bro, but im not expert in php
 
but he doesnt know the very very basics
 
Abe
[...] AND WHY ON EARTH IS VAR_DUMP OUTPUT SO ODDLY INDENTED [...]
 
Bad habits are hard to unlearn. People should be taught the right way first time.
7
 
^ that
 
@AllenJB you make a point
I think as long as those habbits are fresh though they are easy to unlearn
 
Abe
10:20 AM
@AllenJB especially because the right way is not any harder than other ways
 
@Asperger Also before people learn they will already have created 10 vulnerable aplications
 
I think knowing bad habits is even essential. If you know whats bad you can help others and even learn from mistakes
@PeeHaa I assume he is just testing programming in php on a local server
 
Maybe so, but if there's a language barrier, or just in general using wrong methods, it's even harder to help the person unlearn their bad habbits.
 
@Asperger i think also u do not know basics!
 
@Asperger Yes, and we all know what happens with test code
Rule #1 of programming
 
10:23 AM
@PeeHaa Never drink and code?
 
Neh that's rule #10ish I think. Code drunk, test sober
 
Abe
 
\o/ Where did you find my picture?
 
Abe
it can't be you, you are dutch and that's a dark beer
 
Uhm @NikiC do we currently have some way to sprintf() strings in a binary-safe way inside Zend? (no NUL-byte truncation?, with length) … at least our %.*s in zend_strpprintf() takes min(first_null, passed_length) :-(
 
10:25 AM
Yeah. It's from when I went to the UK :P
 
Abe
btw, @PeeHaa PIC
otherwise i will start to actually believe you are a software of skynet :D
 
By a man and find it in chat transcript of /html :P
 
Abe
aww. that's not going to happen :D
 
:-)
 
10:27 AM
lol
 
morning
 
Mogguh o/
 
Can't wait to get home and continue playnig Fall Out 4 :D
 
<script>
function toggleDisabled(checked) {
document.getElementById('explain').disabled = checked ? false : true;
}
</script>

<form>
<input type="checkbox" name="checkbox" onchange="toggleDisabled(this.checked)"/>
<textarea name="explain" id="explain"></textarea>
</form>
this is right answer
 
@sajad Yes, but that is also not php, that is JS.
 
hehe
 
@tereško Media is doing what media does best, talk about things they don't know the least about.
 
Abe
that's stupid but desktop market is actually slowing down to the point that innovations are getting kinda sporadic
 
@Abe it's sporadic, because there are two major manufacturers for CPUs and two major manufacturers for GPUs
 
10:44 AM
^ that.
 
AFAIK CPU's are kinda stuck because of cost/stupid physics ratio
 
@PeeHaa Well, not really… they're still getting better architectures etc. And after all, they're still getting smaller, so, more parallelization possible, just no higher clock speed… But that's why they're exploring new technologies…
 
Abe
guess when mobile computing appeared here:
that's moore's law
 
@PeeHaa well .. on AMD side they were stuck on 32nm process for long time because there are few fab labs and both samsung and intel can pay more
but they will be getting 16nm process for Zen architecture, so there will be a leap
 
@bwoebi new technologies like?
 
10:49 AM
it's kinda funny that fabs have "sellers market" these days
 
@PeeHaa don't know, but something coming into mind is like carbon nanotube switching
 
@bwoebi I didn't know they were also lookig into it for cpus
Then again carbon things will be used for everything for a while now if news is correct :-)
 
@PeeHaa well, problem ultimately is that we're so fast that memory I/O is becoming the bottleneck … which is why you can't boost much more regarding speed, just making everything parallel
 
why do I get this nagging feeling that carbon nanotubes will be the asbestos of 21st century?
 
as there's in average every four instructions or so a memory fetch (usually cache, but still)… and when your CPU is getting faster, the real speed improvements won't be very significant
The only thing I'm not sure of is why CPUs are so flat… but probably related to heat...
 
10:57 AM
@bwoebi Yep, a cube would be really bad at getting heat out from the middle.
 
@kelunik not a closed cube…
 
@tereško :)
@bwoebi When you say memory do you mean Ln stuff are actual RAM?
 
@bwoebi the reason is the same as why we still have a dollar sign in front of variable literals
 
@PeeHaa Ln
 
k
/me knows next to nothing about all that magic stuff that makes my puter go beep
Is there an actual name of the default serialization of php? the stuff that serialize() generates
 
11:05 AM
@PeeHaa I think it's literally just 'php'
 
PHP's serialization is specifically for PHP, so probably simply PHP serialization
 
Don't know if there's still a difference between the serialize() function and the serialization that PHP uses for sessions, or if that was rationalised
 
"Tard Serialization" it is
It looks somewhat like bencode btw
 
Though extensions like igbinary have their own serialization that's more efficient than PHPs
 
11:08 AM
It the serialization stuff also used internally by php?
 
@MarkBaker the name registered for serialisation in sessions is php, but that's the only place I can see a name for this lol
 
Abe
@samayo getting nodejs ruby and java ones and putting them on toilet seat covers
4
#toptip
 
Anonymous
lol
 
11:25 AM
@samayo lol giving up your address because of stickers for marketing purposes...
 
I have several Registered Serializer handlers for session: php_serialize php php_binary wddx igbinary
Not much that I can find to explain the differences
 
Anonymous
@PeeHaa Yeah, I know it hurts.
 
@samayo Better give your address to companies that already have it: stickers.digitalocean.com :P
 
Anonymous
I give everyone my neighbours address from 15 years ago :/
 
guys, i am trying to implement ajax with php
 
and successfully retrieved the results from the php script but the problem is i m unable to hide the form after retriving the results i need to do that can u please tell me where i am wrong
 
Sounds like a JavaScript Issue
 
@kelunik nice work
 
@RizwanAhmed Considering hitting hitting the shift a couple of times when typing sentences
2 messages moved to bin
 
@PeeHaa okay i will try :)
 
11:42 AM
1 message moved to bin
And please use a pastebin service after checking whether it really is a php question instead of a javascript question
 
okay thank you i will look into it :)
 
@Abe any Laravel ones? They ought to be useful
 
Abe
would be worth printing them ourselves just for that :D
 
Brb looking for a company who will make Laravel toilet paper..
 
@Jimbo Can I start throwing money at my screen yet?
 
11:46 AM
:D
 
alibaba gives me some results \o/
 
Laravel creator is utotwel on reddit… I read always towel there…
 
>
Packaging Details: Individually wrap with polythene film, then 12 rolls per perpolythene bag and carton, or wrap as per customers' detail package requests.
Delivery Detail: Within one month, timely delivery.
> 2013raw material custom designed novelty printed toilet paper
-No fluorescent ingredients mixed
-No unusual
-Goo price and q
Min.Order Quantity:
1060 Carton/Cartons 40 HQ
^ @Jimbo
 
Abe
lol
 
Wonder how successful a kickstarter would be ;)
 
Abe
11:56 AM
peehaa is already throwing money at you
:D
 
@Jimbo Put it up NOW!
Ask @salathe or that russian guy to make a design
 
@PeeHaa What what your mum said
 
Abe
or ask me, i have toilet design experience already
 
True :)
 
Abe
best work i have ever done. it's great and depressing at the same time :D
 
12:04 PM
@Abe Is that yours?
 
Abe
i did the banner :D
 
lol
 
Abe
@RonniSkansing made the plugin
 
/me is really annoyed that generators aren't autoprimed
 
@bwoebi autoprimed?
 
12:06 PM
yeah, started upon call until first yield
I need to explicitly do a $gen->current() for example
 
I want some open-source experience, if you guys want any contribution to open source, let me know. It doesn't only have to be PHP. :)
 
it causes annoying bugs…
 
@PeeHaa Okay. :P
@PeeHaa fixed an issue. :)
 
WHat does it result in now (the feed)?
 
12:14 PM
I didnt install it, I just edited the code.
Don't merge it yet.
 
That is not really contributing...
 
I'll test and confirm it.
 
kk
 
Gotta allocate that some time tomorrow.
 
12:47 PM
I'll add more tests too
I actually have them already (a lot of polymorphism-related cases) but they're in different format than phpt, I'll need to migrate them
 
@nikita2206 I spotted one issue, it looks like T_*_CAST have synonyms... Eg. (integer) or (int)
 
oh wait, it doesn't build with opcache, again
 
so, if it's callable(integer) the arg type is a non FQ class name, if it's callable(int) it's a int arg type xD
 
ugh
 
sigh
 
12:51 PM
yeah exactly
 
we could do it like this, but perhaps you guys have a better idea:
callable_arg_type_not_cast:
		T_INT_CAST	  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
	| 	T_DOUBLE_CAST  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
	| 	T_STRING_CAST  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
	| 	T_ARRAY_CAST  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
	| 	T_OBJECT_CAST  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
	| 	T_BOOL_CAST	  	{ zval zv; zend_lex_tstring(&zv); $$ = zend_ast_create_zval($1); }
first we need a rule like this to get what was lexed ^ so it would be "(int)", "(integer)", "(string)", etc
 
    ./sapi/cli/php -r 'function asd(callable(integer) $a){} asd(function (integer $i) {});'

    Fatal error: Uncaught TypeError:
./sapi/cli/php -r 'function asd(callable(integer) $a){} asd(function (int $i) {});' is ok
ok, I'll work on it
 
then on the "callable_arg_type_list" rule we get the zval and strip the '(' ')'
xD
LOL
as long as we build a "zend_ast_create_zval_ex(&zv, ZEND_NAME_NOT_FQ)" zend_compile knows what to do
 
btw, does double type hint work?
or is it only float?
yeah it's only float
 
no, it has synonyms for casting but typehint itself is only float
yup
 
ThW
12:57 PM
args
 
@nikita2206 double would be a non FQ class name too 3v4l.org/389LR
 
@marcio wait, so if it's a scalar type, I should pass ZEND_NAME_NOT_FQ to zent_ast_create_zval_ex, otherwise (if it's integer f.e.) it should be ZEND_NAME_FQ right?
 
again, keep the grammar pure
hack the lexer
 
1:30 PM
I somehow didn't realize we only have about like a 4500 executable lines in whole Aerys…
 
I have a strong urge to make a shorter option of callable as well, function foo((A, B): A $cb);
 
agree
 
actually it took a minute to get it working
 
the only issue is when we have something like (A) $cb … yeah, is that callable or just an instance of class A?
especially will it conflict with union types here
 
yeah, it's a bit hard for people, also a callable without any parameters and return type: function foo(() $cb); hehe
 
1:35 PM
yeah
function foo((()) $cb) … yeah, a callable expecting a callable which expects a callable… right? :-D
 
alternatively I could allow shorter version only if both parameters and return type are declared
haha
 
ok guys and gals
I need to make a office PC, price target: 500€
 
that's not going to be a beefy machine.
 
currently looking at whether to with NUC/BRIX or build a miniITX box
 
buy 500 eur of beer and use it when the work pc is sucking
 
1:38 PM
@bwoebi it is not supposed to be beefy
 
New job @tereško?
 
Well taking out video card out of equation makes it a lot cheaper
 
nope, a favor
I like cashing in favors, especially from medical professionals
 
Core i3 is a really solid starter without a lot of cost. Throw in a microATX MB using the i3 as the video and you should be able to make it
 
2 mins ago, by tereško
currently looking at whether to with NUC/BRIX or build a miniITX box
 
so, what I am actually looking for are recommendations for cases
 
@bwoebi (((lisp)))
 
;-D
 
@Andrea nope, hack the ast and zend_compile, keep the parser and lexer pure
@nikita2206 I guess, it's not FQ in both cases
 
@marcio that's even worse and makes the parser production messy
here's a different idea: don't support omitting parameter names
we don't allow that for interfaces, why allow it for callables?
 
1:56 PM
@Andrea that's the last option. Because callable types are inlined.
 
make callable(...): ... have the same syntax and behaviour as interface methods
@marcio sure but types alone are unhelpful for docs, parameter names matter
inlining isn't a big deal, you can put it on its own line
 
@bwoebi I'm not aware of any
Probably only via smart_str
 
@andrea btw, the only way to remove all the T_CAST tokens is by lexing '(' ("string"|"int"|"integer"...) ')' as a generic T_CAST, create a T_CAST ast and let the zend_compile_cast decide what to do based on the token value.
 
@NikiC lxr.php.net/xref/PHP_7_0/Zend/zend_exceptions.c#745 because if message contains a NUL byte, the message is truncated there…
 

« first day (1852 days earlier)      last day (3093 days later) »