« first day (643 days earlier)      last day (4295 days later) » 

9:05 PM
any1 here?
 
What is the easiest way to use an old computer as a php developing environment? It can run old Linuxes but apt-get won't work so I can't install PHP. Further, my computer is so old that newer Linuxes than Ubuntu 9.10 won't work.
 
9:23 PM
install from dvd, add a nic
 
@JaakkoSeppälä install freebsd from booy-only cd , with minimal setup
 
also a good idea
 
setting Ubuntu ( which is a desktop distro ) is a pretty horrible idea
 
user895378
I have had more hardware mysteriously die in the last week than I have in 20 years of using computers.
 
@rdlowrey not enough tanning, the gods be angry!
 
user895378
9:27 PM
Apparently.
 
Tanning causes static buildup.
 
user895378
It's so frustrating to have to waste an entire day fixing problems like that and not be able to get any real work accomplished.
 
That's why nerds are pasty.
 
@rdlowrey that is real work
 
user895378
rephrase: not be able to write any code
 
9:29 PM
OK, for a second I thought the word-spacing trick broke IE8.
Turns out it was my HTML5 markup. Forgot to include modernizr.
And of course IE8 doesn't support last-child. So the last item in a container doesn't get its margin removed like it should and the layout breaks. :P
I bet it works perfectly in IE9. But I don't have Win7 so can't test it.
The only reason I have XP is that i've got a decade old install disk and a VM.
Why is Bill Gates in the top 10 richest people on Earth when he makes such shit?
 
@GordonM He doesn't. His company does.
The products he actually wrote code for were probably really good for the time.
 
9:44 PM
@GordonM isn't he #3?
 
@orourkek That's in the top 10 :)
 
#2 apparently
 
Can anyone give me a link to a good way to select a specific row and column in sql? My question what is wrong with my code isn't getting very many answers ont it.
 
@SpencerMay depends on your database api of choice
 
Balls, will just have to hack it with jquery or something.
 
9:49 PM
$login = mysql_query("SELECT * FROM Users
WHERE Username='$usernameinput'");

while($row = mysql_fetch_assoc($result))
{
$matchpassword = $row['Password'];
}
}
thats my method
 
bad idea
 
ik sql injection
 
do you know bobby tables?
 
but I don't know what else to do
no
im new to sql
 
prepared statement
has nothing to do with sql
 
9:50 PM
first of all
 
oh what is it?
 
@SpencerMay Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
Yay more work for me...thanks tho
 
but first hack your database so that you learn from your mistake
 
that sent me to wikipedia....
 
9:52 PM
username="'';DROP TABLE Users;"
 
@SpencerMay Well there is no reason to learn the mysql_* way. It's already being deprecated and hasn't been recommended for many years
 
try it
 
@GordonM that's always a recipe for disaster...
@jami geez don't make him drop the table...
 
Ok I'll learn a new way what should I search google for for a good tutorial?
 
@orourkek I'm keeping it all in conditional comments so only IE users get it. If you're an IE user you should be used to disasters anyway
 
9:53 PM
drop it liike its hot
 
MySQLi?
 
@SpencerMay most people here would recommend PDO over MySqli
 
chrome
ok thank you.
 
@GordonM true enough, I dunno how those people do it every day
 
@GordonM I was doing a lot of HTML when IE 7 came out. Was so happy. Consider yourself fortunate to have IE 8.
It is a gift, my friend.
@rdlowrey By the way, I'll leave the testing of the HTTP stream to you.
 
user895378
10:10 PM
@LeviMorrison no problem. I was confused when I tried to run the tests and they would pause for like 5 seconds halfway through. Then I literally lol'd when I saw that the test case was contacting cs.byu.edu :)
 
user895378
It's taken me quite a while to become proficient testing things like that, so I understand.
 
Is there a current way to conditionally reverse an operator (like ">"), without using eval() or call_user_func()?
I'd rather not have to rewrite this block of code...
 
reverse?
> to < ?
 
flip the logic, e.g. > becomes <
"reverse" was not the best word to chose
 
(y > x) => (!(y > x))
 
10:14 PM
Sort of, but not really. I think I'm stuck rewriting this section. I should have just thought about this before I got this far in...
 
sort of but not really ...
 
user895378
@LeviMorrison AND I generally like writing tests for other people's code if it's something I plan to use because it forces me to understand how it works and I get smarter.
 
@jami You answered my question, but it was a poorly worded question
Under one condition, the for loop would have to go up, and in the other it would go down
 
I just had a great idea right as Gordon faceplanted :/
 
10:17 PM
You can't do .class:last-child, .class.last-child in IE
@orourkek Don't worry, it wasn't because of you
 
@GordonM does it skip that line altogether?
because of the pseudo-class?
 
You have to do a .class:last-child selector, then you have to copy and paste the rules you want to apply to that selector to another .class.last-child selector. Because IE will refuse to acknowledge the existance of .class.last-child otherwise.
If they're on different lines but in the same declaration even then it doesn't work. and yes, I tried both possible orders.
 
@GordonM geez
hopefully it's a short selector :]
 
Getting verrrrry close to saying "Sod it, IE9 only". but I cant test in IE9. Besides I intend to use the site as an online CV eventually and I don't want potential employers landing on a page that doesn't work for them. Even if it's their own fault for using a fred flintstone browser.
Say what you will about PHP, at least you don't have to be compatible with 10 year old versions of that.
Usually.
 
"usually" being the operative word
 
10:24 PM
@GordonM i know people who still try to write code that'll run in php 4 :P
 
Though with modernizr and my little jquery shim for faking last-child it actually works quite well in IE8 all told.
The pixel error on the rightmost column is only ever 1 pixel, if there's any error at all
Webkit and Opera seem to acumilate several pixels of error.
FF is the only browser to get the layout pixel perfect though. Which is annoying.
I'm guessing IE and FF do subpixel rendering whereas Webkit and Opera just round down.
 
i haven't seen ie do subpixel rendering...though i haven't tried in 9
but 8 and earlier it didn't seem to
ok...heading home
 
@cHao Well maybe not true subpixel, but it's doing something to get closer to the correct result than webkit/opera. Rounding down some columns and rounding up others to get a total that matches the container or something.
Looks like they've implemented subpixels but it's still only in nightlies. Guess it'll take a while to filter down to Chrome/safari builds.
 
/me checks which room he joined
 

« first day (643 days earlier)      last day (4295 days later) »