The default basic pills from Bootstrap are somewhat useless as they don’t change their state (class=”active”). I use the following javascript snippet to change that: $(’ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(’active’).siblings().removeClass(’active’); });$(‘ul.nav.nav-pills li a’).click(function() { $(this).parent().addClass(‘active’).siblings().removeClass(‘active’); });
These are a view things that i had looked up to solve some problems and i plan to update this post regularly… To push a new branch to remote git push origin new_branchgit push origin new_branch To delete a remote branch git push origin :new_branchgit push origin :new_branch To push new tags git push –tags […]
I have some services and scheduled tasks that call a Batch file under windows. The scheduled tasks cannot access network drives that the assigned user has defined, but luckily there is a “mount” pendant within Windows as well. To mount a network share within the Batch script use: net use t: \\server\share /persistent:no The authentication […]
In case you need a MySQL schema transferred from one host to another and the schema names differ, you can ran into problems with a standard MySQL dump. Use the following statement to create a schema dump that contains all table and view definitions as well as all stored procedures without a reference to the […]
I’m migrating some old projects to Maven and i need to move all resources out of the source tree. find . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -printfind . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -print Prune every directory named ‘.svn’ Or Type is file […]