Virtualbox copy/paste between host-guest doesn't work:
Settings-->Storage-->SATA Controller and 2. 'Solid-state drive' is checked
DIDN'T WORK
Solution #2:
Settings / General / Advanced:
Shared Clipboard: Bidirectional
Drag'n'Drop: Bidirectional
"BOM use is optional, and, if used, should appear at the start of the text stream.
... the BOM character may also indicate which of the several Unicode representations
the text is encoded in."
"In UTF-16, a BOM (U+FEFF) may be placed as the first character of a file ... " (Java is UTF-16)
"The UTF-8 representation of the BOM is the byte sequence 0xEF,0xBB,0xBF." (Windows is UTF-8)
"many pieces of software on Microsoft Windows such as Notepad will not correctly
read UTF-8 text unless it has only ASCII characters or it starts with the BOM,
and will add a BOM to the start when saving text as UTF-8"
$ sudo -i # cd $ANDROID_SDK/sdk/platform-tools # ./adb kill-server # ./adb start-server * daemon not running. starting it now on port 5037 * * daemon started successfully *
$ javac -version javac 1.8.0-ea $ java -version java version "1.7.0_13" Java(TM) SE Runtime Environment (build 1.7.0_13-b20) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)The solution is to use the same JRE and JDK version:
$ sudo update-alternatives --config javac [sudo] password for micharg: There are 3 choices for the alternative javac (providing /usr/bin/javac). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-8-oracle/bin/javac 15 auto mode 1 /usr/lib/jvm/java-6-oracle/bin/javac 12 manual mode 2 /usr/lib/jvm/java-7-oracle/bin/javac 13 manual mode 3 /usr/lib/jvm/java-8-oracle/bin/javac 15 manual mode Press enter to keep the current choice[*], or type selection number: 2
I included all my libraries (and android-support-v*.jar) into libs.. Eclipse recognized them as "Android Dependencies". THIS IS WRONG. The error was saying me that I have included multiple times the same files. I think that Eclipse includes in the final apk the contents of libs/*.jar and the "Android Dependencies".
In order to fix the error you have right click the project, go to Java Build Path, Libraries, remove Android Dependences and include your jars with the button "Add JARs..."
-vmargs -Xms1024m -Xmx2048m
$ eclipse -debug -console -clean
$ git branch * (no branch) master
$ git merge branch fatal: branch - not something we can merge
$ git branch tmp $ git checkout master $ git merge tmp
No Launcher activity found! The launch will only sync the application package on the device!
Run > Run Configurations ... > Launch > selecting here the main activity of my app
sudo ntfsfix /dev/sdb1
public void submit() {
this.val = 3; //the new value
}
Facelet:
<h:form>
<p:inputText value="#{fooBean.val}"></p:inputText>
<p:commandButton value="Submit"
action="#{fooBean.submit()}"
update="@form"
immediate="true" />
</h:form>
<h:form>
<p:inputText value="#{fooBean.val}"></p:inputText>
<p:commandButton value="Submit"
action="#{fooBean.submit()}"
update="@form"
immediate="true"
process="@this" />
</h:form>
... <property name="locale">el</property> ...
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run register fonts in /usr/openwin/lib/locale/ja/X11/fonts/TT cost:0ms org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run register fonts in /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType cost:0ms org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run register fonts in /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType cost:0ms ... register fonts in /usr/share/fonts/zh_CN/TrueType cost:0ms ... register fonts in /usr/X11R6/lib/X11/fonts/OTF cost:0ms ...I.e. BIRT registers the following paths to scan for the fonts:
$ sudo apt-get install ttf-mscorefonts-installerThe fonts are installed in /usr/share/fonts/truetype/msttcorefonts/ Hint:If you use BIRT in Tomcat (or another server) restart server after the ttf-mscorefonts-installer installation!
Background: jQuery uses $() as an alias to the function jQuery().
The problem:What if another library uses the same character? (e.g. Prototype; other libraries???)
Solution:Make jQuery not use to ${} by calling $.noConflict()
Code taken from jQuery.noConflict():<script type="text/javascript"> $.noConflict(); // Code that uses other library's $ can follow here. </script>
Tested with PrimeFaces 3.1
<p:accordionPanel>
<p:tab title="Foo tab title">
<p:menu>
<p:menuitem value="Foo menu item title" url="#" />
</p:menu>
</p:tab>
</p:accordionPanel>
Result:
<p:accordionPanel styleClass="accordionMenu">
<p:tab title="Foo tab title">
<p:menu>
<p:menuitem value="Foo menu item title" url="#" />
</p:menu>
</p:tab>
</p:accordionPanel>
.accordionMenu .ui-menu {
width:100% !important;
}
.accordionMenu .ui-accordion-content {
padding:0 !important;
overflow:inherit !important;
}
.accordionMenu .ui-helper-clearfix:after {
height:inherit !important;
}
Result:
The solution (hint):The solution is at the end of the post..
<p:inputText value="#{fooBean.value}" />
OK the above works fine.
<p:inputText value="#{fooBean.value}">
<f:convertNumber maxFractionDigits="2" type="number"/>
</p:inputText>
But...if I give as input a number without a decimal part (e.g. 100) a coversion exceptions is thrown:
java.lang.Long cannot be cast to java.lang.Double.
The reason for this exception is described in stack overflow Phill's post:
After some investigation (see e.g. here, here and here) that <f:convertNumber> is the problem. It seems that the number it converts to is dependent on the input you give it - it could be an integer or a floating point number. In other words, it doesn't look at the target type - it just generates an instance of java.lang.Number. Which is hardly ideal, although I can't determine whether this is because somewhere I'm using an old version of JSF or EL or something like that. Proposals from the internet:
<p:inputText value="#{fooBean.value}" style="width:50px">
<f:validateDoubleRange />
<f:convertNumber maxFractionDigits="2" type="number"/>
</p:inputText>