« first day (2849 days earlier)      last day (2325 days later) » 

00:06
@Alesana mod_rewrite is a much more complicated beast than it appears at first glance, most tutorial-ish articles don't cover this either... it behaves differently in different contexts, and it's not always immediately apparent what that context will be for any given situation - for example certain bits of seemingly unrelated configuration can cause an "internal redirect" which basically means the entire request processing routine starts again with a modified request.
The upshot is that [L] means "stop processing this set of rules in this context" and [END] means "don't process any more rules in any context"
which is usually want you actually want
Ah that would make sense
Goes in to change old applications
also, and this is probably totally immaterial in reality, if you set AllowOverride None you massively reduce the number of stat() calls during request processing because it stops looking for .htaccess files
but I would hope that it makes better use of inotify by now anyway
Wazzaaap bitches (and Dave)
I am also a bitch, ftr
Yeah, but you are my special bitch
Wes
Wes
@PeeHaa reference to?
Nov 24 '16 at 14:29, by Mark Phillips
Good afternoon gentlemen and Dave.
@DaveRandom ugh :P
Wes
Wes
still one of my fav messages ever appeared on the chat
mb_detect_order return value varies based on argument type – #76704
No reference
Jun 5 '17 at 13:56, by PeeHaa
Morning all fine people and @DaveRandom
Wes
Wes
00:19
it's a recurring joke tho :D
It is. I would search chat for you but it still sucks :P
Anyone got any strong opinions on bugs.php.net/bug.php?id=76370 ?
@DaveRandom What is the issue? When an interface is used it changes from fatal to warning?
Wes
Wes
@DaveRandom i am surprised that it is a warning at all
@PeeHaa When you violate an interface contract it's an error, when it's just a class extension (no formal contract) it's a warning, in the example the parent class implements the inteface with a compatible signature but adds an extra arg, the derived class now gives a fatal error even though it's compatible with the formal contract
00:26
Today I hit two PHP limitations at once. Haven't had this in ages.
Yeah both should just error and be done with it
@Wes i have flipped back and forth on this one over time but currently I think all LSP violations should just be compile errors
1. it doesn't seem possible to get the full php cli arguments (eg; including switches specifically for the php interpreter)
2. it doesn't seem possible to find the full file path of a loaded extension (eg; .../ext/xdebug.so)
func_get_args() etc is pretty much irrelevant now we have varargs/splat
@Christian From userland?
00:28
yep
What is it you are trying to do that you need that?
Not anything for production, just a pet peeve.
@Christian 1) no I'm pretty sure you can't 2) you did something wrong somewhere sorry misread
@Christian Thing is that cli just works like that
It's not a php limitation
It's just how cli works in general
So basically, when you run stuff in PhpStorm in debug mode, it enables xdebug dynamically by invoking php with -dzend_extension=C:\php\ext\php_xdebug.dll -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1
This is nice because it means you can run your normal php apps without xdebug getting in the middle.
00:31
But why do you need that in your code?
Seen many cases at work where people forget that they enabled xdebug permanently and than things like composer etc start messing up or block.
Ah, right, so let's say I have an end-to-end test for a cli project, the test invokes php (from php).
uhhu
So? :)
well, I thought about adding a small method... if xdebug is enabled change args slightly .... :)
this might also makes sense when running in ci, since coverage needs xdebug to run
00:34
Just check if xdebug is enabled?
yes, but then I need to reflect the correct configuration
Pretty sure you don't need access to cli flags to check for that
and in particular, the path to the library
I could replicate the configuration with ini_get('xdebug.....'), but not the -dzend_extension=C:\php\ext\php_xdebug.dll part
Well worst worst wooorst case you can parse phpinfo
But there is probably a easier route
Reflection(Zend)Extension->export/info also lacks this information
@PeeHaa or add it as an env var you could just set up before running tests :D
But that's too easy :D
00:38
:P
$command = shell_exec('ps -o command= -q ' . getmypid()); @Christian
windows can fuck off though
@DaveRandom I honestly prefer Nginx ways of handling requests a lot more ever since you turned me onto it. It's just not what my team uses
But, I am looking for a new job where I can grow more so hopefully that changes soon
Yeah, but I'd still need to parse it out. I think it's late enough in the night to go for the easy option.
Funny this stuff is not available in extension reflection classes though.
I am going go through some PHP tutorials to refresh my mind for interviews :D
Eh, just use php built-in server. If it works on your machine, it's devops problem to make it scale. :P
00:50
Even better just don't use a server
Serverless is the new greatness
@Jeeves the bug is that function existing at all
@Christian I assume it's in the name of "security", although I also would not be surprised if that was based in some misguided security-through-obscurity approach
 
