Skip to content

Instantly share code, notes, and snippets.

View pcdavid's full-sized avatar

Pierre-Charles David pcdavid

View GitHub Profile
@pcdavid
pcdavid / gist:a6905f5b826df64e472c1693362781f3
Created November 24, 2018 09:14
Install Gerrit commit-msg hook to generate Change-Id lines automatically
scp -p -P 29418 pdavid@git.eclipse.org:hooks/commit-msg .git/hooks/
{
"editor.wordWrap": true,
"editor.fontFamily": "'Fira Code', 'Inconsolata-dz'",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"window.zoomLevel": 1,
"workbench.sideBar.location": "left",
"vsicons.dontShowNewVersionMessage": true,
"extensions.ignoreRecommendations": false,
"workbench.startupEditor": "welcomePage",
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.gmf.runtime.diagram.ui.printing.render [osgi.identity; osgi.identity="org.eclipse.gmf.runtime.diagram.ui.printing.render"; type="osgi.bundle"; version:Version="1.8.0.qualifier"] because it is exposed to package 'org.w3c.dom' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.13.0.v20180110-2102"; singleton:="true"] and org.apache.batik.ext [osgi.identity; osgi.identity="org.apache.batik.ext"; type="osgi.bundle"; version:Version="1.9.1.v20180206-0933"] via two dependency chains.
Chain 1:
org.eclipse.gmf.runtime.diagram.ui.printing.render [osgi.identity; osgi.identity="org.eclipse.gmf.runtime.diagram.ui.printing.render"; type="osgi.bundle"; version:Version="1.8.0.qualifier"]
require: (&(osgi.wiring.bundle=org.eclipse.core.runtime)(&(bundle-version>=3.5.0)(!(b
@pcdavid
pcdavid / Main.java
Created December 22, 2017 15:26
Get hw mac address in pure Java 8
package mac;
import java.io.IOException;
import java.net.NetworkInterface;
import java.util.Enumeration;
public class Main {
public static void main(String[] args) throws IOException {
Enumeration<NetworkInterface> itfs = NetworkInterface.getNetworkInterfaces();
public class Main {
private String t = "initial";
Main(String t) {
t = t;
}
public void setT(String t) {
t = t;
}
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Eclipse Community Forums</title>
</head>
<body>
<outline text="General" title="General">
<outline text="Eclipse Foundation" title="Eclipse Foundation">
<outline type="rss" text="Eclipse Foundation" xmlUrl=" https://www.eclipse.org/forums/feed.php?mode=m&amp;l=1&amp;n=15&amp;basic=1&amp;frm=92"/>
</outline>

Sirius 4.1.0 New & Noteworthy

See https://gist.github.com/pcdavid/bff1657d2a92ff828ed83d72b16d4edb for Sirius 4.0 N&N

General

  • #481846 Refuse to open Sirius session or models from a more recent version

    Starting with version 4.1, Sirius will now refuse to open sessions (*.aird files) or VSMs (*.odesign) saved with more recent versions of Sirius than the current one. Previously, it would silently load them and attempt to make sense of the parts it understands, but this could lead to difficult to diagnose bugs and misbehaviors.

#!/bin/sh
export GTK2_RC_FILES=$HOME/.spade/eclipse/gtkrc
export SWT_GTK3=0
export JAVA_HOME="$HOME/vendor/java/jdk-1.8"
exec $(dirname $0)/eclipse -cssTheme none

Sirius 4.0 New & Noteworthy

Liste initiale avant "écrêmage"; tout là-dedans n'est pas forcément assez important pour être mis en avant dans la comm, mais certains points peuvent quand même intéresser des gens ici:

  • #442268 SVG images not properly displayed

Si vous utilisez des SVGs (les vôtres ou certaines formes de base de Sirius), ils seront maintenant rendus proprement quel que soit le niveau de zoom. Auparavant le rendu SVG => bitmap se faisait toujours en une seule taille, et c'est ensuite le bitmap qui était scalé (perdant tout l'avantage de la nature vectorielle de SVG). Par contre il n'y a pas de magie, il y a un compromis entre perfs et occupation mémoire. Une nouvelle propriété système org.eclipse.sirius.diagram.ui.svg.maxCacheSizeMB (documentée uniquement dans les release notes) est disponible pour tweaker la taille du cache utilisé, qui est à 50 par défaut (soit 50MB).

  • #459993 Add support for internationalization (I18N)