Donate to support Ukraine's independence.

14 Jun'13

Pro Git

Over years, I used Git a lot but I can hardly name myself a proficient git user. More or less it can be due to lack of learning discipline. I never learned Git specifically.

Recently I started to notice that most of the problems I’m trying to resolve were successfully resolved before. And it’s a good fit for my blogging ‘deep dive into linux’ topic to write a post or two about my git experience and tips.

Continue reading

Category: 

14 Jun'13

Moving from Jekyll to Octopress

Hi again. Today I can proudly say that I was productively procrastinating! As you might know, my “Deep dive into Linux” journey has just began and today it saved me at least few hours.

While cleaning up my 1TB drive residing inside my desktop to make sure that all junk is removed whereas all important files are properly backed up to the cloud, I noticed that inside my old website folder there were at least 7 backup archives which were almost identical. They were consuming a lot of space and since going to the university I’ve being actively using …

Continue reading

14 Jun'13

Things that drive me mad about Linux

I was having many talks with Linux aficionados who argued that my only obstacle on the way to Linux was lack of knowledge and experience. While I agree for 100% with their opinion, I have few more things to deal with in Linux:

Multimedia

Everyone knows that multimedia support in Linux is … how to put it mildly, inferior.

First of all, Skype sound quality. I desperately need good sound and reliable connection.

Next, for my surprise, I’m using multimedia player quite often. On Windows, my player of preference is PotPlayer/KMPlayer. Unfortunately, I haven’t found anything similar to …

Continue reading

Category: 

14 Jun'13

mkpost for Jekyll

In order to speedup post creation, I found and improved a simple Ruby script:

#!/usr/bin/ruby
require 'date'
require 'time'

puts 'What would you like to write about?'
article_title = gets
slug = article_title.downcase.strip.gsub(' ', '-')

current_date = Date.today.to_s
current_time = Time.now

filename = current_date + '-' + slug + '.md'

File.open("_posts/"+filename, "w") do |post|
 post.write("---\n")
 post.write("layout: post\n")
 post.write("title: #{article_title}")
 post.write("date: #{current_time}\n")
 post.write("---")
end

puts 'Created new file here: _/posts/'+filename

# fire up sublime text
system("subl '_posts/#{filename}' &")

Continue reading

Category: 

14 Jun'13

VIM %crazy%

Well, I have a very simple use-case: I just copied a chunk of text and it contains line numbers. Can vim handle it??

Easy:

:%normal 2x

Continue reading

Category: 
vim

14 Jun'13

Jekyll Web Log

Hi folks.

From the very beginning, I’d like to say that I’m an avid Windows user. RMS thinks that we shouldn’t give away freedom in exchange for convenience. Truthfully, I had to fuck a lot with my Ubuntu installation to work properly, to stop hanging on boot, shut down in less than a minute, use two GPUs correctly, stop eating my battery worse than a Hulk and … I think, usual people deserve this convenience NOT TO DO IT EVERY TIME THEY BUY A PC!

But still, I was feeling pretty miserably to fail short with my Linux …

Continue reading

Category: 

14 Apr'13

Debian and Ubuntu server locale and encoding

I recently had “fun” supporting server installation of software that needed locale set properly.

In Debian, you can just use

dpkg-reconfigure locales

and the console GUI will pop up.

In Ubuntu server, you’ll have to make more steps:

http://askubuntu.com/questions/89976/how-to-change-the-default-locale-in-ubuntu-10-10-server

https://debian.pro/503

https://help.ubuntu.com/community/Locale

And make full use of UTF, please: http://docs.python.org/2/library/locale.html

Continue reading

02 Apr'13

Grave accent in C# class names

For generic interfaces, the name parameter is the mangled name, ending with a grave accent (`) and the number of type parameters. This is true for both generic interface definitions and constructed generic interfaces. For example, to find IExample<T> (IExample(Of T) in Visual Basic) or IExample<string> (IExample(Of String) in Visual Basic), search for “IExample`1”.

From Type.GetInterface Method (String) MSDN reference page

Continue reading

30 Mar'13

Migration off GMail as part of “spring cleaning”

UPD Apr ‘14: Awesome setup scripts got featured on HN.


UPD Mar ‘14: How to run your own e-mail server with your own domain series on Ars Technica: part 1, part2, part 3, part 4.


As part of “spring cleaning”, Google Reader was scheduled to be shut down.

FBI  is working with “members of intelligence community” to craft a proposal for new Internet spy powers as “a top priority this year.”

Well, I now have a perfect reason to draft my personal roadmap for this year and to list tools I’m going to use.

http://library.linode.com/email …

Continue reading

Category: 

06 Mar'13

ASP MVC Pipeline

Best explanation of model binding, initialization and filters execution order.

Continue reading

Category: 
← Previous Next → Page 3 of 10