« first day (572 days earlier)      last day (4362 days later) » 

12:03 AM
@ircmaxell Man, if only your talk was one day earlier I could come see it in person. Alas, I guess over the Internet will have to do.
 
:-D
why not?
 
@ircmaxell I took the day before off and I really can't afford to take too many days off this month, have my first 2 work projects due this month.
 
Ahhh
well, you're not too far out, are you?
 
@ircmaxell Not really, but my last experience going to NYC I would need to spend several hours before hand to make sure I don't get lost. Sadly if I left when I got off I'd be arriving in NYC right around the time you'd be starting.
 
that's not a bad thing
but fair enough
 
12:08 AM
I only live on the other side of the planet so .. sorry
 
:-D
 
@CharlesSprayberry getting lost will not happen with 3g and google maps on your phone
 
@Chris You assume that I have a 3G phone
 
or 4g
since 4g is the thing right now
3g is kind of old indeed
 
In my country, 1MB = 0.5 euros
 
12:12 AM
You assume that I have a smartphone
 
in my country 10 eur = unlimited everything for a month
@CharlesSprayberry well then it's back to scrolling down your window and "hey dude, you know where X is?"
 
@Chris Yea, last time I did that they looked at me like I was an alien with three heads and nobody could help me.
 
there is a thing called GPS device.
 
yup, that's what happens when you use 60's methods in 21st century
i'm surprised you even have a car
or internet for that matter
 
yeah, I stole it... cheaper that way.
 
12:15 AM
Clearly if you don't have a smartphone you can't be a productive member of society.
 
no you can not
fighting the system dont work
 
It definitely is not me fighting the system. It is more cost than anything.
 
you only buy it once ... every year
when new iphone comes out
 
@ircmaxell Thinking about this right now: reddit.com/r/PHP/comments/tezmi/…
 
@Chris The plans require a monthly payment. It is not simply purchasing the phone
 
12:17 AM
plans?
 
I can easily get it to about 90 chars, but I have no idea how that guy did 61
 
@Chris Yes, the service to make the phone into more then a technically advanced paperweight.
 
we have simple sim cards
just buy it .. no strings attached
i get out of credit .. i go recharge
or I dont
 
@NikiC interesting
 
I think reddit forgot to design they're site
 
12:20 AM
@Chris Sadly that is not really how phones work in the USA.
 
@CharlesSprayberry we have plans here, too .. but I find I have more control over a plain sim card from a grocery store
 
@Chris Yea, I get your point and I'm totally with you. I just don't believe you can do that with an iPhone without paying a tremendous amount of money upfront for it to be unlocked. In addition, I'm not sure prepaid plans would provide the same kind of service or speed as a monthly plan would.
 
@CharlesSprayberry unlocking is free you idiot
 
@Chris I really don't appreciate being called an idiot. I also have no desire to jailbreak my phone.
 
you can get phone (some samsung idiot proof) for 10euros, with prepaid SIM card.
 
12:23 AM
@CharlesSprayberry it was a joke .. and there really is no difference between a phone .. and a jailbreaked phone.
I got my samsung galaxy with 400 euros
it sucks
 
Hi, does anyone know how to remove the preview window in sublimetext 2? min.us/mGzd6VaQy
 
I'd like an iphone .. but thats 1200 euros
 
applesheep
 
@aurel settings?
I'd also like macbook pro ... but that's 2000+ euros
 
@Chris sure but can find it in there
 
12:25 AM
@aurel put on your glasses
 
@Chris I disagree. Apple routinely fixes the flaws used to jailbreak their phones making upgrading the OS an iffy subject.
 
the difference between U.S and Estonian apple product prices is that U.S guys have $ .. we have EUR
making it way more expensive here
@CharlesSprayberry I never thought of that, my bad
 
@NikiC hrm, I'm thinking of a few possible avenues
 
@ircmaxell I was being stupid, now I'm down to 65
 
@CharlesSprayberry pokit.org/get/img/091fcfd91253b3a726274b97ccf27b26.png there are always some tools, professionally built.
 
12:27 AM
56 with notice :/
 
win that shizz @NikiC !!! go go go
 
why the f* would someone pay for vbulletin over mybb...
 
why would anyone use forums anyway?
also, did phpbb die yet?
 
@webarto I have no desire to jailbreak my phone when I eventually get one. There's no reason for me to, I would not download apps from Cydia, or other jailbreak app stores. I like the walled garden approach.
 
@NikiC @
 
