Gentoo Bugzilla CSS Love

0
COM
Hello, so today I was bored and gave the Gentoo Bugzilla some CSS love. There were a lot of changes. Here's what I'm talking about:

 

The first image in each GIF is the default Bugzilla and the second is the result of adding the CSS.

If you're still reading and like what you've just seen, there are a couple of ways to add the CSS code on the fly. There are addons/plugins for different browsers that can do that.

For Google Chrome or Chromium download the addon Stylebot (or whatever other addon that can add CSS to a page on the fly). Then go to this Stylebot post and click the "Install style" button in the upper right corner.

For Firefox download the addon Stylish (or whatever other addon that can add CSS to a page on the fly or use 'user scripts'). Then go to this userscripts.org post (which is a Firefox/Stylish addaptation by threesixes) and click the "Install style" somewhere in the page.

If you just want the CSS code either to install it by other means or just look at it, here it is:

Custom Kernel Version

0
COM
Hello, for some time I've been using a custom kernel version for my system and from what I've seen, for some reason, I'm the only one doing this. I'm refering to only changing the kernel version (not using some special kernel sources or something).

Someone might ask 'Why?'. The answer is very simple - because I was bored and wanted something different.


Here's what I'm talking about:

Normal Kernel Version

Changed Kernel Version


How to do this?

It's very simple. In short, you need to custom compile a kernel.
  1. Download a kernel sources tarball of your choice.
  2. Extract the contents.
  3. Modify the file Makefile and change the first three/four lines to whatever you want. In my case:
  4. Compile your kernel and reboot.
  5. Enjoy.

You can change your version to whatever you want:
  • 0.0.1
  • 1.0.0-beta
  • 2.4.12
  • 3.8.500
  • 4.0.0-rc1
  • 9.9.9
  • etc...


Keep in mind

... that there are problems you might face if doing this. Specially if you're compiling or using software that must exhibit different behaviour depending on the kernel version. For example: 
  • ati-drivers
  • icedtea
  • virtualbox-modules
  • etc...

An example case is this: you're using a kernel source tarball of 3.8.13 and you've changed your version to be 4.5.6 and then you try to compile ati-drivers or virtualbox-modules:
  1. The sources have various checks so if you're using a kernel version bigger than 3.9 and/or 3.10 they add/change code.
  2. As the package thinks you're using >3.9/3.10 kernel but you're really using 3.8.x - it will fail to compile.
In these cases, if you haven't reverted back to the original kernel version (yet), you must be knowledgeable enough to be able to write your own patches like these: my ati-drivers patch or my virtualbox-modules patch.

There are packages like icedtea where they have an environment variable you can use to skip such kernel checks (like if your kernel is too old to use package X). In the case of icedtea, it's: DISABLE_HOTSPOT_OS_VERSION_CHECK=ok


That's it, any questions or suggestions are welcome.

Twitter Bootstrap Icons in JQuery UI DatePicker

4
COM
Hello, this is actually a very random blog post. I had to face this problem and there was no solution for it on the internets so I had to face re-coding JQuery's DatePicker code myself.

What I wanted to achieve is to add Twitter's Bootstrap icons (or Font Awesome's icons) as a trigger into the DatePicker without providing a link to an image like in this example.

If you don't know what I'm talking about here are pics:
- Before: - After:

As you can notice, I have used Twitter's Bootstrap input-append class to add the icon into the text field.

To achieve this what you need to do is:

1. You need to have your call like this:

2. Open your jquery.js file and around line 7436 (in JQuery UI 1.9.2) you'll find:

Replace that snipped of code with:

NOTE: You can change the class with another icon of your taste. By the way, I'm using Font Awesome's icons.

3. (optional) If you want your icon to be appended into the text field, you need to put your <input> call of datepicker inside a <div class="input-append"> like this:

NOTE: You can, of course, change the div's class into input-prepend.

It's a newbie approach and I hope there is an easier/fancier/better solution to this (and if you have a link for such please post in the comments), but as I couldn't find one I had to improvise.