I’ve tried the firefox 3 beta a couple times on my linux box. Every time I try it the fonts and toolbars are obnoxiously big. I couldn’t find any help on this. It seemed like a dpi issue, so I went to about:config and searched for dpi. There it was layout.css.dpi. Mine was set to -1, I changed it to 150 which seemed about right.
Type about:config in you browser window. Then type dpi in the filter text box and double click the layout.css.dpi to change the value. I changed mine to 150.
Two things I ran across today that I need to look further into.
http://latencytop.org/ – This shows what processes are waiting on and looks very interesting.
The other is Group Scheduling in Linux 2.6.24 and above. This allows you to put processes in a group so that one set of processes can share the same resources. For example, you can assign two different users 50% of the processor and one use could be running 50 compiles but should not affect the performance of the second user.
As I said in my previous post, I learned a couple things about bash today. I had a nice for loop that outputted the info I wanted, but not in the right order. I thought to myself, man if this were php I would just put it in an array and sort it before looping across it. I bet this will be a pain in bash.
BUT, I was pleasantly surprised to find out how simple this really was. If you want to perform an action the output of a loop in bash then you just pipe done into the fuction you want performed. See the example below.
for VAR in $VARS; do
done | sort -n
Learned a couple things about bash today. I was wanting to print something out nicely, so I was using tabs to separate fields. As you know, nothing ever lines up if you do not have values very similar in size. So I was about to search Google for the problem when I had a moment of sheer brilliance. 🙂 I thought I’ll just concatenate a bunch of spaces on the end of the variable and then use cut to grab how many characters I want. I was very proud of myself, but then bash quickly humbled me by condensing all my spaces I had added to the variable.
So, back to the all knowing Google. Turns out you have to quote your variable when you use it if you don’t want bash to truncate the spaces. So I quoted my variable when using it and all is good.
NICE_VAR=`echo "$VAR" | cut -c -15`
echo "$VAR $VAR2"