« first day (2909 days earlier)      last day (2265 days later) » 
00:00 - 20:0020:00 - 00:00

Wes
Wes
00:05
there are some good points in it... not a lot of practical advice however
 
1 hour later…
01:12
Joel Spolsky looks like a hitman in the mafia on his video for SO's 10th Birthday.
 
1 hour later…
Wes
Wes
02:25
lol
CoC dude, that's a microaggression to italians, joel, and probably other people :B
 
1 hour later…
03:55
Its been said "don't roll your own crypto". I am looking to make my own 2-factor authentication system. Since that is not cryptography would it fall under that expression?
I don't think its too difficult to create a secure 2FA sms system.
 
3 hours later…
06:58
Morngins
07:20
Hi All ! can you please help me ?

https://stackoverflow.com/questions/52621492/hide-youtube-title-and-logo-on-right-bottom-on-an-embed
morns
07:36
git mernings
@ShashankShah have you tried google?
@ShashankShah what does Shashank mean? Cause it doesn't sound like a name
@mega6382 Shashank redemption
07:54
@Naruto yes i tried to google
Even I have posted a examples which i have tried to make it work..
also i refereed the official document of youtube :- developers.google.com/youtube/player_parameters
@mega6382 I am using iframe to show the youtube videos over my website.
but it shows title and youtube logo both... if i remove logo it shows title and if i tried to remove title it shows logo i am not able to find out how can i hide both .. logo as well as title.
@PeeHaa lol
moin
Hola
@mega6382 it means afaik the moon.
@Sean o/
07:58
@Sean Do I have to test your PR or does it just work?
Awesome <3
notionate Chiefly Midland and Southern U.S. strong-willed or stubborn.
@PeeHaa Yeah, thats what came to my mind too, but that is spelled like "shawshank" :P
haha it spells "shashank" lol
08:05
!!changelog
[ Jeeves ] [ 528cce5 ] Merge pull request #282 from Nessworthy/hotfix/issues Hotfix/issues - Committed by: Pieter Hordijk on 03.10.2018 07:59
@Linus hmmm, so its a hindi word, i thought with the last name like Shah, the first name might be Arabic or Persian
\o/
@Sean <3
Thanks my dude!
No probs!
08:12
@mega6382 haha :D better let's discuss regarding the question please ?
mornin
I've got a question regarding SplObjectStorage it is not usefull with ValueObjects right? Because it calculates hash of an object not using the values but some internal pointers etc. so two VO won't be considered as a same, right?
And there is no way to override hash calculation, right?
@mega6382 yeah, why don't you just answer the man's question?
08:28
@Naruto Maybe cause I don't know the answer :( :P
@Wes Thx a lot, it works
Was confused at first try when testing
$storage = new class extends SplObjectStorage {
    public function getHash(object $object): string { return $object->toString(); }
};
because that's the signature from the docs, but then I got error
because object type hint is only in the docs
:(
...
this type hint was introduced in 7.2 and we've got 7.3 now and still this typehint is not used internally but in the docs is - that is confusing
No it is not
08:41
for average developer it would be
The docs always have been defining types for functions
always
So you also try to use mixed in your params?
Wes
Wes
yes it is confusing
no because mixed doesnot exists in the language only in the docs, but object does
Wes
Wes
clearly we didn't need to have the actual object type in the core
@mega6382 no issues thanks
08:43
@brzuchal Aaah I see
@brzuchal Well the person who implemented it probably did a half job?
:P
Wes
Wes
:B
i needed the object type hint 2 times
Kinda half serious even :)
Wes
Wes
the first time i was wrong
@Wes Yeah same
Wes
Wes
the second time i was using java
08:46
@PeeHaa You wan't me to add them internally everywhere where they are in the docs?
Wes
Wes
that is the kind of thing that make php worse
same goes for void
and IncompleteClass
and stdClass
there are many things making PHP worse
autoload classes
but not constants
and not functions
@brzuchal I don't want you to do anything, but you are complaining about something not being done internally, while you are the one who introduced it in the first place :P
@PeeHaa Yes, and would it be helpfull if this will be provided internally also?
Wes
Wes
they make it worse because implementing it was a bunch of special cases switches, given that is not a real type
08:48
It would be reflectable then
Wes
Wes
then there's inheritors variance
result = a mess
but people have voted...
and there are iterable etc. pseudo types I hate also
@brzuchal I guess it would make sense to make it at least consistent
Wes
Wes
except iterable is useful
@PeeHaa Ok, thank you
@PeeHaa but wait AFAIR all internal classes functions don't have arg info, right?
08:50
No idea
@Wes No, because array is also iterable but when you need to convert to array you need to call iterator_to_array on iterator which is also iterable...
generic types would be usefull instead of iterable
unions and generics plox
Morning.
Morngiins
08:55
\o
I wan't generics, async/await, annotations, private/protected symbols, inner classes, enums, get rid of resources, new IO API, get rid of open tag, binary compiler
And that's enough for start
:P
I never understood the need to get rid of the open tag
oh and get rid of declare clause
If I rebooted machine, there is no way to revert to older gmail appearance?
@PeeHaa this is an additional line which in most of the cases where files have only class declarations is pointless
Nobody sane cares about "an additional line"
Nobody
09:01
@Tpojka in your gmail check get back to classic theme under the charm button
Of all the useful things somebody could do in php for me personally this would be under the lowest thing I would think would be useful
@Tpojka in your gmail check get back to classic theme under the settings button
@PeeHaa yes, but this cause some companies have different code styles with line break after and before namespace declaration some without etc. there are also rules for declare in separate line or in the same line as open tag, which in some cases is 4 useless lines before namespace declaration
Aaaaaaaand?
Remove namespaces too?
IMO most of the time when file has only class declaration theses strict types and no open tag should be standard behaviour
no namespaces are good, partly good
they are only class name prefix nothing more
A single line added does nothing to the code base
You count lines (even whitespace) as a measurement of quality somehow
09:05
4 lines also, but involves the person who reads
Don't push me in that direction because then I would have to complain more
:D let's just leave it as it is now
That's what I said to begin with :P
8 mins ago, by PeeHaa
I never understood the need to get rid of the open tag
:)
@brzuchal I don't see that one. :s
I've been keeping old view all until this morning since last night I turned off the machine. I shouldn't. :/
its' in polish but there it is in mine
09:08
You see here.
Well I've got that button ¯_(ツ)_/¯
@PeeHaa maybe not all what I mention would be useful but let's hope we'll get to that point at some point in time around PHP 14 or smth like that
@PeeHaa Please try with github.com/amphp/socket/pull/55, should give you a useful error message now.
@kelunik That's awesome <3
@brzuchal I had it before, but I think google force new look and has removed it for a reason. Actually asking if there is a way to revert it back now.
better would be get useed to changes, everything is changing in some point of time
well basically, maybe most of the things
09:16
Sure. I am very adaptable to new things regarding internet and technology. But this one is not best one, not only in my opinion. I found the answer. Not the one I was looking for, though.
I mean nothing to worry about, just left menu side is not intuitive as much as last version, on first glance.
09:38
Why does everyone want to be bloody special
what the sweet jesus is dart sass now
@Sean because you get to drive the special bus to school / work? ^^
10:00
!!dad
I keep pressing my F1 key repeatedly, I can't stop Don't worry, I'm trying to get help
10:12
that's terrible.
11:01
morning
user924016
o/
11:28
\o
12:00
o/
\o
12:37
o/
12:57
o/
<:3_)~~~
13:27
o/
user924016
14:12
anyone needs some PR's on github? Looking to score the hactobertshirt
@RonniSkansing Here.
user924016
hah
@LeviMorrison Yar, I'm not boarding your vessel uninvited. Yar, I'm not pilfering the shiny goods from your ship. Yar. Yarrrrrr. How did I get here?
add type hints to everything. :D It doesn't have to be accepted...
14:15
:-P
@Wes Its been like 6 months, and I am still waiting for that traits article :P
14:35
@Tiffany in the comments
> Level 1 - Pirate Windows
Level 20 - Pirate Linux
Level 100 - Pirate FreeDOS
@RonniSkansing codetriage.com
Btw I don't think I've ever paid for windows in my entire life, or for any other microsoft product.
I've bought XP and 7, got the free copy of 10
I have purchased a license of winrar though
I also bought Office at one time, but it was discounted through my college
14:38
I actually have gotten money from Windows.
I've managed to convince them to buyback their license a couple times.
@Allenph srsly? how did that work?
I called Windows after I bought a new computer and bitched until they sent me a check essentially.
that's...impressive...
Actually come to think of it it might have been the manufacturer.
Either way, Microsoft got theirs.
It's completely not worth it for the time investment by the way.
user924016
14:51
Thanks @Tiffany
user924016
user924016
it makes me lol everytime
15:05
What should a project cover?. I'm looking at this kind of list.For example it should handle errors, it should log errors, it should have SOC, it should have tests, code coverage should be good etc
@tereško what's so special? the a cappella or the lyrics? Cause a cappella is quite basic, and I don't understand the lyrics
15:55
@RonniSkansing hahaha, thats hilarious
user924016
(=
@tereško Have you ever seen a more beautiful landing-page than this ? (visit it with desktop screen-size)
hmm ... that's actually pretty good
yeah .. glad to hear that :-)
buuut, you might want to do something else with those footer buttons later (maybe a "modal window" instead of "new tab")
16:07
sounds good, modal is a good idea here
and those buttons seem to get stuck in the "mouseover state" after you have clicked one of them
is that a bug?
I am not sure
depends on whether that is intentional or not
when I click elsewhere in the site, the button "resets"
it resets ..!
.. maybe that's a vivaldi-specific issue
lemme check on firefox
yup, same behavior in FF (not sure if that's how it is supposed to work, or someone forgot to finish the "onclick" event)
16:11
ah
I assume you noticed, which effect I was talking about
also, @Shafizadeh, you might want to add pointer-events: none; for those two block, that cover the heading-canvas
@tereško what do you mean by "heading-canvas" ?
that will let the effect not stop, when you are mouse-over those items
#particles-js and it content
@tereško well people can make new nodes ...
that's a library ..
no, no
you did not understand what I was telling you
play around with mouse in that animation
it has that "parting of the sea" effect
16:19
true, so ?
it does not work, when your mouse is on top of the text
there is a "dead zone"
true .. we checked it already .. the buttons will be disabled if we active it on the text-container-box
in the official particles-website, that is the same as ours
I see .. so that's why you don't want to listen
well I want and I understood what you said ..
you put pointer-events: none; on the text block and pointer-events: all; on buttons, but I guess that not how it was in a different site
16:26
lemme check what you said ..
oh wow .. it worked
lemme update the website
checkdnsrr function return inconsistent results – #76966
Hypothetical question while dealing with freakin wordpress. A woocommerce/e-commerce site has a code that sets a cookie with a lifetime of one month. Site checks if cookie was set within last 30 mins, if it was apply a discount. 5% of customers are reporting they're not getting the discount. I can't imagine what could be wrong with something that works 95% of the time. It's not like javascript sets it making browser dependent. What could it potentially be? How i parse the date?
it would be safer, if you used session for that
and those 5% might be Safari users
Hi all
Ahh safari + private.
Forgot it doesn't keep track of cookies/logins
Chrome does. :p
16:32
safari is the bane of modern frontend
if the OCI plugin encounters an error with an Oracle database, but the code that uses the plugin doesn't handle the error in a correct manner, is it possible that the plugin could fill up a log file with errors?
Thanks Teresko
sounds like you managed to repeat the reported bug
user924016
@Darius in such cases it would be nice to have information about the customers whom complain also, it might just be 5% are mistaken/wrong/etc
I have 1 requirement where user will fill survey and it contains 6 steps . Now when user move from first page to second page I want to prevent user from go back to page one because user has successfully completed survey 1 ..I am thinking to save users completed survey form page no in session. But after saving in session its still not working ..
any idea how can I achieve this?
16:35
@RonniSkansing it sounded like "nagging based estimate"
user924016
very much, reminds me of work...
@tereško Clear your browser cache and check that landing again
@Shafizadeh yup, works now
@tereško thx
.. not sure what is the deal with those footer buttons
(I really don't want to poke around in javascript today)
user924016
16:38
heh, fun
@tereško it takes time .. our front-end developer will do that later
it might be a browser-issue
since the effect looks to be created using :hover in CSS
What you guys working on?
16:53
!!should I take lunch or use one less hour of vacation
You should use one less hour of vacation.
works for me
!!should I fire the developer or fire the client
You should fire the developer.
16:54
...I should write a program that makes a 50/50 decision for me when I'm indecisive
in case I can't access Jeeves
don't over engineer, flip a coin :P
Wes
Wes
\o
17:04
is there a function in PHP that can be passed strings, and will pick one of the options provided at random? like rand/mt_rand but with strings instead of integers
Wes
Wes
array_rand
Wes
Wes
$i = array_rand($a = [str1, str2, str3], 1);
echo $a[$i];
@Wes second argument is optional, since it defaults to 1 already
Wes
Wes
right
17:10
hey guys
i have a problem with postgresql + php(laravel) when i try to select rows from db using whereRaw('column IN (?)', $implodedArr) , outputing the sql i got: where column IN ('123, 321, 456') which gives me error on the single quotes it generates and idk how to get rid of them
@Shafizadeh Once before. ;)
what happens if you move the single closing quote from whereRaw('column IN (?) ', $implodedArr) to whereRaw('column IN ( ' . ? .')', $implodedArr), ... though that's really messy
my markdown is wrong
weird
@PetruLebada You can use the whereIn and the not yet imploded array to accomplish that
Warning: ldap_control_paged_result_response(): No server controls in result – #76967
Wes
Wes
17:19
meaning of this in C?
smart_str buf = {0};
Wes
Wes
no i mean {0}
Maybe instead return 0 (I don't have idea, just putting a guess)?
@Tiffany, well that throws a php syntax error bcuz its not a string nor a variable ... idk how it suppose to work that
@pmmaga yes, but i wanted to do it with whereRaw, if i find no other option i'll use whereIn
@PetruLebada my thought was that maybe it had to do with the single quotes surrounding it. Technically it shouldn't matter, but I don't touch laravel so I dunno
Wes
Wes
17:28
was asking in the C room and i found the answer in the C room already
in C, 2 days ago, by Biswapriyo
Does initializing a struct like struct abc var = { 0 }; make all the memebr zero?
17:49
Umm. So when an index is created, say the row is changed is the index updated alongside the update. Must be right?
We got a a query where a seemingly more specific index isn't being used and when I force it to use that index it searches a larger number of rows (according to EXPLAIN).
Wes
Wes
18:04
do any of you know a replacement for var_export?
18:19
@Wes: Why do you want a replacement? What requirement does var_export not fulfill?
I wasn’t ready to laugh this hard https://t.co/OZWaV6e8hP
3
:-/

For the record, for various reasons, possibly including having suffered significant amounts of pain over the past 5 years, I don't find videos of people being hurt that amusing.
Sorry. couldn't have known. It was a similar video.
@Allenph ... what was the kid doing? It looks like he was trying to literally bang his head on the door frame?
Who knows?
Wes
Wes
18:55
do you know of any kid that does reasonable things?
or maybe the internet made unreasonable things very popular. dunno
@Wes This
Hi, I have a question
How laravel does $route->post()->where('[A-z]')
I'm trying but no way
In laravel looks like first is taken method where, and then post()
How is that possible?
I've posted a question on SO, but no answers :(
Wes
Wes
til i don't need to escape "-" in regex classes. this works [--0]
means from "-" to "0"
since which php version does preg_match error on invalid utf-8 strings?
@bwoebi is ] the only character required to be escaped in [], right?
19:29
@Wes backslashes as well
Wes
Wes
right. thanks
And yeah, it's common to place - in first/last place of a character group to avoid escaping it
Wes
Wes
nice
@Wes you were doing DDD, right?
Wes
Wes
i follow ddd loosely
19:33
what do you do, if a mapper can't locate the requested entry? how do you propagate it up the layers?
(I have make a 3rd rewrite already for a mapper and am still not satisfied)
I am looking for inspiration :( ... and am assuming that you do not use active record
Wes
Wes
you are asking how to inform upper layers that a mapper could not find an entry, because of bad parameters or something?
because there is no such entry
for example, I tried to pull up values from cache, and that entry is long gone
Wes
Wes
in order to display an error message or something?
no, in order to choose a different execution path (render different template, for example)
Wes
Wes
ok
19:37
I am currently using exceptions, that get caught in service layer, but that ends up being quite ugly
Wes
Wes
so i keep controllers and views separated, i think we discussed this already once
^ I actually split them based on the needs of a project (my favorite example: REST API does not need a separate views and controllers ... usually)
anyway .. the mappers
Wes
Wes
but that is not related to what you want to do
when i reroute
let say you are pulling up User instance (that will be close enough to my actual issue)
if there is no user with given ID in the persistence, do you return boolean, throw exception, return EmptyUser instance, return null or something else?
Hello everyone! Does anyone know how I should write my .htaccess to get this; I have a Slim app and index.php in my /public directory where routes are defined. Right now I can do this site/public/routename/ but I want to be able to have routes like this: site/routename. How can I do that?
19:42
@Nikola change DocumentRoot in the main apache config .. you seem to be banging at the wrong gates of hell
Wes
Wes
i don't have the most sophisticated of designs but the service layer throws, the controller catches the error and returns failure to the router
Here is the .htaccess right now
Wes
Wes
router can reroute if failure, or proceed to displaying the view if controller did succeed
@Nikola that file is fine, the primary server's config is fucky
evenin
19:44
@Wes but how does the service layer know that mapper fucked up?
Wes
Wes
i'm sure there is something else i am missing... i return null or throw from the mapper
ah
tried that, it didn't look good (well, then null - didn't)
Wes
Wes
what didn't work?
I guess I will try to bang a but more against the exception-approach
@Wes it "works", by you end up with a shitload of null-checks
Wes
Wes
dunno. for me the hardest part is packing the "what went wrong" information in something usable to print to the user or something
that is very bulky and i still have no idea how to improve that
19:50
Curious, why doesn't the exception work? That seems like pretty much the ideal use case for an exception to me.
@Allenph it "works" but you end up with convoluted try-catch trees, if you need to use more than one mapper in a service's method call
Doing literally anything else will force you to check what was returned for one of two return types every time you call the mapper.
Or be unable to convey significant information, or both.
Wes
Wes
for example when a form is invalid i collect all the info in one massive object which i store in what i call the "request model"
which is basically just a way for the controller to pass stuff to the view
it is better than constructing the view in the controller
but still very bulky
Can't you just have the controller throw the exception if there's a failure but not do the actual validation there, rather do it in the view to avoid having to move state between them?
Oh. Never mind. Certain kinds of errors that wouldn't work with anyways.
Wes
Wes
how can you do validation in the view? :B
19:57
It was a dumb idea.
Wes
Wes
lol
Pretty much immediately realized how lame that would be.
Wes
Wes
it's impossible, you need to validate before executing whatever your code does... the view happens after all that
Well, what I was thinking of was that you would do it twice, once when you were trying to persist your changes, and again when you were trying to come up with something to tell the user.
But that doesn't really make that much sense, and there are certain errors that you would still have to pass, like if the DB fucked up or something.
00:00 - 20:0020:00 - 00:00

« first day (2909 days earlier)      last day (2265 days later) »