Monday, October 21, 2013

Save AIRBNB in New York


I've used AIRBNB only once so far, but it was suitably in a trip to New York.  Earlier this year I went there with my wife on our first wedding anniversary.

While there people commented about some complaints from local hospitality industry complaining that the website was removing profit from them.

Honestly I doubt that is true, in fact I would never have gone to NYC if it had not been for the competing prices of this website. When we were there, we effectively brought money in, not only by the local attractions but also by the restaurants, souvenirs and some shows we attended.

On top of all that we had a great opportunity to spend some time with our hosts get some insights and casual conversations not usually available to the traditional tourists.

All in all, I just wanted to leave here my support and appeal to help keep AIRBNB in NYC and in the US. It will definitely increase the likelihood of us going back to the US on holiday.

If you agree with this, you can sign a petition online, here:

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: https://code.google.com/p/bigstructure/

"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.
DemoClient.groovy:
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 {
        @Override
        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;
            while(count>0){
                 echo.request(new EchoRequest(value));
                 out = echo.getResponse();            
                 printf "[%d]ECHO: %s\n" , [count,out.getValue()] as Object[]
                 count--;
                 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
Output:
[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!