« first day (675 days earlier)      last day (4273 days later) » 

10:00 PM
@tubaguy50035 yes, what is the problem...
 
how does that word apply -- are you a counter-strike player?
 
I don't think I have it setup correctly, and would like some one to take a look at my phpunit.xml
4
Q: Setup PHPUnit with Zend Test

tubaguy50035I'm trying to start using PHPUnit with Zend Test for my Zend Framework application. I'm able to run the PHPUnit command from command line phpunit --configuration phpunit.xml. I've tried following this tutorial which is based off of Matthew Weier O'Phinney's blog post. I'm getting an error when...

the one in the answer
The reason I think I don't have it setup correctly is because I can't get my bootstrap from my controller/action: stackoverflow.com/questions/12063337/…
 
morning
 
technically a morning :)
 
10:08 PM
@webarto I'm wasted so it's morning for me :)
 
@ircmaxell @dhorrigan the (debatable) assumption here is that the app object has been provided already through a setter.
 
@PeeHaa my drinking team has a programming problem ... and girl you drink a lot :)
 
@webarto I had a nice dinner drinking with my colleagues because it is my last week on the job
 
@PeeHaa today started my new repwhoring binge
217 rep so far today
@PeeHaa y u quit
 
so these guys are "experimenting" on a production code...
 
10:11 PM
@Lusitanian You make me proud ;)
 
@PeeHaa drinking dinner, yay :) Y U NO WORK!?
 
@webarto I experiment in production code sometimes.... the pressure makes you try harder
:)
 
:( Now I have to type a wasted reply:
@PeeHaa, can you explain why this is the correct way? I've solved this exact solution with a factory class, which stores an instance of the DB class. The database is then queried like this: AppName::Database()->query(). Can you indicate what the upsides of your approach are, especially compared to the (static) Factory pattern? — creativedutchmen 5 hours ago
I'm way too lazy for this shit right now :(
 
so don't deal with it
why are you quitting? did you get a new job?
 
@Lusitanian I will deal with it just need to get something to drink to go with it first
@Lusitanian yup new job
 
10:14 PM
nice
 
Have been "stuck" on that job for 5 years
 
$pay++;
 
Pay++ indeed
It was / is a nice job though. Just not enough chances for me to get any further there
 
Equivalent experience to a Bachelor's degree based on 3 years of work experience for every 1 year of education
Let me fix that for you Amazon.
Equivalent experience to a Bachelor's degree based on 4 weeks of work experience for every one year of education.
 
I'd actually say it is 1 year of work experience to 1 year of education unless you had a crappy job or a phenomenal school.
 
10:18 PM
That's probably reasonable
 
@Chris let's just say I edited files on production via FTP in previous years :D
 
LOL
not even sftp
 
FileZilla man, LOL :D
 
i'm hoping they use vcs now
@PeeHaa what language are you going to develop in now
 
@Lusitanian PHP as I do now. It's just that I can do things more my way :)
 
10:21 PM
that's good
 
@webarto Writing 5 lines comment > mysql_real_escape_string()? Seriously? =D
 
0
Q: How do you insert something into mysql using pdo using WHERE

David BigaSo I am trying to change the status of something when values are met using WHERE Code: $insertstatus = $DBH->prepare("INSERT INTO csvdata (status) VALUES ('$status') WHERE username = '".$username."'"); $insertstatus->execute(); Not working. If you could give me a hand. Tha...

wtf
okay now i'm leaving
 
if ((AnnualSalary * 5) < StudentLoanBalance) { Wrists::slice('vertically'); }
6
 
hahahahahahahahaha
@hookman huh, what, where? :D haha haha
 
-2
A: MySQL query not executing properly PHP

RaidenaceHere you go: <?php $id = $_GET['id']; $query = "SELECT doc FROM docs WHERE id = '$id';"; $result= mysql_query($query); $row = mysql_fetch_row($result); echo $row['doc']; ?> But as suggested, try to port this to mysqli_* family of functions as mysql_* functions...

 
10:31 PM
@hookman read it, thanks :)
 
Wow I typed all this with typos (I think):
@creativedutchmen Where are you going to call that method from? From inside another class? If your answer is going to be "yes" I'm really wondering how you are going to test that class. You cannot mock out the database class anymore because you have tightly coupled the database class to the paginator class and it's hard to tell you are using the database class (hidden dependencies). Also note that you have basically created another global method right now. — PeeHaa 5 mins ago
 
@webarto He approved my edit, ftw!
 
@Lusitanian Hey
So, remember yesterday the errors I got by upgrading to PHP 5.4?
 
