Posts

70 entries
201512 · 15

Disabling the cache when testing MariaDB queries

When tuning queries, run this first to see uncached results.

mysqlmariadbcache
Etc1 min
201511 · 13

calling a spring jpa namedQuery directly

As in Test.java, you can execute a NamedQuery defined in orm.xml directly with the EntityManager..

springjpa
Spring1 min
201511 · 10

spring redis integration

Integrating Redis with Spring using spring-data-redis, from the dependency through configuration and the result.

springredis
Spring1 min
201510 · 30

Switching Flume's default logging from log4j to logback

These turned out to be bigger downsides than expected, so I made a simple sink project.

centosflumelogback
Linux2 min
201510 · 30

Splitting log files by time + size in logback

With logback, the file rolls over when the day passes or the size goes over 100MB.

logback
Etc1 min
201510 · 29

Flume install and test (mac)

Installing Flume and a basic flume.conf sample, from setting JAVA_HOME to configuring sources, channels and sinks.

centosflumemac
Linux2 min
201510 · 28

building a website with spring + sitemesh

Let's set up sitemesh. There's almost nothing to change in sitemesh.xml (just the decorators.xml file path) Setup is done once you drop in the xml…

springsitemesh
Spring2 min
201510 · 21

spring jpa save

In jpa you save with the repository.save method Like the class, @OneToMany or @ManyToOne fields can be saved together.

springjpa
Spring1 min
201510 · 15

Calling c++ (dll) from c# with an LPCTSTR parameter

An example of calling a c++ dll from c#. CallingConvention = CallingConvention.Cdecl and [MarshalAs(UnmanagedType.LPWStr)] are the important parts.

마샬링marshalling
Dotnet1 min
201510 · 15

Saving a control to png in WPF (c#)

I was going to use System.Drawing like I did before.. turns out wpf already has this built in..

.netwpf
Dotnet1 min