Tuesday, June 3, 2014

Getting more secure with End-to-end and more advices for your privacy!

Hi, I would like to help people to install the end-to-end project (you can read the overview in the google security blog here). For those how want 10,000 feet overview, it basically it will make you encrypt your emails, which is much more secure, you can even put a password that only the recipients will be able to read.

To install, you need to get the contents from project wiki and use the following instructions (after resolving the dependencies (like git, svc, wget, java and etc) in case you don't have them installed before hand):

To install (get the source):
vim install.sh
chmod a+x install.sh
./install.sh

To compile:
cd e2e_dev/
vim compile.sh
chmod a+x compile.sh
shopt -s expand_aliases
./compile.sh

Then just install the unpacked extension using the path  e2e_dev/end-to-end/javascript/crypto/e2e/extension/
(More details about it in
https://developer.chrome.com/extensions/getstarted )

Congratulations for the amazing project Google and  end-to-end project team =)

Guys, checkout other projects in https://prism-break.org ,so you can find things like disconnect that can help to avoid those advertisements and some undesired contents and other useful things to have more privacy.

Kindest regards,
Luan

Monday, June 2, 2014

PostgreSQL working on Mac OS Mavericks

Hello, all!

Installing PostgreSQL and make it up and running usually is a mess to me.
So, some simple and few steps worked pretty well to me.

1. Download and Install Postgres.app - http://postgresapp.com/
2. Install brew (http://brew.sh/)
3. brew install postgresql

Fine! You have postgreSQL installed. However, it may generate the following error if you try to run a migration from Rails:

 Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?  

Now you have to follow these steps:

4. sudo mkdir /var/pgsql_socket/
5. ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/
(steps described here - http://www.fullybaked.co.uk/articles/getting-postgresql-running-on-osx-mountain-lion - on section named "No Socket" )

Almost there! Now it's time for (if it happens)

 rake aborted!  
 FATAL: role "postgres" does not exist  

So, finally,
6. Access PostgreSQL command Line (if Postgres.app is running, click on the elephant on the menu bar, then Open psql, as shown on the image below)
Click on "Open psql" option
7. Now, on the terminal, type
\du
It will show you a list of SUPERUSERS. If you don't have postgres a SUPERUSER, simply add one:
8.  CREATE USER postgres SUPERUSER;

And doonnee! Finally you have PostgreSQL up and running!

Saturday, May 17, 2014

Helios - iOS apps Backend made easy

Hi All!

Some time ago I found a precious tool to build backend apps for iOS world - Helios framework!
https://github.com/helios-framework/helios . This guy is a ruby gem that allows you to do Data Mapping and Push Notifications in a very, very easy way.

If you like to build backends in Ruby and uses Heroku, this gem can be very useful if you need an iOS backend.

I have made some talks about it - http://www.slideshare.net/hannelita/rubyconf-ar-2013pdf  .

Warning - this guy is Beta yet. However, it's very stable - I have tried it with no disappointments!

Sunday, February 16, 2014

Fedora 20 release party at Red Hat São Paulo Office



Hi Guys!

I discovered a new event these days.On January 18th happened Fedora 20 Release Party at Red Hat São Paulo Office (here in Brazil). This event is a very special opportunity to get in touch to the contributors and subject matter expert which can answer almost anything about Fedora (and other Open Source stuff). You can also learn about the new features that Fedora is about to release, like Leonardo Vaz (the organizer of this event and a very cool metal open source friend =) ) talked about . And you can also learn some bleeding edge technologies, for example in this time  Ricardo talked about Openshift, a PaaS solution.

This event is really cool and everybody can go:

  • If you are just starting to use Linux;
  • If you are SysAdmin;
  • If you are a developer;
  • and so on.
Feel free to reach the people from the Fedora 20 Release Party close to you and let's share and learn information =D.


Below some photos of that day:






Monday, January 27, 2014

Quick tricky tip about JBoss CLI - stop a single server

Hello, guys.

I really like JBoss CLI, but sometime its syntax is pretty tricky and Google does not help. So, once for all: "How do you stop a single server instance in domain mode??" Yeah, not a group or a full host, but just a single server instance.

There it goes!

/host=master/server-config=server-one:stop

JUST LIKE THAT.

Hope it helps you!

Wednesday, January 8, 2014

What the hell is OSGi?

Hello, guys! Happy 2014!

Let's start this new year talking about a very nice and popular subject - OSGi. Have you already heard about it? What the hell is this OSGi that many people have been talking about?

The name OSGi comes from Open Services Gateway initiative. This name is now obsolete, since none refers OSGi for this initiative. OSGi talks about modular applications. No, not modular apps such as Maven apps and it's modules. Maven apps contain multiple sub-apps usually divided by function (web module, ear module and so on). When we talk about OSGi, we are talking about small pieces that together become a single application. This is pretty different from Maven concept, that works with applications that depend on each other and have a parent.

These small pieces of an application act like independent components. You could easily replace or upgrade them without stopping the application itself. Think about this situation as if your application were a car. A car has many independent components. You can change the car's tire without needing to buy an entire new car. Use the same idea for your application. You would be able to change one CRUD of your web app without needing to stop and start the whole application.

These small and independent pieces are usually referred as OSGi bundles (or just bundles). Your OSGi bundles can act together and compose your OSGi app with the help of an OSGi container/framework. There are many OSGi frameworks. Apache Karaf, placed inside JBoss Fuse, is one example. To be considered an OSGi framework, the container shall follow some specifications determined by OSGi maintainer groups.

This quick post just wanted to give you a brief idea about the meaning of OSGi. A nice book about this subject is OSGI in Action, from Manning Publications.

This is it! Hope you have enjoyed!

Wednesday, November 20, 2013

JBoss AS 7 - deploying modules globally on domain mode

Hello, guys! It's been a while, huh?

We are sorry for that. Luan and I are very busy writing a Maven book and giving a lot of talks in many conferences around Brazil and abroad.

Let's dive into our post!

In this post you will learn that your expose your framework/library throw modules and if you want that it automatically be access by any application deployed you can simplify your life declaring it as a global module (instead declaring the module each time in the application's XML)

While working on JBoss on domain mode, you might have to deploy your own modules. You can declare the modules on CLI in a way like that:

 /profile=MYPROFILE/subsystem=ee:write-attribute(name="HOSTNAME", value=[{"name"=>"com.ourdailycodes","slot"=>"main"}]  

Seems easy, huh?

But what happens if you do not want do add modules per HOST, but globally?

Well, there's a good trick for that.

Into domain.xml file, locate the subsystem where you want to add your module. In our case, it's "ee" subsystem. Then, add the tag <global-modules> as follows:

 <subsystem xmlns="urn:jboss:domain:ee:1.1">  
      <global-modules>  
        <module name="com.ourdailycodes" slot="main"/>  
      </global-modules>  
      <!-- Other subsystem configuration -->  
 </subsystem>  

Done! By declaring that your modules will be visible globally to all hosts of a certain profile.

More information here:

https://docs.jboss.org/author/display/MODULES/Home
https://community.jboss.org/thread/198715

There! Hope it helps you! You can ask any doubt a the comments section below =D Thank you!