« first day (1528 days earlier)      last day (3414 days later) » 

9:00 AM
monday morning fun fb pic:
 
@FlorianMargaine Agreed, but I have been trying to get info out of OP without much success :)
 
@SimonSvensson But would it harm to replace \0 with "" ? i mean worst case scenario it won't be found therefore won't be replaced. Sure it will impact performance, but what's replace impact on performance , almost nothing .
 
Basically @Joseph 1) where does it come from and 2) where (in what context) is it used
 
@PeeHaa it comes from my _GETS and is going to be inserted in my DB
 
as long as data is sanitized (using PDO), then don't care. You might want to filter output for XSS though.
 
9:04 AM
Morning
 
morning @Fabor
 
@Joseph, it hurts maintainability when such replaces are sprinkled all over the code.
 
@Joseph if anything validate the input. Whitelist a bunch of chars for example. I wouldn't recommend blacklisting
 
@SimonSvensson it's a centralized function that does the work .
 
@Fabor Hey fapore
 
:)
 
@Joseph Please don't tell me you are "sanitizing" all your input?
 
> When handling data, the golden rule is to store exactly what the user typed. When a user edits a post they created earlier, the form should contain the same things as it did when they first submitted it. This means that conversions are performed when content is output, not when saved to the database (be sure to read the db_query() documentation on how to use the database API securely).
 
So what hours is everyone working this week? We're 2.5 days.
 
working 4 days this week
 
9:06 AM
Note: that is a general rule not just for Drupal @Joseph
 
3 days
 
@Patrick not all, just those that are user inputed like text ....
 
@Fabor I think 4 days. Not sure yet
 
You only get Christmas off @FlorianMargaine?
 
@Fabor it's an official public holiday, yeah
 
9:07 AM
@Joseph Don't do that. Instead validate the input, then escape properly for the format that you are using when you output something (for example sql, html, json etc)
 
Both the 25th and 26th are Bank holidays here.
 
well, actually, I work 3.5 days, I took an afternoon for my wife's pregnancy imaging
 
Ooh congrats :)
 
@FlorianMargaine oh gratz
 
congrats
 
9:08 AM
$Margaine++
 
literally
:p
 
clone $Florian;
 
uh... no
well, I hope not, at least
 
