Skip to content

Instantly share code, notes, and snippets.

rawFields <- xClass.getDeclaredProperty("field");
rawProperties <- xClass.getDeclaredProperty("property");
// handle explicit ones first
for (Xmember m in rawFields) {
if(m.getAnnotations(AccessType.class).getType() == FIELD)) {
field.add(m);
rawFields.remove(m);
}
By marketing, I mean the various operations related to:
- brand awareness
- product awareness
- content marketing
- customer acquisition
What really eludes me is how companies pilot the cost and choices they make in these areas.
R&D and sales, I can see how choices are made.
But it seems that on the marketing side, effects are extremely indirect (the worse being brand awareness).
For example, paying to be present at a tradeshow will bring sales leads but that often does not cover the whole cost.
[INFO] Starting audit...
TransactionalJmsMasterSlave.java:151: Left parentheses should be followed by 1 whitespace
TransactionalJmsMasterSlaveUsingModulesIT.java:18:8: Unused import - org.hibernate.search.test.integration.jms.SearchNewEntityJmsMasterSlave.
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
@emmanuelbernard
emmanuelbernard / contraint.jave
Created April 9, 2015 20:06
Parent Constraint Bean Validation
package org.hibernate.validator;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.validation.Constraint;
#!/bin/bash
# Notify you when a task is done
#
# $ notify mvn clean install
# runs 'mvn clean install'
# notify you when it's done
#
# A notification is sent upon build completion if your OS supports it:
# - on Mac OS, install Growl and grownnotifier
# - on Linux, install send-notify
function setjava {
local vmdir=/Library/Java/JavaVirtualMachines
local ver=${1?Usage: setjava <version>}
export JAVA_HOME=`/usr/libexec/java_home -v $ver`
PATH=$(echo $PATH | tr ':' '\n' | grep -v $vmdir | tr '\n' ':')
export PATH=$JAVA_HOME/bin:$PATH
java -version
}
validator.validate(
user,
Changes
.onList(
User::getAddresses,
Changes.onList()
.onIndex(12).remove()
.onIndex(10)
.apply(
Changes
@emmanuelbernard
emmanuelbernard / gist:35546921a24b485d5ff4
Created October 20, 2014 15:41
awestruct 0.5.6.beta2 error on regeneration
Change detected for file /Users/emmanuel/Sites/test/news/2014-09-03-test1.md
From: /Users/emmanuel/Sites/test/.bundle/ruby/1.9.1/bundler/gems/awestruct-c4a44068210e/lib/awestruct/engine.rb @ line 356 Awestruct::Engine#generate_page_and_dependencies:
351: $LOG.debug "\t\t Key <- #{p.dependencies.key_dependents.size}"
352: $LOG.debug "--------------------"
353: end
354: end
355:
=> 356: binding.pry
@emmanuelbernard
emmanuelbernard / Simple Rsync backup
Last active August 29, 2015 13:57 — forked from Sanne/Simple Rsync backup
Support remove servers ; add compress and delete to rsync options
#!/bin/sh
# version 20140401
# Backup script using rsync to create multiple snapshots of the source.
# A little known trick of rsync is to be able to run a three-way comparison,
# so to only transfer the diffs but store a full copy in a new directory,
# while comparing and hard linking to the previous snapshot.
# This allows to make many frequent snapshots at minimal network and storage
# impact.
#
# This version doesn't do any form of rotation: you'll eventually run out of space.

The release 5.0.0.Alpha2 is now [available on our shiny new website=>http://hibernate.org/search/downloads/]: as the alpha1 release also did, it integrates with Apache Lucene 4.6.1, but now we do it better ;-)

[brush: xml] <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-search-orm</artifactId> <version>5.0.0.Alpha2</version> </dependency>