« first day (3017 days earlier)      last day (1931 days later) » 
00:00 - 22:0022:00 - 00:00

12:31 AM
@Danack hmmm.. on 3v4l it looks as expected, right?
 
yep.
possibly pebkac or windows.
 
:D
 
1:10 AM
hi you guys :)
Can you help me solve the problem in the topic?
1
Q: How to fetch data from dropdownlist into multiple textbox with value of each column in database in php?

donald.sysI wanna fetch data from dropdownlist (retrive data from database) into multiple textbox with value of each column in database in php. As follows: In my database have five column (id, titles, links, description, created). My design interface: My code by html and php: <div class="product...

:(
 
 
4 hours later…
5:20 AM
@ThW He has one of the craziest Wikipedia pages to read through.
Night all.
 
 
2 hours later…
7:36 AM
moin
 
8:00 AM
freegan a person who buys as little as possible and makes use of recycled or discarded goods and materials, in an effort to reduce waste and limit environmental impact.
 
 
1 hour later…
9:08 AM
@MadaraUchiha I happened to have to lookup some typescript things and began reading the docs... There's a lot in it which I'd really like to see in PHP...
 
@bwoebi I've been ranting about that since forever. TypeScript has some really nice concepts, both in the actual language level, and in the way they introduce new features
 
I've just been annoyed that you cannot extend enumerations directly and have to write it as a type union of two enums
Use case was having a few validators sharing a few common operations and putting the types of failing validations in an enum. There are multiple enums sharing all a common subset of validation types.
@MadaraUchiha I usually do agree that you don't need to extend them, but this time I really wanted to
 
@bwoebi Well, the reason being that an enum has an auto incrementing nature, and extending it would make it weird, I imagine.
 
@MadaraUchiha It'd just inherit the auto-increment as well
It's not like there would be multiple inheritance
 
If TS enums compiled to symbols (values only with identity) rather than numbers or strings, that would have been possible.
 
9:17 AM
as said, the first value of the enum should have the last value of the parent enum + 1
@MadaraUchiha yeah, that was a bit weird, my generated typescript looks like enum foo { BAR = "BAR", BAZ = "BAZ", ... }
as there is no runtime resolution
@MadaraUchiha Or where's the issue with compiling it this way?
 
@bwoebi Legacy.
 
@MadaraUchiha where's legacy? extending an enum would be a completely new thing
 
Also, it does make sense for JavaScript for enums to be translated to numbers or strings
Ah, I thought you were talking about the symbols thing
 
nah :-D
 
So what "way" are you referring to?
 
9:31 AM
14 mins ago, by bwoebi
as said, the first value of the enum should have the last value of the parent enum + 1
if you extend an enum
 
You can reset the value
 
rxw
@tereško Ty for help, anyway i made another a stupid mistake, but now i solved it
 
rxw
@Sean Ty for help, now i solved it
 
What happens if I reset the value to something that was already used by the parent?
 
9:33 AM
@MadaraUchiha the same than what happens if you reset the value to something already used by the enum itself
which is, the former apparently overwrites the latter ... wtf does that not just fail?
 
Seems like there's an open suggestion, at least for string enums
 
hm :-D
 
if ($condition) {
    return $thing;
}
/* implicit return removed from here, shows always covered when not always covered */
imagine that in a function body ...
I don't like that, without performing branch analysis, which seems like a waste of time, is there anything else we can do ?
 
I've experimented with FEMP, and listened to some guy that said "Use ZFS whenever possible" but it looks like that's not true. The system has only 8 GB which is already filled with ARC memory for ZFS, and MySQL crashes frequently (it DOS-es the server which ends up swapping for hours). So I'm thinking of investing another 8 GB or reconfig to UFS. Do any of you have a similar experience and/or advice?
 
also, the logic for detection in phpdbg ignores that end - 2 may be ZEND_VERIFY_RETURN_TYPE, and will adjust the end onto that instruction sometimes ... it doesn't really matter except for correctness ...
also, morning bob :)
 
9:39 AM
@JoeWatkins not really
and hey Joe
 
morns
 
I thought that was the case ... that sucks though, degrades trust ... if they see 100% coverage they think everything is fine ... it may not be fine ...
 
