Archive for the 'tech' Category

install PostgreSQL in Mac OSX via Homebrew

March 10th, 2010

Apple OSX Snow Leopard
System Version: Mac OS X 10.6.2
Kernel Version: Darwin 10.2.0
Install notes for PosgreSQL 8.4 install using the great
Homebrew by Adam Vandenberg.
Run the author’s installation script, and that’s it. Try:
$ brew help
$ brew search postgresql
$ sudo brew install postgresql

==> Summary
/usr/local/Cellar/postgresql/8.4.2: 2297 files, 31M, built in 3.3 minutes
$ brew info postgresql
postgresql 8.4.2
My advice ? Use Homebrew. True […]


Gemcutter indexing ruby gems

November 23rd, 2009

Date: Sat, 21 Nov 2009 22:15:15 -0500 (EST)
From: noreply@rubyforge.org
To: me@mydomain.com
Subject: [RubyForge] Gem index has been shut down
Hello -
You’re receiving this email because you’re a RubyForge project admin and a recent change robably affects you.
A few days ago we repointed gems.rubyforge.org to the gemcutter.org box. This means that Nick Quaranto’s excellent gemcutter app is now […]


next week… Codebits

November 23rd, 2009

its next week, yet fun starts much sooner; conference; talks; code; lisbon; 3day => codebits
Just like last year a lot of hacks and experiments are expected.
Kudos to the SAPO team, the organisers, to build up such an impressive event.


Revision Control Software workshop

November 23rd, 2009

Last saturday the local Linux group, PortoLinux had a meeting at the engineering faculty of Porto University to discuss about usage of diferent SCM’s.
Main systems covered, centralized vs distributed:
- Subversion
- Git
It was a good tech event, spent a good time there.
Some photos here.


Tokyo products new site

August 31st, 2009

“By: Mikio Hirabayashi - 2009-08-31 13:22
BTW, the project site of Tokyo products have been moved onto my own server.
http://1978th.net/
Though it has not been completed yet, I’ll write more English information about Tokyo products.”
So, to get the latest, head there.


sdef - scripting definition files

August 24th, 2009

Scripting definition files (sdefs) are XML files that describe everything
about an application scripting interface: terminology, implementation
information, and complete documentation. Applications may incorporate
them to define their own scriptability, and scripting clients such as
AppleScript and Scripting Bridge read them to determine what operations
an application supports.
man sdef


on work…

January 15th, 2009

3 or 4 new projects ahead.
One of them will beĀ  CouchDB and Merb (no DataMapper, no ActiveRecord). The db schema is modeled by each user and upon criteria decisions.
All of them Git managed, as been doing for the last year.
Served by a Debian based Linux distro, coded under Debian, UNR (my lovely little netbook), and […]


… on git

December 9th, 2007

Melo will be focusing on git
Once you get used to git, you won’t be needing “anything else” to maintain your code. Git is gaining more and more traction, now that bigger (distributed) projects (or parts of them) are running away from other scm’s into this one (Gnome ?, Kde, …). CVS, SVN user base is […]


Edit remote scipts on local VIM under SSH generated RSA keys

September 28th, 2007

Passphrases, when used the good way, present a higher level of security over passwords, but what if you are editing scripts on a remote server using a local Vim ? For every open, write, explore, you are asked for it. After a certain amount of times, it starts making no sense, and you’ll end up […]


Linus Torvalds on git

July 1st, 2007

