Not everyone writes drafts for his Twitter posts. It seems silly even to do this.

But for the people who don't think writing drafts is silly (and use Vim), I wrote a few lines of Vim script that will help you keep your lines just short enough.

Put these lines in your .vimrc file and start writing. You should change the filename to the name of the file that you write your drafts in. This is code comes without any warranty.

" Call the function that will highlight the lines that are too long.
au BufNewFile,BufRead /home/peter/doc/twitter.txt call TwitterLineLengths()

highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9

function! TwitterLineLengths()
    3match OverLength /\%141v.\+/
endfunction

Code based on code from Stackoverflow.

These days many videos are published to the internet by people using cellphones. Many of these videos have crappy sound, because of how these cameras are built and the way these cameras are used.

The microphones are not at the best place for recording the sound and because the volume is too low, there is much background noise, because the volume needs to be increased.

With the Flash player based videos we are dependent on Adobe (for Flash), the video owner or the video website too give us content or technology that lets us improve the video.

In the future with the new video tag it could (or maybe should) be possible to have extensions that will filter the audio of video streams on a page.

Would it be possible to create extensions in Firefox that will filter the audio of video's to make the sound better?

Sometimes I have the following ideas about blogging and other writing for the web. The thing is that these ideas will not apply in the same way to other people. I think some of the points can be generalized for other people and applications.

Notes

  • These blog posts on this website are written with Vim and a few scripts through a SSH connection to my server.

  • I would like to use Vim to edit my blog posts.

  • Vim should be able to edit a URL and use GET and PUT to read and write the page.

  • Ideally the GET will only supply the content of the page; the navigation surrounding the content should be added later by the blogging software.

  • Starting a new blog posts should be as easy as POSTing to a URL.

  • The same as I use Vim for the text parts of the website, I want to use Gimp to be able to edit pictures.

  • The text of the blog posts can be written in HTML or Markdown (which is what I use at the moment).

  • Navigation should be added later. Content can be edited. The user doesn't have to update headers and footers for each page.

General points

  • All programs should be able to GET, PUT, POST to URLs. DELETE could be implemented in the browser.

  • HTML will stay the main language for publishing content on the internet.

  • The website should add the headers and footers for the user.

A few months ago I said that it's not possible to spam Twitter. This is because you can choose who you follow. And people can't send messages to you if you don't follow them. This makes Twitter unspammable.

The above is still true, with the exception that with search.twitter.com people will find messages of people that they don't follow. This problems becomes bigger when people will start searching for their @usernames. If someone now tweets with a message containing your username it will appear in your client.

Today I say another way to make the same thing happen. Twitter generates a list of trending topics in the sidebar. These topics are links to the search engine. By clicking one of these links you will get a list of all tweets containing these search terms. The way to take advantage of this is to pick a word from the trending topics and write a tweet with those words. It will now appear in front of a lot of people.

Also see Mashable.

I planted my first vegetables today in the garden. Eight potatoes.

Eight potatoes

View archived entries