Not a mini me? :(
 
I hope there'll be some part of my wife... or the kid is screwed
 
9:09 AM
:D
 
Quite the holiday gift.
 
heh yeah
the imaging is the 23rd
"we got expensive gifts for everyone" distributes pictures of imaging
 
Wow mysql is sooo useful
> PDOException: SQLSTATE[HY000]: General error in /var/www...
 
I'm a skinflint/tightwad/miserly... not sure what's the word. Google Translate gives me all of these.
 
Well fuck you too
lol nice timing @FlorianMargaine :P
 
9:13 AM
^^
@Fabor translation? ^^^
 
Hmmm. Frugal?
At least that's the nice way of saying it :D
 
uuuh the opposite of that I'd say?
 
now I'm confused
 
someone who doesn't want to spend money
 
Frugal counts then. Means careful with money. Slang wise "tight ass".
 
9:17 AM
thanks!
 
adjective, but yeah.
 
"Stingy" is a bit higher up the slang ladder.
pronounced "Stin Gee"
 
/me has no clue how to debug this mysql query :(
 
@PeeHaa Works directly?
 
9:18 AM
I am looking into it now
Oh joy... Custom database class...
This project has a funcional wrapper for all classes / methods. Such nice wow
 
It is Christmas tbf. Wrapping everywhere.
2
 
Hi, i have to insert in my database such strings - {"site_language":"en-GB","language":"en-GB"} - problems are quotes, i need it exactly so, but if i do select in db i see everytime backslashes, can i avoid id? with stripcslashes() happens same things
 
@Fabor :-D
@m_73 You should probably decode it first and then insert it in a sane way
 
why do people keep just dumping json into databases
 
Holy shit I am fucked
function getDB() {
	global $db;
	if (!$db) {
		$db = new Database(getenv("mysql_host"), getenv("mysql_username"), getenv("mysql_password"), getenv("mysql_db"));
	}
	return $db;
}
 
9:23 AM
@PeeHaa this looks SOOOO familiar
 
:'(
 
@PeeHaa My condolences as @tereško says.
 
Aaaaaaaaaaand the problem is indeed in the Database dragon which extends PDO.
 
@PaulCrovella many thanks, your "critical" sentence was helpfull :) json_decode($json,true)
 
posted on December 22, 2014 by kbironneau

/* by JRich */

 
9:34 AM
It has to be said, the coding love gif quality is terribad.
 
Though its timing for what's going on in this room is often surprisingly on point.
 
@PeeHaa what's wrong?
(... j/k, don't hit me)
 
:P
@Fabor I see VGS is now also a thing next to VVS :(
 
Well the reason it exists out there @PeeHaa is because of the lack of blog posts detailing better ways of connecting ;) <cough> <cough> hint hint
 
@Fabor Yeah I know. I really need to do that first blogpost thingy :(
 
9:44 AM
That reminds me of some code I saw last week...
 
cough cough @rdlowrey ^ cough cough
 
@PeeHaa Yes. Yes you do :P
 
:-)
 
user1607528
Why Zend Coding Standards say that use 4 spaces instead of tab for indenting? As I read in comments, tabs might look different in different IDEs. Doesn't seem like an argument
 
oh no... not that again
 
user1607528
9:56 AM
I don't even use ZendF but just asking
 
moinz
 
Mornjoe
 
moringnsnsi
 
Morningin people ^
 
@Muhammet every php coding standard requires 4 spaces nowadays
 
10:01 AM
*every sane
 
don't bother or waste time with this, just go with it
 
^ but go uses tabs :P
 
user1607528
yeah i know, just was curios for the reasons
 
@Muhammet consistency
 
@Patrick I will kill you, don't think I won't
 
10:02 AM
just choose a standard and stick with it
@DaveRandom php-src uses tabs :P
 
user1607528
yep, ima go with tabs
 
in PHP I'd recommend to go with 4 spaces though...
 
@FlorianMargaine I know. I hate it.
 
just because everyone else uses that
@DaveRandom I like it.
well... tbh I don't care
and I care less and less nowadays...
 
zan
@FlorianMargaine do you have link to coding standard guide
 
user1607528
10:04 AM
do you actually press Space bar 4 times :)
 
@zan google "PSR-2"
 
@Muhammet no :P
 
@Muhammet no, my IDE is configured correctly
 
text editors insert spaces instead of a tab :)
 
I care in so far as I care that it takes up sooo much time, this isn't even our problem, it's IDE's that need to decide how to display tabs, not programmers ...
 
10:04 AM
this is PSR-2 coding standard
 
@JoeWatkins Well, you do need to configure your IDE correctly
In that way it is our problem
I have noticed that a lot of C projects seem to go with tabs
 
I'd rather have my IDE auto-configured for the current project...
 
well no, you configure your display for input, not output, most ide's don't have an option that says "display tab as X spaces" only "insert X spaces for tab" ...
 
@DaveRandom you can often notice a standard per programming language...
 
@FlorianMargaine Meaning you commit the .idea (or whatever your IDE produces) config?
 
10:06 AM
@JoeWatkins most IDEs do...
 
@FlorianMargaine Does anything actually work with that?
 
We need to invent a new standard for editor configs so that we only have to use that one!
 
user1607528
I have been using Sublime Text for web development, but thinking I should move to IDE, what do you think, will it increase productivity
 
@Muhammet I always use text editors instead of ide's
 
10:08 AM
we just done the shopping for xmas dinner ... £130 for one day ...
 
user1607528
because they're fast lightweight ?
 
@Muhammet Because they do what I need and don't get in the way
 
@FlorianMargaine Wow, I might actually start using that
 
It's highly subjective though
 
@DaveRandom :P
 
10:10 AM
hi guys
 
user1607528
yeah, currently text editor does mostly everything for me, but would be nice if i could test the code without using var_dump etc. what do you use for text editor ?
 
no, not yet, working on it @John ...
 
Netbeans ftw
 
@JoeWatkins Working on being a guy?
 
@JoeWatkins on what?
 
10:11 AM
@DaveRandom the other one ...
 
:P
 
@Muhammet I don't often need to debug tbh... when I do, I open phpstorm
 
good mornings :)
 
ahh right, that took me a good 30 seconds, too early
 
10:12 AM
> I don't often need to debug tbh... when I do, I open phpstorm and wait foe the indexing to finish
 
