Slashdot Mirror


User: omuls+are+tasty

omuls+are+tasty's activity in the archive.

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

Comments · 182

  1. Re:Nikola Tesla on Pushing 800W of Wireless Power at 5 Meters · · Score: 1

    Not necessarily, you can use both Latin and Cyrillic scripts in Serbian (though I think the Serbian govermnent uses only Cyrillic as the official script). So anyhow, Nikola Tesla will do just fine.

  2. Mouse??? WTF on The Mouse Turns 40 · · Score: 2, Funny

    Dude, this is Slashdot. We don't use freakin mice around here. Keyboards are always faster

    <CTRL+L>javascript:document.getElementById('Submit').click()

  3. Re:Sloganeering on Adobe Building Zoetrope, a Web "Time Machine" · · Score: 1

    I, OTOH, can say with certainty that the two sequences of numbers share a common cause of you wanting to show that a degree of correlation implies a certain probabibility of some causal link.

  4. Re:arXiv articles - question on A Quantum Linear Equation Solver · · Score: 1

    So?

  5. Re:Implications on A Quantum Linear Equation Solver · · Score: 1

    It's not a question of computability, it's a question of efficiency (time complexity).

    Nondeterministic and deterministic Turing machines are also equivalent in the power of expression, but most likely not equal in terms of time complexity (otherwise P=NP).

  6. Re:An brief introduction to functional programming on Time to Get Good At Functional Programming? · · Score: 1

    It's not the "real" quicksort as it doesn't sort in-place.

    On a related note, GP made an incorrect remark on the performance of quicksort and mergesort. Mergesort has a worst-case performance of O(n*log n); quicksort of O(n^2), so worst-case performance of quicksort is rather dismal. However, it is usually the fastest sorting algorithm in practice, because the "bad" inputs are rare so it achieves an average-case performance of O(n * log n), but with much smaller constants hidden by the O notation than mergesort, making it quicker.

  7. Re:I don't know why this story's flagged "endofday on Python 3.0 Released · · Score: 1

    Wish I had mod points. Thank you for a good laugh, sir.

  8. Re:Meh on Model-View-Controller — Misunderstood and Misused · · Score: 3, Informative

    Umm, Malcolm is probably THE most active Django developer at this time (Django developer as in "someone who develops Django", rather than "someone who uses Django for development).

  9. AIMA on Reading Guide To AI Design & Neural Networks? · · Score: 5, Informative

    Artificial Intelligence: A Modern Approach by Rusell and Norvig is more or less the standard AI textbook and the book I'd suggest to get an overview of AI and its different methodologies. Mind you, it's over 1000 pages, but a very interesting read.

  10. Re:28 lines in Prolog :-) on Solving the Knight's Tour Puzzle In 60 Lines of Python · · Score: 1

    So one of the two fundamental approaches to defining computers is a "totally made up term", yet a "functor" is a perfectly sensible thing? Gotcha.

    Though I'd have to agree that using a lambda here has little advantage, a named function is much clearer. I think that generally, lambdas would make more sense in simpler examples, such as:

    l.sort(key=lambda x: weight[x])

    or more complex ones, where you'd need to use closures (well actually I'm using a closure right up there but... you know what I mean :))

  11. Re:Reinventing A* on Solving the Knight's Tour Puzzle In 60 Lines of Python · · Score: 1

    It's not A*, A* deals with finding a path to the goal while minimizing the cost. There's no "cost" inherent to the Knight's Tour - all solutions are equal. It makes much more sense to model it as a constraint satisfaction problem (CSP).

    Also, "prioritizing the search" doesn't make anything breadth-first, it makes it some kind of priority search. Generally, these graph searches tend to depend only on the underlying structure: stack for depth-first, queue for bread-first, and priority queue for priority searches. Changing the priority function yields different types of priority searches (Dijkstra, greedy best-first, A*, etc).

  12. Re:Working sleep mode? on Atheros Hardware Abstraction Layer Source Is Released · · Score: 1

    Off the top of my head, I think it was texture_from_pixmap. Most programs using 3d wouldn't work unless I set LIBGL_ALWAYS_INDIRECT, which reverts to indirect rendering. Compiz wouldn't work, nor would 3d games under wine (they work after setting the parameter, but painfully slow)

  13. Re:Working sleep mode? on Atheros Hardware Abstraction Layer Source Is Released · · Score: 1

    Really? I was under the impression that the Intel video drivers (either the X or the kernel ones, don't know which) kinda suck? I know I always get complaints for missing GL extensions with my 945GM.

  14. Re:28 lines in Prolog :-) on Solving the Knight's Tour Puzzle In 60 Lines of Python · · Score: 3, Insightful

    That Java code is only 10 lines longer, but it doesn't include the code for some other classes it uses to solve the problem.

    But anyhow, you're missing his point. The basic backtracking algorithm for the problem is simple in any language, and could indeed be made much shorter in Java (w/o the entire search framework). He's talking about improving the search with a heuristic (in his case, what is known as a "minimum remaining values" search heuristic among the AI folks). But he's still probably wrong, as you'd only need to write a Comparator in Java, or overload the operator< in C++ to achieve the same effect, and my guess is it'd only take you about 2x the Python code for the same functionality.

    But, IMHO, the problem is not so much the increase in code, it's the shift in thinking which you have to undergo to make your code in Java. You just want to sort a bloody list based on a certain criteria, but now you have to make a class, encode your state data in it, and define a comparator function. Basically the brain -> program mapping is most of the time so much more direct in Python (and other similar languages) than the high-level assembly family of C languages that it isn't even funny. I sometimes feel like being put in a straitjacket when I have to write some Java or C++. Don't get me wrong, I definitely agree that a lousy programmer can make a mess in any programming language (I've written my share of bad code) and that a good programmer can write good code in any programming language (save for COBOL), but why torture yourself?

    A good indicator for me is the source code for problems in the AIMA book, check out the different versions and see which ones convey the meaning and ideas more clearly.

  15. Re:Overreaching on Lori Drew Cyber-Bullying Trial Begins · · Score: 1

    Tina Meier testified previously that she wrote "Josh" that she thought he should focus on kids his own age. Josh replied, "I understand."

    It's not clear to me, was she sending the message using her own username, or her daughter's? Would that be a violation of TOS as well?

  16. Define "thin"? on Massive Martian Glaciers Found · · Score: 1

    Seriously, TFA just mentions it's "thin", but does anyone have a clue just how thin it is? A meter, a few, tens of meters?

    Also, I'm kinda curious how would one go about exploiting it. Something like a surface coal mine? That would need some heavy machinery. I'm thinking that one could take advantage of the fact that ice melts, but can't come up with any plausible solutions.

  17. It's <= 1kJ in any case on Anti-Matter Created By Laser At Livermore · · Score: 1

    This is the most powerful laser at the facility, firing 2x1kJ per hour.

    In any case, I think that Goldmember would disapprove of such practices with gold

  18. Oblig. on A Replica of the First 4004 Calculator · · Score: 0, Redundant

    Now imagine a Beowulf cluster of those...

  19. PHP does a bit better on Relentless Web Attack Hard To Kill · · Score: 1

    PHP database connection drivers* will not allow you to execute two SQL statements in one call, effectively limiting the impact of injections to extending the SELECT rather than an INSERT.

    Of course, this can still lead to the compromise of admin accounts if you write bad code (which unfortunately covers a lot of PHP code) and "manual" injection from there on.

    *Well, I think it's the PHP drivers - it could be just the MySQL/PostgreSQL C drivers that do it. In any case, ASP/MSSQL combo is vulnerable whereas the PHP/MySQL one is not.

  20. That president is just a cover anyway on Plasma Plants Vaporize Trash While Creating Energy · · Score: 1

    The *real* company president could only be no other than... wait for it... Mr. Burns!

    <rimshot/>

  21. Re:Prototype-based? I'll pass. on Ioke Tries To Combine the Best of Lisp and Ruby · · Score: 1

    You should've read his comment more thoroughly before replying:

    This is one of the classic things one can do wrong in language design, and which tend to have to be fixed in later versions, painfully.

    Booleans were only introduced in Python 2.3, and yes, I would call that a "boner" for such a high-level language.

    And as a matter of fact, a similar response applies to the other poster for C++ (and Java) and generics. Actually, I think the GP directed the "painfully" part of his post to these two.

  22. Switch ESC and Caps Lock on (Useful) Stupid Vim Tricks? · · Score: 1

    KDE can do it, don't know if other environments can. AFAIK the very reason why the Esc key was originally chosen for entering the normal mode was that it was located where the Caps Lock is now.

    Saves me a helluva lot of time. The only problem is that now I keep WRITING THINGS IN CAPITAL LETTERS ON OTHERS' COMPUTERS

  23. Re:Need a way to un-highlight on (Useful) Stupid Vim Tricks? · · Score: 1

    Hm, I've always been using + as the clipboard buffer. And yes, it actually works ;) Anyone knows what the difference is?

  24. Re:I got a C in on New Class of Pulsars Discovered · · Score: 1

    Clearly you've never sought work at Schroedinger's Pet Store.

  25. Bah, the most important question got left out on Presidential Youth Debate Answers and Details Now Online · · Score: 2, Funny

    emacs or vi?