Planet INdT

October 06, 2008

Antonio

Using wired connections from you tablet.

This hack was originally needed mainly because I am usually under a proxied network at work, and for some security issues this connection can not be broadcast'ed by access points or routers, but I do want my tablet connected to the same wired network of my desktop.

So that is my way of doing that:

1. On the desktop, setup an adhoc connection manually using the pc's wlan interface (eth1).
2. And enable ip_forward in order make it to bridge to the wired network interface (eth0).

For (1) and (2) I use to use the following bash script (to be ran as root):

modprobe iptable_nat
iwconfig eth1 essid tonikitoo mode ad-hoc key off
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

3. Set an ad hoc connection in the tablet as following (sshots taken by using system's Connection Manager):

Note is to be replaced by whatever name here.

Note: the SSID (also 'tonikitoo' here) has to match to the essid value set in line #2 of the pc script above.
Also note the value 'ad hoc' in 'network mode'.
Note2: Set proper 'Security method' here.

If your wired connection is under a proxy, set the same proxy address for your adhoc (in Advanced Settings palette).
Note: if the wired network requires no proxy, just ignore this step.


Set your ip, router and dns.
note: 'IP address' has to be in the same network of 'Router'.
note2: The IP set in 'Router' has to match the IP set in line #3
of the pc script above.
note3: 'Primary DNS address' has to match your pc's one (run 'cat /etc/resolv.conf' on the pc to check that).

Maybe this can help someone else, maybe not ... Maybe someone wants the tablet to be adhoc'ed to his laptop and also sharing its connection (wired, ppp, usb), maybe not ...

--Antonio Gomes

by Antonio (noreply@blogger.com) at October 06, 2008 08:31 PM

October 03, 2008

Marcelo Eduardo

Nokia 5800 : The videos say it all

Nokia 5800

Nokia 5800


While It’s probably clear for me that the 5800 is not an iPhone contender, and I think it’s not even supposed to be, it’s clear some of the details that makes the iPhone stand out from the competition. Don’t matter if it’s Nokia, Samsung, LG. The problem is always one:

It is not about putting touch and transitions. It’s about the whole package. It should be consistent, responsive, integrated and with visual clues to whatever you’re doing.

If you take time to look at the videos :
http://gizmodo.com/5058503/nokia-releases-5800-xpressmusic-tube-full-video-tour

What will strike you in the first seconds are several minor things that unfortunately ruin most of the experience, even the whole device / software looking quite solid:

a. Lack of responsiveness : 2 presses? Press and nothing happens for more than 1 second? Touch to zoom and it takes half a second?

b. Still carrying the past on it’s shoulder: Focus when there’s no focus? Ok, if you want to mix hardware controls with touch controls you can focus on another features but not on the list.

c. What is that pick? I am a guitar player, but to kill the stylus by putting a pick that is funny :) The portrait qwerty, the full qwerty the T9 and recognition are hitting that spot : Let’s try to please everyone. At least for me, IMHO this is where things get really ugly. Trying to please everyone is one of the most dangerous decision a design team can make.

d. Build on top of legacy: Ok you need to maintain S60 compatibility, but come on, s60 was not made for touch. Even with series90 the touch was not planned for fingers. Legacy is the worst nightmare of all.

e. the icons. Oh, the icons. The GUI icons for Camera, Video player and so on are really bad. I hope this are not the ones in the final package, but that looks so amateur :/ What is that recording light?

f. Transitions where is not needed, missing when needed : From one screen to the other a simple fade, but the selected item title slides up and decreases size to fit the former title space’s. Complicated.

g. Keyboard flying around? Consistency at least in the input method is key. The keyboard is supposed to be in the same place always, but if you look when adding a feed to your favorite friend, the keyboard goes to the middle of screen, with buttons bellow. Not good.

So, there’s a lot of things going on in the video, but they are there. At least Nokia didn’t trying to make the videos be something the device is not. The real deal seems to be there, and you know what you’re getting.

