« first day (1785 days earlier)      last day (3146 days later) » 

12:24 AM
Mornings to all
 
TIL why we need move_uploaded_file() and rename() isn't enough: upload_tmp_dir might be outside of any open_basedir path.
 
12:43 AM
@bwoebi ...huh
@bwoebi tbh having uploads be "files" seems unnecessarily restrictive and likely to cause trouble
storage should maybe be an implementation detail, I think
 
Happy not friday anymore all \o/
 
1:06 AM
happy weekend
 
@PeeHaa Go to US! There it's still Friday! quick!
 
2:05 AM
well, it's officially the weekend, which means two days of dead time where job-hunting is pointless
 
@ScottArciszewski If you're in the US 3 days. Monday is Labor Day.
 
oh shit
you're right
oh well, I might as well focus on getting some work done on a side project then
 
2:39 AM
 
 
2 hours later…
4:26 AM
@NikiC thanks ... I'm not sure how I'm going to solve it, I plugged the leaks that let the old solution work and don't want to open them up again ... I'll figure something out, probably ...
 
5:09 AM
My first Android app on Play Store: play.google.com/store/apps/…
 
5:26 AM
Hi room
any one can help me for this Q: stackoverflow.com/questions/32409664/…
 
5:44 AM
AHOY HOY
 
hi
@ircmaxell: see my Q?
 
moin
 
morning
 
-2
Q: Codeignter Custom Encryption Library Fatal Error

Shiv KumarPlease someone help on following error in codegniter: Fatal error: Call to undefined function mcrypt_get_iv_size() It works fine on localhost but not on live server. Encryption Library class Encryption { var $skey = "SuperKey"; // you can change it public function safe_b64en...

sigh
if anyone can help me find the source of this shitty crypto code, I'd greatly appreciate it
I want to seek & destroy
 
5:55 AM
they prob wrote it
 
yes, but what was the inspiration?
mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->skey, $text, MCRYPT_MODE_ECB, $iv);
I see things like this all the time, but have never found the book, video, or blog post that tells people to use this
there has to be something I'm missing
there's no way all these people can be making very similar mistakes without being misled by the same source
 
@NikiC
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
[New Thread 0x7ffff2544700 (LWP 23894)]

Breakpoint 1, pthreads_threaded_unserialize (object=0x7ffff6058808, ce=0x10452f0, buffer=0x10931cf ":140737321014048:}}", buflen=17, data=0x7fffffffa0c8) at /usr/src/pthreads/php_pthrea
 
any one help me fot this Q:stackoverflow.com/questions/32409664/…
3
Q: separate html from php comments class