PHP needs functions for a lot of the binary operators.
Consider === and ==. Some functions take a boolean value that determines whether something should be compared with strict or not.
Those functions sometimes have an equivalent function that allows a user-defined behavior.
 
Apparently the stuff I was getting was just notices. I assumed they were errors because that's all I had seen.
@LeviMorrison Sorry, are you talking to me?
 
10:39 PM
@daviesgeek no.
 
@LeviMorrison Okay. :-)
The fix was to turn off error_reporting in PHP.ini for everything not errors.
 
@daviesgeek That doesn't sound like a fix, but rather a hack
 
@Lusitanian Anyhow, I thank you for all your time and work spent assisting me. Trust me, it went to a worthy cause.
@PeeHaa Yes, but the notices I was getting were about undefined variables and such
 
// we end up with:
array_search ( mixed $needle , array $haystack [, bool $strict = false ] );
array_usearch ( mixed $needle , array $haystack , callable $comparison_function);

// if we could use operators as functions we'd only need the latter:
array_search($value, $haystack, '===');
array_search($value, $haystack, '==');
array_search($value, $haystack, function($a, $b) {
    return $a->id == $b->id;
};
 
@daviesgeek Oh. Only undefined variables. In that case...
 
10:42 PM
Actually I think 90% of it was undefined vars. Which really doesn't matter...
Most of the notices where it had a problem was a statement like if (!$variable){}
 
Of course it doesn't matter sure. Damn PHP only bitching about stuff that can be fixed. Fuck you PHP!
 
The only other one was:
on-static method DB::getConnection() should not be called statically,
 
Why not just fix the errors?
 
Please stop or I'm going to stop being sarcastic and go mad
:)
 
@cspray As mentioned before, 90% of the errors were undefined variables. The other one I mentioned above. I'll probably fix that one.
@PeeHaa :-)
 
@daviesgeek How many errors are you generating?
 
@PeeHaa Just gonna ask you what cv-pls meant. Then I noticed the starred message.
 
@daviesgeek :)
 
@NikiC @ircmaxell @rdlowrey @PeeHaa @salathe What do you guys think about adding the ability to use comparison operators as functions? (see chat.stackoverflow.com/transcript/message/5029106#5029106).
 
@cspray 70 lines of errors. Which I think is about 30+ notices.
 
10:47 PM
And if this already possible, why didn't I already know about it?
WHY DIDN'T SOMEBODY TELL ME?
 
@hookman I approved it :)
 
@PeeHaa What's the diff between and ?
 
From gist in link: "cv-ring is just a 'funny name' we give to the process and cv-pls is simply an in-chat tag that communicates "Hey, this question may be of inferior quality."
 
@Chris What do you mean?
 
@cspray Yah. I saw that...but I wasn't sure exactly what that meant...
what does "the process" refer to?
Using the tag?
 
10:50 PM
@daviesgeek Yes, using the tag. It is a group of people who know about and actively use the tag
 
@cspray Ah. I see.
What exactly does it stand for (if anything)?
 
@LeviMorrison Let me get some sleep first :) I'll look into the transcript tomorrow when I'm sober again :P
 
closevote please
and closevote ring
 
@daviesgeek close-vote ring.
 
Nite all
 
10:51 PM
Haha! Duh!
 
@PeeHaa Good night
Clearly I should update my gist.
 
I think I need to bring that over to Ask Different. For sure.
@cspray me thinks so..
 
@hookman I approved your edit. Anyone with the permissions can approve edits, the OP didn't have anything to do with it. You said "He approved my edit", I wanted you to know that they guy, in fact, did not, and probably would not have :D
And we all used deprecated functions late in to the night, and we laughed and laughed and laughed, drunk on our power and no small amount of wine. Then, things got awkward, fast.
 
@cspray Are you going to edit the gist? I just linked to it over in the AD chatroom...
 
@daviesgeek Yes, at some point I will. But the link should stay the same
 
10:56 PM
@cspray Right. I figured that. Just wondering if you were going to edit it.
 
@Chris woops, I didn't know that. How dare he! Seriously, is it that hard to type at least mysql_real_escape_string?
 
@daviesgeek Yes, at some point. To be honest I haven't looked at the gist in months. I'd need to read back over it, see what's missing and figure out how I want to add it in. It likely won't be done until later tonight at the earliest
Also burritos
 
@cspray NP. Just a question, no rush
 
@cspray With socks
 
@Chris I prefer cheese and taco sauce. Socks are just so...cottony
 
11:08 PM
@LeviMorrison AS functions?
 
