Sun, 16 Jul 2017

2:41 PM - Stack Clash and FreeBSD

So FreeBSD has some working code in 12-CURRENT to work around this issue, but once they start testing it with ports, things blow up. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220493

Good old ruby is screwing us all again. I wish they'd figure out DESTDIR but that's another issue.

()

2:06 PM - Spring + Flyway migration

Just finished setting up flyway on just journal. It was a lot easier than I thought. Since I'm using spring boot, I didn't even need to setup the maven plugin. All you need to do is add the flyway core dependency to maven pom.xml and then create a db/migration sub folder inside of your src/main/resources folder. Finally, create a baseline file V1_0__yourscriptname.sql and it will do the rest. For an existing database, add the spring property flyway.baseline-on-migrate=true so it doesn't blow away your existing databases.

Testing is more of an issue though. You could either do an in memory database, or in my case, I kept the travis ci manual setup where I load a sql file before starting up. I then have that same migrate property on my test db. This allows me to load some test data prior to spring taking over. It might be an issue later though as I add more items.

tags: spring boot flyway

()

Thu, 13 Jul 2017

8:20 PM - Flyway

I've been looking at Flyway, a tool to manage database migrations. It can correct the database version at startup and has a standardized way to manage deltas via standard SQL scripts.

https://flywaydb.org/getstarted/how

tags: flyway

()

8:18 PM - Spring Cloud Netflix

I've been looking into Spring Cloud Netflix lately. It looks pretty cool. There are libraries for proxy of micro service calls (zuul), service discovery (eureka), and circuit breaker functionality (hystrix) to help with high availability.

https://www.todaysoftmag.com/article/1429/micro-service-discovery-using-netflix-eureka

https://github.com/Qkyrie/spring-boot-netflix-example/tree/part1_eureka

https://dzone.com/articles/the-netflix-stack-using-spring-boot-part-2-hystrix

https://github.com/Netflix/zuul

https://spring.io/guides/gs/service-registration-and-discovery/

https://spring.io/guides/gs/circuit-breaker/

https://spring.io/guides/gs/client-side-load-balancing/

()

8:15 PM - More on etags

Here are some interesting links I found for etags.

http://www.baeldung.com/etags-for-rest-with-spring

https://stackoverflow.com/questions/40950005/how-to-embbed-etags-into-crud-api-in-spring-boot

http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/mvc.html#mvc-caching-etag-lastmodified

https://github.com/pglebow/rest-data

tags: etags

()

8:14 PM - Etags

I've been looking into etags again. I looked into them several years ago as I found a very bad etag hand rolled implementation for Just Journal. It's an old pre spring approach.

I decided to add a few etags to some common API endpoints in just journal. I think I may have to version the api.

()

Sun, 9 Jul 2017

3:20 PM - Started new job

So I started a new job last week. Now I'm trying to learn a few new things like rxjava.

()

Tue, 20 Jun 2017

3:52 PM - Installing SSL certs from Amazon AWS RDS instances in java

Having problems connecting Java apps to amazon RDS instances? Try installing the CAcerts from amazon as follows. These instructions cover freebsd and Mac OS X.

# (use curl or wget on mac)
fetch http://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem


# create individual files from the bundle for loading into java
split -p "-----BEGIN CERTIFICATE-----" rds-combined-ca-bundle.pem individual-


# load them into your cacerts file in freebsd
find . -iname 'individual*' -exec keytool -import -file {} -alias {} -storepass changeit -keystore /usr/local/openjdk8/jre/lib/security/cacerts \;

# mac version, tweak for your JDK path
find . -iname 'individual*' -exec keytool -import -file {} -alias {} -storepass changeit -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/security/cacerts \;

tags: keytool aws rds ssl java

()

Tue, 4 Apr 2017

9:14 AM - Apple partially admits mistake with mac pro

According to this article, apple admits the design of the mac pro limited what they could do with it. They also claim they are working on it with next year possible for a refresh.

More waiting.

http://daringfireball.net/2017/04/the_mac_pro_lives

location: Home

()

Mon, 27 Mar 2017

Sun, 19 Feb 2017

