« first day (2831 days earlier)      last day (2113 days later) » 
01:00 - 15:0015:00 - 22:00

1:07 AM
should I use Monolog for logging, or is there something else preferable?
 
How do I go about building my database after setting up the schema?
I'm using mysql
by build I mean adding the rows of data
 
 
1 hour later…
2:24 AM
Test Report – #76635
 
Why is it that sometimes when you take form input and then echo something about it (ie debugging/displaying error) it prints on the html page the form is on and other times it prints on a separate page?
 
@Tiffany Yes.
 
3:19 AM
... wtf? We have a test for array_slice that is like this:
$assoc = array('a'=>1,'b'=>1,'c'=>2);
var_dump(array_slice($assoc, 1));
And it expects:
array(2) {
  ["b"]=>
  int(1)
  ["c"]=>
  int(2)
}
Nonono, the documentation clearly says preserve_keys is false by default, and in other cases the tests support that.
 
@LeviMorrison String keys are always preserved.
 
No, this is not always true.
Furthermore, that's not documented anywhere.
This is one reason why PHP really sucks, not that garbage about haystack/needle.
 
> Note that array_slice() will reorder and reset the integer array indices by default. You can change this behaviour by setting preserve_keys to TRUE. String keys are always preserved, regardless of this parameter.
That's from the array_slice manual page. Am I missing something?
 
Well, string keys I guess is true, but that's crazy because it applies to a subset of associative arrays...
 
Right. If your associative array happens to use integers, all bets are off.
 
3:33 AM
This is such a stupid function.
"preserve_keys" shouldn't even be an option if it's ignored because of the data.
@Trowski I KNEW IT
> (2 days, 16 hours ago) by cmb
This was NOT documented.
I mean, thanks CMB for documenting it but GAHHHHHHHHHHHHHHHHHHHHHHHH
 
@LeviMorrison It was just updated? Hah, that's terrible.
I'm not sure I've ever used array_slice on an array with non-numeric keys.
Though preserving string keys seems logical…
 
It does except for the freaking fact that we have a parameter that controls that behavior.
Or, is supposed to control it...
 
Touché, lol
And this is why data structure libraries are so common in PHP.
 
Morning
 
4:02 AM
I guess we could add 2 new functions (array_slice_values, array_slice_assoc?) and deprecate the original...
 
array_real_slice
 
 
2 hours later…
6:06 AM
Hi, when i do the below code in codeigniter model

$from = date("Y-m-d", strtotime($sub_start_date));
$to = date("Y-m-d", strtotime($sub_end_date));

I get $from variable correctly, but i get $to variable as 1970-01-01
Any help?
I am getting both $sub_start_date and $sub_end_date correctly, but after convertion, I get $to var as wrong
 
6:26 AM
Oh since I had date like this format 14/03/2008 it considers 14 as month, that was the problem
 
7:00 AM
morns
 
7:21 AM
@mega6382 Good luck!
 
\o thanks :)
 
7:39 AM
orning
 
8:00 AM
magisterial authoritative; weighty; of importance or consequence; of, relating to, or befitting a master: a magisterial pronouncement by the director of the board.
 
Hello All Great Folks around the globe
I need some help
0
Q: Why the command prompt shows the file path of the configuration file php.ini at C:\WINDOWS when there doesn't exist any php.ini file?

