« first day (2740 days earlier)      last day (2193 days later) » 

 
1 hour later…
1:41 AM
@DaveRandom in this example, it uses a couple example classes. Does public override string ToString() => Name automatically run because of what...? => or override or something else I'm missing? Also what's up with public string Name { get; }?
it's kind of frustrating knowing that each time I edit my message it repings you :/
 
 
1 hour later…
3:04 AM
@Tiffany in c# public string Name { get; } means that it is read only from outside the class, iirc
 
 
1 hour later…
4:15 AM
morning
 
Hello, I'm coming from python, and was wondering about scope. I've made a ten line php and am wondering why when I dump the array post function it dumps the original array rather than what has been passed through the function.
 
4:33 AM
Apologies, I have to assign a variable name to the function. I didn't notice...
 
Wes
morn
 
Wes
doesn't this smell like a trap? twitter.com/phpstan/status/985883688033554433 we show a logo so shit that someone (e.g. me) will make a better one out of compassion :B
 
yeah that's bait
 
Wes
:B
 
4:46 AM
wow that's horrendous
 
Wes
that's how @kelunik tricked me into making amp's logo :B
 
@Wes :D
 
5:21 AM
hellloo
how to learn more about php
 
5:36 AM
mornin
Since we've got scalar type hints it could be possible to implement function/method overloading yes? The only requirement is that function/method signature need to differ and there are no optional parameters with default values and all parameters have defined type hints, am I correct?
 
Hi guys
is there any site where I can seek daily new challenges/information about PHP.
 
Hi
 
I mean whenever I go to that site i will get new information about PHP and challenges in terms MCQ OR code challenge
 
Twitter?
 
which particular page of twitter?
 
5:44 AM
@brzuchal I would not expect that to make it through internals any time soon... or ever really
 
That with hashtag #PHP I suppose :)
@PaulCrovella ahhh that's bad, but it would be possible now and in that way, yes?
 
@brzuchal Do you know any such Site?
apart from Twitter..
 
Sorry @Exception I'm just having a fun time. Didn't get to work yet :)
 
@tereško I talked to that store about this glassy case, and they told me give us the exact name, we will order that for you ..! Is "Lian Li O11-Dynamic" the exact name?
 
@brzuchal you'd probably also need to keep an eye out for variadic functions.. but it doesn't matter really as it'd never get off the ground.. not worth putting the brain into it
 
5:50 AM
@brzuchal lucky you are.. :)
 
@PaulCrovella I've got a feeling that any idea of brand new feature won't get off the ground in 7.x anymore
 
I'm not just talking about 7.x with this
it's been brought up before, with strong negative response
 
But it's not a bad feature
 
Wes
it is
and it's especially bad in dynamic languages
 
just search the mailing list archives for it
 
5:56 AM
I can imagine it useful for eg as an command handling methods in an aggregate
Ok
 
Wes
> Key equality is based on the "SameValueZero" algorithm: NaN is considered the same as NaN (even though NaN !== NaN) and all other values are considered equal according to the semantics of the === operator. In the current ECMAScript specification -0 and +0 are considered equal, although this was not so in earlier drafts. See "Value equality for -0 and 0" in the browser compatibility table for details.
 
Wes
6:21 AM
lata, going to get my car's alternator replaced -__-
 
 
1 hour later…
7:22 AM
@Shafizadeh I think, but it's a 120$ case .. it IS almost twice as expensive as I had intended ... but it looked pretty cool :D
 
morns
 
mornin
 
if you talk to a shop about ordering in a case, that they don't actually have, I would recommend choosing Define C, from Fractal Design, @Shafizadeh
also, morning everyones
to use such a flashy case, you would also need some flashy parts inside :D
 
@samayo Not yet, have heard a lot about it though. Might try it soon.
@tereško I have been meaning to assemble a new PC myself. I have been researching online for and I really liked this case 'Corsair - Air 540 ATX Mid Tower Case', mind giving your opinion?
 
