There are a couple of ways to see cachegrind outputs KCachegrind ( KDE Based ) Webgrind If you absolutely hate KDE, then you might want to consider Webgrind – but it is not as comprehensive as KCachegrind Setting Up Running instance on Ubuntu ( i am Ubuntu 13.04 on a VM ) Running instance of […]
Month: June 2013
Dynamically loading CSS and JS files using jQuery
Naveen Nayak June 26, 2013 28 Comments Javascript, Tips and Tricks, Web Development
Simple tutorial on how we can use jquery to load CSS and JS files as and when we require them We will create 4 files ( in the same directory of your web root – mine is /var/www/test ) index.html : the main html file main.js : the main JS file which will be included […]
Drupal 6 theming a fieldset
Naveen Nayak June 12, 2013 No Comments Drupal
Drupal 6 fieldsets can be themed by supplying the #theme attribute for the fieldset #theme = your custom fieldset theming function you need to declare this theme function in the modules hook_theme function drupal will automatically look for theme_your_fieldset_theme_function() see the complete working example below /** * hook_menu * @return array */ function test_menu() { […]
Linux Mint adding launcher to Panel
Naveen Nayak June 6, 2013 5 Comments Linux, Tips and Tricks
Just go here and add a launcher – enjoy 🙂 /usr/share/cinnamon/applets/panel-launchers@cinnamon.org run the file  /usr/share/cinnamon/applets/panel-launchers@cinnamon.org/cinnamon-add-panel-launcher.py a nice GUI window should open up and allow you to add the launcher with the Name and Icon if there is an error, check the permissions on the .py file
Linux Bash Aliases
Naveen Nayak June 3, 2013 No Comments Linux, Tips and Tricks
If you are constantly typing lengthy commands or a series of common commands, the bash alias feature in Linux is your friend. You can slim down the lengthy bash command into your favorite command name and use it whenever you need. One of the main advantage is that you can store all your command aliases […]