« first day (2525 days earlier)      last day (2423 days later) » 

1:04 AM
@Wes well, I have no idea.. :p
Also, Mornings
 
Wes
\o
 
Wes
1:29 AM
4.47% 98 / 2192 tested a whopping 4.47% of the lib i'm working on. it only took me 2 weeks :B
 
2:05 AM
Bugs reports from automatic testing – #75204
 
Wes
2:24 AM
thoughts about having one TestCase class for each method, rather than one for each class? i have gigantic files
 
Bugs reports from automatic testing – #75205
 
2:51 AM
Lao, anyone tried the android 8?
It seems to me there is not really any noticeable change in the UI...
 
Afternoon everyone
 
3:21 AM
o/
 
Wes
\o
 
o/
 
3:42 AM
@Andrea no, I even require 7.1 on my projects, I just usually cache a scoped closure
 
 
1 hour later…
Wes
4:49 AM
i love behavioral testing. it makes me reflect on the stuff i write so well
it basically doesn't have a purpose other than that. once you finished writing the code you can trash the tests (cc @tereško)
 
morning
 
Wes
\o
 
O/
 
5:28 AM
mornin
 
morning
 
Wes
\o
 
o/
 
\o
 
5:53 AM
o/
Does anybody know what's OAuth2 ?
 
@Shafizadeh easy to google, isnt it? See digitalocean.com/community/tutorials/an-introduction-to-oauth-2 for an introduction
 
I read a bit about it already ... but I don't understand its different with OAuth
 
morning, bitches
 
@Shafizadeh i dont understand the question. different from what? oauth1? regular authentication?
 
@Gordon oauth vs oauth2
 
6:06 AM
the official oauth website has a dedicated page about that oauth.com/oauth2-servers/differences-between-oauth-1-2
 
ah ok thx :)
 
@Gordon like
 
Hi guys
Is anybody here from USA?
 
they aren't awake yet
 
6:20 AM
I see
Actually i wanted to ask that whether anybody have seen Iphone 8 which has been launch recently
and whats the price of iphone 8 in USA
 
it's X not 8
 
ok but did you see X?
 
oh wait. there actually is an 8
I didnt know
 
Ha ha ha
 
I blame media outlets. I would never buy an iphone and the news only talked about the x
 
6:28 AM
I just love Iphone
They are best among all the other brands in mobile
 
if you think so
it gets across fanboish though
or maybe you got an adapter fetish
 
I think you might have not used it
That is why you are saying this :)
 
all my attempts to use apple stuff have ended with the apple stuff not doing what I want
 
Are you serious?
Are you talking about iphone?
 
i am talking about all apple stuff
the first time I used a mac I closed all the app whenever I needed to type an @
 
Wes
6:31 AM
@Wes 4.94% 108 / 2188
 
@Gordon same, they look nice, but shit to actually use, or try to work on ...
also, the hardware they use is not that good, and they don't make upgradable systems ...
 
I think you should give it a try on iphone 7 or 7S which will change your perception about iphone
 
then I tried to use an ipad at a local retailer store. all kinds of things happened on the screen. none of that was what I wanted or expected. totally unintuitive
no thanks. I am happy with my Nexus and Android. In fact, I just got updated to Oreo this morning.
 
o/
 
@Learning I think you love the iphone because you love apple, nothing whatever to do with the devices themselves ...
 
6:34 AM
Andriod really suck
 
iphone really suck
 
windows phone really suck
 
@JoeWatkins I have seen performance of iphone.it never get hang unlike other andriod phone which hangs alot
Gaming experience is way too too better in iphone than stupid andriod
 
you should see my toddler use our Android tablet or my phone. it's outright scary how well he can handle that thing. you just give it to him unlocked. he'll find my photo app and browse through it effortlessly. or launch spotify and find his kiddy music. or launch youtube and play his favorite shows.
 
@Learning did you just come into the php chat just to sell us some iphones?
 
6:36 AM
Hehe no
I was just asking that if anybody have seen iphone 8
and whats the price of iphone 8 :)
 
why dont you check the apple website?
it's all there
 
it costs a million dollars ... and all your credibility as a tech professional ...
 
$699/$799
oh crap. Now Google thinks I am interested in the iphone. gotta delete the searches
 
