« first day (2008 days earlier)      last day (2950 days later) » 

10:06 AM
@Gordon What team? So team?
Welcome to the team :P
Does anybody know if there is an actual purpose to teams? :)
love your tagline btw @DaveRandom
 
It's what I do best
 
@PeeHaa Obviously to show off that you're running with a cool crew.
 
Meh, diggs into an old project from someone else { mysqli }. Thanks it's friday.
 
@PeeHaa any idea how easy it would be to have Jeeves get twitter handles from SO profiles and @mention the OP? By which I mean, is there already anything that can link chat messages to user profiles data from the API?
 
10:21 AM
The only way I could possible see that happening (besides manually mapping so + twitter users) is by parsing so profiles for twitter links
And no there is no such thing, but should be "easy"
 
@Gordon "Jimbo's supervisor" hehe
 
So long as SO exposes the twitter profile link in their API it shouldn't be a problem I imagine, would just take a bit of time to write
 
@PeeHaa Does the API not return that info for a user?
That sucks
 
@DaveRandom SO's API?
Chat's API?
 
yes
The SO API
 
10:24 AM
Blue or red?
yes
:P
@DaveRandom Dunno I always tend to parse html instead :D
 
Just looking, I don't think it does
 
Woops. Sorry was larger than it looked
 
@DaveRandom Aye just looked at that too.
 
Yeh looks like it's a HTML parsing jobbie for that
 
Anyone deal with a lot of systems that use queues in front of them? If so, how do you handle priority work that may come through for those systems?
 
10:35 AM
E_VAGUE
 
What's the correct raindance for mention bot on twitter @bwoebi?
 
guys how to update .json file on server with new one sent from ajax
 
dafaq!
he went for a lunch with wampserver?
 
And he got iis. SO that kinda sucks
 
10:45 AM
What do you even flag that as? :o
 
@PeeHaa This is so good I almost want to upvote it
 
:-D
 
@PeeHaa :P
1 min ago, by Epodax
What do you even flag that as? :o
 
Flag it as stupid
 
I don't think that's a flag option
If only it was, I would use it 98% of the time.
 
10:49 AM
Really, they should give an option for flagging questions as stupid..
 
Neither is "Flag user for sterilisation", but it should exist
 
@Epodax :)
 
@PeeHaa thx
 
anytme
 
we need to see if we can persuade stackoverflow.com/teams/11/socvr to swap team accounts so we can be team #11
 
10:55 AM
@DaveRandom ask @Rizier123. He is a member
 
I was just looking to see if there were any members I recognise as regulars in here
kinda surprised there aren't any that I could see
(that I know, anyway)
 
ok .. checking an assumption:
 
@DaveRandom You probably want to ask a RO in the SOCVR chat about this.
 
"if you are joining with a subselect in mysql, there will be no indexes used" - is this statement correct?
 
10:59 AM
@Rizier123 Honestly, I'd feel a bit of a dick asking, because it's such a huge effort for such a tiny and pointless gain. Also I'm English.
essentially, not a serious request
 
@PeeHaa what? I was only testing if Travis is working :P
 
@tereško doesn't EXPLAIN show when an index is used?
 
hello guys i have question lets say i have index page which is shows to visitors of the website and i have admin panel lets say domain.com/panel.html
What is the best way to secure this panel with username and pass
 
