« first day (1413 days earlier)      last day (3538 days later) » 

1:00 PM
.oO( idea: XMLON is a reformulation of JSON in XML. )
 
@Gordon The naming sucks though :P
 
@SecondRikudo why, you dont like melons?
 
JSON stands for JavaScript Object Notation, which means that XMLON is XML Object Notation, which is kind of redundant redundant.
 
Well, I'm at work at the moment. I think it would help some things but I can probably discuss that later this evening/sometime later when I'm not at work ;)
 
@Gordon this is the case when even abbreviation is saying to you that those things have nothing to do with each other (since no common letters)
 
1:01 PM
@Gordon As a matter of fact, I don't.
One of the only fruits I seriously dislike.
 
Eggsmelon. Nothing wrong with eggs. Nothing wrong with melons.
 
@Danack Cool. How long of an image do you think I need to have a decent-looking thumbnail? Any ideas?
 
Hmm that was way too long to remember you can't bind the table name in PDO.
 
user895378
@Danack I'm changing up my tag strategy a bit. Going to do v1.0.0-alpha later today. The next one will be v1.0.0-beta. Then RCs will come after that. RC just isn't appropriate yet because what I have now isn't "release-able" since there is a lot of untested/undocumented stuff.
 
1:02 PM
I envision an egg painted like a melon for the logo
 
@AmalMurali You want to keep the same aspect ratio as your thumbnail, so you should be able to figure out what height based on the thumbnail width+height + screen width you're capturing at.
@rdlowrey Ok. tbh semver sucks at anything that isn't a real release. It might be easier to just release 0.9.x versions, but I don't care.
 
@Danack Added some more stuff to the introduction now ... it follows roughly what you have suggested above, in that it's awkward to use heredocs in combination with other operators.
 
@Danack This is the capture of cnn.com. It's very large, and I only need a 133 x 100 thumbnail - that's the issue :/
 
@NikiC Added some counter arguments in the "breaking changes" sections.
 
@Ja͢ck Cool. I found this bit still hard to read correctly "This proposal aims to loosen or altogether remove the newline restriction:" It should probably be "The proposal is to either loosen or altogether remove the newline restriction" To make it clear that there are two alternatives, rather than one proposal that can work in multiple ways.
Or even "This RFC has two alternative proposals; to either loosen or altogether"
 
1:12 PM
Alright, I'll look into that :)
 
user1994804
I'm setting $_SESSION variables in one file but I cannot access these variables in another file that has it's contents read in an AJAX call. WTH??
 
<-- Typical bloody Virgo, perfectionist in everything other people do.
 
user1994804
even using session_start() inside the file the AJAX calls doesn't do it.
 
user1994804
Infact adding session_start() causes unpredicatable results
 
user1994804
Any ideas will be welcomed
 
1:15 PM
@YourAdrenalineFix People in this room aren't psychic. Do you really think you've given enough information for people to be able to help you? (and please use pastebin rather than posting large chunks of code in here.)
 
> This proposal aims to lift the current newline restriction and make it less awkward to use heredocs and nowdocs within constructs, such as [...]
@Danack ^^ sound okay?
 
\o/
 
The two separate solutions are explained further down in the same section.
I felt that it would be repetitive if I mention that twice :)
 
@Ja͢ck Repetition is good.....people skim read, and jump to conclusions about stuff they've missed rather than actually reading complete docs.
 
user895378
1:18 PM
@Danack this is a wise statement :)
 
Yeah, the "two ways" are still mentioned in three different spots, so it should be okay me thinks.
@rdlowrey Shall we place bets on whether Kris will comment on the voting options?
 
user895378
Gambling is illegal in my state, I would never engage in such morally depraved activity ;)
 
I bet you wouldn't.
 
@rdlowrey I guess that's a no then.
 
Yo ho ho
 
user895378
1:22 PM
@Fabien I'm a walking example of Puritan morality and uprightness.
 
How do they regard bets of the non-financial nature?
 
@rdlowrey your body is a temple.
 
@Fabien That's what he said
 
user895378
@Fabien In that case, my temple has been defaced by some graffiti.
 
You got a tattoo?
 
user895378
1:24 PM
couple of them.
 
user895378
Not visible with clothes on, though.
 
@rdlowrey does one of your tattoos say: PHP "7" 4ever?
 
And what are these tattoos you speak of?
 
user895378
@Ja͢ck No, but I might get a temporary Henna one just for that because it would make for some legendary internet iconography.
 
Indeed
 
1:26 PM
You should streak PHPNW with "PHP 6 FOR LIFE" across your butt cheeks.
 
lol
 
