« first day (2565 days earlier)      last day (2369 days later) » 

1:23 AM
mornings v.0.0.1-dev
 
Wes
\o
 
Wes
i am trying to remember how to merge a branch into master and hiding the commit history of that branch
squash maybe
 
iirc there was something like squashing commits
yeah :B
 
Wes
git has way too many commands
what a mess :B
 
1:31 AM
:P, anyways gotta go to school. See ya in ~ 7 hours
\o
 
 
2 hours later…
Wes
> nested static classes with constants
> seems php7 doesn't support that feature
fucking php never good at anything...
:B
 
3:44 AM
I don't understand nested classes
I mean... I get it. but... why would I?
what does it solve, compared to... I don't know, a private property containing a class instance?
 
Incorrect code coverage report – #75422
 
@Wes TELL ME!!!! ^^ ;)
 
morning
 
good morning
 
Wes
@FélixGagnon-Grenier the "advantage" is that the inner/nested class can access private members of the host class
it is mostly an abomination
the advantages aren't a lot
java is passionate about this shit, but good developers despise them, as inner classes are poorly testable
 
3:56 AM
;)
 
Wes
and confusing as hell
 
I love the use of passionate here
 
Wes
yes because only java could have made a thing like that for a problem that clearly should've solved in a different way
as you said, there is no big advantage
i can instantiate a "public class" privately
and achieve the same result
dunno if you ever looked at java's own code @FélixGagnon-Grenier
there are classes containing classes containing classes
in files that are several thousands lines long
 
I thought about that exactly once, a while ago when you told me that all classes inherit from the "null" type.
then I decided to fucking nuke that thought from orbit with fire
 
Wes
in my mind even anon objects like
$foo = new class(){
function bar(){}
};
should be avoided, unless you are doing some very simple override
if you need to override 20 methods you might as well have an actual class in its own file
and that for the same reason...
yes the nullable references are like the stupidest java thing
i wonder if new jvm languages solved that... like kotlin
 
4:02 AM
I have classes of 5 lines...
ffs it's not like we're about to lack files
 
Wes
lol yes
 
4:28 AM
shit. so I listened to 1812 overture, now I want to watch v for vendetta yet again
 
watsup with wikipedia^^
 
Wes
@Linus crud all the things?
bleh :P
 
First time i came through it? :P
 
Wes
me too. sounds like a stupid idea
but what do i know...
anyway, gn \o
 
4:43 AM
Gn o/
 
5:06 AM
tbh, it's the first I hear of that specific thing [naked objects] as well
I like very much the idea of having data and user interface being consistent
not sure about the "automated" part of it, but if it's what it takes to achieve real "nakedness" of object (that is, being so purely expressed it can be automagically transformed in a form without loss) why not
 
posted on October 24, 2017

New Cyanide and Happiness Comic

 
6:07 AM
Hello
Stack
Iam working for a website,which tempt to work as 3 party for amazon merchant services
So for this i want to list the main category of products,which are available currently in amazon,like books,electronics,etc..
How can i get these category names?
Any informations would be a lot helpful,Thankyou
 
6:37 AM
how can I see the nameserver of my server? (I want to set it for my domain name)
 
6:50 AM
@MadaraUchiha can you please clean up the comments in stackoverflow.com/questions/46865220/…. all obsolete.
 
7:26 AM
moin
 
hi every one
i i am facing one issue . is diamond inheritance possible in PHP 7?
 
no.
 
in past i have done this in java. any alternative way to achieve this?
i have post my question. link stackoverflow.com/questions/46904501/…
i am stuck any help please
 
Do anyone know multiselect working in prestashop.
 
@BilalAhmed Multiple inheritance is not possible with PHP. The traits solution you got as an answer is a workaround, but it will require you to rewrite your code from classes to traits.
 
7:33 AM
@Gordon thanks your response. but i can't change or convert into trait the parent class. any other alternative?
 
@tereško I did it. Firstly I registered two nameservers like these: ns1.lamtakam.com and ns1.lamtakam.com, Also I set my server ip for both of them. Then I did set up those two nameservers for my domain.
But still I cannot open my server by entering this in the browser: http://lamtakam.com. What's wrong? My friend says, it takes about 24 hours, is that right?
 
