JetCracker

Life-time learner's blog

Tag Archives: Linux

[Ubuntu] [Solved] Locale problem

After installing Ubuntu server, you might encounter some problems with linux locale configuration. Usually you can see the following warning messages:

Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"

The output of the command “locale” may contain the following lines:

user@server$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Here is the solution that worked for me.

  1. Run command sudo apt-get install language-pack-en
  2. sudo dpkg-reconfigure locales
  3. Log out / log in.

If you want more details, see http://stackoverflow.com/questions/2527192/linux-locale-unset

Ctrl+Space doesn’t work in NetBeans [Ubuntu 12.04] [Solved]

I reinstalled Ubuntu on my laptop recently. Now I am using Ubuntu 12.04 LTS with Gnome 3 environment. Everything worked fine except one problem: the hot key Ctrl+Space (auto code completion) stopped working in Netbeans and other IDE. Of course, there was an alternative key combination Ctrl+’\’, but it is absolutely inconvenient! I’d prefer to kill myself looking for the solution on the Internet rather than to give in and use Ctrl+’\’. I’ve surfed the net for a while and found a solution to my problem!

The key combination didn’t work because some other program used it. To fix this I used gconf-editor.

  1. Open gconf-editor.
  2. Choose desktop -> ibus -> general -> hotkey.
  3. Open trigger parameter.
  4. Remove Ctrl+Space key combination from the list and press OK.

Now we can use Ctrl+Space without any problems. Let me know if you have any problems or/and better ideas. Good luck!
UPD: I returned to Ubuntu 11.10, cuz’ 12.04 turned out to be a total rubbish. I’m just wondering if Ubuntu 12.10 is any better…

What’s wrong with my PC?

Whats wrong with my PC?

The activity of my CPU cores are in antiphase…

MPI: Calculating sum 1/n! in parallel

Hello.
I’ve spend several hours to understand how to programme in MPI and how to calculate the sum of 1/n! in parallel (it’s my task from university). (By the way, why do I have study this shit? I don’t think I will be working in the field of parallel/distributed computing.)

But finally I wrote a decent programme, which showed not bad results. And I am very excited to share with you! Read more of this post

Project Management with GNOME Planner

GNOME Planner is an opensource project management tool. Its goal is to be an easy-to-use no-nonsense cross-platform project management application.

Planner is a GTK+ application written in C and licensed under the GPLv2 or any later version. It can store its data in either xml files or in a postgresql database. Projects can also be printed to PDF or exported to HTML for easy viewing from any web browser.

It is really easy to use and very useful tool. Try it!

Screenshots

Very interesting feature is a resource usage:

More than that, you can export your project timeline into html!

See current version: http://danon.no-ip.info/reshaka/

How to install

In Ubuntu it is very easy:

$ sudo apt-get install planner

Good luck with your projects!

Anton Danshin

[Unix C] ID implementation

Hello.

Last time I posted my implementation of linux command echo. Now I’d like to introduce my implementation of id (which was another task from my IT teacher). This unix-shell command is rather simple and its task is to print real and effective user and group IDs.

Firstly, let’s see how to obtain current user’s ID and group ID. Take a look at the folowing code:

#include <stdio.h>
#include <unistd.h>

int uid, gid;

int main(){
    uid = getuid();
    gid = getgid();
    printf("UID: %d; GID: %d\n", uid, gid);
    return 0;
}

But functionality of ID command in Linux is way more complex! It took me almost 3 hours to implement all it’s features. Read more of this post

[Unix C] ECHO Implementation

When I was at my 2nd year, we studied architecture of operating systems. Our IT seminars were devoted to writing C applications for Linux. The first programme that we had to write was a simple terminal command “echo”. I’ve spend 2 hours to do it! Read more of this post

Blogilo

Hello!

I’ve found a very powerful application for blogging under Linux.

Blogilo is a Free/Open Source Blogging client, focused on simplicity and usability.

Blogilo means “Blog Tool” in Esperanto.

It was formerly known as Bilbo, And at 18-Sep-2009, renamed to Blogilo due to a trademark issue.

Currently featured:

  • A full featured WYSIWYG editor + An HTML editor
    Previewing your post with your blog style! like when you are visiting it at your blog.
  • Support for Blogger1.0, MetaWeblog, MovableType (WordPress supports All of these!) and Google GData (used on Blogspot.com blogs) APIs!
  • Support for Creating/Modifying/Deleting posts.
  • Support for creating drafts and scheduled posts!
  • Support for uploading media files to your blog (Just on supported APIs e.g. MetaWeblog and MovableType)
  • Support for Fetching your recent blog entries.
  • Support for adding Images to post from your system. It will upload them on
  • Submitting post to blog (Just on supported APIs e.g. MetaWeblog and MovableType)
  • Support for saving local entries before publishing.
  • Saving your writing copy to prevent data loss, at configurable intervals.
  • Internal auto spell checker. (KDE spell checker used so most of languages are supported)

Screenshots:

image image

See more screenshots here.

Download page: Blogilo

Official web-site: blogilo.gnufolks.org

Thank you for visiting our blog. Have a nice day!

English Tek

FAIL

 Не удалось установить обновления

Обновление было отменено. Ваша система может оказаться в непригодном для использования состоянии. Сейчас будет запущен процесс восстановления (dpkg –configure -a). OK?

Вот такое сообщение мне выдала Ubuntu… Аж мороз по коже…
Жмакаю ОК.

Installation finished. No error reported.

The question is, what the fuck???