May 22, 2009

Programming Languages - Survey

This is the first survey that I've decided to created. I had 2 objectives in mind when I made it:
- To test SurveyGizmo ( which is great, by the way )
- To collect some data to help me decide on which material to use

Let's hope it work and that many people answer to it!
Have fun!

Here's the link!

If it goes well, I might make some more in the future!

I'm sorry if it looks a little "newbish" but it's not supposed to look professional.

Have fun!

May 20, 2009

Should I Learn Coldfusion?

Yesterday I asked on Twitter if I should learn Adobe Coldfusion and why, these were the answers:

It's always good to learn something new. (via @AppleGeeek)

Of course you should! Learning a new language is never a bad thing, and coldfusion rocks, so you can't lose! (via @topdecker981)

yes :) (via @cfjedimaster)

New skill + it goes on your resume. (via @AppleGeeek)

ease of use. its great for beginners and adv. developers as well. simple, and _practical_ for web dev (via @cfjedimaster)

Yes, the ColdFusion developer base has grown to over 800,000 developers and is still growing strongly, version 9 due this year. (via @dalefraser)

Learning ColdFusion ( cfml actually ) is a good thing. The more languages you know the better and Coldfusion is exceptional! (via @learncf)

You should learn everything you can get your hands on and pick whatever works for you and you're comfortable with. (via @webRat)

you will always have a good paying job (via @technologythree)

Yes.. Yes you should :) http://bit.ly/5TpYr (via @coldfumonkeh)

I especially liked @coldfumonkeh's reply because that website is realy good, the coldfusion tutorial worked great, and it has many, many other tutorials which are also very good!

So, yeah, I'm going to start learning Coldfusion just for fun, I may apply it on real apps if I like it which I think I'll do ( Adobe has never let me down! )

Oh and, this "reply-taking" feature that I created to import the replies to the posts is pretty old, have to create a new one that also imports the avatar and such.

May 19, 2009

Installing PostgreSQL through MacPorts to use with Rails

Some days ago I had a hard time installing PostgreSQL 8.3 through MacPorts to use with Ruby on Rails. Why? Because most of the posts I found on "how to install" were so outdated that it just didn't work at all. So I had to try for my own using some of the stuff in the tutorial and modifying some of this and some of that.
Anyway, I decided to make a post on "How to install PostgreSQL 8.3 through MacPorts and use it on Ruby on Rails" to help developers that are having the same problem.
Why PostgreSQL? Because not much time ago I used this database and I liked it, a lot, even more than MySQL ( which is much more easy to install ).
Oh and... What's the next challenge? To use CouchDB with Ruby on Rails, that even harder but I have to manage to do it anyway...
Let's start... I assume that you have MacPorts, Ruby and Rails and XCode already installed. If you're reading this you have to be using a MAC so Ruby and Rails are already installed, for MacPorts just Google it and install it just like any other MAC application and for XCode do the same as in MacPorts.
So...

1. Open up Terminal.app ( use Spotlight to find it ) then write "su" and enter your root password.

2. Enter:
port install postgresql83 postgresql83-server
This might take a while... a big while. While you wait go check my YouTube Channel for some nice videos.

3. When PostgreSQL is finished installing, it’ll tell you to run the following:
mkdir -p /opt/local/var/db/postgresql83/defaultdb
chown postgres:postgres /opt/local/var/db/postgresql83/defaultdb
su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
Do it.

4. This step is not necessary but I recommend you to do so, it will launch PostgreSQL automatically on system boot
launchctl load -w /Library/LaunchDaemons/org.macports.postgresql83-server.plist

5. Then enter this command to install pgAdmin, a peace of software to help you admin your PostgreSQL database:
port install pgAdmin3

6. To finish, install the Ruby gems ( dependencies ) for correct function of the PostgreSQL database:
gem install --include-dependencies postgres

8. Go to Applications >> pgAdmin3 >> Click on the plug
Name: Whatever you want to
Host: localhost
Username: postgres
OK
Double click the server that should appear
Databases, left click, new database, Name: test


7. Let's test it!
cd Desktop
rails -d postgresql test
cd test
mate . ( I use textmate, you can use whatever you like, even vim and emacs... )
config >> database.yml:
database: test
username: postgres

Save
Terminal: ./script/server

Then it should run fine. If it doesn't, you know the drill, leave a comment!

What might you say? "OMG, I suppa-duppa-etta-1337, I donut néd ziz kinda a crap so detailéd yau!"
Well, good for you! What are you doing here then? Oh and it is over detailed because it's supposed to be! It was made thinking on beginners and any kind of rookie.