user1607528
lol :)
 
is it possible to divide the page , the way it loads in browser .So that individual section loads separately using angularjs
 
if only there was a standalone debugger ...
 
does phpdbg work on 5.4?
 
10:14 AM
> phpdbg aims to be a lightweight, powerful, easy to use debugging platform for PHP5.4+
 
ah
cool :P
 
yeah
 
core API since 5.6
 
stupid internet keeps cutting out on me ...
I blame @Ja͢ck
 
you typed it manually, eh? or did @Ja͢ck remove his unicode char?
 
10:15 AM
blame.stackoverflow.com - The Q&A site asking on whom to blame.
7
 
nope, he didn't.
 
@Danack but that is not what I asked . I have to use angular js only
 
@hakre I think it should be jerryspringer.SE
 
@John use angular.js just multiple times. I have heard that this works. So you can just split it. Should be part of the introductory lectures.
 
@John And of course it's impossible to use the ideas implemented with one technology in a different technology, or use the key phrases listed on that page as the basis of a search for it's implementation in the tech you want to use?
 
10:17 AM
Isn't the doc OE built with angular?
Oh no, extjs
 
user1607528
anyone ever tried creating startup or whatever
 
I've tried whatever. I do it a lot.
 
user1607528
have you succeeded in any ? Earning money ?
 
@Muhammet What is your definition of startup?
 
Not a lot of people pay you for doing whatever. It's a shame, but people generally like you to be more descriptive about what you are doing before they pay you. Or before they answer questions.
@JoeWatkins are you going to phpuk?
 
user1607528
@hakre having an idea that is implemented and is useful and solves problems of people that they are willing to pay or use regularly
 
Also I may take you up on your offer of staying at yours for phpsc if it's still open
 
@Muhammet No one pays for ideas, only implementations.
 
@Muhammet I don't understand actually.
 
Although that said, possible that hotel nearer venue would be more alcohol-friendly
 
10:23 AM
hello there!
 
just worked at a startup. was fun until the money went out.
 
It's short question so I thought to thow it here.
 
user1607528
@hakre, yeah
 
@DaveRandom phuk?
 
the short question is that short that it needs a lengthy introduction I guess otherwise it wouldn't be spotted ;)
 
10:25 AM
@FlorianMargaine We'll do a joint UK-Italy one and call it phuk-it
2
 
@DaveRandom :D
 
Why is that, whet i added session_cookie_param to use secured cookie (as my web apps final toutch) no post data gets through to my session variable any more ?
 
@FlorianMargaine you should do phpsc, it's only just in the UK for you, you'd only have to go to calais and get a ferry
 
Without code (in a pastie service) the answer is 42 @animaacija
 
Where are you, somewhere near Paris? I did I make that up?
 
10:26 AM
you made that up
 
:-P
 
I'm 3h away from Paris by train
 
I have a not-awesome memory for stuff like that
@FlorianMargaine In which direction, though?
 
@peeha im sorry? 42 umh ?
 
south
not UK
 
10:27 AM
Ahh, middle of nowhere then :-P
 
@animaacija sounds like this is related to HTTPS, but see as well what @PeeHaa wrote.
 
yeah, where the sun shines :3
 
42 (forty-two) is the natural number immediately following 41 and directly preceding 43. The number has received considerable attention in popular culture as a result of its central appearance in The Hitchhiker's Guide to the Galaxy as the "Answer to The Ultimate Question of Life, the Universe, and Everything". == Mathematics == Forty-two is a pronic number and an abundant number; its prime factorization 2 · 3 · 7 makes it the second sphenic number and also the second of the form { 2 · 3 · r }. As with all sphenic numbers of this form, the aliquot sum is abundant by 12. 42 is also the sec...
 
Actually, 3 hrs via SNCF is quite a long way
 
ouh :)
 
10:28 AM
it is :)
 
so if i wanted to switch my admin area to use HTTPS , key actions would be ..
 
@FlorianMargaine I've heard of 'the sun'. Can you bring some over with you?
 
@animaacija ... to first make the request over https only, deny http requests and then enable the secure cookie parameter.
 
@animaacija You aren't using https now?
 
honestly, not a glipse of understanding how to.
 
10:30 AM
@animaacija Get a certificate, create a HTTPS enabled web server, ensure that all the internal links work with HTTPS (i.e. ensure that any absolute URLs point to HTTPS)
 
