Posts

67 entries
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
201510 · 08

practicing spring jpa @NamedQuery, @NamedNativeQuery

In jpa.. you can query data through a repository with findAll or the findOneBy....

springjavajpa
Spring1 min
201510 · 07

spring jpa query practice

Tested entity mapping plus queries.. Query conditions 1. When fetching a Member.. also fetch the member's images... and the list of inters 2.

springjavajpa
Spring3 min
201510 · 05

spring jpa setup and test (maven config)

I develop with mybatis most of the time.. But JPA is supposedly the trend, so I wired it into a small project.

springjpa
Spring3 min