Archive

Archive for the ‘Java’ Category

The unwritten rule

August 25, 2008 4 comments

While on my quest for more information on .NET oriented ORM solutions, I asked a friend with some years of .NET experience which ORM he uses and if he could provide me some code I could look at. He pointed me to one OSS project he’s involved with, Midgard.

Midgard’s main goal is to become a solid RAD framework for .NET developers. Yet, as you’ve probably noticed, it’s dead since the end of 2006. Why?! – I asked Pedro. He told me that the project failed because there were no contributors. I immediately refuted this fact as being strong enough to stop the development of such project, or even to give up to “open source” it.

Anyway, he’s right! At least from my perspective, .NET developers are generally unaware of the benefits of OSS. I know it’s somewhat dangerous to generalize this kind of behavior, but as a Java developer for some years now, and having knowledge on the .NET area too this is a conclusion I come to. Curiously, I was reading an article about NHibernate Best Practices with ASP.NET where the author, clearly an advanced .NET developer, states the following:

The most common dissenters of ORM technologies, in general, are developers using Microsoft technologies. (As I’ve placed myself squarely into this realm for the past decade or so, I feel quite comfortable bringing us up first!) There seems to be an unwritten rule that “if it wasn’t invented by Microsoft, then wait until Microsoft puts out the right way to do it”.

Well, simply substitute ORM for the technology you see fit and you’ll probably find this to be profoundly true!

Share your experiences, please. Thanks in advance!

Categories: .NET, Database, Java, OSS, Rants, Tek, Work

Eclipse on Mac OS X is down. Bring on Netbeans!!

Eclipse has been my preferred IDE for a while now, at work and home. I use it mainly for Java development, focusing on Enterprise Edition oriented version 3.3, Europa.

Recently, I installed it over my Macbook running Mac OS X. The problems started right away! I needed to install the Android plug-in so I followed the official instructions. Eclipse plug-in installer kept failing on me complaining about some other plug-in dependencies breakage even that all I did was selecting Android’s plug-in. I tried other plug-ins and even updating Eclipse using the official way (Help -> Software Update), but the behavior was the same.

As a good developer should do, I started looking on Eclipse’s bugzilla and after some wandering I finally hit it. Can you see what the Eclipse developer did? He told me that “Europa is around for some time” and so “they would have run into it”.. WTF? What does this means? That I’m loosing my mind? That the other guy that reported this situation is highly on dope? Come on..

Well, I’m going for Netbeans!

Free Sun training courses

May 15, 2008 2 comments

Hi fellow geeks,

Even though I’ve twitted about it, I thought I should blog to inform a more broader audience about some free training courses provided by Sun Microsystems. And here they are:

If you know of some more free trainings by Sun or any other company that you find interesting in the Software Development and System Administration areas, please feel free to reach me. I’ll post the ones of my interest with proper credits ;-)

Categories: Java, OpenSolaris, OSS, Tek, Work

Hardy Heron over Virtualbox on MacOS X, Anyone?!

April 26, 2008 4 comments

Hi fellow geeks,

Yep it’s true, I’m a switcher! It happened when I started to lack some features and some hardware issues with my audio production environment on my HP 530. Linux lacks the tools I’m used to, and none of the opensource alternatives satisfied me. Also Windows had these hiccups whenever I surpassed the number 5 in loaded VSTs. Those facts, allied to the fact that someone got me a Macbook Black 2.4Ghz, 250Gb and 2Gb RAM (which I upgraded to 4Gb) made me try more deeply the MacOS X world.

So far, in the overall I’m quite happy! Still, I lack many of my Ubuntu features, namely Gnome desktops and some CompizFusion coolest abilities.

Anyway, I’m also trying to get my Java EE development environment in my new setup. Everything went smoothly.. until I was trying to get Glassfish to run on Ubuntu Hardy Heron over Virtualbox. I installed the Server 32-bit version, but when booting it dies on me right after Grub selection menu, complaining about “this kernel is not suitable for this machine”. I also tried 64-bit without success!

Any hint on this?

Thanks in advance ;-)

Categories: Java, Linux, Mac OS X, OSS, Tek, Work

Sun + MySQL vs Oracle + BEA

January 16, 2008 5 comments

Hi folks,

It’s all over the news, Sun to acquire MySQL and Oracle to acquire BEA. Interesting, hun? Can you see a pattern here? Well, I do..

1) Sun provides a Java EE server implementation, aka Glassfish but none enterprise-scale database engine;

2) Oracle provides an enterprise-scale database engine, but none Java EE server implementation;

3) Things between Oracle and RedHat have been spicin’ up because of Linux distrowars, so Oracle, IMHO wouldn’t even try to acquire JBoss.

So, what happens?! ..oh well, pretty obvious, don’t you think?

Categories: Java, Linux, OpenSolaris, OSS, Tek, Work

Eu e o Helpdesk das Declarações Electrónicas..

September 10, 2007 7 comments

From: Paulo Pires

To: de_qt@dgita.min-financas.pt

Data: 29 de Agosto de 2007

Assunto: Erro Browser + Java