yes
 
@Danack :P
 
@FlorianMargaine so not coming to sc then ?
 
@animaacija Do you understand what the secure flag means?
:P
 
@animaacija then remove the secure cookie parameter because most likely you didn't understand what it was for in the first place.
 
10:30 AM
@JoeWatkins 'fraid not
 
secure means that it travels session id via SSL
 
I might make it to eu next year ...
 
It's stupidly quite expensive (but probably worth the money)
 
@animaacija yes, right. that is over HTTPS but not over HTTP any longer.
 
10:31 AM
not for speakers @DaveRandom ... I'm gonna do it ... eventually ...
 
(if your browser actually has no flaw with that secure parameter, but let's keep that aside)
 
i have regenerate session id, but the last toutch would be the actual password go via ssl
 
@FlorianMargaine @JoeWatkins You rang? :)
 
@Ja͢ck we needed someone to blame
 
@Ja͢ck my internet keeps going down ... I was just blaming you because you weren't here ...
 
10:32 AM
@animaacija the whole site needs to work over SSL only, not only the password form submit.
 
@JoeWatkins Ahh yeh that is the way to do it on the cheap, and you won't have much of a problem getting talks accepted I expect, once you have a couple of smaller ones under your belt
 
if you could get it fixed asap, k thnx
 
@JoeWatkins I say onto you, migrate to Singapore.
That way you can blame me in person
 
Agreed, that would be easier.. thus the admin part must be whole ssl.. The UISite part is read only .. so .. @hakre
 
but he won't blame you, internet will be perfect over there
 
10:33 AM
hehe, we will one day meet, and I will have a long list of things to blame on you :D
 
@animaacija so secure cookies won't work on the non-SSL parts. if you're fine with that, this is OK.
 
That sounds vaguely threatening, like he's going to come round to your house or something
 
@JoeWatkins Make sure to keep the list versioned somewhere :D
 
it's ok to use cookie for admin access only...
 
10:35 AM
How to create ssl part?
So admin pages use ssl
 
@DaveRandom nah, there's an emerging tradition that we blame things on @Ja͢ck .. he's okay with it, probably :D
 
@DaveRandom Shouldn't be too hard to know where I live ;-)
 
@JoeWatkins well if he's not okay with it, it's his own fault
 
Basically I refuse to pay for domain data protection :P
 
@Ja͢ck Well luckily for you, there is roughly a 0% chance that he could find you without getting irretrievably lost on the way, even if you told him exactly where to go
 
10:37 AM
@PaulCrovella that true, it sorts itself out ...
 
Since I'm here, what have you guys been up to?
 
NASSA
 
@JoeWatkins @PeeHaa and I generally blame @GoogleGuy
 
heh
You mean @TumblrGuy?
 
It works even better, since he's never here to defend himself
 
10:38 AM
@Danack it only shows the stupidity of users to undergo that sites registration process ... ;)
 
oh yeah I have difficulty finding anything ... when I moved to my new house I couldn't find the bedroom on first attempt, took about a week ...
 
@DaveRandom The last time he was in here I kicked him for being retarded
 
@Ja͢ck Yeh, I think he's started going by Sherif these days though (on SO at least)
 
@JoeWatkins And by attempt you mean with your eyes closed? :)
@DaveRandom Ah, but that's ... like, his own name!
 
inorite
Although you are sort of going by your own name
 
10:39 AM
serious, there's something wrong with whatever allows everyone else to remember where they have been ...
 
More or less :)
My 3yr old summons me
 
I'm not up to anything interesting ... well not super interesting ...
R&D for vitess pdo driver ...
 
Mother Google said, SSL is impossible to use on locallhost (MAMP,notPRO)
 
@JoeWatkins I believe that's what the temporal lobe does, and I also seem to recall that there was a bunch of research showing that many people who are considered a genius have/had a much smaller temporal lobe and used to get lost a lot. Therefore, you must be a genius, given that correlation does, in fact, imply causation.
@animaacija not true
 
Seems dead complicated stuff now ... sertificat file to upload etc
 
10:42 AM
what free ssl cert do you guys use?
 
My remote server provides me with folder named SSL , will the file go there and all done ? :D
 
@animaacija a vps?
 
