« first day (2167 days earlier)      last day (2780 days later) » 

Anonymous
2:00 PM
@yessure Read up on MVC - You should not need PDO in a controller
 
Anonymous
@Traxstar Code ? (for search controller)
 
@Traxstar In the file you uploaded search.php has a lower case s. The class has an uppercase S.
 
Anonymous
@Traxstar caps
 
@Danack thats a typo from me, w8 i change it. its not in my local files
@Danack updated
 
2:04 PM
@JayIsTooCommon I don't understand, if I should not use PDO, how can I connect to the db?
 
Okay - but there will be a typo somewhere.
 
@yessure i am not sure what u are talking about but maybe he means u should not init your pdo in your controller ?
 
Anonymous
@yessure no no, read what I'm saying. You should / can use PDO.. But not in the controller.
 
Anonymous
!!? PHP MVC
 
Search for "PHP MVC" (https://www.google.com/search?q=PHP+MVC&lr=lang_en)
• PHP Master | The MVC Pattern and PHP, Part 1 - Si… - 4 mrt. 2013 - Learn the basic principles of the Model-View-Controller (MVC) pattern and see an exam… (https://www.sitepoint.com/the-mvc-pattern-and-php-1/)
• A Most Simple PHP MVC Beginners Tutorial | requir… - 4 jan. 2015 - Like (almost) everyone else he began learning PHP and soon enough he was asked to dev… (http://requiremind.com/a-most-simple-php-mvc-beginners-tutorial/)
 
2:05 PM
@Danack i checked namespace and classname..
 
Anonymous
@Jeeves @yessure Have a read :) You need to understand what the role of the controller is.
 
@JayIsTooCommon Thank you
 
@Jeeves what is mvc?
 
@Linus 42
 
@Linus MVC is a Design Pattern for your Project (Model - View - Controller)
!!? PHP MVC
 
2:07 PM
Search for "PHP MVC" (https://www.google.com/search?q=PHP+MVC&lr=lang_en)
• PHP Master | The MVC Pattern and PHP, Part 1 - Si… - 4 mrt. 2013 - Learn the basic principles of the Model-View-Controller (MVC) pattern and see an exam… (https://www.sitepoint.com/the-mvc-pattern-and-php-1/)
• A Most Simple PHP MVC Beginners Tutorial | requir… - 4 jan. 2015 - Like (almost) everyone else he began learning PHP and soon enough he was asked to dev… (http://requiremind.com/a-most-simple-php-mvc-beginners-tutorial/)
 
ah thanks :)
 
@Danack got any idea ?
 
@yessure stop listening to that bullshit
you should not even look in the direction of MVC for next 6 month
.. as a minimum
@JayIsTooCommon, you are either ignorant or malicious
 
Anonymous
here we go..
 
stop telling people, who are just not starting to comprehend dependency injection, to use MVC
it is fucking retarded
 
2:10 PM
:)
 
(:
 
@tereško ehhh tell him what to do instead.
 
Anonymous
@tereško I didn't read the DI stuff, saw the term controller and assumed mvc
 
Anonymous
@tereško And learn to talk to people like a normal fucking human being
 
@tereško why u need to talk in this way ??
 
2:12 PM
19 hours ago, by yes sure
@tereško and so where I get info for db connection?
19 hours ago, by yes sure
@tereško so even if I don't write global, if I call the var it works?
@JayIsTooCommon here .. have a context
 
Anonymous
There we go - now there's context. Calm the fuck down and stop dramatising everything.
 
why should I be calm about you ruining another developer?
 
@yessure short story: tight coupling. long story: martinfowler.com/ieeeSoftware/coupling.pdf
 
Anonymous
@tereško Like I say, dramatising - I recommended somebody doesn't use PDO in a controller and up to now you've come out with malicious, ignorant and ruining a developer. Get a grip
 
2:17 PM
@tereško you know better. telling him what to do instead would benefit him more than calling names.
 
@littlepootis or flaming the whole chat... : D
 
I had a question, but I can wait until later...
 
@Tiffany go for it
 
@Tiffany It's later now :P
 
@Machavity :D
 
2:19 PM
recently switched production web servers, prior to switching, authentication sessions were timing out correctly. after switching to new web server, authenticated sessions are not timing out. Code would not have changed. I checked php.ini and set the session.gc_maxlifetime to 3600 (60 minutes, up from the default 1440), but that wouldn't have any affect on the session NOT timing out
 
... wow ... really, what happened?
 
@Tiffany maybe the new server got another caching enginge ? so your changes won't get affecteed ?
 
newer version of IIS maybe?
went from I think 7 to 8.5
 
@Tiffany what about session.cookie_lifetime value?
 
@Tiffany dont know much about caching enginge. i just know the default ones. but that is the first think i assume with no changes affected
 
2:22 PM
@tereško session.cookie_lifetime = 0, but I tried closing my browser and opening it back up, and the session was still active.
 
@tereško can u have a look at my code ? https://gist.github.com/Traxstar/436b23970157524a167f50d5edbadf93

Starting a search request tells me: Could not make searchcare\Controllers\Search: Class searchcare\Controllers\Search does not exist
 
@m6w6 Yep, @DaveRandom covered what I needed to know.
 
unless I need to leave the browser closed for longer than two seconds
@Traxstar it's possible that the newer version of IIS has a different caching engine, so I'll look into that
 
Anonymous
@Patrick haven't heard of that before, thanks :)
 
@Traxstar well ... is there such a class defined? What's the config for your autoloader?
 
2:23 PM
@Tiffany yeah, i think that would be most simple reason..
 
Anonymous
@PeeHaa being cool tonight?
 
@tereško i will add all files that are necessary, wait a second
 
@Tiffany look at cookies data in the browser, what timeout has it there?
 
evening
 
i added the routes.php and the Homepage.php

Homepage.php is working, search not... https://gist.github.com/Traxstar/436b23970157524a167f50d5edbadf93
 
2:25 PM
Created: Monday, September 19, 2016 at 2:42:25 PM
Expires: When the browsing session ends
 
@Tiffany sounds good, doesn't it ?
 
but I just tried closing browser and opening it, and the session didn't die. but, I may not have left the browser closed long enough to let it kill the sessions?
 
@Tiffany using chrome ?
 
I basically closed the browser and reopened it in seconds
@Traxstar yes
 
@Tiffany mac/windows ?
 
2:27 PM
windows
 
@Tiffany okay, chrome is always running in background. maybe u need to end the process via task manager before he knows that browser ends ?
 
hm, maybe
 
@tereško u see where my mistake is ?
 
I'm going to try testing in Firefox, since I use Chrome for a lot of other stuff
 
@Tiffany be sure that all instances of the browser die's
 
2:30 PM
alright, the session correctly cleared in Firefox, so it's working. I need to check the old server and see what the cookie lifetime was
 
@Tiffany u are welcome :)
 
thanks :P
 
hope somebody can help me, too : D
really got no idea..
 
@Traxstar I suspect the issue is in the class definition
 
you don't use Http\Request? Just the response is "imported"
 
2:33 PM
double heck that the Search class does not have spelling mistakes in class and namespace
 
@Ekin The name without i looked better :-(
 
@tereško i checked that for 100 times...
@Ekin i need to use it later..
 
@bwoebi :-) I kinda feel the same
 
@Traxstar add an error_log(1111111) in your Search class file and check that autolaoder finds it
 
@tereško as first line or where ?
 
2:35 PM
(t will produce an entry in the webserver's error logs, if file is used
@Traxstar after namespace
since namespace must be the first line
 
@tereško okay, im working on local server startet via terminal, where to find log ?
got it, its not there
 
/var/log/apache/error_log
.. or something
so, that would indicate that the file doesn't get loaded
 
@tereško make sense, but why the fuck
 
what's your autoloader's config?
 
default one. just added some routes
 
2:38 PM
what is the filepath for the Search file ?
 
/Users/Tobias/Documents/WebServer/searchCare_dev/src/Controllers/Search.php
thats for working homepage.php /Users/Tobias/Documents/WebServer/searchCare_dev/src/Controllers/Homepage.php
 
Is it type hint or typehint?
 
@DaveRandom I fixed the issues I was having with notify/listen and updated the pool impl. to mark a connection as busy when listening. I also added a notify method to Executors.
 
@Traxstar do you have "searchcare\\": "src" in composer
 
@Jimbo type declaration
 
2:40 PM
lol
 
@Trowski That's one way of putting it, but typehinting is a thing, as is typehint according to the RFC by @Andrea who I trust knows her stuff ;-)
 
@Trowski wait, why would you need to mark a connection as busy when listening?
 
"autoload": {
    "psr-4": {
        "searchcare\\":      "src"
    }
},
@Traxstar to be exact
 
@Jimbo I think it's type hint.
 
2:41 PM
@Traxstar that doesn't seem to match your directory layout
 
@tereško and why is it working with severeal files then ?
 
> Type declarations were also known as type hints in PHP 5.
 
@Traxstar who knows
 
@tereško how do i need to modify it then ?
 
2:43 PM
have you actually run composer update after you last edited the autoloader?
 
@tereško oh no w8
doesnt change anything
 
@Ekin Hmm, that's pretty official. So are well known RFCs though
Well, we say official. They are open source :P
 
@Jimbo They used to be known as type hints but we've been intentionally moving away from that language.
The reason is that they aren't hints. They are required checks that cannot be disabled.
Contrast that to Python that actually has hints (they are ignored at runtime completely)
 
@Traxstar did you verify that calling error_log() from bootstrap will produce an entry in logs?
 
@LeviMorrison So it's actually not typehinting then?
(That's the word that doesn't throw a spelling error)
It's "Type declaring" or "Declaring the type", doesn't have a nice ring
 
2:46 PM
@Jimbo No it is not
 
@tereško yeah thats working
 
hmm...
 
@tereško i guess you haven't seen any typo ?
 
havent actually read your code .. just skipped over
 
@tereško could it belong the post method that it is not working ?
Switching Mehtod to get brings this error:

Static route "/search" is shadowed by previously defined variable route "/([^/]+)" for method "GET"

But still no error log
 
2:49 PM
['POST', '/search', ['searchcare\Controllers\Search', 'show']],
shouldnt there be a GET rule?
 
@tereško i want to sent data via post
 
but are you sending a POST there?
 
what ?
 
Dan
With Doctrine, when generating entity classes from metadata (from the database) how do I implement a naming strategy for the properties? I can only find NamingStrategy for code-to-tables, not the other way around.
 
browser > dev took > network tab
is the request actually with POST method
 
Dan
2:50 PM
I have table columns such as isSomething generated into properties named issomething
I'd like to retain the casing rules
 
@Dan Are you asking how to retrieve data with casing intact?
 
@tereško yeah it is
 
Dan
@PeeHaa Yes?
 
@Dan What dbms?
 
@Jimbo Use it in a real sentence and I'll tell you what you should say :D
Sometimes you can just say "types" or "type info".
 
Dan
2:52 PM
@PeeHaa MySQL, but I've got the flags for casing set to retain for table/column names
 
"Hello, that's a nice tnettenba" - @LeviMorrison 3 lines down :)
 
@Traxstar that's it. I am out of ideas.
 
Dan
Oh, it's happening on metadata generation, not on entity class generation...
 
> PHP already had type hint capability for compound and composite types such as objects, arrays and callables.
@Dan My favourite ass cactus alive?
 
Dan
@Jimbo Yes, surprisingly
 
2:53 PM
@tereško fuck my life i am noob and the pros even got no idea :D
 
I'm confused on why you don't import Request, but pass it in ctor, and then try to do stuff with $_POST['ort'] etc @Traxstar
 
@Dan I thought mysql kept the casing by default in nix
No idea :)
 
Dan
@PeeHaa (I'm on Windoze /snicker)
 
@Traxstar I dont use FastRoute .. I have no idea whether it has a verbose mode
 
@Dan and mysql and windows
 
2:53 PM
last chance maybe error is in form ?

<div id="form-div">
<form class="form" id="form1" action="/search" method="post">
<p class="ort">
<input name="ort" type="text" class="validate[required,custom[onlyLetter],length[0,100]] feedback-input" placeholder="Ort" id="ort"></input>
</p>
<div class="submit">
<input type="submit" value="Suchen" id="button-orange" />
<div class="ease"></div>
</div>
</form>
</div>
 
my best guess is that your autoloader's config is borked
 
Is this an asp application too by any chance?
:P
 
Dan
@PeeHaa ...it started as one
;-)
 
:D
Well no idea in that case the casing flag does work. As in I have seen it work some time ago
 
@PeeHaa got some time to help me ? :D
 
2:55 PM
@Jimbo I'm not really grasping this sentence ^_^ Can you say it differently?
 
No not really
 
Dan
@PeeHaa Hmm, the flag on the MySQL end really only affects the table naming; column names are always stored in mixed case... Doctrine metadata generation seems to be borking on it
 
Sooooooo
and doctrine
 
:P
GL o/
 
Dan
2:57 PM
NamingStrategy::classToTableName needs a complimentary NamingStrategy::tableToClassName
@PeeHaa \o ... \/*sadface* fucking markdown
 
hehehe
and markdown
You're fucked :D
 
> PHP already allowed declaring compound and composite types such as objects, arrays and callables.
 
Dan
Is this a meme?
 
@Traxstar "searchcare" is your base namespace, but the autoloader does not know that
 
Dan
> and something
 
2:58 PM
It is now
 
Dan
Very good, I like piloting the future
 
it's looking for the file in ../src/searchcare/Controllers/Search.php
 
Dan
co-piloting at least
 
@LeviMorrison It has to be with reference to scalar typehints though as that is what I go on to mention... Hmm, I see you like "declaration" more though
 
@Traxstar you can try verifying it by creating that location and putting an error_log in that file
 
2:59 PM
@DaveRandom If a listening connection performs an unbuffered query, it doesn't receive notifications until the entire query result is consumed.
 
@Dan maybe @Ocramius cares to help you
 
It doesn't technically have to be marked busy, but from a pool standpoint it makes sense to do so.
 
@Jimbo I can see Levi's eye twitching because you keep using "hint" :P
 
@tereško so how to fix this ?
 
@Jimbo The name of the RFC was scalar type hints; you can just say that since that's what they should search for.
 
3:00 PM
@Trowski ahh right yeh I suppose so, although you should ensure that if you are listening on multiple channels then they all use the same connection in that case
 
Btw. @NikiC I hope you're not going to award the bounty immediately in order to draw more attention to it first :-) [so that as few as possible remain … uneducated.]
 
But just know that we are actively moving away from "type hint"
 
otherwise you'd be "wasting" a connection per channel
 
@DaveRandom That's a good idea, I could definitely wire that up.
 
@Traxstar first you need to verify that it's the problem
 
3:01 PM
> Scalar variables represent primitive types in PHP including string, int, float and bool, and these can now be type hinted for as function parameters.
 
@tereško ok, need to go till 18 o clock then i will try, thy
 
"And these can now be declared..."?
 
@Jimbo Easy:
 
I'm shit at my own language.
 
> Scalar variables represent primitive types in PHP including string, int, float and bool, and these can now be used as parameter and return types.
 
3:02 PM
@bwoebi of course
 
@Jimbo I also shit on your language
 
lol
 
bounties are for the views, not the bounty ^^
 
@NikiC Well, it depends… bounties just asking for an answers may be rewarded immediately too.
 
@LeviMorrison Noice, cheers
 
3:04 PM
@LeviMorrison That reads as though "scalar variables ... can now be used as parameter and return types."
 
@salathe "...and these scalar types can now..."
Honestly it should be two sentences:
> Scalar variables represent primitive types in PHP including string, int, float and bool. These scalar types can now be used as parameter and return types.
/afk
 
@LeviMorrison Better
(I'm ignoring that variables don't represent types... woods for the trees!)
 
@Wes Wha?
Joe is way too aloof to be Gilfoyle.
 
@salathe Hey! It's what Jimbo said :D
 
Yeah I know :)
 
Wes
3:08 PM
@Sherif i didn't mention their personality
 
@Wes I don't see any resemblance, really.
 
Wes
i know, it's just that i'm secretly in love with joe
10
keep seeing him everywhere.
:B
 
creepy stalker vibe
 
Wes
lol
 
@JoeWatkins you better get padlocks on that door!
 
Wes
3:11 PM
still haven't done anything today
but i switched to js now. made things even worse
 
@AlmaDo Holy crap! I understand German now.
 
@Sherif in German it doesn't actually matter what you say. As long as your rhythm is hard and the verb is at the end - you're fine
 
I took a German class once. I felt like the instructor was screaming violently at me the whole time.
I kinda peed myself a little. German is scary.
 
I'm going to one right now ( ͡° ͜ʖ ͡°)
 
@AlmaDo How's your german after this time?
:)
 
3:33 PM
!!dad
 
What do prisoners use to call each other? Cell phones
What do you get when you cross a snowman with a vampire Frostbite
 
!!dad
 
If prisoners could take their own mug shots, they'd be called cellfies
 
How come @FélixGagnon-Grenier got two?
 
Anonymous
he edited his message
 
3:35 PM
I am master hax0r
 
My wife is on a tropical food diet, the house is full of the stuff It's enough to make a mango crazy
 
Noice
 
These jokes are actually not that bad. If I wasn't convinced of it already, I now know I am a dad.
 
4:02 PM
Voting "no" for the PHP Engine Identifier RFC. These constants already seem like deprecateware material, and PHP is already full of these.
 
I'm not sure how it would "scale" to HippyVM anyway.
You have to be aware of every engine you want to inspect.
These constants don't really change anything.
 
@JayIsTooCommon yeah probably. Ping me when you are on
 
@Traxstar when this happens to me, I use a debugger to step through the classloading code, to find the error...
 
4:34 PM
@Danack i have unfortunally no acces to a php debugger
i even cant figure the error out
@Danack can u help me to figure it out ? i tried all i know...
 
> PhpStorm includes bundled evaluation license key for a free 30-day trial.
 
i have testes phpstorm some time before...
so no trial left
@Danack i think the error is in my composer autload, but i dont know how to fix if it is there
 
oh thats cool :) thy :
i set it up now and so on... how to debug the right way now ?
 
5:06 PM
i went to step by step now and the result i got was the he cant find my class... but still no idea why @Danack
 
@Traxstar On the line after you load the autoloader, do new Search() and then put a breakpoint on that line, debug the code, it will hit that breakpoint and you can then step through the code. The problem should be revealed inside the composer autoloader code where it is stepping through the possible directories that the class could exist in. Either that directory won't be found, or the file_exists() call for the correct will fail.
You'll then need to compare the directory/file name you think should be right, to the directory/filename that composer is trying to load.
 
he is just looking in searchCare/Search
/Users/Tobias/Documents/WebServer/searchCare_dev/vendor/composer/../../../src

This is the folder he is searching in...
 
5:26 PM
\o
 
o/
 
5:45 PM
@Machavity it's the clock time being modified rather than the absolute time, and everything else gets adjusted to match
just like trying to add +1 month when it's January 31, there's ambiguity what the "right" behavior should be
 
Makes sense
 
@PaulCrovella you should reply this as answer, with it references to a trustworthy source
 
php-src is the only source of truth, and describing the behavior (even when citing the source) would only restate the question.. I've no idea how the decision was made in order to answer whether this particular route is intentional or an oversight
 
@PaulCrovella I mean, are there no quotes from Derick?
 
6:01 PM
dunno. possibly. probably.
 
suggests it's an old bug which had been reappearing?
 
whenever I feel like I'm having a shitty day, I talk to a friend who works at a hospital, and I'm so fucking glad I work in an office.
 
@bwoebi wouldn't surprise me if it got "fixed" back and forth depending on expectations at the moment
 
possibly
 
he's a physical therapist, and two of his patients are driving him up a wall because they aren't following the instructions given to them, been in the hospital for a month, but it's the therapists' fault
"I'm tempted to resort to pillow therapy."
I only told that story so I could give that quote, because I find it too funny not to share.
 
6:09 PM
"Look, we're basically on earth to shit and fuck. So unless your job's to help people shit or fuck, it's not that important, so relax."
2
 
excellent point for not taking a bad day seriously
at least for programmers
 
If a domain object needs to be validated against your database, but domain objects are not suppose to know about the data access layer, does that mean I have to encapsulate the validation strategy in an object?
 
@PaulCrovella dunno, the relevant code in do_adjust_timezone() hasn't been modified since 2005
 
6:30 PM
what should happen if you add a day? should the clock time change because you happened to cross a dst switch?
huh, TIL about non-transitive probabilistic comparsion .. hadn't considered that before
 
Anonymous
@PeeHaa will be on at 8 if you're game
 
k
 
6:49 PM
@bwoebi FYI if the reflectiontype changes get reverted I'm probably going to quit contributing to PHP. It's not because I care that strongly about the particular case; it's just that if people cannot see my viewpoint or Nikita's then it's just too difficult to achieve any progress.
It's just not worth my time to invest when nobody actually listens to sanity. This tends to happen far too frequently on the list as well, so it's not isolated.
So if that happens you are free to take whatever RFCs you want that I've claimed and then I'll put the rest out to pasture.
 
@LeviMorrison It's frustrating when people see only red tests and can't see the bigger picture, that if they are using 7.1, generating code compatible with only 7.1 should be acceptable.
 
@Trowski This is also reflection. As the language changes don't you think its reflection is going to change?
 
RT @Nick_Craver: It’s a common misconception that ORMs always generate SQL queries. That’s not true. For example, they often generate abomi…
 

« first day (2167 days earlier)      last day (2780 days later) »