2 hours later…
03:28
Night all
03:41
\o Night
04:31
Will learning about concurrency with a Microsoft SQL Server (course by Microsoft) have any differences from using MySQL?
05:14
posted on August 04, 2018

New Cyanide and Happiness Comic

 
2 hours later…
user9059272
06:51
Hi all
user9059272
Can someone please demonstrate this sentence with some suitable example in a version PHP 5.2.0 and PHP version PHP 5.2.1
user9059272
The relevant statement is : (binary) casting and b prefix forward support was added in PHP 5.2.1.
07:07
morns
07:21
I have probably passed @PeeHaa in laziness, I am suppose to take AWS DevOps Engineer exam on 7th, and I've only prepared like 10%. I had 2 months to prepare for it, now I only have 3 days. I don't know what I am gonna do.
08:00
squiz a quick, close look.
08:43
@SerialKisser I wonder why the heck you're stuck at php 5.2.X
user9059272
@HamZa : I've not stuck up at PHP 5.2.x
Also the docs provide clear examples (ctrl/cmd + f -> binary): php.net/manual/en/language.types.type-juggling.php
user9059272
I am reading the manual text from the page you mentioned.
user9059272
But I didn't get the suitable example of the statement saying (binary) casting and b prefix forward support was added in PHP 5.2.1
"(binary) casting and b prefix forward support was added in PHP 5.2.1. Note that the (binary) cast is essential the same as (string), but it should not be relied upon."
user9059272
08:51
@HamZa : It would be better if you provide me the working code example that works in PHP 5.2.1 and after versions and not in versions before 5.2.1
paste those examples in https://3v4l.org/ and play around with it (to see the difference in versions)
I honestly do not see why you're interested in such details, but "meh"
user9059272
I'm not able to figure out the meaning of 'b prefix forward support'
ranting Nintendo Network is one of the most useless services
@SerialKisser the b prefix is just this b"foo bar"
I get a temporary password, I try logging in so that I can reset it... and it gives me a fucking page that says I don't have any authorized third-party services. How the fuck does that help me? And when I try logging in with the temporary password from my device, it's says it's invalid. WTF.
user9059272
@HamZa : I understand the meaning of prefix but not 'prefix forward'
user9059272
So, I'm asking for the suitable working code example
@HamZa sounds like they're against browser password managers? which I completely agree with.
I don't know if they've improved recently, but a lot of them were incredibly unsecure.
@Tiffany they, in first instance advised to not use password managers because "they couldn't test them all and guarantee security"
@SerialKisser I think you're overthinking it and everything is just the same as the code examples shows
@HamZa Yeah, but how would they know if I'm using a password manager, if I don't have the password saved to my browser and I'm simply copying/pasting it?
09:10
@SerialKisser also look at this: stackoverflow.com/questions/4749442/…
"This is a forward compatibility token for the never-to-be-released PHP version 6, which should have had native unicode support."
I think that's what they meant with "forward"
@HamZa twitter.com/ingnl/status/1025654120307453952 have to translate it though, they state that they support password managers, but do not support browser password managers, which I agree with them on
user9059272
@HamZa : Thank you so much friend. You brought up to me what I was needed.
I've wanted to disable allowing saving passwords into a browser at work, so many co-workers do it, even my superiors... and it freaks me out
especially if we're locked into a Chrome version that may have a less secure hashing algorithm for the password manager
I'm going back to play my gimpy Animal Crossing on my phone since I can't connect my nintendo account
Wes
Wes
09:31
\o
o/
@Tiffany I almost always store passwords in chrome, and I don't mind it at all. And I know, that there are some softwares like cain&abel and some minor usb scripts, which can be used to steal and view these passwords. But I guess, its all about being taking measures accordingly.
hi , ny function in php to hide url ... i mean change url to alphanumeric and later get exact url to use for redirection
I have a question in laravel

in eloquent

$defaultAccount = Accounts::find(1);

what is the equavalent of this in query builder?
@PureRhymerOrganization These are 2 things that no one here really cares about. Also, on weekend its slow around here, I don't know if you'll find an answer here, also, it seems quite simple a couple of google searches might yield helpful results, try that.
@mega6382 i see
10:25
@mega6382 I pay for a password manager service, love it. I may have stored a couple passwords in a browser years ago, but I was less security conscious back then.
@PureRhymerOrganization you might have better luck on the larachat site
@Srinivas08 like what? a hash? Your question is confusing.
10:43
want to convert url to alphanumeric and again want to get original url
for what purpose?
@Srinivas08 look into base64, that might be what you are looking for. If your plan is to share it over various platforms.
11:20
@HamZa I saw it unfold. Much hot air about nothing
Social team members are stupid news at 11
 
