« first day (1304 days earlier)      last day (3644 days later) » 

3:04 PM
Hi guys
 
what is this written in
drunk yesterday + minimal sleep, looked at the address bar for a split second and saw "php" at the end, thought to myself "oh it's written in php... oh wait" -_- I think it's time to call it a day lol
 
it is written in English letters
 
@AlmaDo :D
 
E_TOO_BROAD_REQUEST
 
Heh. Would anyone know what i'd be doing wrong if I did for example:
echo $test = array(1,2,3); and as result would see 'array' ?
 
3:09 PM
@DavidH: Why are you trying to echo an array?
If you're trying to view the contents use var_dump() or print_r().
 
Holy crap that was stupid
I didn't realize i echo'd
 
next
 
Facepalm
 
Okay. Next!
 
I can't believe this..
 
3:10 PM
@DavidH wanna know a secret?
 
Sure.
 
is it possible to make a fully working Navigation bar WITH sub items using html + css + php only?
and with hovering instead of clicking
 
Every programmer no matter how good has done something stupid and then afterwards going all "fuck me I'm so stupid"
 
@MikeM. Yea i'd recommend using Jquery and JS though.
 
Whoa. Best application structure ever:
0
Q: Different php include by date

Ma9icI have 365 php pages already created for next year currently named: 1-1-2015.php 1-2-2015.php 1-3-2015.php I want to display a different one each day using <?php include("1-1-2015.php"); ?> on my home page, I have curenlty done somthing similar for days of the week using "if else" <?php $to...

One include file for each day. So 365 include files in total. Isn't it nice?
 
3:11 PM
@DavidH as I said only html + css + php :D
 
@MikeM
fk
 
My project is HTML + CSS + PHP + MySQL only :)
 
Please award him some badge for the most creative idea ever! :)
 
@MikeM. If I understood you right you want a dropdown menu right? You can do it with just html and css
 
@Danack I have created such an issue a while ago: github.com/zendframework/zf2/issues/5860
 
3:12 PM
@MikeM. It still is possible but you can't get effects IIRC. No special ones though, gotta do with what CSS3 and HTML5 offers you.
 
Goddamnit. Facebook's API docs are level Paypal :(
 
question is how backwards compatible you want it
 
@AndersM. yes but the one I found is with clicks but when I want to use hover it will automaticly leaves the bar...
 
@Ocramius So you're saying "Pull requests accepted." ?
 
@MikeM. can you link the one you found?
 
3:14 PM
@MikeM. Position fixed, maybe?
You could also keep it hidden and show upon click.
 
@AmalMurali They're asking questions like this - seems like they don't really have a programming mindset
 
@Danack right, as long as bugfixes are backed by tests
 
@user257503 this is not a "debug my code" service kind of site, please include the relevant code in the question where future users can read it and not in a jsfiddle link in a comment on an answer. Also, please consider reading stackoverflow.com/questions/14220321/…Benjamin Gruenbaum 46 secs ago
 
@BenjaminGruenbaum That's a great question! Upvoting...
 
3:16 PM
heh
 
@AmalMurali I expected the question to be years and years old where labor was still present with horrible office work. But the question was posted 6 minutes ago... How can that even happen nowadays..(The amount of pages instead of include)
 
@Jimbo SIGH
 
just created it: jsfiddle.net/e2jwk
 
@DavidH Well, if they are including 365 files, then why are they using PHP, like, at all?
 
3:17 PM
Blogged about final classes, OCP, and closing for inheritance: http://verraes.net/2014/05/final-classes-in-php/ Hope that settles it! #naive
 
this is just with spans
not yet with ul - li etc.
 
@AmalMurali Heh, good call. I just feel sad when I read something like that..
 
@MikeM. look at the link I posted :) follow that tutorial
 
oki
 
@Ocramius is that a good read?
 
3:18 PM
@AmalMurali Is he paid by file count?
 
