« first day (2534 days earlier)      last day (2408 days later) » 
00:00 - 12:0012:00 - 00:00

12:00 AM
@FélixGagnon-Grenier indeed
however, I liked the 21th season of south park
 
lol. that one amongst the others ;)
 
agreed :-)
ohai @Andrea, noticed red looks good on you
 
^^
 
/me likes
 
it's my favourite part of the spectrum
 
12:10 AM
I can relate :-)
 
and there's a lot of fictional (read: anime) characters with red hair that I like, so…
 
To that too, sort of
 
Wes
soon.
 
:P
 
Wes
know the episode? :D
 
12:19 AM
Nope I don't remember
 
Wes
cartman has a long history of (literal) wars against gingers
 
:D that I know
 
Wes
sometimes he gets to lead them too
 
lol
I remember one where cartman wakes up as a ginger
 
Wes
yes that is the one where he gathers an army of gingers to kill all the non-gingers. except that kyle and the others have just dyed his hair red
 
12:26 AM
lol I found
!!wiki Ginger Kids
 
"Ginger Kids" is the eleventh episode in the ninth season of the American animated television series South Park. The 136th episode of the series overall, it first aired on Comedy Central in the United States on November 9, 2005. The episode was written and directed by series co-creator Trey Parker. It caused controversy after its ironic premise was misunderstood by people who acted violently against redheads. == Plot == For a class presentation, Cartman delivers a hate speech, against what he calls "gingers": people with red hair, freckles, and pale skin due to a disease called "Gingervitis". He...
 
searching for that episode
 
<3
 
Wes
south park is free to watch online :P
so funny the scene with the non-ginger parents with the 3 ginger kids
 
12:33 AM
lol
I just saw that bit now
 
Wes
there's more afterwards if i recall correctly. damn i love south park
 
 
3 hours later…
3:56 AM
morns
@Andrea as in Shiny Chariot from Little Witch Academia? :P
 
4:50 AM
posted on September 23, 2017

New Cyanide and Happiness Comic

 
5:01 AM
oi
 
yo
 
5:41 AM
how are ya
 
5:54 AM
Good morning everyone ^^
 
