KnightWRX
Apr 28, 09:42 AM
So, please don't take everything I typed and generalize it, because it's not for everyone.
I do understand where Dejo, Balamw and the others are coming from though. And frankly, they are probably better suited to help you than I am. I don't have a lot of experience with Objective-C and Cocoa, not like they do, having mostly come into it recently.
Back to the code, here is a photo of my connections (ignore canceBigtimer). What you say is true I don't know how NSTimer works entirely , just some parts, I realize that and it is one of the reason I postpone my timer for a future update (need to study it).
I have two timers, because, like I said.. I don't have full knowledge of timers. I know now that 1 timer is enough, even if I use two timers and start them at the same time, the log only shows 1 loop and the countdown in separate labels show e.g. 59 in one and 58 in another and so on.
Ok, how about we work on making 1 timer work then ? The code you posted is very complicated and I don't think it has to be this complicated. Going 1 timer would simplify this.
I see your Start Button is associated to 3 actions. Is this really what you want ? Let's simplify this. As an exercise, make 1 method, call it startTimer (like I did) and have only that action associated with your start button. From there, you can call the other methods yourself as needed.
Once you have modified the code in this way, post again what you have in full, what it is doing and what you think it should be doing. We'll go from there.
You mention my two global variables, It makes sense that the timer does not stop because the variables are outside the method that creates the timer. is that whats going on?
No, the variables are "fine" where they are. They would be better positionned in the @interface block and declared as instance variables, but implementation scope globals work too.
What you need to do however is reset those if you want your timer to start back at 0. Somewhere in your "stop/reset" code, there needs to be an initialization of those back to 0 :
seconds = 0;
minutes = 0;
If your Cancel button is what should reset it, then this should be right now in newActionTimer. But ideally, we'll get rid of that function when you simplify the code down to 1 timer.
Look at my NSLog outputs in my screenshot earlier. There's 3 methods there. updateLabel, cancelTimer, startTimer. This should have given you a big indication of how not complicated you should have made this.
If you want 3 buttons, start, reset, stop, you'd technically need 4 methods, as follows :
-(IBAction) startTimer: (id) sender;
-(IBAction) stopTimer: (id) sender;
-(IBAction) resetTimer: (id) sender;
-(void) updateLabel;
One to update the label as needed, one to start the timer, one to stop it and one to reset it.
Also, NSTimer is not your timer. The timer is what you are creating with ATimerViewController. You need to grasp this. NSTimer simply calls methods, in this case, it should be update label. That's about all it should be doing. Both the stop and reset methods should release the NSTimer object instance. startTimer should always create a new one. However, reset should be the one to set back seconds/minutes to 0.
I do understand where Dejo, Balamw and the others are coming from though. And frankly, they are probably better suited to help you than I am. I don't have a lot of experience with Objective-C and Cocoa, not like they do, having mostly come into it recently.
Back to the code, here is a photo of my connections (ignore canceBigtimer). What you say is true I don't know how NSTimer works entirely , just some parts, I realize that and it is one of the reason I postpone my timer for a future update (need to study it).
I have two timers, because, like I said.. I don't have full knowledge of timers. I know now that 1 timer is enough, even if I use two timers and start them at the same time, the log only shows 1 loop and the countdown in separate labels show e.g. 59 in one and 58 in another and so on.
Ok, how about we work on making 1 timer work then ? The code you posted is very complicated and I don't think it has to be this complicated. Going 1 timer would simplify this.
I see your Start Button is associated to 3 actions. Is this really what you want ? Let's simplify this. As an exercise, make 1 method, call it startTimer (like I did) and have only that action associated with your start button. From there, you can call the other methods yourself as needed.
Once you have modified the code in this way, post again what you have in full, what it is doing and what you think it should be doing. We'll go from there.
You mention my two global variables, It makes sense that the timer does not stop because the variables are outside the method that creates the timer. is that whats going on?
No, the variables are "fine" where they are. They would be better positionned in the @interface block and declared as instance variables, but implementation scope globals work too.
What you need to do however is reset those if you want your timer to start back at 0. Somewhere in your "stop/reset" code, there needs to be an initialization of those back to 0 :
seconds = 0;
minutes = 0;
If your Cancel button is what should reset it, then this should be right now in newActionTimer. But ideally, we'll get rid of that function when you simplify the code down to 1 timer.
Look at my NSLog outputs in my screenshot earlier. There's 3 methods there. updateLabel, cancelTimer, startTimer. This should have given you a big indication of how not complicated you should have made this.
If you want 3 buttons, start, reset, stop, you'd technically need 4 methods, as follows :
-(IBAction) startTimer: (id) sender;
-(IBAction) stopTimer: (id) sender;
-(IBAction) resetTimer: (id) sender;
-(void) updateLabel;
One to update the label as needed, one to start the timer, one to stop it and one to reset it.
Also, NSTimer is not your timer. The timer is what you are creating with ATimerViewController. You need to grasp this. NSTimer simply calls methods, in this case, it should be update label. That's about all it should be doing. Both the stop and reset methods should release the NSTimer object instance. startTimer should always create a new one. However, reset should be the one to set back seconds/minutes to 0.
lordonuthin
May 3, 09:35 PM
well it's not looking very good. it should have posted a bigadv unit by now. and my number of gpu units are looking lower - which means that something crashed. man it only had 12 hours left on the bigadv unit when i left, and now nothing. it was folding way at around 34:30 per frame inside a VM.
Bummer :( that's aggravating...
Bummer :( that's aggravating...
iJohnHenry
Apr 13, 05:16 PM
It was so obvious that the little girl was carrying a weapon of mass destruction.
Yes, she slayed me with cute.
Poor child. Now she'll need counselling.
Yes, she slayed me with cute.
Poor child. Now she'll need counselling.
Surf Monkey
Mar 17, 12:50 AM
Nice. Too bad some kid is going to have $300 docked from his pay...
j-huskisson
Sep 12, 07:43 AM
I just opened iTunes and it ask me if I wanted to update...
Mine's telling me i have the current version (6.0.5)
Mine's telling me i have the current version (6.0.5)
Geckotek
Jan 3, 07:55 AM
Or not. After all, it isn't like you can take your phone with you to Verizon. Many people aren't going to want to spend the money on an ETF because that's the money they would use for a new phone.
That said, after all these years there are probably enough folks already on Verizon that would jump for an iphone. Enough that it could get interesting in some areas. Just like it did with ATT who thought they could handle the load.
That's the whole point, if you can't take your phone with you, you'll just sell it. Selling an iPhone 4 right now will easily pay for the ETF and the cost of a new Verizon iPhone (assuming pricing is similar.)
That said, after all these years there are probably enough folks already on Verizon that would jump for an iphone. Enough that it could get interesting in some areas. Just like it did with ATT who thought they could handle the load.
That's the whole point, if you can't take your phone with you, you'll just sell it. Selling an iPhone 4 right now will easily pay for the ETF and the cost of a new Verizon iPhone (assuming pricing is similar.)
rtdgoldfish
Mar 23, 04:56 AM
So last night I was checking my email after work and my computer makes a weird beep. I realized that the sound is made by Connect360 when a connection is made to an Xbox. I opened the program and it says my 360 is connected and media is being shared with it. This means that whoever stole my 360 is still in range of my wireless network.
Got in my car with my laptop and found the range on my network is a bit larger than I had expected. About 8-10 houses on my block get at least some signal from my network
This morning at 5am, my 360 connected to the network again and I decided to take a walk around the neighboorhood to see who was awake. I found two houses within range of my network that had a blue glow in the window from a TV. When the 360 was disconnected from the network about 30 mins later, I walked back around and there was one house that no longer had the TV on.
I'm going to call the police department and talk to the officer that has been handling my case. I'm pretty sure I don't have enough information for them to get a search warrant but I'm getting more confident about actually getting my 360 back than I was three days ago.
Got in my car with my laptop and found the range on my network is a bit larger than I had expected. About 8-10 houses on my block get at least some signal from my network
This morning at 5am, my 360 connected to the network again and I decided to take a walk around the neighboorhood to see who was awake. I found two houses within range of my network that had a blue glow in the window from a TV. When the 360 was disconnected from the network about 30 mins later, I walked back around and there was one house that no longer had the TV on.
I'm going to call the police department and talk to the officer that has been handling my case. I'm pretty sure I don't have enough information for them to get a search warrant but I'm getting more confident about actually getting my 360 back than I was three days ago.
macEfan
Nov 24, 08:37 PM
store.apple.com is still near crawl levels. It appears you can shop now (the whole system has been sluggish for the past few hours), but at least the products and the deals pages are working. As FC said, the order review still does not work. My errors range from no errors to connection to database problems. Gotta love Thanksgiving!
No problems for me yet. yay I got a good price on an AP express!
No problems for me yet. yay I got a good price on an AP express!
63dot
Mar 4, 10:43 PM
Ironic that a western country with one of the highest levels of unionization, including public sector unions, and all the evil evil socialized stuff such as pensions, healthcare etc. has the highest growth rate, best unemployment rate and most balanced budget. Germany.
Kinda defeats your argument, fivepoint. Also, considering the level of unionization, Germany has in percentage points double the industrial production jobs that the US does. And all these companies are world leaders in their segments.
Americans are diluded if they think ultracon vulture capitalism will save them, it is exactly what got them into this mess to begin with.
Cheers,
Ahmed
What you are talking about is tested true economics where a healthy and well paid workforce lends to a stronger economy. With the large number of workers with income to burn, then the economy circulates monies and has a built in consumer base.
But take fivepoint's theory, which for a lack of better name, is laissez-faire economics and trickle down theory. On its face it makes sense to put the money into the hands of the educated and rich, and they will re-invest it back into society creating the most bang for the buck and the fastest pace of innovation possible. However, with human nature being that people (even rich people) want to hoard, then what we end up with is a stagnate economy with no turnover. Eight years of George W. Bush and his policies show this to be pretty obvious. Anybody who believes in the old trickle down theory is falling into the trap that it can work.
I don't think government intervention, to the point of government micromanagement is a good thing, but I don't think the liberals are out to make that their goal. We need to strike a balance where business can operate and make a profit, but at the same time have a government, though limited, who can play more like a referee looking out for the best interests of the people. And it's the people who have the responsibility to vote if they don't like the government that is in place.
America put in a lot of wet behind the ears tea party republicans, and this two year period is their time to shine while in the House. So far, they appear to be falling on their face. But I will give the GOP a chance and see if they can deliver on their promises and I will be willing to give them credit if they make headway yet fall short. We are in a tough economy.
But the last thing we need to do in this recession is to blow the horn of trickle down economics knowing it didn't work with 8 years of the GOP recently in the White House, and with a 12 year run mostly in the 1980s which hiked up the deficit and failed miserably in its chief election promise of reducing the national deficit and sustain a long term growth of the economy. Jimmy Carter's spending was the GOP's main talking point and when the GOP made Jimmy look like a miser, then they had to fall on diversion tactics like abortion, family values, and religion when they realized their #1 talking point was a failure in practice.
With so much confusion as to whether a republican is represented by a pro-business/big corporation plank or more of a small-government plank akin to some tea party politicians, I don't care what the House calls themselves as long as they get results. It's early yet but the GOP has started off this year in the world possible way.
Kinda defeats your argument, fivepoint. Also, considering the level of unionization, Germany has in percentage points double the industrial production jobs that the US does. And all these companies are world leaders in their segments.
Americans are diluded if they think ultracon vulture capitalism will save them, it is exactly what got them into this mess to begin with.
Cheers,
Ahmed
What you are talking about is tested true economics where a healthy and well paid workforce lends to a stronger economy. With the large number of workers with income to burn, then the economy circulates monies and has a built in consumer base.
But take fivepoint's theory, which for a lack of better name, is laissez-faire economics and trickle down theory. On its face it makes sense to put the money into the hands of the educated and rich, and they will re-invest it back into society creating the most bang for the buck and the fastest pace of innovation possible. However, with human nature being that people (even rich people) want to hoard, then what we end up with is a stagnate economy with no turnover. Eight years of George W. Bush and his policies show this to be pretty obvious. Anybody who believes in the old trickle down theory is falling into the trap that it can work.
I don't think government intervention, to the point of government micromanagement is a good thing, but I don't think the liberals are out to make that their goal. We need to strike a balance where business can operate and make a profit, but at the same time have a government, though limited, who can play more like a referee looking out for the best interests of the people. And it's the people who have the responsibility to vote if they don't like the government that is in place.
America put in a lot of wet behind the ears tea party republicans, and this two year period is their time to shine while in the House. So far, they appear to be falling on their face. But I will give the GOP a chance and see if they can deliver on their promises and I will be willing to give them credit if they make headway yet fall short. We are in a tough economy.
But the last thing we need to do in this recession is to blow the horn of trickle down economics knowing it didn't work with 8 years of the GOP recently in the White House, and with a 12 year run mostly in the 1980s which hiked up the deficit and failed miserably in its chief election promise of reducing the national deficit and sustain a long term growth of the economy. Jimmy Carter's spending was the GOP's main talking point and when the GOP made Jimmy look like a miser, then they had to fall on diversion tactics like abortion, family values, and religion when they realized their #1 talking point was a failure in practice.
With so much confusion as to whether a republican is represented by a pro-business/big corporation plank or more of a small-government plank akin to some tea party politicians, I don't care what the House calls themselves as long as they get results. It's early yet but the GOP has started off this year in the world possible way.
NAG
Jan 12, 08:40 PM
Thats a loaded demand since you already agreed with my later statement that they need to learn how to vet online sources like they do print sources. I can list off any number of magazines or whatnot that would do such things if given the chance, though. It isn't like gizmodo invented pranking, guys.
Aeolius
Oct 4, 09:16 AM
Yep, and the average US 'car' looks more like a tank to the rest of the world.
Actually, I do drive a tank of sorts; a 10-passenger van with a wheelchair lift.
Define your own boundaries, and call them normal. Nice.
I never said it was normal for the "rest of the world". I was simply stating what was normally considered a mansion in the US.
As for boundaries, if money was no object I'd be living on a self-sufficient seastead out in international waters.
Actually, I do drive a tank of sorts; a 10-passenger van with a wheelchair lift.
Define your own boundaries, and call them normal. Nice.
I never said it was normal for the "rest of the world". I was simply stating what was normally considered a mansion in the US.
As for boundaries, if money was no object I'd be living on a self-sufficient seastead out in international waters.
Lynxpoint
Apr 29, 05:13 PM
Sensible defaults. Usability before looks. The iOS scrollbars might look better but they remove usability. Same with the slider, it's not as intuitive.
Apple should not break intuitiveness and usability just to change some esthetics, especially if this is just change for the same of change.
I agree with you completely, but still a part of me always remembers that people don't necessarily like change thrust upon them. Sometimes change is for the better, but the effect is not immediate. I only say this because I have changed the scollbars on Snow Leopard to Lion-like ones as well as using the scroll reverser app, and I have found I prefer these changes and I really like the idea of the bars vanishing when not active.
Apple should not break intuitiveness and usability just to change some esthetics, especially if this is just change for the same of change.
I agree with you completely, but still a part of me always remembers that people don't necessarily like change thrust upon them. Sometimes change is for the better, but the effect is not immediate. I only say this because I have changed the scollbars on Snow Leopard to Lion-like ones as well as using the scroll reverser app, and I have found I prefer these changes and I really like the idea of the bars vanishing when not active.
flopticalcube
Apr 21, 11:44 AM
Don't think this is necessary in such a highly polarized forum but whatever, I shall ignore them.
gkarris
Oct 17, 10:55 AM
Actually, the porn industry has gone with Blu-Ray.
Where's this information?
I saw a special on 80's technologies and had Beta and VHS on there. The porn industry was really the one that finally tipped the scales (especially the rental of it).
Where's this information?
I saw a special on 80's technologies and had Beta and VHS on there. The porn industry was really the one that finally tipped the scales (especially the rental of it).
Evangelion
Aug 8, 04:03 AM
The Cinema Displays aren't for general consumers like most of you posting in this thread. They're for professionals who need even backlighting, excellent color accuracy, and a large viewing angle. That's why Apple charges a premium for them. If you don't care about these things get a Dell.
What makes you think that you can't get those features in a Dell? Do you have any facts?
What makes you think that you can't get those features in a Dell? Do you have any facts?
Rm.237
Apr 8, 01:01 PM
Perhaps! New Hardware is coming out (iMacs???) and the promo will be a buy a Mac get an iPad for $X.
Sure. Uh huh. Yeah right. :rolleyes:
Sure. Uh huh. Yeah right. :rolleyes:
jav6454
Apr 12, 11:55 PM
I think they missed the bomb in her hair. Why not do an X-RAY as well? God, what stupidity!
Chundles
Nov 16, 12:34 PM
please no page 1 vs page 2 comments... :)
Complicated mp3 avril lavigne
gregorsamsa
Jan 12, 06:29 PM
Well, if you haven't met any of these mindless droids, consider yourself lucky. I've met enough of them to be sufficiently spooked. I've got a couple of them on a forum I moderate; one has a link to Apple store in his signature and spends most of his time posting the most contrived lies about Windows you could imagine (how you cannot switch a PC on without being drowned in a barrage of viruses etc), and the rest of his time coercing PC users into switching. It's quite clear from his descriptions of Windows he hasn't touched a PC since circa 1996, and any assurances that Windows has come a long way in terms of stability and security since Win95 are met with a kind of "lalalalalalalala...." At one point he insisted that a Mac Mini G4 1.42GHz is much faster than any PC ever made. When faced with real life benchmark tests where a midrange PC blasted the Mini into oblivion, he maintained that it was due to poor knowledge of Mac optimization on the part of the developers (whom I know to be Mac enthusiasts who port the software to Windows). This is just one example, over the years I've stumbled across way too many to list here.
It's great that people are enthusiastic about products, and most Mac users are regular joes who are just that, but it is my personal opinion that there also exists a 'Church of Apple' with 'members' who are smug, patronizing, holier-than-thou, basking in the glory of some perceived exclusivity and enlightenment, borderline brainwashed lodge brothers with a special handshake. It sickens me to no end. Again, this is merely one man's opinion, I know you wouldn't agree so let's just leave it there.
Regarding Steve, you're darn tootin' I don't know him. Only seen him in blurry keynote webcasts.
I consider your post to be spot on! I'm a Mac owner, but I must confess that I find most of my PC-owning friends to be refreshingly free of the type of smug, sycophantic, elitism some Mac people can't help but exhibit. Many PC owners I know wouldn't even recognize Steve Jobs, Steve Ballmer, etc. if they were introduced to them in the street.
Their sole concern is with having the best computer they can get for their individual needs, the software they can run, etc., not hero worship. Period. Some of them rate Macs quite highly. However, their view tends to be that, unless they're able to afford pro models, they're somewhat compelled to buy PCs because of graphical deficiencies in most consumer Macs.
Steve Jobs has achieved many great things & for that he surely deserves considerable respect. Some may consider him to be a genius. But if he's a genius, surely, like many other so-called geniuses, it's very likely that he's a flawed one. I don't mean flawed personally; after all, how would I know without knowing him? I mean it in the sense that the direction that he appears to be taking Apple in isn't, IMO (& that of many others), necessarily the best one.
That's just an opinion. I think that those who think that SJ & Apple are beyond criticism merely confirm the excellent points you've raised in your post.
It's great that people are enthusiastic about products, and most Mac users are regular joes who are just that, but it is my personal opinion that there also exists a 'Church of Apple' with 'members' who are smug, patronizing, holier-than-thou, basking in the glory of some perceived exclusivity and enlightenment, borderline brainwashed lodge brothers with a special handshake. It sickens me to no end. Again, this is merely one man's opinion, I know you wouldn't agree so let's just leave it there.
Regarding Steve, you're darn tootin' I don't know him. Only seen him in blurry keynote webcasts.
I consider your post to be spot on! I'm a Mac owner, but I must confess that I find most of my PC-owning friends to be refreshingly free of the type of smug, sycophantic, elitism some Mac people can't help but exhibit. Many PC owners I know wouldn't even recognize Steve Jobs, Steve Ballmer, etc. if they were introduced to them in the street.
Their sole concern is with having the best computer they can get for their individual needs, the software they can run, etc., not hero worship. Period. Some of them rate Macs quite highly. However, their view tends to be that, unless they're able to afford pro models, they're somewhat compelled to buy PCs because of graphical deficiencies in most consumer Macs.
Steve Jobs has achieved many great things & for that he surely deserves considerable respect. Some may consider him to be a genius. But if he's a genius, surely, like many other so-called geniuses, it's very likely that he's a flawed one. I don't mean flawed personally; after all, how would I know without knowing him? I mean it in the sense that the direction that he appears to be taking Apple in isn't, IMO (& that of many others), necessarily the best one.
That's just an opinion. I think that those who think that SJ & Apple are beyond criticism merely confirm the excellent points you've raised in your post.
Rt&Dzine
Mar 4, 01:27 PM
What does scare me though is Glenn Beck, who is so smooth that he does craft his message to try and include everybody. I would assume Beck's the type of guy that is great at not offending when talking to him in person. There are union members, people taking benefits from liberal government, yet still seem to find common ground with the GOP. They listen too much to Beck. He's a real snake water salesman and can convince somebody of something that is an illusion.
I'm not sure if this is true. According to investigative reporter Alexander Zaitchik's biography of Beck, he's not a very likable person. He went into the project thinking Beck would be sort of like Limbaugh, who even some liberals like when he's not doing his schtick.
I'm not sure if this is true. According to investigative reporter Alexander Zaitchik's biography of Beck, he's not a very likable person. He went into the project thinking Beck would be sort of like Limbaugh, who even some liberals like when he's not doing his schtick.
Rookies1000
Mar 17, 07:36 AM
That's pretty low and the need to come here and brag about it. Great if you can live with yourself, I couldnt
ct2k7
Apr 23, 01:51 PM
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8H7)
How would they acquire the data? How would they know this is a young person they actually want to follow? Couldn't they just follow them home from somewhere? Does the person need to lose their phone for a danger to occur? Does this paedophile need to have a phone with them?
The tracking that is occurring is by cell tower identification when someone is in range of one. Will the paedophile have access to a spy satellite to zero in on the exact location of an individual?
I'm still not buying it.
Oh lord,
Over here, there was a pedophile, who used elaborate means, e.g key logging and malware to track down the exact locations of his/her prey.
How would they acquire the data? How would they know this is a young person they actually want to follow? Couldn't they just follow them home from somewhere? Does the person need to lose their phone for a danger to occur? Does this paedophile need to have a phone with them?
The tracking that is occurring is by cell tower identification when someone is in range of one. Will the paedophile have access to a spy satellite to zero in on the exact location of an individual?
I'm still not buying it.
Oh lord,
Over here, there was a pedophile, who used elaborate means, e.g key logging and malware to track down the exact locations of his/her prey.
Eduardo1971
Apr 8, 04:20 PM
Perhaps! New Hardware is coming out (iMacs???) and the promo will be a buy a Mac get an iPad for $X.
One could dream...
One could dream...
Yukon Jack
May 3, 09:44 PM
I'll buy one when it has an 8MHz processor, 13-inch monochrome CRT screen and a big fat "Turbo" button.
I'm waiting for the model with the VGA adapter, 2 USB ports, an SD card slot, a 5.25" floppy drive, Appletalk, an ADB port for my keyboard, a SCSI port for my 130MB external drive, Blu-Ray, 8.3 super surround sound, double retina display; all for $300.
I'm waiting for the model with the VGA adapter, 2 USB ports, an SD card slot, a 5.25" floppy drive, Appletalk, an ADB port for my keyboard, a SCSI port for my 130MB external drive, Blu-Ray, 8.3 super surround sound, double retina display; all for $300.
0 comments:
Post a Comment