user2839497I'm using Windows 10 Home Single Language 64-bit Operating System on my machine. I've installed the latest copy of XAMPP server on my machine which ships with PHP 7.2.7 I tried to execute the following command at command prompt : C:\>php --ini I got following output : Configuration File (ph...

 
@StatikStasis na, actually i am late :P
 
Wes
8:22 AM
mor
 
@Tiffany about that mysqli wrapper, for my project I decided to create a wrapper for the database connection only, it sets the connection parameters and does some query work. I'm actually working on it right now, trying to synchronise the timezone between PHP and MariaDB, although at this point in time (fun intended) it looks like I'm too dumb to understand what's going on.
 
Wes
synchronize the timezone between php and mariadb?
 
@Wes yes, much like this question: stackoverflow.com/questions/34428563/…
My timezone is CEST, which is UTC+1 and DST+1
When I query MariaDB, time_zone = SYSTEM. So when I query system_time_one, it says "CEST", which is to include DST
Yet the lowest value I can insert in a TIMESTAMP column is UTC+1 (1970-01-01 01:00:00)
 
Wes
in the database you save utc only, if your dates are cest, with php you convert them to utc, then you use them in the sql query
 
Both system and session time_zone settings read "SYSTEM", and the timezone tables are NOT populated
 
Wes
8:33 AM
in case that is not clear (my english sucks in the early morning) there is no reason in the world to have a database with the dates with multiple different timezones at the same time
and ideally you should have only utc dates
 
@Wes Thanks for trying to help, I really appreciate that. Your suggestion is also recommended in most articles/questions. But then I'm facing another issue: I always need to route the input of all queries though PHP, which means I have to rethink part of the application.
I was thinking that MariaDB/MySQL could convert this timezone thing through the session, but I found another question (stackoverflow.com/questions/1646171/…) that says I can not retrieve a unique timestamp when DST overlaps.
and I agree with you, I was just hoping that MySQL could help out with the timezone conversion
It's one of those days I like to smack my head against the wall asking myself why the !@#$ doesn't my customer has PostgreSQL... (hoping that PostgreSQL does a better job here)
So currently I'm stuck with timezones...
 
moin
 
I'm just so longing to be able to use PostgreSQL... just look at their docs, it makes you cry when looking at MySQL!
Perhaps the best thing to do right now is to ignore the whole timezone thing.
Until NOW(), MySQL worked magically OOTB.
 
8:50 AM
just store everything in UTC
 
and rewrite all my queries?
 
Jun 22 at 0:01, by DaveRandom
utc or gtfo
 
That'll take some days to weeks
 
"days to weeks" sounds preferable to the unbounded number of years you'll have to maintain it for
 
so what you (and many others) are saying, MySQL/MariaDB just sucks at timezones
"don't use it"!
reinvent the wheel yourself in PHP
 
8:53 AM
just to prove, btw, "just use UTC" is an idea that endures...
Jan 3 '13 at 23:27, by DaveRandom
@PeeHaa UTC or gtfo :-P
 
Actually, that is a familiar sound when working with PHP... sigh
 
@Code4R7 nope, it's more fundamental than, timezones are hard
however the saving grace is that you can make it someone else's problem
if the server just works in UTC, you can let the client (i.e. JS) figure it out
 
Not really, I have to maintain both the PHP scripts and the database :)
But what I do is leave the timezone calculations to Intl
 
UTC timestamps are unambiguous, and the browser knows how to convert them to something that make sense to the human using the browser
 
Wes
hey davos
 
8:57 AM
Gonna throw this in here because there are enough childish people: qz.com/1329226/…
3
 
Yeah, I guess you are all right. I'm new to the timezone subject so after reading all the arguments I was left thinking that MySQL isn't a really good database. Which is sad because it helped me for so many years.
 
Wes
lol
 
@DaveRandom if you have an interest on that article, you might also like to read some history about castrates and the likes. It isn't even half a century ago when our country stopped doing that...
Of course, officially the government denies it :)
I prefer the Greek ideal.
Though I'm often drunk....
 
Wes
tl;dr this "vote leave" thing?
 
Wes
9:04 AM
nice
 
It's obvious... as "Spaß ist verboten" I'll continue staring at my wallpaper that reads "DO YOUR WORK"
 
@Code4R7 tbh I don't have more of an interest than i.kym-cdn.com/photos/images/newsfeed/000/634/133/be3.gif
 
tnx <3
 
Aawh, she's sleeping with a retarted look... horrible... have you no taste?
 
9:14 AM
@Code4R7 that's true, but timezones are hard everywhere
 
doesn't seem hard for Intl / ICU
 
postgres and sql server are both much nicer to work with than mysql, but they don't stop you from having to think
 
