Archive for November, 2013

Stop Thunderbird from eating your CPU cycles

0

When using thunderbird it occurred to me that it was using a lot of CPU cycles, usage of 53% were almost constant while thunderbird seems to be idling. That’s not the way.

It seems there’s a bug in thunderbird <= 17.05 (and perhaps in newer version also) that was causing this

It can be fixed by setting mail.db.idle_limit  to 30000000 iso 300000 

Be sure to check the number of zeros 🙂

You can get to that setting by going to edit > preferences > Advanced > Config editor and use the search box to find the option.

Syntax highlighting for Kivy kv language in pycharm

10

The nice folks on the Kivy ML have provided a kv language highlighting for Pycharm 🙂

For easy retrieval I just post the original announcement together with the settings file:

For anyone using PyCharm, please find attached a file type extension that give you full syntax highlighting for KV files. Courtesy of Xuton…;-)
To install:
On Pycharm’s main menu, click File-> Import settings

    Select this file, then it will come with a dialog with filetypes ticked. Just click ok or whatever and then its there.

You can get the file here:

https://github.com/Zen-CODE/kivybits/blob/master/IDE/PyCharm_kv_completion.jar

 

Firefox with a dark desktop theme displays some parts incorrect

0

When you have a dark desktop theme firefox tends to displays some parts of websites like entryboxes not correct. They have for example a black background with a dark grey fontcolor.
That’s not the way to go.
To fix this you could add your own chrome ccs which will be used to display stuff correctly.
Here’s the file:
(The w7u1.default would be different on your system)
stas@HackSung:~$ cat .mozilla/firefox/w7u1.default/chrome/userContent.css
/*
* Use this css file to eliminate problems in Firefox
* when using dark themes that create dark on dark
* input boxes, selection menus and buttons. Put this
* in the ../firefox/default/chrome folder or your
* individual user firefox profile chrome folder.
*/
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
select {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
input[type=”radio”],
input[type=”checkbox”] {
border: 2px inset white ! important;
background-color: white ! important;
color: ThreeDFace ! important;
-moz-appearance: none !important;
}
*|*::-moz-radio {
background-color: white;
-moz-appearance: none !important;
}
button,
input[type=”reset”],
input[type=”button”],
input[type=”submit”] {
border: 2px outset white;
background-color: #eeeeee;
color: black;
-moz-appearance: none !important;
}
body {
background-color: white;
color: black;
display: block;
margin: 8px;
-moz-appearance: none !important;
}

Go to Top