Open Side Menu Go to the Top

08-14-2011 , 01:05 AM
If you're looking for a mac to dabble in iOS development but you don't want to spend a lot of money, go for a Mini. The newest generation Mac Mini is like $570 on Amazon and is more than enough machine. It has a bonus of being tiny and silent and fitting on your current desk alongside your primary machine without getting in the way.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
08-14-2011 , 02:21 AM
Quote:
Originally Posted by daveT
Then either you got lucky or the Genius Bar is only for people who are extremely unlucky. Not sure what you mean by catastrophic though. Every non-virus failure I ever seen on a PC has been HD or MoBo sparks, which appears to be a manufacturer failure, not an OS failure.
I mean things like data being irrecoverable or problems that require wiping your OS and starting from scratch again.

I don't consider things like hardware failures to be the OS' fault on either Macs or PCs.

I don't think its reasonable to assume that the Genius Bar is dealing with mostly catastrophic failures, but I'm sure they get some. I would never claim that Macs are perfect and don't fail.

Quote:
Originally Posted by daveT
My friend had Leopard, and his issues were very common and OS~based. My experiences with Mac ends at G3, G4, G5, so I don't know how things have changed since the conversion to Intel. I only know that those computers were painful to use, so I pretty much swore off Macs after that. At least I kept my senses and didn't buy an iPad or Air.
I came along right after the switch to Intel so I don't know what Macs were like before that. I'm not sure what you mean about the iPad or Air. I don't see myself getting an iPad but almost everyone I know that has one loves it. I also had an early Air and it was perfect for what it was (a small portable laptop). I've heard really good things about the newest Airs and it seems likely that in a year or so I'll buy one and use it as my primary dev machine.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 03:49 AM
Quote:
Originally Posted by jjshabado
I've never had a Mac fail in a catastrophic way (like I have with Windows),
LOL to paraphrase: "I've never had a piece of hardware fail with company A, but with company B the software fails all the time!"

Quote:
Originally Posted by myNameIsInga
I will never by anything from that company, they have the worst customer support in history. Most people who by from them seem to be very satisfied, but when you have problems with their stuff you are treated like ****. I will never by anything from a company that treats their customers as badly as they do.
This is ridiculous. I work for Dell, so I'm biased, and I've had nothing but A++ would deal with again experiences with Apple's customer service. Have had awesome support experiences with my iPhone, iPad, and iPhone accessory support needs. Seriously, they are good.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 04:00 AM
Quote:
Originally Posted by DavidFongs
LOL to ignore what you wrote and rewrite it in my own dumb way: "I've never had a piece of hardware fail with company A, but with company B the software fails all the time!"
FYP.

Quote:
Originally Posted by jjshabado
I mean things like data being irrecoverable or problems that require wiping your OS and starting from scratch again.

I don't consider things like hardware failures to be the OS' fault on either Macs or PCs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 04:02 AM
I'm glad this forum is picking up a bit. It was getting kind of slow for awhile.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 05:06 AM
Quote:
Originally Posted by DavidFongs
This is ridiculous. I work for Dell, so I'm biased, and I've had nothing but A++ would deal with again experiences with Apple's customer service. Have had awesome support experiences with my iPhone, iPad, and iPhone accessory support needs. Seriously, they are good.
I wonder to what extent how good people think they are, depends on what country you live in, because allthough my sisters experiences have much to do with it. Its not only that. For a while there were a number of media reports on people having very bad experinces when their products failed. But as I acknowledged before, my reaction is prob a bit of an over reaction.

In a sense its sad that the only real competitor to microsoft is another company behaving in much the same way

Mvh
Inga
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 05:19 AM
I have to say, over the past few years, my view apple as a company has gone down hill. I love their products, but I do think that they are becoming a bit too pushy and not really caring about their customers.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 05:12 PM
Anyone know how when doing something like a while loop in php and separating the output with a comma or something that I can have the last output not have a comma?

So say I have:

[PHP]
while ($row = db_fetch_array($query)) {

$html =' test '.$row.', ';
print $html;

}[/PHP]

This would output something like test 1, test 2, test 3,

I cannot figure out how I would do this without having the "," after test 3. Any thoughts?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 05:39 PM
I usually do something like:

[PHP]
$out = "";
while ($row = db_fetch_array($query))
{
$out .=' test '.$row.', ';
}
$out = substr($out, 0, strlen($out)-2);
print $out;
[/PHP]

that is: build up all the output in a variable during the loop, once complete chop off the final two characters which should be ", " then print it in one shot.