@tereško There can be no index on the derived table, but surely it can use an index if you are joining it on to an indexed column?
A join could potentially use two indexes, if one of those tables is derived I would have thought it reduces it to 1, not 0
(I don't actually know though)
 
11:04 AM
@GeorgiAntonov for that scenario: basic auth over https
 
@Gordon why basic auth?
 
so username and pass
is this basic auth
 
@Leigh or digest if you prefer that
 
@PeeHaa awesome :D
 
> As of MySQL 5.6.3, the optimizer more efficiently handles derived tables [...] During query execution, the optimizer may add an index to a derived table to speed up row retrieval from it. - dev.mysql.com/doc/refman/5.6/en/… @tereško
 
11:05 AM
with limited login attempts per hour
 
errr, wrong anchor, next subsection
 
@GeorgiAntonov basic auth has no such thing as limited login attempts. you'd need to a custom solution for that
 
@PeeHaa Next step is some code coverage...
 
how to add basic auth
ot my front end admin page
 
@GeorgiAntonov evertpot.com/223
 
11:08 AM
@Gordon just pretty rare to see basic auth recommended, just wondered why you'd suggest that over a proper login system
 
i guess ill start with hard guessable admin panel name
domain.com/blablablahardtoguess.html
 
security through obscurity not recommended
 
will work right or there is a way ppl can see it ?
 
There is always a way people can see that.
Because it's not real security.
It's just playing hide and seek.
 
i mean easy way without hacker programs which try milion things every second
i know but for 1 day it will do some work :D
right
i mean there is no way ppl can see that without guessing right ?
 
11:10 AM
@Leigh because its the most simple and doesnt require any 3rd party libs and I think its good enough in most cases, when done with https
 
domain.com/blablahardtoguess.html
 
@GeorgiAntonov You don't even need hacker progs. Matter of time before Google finds it and indexes it.
 
@GeorgiAntonov thats security by obscurity.
 
i understand
 
@GeorgiAntonov Do not assume this, and do not assume that people won't automate something to make guesses either
 
11:11 AM
And of course you can prevent that with robots.txt, but then the hacker can easily find the URL in there.
 
@Oldskool not strictly the case, would require it to have been linked to somewhere
 
He just linked it here \o/
 
I wonder if Google "discovers" urls sent via Gmail
 
@Leigh Very likely.
 
@GeorgiAntonov you can use hard guessable name in addition to a login system but not instead of.
 
11:13 AM
i understand i know its really stupid just while i make the research of how to properly secure
 
Idea for hacker-proof login system: use cookies to transmit auth credentials. Do not provide any way or instructions to set them through the UI, force users to do it with dev tools.
You can have that one for free, no royalties or anything
 
@DaveRandom x-auth header > cookie
 
@DaveRandom I dispute your claim of hacker-proof
 
Dispute it all you want, it's public domain now, no longer my responsibility, I don't have to answer to you... damn kids with their modern music ... mumble ... like a cat falling down the stairs ... mumble ... not even Irish
 
@Leigh s/most cases/many cases where only a single admin is needed
 
11:19 AM
@DaveRandom I'm wondering whether there's a better way to send a job to a worker as a priority without creating a second (priority) queue to put that job in to.
 
@Fabor which queue system are you using?
 
SQS
 
Just use something like that in the worker, I suggest
 
@Fabor creating another queue for priority work can be just fine, is there a particular reason you want to avoid it?
 
No particular reason but just wondering about alternatives.
@Leigh Informs me beanstalk has a priority param
 
11:26 AM
so $pheanstalk->put($json, $priority, ...)
 
Furry muff.
 
HI all
 
if you dont pastebin your code at least ctrl-k it please. thanks.
 
Also use var_dump yourself instead of asking what is wrong
 
Sorry for bothering, found my error :/
 
11:36 AM
I have table which contains 20,028 records(I am using phpmyadmin) .This I get when I execute `SELECT *
FROM `members` ` query
but when I execute this query
`SELECT COUNT( * )
FROM members` I get 20672 count .
I dont understand how is that is possible?
 
Have you tried counting them by eye?
 
@John It's not, there are apparently 20672 records. Also, never trust third-party tools like phpMyAdmin.
 
@Fabor how can I count 20k records
 
If you want to be sure, connect to your database directly with one of the official tools (like CLI client or Workbench application).
 
Start at 0 and then ++
I'm being satirical btw
 
11:40 AM
 
11:50 AM
happy friday all..
 
@AnmolRaghuvanshiVersion2.0 Happy rebeccaday
 
@DaveRandom tnx
 
12:07 PM
@tereško So, now that it's Rebeccaday... how's the new job going?
Figured all their stuff out yet? :)
 
Anybody sees what I am doing stupid?
> # adduser BackupUser
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX configuration variable. Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.
 
@PeeHaa apparently you set a restriction on usernames? :)
 
It's the default pattern
 
I'm not sure if a user can start with a capital letter. I'm used to all lowercase users.
So adduser backupuser.
 
wait wat
# check user and group names also against this regular expression.
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
O.o
 
12:14 PM
yeah, like that.
so no uppercase crap in there ;)
 
I'm kinda sure it would do a i somewhere
 
Obviously you can --force-badname if you feel like it.
 
The thing is I already have that user on another machine with the exact same config :|
Fuck it. It's friday don't fix it, but just work around problems..
 
You probably --force'd that one then :)
 
I'm somewhat sure I would have remembered doing that. Then again I tend to drink
Maybe I just used useradd instead
 
1:03 PM
"x no make sense" OR "x doesn't make sense" ?
 
http://stackoverflow.com/questions/36647913/get-file-value-before-up‌​load
 
To make sense or to not make sense. That is the question.
FTR it's the latter.
 
1:20 PM
Almost weekend yiha
But still so much work to do!
 
in simple words did you mean it's off-topic Fabor :P
 
hey
guys
anyone expert here in codeception?
 
Kay
Hi, I'm getting an error You have an error for an UPDATE script ( in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3)
 
can u paste whole query?
 
Kay
1:29 PM
My php script works and updates the database but I keep getting that error
 
can u paste the query?
 
Anonymous
@tiutalk ping
 
