Slashdot Mirror


User: Elbows

Elbows's activity in the archive.

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

Comments · 158

  1. Re:I suppose it's nice on Autotools · · Score: 1

    I use SCons at work for a project that builds on Windows, Mac, and Linux, and we even supported IRIX for a while. Our build is pretty complicated, including some code-generation steps where we build a program, run it, and generate new source files based on the output, and SCons works pretty smoothly. It's definitely lacking in a few areas, but lately it's been quite stable despite adding new features fairly quickly.

    We do have a lot of "if windows... elif macos" kind of code. But I don't know if any system can entirely get rid of those. There are some platform-specific concepts that are really hard to abstract in a platform-independent way (e.g. side-by-side assembly nonsense on windows, or the weird handling of shared library paths on Mac).

    The biggest downside I see to SCons is that your build system can easily get very complex, and then you have to debug and maintain all that code.

  2. Re:Maybe time to move to Chrome? on IE9, FF4 Beta In Real-World Use Face-Off · · Score: 1

    Hey, so it is. :)

    I haven't really been paying attention to the countless forks of Chrome, but I'll give that a try.

  3. Re:Maybe time to move to Chrome? on IE9, FF4 Beta In Real-World Use Face-Off · · Score: 1

    I'm using Chrome on Ubuntu 9.10. It's definitely fast -- I have an older system and Firefox is just painfully slow, Chrome is pretty useable. But when I get around to upgrading my hardware I'm probably switching back, for a few reasons:

    • Zoom/font size settings. Text on most web pages is so small I have to squint (I have this problem all the time: I crank up the minimum font size in Firefox, set my Windows fonts to 125%, etc). Chrome will remember your zoom setting per domain, which is nice, but every time I visit a new site I have to set the zoom again.
    • Stability. Yeah, Chrome is supposed to be super-stable with the process-per-tab architecture. But I've crashed the whole app, and it took chunks of my profile with it (had to reimport from Firefox). The flash plugin crashes frequently on videos that play fine in FF. I can't remember the last time FF crashed, and it always recovers cleanly.
    • Extensions. There are a few extensions that I miss, and I find myself firing up Firefox now and then just for those.
    • Updates. Firefox is in the Ubuntu repositories, so it gets updated automatically. Chrome is a .deb that I have to download and install manually.

    Chrome did have flash support right after install -- not sure if it was built in or just found the flash plugin from Firefox that was already on my system. I don't see a way to disable it. There is a flashblock extension, but I haven't tried it yet.

  4. Re:How this works on Windows DLL Vulnerability Exploit In the Wild · · Score: 4, Informative

    I just tried this out. When I launch a test program by double-clicking an associated file, the current directory (as returned by GetCurrentDirectory()) is set to the directory where the file was located. It ignores the location of the .exe, and it also ignores the "Start In" directory from the shortcut file (if the association was to a shortcut and not directly to an exe). This is on Win7 64-bit. So I think my evilsmbshare example from above would work as described. Of course it's possible that other Windows systems exhibit completely different behavior. :)

    I agree that it's still hard to exploit, but not quite as hard as requiring access to the user's local filesystem.

  5. How this works on Windows DLL Vulnerability Exploit In the Wild · · Score: 5, Informative

    I took me a while to figure out how this exploit works, but I think it goes like this:

    I have an application, foo.exe, that can make use of an optional system component (or 3rd-party DLL), bar.dll. I don't ship that DLL, and I can't guarantee that it will be present on every user's system. So to ensure that my program degrades gracefully, I open it with LoadLibrary("bar.dll"), and if it's not found I disable the features that depend on it. Since it's not my DLL, I can't speculate on where it's installed, so I use an unqualified path and let the loader do the searching (this is, after all, the job of the loader). The ensures that, as long as bar.dll is correctly installed on the system, my application will find and use it.

    From an application developer's point of view, this the right way to do things. If I did this on Linux or MacOS, it wouldn't be a problem. Unfortunately, Microsoft decided that the current directory (".") should be in the default search path (see http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx ). It's even searched before $PATH!

    Now the exploit goes like this:
    1. On \\evilserver\evilsmbshare, I place a file foofile.foo, an extension which is associated with foo.exe. Right next to it, I create an evil version of bar.dll.
    2. I convince the user to double-click on foofile.foo, causing windows to open foo.exe, with a current directory of \\evilserver\evilsmbshare.
    3. If the user's system doesn't have bar.dll installed, Windows will eventually find my evil version of it at .\bar.dll and load it into the unsuspecting foo.exe.
    4. My evil code runs and does whatever evil deeds I want it to.

    If this is correct, then the decision my Microsoft to put the current directory in the library search path seems pretty braindead, and it's hard to blame application developers for assuming that LoadLibrary() will load a library in a sane and secure way. But I'm having a hard time imagining an application that would break if the current directory were just removed from the search path. Shipping DLLs in the application directory is common practice, but expecting them in the current directory? Why would you do that?

    It seems that this exploit requires you to trick the user into opening a file from a filesystem you have access to, at which point you could probably just as easily get them to open a trojan directly. I think local privilege-escalation attacks are more probable (e.g. tricking a system service into opening your evil DLL).

  6. Re:It depends? on Intel, NVIDIA Take Shots At CPU vs. GPU Performance · · Score: 1

    The other big factor (the biggest in most of the GPU code I've written) is your pattern of memory access. Most GPUs have no cache so access to memory has very high latency even though the bandwidth is excellent. The card will hide this latency to some extent through clever scheduling; and if all your threads are accessing adjacent memory, it will coalesce that into one big read/write. But GPUs do best on problems where the ratio of arithmetic to memory access is high, and your data can hang around in registers for a while.

    I've found that in general GPU code has to be written much more carefully if you want good performance. On a regular CPU, if you pick a decent algorithm and pay attention to cache locality, you can usually rely on the compiler for the low-level optimizations and get pretty close to peak performance. On the GPU you have to pay very close attention to memory access patterns, register usage, and other low-level hardware details -- screwing up any of those parts can easily cost you a factor of 10 in performance.

    This is starting to change, though -- the newest chips from nvidia have an L1 cache, and relax some of the other restrictions.

  7. Re:"ostensibly qualified" is fuzzy on What US Health Care Needs · · Score: 1

    I've thought for a long time that maybe there was a place for someone who's more than a nurse but less than a doctor. But the politics of that industry gives politics a bad name. It'd be the demarcation dispute to end them all.

    Like a physician assistant? My primary care doctor is actually a PA, and she's probably the best doctor I've had. Great bedside manner, and even when I go two years between physicals, she knows who I am and seems to have my medical history memorized. For a primary care doctor who mostly handles routine physicals and minor problems, and hands the major stuff off to specialists, I think these kinds of skills are more important than sheer volume of medical knowledge.

    I've also seen PAs in the emergency room on a couple of occasions. Maybe they're becoming more common?

  8. Re:Artificial virus on First Anti-Cancer Nanoparticle Trial On Humans a Success · · Score: 3, Informative

    I didn't see any indication that the nano-particles are self-replicating, or capable of spreading from one person to another, so you'd need to inject each target individually. It's probably easier just to shoot them.

    Plus, if I understand correctly, cultural conceptions of race don't map very well to genetic differences. So finding a race-specific gene to target might be harder than you'd think.

  9. Re:A debugger for C++ on What Tools Do FLOSS Developers Need? · · Score: 1

    Is there any debugger that works well with STL? Visual Studio seems to be equally useless. I can sometimes guess at what's going on by staring at the cryptically-named private variables of STL containers, but to get good information you need to call methods on the containers. I've never had that work reliably in any debugger -- if anything, GDB seems to do a slightly better job of it.

    We're using VS 2005 at work, maybe 2008 is better?

  10. Re:Intel branding considered harmful on Core i5 and i3 CPUs With On-Chip GPUs Launched · · Score: 2, Insightful

    VT lets you run a 64-bit guest OS on a 32-bit host OS. It probably has some performance benefits, too.

  11. Re:US bullying and demanding other countries.. on Canada's Airlines Face a Privacy Dilemma · · Score: 1

    Interesting read. It sounds like there's a lot more to the Israeli process than just singling out people who are/appear to be Muslim or Middle Eastern for extra scrutiny. Their security screeners interview every single passenger -- which is what allows them to catch some like Anne-Marie Murphy, who at first glance doesn't show any sign of being a likely terrorist.

    They do single out Muslims as part of that process, and that makes sense from a security perspective, especially if you're Israel. But that's just one part of a security process that's vastly superior to anything I've seen in the US -- they would probably do better than us even without the racial profiling.

    Unfortunately, that kind of security requires a lot of manpower, and it requires skill and intelligence on the part of the people doing the screening. I don't think the US is interested in making that kind of investment -- security theater is cheaper and easier.

    If you just add profiling to a TSA-style security system, you might catch Abdulmutallab, but you still won't catch a terrorist like Richard Reid (a British citizen who didn't look Middle-Eastern or have a Muslim name) -- never mind someone like Timothy McVeigh. So I'm still not convinced that profiling on its own is worth the political and social cost.

  12. Re:US bullying and demanding other countries.. on Canada's Airlines Face a Privacy Dilemma · · Score: 1

    Political correctness prevents us from using common sense. 80 year old grannies traveling in wheel chairs should not undergo the same security checks as 18 year old middle eastern men.

    The problem with "common sense" is that it's often wrong. Case in point: the two attempted attacks on US flights since 9/11 were carried out by a British man and a Nigerian. Profiling Middle Eastern men wouldn't have helped in either case.

    In theory, profiling could be useful if it's done right. But it's more likely to be guided by prejudice than evidence. There are many simpler and less controversial measures that would be equally effective, but they don't make good security theater so nobody's talking about them.

  13. Re:Alternative? on An Open Source Compiler From CUDA To X86-Multicore · · Score: 2, Informative

    On top of that, the CUDA tools are still much better than OpenCL. OpenCL is basically equivalent to CUDA's low-level "driver" interface, but it has no equivalent to the high-level interface that lets you combine host/device code in a single source, etc. CUDA also supports a subset of C++ for device code (e.g. templates), which I don't believe is the case for OpenCL. CUDA also has a debugger (of sorts), profiler, and in version 3 apparently a memory checker. But I haven't been following OpenCL that closely lately -- it may be catching up on the tool front.

    If you're developing an in-house project where you have control over the hardware you're going to run on, or you know that most of your customers have Nvidia cards anyway, there are still good reasons to go with CUDA.

  14. Re:X11 has never been a problem. on X11 Chrome Reportedly Outperforms Windows and Mac Versions · · Score: 5, Interesting

    I've never had performance issues running X11 over a LAN. VNC, on the other hand, is noticeably sluggish (RDP seems to work well though). I don't run apps over a WAN very often, except for the occasional emacs session (which is a bit laggy but useable).

    But more importantly, the X style of remote access is much, much more useful than VNC/RDP. Remote apps integrate seamlessly into my desktop, instead of being stuck in a separate window. And multiple people can run remote apps on the same machine, without interfering with each other or a user who's physically sitting at the machine.

    VNC and RDP are useful hacks for systems that weren't designed for remote access, but they're no replacement for real network transparency.

  15. Re:Next model on Ultracapacitor Bus Recharges At Each Stop · · Score: 1

    Apparently it can go 3-5 miles on a charge, so it can skip stops. With that much range, I'd imagine only a few stops on the route even have charging stations.

  16. Re:Of course it is not O(1)! on Australian Researchers Demo Random Access Quantum Optical Memory · · Score: 1

    In practice, memory addresses on a given architecture have a fixed size (usually 32 or 64 bits), and the hardware can look at all the address bits in parallel, thus allowing O(1) access to any location in RAM. It's the same reason that you can add two integers in constant time.

  17. Re:GPUs need more RAM for us on NVIDIA Predicts 570x GPU Performance Boost · · Score: 1

    The newest Nvidia cards (compute capability 1.3) have double support. Memory is still a problem, though. The cards have a 32-bit address space with no paging/virtual memory, so I don't think they can go over 4GB, and in practice they aren't even up to that limit yet.

    They are very fast if you can deal with the limitations, though. At my company we're seeing 2-3x speedup on various image processing tasks with a modest amount of optimization. And that's compared to highly-tuned code running on quad-core CPUs.

  18. Re:Eight megs and constantly swapping on Emacs Hits Version 23 · · Score: 1

    Yes, emacs has a steep learning curve. I don't think even emacs fanatics will dispute that point. Ease of use and discoverability just aren't major priorities. The menus and toolbars are terrible -- I think most serious emacs users turn them off to save screen space. :)

    On the other hand, if you take the time to learn it, emacs is an incredibly powerful tool for editing text, and the more you use it, the more power you discover. For some people, it's worth the investment, for others not so much. I've been using emacs for 10 years and I still have lots to learn. If you like the idea of a text editor that takes a lifetime to master, emacs might be for you.

    I recommend O'Reilly's "Learning GNU Emacs" as an introduction. The edition I have is kind of out of date (I don't know if it's been updated since), but it's still a good primer for the basics.

  19. Re:About an Autobahn lane projector ? on Bike Projector Makes Lane For Rider · · Score: 3, Insightful

    The car may be parked, but the door is moving. ;-)
    If someone opens a door 3 feet in front of you when you're traveling 20-25mph, you don't have time to even apply the brakes in any vehicle. The difference is that roads with on-street parking are usually designed so that traffic is a safe difference from parked cars. But that's often not the case for bikes -- in many places marked bike lanes are right in the "door zone".

    In Massachusetts we recently passed a bike law that, among other things, makes it a ticketable offense to open your door in the path of a cyclist. On the other hand, there are some states where it's illegal for a bike to ride within 3 feet of parked cars.

    I personally try to avoid the door zone unless I'm moving very slowly, even though the law is on my side here.

  20. Re:In a word... on Obama Proposes High-Speed Rail System For the US · · Score: 4, Insightful

    If it was a good idea, the government wouldn't need to be involved.

    Exactly! I mean, you don't see the government getting involved in building airports or the interstate highway system, do you?

  21. Re:RTFS?? on EFF Says Obama Warrantless Wiretap Defense Is Worse than Bush · · Score: 1

    Under the Bush administration, the media was not allowed to show footage of dead soldiers *even with the consent of the families*. Obama has lifted the ban, but family consent is still required.

  22. Reuse of Existing C Code on Google NativeClient Security Contest · · Score: 1

    It seems like the real benefit is not performance, but the ability to reuse existing C/C++ code bases on the web. A lot of people are looking at making web versions of well-established desktop apps (look at photoshop.com, for example). Currently you have to do this in Javascript/DHTML or Flash, which means throwing out all the code from your desktop app and writing something new from the ground up, which hopefully ends up looking more or less like the original system. It's a huge amount of work, and you end up with two completely separate code bases to maintain.

    If you could just recompile all your C code and dump it in the browser, it's a huge win. Of course you'll still need to write a browser-friendly UI (and I'm not sure how that works in NaCl currently), but all your back-end code (like the filters in Photoshop) could be reused.

  23. Re:Adobe on Adobe To Open Real-Time Messaging Protocol · · Score: 1

    Out of curiosity, what do you use for ripping Hulu videos? I've tried a couple of the Firefox extensions for downloading FLVs, but never had much luck.
    My home system is on the old side, and although it can play DVDs, etc just fine with MPlayer, it often chokes on low-res flash videos.

  24. Re:If it were up to me, yes on $125 Million Settlement In Authors Guild v. Google · · Score: 1

    Copyright is a monopoly granted to authors *by the government*. So to argue that they should have no involvement is nonsensical. Without government involvement, there would be no such thing as copyright. Everyone would be free to copy your work without consequences (unless you forced everyone who received a copy to sign a contract first, and even then enforcement would be pretty difficult).

    Society grants copyrights as an incentive to create. Their purpose is to serve the greater good by encouraging creativity. Making money for the authors is just a means to that end.

  25. Re:This would be easy on Shuttleworth On Redefining File Systems · · Score: 1

    Try 'dpkg -L awesome-widget'.