Linus talked on Google about his source control management system, with questions from the audience. 70 precious minutes… with humour, smart ideas, good explanations on the theory of team software development, focusing on building a trust network, on performance, on centralized vs distributed systems, security, etc.
(by minute 60, this guy kicks Google Code (SVN) ass… […]


Apple Safari for profit…

June 22nd, 2007

… seems that the main (or a higher) reason for Apple to release a Windows version of Safari is… income. And for that, the Google search box in to top right corner is the gateway for profit.
Windows still is the most used operating system out there, so why not take the ride ? Mozilla did […]


Reinvigorate and Google Analytics

June 3rd, 2007

Started using Reinvigorate for about a month now. On a fast comparison with Google Analytics new interface, i will problably be using Reinvigorate a lot, since i don’t run Ads. Analytics is very complete, but Reinvigorate is beautifull, easy, well organized, until now very fast and… we are neighbours at (mt) MediaTemple, heh. The motto […]


Hpricot - HTML parser for Ruby

May 27th, 2007

Hpricot is a very interesting lib to parse HTML. I’ll post here the example, just to check on the beauty of it from time to time…

require ‘hpricot’
require ‘open-uri’
# load the RedHanded home page
doc = Hpricot(open(”http://redhanded.hobix.com/index.html”))
# change the CSS class on links
(doc/”span.entryPermalink”).set(”class”, “newLinks”)
# remove the sidebar
(doc/”#sidebar”).remove
# print the altered HTML
puts doc

The lib is evolving, being added […]


MTA Comparison

May 17th, 2007

… this page is a good and simple comparison page for different MTA’s like Exim, Postfix, qmail and Sendmail.
“One scenario is to use Postfix and Exim. The logic for Postfix is that an MTA facing the Internet needs to be as secure as possible it must perform as few functions as possible. For Exim, an […]


Blogging from Vim

May 11th, 2007

… i finally set up the page for the download of the vimblog.vim vim-ruby script. It will allow you to manage your blog posts from *the* editor VIM, very easilly. Learn one single command and, at maximum, seven simple parameters. So go ahead and blog with vim.


</short post>

April 30th, 2007

Bug #1 in Ubuntu
blogged with VIM


electronic toxic wastes

April 30th, 2007

It is very cool to go and buy a new computer. It sure is. But what about the old ones ? There are some companies recycling parts for these unusefull machines, but it actually is not enough. The production numbers are too high, and the used materials still too much non_environment_friendly. Manufacturers will have to […]


“All the computer people use Macs or Linux now”

April 9th, 2007

… this is Paul Graham’s version of why Microsoft is dead. There are some interesting parts in it. One thing he does not state, is that Microsoft never drove the internet trends. They get always late, and sometimes very late. Then, the huge ammount of monetary units and a very confortable monopolistic position in the […]


Krop - creative and tech jobs

April 4th, 2007

…just received a (mt) email announcing Krop. It’s a very cool && fast && simple website.
blogged with VIM


Engine Yard

April 4th, 2007

… i saw a small video on buiding a cluster. When placing the machines in the cabinet i noticed they inserted them close to the top. It is known the heat goes up, and a while ago i attended a conference where a mechanical engineer showed some heat graphs, thermal cabinet photos and presented […]


Apple in Japan

March 31st, 2007

from O’Reilly MacDevCenter, an interesting interview with Nobi, with interesting facts:

“The research took about a year, and when they were done, their conclusion was that Macintosh would be the best platform, but with one condition: If Apple could keep the swap files encrypted, the bank could use the Macintosh. So the reason that Macs can […]


</short post>

March 29th, 2007

Merlin Mann’s talk with John Roderick as… “cut the crap”.


Linux recovers XP boot sector(s)

March 16th, 2007

Well, a post about Windows… who’d say about that…
The thing is: is have a HP desktop that after a good BIOS update, got its motherboard dead. Good BIOS update. Pretty much dead motherboard. Not only happened to me. There are foruns about these HP BIOS updates for this motherboard series that gave lot’s of problems. […]


Blogging from VIM (timezone insanity)

February 25th, 2007

Blogging from VIM is now possible using this script. This post is being written using it. But one problem is making me loose a great ammount of time: dateCreated, meaning TMZ headache.
Wordpress XMLRPC wants a datetime timestamp for the dateCreated field. I give it an ISO8601 format as stated in XMLRPC specs.
The post is sent […]


about costs…

February 23rd, 2007

“…the biggest cost is not power (electrical), and its not the servers, and it’s not the people to maintain the data center. The biggest cost is lack of utilization”
Jeff Bezos talking with Tim O’Reilly on EC2 and S3 services
Web2.0 SUMMIT’06


Vi blogging bundle

February 21st, 2007

… well the name reminds Brad Choate’s Textmate blogging bundle Brad is an excellent developer and like me, was once a Delphi (Borland great product) developer. I based this on his Textmate work. I’m coding a Vi / ViM / GViM script for a plugin that has some nice results already, exclusively for […]


Wordpress XMLRPC::Client.new()

February 18th, 2007

… when coding switter, using lot’s of command line, vim, bash, i felt the need to blog from vim. Some readings (quite a few availlable, actually) later, i was testing Wordpress xmlrpc using MovableType (Six Apart) calls to it. Vim allows ruby scripts (when compiled with that directive) use to create new commands, just like […]


switter on rubyforge.org

February 12th, 2007

…now, switter was accepted on rubyforge.org. I’ll try to put source and some docs there (rdoc does wonders) soon. Meanwhile, and with threahds now working for continuous message post/get, it just needs some tickles on the readline method.
switter on a maximized shell window receiving public timelines
switter on a normal sized shell window receiving public timelines


switter as a remote controller

February 8th, 2007

Had a new idea for the switter (twitter shell client) client.
What if you had a switch that enabled you to secretly send commands to the shell via twitter service ? Now, that can be (is) dangerous. But what if you defined an hash with predefined actions, and “secret” (remember, unsafe connection) codes ?
./switter -u test […]


Environment vars

February 8th, 2007

ENV is the hash that contains environment variables:
ENV.collect { |key, val| puts “#{key} ==> #{val}” }
ENV.each_pair { |key, val| puts “#{key} ==> #{val}” }

Need to know $HOME of the current user (needed for config files, say)?
puts ENV[’HOME’] if ENV.has_key?(’HOME’)
puts ENV[’HOME’] if ENV.key?(’HOME’)
puts ENV[’HOME’] if ENV.include?(’HOME’)
puts ENV[’HOME’] if ENV.member?(’HOME’)


switter: ruby twitter shell client

February 5th, 2007

been having some fun coding a twitter client for the *nix shell in (pure) ruby.
Soon will post source file for anyone to play with it.
Cool libraries used, include:
require ‘net/http’
require ‘rexml/document’
require ‘optparse’
require ‘yaml’
Configuration file created for user defs;
Command line switches prioritized over config. file;
Timeline options;
Working now on a minimal (shell) UI, message posting […]


object.methods

February 1st, 2007

res.methods.each do |meth|
print meth, ” / ”
end
… just to check wich methods my res object could call.


muttrc builder

January 13th, 2007

Luke Ross built this Perl web app to help build your ~/.mutt/muttrc file.
Dropdown control helps select pages to fill out. The last page gives you the resource file ready for copy/paste.
…Mutt rocks!


Apple iPhone is awsome!

January 9th, 2007

It really is awsome. I am viewing Steve Jobs keynote, and it really sums 3 or 4 gadgets. Incredible interface. OSX on a phone ? wow !!
Apple has done partnerships with amazing companies to get this device covering lot’s of digital life areas. Steve got Jerry “Yahoo” Yang, Dr. Eric “Google CEO” Schmidt, Stan “Cingular” […]


… back on Mutt

January 7th, 2007

…broken computer motherboard made be use an older laptop, Celeron 1Ghz 256MB RAM.
Linux with XFCE and Mutt to read IMAP mail accounts. Mutt is cool !!