Archive

Archive for the ‘Java’ Category

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

I want your opinion: Glassfish vs JBoss

June 25, 2007 1 comment

Hi fellow geeks,

During the daily blog zapping I’ve come across Arun Gupta’s post on “Why Glassfish overJBoss?”. Very interesting read, specially when I have been asking the same question for the last couple weeks.

If you have an opinion on this matter please fell free to comment as I am eager to read every kind of [valid] tips.

Categories: Java, OSS, Tek, Work

Dynamic Java properties

January 12, 2007 4 comments

What are Java properties?

Java properties is the most famous way of defining Java application resources such as database connections, specific application “variables”, etc. This is very useful but, since this mechanism is static, it may become a programmer’s nightmare when it comes to adapt an application to several testbed or production environments, cause every time you make a change you have to restart your application in order to load those same changes.

Many smart coders find themselves implementing their own properties machine to enable their application to reload the properties file without having to restart the entire application. Unfortunately the complexity of this solution grows side-by-side with the application’s size.

Real world example:

We [me and the team I'm part of] are developing a JEE application which is now in the “bring-up” phase, which consists in deploying several JBoss instances in different machines and distinct Hibernate configuration for each one of the database engines. This is hard to maintain with current java.lang.Properties methodology but not with Dynamic Java properties!

So, what is Dynamic Java properties?
As the name itself explains, dynamic Java properties is nothing more than a concept that provides you a flexible way of configuring your application resources and/or behaviour in a simple way and during application runtime.

If it’s just a concept, why should I care?

Well I just wanted you to understand easily and rapidly what I’m going to present to you now: Hierarchical Inherited Rule-Interpreted XML (aka HIRIX).

Hierarchical Inherited Rule-Interpreted XML is much like an XML parser in that it takes any XML source and parses the XML to create a document object model (DOM), which can then be accessed via an API. However, the capabilities of Hierarchical Inherited Rule-Interpreted XML extend far beyond the realm of simply parsing XML. This technology is capable of modifying the XML structure as the DOM is created as well as dynamically interpreting values from the DOM as it is accessed via the API during run-time execution. Therefore, expressions can now be embedded within the elements and attributes of a XML document, and, when the element or attribute value is retrieved via the API, it is interpreted by execution of the expression.

A basic introduction to HIRIX can be found here [developerworks @ ibm.com].

Btw, does anyone know something like this for C#? Tks in advance!

Cheers

Categories: Java, Work
Follow

Get every new post delivered to your Inbox.