summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
gumartinm [Sun, 29 Jan 2012 01:24:17 +0000 (02:24 +0100)]
Working on Java TCP fork.
It is being harder than I thought...
gumartinm [Thu, 26 Jan 2012 23:54:04 +0000 (00:54 +0100)]
Sorry, committing forgotten changes...
Just deleting files, there is nothing important about this commit.
gumartinm [Thu, 26 Jan 2012 23:49:59 +0000 (00:49 +0100)]
Many improvements in my remote TCP fork for Java
I keep working on it
Next steps cleaning up the code and maybe using execve instead of system.
gumartinm [Thu, 26 Jan 2012 06:28:08 +0000 (07:28 +0100)]
More tests using AndroidHttpClient
2 requests at the same moment by default
gumartinm [Wed, 18 Jan 2012 06:58:29 +0000 (07:58 +0100)]
SIGTERM handler for Java fork process.
gumartinm [Wed, 18 Jan 2012 01:19:01 +0000 (02:19 +0100)]
Launch commands without using fork from the JVM.
Sometimes you may receive a nice OutofMemory exception because of the overcommitting memory allocation,
although you could have still enough memory.
Issues related to fork and virtual memory.
See: http://developers.sun.com/solaris/articles/subprocess/subprocess.html
gumartinm [Wed, 18 Jan 2012 00:46:40 +0000 (01:46 +0100)]
Last change using HttpClient, I keep reading the API :(
gumartinm [Sat, 14 Jan 2012 13:52:05 +0000 (14:52 +0100)]
New class PrinterLogicalHelper replacing PrinterHelper
gumartinm [Thu, 5 Jan 2012 07:11:29 +0000 (08:11 +0100)]
Improving a bit the HttpClient code. I keep reading about the API.
I hope to finish this in this weekend.
I am committing white spaces, sorry for that. I am in a hurry...
gumartinm [Wed, 4 Jan 2012 06:02:14 +0000 (07:02 +0100)]
Improving the Log in main Activity. Now make more sense.
Trying to find out how to use a response handler for HttpClient
Work in progress.
By the way, I am committing white spaces. Sorry for that but I am in a hurry.
gumartinm [Tue, 3 Jan 2012 06:22:37 +0000 (07:22 +0100)]
Working with HttpClient and multiple threads.
Work in progress. It is not working right now.
gumartinm [Sun, 1 Jan 2012 09:45:12 +0000 (10:45 +0100)]
Examples with Executors (Java Concurrent library)
gumartinm [Sun, 1 Jan 2012 07:17:31 +0000 (08:17 +0100)]
Another nice example using Advices. You can define an Advice without a PointCut method.
The Advice itself may define the PointCut.
gumartinm [Fri, 30 Dec 2011 05:58:14 +0000 (06:58 +0100)]
Some nice examples using threads without executors.
gumartinm [Wed, 28 Dec 2011 06:22:53 +0000 (07:22 +0100)]
Executor Thread Poll with a tasks max number.
Next step: using SQLITE
gumartinm [Tue, 27 Dec 2011 06:21:36 +0000 (07:21 +0100)]
1. Parsing JSON data from a RESTful Web Service. DONE.
2. Download file. DONE
Next steps: we need to use the SQLITE database. There, we are going to store
the index for every downloaded file. With the advertisement id retrieved from
the JSON RESTful response, we have a unique identifier for the downloaded ad.
We are going to use that id to find out if we have to download a file because
we do not have it on the mobile or we can skip the download because it was already
downloaded.
gumartinm [Thu, 22 Dec 2011 05:46:42 +0000 (06:46 +0100)]
New Test, same as Test 2 but using Java executors instead of Android AsyncTask.
1. The onPostExecute method from AsyncTask is executed in the UI thread and I do not want that behaviour,
so it seems the best option to lauch a new Thread using without using the AsyncTask
2. First steps retrieving the JSON data from sent by the RESTful Web Service
gumartinm [Tue, 20 Dec 2011 23:11:11 +0000 (00:11 +0100)]
First steps obtaining user location
The next one will be to use a Service
gumartinm [Thu, 15 Dec 2011 21:23:45 +0000 (22:23 +0100)]
Final steps in Log in Activity.
Using DialogFragment classes
gumartinm [Wed, 14 Dec 2011 03:35:17 +0000 (04:35 +0100)]
Removing Log in activity from Stack once started the main activity
gumartinm [Wed, 14 Dec 2011 03:25:23 +0000 (04:25 +0100)]
First steps launching the main activity.
CookieManager working smoothly
gumartinm [Wed, 14 Dec 2011 03:11:49 +0000 (04:11 +0100)]
Finally I will not use AsyncTask for the log in Activity
because must not be an asynchronous activity.
gumartinm [Wed, 14 Dec 2011 00:01:48 +0000 (01:01 +0100)]
AsyncTask working: launching a new Task and storing the cookie
Test2: DefaultHttpClient, for the new Android version it is a must to chage
the default policy about threads using sockets (the UI must be as fast as possible)
gumartinm [Mon, 12 Dec 2011 06:59:14 +0000 (07:59 +0100)]
Connection to RESTful Web Service authentication
gumartinm [Fri, 25 Nov 2011 01:11:18 +0000 (02:11 +0100)]
First HTTP async client connecting to my RESTful Web Service
gumartinm [Thu, 24 Nov 2011 01:57:22 +0000 (02:57 +0100)]
No time for comments.
Trying to establish a http connection and getting weird exception :(
gumartinm [Thu, 24 Nov 2011 00:53:07 +0000 (01:53 +0100)]
First program with more than 1 activity.
First steps with a http connection. Trying to use my WebService
gumartinm [Wed, 23 Nov 2011 02:22:56 +0000 (03:22 +0100)]
First steps with Android.
Playing with activities and tasks.
gumartinm [Tue, 22 Nov 2011 03:49:34 +0000 (04:49 +0100)]
Creating new Android directory and
moving old AndroidTetris directory into this new one.
gumartinm [Sun, 20 Nov 2011 23:28:48 +0000 (00:28 +0100)]
Code refactoring (adding some nice final following the PMD
recomendations)
Using java.concurrent for the thread implementation. I am using right
now Executors.
gumartinm [Sun, 20 Nov 2011 17:31:56 +0000 (18:31 +0100)]
Cleaning up the code and calculating the screen center
gumartinm [Fri, 18 Nov 2011 02:39:37 +0000 (03:39 +0100)]
Just rest to finish the score and levels.
Besides I want to improve the code and use java.concurrent
gumartinm [Wed, 16 Nov 2011 02:10:16 +0000 (03:10 +0100)]
Cleaning useless code and adding some new collisions.
gumartinm [Wed, 16 Nov 2011 00:56:09 +0000 (01:56 +0100)]
Retrieving the the key event and moving the blocks without trouble.
TODO: To use java.concurrent instead of the "classic" Thread class.
gumartinm [Tue, 15 Nov 2011 02:26:13 +0000 (03:26 +0100)]
Finally onKeyDown method in DrawView class is working :)
Don't forget again to use the setFocusable methods. Apparently they
are very useful :]
gumartinm [Thu, 10 Nov 2011 22:52:14 +0000 (23:52 +0100)]
Fixing packages.
This code came from a personal project, and some paths did not
match with the current configuration. Now they match and this
example should run smoothly.
gumartinm [Thu, 10 Nov 2011 22:45:44 +0000 (23:45 +0100)]
Weaving with ASPECTJ libraries.
With this configuration we are not relying on the SPRING AOP
libraries. So, I guess, this is the SPRING ASPECTJ configuration,
the rest of them are SPRING AOP 2.0/1.2 with Aspects.
gumartinm [Thu, 10 Nov 2011 04:33:19 +0000 (05:33 +0100)]
SPRING AOP is a complete mess.
gumartinm [Wed, 9 Nov 2011 18:44:00 +0000 (19:44 +0100)]
Adding code to execute other custom annotations.
You can see here this powerful feature called Java Annotations.
gumartinm [Wed, 9 Nov 2011 17:37:45 +0000 (18:37 +0100)]
A very nice example about custom annotation in Spring.
Bonus: really nice maven pom files configuration.
gumartinm [Wed, 9 Nov 2011 15:49:02 +0000 (16:49 +0100)]
First steps with my own Spring annotations handler.
gumartinm [Wed, 9 Nov 2011 15:24:21 +0000 (16:24 +0100)]
Fixing wrong comment
gumartinm [Wed, 9 Nov 2011 15:07:18 +0000 (16:07 +0100)]
Messing around with Spring.
Annotations handler and programming with Aspects.
Could be useful or not, but at least it seems interesting.
gumartinm [Sun, 6 Nov 2011 23:32:21 +0000 (00:32 +0100)]
Some changes left :S
This is a personal project so, I do whatever I want XD.
In the real world I would save this commit for another moment.
gumartinm [Sun, 6 Nov 2011 23:24:20 +0000 (00:24 +0100)]
Cleaning up the code. Many, many things are left.
Step by step I will get the goal, my first Tetris in Android :)
gumartinm [Sun, 6 Nov 2011 23:13:39 +0000 (00:13 +0100)]
Some nice comments in Piece and Tile classes
gumartinm [Sun, 6 Nov 2011 21:37:56 +0000 (22:37 +0100)]
Fix bottom boundary
gumartinm [Sun, 6 Nov 2011 21:26:23 +0000 (22:26 +0100)]
First steps checking the collisions :/
gumartinm [Sun, 6 Nov 2011 20:10:01 +0000 (21:10 +0100)]
Current and next piece first steps.
gumartinm [Sun, 6 Nov 2011 02:58:17 +0000 (03:58 +0100)]
First steps drawing pieces and using enum classes.
It works!!
gumartinm [Sun, 6 Nov 2011 01:11:10 +0000 (02:11 +0100)]
Enum classes for Tiles and Pieces.
They could be useful.
gumartinm [Sat, 5 Nov 2011 20:21:22 +0000 (21:21 +0100)]
Tiles, first steps. Without effects, raw colors.
gumartinm [Fri, 4 Nov 2011 01:38:04 +0000 (02:38 +0100)]
First thread working. TODO: java.util.concurrent
gumartinm [Thu, 3 Nov 2011 01:50:40 +0000 (02:50 +0100)]
Trying some nasty things with the thread implementation.
The Google sample seems wrong... Why don't use java.util.concurrent?
gumartinm [Thu, 3 Nov 2011 00:29:33 +0000 (01:29 +0100)]
Trying game loop with thread implementation
gumartinm [Wed, 2 Nov 2011 01:43:13 +0000 (02:43 +0100)]
First steps with Android
gumartinm [Thu, 20 Oct 2011 00:41:55 +0000 (02:41 +0200)]
Some nice methods to read and write text files
Change-Id: I6b4ae34d766c7fbf57f0bdc71fdd1b75b8115a8f
gumartinm [Sun, 16 Oct 2011 17:03:40 +0000 (19:03 +0200)]
New .gitignore file
gumartinm [Sun, 16 Oct 2011 16:53:41 +0000 (18:53 +0200)]
JavaPOS KeyBoardDriver
gumartinm [Wed, 12 Oct 2011 18:25:03 +0000 (20:25 +0200)]
Merge branch 'master' of https://gumartinm@github.com/gumartinm/JavaForFun.git
gumartinm [Wed, 12 Oct 2011 18:22:15 +0000 (20:22 +0200)]
Effective Java 2nd Edition:
Item 27
Change-Id: Idc2ff6e5e807e32961a9da4e7531b8133c7917c0
Signed-off-by: gumartinm <gu.martinm@gmail.com>
gumartinm [Wed, 12 Oct 2011 17:50:05 +0000 (19:50 +0200)]
Effective Java 2nd Edition:
Item 27
Change-Id: Idc2ff6e5e807e32961a9da4e7531b8133c7917c0
Signed-off-by: gumartinm <gu.martinm@gmail.com>
Gustavo Martin Morcuende [Wed, 12 Oct 2011 13:10:27 +0000 (15:10 +0200)]
first commit