Also not at all sure about this, but IIRC I read somewhere print is slow, so it's nearly always better to assemble a larger chunk of output then print it in one go rhater than many small print commands in a loop.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 07:31 PM
Thank you, that seems to be easy enough. I had never heard of the issue with print, but good to know. I am usually printing it outside of the loop anyway, but now I will look out for that.

Also, I have never quite understood why/when you put the '.' in front of the "=" like you did. Is it only when you have multiple outputs to concatenate them together?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-14-2011 , 08:43 PM
a .= b is the same as a = a . b

i don't know which ones php has but this is a common idiom: +=, -=, *=, etc.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 06:33 AM
Quote:
Originally Posted by _dave_
I usually do something like:

[PHP]
$out = "";
while ($row = db_fetch_array($query))
{
$out .=' test '.$row.', ';
}
$out = substr($out, 0, strlen($out)-2);
print $out;
[/PHP]

that is: build up all the output in a variable during the loop, once complete chop off the final two characters which should be ", " then print it in one shot.

Also not at all sure about this, but IIRC I read somewhere print is slow, so it's nearly always better to assemble a larger chunk of output then print it in one go rhater than many small print commands in a loop.
you better check that $out has a length > 0 or you'll get an exception here. This could easily be the case if your query returned 0 rows
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 06:37 AM
I haven't had any major issues with Windows in several years, it's been pretty solid since XP imo.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 06:41 AM
Ya, Vista was a dream...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 06:47 AM
Quote:
Originally Posted by Jibninjas
Anyone know how when doing something like a while loop in php and separating the output with a comma or something that I can have the last output not have a comma?

So say I have:

[PHP]
while ($row = db_fetch_array($query)) {

$html =' test '.$row.', ';
print $html;

}[/PHP]

This would output something like test 1, test 2, test 3,

I cannot figure out how I would do this without having the "," after test 3. Any thoughts?

[PHP]
$html = array();
while ($row = db_fetch_array($query)) {

$html[] = ' test '.$row;

}
print join(',',$html);

[/PHP]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 08:21 AM
Quote:
Originally Posted by kerowo
Ya, Vista was a dream...
Lol. This.

Although to be fair, XP was pretty good. Of course, since it was book-ended by ME and Vista I don't give Microsoft much credit for it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 09:48 AM
Quote:
Originally Posted by Zurvan
[PHP]
$html = array();
while ($row = db_fetch_array($query)) {

$html[] = ' test '.$row;

}
print join(',',$html);

[/PHP]
I'm betting that's the "right" way to do it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 07:07 PM
Quote:
Originally Posted by kerowo
Ya, Vista was a dream...
I've been running Vista at home on a desktop that I've had for several years now and never had problems.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 08:46 PM
Yeah that looks much better
I should have noted it in my post, but I didn't do any testing and just googled "php trim last character off a string", and "translated" the technique I use normally in ahk, a language without proper arrays and also where trimming a zero length string is no problem!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-15-2011 , 09:00 PM
Say what you want about php but theres always a cool way to do stuff with it. What other language has a built in levenshtein function?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-16-2011 , 03:44 AM
PHP's haphazard, irregular, randomly constructed library is one of its demerits.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-16-2011 , 09:13 AM
My principal complaint with php is that it insists upon itself
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-16-2011 , 01:15 PM
mac users, is it still true that there is no way to maximize a window? and is apple still trying to sell this as a "feature"? or did they finally give in and implement maximize?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-16-2011 , 02:03 PM
The biggest problem with Java are the people that have been convinced that proper Java requires every class to have an interface, all functions to be less than 5 lines long, and all classes to be less than 7 functions.

I'm working on an Open Source Java project and figuring out the logic for even fairly simple things involves looking through 5 functions and 10 files. I swear to God there are private methods that are only one line long and just set an instance variable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-16-2011 , 02:15 PM
Quote:
Originally Posted by jjshabado
The biggest problem with Java are the people that have been convinced that proper Java requires every class to have an interface, all functions to be less than 5 lines long, and all classes to be less than 7 functions.

I'm working on an Open Source Java project and figuring out the logic for even fairly simple things involves looking through 5 functions and 10 files. I swear to God there are private methods that are only one line long and just set an instance variable.
this is a pretty strange complaint unless you aren't working with a decent IDE. Code that is too granular is a far less serious mistake than code that isn't granular enough. If you are using Eclipse, the type of searching you are talking about just involves hitting F3 a few times. Of course, the code in question might have a poorly designed class architecture, but this issue is orthogonal to the philosophy of keeping methods and classes short.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m