Posts

Showing posts from June, 2015

Eclipse Mars 4.5 on MacOS - JVM issue

after installing eclipse 4.5 on MacOS Yosemite, I was always getting the following alert

The JVM shared library "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol.
it seems the -vm parameters is skipped from the eclipse.ini file so the only way I found to launch eclipse was using the following command line
/opt/apps/eclipse-4.5/Eclipse.app/Contents/MacOS/eclipse -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java
(assuming Eclipse is installed in /opt/apps/eclipse-4.5/ and Java 8 (1.8.0.45) is installed)

Java 8 on Yosemite

After installing Java 8 on Yosemite, I was still stuck with Java 6 from Apple website. The solution was to do the following

$ sudo rm /usr/bin $ sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java

Search form for wordpress boostrap based theme

As I create a boostrap based theme for bootstrap despite why-bootstrap-is-a-bad-fit-for-wordpress-themes, I wanted to have a search form that fits well. creating-bootstrap-wordpress-theme-search, and enhanced for Boostrap 3.2, here is my searchform.php

<?php $search_terms = htmlspecialchars( $_GET["s"] ); ?> <form role="form" action="<?php bloginfo('siteurl'); ?>/" id="searchform" method="get"> <label for="s" class="sr-only">Search</label> <div class="input-group"> <input type="text" class="form-control" id="s" name="s" placeholder="Search" <?php if ( $search_terms !== '' ) { echo ' value="' . $search_terms . '"'; } ?> /> <span class="input-group-btn"> <button type="submit" class="btn btn-primary"&g…