Profile cover photo
Profile photo
Moh Abdullah (mhewedy)
138 followers
138 followers
About
Moh's posts

Post has attachment
Using spwrap inside spring transactions
spwrap  is a little library that simplify calls to database stored procedures in java. Read this introduction to talk an idea about spwrap before continue reading this post. We have talked before about how to use  spwrap  in spring boot application. Today w...

Post has attachment
Local port forward
How to connect on a remote service as if it is existed on your localhost ssh -L <The New Port on your machine>:localhost:<The original port on the remote machine> <Remote machine user name>@<The remote machine> Example for sql on a linux machine on port  14...

Post has attachment
Using spwrap with Spring boot
spwrap is a tiny framework to make stored procedures call from java code an easy and fun task. I've written a couple of posts about it . Today, I am gonna show you how to use it from spring boot project. The complete project sample is on github at:  https:/...

Post has attachment
Using spwrap to call stored procedures with less code
spwrap is a tiny framework to simplify the call to stored procedures from Java code. In this post, I'll implement the Columbian coffee example from Java Tutorial at oracle . This example uses mysql database to store coffee and suppliers data. see the instal...

Post has attachment
Using Spockframework to unroll donzs of test cases from a few of them
Part of working on spwrap , I am working to writing unit and integration tests form this tiny framework. I've used spockframework to write some test cases on a project in my current company, I find it very handy and complete framework. Because spockframewor...

Post has attachment
spwrap: Stored Procedure call wrapper
spwrap is a Stored Procedure caller; simply execute stored procedure from java code. Example: public interface CustomerDAO { @StoredProc ( " create_customer " ) void createCustomer ( @Param ( VARCHAR ) String firstName , @Param ( VARCHAR ) String lastName )...

Post has attachment
Google recaptcha behind a SSL Forward Proxy
If your machine/mobile device behind a  SSL Forward Proxy , then there's a possibility that google recaptcha might not work on some browsers. The reason is, the recaptcha tries to connect to 2 domains to do its work, and one of them is not so famous that yo...

Post has attachment
CompletableFuture.allOf that doens't return Void
The following is an implementation for CompletableFuture.allOf does return the result of executing all the CompletableFuture, instead of void. I take it from here , actually many other places provide this implementation. What I want to add is a test case an...

Post has attachment
easily switch between java versions on mac
add the following alias definitions to your rc (bashrc, zshrc or whatever) alias    java8='JAVA_HOME=$(/usr/libexec/java_home -v1.8)' alias java9='JAVA_HOME=$(/usr/libexec/java_home -v9)'

Post has attachment
CompletableFuture cheat sheet
I've divided CompletableFuture methods into groups for me easy to remember Beside the static methods that creates a completable future instance, here's the following groups method paramtere expression similar to // basic run () -> {} accept x -> {} apply x ...
Wait while more posts are being loaded