Well, anyway, I hope I helped you!

Cya next post :)

May 13, 2009

Delicious is good but...

It's true, Del.Icio.Us is a very good bookmarking service. I personally love it and I use it has my primary one. It was very organized and very pretty since it's latest remodel but there's a thing that every time I go there it makes me sick of doing it.
What is it? It's quite simple.

I have the habit of every time that I use the bookmarklet to save a new bookmark hit a few tags in the recommendations and then add a few of my own if needed.
But I can't remember all the tags right? And most of the times I forget about some of them so, when I check my profile I see that there are tags that only have 1 or 2 bookmarks and they're just wasting my precious space in my screen. Then, of course, I try start to delete them which is ok if you have like 1 or 2 tags that you want to delete but what about if you want to delete like 20 of them? You could check them and then simply hit "delete" right? Nah!
You can only delete 1 tag at the time and there are 13456422 pages to ask you if you realy, realy, realy want to delete them then... I got nuts :)

When I made this post I was just thinking to myself "WTF Delicious, such a simple and useful feature and you don't even have it? WTF are you thinking in?"
It just sucks, there are some simple details that developers have to pay attention to...

If you know of any way to quickly delete multiple tags at the time please tell me, maybe a Greasemonkey plugin?

Let's hope they refresh their minds and do something nice for us ( the users ).

May 10, 2009

Waiting for these games

I'm very exited since I got my Xbox 360, it was the fourth console I've ever got. The first one was the Game boy Color, the second one the Playstation One ( PSX ) and the third one was the PSP. The one that I most cherish is, of course, the Game boy Color, I just couldn't get enough of Super Mario!

Anyway, I decided to make a list on what games I'm anxious to get for my brand new 360:

- Prototype ( have to get this one )
- Gears of War 2 ( maybe )
- Lost Planet 2 ( haven't tried the first one, I think this one is pretty cool )
- Army of Two: 40th Day ( probably )

And that's it. If you have some reasons why or why not I should buy these games, leave a comment :)

MAC Slow Boot?

Some days ago I noticed that the boot time of my MAC had really got worse.

I started emptied the recycle bin and removed a few programs from the startup list but... nothing happened, the time it took to boot up was still the same.
Then I started to notice that something was wrong because it wasn't like this before.

I began to search for a resolution to the problem but I didn't find anything. Then, I used the ultimate power search function in the hole damn world: my very own brain!
What changed from a couple of weeks ago? Well, all my downloads go to my desktop so it was a little bit cluttered but how stupid is that? The boot slows down because I have too many stuff on my desktop! But it's worth a try.
And so I did, I deleted/moved all things I had on my desktop besides the drivers icons then I rebooted one more time.

For my surprise, the time it takes to boot was now normal and I was happy again.

It seems and it is strange but I does work. If this happens to you, try doing it, it might work!

May 08, 2009

New XBox 360!

Remember I made those posts about the X360 that I was getting for my birthday?
I have this master piece on my hands right now!
I made this post to tell you how was the experience.

It's a Xbox 360 Elite - Limited Edition and it has a beautiful red colour. It also bring a red remote, a couple of cables, the headset, a card to download Super Street Fighter Turbo HD Remix and a Resident Evil Premium Theme and Resident Evil 5, which is a great game by the way, I had never tried one of the series and I liked it a lot.

So, after I connected it to the TV and started setting it up it told me that I needed to update and I did it. After a few minutes it was up and running with the New Xbox Live Experience ( a new interface with a couple of new features ) and I had to set it up again, which is very strange. The setup took a while and one of the reasons was because the virtual keyboard wasn't the "qwerty" type but I found a way to change it ( thank God! ).
I created my avatar and set up the Xbox Live Gold Membership ( got it for one month ) and then I started playing Resident Evil 5.
That's about it and now some...

Thoughts and Hints
- If you set up your X360 with your hotmail e-mail you get Messenger inside the console.
- If you play a game a lot and don't want to hear the noise that the CD makes spinning copy the game to your hard drive.
- Your X360 probably comes with a Gold Membership for one month included.
- If you have a regular TV don't mind buying a HD yet.

Bad Stuff
- The console is a little noisy but you don't notice it while playing.
- The power brick is a little big but who cares? You're not going to carry it around.

Oh, if you want to add me on XBox Live, my gamertag is "pWneDPT" ( without the quotes ).

That's about it, I'll make new posts with more hints and stuff if I find it useful.
If you have a doubt, leave a comment!