10:03 AM -

I doubt one can generalize that a remote software team is more productive. I know that when I worked for Prime Research, I got to work from home for the first 9 months and I got a lot more done that way. Of course, then I ended up working in the office and managing a team.
When you're trying to build something complex, it's impossible to get anything done with distractions. I can code up some front end changes or add a new endpoint for an existing controller in spring without a lot of thought, but if I'm trying to design a major new feature, I need quiet and a white board.
I can say in the last 3 months, I've avoided starting several tickets at work until I knew I could get at least an hour to actually focus on them without meetings or other interruptions. It's happened at least 5 times. The farther I go with my career, the harder it is. I remember when I used to get 2-3 hour blocks of time to work on things. Those were the good old days.

https://ask.slashdot.org/story/17/02/18/223215/slashdot-asks-are-remote-software-teams-more-productive

location: Home

()

Sun, 12 Feb 2017

2:05 PM - Run windows 3.11 from your browser

It's kind of amazing what they have been able to do with DosBox in browsers. You can now run Windows 3.1 in a web browser and play solitaire or minesweeper, old school!

https://archive.org/details/win3_stock

tags: windows

()

2:03 PM - 8th Gen Intel CPUs still slow

Intel has given up on another CPU generation getting any speed. More 14nm and no more cores. DEFAULT TO SIX CORE GUYS. Sell mobile chips with PERFORMANCE for power users.

https://hardware.slashdot.org/story/17/02/10/1322206/intel-confirms-8th-gen-core-on-14nm-data-center-first-to-new-nodes

tags: intel

()

2:02 PM - Wordpress viruses are getting out of control

There are way too many sites out there that don't patch. Since wordpress is the most popular platform, it's an obvious thing to attack. I think they should develop some type of auto update mechanism for critical patches.

https://arstechnica.com/security/2017/02/virally-growing-attacks-on-unpatched-wordpress-sites-affects-2m-pages/

tags: wordpress

()

2:01 PM - Nintendo Wii U

I purchased a Wii U refurbished the other day. I was always skeptical after trying one out in Best Buy. Turns out the demos just sucked. I actually do like some of the games.

Ended up buying several Wii U games yesterday. Got pikman 3, Mario maker, new Super Mario bros u, donkey King tropical freeze and Zelda ww.

tags: wiiu

()

1:59 PM - Mac Office macro malware

The first wild office macro virus for Mac OS X is out.

http://thehackernews.com/2017/02/mac-osx-macro-malware.html

tags: mac

()

1:58 PM - Yale renames Calhoun college after Grace Hopper

I'm really happy that Yale decided to rename the building after Grace Hopper. Big influence on computer science.

http://www.npr.org/sections/thetwo-way/2017/02/11/514747243/yale-renames-calhoun-college-over-namesakes-ties-to-slavery-and-white-supremacy

tags: yale

()

1:26 PM - Spring fun

I've been woking on upgrading an app from Spring Boot 1.2.4 to 1.2.8. It seems that the app wouldn't work with any version past 1.2.5 and that turned out to be an issue with Jackson serialization. Back references were not working as expected. I ended up punting on it and making a new class to represent incoming post data and then transforming that into a valid entity. Things are going smoothly now.

location: Home

()

Sun, 5 Feb 2017

6:54 PM - Fun with watercooling

I setup a water cooling kit and new case for my desktop PC in January. It's an xspc setup with a alphacool waterblock for the AMD R9 Fury Nitro card. It's running as low as 22C idle and 55C under heavy load (Overwatch) with the gpu. CPU load seems to keep it in the 40s.

The best part is that unlike those self contained loops for CPUs, this is actually quieter. It's often quieter than my mac mini. That thing is loud when the fans spin up!

My testing shows it runs around 20db with overwatch going (and audio muted)

location: Home
mood: Happy Happy

()

6:51 PM - Spring data elasticsearch

I'm experimenting with spring data elasticsearch. I've managed to use an embedded instance with the just journal site and at work I've got it running in a cluster.

I'm a big fan so far. It's not my first time using elasticsearch, but it certainly makes it easier to query.

location: Home

()