Pages

Monday, June 24, 2013

Grub2 configuration in Fedora 19

Below is the command to (re-)create a Grub2 menu. This is the menu that shows at boot time and allows for selection of kernel and other system configuration parameters.

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

More information: Grub2 page at Fedora

CSS "contains" selector

As the ":contains('text')" selector has disappeared from CSS3 specification, translating Selenium selectors is a bit more pain.

Useful references:

Saturday, June 15, 2013

GRUB2 Editor

Here is an add-on for KDE System Settings that provides a GUI to manipulating grub2 entries.

GRUB2 Editor - Browse /0.5.8/Fedora 18 at SourceForge.net

Monday, June 10, 2013

AngularJS: "Error: $digest already in progress"

Here is something that might save a few painstaking hours. While working on an AngularJS code in a web page, there was a need to pass some data from the server side for the initialization. Since the data was static and the page already had previous functionality, the easiest way was to dump the data in the form of JSON straight into the page when it was being rendered on the server side. Then, in Angular code this JSON data would be used when the code runs on the client side.
So, after a few changes the annoying "Error: $digest already in progress" error was popping up as soon as the dialog was loaded. Oh, right, another thing was that there was a dialog that was dynamically loaded from the server depending on what the user clicked. Then, each dialog had its own Angular controller.
To make the story short, the JSON initialization in a script tag was placed *inside* the div with ng-controller. This was triggering the exception as it messed up with Angular code, I guess.
Moving the script tag above the div with ng-controller helped and now the code works as expected.

Monday, June 03, 2013

Selenium Tips: CSS Selectors in Selenium Demystified

The text below is a useful resource in describing the CSS selectors in Selenium (IDE). It describes a several ways that could assist you to move from XPath-based selectors to CSS ones.
The result would perhaps be a bit of speed in execution is CSS selectors are native in browsers these days, and could potentially be more readable for humans.

Selenium Tips: CSS Selectors in Selenium Demystified | Selenium Testing?

Here is more on CSS selectors: CSS Reference

#Selenium