I will for sure try to use one soon, and post here if my impressions based on the video are right, and see if I can at least detail in really fine-grain level some of this small things, somebody can be reading and can be helpful!

by handful at October 03, 2008 01:22 PM

Got love the Thumbs :)

We like to do UI for thumbs, but this is way too cool for school :) Nice work by the Panasonic guys. I specially like the thumbs on the screen. It’s sort of an cartoon-rendered-augmented-not-so-reality and it rocks :)

I need to visit some Asian technology event really soon :)

by handful at October 03, 2008 11:48 AM

October 02, 2008

Marcelo Lira

October 01, 2008

Morpheuz

Trolls, QEdje and Plasma

Last weeks I was at Qt Software’s (formely known as Trolltech) office in Oslo working a little bit with those amazing guys. I would like to thank everybody there for everything :-P . It was an awesome time!

Well, talking about Oslo it’s obvious to say that I had a lot of time during the flights to hack Plasma! It was very good because I could understand a little bit more about Plasma script engine’s API and could finally make the QEdje Script Engine work 100%. Hmm…ok, maybe it need some love during package install to avoid the install of invalid files, but I’m working on this right now, right Aaron ? ;-) (just commited this fix: revision 866487)

It’s really nice to have a way to easily select an edje file and it automagically(tm) becomes an applet that can be used as a gadget. Of course QEdje needs some more love in order to support some more features from the original Edje as gradients and some other stuff, but the current version supports the most common use cases. Hey, and don’t be shiny…just git clone qedje (instructions at http://dev.openbossa.org/trac/qedje) and contribute to the project too =D.

While finishing the script engine I found some problems with Qt’s proxy widget. After some discussions with Alexis (darktears), Aaron and Thiago I finally understood the problem and was able to fix the segmentation fault: first I applied Alexis’s patch on Qt (it’s inside qt-copy now) and then used valgrind to understand the next problem I had. With that I just followed Aaron’s tip about setting the proxy’s widget to 0 (zero) just before deleting it in the script’s destructor. Just worked \o/ =D.

So, after some test and review it just went to kdebase as our friend CIA-54 (aka bot) told us:

<CIA-54> asouza * r866456 workspace/trunk/KDE/kdebase/workspace/ (6 files in 4 dirs):
<CIA-54> QEdje Script Engine arrives to kdebase
<CIA-54> Working version. Still needs improvements on package install to avoid
<CIA-54> install of invalid files.

Screenshot showing a lot of the kde logo edje animation on my desktop as well as canola’s deepblue theme (the player group) with it’s settings window (it has a preview so you can see what it’ll look like if you select that group).

my desktop

my desktop

Next steps ? Wallpaper API !!!

Cheers!

by morpheuz at October 01, 2008 01:28 AM

September 28, 2008

Bruno Abinader

Sending patches using git-email

If you work on a project that uses GIT as repository, you should probably need a simple way to send your patches to others in a simple, clean way. For this, I've started (for a while now) using a very cool tool called git-send-email. For Ubuntu users, It is available on the git-email package (sudo apt-get install git-email) and provides a way to send patches through email to others. See HOWTO below:

1. Install 'git-email' package:

$ sudo apt-get install git-email

2. Add these options to ~/.gitconfig:

[sendemail]
smtpserver = "yourmailserver.com"
smtpuser = "user"
smtppass = "abc123"

3. Now suppose you have a local patch that needs reviews/acks. Pick up
its hash with 'git log -n 2':

$ git log -n2

commit a268d86e547dffe73c9f7b4633913ffdf91b1a8e
[..]
commit bf14b2f140fc84a57f61c7f59efae294b2a9a1df
[..]

4. Pick up commit hashes and create a formal patch file using 'git
format-patch -C ..':

$ git format-patch -C bf14b2f140fc84a57f61c7f59efae294b2a9a1df..a268d86e547dffe73c9f7b4633913ffdf91b1a8e

A new file 0001-Added-tracer-header-version-architecture-check.patch is
now created.

Note: If you want to pick the last patch you've commited locally, you can easy this step by doing the following:

$ git format-patch -n

Where n is the number of last patches you want to pick (e.g. 1).

5. Almost there! Now send your patch to mail list using 'git send-email':

$ git send-email --to "mail@list.com" 0001-Added-tracer-header-version-architecture-check.patch

Done!

[]s

by Bruno de Oliveira Abinader (noreply@blogger.com) at September 28, 2008 01:10 PM

September 26, 2008

Marcelo Eduardo

iPhone Released in Brasil: Hate to say I told you so…

Apple’s jewel was launched in Brazil in plans even worse that I believed:

Couple of weeks ago, I wrote about it here, here and I actually believed that it could exist a “free” iphone in really expensive plans. Poor me. I was really naive. More or less I was right :

Now, what about a 500 USD phone? Even with the 199 USD you can compare with other eletronics: the Wii costs 249 right? Here in Brazil it costs 1.599, or 1000 USD :) So the best price for the iPhone will be something at 500 USD WITH contract (I’m putting here that the carrier will make it free, but it will have to pay the taxes to import the phone) and the minimum salary is 2 times lower than this :)