@BenjaminGruenbaum if you don't believe in final, otherwise it's just a recap
 
^ basically the same
 
@bwoebi Probably XD
 
@bwoebi lol
 
Amal, next year the dude is going to be changing the names of each page..
Utterly saddening
 
3:22 PM
@DavidH lol
It hurts my hands just thinking about it
 
@Ocramius Presumably any PR be made against the zf2 repo, and not the individual modules repo?
 
I know right..
 
@DavidH lol
 
@Danack yes, PRs go against the main repo
 
dd if=/dev/zero of=lol bs=1 count=10000000 && split -b 1 -a 1 lol - Rich in 30 Seconds
 
3:23 PM
just poke me if you're not sure if something is a good or a bad PR case
 
@SecondRikudo Ah I think it's over now that you have both rinnegan and Obito is going to die : >. But yea it'll probably end in a cliche in which the heroes win..
 
@AmalMurali great idea (had to check out man page)
 
@DavidH Bitch please, everyone knows I should win.
 
filesystem implosion :-)
 
3:24 PM
Should, yes. I want that actually, but it HAS to end the stupid way...
 
morning
 
morning
 
morning
 
@DavidH On other news, Sakura has now entered a brand new level of uselessness, as Naruto gained the ability to perform the function she was performing after training vigilantly for over 4 years, in one microsecond in a near-death experience.
 
3:28 PM
Hahahaha! Yea she has nothing to do there anymore, yet you could see a picture of team 7 being reunited. Man...I hate sakura.. Though I find things like, where the hell is Yamato or TenTen funnier than her.
 
@DavidH Yamato is dumped in some trench, nobody cares about him anymore.
Who's tenten?
 
@SecondRikudo Couldn't agree with you more. Though I think she's going to be a pain in the ass once she arrives. Don't forget those sealing tools, I do think you are way stronger then even containable for those sealing tools, though it'll probably have some cliche thing to that. At the moment you should practically be Sage though, so I don't see a reason how you'd lose unless of course you'll become cocky and leave yourself open.
 
@DavidH If those sealing tools are what's going to defeat me, I will seriously consider buying a ticket to japan and beat the crap out of Kishimoto.
And with that, I'll head on home.
 
3:31 PM
@AndersM. the tutorial isn't really a tutorial it doesn't explain the codes given at all (well not for most ones)
 
BBL ya'll
 
@SecondRikudo Do it, for all the realism readers. Cya!
 
@MikeM.
it does explain, but maybe not in a depth you want it to :)
 
well ....:after .... doesn't even get explained while it's important why he used it...
btw please do mention ... text ... because else It just pops up as you got mentioned: MikeM. (PHP)
 
@MikeM. yeah trying to, just need to get used to this system. don't you understand what after in it self does or why he used it?
 
3:36 PM
well specificly there is a whole bunch of code in the tutorial that is not needed for the output someone need to get
 
Guys is it forbidden to compare a variable with an array to another variable in an if statement?
 
@MikeM. "The clearfix style rule will clear the floats used on the subsequent list items without the use of overflow:hidden, which would hide the sub menus and prevent them from appearing." why he used after, I'm not a css guru myself so I can't explain it fully detailed, maybe try the css talk? They'll probably know about browser compatibility as well
anyway I'm gonna leave
 
good luck mike :)
 
@MikeM. I'm not sure but I don't think it's supposed to say ~ ul . I think that has to be li.a or something like that.
 
3:42 PM
Hey Anders, where are you from?
 
see: jsfiddle.net/e2jwk/3 VS jsfiddle.net/e2jwk/4 no difference right (unless the contents)
 
Wait I said nothing
I get it now :)
 
I think your structure was incorrect, HTML sided.
 
3:45 PM
Yea thought so.
 
when using a <ul> as subitem it's <li>item1<ul><li>subitem1</li></ul></li>
 