@JoeWatkins run it with Optimizer enabled! Optimizer removes the unreachable default and just leaves it when relevant :-D
 
 
1 hour later…
10:54 AM
Yield inside IF instruction – #77489
 
posted on January 18, 2019

At 2am on Thursday, I awoke to the smell of smoke. Mesquite BBQ, if I wasn’t mistaken. I checked the outlets. Nothing. I checked the kitchen. Nothing. I also checked my email. It wasn’t like it was an emergency or anything. All throughout the house, no sign of fire. I went outside. Yes, in my underwear (why do you always ask that?). I walked a few houses down and found the t

 
11:13 AM
I need to search something about math. I need to know what's the name of the second part of a float number? For example, what's the name of 456 in 123.456 ?
 
@Shafizadeh decimals
or fractional part
 
really? I thought decimal is the first part. So, what's the first part? real ?
 
the first part is the whole or integer part
 
I see .. thank you
 
I think decimal is short for "decimal separator", decimal means a "tenth" or 1/10
 
11:21 AM
👍
 
11:47 AM
Decimal is the type of each digit, wether it is in the whole or in the fractional part, as long as it ranges from 0 to 9.
 
12:01 PM
@bwoebi I do bouncing an idea off you please
 
12:42 PM
mornin
 
moin
 
126
Q: Who wrote this programing saying? "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."

beatak Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. I found this at somebody's blog, and it introduces as Rick Osborne's. But I google this, and other people says: Martin Golding's, John Woods' and Damian Conway's... Yes,...

Morning.
 
So, I need to code in such a way, that the next programmer will become a violent psychopath who knows where I live, after having been forced to maintain my code?
In that case I'll put my home address in the comments...
Can't trust Google on that one ;)
 
:B
 
1:33 PM
Hii
is there anyone who can help me to change date format in laravel 5.7
my database date format is Y-m-d
while i want to change it to m-d-Y when i show the added date on view file
BTW i am using eloquent of laravel to fetch the results
 
2:07 PM
I don't know Laravel, it's too eloquent for me.
 
2:20 PM
morgnind
 
2:54 PM
o/
this might be the only tumblr page I might check again
 
3:12 PM
PHP really should change the object->method() syntax to object.method() ! That's how every programming language else does
 
@Shafizadeh It would conflict with the string concatenation operator
 
3:31 PM
So, PHP also should change combination symbol from . to +
 
That would break the Internet
 
what? why?
are you talking about indexed content about PHP with dot-symbol for concatenation ?
 
It would destroy PHP. Why would any business want to invest the resources necessary to change existing codebases for such a minor change that adds absolutely zero business value?
Why am I getting sucked into this?
 
genuinely, it's easier for you to change your expectations of the way php should work ...
 
3:47 PM
I personally am ok with PHP syntax .. but what I said is a feedback form our CTO which has also lots of experiences with other programming languages
 
@Shafizadeh that's like, his opinion, man
@Shafizadeh (quote from a movie)
 
If you like other languages... you can use other languages
 
A security breach has been found on the http://pear.php.net webserver, with a tainted go-pear.phar discovered. The PEAR website itself has been disabled until a known clean site can be rebuilt. A more detailed announcement will be on the PEAR Blog once it's back online.
9
 
@JoeWatkins oh god
 
indeed
 
4:00 PM
Just keep it down now
 
I haven't heard of pear in more than 10 years. I didn't know it still existed.
 
@JoeWatkins do you know how long it's been tainted?
nevermind, next tweet "six months"
I should be fine
 
Wait wat you are that single person that actually uses pear? :P
 
we use pear mail
 
eeeeeeeeeeeeeeeeeeeew
I mean: sorry for you
 
4:05 PM
I didn't write the code... though I still have to modify code to use it at times
 
we knew since november apparently, but nobody has the time to give a fuck about pear ... not even shut the machine down ...
 
I can't wait for the post mortem which will never happen.
We are still waiting for the one of php.net
 
you're supposed to forget about it ...
 
Never
:)
 
someones got yellow elephpants ...
@Wes thor elephpants ... go ...
 
4:18 PM
what is the DomainException supposed to do?
the description is kinda vague
(I am looking for the correct exception to throw, when someone trys to create an invalid HomeAddress instance)
 
