Live a Month with 250 Euros in Évora, Portugal

Misc 4 Comments »

This month I will hold a contest. A contest with myself. The challenge is to live in Évora, Portugal, for a whole month with 250 Euros (house rent excluded). Since today is Mar 30, this is not my April’s barl joke but rather an excellent day to start this challenge. I will explain the reasons behind this later on.

Update: I will start in April 1, the beginning of the month.


Quick Roundup

Uncategorized Comments Off

Going up to Linux 2006 today.

Have you seen the The Da Vinci Code movie trailer?


How to make a C library

Misc Comments Off

Suposse you want to create a library called ‘libhello’ that provides an ‘hello’ function to include in your program ‘main.c’.

Start by writing ‘hello.c’, e.g.:

void hello ();

int
main (int argc, char *argv[])
{
  hello ();
}

And the ‘main.c’,e.g.:

#include <stdio.h>

void
hello ()
{
  printf ("Hello!\n");
}

Compile ‘hello.c’ into an object with the ‘-c’ option to ‘gcc’:

$ gcc -c hello.c

Create the library using ar(1) e ranlib(1):

$ ar cru libhello.a hello.o
$ ranlib libhello.a

And finally compile your program using the new library you’ve created:

$ gcc -o hello main.c libhello.a
$ ./hello
Hello

References:

  • The Goat Book - Freely available book describing how to use GNU Autoconf, Automake, and Libtool.
  • The ar(1) e ranlib(1) manpages.

iCon Steve Jobs

Misc Comments Off

Did you read this review on the book "iCon"?

I also recently finished this book and agree with Prla when he says:

That’s an awful lot of dollars and it goes around in Silicon Valley the same way you and I buy chewing gum.

While reading the book, I frequently skipped the numbers because I always had to think twice before understanding how much money was at stake.

Later on reading I realized what at first had puzzled my mind, why was it an unauthorized biography? Obviously Jobs couldn’t authorize such a bad prospect of himself being publish with his blessing.

What more can I say? I don’t know.. it’s very interesting to see his concern with the design of things.. to say “the next Apple computer can’t be any larger than this phone list!” and leave the meeting is top-notch among many other things that go by in this book.

His strong attitude and persistency, according to the book, are incredible! The first job interview at Atari in which he refuses to abandon the room until he gets a job there or the DoS (Denial of Service) he did to the marketing firm he wanted to Apple, etc. are perfect examples. That’s the profile we associate with entrepreneurs these but while I try to be that way, for him it just seems to be his Tao (nature).

To ask workers in the elevator: “Why should we pay you?” is also incredible..

His interest on Zen Buddhism is also quite interesting. In Zen Buddhism there’s a search for emptyness and non-attachment (each person is one and doesn’t depend on anyone or anything to be happy). He is really detached and does what he think best without any fear of what other people will think or say.

The life of Steve Jobs is inspiring and to know it better gives me will to create new things, beautiful designed and capable of changing the world to a better place. And the book well transmits that inspiration.


YouOS Web Operating System

Misc Comments Off

Via Jeremy Zawodny Blog - The guys at YouOS are pulling up a web operating-system. It’s still wayyyy alpha, as they say, but the about page is already funny :).

More seriously, I recommend everyone trying it. It already has many applications like chat, mail, browser (browser inside browser!), etc.. but what really made my eyes came out was the app IDE (web-based they have). Really cool, guys, congratulations. Things like that make Web 2.0 mean something.


Trying out Basecamp

Misc Comments Off

After listening to the Web 2.0 episode 9 podcast, I went over to Basecamp, a web-based application to manage collaborative projects, and decided to give it a try.

My review is: It’s nice, clean and simple. No feature overflow, just what the casual user will need. Recommended.

Just as the podcast tell us, the history behind Basecamp is really interesting. David Heinemeier Hansson and Jason Fried started a web design firm called 37signals that was focused on clean, fast and usable designs. David Hansson later started worked on Basecamp that later became the foundation for Ruby on Rails, the well-known open source web application framework. They soon became a product company.

As Jason says in this O'Reilly interview:

Jason: We built Basecamp because we needed it. I’m a big believer in investing in what you know and what you need. We invested our time, energy, and focus into building a product that we knew we needed to run our own business. When you build what you know, and when you use what you build, you’ve got a head start on delivering a breakout product.

Good thinking, right?

“Basecamp’s success as a bootstrapped web-based application has made it a favorite of web designers and also a model for would-be entrepreneurs.”


I’m a GNU

Uncategorized 2 Comments »

Yesterday I spend the evening playing with Emacs instead of doing my homework (preparing today classes) and that was total irresponsable of me. I’ve been accumulating hours of no-sleep during the week and at night I was kind of like a zombie and unable to understand (or read btw) anything. Today I had to woke earlier (6h) to review the material. Thank god it turned out ok in time but remember:

Rule of thumb here, do real work before slacking!

My girlfriend helped me a lot figuring out what was happening with the NOR’s and XOR’s. It’s so good when you can bounce ideas with someone. Thanks!

How to mount a remote ssh filesystem using sshfs

Misc Comments Off

Have you read about sshfs yet?

SSH is protocol to transfer files securely. Like FTP, but more secure. Many hosting services offer their client the ability to remotely login to their hosting account using ssh. Transferring files to an from an ssh account can be done using the scp command. However, it would be neat if you could mount a remote folder that you can access using ssh on your local computer, so that you can access files on an ssh account just like they were local files on your pc, right? Well now you can! Mount a folder in an ssh account, edit the files locally and save the files, and the file on the ssh server changes too! Isn’t it awesome!!!

It is!

References:


How do I get accents to display correctly?

Misc Comments Off

Let’s get one thing straight. If you’re still using ISO-* shit to have compatibility with people that aren’t using UTF-8 yet, they will never upgrade.. Just use UTF-8 and so we all can use the most modern character encoding… and get on with our lives.

Like the XChat guys say:

Use Unicode (UTF-8) and tell all your friends to use Unicode. Problem solved!

Using UTF-8 on your web page is as simply as including this tag on the head section:

<meta http-equiv="Content-Type" \
                  content="text/html; charset=utf-8" />

And on a general Debian/Debian-based Linux system for using UTF-8 within applications issue:

# dpkg-reconfigure locales

and select UTF-8 if it’s not yet enabled.

Ubuntu users see here.

“Just do it”.


Most things actually work!

Misc Comments Off

Seriously, how hard can it be to configure a proper “404 Not Found” in a web application? I’m not talking for a blog or some homepage, for that I couldn’t care less. But for a real web-application like on-line banking it breaks my heart to see the default IIS 404 page with the ‘Microsoft Support’ contact. Are these guys monitoring what’s happening with their application? I guess not..

Setting up a 404 Not Found page with an e-mail form is not that hard and in these cases it makes all sense. You’d probably wanna say something like:

If you have a question or some feedback, please tell us!

Or if you’re into something more emotionally appealing, and I’ll quote Joel Spolsky on this:

Most things actually work!

Like Winamp said back in 2003 when Nullsoft shipped a new version.

On a side note, did you read A closer look to gedit 2.14 already? It’s an interesting piece I think.


WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in