one reason to start with MySQL to learn, then you start to know. Guess we all have to reinvent the wheel to know the merits of brands like Michelin and Goodyear
And we definately must not forget where we came from: youtube.com/watch?v=vAuO3bHxSpc
 
@Code4R7 using ICU doesn't stop you from having to think... hell, even using UTC doesn't stop you from having to think
timezones are a people thing, and hence are fucky
 
They're also a computer thing, so doubly fucky.
 
9:23 AM
Well, thank you all for your mental support. For the time being I'm going to ignore timezones, then the problem will be magically solved. I'll continue to think about timezones when the customer moves from MariaDB to PostgreSQL.
 
Btw, I recently had a genius idea
6
Just like with time, temperature profiles vary with location
It would only make sense to introduce a concept of temperature zones
 
stop it
 
So that 0° and 100° are normalized to the local climate
This will fix all our problems, I swear
 
LOL @NikiC
 
/votekick NikiC
 
9:27 AM
I don't know for your region, but my country has a sea climate... and in the news they talk about "gevoelstemperatuur", which translates to: how one perceives the local temperature
How would you map that? (smiley removed, Spaß ist verboten)
 
can we then get a warmth saving temperature? so it would be a cool 20 degrees all year
 
Ok, so let's say I'm storing UTC in MySQL, I'm using a TIMESTAMP column, the lowest value that can be stored is 1970-01-01 01:00:01 and a "SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);" returns 02:00:00 ? Does a TIMESTAMP store the timezone without DST offset?
 
@Code4R7 I'm not going to give you specific advice, or answer questions about times, but Derick Rethans has some suggestions on how to store time crap in a talk he gave recently: derickrethans.nl/talks/time-phpsw18
 
Wes
@NikiC :B
 
@NikiC Like relative humidity?
 
9:37 AM
@Danack Thanks! I'm reading the slides. That guy even wrote a book about date and time in PHP, didn't know that the subject was that large.
 
> Someone once told me that you can only walk halfway into a forest. Then after that, you're walking out. Well, whoever told you that was wrong. You can walk as far into the woods as you have a mind to go. It can go on forever sometimes.
 
note that when calculating forever keep in mind the y2038 problem
 
they've tackled that problem, PHP converts the int into a float (no fun intended)
but they forgot to mention that in the documentation
 
I found the problem cause.. when I set time_zone (global and session) to '+02:00' manually it works as expected, the lowest value of TIMESTAMP is 1970-01-01 02:00:01. Which means that when the time_zone was set to SYSTEM, the SYSTEM might have reported CEST, but result of the library calls from MariaDB were obviously without DST, in CET. Which is weird because Synology interface mentions the right time including DST, so whatever it was... can be fixed.
 
Wes
9:49 AM
@Code4R7 date and time, calendars, timezones, are an absolute mess
 
@Wes yes, but they're getting closer to being fixed (at least in my case)
 
Wes
nice
 
!!xkcd timezone
 
9:55 AM
 
9694
A: Why is subtracting these two times (in 1927) giving a strange result?

Jon SkeetIt's a time zone change on December 31st in Shanghai. See this page for details of 1927 in Shanghai. Basically at midnight at the end of 1927, the clocks went back 5 minutes and 52 seconds. So "1927-12-31 23:54:08" actually happened twice, and it looks like Java is parsing it as the later possib...

 
> I only noticed this because I'm collecting questions like this in Noda Time, in the form of unit tests... The test has now been changed, but it just goes to show - not even historical data is safe.
 
that's what happens when you do math with a number line that sometimes has missing numbers and sometimes duplicates
 
10:12 AM
@Wes just watched the video. Especially the last part "thank people for writing that piece of opensource code, use it and never think about it again"
 
Someone please help me
0
Q: Why the command prompt shows the file path of the configuration file php.ini at C:\WINDOWS when there doesn't exist any php.ini file?