user895378
12:30 AM
Just spent 15 minutes on what I believe is a valuable OOP lesson (in answer form). If you have a moment, please peruse it and vote as you see fit:
 
user895378
0
A: Accessing a child's methods from abstract parent class in PHP

rdlowreyIf you're going to use a static method why even bother asking users to extend the parent class? OOP vs. COP First, what you're suggesting is not OOP -- it's COP (Class Oriented Programming). I'd advise you to consider exactly why you've made TemplateParser::parse_template static in the first pl...

 
@CharlesSprayberry That is OK, if it fulfills your needs.
 
@ircmaxell hm, how could I not think of that?
 
@webarto :)
 
+1 to tanned brogrammer
 
user895378
12:32 AM
there's probably no way you could've read the Q and the A that quickly, but thanks :)
 
no worries, I made conclusion by just taking a glimpse at the shape of the code.
 
user895378
lol you saw interfaces and said, "looks legit to me"
 
+1 @rdlowrey (didn't read at all)
wait, there was code there? clicks again
 
+ you have good tan
 
code sucks, but since I can't downvote .. what the heck
anyway
im off
night
 
12:36 AM
night
 
user895378
later
 
can someone enlighten me, besides it uses eval()...
 
user895378
I can't enlighten you ... just looking at the code made me dumber.
 
I don't understand the point of eval(), when you can just assign bloody variable...
 
@webarto Sadly I have seen quite a bit of this type of eval usage. It makes me sad :(
 
12:41 AM
I'm numb to these kind of things, my manager keeps saying to me, "just make it work"... so... but still can't see point of eval().
 
@Nikic: I'd love to see yours
I'm quite lost
I have a start at one that's 107 characters
 
@ircmaxell Try a bit more :)
 
lol
 
65 without handling j,q,k,a
57 actually
 
12:52 AM
i have 56 handling all, but he didn't accept it cause it uses error suppression :/
 
that's bs
nowhere in the rules is that not allowed
 
user895378
Think we're allowed 5.4 short array syntax []?
 
5.3.6
 
user895378
doh
 
foreach($hand as$h)@$x^=1<<$h;return($x>>min($hand))==31; <-- that's mine
doesn't work, so...
(well, for 'a','j','q','k')
 
12:54 AM
@ircmaxell óÒ
 
:-D
 
btw, it's always five cards, right?
 
yes
 
user895378
yeah
 
probably one can just xor everything together and divide by 5 and you got it ^^
anyway, my solution was return@ereg('['.implode($hand).']{5}','a234567890jqka');
I'm not even sure that it's right
 
12:59 AM
interesting...
got it working at 62 with no notice
completely working
 
@ircmaxell one more char :)
 
2 more
actually, miscounted. 61 characters with no notice
 
want to share it?
 
done
59 with a notice
 
1:14 AM
@rdlowrey +1 for answer
 
@ircmaxell not 53?
 
well, I saw yours...
actually, at that point
51
 
51
^^
 
:-D
 
Ahoy folks
 
1:22 AM
actually, 52 with error suppression...
 
Are there any reasonably approaches to accessing the specificity (probably wrong word) of a regular expression from left to right? Purpose being, reordering a list of arbitrary expressions, as to push "catch-all's" to the bottom.
 
@ircmaxell no 51, you can drop the ws after return ;)
 
no, 52
 
Also, any such thing as an LSB friendly __CLASS__?
 
@ircmaxell But doesn't the first @ catch both errors?
 
1:26 AM
no
 
no?
 
no
 