you dont need a WHERE clause in your UPDATE query?? @Kay
 
1335
Q: Why shouldn't I use mysql_* functions in PHP?

Madara UchihaWhat are the technical reasons why I shouldn't use mysql_* functions? (e.g. mysql_query(), mysql_connect() or mysql_real_escape_string())? Why should I use something else even if they work on my site?

 
Kay
1:33 PM
@WilliamFrancisGomes No I don't think so...there is only one row with 3 fields (poundRate, dollarRate, and euroRate). I want the script to run whether I put in 1 value, 2 values or all 3 to submit
 
so.... what was the book everyone suggested for starting with PHP?
 
Kay
I would use PDO but I need it to work with MySQL
 
yea first of all mysql_* is deprecated already
so u should change that
 
Kay
I know...but I cant change it....it must work with mySQL
 
 
1:35 PM
lol @Fabor
 
Kay
@Fabor cool story
 
@Kay u need to be specific with your error, coz its hard to assume on which part you are getting it
from the code u provided
 
@Kay Cool will be when your site is breached because you're using an unsupported version of PHP and old deprecated/removed functions
 
Kay
I'm getting the error when I put a value in the fields (pound rate, dollar rate), and (dollar rate, euro rate)
@Fabor cool
 
You can lead a horse to water... ^
 
1:38 PM
so that means 1 of your 3 field is empty?
 
Kay
@Fabor cool
@WilliamFrancisGomes yes
 
@Fabor Yeah at some point you will just have to say: fine you win
inb4 OP whining about having to change every sql call in his/her application
Also @Kay don't forget to share a link once your application is finished
 
you need to update your code @Kay
 
I would like to test your backup strategy
 
because of that empty field you are getting that sql error
 
Kay
1:41 PM
@WilliamFrancisGomes to?
 
@Kay There is no excuse to still be using mysql_ crap nowadays. It's been dead since 2012 and has been removed already in the latest versions. If you still build stuff with it nowadays, it's like building a horse carriage and thinking that you're still building a car. Yes, it's that ancient.
 
Kay
@WilliamFrancisGomes I don't get an error when I put a value in for the fields (pound rate, euro rate) and leave the dollar rate blank
@Oldskool YES THERE IS. IM SPECIFICALLY TOLD TO USE MYSQL FOR THIS TASK
I know how to use PDO.....
 
hey hey hey now dont take a pick on @Kay
 
We don't
 
Kay
Wow
 
1:43 PM
We pick on his horribly (vulnerable) code
 
Were you told to use mysql_* functions or mysql. There's a difference.
 
Kay
both
 
@Kay THERE IS NO NEED TO SHOUT! And you can use MySQL with PDO. And if your employer really specifically asked for mysql_, then your expertise should be kicking in and you should educate them properly. You're the professional, the client should be listening to your critiques. If not, they're dumbasses.
 
By who? A teacher?
 
Kay
@Fabor Yes
 
1:44 PM
@Kay been there done that
 
Find a new teacher.
 
i know how u feel
 
Kay
I asked him if I can use PDO and he said no
 
@Kay That just means you probably need to explain PDO to him.
 
Kay
No. It means I'll do it how he asks and get it over with
 
1:46 PM
Or, at least mysqli
 
^ that
 
Kay
Like I said.....mySQL only.....no mySQLi or PDO
 
/care
time for some slither.io
 
@SergeyTelshevsky I am usually going with wrox.com/WileyCDA/WroxTitle/…
it doesn't cover the newer stuff, but neither has it globals and mysql_* examples
 
@tereško It looks suspiciously like it's doing something half way sane, but it's MySQL so that can't really be true
 
2:01 PM
@tereško thanks, I'll recommend that one to one guy
 
Laravel or CodeIgniter? I'd like to have your advice
 
@tereško that books recommends you learn HTML and CSS from W3Schools
 
morning
 
@Cornest We're not typically framework lovers in here. Aside from building our own.
Perhaps check out the no framework tutorial
 
2:08 PM
@Cornest if you can explain to me in your own words, what is Law of Demeter, I will answer
 
Thanks @Fabor, i'll check out ur link
 
you guys know any good book for to learn design patterns?
i need one badly
thnx
 
@WilliamFrancisGomes I started with this one: amazon.com/Design-Patterns-Explained-Perspective-Oriented/dp/…
@DaveRandom if you can recommend a better one, I would do a quick review of it //cc @littlepootis
@SergeyTelshevsky you are still in the office?
 
man thats from ancient age
i want something latest
lol
 
a better... what sorry? RDBMS or something less subjective?
 
2:10 PM
@tereško
 
37 mins ago, by Sergey Telshevsky
so.... what was the book everyone suggested for starting with PHP?
 