I still have -4 delv count :(
SO hates me
 
So anyone, why would having a variable that has an array be incorrect in an if statement?
 
^ because it's not incorrect
 
Yea why ;p I don't get what i'm doing wrong.
 
3:47 PM
@DavidH Provide us with your code and we can help :)
using for example: pastebin
 
Alrighty
 
@DanLugg LOL, i got sucked into reading that conversation in the backlog, but that made me giggle
 
use pastebin it's nicer
but uhm your if statement shows nothing
 
@CarrieKendall :-P
 
@HamZa better yet, we should ban any inferior who has ever made a mistake! </sarcasm>
 
3:50 PM
sometimes you can really start to cry
 
because:
*if(condition !== condition){
//true output so condition 1 is not equal with the same datatype of condition 2 (TRUE)
echo('true');
}//for example use an else and say false*
 
@CarrieKendall hehe
 
Here: http://pastebin.com/i8ZHkjq1
//Side note, $membertype_id = a single number;
 
there was this one developer who was so great with all this framework shit that now, if one parameter in the URL is not as expected (e.g. due to shitty written JS code from his own camp as they could not test it for all cases) the application just fails.
 
3:51 PM
Gah, what is with everyone bumming if (false === someMethodCall()) { /** ... **/ }
 
now I can rip all that out and rewrite it :/
 
Symfony nobs. It doesn't even read correctly like that, the code should read like english
 
@hakre decouple it from all the frameworks and it'll mysteriously work :-)
 
@Jimbo "If it is false to say exactly, that some method call..."
I dunno, reads okay. (though I don't do that)
 
@DanLugg Compared to... "If this method call returns false".......
 
3:53 PM
@DavidH pastebin.com/3WvCDKAU try this
 
"If false is the result of this method call"...
The former is, by far, more readable. Especially when it comes to less arbitrary examples with multiple operators
 
well, consider me special because i much prefer if (!someMethodCall()):p
 
"If false is not equal to the result of this method" or "If the result of this method is not equal to false"
@CarrieKendall That's different :P (we all do that)
 
@CarrieKendall true I also would do that
 
> Are you sure (you cannot vote again after retracting)?
Why? :-(
 
3:55 PM
well, if you're arguing what's more "readable" i'd have to say that my example is the least reabable
 
@Jimbo "If one concedes that, with all other things held equal, my assertion upon this behavior defined by name as "some method call", were to yield a value known not to be true, then ...."
 
Exactly, LOL
 
@DanLugg i read that in abe lincoln's voice
 
@DavidH What is the output?
 
I think I found the issue sort of.
 
3:56 PM
check the pastebin I sent you and check the output
 
If you use array in a comparison operator, it'll check if every each of them is equal to the variable
I already checked that like I wrote in my pastebin, it's correct
 
oh wait ofcourse
in_array(....)
 
@Jimbo I confess, I've started to do that
 
@CarrieKendall Four score, and seven years E_WARNING It is not safe to rely on the system's timezone settings.
8
 
@MikeM. I think the real question would be, which function is applicable to include multiple values in a variable.
 
3:57 PM
@Jimbo WTF are you doing yoda???
STAPH IT!
 
I'm going to guess I need 4 different variables eh?
 
I'm a bad person, I often write if (false === $lenth = fwrite($fp, $data)) { throw new Exception("J7mbo sux!"); } and the like
 
@DaveRandom That is a bit different.
 
@DaveRandom That's absolutely bloody awful
 
I used to think that, now I quite like it
 
3:59 PM
That's because you are an awful person
 
@DaveRandom That's because you worked alongside someone else doing that and now you have the programmers version of stockholm syndrome
 
I prefer it over $length = fwrite(); if ($length === false) {} at any rate
 
Well, I blame it on the "might be false, falsey, or truthy". PHP Y U NO NOT STUPID?
 
@DaveRandom ugh i hate assignments in an if condition
 
^^ Agree.
 
4:00 PM
@Danack ouch, that's pretty bad :|
 
it should be illegal
 
@DavidH pastebin.com/RTJ2Hef4 this would check it the given value does not exists in the array value
 
@Ocramius Just about to add another one :P
 
I know people hate it, but I like the try* convention. if ($stream->tryWrite($value, &$bytesWritten))
 
if the given value is not in the array then it outputs: "good" else it outputs "bad"
 
4:01 PM
@DanLugg References? Really?
 
Oh fuck you and your reference hate ;-)
 
@bwoebi yeah. he was very clever. it's with annotations. ~~~~
 
Right I need to bail because of stupid Manchester City victory parade bullshit clogging up my city
 
Why do people shit their pants about references? They're awesome for "out" params. Oh, what's that? You don't like out params? Suck testicle and deal with it, they're fine.
 
shit-coupling makes just more fun with coding in comments.
 
4:02 PM
I'm not going to look at fixing them for a while - I am in the middle of doing three things already and can't get further distracted. Did you say you were going to look at replacing it with Nikic's parser? ;)
 
@DanLugg Go write C, pointer boy
:-P
 
I should leave this rant mode now.
 
srsly, catch y'all later
 
Later dooder.
 
see ya
 
4:03 PM
@MikeM. Works like a charm, thanks man. The only thing I had to remove is ' !'
 
hmm I thought (following !==) you didn't want it to exists in the array anyways no problem it's were this site is for...
 
Yea I did it the other way around so I could avoid the else, I don't really need anything to show in the else :P inside the true part I have divs etc
But I'm calling it a day, cya guys!
And thanks again!
 
Cya and your welcome.
 
just noticed that I answered all the questions from one user…
 
@bwoebi All... 2 of them? ;-)
 