The cheapest iPhone will be way more than the any price out there. around 999 + monthly fees of more than 300 Reais. this is actually USD 550 for the device when paying more than USD 200 monthly. And please don’t forget that we are talking about a country with minimum salary of about USD 210. (of course those people are not even near the sight of the iPhone, only when they become second hand phones - but this is a subject for another post)

So, if you decided to pick the less expensive plan? this is what you pay:

For the iphone 8gb: 1499 ( USD 822) and the montly plan 52 ( USD28) but this gives you only 50 minutes of calls.

So you can compare it to the USD 199 8gb model in the US.

What About the data plans? No unlimited internet as expected in Claro, and the most expensive plan in the Claro carrier is for 200mb only. That’s a easy to beat limit. I would suggest do the math before joining because to pay 1.499 + 150 monthly and have only 200mb it’s really a turn off. If you go vivo the plans are way better, and there’s even the unlimited option for BR$ 308 (USD 169). Believe me it’s not a joke.

by handful at September 26, 2008 06:23 PM

September 24, 2008

Luciano Wolf

PyQt4 for Maemo - released

Today we released PyQt4 for Maemo. It is port based on Qt4 for Maemo libraries. Instructions on how to install can be found at project's webpage. Hope all you enjoy it!

by Luciano Wolf (noreply@blogger.com) at September 24, 2008 02:13 PM

Marcelo Eduardo

G1 coming

While I don’t need to say that I don’t have information to agree with this post, I need to admit that the phone is looking quite interesting.

For now I will only talk that a lot of ui design challenges that we faced are solved, and it was kind of funny and informative to see how google ui guys solved it, because there’s always a couple of ways to solve a problem:

a. The easiest, most obvious way. It works but has most of the time a higher cost in experience WoW
b. The medium way, where you try to bend the rules, increase the average experience and can make the difference
c. The really bold, where you will suffer critics to be really different, but those are the ones who can really make your product have personality and stand out from the crowd with a king.

Of course in the same proportion the risk of doing a incredible crap thing comes with the choice but you need them in today’s market, where the iphone is the standard for user experience.

The g1 seems to be on most of the time on the a, and just a little bit on b. You can see that most of the decisions are more on the safe side for obvious reasons, and while I disagree with a lot of details they are not in any way the “problematic” ones.

I think the point is that I was expecting more from google than the usually do, and what they do it exactly what they did with their other projects: really simple UI and sometimes (ok a lot of times more than sometimes) sparks of greatness that really can make the product be loved by a lot of users.

Now it’s time to wait to put the hands on the phone, but not being fan boy it will be for sure a real contender in the market :) The regular cellphone guys will soon know how much should they worry with the G1.

by handful at September 24, 2008 12:56 AM

September 22, 2008

Vudentz

plumbers conference