Wes
goooooooooooood morning room eleven (with robin williams's voice)
 
trying laravel in docker for the first time
 
6:13 AM
moin
 
hey guy
 
anyone got any particular recommendations for HDDs currently on the market? Need a SSD system disk and a large platter for storage (machine will mostly be used for DV editing), I'm look at amazon.co.uk/SanDisk-PLUS-Sata-inch-Internal/dp/B01F9G414U because price is decent and 3yr warranty, and amazon.co.uk/Blue-Desktop-Hard-Disk-Drive/dp/B013QFRS2S because I default to WD for platters. Anyone have any strong opinions? /cc @tereško
I suspect I could persuade the owner to spend a little bit more than that combination, but not loads
 
Are you looking for SSD or SATA?
I got a 2TB Seagate Barracuda SATA
 
6:30 AM
@taco well this is to replace one of exactly those that died during a W8 -> W10 upgrade, although I'm assuming that's just a coincidence
I know drives die occasionally, but in my life I've had at least 2 seagates go and I have never ever lost a WD
I am aware that my sample size is likely not big enough for that to be more that basically superstition though :-P
 
I worked as a DC tech, you should monitor the hours on your drives. They will die
Drives die 100% of the time, it's just depends how long they last
 
the main thing I'm doing is splitting the system disk and main data device used for the DV editing stuff, it's pretty ridiculous tbh, the input files are sometimes many hundreds of GB and the video editing software sometimes has a > 200GB swap file
 
One of the fun experiences I always enjoyed was when they died after a reboot
 
@taco oh sure
but this is <2yrs old
admittedly the above ^^ is not normal drive usage
 
I've tried the freezer trick probably 30 times, worked twice or so. long enough to copy off some data
yeah high I/O is what kills drives
 
6:34 AM
but still, I would expect a platter drive, any platter drive, to last longer than 2yrs
An older SSD you could kill like that
 
the thingy has to move across the platter when there is alot of I/O for IDE. Forget how that applies to SATA, it's been a while
 
Well I think mainly SATA drives just tend to have a larger cache (?)
 
So if it doesn't have a lot of hours, it might have gotten a kick or something to the PC tower
Doesn't take much
or bad manufacturing. you could try contacting seagate
 
The drive says on it, and I feel like this is a typo tbh, "warranty void if exposed to >350G"
350G is a lot
 
heh, yeah i remember this discussion in a DC before by a co-worker.
 
6:37 AM
like, much more than the average "oops I dropped it"
 
yeah, not my area
 
Wes
@DaveRandom wd have never failed me
 
@taco out of warranty, already checked
 
Wes
other brands, yes, including seagate hitachi samsung
 
@Wes same, I have had at least 30 WD drives by now and they were all obsolete before dead
 
6:38 AM
Well I know for sure the Seagate Barracudas and WD Red drives were great in RAID or NAS arrays
for a datacenter ISP I was at
 
except one 2.5" that was DOA, they swapped it out no questions and the replacement is still alive and well
 
Some drives were too slow for RAID and would fall out of the array
 
@taco yeh I used WD reds in my NAS
 
Wes
i have a couple of those that are particularly reliable becuase they do 2000rpm ish than normal
of course they aren't very fast :P
 
It's been a long while since I worked with drives, so my advice could be outdated
probably better page to link to hdd.userbenchmark.com/Comparison
But yeah, expect for drives to fail. Plan on it.
Your drive will increment errors over time. It's only something to worry about once they're incrementing at an alarming rate
On Linux, fsck will mark blocks as bad, so the journaled filesystem doesn't write to them
Windows probably does something similair, but I'm not as familiar
chkdsk i guess, but I've never seen it do much
 
6:52 AM
@taco as I understand it, SSDs are more reliable in this regard, in that they fail more reliably (like, you can see it coming)
I've had platter drives fail with no warning whatsoever
 
ok
 
So i'm having problems with json_decode() and json.stringify parsed data sent back via ajax. Every sollution i'm seeing online is to use strip_slashes, but that seems dangerous. Thoughts? It will all be relatively benign data A-Z0-9 but some urls (vetted backend).
 
My understanding of this subject is surface level at best though :-P
 
json_last_error_message throws error 4 which is syntax error
 
I remember discussions about SSD's not really showing much benefit for the DC space at my last ISP, but I was a sysadmin/ software dev there, not a DC tech
 
6:53 AM
@Hybridwebdev do you have any JSON you can share?
 
however stripslashes makes it work. I'd leave it at that as a sollution but i can't help but feel stripslashes is an ugly sollution
 
they're faster, but cost/benefit wasn't worth it for most applications
 
@DaveRandom sure 1 sec. Thing is, i've run it through an online checker and it comes back valid
 
@Hybridwebdev yeh that does not sound like a solution, JSON is JSON, it shouldn't need that and it's likely to break it
 
install jq
or not
 
I wrote github.com/DaveRandom/ExceptionalJSON @Hybridwebdev which is just a simple wrapper around json_encode(), which throws exceptions on errors
 
that's what's being sent via a dataType: json ajax request via post
im pretty sure i have magic_quotes enabled on my local apache server which is causing the issue
 
@Hybridwebdev OK well that parses fine in both JS and PHP json.daverandom.com/8ovHrkpewOdqm6GrXOeBPH (in order for that to be saved, it needs to have been parsed by both)
 
@DaveRandom that's what's got me confused as to why it's throwing an error
 
How are you retrieving it in PHP? Can you show a var_dump() of the string you have in PHP?
 
6:58 AM
$attrs = json_decode($pocket['attrs'], true);
where ['attrs'] is the jason encoded field
 
OK, how did you make $pocket?
 
from the $_POST field
its part of a substructure of data, that part is just arrived at via an array iteration
the var_dump shows that the json object passed back has slashes in it
 
brb 1 min
 
thanks
 
@Hybridwebdev OK, can you show your Javascript code?
also, what PHP version are you using?
this sounds like it might be magic quotes
which would mean you are using a very old PHP version
 
7:03 AM
morning room
 
@Hybridwebdev var_dump(get_magic_quotes_gpc()) plz
 
false
it cant possibly because i'm json.stringifying an object with arrays
 
Wes
'member back in the day the addslashes mess
 
@Hybridwebdev check that you didn't JSON.stringify() twice
 
well it's passed back via datatype: json
but def not stringifying twice
 
7:08 AM
@Hybridwebdev when you say "passed back" what do you mean? dataType: "json" controls what JS is expecting to receive back from PHP in the ajax response, it doesn't have anything to do with what JS is sending to PHP in the request
 
oh
did not know that
i always assumed it played a part in how the header request was formed
 
you don't really need to set dataType most of the time, really it's there for when the server does not send a sensible Content-Type header
 
eg: declaring application-type
 
no, you use contentType for that
Are you just sending this JSON object, or is there other data you need to send with it?
What you are doing at the moment is sending a JSON object as a field value in a application/x-www-form-urlencoded body (probably)
 
i send other data, but it's inconsequential to the json_encoded data
among things send back is a nonce, action, and some styling in an array format
typical $_POST key=>value stuff
 
7:13 AM
OK, is there any chance you could pastebin the full output of var_dump($_POST)?
and also the JS code that makes the ajax call
 
There is an English expression like "HFW" (harmful for work) or "DFW" (dangerous for work) .. I don't know. Does anybody remember what is that?
 
nsfw?
 
@DaveRandom what it stands for?
 
morns v2.0.02.4
 
Not Safe For Work
 
7:16 AM
@DaveRandom that's it. thx
 
mornin
 
@Saitama regression from 2.0.1.x: the sun seems to now rise in the west. This is causing serious workflow problems as my sundial now goes backwards. Plz fix asap.
 
/me tags,
 
7:22 AM
@Hybridwebdev errrr.... lol. wtf is that?
 
oh that's the dumped data
eg that's what the server gets back from the ajax call
so obviously the slashes are the issue....but why
 
that's been var_dumped at least twice, and JSON encoded at least twice
 
but why are they getting slashed
 
> string(5) "<pre>"↵string(368) "
does that look right to you?
 
nopers
 
7:23 AM
:-P
 
oh that's me using a <pre> tag
i added that to the dump
 
yeh don't do that, literally just var_dump($_POST) and show the raw text it outputs
it should look a bit like this:
 
array(1) {
  ["foo"]=>
  string(3) "bar"
}
it should look like that
$_POST is always an array
sometimes it might be empty, but it's never any other data type
 
its definitely being slashed in transit
 
7:26 AM
that's still one enormous string...
it's not a var_dump of an array
 
that's the results sent back via the json.stringify and then ajax call
the issue is 100% that, because when sent through the header its in the correct format
its what the server gets that is the issu
 
that has definitely been double-JSON-encoded
like, 100% definitely
 
its just a standard array passed through json.stringify() once
unless the data-type: json is encoding it a second time i doubt that's the case
im viewing the header request and its sending it right
{"id":"","class":"content simple_text simple_text_g0jjdt6gmbll6i2gw0pk","pocket_type":"content","column_size":"12","pocket_handle":"simple_text","pocket_id":"simple_text_g0jjdt6gmbll6i2gw0pk","page_id":"2065","wrapper_type":"h1","text_box_type":"text_box","link_source":"","linked_id":"0","external_link":"","linknewtab":"yes","relnofollow":"yes"}

is one example of what is sent through post
 
the fact that you cannot show me the raw output of var_dump($_POST) tells me that you have a lot of extra complexity here...
 
i did show u the dump
 
7:33 AM
no you didn't, that's a string
 
$_POST is an array
 
oh you want the entire _POST?
 
PHP array dumps look like 3v4l.org/mGZ1p
@Hybridwebdev ... yes
9 mins ago, by DaveRandom
yeh don't do that, literally just var_dump($_POST) and show the raw text it outputs
 
sorry my b, its a lot of data, just trying to show you relevant part to save time :)
all other data passes through a-okay, it's just the json string data that fucks up
 
