Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

Comment Re:File this under "NO SHIT" (Score 1) 264

assload of inline ASM code and direct pointer manipulation to access the underlying hardware

struct reg_map {
  uint32_t reg1;
  uint8_t regbank[32];
  uint32_t filler[7];
  uint32_t reg2;
} __attribute__ ((packed));

struct reg_map *device = mmap(blabla);

device->reg1 = 0x1234UL;
uint32_t data = device->reg2;

You should try it some time :)

Comment Re:Such is C (Score 1) 264

For example in Python the claim is that there's almost always only one way to do something, which either means ugly hacks are not possible, or else there's a lack of imagination amongst the programmers.

You're not being fair to Python.

Python's specific mantra (as listed in PEP 20) is: There should be one -- and preferably only one-- obvious way to do it. Emphasis mine.

Python, like any codebase, has a whole spectrum of "clean code" to "ugly hacks", but the richness of the language (and various libraries), provide a much richer foundation to let you avoid those ugly hacks.

(Unlike Perl, where the richness of the language somehow seems to encourage ugly hacks ^_-)

Comment Re:I'd expect lots of cross-over branding crap (Score 1) 208

LEGO faced a decision whether they would keep their mediocre sales figures

Actually, LEGO faced a decision whether they would go bankrupt or do tie-ins. The BI BI linked in another comment is excellent in showing what happened to Lego and their comeback.

All the crying about crappy tie-in Lego sets is hysterical hand-wringing. Yes, those occupy the majority of retail store shelf-space, but that only reflects the reteail store's decision. The key thing is that those tie-ins have not replaced other "pure" Lego sets in Lego's catalog. It's 2015, search online: there are many online shops and alternatives. Even better, there's Brickset, an amazing database of sets, which not only will show you the wide variety of still-in-production sets but also useful tools to help you find the cheapest set for cost-per-brick.

Comment Sounds like something out of Rucker's sci-fi (Score 1) 82

Rudy Rucker has some pretty crazy stories that always a blast to read (even though, or because you wonder what he was smoking when he wrote them).

One of those stories, Hormiga Canyon, has his protagonist build a computer cluster out of old cell phones, even using the phone's built-in voice recognition to control the cluster.

Does that count as Prior Art? :)

Comment Re:Comparing LAN to WAN Speeds (Score 2, Interesting) 124

Actually, while they indeed compared two computers on the same LAN, they also included a computer on the internet. Furthermore, One of Dropbox's touted features is that it's able to detect and use peers on a LAN to avoid the unneecssary round trip through the cloud. I don't know about Google Drive, but judging by the results I suspect they can do the same.

And, more importantly, they compared the other clients on the same setup.

How you got modded "+4 insightful" is beyond me.

Comment Awesome (Score 5, Interesting) 611

I used the SEO-deoptimized Awesome window manager. It is a tiling window-manager in the tradition of XMonad and Ion.

Since I started using it, I discovered how moronic is the concept of traditional window manager that allows overlapping windows: Either I want an app displayed, or I don't, and I certainly want an app to use as much screen space available automatically. I understand though that the traditional windowing approach is simpler to understand and see its point for the plebes ;)

I love its concept of "tags" instead of desktops, which gives me a powerful interface to mix and match which windows I want to display. I like that its "configuration" is actually a Lua program that allows me to precisely control how it behaves. I love that I can control it entirely through the keyboard. But I hate its stupid default keybindings: what's wrong with alt-tab nowadays?

Comment Creator != Teacher (Score 2) 74

Being a good teacher requires a particular set of skills I'm not sure Linus has, such as talking nice to idiots. (I kid! Treating (by definition ignorant) students like idiots is a fatal mistake). But seriously, being an expert in a field doesn't make you a good teacher, see: almost any college professor..

While this course will definitely get some name-brand recognition, I doubt it'll be better than a myriad other courses that exist already.

Comment Re:Many classes of non-human (Score 1) 115

It isn't useful on such a trivial example, but add in pointers...

int * func(char* a, char* b);
int *
func (char *a,
      char *b);

(or better elaborate examples I can't be assed to come up with for a /. comment) ... and the milliseconds and frustration saved in parsing function declarations starts to add up

Comment defected to Awesome (Score 1) 818

I've long been a KDE user, switched to it in the KDE 4.1 days and never understood why people were so unhappy about it. I found it to be slick and useful, despite the regular problems with the NetworkManager applet in Debian Unstable. I just used the Gnome applet instead, which fit without a hitch.

Last year, finally frustrated enough with juggling between the windows of my various terminals and editors, I chose to give a tiling window manager a good try, and spent some effort on the ill-named Awesome (seriously, how do you SEO that?).

Though it's certainly not aimed at Joe Six-Pack in that you actually have to edit the Lua-based config file to configure it yourself, I found it extremely powerful and perfectly suited to my needs. The "tag" system to organize your window is supreme in allowing me precise control over which windows to display.

I discovered that I didn't have a use for all the frills of Gnome and KDE, except for USB-key and Wifi network management which are both accessible from the CLI anyhow (see udisks and nmcli). ... does this mean I've turned into a greybeard?

Comment Re:Good Idea (Score 1) 127

I've been using CScope in Emacs for about a year (in fact, I added the entry to ascope.el on that wiki page you linked to), and I've recently switched to Semantic from CEDET and GNU Global.

Sadly, the Emacs Code Browser (ECB) linked to from the CEDET page seems to be broken for recent versions of Emacs and CEDET and unmaintained.

While I dislike Eclipse for bloat and difficult extensibility, I have yet to decide whether Emacs has caught up with it for code browsing.

Slashdot Top Deals

Mathematicians practice absolute freedom. -- Henry Adams