LPC was amazing, I might say it was the best conference I've attended so far. Im not a kernel hacker as someone may thought but even a userspace developer can say that we need more conferences like that. Let me summarize some talks/bofs I've been present at:

Audio

Lennart handled the audio miniconf which turns out to show how some alsa limitations, especially in its API documentation. The conclusion was that there are far too many project trying to solve but none offer a good pcm API which application could rely on. The audio bof was basically Lennart making sure Takashi know his alsa issues list. In addition to Lennart's list we also told Takashi we would like to have support for 'virtual' devices such as bluetooth headsets.

Video

Video miniconf was very interesting too, most about v4l2. In the driver area it seems that some common code is being duplicated so there is a plan to create an API to be used as core of new drivers. But for me the most interesting was the idea of user space daemon very similar to Pulse but for video which should solve most of the problem when trying to use a webcam on user space.

Boot

WOW I must say this miniconf was the big show of the conference, at least for me, the very first thing was a netbook booting on 5 sec. If there is something that can grab the attention more than a fancy ui demonstration that is a very amazing boot time. Im pretty sure that this presentation might change what most distros are doing nowadays, especially when the super read ahead (sReadAhead for short) code was released.

Power Management

Another pretty good minconf, olpc guys showing how they handled power managment on their device. Basically XO doesn't have an acpi so all is handled directly, sometimes they even turn off some chips to gain more hours of usage. In another presentation it was discussed that the more drivers support power management the more we salve power, although this may sound very obvious the real idea is to make more drivers power aware instead of just quality of a few.

DBus

Ok, that is my area, and as all the other it went pretty well. It started with discussion how to improve desktop experiency. Basically how DBus is changing the daemons around the linux desktop offering a better support/service to applications. Then the presentation about upstart 1.0, it was pretty cool to see the API for jobs on upstart, this might be usefull for most application/daemons that do want to spawn processes. After a small interruption the presentation continue with Marcel Holtmann talking about DBus on kernel, the reception of the audience was very good with few concerns, the fact of upstart requiring DBus to be started early during boot process may make the idea even more compelling than before.

10/10 for LTC

Next, BlueZ meeting.

by Vudentz (noreply@blogger.com) at September 22, 2008 02:50 AM

September 21, 2008

Marcelo Eduardo

Maemo Summit 2008: Just great

My talk in the Summit. Berlin 2008

The Summit ended yesterday, We are waiting a couple of minutes to get the taxi to the airport. Tired but incredible satisfied. These days were the perfect opportunity to get to know a lot of people that I only knew through the web, and man… having a face on the nickname really improves the communication for me. Big thanks to the guys that didn’t get annoyed with me talking really heavily, as usual!

I hope the guys there liked my talk, where I presented more than the usual about us at Openbossa, the new brand debuted, and better than I expected, Ellen from KDE usability project and openusability was there :) As really a pleasure to meet her and to be able to talk a lot about how to take some of their projects also to Brazilian universities that we work with.

See you Monday night, already back to Brazil. The taxi just arrived :)

by handful at September 21, 2008 04:34 PM

Marcelo Lira

Lantern Pr0n!


Aqui em Recife tem uma rede de lojas chamada Atacadão dos Presentes. É uma daquelas lojas que vende tudo: material de construção, ferramentas, brinquedos, papelaria, equipamento de proteção individual (onde eu passo boa parte do tempo, deve ser alguma perversão porque eu não preciso de óculos pra solda nem máscara de gás) e a prata da casa: coisas inúteis.
Uma das coisas que sempre me chamou a atenção foi a lanterna movida à energia animal: enquanto você ficar apertando o “gatilho” a luz permanece acesa. Suponho que essas coisas autosuficientes fascinem pessoas fissuradas em futuros do tipo Mad Max.
Depois de meu lado depravado sufocar a vozinha medíocre que dizia “gastar com coisa que você não vai usar?!”, levei duas delas pra uma noite de tórrida lá em casa. Daí produzi as fotos pornográficas que seguem:

Lantern Pr0n 1
ainda vestida

Lantern Pr0n 2
toda aberta

Lantern Pr0n 3
ela tem uma bateria como fonte de energia opcional embutida. safada!

Lantern Pr0n 4
a engrenagem preta transformam o movimento de apertar o “gatilho” em movimento circular transferido pro dínamo gerador de energia (a coisa branca)

Lantern Pr0n 5
agora tudo espalhado e o dínamo todo arreganhado

Lantern Pr0n 6
bolinação

Lantern Pr0n 7
testando sem a bateria de lítio (pra saber se era opcional mesmo — depois das olimpíadas confio ainda menos nos chineses (exceto o Confúcio)).
O multímetro diz que estou gerando 250mV

E fica melhor! Vídeos pr0nográficos:


girando o dínamo com o dedo


medindo a tensão com o multímetro

É bem legal essa lanterninha, perfeita mesmo só se armazenasse energia, mesmo que por pouco tempo. Um capacitor poderia servir.
O exercício físico pra operar a dita me lembrou uma conversa com tia Dany (não essa conversa) sobre que seria muito mais estimulante ir pra uma academia se a energia gasta lá fosse armazenada pra uso posterior. Além de ter noção numérica do que estava fazendo: “hoje gerei 100Wh (ou 360.000 Joules, que na minha cabeça é mais julioverniano; ou ainda, 86kcal) lá na esteira”. Como diz o Salveti, fica a dica nerd/saudável.

      

by Marcelo Lira at September 21, 2008 04:15 PM

September 19, 2008

Kenneth Christiansen

September 18, 2008

Marcelo Eduardo

Ha! I deserve it :) Delays, delays and delays

So, as every single time I tried to guess a date, the team found some critical (segmentation fault) bugs in the newer versions (updated EFL libraries) and then we are delaying the launch.

At least I will be announcing the counter point to that on the Maemo summit :)

Sorry again, and I can tell : we are actually moving now everyone from both teams along with other members to fix everything to make it less problematic. We will not rush to break devices :)

by handful at September 18, 2008 08:33 PM

September 17, 2008

Marcelo Eduardo

On our Way to Berlin

We at the Holocaust Monument
We don’t want to offend or look like a nerdy-ugly-only-boy-band

So Me, Etrunko, Aloisio, Glaubert and Marcio are almost Berlin, excited for this week’s agenda: Osim and Maemo summit. Our main goal there will be of course the Summit, and I personally expect to not only know a couple of virtual buddies out there, but also to communicate a little bit more “Who we are” and “Why we are different” and finally “Why we need to do that for Maemo”. These will be the guideline of my talk, and I hope people get excited to watch it.

I will not only cover a little bit of our history in the maemo development, but also show some of the future projects coming, how QT is changing the landscape and better: How we are closer to finally opensource Canola and other projects what gets me really excited, because we have been chasing this for almost 2 years now.

Hope to talk to everyone who’s interested in User experience and new un-explored ground for Maemo ! (and of course also to those who are not into it :)

by handful at September 17, 2008 08:39 AM

Canola2 Beta10 & New Carman Release plan

Hi,

I hate when I need to excuse myself. Specially when it’s about delays. It happened in the first release of Canola2, and it is happening now. Canola should be out in august and we are reading to a middle sep. release that I am not confortable with.

Reasons (I also hate justifying, but people deserve at least an explanation):

a. New team is finally reaching a good speed of development
b. They had the complex task of fixing some old, core level bugs
c. We are implementing the new development process / project leading process remotely, so you can imagine the problems.
d. Teams are smaller. (again!)
e. Carman needs EFL, so deeper testing

And what about Carman?

a. Carman is now EFL based, like canola, so it needs some libraries so testing is intensive
b. The first team guiding it faced some heavy problems and it was replaced “during flight”

What about a date now?
I again hate to give dates because they always go wrong, but if today’s build is ok from both projects both projects will go live tomorrow :) * I hope so

by handful at September 17, 2008 08:37 AM