Forgot your password?

Comment: Re:Situation is a Shambles (Score 1) 239

by swilly (#46711313) Attached to: Heartbleed OpenSSL Vulnerability: A Technical Remediation

This has little to do with any C-specific. If you were re-using a buffer in some managed runtime, you would still see the same problem.

Most managed runtimes perform bounds checks, C does not. As a result, the same bug couldn't happen in Java or C#. Of course, bounds checks come with a cost, and one that most people wouldn't want from low level code, which means that C/C++ developers must be extra vigilant.

Comment: Re:I found they were for me (Score 1) 161

by swilly (#46318325) Attached to: The Neuroscience of Computer Programming

The problem is probably with lexical analysis, when you break the stream of sounds or letters into words. When a language is fluently spoken there are few if any pauses between words, your brain adds those. It's possible to be familiar enough with a languages grammar and vocabulary to read without difficulty, but not yet familiar enough for your brain to subconsciously break sounds into words.

Comment: Re:In the name of "Allah" ... (Score 5, Interesting) 79

by swilly (#45592543) Attached to: 1.5 Million Pages of Ancient Manuscripts Online

The Library of Alexandria caught fire several times.

The first may have been when the Romans conquered Egypt. The Romans burned their own ships and much of the city caught fire, and the library may have been partially destroyed at this time.

A branch of the library may have been burned with the destruction of pagan temples when the Roman Empire outlawed paganism, but nobody knows how many (if any) books were lost. The main building was apparently not affected. And by the time paganism was made illegal in the Roman Empire, a concerted effort had been made to have copies of important documents in other libraries, including the worlds largest library at Constantinople. These other libraries were not burned (though it's entirely possible that some books in them were destroyed).

And it was finally destroyed by the Muslim army. There is a story that the Caliph ordered the burning of books stating that if they contradicted the Quran they are heretical, and if they did not then they are redundant. There are no contemporary sources for this story, so most historians doubt it. Whether or not this burning was deliberate, the destruction was complete and library was lost to history.

Comment: Re: Historically inefficient OS is Inefficient (Score 1) 558

by swilly (#45195341) Attached to: Why Does Windows Have Terrible Battery Life?

What model Zenbook do you have? I have a UX31A, and Linux gets about the same battery life as vanilla Windows 7, which is much worse than Windows 7 after installing all the ASUS drivers. I suspect that ASUS is doing something proprietary in regards to power savings, and I would love to get Linux Mint to have similar battery life.

Comment: Re:2013 Year of the Linux Network (Score 4, Informative) 192

by swilly (#45185181) Attached to: Your Next Network Operating System Is Linux

sudo rm -rf / won't delete anything.

POSIX rules state that you cannot remove any parent of the current directory. The GNU rm command doesn't fully check this, but it does make sure that you don't remove / or .. (but if you give the path to any other parent directory, it will let you remove that). Try it for yourself and see (in a VM of course).

Comment: Just lost my first SSD (Score 1) 512

by swilly (#44837759) Attached to: SSD Annual Failure Rates Around 1.5%, HDDs About 5%

Talk about timing. I'm right now recovering data from my first SSD failure (an almost three year old OCZ Vertex 2). As failures go, this couldn't have gone better. I'm able to read the drive, but I can't write to it. I wish all drive failures were this nice. I'm having Newegg overnight me a Samsung 480GB SSD as a replacement. I should probably think about replacing the two SSDs that are older than the one that failed, just in case.

Just this year I've lost two 1TB hard drives, and one of them somehow corrupted my (thankfully backed up) RAID 5 making it unrecoverable. So, I decided to replace the older consumer grade 1TB drives with 3TB WD Red drives (supposedly enterprise grade), and what do you know? One of them is dead on arrival. WD replaced it with a "recertified" drive, which is annoying, but at least it works.

I also lost a Blu-ray drive, so it hasn't been a good year for my storage devices, but so far my anecdotal experience has SSDs with better reliability than mechanical drives. YMMV.

Comment: Re:An Honest Question: (Score 1) 142

by swilly (#44414147) Attached to: "Feline Herd" Offers Easier Package Management For Emacs

What's the EMACS' relevance nowadays?

Sometimes a task is too hard and repetitive in a traditional editor, but too trivial to require a script. For such tasks, an editor with good macro support is a must, and nothing comes close to Emacs or vim for macro support.

I still prefer writing code in Emacs, though some tasks are much better done in an IDE. I tend to use both, and I have Emacs and the IDE detect when a file has changed and revert to the filesystem version. This way I can switch between them depending on what I'm trying to do.

Comment: Re:Yawn (Score 1) 142

by swilly (#44413565) Attached to: "Feline Herd" Offers Easier Package Management For Emacs

Okay, I have a really stupid question - what do Emacs aficionados use for the "Meta" key?

Emacs will usually use either the Super key (usually called the Windows key) or the Alt key with the Esc key as a fallback (Esc doesn't use cording). I prefer the Super key but in the last few years distributions have been reserving that key for the window manager, so they intercept the key before it gets to Emacs. The real problem with Alt is with the terminal, where Alt+F opens the file menu instead of moving forward one word, which forces me to turn off the menu bar to use Emacs mode in bash. It isn't a big deal, and it is a lot easier to adjust to than wrestling with the WM and xmodmap.

Alt isn't the ideal key to be chording, but after a little practice it becomes second nature. I have to say, I have seen people buy vi friendly keyboards with the Esc key above the tab, but I've never seen anyone actually use Ctrl-[ when they didn't have to.

Comment: Re:Garbage Collection is not O(GC)=0 (Score 1) 106

The original claim is that performance is worse by orders of magnitude in a memory constrained environments. It doesn't sound like the mobile optimized GC is orders of magnitude worse than a desktop optimized GC, so in a memory constrained environment the mobile GC would perform better than the desktop GC.

Of course, the author doesn't provide any numbers, so all we have to go by are his expertise and that his arguments are reasonable. Further research will be necessary.

Comment: Re:Manufacturers seriously missing the point (Score 1) 217

by swilly (#44172899) Attached to: AOC's 21:9 Format, 29" IPS Display Put To the Test At 2560x1080

In 1985 I liked a 19" monitor because of the amount of information could be relayed. 1280x1024 was huge compared to the 13" monitor I had (800x640 or whatever).

Unlikely. VGA was introduced in 1987, and it only offered 640x480. Perhaps you meant to type 1995?

We are Microsoft. Unix is irrelevant. Openness is futile. Prepare to be assimilated.