user2839497I'm using Windows 10 Home Single Language 64-bit Operating System on my machine. I've installed the latest copy of XAMPP server on my machine which ships with PHP 7.2.7 I tried to execute the following command at command prompt : C:\>php --ini I got following output : Configuration File (ph...

 
E_PARSE error not throw in the spl_autoload_register. – #76636
 
10:33 AM
@Code4R7 I can see making a wrapper for the connection because it's not set as a state and must be passed into functions
 
Wes
is this real? twitter.com/twpolk/status/1018372408074522624 or a joke from the show
 
I'm guessing a joke, considering the person who's doing it
 
@Tiffany Cohen generally doesn't make their victims aware of the joke
"victims"... those people are just degenerate criminals FWIW
 
10:50 AM
@Wes it's a joke from reality.... have you not seen borat/ali g? youtube.com/watch?v=bspbneyaVQU
 
Wes
nope
 
Borat was pretty big in the US in '06ish
 
@Tiffany next to the object that acts as a wrapper for mysqli i made some kind of data mapper so that I don't have to use Doctrine
 
11:16 AM
@Levi if you're serious about replacing array_slice maybe do it with slice syntax, e.g. $array[2:4] ... and let it preserve keys. if people want to reindex they can use array_values on the result
 
I thought array_real_slice was a joke but he actually mentioned it
2
 
it was a joke
 
¯\_(ツ)_/¯
 
11:32 AM
Hi
Someone please help me
0
Q: Why the command prompt shows the file path of the configuration file php.ini at C:\WINDOWS when there doesn't exist any php.ini file?

user2839497I'm using Windows 10 Home Single Language 64-bit Operating System on my machine. I've installed the latest copy of XAMPP server on my machine which ships with PHP 7.2.7 I tried to execute the following command at command prompt : C:\>php --ini I got following output : Configuration File (ph...

 
@Tiffany thanks, now I'm looping through all of Cohen's shit all day long :P
 
I was going to applaud @Ocramius for being a fine mind when he said Cohen, then I checked the reference and realized he didn't mean Leonard…
 
Shut up @Gordon
 
@user2839497 stop spamming please, you've already posted it once
 
@Ocramius NO U
 
11:45 AM
Tonight we dine in hell!
 
11:55 AM
@JoeWatkins for some reason this isn't working on windows (cmd), don't know if it has to do with the \n or how phpdbg_consume_stdin_line works
And I don't know enough C...
 
Hello all
 
12:11 PM
Morning
 
I get the error
Fatal error: Uncaught Error: Class 'mysqli' not found & I have checked that I have php_mysqli.dll under ext path So I am confuse what to do
@HamZa Morning
 
@Webdev do you use wamp, xampp or any similar software?
 
Xampp
 
look in your ext folder, does it have php_mysqli.dll in it?
 
doesn't xampp have a nice menu to check which modules are enabled?
also you probably need to edit php.ini to activate it
 
12:13 PM
@HamZa how to activate?
 
^ after each modification, don't forget to restart the server to apply changes
 
yeah
 
do you have php_mysqli.dll in your ext folder?
 
there's a whole stackoverflow thread for your specific problem: stackoverflow.com/questions/666811/…
 
In php manual On Windows, for PHP versions 5.3 and newer, the mysqli extension is enabled and uses the MySQL Native Driver by default. This means you don't need to worry about configuring access to libmysql.dll.
 
12:18 PM
@Webdev verify that the php_mysqli.dll file is in your ext folder before going further
 
@Tiffany I have done
 
and?
 
Same error I get
but I want to admit that I have make some changes in php.ini
 
you didn't answer if the file exists in the folder, you've only confirmed that you've checked
 
file
 
12:20 PM
i wonder what kind of software you have installed dude
a few years back i used both wamp and xampp and can't remember encountering such problem
I hope you're using the latest package...
 
@Tiffany exists
@HamZa yes strange
 
@HamZa he said something yesterday about having another app that is using mysqli and works
 
@Tiffany 🤷‍♂
 
@HamZa chat.stackoverflow.com/transcript/message/43271521#43271521 start reading from here then keep going, hopefully give you an idea of what's been tried already
 
12:23 PM
Morning All!
 
@HamZa those don't translate well in windows 7
 
@Webdev i would say in the order of personal preference/easy-ness :
1. try wamp (personal preference over xampp, although you need to install the right MS software beforehand)
2. try vagrant
3. switch over to unix
4. docker
 
I wrote up a tutorial a while back for installing ubuntu onto a Virtualbox VM, but it uses the PHP internal server. It can be swapped out for whatever. gist.github.com/tiffany-taylor/f9ad3ffb2951e7a3098c0212f2b22164
 
@HamZa No I observed that mysql can't be started!
(service)
 
I need to fine-tune that tutorial... I wrote it for myself, but with some cleaning up, it could be useful for others
 
12:27 PM
you don't make any sense at all tbh
"Fatal error: Uncaught Error: Class 'mysqli' not found" -> has nothing to do whether the sql service is running or not
 
waw
 
@Webdev In order for PHP to be able to talk to a mysql database, it needs some kind of library. A famous one is mysqli. Once you install mysqli correctly, you'll be able to use mysqli functions/classes. "Class 'mysqli' not found" usually means that the library has not been installed correctly. Therefore you can't even initiate a connection to the mysql database.
 
clear , what your advice in this case?
 
9 mins ago, by HamZa
@Webdev i would say in the order of personal preference/easy-ness :
1. try wamp (personal preference over xampp, although you need to install the right MS software beforehand)
2. try vagrant
3. switch over to unix
4. docker
 
@HamZa I have ubuntu linux in oracle vm so...
 
12:37 PM
also possible
but again, its very weird that mysqli doesn't work out of the box with latest xampp
 
what I can replace this function with $mysqli = new mysqli('localhost', 'root', '', 'mydb');
@HamZa But I want to say it was working normally
 
!!rfcs
 
There are no RFCs in voting. Sorry, but we can't have nice things.
 
HI all, I was looking into CodeIgniter core files and in CI_Controller controller, there was an example of singleton design pattern.But when I executed it here 3v4l.org/KBBib . I was able to create multiple objects.Am I doing anything wrong OR there is an issue over there?
 
markdown is stupid
 
12:44 PM
@Webdev try to see if mysqli is loaded with: php.net/manual/en/function.phpinfo.php
 
@Exception you're doing multiple things wrong.. first off you're looking at codeigniter for examples of anything
 
@HamZa phpinfo();?
 
@PaulCrovella I was looking into it.. what thing I am doing wrong?
 
@HamZa this is my php.ini kopy.io/uobXp
 
second off you're trying to create a singleton, which is almost always the wrong thing to do
the thing you're doing right is failing at the singleton thing, so you got that going for you
 
12:52 PM
still not clear what are you saying. I mean here that, is it correct way of creating singleton object?
 
Afternoon 11
Little Leon picked a fight with a wasp over the weekend. Learned that they taste even worse than they look
 
Why use singletons? You can always create just a single instance and pass it's reference?
 
I've never found a problem where the correct solution was to use a singleton
 
1:05 PM
A singleton class in PHP typically uses a lock (static var) to determine if it has been instantiated before. I think that lock is conceptually in the wrong place, it should be wherever the developer wants to use the singleton pattern for.
 
@Code4R7 Correct.
 
1:23 PM
There are some limited uses for Singletons, but the better course of action is dependency injection
 
@pmmaga It was a joke, in classic vein of mysql.
 
user2411267
whats the best way to append data to json file, without decoding the whole file ?
 
is it a JSON object or JSON array in the file?
 
name one limited use for a singleton?
I've got an open mind, and I'm curious
 
user2411267
its json object
 
1:33 PM
You could just serialize the JSON you want to insert, remove the last line of the file, insert your serialized JSON, then append the } again
sounds hacky
 
user2411267
hmmm
 
user2411267
so it won't effect previous value
 
user2411267
and just appends on it ?
 
Unless you have it all on one line? Then I guess remove the last character instead of line
 
Mostly application registry to hold other key instances (like the DB connection instance). You can singleton it or inject it.
 
1:35 PM
Json encode your string, strip it of the first { and last } In your file, look backwards for the first instance of } and replace it with , <your json> } hacky AF. Also doesn't work if you're trying to merge with duplicate keys
 
