ddelizia blog
A programming diary to share knowledge on the network
Tuesday, November 14, 2017
Genetic Algorithms: Cool Name & Damn Simple
Genetic algorithms are a mysterious sounding technique in mysterious sounding field--artificial intelligence. This is the problem with naming things appropriately.
from Pocket http://ift.tt/1poDGOs
via IFTTT
Saturday, May 3, 2014
AngularJs form validation with Twitter Bootstrap
Hi there, it has been a long time that I dont write a post on this blog but I have been really busy in the last months. In those months I have been having a look at new technologies, and between these I was studying really hard AngularJs. It is a powerful MVC framework for spa (Single Page Application) you can find more documntation on the official website if you are new and interested in learning (http://angularjs.org).
I was writing with AngularJs a form validator that allows you to simply validate form. I just needed few lines of code to create a powerful validator that validates single field and the entire form.
Dependencies are:
- Twitter Bootstrap css
- angular-growl
- angular-strap
Thursday, August 8, 2013
How to dynamically load file properties based on environments: Spring Profiles tutorial
If you are working with different environments which need different property file configurations, maybe the best way is to load a specific profile for each different environment wich load the specific properties for that environment. There are different ways to create profiles in Java, but in this post I will just talk about the way I used.
My applications normally uses Spring framework and Maven for the build/deploy process. In Maven 3 is possible to create profiles but I find it not very usefull because if you want to create application properties dynamically then you need to use ant plugins, so I found another way: using Spring Profiles (avaliable from Spring 3.1).
My applications normally uses Spring framework and Maven for the build/deploy process. In Maven 3 is possible to create profiles but I find it not very usefull because if you want to create application properties dynamically then you need to use ant plugins, so I found another way: using Spring Profiles (avaliable from Spring 3.1).
How to enable USB debugging mode on Nexus 4/Nexus 7
Starting in Android 4.2 Jelly Bean, Google has hidden the ability to enable USB debugging mode.
To see the option for USB debugging mode in Android 4.2 or higher, do the following:
To see the option for USB debugging mode in Android 4.2 or higher, do the following:
- Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”
- Press “About phone/About tablet”. At the “About” screen, scroll to the bottom and press on “Build number” seven times. Make sure you tap seven times. You will see a message thats says “You are now a developer!”.
- Now you have unlocked USB debugging mode. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.
Wednesday, May 8, 2013
Install Servicemix 4.4.2 as Linux Service
First of all you need to download Servicemix (you can do it from this link http://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&g=org.apache.servicemix&a=apache-servicemix&v=4.4.3-SNAPSHOT&p=tar.gz) once you have it on you linux station unzip the tar in your /opt folder. Then follow the steps below:
Tuesday, February 5, 2013
Got the new nexus 4! ...finally
It lasted just 10 minutes in the Spanish play store... At the 2nd minute I got it and after almost a week has arrived. This is my first post with it, and soon some photo to evaluate it.
Stay tuned!
Thursday, December 6, 2012
My new-FREE project repository
After some reserch and some experiment finally I fund the correct hosting. My requirements were:
It's based on Git (and also Mercurial) and really similar to GitHub but the pricing plan in my opinion is much better.
If you know some other Hosting with this features please let me now commenting this post.
- Hosting public and private projects
- Issue tracker
- Wiki
- Easy to use
- No space limits
- And FREE
It's based on Git (and also Mercurial) and really similar to GitHub but the pricing plan in my opinion is much better.
If you know some other Hosting with this features please let me now commenting this post.
Subscribe to:
Posts (Atom)