Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>PURE JS bug </title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="http://github.com/pure/pure/raw/master/libs/pure.js">
</script>
<style>
.red{ border: 5px red solid; margin: 5px;}
.green{ border: 5px green solid; margin: 5px;}
@lalyos
lalyos / maven-bundle-plugin-configuration
Created December 13, 2011 14:19
maven bundle plugin configuration with macros
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.5</version>
<extensions>true</extensions>
<configuration>
<instructions>
<EnvTest><![CDATA[
@lalyos
lalyos / applicationContext-security.xml
Created February 15, 2012 17:41
Spring Security LDAP
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<!-- HTTP security configurations -->
<http auto-config="true" use-expressions="true">
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/org.springframework.core-3.0.4.RELEASE.jar"/>
<classpathentry kind="lib" path="lib/org.springframework.beans-3.0.4.RELEASE.jar"/>
<classpathentry kind="lib" path="lib/com.springsource.org.apache.commons.logging-1.1.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<cache:annotation-driven />
<bean id="cacheManager" class="o.s.c.support.SimpleCacheManager">
<property name="caches">
<set>
<bean class="o.s.c.concurrent.ConcurrentMapCacheFactoryBean" p:name="default" />
<bean class="o.s.c.concurrent.ConcurrentMapCacheFactoryBean" p:name="users" />
</set>
</property>
</bean>
@lalyos
lalyos / nginx -V
Created July 11, 2012 09:54
nginx 100% cpu usage
nginx version: nginx/0.8.54
built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
TLS SNI support enabled
configure arguments: --prefix=/home/xxx/cloudfoundry/.deployments/devbox/deploy/nginx/nginx-0.8.54 --with-pcre=../pcre-8.12 --add-module=../nginx_upload_module-2.2.0 --add-module=../agentzh-headers-more-nginx-module-5fac223 --add-module=../simpl-ngx_devel_kit-bc97eea --add-module=../chaoslawful-lua-nginx-module-4d92cb1 --with-http_ssl_module
@lalyos
lalyos / LunchTime.java
Created July 16, 2012 11:45
JavaBasic - logging
package com.epam.junior;
import java.util.Date;
import java.text.SimpleDateFormat;
import org.apache.log4j.Logger;
public class LunchTime {
static org.apache.log4j.Logger logger = Logger.getLogger(LunchTime.class);
static java.util.logging.Logger julLogger = java.util.logging.Logger.getLogger(LunchTime.class.getName());
static final long MINUTES_IN_MILLIS = 60000;
@lalyos
lalyos / LunchTime.java
Created July 17, 2012 09:40
JavaBasic - maven
package com.epam.junior;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.ResourceBundle;
import org.apache.log4j.Logger;
@lalyos
lalyos / webmvc-config.xml
Created August 29, 2012 10:00
tiles reload definitions with springMVC
<bean class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
id="multipartResolver" />
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver"
id="tilesViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
</bean>
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"
id="tilesConfigurer" >
@lalyos
lalyos / webmvc.diff
Created August 29, 2012 14:45
DIFF: tiles reload definitions with springMVC
--- e8eeb3 lalyos an hour ago webmvc-config.xml
+++ a68e73 lalyos an hour ago webmvc-config.xml
@@ -8,6 +8,8 @@
<bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"
id="tilesConfigurer" >
+ <property name="checkRefresh">true</property>
+ <property name="useMutableTilesContainer">true</property>
<property name="definitions">
<list>