here's the only time it's used, you have to determine it from the source code
mostly, it's just a pretty name :)
 
hmm ... looks like it matches what I want to do
but yeah, it basically no better than making my own InvalidAddress exception and be done with it
I think I will just go with the latter option ... annoyance for suffix-abuse and all
 
it's not really clear to me why most of these exceptions exist, it's not clear why that particular case (and most others) are not IVA, and why aren't IVA that are not TypeError LogicException ...
don't give it too much thought, you'll just waste time ...
right, I'm out, lata phomies
 
yeah, since it look like the creators of those exceptions did not give it much thought either
tnx @JoeWatkins :D
 
4:47 PM
@JoeWatkins what's up? - oh you're out
 
4:58 PM
In laravel in User model the update_at suddenly not updating the time it was updating whenever I update user info any idea why its not working i did'nt change any kind of code
while by using $user->touch() it works but I was never using this one
 
Good morning
 
5:42 PM
Good morning
 
6:00 PM
Hi, SomeEntity::class is actually a string, right?
 
@bwoebi so I had an idea
 
@2dsharp yes.
 
I wanted to avoid branch analysis, and though in discovery we could detect if we have an implicit return, detect the real return, set some stuff in op_array.reserved, and during execution, detect if the real end of the function was reached ...
but you can't actually do it without branch analysis, so now I'm thinking, we don't need the a full analysis of jumps, we just need to opline-- until we determined if there are unconditional returns ... does any of that sound reasonable ?
also, I found two strange problems ... ZEND_HANDLE_EXCEPTION is raised on line 0
that's phpdbg
that's pcov
and switching out the executor function causes the trace to be lost, so can't do that ...
I've adjusted pcov for the moment so it should show exactly the same as phpdbg, and this exception problem seems to be the only remaining difference ...
 
@2dsharp yes
 
(sorry for wall-o-crap everyone)
@2dsharp yes
 
6:14 PM
@JoeWatkins obviously is that opcode in line 0, it's not part of the actual op array
 
yeah it's the strange way handle exception is managed, I think if I read opline_before_exception it should be the correct line number ?
 
@JoeWatkins finding unconditional returns does actually not help, e.g. a while (true) loop or a goto loop. You'll never leave the loop...
@JoeWatkins if you want to assign it a sensible line number, then it would be that, yes
 
well I'm a bit confused that phpdbg doesn't seem to have to work around this
 
Regarding ZEND_HANDLE_EXCEPTION?
 
yeah
wait, I think I'm looking at the workaround
it's part of the interaction loop, right ?
 
6:23 PM
@JoeWatkins I was checking for that but found no special logic
 
it doesn't look related to coverage but to the interaction loop
if (exception) { \
				if (EG(current_execute_data) && EG(current_execute_data)->func && ZEND_USER_CODE(EG(current_execute_data)->func->common.type) \
				 && (backup_opline->opcode == ZEND_HANDLE_EXCEPTION || backup_opline->opcode == ZEND_CATCH)) { \
					EG(current_execute_data)->opline = backup_opline; \
					EG(exception) = exception; \
				} else { \
					Z_OBJ(zv) = exception; \
					zend_throw_exception_internal(&zv); \
				} \
				EG(opline_before_exception) = before_ex; \
			} \
			/* fallthrough */ \
 
But do_interactive() shouldn't be called at all for caught exceptions
And that code is still executing zend_throw_exception_internal() afterwards
 
6:50 PM
@NikiC congrants on the new job. Please make PhpStorm great!
 
7:33 PM
anyone know if phpstorm supports docblock for multiple return values, e.g.
/**
 * @return [string, int]
 */
function foo() {
    return ['Hello world', 7];
}

[$string, $int] = foo();

// PhP sToRm knows that $string is a string here
 