It's not been horrible because I've been steadily moving the singleton uses out and injecting them (thank you type hinting)
 
@DaveRandom You there?
 
In body, possibly not in mind
I'm sure I'll regret asking this but... why?
 
@DaveRandom Hehe.
@DaveRandom Having problem with script
(yours)
Getting no data from readfile and its returning an error 500 (Internal Server Error)
 
well I don't even remember writing that, but go on?
OK well a 500 is always, 100% of the time, accompanied by an error message
usually in the web server error log
 
1:41 PM
I shall take a look
 
depends on your system set up
The only reason it wouldn't be is if yoy have disabled error_reporting
which you should never do
In development you should set display_errors=1
 
**Fatal error**: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1147043840 bytes) in
then the path to video
used:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
do you have output buffering on?
 
?
173
Q: What is output buffering?

AbhimanyuWhat is output buffering and why is one using it in PHP?

 
Try adding this to the top of the script: while (ob_get_level()) ob_end_clean();
 
1:47 PM
Yay!
Hold on a sec...
 
:V
 
@DaveRandom Thanks. Now I got to find the script that allows this in Safari.
 
It shouldn't matter which browser you are using
 
(Safari a little bitch when it comes to this. Needs a bunch of different info in certain order or it won't play video)
 
it's universal HTTP stuff
 
1:50 PM
Wow, a PHP script that needs 1.1 GB of RAM :)
 
