Slashdot Mirror


User: yerM)M

yerM)M's activity in the archive.

Stories
0
Comments
74
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 74

  1. Re:The philosophy behind textual data on Windows PowerShell in Action · · Score: 1
    Just a quick python comment: if __repr__ is lossy, then you haven't implemented it correctly.


    The point of __repr__ is to output the string representation that can be evaluated by Python to produce the __repr__'s object. For instance

    foo = Foo(1)
    repr(foo) ==> "Foo(1)"

    This causes a lot on confusion sometimes when people view the repr of floating point numbers since the __repr__ shows the floating point error, i.e. 0.4 cannot be exactly represented in a C double.

    >>print repr(0.4)
    0.40000000000000002

  2. Re:A Whole Decade of Nothing on Remote Exploit of Vista Speech Control · · Score: 1

    Just because you can't think of a solution doesn't mean there isn't one. The solution is to solve an easier problem. If an application is outputting sounds, automatically feed them into the the voice recognition software without executing the command. If commands are found, disable the recognition software with a big fat notification.

  3. Re:Interesting idea, but one caveat I perceve... on Using Radio Waves to Detect Explosives · · Score: 1

    Having recently travelled extensively around the world, many foreign airports have checkpoints as you enter the airport. It seems stupid that our major airports do not do this. I can guarantee that there are far fewer people at the checkpoint than standing at line at the ticket counter.

  4. TrollTech's Jambi does this quite nicely on Resource-Based GUIs Vs. Code Generators In Java · · Score: 2, Informative
    It can be used opensource (GPL) as well as commercially. Here is the link to the tech preview.

    I have to say, I'm pretty impressed so far.

  5. Re:Evolution? on 'This Spartan Life' Meets NPR · · Score: 1

    I could say something about the pleasures of breeding being replaced with the pleasures of digital manipulation but it turns out that, apparently, there is evolution.

  6. Re:Sleep vs Hibernate on Why Vista Took So Long · · Score: 3, Insightful
    Agreed, but you don't have a choice. When you close the lid you sleep and there is no hibernate.

    Haven't you ever started a hibernate, closed the lid before you were done and when you opened the lid you completed the hibernate and had to power up the computer again to come back from hibernation?

    Having only one choice can be better (i.e. when I said "Done" I meant, that's it, that's all you can do). It sounds like Vista is starting to become (if you'll excuse a reference to Larry Wall) as much of a post-modern operating system as linux/unix.

  7. Re:Sleep vs Hibernate on Why Vista Took So Long · · Score: 3, Informative
    This is one thing I absolutely love about the MacBooks. You just close the lid. Done.

    There are ways to switch user and restart. Both are in obvious places but you never see them unless you want.

    And there's more! If you want to use the MacBook with the lid closed, plug in an external keyboard. Done. I wish my PC laptop did these things.

  8. Re:Moot point, so please vote on Is An Uninformed Vote Better Than No Vote? · · Score: 1
    It only takes a few minuites to find the key candidates websites online and give them at least a brief viewing.

    Unless, of course, you are looking at a democrat's website (at least here in Mass). Trying to find who are the key candidates in your area is like slogging through a cranberry bog. I will say that the Republican web site does this much, much better, the first thing you see on the page is how to find the republican candidates.

  9. Re:an anecdote caused by this good book on Mastering Regular Expressions · · Score: 1
    Indeed, as (probably Jamie Zawinsky) said:

    Some people, when confronted with a problem, think I know, I'll use regular expressions. Now they have two problems.

    Fight the power (of regular expressions).

  10. Re:Fishkill on IBM Announces Wii Chips In Nintendo Hands · · Score: 1
    the company's East Fishkill, N.Y., fabrication facility
    Their manufacturing plant, which no doubt produces some toxic chemicals, is in a town called East Fishkill? There's gotta be an interesting story behind that name :)


    Blame the dutch. "kill" just means stream in dutch, hence the Catskill mountains, etc. One of my favorite names from my drive home is "Fishs Eddy".

    Anyway, while making sure that I remembered what I was talking about it turns out that in 1996 PETA tried to get them to change their name. What a world.

  11. Re:Cool! on Windows Games on Macs Without Windows · · Score: 1

    Does that mean that Laura croft would have cider inside her inside?

  12. Re:WOW! Factor on Parallels Desktop for OS X Reviewed · · Score: 1
    Mod parent up.

    The key win for me, is these are the linux variants that we support (non 64 bit)

    1. Microsoft 2K/XP msvc 7.1
    2. Microsoft 2K/XP mingw32 (gcc 3.4)
    3. RedHat Linux 7.2 gcc3.4
    4. RedHat Linux 7.2 gcc2.96
    5. RedHat Linux 8.0 gcc3.4
    6. RedHat Linux 8.0 gcc3.2
    7. RedHat Linux 9.0 gcc3.4
    8. RedHat Linux 9.0 gcc3.2
    9. Centos 3 gcc3.4
    10. Centos 3 gcc3.2
    11. Centos 4 gcc3.4
    12. SuSE 9.1 x86 native
    13. SuSE 9.1 x86 gcc3.4

    Now I can compile/test on any of these systems from the same machine. I have even done two compiles at a time. You can't believe how much effort and cost that I have saved. Especially for testing purposes.

  13. Re:Easy path to SETUP.EXE and Mac OS X equivalent? on WxPython in Action · · Score: 1
    Yes. I have a wxPython app that runs on Linux/Windows/Mac, it is located at Slims.

    For windows, I use py2exe and have a custom script that makes an innosetup install file. If you are interested, I can dig up this script for you (I think it should actually be a distutils setup, that would be nice) however, they are trivial to make.

    For OSX I use BundleBuilder which generates mac bundles and is really, really nice especially since OSX comes with python pre-installed. I even use this script to create non-python bundles.

    For linux I use PyInstalelr and tarballs :) There is really no good consistent linux installer, but I have had some success with PyInstaller.

    Good luck!
  14. Re:Not if... on Flying Faster Without ID · · Score: 1

    And, just so you know, more fatal car crashes involve someone traveling under the average speed than over the average speed. So, if you are at the average speed or a little above, you are statistically safer than those below the average speed. And, had you actually talked with competent engineers that worked on roads, they would have told you that going with the flow above the speed limit is *safer* than going the limit.

    This just smacks of nonesense to me and seems like a correlation versus causation issue. It is like saying that most accidents occur five miles from home so don't drive near home.
    It could just be that most people drive just under the speed limit and hence most accidents are at a lower speed. Accidents at higher speeds are going to be more fatal -- period. Now, if you have statistics showing that most people drive above the speed limit, then o.k.However in Boston, the average speed is far below the legal speed (although it is getting closer after the big Dig) If what you are really saying is that driving nearer the speed of your neighbors, then I'll buy that as well.

  15. Re:The sweet smell lingers on Stupid Engineering Mistakes · · Score: 1
    Indeed, as a contracter friend should me, molasses is still in the some basements!

    And it wasn't fifteen feet tall, it was fifty. There is a great book about it called Dark Tide. You can still see the lines where the tide was.

  16. Welcome to 1997 on Office Tools On The Web · · Score: 1
  17. Re:Meta application of these rules in real life: on How To Write Unmaintainable Code · · Score: 1
  18. Re:Eh... so what? on CSI Takes On Grand Theft Auto · · Score: 2, Funny
    Good one, but the clincher is:

    Ice cream sales and shark attacks cause summer.

  19. Re:Eh... so what? on CSI Takes On Grand Theft Auto · · Score: 2, Insightful
    Correlation is not causation.

    Example:

    Ice cream sales and shark attacks both increase during summer. I.e. Ice cream causes shark attacks.

    In summary, correlation is easy, causation is hard.

  20. Re:Security through obscurity on Stealing Data? A Sniffer Shows it's Easy · · Score: 1

    Indeed. It seems that one of your biggest secrets is what your biggest secrets are. I think the consultant just did some social engineering, I wonder if he put himself as a risk in his final report.

  21. Re:Slightly O/T 'non-competition'... on Microsoft Sues Google For Hiring MS Exec · · Score: 5, Interesting
    Here is what I did:

    Scratch out (draw lines through) the items you don't like and initial them and sign the bottom pages (all of them). Make a notorized copy and hand the contract back. There is a good chance it will be counter-signed without anyone looking over the contract.

    Remember, this is a CONTRACT, you are free to make changes that you see fit.

  22. Re:Good luck to all you Europeans... on EU Closer To Rejecting Software Patents · · Score: 1
    Your blanket argument of GIVE EVERYONE THE SAFE TIRES is implictly making the argument that every other tire is unsafe which is patently ridiculous (excuse the pun).

    Making the claim that I don't care if people die is a great way to make senseless arguments with vitriolic statements, you could almost pass for a congressman.

    Now, before I tick you off too much, how would you suggest rewarding innovation in a capitalist environment?

  23. Re:Good luck to all you Europeans... on EU Closer To Rejecting Software Patents · · Score: 1
    Patents are not evil by default. In fact, patents put knowledge INTO the public domain. When you register a patent, you are essentially getting a short term contract from the United States that allow you to have a limited short term monopoly on your invention. After that time, ANYONE can use the patent.

    This actually increases innovation over the long term because fifteen years from know your invention belongs to the people. Now, the short term is a bitch and because the life-cycle of products is shrinking rapidly especially for software, I'm not sure that fifteen to seventeen years is a viable length of time. Five years, sure. Go nuts.

    I was using a wrench the other day. I've been using them for thirty years, the general wrench hasn't changed in probably fifty or so. This one had a simple notch on one of the sides of the wrench. This ingenious notch allows the nut to spin in the opposite direction allowing the wrench to be used as a ratchet. Incredible! Simple, almost trivial, but whoever thought of that deserves a patent.

    Likewise, if someone from Ford makes a safer tire, they deserve a short term monopoly in exchange for telling EVERYONE how to make a safer tire as opposed to keeping it a trade secret. You honestly believe that isn't fair?

  24. Re:Take a look @ WxWidgets as well. on Trolltech Releases Qt 4.0 · · Score: 1
    Start with simple applications first. Copy example code liberally. Learn about model view controller styles of making graphical applications.

    C++ knowledge will help, but most good GUI architectures clean up after them selves. I.e. you give an object to it's parent and when the parent is destroyed the object you gave is destroyed as well.

    The hardest thing about most gui apps is layout's, you can alleviate a lot of your issues by using wxGlade to design you application and make the stubs. You will have something that works right off the bat to see if you like the interface before you add the logic.

    wx will most likely be fine, just make sure you try the app on all platforms you want to ship with. For really fast design, use wxPython, you'll be surprised how easy it can be.

    good luck!

  25. Re:Take a look @ WxWidgets as well. on Trolltech Releases Qt 4.0 · · Score: 1
    I have written a rather large wxWidgets application, SLIMS over the past several years and really like wxWidgets as well except:

    • The interface can change from version to version without warning. Notable the python interface and the dc drawing code. Hopefully this won't happen again, but man was it a pain.
    • You have to check every widget on every platform. The table widget in particular doesn't behave the same on all platforms. On the MAC, it is depressingly slow.
    • Some issues won't be addressed. Using a virtual table, if you go over two million rows, you get drawing errors. While you might say two million rows is too many (and I agree), this is still a bug of which you might need to be aware. My bug report was actually listed as "not a bug" by the developers. At least change the docs to indicate this!

    That being said, the development community is great and if you can live with testing every widget to make sure that they are really cross platform, I say go for it.

    That being said, Qt is also a joy to work with, with great response from the developers (if you have purchased a license), a stable API, and truly excellent cross platform support. wx is almost there, but not quite (I had to ship with the cvs version for the macintosh in January)