NewCod3rI found this class for thearded comment using php and MySQL: public $parents = array(); public $children = array(); /** * @param array $comments */ function __construct($comments) { foreach ($comments as $comment) { if ($comment['parent_id'] === NULL) { ...

 
krakjoe@fiji:/usr/src/promises$ php example.php
The meaning of life + 2: 44
no cheating this time @NikiC ... thank so much for helping out with that ...
 
6:10 AM
@ScottArciszewski 99points.info/2010/06/… i think this is your culprit ;p
 
Best T-shirt ever. http://t.co/OuZf7XjwTc
 
I have just crashed gedit, for the first time ever I went too fast for it ...
 
hehehehe
 
@JoeWatkins When I call Thread::kill(), what exactly is happening?
 
@Trowski scary things :o
 
6:15 AM
Does it send a signal to the thread?
 
yeah
the handler bailsout ...
 
I have an event loop running in the thread, and calling Thread::kill() doesn't seem to stop it. Should I be listening for something?
 
it's actually not dangerous, except in the sense that writing code that relies on kill is wrong ...
 
Yeah, I know, but I want kill to at least work.
 
eww
good find
 
6:16 AM
what is it doing in the event loop ?
 
Polling a socket.
 
it might not be doing something that is cancellable
using what though ?
 
Umm... in this case I think stream_select(). Depends on the implementation being used though.
 
actually what's wrong with code why it's insecure?? @ScottArciszewski
 
ECB mode + unauthenticated (no MAC)
even if you switch to CBC mode, it uses MCRYPT_RAND for the IV (ECB mode discards the IV) instead of MCRYPT_DEV_URANDOM
and it's still not authenticated
finally, MCRYPT_RIJNDAEL_256 is a non-standard cipher (it's not AES but many people think it is)
 
6:19 AM
if the underlying lib blocks signals (or the SAPI above it actually), it won't matter what you send, or what it is doing, if the underlying lib is not at a cancellation point, then it can't recv signals either, if the code is running on windows, it doesn't support it well either ... it's really a bad idea to use kill, if it doesn't work, it'll be one of those things ...
we can't change any of those things ...
 
oh, and one more thing: it has a padding oracle (via trim())
paragonie.com/blog/2015/05/… <- it basically hits everything I complained about in this post
 
@JoeWatkins Alright, I'll have to think about how to approach that then.
Generally kill shouldn't be necessary anyway.
 
no it really shouldn't ...
 
But I'm trying to make the library as simple to use as possible. Right now if you fail to stop a worker before the script ends, the script just hangs (because the event loop is still running in the thread).
 
maybe something we could look at doing is abstracting signals for threads though ...
but it's such a mess, there's no way to tell how whatever you are interacting with is dealing with signals, php, libev/libuv, apache, they all do something ...
I'll think about it ...
 
6:24 AM
Signals are always such a mess... but if you could find a solution that would be great!
What signal is it sending to the thread?
 
oh did you try disabling zend signals ?
user signal
it might be that, because pthreads didn't use zend signals, because it was broken until the other day ... but the kill() test passes in the test suite and I have them enabled right now ...
still might be worth a shot ...
 
Heh, if I add a listener to stop the loop on SIGUSR1 then it works.
 
you have zend_signals enabled ?
brb, gotta take misses to work, she's squeaking at me ...
 
@ScottArciszewski thnks for links reading the articles ?? Then can better understand the what's wrong with above code
 
@JoeWatkins Yes, I'm trying to make it work with some of the default builds.
 
6:31 AM
I emailed the 99points person
 
SO should have a list of restricted websites where outdated and worst material exist for learning
 
6:46 AM
@JoeWatkins Seems the issue is that I just need to disable my own signal handling in the loop.
 
@Trowski ah I c
 
Not a lot of reason for a thread to handle signals.
 
Abe
mornings
 
morning
 
Abe
7:03 AM
@Sjon did my script kind-of broke 3v4l? :P the page refreshes now. i want to write a better fix, ping me when you are around
 
Abe
7:33 AM
@Gordon can i bug you for a sec? apparently i'm prevented from creating new rooms (i don't have "create a new room with this user", for instance). why that? what have i done :P
 
@Abe you've been kicked several times from HTML / CSS / Web Development. Maybe @MadaraUchiha can clarify what that was for.
 
goooooood morning
 
Abe
oh. i've been kicked by other room owners. it's a fun sport, kicking each others xD we didn't know about these consequences
 
@Abe I am removing the ban
should work now
 
Abe
thank you very much :P
gotta love documentations that look like:
/**
 * Gets the markers.                YOU DON'T SAY
 * @return array                      NO WAY
 */
function getMarkers();
i find them offensive
// creates a new LinearSelection instance              WOW! i wouldn't have guessed that
$ls = new LinearSelection($direction);
 
7:49 AM
declare numeric as int | float;
declare Iterable as Traversable | array;
declare ArrayLike as (ArrayAccess & Countable) | array;
declare Something as 1 | 2 | 3;
thoughts?
declare imagetype as "png" | "gif" | "jpg"
 
ooh, for type hints?
 
yes
 
I'm guessing to target 7.1
 
or 8
 
I'd find that incredibly useful!
yeah
 
Abe
7:53 AM
@ircmaxell i like union/intersection types. but why named?
would prefer way more:
function test(A|B|(C&D) $foo){}
but i don't know if it's any harder to parse/validate
 
that's less readable
naming them lets you put it up near namespace and use
 
Abe
i believe they would be autoloaded @ScottArciszewski because the same alias can be used by several classes
 
I'm leaning towards keeping them per-file
meaning that you declare the type at the top of the file.
 
as far as using it across multiple files, there is that use-case, yes. But there's also going to be HUGE potential for collision (imagine the number of numeric that will be made)
 
7:57 AM
type hinting already works this way with classes
use Foo\Bar\Baz as Something;
function whiskey(Something $x) {
}
 
Abe
@ircmaxell how hard is validating compatibility of:
declare ArrayLike as (ArrayAccess & Countable) | array;
versus
declare ArrayLike as (ArrayAccess | array) & (Countable | array);
they are the same, just written different ways. the latter being funky
 
it's just descending trees
so in an OR, you validate the left side, and if it's OK, then you're good, otherwise you try the right side. With an AND, you validate both sides. And you simply recurse
 
Abe
i didn't mean validating an argument, but validating the two signatures, like:
declare AL1 as (ArrayAccess & Countable) | array;
class A{ function test(AL1 $foo){} }
declare AL2 as ArrayLike as (ArrayAccess | array) & (Countable | array)
class A1 extends A{ function test(AL2 $foo){} }
or is it the same?
 
initially, I wouldn't support that. But it shouldn't be horrible to implement a check to do that
 
I don't like the per-file bit
 
8:02 AM
@JoeWatkins so you'd just allow collisions?
 
we can detect and throw a compile error ?
 
s/allow/die because of/
I guess I just see it as a fancy use
 
actually, screw declare: use ArrayAccess | array as ArrayLike
 
Abe
@ircmaxell i'm working on that too, and i have totally no clue on how to do it
reminds me of P versus NP :P
 
8:04 AM
working on it?
 
that's nicer
 
@Abe it's not P=NP
 
a type is a type is a type, you can't have a class named Foo in two files that mean totally different things ... I don't see a good reason to allow it for union/composed types
 
@JoeWatkins sure you can
use imports let you do exactly that
 
in different namespaces, but they are different classes
 
Abe
8:06 AM
not in C, @ircmaxell i'm for fun working on something that recalls java/c#'s reflection classes
 
\Foo I should have said ..
 
to be fair, I'm also talking about opening the door unnamed union/intersection types in signatures
so function(int|float $abc) : int|false {}
so the use syntax would just be sugar
 
what's a good reason to allow two files to declare a union with the same name and different types ?
 
not having to have a symbol table entry for it
just like how use works today
the name only has meaning in context..,.
 
Abe
@ircmaxell related, how would a generic class implementing the same interface twice but two different type arguments look like?
interface C<T1 is Foo>{ function test(T1 $foo); }
class CC implements C<Foo1>, C<Foo2>{ function test(Foo1|Foo2 $foo); }
would this work with named ones?
 
8:11 AM
It wouldn't work in any case
also, you'd just implement C<Foo1 | Foo2>
 
Abe
i don't see any other method overloading alternative than that
 
I can't imagine the named implementation, I can imagine unnamed unions as parameters/returns, but not sure how names will work ...
 
method overloading?
@JoeWatkins exactly how use is today, a purely compile-time construct for sugar
 
Abe
:25522869 in java would be:
class CC implements C<Foo1>, C<Foo2>{
    function test(Foo1 $foo){}
    function test(Foo2 $foo){}
}
 
@Abe yes, and THANK GOD PHP is not that dumb
 
Abe
8:13 AM
java/c#/etc :P
 
method overloading is one of the worst ideas in programming. Right behind nullability
 
Abe
i agree
 
I don't really know if I like that idea ...
namespaces are that ... and they are shit ...
 
it's kind of neat when you first encounter it, but all it has ever done for me was make auditing very painful
 
8:14 AM
I probably could have shaved an hour off the last audit I did if they didn't overload the same method 4 times
 
@JoeWatkins what does adding them to the symbol table buy you? Honestly? If there's a good answer I'm open to revisiting
 
still thinking about it ...
I don't know ...
 
I don't know either. And that's why I'm leaning to compile-time only, makes a few things easier, while greatly simplifiying the patch
 
Abe
@ircmaxell why? Comparable would need that
 
reflection would surely be better ...
 
Abe
8:16 AM
class Foo1 implements Comparable<Foo1>, Comparable<Foo2>{
    function compareTo(Foo1|Foo2 $foo);
}
 
it's not going to be compile time only
 
@Abe No it wouldn't: class Foo1 implements Comparable<Foo1|Foo2>
 
that's not possible is it ?
 
@JoeWatkins the named part. The implementation will still need to handle the algebraic type
and as far as $foo instanceof Comparable<Foo>, you could add a rule for instanceof with a generic that checks the type would satisfy the union.
 
Abe
@ircmaxell oh i'm not talking of the syntax, just want to know if it's going to be possible with named ones
 
8:19 AM
if what's going to be possible?
 
Abe
declare Foo12 = Foo1 | Foo2;
class Foo1 implements Comparable<Foo12>{
    function compareTo(Foo12 $foo){}
}
 
why wouldn't that be possible?
 
I'll wait for you to start a patch, it's unclear in my head ... I like the idea though, obviously ...
 
@JoeWatkins I'm trying to work out the semantics prior to patch. That way I write it "once"
:-P
 
then I'm useless, I might not be tomorrow ... or later today ...
 
Abe
8:21 AM
@ircmaxell because of the contravariance part
nvm. i got it
anyway, i like it. also named is not that bad but i'm not sure if it should be per file
 
Every time a developer says "temporary workaround" I remember this list. http://t.co/OpI48BvJxo
2
 
Abe
eheh
 
Is it normal to see a lot of warnings when building php from source?
 
Abe
namespace LOL;
use NS\{Foo, Baz};
intersection type A{
    Foo, Baz;
}

namespace ROFL;
use LOL\A;
use OMG\{Bar, Qux};
union type B{
    A, Bar, Qux;
}
 
8:38 AM
> see a forum thread titled "wordpress security plugin"
> immediately find trivial SQL injection flaw in it
lulz
 
Abe
type IntString = string | int; what would happen with weak STH @ircmaxell? would that convert to string or int? do we care?
 
@Abe if it doesn't match either, try to convert from left to right, I would think. So 12.5 would become "12.5", but 12 would stay 12
 
Abe
type IntString = string | *int; though i don't think php should even care of that, since both are valid according to the type
 
huh?
 
Abe
8:55 AM
sorry. my english sucks :P i mean we don't care to which type the input must be converted, since both are valid
is it?
 
we still have to pick one
 
Abe
allowing the user to decide which one would be the best option, but is it worth it? type IntString = string | *int; (prefers int over string)
also that's something you want to decide in the implementation rather than when you declare the type
class A{function baz(string|*int $foo){}} // this prefers scalars to get converted to int
class A1 extends A{function baz(*string|int $foo){}} // this prefers string instead
 
I don't think that's necessary
 
Abe
yeah
but my crystal ball says that some weak types fan will bitch about it :P:P
 
let them bitch
adding a pointer symbol won't fix that problem
 
Abe
9:04 AM
pointer symbol?
 
so... I compiled php from current github master branch, copied sapi/cli/php executable to some other random location, and I am trying to implement a little standalone cli app around it (which would use php -S dev server). How venerable is this to broken links to shared libs?
awal@bookstro:~/Documents/experiments$ file php
php: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=e59367e94c6c5d2f0fa6be702d1ce8ab4b2181e1, not stripped
 
depends what exts you built
ldd php will tell you what libs it relies on ...
better just use --prefix and make a proper install I think
 
Abe
stop remind me that i should be learning C! :D will do, once i get the time, about steptember 2074
 
@JoeWatkins didn't get that :( you mean install php on the system where the app will run? that isn't an option for me :(
@JoeWatkins aha! that really helps. looks like there isn't any special lib to depend on
I think libxml2 is the only one which might not be available everywhere
 
9:20 AM
confusing people are confusing ...
 
lol, Tor Blocker grabs IPs over HTTP
 
Abe
@ircmaxell another thing to consider is recursion. imagine the following:
`function setPostData(array<string|*r*> $foo);` where *r* is `array<string|*r*>`
though i don't think all this stuff is of primary importance, but maybe it's something that you want to take into account now before you get started
also cc @LeviMorrison ^
 
9:49 AM
mrnning
 
moin
 
mornigns
 
1
Q: jquery validate is not working on wordpress plugin

Kakul SarmaI am trying to create a contact form plugin with jquery.validate.min.js But Its not working , have look on my code plugin page : add_action('wp_enqueue_scripts', 'load_frankly_script'); add_action('validate_hook', 'load_frankly_script'); function load_frankly_script(){ wp_enqueue_scri...

 
 
1 hour later…
10:58 AM
 
11:15 AM
Mornings
 
moin
 
Abe
11:32 AM
 
11:47 AM
Hello everybody
 
@JoeWatkins yay!
 
12:04 PM
method overloading is one of the worst ideas in programming. Why ??
Function overloading exhibits the behavior of polymorphism
 
Abe
it is definitely a bad idea for interpreted languages though
 
how??
Overloaded methods can make code much less readable.
There should be very much bigger point behind why method overloading is worst idea but i don't know how can i justify??
 
Abe
12:21 PM
@AnmolRaghuvanshi because in an interpreted language the vm will need to check which version of the method to call, every single time
in a compiled language, that wouldn't happen
 
usually "I don't like it" is a good enough argument for me
3
 
@Abe thnks very simple and clear answer.
@tereško best argument ;p
 
@AnmolRaghuvanshi I don't think overloading is a bad idea. It's a big part of polymorphism and makes it possible to adhere to the design principle of code that is open to extension and closed to modification. In an imperative or procedural paradigm you tend suffer from something called spaghetti code when you don't have good design patterns in place. The same can easily happen in an object oriented one, but instead it becomes lasagna code where you have layers of complexity instead.
 
emm .. what definition of "overloading" are you people using ?
 
Layers make abstractions hard to conceptualize through code, but they do make code easier to maintain. I think what you're suffering from is poor documentation, which can usually help better with the conceptual part.
 
12:32 PM
class Overloaded {
    function test(Thing $a) {}
    function test(Different $b, Something $c) {}
}
this is overloading
 
Yes, but you can't do that in PHP, obviously.
In PHP it's more common to override methods in children, but I guess magic methods are referred to as overloading sometimes.
Probably would help to clarify that I'm referring to overriding methods.
 
that's not overloading
 
Correct, there is no true overloading in PHP. I was inferring that he meant overriding.
 
and "overriding" must adhere to LSP
 
^ what that
 
12:34 PM
Google it.
It's the L in SOLID
 
well @tereško always have better argument why he hate such things and why not be used \0/
even oracle docs on method overloading didn't defined method overloading in that way
 
When you think about it, overloading is only really useful for when you don't have good encapsulation through a clean interface.
That's kinda what overloading tries to do for you, really. Hide away the changes you make underneath so that a method could have multiple signatures and thus provide different behavior based on signature. Another way is to just create an interface and implement it for different types.
There's all kinds of ways to achieve same/similar objectives in OOP designs depending on what you like.
 
I thought overloading was there to replace errors with subtle bugs.
 
I think it's better to learn about them all rather than decide which to hate and which to like so that when you're presented with one or the other in code you understand the trade offs of each.
@PaulCrovella You mean fatal bugs?
Not so subtle :p
Overloading may make sense in a language like C. I think more modern languages have found some more expressive ways of doing it, but at the end of the day software design is about knowing what matters to you and making the right trade offs to get the best design.
 
12:50 PM
I have actually used it in java, for constructor and operator overloading
 
why this is invalid url www.sdfsd.com according to filter_validate_url ?
 
missing http://
?
 
Stupid LALR(1) parsers not being clever enough … ^^
 
true i just missed to include http , thanks
 
@ircmaxell do I sense a blog post coming ?
 
12:56 PM
good day everyone. how do you guys debug php7 in phpstorm? also is it possible to use phpdbg in phpstorm?
 
TIL %glr-parser (bison grammar directive)
 
Could you guys do me favor and check if my answer on this question is well written and secure? I've spend hours on it so I rather not see it go to waste: stackoverflow.com/questions/32410732/…
 
oh I see, it is the answer
 
Yes. Ofcourse I've tested it to the best of my abilities, haha
 
Bobs-MacBook-Pro-2:php-src-X bob$ ./sapi/cli/php -r 'var_dump((($a, $b = 10) ~> $a + $b)(5));'
int(15)
^ with %glr-parser \cc @NikiC (might be of some interest for you)
but that's cheating actually :-D
 
1:08 PM
@icecub I am not really seeing any validation of the data
what stops anyone from uploading a script?
 
@icecub actually if you share the image link of facebook, anyone can view it
 
Not knowing the filename on the server at all. That stops them :)
 
All files are randomly generated .tmp files linked through the database by fileid
 
@icecub the other way is to load the image through php. That way you can check if the user has access to the file or not before serving it. This will be slower though.
 
1:10 PM
(But please, don't point that %glr-parser out on internals. I very much prefer having a pure LALR(1) parser.)
 
@andho I didn't do that according to security issues mentioned in this pdf. I've follow it completely: exploit-db.com/docs/164.pdf
 
@icecub and what stop anyone from brute guessing the filenames?
 
@icecub this pdf gives exactly the same solution.
 
Implementing a .htaccess on the folder itself that blocks all except localhost. Unfortunetely that was the only part I couldn't get myself, as mentioned below
@andho Ah, I must have misunderstood that part then. Something about file extensions parsing through the php interpreter wasn't completely secure
 
@icecub yeah, just have to be secure on that part. just make sure no insecure files can be put into the folder, and no other folder will be served by php. Simple eh? :P
 
1:21 PM
Ye I agree. I think it's quite secure the way it is. If backed up by a decent .htaccess file ofcourse. But perhaps I could still improve it somehow by adding a check to the filestypes
A probebly even safer solution would be an uploads folder outside docroot. But the idea was to write something that doesn't require root access to the server
 
@icecub tempnam can give you the same not random string when multiple people are hitting it at the same time
 
@RonniSkansing Alright, so I should add a check if filename already exists?
 
1:41 PM
Morning
 
@RonniSkansing Alright I've removed tempnam and updated it with a written function found on php.net
 
Morning PeeHaa
 
hey
who here?
Who worked with WebSockets?
I have a problem ..
 
Alright. Added the .htaccess file as well now.
 
2:09 PM
Is it valid to use wildcards in here?:

`
$whitelist = array("image/*", "video/*", "audio/*");

if(!in_array($_FILES['userfile']['type'], $whitelist)){
die("Only image, video and audio files are allowed!");
}
`
 
No and die is the perfect way to make your API unusable
3
 
Sorry, tried to wrap the code but as you can see, my browser doesn't like it
So instead I should use exit?
 
No. That's the exact same thing :P
 
Erm.. right xD Well just echo and start wrapping everything in statements than? :P
 
Just handle it gracefully
Yeah
 
2:14 PM
Alright. Any idea on how to solve the wildcard thing? Perhaps strpos or something?
 
@PeeHaa alternatively I propose posix_kill(getpid(), 9);
 
@icecub you should read a book about how to write code in PHP. Asking people for which functions to use for basic stuff is not a good use of your or their time.
 
@Danack I think I'mt quite alright with php. Just not used to working with mime types and wildcards instead of writing them all out. Sometimes you just miss that simple point to finish it. Just making an assumption purely on a basic question is kinda unfriendly imo.
 
2:30 PM
@icecub No. The code you posted shows that you don't know what in_array does. And suggesting that maybe strpos could work again shows that you don't know how that works. Those are two basic functions.....not knowing how they work shows that you don't know how the basic library works. Learning that stuff is best done from a book or online course, rather than continually asking questions.
And for the record - the way to solve that problem would be with 'pattern-matching', which again, is something best learnt from a book, tutorial or online course, rather than just trying to struggle through it.
 
@Danack The reason for `strpos` was because of this idea (which works, just doesn't feel very elegant):

$whitelist = array("image/", "video/", "audio/");

if(strpos($_FILES['userfile']['type'], $whitelist[0]) === 0 || strpos($_FILES['userfile']['type'], $whitelist[1]) === 0 || strpos($_FILES['userfile']['type'], $whitelist[2]) === 0)
 
You might also want to learn about loops.
 
Nah. I think I'll just use preg_match() as you suggested. A simple "use regex" would've been sufficient. Thanks :)
 
user image
2
 
2:47 PM
there is a english idiom with this means: "ok I accept your idea" . its phonetic is like this: "fer enough", anybody know what is that ?
 
Abe
 
@Abe tnx pal
 
@Abe btw they changed the logo to save money: gizmodo.com/…
which makes me sad.
 
Abe
don't think google has money problems :P but perhaps they did that for faster loading pages
 
I'm pretty sure the largest cost they have is bandwidth cost. They introduced SPDY and then got that renamed to HTTP2 just to save on bandwidth code.
"for faster loading pages" - it's cached.....99% of the time...
 
2:58 PM
@Abe What are these *?
@Danack Why?
 
@LeviMorrison I don't like the design, and the new design is based off bad motives. A company that is making huge profits (in my opinion) making the world worse, so that they can make slightly more profit.
 
any of you use digitalocean?
 
"I can save you hundreds of thousands of dollars a year with this change, boss."
^ How I imagine it went.
I actually think it's a fine reason to change your logo shrug
 
@bwoebi lol
 
@LeviMorrison yes. That is very probably how it went. And that is how companies go from being good to being shitty. Every now and then someone sees how to do something that will result in them getting a nice bonus and for all the things that are trackable by accountants, the company will be better off. But not every code can be tracked by accountants - and having a infantilised logo is one of them.
 
3:19 PM
lol this is so true
 
64kB - pfft. 4kB is where it's at.
annoying sound warning
 
Jesus those demos are so cool
 
3:35 PM
@Danack no, they introduced SPDY for faster downloads
bandwidth isn't the issue. Google runs one of the highest-bandwidth sites in the world (YouTube)
 
@Andrea as well as. Faster downloads through the multi-plexing, but the header compression stuff is solely to save bandwidth.
 
@Danack less to download is faster too
 
Also, a lot of the adverts they show are very low margin. i.e. having to show tens of thousands of adverts to make a dollar of profit. Being able to save a tiny cost per ad shown does make a difference to the profitability of those ads.....and to Google's profit line.
 
@Danack it saves bandwidth but that's not the purpose. It speeds up downloads.
Google seriously cares about milliseconds per page load. It directly affects their bottom line.
 
Compressed headers are really necessary once you introduce a CSP header. ^^
 
3:53 PM
Is it possible that opcache fucks up something with return types?
cc @LeviMorrison
With opcache:
> Fatal error: Uncaught TypeError: Return value of CodeCollab\Router\Router::addRoute() must be an instance of FastRoute\RouteCollector, instance of CodeCollab\Router\Router returned in
Without opcache it works like it should
And yes it does indeed return an instance of Router instead of RouteCollector
Method signature:
    public function addRoute(string $verb, string $path, array $callback): Router
Even stranger is that when I enable opcache on cli it does also work as it should :|
halp!?
 

« first day (1785 days earlier)      last day (3146 days later) »