Search This Blog
GWT override css from theme
- Create css file in com/myapp/client/resource/myapp.css:
body, table td, select { font-family: Helvetica, Arial Unicode MS, Arial, sans-serif; font-size: small; } .my-css-class { }
- Create client bundle file: com.myapp.client.Resources.java:
package com.myapp.client; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.CssResource; public interface Resources extends ClientBundle { public static final Resources INSTANCE = GWT.create(Resources.class); public interface Style extends CssResource { @ClassName("my-css-class") myCssClass(); } @ClientBundle.Source("resource/myapp.css") // relative path to the css file. @CssResource.NotStrict // No compile error if no css class in the css file. Style css(); }
- In the entry point class: com.myapp.client.MyAPP.java
package com.myapp.client; public class MyApp implements EntryPoint { public void onModuleLoadSafe() { // Inject the css Resources.INSTANCE.css().ensureInjected(); // ... ... ... } }
Mediaflux example: tcl script to repair metadata with empty string as attribute
foreach id [xvalues id [asset.query :where xpath(daris:pssd-derivation/input/@vid)='' :size infinity]] { set args ":id ${id} :meta -action remove < :daris:pssd-derivation > :meta < :daris:pssd-derivation" set doc [xelement asset/meta/daris:pssd-derivation [asset.get :id ${id}]] set doc_id [xvalue daris:pssd-derivation/@id ${doc}] set args "$args -id ${doc_id} < " set processed [xvalue daris:pssd-derivation/processed ${doc}] set args "$args :processed ${processed}" foreach input [xvalues daris:pssd-derivation/input ${doc}] { set vid [xvalue asset/@vid [asset.get :cid ${input}]] set args "$args :input -vid ${vid} ${input}" } set method [xvalue daris:pssd-derivation/method ${doc}] set step [xvalue daris:pssd-derivation/method/@step ${doc}] set args "$args :method -step ${step} ${method}" set args "$args > >" puts "asset.set $args" asset.set $args }
Extract table data from PDF to CSV spreadsheet
- Download tabula-java from https://github.com/tabulapdf/tabula-java/releases
- Run the following command to convert PDF to CSV:
-
java -jar tabula-1.0.1-jar-with-dependencies.jar --pages all table.pdf
- or
java -jar tabula-1.0.1-jar-with-dependencies.jar --pages all -o output.csv input.pdf
UniSurf 8 Windows Tablet: Boot from USB
- Connect USB hub to the tablet and connect mouse and keyboard to the USB hub.
- Log into the Windows Environment, reboot to see BIOS.
- Set up BIOS as below:
- Chipset
- South Bridge
- USB Configuration
- USB OTG Support: PCI Mode
- USB VBUS: OFF
- Security
- Secure boot menu
- Secure boot: disabled
- Boot
- Setup prompt timeout: 15
- Quiet boot: disabled
- Save and Exit
- Boot override
- Select <your USB Flash Drive>
- Reboot from the USB
Subscribe to:
Posts (Atom)