7:50 PM
What you're looking for is called tuple types
And apparently phpdoc supports with with normal round brackets
Whether PhpStorm knows to read it is another story.
Ah no, my bad, it's a feature request
So guess not, sorry :(
 
ah .. reddit .. the gold mine that someone build a toilet for mexican-food place on top of
 
krakjoe@fiji:/opt/src/mimus$ phpdbg -qrr vendor/bin/phpunit --coverage-text
PHPUnit 7.5.2 by Sebastian Bergmann and contributors.

........................................................          56 / 56 (100%)

Time: 178 ms, Memory: 8.00MB

OK (56 tests, 76 assertions)


Code Coverage Report:
  2019-01-19 19:54:47

 Summary:
  Classes: 40.00% (2/5)
  Methods: 80.56% (29/36)
  Lines:   79.32% (280/353)

\mimus::mimus\Double
  Methods:  85.71% (12/14)   Lines:  97.52% (118/121)
\mimus::mimus\Exception
@bwoebi ...
is same, exactly the same ...
 
@MadaraUchiha thanks and booooooo......./goes off to upvote.
 
I'd rant about how TypeScript supports that feature since forever, but you already know my rants :D
 
8:06 PM
I need to buy that apartment sooner, so that I can start dumping $$$ in a new PC
 
8:18 PM
Mornings
 
o/
 
@MadaraUchiha The biggest problem is not the features - but someone needs to detail all the specifics and persuade internals...
 
@bwoebi Yup, indeed.
 
On that topic I'd love to see union types to see another version
 
Although TypeScript's method of avoiding BC issues is great imho
The compilerOptions entry in tsconfig.json
 
8:21 PM
We'll our typing improvements have no BC issues either
 
No, but for example, TypeScript recently added support for real variance checking for callback functions
That's a breaking change, since callbacks were supported before, but not variance
This allows you to release things now, while improving them later, without worrying too much about BC
For example, you could release generics while avoiding the issues of variance and unions and whatever
And add those later, even though it would technically be a breaking change to do so
That could also be a strong tool for persuading internals to not be too uptight about BC changes, since they wouldn't be as scary anymore
 
@MadaraUchiha mutters something about invokeable classes being available already
 
@Danack Yeah, that's a JS feature tho, not TS :(
I don't see that happening by the way
It's not idiomatic JS
 
In a system I'm building, controllers are to update data and persist is. Views are to read the data and display it. Is there a way to enforce this in php? I don't want views to be updating data.
 
@2dsharp Hmm, that's actually an interesting question
I can imagine some DI container knowing that the service is being requested by a view, and providing a decorated version of the service that's read-only
But that would be some serious voodoo to pull off.
 
8:32 PM
@MadaraUchiha That's what I've been thinking, wondering if there's a simpler way.
 
@MadaraUchiha I meant in php. You can have types+variance checking for callback functions if you use classes that use __invoke().
 
@Danack Oh, well, that's up to you guys 😃
 
@2dsharp just punch anyone that tries to modify the data in a view.
 
@2dsharp no, there is really no way to enforce it, but there is a concept of "read model" and "write model" in DDD
 
@tereško Aside graphics card and processor, what other factors do you consider before you buy a laptop for gaming?
 
8:34 PM
@samayo RAM. 8GB would be the basic requirement for a "workstation" and 16GB for gaming system
 
@tereško thanks. I'll look that up.
 
@samayo but the most important would be: how good is the cooling
that's the bottleneck
 
@Danack Then I should be putting up some angry threatening comments on the views as a fair warning.
 
@tereško Let me paraphrase, if you have two laptops with same graphics card and processor, but completely different in other specs, what would be the first thing you look at?
currently I am not sure they could yield different results, but I don't know much about this
 
I wonder if there are conventional threatening comments that devs follow religiously.
 
8:37 PM
I found two laptops with 16GB and Nvidia MX150, but one is dubbed as powerful 15" and other is 13" ... I am thinking they might be the same, but not quite sure
 
@2dsharp in practice that would look kinda like this: you have two sets of services - on for use in controller and other for views. But, if you do not have developers, that are mentally retarded, then it will would be easier to just go the "punching route"
@samayo resolution, intel NIC, available ports (how many usb, do you need HDMI-out, usb-c?), keyboard layout, where the charger comes in, is there bluetooth (for mouse and speakers/headphones), are there options to lock the touchpad, are there audio-controls
there are a lot of small details
hell, on a 15''vs13'' the main would be: do you like a numpad
 
But these can be sublimated with with external peripherals, like a keyboard, monitor ... they don't really make one better than the other, "out of the box" ?
 
@tereško the two service set seems like a clean enough approach. I probably should do some more reading on it.
 
Also, if you I don't plan to use eGPU, I see no reason to put the USB port into consideration...
But I get the point I think, they are mostly the same as long as the two components are the same type
 
the lack of available ports will not be mitigated by external solutions :D
NIC is also not something you will replace with an external option
and trust me: you need USB ports
2 is the absolute minimum (assuming you have a bluetooth)
4 is best
besides, @samayo, as you said: you are comparing 2 similar laptops
if the baseline is the same, then what you are looking out for are various annoyances
you do not want to be annoyed by a device you paid 1000$ on
 
8:51 PM
Yeah, I know having two ports was a minimum, I actually need 4+ :)
 