7:46 AM
@mega6382 dust might be a problem, since it only has one filter (for the front intake) and both top and bottom is actually open (so you shouldn't keep it on the floor). And it looks like the PSU will also be pulling in dust directly from the outside. On the upside, it looks really easy to build in and has no obvious incompatibilities with parts.
Oh, and you will need to buy additional fans to populate those 5 slots (because that's how it seems to be intended)
and you can put a 240/280 AiO radiator for your CPU at the top
 
@tereško Yes, thanks will definitely keep that in mind.
@tereško Yes, for that I was thinking about getting 'Noctua - NF-F12 PWM 55.0 CFM 120mm Fan'
 
var userID = $(this).data('id');
alert(userID); //it prints 12.
how to pass value from javascript variable(userID) into php ($get_value)variable.
<?php $get_value = ;?>
 
you need a mobo where to plug them all in
that case does not have a fan-controller
 
morning
 
@tereško huh, didn't know that. Will any motherboard have that functionality? Or will I have to add that myself to it?
@Naruto \o
 
7:54 AM
all motherboards will have spots for plugging in fans, but the amount of available headers will vary
or you can get a splitter
you might also need to pay attention to the position of those fan headers
 
@tereško Oh I had completely forgotten, that I had planned to install 'NZXT - Sentry Mix 2 Fan Controller'.
 
purse-proud proud of one's wealth, especially in an arrogant or showy manner.
 
I remember, thinking it won't sit right in the case. But I know I found a way online.
 
@mega6382 it needs two molex cables for power :(
 
Yeah, so they will go directly in the PSU.
 
8:04 AM
the problem is that molex cables are the legacy shit from old ATA hard drives
 
@tereško Yes, but the PSU I intend to use does have a port for it, evga.com/products/product.aspx?pn=220-g2-0650-y1
'FOUR-PIN PERIPHERAL CABLE '
 
well, it's your choice
 
OK, what alternative will you suggest?
 
I would attempt plugging all of the fans in the mobo
Noctua fans usually come supplemental splitter in the packaging
 
8:22 AM
OK, will try doing that then.
@tereško Now there are just couple of things, that needs to be added, but I have no frickin idea about them to make a decision.
Sound Card, Wireless Network Adapter
 
sound: use the on built in the mobo
nic: same (you just need a pick a mobo with a good built in network card)
 
OK, I have really been thinking about this mobo gigabyte.com/Motherboard/Z370-AORUS-Gaming-5-rev-10#kf
What do you think?
I know it looks too damn fancy, but still seems like a really good one.
 
Hi,
Anyone please solve my doubt.
I have generated one email html template using PHP and PHPMailer.
it will send to some email address.
I have seen the original message from show original text from gmail client.
It will show like this.

--b2_97b99a313987e61dddd1a35e42ca3589
Content-Type: image/png; name="i4cfinancial_Logo.png"
Content-Transfer-Encoding: base64
Content-ID: <a5bd292cadb86add4f59ed4d117fa9df@phpmailer.0>
Content-Disposition: inline; filename=i4cfinancial_Logo.png


--b2_97b99a313987e61dddd1a35e42ca3589
 
8:42 AM
@mega6382 gear looks ok, but you are probably paying at lease +50$ for all that LED bullshit
then again ... you are looking at a case with a glass window, so it might be worth it
 
8:54 AM
hey everyone
quick question, I got a package here, installed with composer, that seems to have inconsistent tag names (v1.0.3, 1.0.4, 1.0.5, v1.0.6)
I can't update this package, it will just stay at 1.0.3
now, before I wipe those tags, could someone confirm for me that the inconsistent tagging is the problem here?
 
@GNi33 I don't think it matters
Morgens all
 
so what could be the problem then?
 
Link of repo?
 
it just won't update
it's a private one
 
Kinda hard to guess in that case :)
 
8:58 AM
are there any common pitfalls I could check?
 
Hardcoded version number of composer config
 
no, that looks fine
 
trash the whole project and start over
 
oh you don't know how much I'd want to
 
What happens if you just remove the dep and require it again without a version constraint?
 
Anonymous
9:09 AM
@Danack How do you specify validation rules without it being a smelly mess though? So with the VO approach, I was able to specify the class name in a constant e.g. const UPDATABLE_FIELDS = ['status' => Status::class, 'description' => Description::class]; which I don't actually like anymore, but it was a nice way to easily and cleanly reference validation rules without a long switch / if
 
Anonymous
mornin
 
Wes
morn
 
9:31 AM
what up, my homies
what is happening in the neighbourhood?
 
@DaveRandom it's all good in the hood
 
@Jeeves Wow.
 
9:58 AM
@DaveRandom While that is amusing, I strongly suspect that account is run for comedic purposes only:
Clarification: literature for our visitors centre stating that visitors can "sex calves" means they can determine the gender of calves.
 
@Danack awwww
 
still_real_to_me.gif
 
@tereško OK, great thanks.
 
Wes
damn.
 
3 messages moved to Trash
6 messages moved to Trash
 
10:08 AM
!!should @wes drink coffee or lemon tea or milk tea or coke or redbull
 
@‌wes should drink coffee.
 
Wes
thanks :B
 
np :D
 
@JayIsTooCommon Like that ^^ - though I need to refactor that code to return [paramObject, validationErrors], rather than throwing exception
 
Wes
@PeeHaa the alternator looks fine but a bearing weren't going well and probably caused the alternator to overheat, they will just restore it and replace dunno what in the actual alternator, other than the bearing
 
10:15 AM
Doesn't sound too bad :)
 
Anonymous
@Danack that's helpful, thank you
 
Wes
estimated around 100€ so could have been worse
 
@PeeHaa sorry. got called in to a meeting
 
Wes
the new alternator would be 200€ + installation so yeah, didn't go bad :B
 
that doesn't change anything either unfortunately
 
Wes
10:17 AM
800 open issues on your JS framework Github repo but at least you've shipped those new mascot stickers!
 
@GNi33 how is it being installed then? Via "respositories" or with private packagist?
 
repositories
 
Is it possible in PHPStorm to split the project window - or to have two instances of it?
 
@Danack You mean the code view?
 
Some javascript a day keeps the happy thoughts away.
 
10:19 AM
@GNi33 OK, and if you (in a terminal) cd vendor/<vendorname>/<packagename> and run git tag, can you see the 1.0.6 tag?
 
@Danack rigt-click on a tab -> split vertically. Is that what you're looking for?
 
@kelunik No - the directory structure view. I'm trying to replicate the directory structure of the source code in the test directory.
@GNi33 yes, but for the project window, not source code - and I don't get that option in the project window.
 
@tereško Btw whats better? 4x4GB or 2x8GB?
DDR 4 Ram
 
@DaveRandom yep, I can see all of them
 
The only think I can think of is that the 1.0.6 version has an altered dependency that conflicts with some other requirement, but the 1.0.3 version still satisfies all other requirements without conflicts
 
10:22 AM
@Danack ah, that I don't know. Although it would be useful for comparing files at times. What's your use case here if you don't mind me asking?
hmm... it would rather surprise me, but I'll check it out. Shouldn't composer give me a warning about stuff like that?
 
you can try changing your dependency to point to the specific version, then composer would spew out a message telling you what the conflict is (if that is what's wrong)
 
yeah, I'll give that a shot
 
@GNi33 I don't think so, if it can still resolve a set of deps that satisfies the requirements
there's probably some kind of "verbose" mode though
 
@GNi33 I make the test directory structure map the source code directory structure exactly, except with the top level Project name changed to ProjectTest. I currently need to add about 12 directories to the test structure - which would be easier if I wasn't scrolling back and forth between the test dir and the src dir.
 
it makes sense not to warn about that in general, otherwise you would likely end up with messages you don't care about every time you run composer update in projects with a moderately complex dependency tree
 
10:25 AM
ah, I see. Yep, you're completely right
one package in there with a fixed version number that differs then. Thank you very much, I thougt I was tripping here
 
1 hour ago, by PeeHaa
Hardcoded version number of composer config
 
@Danack honestly, I'd just do that in a file explorer, but I see your point. Would be interesting if that's possible
@PeeHaa yep, sorry, didn't catch that one dependency
when I hardcode the version number of the package I want to update, composer complains about exactly that
 
@mega6382 that board is dual-channel
so it would be better to go with 2x8
and it will give you an option to double it a bit later
 
OK, what is dual channel?
 
Wes
i would go with 4x4 because that's probably more reliable :B
and they probably have better timings
doesn't dual channel work on all 4 slots?
 
10:40 AM
@Wes please stop talking bullshit
it was not funny
 
Wes
...
more transistors per area = less reliability
i have no idea about dual channel. i thought it worked on 4 ram banks too. as long they are equal
which is the reason high end tech fails more often than mainstream
am i wrong?
 
@Wes I'm reasonably sure they just need to be in matched pairs.
@mega6382 the trade-offs are "4x4" need to throw it all away to upgrade. "2x8" slightly less bandwidth.
 
Wes
@Danack thank you.
@Danack don't you throw away it all anyway these days? :B
i didn't upgrade computers in ages, except hard disks, they are so cheap that getting a new computer is probably cheaper than upgrading single parts
 
@Danack Thanks
and btw what is Intel Optane?
 
Wes
11:00 AM
@mega6382 it's like a cache for hard disks. if a file is accessed frequently it is stored in the optane memory. it is like ram or cpu's cache but that stays saved when you turn off the computer
that information could be wrong. it's only how i think it works
compared to ssd disks, it is faster because it resides next to the cpu
 
huh and only $50 for 32GB. Seems cheap compared to RAM and SSD.
 
Wes
it's not a replacement for ram or ssds afaik
 
Yeah, I know. I was just counting per GB wise. I am sure there are cheap SSDs but still.
 
Wes
cpu cache and ram are still faster, but optane is trained to store in it only files that are frequently accessed
while ram and cpu can't do that
anyway, time to work
 
Unsupported Twofish algorithm due to mcrypt deprecation – #76228
 
11:28 AM
@Wes meh - it can be hard to justify spending the extra money on going from 16->32 or 32 ->64 gigabytes right away. If you leave the two slots open you can use the computer for a while before finding out if you really need to extra ram.
> Please keep this in mind before dropping mcrypt support!
 
how to get the value outside the function ?
<script>
$(".view").click(function(){
var element = $(this);
var userID = $(this).data('id');
<?php echo $get_userID = 'document.write(userID)';
?>
});
</script>
<?php echo $get_userID; ?> //it prints document.write(userID).
but inside the click function it prints 10
unable to access userID value outside the function
 
JS is not PHP
 
OK, so these are all the part I have decided on for my PC gist.github.com/mega6382/57f267d3607c4832376735ff6cfface0
 
It's like going to the car dealer and ordering a car and asking yourself why you didn't get a new pair of shoes when you got home
 
@PeeHaa then how can i access that variable value outside the function?
 
11:35 AM
By sending it to the server
 
Anonymous
@PeeHaa huh?
 
I see so much code like <?php echo $get_userID = 'document.write(userID)'; ?> on SO, that its mind numbing.
 
@JayIsTooCommon Am I missing something?
 
Anonymous
@PeeHaa You said JS is not PHP :S
 
@JayIsTooCommon huh?
 
11:37 AM
You wrote the phpvm in webasm yet? :P
 
Anonymous
:D
 
@PeeHaa hmm
@mega6382 really
 
@PeeHaa What do you mean?
 
@hearthacker really what?
 
mind numbing
 
11:40 AM
@MadaraUchiha I mean one is a godawful toy "language"
And the other is JS
 
:D
 
:P
 
Anonymous
deceze is a mod!? huh
 
11:42 AM
Been for a while now
 
@PeeHaa may i use ajax
 
Yes child you may
 
@JayIsTooCommon For over a year I think.
 
@PeeHaa hmm
 
Although I suspect you don't even need it serverside
If you just want to display it on the page just use javascript to display it
 
11:45 AM
706
A: How to pass variables and data from PHP to JavaScript?

Madara UchihaThere are actually several approaches to do this. Some require more overhead than others, and some are considered better than others. In no particular order: Use AJAX to get the data you need from the server. Echo the data into the page somewhere, and use JavaScript to get the information from...

 
@hearthacker ^
 
You know about 6 months ago, I used to check the PHP Top Users list to see who is on top @Gordon or deceze it was often Gordon. But for about 5 months or so its been deceze.
 
oh great
 
@mega6382 @Gordon has been slacking off recently.
 
Anonymous
11:47 AM
@mega6382 @Gordon generally sucks
 
now only i'm a beginner i don't know how long it take time to become a expert like gordon,@PeeHaa @mega6382
 
@hearthacker Long, but you'll get there :)
Step one: Stop using document.write.
 
ha ha i just tried like that@MadaraUchiha
i will follow a proper document to study in future
@MadaraUchiha you guys are supporting and showing a clear path for everyone who come and ask doubts
 
It's a question of seriousness, people are more inclined to help those who take steps to help themselves.
If you show you're willing to learn and research, you'll get plenty of help here (and most likely, everywhere)
 
yes true fact
 
12:05 PM
wrong rsyslog parameters from php-fpm logs – #76229
 
telnet mapscii.me
Neat
 
ÇΓóÇΓú₧Γú┤Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐
Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γú┐Γ
:P
 
I have recently discovered, that the Japanese word for "America": アメリカ, looks very graphically similar to the Hebrew word מניאק, which means "Asshole"
14
 
lol
 
I've gotten much too much amusement over that.
 
San
12:14 PM
Hi all,
anyone used this package in Laravel for Rule engine?
When I install and use I got the following error: ErrorException (E_DEPRECATED)
Non-static method Periloso\Evaluator\Evaluator::evaluate() should not be called statically
 
Create an instance and call the instance method?
 
San
but in this package evaluate() is a public function
 
?
 
Instead of Evaluator::evaluate(), do (new Evaluator)->evaluate()
 
San
I tried that as well, but didn't worked
 
12:19 PM
!!noworky
 
"didn't worked" is not an error message
 
!!notworking
 
Nov 15 '14 at 23:43, by Danack
Do you mean it stays at home eating cheetos and play xbox?
 
San
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_RECOVERABLE_ERROR)
Type error: Argument 1 passed to Periloso\Evaluator\Evaluator::__construct() must be an instance of Symfony\Component\ExpressionLanguage\ExpressionLanguage, none given, called in /var/www/html/DISCOUNTSYSTEM/app/Http/Controllers/TestController.php on line 36
 
!!alias noworky blame @PeeHaa
 
12:19 PM
Command '!!noworky' aliased to '!!blame @‌PeeHaa'
 
lol
Imma get hit by that one a lot
 
!!noworky
 
12:21 PM
The problem is that the package is badly designed
 
San
I think so, do you know any other alternative implementation in Laravel for ExpressionLanguage in Symfony?
 
At least the method should be marked as static. Preferably it should be refactored so that it doesn't use static methods
report a bug
for now you can still pass the ctor args it needs in order to not provoke an error
 
San
ok
do you know any other alternative implementation in Laravel for ExpressionLanguage in Symfony?
 
You just don't understand facades bruv
 
12:26 PM
you imported the wrong class
because obviously it completely makes sense to have two classes with the same name and the same api except one of them is static for no reason
 
@DaveRandom It gets a lot better
It also needs an "ide helper" because otherwise you will have no ide hinting
 
in fairness, the package itself is actually not bad (for laravel), that's the only occurrence of static anywhere in the whole codebase
 
San
so, I have to import Facades evaluator class, right?
 
preferably you should create an instance and inject the dependencies
but the "easy" way is to just import the "facade" instead of that
 
San
let me try
ReflectionException (-1)
Class periloso.evaluator does not exist
 
12:31 PM
welp, now you are presumably somewhere in larahell, about which I know nothing
 
:D
 
San
Larahell :-D
anyway thank you very much @DaveRandom!
 
I presume the answer lies somewhere in the "Manager" and "ServiceProvider" classes github.com/periloso/evaluator/tree/master/src
nothing jumping out at me though
E_MAGIC
 
12:44 PM
Good day!
@PeeHaa got any more free video games to give away today? =)
 
He's busy with his loose cars and fast women
 
@DaveRandom /me looks whether it's safe to respond
@BruceBanEm Nope :)
 
