Posted in mysql

Safe update – MySQL workbench

sometime when we run update / delete in my sql using mysql workbench, we’ll encounter the following:

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect. 0.000 sec


run the following command:


Posted in 3d software, Uncategorized

Sketchup – An Easy way to design your house

After comparing a few 3d modelling software, i decided to use sketchup to design my apartment.


the Application is Simple to use for beginner, easy to learn, and has thousands of  3d model library.


doesn’t support lighting and shadow, but there are  3rd party  plugins that enable this feature.(irendering)

I am very satisfied using sketchup, now i am able to generate a 3d rendering similar to those interior designers created

Woodlands-Drive-50_v_dream4_v14_tv_console Woodlands-Drive-50_v_dream4_v14_scandi_guest Woodlands-Drive-50_v_dream4_v14_master_bathroom_2 Woodlands-Drive-50_v_dream4_v14_kitchen Woodlands-Drive-50_v_dream4_v14_bathroom Woodlands-Drive-50_v_dream4_v14

Posted in Uncategorized

Using Spring Loaded to reload Java classes on the fly – Ramon Nogueira


With its commitment to shared-memory concurrency, Java applications have traditionally followed a pattern of big initialization up front. This is great for production where that extra spin-up time will presumably be amortized over the running life of the application. It sucks for the developer making frequent,  incremental changes.

Modern frameworks like Play! and Grails offer ways around this. But they aren’t perfect and of course, you have to already be using the frameworks to benefit from them. And reloading code in an arbitrary setting is a much trickier problem than reloading code between web requests. The JVM itself has limited framework-independent powers of reloading, it can hotswap code inside method bodies but thats about it. Want to add a new method? You have to start again from Compile.

Enter Spring Loaded: a -javaagent that sledgehammers your bytecode into a form that allows arbitrary changes to be implemented on top of plain old JVM method body hotswapping. It comes from an upcoming version of Grails where it replaces classloader-style reloading but works equally well with Groovy’s  venerable antecedent.

As a demo, I’ve forked a sample Prime Faces app I found on github and added reloading support: here. In order to have new methods and bean properties picked up by JSF in EL expressions, I had to implement a Spring Loaded plugin to clear a metadata cache inside javax.el.BeanELReloader. This jar is vendored in the demo project and the sources are here. If you want to build Spring Loaded from source, I implemented a Gradle build for the project which I will try to get integrated back into the main Spring Loaded repo, but which is available separately here (branch: gradle-build).