Speiden/Burgruinen 30.10.2011
Ein paar Fotos vom letzten Ausflug nach Speiden ins Sudhaus und Wanderung auf die Burgruine Eisenberg und Hohenfreyberg.
Software, Programmieren, Gadgets, Internet
Ein paar Fotos vom letzten Ausflug nach Speiden ins Sudhaus und Wanderung auf die Burgruine Eisenberg und Hohenfreyberg.
Denke das war eines der letzten schönen Wochenenden dieses Jahres. Zumindest wandertechnisch. Diesmal ging es zur Burgruine Falkenstein. Bei bestem Wetter erst zur Burg, anschließend ging es weiter zur Saloberalm. Dort kurze Einkehr, lange konnten wir dort nicht bleiben, da die Dunkelheit nahte. Insgesamt eine schöne Tour mit ca. 3 Stunden Gehzeit. Hier ein paar …
Today I had a small problem. I wanted to start an external C++ console programm with some parameters and get the output back to my Java program. Here is a code snippet that reads the output from a console program: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) …
Selecting a row by index in a table viewer isn’t very straightforward. There is no method like tableViewer.setSelectionIndex. Here is a snippet how its done: int selection = 5; //row we want to select tableViewer.setSelection(new StructuredSelection(tableViewer.getElementAt(selection)),true);
If you create a new RCP application a view gets a tab like this: To remove the tab, use the “addStandaloneView” method in your perspective. Here is an example: public class Perspective implements IPerspectiveFactory { public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea); } } The result:
Fernbedienungen für Fernseher, DVD-Player etc. arbeiten mit infrarotem Licht. Dieses können wir Menschen nicht sehen. Interessanterweise kann man mit einem Handy bzw. einer Digitalkamera dieses Licht sichtbar machen: Praktischer Nutzen? So kann man recht leicht überprüfen, ob die Fernbedienung noch funktioniert oder die Batterien ausgetauscht werden müssen.
If you create a string in an EMF model, its null by default: If you want to have an empty string, instead of null, you have to enter a “Default Value Literal”. For an empty string, just click on the value and hit enter (very obvious): To get the null value back, just click on …
Here is short code snippet to open an URL with the systems standard browser: public void openUrl(String url) throws IOException, URISyntaxException { if(java.awt.Desktop.isDesktopSupported() ) { java.awt.Desktop desktop = java.awt.Desktop.getDesktop(); if(desktop.isSupported(java.awt.Desktop.Action.BROWSE) ) { java.net.URI uri = new java.net.URI(url); desktop.browse(uri); } } } java.awt.Desktop is supported as of Java 6.
Schon ein wenig her, aber ich kam erst jetzt dazu das Video zu schneiden. Diesmal Viehscheid und Frühschoppen in Bad Hindelang. Beschwingt ging es danach mit Fahrrad auf die Käseralpe. Das letzte Drittel hatte dann doch wieder ordentliche Steigungen von bis zu 20%. Aber irgendwie kommt man immer rauf, mit dem richtigen Ziel vor Augen: …