Felt like doing an update to my outdated website and ended up changing the whole generation of the static pages.
Lately I came across a problem for which the standard Promise
's api wasn't enough. I needed something like Promise.all
but I had to make sure that the actions array will get executed in sequence
This website is for me a continuous effort of skills improvement. It started with a ready static website generator to end up to something completelly custom made. One thing I did not touch though was the css stuff.
When you hear for a new technology, all you want to do is just to use it. This is how my experience with RxJS started a while ago. It is for sure cool, but also a new way of thinking. Just like anything else new, you are going sooner or later to hit a wall. After grasping myself to find which sequence of operators whould do the trick, I tried to just test the thing.
So, you just did your first angularjs webapp and are ready for production. And then comes the requirement that before initilization you have to do an ajax request. There should be an easy way to do that right?
This year I was lucky enough to attend yet another time the devoxx conference. Here are what I saw/felt especially in regards to the my previous visit.
There is quite a buzz nowadays (2014) for functional programming and so we all try to move our thinking in a more functional way. Still, the object oriented approach seems to be the easiest way to understand and so to program at the end. The object oriented programming can be applied to any structural schematic. One of that structures though that we tend to forget is html
. So, let's try to visualize it.
On 9th of September Gion Kunz and me ran a workshop for ch/open. The idea was to introduce the basics of angular js so that someone could start experiment with it. During the workshop we did some excersizes with jsbin and hacked together a chat application.
It was about time to get rid of the blogger platform. It serves well up to the point that you feel like your page is overbloated with stuff that you do not need.
Recently I had a look at the Dart programming language and that reminded me of the getters and setters mechanism that someone has with C#. So let's have a look at them.
So google choose to announce the release of the production ready dart lang at this year's devoxx. That was though mostly a rebrand of the 0.8 version that was available some weeks earlier but that is marketing.
So, devoxx 2013 is over. My first java community (or not) conference is over. The thing is that devoxx is not about java. It is more a technology/programming conference which I personal find it even better as you have a better overview of what is going on and what the future will be.
I am always searching for the last tomcat configuration every time I need to deploy a new one, so, here is what I use.
That is a quick one. These days I was playing around with Jersey in order to create a rest web service. The thing is that I would like to test what I create. The good thing is that Jersey provides a testing framework. But...
Well, at the first glance the answer to this problem would be to just make an http request to the jsp file and get the output!
Playing with grizzly and guice. Considering that you already have a ServletModule
and and a GuiceServletContextListener
defined the above code should do the job.
For some reason allmost all the init.d
scripts for starting and stoping tomcat just calls tomcat's startup.sh
and shutdown.sh
scripts. I am ok with that as far as they work. The startup script works just fine but when I want to restart or stop a tomcat instance, in most cases I have to just kill the process.
Lately I was developing a jax-rs application. What I really like with jaxrs is the way you can handle any kind of parameter values of a request using annotations. So when I need a query parameter I just annotate a field or an argument of a Resource class with @QueryParam("paramName")
and the parameter value will get injected for me.
This is a strange combination. Not the hibernate with mssql (and any kind of sql) but the mssql server and limit clause. Yes Sql Server never supported the limit clause (and will probably never will). Of course there is workarounds for this until the 2005 version came out witch provide as the ROW_NUMBER()
function. This can give solution to our problem witch again isn't as elegant as the limit clause used by MySql for example.
A month ago, I had to do some work on a legacy application. As there is no definition of the "legacy application" expression I refer to an old one where no actual framework has been used for its creation. So there is no any ORM technology here. In that case you have to deal with plain old JDBC.
It's been a while since I last bloged but here I am again with something that took me a little bit in order to figure out how exactly should someone define a mail Session at the config files of jetty and tomcat. So the problem here is to define a mail session with name mail/Session
using the host my.mail.server.com
as mail server with username mailserver_username
and password mypassword
.
I really do not know why such an issue hasn't been fixed. I do not care who is responsible for the uglyness of Eclipse on Linux but unfortunately this is a fact. After some search I found a solution.
Inspired by the title of Douglas Crockford book, "Javascript, the good parts" and having to write an introduction on grails as a course for some colleagues, I thought it would be good to just blog about grails and the first steps some one should take.
Well, when I'm prototyping and generally developing with grails I do not want to use generate-all and just edit the generated controllers and gsps. I try to find my way overwriting maybe some actions but not edit them and some or more changes to the scaffold templates.
After having static resources get served right with Jetty within an OSGI enviroment you may want to be able to use groovy and more specific some groovlets
More or less the problem is the one that has been described at a previous post. Once again all we have to do is give some more "space" to the groovy.servlet.GroovyServlet
to look for our groovlets
Long story short: Always put your javascript at the bottom of the html. But why?
The case is an sql table with about 30 columns that I have to query and export some (or all) data. In this case plain csv format should be just fine!
Basically when you work on the osgi and want to use a resource, things are not that easy. What I wanted to do is use Jetty embedded on an Osgi container and use it with a simple servlet and a resource.
Well this is not about OSGi itself but using it at the server side. So assuming that you have some osgi bundle you want to run them on a server. There is many osgi frameworks that you can use but here we are about to use Equinox.
Not that there isn't any documentation out there, but just for helping myself, I need a place where to put all the steps needed for an installation of multiple instances of tomcats on a windows machine. Lets start...
Having read the Clean Code book by Robert C. Martin I always try to follow most of the rules he gives. In my opinion the best rule I've seen and helped me a lot in order to make more readable code is to try to make classes as small as possible.