Slashdot Mirror


User: MathiasRav

MathiasRav's activity in the archive.

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

Comments · 108

  1. Re:More verbose == less readable? on Myths About Code Comments · · Score: 1

    What is unfortunately also annoying with "functionifying" a method is that it clogs up the class methods, I wish there was a keyword like "foohelper() helps foo();" which would mean foohelper() is only in scope inside foo(). If something is complex and consists of several long operations, it's usually cleaner to have a supermethod which only calls helpers.

    Ideally, those methods/subroutines/functions, i.e. foohelper() should be declared and defined inside the method/sub/function they're helping, i.e. foo():

    function foo(input):
    function preprocess(input):
    ...
    end function function process(input): ... end function intermediary = preprocess(input) result = process(intermediary) return result end function

    There are two kinds of helper functions, those that serve only one function and those that are useful in general (which can also become a problem) - and if your helper function is only useful in one scope, it should only be defined in that scope.

  2. Re:Throw away data? on The Neuroscience of Screwing Up · · Score: 2, Insightful

    Proving a theory incorrect is often just as valuable as proving a theory correct.

    I'd rather say proving a theory incorrect is just as valuable as proving a *hypothesis* correct. If it's a hypothesis, it's no fun proving it wrong (it wasn't established anyway, it might go against your intuition but nobody cares), and if it's a theory, it's no fun proving it right (what are you talking about, of course it's right, we already knew that).

    I would elaborate on this but that would just be filler.

  3. Re:old school command line IDE on IDEs With VIM Text Editing Capability? · · Score: 1

    Using Vim to edit code today is like using ed to interactively edit text.

    Huh... you can do that?

    To think that I'd been using cat all this time...

  4. 530 USD? on Google Nexus Rumored To Cost $530 Or $180 w/Plan · · Score: 1

    Sweet, that's like, 370 euro!

    No, wait, I forgot, that's not how you convert currency in this business.

    I'm only speculating here, it's not really even an educated guess, but I'm scarred from seeing the US dollar depreciating like that and European as well as American prices in the Apple stores staying constant.

  5. Yeah, it's accelerating, just look at these data! on North Magnetic Pole Moving East Due To Core Flux · · Score: 2, Informative

    40 miles per year? That's a speed, not an acceleration.

  6. Re:Use chmod on Preventing My Hosting Provider From Rooting My Server? · · Score: 1

    chmod 744 /var/log (modify the directory name as needed so that it points to where your logs reside)

    0744 = owner read exec, group and world read only (or in ls -l format: dr-xr--r--). Read permissions won't do you any good, you need executable to access files within and list directory contents, so it'll be chmod 0755 instead.

    $ mkdir test
    $ echo test > test/test
    $ chmod 0744 test
    $ sudo chown nobody test
    $ cat test/test
    test/test: Access denied
    $ sudo chmod 0755 test
    $ cat test/test
    test

    (Actually, read permissions are meaningless for directories so far I know, so 0755 is equivalent to 0311 for directories.)

    Preferably, set up a logging group or similar, create a user for the provider in the logging group and make the directory 0750.

  7. Re:i see what you did there on NASA and Space Station Alliance On Shaky Ground · · Score: 1

    There's a tag for that. badlink

  8. Re:Can it Edit MKV files etc.... on VLC Team Announces Video Editor In the Works · · Score: 1

    I would like something that can open anything and then edit it.

    It would be nice to have a good video editor, One that was free back in the day was DDClip it worked pretty good back in 00' . Anythign is better than the abortion that is Windows Movie Maker....

    In the sense that VLMC can read anything and subsequently write something, yes, probably. I very much doubt the number of output formats will match the number of input formats, though.

    I always thought Windows Movie Maker was good for video stitching, the problem was it could only output to a WMV, which is understandable (msft and all that).

  9. Re:pre-doom stock inflation on OLPC Unveils Plans For Tablets By 2012 · · Score: 2, Insightful

    I propose mmxii

  10. Re:Typical proprietary bullshit on Google About Openness · · Score: 1

    The only thing I think Google is missing is a way to export all your Google information into a data file you can upload into someone else

    As previously discussed, they are working on that. It's not a complete, one-click solution yet, but for instance since releasing it they've added the possibility to export all Google Docs documents to a single archive - previously it was per-document only.

  11. Re:Maybe I'm stating the obvious, but on Typing With Your Brain · · Score: 1

    When I type I mentally spell out every word and know that I have to hit those keys.

    I can't speak for you, but I will say that I doubt this is the case for the majority. I'm pretty sure that's not the case for me, at least, after years of touch typing. I'm not a native English speaker, but lately (last couple of months) I've begun mixing up 'your', 'you're', 'whose', 'who's', etc. in my writing. I correct it immediately when I see it, but I don't spell out every word when I type, so my reflexes/fine motor skills just type up whatever.

    I still think, though, that a brain scanner/what it's called could read what words I intended to type and distinguish them from my regular brainstorm.

  12. Re:How Ironic on Windows 7 May Finally Get IPv6 Deployed · · Score: 1

    Nah, more coincidental really, when you think about it

  13. Re:Why? on Windows 7 May Finally Get IPv6 Deployed · · Score: 2, Insightful

    Who the hell needs 13 Gazillion addresses on their LAN? On the internet sure, ok....who the fuck going to connect a Windows box to the internet without NAT/Firewall?

    Network address translation came into use because you had limited supply of IP addresses, pigeonhole problem basically. With IPv6 that's not needed, because surely 3.4×10^38 addresses should be enough for anyone. You'll just need a firewall to reject requests from outside your own assigned block.

  14. Re:Isn't this cool? on Malware and Botnet Operators Going ISP · · Score: 1

    Remember back in the 90s when everyone was jizzing in their pants about Bruce Sterling and Neal Stephenson's writing, dreaming of actually implementing the ideas therein? Data havens, crypto-anarchism, impregnable anonymity, hackers making a decent living by a life of crime, and so forth?

    Somewhere, on a secret global malware authors' intranet, on a site running Slashcode, scammers are praising 2010 as the year of unregulated DoS'ing on the Internet.

  15. Re:WARNING: AntivirusXP on Music By Natural Selection · · Score: 1

    I'm using Chromium nightly on Debian! Oh no, I'm gonna get infected by this! Good thing I have Namoroka lying around somewhere... What would I do without those Mozilla folks?!

  16. Re:The Site... on Hackers Counter Microsoft COFEE With Some DECAF · · Score: 1

    Name of the debugging add-on? "dkaf".

  17. Re:Wait... on PayPal Offers $150,000 In Developer Challenge · · Score: 1

    Congratulations! Your idea has netted you $150 000. But let's not tell PayPal, okay?

  18. Re:It was silly to begin with on Science Gifts For Kids? · · Score: 1

    Cats are conscious beings, and as such qualify as observers.

    Or are they?

  19. Re:Highly offtopic on "Universal Jigsaw Puzzle" Hits Stores In Japan · · Score: 1

    Some of it is table lookup, but regardless, 300 fp multiplications shouldn't take forever. You mentioned significant digits, so it's (unsurprisingly) not arbitrary precision.

  20. Re:Data, not Information on Each American Consumed 34 Gigabytes Per Day In '08 · · Score: 1

    Are you being "sarcastic"?

  21. Re:Parasites are everywhere, for natural reasons on Hackers vs. Phishers · · Score: 1

    it seems that since then, I get no love, which is disappointing.

    In my experience you have to be out early to have your post modded at all - most mods (afaik) simply don't look beyond the first 50, 100 or 150 posts in a discussion, and some articles easily have 400 comments by the first 6-12 hours.

    Posts that could potentially be Score:5, Whatever are simply left at the initial 0, 1 or 2 (depending on karma) since the mod points were all spent before your post could make it to the counter.

    I was lucky this time to even get a thread ancestor modded up, but that's all thanks to me posting as soon as the summary came up. And then I got Funny which, as an Anon also pointed out, doesn't award Karma bonus... Oh, the Interesting/Insightful mods are few and far between.

  22. Parasites are everywhere, for natural reasons on Hackers vs. Phishers · · Score: 4, Funny

    In other news, some Slashdot users don't like to do all the hard work of writing inspiring posts to build karma. Instead, they developed a simple online service to 'steal' karma from the hardworking posters. The service allows anyone to scan Slashdot articles for underrated comments and automatically post replies urging moderators to "mod parent up".

  23. Re:Yes on Will Tabbed Windows Be the Next Big Thing? · · Score: 2, Informative

    Compiz has a 'raise on click' config option which can be disabled. I'm not sure of the internal representation, but it is in General Options of ccsm. Be sure to set a keyboard shortcut to 'Raise window' - though if you don't, alt-tab or clicking the window list will do.

    I'm not sure if a similar option is available in Metacity or whatever else you happen to be using, although it would seem likely.

    If you do look into compiz or are using it, you might want to also look at disabling click to focus (making way for the focus-follows-mouse mode you mentioned) and the Opacify plugin (under Accessibility*), which will make windows in front of the window you're hovering over partly transparent. I use this to great effect.

    * ...As if not being able to see through windows is a disability.

  24. Re:Yes on Will Tabbed Windows Be the Next Big Thing? · · Score: 2, Informative

    Manually dragging the edges of windows can suck, but in 'traditional' setups, you use the lower right corner (which is a big target) to adjust the size and the title bar (which is a big target) to adjust the position. Most Linux WMs also have ALT shortcut which makes large percentages of the windows 'hot' for adjustment.

    In my experience, corners and title bars are still generally small enough that hunting and pecking is required - I can never casually slide my cursor to the target and immediately begin resizing/moving - that only happens with alt+left mouse button (drag) or alt+middle mouse button (resize).

    It's a shame Windows doesn't have this kind of functionality built-in. I don't know about Mac, but since my switch from Windows XP to Ubuntu, alt+clicking to move/resize, along with workspaces and Compiz' Grid plugin to move and resize windows to fit an imagined grid, has been the main efficiency booster for me.

    I'm not saying every ordinary user should have this kind of configuring work forced on them, it's just a really good reason for *me* to make the switch.

    (And of course, a proper command line and an OS with an extensive "built-in" software catalog (Debian's/Ubuntu's apt repositories) that's free and that doesn't suck have also been compelling reasons.)

  25. Re:Perl6 Advent Calendar on PHP on The Perl 6 Advent Calendar · · Score: 1

    Maybe because PHP is a web dev tool, and Perl is a sysadmin/text manipulation tool? I'm not one to vouch for either Movable Type or Wordpress, but even though Perl seems more efficient and faster than PHP, I'd rather use PHP for website frontends.