1 hour later…
12:28
@PeeHaa hehe
@Tiffany Yeah, I do too use password managers, but only at work, as they are mandatory where I work. I don't have anything against them, it's just more convenient to use chrome password storage.
@mega6382 yeah, we use one at work as well, different service than what I subscribe to, though
I once used meldium for personal use, but it would some time to load, and being the laziest person on earth, I immediately gave up on it. :P
13:01
Lol, I googled meldium, and their site has a cert name mismatch. That's... questionable...
Really convinces me on their security...
It's from sedoparking
So the site is no more
And those assfuckers bought the domain
I hate domainsnipers
eeeew it's even worse. It's enom
Didn't know what sedoparking is, and didn't seem in anyway affiliated with the main product and I'm too lazy to Google it from my phone.
It's just a way to get money from parked domains
Say you let your domain expire. You shitty provider will park it there and make monies from ads
I wonder if that's the same thing I have a domain listed through for sale... lol
That's balls
Right now, I am trying to go through 9 hrs of training for AWS DevOps Engineer exam. Hopping if I watch the whole training 3 times, in the 2 days that I have, maybe I'll pass. But who knows. :P
13:06
Cramming?
most def
It's been so long so I've done a real test, and most of the time I did well on them without cramming. Granted, I either knew the material, or I didn't, and cramming wasn't going to fix that. I did do quick reviews before tests (like an hour to minutes before taking the test)
But different methods work for different people
Now interviews... I'd probably cram for those... lol
Well, I have no other choice. Sure, I am familiar with some of the services but not in depth and am completely oblivious to some of the others, and the devops-pro is the hardest aws exam, except the specialty exams.
@Tiffany I never bother preparing for the interviews.
I just get some basic information on what the company does, and some basic information about the interviewer.
@mega6382 yeah, it's understandable
13:23
o/
I'm making a table where three columns must be mutually exclusive .. `banlist(ip,user,email)`
Is this a bad practice or is there a better way to do this?
I could split this in three different tables or store everything in one field and add a 'type' field.. what do you suggest?
You most likely want to separate them out
So you can have different rules for different types easily
Whatever you do don't put it in a single field or I will personally kill a kitten
3
13:54
@PeeHaa banlist(type, value) :P
14:05
@kelunik (;-;)/
14:17
@yessure From perspective of banning, what is difference between user and email?
@Tpojka user are registered, emails are not
For example commenting as registered/non-registered?
Just was thinking that banning by email could solve both cases without unnecessary complexity in that point.
Maybe doesn't fit best way in your case, though.
Are usernames unique?
14:33
@Tiffany yes, I could add a foreign key that references user(id)
Ah
I was trying to think of a weird scenario where a username and IP could be the same, but I think for the intention of banning, it wouldn't matter. Unless another person happens to use a username that's the same as another banned user, and they're from the same IP address
emails of non-registered users are in different table than users table or you don't save those at all until they deserve ban?
@Tiffany I've already solved that, I only had doubts whether storing the data on a single table with mutual exclusive columns or multiple tables
I see
14:59
@yessure I usually ban users using ACLs, in which you assign every user a role, and based on that role you determine, which functionalities these users are allowed to use, if any. You should definitely keep the users separate from email and ip based ban.
just saying
15:27
unusable ssl => peer_fingerprint in stream_context_create() – #76705
16:10
@mega6382 that's interesting. I already made a sort of user groups.
 
2 hours later…
17:44
Does anyone have out there who's made resumes for PHP jobs (AKA not @DaveRandom) have any tips on how to make a good one?
@Alesana not really, other than to put interesting stuff in it. But I can tell you how to improve a CV once you've made one.
@Alesana I only export my SO developer story, and it works just fine. So, try that.
@mega6382 I would have nightmares that they would look on the chat history
@Danack You wouldn't mind giving some tips once I get it finished?
sure.
Awesome, I appreciate that
I am thinking of doing something artsy to stand out, but not overwhelming.. Like this one
Although it's not for front end so I probably should stick with a basic one
17:51
@Alesana Yeah, lol. Just don't tell them that it from SO, just export it into pdf and send them that.
@Alesana tip i) no good can ever come from putting your photo on a CV.
With the possible exception of if you're prepared to do 'favours' to get a job.
@Danack hahaha. Removing it now.
I mean, not that I'm not prepared for that
Only joking haha. My thought process there was so that when I do go in for an interview I'm already a familiar face
@Alesana From what I've heard, the HR only pays a few moments of attention to a singular CV, and if most of that time is spent on looking at the picture, than that is the wasted time.
@mega6382 That's a good point. I hadn't even thought of it
Probably a good idea to go with a black and white simplistic resume
@Alesana Yes, use your experiences and accomplishments to make your cv stand out and not the layout of the cv, is what I would say.
18:22
I almost got hired for a really good opportunity a few months ago. Went through multiple interviews, manager introduced me to the team members, and everything seemed to be going really well. Then there was a week pause before the hiring manager told me "all hiring is now on a freeze" for at least a couple months because of funding evaluations. I guess it wouldn't hurt to reach out and see if anything changed over there.
18:55
What is the correct pronunciation of centOS? Do you say it like cent O.S or centos? I say it like cent O.S, but I've many people refer to it as centos.
19:26
> I asked the founder of CentOS (Lance Davis). He said:

