Wednesday, March 20, 2013

Allow http service in firewall settings on Fedora 18

To allow http service in firewall settings:

1. Open firewall application.

2. Select persistent mode.

3. If the default zone is public then select the public group and check http there.

4. Since I use port 8080, I have to add it to the definition of http.
 

Sunday, March 10, 2013

Priceless Games

Really humble!

https://www.humblebundle.com

$25 sounds reasonable.

How much would you pay?

Monday, February 25, 2013

Firefox OS ♫ ♬

Firefox OS is incredible.
The bold move they have made should be an eye opener not only for Chrome OS but also for team Metro.

I feel personally gratified. I love JavaScript (and CoffeeScript) as a programming and scripting language and it was my dream to see it embedded in everything, say coffee machines. Mozilla made an essential step towards that dream.

Sunday, February 24, 2013

Custom Google and Youtube Search on Firefox

Just typing g hello in address bar will search google for the word hello. Entering y abc in address bar will search youtube for word abc. You want to remove the search box? Go ahead.


You can make it possible by creating following custom bookmarks with keywords g and y respectively:

  Name: Custom Google Search
  Location: http://www.google.com/search?complete=0&q=%s
  Keyword: g

  Name: Custom Youtube Search
  Location: https://www.youtube.com/results?search_query=%s&webm=1
  Keyword: y

Note: Youtube search will show only HTML5 videos because of &webm=1 and google search will disable annoying autocomplete because of complete=0&.

Saturday, February 23, 2013

Gnome 3 vs Cinnamon

Right now there are five types of users I can think of:

1. Mouse oriented users
2. Keyboard oriented
3. Touch oriented
4. Speech and gesture oriented
5. People with special needs


Technologies for 4 and 5 have a long way to go. Gnome 3 is ready for 1, 2 and 3. Cinnamon does better than Gnome for 1 but not for 2 and 3.

So I would install Mint+Cinnamon for my mom(1), I'll reserve Fedora+Gnome3 for myself(2).

yum yum yum yum yum

Having problem using yum with proxy?
Add proxy and timeout in /etc/yum.config:
proxy=http://172.10.20.30:4000
timeout=180


Hate download of updates/primary_db and all that automatic refresh?
yum --disableplugin=refresh-packagekit list  

Download only, don't install:
yum --downloadonly install PACKAGE

Try following commands:
yum list | more 
yum list installed
yum info curl
yum deplist curl
yum repolist

Thursday, February 21, 2013

Resize Gnome Panel

Gnome 3.8/Fedora 19


1. Create the folder: ~/.local/share/gnome-shell/extensions/panelsize@gnomepanelsize.com
    $ mkdir .local/share/gnome-shell/extensions
    $ mkdir ~/.local/share/gnome-shell/extensions/panelsize@gnomepanelsize.com
    $ cd ~/.local/share/gnome-shell/extensions/panelsize@gnomepanelsize.com/

2. Create three files in this newly created folder:

/*************** extension.js *******************/
const St = imports.gi.St;
const Shell = imports.gi.Shell;
const Main = imports.ui.main;

let  defaultStylesheet, patchStylesheet;

function init(extensionMeta)
{
  defaultStylesheet = Main.getThemeStylesheet();
  patchStylesheet = extensionMeta.path + '/stylesheet.css';
}

function enable()
{
  //imports.ui.main.panel.statusArea.appMenu.actor.hide();
  imports.ui.main.panel.statusArea.activities.actor.hide();
  imports.ui.main.panel.statusArea.a11y.actor.hide();
  imports.ui.main.panel.statusArea.userMenu.actor.hide();
  imports.ui.main.panel.statusArea.dateMenu.actor.hide();
  let themeContext = St.ThemeContext.get_for_stage(global.stage);
  let theme = new St.Theme ({ application_stylesheet: patchStylesheet,
  theme_stylesheet: "/usr/share/gnome-shell/theme/gnome-shell.css" });
  try { themeContext.set_theme(theme); }
  catch (e) { global.logError('Stylesheet parse error: ' + e); }
}

function disable()
{
  let themeContext = St.ThemeContext.get_for_stage(global.stage);
  let theme = new St.Theme ({ theme_stylesheet: defaultStylesheet });
  try { themeContext.set_theme(theme); }
  catch (e) { global.logError('Stylesheet parse error: ' + e); }
}


/*************** metadata.json *******************/
{
    "shell-version": [
        "3.2",
        "3.4",
        "3.6",
        "3.7",
        "3.8"
    ],
    "uuid": "panelsize@gnomepanelsize.com",
    "name": "Panel Size",
    "description": "Panel Size for Gnome",
    "url" : "http://gnomepanelsize.com"
}

/*************** stylesheet.css *******************/
#panel { height: 1px; font-size: 1px; }
.panel-button { transition-duration: 100; height: 16px; font-size: 16px; color:black; }
/*.panel-button:hover { height:28px; font-size:28px; color:black; }*/


3. Issue the command
  $ gsettings set org.gnome.shell enabled-extensions "[ 'panelsize@gnomepanelsize.com' ]"

4. Restart gnome:
  Press Alt-F2
  Enter single letter 'r' as command 

Gnome 3.6.2/Fedora 18

1. Create the folder: ~/.local/share/gnome-shell/extensions/panelsize@gnomepanelsize.com

2. Create following three files in this newly created folder:
  
/*************** extension.js *******************/
const St = imports.gi.St; const Shell = imports.gi.Shell; const Main = imports.ui.main; let defaultStylesheet, patchStylesheet; 

function init(extensionMeta) { defaultStylesheet = Main.defaultCssStylesheet; patchStylesheet = extensionMeta.path + '/stylesheet.css'; } 

function enable() { let themeContext = St.ThemeContext.get_for_stage(global.stage); let theme = new St.Theme ({ application_stylesheet: patchStylesheet, theme_stylesheet: defaultStylesheet }); try { themeContext.set_theme(theme); } catch (e) { global.logError('Stylesheet parse error: ' + e); } } 

function disable() { let themeContext = St.ThemeContext.get_for_stage(global.stage); let theme = new St.Theme ({ theme_stylesheet: defaultStylesheet }); try { themeContext.set_theme(theme); } catch (e) { global.logError('Stylesheet parse error: ' + e); } } 

 

/*************** metadata.json *******************/ 
{ "shell-version": [ "3.2", "3.4", "3.6", "3.7" ], "uuid": "panelsize@gnomepanelsize.com", "name": "Panel Size", "description": "Panel Size for Gnome", "url" : "http://gnomepanelsize.com" } 


/*************** stylesheet.css *******************/ 
#panel { height: 1px; font-size: 1px; } 
.panel-button { transition-duration: 100; height: 1px; font-size: 1px; color:white; } 
.panel-button:hover { height:28px; font-size:28px; color:black; } 


3. Issue the command:
 gsettings set org.gnome.shell enabled-extensions "[ 'panelsize@gnomepanelsize.com' ]" 

4. Restart gnome: 
Press Alt-F2
Enter single letter 'r' as command


IMPORTANT: Panel has vanished but you can access individual panel items by moving pointer along the top edge of the screen. In case you don't like it you can do any of the following to get back the original panel:

1. Delete the files and folders that you created and restart gnome

2. Execute the following command and restart gnome:
gsettings set org.gnome.shell enabled-extensions "[ ]"

3. Do you love adventure? Play around with the file "stylesheet.css" and restart gnome.