« first day (2922 days earlier)      last day (2251 days later) » 
00:00 - 19:0019:00 - 00:00

19:01
lol, I can't imagine my childhood without the games I played
dunno, I grew up poor
Kinda same, my luck started to change after the age of 10 with Nintendo gameboy and PS1
@tereško State of Decay was terrible.
best time of my life actually
I bought the second one and only played it once.
19:04
@Allenph 2nd one is universally described as "piece of crap"
I was talking about the first one
... damn ... I need my keyboard back
Rofl. So I couldn't run my unit tests (long story) so I just coded for a while.
46 new assertions. 45 failures.
ah
some minor changes
legacy code base does not have tests written for it... bug cropped up with a change a vendor applied earlier this year... supervisor tried asking me why I hadn't tested it... I tried explaining that it's impossible for me to know everything that I need to test manually, I will always miss something
19:25
@Tiffany did you also hint, that you have already been working on a way to add automated testing (in your free time) ... which could be done a lot faster, if you get official support for it?
Am I crazy? Has gettype always returned "object" and not the classname?
@Allenph I think you want get_class()
@tereško typo
@tereško Yeah. I switched...I swear that used to work.
What does get_class do for a scalar? Explode?
so, the sort answer is "no, just incompetent"
@Allenph it expects object as input
you might be able to catch TypeError
19:29
That's what I'm throwing here anyways, so.
That's a confusing error when it happens. I'll have to catch it. ;(
@Allenph is_object($arg) ? get_class($arg) : gettype($arg)?
@NikiC Yep. Basically what I did.
@tereško different projects, the one I was trying to break apart so that it could be testable is much smaller in scope, but I'm still fucking breaking functionality so I haven't tried much lately.
then pushing of official mandate is even more important and on both projects
you can always use "technical debt" analogy to communicate the need to your supervisor
19:40
> immediately runs into goomba
wow, that guy sucks at video games
lol
@NikiC Is this the best way to compare whether in object is a certain class?
@Allenph no, you should use instanceof for that
Unless you care about class equality specifically, which you really shouldn't
I know I'm being nitpicky, but it's kind of weird that get_class returns a string which when compared could be the wrong case...even though case doesn't matter to class names and namespaces.
@NikiC Doi.
Bah. I'm still going to leave it. That would make my collection class way harder to extend.
19:46
that video is perfect for people who enjoy screaming at the monitor
Pretty similar to
https://twitter.com/will___ferrell/status/397546389267152897

@Allenph
Rofl.
#Seent We had like 5kbps for like 6 months.
Rofl...
20:06
@PeeHaa doesn't seem to work on windows though
or maybe i didn't use a good nes file
You mean rom?
yeah
Might just be windows fucky terminal support
Pretty sure there are no bad roms that won't run at all unless you really go out of your way to find it
@PeeHaa yeah, I even tried powershell and git bash, the first screen loads, which is blank and then thats it
@tereško Wasn't it you that said you use SQLite DBs for your tests?
20:14
yes, for integration tests
you can see an example in Palladium's codebase
DBUnit is trying to run DELETE * FROM <TABLE> on tables that don't exist at the beginning of each test. Do you keep your SQLite file up to date schema wise with your actual DB, or just your fixtures?
It would be nice to just have to do upkeep in one place, preferably my fixtures.
what I uses is the DB schema + some prepared entries
and the sqlite file gets copied in the bootstrap stage of the test, so thta you always rever to same state at the beginning of the test
Ahh. I see. You use the actual SQLlite file as the fixture.
yes, basically
I'm trying to avoid having a file at all, I'm just bootstrapping a DB in memory at the beginning.
20:18
meh, too much effort
unless you can load a db file in the memory (I have not actually needed to heck, if it is possible)
re-creating the db schema manually is just too much of pointless effort
I like the XML, but it looks like I'll end up with a file anyway so I might just scrap it.
Well, your basically just storing it in XML instead of a SQLLite file. Is that better? Probably not, but.
It also allows me to define expected states.
you can define expected DB state with sqlite files
Yeah, but then you have a copy of the whole DB everytime, right?
you do not need to have only one DB fixture file
what o you mean by "whole"?
the whole schema ? kinda ... depends on whether your integration tests actually need all of the tables
data - nope
just put in the data you actually expect
Like I start out with a DB file that's got my empty schema. Then I do an insert. Then I have to have another file that's got the whole schema in it plus my expected result, then presumably I do a hash check on them.
20:23
why not have some data pre-inserted?
Well, sure, for your tests that do selects or whatever.
But for anything that changes the DB you'd have to have two copies.
yeah, like "test if user cab log in" .. which is mostly a select-test
@PeeHaa just uploaded it to a centos server and ran it via putty, seems to work but is incredibly slow
@Allenph what do you mean?
I mean I guess I still have the same thing, but I just feel like changes would be way faster with XML than all those SQL Lite files.
20:24
@mega6382 Obviously it's slow :P
It emulates a cpu in php
1 min ago, by Allenph
Like I start out with a DB file that's got my empty schema. Then I do an insert. Then I have to have another file that's got the whole schema in it plus my expected result, then presumably I do a hash check on them.
@Allenph why are you fixated on keeping an empty schema?
Sigh. You're missing my point.
@Allenph what are those "hash checks" that you are taking about?
Like I start out with a DB file that's got my schema and some entries for select query tests. Then I do an insert. Then I have to have another file that's got the same data in it, plus my expected new row from the insert. Then presumably I hash them both and see if the hashes are different.
@tereško Just an easy way to see if the two DBs are identical.
20:26
what hashes?
why do you care if databases are identical?
they wont be
You're testing the INSERT or DELETE or whatever.
I don't know how you do it without DB Unit, that was just a guess, but I would think you have to compare them somehow.
@PeeHaa yeah, its still incredible but running at 3-5 fps
do you understand what "integration tests" mean?
20:27
@tereško Yes. The ones I'm running are unit tests, but.
Oh. I see. You just check if your view gets updated how you expect.
forget it .. I will go back to reading a fucking book
So you don't need to do that.
20:58
@Allenph depends on the type of test, but integration tests go through the motions of doing the required stuff, making sure stuff works together, they take longer than unit tests (I only understand them from an academic sense, haven't wrote them before, but have read about them in Working Effectively with Legacy Code)
@Tiffany Yeah. I know of integration tests but haven't written very many of them.
21:53
Does anyone know of a proxy service for just testing geolocation lookup on our own system?
e.g. we want to be able to send requests from various places in the world to a single endpoint on our system to get a country + language code back.....and not have to pay a lot of money to test just that.
22:05
mb_strpos throws Unknown encoding or conversion error – #77025
> By presenting the server an SSH2_MSG_USERAUTH_SUCCESS message in place of the SSH2_MSG_USERAUTH_REQUEST message which the server would expect to initiate authentication, the attacker could successfully authentciate without any credentials.
wow
@Danack I don't know a service like that, but if you're just testing for localization you can use the Accept-Language header but I guess that's not your goal
22:21
no - we want to test that various different IP addresses get correctly looked up against a geoip database and our backend system gets the correct country + language. We can do this by hand by using VPN service.
But I'd like it for testing, so would like to be able to automate it.
 
1 hour later…
23:35
@pmmaga ummm...
@DaveRandom when shit gets so bad you can't even spell authenticate right
a semi-related fun fact I learned a few days ago: until June this year, the stock firmware that shipped with all avaya hardware PBX units preferred ident over key auth, so not only was there a 3 sec delay for every session while it tries to contact an ident server, if you set up an ident server to respond with the "correct" user ID then it would skip key/challenge auth entirely and just let you in
> alternately, it can be viewed as a duck season/rabbit season trick
@Danack if you are testing specific real data you are doing it wrong, IP allocations aren't fixed
@DaveRandom we pull the maxmind free geoip db data when building the container, so that should stay reasonably up-to-date.
But just being able to proxy some requests and checking that they aren't all coming from GB would be a good start.
23:44
can't you just generate a small data set as a test fixture?
or something like $countryCode = $ipAsInt % $numberOfCountries
although that's differently wrong
we had a test in place, that set a special header for testing the geoip lookup. And then a system admin broke the nginx/google loadbalancer config and all of the 'remote' IP addresses were an internal IP address.
oh yeh, you can't unit test retards
So it's an end-to-end test, where one end is our server, and the other end is an IP address from various other countries.
oh right, it sounded like you were doing live lookups against a 3rd party
E_DIDNT_READ
hey @Danack I would be interested to hear your opinions on operator overloading for DateTime - I assume your basic position is "no" but would like to hear the reasons (or be wrong in that assumption)
@DaveRandom I'm going to bed......will think about it. Did you see the person on internals suggesting using splat operators for array concatting?
$finalArray = [...$someArray, ...$someOtherArray];
Maybe time to draft the array concat operator RFC?
but, sleeep first for me.
23:56
@PeeHaa I assume you dealt with this already but... the key issue there is what you do with the overflow. Do you want to queue the pending TCP SYN, hard reject with a RST, or complete the handshake and then queue the application layer data processing? Also, where's the bottleneck? If it's CPU then ideally you want to wait on upstream completion and process the next queued conn without waiting for request completion at the I/O level.
Actually configuring what you want is largely just rtfm for nginx/ha etc, the hard part is architectural decisions.
@Danack I wrote an rfc for that once, it's harder to implement than it seems like it would be at first glance
Wes
Wes
\o
well, it was when I looked at it for 7.0, maybe not some much now
also there are semantic complications - personally I would expect that to work with assoc arrays as well, but that's not how splat works
Wes
Wes
@DaveRandom the problem is finding an agreement on how it should work
some wanted array_merge() some array_push()
lol yup :-P
@Wes I would rather use . for push/concat
I have put a lot of thought into that one
Wes
Wes
lol even more disagreement then
00:00 - 19:0019:00 - 00:00

« first day (2922 days earlier)      last day (2251 days later) »