@DaveRandom I know. But safari is a bitch.
 
what does it do instead?
 
@Code4R7 Is that me?
@DaveRandom Play icon with cross through it. Error: Failed to load resource: Plug-in handled load.
 
@JBis yeah I was just intrigued, my server cuts me off when I allocate about 125 MB of RAM
 
@Code4R7 Hmm so does that mean if the server is 4gb of ram and it costs ~1GB of ram. I can't exceed 4 connections at once?
 
1:53 PM
Oh, this is interesting
safari does indeed seem to be somewhat retarded in this regard
 
Apr 27 '16 at 19:28, by Paul Crovella
safari is just ie for hipsters
 
@PaulCrovella Lol
brb soon
 
laravel is absolutely doing my nut in, though I guess it's part in parcel a combination of doctrine DBAL and mysql too.
Migrations support creating tables with specific types, but not altering tables to change columns to those types, gah. I just don't get why
 
what do you mean? you can change the type of a column with laravel's migrations
 
2:09 PM
Ah I get what you mean
that's a flaw in doctrine/dbal not laravel ;)
 
Their stance on it is the unsupported types are vendor specific so there's no place for them in their package iirc
 
@JBis yes. probably my server has 512 MB of RAM :)
 
@PeeHaa you know there's a problem as soon as you see "clever"
 
can we cite EWD here?
 
2:17 PM
@PaulCrovella Yeah that got my attention and made me read the answer :P
 
it's enough to make me not read the answer
 
:-)
 
fucking jquery uses eval :|
 
@Tiffany what's so bad about eval?
 
@Code4R7 XSS
 
Wes
2:23 PM
eval can be used correctly and safely
 
@Tiffany Sorry couldn't resist. I know about eval and XSS.
 
@Wes not if I'm trying to implement a CSP that does not allow eval
 
Wes
ah, fail
new versions even?
 
the article provides an alternative though, overriding the globalEval function with {}, so that it's empty. I just need to go through all of the JS files that are used in our code base to make sure they don't use globalEval() or html()
 
2:26 PM
For starters, I'd say you don't want to use jQuery from a random CDN
 
@Code4R7 AFAIK, I don't
@Wes haven't checked, but I'm assuming updating to the latest will require some refactoring, which I can't dedicate time to right now.
 
I never actually used jQuery.. always did everything in vanilla JS, because of Joel's article about leaky abstractions. And jQuery isn't really needed anymore with HTML5 and CSS3/4, is it?
 
