427 reputation
69
bio website
location Czech Republic
age
visits member for 2 years, 2 months
seen Aug 8 at 13:53

Jul
19
comment cannot start graphical programs with sudo
This problem appeared when I partially renamed an Ubuntu 14.04 machine: I only edited /etc/hosts and run hostname thenewname. After editing /etc/hostname and rebooting everything started to work correctly again.
Jul
2
comment Is it possible to make writing to .bash_history immediate?
@artfulrobot: This command is a bash built-in so it is described in man bash. You can also use help history.
Jun
29
comment apt-get: No space left on device (12.04)
Please consider participating on the bug reports with low activity: Bug #1089195 linux-headers will eat your inodes on LTS., Bug #690911 Installation without formatting fails to remove old kernels
Jun
29
comment apt-get: No space left on device (12.04)
I had the same problem caused by kernel updates which do not remove old kernels automatically. Linux headers of every kernel update occupy a considerable number of inodes! --- My "safe" solution was to move two kernel headers directories to a different filesystem: cd /usr/src ; cp -a linux-headers-3.2.0-3{2,3}* /home/tmp-hdr ; rm -r linux-headers-3.2.0-3{2,3}*, apt-get-install -f, remove some other headers the right way: apt-get purge linux-headers-..., move the headers from the tmp back: cd /usr/src ; cp -a /home/tmp-hdr/* .. Remove more of the old kernels using apt-get purge.
Jun
29
comment “No space left on device” while installing packages
Check also free inodes: df -i. The same message No space left on device is written when the system is out of inodes. Which is a common problem on Ubuntu running for a long time because every kernel update consumes a considerable number of inodes.
Jun
29
comment “No space left on device” while installing packages
It is rather a duplicate of this one: apt-get: No space left on device (12.04)
Jun
2
comment problems establishing ssh connection
What do the sshd and PuTTY logs say?
May
21
comment How to prevent fonts from rescaling
Thank you rimez. I have noticed that there is an earlier report of this bug: bugs.launchpad.net/ubuntu/+source/unity/+bug/1310316 I have marked the newer one (linked above) as a duplicate.
May
18
comment How to prevent fonts from rescaling
I have discovered this bug report: bugs.launchpad.net/ubuntu/+source/unity/+bug/1317253 Could you please add "it affects me" and subscribe to the bug to increase its "heat" and bring enough attention?
May
18
comment How to prevent fonts from rescaling
I have encountered this problem too. After lowering "scale for menu and title bars" after some time the font scaling (accessible in Unity Tweak) became very low and the fonts were almost unreadable. Do you know if there is bug ticket open for this problem?
Feb
10
comment Application to display battery info
@psusi: I noticed that I did not write what I think is wrong in your answer. Excuse me for that. It is this statement: "Batteries LIKE being fully charged." --- I am saying that keeping a li-ion battery at 100 % designed by most of manufacturers (i.e. 4.2 V) makes the life of the battery shorter than keeping it at ~90 % (4.1 V) or even lower. Just see the table 4 and graph 5 in the article I linked last. --- I am not certainly afraid that li-ion chargers will not stop at the designed voltage of 4.2 V. That would be very dangerous to go over 4.3 V with this type of batteries!
Feb
10
comment Application to display battery info
@psusi: Look also here: How to Prolong Lithium-based Batteries - mainly Table 4: Discharge cycles and capacity as a function of charge. The website has many useful articles and from what I have read I think they know what they are talking about. ------ Lead-acid batteries and li-ion batteries are different you should not apply the same rules to them in all aspects of them.
Feb
10
comment Application to display battery info
@psusi: excuse me for the delayed reply. In the second link the text is not only about over-charging: "Charging at a slightly lower voltage (4.10 - 4.15 V) will slightly reduce the capacity per cycle – but will increase cycle life because the cell is being stressed less." The full-charge voltage of 4.2 V was selected as a compromise between the capacity and life of the battery. When you cross certain voltage of the battery - the higher the voltage is the ageing of the battery is faster.
Jan
27
comment Application to display battery info
Could you please provide some sources for your claims? I have always seen different information: the higher is the battery charge and temperature the faster the battery loses its capacity. See for example results of my quick search: Sony - Lithium Ion Rechargeable Batteries Technical Handbook - Long-term storage characteristics graphs on page 23, Lithium Ion Technical Manual - Cycle Life Characteristics - Effect of Charging Voltage.
Dec
8
comment Enabling usbfs in Ubuntu
Since Ubuntu 9.10 the mount point /proc/bus/usb does not exist because usbfs is not enabled in the kernel. Since Linux kernel 3.5 (Ubuntu 12.10) usbfs is missing completely.
Nov
15
comment What if I accidently run command “chmod - R” on system directories (/, /etc, …)
@ulidtko: There is an exception to not using / at the end. If you want to do pathname expansion for directories only. Example of listing directories inside the current directory: echo */
Sep
4
comment Using if an AWK command
The sample file from the question is not a good representation of what is described in the question. It does not contain text before and after the only section in it. I copied and pasted some lines before and after the section to be able to test the begin and end conditions in my script.
Sep
3
comment Using if an AWK command
@vipin8169: To understand your code: Please what do you have in the begin variable? You are using it to set a field separator of awk.
Sep
3
comment Using if an AWK command
Both your programs pass a text before the [begin ...] section delimiter.
Sep
3
comment Using if an AWK command
As I know very little about python and this code is not understandable for me I tested it. Unfortunately I discovered some problems: The python3 code is passing text after the [end ...] delimiter. The python 2.x code shows syntax error in python 2.7.3 on * after print(.