I wish there was something on Stack Overflow that would indicate when an answer contains a deprecated approach. I know it would be difficult to do but there are so many smart people on this site- it would seem someone could do it.
 
@DaveRandom Can you explain english to me please?
> When processing requests to establish and change memorized secrets, verifiers SHALL compare the prospective secrets against a list that contains values known to be commonly-used, expected, or compromised. For example, the list MAY include, but is not limited to:
> Repetitive or sequential characters (e.g. ‘aaaaaa’, ‘1234abcd’).
And in the next paragraph:
 
@PeeHaa wtf spec is that?
 
12:50 PM
> Verifiers SHOULD NOT impose other composition rules (e.g., requiring mixtures of different character types or prohibiting consecutively repeated characters) for memorized secrets
nist password thing
Doesn't the second part tell me to not do the first part?
 
"Screen passwords against a list of known bad passwords, but do not impose general pattern matching rules"
 
Anonymous
@PeeHaa that is a bunch of bull shit
 
i.e. prevent people from using the exact string "password", but don't prevent people using stuff that matches [a-z]{8}
 
But the first is telling me to prevent repetitive chars but the second part is telling me to not do that?
Or am I Englishing wrong?
@JayIsTooCommon Not saying I agree, just implementing :)
 
The difference is "a list that contains values" vs "composition rules"
 
