« first day (2788 days earlier)      last day (2386 days later) » 

16:43
I now have a task to create a way to do automated tests for a fleet of WordPress sites and two sites that are completely untestable.
Sigh...
muahahahaha
how's your jobs search going?
I applied to Walmart. They're doing functional Node though. I have an in there, but it would require me moving to Oregon.
Which I can't do until my girlfriend finishes this year of school.
Girlfriends dad offered me a job doing consulting work, but it's for their load balancer products. I like being a programmer, so...probably not the right fit.
Oh I thought you found something
evenin
there's one in UT that I was looking at
trying to remember who it was for
bluehost?
16:48
They've kind of got me by the balls. They're keeping like 5k of salary in escrow until December.
Plus I want to go to PHP World and they'll pay for it, so I'm deciding whether or not to suffer a few more months.
but it's possible another job might pay more than the 5k they're holding over your head
Yeah, but I'll get it all at once. Trying to get a house.
That looks like a decent fit, although I'm probably not experienced enough with OO or testing.
I'm less experienced than you, and I was going to apply before mental health took a dip
`Use a strong understanding of object-oriented methodologies to improve software.`

This means they can copy/paste from other job adverts
Doesn't mean they have a full team of OO-design experts
That's the other problem.
I'm picky. I'm not willing to trade one terrible job for another.
And I'm beginning to think they're all terrible.
17:02
good morning
I just checked out like 5 dev companies in Utah, they all use Java, so yea, I think they're all terrible too
@tereško Nice!
17:20
@Allenph check what benefits the company offers, that's usually a deciding factor for me
if they have good benefits, chances are they might actually give a shit about their employees.

Also Glassdoor can give you an idea... but that's kind of a bitch to use because they want you to have an account and shit.
Wow. Just found some "senior dev" code in which he was manually sanitizing SQL queries.
evenin
@Allenph probably some decent philosophy in there...
17:51
@Allenph Soon, you'll find people in the company who would call him a genius.
@MadaraUchiha Already found.
Wow that was fast.
18:44
@ircmaxell @Tiffany I liked this one better
Or "GitHub: A Microsoft Store App"
what on earth
...oh god, they're going to integrate Github into SharePoint or vice versa
can you imagine
19:02
I actually suspect that the will keep the products separate
the most you will get will be a field in the profile for skype/linkedin account
I think more common will be github becoming integrated in other MS tools
think - Azure
Here's a fun little question I came across if you guys want: Write a function that takes any iterable (guaranteed to be finite) and a predicate, and rotates the iterable around the first element matching the predicate, so that it is the first.
Example:
function gen() {
  yield 1;
  yield 2;
  yield 3;
  yield 4;
  yield 5;
}