user895378
"PHP 6, never forget" with a R.I.P. tombstone would be epic.
 
Seriously though, whats your tattoos?
I've been toying with the idea of getting a second.
 
user895378
Uh, here's a picture from my G+
 
Ah I hear the side is super painful.
 
user895378
1:28 PM
The other is on my right hip, also latin.
 
user895378
@Fabien made me question my manhood after a couple of hours.
 
@rdlowrey You should tag that
 
heh. What's the translation?
 
@rdlowrey did you make sure it was spelled correctly? ;-)
 
user895378
@Fabien "To the stars through hardship" ... fun fact, it's also the state motto of Kansas.
 
1:30 PM
Guys, what folder structure should I use for OpenSource GitHub projects?
 
@rdlowrey Damn I was hoping it contained a typo :(
 
user895378
"ad astra per aspera"
 
user895378
no typos, thankfully. @rdlowrey would've had to choke a bitch.
 
Been 10 years nearly since i got mine done. Needs re-inking for one.
 
user1994804
@Danack Sorry, It's something DaveRandom was helping me with yesterday but I'm still having trouble.
 
user1994804
1:32 PM
Here's an example I created; your-adrenaline-fix.com/ajaxexample.txt
 
^^ like that one!
 
user895378
nice.
 
I call pen.
 
user1994804
Dave suggested I use SESSION to transfer the PHP variables but after trying every conceiveable method of doing so I am still stuck
 
Every conceivable method sounds hyperbolic.
 
user1994804
1:39 PM
Ive even tried ob_start() but Im really just guessing at anything now...
 
I got a few tats ... done a fair few of them myself ... I'm terrible at it ...
 
user895378
@JoeWatkins you did your own on yourself?
 
some of them yeah
 
@Ja͢ck :D
 
user895378
1:42 PM
that's nuts
 
@ircmaxell that's cooool
@rdlowrey I ran out of space that I can draw on ... so have to pay other people now anyway ... some of them are not good, on the top half of my left leg there is just a mess, it was too painful, I kept rubbing off the transfer and had to stop ... there is a bird on arm that looks messed up and a lady of my left lower leg we refer to as "the pig faced lady" ... she has a snout ...
 
user895378
@JoeWatkins amazing
 
user895378
"The pig-faced lady" sounds like the greatest dive-bar of all time.
 
@ircmaxell love that stuff :D
 
user895378
> Go interfaces make test stubbing easy
 
user895378
1:49 PM
How about, "interfaces make test stubbing easy"
 
Interfaces make stabbing easy .. got it
 
I'm not a natural artist, at all ... tattooing is actually quite a technical persuit, just like some of our early projects some of my early tattoos are just terrible ... but I don't a fair few that were nice, on me and on other people ... I got rid of the gear in the end ... it's been 5 years or so since I tried, and don't think I would do it again ...
 
user895378
I'm not sure when exactly Hacker News turned into google's go-lang public relations arm, but it's annoying.
 
I like the implicit interfacing of Go though
if an object has the methods defined by an interface, then it implements the interface
 
1:50 PM
no need to explicitly define implements
 
that sounds like ... right ^^ that
 
Hey guys. Why is
Config::session_lifetime; doesn't working but
$config = new Config;
$config->session_lifetime; works?
 
@ircmaxell heh
 
@ircmaxell that never went to a vote, did it?
 
so many cool wasted rfc's ...
there's another real nice one, can't find it ... inheritance related it was ...
maybe it was that one ...
 
1:56 PM
i think it may have been.
 
@ircmaxell Would you like me to send your survey to some of my friends?
Or are you looking for a controlled audience survey?
 
Good example of bad answer to bad question =S
 
@SecondRikudo fwiw, the survey doesn't matter for the countries that have global healthcare
dunno how it is in Israel
 
@FlorianMargaine I think it does matter ... not all of us that live in such countries have employers in the same country, our attitude to seeking advice has to be dictated in part by our countries attitude to providing it ...
even though I live in a country where it's normal, my colleagues do not ...
 
I mean, 80% of the questions don't make sense...
 
2:02 PM
I don't see that at all
 
I couldn't answer anything after the 1st half
 
posted on August 29, 2014 by kbironneau

/* by Arekibian */

 
because he expects the employer to take care of medical issues
 
and so they should
 
they don't in France
 
2:03 PM
just because your government is providing treatment doesn't mean your employer should be indifferent ...
 
@JoeWatkins hey, what are your thoughts on adding a typed scanner mode to the ini parser? i.e. use booleans, numbers instead of just strings.
 
I think that is what we are trying to highlight ...
 
So foo = on would translate to ['foo' => true].
 
"treatment" AKA take these pills. It's cheaper than therapy.
 
2:06 PM
@Ja͢ck so long as it's another mode that doesn't brake anything else, I think I'd go for it ...
 
It has come up a few times ...
Question is, though, should the lexer define the types before it gets handed to the parser? @JoeWatkins
 
@Jack how else could it work ?
 
I ehh .. this is my first time with a lexer hehe
 
ordinarily, as you can see, that's how it works, I'm not sure how else it could be ...
 
Alright .. I shall continue my lexing endeavours ;-)
 
