Sunday, July 28, 2013

SDK contained folders

If you're like me and can easily find yourself struggling with Eclipse's multiple plugins and too many unrelated projects, then maybe you want to know how I do it.

Eclipse's own solution is working sets, however I still struggle with plugins, sometimes it just seems overkill to have Android, Java, C, Ruby and others all together in one huge immutable installation.

In the end I decided to simply have multiple Eclipse installations.

One folder for each project and dependencies. One clean, movable folder. Other projects have different folders, and occasionally - when they share code - subversion/git do the trick and one project can be on multiple eclipses.

I find this works for me the best, but let me know what you think.

Thursday, July 18, 2013

BigStructure 0.5 released

This latest commit includes the expected changes plus plenty of "beautification". Groovy clients are now simpler and clearer to read, check it out:

"BigSTRUCTURE is a scalable backend infrastructure where Processing Power is detached but guaranteed, we enable applications that can seamlessly run in 1 or 1000 machines."

Sample of code using core services.
import org.feiteira.bigstructure.client.BigSClient
import org.feiteira.bigstructure.core.EchoRequest
import org.feiteira.bigstructure.client.EPUimport org.feiteira.bigstructure.core.EchoResponse
class DemoClient extends BigSClient {
        public void Main() {

            requestEPUBlocking("/echo");// ensures that the host node /<id>/echo exists (or takes the current one if available)  
            //takes some arguments
            int count = arguments[1].toInteger()
            String value = arguments[2]
            EPU echo = epu("/echo");

            EchoResponse out;
                 echo.request(new EchoRequest(value));
                 out = echo.getResponse();            
                 printf "[%d]ECHO: %s\n" , [count,out.getValue()] as Object[]
                 sleep 1000
Command line: java -jar BigSTRUCTURE-0.5.jar Client DemoClient.groovy 10 Test!
Note: don't forget to run java -jar BigSTRUCTURE-0.5.jar Server on another shell on the side
[10]ECHO: Test!Test!
[9]ECHO: Test!Test!
[8]ECHO: Test!Test!
[7]ECHO: Test!Test!
[6]ECHO: Test!Test!
[5]ECHO: Test!Test!
[4]ECHO: Test!Test!
[3]ECHO: Test!Test!
[2]ECHO: Test!Test!
[1]ECHO: Test!Test!

Friday, July 5, 2013

Cartel definition and Internet access in Portugal

cartel is a formal (explicit) "agreement" among competing firms. It is a formal organization of producers and manufacturers that agree to fix prices, marketing, and production.[1] (...) The aim of suchcollusion (also called the cartel agreement) is to increase individual members' profits by reducing competition.
Competition laws often forbid private cartels. Identifying and breaking up cartels is an important part of the competition policy in most countries, although proving the existence of a cartel is rarely easy, as firms are usually not so careless as to put collusion agreements on paper.[2][3]
Let's look at the data:

 All of the above competing companies offer 4 months at 50% discount and exact same prices (within a margin of Eur 0,01)

See also (Portuguese legislation forbidding collusion):


Práticas restritivas da concorrência


Tipos de práticas restritivas

Artigo 9.º

Acordos, práticas concertadas e decisões
de associações de empresas

1 - São proibidos os acordos entre empresas, as práticas concertadas entre empresas e as decisões de associações de empresas que tenham por objeto ou como efeito impedir, falsear ou restringir de forma sensível a concorrência no todo ou em parte do mercado nacional, nomeadamente os que consistam em:
a) Fixar, de forma direta ou indireta, os preços de compra ou de venda ou quaisquer outras condições de transação;

All contents on this post were collected on the 5th July 2013. 

There is absolutely no original thought here, only:
- a clear exhibition of the publicly available information from the companies 
- a definition exert from Wikipedia.
- a quotation of the legislation