« first day (2347 days earlier)      last day (2827 days later) » 

Anonymous
13:00
to being a millionare
@JayIsTooCommon lol
@Kay the password hash is okay to have there imo. and for simple apps its also fine to do that registerupdate stuff there, but I'd move that into a ReigsterUpdateService instead
@samayo Unfinished Projects Millionaire?
Anonymous
I went outside to buy luch, came back with a new idea, I cannot resist to start
do it, that's totally the one you're gonna stick with. this time it's different.
Kay
Kay
@Gordon Oh okay thanks for the information
Anonymous
13:03
@Gordon yup, pretty much.
Kay
Kay
@Gordon My only problem is doing the password verify. I was thinking I would do that in the controller for the login but $hash is only in the register controller file
Anonymous
@PeeHaa PHPSC?
@JayIsTooCommon Uhhhmmmmmm
Will discuss next week
Anonymous
i'll send you some more nudes to entice you in the meantime.
13:07
@PeeHaa doo eet
What you are going too?
Sorry @JayIsTooCommon. I just heard I am not able to make it
Anonymous
:P
@Gordon When using your tdg, your "tables fields" are always named the same as your "object class variables"?
@PeeHaa I will bring crack
13:10
Tempting
he means his butt crack
Anonymous
No, I'm bringing that
I do. I do mean my butt crack.
Anonymous
well, this is awkward.
you can still bring yours if you want
You can never have enough butt cracks, that's what I've always said
You can never have enough butt cracks, that's what I've always said
Anonymous
public image++
@JayIsTooCommon Well, you started it. Who else wants nudes of you? :P
Anonymous
:D
It would be quicker to list the people who don't
user6845426
13:13
Hi all. I have a small website that i'm making for a company. I'm trying to implement a way for the website admin to upload new images which will be displayed on the main website inside <img> tags. How am I best to go about this? Save image paths on a db and store the images on the server or save the paths with JSON?
Oooh btw is the blame ph label on jeeves permanent or was it just for the failing build? @PaulCrovella @all
@dipper The moment you use database and json in the same sentence you are doing it wrong
@PeeHaa I was considering that over the weekend and wondering if it might be feasible to make that actually do a thing
Unless you have one of those fancy nosql databases
@Julo0sS that depends on whether you will use objects for the rows in the first place and whether your object structure maps to your table structure 1:1.
@DaveRandom "do a thing"
Anonymous
13:14
Are we going to add a coverage percentage once we get good?
@PeeHaa for as long as there's something wrong with jeeves, so permanent
@PeeHaa when the build is failing, find the build that made it fail and actually name and shame people
if build fails then commit blame label
@DaveRandom That's actually useless awesome
for example, I try to use a "hydrator" to fill data into my object instances, but since the data is coming from db (from tableGateway) the fields do not always match. I (and tbh i dont remember why i do that) use underscore seperated words in my database and camelcase in code... that hurts
@PeeHaa OK, but we should make sure that the build will fail unless the badge blames @JayIsTooCommon
Anonymous
13:16
I wonder what would happen if you put a chameleon on a mirror
@Gordon database side I have "first_name" and php side I have (do I have to change?) firstName...
hehehe
@JayIsTooCommon I am going to bet and say that's already a question on yahoo questions
!!? chameleon on a mirror
Search for "chameleon on a mirror" (https://www.google.com/search?q=chameleon+on+a+mirror&lr=lang_en)
• Here's What Happens When a Chameleon Looks in a M… - 18 jun. 2016 - “Male chameleons will, in most cases, immediately change colors in response to seein… (http://news.nationalgeographic.com/2016/06/animals-chameleons-reptiles-science-colors/)
• Chameleon mirror attack - YouTube - go to 1:30 to see the attack.. he is doing that because male chameleons usually hate seeing each ot… (https://www.youtube.com/watch?v=aG5ZzQlD50E)
@Julo0sS no, you don't have to change. it's a common convention to use underscores in a db and camelcase for object props. yes, that means you will need to do some sort of mapping between the rows and the objects.
Anonymous
13:19
@PeeHaa I'm finding nothing satisfy-able. I will keep digging and keep you up to date.
@JayIsTooCommon you know it's a myth that they change color to blend in with their surroundings, right?
Anonymous
huh
Anonymous
TIL
> i don't know about that. even chameleon will get confused at this one
Anonymous
13:20
> Everyone knows that when a chameleon is put on a mirror it blows up because its body gets confused.
why is Y! answers still a thing.
s/answers//
says someone currently on stackoverflow
mail still reasonable for Googlephobes
@PaulCrovella I don't do SO anymore :P
Only chatso
@DaveRandom wat
If you want to make sure your data leaks I guess yeah
13:23
how many accounts were compromised in that last report?
Last one was 0.5b iirc
The one before that over 1b
Anonymous
didn't @Sherif used to work for Y! ? Blame him.
And the one before that 0.5b
so I have an array in a form, e.g. name="contact[from]", how can I access the particular field using $_POST? $_POST['contact[form]']?
:P
@Tiffany It's a multidimensional array
Use the var_dump
13:25
I did, but I can't get the contents...
Anonymous
Google UK ads are going to shit atm
@JayIsTooCommon Why?
$_POST['contact']['form']
the variable that I want to dump is created in the controller and I'm not sure how to dump it from the view.
But still you are trying to access it?
13:26
thanks @DaveRandom
If you are wondering about how to do $_POST['contact[form]'] you can dump it
Anonymous
@PeeHaa they were showing ads alongside terror related videos on YouTube iirc, so now a bunch of companies have withdrawn their ads, to name a few ;
You cannot have one without the other
Anonymous
> Other big names to take similar action include McDonald's UK, Tesco and Sainsbury's, and Audi UK, plus high street banks Royal Bank of Scotland, HSBC, Marks and Spencer and Lloyds
13:27
yeh, you shouldn't be accessing superglobals anywhere apart from the place where you wrap them into a sanely injectable thing
I'm not sure that I can dump it though because the controller submits to a success form. At least I'm not sure how to dump it.
Anonymous
@PeeHaa that may of all been bs but it was something like that.
trying to get the from field in a contact form so that I can CC email address in the headers
cut heroin with superglobals. got it.
hmmmm cheap ad space for me \o/
13:28
@JayIsTooCommon Well I'm fairly certain McDs is a terrorist organisation
preroll all the videos! Guerilla marketing ftw \o/
I'm just bad at multidimensional arrays, like I'm bad at a lot of stuff in PHP.
@PaulCrovella Oxycontin. This is the 21st century man
@DaveRandom I thought they fired that clown
I think I even asked this as a question on SO before. Jesus I have a terrible memory.
13:30
lol dat moment that even @DaveRandom thinks his jokes are bad :D
@Machavity kids these days have no appreciation of the classics
I don't care about bad ones, but on reflection that ^ was racist
should've gone the IRA route.. pasty skin and red hair play into it well
lol
Closure::bind does not require new scope to be string – #74277
Anonymous
13:41
^ i like this plugin
user6845426
Is there any tools I can use to debug php output? I'm trying to connect to a db but not getting any output, so unsure how to action
How would I var_dump a variable created in a class (controller) to the view? I would need to access the variable from the class. Could I do something like ...
$class = new Class;
var_dump($class->somevar);
So you mean you want to pass a variable from a controller to a view?
13:47
new Controller(new View) and in one of the controller methods: $this->view->addVar($var);... OR...
new Controller(new ViewFactory) and one one of the controller methods: $this->viewFactory->createWithVars($vars) etc etc.. plenty of different ways
that would be dependent on the controller having a view method though, right?
(which it doesn't :/)
No it means that at a certain point in your controller lifecycle, you decide "right, I'm ready to give some variables to the view now", and then you pass them to it
and how I would do that depends entirely on how the MVC is structured
woah
that was two sentences
No, that's right...
brain is splicing stuff
It just depends on how you pass your view to your controller :P
It varies in this codebase.
13:51
There are other ways to give variables to the view though. For example in Objective-C (anyone here can slate me if i'm wrong) the controller doesn't have the view injected, it uses the observer pattern or a form of it to just pass variables to anyone who is a registered 'listener'
In this instance, it's a couple HTML files.
I'll have to dig through code and see if there's an example of passing variables to the view from a controller
@Gordon for Instana, can you tell the range of la plata? :-) Danke
The main controller has a render method to generate pages based on HTML files, but no method that lets me send data from the controller to the view. One would probably have to be written.
@DejanMarjanovic IDK what that means, so I am afraid I can't.
Oh, no Narcos for you, salary/money.
14:00
I think he might be determining who's smarter.
@DejanMarjanovic plenty
Is it like the number of rooms on Stackoverflow chat plenty?
considering the number of rooms on SO can be infinite...
@Tiffany You are overestimating balpha
No, I am the current number, written in the sidebar.
14:03
I figured it would be dependent on how much some variable could store, but I'm putting lotion on my hands so I had to type fast
We all put lotion on our hands for @PeeHaa's mom
user6845426
@Machavity thanks, ill have a look now
@DejanMarjanovic you can assume the salary to be in a competitive range. it varies depending on what you bring and negotiate. we dont have a salary formula.
I BRING NOTHING, I LOSE..wait...
You know what they say @DejanMarjanovic. When you pay peanuts you will get war criminals
@PeeHaa I switched professions now, bitte i.imgur.com/0ITAFmb.jpg
3
:D
I like how you are shooting out of your backyard
I keep the AK on piano while I play.
@Gordon Thanks, of course, the bad thing is that lots of companies say competitive, but it turns out it's not even competitive in Eastern Europe.
At least I had bad experiences.
@DejanMarjanovic Wait, isn't that the new RFC complaint system?
@DejanMarjanovic you are perpetuating the colonial white cis male ideology of oppression
14:11
@tereško I don't understand, can you simplify?
lol
something tumblrinas
@DejanMarjanovic I probably shouldnt, since you are still untouched by the encroaching darkness
@DejanMarjanovic something something racism something something
I don't understand, surgically operated from that
user6845426
Anyone here use MAMP server?
14:15
@Jimbo do you mind if I ping you some questions related to MVC and what I was asking about earlier?
@dipper s/MAMP/Mac
user6845426
?
@Machavity Thanks, here's a thank you i.imgur.com/SCtHosY.gifv
@DejanMarjanovic Take shirt off to show dominance?
user6845426
hahah
14:28
in JavaScript: Types , 3 mins ago, by Oliver Salzburg
@BartekBanachewicz Teach a man Brainfuck and you will fuck them for a day. Teach them JavaScript and you will fuck them for life.
@Tiffany Feel free to put them out in here and I'll answer if i can :)
Thanks
Anonymous
@DaveRandom @PeeHaa testing logging is a bit daft, no? github.com/Room-11/Jeeves/blob/master/tests/src/System/…
All the JavaScript fanboys get hurt in JS room when they're told they're full of shit :D
looks expectantly at other people
Anonymous
14:34
i keep doing this :P
Anonymous
It seems completely daft to me though
@Jimbo So there's a render method to generate the view from HTML files. It does not allow sending data from the controller to the view. HOWEVER, there are two extra methods: beforeRender() and afterRender(), with nothing in them. Could I use one of these to write in the ability to send data to the view, or should I just write a new method?
@Jimbo That's why we love the PHP room. Everyone is already deflated from using PHP
I ask JS questions in the HTML/CSS/Web Design room because I can never get a straight answer from the JS room, or they just ignore me.
what did you ask them about?
14:38
sometimes it was a question I could google, sometimes it was something I didn't fully understand and wanted clarification
@Tiffany Well sure, looks like you could use beforeRender to pass variables to the view
What're your reservations about doing that
Is beforeRender used differently elsewhere in the application?
JS room seems to have a circlejerk clique, and if you're not part of it, eff off.
I'm not sure that it's used at all because it's an empty method right now
using one of the methods seemed logical, but what is logical to me sometimes is not what is logical in general
@Tiffany this room could be accused of the same thing, on a bad day...
I've consistently had bad luck in the JS room though. Either it's coincidence, or they like to ignore beginner questions
Here, sure, it depends on the day and what the conversation is going on at the time, but I've had better luck getting an answer or receiving help.
Anonymous
^^
Anonymous
14:44
This room isn't always welcoming
It's a difficult problem, tbh. Rooms like JS and PHP attract a lot of time wasters and help vampires by their very nature (they are very popular languages, and there are a lot of people who practice Stack Overflow Driven Development in both). Because there's such a constant stream of total garbage, when people spend a lot of time there, their mental filters become configured too aggressively and you hit a lot of false positives.
Of course, some people are just asshats, but that's true of every community ever
/me waves
something something laravel
yes, very much that
Anonymous
> FBI confirms they are investigating links between Russia and the Trump campaign
14:47
I've never even looked at a PHP framework, but the hostility towards laravel makes me giggle.
@JayIsTooCommon can we impeach him yet? :x
Anonymous
Feb 7 at 9:18, by JayIsTooCommon
@JoeWatkins I still don't like the blanket alienating response that we have when anyone mentions a framework. Shit or not, shitty frameworks are popular, we should expect questions relating to them. And prime example ^^^ Told to go somewhere else because he mentioned Laravel, but it's actually because he's using strtotime wrong.
@Jimbo Did you have a closer look at the RPC thing?
@Tiffany Laravel itself is not the problem, but the people constantly using it for the wrong things … Laravel is sold as a does-all-the-things solution while it really isn't.
@JayIsTooCommon meh
That is what makes us annoyed about it.
14:48
feel free to skip it
Anonymous
@PeeHaa thanks
@bwoebi It is not?
Anonymous
it seems a bit ott?
Also Laravel is shit and people who use it should feel bad and cry themselves to sleep
14:49
ohai I mean
Anonymous
testing that debug logs log the correct content :P
@kelunik not really by its creator, but by the community at large
@JayIsTooCommon testing debug logs is indeed ridiculous
Clearly if laravel is not the solution you just have used enough laravel on your project
@JayIsTooCommon yw :P
@bwoebi wordpress suffers the same problem, to an extent
14:50
That's an easy job I have there
@DaveRandom Most? WP people know it's kinda rotten though
@DaveRandom right, but it still is more bound to a blog/cms platform than a generic tool.
wordpress is not awful for the thing that it is for, but the thing it is for is being a blogging platform, not a generic CMS and certainly not a general website platform
@JayIsTooCommon We don't actually have to answer questions at all here, that's what SO proper is for
I mean. Nobody is that dense right
@DaveRandom Uhm even for a blogging platform it is terribad
There are people who are adamant about making wordpress sites.
14:51
5 hours ago, by PeeHaa
Just look at the fucking database. Not even have to look into the code
@kelunik We all know it's not. jQuery solves it all
Hi, can someone help me understand something. I want to create a website ( what a surprice ), and I want to have rest service as backend ( all page loadings will be ajax calls to this webservice ).
What i can't firegure out is how does my clients ( that open that page ) will auth securly, so their browser will do ajax calls to my backend ( without sending the token as a get param for example ) or what i am saying is simply bullshit and doesnt make any sence whats so ever and noone does this kind of stuff ?
@PeeHaa well, sure, but it's good enough for most blogs though … after all the usage as blog usually does not involve too much custom code
@PeeHaa it's designed to have a very low barrier to entry, it's designed to enable almost completely non-technical people to do very complex things. It's sort of a giant DSL. That sort of thing does have a place.
Anonymous
@Leigh yeah I know, but i'd rather no answer than a shitty response telling me to go elsewhere
14:52
The same is true of Laravel, to some extent ^^
@JayIsTooCommon If you want that kind of response you can go elsewhere :p
@DaveRandom for a blog, yes … for cms too?
@DaveRandom So the reason they are storing everything as json in the same table is that?
Anonymous
@Leigh hahaha
Sorry but I disgree
14:53
@bwoebi yeh, it's not suitable for use as a general CMS
@DaveRandom right
@JayIsTooCommon Well, start your own chatroom. With platforms and hookers
Also all the WP vulns alone should be a pretty good indication it is fucking gawdawful
@bwoebi Well, except for encouraging global state by providing these APIs?
@Machavity send the link :D
user6845426
14:54
I'm using mysqli_init() and mysqli_real_connect() to attempt to connect to my db. I've also got an if(!$conn) { die (mysqli_error($link)) to print out the error code if a connection isn't made. For some reason, this isn't being outputted. How would I go about debugging this? I'm using PhpStorm and have JetBrains debugging the browser
Anonymous
@Machavity won't you miss me?
@JayIsTooCommon Wait, you can only be in one chat room at a time?
Anonymous
Yeah, i'm no whore
@kelunik people building large scale systems with Laravel which get a nightmare to maintain over time. Especially if you start using some of these more problematic parts of it sometime.
@dipper can you var_dump $conn?
14:56
Drupal is more sane, but lacks all the plugins offered by wp
@bwoebi That's true for anything. Because people don't think about their architecture.
Anonymous
Drupal's intended db structure is crazy iirc
@PeeHaa sure, but it's a gigantic legacy application that was initially built for non-technical people by slightly less non-technical people, more recently it is being maintained by some people who are trying to untie the gordian knot without breaking it so hard that no-one's blogs work any more.
@dipper I'm not sure if it's actually possible, or if it'll give you relevant information, but var_dump usually helps me figure something out. That or throwing an exception.
I swore off frameworks after trying to write an application in Zend Framework 1. Obfuscated all the things
14:57
@kelunik Sure, but there are things which encourage it less or make it easier to cleanup afterwards than Laravel.
I'm not really going to defend it in any way, all I'm really saying is that a big part of the reason it seems so bad is because a lot of the time people are forcing a square peg into a round hole
@DaveRandom I have seen no movement at all towards unfuckifying it at all. Or at best very little
Or you might check to see if mysqli has some bit of error handling that you can utilize.
user6845426
@Tiffany yeah that works. It prints: bool(false). I just wondered if i could print some sort of error log with it
@PeeHaa they actually respond to security issues now (mostly)
14:57
If WP would stop supporting PHP 5.2 it could solve a lot of problems
@dipper you may need to use a method to get the error message.
@DaveRandom Yes, but that's not really pro-active "recently it is being maintained by some people who are trying to untie the gordian knot"
user6845426
@Tiffany thanks :)
There is so much old crap in there that can just be removed without issues
@dipper looks like it might be die($conn)
22
Q: How to display errors for my mysqli query

Iain SimpsonI am using the following script to process a form that I add info to my website with, the problem I am having it when I press submit nothing gets submitted to the database, also there are no errors. How can I add error reporting to my query ?. <?php if (isset($_POST['itemdescription'])) ...

but there is also mysqli::$error

« first day (2347 days earlier)      last day (2827 days later) »