Skip to main content

Posts

When adding a property to graph-tool don't forget this

When you are adding a new property to a graph-tool graph (https://graph-tool.skewed.de/)

is_node_customer = network.new_vertex_property("bool")
weight = network.new_edge_property("float")

 you should never forget to add this

network.vertex_properties["is_node_customer"] = is_node_customer
network.edge_properties["weight"] = weight


Otherwise the properties will not saved or stored together with the graph and you will lose a lot of time


Recent posts

How do I avoid deletion of plan branch in Bamboo?

Make sure the following checkbox is not flagged:




Do you miss "Expressions" view while debugging in Eclipse?

From time to time, I forget where the expression view can be set in Eclipse... it's right here in the Window panel 

View by projects or working sets in Eclipse

View by projects or working sets in Eclipse...always comes in handy!




Hybris setup issue: Unsupported major.minor version 52.0

While I was typing the final "ant all" command for hybris, it miserably failed with the following exception

hybris/bin/platform/resources/ant/antmacros.xml:123: java.lang.UnsupportedClassVersionError: de/hybris/ant/taskdefs/DbDriverValidator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method)


Even though a "java -version" gave me back version 8, ant is still using $JAVA_HOME variable.
So you have to change it into the script. My suggestion is that you adapt the setantenv.bat script with the JAVA_HOME directly


@echo off
set ANT_OPTS=-Xmx512m -Dfile.encoding=UTF-8
set ANT_HOME=%~dp0apache-ant-1.9.1
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_101
set PATH=%ANT_HOME%\bin;%PATH%
rem deleting CLASSPATH as a workaround for PLA-8702
set CLASSPATH=
echo Setting ant home to: %ANT_HOME%
ant -version