Formatting Your C++ Code the Easy Way

Everyone has his own coding style and dislikes everyone else’s. When you have to work with code written by other people, there’s a ton of it, and their coding style differs from yours in many ways, you have to do something.

As for Psi project, we in fact have some set of code style guidelines. But still sometimes we occasionally are looking at something that’s noticeably differs from our sense of perfection.

That’s where code beautifiers come into play.

(more…)

Qt Bundle for TextMate: Prerelease

UPDATE: I’ve put some stuff from my bundle to the official TextMate Bundle Repository. Now you could skip all this stuff and just use the GetBundle Bundle.

Long time, no posts, and truth to be said, I’ve been secretly working on Qt Bundle for TextMate all along, and now you can have your hands on it. Today I will discuss how to install it on your Mac. Description of what it actually does will follow, so explore it on your own and make suggestions.

(more…)

Time for Markdown

Phew! I just finished converting all my posts from HTML to Markdown format to get a grasp of how the things should be done and it was really inspiring.

What is Markdown? It’s yet another markup language for the web which has very nice syntax. With its help now I finally can read my blog’s posts’ text paragraphs with tons of links. Also, it’s possible to use a full power of HTML markup in Markdown — that’s very useful too. Now I like it even more than Textile.

Also, there’s SmartyPants — tool to enhance typography of web-published documents. Give it a try.

UPDATE: Just noticed a minor nuisance: if you’re using reference-style links, link labels for all links used prior to WordPress’ <!--more--> tag should also be placed prior that tag. By now I should’ve corrected all errors. BTW, because Markdown allows for seamless inclusion of HTML you don’t have to convert all old posts to Markdown format as I did — everything would just work.

(more…)

April Fools

Just some funny chats that happened on april fools day in devel@conference.jabber.ru. It’s in Russian, so if you can’t read it — just move along.

(more…)

Using Nick-completion in Psi GroupChats

If you’re chatting in groupchats quite frequently, nick completion is an invaluable feature. The most useful shortcut is Tab-Tab; when used on beginning of new line or after a step it inserts the nickname of the person who last addressed you directly. You can then continue to press Tab and it will loop on the nicks of all the people in the room.

(more…)

Productive Forum Posting

If you ever actively participated in heated forum debates, probably sometimes you ended replying to many points in original post, quoting bits of text. And then you sensed despair, because it was so hard to distinguish your text from original author — it all looked the same!.

Enter the world of productive forum posting.

(more…)

Death to the Icons!

It was a good week: public Psi 0.11-beta1 release happened recently, I was able to improve some design bits of my blog, also eliminated the long-standing insect that was hurting my eyes and stopping from using the development branch in day-to-day life. Now, the insect’s dead, and I’m happily running 0.11-beta1 now.

The ones who have already tried Psi/Mac 0.11-beta1 probably noticed the sudden appearance of many little bothersome icons in all kinds of menus where they weren’t present in 0.10: icons in context menu, application menus and even in the menu bar itself! So it was decided that icons should not be able to live any longer.

(more…)

iCurve Goodness

Today was a great day. Finally I was able to get my hands on wonderful iCurve laptop stand. It looks great. It feels great. It is great.

(more…)

Improving Chat Log

During last two weeks I’ve been secretly working on porting chat log widget to new code base. And alongside with improved code structure I’ve also been able to improve its usability.

(more…)

The King of Dirty Hacks

Sometimes in C++ you may feel the need to write a piece of code that uses private functionality of third-party classes. This could be very noticeable with Qt, where you have very little control on included classes, and asking nice Trolls to include functionality you need could take some time, and the only alternative would be duplicating half of Qt-code and modifying class names. But there’s a neat trick that was advised to me by Justin. Interested? Read along.

(more…)

Next Page »