Mon, 4 Sep 2017

11:21 PM - AMP?

I’m trying to understand the point of AMP. It seems like Google wants you to do full pages in it but it breaks so many frameworks!

()

11:19 PM - Apple does not innovate that much in the Tim Cook Era

http://www.businessinsider.com/apple-products-tim-cook-ceo-2017-9

Someone is a Tim Cook fanboy. Yeah, he's made some money for apple but imagine what would have come in if he had actually been refreshing their other products during that time period. What if Mac Pros, Mac minis, and even macbooks had been refreshed on a regular schedule for the last 4 years? What if apple had seen the home speaker market a year sooner and not let amazon and google own it. At this point, google has their own product and nearly every major electronics manufacturer just entered that race before apple ships anything.

tags: apple

()

11:15 PM - U2 - Detroit - Joshua Tree Tour

Went to the U2 concert in Detroit last night. It was a good show. The opening act was Back. He did a good job.  U2 played their standard set but Patti Smith made an appearance and did a song with the band.

tags: concert detroit music

()

Sat, 5 Aug 2017

5:21 PM - Ryzen

I wanted to share some thoughts on Ryzen bugs. As an early adopter of AMD Ryzen CPUs, I've had a lot of frustration with trying to boot non windows operating systems on them. I had assumed that it was simply a new platform and my OS needs some work. However, I did some research yesterday. Several different people have reported issues using Linux on Ryzen as well. Bash randomly crashes. GCC 4.6.x seems to trigger more problems than GCC 6 when compiling code. Matt Dillon of the DragonFly project even tracked down that there is a bug in SMT (AMD's hyperthreading equivalent) that is triggered when the CPU is under high load. Certain instructions occurring on one core while another thread is CPU bound can cause the entire system to crash. There's also a weird interaction with memory access in certain regions to a point that DragonFly and FreeBSD have had to move the trampoline to another location to avoid crashes!

DragonFly has already done at least 3 big ryzen patches and FreeBSD has 4 PRs open on it. AMD needs to get some serious micro code updates out for this thing.

Due to all of these problems, I'm not going to buy a ryzen CPU for my server as originally planned. I'm going to look at intel now.

I still think ryzen is a great platform for casual gaming and turning off SMT may improve reliability.

()

5:07 PM - Overwatch

Been playing a lot of overwatch lately. I'm find that it's a great game, but there is a lot of trolling in it. It's tiring.

()

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: boot spring 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: rds keytool java aws ssl

()

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

()