« first day (1768 days earlier)      last day (3406 days later) » 

14:00
@Fabor ^ That's the config I'm using, probably because of the missing protocol?
@kelunik the protocol is there, chat transformed it to a link
Keeps converting $request_uri to %26request_uri/? when I go to mydomain.com
@Fabor can we see a copy paste of your config?
server {
        listen 80;
        server_name my.domain.com;
        return 301 https://$host$request_uri;
}
I'm not sure I get it, doesn't that redirect to itself?
14:04
Second server config is listening on 443 with normal shtuff.
@FlorianMargaine http to https.
oh, duh.
@Fabor try s/$host/$server_name/?
Same result. Been switching between
what's your nginx version?
nginx version: nginx/1.6.2
14:10
@DaveRandom I found a swedish, slightly fatter version of you! here
weird
@Fabor the only thing I can think of is some hidden char. Can you check the config in vim, hit :set list in it
@Abe Perhaps, but as it stands PHP has the convention of always returning null if nothing else was returned. A return type of null still makes more sense to me. /cc @Trowski.
@kelunik isn't your browser simply remembering the redirect? What does curl -v say? it works here
@FlorianMargaine tbh it's not a huge issue. Everyone needs to login on first use and I doubt they'll type a url out and make it http:// so will leave it for now as last day of work for 2 weeks. Bugs bugs bugs :P
@Sjon My setup works fine (used http http://dev.kelunik.com/foo to verify it, because my browser uses the HSTS header anyway), but that might be true for @Fabor's setup, maybe your initial config was wrong and the browser remembered it?
14:15
@kelunik My initial one was indeed wrong, so maybe that's it.
Anonymous
@LeviMorrison is using php7 beta3 any less safer than php5.6.9 for prod site?
@samaYo You mean from a security standpoint?
Anonymous
I'm not using the new festures though, if that changes something
Anonymous
Yes, security
I don't think there are any new known vulnerabilities, but with more features theoretically comes more attack space.
Anonymous
14:22
Yeah, I though so .. but my concern was that if there was some unfinished feature that could cause some security problem
Anonymous
or extension
@kelunik ah, yes sry; mixup
Hey, when I git checkout a new branch, add a folder, commit and then check out the old branch again I still see the folder I added.
Why is that?
add a folder?
are you sure you committed it? git doesn't have the concept of folders
@BenjaminGruenbaum ^
@BenjaminGruenbaum Empty folders will never be committed, did you place something like a .gitignore with * \n !.gitignore in it?
14:31
@FlorianMargaine yes, it was definitely be committed.
@BenjaminGruenbaum you can't "git add" a folder, only the list of files in it. Did you have files in it?
(well, git won't complain, but it won't work)
All the files are still there, it is definitely committed.
It's committed on the branch, it's not committed on master, when I run git checkout master all the files are still there.
@BenjaminGruenbaum Did git checkout master report any modifications?
oh wow, it just kept files in gitignore
silly me, thanks.
:D
if you want to keep an empty folder, add a .gitkeep to the folder with no contents
14:34
@Amelia I usually have an empty .gitignore
(literally any other file will work, but this is one convention and doesn't lead to gitignore rules being parsed)
@BenjaminGruenbaum next time: git ls-files :P
@Jimbo :) hehe someone noticed. Trying to get back in to the community.
@DaveRandom correct me if I am wrong, but ain't view just a pre-saved subqueries anyway?
14:40
@Amelia I also always do what @FlorianMargaine does
Although not empty. I actually ignore all files in it
that said, @DaveRandom, you probably should use ORM instead :P
Hey any moderators here?
hi
haveibeenpwned.com - my username/email is in three different leaks D:
@ʰᵈˑ No admins are but what do you need?
14:43
i have a question who can answer me
@Machavity just wondering if we could migrate this question to security.stackexchange.com stackoverflow.com/questions/31903960/…
@PeeHaa I know, you always do what I do. That's becoming an issue.
@ʰᵈˑ I'd ask that on Meta IMO
i want filter a name in php for example "apple"
my code is
str_replace("apple","",$str);
but $str also maybe a-plle
or apl-le
who can help me ?
14:46
@Andrea mine was leaked in Adobe fuckup
@tereško ditto
which makes me wonder, when the hell did I register with adobe !?!
I probably signed up with them at one point to download a trial of Flash (or was it Photoshop?)
@nabi look at preg_replace
so, I have to discard two of my "common passwords"
(because 4+ years ago I only had two of those)
14:50
@tereško there's a certain incredibly weak password I used in a lot of places
I've now gotten rid of it almost entirely
@andho Course I did man, your profile pic is like a reflection of teresko, but with a hat
Because it was used to breach my... Facebook, IIRC?
@Orangepill i know but can you show me an example
yeah, mine was a 12 symbol one, but it might be a dictionary-password, since it was in latin
I don't actually know any of my passwords for anything. They're too long, and stored in a password manager.
14:52
@Amelia Do you use keepass?
@PeeHaa nope
why do I always read it as "keep ass"
@Nabi there are examples here and there are 124000 regex related questions on SO ... with a little research and testing you should be able to figure it out
@tereško Everybody does I would assume :)
@PeeHaa I didn't until now. :)
14:55
@tereško Remember Experts Exchange had to add a hyphen in their domain for the same reason
@Orangepill i want to make a question but i dont know what i write as title
@Amelia do you use enpass? enpass.io
@ʰᵈˑ 1password
ah nice
14:59
I just started using Lastpass myself
Pen Island had an unfortunate domain name as well..
@Orangepill s/unfortunate/awesome
user895378
morning
15:03
@ʰᵈˑ Perfect ;-)
@Nabi :) great
@Machavity awesome
user895378
@Orangepill I wanted to add a note to our factory discussion from a few hours ago (last night for me). It's still better to avoid passing the injector to factories if you can help it. It's best if your code knows nothing about it because less static coupling is always better. Please don't use that as a reason to into the trap of tightly coupling your application classes to an injector.
@rdlowrey did you see @Danack's code?
user895378
no
@FlorianMargaine to be listed under 'things that really need some examples writing for it'
user895378
Yeah, I know what @Danack is doing there. The problem is that there are gray areas -- it's best to say "never pass an injector into anything" in the same way we make blanket statements like "never use goto" ... and these are valuable axioms. But there are times when wizards know what they're doing to and rules can be broken.
user895378
The problem is when people who aren't wizards read things and don't understand what's happening behind the scenes or the logic that went into a decision. What's right for one app may not be right for everything else.
user895378
Something as dangerously omniscient as an injection container is very easy to misuse. So we say "never do this and never do that."
15:16
@rdlowrey understood... I would only use it when which specific dependency was needed was determined in the domain logic of the app.
@rdlowrey Okay, never use goto. It's a great rule of all the thumbs because only in extreme edge cases should you use it, right? So as a senior don't just go telling the juniors that there are edge cases, just say "never" and drill it in so they're more cautious about it
@Orangepill "when which specific dependency was needed was determined in the domain logic of the app." - and that's where I think people should switch to using tiers of application code. The first tier determines what needs to be run, but doesn't know how to create it, and so just tells the application "This is what needs to be run, please run it".
user895378
@Jimbo Exactly. Once folks are knowledgeable enough to be able to wisely break the "never" rules they'll understand when/why it's okay in their particular scenario.
@rdlowrey Yours was better articulated but I completely agree, so when someone comes along and says "yeah... but here's why you can do this".. it's rather annoying
That's a 1 in a billion
15:19
knowledgeable folks know that "never say never" is true anyway
But those who say "never say never" are just trying to appear to be knowledgeable :P
@Danack I'm literally loling
@Danack You sick bastard. :P
I was looking for the "forked from", but it's not there :'(
@Danack nice, a bad indent in there…
15:22
@bwoebi which is weird, as I recently added codesniffing for that....
can I get a talk abstract review?
@Danack the goto must have confused the codesniffer to death :-D
edit ninja'd
+1
@ircmaxell Not sure if an renaissance is deliberate (it's a).
do {
        $className = $this->jigConverter->getNamespacedClassNameFromFileName($templateFilename);
        if ($this->jigConfig->compileCheck == Jig::COMPILE_CHECK_EXISTS) {
            if (class_exists($className) == true) {
                break
            }
        }
        if ($this->jigConfig->compileCheck == Jig::COMPILE_CHECK_MTIME) {
            if ($this->isGeneratedFileOutOfDate($templateFilename) == false) {
                if (class_exists($className) == true) {
                    break;
@ircmaxell hehe… speculating about PHP 8… dangerous topic…
yeah, hadn't looked for grammatical errors, I just think that'd be a fun talk idea :P
user895378
15:25
Confession: I've always preferred the British pronunciation of "renaissance" to what you hear in US english but was too embarrassed to sound like a pompous ass if I actually pronounced it that way.
@Jimbo fixed, I originally had a qualifier
Does anyone know the correct way in CodeSniffer to set a value for a rule that is brought in via ref. e.g. this doesn't work, but shows what I'm trying to do:
<rule ref="PSR2">
   <rule ref="Generic.WhiteSpace.ScopeIndent">
        <properties>
           <property name="ignoreIndentationTokens" type="array" value="T_GOTO_LABEL"/>
        </properties>
   </rule>
</rule>
@ircmaxell Also how about a colon in the title instead of a comma? Leads into the second sentence more imo, but that's just me being pedantic
@Jimbo done
@bwoebi well, I want to communicate that people are already thinking about it, and ideas are already in play
I need to get back to that crypto project soon :)
15:27
good idea ... everyone will be focusing on 7
yes you do :-P
been busy for the past two weekends
Apr 27 at 14:51, by DaveRandom
"That huge block of code you just read? Yeh, not going to get executed."
@ircmaxell I think "change" is repeated too many times in there. I know it's about that, but rule of 3..
@Jimbo sure, let me see how I can reword that
15:28
"All aspects of it are changing rapidly" => evolving rapidly? :)
@marcio just showing how to refactor that without goto
user895378
@ircmaxell English major tip: try to avoid using forms of the verb "to be" it will make your writing more forceful and powerful.
user895378
e.g.:
user895378
> the communities surrounding PHP have been changing dramatically
"The nature of the communities surrounding PHP have been changing dramatically" => growing?
user895378
15:29
"have been" works but it's a passive past-tense thing
user895378
If you can pull your verbs into the present tense it makes it more impactful
-> "are", then? :)
no. just "change"/"changed"
it just reminds the "unless" debate people had here some time ago:
Apr 27 at 14:52, by Dan Lugg
{
    // 800 lines of code
} unless ($arbitraryExpression);
@rdlowrey Too bad this comes back to bite us when we try and do something against our own rules and those that don't understand why or when rules can be broken protest loudly.
15:30
changed "change" in most instances to other synonmyms
@ircmaxell As much as I love the word massive, I would consider using "great renaissance" or similar
@marcio imho it's fine if it's unless ($cond) {}
phenomenal? :P
anyone know any sales/marketing folks who have a better synonym?
(nobody say synergistic!)
@rdlowrey reload
15:31
Or even "grand", although perhaps that's too british
lol
explosive...
@Jimbo I don't think it needs a qualifier at all. Just say "PHP is currently experiencing a renaissance"
@Machavity Qualifier = grip people in the first sentence though
(as in the people reading the Cfp)
@Jimbo explosive
15:33
can i use the normal splHeap to create a distance sorted list?
^ @Danack (guessing that's where it came from? :P)
@Machavity I really want to push a sense of criticality to it
@Jimbo yep.
ok now it's much more bombastic :P
I mean that as a good thing
@ircmaxell Hmm. How about "PHP is currently experiencing a revolution."?
15:35
@ircmaxell I still try to wrap my head around LSP
I'm laughing about the error handler catching Throwables.
Everything should have just extended Exception. To me this is just further proof.
@Machavity revolution implies a winner and a loser around it.
I mean you can't pull a Joe Biden and go "PHP 7 is a Big F***ing Deal"
... sure lets hype php 7 like we hyped php 6 ^^
@Danack You considered not using the goto for ircmaxell's code example?
15:37
@ircmaxell Or just two losers
@LeviMorrison too much BC break for all the existing pokemon exception handlers
@ircmaxell sure… PHP 5 users are losers, PHP 7/8 users winners… ;-D
@NikiC Ooh, philosophical now :)
@Jimbo Yes. Using a do/while makes it look like a loop. It's not a loop. And there's nothing wrong with using goto's where they are needed, so I'm not going to try and avoid them where they are the clearest way of coding something.
@bwoebi there is a PHP 0.875?
15:38
@NikiC as is often the case
@Gordon hehe
@Danack I don't know, the loop is easier to read... could just add a comment above saying "this is not a loop" :P
(imo)
@Gordon yeah, you're not running it in production?
@Danack or, even better, extract it to a method, so you return!!!
@ircmaxell nah, I rarely go with the hype
15:40
@NikiC what are your thoughts on the abstract?
What abstract?
17 mins ago, by ircmaxell
https://gist.github.com/ircmaxell/3d9503b14e9e1fc50cf2
@chozilla if only we could implement this on some governments
@FlorianMargaine Eh, I disagreed then and I still disagree now.
@Jimbo everyone on the internet knows this one, specially Danack. He is like a squirrel of the internet that knows where every meme or quote was stored
15:41
@Gordon we have in the past. The only difference is Heaps can be in a non-corrupted state. Government just changes from one form of corruption to another.
hehe
@tereško You a fan of RTS games? Ever played the Anno series? Reason
Again, refactoring solely to avoid a goto, is not a choice I'm going to make.
@Danack Aint nobody got time fo dat
That code snippet is totally crying for extracting a function and returning
Definitely not a place to use goto
15:43
@Jimbo I played one of the Anno games, wasn't impressed, havent given a second look yet. I am currently stuck on Long War. It's hurts
@Danack it's not refactoring to avoid a goto. It's refactoring to make the structure and context of the code more clear.
you want to use a goto, go for it.
@tereško Fair enough, I played Anno 1602 as a kid and still think that was a the best one. Probably nostalgia :)
lets find out how this splHeap thing works...
@chozilla Poorly, like many things in the SPL :D
@NikiC I think the reason @Danack isn't extracting into a function (the obvious fix) is to keep the speed as fast as possible
15:45
@LeviMorrison you recommend against it?
@chozilla If it works for you then it works for you.
Wow... everyone is a philosopher today...
@Jimbo ubisoft. I will have to see reviews before I even add it to "might play" pile.
@ircmaxell As usual, that's just too sensationalist for me...
15:50
@tereško Yeah, uPlay is stupid :-(
user895378
@ircmaxell posted a comment on your gist -- it's how I would write something like that. Feel free to steal, use or ignore any of it without attribution.
I claim @rdlowrey's attribution
@rdlowrey That sounds great
#phplaw
@ircmaxell well, to answer the question in the excerpt: php should make a code of conduct and you as a white cis male should not be giving talks, because you are oppressing.
15:52
ok SplHeap does not help much in implementing the result of a Dijkstra run.
#controversial
ya know .. as seen in the latest trends
Not sure what cis means
it's a thumblr thing
humble tumblr?
15:53
Ohh, I found it
cis => "not trans"
user895378
@Machavity this is amazing :)
> denoting or relating to a person whose self-identity conforms with the gender that corresponds to their biological sex; not transgender.
I'm glad it says not transgender at the end, for a second I thought you were telling me that @ircmaxell wasn't a bloke and I was astounded
Tumblr is the pilot wave for radical authoritarian liberalism and thus comes with a lot of strange ideas to boot
my favorite is "otherkin" .. it's like furies, only crazy wait, no, I take it back. It's the "multiples".
15:57
nah
otakukin is the real crazy
@rdlowrey 60+% of the talk is about community, so...
otherkin aren't unprecedented; look at a lot of the early shamanistic beliefs
When Boyz2Men hits the playlist and you're super glad Ashley Madison was hacked instead of a music site that could leak your music prefs.
@NikiC it's supposed to be. It's a keynote. it's supposed to be opinionated and motivational more than technical
otakukin: "I believe I'm the reincarnation of all these anime characters, and the more popular ones you claim to be in your past life the more social status you acquire in our subculture"
16:00
also, I tend to write "sensationalist" abstracts because the goal of an abstract is to attract people to the talk, not be an outline for it
I've made a game of trying to downplay my presentation as much as possible
user895378
@Jimbo Hey, if you can't laugh at yourself what do you really have in this life? :)
in the actual abstracts
@ScottArciszewski you might find this entertaining. And quite disturbing.
"huh, here's 'Malware Doomsday', 'Corporate Espionage for Fun and Profit', and 'Information Leakage via Processor Cache-Timing'"
lmao
the trigger warning thing
16:05
@rdlowrey I tweaked yours a litt bit in a comment, thoughts on it?
user895378
@ircmaxell sounds great to me. I like your "walls falling" bit. You might be able to work in something about "barriers" somewhere too as that seems to be a major thrust of the talk
@rdlowrey yeah, I'll work that into the talk itself :-)
thanks for the help man!
user895378
np, anytime
lmao this series is hilarious
user895378
The most difficult part of writing (for me) is striking the right balance between the brevity to simplify your ideas and knowing when to pepper in some style and flair with words like "inexorable"
user895378
16:14
Too many sesquipedalian adjectives and you sound like an ass. Too much simplicity and you come off as boring.
@rdlowrey lol
yeah, that's why i try to make a dramatic assertion to "catch" people and draw them in
@rdlowrey he clearly needs more onomatopoeia
I just like to mess with people
the more exciting my talk, the more effort I put into making the abstract bland
user895378
One of these days I'd enjoy doing some real statistical analysis in the area of linguistics. I'd like to look at mathematical measures to quantify what makes good writing. So many interesting things ... such a short life :/
So did anyone already make a website where people can check if their spouse was on this website? Cause there is some ad money one could make from it
16:20
@tereško wtf
@NikiC it's the internet. Some people need to feel special.
@rdlowrey Ok Borges
user895378
I find Wittgenstein more interesting :)
user895378
Though sometimes he can really take you off the deep end
@rdlowrey sure, just didn't wanted to quit unexpectedly.
16:24
furries -> mixed bag, otherkin -> the ones I've met were particularly insane, otakukin -> infiltrated and trolled back in 2008
they were a different level of nuts
the more insane things you wrote for irony, the more they saw you as one of them
they're immune to satire
they didn't keep their vBulletin up to date though :P
when people say, "eww furries" I laugh because they haven't even seen half of what the internet has to offer
the mindmates thing reminds me a lot of the otakukin forums
Have we got anyone in here who'd be interested in contributing to an open-source PHP clone of Stack Exchange?
contributing how? content or architecture?
Architecture. Actually writing the thing
I'm getting there slowly, but it's a big project
unrelated: does anyone else find it amusing when spammers email you their template instead of the rendered output?
unless there's actually someone named {$aContact.first_Name} {$aContact.last_name} with an account at {$sBank}
@ScottArciszewski never happened to me… but I'd be quite amused first time I see that ^^
16:32
it's happened a couple times
@ScottArciszewski On that note, I spent 10 minutes earlier wasting a fake Microsoft technician's time.
@ArtOfCode I've wanted to hook Lenny up to our phone system for some time just for that reason
well, I just had the stupidest task handed to me in my programming career
bbl
@ScottArciszewski Nope, but it's always great to have a mail like [email protected], that way you can always filter mails containing "Kelunik Foobar". ^^
@Machavity That's an amazing invention
16:50
I’m XXXXXXXX from an education company called XXXXXXXX, and we created a PHP tutorial for our students. We realized that there are also so many other people who can use it too, which is how I found you.

Since I saw you are already using a similar tutorial from W3Schools, I wanted to pass our tutorial along in case you want to add more resources to your site.

Is this something you want to post on your page? If so, please do! We're just here to help people learn.

Thanks,
Hi
There is a web site built just with PHP, I have the database. Authentication system for website is all implemented in PHP. Just want to create web services based on the existing database.
But I don't want to write the whole implementation from scratch
Is there any way I can achieve this using a PHP framework so that I don't have to handle routing and all.
@ircmaxell HA! I always knew it! All your stuff is plagiarized from w3schools!!1
The Ashely Maddison data that was released is currently being seeded/torrented by a LOT of people.
@Gordon I'm going to throw things at you
@ircmaxell useful things?
16:59
@Gordon depends on your point of view I guess

« first day (1768 days earlier)      last day (3406 days later) »