@BilalAhmed Be more specific about what you are trying to do. Why do you think you need multiple inheritance?
 
8 mins ago, by bwoebi
no.
Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing instances of other classes that implement the desired functionality) rather than inheritance from a base or parent class. This is an often-stated principle of OOP, such as in the influential book Design Patterns. == Basics == An implementation of composition over inheritance typically begins with the creation of various interfaces representing the behaviors that the system must exhibit...
 
mornin
 
@Shafizadeh You could start with intodns.com/lamtakam.com
 
7:42 AM
@Gordon in future PHP 8 or latest version will allow the diamond inheritance? have you any updates about this?
 
@Sjon what the link you provided says?
 
@BilalAhmed multiple inheritance is not planned for any php release whatsoever
 
@BilalAhmed learn how to use composition and you never have to worry about that again...
moin o/
 
@Patrick Composition does have its drawbacks, you know
 
@Gordon ok thanks
 
7:44 AM
But yeah, multiple inheritence is meh
You do have traits in the language though @BilalAhmed
 
@Shafizadeh "WARNING: One or more of your nameservers did not return any of your NS records." / "ERROR: One or more of your nameservers did not respond" / "No valid SOA record came back" & no mx/A records
 
@MadaraUchiha not the same thing and requires you to rewrite your code base
 
@MadaraUchiha I'm not saying that sometimes inheritance is the right tool for the job. But if you need diamond inheritance you should probably rethink your approach...
 
@MadaraUchiha you are right.. compositions have drawbacks
 
That being said, in most of the cases composition is the right choice
 
7:46 AM
@Patrick I'm not sure that's true
 
You can also go with FP and use type classes instead :-P
 
It's not as clear-cut as Singleton and the likes
It's a feature that's missing from PHP (by design) and that you need other ways to solve the problems it promises to solve
It isn't a case of "You need to rethink your approach if you need this"
@Ocramius Sure you could, or go with procedural. I don't know why people are so afraid of it nowadays.
 