6:51 AM
@Learning that's not true. just google for "why is my iphone slow" and you will see that there are many results offering help to people whose iphone apparently do not perform that well.
also my android doesnt hang a lot. it does sometimes. but certainly not a lot. it might hang more on non-google devices or customized androids but it certainly doesnt hang a lot on a vanilla android.
 
My S5 has never hung once
in fact it's just a generally "good phone"
(moin)
My contract is up in Nov, I might get an S8 but I might just not bother
 
as for gaming performance: i dont play games with my phone. my eyes are bad enough without that already. I sometimes play games on my nexus 10 though, but its mostly casual games that dont need much performance. I found that some newer games became somewhat sluggish, but I guess that's normal for a 5+ yr old device.
@DaveRandom my contract is up in october iirc. I think I'll go with the new Pixel when they reveal it. Although I think its madly overpriced and I hate they removed the audio jack
 
I usually play interlocked, rop and injustice 2 on my Note 5 and it's all good
The latter is a heavy and big game. Last update was about 300mb iirc :P
 
@Gordon The pricing is why I might just not bother. I would also consider a Pixel but tbh I've had Samsung phones for ~7yrs now (since original Galaxy S) and I have no complaints and I'm used to the Samsung way of doing things.
 
I will never buy samsung phones after having a really really bad experience
 
7:01 AM
@DaveRandom I want stock android, hence google hardware :)
 
Came across this piece of gold in the codebase I've been refactoring:

public static function path($namespace, $module, $method = null, $type)
 
@Gordon yeh fair enough, I am getting a bit fed up with the crapware I must admit, although it can be removed
@Ultimater well before 7.1 there was a use-case for that, if $method has a typehint
without a typehint it's weird though :-P
 
I get a new contract sometime next month ... it's so exciting ...
 
wat when did that appear
 
7:07 AM
Just click a line and share...
Pretty sure it's been there for a while
 
no I mean the menu
@JoeWatkins oooh what do?
 
@JoeWatkins congratz Joe
 
more pr0n infrastructure? :-P
 
no dummies, mobile :D
 
¯\_(ツ)_/¯ few months maybe
 
and I don't work on porn, it's adult content ... pornographic adult content ...
 
:P
 
@JoeWatkins Ah right, you have to call it that to keep @JayIsTooCommon out, gotcha
 
@DaveRandom Then hostname -I should work on Linux, no?
 
@kelunik well that doesn't tell you whether the network the machine is attached to is actually capable for switching/routing IPv6 packets
I can't see any way to test that without actually trying to tx/rx
I could be wrong though, I haven't ventured far into IPv6 in the real world yet
 
7:13 AM
@DaveRandom But if it's not then the device shouldn't have an IPv6 address, no?
 
@kelunik depends on the configuration, it might be hard set and I assume IPv6 has some kind of 169.254/16 equivalent "host-only local" subnet
I genuinely don't know enough about IPv6 to speak with authority though
 
@DaveRandom Link-local addresses aren't returned from hostname -I says the man page.
 
ah OK
I have a few really old routers/switches/hubs knocking around somewhere that definitely won't understand IPv6, I will try and get a test env set up @kelunik
 
@DaveRandom I can use my digital ocean droplet without IPv6 enabled, but that's not the same as IPv6 entirely unsupported, yes.
 
7:36 AM
@kelunik yeh that's the thing, really I want to test a case where the machine looks like IPv6 will work but external factors prevent it
 
oh boy
this is on HN frontpage: kotaku.com/…
 
7:55 AM
good moanings
 
morning
 
\o
 
\o
 
8:00 AM
Hi
i have one dought
i have a transaction table
 
Anonymous
morn
 
\o
 
o/
 
Anonymous
\o
 
Wes
8:12 AM
o/
 
\o
 
o/
 
\o
 
o/
 
\o/
 
Anonymous
8:18 AM
great combo. It's a shame @Linus let down the team. Better luck next time.
 
Shit. Goddamn it Jim.
 
Anonymous
!!wotd
 
mickle: great; large; much.
 
:P,there will someone else who will break combo
 
Also, on a side note, got my hands on android Oreo... The emojis are pretty awful
 
8:24 AM
@Linus Ffs dude
This was a good chance, better than many others
 
tell me, what has gone wrong with the world that emojis are considered a defining feature for anything?
 