4:07 PM
@DanLugg yes!
 
@Ocramius do you believe in final? I mean what does that mean to believe here?
 
I don't think I ever used final
Outside of extension code, that is
 
final is like a variable that can't be changed later on the code right? (set once then only readable)
 
No. Final is a class modifier that prevents it from being extended. Also, a method modifier that prevents it from being overridden.
 
Is it possible to write a CMS (in terms of functionality) like WordPress or Joomla using a good framework (like Symfony2) within 2 months? What do you think?
 
4:09 PM
@NikiC why would you use final in extension code then?
 
@bwoebi Implementing non-final classes is a PITA
 
creating some ugly ass designs xD
 
@NikiC ah, that makes any difference?!
 
So, extensions that define classes need special provisions made if they intend to be extended?
 
@bwoebi You need to make sure that you still properly handle magic if you use custom object handlers
And stuff like that
 
4:11 PM
Why is WordPress used for phpng benchmarks?
 
ah, object handlers, okay.
 
Can we add Magento too?
 
@webarto And OpenCart? :P
You know, so we benchmark all the shit :)
 
Magento is Enterprise :P
 
No no, only WP and Joomla (again - in terms of functionality)
 
4:12 PM
(Btw, is Magento shit? Don't know nothing about that one)
 
Magento is kinda too large
 
Yes it is @NikiC
Shit mixed with blood and puke
 
I never used final for my code, I perhaps should try with it.
 
@PeeHaa That was my default assumption
 
Still better than WordPress, eih.
 
4:13 PM
I used it once because those who forked the repro extended my class and I didn't want it :)
 
Really, I think that anything CMSy written in PHP is shit. True?
 
Everything open source, probably.
 
@NikiC Just store JSON dumps and then use ember.js
 
@PeeHaa Have you ever seen something that is not a shit?
 
@djay Yes I have
 
4:13 PM
@NikiC On the face of it, Drupal doesn't appear to be too shite - but I've never had to use it in anger.
 
For example?
 
There's plenty of uber-shit out there.
 
@NikiC doing a CMS which isn't shit is really hard.
 
xD
 
4:14 PM
@djay Lots of shit is not shit
 
@bwoebi They all try to do too much, is the problem.
 
My navigation bar idea(s)
 
@DanLugg not only that. It's hard by the means of configuration.
 
@bwoebi It's more likely that the intersection between the people writing CMSes and the people writing good code is to the most part empty.
 
Guys I'm asking about the time! How long it takes to write a WP or Joomla like CMS? (Assuming the developer knows his framework very well?
 
4:15 PM
mcp == Mod CP
 
@bwoebi Oh, absolutely.
 
@NikiC Best explanation.
 
The more you can configure the harder it gets to have good code.
 
At least I can't see how "CMS" is anywhere remotely close to a "hard" CS/SE problem
 
@NikiC It's not, it's just hard because people.
 
4:16 PM
@djay Long enough you shouldn't do it unless you want to make it your life's work.
 
@djay if you want a good CMS then if you code on daily base 4hours and it is exploit free (as far as you know) I think 2-3 months
 
@NikiC I've already tried to write some really stripped down CMS (most people even wouldn't call it a CMS), but everything you can configure makes code a bit worse :-/ It's not only the people I'd say.
 