Anonymous
12:54 PM
Those paragraphs are padded with so much BS
 
Anonymous
also who capitalizes SHALL
 
The RFC spec does
 
so you can have a list of explicit bad values, but you shouldn't determine those using pattern matching
at least, that's how I read it
 
@DaveRandom wat
I need to hardcode aaaaaa, bbbbbb etc but cannot match n same characters? :P
 
tbh I personally think you should just have a minimum length of 20 and leave it at that
if you set the minimum length to be reasonably high, you have implicitly eliminated common bad passwords
 
12:55 PM
1337 php progz yo chill
 
@DaveRandom Not sure people will agree with 20 chars min though :)
 
you never said anything about people
 
:P
 
this is changing the project spec
it will cost you triple
 
lol
 
12:57 PM
136 users currently talking in 65 rooms
this is so bad
 
@PeeHaa I set the min password length to 14 at the office, I got a load of complaints for 3 months (i.e. one password lifecycle) but then people just got used to it
 
I think you are right btw regarding having a list vs pattern matching
 
@Marcky why?
 
Like WTF
 
idk..chats are dead
 
12:58 PM
!!noworky
 
@PeeHaa the word "other" makes it slightly ambiguous tbh, I'm not sure whether it's saying that you can use pattern matching to eliminate aaaaaa etc
 
I liked when chats were like...full of people I don't know
 
@DaveRandom The entire document is weird imo
 
.... and another twat added to ignore-list, have a nice life
 
The latter part is definitely saying "don't impose rules such as must contain capital/numeric/special etc"
 
12:59 PM
Yeah that one is clear
 

« first day (2740 days earlier)      last day (2193 days later) »