oic
I cannot, I have never read a PHP book other than the Fine Manual
 
also this Codeception documentation really sucks
 
@WilliamFrancisGomes congratulation. You just lost about 1000 internet points
 
@littlepootis I have that book
 
and can you explain why you like it?
 
@littlepootis : it does give a very decent introduction to php . but cannot even come close to manual
 
guys i want to have some in depth knowledge on design patterns in php
 
Learn about design patterns first.
 
2:18 PM
yea exactly
any good books on that?
thats what i am looking for
 
I wish this was the matrix. I could plug my brain on a machine and learn jujitsu.
 
@littlepootis that for php internals??
 
well.. that's tooo bad
 
also @WilliamFrancisGomes I would stick with the book @tereško suggested.. have there been any new design patterns ?
 
@AnmolRaghuvanshiVersion2.0 No, just the basics.
 
2:19 PM
Also almost none of the popular books related to design pattern wont have the word php in it
 
no idea . I am sticking with gof. 10 pages / day :D
 
@VamsiKrishnaB classic
 
@littlepootis hmm ... at the first glance, looks like the answer is "yes"
 
2:21 PM
how can I add new field to a mysql table using laravel fom ?
 
^ don't
 
you have to do that? really?
 
@tereško why ? the boss told me that
 
12 mins ago, by William Francis Gomes
i want something latest
 
2:23 PM
@WilliamFrancisGomes yes
 
Dude, that book is really good. Give it a read.
 
by the look of, he can't even grasp how this chat works
 
I start feeling like I'm the only one around here that never read a PHP book. They just get outdated so fast, I prefer online sources.
 
"I have learned all design patterns in about 3 days with this book. Thank you very much!"
wow
 
2:26 PM
@tereško yeah
 
@tereško I'm working til 18:00 usually
 
@tereško sorry to bother you why I shouldn"t add a form to create new fields to an existing mysql table
 
@PeeHaa how did that thread get dredged up again
 
@undefined how bad that idea depends on if the form is public / for members / admin area.. even for an admin area its a bad idea
 
2:31 PM
@undefined Are you building a server control panel or database administration app?
If the answer to that is no, it has no place in your app.
 
@VamsiKrishnaB @Oldskool its the backend of an admin area
 
\o
 
@undefined Admin area !== database administration. They're very different things. Admins of an app have no idea about database design and why a column has or hasn't got to be there.
(or at least, you should never assume that they do)
 
the idea is that make the admin add new fields when adding a new user for example if the form doesnt have a phone field he can add it
 
hey squashing commits is pretty neat
 
2:34 PM
@undefined And how is your app going to handle that? So he adds a phone field. It has to be shown in the forms (view) and there probably has to be some kind of validation. It adds all kind of new problems.
@undefined If he wants such a field, he should just be calling you.
 
we want to make this app maintainable like a cms
 
if you need an ability to have custom fields (which are not used for search), then you simply create a "data" column and dump JSON with those "custom fields" in it
and, if later you need to get one of those custom fields as searchable, you can create a new indexed column and extract the data from the "data" column
 
@tereško can you explain more sorry for my english
 
no
 
2:37 PM
lol ok
thank you
 
@FélixGagnon-Grenier You only just discovered that? (=
 
no.. what are you actually talking about?
runs away
 
Anonymous
ha ha ha
 
some day I'll even learn when to shut the hell up
 
if anyone expert on codeception can help me out plz?
 
Wes
2:43 PM
beccafternoon
 
@PaulCrovella It's also friday for mods
 
@Wes o/
 
@undefined this might be of some help dba.stackexchange.com/questions/60702/…
 
Wes
apparently the fuel level indicator on my car broke. ran out of petrol in the worst place imaginable
 
2:45 PM
@Wes at the pole dancing bar?
 
@Wes That better be just before a tunnel on the highway
 
@Wes So, you ended up at your driveway? ;-)
 
Wes
ahahha
@PeeHaa a tunnel without lights, clearly.
 
@Wes Well, yes. But those are not uncommon in Italy.
All those little tunnels through the mountains usually don't have much in the way of lighting.
 
@Wes I once ended up on a tiny tiny emergency exit just before the entrance of a tunnel on a highway
that really was a shitty spot
 
Wes
2:49 PM
yeah that looks like a shit place to run out of petrol
indeed it could've been way worse tho. but i had to walk under the sun for 10km just to reach a friend's car
and had to leave the car basically abandoned in the bushes
 
@VamsiKrishnaB thank you
 
Wes
i need a shower now. i'm cooked
 
@Wes Ouch, that's quite a walk.
 
@Wes Better than having to walk over the sun
 
2:56 PM
anyone ??
 
Wes
@DaveRandom that would be tricky
 

« first day (2008 days earlier)      last day (2950 days later) »