Boa Tarde,

Estou a tentar proceder à execução do vosso programa relativo ao IRS
sem sucesso. Já testei com Internet Explorer 6, Firefox 2 e Opera 9
(ambos com o plugin Java 6.0) e dá-me sempre um erro dizendo que a
versão de Java não é a correcta.

Heis a minha versão de java:

C:\>java -version
java version “1.6.0”
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)

O que se passa?

Cumprimentos,

Paulo Pires

——————————————————————

From: de_qt@dgita.min-financas.pt

To: Paulo Pires

Data: 10 de Setembro de 2007

Exmo.(a) Senhor(a),

Acusa-se a recepção do pedido de esclarecimento de V. Exa., e sugerimos que
verifique se possui os requisitos mínimos para proceder à entrega de
declarações electrónicas. Essa informação está disponível no sítio das
declarações electrónicas na internet (http://www.e-financas.gov.pt) em Ajuda >
Questões Frequentes (FAQ)

O mais comum é não possuir o software Java instalado, que pode ser obtido
gratuitamente na Internet em www.java.com. Segue-se as instruções para
instalação e configuração desse software.

Solicitamos que siga as seguintes instruções:

1. Abra o painel de controlo do Windows e aceda a opção Adicionar ou Remover
Programas e remova todas as aplicações Java que estejam instaladas.
(Caso não tenha aplicações Java pode seguir para o passo 3)

2. Reinicie o computador.

3. Aceda a página http://www.java.com/pt_BR/download/manual.jsp e escolha a
opção Windows (instalação off-line). Verifique o sistema operativo.

4.Na transferência de ficheiros seleccione a opção “Guardar o programa no
disco”. Após terminado o download deve executar o ficheiro para que o Java
seja instalado.

5. Após concluída a instalação, abra uma janela do Internet Explorer e aceda
ao menu Ferramentas (tools) > Opções da Internet (Internet options)

Escolha o separador Geral (General)
– Limpe os ficheiros temporários seleccionando Eliminar Ficheiros (Delete
Files), e Eliminar Cookies (Delete Cookies).

Escolha o separador Avançadas (Advanced)
– Java VM (ou Microsoft VM) – todas as opções devem estar desmarcadas.
– “Java (Sun)” – deve ter marcada a opção “Utilizar Java?”

6. Reinicie o computador

7. Aceda ao sítio http://java.com/pt_BR/download/installed.jsp e teste se o
mesmo ficou correctamente instalado.

(http://java.com/en/download/help/testvm.xml)

Informamos ainda que também estamos ao seu dispor através da linha 707206707
no período das 9-18h (dias úteis).

Com os melhores cumprimentos

DGCI
Psn

—————————————————————————

Pois bem, que brincadeira de mau-gosto vem a ser esta? Eu disse que já tenho Java instalado e comprovei-o com o output da consola dum sistema operativo muito conhecido por estes senhores (MS Windows) .. E respondem-me como se nem tivessem lido o meu e-mail com atenção?!

Gostei também da parte que toca a referir apenas o Internet Explorer. Por ventura serão os outros cidadãos que pagam impostos, como eu, e que não usam IE, menos merecedores de terem acesso a este serviço? Se ainda duvidam que tenho Java a funcionar, cá está uma prova para os mais cépticos: Java VM Test

E as duas semanas entre a minha questão e consequente resposta? Aposto que se tivesse que pagar algo não me davam as duas semanas…

Enfim, é o país que temos! Exmos. Senhores da DGCI se precisarem de contratar alguém que vos implemente um sistema eficiente e independente, rico em qualidade e sem darem origem a dúvidas do meu género, por favor, contactem-me. Terei muito gosto em indicar-vos meia dúzia de empresas PORTUGUESAS que concerteza se mostrarão à altura… e por um preço bastante inferior ao que terão pago pelo sistema actual.

Categories: Java, Life

Siafu – An Open-Source Context Simulator

July 20, 2007 1 comment

Hi fellow geeks,

Today I’m writing to present you a very interesting project from a friend of mine working at NEC Europe Network Labs (Heidelberg, Germany), which is called Siafu.

According to the website…

“Siafu is a versatile, large-scale Context Simulator written in Java. Download it, create or modify a scenario and fire it up. Your simulated world includes models for agents, places and the context therein. By tweaking these models, you influence the scenario, and can collect the context data for any of your agents.

(…)

Siafu can generate its own context and at the same time incorporate the one you obtain from your sensors. The information can then be visualized with a user interface, or you can generate datasets for machine learning. By plugging an application to it, you can test and demonstrate the effects of context changes on it.”

The project page itself is cute, simple and rich in useful information. So if you’re interested in this type of tool go grab it and have fun!

siafutop.jpg

I won’t extend on this subject because my only target was to publicize the thing. As me, probably some of you will find this tool very appealing for some tasks at your job or just for academic purposes but either way it’s a very interesting piece of work.

Grats go to Miquel :-)

Once the project is open-source you are encouraged to download, modify and distribute it.

Categories: Java, OSS, Tek
Follow

Get every new post delivered to your Inbox.