@Gordon This is in reference to the new iPhone right :P
Where it puts your face on emojis
 
:P
 
@Jimbo that, but also to :39139831 and the emoji movie
 
@Gordon well, emojis are cancer, tbh. ♋
 
Anonymous
8:27 AM
 
Anonymous
there's no irony there.
 
Meanie
 
8:39 AM
 
lol
 
lol
 
@Gordon yes. sigh.
 
@Gordon and well over $1000 in Europe
I'm not going to shell out $1000 for a smartphone...
 
@Gordon I think this is at least 3rd year of disappointment
 
8:54 AM
I didn't know this ... no I'm lost Oo
 
Wes
@AlmaDo i literally just watched it lol
quantum physics is strange
 
@Wes yes.. I mean .. that's predicted since 1964 and confirmed in '15 .. and somehow I missed it
it's not just quantuum mechanics.. when they've shown the three filters demo - I as a human with a normal mind just stared at that and was like "HOW??"
disregarding any further explanations - it seems unrealistic
but the explanations can be summarized as "the universe is not sure about itself in the first place"
 
Wes
i am almost completely ignorant on these things, it's frustrating not being able to guess even what would be the explanation to that behavior
 
Hola!
 
it's alright, I'm also clueless
 
9:04 AM
Hmm, I couldn't sleep last night because of this 'problem in my head'. Imagine you own the website: www.fruits.com and www.vegetables.com currently. Both websites allow to create accounts. So you have fruits.com/register and vegatbles.com/register.
Now a new website comes up fruitsandvegetables.com which allows a user to register for 1 of those sites. Maybe in the future there will be more specific websites.
Should I save then a) The user to 1 centralized user API/database which every individual website uses to login a user.
Or b) Should I register all the time straight to the seperate website? Which can cause duplicates of 'users'
 
Wes
the other day i watched this but i didn't really get the guy @AlmaDo youtube.com/watch?v=dEaecUuEqfc
 
9:20 AM
The following syntax works, but is it to be avoided?
http://www.example.com?getVar
Basically negating the equals part of the GET?
 
what? what are you talking about?
 
@JustCarty the query string component of a URI (everything between the first literal ? and the first literal #) is deliberately unspecified in terms of the data format
 
Hey guys, i'm facing an issue regarding a recursive function with a sql query inside.I'm using it to select all sub categories from a category and also the products of each category and then return a tree structure array,but the sql is conditioned by a status.So even if the last level of the category have a valid product, the recusive function stops at the first level because i can't find a product with status > 0 on the first level,so it can go to the next level
 
the key=value&key2=value2 syntax is common for interoperability, but you can put whatever you want in there
 
and i'm kinda stuck , i have no idea what to do to fix this
 
9:27 AM
instead of saying http://www.example.com?success=true
I can redirect to http://www.example.com?success and then just access $_GET["success"] and the value stored will be "";
 
iirc PHP will interpret this as a single key with the empty string as a value
which is perfectly valid
 
but you can do ?key&key2&key3
in the success example I basically wanted to add some data and then redirect to success
and display a message since without the redirect the user can press refresh and then the data will try and be resent
 
Could someone do me a favour and read dev.to/evgenyk/a-mythical-full-stack-developer and summarise it, as I don't have time to read such a long and in-depth article.
 
!!> parse_str('key&key2&key3', $result); var_dump($result);#
 
[ 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.2.0rc1 ] array(3) { ["key"]=> string(0) "" ["key2"]=> string(0) "" ["key3"]=> string(0) "" }
 
9:29 AM
looks fine to me
what are they though? Are they named flags or do you really want an array of values? @JustCarty
 
if (isset($_GET["success"]) {
echo "Successfully added the data";
}
 
Hey guys, i'm facing an issue regarding a recursive function with a sql query inside.I'm using it to select all sub categories from a category and also the products of each category and then return a tree structure array,but the sql is conditioned by a status.So even if the last level of the category have a valid product, the recusive function stops at the first level because i can't find a product with status > 0 on the first level,so it can go to the next level
 
recursive function with an sql inside? True. You do have a problem
 
@JustCarty better to use result=1 (or result=0) IMO, you don't really gain anything by not doing that, but there's no technical reason to avoid it and it doesn't really matter, you can really just do what you prefer there
If you use result=whatever then you have more scope for easily feeding back specific error messages to the user, in a way that would also be reflected and easily visible in e.g. the server access logs
 
9:35 AM
Okay thank you :)
My original intention was to have "Successfully added $name" but the refresh problem existed. That's why I thought of the redirect, but that doesn't give the personalised addition message
 
signed integer overflow in zend_strtod (Zend/zend_strtod.c) – #75208
 
@AlmaDo, so? is it wrong ?
 
Today on "Things you wouldn't expect to read on internals":
> If light exists as a wave, then that should be the standard. When an
observer collapses the wave function, then they should be forced to
justify that decision.
 
@JustCarty You could just use a session
 
9:51 AM
I get scared of using sessions. I see all this session hijack stuff all around and I get worried :P
#ProblemsOfBeingANoob
 
@JustCarty that only matters if you are storing data that needs to be secured in there, which this is implicitly not, since you are prepared to put it in a URL
 
@PeterCos What you're trying to do is either a very clever, or very stupid thing to do. Why don't you say the original problem you're trying to solve, and their may be better ways to solve it.
 
With all those crappy warning plastered over session docs I can understand it a newcomer not very confident to use
 
@pmmaga woah.
 
Anonymous
 
To me "ETA" means "estimated time of arrival" but I have seen it in a couple of answer on SO
 
> eta
noun
the seventh star in a constellation.
just know that, markdown, I dislike you
 
@JayIsTooCommon I am starting to think, that "some civilizations never leave the planet" is actually quite legitimate solution for Fermi paradox
 
"ETA, in answer to concerns about ugly code, the below also works:"
"The seventh star in a constellation, in answer to concerns about ugly code, the below also works:"
 
seems about right
 
10:13 AM
@Saitama Cheers, mate ;)
 