I'm working with a legacy code base that wasn't written by me.
It was written around six or so years ago, and jquery was used heavily.
lovely, .html() is used pretty heavily
 
That sounds horrible...
 
yup
 
2:32 PM
@Code4R7 It still helps, but it's not as needed thanks to Microsoft browsers all supporting the same standards
Also ECMA adopted some of the things frameworks were doing. Like prototypeJS's .bind
 
if I was comfortable enough with ES6, I would refactor out jquery altogether, but as it is, my focus is getting the code working on 7.2, but I need to take a bit of a detour to get the CSP ready for pen testing later this month
 
well... standards in browsers is nice of course. But I fear it's too little too late, the vast majority uses smartphones and apps, and Google won the battle with noble open standards (also for their own benefit to battle Microsoft), whereas Microsoft tried to protect theirs.
so it's only natural Microsoft had to break with IE11 and comply with Edge
and now everybody on the good old internet is bound via Google, Facebook, Twitter...
Owh well.. as long as I can write programs that run everywhere instantly without having to recompile or download them, I'm happy.
 
I see Edge as a legacy split, just like Chrome forked Blink off of Webkit so they could ditch a ton of old junk
 
Yeah, Microsoft had to give up their 'junk' like ActiveX object etc. in favor of following standards. That really was a relief to many of us developers.
Now we can try new exiting stuff like the Web Audio API, although Microsoft also invented lots of useful stuf that made it to the open standards we have nowadays.
Actually Edge came with Windows 10 where MS also ditched a lot of old junk, like the possibility to play Age of Mythology. But notepad still runs!
 
@Tiffany I've just set our CSP to Report Only for now. I think the only issue I've noticed so far is that issue with jQuery evaling.
 
2:45 PM
So I'll admit it, I'm a fan of AOM.
Now I have to resort to 0 AD.
 
@DaveRandom A variation of this script worked
13
A: PHP: iPad does not play MP4 videos delivered by PHP, but if accessed directly it does

Kai NoackWow, that was tough! 1. First major Problem It turned out to be no encoding problem but a problem with the mp4 container header set during the video conversion process - iPad has obviously a problem with MP4 videos that are prepared for progressive streaming. First I discovered that in a conv...

Have to find it
 
@JBis Do you use composer?
 
@Tiffany Did you try that workaround?
 
@DaveRandom I don't think so.
Unless its implemented by default.
 
@JBis you should look into it, it's too much to cover right now but it will enrich your life in the long term
give me a minute or two, w.r.t the "fix"
I was going to mention that before but had to do scrum
 
@DaveRandom @jjok Thanks.
@DaveRandom I did modify that script months ago (late 17 maybe) to make it work but I can't find now
Will keep looking
 
@JBis download v0.0.3 from here and put the src directory in the same place as your script, and rename it to Resume
 
@jjok yeah, ours is set to report only as well, but we'll be hiring a vendor to do pen testing on some of our servers, web server included, and I want to have the CSP activated before they do the testing.
@jjok I have not, because it specifies that .html() uses globalEval, and I've found usages of .html() in our code
for now I'm going to add 'unsafe-eval' but I've created a ticket for myself to remove it ASAP. When I'm finished with the other crap I'm working on, I'm going to focus on getting eval usage removed, probably using that globalEval override on top of it so that I can remove 'unsafe-eval'
 
@DaveRandom What is this?
 
@JBis A library that handles HTTP Range properly
 
2:57 PM
assuming I don't spend the time between now and switching to the new web CMS platform refactoring the code base...
 
@DaveRandom Is it worth the installation?
@DaveRandom The other script works with a bit of modification.
 
@JBis it handles the specific problem you have now, it doesn't handle other stuff that may end up giving you issues with other browsers, maybe now, maybe in the future
implementing part of a spec is liable to bite you at some point
Also, using libraries is generally better than having a unique snowflake implementation for each project, for numerous reasons
 
01:00 - 15:0015:00 - 22:00

« first day (2831 days earlier)      last day (2113 days later) »