Setting the Boot Timeout on Solaris
Setting the Boot Timeout to 3 Seconds sudo bootadm set-menu timeout=3 Read more about Setting the Boot Timeout on Solaris
Setting the Boot Timeout to 3 Seconds sudo bootadm set-menu timeout=3 Read more about Setting the Boot Timeout on Solaris
Find Services svcs | grep <service name> Start / Stop svcadm restart <service name (ex. svc:/network/ssh:default)> Read more about Finding/Starting/Stopping Services in Solaris
Change PermitRootLogin to yes in /etc/ssh/sshd_config. Comment out the CONSOLE=/dev/console” in /etc/default/login. Execute rolemod -K type=normal root Restart SSH with svcadm restart svc:/network/ssh:default Done. (credit http://veereshkumarn.blogspot.com/2012/09/how-to-enable-ssh-root-login-in-solaris.html) Read more about Permitting Root Login to Solaris
Seisei v 0.1.2 Released New Features v0.1.2 - currently installed at seisei.shick.io - AutoComplete for all directives has been added. v0.1.1 - the 0.1.1 release introduces the use of Java Faker to expand the capabilities of Seisei. The examples have... Read more about Seisei 0.1.2 Released
LDAP Test Utils v 2.0.0 Released Updates in 2.0.0 Update to Java 1.8 Update spring-ldap-core to 2.2.0.RELEASE Update unboundid-ldapsdk to 3.2.0 Getting Started Note - I don’t have this code deployed in a Maven repository anywhere. Thus, you’ll have to... Read more about ldap-test-utils 2.0.0 Released
JSoup Configuration v 1.0.2 Released This library was born from the need to externalize JSoup’s HTML Whitelist. Deploying code for constant tweaks to the Whitelist’s configuration was cumbersome. This library allows me to update the configuration outside the code (in... Read more about jsoup-configuration 1.0.2 Released
IronMQ Spring Integration v 3.0.0 Released IronMQ Spring Integration v 3.0.0 has been released. The new version uses the IronMQ v3 client library (and thus new API). All dependencies have been updated including Spring Integration. Iron MQ Spring Integration Extensions... Read more about ironmq-si 3.0.0 Released
I started working with Storm a few days ago. It’s just a minor task but it’s fun because it’s something different. I’m a certified Hadoop developer (even though I don’t use it) so getting familiar with Storm’s ecosystem was trivial... Read more about InvalidClassException Upon Storm Topology Submission
What is PlantUml? According to the makers of PlantUml - PlantUML is a component that allows to quickly write - Sequence diagram Usecase diagram Class diagram Activity diagram Component diagram State diagram Deployment diagram Object diagram wireframe graphical interface I... Read more about PlantUml in Atom
I’ve really come to love Korean soups. They’re especially nice on a cold day, but for lunches (I work from home) they are fantastic. I can throw together a fresh soup with lots of vegetables and it’s always tasty. At... Read more about Yet another Korean style Soup
I am NOT a consistent blogger, but lately I’ve been doing some work. Tonight I thought it might be fun to visualize (with D3) my activity like you can see on github. I found a great calendar view on the... Read more about Blogging Activity Visualization
Reservoir Based Sampling I encountered a programming problem where a very large stream of data was coming through and I needed to get a decent sample of random values from the stream. I didn’t want to load it all in... Read more about Reservoir Sampling with Java 8 Streams
My First Lambda I recently posted that I was building a leaderboard for my ‘seisei’ app. I built the basic page and the DynamoDB tables but I needed a way to update the tables. The prior post discussed using EMR... Read more about My First AWS Lambda
The Problem See the bottom of the page for a REPL I recently needed to group a set of strings by regex. This isn’t a very hard problem but I wanted to utilize Java 8’s streams to do the hard... Read more about Grouping Data by Regex with Java 8 Streams
Building a Leaderboard on DynamoDb I periodically work on a pet project “seisei” which affords me many opportunities to learn different technologies. My latest was a migration from RiotJS on the front end to Om and ClojureScript. The backend was... Read more about Building a Leaderboard on DynamoDb
I recently came across some code that was loading millions of rows into memory from hibernate which it then proceeded to iterate over. I knew there had to be a better way. I had done something similar via callbacks earlier... Read more about Hibernate Results Streaming with RxJava
My Version of baechu kimchi dubu jjigae baechu kimchi : cabbage kimchi dubu : tofu jjigae - stew Note- Sorry I have no pictures. I published this only so I wouldn’t lose the recipe and I could practice my markdown.... Read more about My version of baechu kimchi dubu jjigae (Cabbage Kimchi and Tofu Stew)
My Version of yangbaechu-doenjangguk yangbaechu : green western cabbage doenjang : korean fermented soybean paste guk - soup I will start by saying that I know very little when it comes to Korean food. I’m familiar with it and probably... Read more about My version of yangbaechu-doenjangguk (Korean Green Cabbage Soybean Paste Soup)
Gask Mask 0.8.1-trevershick Fork released Note The intent is to roll this into the main product. For distribution until then, I have the fork release in my github fork. Fixed Host file replacement not working #70 - Fixed the replacement... Read more about Gas Mask v0.8.1-trevershick Released
A challenge was posed to me... Can we highlight dependencies between items in an HTML grid easily? I initially thought it was an untenable problem but it turned out to be very easy. The basic strategy was to overlay a... Read more about Rendering Dependency Arrows with React and Canvas
I recently started using Riot JS on a home project built with Clojure and got tired of running the riot compiler manually. So I built lein-riot. It’s easy enough, just add it to your project.clj file and run lein riot.... Read more about Compiling Riot Tags with Leiningen
Datascript has really interested me as of late. I have not done much extensive work with it, but the prospect of its use within a rapid prototyping environment seems promising. Effectively, it's a Datomic like client side database implemented in... Read more about A DataScript Driven Chart
I spent a little bit of time putting together a time in process scatter chart with D3. The main reason was to play with D3. This example loads a JSON file through Ajax and adds/removes data series with transitions to/from... Read more about D3 Time in Process Scatter Chart
Leiningen Riot Compiler v0.0.1 released also see Compiling Riot Tags with Leiningen (defproject example "0.1.0-SNAPSHOT" :url "http://example.com/FIXME" :bower-dependencies [[riotjs "2.0.12"]] :plugins [[lein-riot "0.0.1"]] :riot {:tags [["resources/public/" "resources/public/seisei-tags.js"]]}) Read more about lein-riot 0.0.1 Released
The Map Read more about My Map
So, I’ll preface this post by stating that I am a big fan of Guava and I advocate it’s use. That being said, Guava and Hibernate ( and Legacy Code ) took a bit bite out of my butt yesterday.... Read more about Guava Bit Me (with Hibernate)
I'm a big fan of Yojimbo, but i find myself copying e-mail content to Yojimbo a lot. I decided it would be easier to simply flag a message and let AppleScript work its magic. Read more about Generate Yojimbo ToDo Items from Flagged E-Mail
Generate ‘grant’ statements like the following directly from the oracle database itself. This can be usedful for migrations. grant DELETE, INSERT, SELECT, UPDATE on PARTY_EULA_ACCEPTANCE to X_USER;grant DELETE, INSERT, SELECT, UPDATE on BUSINESS_CATEGORY_TYPE to X_USER;grant DELETE, INSERT, SELECT, UPDATE on... Read more about Generate GRANT statements from Oracle DB
Don’t use showSql=true in Hibernate. This is NOT the appropriate way to do this. Instead, use your log4j configuration to turn on logging for Hibernate. Set the following categories to TRACE and you’ll be set. Configuration log4j.logger.org.hibernate.SQL=TRACElog4j.logger.org.hibernate.type=TRACE Results main 2013-06-12... Read more about Show Hibernate SQL via Log4j
Soon after recreating my blog using Jekyll and Github pages, i realized that my images on the main page were too large for the view. Instead of fixing the images (as i assume i may include even larger images in... Read more about Use jQuery to Popup Images in Dialog
Iron MQ Spring Integration Extensions v 1.0.0 released <dependency> <groupId>com.github.trevershick</groupId> <artifactId>ironmq-si</artifactId> <version>1.0.0</version></dependency> Read more about ironmq-si 1.0.0 Released
Originally found here git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" Read more about A very nice Git Log
Use ‘utl_raw.cast_to_raw’ to convert a string to the blob (see below). update act_ge_bytearray set bytes_ = utl_raw.cast_to_raw('<?xml version="1.0" encoding="UTF-8"?><definitions id="LOAProcessDefinition" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" targetNamespace="http://www.activiti.org/bpmn2.0"></definitions>') where deployment_id_ = 5701 and name_ = 'oops.bpmn20.xml'; Read more about Updating Oracle BLOB with SQL
Generate BPMN Flow Documents via XSL and Graphviz Read more about Generate BPMN Flow Documents via XSL and Graphviz
Best Maid PicklesBest damned pickles in the world. Read more about Best Maid Pickles are Awesome!
Up until yesterday, i had not found a good way to test my LDAP client code besides manually testing it, which is simply unacceptable from my standpoint. But thanks to this stack overflow anwer I was lead to the Unboundid... Read more about Testing LDAP Client Code with an Embedded LDAP Server
We use Rally at work for managing our development efforts. The tool itself is OK but something as simple as creating a defect can take too long. Some defects were going unreported because it was too cumbersome to enter even... Read more about Create a Defect in Rally from a Screenshot Automator Service
Mac Terminal Slow?a simple and easy tip or speeding up Terminal Read more about Mac Terminal Slow?
I do development and sometimes I have to recreate issues with actual data which means using other people's email addresses. Obviously I don't want to send them email while i'm testing so I use Apache James as a local only... Read more about Setup Apache James and Mutt as Local Only Email Server and Client
So, search.maven.org is a great site, but i don't want to bring up a browser just to find artifacts. In an effort to bone-up on my groovy I thought i'd create a groovy script that would search for me. Feel... Read more about Querying search.maven.org from the command line
If your variable name has more syllables than “In the garden of eden” then you might be an a-hole. Object queryImplUnderConstruction; Read more about Iron Butterfly Variables
Yep, I said itI came across this page today. I was providing some information to these guys and apparently I had put 'anyhoo' at the bottom of the page. Made me laugh at least. Read more about Yep, I said it
This is a short post, i'll leave it to the image to explain… I will say that i'm glad slf4j is as flexible as it is and allows me to unify the logging, but come on….. Read more about The state of Java Logging makes me Cry
I've been playing with JQuery Mobile and Rails and I had a problem with a checkbox not working properly. The checkbox would render properly but wouldn't update my model. My checkbox was rendered within the erb template with the following... Read more about Checkboxes and JQuery Mobile with Rails
So, one of our developers was seeing some odd results in his Jenkins cobertura reports. The tests weren't changing, but the coverage numbers were fluctuating. Reviewing the logs, I found a common issue (shown below). Results Instead of typing up... Read more about Maven 3 Cobertura Issues
The Problem I was working on a poc the other day using Zookeeper, Netflix's Curator library and Spring MDPs. I wanted to start a single mdp in a cluster at a time. In order to do this I needed a... Read more about SmartLifecycle Spring 3.0 Autostart Bug
Resign Patterns - a humorous take on design patterns Read more about Resign Patterns - a humorous take on design patterns
Recently I had to write some JavaScript for a project and needed a way to test it. My first thought was to have a sample page that uses the JavaScript functions and objects I was creating, and in fact I... Read more about JavaScript Unit Testing Example
I came across a real unit testing nightmare the other day attempting to write tests for the new SSO system. SiteMinder has it's own SDK and agent API that you can extend, but it's all based on JNI. Even though... Read more about Unit Testing and System.loadLibrary
I've created a custom auth scheme and finally got it deployed. It took a while. I finally got to the point where i created a log() method that logs to /tmp/{classname}.log. This is not a long term solution, but it's... Read more about SmAuthScheme.init() not called?
Add the following to your pom.xml. This works from v 0.12 on up it appears. <properties> <m2eclipse.wtp.contextRoot> the_context </m2eclipse.wtp.contextRoot></properties> Read more about Setting the Context Path in m2eclipse WTP
I was working with a team that was using Hibernate with Oracle and writing ‘unit tests’. My major issue was that the tests were slow when running against Oracle. Unit tests should be as fast as possible. There are different... Read more about Hibernate testing with H2 and Oracle
So, while working with Activiti, we noticed that Activiti was redeploying bpmn files EVERY TIME the server restarted even though the files never changed. Since there are two servers, the number of deployed processes was increasing rapidly (many restarts during... Read more about Activiti Deployment Bug
Activiti ( version 5.6 at the time of writing this ) does not support using fully qualified table names for it's persistence layer (i.e. prefixing tables with a SCHEMA. value) Our company has a standard where the application server user... Read more about Activiti and Oracle Schema Prefix (Qualified Tables)
Visualising Garbage Collection in the JVM Read more about Visualising Garbage Collection in the JVM
I've started learning Scala and Lift together today. I've briefly looked at it prior to today but I haven't really dug in until today. My first major hurdle is Eclipse. I've had numerous issues getting Scala IDE and Lift working... Read more about Scala and Lift
I've been writing more Java lately and reading about Scala to the deficit of my Python. So I figured i'd take a little time this morning to do a code kata in Python. I may implement it in Ruby as... Read more about Code Kata 2 - Karate Chop - Python
The default fill_in method of Capybara is case sensitive. This is apparently due to their use of XPath. Anyhow, this seems to not be very well aligned with the entire idea of DSLs and letting non programmers write tests. After... Read more about Case Insensitive Search of Text Field in Cucumber
The Code Dump - Using Puppet to Automatically Configure New EC2 Instances Read more about The Code Dump - Using Puppet to Automatically Configure New EC2 Instances
Well, after the first day I haven't had many software problems. A couple of minor app problems and one browser crash but those are pretty minor. My largest issue for today is an annoying 'p' key which doesn't want to... Read more about Google cr48 First Major Problem
Gollum - Wiki built on top of gitI started using the github wiki today and while i thought it was OK, it wasn't until i realized i could download it and modify it all locally that i began to believe... Read more about Gollum - Wiki built on top of git
The most useful command of the night : find . -name “settings.py” -exec sed -i .bak -e “s/ / /g” {} \; * Note - the spaces after “s/” is actually a tab character. To enter this on a command line... Read more about The most useful command of the night
Yeah, LC is in other languages as well but used with the model objects in Django it's just sweet. I'm sure Ruby has this with RoR ActiveRecord objects but I don't care. Read more about Simple Python Awesomeness ( List Comprehension )
The admin application in django rocks. I need something like that in Java. Don't say 'grails'. Not a big fan. I think i'd rather deploy django in Jython at this point (which i will try). The speed with which i... Read more about Django Admin Application in Java
Still playing with Django. I'm liking it a heck of a lot more than RoR. Why? Well, perhaps i'll post something but for now it just 'feels' better to me. I need a real world application to develop in Django... Read more about Still playing with Django
Working with django. It's hard to keep up to date on everything. Django isn't new but seems relevant. Python is a powerful language as well so this will help propel me through Python. Read more about Working with django
Ajaxian > amelie() a devious plan to get rid of IE6I so wish I could do this on our apps. Obviously we cannot do this at work but it would be nice if the web really took hold of this.... Read more about Ajaxian > amelie() a devious plan to get rid of IE6
So one chapter of the 7 languages in 7 weeks book was Prolog. Yeah, it’s an older language but it s really fun. Since i ve been doing imperative style programming for so long it was quite literally mind-bending. It... Read more about Prolog is Awesome!
So, as a group some people at work are reading “7 Languages in 7 Days”. ‘It’s a good exercise to get some fresh blood into our brains. ‘Some of the languages covered are Ruby, Scala, Haskell, Io, Prolog and a... Read more about The Io Language
So I started working with Grails on a POC for pulling together multiple micro-web services into a common service platform offering for all of our web apps. Each of the micro-web services were going to be implemented in Grails,... Read more about POC with a new Stack