sent oss ....

cent like in one red cent ... oss as in ostrich
hmm, Interesting, Thanks
19:41
Is using heredoc/nowdoc bad practice? I never see it
@Alesana I believe it is often used, when you have a big multiline string in your code.
Like, json or yaml, right in the code for example
Hmm. Okay thanks
@mega6382 btw, this would be a somewhat bad practice
Ah
I would assume JSON/YAML should come from it's own file as opposed to being directly put into the PHP code
I don't quite get what the identifier for the heredoc/nowdoc is used for
@Alesana Yes, exactly
19:45
@Alesana what's that now?
@MisterGeeky What is heredoc/nowdoc, are you asking?
uh, yeah
is it a multiline comment?
$str = <<<EOT
String can go here
and can span multiple lines
blah blah
EOT;

echo $str;
That would output
String can go here
and can span multiple lines
blah blah
This is hideous. Why would you do this?
I'm wondering the same thing
19:48
Wait, is the newline preserved in the output string?
huh. This is definitely PHP unique.
That is heredoc. They act like double quoted strings (variables are displayed as their values and characters are escaped). Nowdoc is the alternative, is the same thing but the opening EOT is surrounded by single quotation marks. Here variables and characters are not escaped
I believe, that it can be used in the template files, without any issues.
I still think that would be poor practice, but what do I know
19:50
Also, here is an answer on SO, about it stackoverflow.com/a/5673478/6998123
$response = <<<EOT
I guess an advantage is, you don't have to worry about escaping "either the single" or the double quotation marks
EOT;
As opposed to
$response = 'I guess an advantage is, you don\'t have to worry about escaping "either the single" or the double quotation marks';
or
$response = "I guess an advantage is, you don't have to worry about escaping \"either the single\" or the double quotation marks";
Ah I just read that link. Answers it a lot better than I did :P
20:12
Would this be bad practice? I would think that it would normally be wrapped in some wrapper or something, for readability.
@Alesana I use them as php storm understands that:
$sql = <<< SQL
    whatever
SQL;
is going to be sql. Same for html and json etc.
Ah, so that is what the identifiers would be for then
20:41
Good day!
@Alesana Make it look professional (look for examples) but also you need for it not to just look like it's come from some resume generator. That doesn't mean print it on blue and purple paper or something like that- but make it stand out. Don't misspell anything. I throw resumes away when they misspell- if you cannot take the time to present yourself in this one document without misspelling I don't want to hire you for our team.
Don't be too verbose. Concise bullet points that show your strengths and accomplishments. Avoid general statements like "hard working."
Value yourself and remember you're selling your time and the skills that come with that time. They need to feel that they need you and not the other way around.
Believe me- when we're looking for people- we need the right person- we know they could go anywhere.
20:58
@StatikStasis Thanks, that helps a lot. I do truly believe that I have certain skillets and strengths that mark me as the right candidate for a lot of companies. It's just hard to portray that with not much professional experience on my resume.
And I say most companies because the one I work for now - sure it marks me as a valuable asset, but because we're a web agency they focus more on quantity than quality so if someone else does it in the same amount of time - yet much worse quality - I'm valued the same.
mbstring.http_output_conv_mimetypes is ignored – #76706
 
1 hour later…
22:31
> skillets
:P
Wes
Wes
that made me hungry
@Tiffany I've been trying to work on a joke for that for about an hour....
:O Good thing it wasn't on my resume lol
there was a typo on my resume that I had sent out to some places in May, and I didn't find it until after :|
That sucks
22:57
Did you at least get some response?
one of them, yes
Wes
Wes
23:08
!!should i get coffee or should i sleep
You should sleep.
Wes
Wes
stop telling me what to do
GO TO SLEEP
speaking of which, it's near my bedtime too... fuck
Wes
Wes
23:22
isn't like 6pm there?
yes
but I've been waking up at around 2-3 am, by choice
basically living a nocturnal life in the only way I can at the present time
Wes
Wes
23:35
that reminds me of myself :B
THANK YOU GOD
@DaveRandom
Whoop first interview set up

« first day (2849 days earlier)      last day (2325 days later) »