hmmm
 
Let's take imagineecommerce.com as an example, they don't talk about PHP, they talk about commerce, stuff that they do using Magento. My boss actually talks about technology.
He's in Las Vegas, compiling phpng.
Imagine that...
 
if you want to build a working CMS with shit gui and just a few properties (including installer) working on daily base 2hours I think 2-3 weeks
 
@MikeM. You can write blog, but not CMS.
 
@webarto What you mean you can write blog but not cms? if the cms is bs with lack of proper features you can do it in 2-3 weeks
 
Well that's not functional CMS then.
 
^ wtf @PeeHaa :-D
 
CMS is heavily misused word, by the way.
 
4:22 PM
Therefore WP and Joomla were take as example
 
btw, did we get those binding dupe cvs or not?
 
@NikiC not yet. It would've been really useful in cases like this ^
 
Also 'How long to build' is easily misconstrued. I can build a monstrosity in a small amount of time
 
o.O
 
@webarto Never said it would be functional in 2-3 weeks it's at least a point of view XD
 
4:23 PM
/me thinks it is a clone created by @DanLugg :-P
 
@webarto Are there any words that aren't misused in development? :P
Except profanities...
 
@bwoebi lol @PeeHaa
 
@SecondRikudo I linked a Go article not long ago
 
4:33 PM
@bwoebi Too slow. I had already edited my comment :P
 
oh wow - gotta be kidding me is that game seriously unbeatable by computers?
finally some support from paymentwall :D (party)
 
@MikeM. Go is several orders of magnitude more complex than chess.
 
ah sweet
 
In the space of possible moves that is.
 
Oh fuxk. Power cuts. I hate them...
 
4:35 PM
@AmalMurali And yet, here you are. Talking to us.
With your potato powered computer
 
@SecondRikudo: And typing on mobile sucks even more.
 
Ohh no autocomplete for chat. I'm out. Gonna read a book or something...
 
@AmalMurali lowut?
 
@AmalMurali hihihi
 
4:47 PM
The amount of crap Kolink spits out in a day is amazing. If he would invest only a small portion of that time moderating SO would be crap free in a couple of days!
 
@PeeHaa Amazing
 
PHP.net mods: please don't delete this comment: php.net/manual/en/language.oop5.final.php#113843
It serves as an example that final is actually a good thing ^^
n Wrong window; that was my answer to "Do you want to send this report now? [Yns]:"
 
going to eat
cya
 
@hakre I just try to follow poka-yoke when possible
 
@PeeHaa something's wrong there… his answers with rep/total answers ratio is at 71%. Too much.
 
My ratio is 81%. I think Kolinks ratio should be more at 50%…
@peeHaa your ratio is also 80%.
 

« first day (1304 days earlier)      last day (3644 days later) »