7:38 AM
protip: when you don't know what the problem is (with anything, not just code), you implicitly also don't know what information is relevant to the problem :-P
 
oh i know that all too well :)
im not an amateur, im a proffessional dev and this is my side project :)
 
the data doesn't appear to match you JS object
    data : {
      action:composer.action,
      nonce: composer.nonce,
      section_data: {},
      page_id: composer.page_id
    },
but $_POST doesn't have those keys
it just has command and pockets
 
thats just a base i use with extend
i can 100% rule that out because that powers other portions unrelated to this module
 
mornin
 
OK. What PHP version are you using?
 
7:42 AM
uhm
 
echo PHP_VERSION;
 
PHP/5.5.9-1ubuntu4.19
standard local hosted linux mint apache install on a vm
 
OK, so definitely not magic quotes
 
oh hmm
 
... but you should upgrade soon
 
7:44 AM
^ that
do you have this thing live on the internet anywhere?
 
i know, its just my own local playground :)
no, just local
 
/me tends to run beta-or-almost versions locally
 
my ISP doesnt allow incoming connections on http ports anyways, the router has a stupid firewall
/me is too busy developing full time + side projects, gf and kid...to busy to spend hours fucking with php
 
you can get a VPS for $5/mo
 
PHP doesn't randomly add slashes to stuff. It also actually doesn't look like they have been double json encoded because they would have an extra enclosing double quote in that case
 