for me it does :(
 
oh, it looks like it does too
 
:P
 
1:30 AM
Blargh, get_called_class(), forgot about you.
 
So just to be sure I understand what I've read, an Object Interface lays out the shared functions between classes? So if you have a Default Bike and a Tandem Bike you wouldn't extend the Bike with Tandem, you would implement the interface of Bike for both? Or am I completely missing the mark here
 
Wow, just got awarded the yearling badge...can't believe it has been a year already since I started using SO
 
I'm pretty sure I'm missing the mark, I just don't get it from how its explained in PHP manual
Ok I see, an interface insures you use the same methods across classes that implement that interface, right?
 
user895378
@Event_Horizon Thanks.
 
user895378
@Event_Horizon yes
 
1:37 AM
NP
Cool, just trying to get a better grasp on OOP
 
user895378
@Event_Horizon Here's another answer to help illustrate interfaces (and traits if you use PHP 5.4+) ... hope that helps
 
heh, it's 3:40 in the morning :(
 
:-D
 
Sadly I see arguments citing that specific line in the documentation for why traits should completely replace interfaces
 
user895378
1:52 AM
Does anyone actually use the auto_prepend_file or auto_append_file php.ini directives? It seems this would only hide what's going on in your code and cause major sanity nightmares
 
@rdlowrey TY
 
user895378
@Event_Horizon np
 
when i run a sql query which on my local server starts at 0, starts at 1 on my online storage, anyone know why? thanks
i thought u should start at 0 not 1 with id
 
hrm, I'm having a problem with the multi-line markdown parser:
*foo*
*bar*
**baz**
is turned into
 
for mysql query, should u start you table id's with 0 or 1 ?
 
2:02 AM
<p><em>foo</em>
*bar*
<strong>baz</strong></p>
 
user895378
Is that a markdown parser you've written or some other one?
 
Ahh, because it would yield inconsistent results
* * is not allowed
 
user895378
_underscores_ needed?
 
function normalize(str) {
    var arr = str.replace("\r", "").split("\n");
    var minChars = str.length;
    var re1 = /^\s*/;
    var re2 = /^\s*$/;
    for (var i = 0; i < arr.length; i++) {
        if (arr[i] == '' || re2.test(arr[i])) {
            arr[i] = '';
        } else {
            arr[i] = arr[i].replace("\t", "    ");
            minChars=Math.min(re1.exec(arr[i])[0].length, minChars);
        }
    }
    var re3 = new RegExp('^\\\s{' + minChars + '}');
    for (i = 0; i < arr.length; i++) {
        <li class="markdown">
            *foo bar* **baz**
        </li>
    $('.markdown').each(function() {
        $(this).html(converter.makeHtml(normalize($(this).text()))).removeClass('markdown');
    });
 
@rdlowrey So if I were to use unique Classes and/or Classes with Interfaces instead of Implementing traits would I be losing any kind of functionality? I'm assuming no, but I'm not sure if there are any magic things you can do with traits.
 
user895378
2:14 AM
@Event_Horizon No, you certainly wouldn't be losing functionality. It's my experience that the cases where traits are actually justified come few and far between.
 
@rdlowrey +1 for that article as well, very helpful
I think that sums it up much better than the PHP manual page does.
 
user895378
The only time I've seen a trait make good sense from a design perspective is when two different classes implement part or all of an interface in the same way.
 
How do you implement only part of an interface? I thought the point was to require those methods, or is that the point you are making that you can only implement part using traits?
 
user895378
No, you have it correct. By "part of an interface" I mean for example if an interface defines three methods and you have two classes that implement that interface the same way for two of those three required methods.
 
user895378
You could create a trait that specified the two methods that were implemented in the same way for both classes
 
user895378
2:18 AM
But you'd still have to specify the third method from the interface individually in your two classes.
 
user895378
If that doesn't make sense I can write up a quick code sample ... it might be clearer.
 
@rdlowrey That is the sanest explanation for the use of traits I've heard so far.
 
Sure if it doesn't bother you, I'm trying hard to get into OOP stuff
 
user895378
@Event_Horizon np, I'll post a pastebin in a minute
 
user895378
2:22 AM
@CharlesSprayberry Well, I learned from using them incorrectly :)
 
user895378
I should understand them well enough after that
 
user895378
interface Pet
{
    public function eat();
    public function sleep();
    public function doTrick();
}

trait TheBasics
{
    public function eat() {
        echo 'yummy';
    }

    public function sleep() {
        echo 'snore';
    }
}

class Dog implements Pet
{
    use TheBasics;

    // the trait covered Pet::eat and Pet::sleep for us, but it didn't
    // specify Pet::doTrick, so we still define that here
    public function doTrick() {
        echo 'roll over';
    }
}

class Cat implements Pet
 
user895378
@EventHorizon see above code
 
sigh, why does MDN fail so often
 
@rdlowrey haha, being a dog person I absolutely love this. That's about all the tricks a cat is good for ;)
 
user895378
2:29 AM
@CharlesSprayberry So true.
 
@rdlowrey Ah I see, easy to understand, I like it
 
@rdlowrey I'm gonna steal your code and turn it into a gist so I can easily link it to people who need some trait educating
 
user895378
@Event_Horizon That's what I mean by a trait specifying part of an interface's functionality.
 
user895378
@CharlesSprayberry no problem, knock yourself out.
 
so they still have to have the trait, they just modify it
I mean
the doTrick
 
user895378
2:31 AM
Dog and Cat aren't modifying the trait. They're simply implementing the Pet interface.
 
user895378
Because TheBasics trait doesn't specify all the methods for Pet, the Dog and Cat still have to specify the missing functionality.
 
And the trait is setting up shared methods WITH the functionality in them, as opposed to within the classes
 
user895378
Yes, though once the trait is included in the class via the use statement it acts as if it's part of the classes.
 
Ok yeah, very easy to understand
 
G'day all
 
2:33 AM
For this kind of situation would you HAVE to use traits, or could you do it with normal interface by just copying the functions down to the classes?
 
user895378
You could duplicate the code if you wanted to.
 
user895378
@Paul hola
 
@Paul Howdy
 
user895378
You don't ever HAVE to use traits. And like I said, the valid use-cases are few and far between.
 
my preference is still against traits, mainly because my brain can't handle the use statements and the priorities of them.
 
2:35 AM
It would be easier to use traits in a big project but would make it less dynamic to change right?
 
user895378
Yeah, I've been trying to stress that they're very rarely the correct solution.
 
user895378
@Event_Horizon It all depends on your code.
 
user895378
Traits are nothing more than a method of code reuse.
 
right right
 
user895378
If two classes really do implement functionality in the same way and you're sure those two classes shouldn't actually be one class or that the trait's functionality shouldn't be lumped into another object and injected, traits can make sense.
 
2:37 AM
@Paul The priorities of the use statements does make my brain hurt too.
 
if you don't use a function defined in an interface for a class implementing it, php will error out for that class right?
 
user895378
right. your code will not run.
 
Anyone know a 9 letter word synonymous with "string" or "text" (or "literal", etc.)?
 
Ok, good to know
 
I have 6 classes in an inheritance tree, each with a 9 letter name. I don't want to break it :(
 
user895378
2:38 AM
paragraph? character?
 
user895378
the nine-letter constraint makes it tough :)
 
Stringied
 
The nine character constraint does make it difficult
 
2:39 AM
@CharlesSprayberry I know
 
user895378
@Bracketworks lol
 
@rdlowrey Character is what I have now. Paragraph is a bit too specific
 
xkcd bobby tables I love you intawebs
 
Parameter, Condition, Iteration, String
 
2:41 AM
@EventHorizon Yea, been there.
The context calls for something synonymous with "literal", as the class is just a dummy for a literal string.
 
Done.
Rainbow it is.
I'll rename all the others.
 
inscribed
I put rainbow up because you went to thesaurus.com before asking others
 
Nonparsed
 
StringLit
 
2:45 AM
@Paul I was trying to think of a concatenation with "string"
 
lol
 
@Bracketworks you have a class for that?
 
@Paul It's a dummy for a parse tree. I split input by token delimiters, literal parts (strings) are just wrapped in a dummy with some inherited helper methods
 
school, lol...
hello?
 
StringTok or StringTkn... or StringwTF
 
2:47 AM
wTF?
 
Stokening
 
(there, i made your comment make sense) @JoeDF
 
Strokening.
 
user895378
hehe
 
2:48 AM
:D
lol
 
The strokening of unparsed character data will surely result in longer execution time.
 
user895378
Strokener actually has 9 ...
 
:)
 