the "+" will be a problem
 
Yeah, but I have an adapter so ... it's ok
 
which device are you talking about?
 
since apple did their "stunning and brave" thing, some companies have tried to follow their "example"
 
Oh god no!!
 
8:55 PM
... maybe I should try to convince you to join the glorious pc master race instead
 
Kinda funny when you buy something for aesthetics, but then you get that
 
that image is not an exaggeration
it's actually a "minimal setup" from what I have seen around in the office
@Shafizadeh laptops .. kinda
 
@tereško I am convinced already, I did all the research this week and for some time, I went ahead with the thunderbold + eGPU solution, but at the end, I decided to buy part by part from newegg
 
@tereško then get a apple air pro
 
so you would be buying an enclosure, PSU and GPU separately
 
8:57 PM
So, I will be building my PC, but for now, I will go with a light laptop that throws a little for light gaming with mx150 card
 
hmmm ...
oh, you mean a full PC?
 
Yeah, all separately, but I will run the comparability of each components
 
there is a site for that: pcpartpicker.com/list (you will pforably want to pick "germany" for the region)
 
Not sure what you mean by "full PC". I have a really great gaming keyboard, monitor, and mouse
 
I mean the box
:D
ok, here are the two options (if you want to game but also want a laptop)
 
9:00 PM
Yeah, and thanks for the link. I have a feeling, I will start playing before I buy the case, before that is the last part to buy on my list
Trust me, there is no option. That is what I have been looking for all this week
 
initial investment: laptop with a good CPU (intel, mandatory), 8GB ram, some integrated video, usb with thunderbolt
first upgrade: external GPU enclosure, and overkill PSU, and a good GPU
last step: PC chassis, motherboard, cpu, ram, and ssd .... and sell off the enclosure itself
basically, you can reuse the parts from the inside of the enclosure for the stationary PC
and if you have some free time, then the laptop can even act as a thin client for the stationary system later
... as for the mandatory intel cpu in the laptop: thunderbolt is kinda their thing
 
I don't know why but there is a part of me that thinks an ultrabook with external GPU won't be as good as a desktop PC in performance
Those are the list of laptops said to be compatible with eGPU, and I don't know ... they seem either expensive or fragile
I would rather add $200 and go with Zenbook 14" / 16GB / core i7 / NVIDIA MX 150 ..
As ultrabook, the laptop is a beast, portable, and can run light games but no thunderbold :(
It's all about making compromises
 
@samayo no, but if you build an external enclosure, you can reuse parts from it in a real PC
the PSU and GPU are the same
the enclosure basically is a tiny PC chassis with some stuff for thunderbolt
(unless you buy a pre-made enclosure)
 
hhmm... I'm not sure if I understand, but from what you are saying I need to open it up to reuse the parts right? I am not sure I want to do that
 
here is the bottom line: if you do not intend to use it's GPU for gaming, then that Zenbook looks pretty awesome
 
9:16 PM
Thanks, but here is the twist. I have the XPS 13 from 2016, with far inferior integrated intel card, and I play all the games, and I am almost content with it. So, adding the improvement the zenbook will bring and more than enough for me.
 
@samayo lemme check something. I am not 100% sure that DIY enclosures are still a thing (there were 2 years ago)
 
But I will build another PC for the long term
 
hmm ...
then you probalby don't need a new laptop :D
I can assemble you a PC build for ... hmm ... €1000 (but in march ... right now it's a shit time to build a PC)
 
@tereško Thanks. I was thinking about asking you actually before I buy the first part. So far, the PC I built has the processor and the case and cooler only
So, I would be happy if you could help
But it'll take from 6 months to a year, before I buy every component ...
 
so, here is what I would be recommending for CPU: overclock3d.net/news/software/…
all that are marked as "debut in CES" are supposed to come to market in Q1 2019 (by march)
the best one there is 3700x, but it is kinda expensive ... also, when those become available, the 2000-series will drop in price, sharply
 
9:22 PM
Hmm, I am not on board about new CPU/GPU iterations, as they tend to be super expensive during the initial release year
I would rather go for something from last year or the year before that
 
dunno ... that R5 3600X is $230 ... that probably transaltes as €199
that's equivalent to i9-9900K
 
Doesn't sound that bad, I thought it would be $600+
Also, made a mistake about the site I gave you, my lists are actually from the site you gave me. Here is mine if you can see it pcpartpicker.com/user/samayo
Feel free to add or clone it (if possible) so you can add the parts
 
you have no saved builds :D
 
It is in my favorite list
I thought that is how it worked :)
Just don't touch the Deepcool - TESSERACT!!
That case is cool :)
 