7:46 AM
migration + downtime....no thanks lol....ill get around to it one of these days
 
but something somewhere is encoding something
 
we're years away from php 7 being defacto anyways
@DaveRandom I know, that's what i can't figure out
 
@Hybridwebdev I have not written a piece of code for PHP5 compat in well over a year...
 
damn
its sooner than i thought
 
7:47 AM
@Hybridwebdev Are you using any PHP framework?
 
.........wordpress lol
 
...oh
 
dont judge me :P
 
it's probably where the issue is coming from
 
34
A: With "magic quotes" disabled, why does PHP/Wordpress continue to auto-escape my POST data?

rinogoI think I found it. Problem (bug): http://core.trac.wordpress.org/ticket/18322 Solution: http://codex.wordpress.org/Function_Reference/stripslashes_deep $_GET = array_map('stripslashes_deep', $_GET); $_POST = array_map('stripslashes_deep', $_POST); $_COOKIE = array_ma...

what the actual fuck, wordpress
 
7:49 AM
cuz wp does too much hand holding
 
That's not hand holding, it's actively making your life difficult
find and remove every call to that
 
WordPress adds slashes to $_POST/$_GET/$_REQUEST/$_COOKIE regardless of what get_magic_quotes_gpc() returns. So in the context of WordPress, stripslashes() or stipslashes_deep() should always be used when using those variables.
well shit
so stripslashes really is required
 
yes, but only because wordpress mangled your data
 
well shit, thanks for the extra sets of eyes :)
highfives all around
 
I DEMAND CHESTBUMPS
:-P
/me showers
 
7:52 AM
lol
its not shocking to see that was the issue tho, considering wp does silly things like wpautop
which can like my scrotum
/chestbumps Dave
 
Wes
mornings
 
\o
 
@DaveRandom @tereško thanks again guys :) Gunna get back to coding, appreciate the help :)
 
@Wes what's up?
 
Wes
@bwoebi yo. so remember the thing i've mentioned that sometimes fetching fields is slower than calling methods?
 
8:03 AM
yes?
 
Wes
it's not exactly like that what's happening
gist.github.com/Netmosfera/b0e7c22a8bbd2460f1a6f71322297269 run these two files, they are identical except that one fetches a field on the return
how do you explain the fact that fetching that field makes it slower?
php 5.6 is way slower but the benchmarks are what i expect them to look like, in php7 something is different
 
What is "->" called in programming?
arrow?
 
Wes
so basically,
$this->table->offsetGet($this->index) vs
$this->table->entry
results in pretty much the same speed

while
$this->table->offsetGet($this->index)->some_field vs
$this->table->entry->some_field
results in the latter being much slower than the first
which is very strange
 
@MartinAJ I believe its called @Jay's penis
 
Wes
@MartinAJ object member access operator, or just object operator
 
8:08 AM
@Saitama :D
@Wes alright
 
@Wes probably polymorphic cache being invalidated in the latter case?
 
Wes
dunno what that is @bwoebi are these things cached?
the difference is not irrelevant, maybe it's a problem or something you want to check, and curious to know why's that
@MartinAJ it is different in every language though. for example in java and js the same operator is the dot
 
I know
 
Wes
instead :: is the class member access operator
or static member, whatever :P
any idea of what it could be Bob?
maybe one is faster just because it's more optimized
unrelated, is there a preferred syntax for variable field names?
$obj->{$method}();
$obj->$method();
i know they both work, but which should be used?
 
8:29 AM
the former makes more sense to me
In fact I used exactly that a few moments ago :P
 
Can someone help me get some freelance work
 
@Tarun I think you need to help yourself in this case.
 
@RonniSkansing Yes I am trying, Thanks
 
(=
I dunno where I come from freelance works come from... online sites, network and from attending network building..
 
8:46 AM
Yes,I am trying on online sites ( upwork )
 
yea, I used upwork like 4 years ago
did yield a bit of gold coins
 
Wes
@Saitama good point, could be a field. thanks
 
May be you could outsource,if you have in excess.
 
@Tarun sorry not anymore. Only do web security freelance .. else I do full time jobbing with coding
 
9:02 AM
Okay, No problem. Thanks : )
 
sorry I cant be more helpful. Gl finding some works
 
9:38 AM
hi, sorry to ask doubts in this group, i am developing php based website that has only instagram login and post images,videos and share etc..
but in the permission review part i got continuously the rejected message
like the below,

Your submission doesn't appear to include the production version of your app. Please only submit your production version and not your development, demo or test versions. Note that you can develop your app with the permissions you need and test it in sandbox mode without having to go through review. For more information, please see: https://www.instagram.com/developer/sandbox/
what it could be , i cant move further, help me out pls
 