@JustCarty "Eating Teriyaki Antelope"
Extremely Torn Anus
Earth Tastes Angry
 
This is getting out of control D:
 
@DaveRandom Eat The Anus?
 
@JustCarty It's actually "Edited To Add"
 
....why not just "EDIT".
 
10:18 AM
@DaveRandom Thank you, I was beginning to lose my mind
 
damn kids with their tlas.
 
I didn't write it :-P
 
because ETA is what cool kids do
 
@Danack I prefer etlas
@Saitama I'm now hearing this to the tune of "Rock The Casbah"
which, incidentally, is how I always read "Lock the taskbar" in Windows
2
...and now so will you
 
:P
 
10:22 AM
@DaveRandom I do that!!
 
user8046090
Is anyone worked with Authy authentication ???
 
@brzuchal lol
 
Oxford Comma: discuss
 
@Danack Thx :)
 
10:29 AM
Personally, I love it!
 
@JustCarty Strippers_JFK_and_Stalin.jpg
 
@Danack :P
 
for some reason I'm so stuck with this song in my head
 
@Ekin you should listen to youtube.com/watch?v=atuFSv2bLa8 @Wes has been obsessed so much about it the past few days, that he even started watching some weird anime
 
10:46 AM
Does anyone actually use "<?" or "<?="?
 
Anonymous
> If the first programming languages in the first computers were case insensitive, then that should be the standard
 
Anonymous
hahaha
 
Anonymous
this fucking guy
 
$array = arRay_COmbine($a, $b);
 
$aRrAy = aRrAy_cOmBiNe($A, $_b);
 
10:58 AM
@MinistryofChaps You joke, but I inherited some work in VBScript and the amount of random capitals was unbelievable!
 
@JayIsTooCommon so much trolling potential
 
Anonymous
 
@JustCarty how can anyone justify random capitals! I can't understand the logic behind leaving them there.
Except if the developer wants a knock at his front door.
 
This was from a University Lecturer. Yeah... "Response.WRite", "response.Write", "REsponse.write". This comes from the same person that also stored passwords in plain text.
I reiterate: A University Lecturer. Someone who teaches people what to do D:
 
@JayIsTooCommon :D
 
11:06 AM
The case sensitivity debate is just ridiculous. Clearly the language should be fully case sensitive, but it should also disallow the declaration of symbols than differ only by casing.
That is my opinion, and therefore the correct opinion.
 
Forgive my ignorance; is it not case sensitive already?
 