9:31 PM
Yeah, I need it. But the case should be smaller than average
Something to fit nicely in my small studio
 
here a quick info on cases/chassis: the sizes are ATX, mATX and mITX
mITX are the smallest ones
^ that's an mITX case
 
Yeah, that is nice...
 
of course the mITX cases are cooling-challenged, so they usually are not THAT small, because companies leave more room for air
(btw, that actually was not the smallest mITX case available on the martket)
so, aside from the sizes, there are also few different "focuses" for the cases: silent, showcase, watercooling, airflow and artistic would be the main that I can think of
 
You might have to squint to see the numbers at the bottom ... they are quite small ... #php #pcov #testing ...
@bwoebi fuck branch analysis, we got blazing speed and comparable results to phpdbg instead ...
 
Ah, this reminds me about the TED talk: the "paradox of choice".. the more choice you have the more difficult it becomes to choose anything
 
9:39 PM
@JoeWatkins :-D
 
@samayo there is a playlist I can give you: youtube.com/playlist?list=PLknCNmc8uMa4w2kK5ybqLWss2tS3I2VNo
:D
 
Anyway, I will find an mITX case with RGB
 
you can find one with a glass side panel
the light can shine out of the side of it
but, the "pretty cases" usually cost a bit :D
 
Hmm, the Cooler Master C700P is really eye catching, but $350 ... I'm not sure about that
Which case do you have?
 
Fractal R5
it's big, ascetic and silent
 
ThW
9:43 PM
I am a fan of the Lian Li cases :-)
 
Lian Li look cool, but inside they lack features (like basic cable management)
@samayo when I decided to build a PC, it took me about 3 months to decide on all the things I wanted
 
@ThW I just looked, it looks nice
 
it's also huge
and I mean seriously huge
 
I am more of a minimalist guy. I don't like big TVs, Laptops, Couch, Table ....
 
from what I understood, you probably will go with either mITX or mATX (which is a bit larger)
 
9:47 PM
@tereško Sorry, but that case is not for me :)
I will search for an mITX with an RGB, if you don't like the one I have already
 
it's utilitarian
@samayo better include mATX too in that list
the ITX cases are seriously small - there is no room for fancy lights
also, the really fancy shit includes custom-water cooling, which is way out of your league
(also way out of mine ... but I might take a risk for my next PC ... a 500$ risk, which is how much custom water cooling costs, if you do it yourself ... from 3rd part its +1000$)
 
I wanted to see what I would like just now, and tried to use the filter, but it turns out I have to choose which motherboard I like first for comparability.
So, I get it ... the first item to choose is the motherboard
 
actually, first item IS the case/chassis
well, ok, no
first item is "GPU size"
if you are going with a triple-fan GPU, that will impact that will impact the size of the case
 
Ok then, I will make the GPU first on my list. The case is always the last anyway.
 
btw, you might not want a full-frontal rgb, but instead go with a tinted glass side-panel: cdn.pcpartpicker.com/static/forever/images/userbuild/…
 
9:58 PM
Yeah, I like the side-panel. That is what I like about the tesseract. The front is just an addition
 
thing is, in front all you can get is the glowing fans :D
 
00:00 - 22:0022:00 - 00:00

« first day (3017 days earlier)      last day (1931 days later) »