Not, iTunes. But probably around 3000 MP3's.
Just in case others are interested, to exit a program use ...
import sys sys.exit()
or easier ...
raise SystemExit
Yes, quite interesting, actually-- I was just wondering about this; I searched via google for sys.exit() to gather some more info and found a lot of scattered information that told me either too little or to much. It seems this way with Python docs\tutorials\etc on the Net IMO.
I come to <Daniweb> and search and... here some vital information is. (as usual ;))
vegaseat: can you elaborate on why using SystemExit is "easier"
just so I can understand it better. I just used it-- worked just fine. :)
Thanks a lot,
Matty
Did you get any tech toys that you think we should know about?
[IMG]http://i52.photobucket.com/albums/g31/reranger/th_macher.jpg[/IMG]
This wonderful piece of Folk Art made by my sweet girl out of tin, copper, and plastic: it is full of spare parts, well-oiled hearts and love.
Not really, just that I need to screw up my friend's computer at work. We're always attacking each other on the computer, but this time it's gone too far. He put a script on my computer so that every time I log on, the computer restarts, or logs off, making it imposible to log in. I have ways around it though, but I need something to mess up his computer bad enough so he can't figure it out and I have to help him, but not too bad so I don't get fired. Are there any suggestions for screwing his computer?
Most corporations of any size have written policies that warn against sabotage of any type on:
Setting timebombs on a company machine or running a malicious script sounds like loads of fun in theory until it backfires and perhaps corrupts a database, for example.
Everything is monitored nowadays. The best advice is to warn your friend that he could lose his job while you retain yours. If an employee was doing this to systems that I owned I would fire them immediately. It is unprofessional, dangerous, and enough to get you blacklisted in some industries.
Be very careful.
sharky_machine
Well after two semesters and three absolutely 'horrible' teachers I've decided to drop my C, C++ courses and move over to a different line of study at college. This is sad really since I'm almost 40 and had been hacking for the past 15+ years and really needed more professional training. I will still pursue the language - but more in a self-study capacity. If anyone knows of any good C/C++ certificate courses that can be done online, please let me know.
In the meantime, if I could give any advice to those who may consider teaching this language, please consider the following. These are just my own personal observations within my limited scope of experience and as such you may agree or discount whatever you see here:
1) You are brilliant - therefore you just 'get it' - the rest of us don't. Please pretend that you are teaching english to non-english-speaking students. It is a language after all.
2) Keep you code examples small, with plenty of comments. And, unless you absolutely have to, do 'not' combine one example into another without providing examples of them separately first.
3) Introduce each new concept using defined steps (ex. step 1 - do this, step 2 - do that). Be ridiculously exhaustive in your explanation about each new line of code. Remember, you get it - we don't.
4) Use smaller in-class assignments and not one 'huge' one that due at the end of the term. Be there to observe, …
Compare what we have to those living in developing countries. We have it better than most.
manutd:
Yes, in general, that is true. :)
I agree -- there is no such thing as a perfect system. I mostly disagree with the term "pathetic Health system of the U.S. " -- it is better than most.
Ancient Dragon:
I understand how you feel and you are correct; "pathetic" is a bit harsh in light of all the good our system does offer us. We are fortunate and I am blessed to have been born in this country.
Regards,
sharky_machine
It is not the actual scientists I question. I am not, unfortunately, qualified to helm a multi-Billion dollar Pharmeceutical conglomerate, nor am I in the position to lobby Senators\ Congressmen in their decisions regarding national healthcare concerns and where their financially-inspired votes will fall.
Besides this, I am quite happy with our system. I just see the need for vast improvements. There are scores (see, 100's of 1000's, if not more) of American people who go daily without their prescribed medicine, (the very medicine that just might cure their ills) because they cannot afford to pay for it and they do not have insurance. Medicine has become the new Mercedes, Nike, Apple-- designer quality at designer prices. Capitalism run amock. How inspiring. :rolleyes:
I think this is a case of "gass is always greener on the other side of the fence".
>>do the Billions spent on medical research actually cure anything significant
Of couse it does. One example: I went through angioplaty (heart) surgery a year ago. This was first approved for use in USA in 1994. And there have been some improvements since then. Hospital stay is only overnight. There are medical breakthroughs all the time -- just because Christopher Reeve and Michael J. Fox have not been cured does not mean a cure will never come.
There are many breakthroughs that occur. I do not disagree with this. Lives are saved. But in the majority of cases, the symptoms are treated, not the root of the disease. This is Western medicine; Large companies do not make large profits from cures but from prolonged use of their products that simulate an awkward "improvement", that is, some symptoms digress while new conflicts grow from:
I am a huge supporter of science and research, but I will not sit here and say I am absolutely mad for the pathetic Health system of the U.S.
And sometimes, the grass is actually greener. Perhaps? :surprised
Some call the American medical system "Superior" and in some ways it is: Medicine, advanced treatments, research, labs, doctors, support staff, training levels, rehabilitation, ethics, and funding. While this is indeed true we have to look at what fails this system-- the businesses behind the hospitals that manage and control the dispensation of said elements of the American medical system.
I have always been treated well, fairly, honestly, and with seemingly the highest regards when being seen by a medical professional. Our nation possesses that, in general, on a personal basis, but what we lack is a true window into the machinations of the corporate system that buys and sells doctors and their hospitals like livestock. We have little if any say in this system and rarely true "choice" in light of absurd insurance restrictions. American citizens have become the true test subject(s) both fiscally and in the realms of science in this health system. And, honestly, do the Billions spent on medical research actually cure anything significant or does it only prolong a state of suffering in the long run? Look at the statistics, not the heart-warming propaganda produced by Pfizer or Forest Labs.
For many reasons (including Healthcare) I would prefer to live in the UK or Canada. I don't mind "waiting in line". ;)
Sure, but to expect to magically find that "one" by visiting a website....
Mathematically you are correct, but: I met my girlfiend on a dating site; we lived 2,000+- miles apart at the time (I in Texas, she in NYC). Upon graduating from school I moved to NYC so 1) I could begin my career 2) We could be together. That was one-year ago. What we have is splendid, lovely, and because it is ordained by God-- what can I say? Blessed. Am I lucky? No-- I do not believe in luck. It is actually quite a living miracle that grows day-by-day. It takes work and it is quite fun, intellectually stimulating, and spiritually fired-up. Now, if I could only get my career going as good as my relationship :lol:;).
Regards,
sharkey_machine
Whatever happened to just being yourself?
If you need some company to arrange a mate for your and a book or website to tell you how to "snatch them up", maybe you should better stay single.
Well, personally, I can say I never needed "help" and I never aimed to "snatch them up". There are many routes and options especially nowadays including, you are correct, staying single. It just stands to reason that as our society grows and technology evolves these options will grow as well. How one finds "the one" (if that is what you wish) and how one accoplishes this (in a reasonable manner) is a personal endeavor and preference. ;)
Here are five important tips to achieve a successful date I would like to share:
Pointer #1 - Avoid dating occasionally.
This result to what we call "dating fatigue". Dating is an continuous activity (until you find that perfect match) and so recharging your energies, building self-confidence and maintaining optimism levels high must be practiced. I advise that you schedule your date in time frames to regain your renewed vigor if necessary.
Pointer #2 - ENJOY your date as much as possible
Always strive to enjoy dating activities even if it shows signs of not being compatible with your date. Remember, this is one aspect of socializing and grab the opportunity by spending time in the company of new acquaintances who may or may not bring you a sparkle. The truth is, most people are interesting in a way and this may be the chance to look for new friends!
Pointer #3 - Never divulge your entire being on a first date.
Basically, we tend to be more interested with individuals who are mysterious and the thrill of the chase when dating. Therefore, if you are looking for a more serious relationship, sex is out of the agenda in a first date. As your date progress and the person starts to fall for you within a reasonable time, then there is a higher percentage that real love may bloom.
Pointer #4 - Do join a quality …
Python.
I abhored Python when I first studied it but, over time, I started to fancy it.