lee1210
Apr 24, 03:41 PM
I don't really know why research is needed for this, unless you don't know Python at all. If that is the case, you don't need to research how to do this in Python, you just need to research Python. Finding code online that does what you need is easy. However, i doubt somewhat seriously that you have a real-world problem requiring this, and you're simply desperate for a solution. Instead this sounds like an academic assignment/exercise/what-have-you.
If that is the case, then you want to learn something, not find the answer. That means you might need to learn:
What a palindrome is (you probably already know this)
How to write a loop in Python
How to manipulate numbers using Python (including exponentiation and division, perhaps taking logarithms)
OR
How to manipulate strings using Python (including getting a substring, string equality, or character equality and getting characters)
As an academic exercise i would try to write both approaches... treating the number as a number and approaching this with math and treating the number with a string and dealing with it that way.
I'm confident that you can google your way to what a palindrome is if you don't know, and the Python documentation is actually quite good:
http://www.python.org/doc/
Good luck. As you progress feel free to post code here telling us what you've tried, what the current errors are (or erroneous results), what you expect to happen, etc. We'll be glad to help you work it out, but it's better for everyone if we don't give you the answer.
-Lee
If that is the case, then you want to learn something, not find the answer. That means you might need to learn:
What a palindrome is (you probably already know this)
How to write a loop in Python
How to manipulate numbers using Python (including exponentiation and division, perhaps taking logarithms)
OR
How to manipulate strings using Python (including getting a substring, string equality, or character equality and getting characters)
As an academic exercise i would try to write both approaches... treating the number as a number and approaching this with math and treating the number with a string and dealing with it that way.
I'm confident that you can google your way to what a palindrome is if you don't know, and the Python documentation is actually quite good:
http://www.python.org/doc/
Good luck. As you progress feel free to post code here telling us what you've tried, what the current errors are (or erroneous results), what you expect to happen, etc. We'll be glad to help you work it out, but it's better for everyone if we don't give you the answer.
-Lee
furcalchick
Oct 26, 09:30 PM
wasn't much, and they were from my not iphone phone camera. but it's better than nothing, and i'm really impressed at leopard by the demos (as i said, i wasn't buying leopard today, i was really only there for the t-shirt:))
shot from the entrance of the register tables
http://lime.quickshareit.com/share/photo00497c3ce.jpg
the leopard shirt in the bag
http://orange.quickshareit.com/share/photo00504de0b.jpg
view looking towards the mall
http://grapefruit.quickshareit.com/share/photo0051fafb0.jpg
a mac genius holding someone's leopard copy ready to take home
http://grapefruit.quickshareit.com/share/photo00520d733.jpg
shot from the entrance of the register tables
http://lime.quickshareit.com/share/photo00497c3ce.jpg
the leopard shirt in the bag
http://orange.quickshareit.com/share/photo00504de0b.jpg
view looking towards the mall
http://grapefruit.quickshareit.com/share/photo0051fafb0.jpg
a mac genius holding someone's leopard copy ready to take home
http://grapefruit.quickshareit.com/share/photo00520d733.jpg
TrulyYuki
Apr 8, 02:26 PM
Now THIS is what I'm talking about.
http://scoopertino.com/wp-content/uploads/2011/03/ibox_page_2.jpg
Can I reuse this image for my facebook. Its super awesome.
http://scoopertino.com/wp-content/uploads/2011/03/ibox_page_2.jpg
Can I reuse this image for my facebook. Its super awesome.
galimk
Apr 23, 05:30 PM
Look in your book for exactly what you're supposed to use for #import. You may have made a mistake.
I'm not sure, but #import <Fraction.h> seems wrong to me. If Fraction.h were a system-provided class, it would be correct. But it's a developer-created class, so #import "Fraction.h" seems more sensible to me, and is what I've always used when referring to class headers I create.
Post your code.
No one with any programming experience would believe anyone (beginner or experienced) who says there are no compilation errors, unless the code has actually been compiled without errors. You may be right, but we need to see the evidence of the compiler.
Thanks! Your answer helped. So now I know that <**> are only for system provided classes. I used quotes for Fraction.h and it worked.
The example that I used had everything dumped in the main .m file along with the main function.
I'm not sure, but #import <Fraction.h> seems wrong to me. If Fraction.h were a system-provided class, it would be correct. But it's a developer-created class, so #import "Fraction.h" seems more sensible to me, and is what I've always used when referring to class headers I create.
Post your code.
No one with any programming experience would believe anyone (beginner or experienced) who says there are no compilation errors, unless the code has actually been compiled without errors. You may be right, but we need to see the evidence of the compiler.
Thanks! Your answer helped. So now I know that <**> are only for system provided classes. I used quotes for Fraction.h and it worked.
The example that I used had everything dumped in the main .m file along with the main function.
Spectrum
Dec 9, 01:19 PM
Now all I want is a way to get the behaviour of the OS9 Finder.
The OSX Finder is seriously flawed.
...and this for everyone who suffers from the silly gaudy childish look of OS X and misses the clean elegance of OS 9 (it not necessarily the extension conflicts and the lousy task-threading).
1) The Classic Platinum Theme (http://www.macupdate.com/info.php/id/15581). Installable on OS X using either unsanity.com's ShapeShifter or Duality 4
2) X-Assist (http://www.versiontracker.com/dyn/moreinfo/macosx/10519) or ASM (http://www.versiontracker.com/dyn/moreinfo/macosx/10410) to give you an application switching menu in your menubar.
3) FruitMenu (http://www.versiontracker.com/dyn/moreinfo/macosx/12974) to give you back an editable / customizable Apple Menu, to give you a hierarchical menu-view of System Prefs so you don't have to launch the entire %&## System Preferences pane and then reach with your mouse a second time to invoke the specific PrefsPane you want. And to use as a launcher.
4) WindowShade X (http://www.versiontracker.com/dyn/moreinfo/macosx/12243), to be able to minimize windows the classic Macintosh way, not like some Windows PC-wannabe. (Will also minimize-in-place to a small icon)
5) PullTab (http://www.versiontracker.com/dyn/moreinfo/macosx/18606), to pry that damn Dock's filthy hands off the keystoke combo Command-Tab, thus freeing it up for apps with original rights to it, like FileMaker Pro.
6) To get your Trash can onto the Desktop where it belongs, there are several apps that purport to be able to do so, but I prefer to just use TinkerTool to make everything visible in the Finder, then make an alias to .Trash and put the alias on the Desktop. Find a nice MacOS 9ish Trashcan icon on the internet and paste.
7) Now to dispense with the godforsaken Dock itself. Two choices: you can minimize it practically out of existence by pinning it to the left edge of your screen and then edit com.apple.dock.plist in a text editor, manually changing the tilesize parameter to 1, which will give you a Dock about the size of a pinhead in a place where you won't mouse-over on it very often by accident; or you can nuke it entirely. To nuke it entirely, first copy Dock.app from /System/Library/CoreServices and make that copy a startup item for every user account on your machine (towards the top of the list); then make an AppleScript consisting of tell application "Dock"; quit; end tell, save it as an application, and add that to your startup items (towards the end); then, finally, sudo rm the original Dock.app from within CoreServices. Hickory Dickory, baby :)
The OSX Finder is seriously flawed.
...and this for everyone who suffers from the silly gaudy childish look of OS X and misses the clean elegance of OS 9 (it not necessarily the extension conflicts and the lousy task-threading).
1) The Classic Platinum Theme (http://www.macupdate.com/info.php/id/15581). Installable on OS X using either unsanity.com's ShapeShifter or Duality 4
2) X-Assist (http://www.versiontracker.com/dyn/moreinfo/macosx/10519) or ASM (http://www.versiontracker.com/dyn/moreinfo/macosx/10410) to give you an application switching menu in your menubar.
3) FruitMenu (http://www.versiontracker.com/dyn/moreinfo/macosx/12974) to give you back an editable / customizable Apple Menu, to give you a hierarchical menu-view of System Prefs so you don't have to launch the entire %&## System Preferences pane and then reach with your mouse a second time to invoke the specific PrefsPane you want. And to use as a launcher.
4) WindowShade X (http://www.versiontracker.com/dyn/moreinfo/macosx/12243), to be able to minimize windows the classic Macintosh way, not like some Windows PC-wannabe. (Will also minimize-in-place to a small icon)
5) PullTab (http://www.versiontracker.com/dyn/moreinfo/macosx/18606), to pry that damn Dock's filthy hands off the keystoke combo Command-Tab, thus freeing it up for apps with original rights to it, like FileMaker Pro.
6) To get your Trash can onto the Desktop where it belongs, there are several apps that purport to be able to do so, but I prefer to just use TinkerTool to make everything visible in the Finder, then make an alias to .Trash and put the alias on the Desktop. Find a nice MacOS 9ish Trashcan icon on the internet and paste.
7) Now to dispense with the godforsaken Dock itself. Two choices: you can minimize it practically out of existence by pinning it to the left edge of your screen and then edit com.apple.dock.plist in a text editor, manually changing the tilesize parameter to 1, which will give you a Dock about the size of a pinhead in a place where you won't mouse-over on it very often by accident; or you can nuke it entirely. To nuke it entirely, first copy Dock.app from /System/Library/CoreServices and make that copy a startup item for every user account on your machine (towards the top of the list); then make an AppleScript consisting of tell application "Dock"; quit; end tell, save it as an application, and add that to your startup items (towards the end); then, finally, sudo rm the original Dock.app from within CoreServices. Hickory Dickory, baby :)
danman
Sep 12, 05:56 PM
I you look at the first article on the page, you will see that in a reference to an interview with Apple France director J.R. Cazeneuve, he is quoted as saying Apple worked very well with Motorola on the G5.
Bet ya a million buck we get G5's early next year.
(no, I don't have a million bucks, but hey ho)
Bet ya a million buck we get G5's early next year.
(no, I don't have a million bucks, but hey ho)
IJ Reilly
Nov 9, 11:39 AM
Pages is perfectly fine for word processing, which I know from experience as I been using it for that purpose every day for nearly two years. Most of the people who say otherwise either haven't learned to use it or would have preferred that Apple produce a Word clone. Some of are very happy that they did not go that route.
twoodcc
Oct 30, 06:14 PM
Oh, I got the core i7 started with bigadv it seems to be running at about 58 min/frame which would put it at 4.17 days.
something seems wrong with 58 min a frame. at stock 2.66 ghz i was getting 43 min a frame. you might want to look over it and see if you can find any issues going on
something seems wrong with 58 min a frame. at stock 2.66 ghz i was getting 43 min a frame. you might want to look over it and see if you can find any issues going on
reberto
Dec 10, 12:41 AM
Price lowered to $450 on PC. If I can find them, I have a unopened copy of Quake 4 and The Sims 2.
aschuett
Jan 17, 08:46 AM
I have been waiting to hear the results from the Final Cut meeting last night. I haven't heard anyone celebrating the release of FC Server, or any other cool FC-related anything.
Does anyone know what ever came of this "secret announcement?"
Does anyone know what ever came of this "secret announcement?"
Cyberheart
Mar 15, 06:06 AM
lolz i must have not seen it :(
nomad01
Sep 23, 01:23 PM
Is it because that might be the date when they bring out the new updates we've been waiting for so long??
Or am i just puting 2 + 2 together and getting 'Dual Core'? :)
As far as I know it's not closing on the 3rd. It's just not going to open every day after the 3rd. It'll go back to just opening once a week... on a Wednesday... from 10am. :-)
I'm curious as to why they're suddenly getting rid of SO much though.
Or am i just puting 2 + 2 together and getting 'Dual Core'? :)
As far as I know it's not closing on the 3rd. It's just not going to open every day after the 3rd. It'll go back to just opening once a week... on a Wednesday... from 10am. :-)
I'm curious as to why they're suddenly getting rid of SO much though.
macmikey2
Apr 13, 05:34 AM
I just did this yesterday. Tired of Lion messing up. I get the beta thing, just don't want to deal.
I have a 1TB drive so I just re-partitioned the drive while running and then installed SL into new, clean partition. Did the complete restore/install from the original disks that came with MBP.
Next, I did the Software Update thing then ran migration assistant making sure to NOT move Machine and Applications.
Restarted and then drag copied over the apps I wanted, settings that were missed and did new installs of everything else.
All told about a day (10-12 hours) and I am now SL and Lion on one drive in my MBP.
Worth it to do a clean install and not carry anything back. Move them later.
Mikey
I have a 1TB drive so I just re-partitioned the drive while running and then installed SL into new, clean partition. Did the complete restore/install from the original disks that came with MBP.
Next, I did the Software Update thing then ran migration assistant making sure to NOT move Machine and Applications.
Restarted and then drag copied over the apps I wanted, settings that were missed and did new installs of everything else.
All told about a day (10-12 hours) and I am now SL and Lion on one drive in my MBP.
Worth it to do a clean install and not carry anything back. Move them later.
Mikey
citizenzen
Mar 17, 01:39 PM
Nate Phelps is the seventh of the Westboro Baptist minister's 13 children.
Fred's thinking, "I stills gots me twelve mores."
Fred's thinking, "I stills gots me twelve mores."
wako
Jun 5, 02:17 AM
Read the marketplace rules...
You dont have any prices listed, I have NO IDEA which iPhone you are selling, 8GB or 16GB. And again the price?!
Ill offer you 200 bucks for the 8GB though :P
You dont have any prices listed, I have NO IDEA which iPhone you are selling, 8GB or 16GB. And again the price?!
Ill offer you 200 bucks for the 8GB though :P
SAdProZ
Nov 27, 05:08 PM
Are you trying to ftp to a windows box with firewall enabled, but not configure properly for ftp? That is exactly what happens.uh, i dunno...what do you mean by windows box? i do have firewall enabled, and i am uploading to a website of mine (www.sadproz.com)
mrk2010
Dec 27, 11:14 PM
Hey everyone, first post here, and also a Mac noob, so I apologize if this is in the wrong section :)
I am trying to enable file sharing in OS X 10.6 Snow Leopard. I intend to share files on my MacBook with other Windows and Linux computers on my home network. From what I understand, the procedure is as follows:
1) Open up System Preferences and click on Sharing under Internet & Wireless
2) Click on File Sharing on the left, and then add a folder to be shared. After doing this, three Users appear on the right: System Administrator, Administrator, and Everyone (all have read/write access).
3) I want my folder to be password-protected and accessible only to specific users, so I change the permissions for Everyone to No Access. I then add a user (sharing only account) with a specified username and password.
4) I click on Options and select the "Share files and folders using SMB (Windows)", and enable SMB sharing for the user that I created in the previous step. I click on Done, and exit System Preferences.
After performing the above steps, I go to my Linux computer and attempt to connect to the shared folder on my Macbook. I was surprised to be able to access the folder without being prompted for a username and password. The same thing can be seen on my Windows computer.
I went back into Systems Preferences/Sharing on my MacBook, and noticed that the user that I had created has disappeared from the Users list, and all the permissions have been reverted to the default Read & Write Access (including Everyone, which I had changed to No Access earlier). I tried the above procedure again and still ended up with the same result.
Why are the user permissions not being saved? Has anyone here experienced a similar issue?
I am trying to enable file sharing in OS X 10.6 Snow Leopard. I intend to share files on my MacBook with other Windows and Linux computers on my home network. From what I understand, the procedure is as follows:
1) Open up System Preferences and click on Sharing under Internet & Wireless
2) Click on File Sharing on the left, and then add a folder to be shared. After doing this, three Users appear on the right: System Administrator, Administrator, and Everyone (all have read/write access).
3) I want my folder to be password-protected and accessible only to specific users, so I change the permissions for Everyone to No Access. I then add a user (sharing only account) with a specified username and password.
4) I click on Options and select the "Share files and folders using SMB (Windows)", and enable SMB sharing for the user that I created in the previous step. I click on Done, and exit System Preferences.
After performing the above steps, I go to my Linux computer and attempt to connect to the shared folder on my Macbook. I was surprised to be able to access the folder without being prompted for a username and password. The same thing can be seen on my Windows computer.
I went back into Systems Preferences/Sharing on my MacBook, and noticed that the user that I had created has disappeared from the Users list, and all the permissions have been reverted to the default Read & Write Access (including Everyone, which I had changed to No Access earlier). I tried the above procedure again and still ended up with the same result.
Why are the user permissions not being saved? Has anyone here experienced a similar issue?
marshallbedsaul
Oct 17, 11:00 PM
thats freaking awesome man love the 2nd one the most.
AppleScruff1
Apr 22, 04:21 PM
Big deal. Where's iPhone 5?
seasurfer
May 4, 11:07 PM
I am thinking of buying a 1Tb iMac 2011 i7. I don't want to waste money on the 2Tb one.
However, I may need more space in the future, I was seeing this hard-drive dock thing when I was browsing newegg, I never use one before, which one works best with iMac? Is there a thunderbolt one? Thanks.:)
However, I may need more space in the future, I was seeing this hard-drive dock thing when I was browsing newegg, I never use one before, which one works best with iMac? Is there a thunderbolt one? Thanks.:)
TheWitePony
Jul 23, 09:21 PM
I was browsing the iTMS today and I have never created an account so I decided to try, but then I got to the point where it asks for your credit card info. I was wondering, is there a fee at all to register an account? Sorry, this may sound like a dumb question but after my recent powerbook purchase I find myself a little strapped for cash, so every penny I got counts...
BigRedOne
May 7, 01:35 AM
I called Apple, they said it's most likely a graphics card failing (I agree).
The weird thing is, is that 10-15 in while playing a game, it completely locks up, but the mouse cursor is movable (weird).
You have to hold the power button to get it to work again. But once booted back into OS X, it's slow, and the screen flickers once, and then locks up again.
The TechDoolDeluxe tests came back normal too....
This only happens when gaming for about 10 mintues, and then the lock ups happen. (weird thing is mouse cursor is still movable)
Any thoughts?
The weird thing is, is that 10-15 in while playing a game, it completely locks up, but the mouse cursor is movable (weird).
You have to hold the power button to get it to work again. But once booted back into OS X, it's slow, and the screen flickers once, and then locks up again.
The TechDoolDeluxe tests came back normal too....
This only happens when gaming for about 10 mintues, and then the lock ups happen. (weird thing is mouse cursor is still movable)
Any thoughts?
maflynn
Feb 2, 07:45 AM
Apple and every other computer maker is going to be held back. Don't you think apple had sandy bridge based computers in the pipeline
The biggest difference is others started shipping/advertising those computers before apple
The biggest difference is others started shipping/advertising those computers before apple
SeaFox
Nov 7, 03:52 PM
Originally posted by eyelikeart
Was that u, Dahl, who suggested like half a dozen Ween tracks yesterday?
No it was me (if you're talking about a bunch that showed up at like one in the morning and were all from the Mollusk). I was leafing through my library and came across them. So I though, hmmmm, I wonder if the iTMS has any Ween.
Was that u, Dahl, who suggested like half a dozen Ween tracks yesterday?
No it was me (if you're talking about a bunch that showed up at like one in the morning and were all from the Mollusk). I was leafing through my library and came across them. So I though, hmmmm, I wonder if the iTMS has any Ween.
No comments:
Post a Comment