« first day (2113 days earlier)      last day (2838 days later) » 

1:01 PM
Yeah, I forgot it was a thing. Useful as I am debugging a build
 
@Fabor yupp… that always makes me end up with lots of orphaned images
might wanna use docker rmi -f to really remove all of them
 
Yah, am doing.
 
Can "Great blessing" be as a goodbye expression?
 
Nope
Blessing has more religious connotations.
 
ah ok
 
1:08 PM
Ya'll have a nice weekend.
 
so very soon
 
@PeeHaa @Wes @hakre because this. I guess it's fine if you are working by yourself but as soon as 1 other dev might ever need to look at the code, standardise.
@Epodax no.
 
standardize: strlen(array()) is always true.
 
No no, it's 0.832
 
@DaveRandom yes
 
1:10 PM
@Epodax MAKE ME
 
@DaveRandom I WILL, SEE YOU AT FIVE
 
Reminds me of this
 
/begins to load weapons
 
@DaveRandom Come on stop flirting with @Epodax (I'm jealous)
 
1:16 PM
Does anyone have a reference on gow to create a temporary "gpg verification" environment?
@Ocramius what are you doing?
 
@Jimbo On who's behalf?
Also ftr I'm already having a good time: it's lunch time so I fired up the BBQ and am currently cooking some awesome burgers.
 
@DaveRandom Make your own burgers or store bought?
 
from Tesco, really I'm only doing it because they are on date today
Also because I can
 
@Wes FYI, a second thing I like is low poly, if you're really totally not satisfied with the current draft.
 
Wes
1:23 PM
?
 
@DaveRandom I want a burger :(
 
Sam
Hi guys, can I ask a doubt regarding cakephp here ?
 
definitely. doubts about those are very welcome
legitimate questions, on the other hand... ;)
 
@Wes You said you somehow do not like the current draft anymore?
 
Sam
while going to this localhost/users/index I am getting this error
Controller class Users could not be found.
I have mod_rewrite configured properly
 
Wes
1:28 PM
for the most part it's ok, finishing it is a pain. but i took countermeasures now
i'm on it! i promise! #famouslastwords
:B
 
Sam
I am not able to access a single controller
 
Sam
*controller's action
 
Wes
now you'll see @kelunik
 
1:31 PM
@Fabor hahahahahaha. google, the soon-to-be-biggest social experiment
 
Sam
@FélixGagnon-Grenier: I am working on an app which earlier was built on cakephp version 2.2.0 and I upgrade it to version 3.2.2 using the tool provided here github.com/cakephp/upgrade
 
@Sam most of the time classes not being found are either an issue of autoloading or improper syntax in a specific file.
make sure you use an ide that will do syntax highlighting and make sure the Users class file is properly placed in the file hierarchy
 
Sam
@FélixGagnon-Grenier: yes, everythings is fine. I am using php storm IDE.
 
I often forget to rerun composer update which often results in classes not being found
 
Sam
yeah
not for the plugin
I am sorry
 
1:35 PM
hmm?
 
Sam
I have downloded a plugin and make it running without composer
 
... so how is the class file included then?
 
@DaveRandom 406
 
Sam
I need to merge some modules which were built in cakephp 3.2 so I have upgraded the plugin to version 3.2 and then merged the code.
earlier the plugin was working fine.
 
1:39 PM
WTF #nsfw
 
@Fabor fine
@Gordon oh cool! I have those pyjamas!
 
@DaveRandom mmmm. I totally would.
 
Sam
@FélixGagnon-Grenier: in the plugin App::uses() was used to include classes
 
@Sam sorry, I can't really help you with that..
 
Sam
is there any chat room specifically for cakephp ?
 
1:45 PM
omg it's time. cyall later
 
Good luck @FélixGagnon-Grenier
!!google cakephp chatroom
 
this will rock \o/
 
@FélixGagnon-Grenier Good luck o/
 
Oi ButHaa. Whats the google com?
 
!!? Whats the google com?
 
1:46 PM
Search for "Whats the google com?" (https://www.google.com/search?q=Whats+the+google+com%3F&lr=lang_en)
• What's New in Google Apps for Work - What's New in Google Apps. Track Google Apps launch announcements and rollout dates, and access re… (https://apps.google.com/whatsnew/)
• What is a domain? - Google Apps Administrator Hel… - To sign your organization up for a Google for Work product, you need an Internet domain name. This… (https://support.google.com/a/answer/177483?hl=en)
• Company – Google - Google. Company. Skip to content … What we believe · What we do. Google's mission is to
 
!!? cakephp chatroom
 
Search for "cakephp chatroom" (https://www.google.com/search?q=cakephp+chatroom&lr=lang_en)
• #cakephp : Chat on cakephp IRC channel - Freenode… - (http://irc.lc/freenode/cakephp)
• php - What other chat apps that can be integrated… - What other chat apps that can be integrated easily to cakephp … Where can I get a PHP / MYSQL chat… (http://stackoverflow.com/questions/5243092/what-other-chat-apps-that-can-be-integrated-easily-to-cakephp)
• phpFreeChat: Creating chat rooms everywhere - Need a live free chat for your website ? phpfreechat is made for you. Your visitors can thus discu… (htt
 
Thanks ButtHaa
 
Any time fapore
 
Sam
Thanks for help
 
1:51 PM
Damn, ER modeling is not as easy as it looks :/
 
@Ocramius That's my point… that you need a long time to really grasp them… and until then writing a lot of suboptimal code… at least judging from the two times I've ever tried Doctrine…
 
I'm just going to assume my arrows here are correct?
bah, nvm
I think might have inadvertently formed a pentagram with that graph. Don't want the anti-satinist/pagan groups to start thrashing me.
 
@Sherif What's with invitations? Don't they belong to a person, too?
 
@kelunik Yea, I guess. Technically they're created by one. I feel lost when it comes to ER modeling unfortunately :?
 
And does lab really "contain" permissions?
 
2:03 PM
Yea, it does.
 
Personally, I'd make the arrows from permission to lab and user and use "belongs"
But yes, ER is something I have to have a look again for the exam next week. ^^
@Okabe Now I wasted so much time. :-D
 
:P
 
Wes
@kelunik can you see it? i.imgur.com/eneCq5l.jpg
 
2:23 PM
62
Q: What is happening in this JavaScript snippet?

Nathan LongA recent tweet contained this snippet of JavaScript. Can someone please explain what is happening in it step by step? > function dis() { return this } undefined > five = dis.call(5) Number {[[PrimitiveValue]]: 5} > five.wtf = 'potato' "potato" > five.wtf "potato" > five * 5 25 > five.wtf "potato"

...
 
@Wes Yes, I can.
 
Wes
also obama could, and look where he's now :B
 
2:35 PM
@Wes is that the elephant without trunk?
 
Wes
yep @bwoebi
@bwoebi @kelunik i.imgur.com/Prwpxdz.png
 
@bwoebi suboptimal code is quite enough for most apps
 
@Wes Left or right now? I think I prefer left actually.
 
optimizing comes from just reading the docs or asking a question on IRC or the mailing list. We have docs for complex scenarios too
 
Wes
it's the same for me, i just flip the image :P
 
2:42 PM
@Wes Probably because it goes first to the right and the place where the opening is doesn't actually matter.
 
@Ocramius yeah, it's good enough … I'm not a fan of "just good enough". Should be better than that for me. I always get a crisis when seeing code which could be ten times faster … sure, docs help, but getting to master it isn't easy.
 
@bwoebi A few years and you'll notice that "it works" and "it produces money" actually count a lot more.
Unfortunately, that's also true for security, see Magento.
 
user5020521
@Wes can you join that room?
 
@bwoebi "good enough" is pretty much any software
heck, you are using PHP, c'mon...
 
Are pancakes a valid dinner?
 
2:46 PM
Otherwise we'd all be writing Haskell :P
 
@Ocramius That's a trade-off, not an excuse for writing code which can barely handle the amount of requests to your server and collapses upon the double usual load (peak)
 
That's something that needs consideration. As said, Guilhermeblanco wrote pr0n websites based on ORM and heavy Symfony stack that were working under 89+ Mln users
 
Morning
 
Proper design works with any tool, and newbs of course don't get to design a system like that anyway, or else we'd be drowning in... well... buffering? :P
anyway, it's a trade-off. O-R mapping is one of those things that works very well or terribly bad depending on context
it's not "sub-optimal", as you call it ;-)
'we done here? Can I just link you a video where I brag about it, so I can stop repeating myself? :P
 
MornLevi
 
2:51 PM
s/works with any tool/is required with any tool

(btw)
 
morning
@Ocramius is this a true story??
http://chat.stackoverflow.com/transcript/message/31985305#31985305
 
@andho I've seen similar systems, but never one that failed because of an added comment :D
not sure if the story is true. If it is, then I could laugh even harder
 
monrnininigns
 
@Ocramius truly wtf XD
 
Yeah, this story is pretty hilarious too.
 
3:07 PM
=) yea, I am not clicking anything today except,everysinglelinkx!!!
 
:X
 
Anonymous
@tereško pingortant
 
a?
watyawant?
 
Anonymous
I found this and thought it was a good deal. There is still 10% off from thr discount
 
Anonymous
Valid until tomorrow
 
Anonymous
3:16 PM
I'm tempted to buy it
 
N3150?
 
it's your money
 
Anonymous
To build it myself it will take 2+ months, and I can't wait that long idle
 
And that's... an exotic CPU
get an older PC with an i5 or i7 of a previous gen?
 
Anonymous
@tereško you dont think its a good bargain?
 
3:18 PM
@Ocramius exotic, no
 
Wes
@kelunik mmm tangents snapping i.imgur.com/RJFDeji.gif illustrator sucks...
 
it's quite common for laptops and NUCs
 
Wes
and inkscape sucks even more... :P
 
@Wes Does Inkscape even have something like that? It's something I always look for. ^^
 
Anonymous
3:19 PM
I really thought that was a good deal :/
 
I am kinda serious: at that pricepoint you are better off buying a NUC
 
Wes
@kelunik that's not inkscape... i had to change program. too much struggling
 
@Wes I know, I just wondered whether Inkscape has something like that.
 
Wes
it misses many snaps and in general it's just a mess to use
it's not actually possible doing precision stuff
you always end up with broken paths every time you do merge, difference, union and kinda tings
but hey, it's free. illustrator costs like a kidney and it sucks as well :B
 
3:26 PM
@tereško well, core duo bs
 
Wes
i should really buy rhinoceros though... it's such a marvelous program. i'm not new to it, but it has so many things in it that i basically am... wish i had the time to learn it properly :P
 
@Wes I used to play with nurbs ages ago, awesome stuff
 
Wes
yup. it's magic
 
@Ocramius well, then that's probably where my bad experiences about it come from… when it just doesn't work well in the contexts I tried it…
 
wrote an OLAP application with it? :P
 
Anonymous
3:33 PM
@Ocramius what about you? What do you think about that pc compared to the price?
 
anyone have a good tuto for regex? I need to exclude a part of the "selection" in my {$0} in the preg_replace.
 
@Ocramius I do not remember in what contexts I tried it … that was two years ago … reading wikipedia about OLAP … maybe.
 
docker ps
Dangit!
 
OLAP = doing reporting (group by, big selects, big joins), OLTP = web-transactions (checkout shopping cart, submit requests, etc)
@samayo feels like a bad choice, considering that CPU
had bad experiences with core duo, can't say if they got better
 
@samayo have you considered a refurb pc?
 
3:39 PM
hoi!
 
Anonymous
@Ocramius i thought it was quad core
 
Anonymous
@RonniSkansing i have a phobia of refurbished electronics in general
 
okay fair
 
HTTP/1.1 500 Internal Server Error
Date: Fri, 29 Jul 2016 15:22:36 GMT
Server: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
X-Powered-By: PHP/5.3.29
Content-Type: text/html
Transfer-Encoding: chunked
Connection: close
Really? PHP/5.3.29?
 
Anonymous
@Okabe s/php5.3.29/apache
 
3:44 PM
:( lousy docker, y u no build fine but if I run the commands inside the borked container it works :(
 
s/borked/broken ?
 
Same thing
 
ah...
!!urban borked
 
[ borked ] To have totally fucked something up. Usually by doing something stupid. Specifically used to describe technology that is broken.
 
Wes
4:02 PM
@kelunik now we're talking :D i.imgur.com/ChoIizF.png
cc @bwoebi
the tusks are actually 3d, then flattened on the plane :P can't do them more visually precise than that
 
o/
 
Wes
@kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik @kelunik
 
Wes
never went this far before. in one day only
 
4:58 PM
mornin
 
ohai o/
 
hai \o
 
Wes
o/
 
Hola Orangepill
 
@Wes We were shopping food...
 
Wes
5:07 PM
we? :P
 
we?
 
@Wes Well … I and @kelunik …
 
Wes
are you in the actual same physical place? :P
 
@Wes Yep.
 
Wes
sorry for ruining your dinner runs away crying
:B
 
5:11 PM
Do you discuss php in that time also?^^
 
Wes
ofc they do, they are nerds!
 
yay chrome bug triaged
 
Wes
@kelunik @bwoebi both from lux or are you in germany now?
 
@Wes @kelunik is from Germany, I'm from Lux… and yeh, both in Germany.
 
5:18 PM
@Danack I think I've said this before but it's still true... this pic is kind of serial killer-y - you can't find one where you look a little less serious and like you will cut me if I don't come to your talk?
I mean, I know you will cut me if I don't come to your talk but that's not the point
 
Wes
ahahahaha
i would use the "the fountain" one
 
Maybe go for the hipster instagram look, like @Jimbo
He has the hipster tools, you have the beard, I'm sure something can be arranged
 
lel
 
jo bitches o/
 
jow
Happy frydai man
 
5:27 PM
Thank god it's friday. Only two more days to work this week! :)
 
Anonymous
Evemong
 
Right, I have a php file serving css. Is there a way to detect what page is calling the php file? Like is it sent in request headers that php can capture?
 
why are you serving css from php
that generally known to be a bad way to solve a problem, some have usecases but imo it's the fewest
 
@MattCowley Why don't you pass it in the request?
 
@RonniSkansing It laods custom variables into the css based on a url param
@PeeHaa I want it hidden per-say
 
5:35 PM
Not possible
 
@MattCowley why ?
 
It's http. The client sees everything
 
does it send custom variables, like for what purpose?
 
@Danack Well, I think you look like a beautiful serial killer.
 
@RonniSkansing My plan is to do it so that it only serves the css if its called from the right domain
 
To stop it being easily used on other domains
 
Why?
 
@MattCowley you mean hotlinking protection
?
 
Nobody cares about your live css
 
@RonniSkansing Um, bascially
@PeeHaa You'd be suprised
 
5:36 PM
Nobody cares about your css
@MattCowley No I am not
If they want they will just download it
 
@PeeHaa We've already had two people copy a live css link to reuse it, and its annoying me
 
Yes...
 
That's really weird
 
18 secs ago, by PeeHaa
If they want they will just download it
And I highly doubt that
Like HIGHLY
 
@PeeHaa I am aware they can just download it if they wanted, but I want basic protection
 
5:37 PM
Which is useless
 
@MattCowley last time I heard anybody say that was a 12 year old who just started to make websites
and highly overrated their css
 
It's like using only the "ring" of a condom
 
@RonniSkansing Welp
 
Anonymous
xD
 
@MattCowley I got one way to say it
dont hide it away, show it with proud
 
5:39 PM
Think about it if they want it trying to prevent hotlinking stops nobody
 
@PeeHaa Well, we've had two people hotlink it already. So i kinda just wanted to prevent it
 
like look at this stuff @MattCowley codepen.io
 
@MattCowley How do you know?
 
@RonniSkansing Yes, thats public testing, I have an account
 
@MattCowley You could look at the Referer header but I wouldn't be surprised if you took out some legit users as well with that
 
5:40 PM
Also what does it represent?
 
@PeeHaa We caught them. They were friends of the actual client.
 
@PeeHaa Huh, in what way?
 
@MattCowley if you want to avoid hot linking
smash in a comment
COPYRIGHT something something
 
@MattCowley In a way that. Why in the hell would anybody use css from another site ever
I don't think I have ever heard that from anybody ever
 
5:41 PM
@PeeHaa Cause they are donation store themes, so they are easy to just reuse.
 
No they are not
Just change the css
nothing easy to reuse about it
That's not just brittle. That just opens the gates for epic troilling from your side
 
Put the entire site CSS inline in <style> tags in the <head> \o/
 
You've completely lost me now
@DaveRandom Then it can defo be copied? Also we don't have HTML access
 
@MattCowley You say they are hotlinking. I say change the css path of th real site and serve the old css with :content: 'We suck dicks'
 
(that was a joke)
 
5:44 PM
@PeeHaa its a obvious vuln
 
@PeeHaa I don't retain access to the client CP to make that change.
 
he can deface their site
 
@MattCowley Well in that case didn't the client breach contract?
> We caught them. They were friends of the actual client.
You are trying to fix the wrong part
 
@PeeHaa No, we don't require continuous access to remote served content as we call it
 
it is your css?
 
5:45 PM
You don't have a clause in the contract about redistribution?
 
@PeeHaa We do.
@PeeHaa But its just people doing inspect element on the live page and copying the css/php file link
So I wanted to stop that by detecting the calling domain, as we have a list of 'valid' domains on our system
 
@MattCowley And how do you think those people are stopped it you prevent to serve it?
Sorry for being like this, but what you are trying to do is pretty much useless
 
The long of the short of this is that what you want is not possible to reliably prevent, however it's easy enough copyright it, detect others using it and get some lawyers on it, if it really matters to you
 
As a 16 year old, I can't really do much with lawyers
 
Why does it matter so much in the first place?
The web doesn't work like this, we could debate until the cows come home the merits of such a system but the end of the line is still the same
 
5:49 PM
=)
 
Wes
@kelunik @bwoebi i.imgur.com/uuj27dZ.jpg
 
You can user the Referer header to try and do it but don't say you weren't warned that it will end with users complaining...
 
Would the HTTP_REFERER in _SERVER work if I jsut pulled the domain from that?
 
@Wes What will happen to these two lines cutting the ears?
 
@MattCowley I would estimate that would be roughly 98% reliable, I estimate that by pulling a number out of my ass but I'll stand by it anyway
 
5:51 PM
Quick question, best inline way to set a variable to another if it is set else false?
@DaveRandom Right, ok
 
Wes
two lines?
 
so @MattCowley this is your site unreal-designs.co.uk ?
 
98% might sound good but look at it this way: 1 in 50 fails
 
Wes
there it goes the stroke, it's the actual stroke, or the background
 
Ssl? @DaveRandom
 
5:52 PM
@RonniSkansing Yeah, not any of that that I'm planning to protect
 
@MattCowley $var2 = $var1 ?? false (PHP7) or $var2 = isset($var1) ? $var1 : false (PHP<=7)
 
@DaveRandom Thanks
 
!!docs ternary
 
?: is the ternary operator.The expression (expr1) ? (expr2) : (expr3) evaluates to expr2 if expr1 evaluates to TRUE, and expr3 if expr1 evaluates to FALSE.
 
!!docs ??
 
5:53 PM
Comparison operators allow you to compare two values.
 
@PeeHaa ?
 
@DaveRandom i thought secure connections never sent it
 
oh I dunno
 
@Jeeves @DaveRandom @PeeHaa Fix it. :P
 
5:54 PM
@Jeeves wtf does comparison ops link to bitwise?
 
lolwut
 
@MattCowley you should give up your attitude towards website html like that.. comment your site like
 $.get( "https://cdn.unreal-designs.co.uk/cont/consoleTitle/?Unreal&. Designs&small=  Why, hello there! How are you?       Wait...... Were you snooping on our code??", function( data ) {
is just silly
 
I made that list with a bunch of copypasta, not surprised there are errors
@PeeHaa dev tools says otherwise, CBA checking on server
Maybe to external domains?
Which wouldn't matter here
 
@PeeHaa They don't
 
Oh. My. God it's done. /Relief
 
Anonymous
5:57 PM
@FélixGagnon-Grenier go well?
 
> A user agent MUST NOT send a Referer header field in an unsecured HTTP request if the referring page was received with a secure protocol. RFC 7321#5.5.2
 
@FélixGagnon-Grenier aaaand?
 
So you are OK as long as you are consistent with scheme @PeeHaa
 
Tnx
 
@DaveRandom Can you translate into layman terms?
 
5:59 PM
@DaveRandom peplz love sending their tokens in the ref in api callbacks ;)
 
I seem to have got referer on both unsecure and secure connections
 
@MattCowley If you serve your HTML over HTTPS, you must serve your CSS over HTTPS as well
> Some intermediaries have been known to indiscriminately remove Referer header fields from outgoing requests.
^ there's your 2%
 
@DaveRandom Right, I'll see if it works on the system I'm using it on
 

« first day (2113 days earlier)      last day (2838 days later) »