$res = rotate(gen(), function($el) { return $el === 3; });
var_dump(iterator_to_array($res)); // [3, 4, 5, 1, 2]
So I heard $MSFT is buying @github
@MadaraUchiha 3v4l.org/0Np90 :-)
19:23
@DaveRandom in /srv/www there are default and the other domains hosted on the server. If I wanted to start out with a generic project with no domain associated with it (at the moment), can I use default or should I come up with a meaningful name?
I want to be lazy and just use default but logic is arguing with that part of my brain
Seeing a regression in app response times* after migrating to nginx, boo ): Good fun though
@Sean :( any idea how/where?
FPM related possibly? (though I'm not sure how that would affect it)
Used FPM on Apache too, wouldn't imagine there'd be any change on that front
Think I've gotta do some major reading on tweaking settings
mmm makes sense, from what I understand, configuring nginx is a tad delicate
I imagine once I get the hang of it, it won't be so daunting of a concept to me
@Tiffany are you going for srv/ too? what is wrong with var/?
19:32
@mega6382 @DaveRandom recommended it. People say not to trust him, but he's guided me well enough so far, so I trust his reasoning
...that might come back to kick me in the ass later though...
@kelunik Very nice, that's the same solution I've gotten to
I have this very small project, of my own, and I have half a mind to do it in CodeIgniter, so it'll be quick. But I don't really like CI and I know it will come to bite me in the ass later on...
@mega6382 Don't do it
If you want to explore, try Node, try Ruby, etc
19:48
@MadaraUchiha I think it might be because he already knows CI and wants to get it done quickly
Don't succumb!
@MadaraUchiha I have been working with Node for sometime now, and I have grown to like it a lot. I don't really care for ruby whatsoever at all. So, you know, I just might give node a try for this.
@mega6382 If you're feeling adventurous, give TypeScript a shot
@MadaraUchiha I recently just made a whole project from scratch(for a client), with typescript, using mocha, chai and super test for testing. Express for server and typeorm for models. It was quite nice and much quicker compared to plain node.js.
@mega6382 Because intellisense?
19:53
@MadaraUchiha Yes, and most of the errors being exposed at compilation because of strict typing and such. It really helps a lot.
My other mind is to set up an installation of ZF3 and do it proper. But ZF3 is a monstrosity and offers a lot of features that I will not be requiring.
@mega6382 symfony?
hi, lets say I write 5 basic scripts like daily dairy, pic gallery script (just read from the disk, like 50 gals), vid script, the same thing, and some two others; I can then join them together and make one big script; can I think about any big script (lets say YouTube.com like) as a collection of smaller separate scripts?
@Tiffany Never touched that, nor do I ever plan to.
so I can think, ok, this is this, that, that, I can / am able to create that and I can join them together and so on
@ten5 have you been to your doctor yet?
20:06
so I am able to break down anything into smaller pieces, think I can do it, as I would be able to join
I think the only framework I'd touch is Slim, if I ever use a framework
@Tiffany Zend expressive is not so bad, if you are looking for a microframwork.
also, when I write the php code, one file per functionality of a script (lets say, generally) and I create within that?
at least for now, I want to stick with vanilla PHP + whatever libraries I may need
1 min ago, by Danack
@ten5 have you been to your doctor yet?
20:08
when I create the dir structure and files within it
yesterday, by Danack
We've got a new rule; no-one is allowed to indulge your OCD behaviour. Everyone is going to just tell you to get and talk to your doctor about your OCD.
@Tiffany The thing I like about ZF2/3 is that it is not a proper framework, I mean its unlike any other framework. Because in its entirety it is nothing bot a collection of libraries. And its your choice how you decide to use those. You decide the entire structure of your application and everything else too. The entire framework is installed in the vendor directory. Unless of course you choose the skeleton they provide and even then you still get a lot of choice, more so than any other at least
interesting
It is often referred to as having a pretty difficult learning curve, but that is mostly due to its such extensive collection of libraries and features.
@mega6382 Can you please, confirm the truth in this statement @Ocramius? And mention if I missed something or something that I misrepresented?
@mega6382 Are you close to Kashmir?
20:20
@Allenph In a sense, if I go through India then, yes. But if I go through the passages from within Pakistan then, no.
Far enough away from the main dispute right?
Quite far indeed, yes.
Wes
Wes
20:33
@Danack yes
... so my boyfriend is having a problem with the software for his online class, and since I have understanding of a community college's hierarchy and website, I try digging around to find a contact so that he can get help ... his college's website directory is made using phpldap, and the server has expose PHP turned on
... I'm a bad person
Wes
Wes
microsoft is an actual software company, and also google is. can't say the same of other big names
in JavaScript, 27 mins ago, by ten5
hi, can I ask about the php, I am not able to get the needed info in that room?
Rofl...he's going to get ripped to shreds in there.
@Tiffany naah, just underpaid
20:38
@Wes Oh, I would'nt wanna miss that.
@Wes well ... GitHub could have been bought by Oracle
@Wes I alerted Madara when he went in. He was in here first but Danack shut him down. Yesterday he went in the C# room and kept someone in there busy for over an hour with his normal questions.
basically, yes
21:02
Right now, I suppose all we can do is weight and see where it all leads.
@mega6382 wait
hahaha
Thanks
I'm five minutes past closing time because I'm trying to figure out how to write an email scraper in vanilla JS
@Tiffany No. He obviously meant we should all start weight lifting while watching what happens with GutHub.
An email scraper?
@Allenph wanted to show my boyfriend how easy it is to scrape emails off a page, but I've never actually done it, so dinking around trying to figure it out
21:07
document.body.innerText.match(/\w+@\w+\.\w+/g)
["[email protected]"]
@Tiffany ^
@Tiffany @tereško suggested this is an artifact of the fact that I have always used RHEL rather than deb, and also correctly predicted that my /opt tends to be full of random crap for the same reason. Pragmatically though, I prefer the logical separation of "the data that directly relates to the primary purpose of the server" (i.e. web apps) from all the rest of the crap in var, which seems to be more or less everything /cc @mega6382
moreover, FHS describes it's purpose as "site-specific data which is served by this system", which seems to be a pretty decent description of what I use it for (sec 3.7 of that doc). tbf this is the first time I have bothered to read that doc, but I feel like I'm doing what it says already :-P
@Tiffany Just use jquery in the backend with node.
@FlorianMargaine don't even need that fancy of regex because the @domainname.edu is the same for all emails. I was going to search the page where that existed, grab the element, then pull the content from that element and output it as JSON
@Tiffany you're not really making it easy
@FlorianMargaine \w is crappy there
21:10
@DaveRandom there was no "rather than debian" since my own primary-nix has been FreeBSD (and I am writing this from Arch)
@DaveRandom wfm
@FlorianMargaine so you're right
@tereško oh right, I remember you saying that many times as well
I guess I should've used \b.*@.*\b
nope, doesn't work
the site I was trying this on has an F on SSL Labs
._.
21:14
@FlorianMargaine the user portion should also allow [.+\-], and for the domain portion (?:[a-z0-9][a-z0-9\-]*\.)+[a-z0-9][a-z0-9\-]+ should be sufficient
@DaveRandom according to RFC? ;-)
no, but for sanity
Heading home for the day.
no-one uses stuff outside those rules unless trying to do something sucky
(imho)
^[\w\-+.]+@(?:[a-z0-9][a-z0-9\-]{0,62}\.)+[a-z0-9][a-z0-9\-]{1,62}$ is reasonable for the real world
again, imho
@Tiffany are you working on that site?
21:16
umm.. is there such a thing as SSL cache..?
you might need an exit strategy .... or a baseball bat and home address of your sysadmin
@Darius on what level?
browser
What do you mean? :V
Yes, but they're not supposed to @Darius.
21:18
Changed out the SSL, still showing old one in browser O.o
now I'm chasing whether or not the server's grabbing it from somewhere else...
like, a vhost managing it that's not supposed to
@Darius open a new tab, chrome in particular sometimes doesn't update what it shows in dev tools (although ctrl+shift+r usually sorts it). But also, typically you need to do a config reload on the web server (or restart it)
did you actually reboot the server after updating the cert?
nervous laugh
lol
21:20
... right. I should go back to reading manga
sudo systemctl reload nginx
@DaveRandom For me every time changing or installing the SSL has shown instantly in the browser.
or httpd or whatever
@mega6382 it may be just a memory of an old buggy version of chrome, or just I did something wrong once and just carried a completely wrong idea around ever since :-P
21:39
oh btw @Wes do you have a tool for identifying fonts from images? (not for me/no specific req, just someone was asking me if I had one)
/cc anyone else
Wes
Wes
21:54
@DaveRandom identifont.com ?
i always used that
it's useful also if you want similar fonts
yeh I found both of those last night, turns out he already knows how to google and then I felt like an asshole
apparently that WhatTheFont thing is at best 30% successful
and identifont "is cool but time consuming"
no worries, just wondered if you might pull some other magical thing out of your ass
@tereško which are you reading?
it was a shitty one, does not matter (went through like 20 chapters and decided not to bookmark)
22:14
if you want to read something, I can give you some recommendations
either for entertainment or edification .. you choice
@Tiffany the names are a "site identifier", so yeh it doesn't have to be domain name but it should be something unique - don't create random stuff in the default site, for a plethora of reasons that I cba writing out rn but will do at some point if you remind me. The biggest one is that it tends to mean "create a new subdir of docroot for this project" which usually results in weird path-related issues from the browser's PoV down the line
otoh you probably will need to give it a domain name anyway, otherwise it won't get routed to a vhost
but also I would question why you are putting "messing about" projects on a public web server anyway...
22:36
@ircmaxell Went and got Unifi kit from asking a while back, this stuff kicks some serious ass
@tereško What do you recommend?
@StatikStasis entertainment or edification?
posted on June 04, 2018

New Cyanide and Happiness Comic

22:59
@tereško Edification
@StatikStasis in that case, I recommend this book .. you can get an audiobook here
23:18
query_var ... True is not seen as a valid entry and will result in 404 issues.. Then later on it in the example it has 'query_var' => true,. Ooohh Wordpress
nite
Wes
Wes
23:34
@DaveRandom of course it's not needed to have two stylable elements
but they are there and all people asked was treating them like any other html element
in other words <html> should scroll and <body> should just be a block element in it
you can't normalize the behavior
because browsers do stupid shits with <body> and <html>
for example you can't do document.documentElement.addEventListener("scroll",...);
because "scroll" is fired on all elements, document and window except <html>
it makes no sense
and it's even funnier because "scroll" fired on an element in body bubbles up to <html>
anyway, chrome is obviously the major culprit. but firefox has problems too
@tereško Not really my kind of thing. What about Entertainment?

« first day (2788 days earlier)      last day (2386 days later) »