User Profile

Collapse

Profile Sidebar

Collapse
musicfreak
musicfreak
Last Activity: Jun 25 '09, 07:07 AM
Joined: Jan 3 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • musicfreak
    replied to Windows-compatible file system?
    Oh, that Windows driver is actually really handy. Thank you!
    See more | Go to post

    Leave a comment:


  • musicfreak
    replied to Windows-compatible file system?
    Never mind! I found a way around it so that Linux doesn't have to access it. This can be deleted or whatever.
    See more | Go to post

    Leave a comment:


  • musicfreak
    started a topic Windows-compatible file system?

    Windows-compatible file system?

    So I'm trying to dual-boot with Ubuntu and Vista, but I need a "shared" partition where I can store files that both systems use. What file system should this partition use? Most of my files are pretty big, ranging from around 1GB to 6, and FAT32 (from what I know) only supports files up to 4GB in size. Is there another (better) file system that is compatible with both operating systems?

    Thanks in advance.
    See more | Go to post

  • musicfreak
    replied to file to nested list
    Yeah, the first method I mentioned would use a while loop (it was the first thing that popped into my head since that's how I learned it), but I guess using a for loop would, in the end, be much simpler and cleaner. Go for the 'for' loop. :)
    See more | Go to post

    Leave a comment:


  • musicfreak
    replied to file to nested list
    Oh I see. Well in that case, you're going to need to make a temporary list for each "sub list," and if the line starts with '>', make that line the first part of the list, and vice versa. Then just append that list to the 'root'.

    You could use a for loop, although it would be easier not to. Is this for an assignment? If you have to use a for loop, then you could read the file all at once into a string and split() it by...
    See more | Go to post

    Leave a comment:


  • musicfreak
    replied to file to nested list
    I'm assuming you know basic file I/O?

    Basically, what you need to do is create an empty list (let's call it 'root'), open the file you want with open() (let's call this 'file'), then have a loop where you get two lines at a time using file.readline() (store these in two separate variables, 'a' and 'b' for example). Then you need to do root.append([a, b]), where [a, b] will end up being [">123" , "qwerty"] from...
    See more | Go to post

    Leave a comment:


  • Take a look at IronPython.
    See more | Go to post

    Leave a comment:


  • musicfreak
    replied to std::string implementation
    in C
    Very in-depth analysis, thank you. I never knew strings were that fast. (Actually, my implementation would have been very similar, but now I know not to bother.)

    Thanks again!
    See more | Go to post

    Leave a comment:


  • musicfreak
    started a topic std::string implementation
    in C

    std::string implementation

    Just out of curiosity, how is the std::string type implemented? In other words, what are the internals? Is it an immutable C string? Is it an over-allocated char[]? How does it work? Any insight would be appreciated.

    (If you were wondering, I'm building an interpreter/runtime, and I need efficient strings for what I'm doing, and so I need to know whether I need to use my own implementation or not.)

    Thanks in advance...
    See more | Go to post

  • musicfreak
    replied to What framework should I use?
    Mmm, I haven't looked at those two yet at all. I'll take a look. Thanks!
    See more | Go to post

    Leave a comment:


  • musicfreak
    replied to Php oops
    in PHP
    OOP is much cleaner and more maintainable. There are really no advantages to using procedural programming, besides maybe a few less lines of code (which should be irrelevant since you write the code faster with OOP). If you're not going to release your project to the public, I'd say go OOP, hands down.
    See more | Go to post

    Leave a comment:


  • musicfreak
    started a topic What framework should I use?

    What framework should I use?

    Alright, so I just got an assignment to make a sort of calculator for my dad's company to put on their website (because their tech support is tired of having to do calculations themselves). Now, I haven't seriously written JavaScript in almost two years, and I'm pretty behind in terms of libraries and frameworks. So my question is: which framework would be most productive for me in this case?

    My main concern is maintainability , not...
    See more | Go to post

  • musicfreak
    started a topic Import speeds

    Import speeds

    I tried Googling around for this but I couldn't find anything useful.

    I know Python caches modules so they only have to be imported once, but is there a performance hit when using the wildcard import? For example, is this...
    Code:
    from some_module import *
    ...slower than this?
    Code:
    import some_module
    Thanks in advance.
    See more | Go to post

  • musicfreak
    replied to Similar programming languages?
    Thanks, I'll take a look at it.

    Some examples of what I was referring to:
    - No true member visibility. You can set private variables by adding an underscore as a prefix, but that just seems like a hack to me.
    - The fact that you have to have "self" as one of the arguments to all your methods.
    - No static methods (without decorators...ag ain, a hack if you ask me).

    Yeah I know, which is why I'd...
    See more | Go to post

    Leave a comment:


  • musicfreak
    started a topic Similar programming languages?

    Similar programming languages?

    Hey everyone,

    So I've been programming in Python for about a year, but I think it's time to move on. While I think the language is very clean and elegant, I find its object-oriented design sub par at best. When compared to a "pure" OOP language like Java or C#, a lot of things related to OO seem like hacks. I don't know Python's history, but it seems like it was first made as a procedural language, with OO features sloppily...
    See more | Go to post

  • musicfreak
    replied to What is your OS and Python Version
    Windows XP Pro, should be switching to Vista tomorrow. :)
    Python 2.5 and 3.0 for playing around (I'm going to switch to PyPy once they finalize their JIT compiler)
    Komodo as main editor, IDLE for quick tests and whatnot
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...