Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
So, yeah. this is the most beautiful thing I've ever seen. Video quality is becoming quite amazing these days, huh?
That gave me quite a startle, because just to the right of the Serenity trailer is my department's new HD reel. (Which, ironically, I can't watch here at work because the G5 in the back has yet to be connected to the network, and it's the only Mac in the entire office.)
Dear
GOD,
but watching video on the Powerbook is a dream. I can shrink a torrented video window to 1/2 size, and everything still looks perfectly legible.
I'm just blown away by the pretty -- the HD is a whole nother level.
Wow. Macs are super duper simple to add to a Windows network. Your techs must be really busy.
Unless it requires a new ethernet drop, that's a whole ballgame apart.
It requires getting official permission to add a non-Windows 2000 computer to the network. The level of red tape that goes on around here is...impressive.
In theory, I could go back there right now and plug it in myself in about three seconds, but I don't really feel like getting fired.
Can anyone help me with a PHP class thing?
I'd like to loop through the properties in a class -- automatically. Sort of like a foreach -- is that possible?
In case anyone's in the market, Apple.com has several refurbished iPod Mini's available for $169 here.
ita, I've never used classes in PHP, but they're discussed by a user here on the foreach page (search for 'scott at slerman dot net'):
[link]
HTH
Thanks, Eddie. But that user is paging through arrays of objects in user-defined classes -- I want to page through the properties in one given object.
ita, this?
// Using PHP 5's handy new reflection API
$class = new ReflectionClass('DO_User');
// Get all of DO_User's variable (or property) names
$properties = $class->getProperties();
// Loop through the properties
for ($i = 0; $i < count($properties); $i++) {
$name = $properties[$i]->getName();
if ($this->$name != '') {
// Add this to the where clause
$where[] = "`" . $name . "`='"
. mysql_escape_string($this->$name) . "'";
}
}
[link]
Figures. PHP 5. Yeah, I'm using 4.something. I'll just hard code it for now. But thanks!