The all your other 9 character classes should follow the theme too, you'll have to rename them.
 
user895378
Of course, someone might read your source code and think it's some sort of pleasure toy
 
2:49 AM
@Bracketworks Must construct additional Strokener
oh man its almost 11 gotta get some SC2 in
 
I luv Stackoverflow! :D
 
Embedded systems programming for a dildo. I wonder how that line of work is..
 
... no comment
 
Lots of JMPs.
 
user895378
The integration testing is probably awesome
 
2:51 AM
@rdlowrey We need a control group.
 
user895378
lol this is way more fun than php chat is supposed to be
 
While (Happy = true)
{
Jumplikecrazyincircle!:D
}
PHP is PHAT (P-H fat)
 
Well, I think I'll settle on Nonparsed, due to the closeness of it's semantic meaning.
Unparsed in XML, nonparsed in ... whatever I end up calling this mess.
 
nice.
 
Thanks to all for your phallic and non-phallic input.
 
2:54 AM
hello, newcommer
comer*
wtf
whatever
...
 
Ohai, guys. :)
 
lol
 
What's up?
 
lol, another guy!
not much u?
 
Not a lot. Usual programming before bed. ;)
 
2:55 AM
nice, met 2
me*
 
What'cha workin on?
 
just having fun in the C lang
im still learning (on my own...)
 
Sweet. C is cool.
 
hey, do you use sourceforge?
 
I have an account, but not usually. I use GoogleCode for SVN repositories. Versioning FTW
Why do you ask?
 
