Evolus Pencil on Debian Jessie

There is no Firefox package in Debian. You can read about it here: http://en.wikipedia.org/wiki/Mozilla_Corporation_software_rebranded_by_the_Debian_project

If you found this article, it means that you tried to install Pencil from officially provided deb-package (today it is http://code.google.com/p/evoluspencil/downloads/detail?name=evoluspencil_2.0.5_all.deb&can=2&q=label%3A2.0.5+OpSys-Linux).

Generally, dpkg can not resolve firefox-dependency. I do not see any advantages of Firefox over Iceweasel. Keep in mind, that you can have only one of that applications — Firefox or Iceweasel. So I don’t want to install Firefox. Instead, I updated my Iceweasel guided by http://mozilla.debian.net/:

You need to add the following entry in /etc/apt/sources.list or a new file in /etc/apt/sources.list.d/:


deb http://cdn.debian.net/debian unstable main
deb http://cdn.debian.net/debian experimental main

You can install it with the following commands:


$ apt-get update
$ apt-get install -t experimental iceweasel

After that, I avoid firefox dependency in Pencil by simple swapping firefox to iceweasel in deb-package next way (as described here http://forums.debian.net/viewtopic.php?f=6&t=106325):

Basically what you have to do is extract the files from the deb


dpkg-deb -R file.deb temp-dir

Then edit DEBIAN/control and remove the firefox occurrence from the dependency list.

After that you repackage the deb

dpkg-deb -b temp-dir file-mod.deb

Once you’ve done that the installation should go smoothly and you can see if it works and in case it doesn’t, what errors it gives you.

[EN] Typical workflow with GitHub on shared project

Intro

I found this very strange, that all around the Internet there are lot of articles on how to do some extended techniques using git. But nowhere can find short, simple and easy recommendations on how to use GitHub to work on shared project.

This article is effort to describe typical workflow on shared project using git on GitHub.
Читати далі

[UA] Типовий підхід до роботи над спільним проектом засобами GitHub

Інтро

В Інтернеті є багато статей про те як користуватися git, є дуже багато статей про різного роду складні і вичурні техніки використання git.

Але, чомусь, ніде не знайшов толкового, простого і зрозуміло розписаного підходу до роботи засобами git над спільним проектом на GitHub.

Ця стаття — спроба описати підходу до роботи засобами git над спільним проектом на GitHub.

Читати далі

[EN] Rendering DPI in Qt’s WebKit

250px-Compass_in_a_box.svg

Some time ago, I stuck on reading manuals trying to find correct and clear way to enlarge DPI of images rendered by WebKit (in Qt).

If you need to render HTML page in your Qt app, you can use widgets that use QTextDocument, such as QLabel and QTextEdit. But all of them support limited subset of HTML 4 and CSS 2.1 (Qt Project — Supported HTML Subset). But if you need to use some more complicated things (or even some typical CSS styles) excluded from that list, you should use WebKit (WebKit in Qt).

Читати далі

Компіляція Qt 4.8 під Лінукс

Вирішив трошки “get hands dirty”. Постійно використовую Qt та QtCreator як середовище для розробки як під Windows так і під Linux.

Цього разу вирішив зібрати бібліотеку Qt з вихідних кодів.

Читати далі