Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Google Apps Suffering Partial Outage

cras Two clouds with replication! (150 comments)

Sorry for advertising my own product, but pretty much on topic here. :) Buy two (cheap) servers from completely different networks / data center providers, and keep them replicated with http://wiki2.dovecot.org/Replication. You can set up MX records to both of them, and use DNS to switch between the replicas for IMAP/POP3 as needed. Either one of the data centers can die and your mail won't stop working. Or keep one of the replicas in local network and your mail keeps working even if your internet connection dies.

(Then you'll only need to hope that there are no software bugs bringing down everything.)

about a year and a half ago
top

Let Them Eat Teslas

cras Re:Collateralized vs Non-Collateralized Loans (461 comments)

Dunno how it works in Germany, but I think the people should be able to decide for themselves what kind of education they want, whenever they want (+- a few years). And maybe more importantly: If you decide wrong at some point, you should be able to switch if you're good enough. I think the way it works in Finland is good enough. I dropped out of high school (wanted to code all nights), finished it 7 years later when I had more motivation, had no problem getting into university trying out something new interesting I re-learned at high school (biotech!), then deciding it wasn't really worth the trouble and switching back to computer science and getting a BSc out of it. The high school and college stories I hear from the US are pretty depressing usually.

about a year and a half ago
top

The Chromebook Pixel Is Real, and Expensive

cras Re:If you HAVE to have a Retina/Pixel display... (392 comments)

My laptop comparisons nowadays:

Apple laptop:
MagSafe

Non-Apple laptop:
Non-MagSafe

Until some laptop has MagSafe or similar I won't even consider it. I remember too well when I used to trip over the power cords and drag my laptop on the floor. Or break the power plug because it got twisted when moving the laptop in a bad direction. Or stepping on the power plug and breaking it. (Yeah, I don't treat my laptops all that well.)

about a year and a half ago
top

Best Trek Captain?

cras Re:Captain Zlog (618 comments)

I thought it was somehow referring to the "Captain's log" recordings.. Yeah, haven't watched that much star trek.

about 2 years ago
top

GCC Switches From C to C++

cras Re:Classes/Templates are not a magic bullet ... (406 comments)

Any time you join an existing project you have to learn how to use its libraries, this is no different. Yeah, maybe you'll save a few hours of learning time if some of it is standardized by the base language. If that becomes a real issue with someone you probably shouldn't have hired him/her anyway.

more than 2 years ago
top

GCC Switches From C to C++

cras Re:Classes/Templates are not a magic bullet ... (406 comments)

Well, that kind of GENERATE_SORT() seems very ad-hoc way to do it and very specific to a sort.. My method looks more like this (dynamically growing type safe arrays):

#include "array.h"
int foobar_cmp(const struct foobar *f1, const struct foobar *f2); ..
ARRAY_DEFINE(foobars, struct foobar);
struct foobar f; ..
array_init(&foobars, 16);
array_append(&foobars, &f); ..
array_sort(&foobars, foobar_cmp);

I don't think that's much different (or more difficult) from how you'd do it with C++ templates. Of course implementing array.h is easier with C++.

more than 2 years ago
top

GCC Switches From C to C++

cras Re:Classes/Templates are not a magic bullet ... (406 comments)

It's also very hard to write type safe code properly in C. Just look at the classic example of the unsafe qsort versus the safer and faster std::sort.

You can do all kinds of nifty stuff with macros and gcc/clang extensions to provide type safety to C. Yeah, if you don't already have a library for that it can be a bit difficult to write one (or find one you like). But once you have the library it's very easy to write (mostly) type safe code with C. For example I have a type safe array_sort() in C.

more than 2 years ago
top

Malicious QR Code Use On the Rise

cras Re:QR codes don't all have destinations (234 comments)

But every implementation I've seen of a QR code reader in Android and IOS also gives you the option to inspect the content visually before acting on it. They ask if you want to proceed.

Of course one could argue the click-thru generation does not know enough to evaluate the content, but then these are the same people that no amount of malware/antivirus software can protect.

Is the confirmation something like OK/Cancel? I also tend to click OK buttons without hardly even reading them. That's why potentially security sensitive questions shouldn't have such simple buttons, but rather two (radio?) buttons that require you to read (and hopefully understand) what you're doing, such as: "Replace network settings from QR" and "Keep the existing network settings".

