Sunday, April 7, 2013
ClassStalker......hot reload for any java maven app without Jrebel! Yes (save refresh like Play framework or Grails now in vanilla Java)
Sunday, March 31, 2013
bootstrap4j, ez way to start open source java web development
So when I first started Java web development I started with open source and I was completely lost. So many frameworks so many libraries. It took me what felt like forever to get settled.
Maven archetypes were essentially what helped me understand how to control everything and not commit 500 jars to my source code repo. Sill even with maven, getting a hello world up with all the standard frameworks was very time consuming.
I decided to make a maven archetype. Include all the things of a standard application. I was originally going to just publish it to the maven archetype repo but thought this might be even simpler for newbies.
https://github.com/asharif/bootstrap4j
just read the readme file, it's only two steps. The first time it runs it will take awhile as it's downloading all the jars for the project template but after that you can get up and running with Java development in a few second.....that's right not a few days...lol
Wednesday, February 6, 2013
Image to Zebra GRF
Monday, November 5, 2012
Friday, August 3, 2012
Detecting memory leaks in C/C++ executable or libs with vallgrind
Valgrind
on Ubuntu i installed using
sudo apt-get install valgrind
Invoking native C/C++ libs using python
This one is super ez!
from ctypes import cdll
from ctypes import c_char_p
from ctypes import c_float
lib = cdll.LoadLibrary('libmylib.so')
helloWorld = lib.MYLIB_helloWorld
helloWorld()
Invoking native C/C++ libs using ruby
install ffi. linux distros have packages.....so on ubuntu apt-get install ffi...
then here is the module code as well as sample script
module LibMylib
extend FFI::Library
ffi_lib "libmylib.so"
attach_function :MYLIB_helloWorld, [], :void
end
then your script. make sure libmylib is replaced with whatever u named the module file above
require 'ffi' require 'libmylib' LibMylib.MYLIB_helloWorld()