@Lusitanian Looked into VPS hosting. Main problem with that is the limitations on RAM, HD space and bandwidth. I think I'm gonna stick with shared hosting, as I haven't had any problems until recently, and since then, nothing has happened.
 
@daviesgeek big mistake
 
Does anyone have any PHP-specific thoughts on domain objects (w/ data mapper pattern) having data from multiple tables? More specifically, how/where to handle the logic of sparating those fields when saving the data (or creating)
 
@ircmaxell Why?
 
@daviesgeek security, stability, accountability, performance, scalability, flexibility, etc
the first should be enough
 
11:14 PM
@LeviMorrison I think it's about as useful as array_udelete_key(). *ponders* Why are folks so interested in doing stupid things?…
 
@ircmaxell Why isn't it secure enough?
 
@daviesgeek I studied literally thousands of attacks and defacements. At least 80% of them happened because the attacker broke another site on the same server and was able to compromise everything
 
@ircmaxell Ah. I see...however, 1) I don't see that a VPS is going to be better. Yes it may be more secure, but the bandwidth/HD cap is not enough... 2) Dedicated hosting is waaay too expensive for a high school student without a steady job. :-)
 
You basically have anywhere from 1 to a few dozen other developers to rely on - if they're not as (or more) secure than you are, well then boom goes the dynamite
 
@daviesgeek huh? what are you running that you're hitting bandwidth caps on a shared server...?
 
11:19 PM
@orourkek Hmm...that's true.
 
@orourkek dozen? try thousand...
 
@ircmaxell No. I'm not hitting bandwidth caps, but I may be using part of the site for video files.
 
@daviesgeek 10gb for $20 per month vpslink.com/vps-hosting
 
10GB HD space isn't enough for even one good sized video file. 250GB bandwidth I guess actually would be okay...
@ircmaxell Yeah. I think I pay about $5 a month.
 
@ircmaxell lol @ "CentOS OS"
 
11:21 PM
@ircmaxell I was actually looking at: vpscolo.com
 
HA! $5 per month for how much space?
 
@ircmaxell 10GB HD, 250GB bandwidth, 256MB RAM
 
Or if you want to, just spin up an E2C instance and use that
 
darn, you guys are making me rethink my hosting solutions :/
 
@ircmaxell Yah, but how much does that cost?
 
11:23 PM
@daviesgeek not all that much, but its variable pricing based on time/data
 
@daviesgeek starting at $0.08 per hour: aws.amazon.com/ec2/#pricing
 
@orourkek Okay...I see..
@ircmaxell $50 a month?
 
Every time I think about going to ec2 full time, I just imagine getting HackerNews'd, Fark'd, or Reddit'd - instant spike in the bill
 
@orourkek Yah. That's what I don't want, since more traffic to my site doesn't necessarily mean more $$
So EC2 is out of the question I think.
However, you may be able to convince me to switch to a VPS...just maybe...
And looking at dedicated hosting, rackspace starts at $199/month for managed hosting...
 
our AWS bill so far this month just crept above $2k
 
11:29 PM
nah, not trying to convince you of anything. Make up your own mind. Just know that it's my firm belief that shared hosting is all but useless, and actually causes more problems than it solves...
 
@orourkek What are you hosting on it?
 
@ircmaxell Not bad...I did forget to take a look at SB. However, $99 is still waay too much for me. :-)
 
@daviesgeek sites with many hundreds of thousands of visitors per month
 
11:31 PM
@orourkek Oh. I don't get that much traffic...
 
most of it comes from ec2 instances and EBS requests
 
In the last month, I've had all of 30 visitors.
 
@ircmaxell Sure, what's the difference between $a == $b and ==($a, $b)?
 
95 pageviews and 12 unique visitors.
 
@LeviMorrison one is straight forward, the other is :-P
 
11:33 PM
@ircmaxell But the one can be used as a callable.
 
the day of my last blog post I had 30 visitors in the first 3 minutes :-P
@LeviMorrison Ohhh. You're saying... I see
interesting thought...
 
I was writing my data structures and was like . . . this ==, ===, and callback madness could be simplified.
We just have to be able to have built-in equivalents of ==, ===, etc.
I guess TECHNICALLY I could define them in user-land, but who would?
lessThan($a, $b) {
    return $a < $b;
}
I don't need them to work inline like <($a, $b), I just want them to be callable like call_user_func($fn, $a, $b).
 
@ircmaxell Nice. I got a post up that got 1K within a couple hours...
Until it got bumped by bigger sites writing about the same thing...
:-(
 
night
 
good night
 

« first day (675 days earlier)      last day (4273 days later) »