2:59 AM
i havent tried googlecode yet... i will soon, ... maybe. :P
 
LOL. Github is nice too.
 
just wondering to see software by other people
 
Should definitely check out github
 
Yeah, it's getting super popular these days.
 
yeah, ive seen it, its really good source distrib.
@ScottyC do know C?
 
3:03 AM
Very little. I studied Object-C for Apple Computers a while back, which is based off the C language. So I know some of the basics.
 
me 2, i only have a basic knowledge.. :(
so what is exactly the Diff between obj-C and C
 
Objective-C is an Apple specific language that powers most of their applications, collectively referred to as Cocoa. If I understand it right, it's basically C, but with an object oriented approach.
 
kind of like a C# Mac STYLE! :D ???
 
Probably. I've never worked with C# before.
 
do u know Batch programming?
 
3:12 AM
Nope. I know Bash though.
The war of operating systems rages on. :P
 
i know tiny bit of bash, from linux and Mac
I've tried couple versions of Linux, I have a Mac
And a Pc with WIndows
 
What Linux distros have you tried?
 
trisquel, openSUSE, Ubuntu (and lubuntu, xubuntu,.. basically the same), LinuxMint
,...
r u a Linux user?
 
Not yet. But one of my neighbors says he has an older computer he'd give me. I'm thinking of putting Ubuntu on it. Especially if it has WindowsXP currently. Yuck.
I've had two XP computers. Didn't like either of them. LOL
 
Lol, dont like Xp eh...
why?
BTW, good Idea for the old pc
 
3:19 AM
My dad has a Mac, which I currently use all the time. Coming from that to XP, it just feels old. Like almost prehistoric.
 
Nice! :D
true. totally.
 
Plus I'm a Unix fanboy 100%
 
I actually like Mac, Windows, Linux, BUT, It REALLY depends on what I want to do.
 
It's undeniable that Windows has its benefits for some specific things. Unfortunate, but true.
 
Mac is the best for Multimedia
i think...
 
3:22 AM
Probably. Especially the newer Macs.
 
3:34 AM
This is a nice chat.
 
@ScottyC Yep, for the most part nice people and good advice
 
I was referring to the design and functionality mostly, but that too. xD
 
Ah, yes that is definitely nice
I don't like most web based chats but SO got that one right
 
StackOverflow FTW!
 
They did. Nice clean design, and fairly fast updating.
 
3:37 AM
@ScottyC The really cool thing is that it is basically just AJAX
 
I can see that. jquery FTW
 
Javascript? :) yay
 
Yeah, JavaScript. Same thing-ish. ;)
 
hahaha...
:)
 
My current project happens to be a web chat.
 
3:39 AM
OMG, Its TOTALLY AWESOME!
 
don't mind the web-inspector/console at the bottom. I have that open a lot.
Thank ya. :D
 
me too..
Yeah, Im a almost newb for webdev.
like Get Smart :D
 
It's a fun field to get into. Easy to learn.
Gotta split guys.
 
?
 
Have a good night, yo. xD
 
3:50 AM
Bye :P
 
4:02 AM
@ScottyC Awesome...Totally...Now I wanna make a web chat too :)
 
4:34 AM
I just installed node.js
 
4:46 AM
So I get the for a question. which means a 1000 views. and yet 1 up vote. :|
1
Q: MySQL Curdate() vs now()

Omeid HeratWhat is diffrance between MySQL Curdate() and Now() ?

 
user895378
@OmeidHerat Fixed diffrance --> difference and +1'd :)
 
@rdlowrey haha, thanks. my english sucks. admittedly.
and did you check this:
8 hours ago, by Chris
http://html9responsiveboilerstrapjs.com/
 
user895378
@OmeidHerat no problem -- I decided to go after the editing/reviewing , so I'm looking for editing opportunities.
 
user895378
@OmeidHerat yes, pretty funny :)
 
fair enough.
haha, I seriously lol'ed.
 
4:54 AM
Haha, so did I
 
the lymphnode js shawarma module
 
> IE6 Mobile Blackberry Wi-Fi Commodore64 KitchenAid Caveman extended fingernails toejam 2.0
haha.
 
Hahaha, I was just gonna copypasta that one too
I'm still lolling
 
haha, same here.
 
5:18 AM
Holy mother of a crap code the H9RBS.js actually makes gedit and few other editors crash :D
 
5:35 AM
@OmeidHerat So then what other editor do you suggest?
 

« first day (572 days earlier)      last day (4362 days later) »