@MadaraUchiha what is the problem that is solves (that shouldn't be solved through composition instead)?
@BilalAhmed what problem are you trying to solve with diamond inheritance?
 
@Patrick Easy, when you need to inherit two behaviors. The equivalent solution with composition is cumbersome
 
@Shafizadeh why did you need to register name-servers?
 
7:48 AM
@MadaraUchiha because it's a massive metric-ton of shit
 
@tereško I thought I must do that
otherwise, how can I set my server ip?
 
Procedural coding is basically "code-sine-design" that requires "developer-as-design-polyfill"
 
@Ocramius Not really, no. In plenty of cases, building a full blown OO architecture around a problem causes more problems than it solves.
 
@Shafizadeh nope. NS entries are usually used in larger computer systems and/or networks. What you need to make is just an A entry
 
@tereško what you mean "just a entry". How "a entry" looks like ?
 
7:50 AM
@MadaraUchiha I have to disagree with that
 
notice the uppercase A
 
where should I setup my ip server?
 
@Patrick Say you have a duck, which is a flier that swims
 
gimme a sec, I will make a screenshot from my own DNS setup
 
thx
 
7:51 AM
@MadaraUchiha real example please...
 
Instead of inheriting from the Swimmer abstract class and the Flier abstract class, now you need to accept a Swimmer and a Flier in the constructor, write interfaces for both, have the Duck implement both of them, and write all the methods from all the interfaces
 
a duck doesn't fly like a bird and doesn't swim like a fish
so you can't reuse that code :)
 
@MadaraUchiha absolutely, but you can't expand any system using procedural code as logic kernel, as the foundation is not going to work
 
@Ocramius Sometimes you don't need to vOv
 
the typical procedural:

1. parse request
2. do db query
3. spit out some HTML

kinda works and is OK, but it is the outer layer, not the inner layer
 
7:53 AM
Simplicity matters, if for the sake of expandability you created 7 layers of abstractions and 10 files you need to go through to get to where things actually happen, you lost.
 
Tbh, no. If you are building something that will grow, organic growth does NOT work with software
 
@MadaraUchiha if nothing happens in your abstractions, you lost
 
Reminder that cancer also grows organically
 
@Patrick "But maybe, one day something will"
"Maybe some day I'll want to replace the database with a Rest API, then what will I do?"
 
Here's a bit of procedural garbage that won't grow further, and if it does, needs to be replaced: github.com/Roave/SecurityAdvisories/blob/…
but it was already hard to make sure it doesn't just blow up, so most of it is kept FP/OO as much as possible
 
7:56 AM
@Ocramius You can have abstractions in procedural code, you know
Just not OO abstractions
 
Yes, they are garbage
Just don't do abstractions that are procedural. They are not abstractions, they are quicksands
 
vOv
I'm not sure that's true, really. A combination of PP and FP is working fairly well for JS all over at the moment
 
here it is, @Shafizadeh: i.stack.imgur.com/PThsY.png
 
@MadaraUchiha so well that they have to reinvent the wheel every 30 days?
 
of course, those domains shouldn't be working now, since the server on that IP has been in the process of reinstalling ... for a month now :(
 
Anonymous
8:05 AM
mornin
 
@tereško I guess my domain provider doesn't has such a interface
 
your domain provider also does not take 15-20$ per year
 
@Patrick I think we're past the reinventing the wheel every few hours stage in JS
It did undergo very rapid growth and identity crisis, but things are relatively stable now.
 
thetimes.co.uk/article/… .. these people are fucking insane
 
8:08 AM
@MadaraUchiha We're now at day to day changes instead of every few hours? :P
 
@DejanMarjanovic That's it. That's the entire presentation
 
@Gordon yep, here just for this basically :D
 
@DejanMarjanovic Basically nothing. :P
 
Waiting to see
Not sure if php7 or just 7.2
But 7 is like 3yo
 
Anonymous
8:10 AM
@DejanMarjanovic where is the video?
 
... the wall-size soft OLED screens are still few years away :(
especially the affordable ones
 
There is a camera here but @SebastianBergmann will know
 
People who do binary jokes are the first thing I would put in Room 5.
 
Anonymous
@tereško
 
Anonymous
!!wotd
 
8:12 AM
rapprochement an establishment or reestablishment of harmonious relations: a rapprochement reached between warring factions.
 
@tereško I think considering ticket is like 1000e should not be a problem
 
There is a option in my domain provider website: "use default nameservers". Is it good to check that option? @tereško
 
probably
 
8:36 AM
hi all
please help me
I cannot compare the $day any where
 
have you tried turning it off an on again?
 
what?
 
Anonymous
@RAJMOHAN Do you genuinely think someone will be able to help you with that information?
 
pls help yaar
 
:D
 
8:41 AM
Actually I am getting that value from javascript and put to into a php variable
 
you should probably try a different hobby
 
i'm working on header authentication with ajax call to add to cart e-commerce web service which is json response.when i hit add cart button then i get this error. i have searched at google but i don't understand very well about this error does it happening because of error in ajax call or error at server site. XMLHttpRequest cannot load 139.59.36.134/JacchaBacchaDevelopers/v1/index.php/…. Response for preflight has invalid HTTP status code 404
 
but on echoing its display but it is not working on if else condition
 
here is add to cart function.
 
Anonymous
jesus, they're all out today
 
Anonymous
8:42 AM
!!welcome RAJMOHAN
 
Welcome @RAJMOHAN, please read the Chat Guidelines
 
Anonymous
!!welcome amarghodke
 
Welcome @amarghodke, please read the Chat Guidelines
 
Anonymous
1 message moved to Trash can
 
@amarghodke it would seem, that the link does not actually have any content on the other end
probably has something to do with your routing setup
... and that's all I can deduce from the information, that you gave
 
chat.stackoverflow.com/transcript/message/39618584#39618584 just keep spamming your xhr until someone does your thinking for you
 
i want to know the reason of this error in my case if i given header authentication , so is server not accepting it from ajax or it must be handled only from server end . like setting CORS enable ?
any clue or any more information required ?
 
@amarghodke is your server dealing with OPTIONS requests? the error you are getting sounds pretty clear, it tries to send a preflight request to your server but it's only getting a 404 back
 
8:59 AM
@pmmaga : unfortunately i have no idea about it.i am dealing with this problem for the first time ever in my life, so no clear idea. is it possible to check this from front-end or in ajax call ?
 
Anonymous
!!error
 
@amarghodke sounds like now is the ideal time for you to learn about it. start here: developer.mozilla.org/en-US/docs/Web/HTTP/CORS
 
Isset not work on array with stdClasses – #75423
 
Wait, @JayIsTooCommon is a room owner and @tereško isn't? :P
 
Anonymous
?
 
9:13 AM
Hello guys
Iam working for a website,which tempt to work as 3 party for amazon merchant services
So for this i want to list the main category of products,which are available currently in amazon,like books,electronics,etc..
How can i get these category names?
Any informations would be a lot helpful,Thankyou
 
stackoverflow.com/questions/46905939/… cv please for the love of everything
 
Anonymous
@Epodax but but, he said it's a serious issue?
 
@JayIsTooCommon Of course, how could I be so foolish, I wanted to close it but I must have missed the "important" and "don't close please" part, which of course changes everything.
 
mornings v0.1-beta o/
 
9:39 AM
@pmmaga: i have read the link for preflight, so do i need pass these thing in ajax ? Access-Control-Allow-Methods and Access-Control-Allow-Headers. or it is totally wrong ?
 
@amarghodke your servers needs to reply to the preflight with those set
 
@pmmaga: you mean Access-Control-Allow-Methods and Access-Control-Allow-Headers are need to be set by server side just like setting to Access-Control-Allow-Origin:* ???
 
@amarghodke yes. continued reading: developer.mozilla.org/en-US/docs/Web/HTTP/…
 
10:01 AM
@pmmaga : so this is the thing do i need to implement in php ? developer.mozilla.org/en-US/docs/Web/HTTP/…
@pmmaga :please ignore link.
@pmmaga : eval.in/885667
 
Morning nerds \o
 
o/
 
!!urban Sean
 
[ sean ] used to define huge sarcastic assholes, that end up becoming amazingly sweet. Seans know exactly how to piss you off and then five seconds later have you cracking up. Huge jerks, but gotta love 'em.
 
10:10 AM
Sounds like Jay tbh
 
!!urban Saitama
 
[ saitama ] The Hero can replace Superman and Goku. A.K.A. One Punch Man
 
10:25 AM
@NikiC gist.github.com/bwoebi/8f9ae2d2b501d45dee3ac7c3a372f3ce < that's what I'm using currently and seems to work fine (i.e. without crashes) [the important part is checking whether EG(current_execute_data) has been modified between fetching and dereferencing]
 
anyone ?
 
@NikiC A compiler may reorder these statements, so perhaps prev/func/opline need to be marked volatile, not sure.
 
10:44 AM
the fuck are people voting yes for trailing comma in functions for?
 
^++
 
I guess I will be listening to "Songs of Darkness, Words of Light" album today
 
I've been listening Master of Reality
 
@Leigh Not being able to use them annoyed me multiple times in the past.
 
Because a diff affecting multiple lines offends you?
 
10:50 AM
use them? again for the diff?
 
Well the implication that there's another parameter when there isn't one offends me
 
@Leigh Do you think the same about arrays?
 
Yep
I don't use trailing commas in arrays either
And I dislike the fact it's there
 
^++
 
Hello to all mentors..
 
10:53 AM
the trailing comma in functions seems like useless thing to do
and it also encourages a practice of constantly changing the function's footprint
 
i just need advice regarding the mindmap as step to think before building an ecommerce site in multilanguage
 
Anonymous
@Sean don't know whether to say thank or fuck you. So.. thank fuck you
 
posted on October 24, 2017 by kelunik

- Fixed `isIpV4()`. - Fixed URL parameter decoding to use `urldecode()` instead of `rawurldecode()`.

 
what to put in backend with codeigniter built the login for admin and categories , product attribute and then product .. How to move forward with this to have comparison in between product not of different categories and setting up multilanguage
 
Have this urge to start submitting patches adding trailing commas everywhere in single line function calls to make you appreciate how ridiculous they are.
 
11:05 AM
@Leigh In single line calls it's obviously ridiculous.
 
Of course it is, but that's what you're writing, regardless of lines
 
Except that when I have multiple lines, it's way more likely I'll be re-ordering the items.
 
Ah, because fuck stable APIs :)
 
Right in the ear.
 
@bwoebi Did you have a look at travis-ci.org/amphp/aerys/jobs/290549532#L561?
 
11:10 AM
But again, it's probably not so useful when you're writing code against a well-trodden stable api....it's more useful when you're doing lots of new stuff, or making large changes.
 
@Danack ctrl+f6 on function name
added bonus of re-ordering all call sites too
 
@JayIsTooCommon 😘
 
exif_read_data(image.jpg): corrupt EXIF header: maximum directory nesting – #75424
 
@kelunik not yet
@NikiC May I suggest stripping the NULL-bytes (within anon class names) from callgrind output? It seems allergic to it and loops indefinitely then
 
@bwoebi We should really remove them from the names completely. It's super stupid.
 
11:18 AM
@DaveRandom I need a simple gateway/router for bridging my network, that fairly inexpensive?
 
@Leigh I do, on arrays which are merely enumerative. But otherwise I agree.
@tereško well, tell that the people who voted yes, not those who voted no :-P
 
Wes
morn
 
mornonin
 
11:34 AM
@DaveRandom Actually, networking stuff. I have my main router in the bedroom with an ethernet cable going to living room to a second router. Bridge mode isn't available so I assume it is set up as an access point. Problem I am having is xbox is connected to that living room router and showing an error of "Double NAT" when wired and "Strict NAT" on wireless.
@DaveRandom If I plug the ethernet cable from the main router straight in to the xbox I get Open NAT. How can I get the living room router to stop being such a PeeHaa?
 
!!urban peehaa
 
[ PeeHaa ] A cowboy shouting peeee haaa! while peeing and swinging a lasso.
 
@Fabor Sounds like you have the link cable plugged into the WAN port of the living room router
just plug it into a LAN port instead
you want to use it as a switch, it shouldn't be routing
Ideally just buy a switch or an AP with a switch on it
 
Does he even need a router in the living room?
 
I see, yes it is in the WAN.
@IROEGBU Wifi sucks due to thick walls
 
11:37 AM
@Fabor yeh, just re-plug it in the LAN, and disable DHCP on the second router
 
@Fabor You need an AP
45 secs ago, by DaveRandom
Ideally just buy a switch or an AP with a switch on it
 
^ yeh, but just disabling DHCP on the router and patching into the LAN will make the router behave like an AP with a switch on it
and is free
The router will only route between interfaces, if everything is on the LAN interface it will just behave as a switch
which is what you want
 
Disabled dhcp on it.
No Internet access atm
Reboot?
Oh it is required so yes. Rebooting.
 
any of you ever implemented google authenticator 2fa in an app? I have a hard time finding official docs for that.
 
NB: the main router and second router should have their WiFi configured with the same SSID (i.e. network name) but different channels a long way apart (if 2.4GHz, use channels 1/6/11)
 
@Fabor the router status page will show as not having internet access, that's fine. What matters is that devices you plug into it get an IP address from the upstairs router
 
@IROEGBU yes, but I'd expect google to provide the libs for that. I only found github.com/google/google-authenticator
 
mb_convert_variables converts integers to strings – #75425
 
Internet access is back. NAT strict. But progress. Probably need to fiddle with main router but don't know the login details -_-.
Some Cisco router they set up and the guy who set it up said he doesn't know the details for "security reasons" o.O
Cheers though @DaveRandom. The WAN->LAN thing has been something we've called them about 2 times now :P
 
11:55 AM
@Fabor cisco in a house wat
 
@DaveRandom CMC is our provider. It's a weird setup. They got a Cisco router there and some other one.
 
It's that simple, if you start doing anything more complicated you are probably doing it wrong :-P
 
Oh god
I tried doing this at home
 
I'm not sure what "strict NAT" is actually complaining about, maybe it wants uPnP?
 
it caused so many stupid problems
Like how devices on router 1 couldn't see or speak to router 2
 
11:59 AM
oooh
@Fabor disable uPnP on the second router, if you can find a setting for it
 

« first day (2565 days earlier)      last day (2369 days later) »