Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

196 Neutral

About Squirell

  • Rank
  1. Squirell

    Embedding Python Help

    Well that would make sense then, a lot of headache over nothing then. For anyone who is curious, you can use PySys_GetObject("path") to find the current value. Note it returns a list not a string.
  2. So I'm trying to embed python in a C++ application I'm writing. I'm trying to change python's path so it will find some modules I wrote but I can't seem to change the path. The code is here: #include <Python.h> #include <string> int main(int argc, char *argv[]) { Py_Initialize(); const char* oldPath = Py_GetPath(); char* newPath = new char[strlen(oldPath)+256]; strcpy(newPath, oldPath); strcat(newPath, ":../Resources"); printf("Path: %s\n", newPath); PySys_SetPath(newPath); printf("Path: %s\n", Py_GetPath()); delete newPath; Py_Finalize(); return 0; } The code just grabs the old path and then concatenates the path I want to add, in this case ":../Resources". When I print the variable 'newPath' it shows my addition. However when I check with Py_GetPath(), it shows the old path without my addition. I have no clue why not, does anybody have any ideas? I've included the output of the program below for reference. Path: /Library/Frameworks/Python.framework/Versions/2.6/lib/ /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload: ../Resources Path: /Library/Frameworks/Python.framework/Versions/2.6/lib/ /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload
  3. Squirell

    I just got accepted into MIT!!!

    Quote:It might have been different back in '99 when I was considering the program. It looked like a lot of unexpected humanities stuff to me. Yeah they make you take 8 humanities classes so effectively one a semester. They want to create the illusion of well roundedness or whatever (trust me it is an illusions, you can easily get around it with joke classes).
  4. Squirell

    I just got accepted into MIT!!!

    Congratulations, I'm currently a sophomore here and I can definitely vouch for it being an amazing place. Quote:Original post by nilkn These cases, combined with some others that I know of personally, have made me not think as highly of MIT admissions as I used to. All my (admittedly anecdotal) evidence strongly suggests that admission to MIT is a highly superficial process despite all claims to the contrary.. I may be biased but I think that could be said for just about any college. At the same time even if it is, if you manage to make it in, the school is still phenomenal regardless of what admissions is doing. Quote:Original post by nilkn I know somebody who was offered a full-ride. Quote:Original post by slayemin My mom got accepted to MIT with a full ride Getting offered a full ride means nothing because all of MIT's aid is need based.
  5. Squirell

    GRE Computer Science Help =)

    Quote:Original post by capn_midnight Quote:Original post by soconne Somebody obviously didn't score very well on it :-/ I have a completely opposite opinion of the test. I thought it did a very good job of testing your abilities to quickly problem solve and look at problem in a different way. It especially tested your ability to see minute details and use them to solve a question. There's nothing about the Math and Vocab sections that appear to be difficult at first glance, but then again, they're not testing your whether or not you know massive amounts of material. Rather, they're testing your ability to read in between the lines and see the details that many people would pass over. I would simply recommend getting any GRE practice test book from a bookstore and just drill through each of the exams inside. You can spend a little bit of time reading tutorials and lessons, but don't devote a majority of your time to that. The best thing to do is simply DO the tests. Figure out how long it takes you to answer questions, familiarize yourself with the types of questions that will be on there so you're not surprised or caught scratching your head for 2-3 minutes, and learn where your weaknesses lie. First, he's talking about the GRE Subject test in Computer Science, not the GRE General test. The GRE General test is a joke, I almost aced it. The Computer Science test I did horribly on. I go from graduating top of my class, president of the ACM club, president of our local Computer Science Honor Society chapter, vice president of our programming team, A-Team member of our programming team, having written an original research paper, to nearly completely failing the GRE Computer Science test. I think it's pretty clear to me that the GRE CS test is failing to test the proper spectrum of Computer Science if I could do so well in the subject in university and still fail the test. And as I said before, the GRE is known to be almost completely irrelevant as a predictor of academic success. I have refuse to participate in perpetuating its acceptance. Don't support schools that accept the GRE. While I do agree that standardized tests can be a bit silly, I think you should try a little harder to back up your facts with non-biased sources., whose stated purpose is "to end the misuses and flaws of standardized testing" doesn't count. Like everyone else has said, it's just a game you have to play, and not even a hard one at that.
  6. Squirell

    Full Sail University

    Quote:Original post by Tang of the Mountain I never said the school DOES NOT matter, I said it doesn't make you a better programmer for having gone to one over another and wont land you a job simply because your degree says Harvard and mine says Full Sail. Can you seriously tell me with a straight face that all other things being equal, a graduate from MIT will not be a better programmer than a graduate from "Slackass U in Bumsville Idaho". Remember we are giving advice to a specific person here. Sure, it is possible that someone goes to MIT and learns less from being a huge slacker, but the same person given a choice between the two will learn more at MIT.
  7. Squirell

    Full Sail University

    Quote:Tang of the Mountain t's not the school and its teachings that prohibit the number of choices you can make, it's peoples thoughts on the school itself. You can say what you like about the school, I'm not trying to say it's the best school and you shouldn't speak ill of it. I have a great job doing research and development for a company I like very much. I guess Full Sail did not impede my ability to do so. Would you like to elaborate on how Full Sail restricts your choices? I'm curious what your arguments for this are. Did you attend Full Sail? Are your thoughts based solely on third party information? As far as restricting your choices goes, I'll agree that graduates could be well prepared for a computer science job. (I'll use computer science as an example here, I realize FullSail offers other game related options). Perhaps they are a little bit heavy on the game aspect and lighter on the theory but still perfectly competent for most jobs. However, I doubt a game school prepares you well at all to be a doctor, businessman, lawyer, etc. Compare this to "real universities" where all of those are still very possible choices should you decide you don't want to follow an engineering path. My point is that by going to a game school you put yourself way behind if you decide you don't like it and want to change to something else. And lots of people who think they know what they want to do end up changing their minds later on. By going to a game school, you make it much harder on yourself if you change your mind and you gain very little if you don't. Yes, I did not attend FullSail or any other game school, I attend a "real university", all that is based on third party information. I still think it is fairly accurate.
  8. Squirell

    Full Sail University

    Quote:Original post by Tang of the Mountain Quote:Original post by RDragon1 Advice: Go to a real school. LAWL @ real school. Is there something you can do that I cant? Speak proper english. A real school will allow you to get a job in any number of fields including the game industry. A school such as fullsail will restrict your choices while giving you no real advantage in the industry.
  9. Squirell

    How big are you?

    Quote:Original post by tstrimp This isn't necessarily true. Bulk comes not just from strength gain, but the way you exercise. Someone with a bigger bicep isn't necessarily stronger then a guy with a smaller bicep. You are definitely right, using your example, comparing one person's bicep size to another's is not an accurate measure of strength at all. However, if you compare your hypothetical bicep size from a couple of months ago to your bicep size now when you are now able to curl 30 pounds more, your bicep will have grown in size. Quote:Original post by polymorphed Quote:Original post by Squirell If you are truly getting stronger you have to also be getting bigger. More strength gives you more muscle which makes you bigger. There just isn't any way around that. Actually, when it comes to strength the nervous system plays a big role. That's why you can get stronger without actually gaining much, if any, new muscle. One example of the adaptation of the nervous system is that it learns to synchronize the firing of the motor neurons in a particular muscle, causing them to contract in powerful synchronized "bursts" instead of unsynchronized "noise". Obviously, there's a certain point where adaptation of the nervous system is "maxed" out, and the only way a muscle can keep lifting more weight is by increasing its size. But the equation is a lot more complex than more muscle = more strength, though. [smile] "The increase in fiber recruitment and neural coordination leads to strength gains, without the muscles actually getting bigger (hypertrophy). Even advanced weightlifters have been shown to increase their strength and power, without increasing muscle size, when they change their exercise programs. This phenomenon can only be the result of neural adaptations and increased recruitment." That's an interesting article. I certainly agree with the part where it talks about strength gains when you first start lifting coming primarily from your nervous system, but I'm surprised at the advanced lifters part. Everything I've every read always states that you need to achieve hypertrophy to get stronger (after the initial period). I'd argue that the advanced lifters mentioned showed an increase in strength by working a little used muscle group in the new exercise or improving their balance so they can lift more. I feel like that article doesn't reflect the complete truth because it is aimed more at beginners. I would be very surprised if advanced lifters made significant gains solely from their nervous system, but it is hard to argue without knowing the source that article used.
  10. Squirell

    How big are you?

    6'2", 185 lbs. Athletic build (I play water polo) Quote: Original post by BerwynIrish 5'4", 195 lbs. I could stand to lose about 20 lbs of fat, the rest is muscle. Quote: Original post by boolean Quote: Original post by bschneid I get stronger but never bigger. Me too! Thirded. (although I wouldn't say *never* bigger, I've noticed a size plateau that does not correspond to a strength plateau.) On the plus side, it's heartening to see that guys at the gym who are much bigger than I am not lifting any more or at least not too much more weight than I am. If you are truly getting stronger you have to also be getting bigger. More strength gives you more muscle which makes you bigger. There just isn't any way around that.
  11. Squirell

    MIT BattleCode Competition

    Yep, and I go to MIT so I get course credit for it and everything. It's my first time doing it so it should be an interesting and fun month.
  12. Squirell

    Biggest "game" ever still needs your help

    Quote:Original post by Chadra Quote:Original post by MaulingMonkey However, I suspect we'll be sticking to the big bloated boat of bumbling democracy for a while yet. Fifty years? We've already been doing it for over two hundred. Don't get me wrong, online government already exists. I can pay my taxes online, for example, and our government is continuing to modernize and acclimatize itself to the new digital era. However, I think sheer momentum dictates we won't be seeing radical changes, but rather a continuous series of smaller ones. That's a choice we can make. But what incentive is there to stick with a representative system? Who has anything good to say about their representatives overall? In the U.S., the Congress is happy if it can get its approval ratings over 30%. The fundamental reason for this is that they do not represent the people. I disagree, sure sometimes/rarely/all the time (however you want to look at it) they pass laws that fulfill there own interests, but they also pass laws that fulfill the wishes of the people they represent. After all, if they completely ignored the wishes of their people how could so many congressmen get reelected? The low approval rating is more a result of it being impossible to please everybody with any law. In other words, there are so many different interest groups you can't appease them all. Your system would not change this.
  13. Squirell

    Biggest "game" ever still needs your help

    Just out of curiosity, how would you plan to deal with hackers. And I don't mean middle school script kiddies, I mean really really good ones...
  14. Squirell

    circular Big Bang theory

    Quote:Original post by ApochPiQ OK, I got about a paragraph into this thread. As soon as you try to talk about extreme relativistic phenomena like singularities, and you invoke Newtonian gravity, it's pretty obvious you're underqualified to be having the discussion [wink] So on those grounds, I'm going to second the idea that anyone who wants to discuss this owes it to themselves to read some books. I was reading though this thread wondering when someone was going to bring this up. All the classical laws of mechanics (ie Newton) you learn in basic physics break down when you start dealing with things like singularities. The guys who have suggested picking up a book about this stuff are right. What you learn from basic physics or the discovery channel really isn't enough to have a good discussion.
  15. Squirell

    Mac C#?!

    And if for some reason Mono doesn't work out for you (although I see no reason it shouldn't), you can always boot camp and use pure windows or even vmware/parallels and run visual studio in osx. Those aren't ideal solutions IMO but they are fallbacks for peace of mind
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!