@JustCarty Don't use <?, because it requires an ini setting in order to work. Do use <?= in any place where you would have used <?php echo because it's easier to read.
@JustCarty no, PHP is case insensitive for everything except variable names
To answer your next question, "because PHP"
 
Yeah, I don't use it. I was just saying does anyone actually use it.
I was under the impression <?= required the same ini setting to be changed, ergo I have never used it either.
@DaveRandom Why?;)
 
37 secs ago, by DaveRandom
To answer your next question, "because PHP"
:-P
 
It was a joke;)
 
11:10 AM
Oh object properties are also case sensitive, but not methods
oh wait, class constants are case sensitive as well
¯\_(ツ)_/¯
@JustCarty <?= works everywhere since PHP 5.4. Since 5.4 is (should) be long-dead, it just "works everywhere".
 
@DaveRandom So I could do "myFunction()" and also "myfunction()"? I never knew that
 
UPPERCASE_ALL_THE_THINGS_EVERYWHERE ... let's agree on something everyone would hate. :)
 
short_open_tags should be disabled everywhere because otherwise it interferes with templating XML
 
@DaveRandom Something else I never knew :O
 
@JustCarty function/class/method names and any constants declared case-insensitive using the 3rd arg for define()
 
11:13 AM
((Are you seeing a pattern here :P ))
 
I've just seen the Equifax story there.
I would love to meet the person who made "admin" their password in a company that holds social security numbers in their database.
 
@JustCarty pretend you still don't know it while writing code :-P
 
@salathe STOP SCREAMING
 
@DaveRandom Don't worry, I will continue to camelCase :P
 
snake_case for functions, TitleCase for class names, camelCase for object members and variables BECAUSE I SAID SO AND I AM RIGHT!!!111one
 
11:18 AM
@DaveRandom I camelCase my functions / methods. Want me to change for you? <3
 
:-P
 
how about, SNAke_CAse for funcs, TITleCAse for classes, and CAMelCASe for others
 
@JustCarty why not both? array_Combine(), filter_Input(), etc..
 
fuck_You()
 
@MinistryofChaps We're onto a winner with this one
 
11:19 AM
@DaveRandom solid input I'm glad you agree with this new standard.
 
It's comforting, in a way, that the developer community has some 100% unresolvable issues that will plague it for ever more. Even if one day a completely perfect language is designed, people will still be able to fight over code styles.
@MinistryofChaps ...wat
that is simultaneously terrifying and not actually that surprising
 
Anonymous
@MinistryofChaps probably bs
 
@DaveRandom I agree
 
@MinistryofChaps They probably tried to double think the hacker, without realising the hacker doesn't actually sit there typing passwords in manually
 
@JayIsTooCommon I hope it is but there is people in them companies who would do it, like @JustCarty said there is lecturers that store passwords in plaintext.
 
11:26 AM
@Saitama SORRY. I'LL JUST SHOUT INSTEAD. :)
 
Anonymous
@MinistryofChaps if a lecturer was any good, he/she wouldn't be a lecturer :>
 
Anonymous
#controversial
 
@JustCarty worst idea ever, no point doing psychological stuff like that.
 
@JayIsTooCommon Controversial, but sadly true
@MinistryofChaps SuperSecretPasswordConsistingOfOnlyText
it's so long no one will guess it :O
 
That's called a passphrase and it arguably has more entropy bits than a regular password
But a strong randomly generated password with 10 or more characters still trumps most dictionary-word based passphrases.
 
11:33 AM
Agreed.
 
@MadaraUchiha interesting read
 
"passphrase"?
 
The average native English speaker knows ~20k words. A 5 word passphrase to contain any 5 random words would be 20000 ** 5, whereas a randomly generated 10 character password made only from typable languages on a standard QUERTY keyboard would be 96 ** 10 options
20000 ** 5 == 3200000000000000000000
 
When online security tries comedy.
 
@DaveRandom for another equifax site, the password was the person's first + last name.
 
Anonymous
11:41 AM
!!wotd
 
mickle: great; large; much.
 
Anonymous
@MadaraUchiha but, a passphrase is memorable
 
@JayIsTooCommon Indeed
 
@Ocramius ah, that's reasonable
 

« first day (2525 days earlier)      last day (2423 days later) »