Archive for the 'tech' Category
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 […]
posted by pedro mg at 11:15 am
& filed under tech, apple, mac mini, ruby, code, mac osx, git, github, gist, osx, unix, postgres, postgresql, datamapper, database, dbms | No Comments »
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 […]
posted by pedro mg at 8:29 pm
& filed under tech, ruby, standards, code, rubyforge, open source, merb, gemcutter | No Comments »
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.
posted by pedro mg at 5:03 pm
& filed under tech, culture, digital-life, standards, code, open source, web 2.0 | No Comments »
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.
posted by pedro mg at 4:31 pm
& filed under tech, log, linux, code, open source, git, github, unix | No Comments »
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.
posted by pedro mg at 3:54 pm
& filed under tech | No Comments »
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
posted by pedro mg at 10:47 pm
& filed under tech, ruby, code, osx | No Comments »
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 […]
posted by pedro mg at 1:27 am
& filed under tech, web, rss, linux, os, ubuntu, ruby, standards, vim, gvim, s3, ec2, mac osx, debian, mvc, rspec, TODO, git, github, vimblog.vim, vimblog, merb, couchdb, aws | 6 Comments »
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 […]
posted by pedro mg at 8:27 am
& filed under tech, code, git | 3 Comments »
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 […]
posted by pedro mg at 12:42 am
& filed under , tech, web, linux, os, file, shell, code, vi, vim, gvim, ssh | 1 Comment »
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… […]
posted by pedro mg at 1:20 am
& filed under tech, google, linux, vim | No Comments »
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 […]
posted by pedro mg at 2:09 am
& filed under tech, google, browser, apple, Firefox, Epiphany, api, mac osx, safari, windows, mozilla | No Comments »
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 […]
posted by pedro mg at 7:18 pm
& filed under tech, web, life, blog | No Comments »
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 […]
posted by pedro mg at 12:00 am
& filed under tech, ruby, code, vim | No Comments »
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 […]
posted by pedro mg at 3:54 pm
& filed under tech, mail, linux | 2 Comments »
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.
posted by pedro mg at 1:27 am
& filed under tech, web, linux, life, digital-life, ruby, shell, code, api, vi, vim, gvim, blog, open source, mac osx | No Comments »
April 30th, 2007
Bug #1 in Ubuntu
blogged with VIM
posted by pedro mg at 9:45 pm
& filed under tech, linux, ubuntu | No Comments »
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 […]
posted by pedro mg at 7:22 pm
& filed under , tech, web, life | No Comments »
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 […]
posted by pedro mg at 7:35 pm
& filed under tech, linux, life, digital-life, apple, blog | 1 Comment »
April 4th, 2007
…just received a (mt) email announcing Krop. It’s a very cool && fast && simple website.
blogged with VIM
posted by pedro mg at 9:06 am
& filed under tech, web, life | No Comments »
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 […]
posted by pedro mg at 7:05 am
& filed under tech, web, ruby | No Comments »
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 […]
posted by pedro mg at 7:17 am
& filed under tech, culture, life, digital-life, apple, mac osx | No Comments »
March 29th, 2007
Merlin Mann’s talk with John Roderick as… “cut the crap”.
posted by pedro mg at 8:07 pm
& filed under tech, web, culture, digital-life, music, blog | No Comments »
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. […]
posted by pedro mg at 10:01 am
& filed under tech, linux, os, ubuntu, shell, xp | 1 Comment »
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 […]
posted by pedro mg at 11:52 pm
& filed under tech, web, linux, ruby, code, api, vi, Wordpress, xmlrpc, vim, gvim, mac osx | No Comments »
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
posted by pedro mg at 7:32 pm
& filed under tech, web 2.0, talks, amazon, s3, ec2 | 2 Comments »
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 […]
posted by pedro mg at 12:50 am
& filed under tech, web, linux, ubuntu, gnome, digital-life, ruby, shell, code, textmate, api, Flickr, vi, Wordpress, xmlrpc, vim, gvim, blog, screenshot, iccf, open source, GPL | 4 Comments »
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 […]
posted by pedro mg at 11:09 pm
& filed under tech, web, linux, ubuntu, gnome, ruby, php, shell, code, api, vi, MovableType, Wordpress, xmlrpc, vim | No Comments »
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
posted by pedro mg at 12:20 am
& filed under tech, web, linux, ubuntu, ruby, shell, code, api, Flickr, switter, twitter, vi, rubyforge | No Comments »
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 […]
posted by pedro mg at 5:12 pm
& filed under tech, web, jabber, linux, ruby, shell, code, api, Flickr, switter, twitter, vi, rubyforge | No Comments »
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’)
posted by pedro mg at 12:16 am
& filed under tech, linux, ubuntu, ruby, shell, code, vi | No Comments »
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 […]
posted by pedro mg at 11:40 pm
& filed under tech, linux, ruby, shell, code, api, Flickr, switter, twitter, rubyforge | 3 Comments »
February 1st, 2007
res.methods.each do |meth|
print meth, ” / ”
end
… just to check wich methods my res object could call.
posted by pedro mg at 7:40 pm
& filed under tech, ruby, code | No Comments »
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!
posted by pedro mg at 11:59 pm
& filed under tech, web, mail, linux, perl, mutt | No Comments »
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” […]
posted by pedro mg at 11:20 am
& filed under tech, apple | No Comments »
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 !!
posted by pedro mg at 4:59 pm
& filed under tech, mail, linux, ubuntu, digital-life, Epiphany, Flickr, mutt | No Comments »