@animaacija SSL is not something you can do without understanding it. You either need to do a lot of research or pay someone who knows what they are doing (depends how fast you need it and how important it is)
 
@Patrick Non free
 
true$
 
10:43 AM
@DaveRandom it could be that ... or all the pot ... I like the genius thing tho ....
 
no, it's $true in php
 
Otherwise startssl is the only one I know
 
I must admit I have problems to decide what to do with questions like this one: stackoverflow.com/q/27390411/367456
 
wasn't there some mozilla initiative for certs?
 
10:44 AM
if for localhost, why not self sign ?
 
@FlorianMargaine yes next yearish
 
The website is annoyingly fragile, though
 
@FlorianMargaine next year. together with EFF.
 
ring mon ring mon
 
self sign? Localhost for develope only
 
10:45 AM
so... in 10 days?
 
@AndreaFaulds Hey christmas @AndreaFaulds
 
@animaacija Self sign then, google "how to make a self-signed certificate" and you will find a bunch of tutorials
 
@hakre I generally stare blankly at them until my eyes cross
 
I would self sign, but I'd also wait for someone who deals with this stuff to say that's okay ... @DaveRandom ?
there ya go ...
@AndreaFaulds 'nin
 
thanx @DaveRandom
 
10:46 AM
@JoeWatkins For localhost dev, that's the only thing you can do, no trusted root will issue a cert to localhost
 
@PeeHaa Hey Christmas to you too
 
:P
 
Or an IP address, unless you are an ICANN registered top-level ISP
lol @AndreaFaulds, nice hat :-)
 
@JoeWatkins I @'d you earlier, did you get it?
 
@AndreaFaulds missed it, show me ?
oh I remember, autoload stuff ...
go for it ...
 
10:48 AM
:)
So far I'm not bothering adding constant autoloading
 
Autoload forever :D
 
@AndreaFaulds think you should finish it at once ...
 
They're usually better as part of a class IMO, I wanna add enums
 
please finish it at once ...
 
I made class that creates functions and variables for me ... not sharing
Full youtube with how to use custom class for managing post and sessions variables ... never seen my approach
 
10:49 AM
@JoeWatkins What's the point of constant autoloading though
 
10xxer
 
@AndreaFaulds completeness
 
I guess.
 
Hi, not specific PHP question but does anyone know of any service or possible API/Protocol that would allow a service to be created that would allow someone, a company, to automatically create new user accounts with multiple services from one location. Something similar to SSO but for creating accounts rather than managing login credentials?
 
Unlike Anthony, I decided to extend the existing APIs
 
10:53 AM
@James Depending on the services you can just build it yourself when supported using oauth
I suspect all services that do that (if any) would be shady
 
@PeeHaa Thanks, how would that work - I've only ever been an end user of oauth services and never actually tried to work with it.
 
Now that I think about it I think the number of services that allow you to do that would by minimal
 
Haha, to be honest thats what I figured
 
I think I'm just trying to be lazy. At my company which as a very small one its a pain when new users start because we use 15-20 online services and have to create tehm accounts for each one and manage them all individually
 
10:56 AM
Only thing I can think of is using a headless browser and hoping you don't hit a captacha
 
@AndreaFaulds you mentioned you were gonna ... I think that's probably sensible ... I did like the new api, wouldn't object to a new api and a bc one ... whatever moves us forward is good ...
 
I'd love some common protocol that services could utilise that makes it much easier!
 
So: spl_autoload_register('foobar', true, false, SPL_AUTOLOAD_FUNCTION);
 
@James Do you have an example of such service?
 
@James What you need to do is look at those 15-20 services and see if they have an way of automating creation of user accounts. If they don't it's a non-starter, really
 
10:57 AM
@JoeWatkins I just don't want a new API and an old API, cruft is bad...
 
@James well, I wonder who is responsible for using these online services.
 
morning
 
Morining @nik
 
@morning Nikita
 
@NikiC Genmor
 
10:58 AM
guten morgen
 
manaña
 
@AndreaFaulds but you are then forcing the same api on everyone indefinitely ... the current api does have warts, from an internals perspective and users ... freezing warts is good, but even if you manage to get them all you are left with this scarred lump of feature ... forever ...
moin @NikiC
 
Dios Buenas
 
Dobro jutro
 
let the sunshine in!
 

« first day (1528 days earlier)      last day (3414 days later) »