This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html;charset=UTF-8" %> | |
<%@ page import="org.apache.log4j.Level" %> | |
<%@ page import="org.apache.log4j.LogManager" %> | |
<%@ page import="org.apache.log4j.Logger" %> | |
<%@ page import="java.util.HashMap" %> | |
<%@ page import="java.util.Enumeration" %> | |
<%@ page import="java.util.Set" %> | |
<%@ page import="java.util.Arrays" %> | |
<% | |
/* This was originally suggested by Nelz on http://nelz.net/2008/04/08/log4j-runtime-configuration */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.xmedeko.hibernate; | |
import org.hibernate.Criteria; | |
import org.hibernate.HibernateException; | |
import org.hibernate.criterion.CriteriaQuery; | |
import org.hibernate.criterion.Order; | |
import com.google.common.base.Strings; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.xmedeko.hibernate; | |
import org.hibernate.Criteria; | |
import org.hibernate.EntityMode; | |
import org.hibernate.HibernateException; | |
import org.hibernate.criterion.CriteriaQuery; | |
import org.hibernate.criterion.Criterion; | |
import org.hibernate.engine.TypedValue; | |
import org.hibernate.type.Type; | |
import org.hibernate.util.ArrayHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Wrapper around jmap (and jps). | |
## Usage: PID file | |
if [[ "$#" -le 0 ]]; then | |
jps -ml | |
echo | |
echo "Usage: $(basename $0) PID file" | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.xmedeko; | |
import java.util.List; | |
import java.util.Set; | |
import org.hibernate.annotations.BatchSize; | |
import org.hibernate.proxy.HibernateProxy; | |
import org.hibernate.proxy.LazyInitializer; | |
import com.google.common.base.Preconditions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.xmedeko; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; | |
import java.util.Arrays; | |
import java.util.logging.Logger; | |
/** | |
* IP range or just one IP address. The main method {@link #containsAddress(byte[])} tests if the given address is in the range. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Helpers | |
{ | |
public static class DapperSelectColumns | |
{ | |
/// <summary> | |
/// Hack to string for select statement for the given ORM type. | |
/// </summary> | |
/// <param name="ormType"></param> | |
public static string SelectClause(Type ormType, string alias) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
## Creates explicit dirs on the bucket | |
## | |
function print_help() { | |
echo "Usage:" $(basename $0) bucket_mounted_dir | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Especially usefull when placed inside Window and ScrollViewer --> | |
<myc:IgnoreWidthControl> | |
<TextBlock Text="Very long text which has to be wrapped. Yeah, it must be wrapped." TextWrapping="Wrap" /> | |
</myc:IgnoreWidthControl> |
OlderNewer