10:04 AM
What's up with shared.php.net? Down for others, too?
 
looks like it
 
Ok, seems to work again. It's wiki.php.net/systems/sgrv4. Would be interesting to know where shared.php.net is used besides the wiki.
 
@Wes you could do that with groups. Exclude one lot in one test run, then run just the later ones in a separate test run.
 
Wes
i thought to do that, but would be very annoying
in fact i would rather try to modify phpunit myself than doing that
 
meh. you can't expect tools to cover every use case. And having some tests conditional on other tests is the type of thing that having them split up into separate runs is a sensible solution for.
 
Wes
it's a lot of work
you use real objects more than i do, you sure want to test the real object before using it in a test for something else
 
"it's a lot of work"
That's....bollocks. It's the work of 5 minutes to create a bash script to run two phpunit runs, with different groups set, and to also annotate the basic tests you want to run first.
Against that you're asking more complexity to be added to PHP unit.
 
10:34 AM
@Danack @depends already exists, so why not?
 
I'm just generally opposed to adding complexity to libraries when the same is possible without that complexity in the library.
> @trigger_error(sprintf('Passing a name as a first argument to the %s method is deprecated since version 1.21. Pass an instance of "Twig_SimpleFunction" instead when defining function "%s".', METHOD, $name), E_USER_DEPRECATED);
From the twig library......
"I want to trigger an error, but not really...."
 
@kelunik can you explain twitter.com/Tobias_B/status/911500985469669377 to me plz? I feel like I'm missing some context because of a poor grasp of German
which apparently is the issue in the first place
 
boy, 7 days to die is pretty neat and scary
 
@Danack Symfony has deprecation warnings opt-in, everywhere.
 
@DaveRandom it's mostly irrelevant.
 
10:45 AM
the tweet or the supposed problems with it?
I mean I know the tweet is irrelevant
 
@kelunik .....how it meant to work though? I have this error handler:
function saneErrorHandler($errorNumber, $errorMessage, $errorFile, $errorLine)
{
    if (error_reporting() === 0) {
        // Error reporting has been silenced
        return true;
    }
....
....
 
They might has well posted a picture of a dark shed with a sign on the door reading "free candy"
 
the tweeter complains about the UK writing in german to propose a strongest friendship and partnership side by side for the benefit of both
 
Because I silence @mkdir etc. So I don't want suppressed errors from erroring. So how do I alter that error handler to warn on symfony errors/warnings?
 
he says he'd like the rule britannia attitude back instead of this attitude
like i said, mostly irrelevant
 
10:47 AM
Oh right, so an asshole complaining about another asshole, got it
 
now back to zombieland with me
 
@Danack Probably check the type of error before the silence check, but I don't understand why they hide deprecations by default, only makes upgrading and noticing harder.
 
enjoy o/
tfw you thought that browser window was dev...
 
@Wes I'm sorry Dave, I'm afraid I can't do that
 
11:01 AM
...OK
tfw you thought that browser window was dev... https://t.co/UWQ0I2rjR0
!!admin list
 
Adil Ilhan, bwoebi, Danack, DaveRandom, Ekin, Fabor, Florian Margaine, Félix Gagnon-Grenier, Gordon, ircmaxell, JayIsTooCommon, Jeeves, Jimbo, Joe Watkins, kelunik, Levi Morrison, Madara Uchiha, NikiC, PeeHaa, rdlowrey, Ronni Skansing, Saitama, salathe, Scott Arciszewski, Sean, tereško, Tiffany, Trowski, Trucy
 
!!admin add 4251625
 
User added to the admin list.
 
weird
dunno why you weren't there @Wes
 
Wes
there has been some slight drama
 
11:05 AM
...
you know what, I'm fine with just not knowing :-P
 
Wes
or rather, an attempt to avoid drama
ok i'm fine with that because i don't want to explain it. nothing actually happened tho
 
OK cool, well you should still be a Jeeves admin in any case
 
Wes
great, because i'm very skilled with !!tweet
:P
 
Wes
11:26 AM
aehm, how do i search for keywords in the git history, without checking out all the things one by one?
 
Wes
oh, noice. thanks
 
nice inceed
also, morning
 
Wes
\o
 
o/
I can fiiinally use both of my eyes :P time to grab a weihenstephaner and poke some codes
 
Wes
11:44 AM
great :D
 
00:00 - 12:0012:00 - 00:00

« first day (2534 days earlier)      last day (2408 days later) »