2:09 PM
it doesn't make sense for the lexer to hand off string tokens and the parser need to lex them again in order to determine type ...
 
Anyone active?
I have a tiny question.
 
Yeah
 
class Book {

    function getTitle() {
        return "A Great Book";
    }

    function getAuthor() {
        return "John Doe";
    }

    function turnPage() {
        // pointer to next page
    }

    function getCurrentPage() {
        return "current page content";
    }

}

interface Printer {

    function printPage($page);
}

class PlainTextPrinter implements Printer {

    function printPage($page) {
        echo $page;
    }

}

class HtmlPrinter implements Printer {

    function printPage($page) {
Basically, suppose I want to print.
I have an interface which is called Printer
I have a class PlainTextPrinter and HtmlPrinter
 
yes
 
How do I exactly call printPage() method on Htmlprinter
By implementing the interface in
Book class
 
2:15 PM
So you mean you want to print from the Book?
 
yes.
Basically I have completely different code, but this is just some dummy code.
 
Understood
 
I'll tell my actual problem.
I have classes called PrivateTemplateMapper and PublicTemplateMapper
I have an interface called TemplateMapper
It is injected in a class called TemplateController
According to the Development Mode,
 
Which is either Private or Public
It should use the right class to call the function via Interface
How would I solve that problem?
 
2:17 PM
So PrivateTemplateMapper and PublicTemplateMapper both implement TemplateMapper right?
 
System.out.print('wat'); is java..
Yes, BadHorsie
They will have exactly same function names
but with slightly different tasks
 
Yep I'm with you
 
@HassanAlthaf yet it works in php.
 
@FlorianMargaine because you can use print() in PHP to output as well? :P
 
So let's say that you have your 'Public' or 'Private' flag available as a string variable in your TemplateController
 
2:19 PM
Foolishness of PHP.
Yea
And?
 
$type = 'Public';

$mapperClass = $type . 'TemplateMapper';
$mapper = new $mapperClass();
I think you can dynamically instantiate your class like that, so the correct one gets created.
Then it's available as $mapper->method();
 
Hmm, perfect idea! But I do not want to instantiate my class.
 
ok
 
I want to call the correct method out of either 2 of the
 
What do you want to do with it?
 
2:21 PM
Morning.
 
Lets say
 
Morning Levi
 
handlePageLoad() {
 
You have to instantiate the class to call a method on it, unless the methods are static.
 
Umm, with an interface? :/
 
2:22 PM
and static methods are bad mmmkay
usually
 
*sometimes
What is this interface? Is it implemented by the TemplateController?
What's in it?
You will have to explain a bit more
 
Argh, im confused. :/
I guess I need to plan more.
 
OK, why do you not want to instantiate the class?
 
Because?
 
2:23 PM
idk
 
-_-
 
lol
 
for fun.
 
/exits conversation
 
It's because I am confused.
 
2:24 PM
Haha ok
 
Let me plan more
 
@LeviMorrison Morning puss
 
It sounds like you are possibly misunderstanding something about OOP principals
 
@BadHorsie principals does not mean what you think it does ;)
 
principles*
 
2:25 PM
@BadHorsie suggest me to code something in PHP?
 
I was talking about Seymour Skinner actually
 
I'm totally unsure. Something that would teach me a lot.
 
Guestbook
 
Nah, something better.
Already done a Guestbook.
 
Guestbook 2.0
 
2:26 PM
LOL
Are you kidding me?
 
Build a forum.
 
I feel like you are almost there but have misunderstood something about interfaces that you are now obsessing over
Your printer concept was good, I think.
 
BadHorsie, I copied it off a site as an example.
I found it where I read the SOLID principle.
 
If we understood what you are trying to accomplish with the TemplateController, we could probably help and then it would click and make sense for you.
 
I have 0 code in my project right now.
I know, I agree.
 
2:27 PM
@HassanAlthaf Maybe this could teach you some oop principles? :)
 
Thank you @Fabien
Fabien, I want to do something different. I have coded forum and stuff already..
I've done Blogs, Management Panels, Forums,
 
user895378
If I ever publish code containing any derivation of the words, "PrivateTemplateMapper," please punch me in the face. E_NEEDS_MOAR_FACTORY_FACTORY.
 
@HassanAlthaf I think I do sort of understand what you were trying to do. Like you wanted the controller class to "automatically" have certain methods available, based on the development environment variable?
 
Yes, BadHorsie
But forget it, I am not doing that project anymore. I want to do something else.
 
2:31 PM
Gimme an Idea?
Probably something that takes forever to finish.
 
OK what about some sort of text-based game like this?

http://dhmholley.co.uk/civclicker.html
 
user1994804
Anyone got any ideas on getting PHP variables inside one PHP file to be carried into another php file that an AJAX call reads from?
 
Something else BadHorsie? :/
 
@YourAdrenalineFix davidwalsh.name/…
 
user1994804
@BadHorsie I think I already got all that but Nice looking website
 
2:34 PM
What is it you can't do without that?
When you say you want PHP vars to be copied from one file to another and then read?
@HassanAlthaf A blog?
@Hassa
CMS system?
Sorry, redundant "system" there
 
Thats what I was about to code?
:/
 
user1994804
Actually, What you provided COULD be implemented. I just don't know how. I know the functions that you described on the page but I don't know how to implement using those methods
 
What with the template mapper/
 
I lack ideas.
For templating purposes?
 
user1994804
since we're dealing with dynamic, always changing variables
 
2:36 PM
For theming
And content loading, etc.
 
@YourAdrenalineFix Explain a bit more? Why does it matter if they are always changing? The ajax script will get those fresh values each time it runs.
@HassanAlthaf So why are you giving up on it?
 
@BadHorsie idk, I wanna do something new instead of doing the same things again and again.
 
user1994804
@BadHorsie Thank You So Much for your dedication, Now lets roll our sleeves up and crack this mofo
 
user1994804
I'm thinking fwrite() may do the trick
 
user1994804
Possibly...
 
2:39 PM
hang on, before you go down this file writing route, why are you reading/writing to files instead of just using a database?
 
What about file_get_contents(); file_put_contents();?
 
user1994804
Lemme bring u back up an example, (BTW, I use my own site vs PasteBin so I can delete code afterwards)
 
user1994804
Ok, I hope this makes sense: This is a rough sketch of what Im trying to accomplish;
 
BadHorsie, do you think it will be hard to code an Online Web-Based IDE for PHP?
 
2:40 PM
moin @LeviMorrison
 
'onScroll='
Use jQuery, why mess up HTML? xD.
You can use $(document).ready( function() {

});
 
@HassanAlthaf Would probably be more JavaScript-based than PHP
 
user1994804
Cuz I'm not fluent with jQuery and I'd like to learn to walk before running
 
@BadHorsie I don't mind. LOL
I'm learning JavaScript/jQuery too.
I guess I'll do an online web-based thingy so I can develop my applications where-ever I am.
 
user1994804
It's just that the file (Data.php) needs info from Page A
 
user1994804
2:42 PM
Ive tried $_SESSION but strange things start happening
 
@YourAdrenalineFix what is your problem? Maybe I can help as well?
 
user1994804
That'd be great. Thanks
 
@YourAdrenalineFix OK, you don't need to use SESSION, you just want to send some data along with the ajax request
Which is pretty standard
 
user1994804
That's correct. Just not standard to me
 
user1994804
I spent the full day yesterday and half of today trying to figure it out ;)
 
user1994804
2:45 PM
I'd be most appreciative if you could show me a solution
 
If anyone here has not yet up-voted my answer on using prepared statements with the IN operator, I would appreciate them doing so. We need to overtake the accepted, injection vulnerable answer!
 
@YourAdrenalineFix What is the data you want to send? Or where are those values coming from?
 
What if I code a compiler in PHP to parse a custom syntax?
 
@HassanAlthaf Sounds fun
 
ikr
imma start on it.
 
user1994804
2:48 PM
@BadHorsie Just a second, I'm working on a better and more accurate (updated) example
 
Mah gawd, this Winodws 8.1 is so annoying
 
user1994804
That'll be my "Explanation"
 
Cannot delete directories in htdocs
 
Another fan!
> @PeeHaa... Cant you give me points for urldecode method??? Always need excuses to downvote others
 
2:54 PM
It's okay.
It's only worthwhile when you have it in strict mode, which means you have a lot of type annotations. Which means if you change something you have to change a lot of types.
 
@Ja͢ck nope
 

« first day (1413 days earlier)      last day (3538 days later) »