Microsoft proposes S&M

Just learnt about Microsoft’s S&M proposal. Horrible naming — almost like dark humour for journalists.

S&M vs. SPDY: Microsoft and Google battle over the future of HTTP 2.0

Lumbered with the truly awful name of HTTP Speed+Mobility, or HTTP S&M for short, Microsoft’s vision of HTTP 2.0 is mostly very similar to SPDY (and it admits as much on the Microsoft Interoperability blog), but with additional features that cater towards apps and mobile devices. “The HTTP Speed+Mobility proposal starts from both the Google SPDY protocol and the work the industry has done around WebSockets,” says Jean Paoli from the Microsoft Interoperability team. WebSockets in this case refers to a feature in HTML5 that allows websites (or indeed web apps) to open up bidirectional, real-time channels with remote servers over TCP, which is something that neither HTTP nor SPDY is capable of.

In short, the entire purpose of SPDY is to speed up the web — which isn’t a bad thing, and nor is it surprising, considering Google’s fanatical penchant for speed, but Microsoft is basically saying that speed isn’t everything. With HTTP Speed+Mobility, Microsoft is saying that we should also take into account factors such as battery life and bandwidth cost, both of which will play a big part in Windows 8 in specific and mobile computing in general.

Source: Extremetech

Not exactly new news but still worth watching.

How to make Terminal start faster

This always annoys me. Mac OS X’s Terminal’s prompt not loading promptly.

Sometimes it is something to do with Apple system logs. You can clear them through this:

sudo rm -f /private/var/log/asl/*

It works for me and I’m a happy user again, now the prompt in Terminal starts quickly when I start a new Terminal tab. Hope it helps.

How to log slow MySQL queries

I haven’t been generous enough to spend money on higher RAM for my blogs. I started to notice slow downs in the blog recent, particularly caused by a particular plugin that does related posts. I found out by checking on slow queries log. Here’s how to get MySQL to log slow queries:

If you are using Ubuntu of Debian-based operating systems, it’s found in /etc/mysql/my.cnf. You may need to use

[code lang=”bash”]sudo nano /etc/mysql/my.cnf[/code]

Press CTRL + W, that’s search in nano. Find “slow” for the section for logging slow queries.

[code lang=”bash”]# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes[/code]

I uncommented “log_slow_queries” and “long_query_time”. I put long_query_time to 8. That requires a bit of experimentation. It depends on your environment.

I run the following command to check the slow queries:

[code lang=”bash”]sudo cat /var/log/mysql/mysql-slow.log[/code]

After you change the configuration in my.cnf, you need to restart. You can do so using:

[code lang=”bash”]sudo /etc/init.d/mysql restart[/code]

Hope it helps.

How to make Firefox address bar faster

Firefox’s address bar, also known as the Awesome Bar, stores all sorts of awesome information in a SQLite database. The SQLite database slowly starts getting fragments and the Awesome Bar just isn’t as awesome if it gets all laggy. To solve this, you can vacuum the SQLite database that Awesome Bar used.

Go to Tools, then Error Console. And copy the following:

[code lang=”php”]Components.classes[ “@mozilla.org/browser/nav-history-service;1” ].getService( Components.interfaces.nsPIPlacesDatabase ).DBConnection.executeSimpleSQL( “VACUUM” );[/code]

And paste and click on Evaluate:

Vaccuming Firefox in Error Console
Vaccuming Firefox in Error Console

The browser probably freezes for a few seconds and the address bar feels faster.

[via MozillaLinks]

Opera 10 released

Opera 10 has been released, with some turbo charge technology. Opera Turbo, a new compression technology that solves the pain of slow connections.

The craftsmanship under the hood

Browsing speed is a combination of many factors. We fine-tuned our overall speed, making Opera faster and smoother on resource-intensive pages such as Gmail. Opera 10 is 40% faster in page loading than Opera 9.6 … and that is before you activate Opera Turbo. Opera is designed not only to be light and fast, but also smart. Our adaptive memory management is optimized to work with your machine, conserving memory if your computer has less RAM and utilizing more memory to enhance performance if your computer has memory to spare.

Meet Odd & Even who have been working dag og natt to help Opera fine-tune Opera Turbo before the release of Opera 10.

Odd & Even Compressing Web Pages

Get opera at http://www.opera.com/

How to speed read

In this short video Kris Madden shows you how to read faster. The trick, he says, is to repeatedly say “AEIOU” or “one, two, three, four,” as you read. This prevents you from vocalizing the written words with your larynx. Once you train yourself, you can stop uttering “AEIOU,” and you will be able to read much faster than before, or so he says. (from BoingBoing)

How to speed read

Also check out Derren Brown’s blog.

Firefox 3.5 Beta 4 significantly faster in Linux

Let’s face it, Firefox isn’t exactly the fastest browser around. In Linux it’s worse, in fact, Windows Firefox through Wine in Linux is faster than Linux Firefox.

Tuxradar benchmark Firefox 3.5 Beta 4’s performance and the results are very optimistic.

I use Firefox and Opera in Ubuntu and I prefer Opera in terms of speed but it just never felt quite like a native application in Ubuntu. Firefox just doesn’t appear as responsive sometimes.

How fast can 24 Samsung SSDs in RAID perform?

These guys got 24 SSDs from Samsung and look at what they did with them! Awesome. A 6 TB rig with RAID. And it hits 2 GB/sec. Another awesome for you?

We took 24 256GB Samsung MLC SSD’s and put them in RAID to make this awesome computer! See how we did it, and what the results were!

And BTW this is great viral marketing too. Good choice of handing out the SSDs to these guys, Samsung!