about 2 years ago
top

Ask Slashdot: Handling and Cleaning Up a Large Personal Email Archive?

cras Re:Isn't there a way... (167 comments)

Yes, there are some advantages to using SQL database, like I said.. But I highly doubt "huge speed advantage" is one of them, unless you compare to a really badly set up system. I know people have switched from DBMail to Dovecot simply because Dovecot is so much faster..

more than 2 years ago
top

Ask Slashdot: Handling and Cleaning Up a Large Personal Email Archive?

cras Re:Isn't there a way... (167 comments)

Email isn't stored in SQL, because typically it's rather pointless. Full text search indexing doesn't require SQL, and it's more efficient without SQL anyway. There are some good use cases for storing emails in SQL database, but efficiency isn't one of them.

more than 2 years ago
top

The Rise of Software Security

cras Re:You're all wrong, and will be until about 2022 (79 comments)

I wasn't planning on fixing all of security problems, but the typical case of clicking open random email attachments or running random programs from internet should and could be made safe, while still keeping the user interface user friendly. Those are the reasons for most of today's security problems.

about 3 years ago
top

The Rise of Software Security

cras Re:You're all wrong, and will be until about 2022 (79 comments)

SELinux doesn't address the problem. I agree with grandparent, although I think the focus should be more about on the UI side. The really low level implementation could perhaps be addressed with SELinux, but it's not a practical solution for any GUI app currently. For example how would you prevent Open Office from deleting everything in your home dir with SELinux, while still allowing it to read and write arbitrary documents? Yeah, you can't unless you manually go changing the labels every time you want to write somewhere.

I thought about how to implement an actually secure operating system in 2004, where you could safely just run any random program from internet, but no one cared to listen and I moved on.

about 3 years ago
top

I do my best coding after...

cras Beer switches on my social mode (222 comments)

I lose interest to code after even a single beer. Beer makes me want to talk to other people (even about coding). It makes me enjoy some TV shows/movies more. But what's the point of coding drunk? Seems like a waste of beer.

more than 3 years ago
top

Linux Gets Dynamic Firewalls In Fedora 15

cras Whoa, you can dynamically open ports! (176 comments)

The apps can tell the firewall to open up a port for a period of time and then shut it back down.

I mean, it sounds almost like they could listen() a specific port, and once they're done with it, they could close() it! If all applications could always do this automatically, I think we could actually get rid of manual firewall configuration entirely!

more than 3 years ago
top

Apple To Distribute OS X Lion via the Mac App Store

cras Re:Macs will be a closed platform in the end (517 comments)

So .. If you can only run Mac apps from the Mac app store, how do you develop the Mac apps in the first place, if not using your Mac?

more than 3 years ago
top

Asia Runs Out of IPv4 Addresses

cras Re:Then (321 comments)

Oh, just read 0olong's comment. That explains it then. Only native english people and dutch have this problem. :)

more than 3 years ago
top

Asia Runs Out of IPv4 Addresses

cras Re:Then (321 comments)

Obvious non native English speakers do not understand that "then" is a form of time and "than" is a form of consequence.

I'm pretty sure it's the native speakers who have the most trouble with this. Many foreign countries teach English primarily by reading and writing it. Then the than/then difference is obvious. It's only when you learn English by listening that you have trouble with this. I only started having these kind of accidents once I started thinking/speaking fluently in English (not just then/than, but things like file/fail).

Oh yes, I am a native Dutch speaker.

Maybe they teach you English differently down there than in Finland :)

more than 3 years ago
top

Univ. of Illinois Goes War-of-the-Worlds On Students

cras Re:INterface guidlines (168 comments)

Look at the first "Look and feel" dialog. What the hell is that "cancel" button doing in there? There are two choices. One of them is already selected, but the OK button is greyed out. I think, since I've never used Vista.. Even if that greying out means it's simply not focused, what is the purpose of the OK/Cancel there? Does the cancel mean the same as the second option? Does it mean it's going to ask you again the next time? It should be clearly said there, not left to user's guesstimation. I guess it's an improvement, but that page is definitely not something that should be pointed to as an example of good UI design.

more than 3 years ago

Submissions

Journals

cras has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?