repo
string
commit
string
message
string
diff
string
troystribling/agent_xmpp_orig
200e606a1ac76867c0ee7201ddb81f3902abca51
debugged cpu, memory and storage stats. need to do net and add service times to storage.
diff --git a/lib/agent_linux/linux_commands.rb b/lib/agent_linux/linux_commands.rb index 5883463..3b79a20 100644 --- a/lib/agent_linux/linux_commands.rb +++ b/lib/agent_linux/linux_commands.rb @@ -1,60 +1,62 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
335f8a5215e3574dd850db777b5267b7149bf818
added net stats. still need to dbug everything
diff --git a/lib/agent_linux/task_manager.rb b/lib/agent_linux/task_manager.rb index ff10176..2b3500e 100644 --- a/lib/agent_linux/task_manager.rb +++ b/lib/agent_linux/task_manager.rb @@ -1,36 +1,37 @@ ############################################################################################################ class ...
troystribling/agent_xmpp_orig
b33023015b77401874060c9aa266709dce866544
added net stat processing still need to dbug everything
diff --git a/lib/agent_linux/linux_commands.rb b/lib/agent_linux/linux_commands.rb index 2fb82c3..5883463 100644 --- a/lib/agent_linux/linux_commands.rb +++ b/lib/agent_linux/linux_commands.rb @@ -1,61 +1,60 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
2d636b4765d6877a4b7307da2e7768118325306d
added disk performance stats. still need to do network stats
diff --git a/lib/agent_linux/task_manager.rb b/lib/agent_linux/task_manager.rb index 234d22e..ff10176 100644 --- a/lib/agent_linux/task_manager.rb +++ b/lib/agent_linux/task_manager.rb @@ -1,35 +1,36 @@ ############################################################################################################ class ...
troystribling/agent_xmpp_orig
9480a14df922b3d4be191911f716f76df6d4043f
added storage stats. still need to do network
diff --git a/lib/agent_linux/linux_commands.rb b/lib/agent_linux/linux_commands.rb index f5cc909..2fb82c3 100644 --- a/lib/agent_linux/linux_commands.rb +++ b/lib/agent_linux/linux_commands.rb @@ -1,40 +1,61 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
7204b2e6963b4b0e00a63891b687cb0e0f1a1023
cleaned up performance calculations .added calculation /proc/vmstat deltas.
diff --git a/app/models/performance_monitor.rb b/app/models/performance_monitor.rb index b63187e..0027e48 100644 --- a/app/models/performance_monitor.rb +++ b/app/models/performance_monitor.rb @@ -1,15 +1,16 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
a9d53d85b27fe4ea1fba0247b74f3c9d83ade8df
added memory and load average statistics collection. still need to do disk usage and io and network io.
diff --git a/lib/agent_linux/task_manager.rb b/lib/agent_linux/task_manager.rb index 3d47c90..234d22e 100644 --- a/lib/agent_linux/task_manager.rb +++ b/lib/agent_linux/task_manager.rb @@ -1,33 +1,35 @@ ############################################################################################################ class ...
troystribling/agent_xmpp_orig
33090e47af9abc5a55403871c9ace5a9b7e4bc75
added memory and load average stat collection still need to do net and disk
diff --git a/lib/agent_linux/linux_commands.rb b/lib/agent_linux/linux_commands.rb index 3538589..f5cc909 100644 --- a/lib/agent_linux/linux_commands.rb +++ b/lib/agent_linux/linux_commands.rb @@ -1,35 +1,40 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
f0280d76ca488c97374bea9cfc070ab15ae10659
implemented work around for apparent bug in datamapper where floats of machine precision are not written to database. patch truncates precision at specified number of figues
diff --git a/app/models/performance_monitor.rb b/app/models/performance_monitor.rb index 7c8efbf..b63187e 100644 --- a/app/models/performance_monitor.rb +++ b/app/models/performance_monitor.rb @@ -1,15 +1,15 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
78b4087535b84e9154818573b76214b65118f105
contents of /proc/stat are now written to database but there are still issues.
diff --git a/app/models/performance_monitor.rb b/app/models/performance_monitor.rb index b63187e..7c8efbf 100644 --- a/app/models/performance_monitor.rb +++ b/app/models/performance_monitor.rb @@ -1,15 +1,15 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
bbde6102ae8db5bc889dad1112dbd5c210287281
decided to parse proc files for performance data. removing support for sar.
diff --git a/lib/agent_linux.rb b/lib/agent_linux.rb index ab41d47..b992370 100644 --- a/lib/agent_linux.rb +++ b/lib/agent_linux.rb @@ -1,3 +1,4 @@ require 'agent_linux/linux_commands' require 'agent_linux/linux_performance' +require 'agent_linux/linux_proc_files' require 'agent_linux/task_manager' diff --git a/lib...
troystribling/agent_xmpp_orig
bd25b4a0d8511037e0583b617f3d12365bc7e69b
moved db migration to rake also moved load by directory to boot.
diff --git a/Rakefile b/Rakefile index e2143d4..1c14071 100644 --- a/Rakefile +++ b/Rakefile @@ -1,241 +1,230 @@ -require 'rake' -require "rake/clean" - $:.unshift 'lib' +require 'rake' +require 'rake/clean' +require 'agent_xmpp' ############################################################################## # OPTI...
troystribling/agent_xmpp_orig
744c3c60a46272cbaa173652ea560e01baa225ce
cpu stats are now working for linux. because performance monitoring support is such a piece of shit on the mac I have decided not to support mac for now (sar sucks and they have no /proc. monitors can only be accessed through a C api). This has greatly simplified the code. jumping through hoops to support os x sar was ...
diff --git a/.gitignore b/.gitignore index 0e83f51..5b0dfca 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.tmproj .DS_Store .svn *.yml +*.db diff --git a/app/controllers/system_controller.rb b/app/controllers/system_controller.rb index c10d03f..c76fc49 100644 --- a/app/controllers/system_controller.rb +...
troystribling/agent_xmpp_orig
046f330bf925fdfba1d847af9da5ca7c685b0149
added task monitoring. finished debugging darwin sar query. sar in os x is shit.
diff --git a/config/boot.rb b/config/boot.rb index 629aa27..9f1a3ef 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,26 +1,27 @@ ####------------------------------------------------------------------------------------------------------ AgentXmpp::Boot.before_app_load do require 'agent_linux' AgentXmpp...
troystribling/agent_xmpp_orig
c4682557b6db9297ea6b5efbc258f41ae594b27e
still debugging Darwin sar query. linux sar query seems OK. added more boot calls for before and after app load.
diff --git a/app/controllers/system_controller.rb b/app/controllers/system_controller.rb index d831a35..c10d03f 100644 --- a/app/controllers/system_controller.rb +++ b/app/controllers/system_controller.rb @@ -1,32 +1,35 @@ ################################################################################################...
troystribling/agent_xmpp_orig
99c6bbe0733cfe7060dc007258fefa3333920dcc
worked through first performance collection (Darwin CPU stats). still need to save data.
diff --git a/app/models/performance_monitor.rb b/app/models/performance_monitor.rb index a36e5af..982cf6d 100644 --- a/app/models/performance_monitor.rb +++ b/app/models/performance_monitor.rb @@ -1,14 +1,15 @@ ############################################################################################################...
troystribling/agent_xmpp_orig
4d790a14d1bc30ca051cdf1996c47f377140c41f
changed syntax for calls to class methods
diff --git a/app/controllers/performance_controller.rb b/app/controllers/performance_controller.rb index b135f69..796eb5d 100644 --- a/app/controllers/performance_controller.rb +++ b/app/controllers/performance_controller.rb @@ -1,19 +1,19 @@ ############################################################################...
troystribling/agent_xmpp_orig
0b5e2a1d34b6af8d73f82bce8c78726c233e7a07
added performance collection task. starting parser and db update.
diff --git a/app/controllers/system_controller.rb b/app/controllers/system_controller.rb index b1c1c41..6c0ca35 100644 --- a/app/controllers/system_controller.rb +++ b/app/controllers/system_controller.rb @@ -1,32 +1,33 @@ ################################################################################################...
troystribling/agent_xmpp_orig
e8ad143be199addd3a779a0e0a173162b3be07e6
added hooks to access xmpp client from application and to configure application framework parameters. starting implementation of performance collector. also added structure to agent_xmpp lib directory.
diff --git a/README b/README index e36666e..4f1e592 100644 --- a/README +++ b/README @@ -1,23 +1,24 @@ Agent XMPP is an XMPP based linux device agent Simple XMPP client built on EventMachine. to install and run sudo gem install eventmachine sudo gem install xmpp4r - sudo gem install activesupport + ...
troystribling/agent_xmpp_orig
e4cb53358083de50ce061986c7028f2b93656410
renamed logger messages. started work on performance statistics messages.
diff --git a/app/controllers/performance_commands.rb b/app/controllers/performance_commands.rb new file mode 100644 index 0000000..bb4a388 --- /dev/null +++ b/app/controllers/performance_commands.rb @@ -0,0 +1,26 @@ +#######################################################################################################...
troystribling/agent_xmpp_orig
b19c946c9e05164ba8a4673beddb9f743a4f43e4
added timestamp to logger messages
diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..0e83f51 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tmproj +.DS_Store +.svn +*.yml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f9925e6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2009 Troy Stribling + ...
hone/backup_my_mail
065dda971c20761dd109afc3f0b7da4b8d29c3c2
* fixed rspec test
diff --git a/spec/controllers/backups_controller_spec.rb b/spec/controllers/backups_controller_spec.rb index 6456f43..5074bd7 100644 --- a/spec/controllers/backups_controller_spec.rb +++ b/spec/controllers/backups_controller_spec.rb @@ -1,127 +1,127 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper...
hone/backup_my_mail
5f80edf2074019fe4b137282657939c00dd2934c
* fixed expected output
diff --git a/app/models/imap.rb b/app/models/imap.rb index a8d997d..7231917 100644 --- a/app/models/imap.rb +++ b/app/models/imap.rb @@ -1,99 +1,99 @@ require 'net/imap' class Imap < RemoteMail DEFAULT_PORT = 143 DEFAULT_SSL_PORT = 993 RemoteMailHelper::setup_columns( self ) column :old_ssl , :boolean...
hone/backup_my_mail
4fc4623f0845367cc651a9ee576056aca0e54e12
* fixed host bug on notify
diff --git a/app/models/notify.rb b/app/models/notify.rb index 4f5abb5..6a7a8ab 100644 --- a/app/models/notify.rb +++ b/app/models/notify.rb @@ -1,36 +1,37 @@ class Notify < ActionMailer::Base FROM_ADDRESS = "test.otherinbox@gmail.com" HOST = "http://backup.nitroleague.com" def success(email, backup) s...
hone/backup_my_mail
2c4bdd8a5c70cf2a4b98418e07d056955399b2d7
* updated README with more configuration instructions
diff --git a/README b/README index 8bc964b..1734268 100644 --- a/README +++ b/README @@ -1,8 +1,14 @@ === BackupMyMail This web application provides a simple web interface for backing up both POP3 and IMAP mail. It requires using a smtp server for sending out notices to the user when the download is ready. === Ex...
hone/backup_my_mail
44832864985b7cf48ca9b59c6ede8bcbf4443e40
* added host information
diff --git a/app/models/notify.rb b/app/models/notify.rb index 6ee9a95..4f5abb5 100644 --- a/app/models/notify.rb +++ b/app/models/notify.rb @@ -1,35 +1,36 @@ class Notify < ActionMailer::Base FROM_ADDRESS = "test.otherinbox@gmail.com" + HOST = "http://backup.nitroleague.com" def success(email, backup) s...
hone/backup_my_mail
8e2c1f3ccaf07a76ae5515a910132f4938484df1
* setup default index route
diff --git a/config/routes.rb b/config/routes.rb index 4f3d9d2..118b281 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,43 +1,44 @@ ActionController::Routing::Routes.draw do |map| # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map...
hone/backup_my_mail
3bad25da20d0c1de3e8b8aab958e3ee4022e1815
* fixed some error checking for imap downloading * added README * added cleaning setup rake tasks
diff --git a/README b/README index 2af0fb1..8bc964b 100644 --- a/README +++ b/README @@ -1,256 +1,8 @@ -== Welcome to Rails +=== BackupMyMail +This web application provides a simple web interface for backing up both POP3 and IMAP mail. It requires using a smtp server for sending out notices to the user when the downlo...
hone/backup_my_mail
79c0cfd556aa360cf5d442c0e3e696951251c6b6
* fixed bug in zipping pop3 mbox
diff --git a/app/models/pop3.rb b/app/models/pop3.rb index 3cc8b93..4f06087 100644 --- a/app/models/pop3.rb +++ b/app/models/pop3.rb @@ -1,81 +1,81 @@ require 'net/pop' class Pop3 < RemoteMail DEFAULT_PORT = 110 DEFAULT_SSL_PORT = 992 RemoteMailHelper::setup_columns( self ) column :old_server, :string...
hone/backup_my_mail
f792f63a53c0a1ac797c37b2617b6451f3c56b4e
* zips will use a hash now to be passed in source -> destination of the files * imap always creates a new instance now
diff --git a/app/models/imap.rb b/app/models/imap.rb index aa4753a..a8d997d 100644 --- a/app/models/imap.rb +++ b/app/models/imap.rb @@ -1,101 +1,99 @@ require 'net/imap' class Imap < RemoteMail DEFAULT_PORT = 143 DEFAULT_SSL_PORT = 993 RemoteMailHelper::setup_columns( self ) column :old_ssl , :boolea...
hone/backup_my_mail
206fb5fa90f42cb99877a0416e52867cd4893d5d
* controller now supports imap
diff --git a/app/controllers/backups_controller.rb b/app/controllers/backups_controller.rb index f26ded1..2010d31 100644 --- a/app/controllers/backups_controller.rb +++ b/app/controllers/backups_controller.rb @@ -1,54 +1,76 @@ class BackupsController < ApplicationController def new @remote_mail = RemoteMail.ne...
hone/backup_my_mail
23230412e5b628fd7424f70c40c45a567816bcb6
* download method that outputs a zip for all folders
diff --git a/app/models/imap.rb b/app/models/imap.rb index 8814be2..4b1843f 100644 --- a/app/models/imap.rb +++ b/app/models/imap.rb @@ -1,78 +1,90 @@ require 'net/imap' class Imap < RemoteMail DEFAULT_PORT = 143 DEFAULT_SSL_PORT = 993 RemoteMailHelper::setup_columns( self ) column :old_ssl , :boolean...
hone/backup_my_mail
41288d631f18fd3940e620763780259a1be3892e
* support zipping multiple files
diff --git a/app/models/remote_mail.rb b/app/models/remote_mail.rb index 8b38a19..252dfb1 100644 --- a/app/models/remote_mail.rb +++ b/app/models/remote_mail.rb @@ -1,70 +1,84 @@ require 'zip/zip' require 'zip/zipfilesystem' require 'digest/sha1' module RemoteMailHelper def self.setup_columns( klass ) kla...
hone/backup_my_mail
7261bc8bb7051b156a213c1d255959f484c3f319
* added folder listing for imap * added download mbox for imap
diff --git a/app/models/imap.rb b/app/models/imap.rb index ebd2a98..8814be2 100644 --- a/app/models/imap.rb +++ b/app/models/imap.rb @@ -1,27 +1,78 @@ require 'net/imap' class Imap < RemoteMail DEFAULT_PORT = 143 DEFAULT_SSL_PORT = 993 RemoteMailHelper::setup_columns( self ) column :old_ssl , :boolean...
hone/backup_my_mail
1586aec68798748a7323d40b5590c1eaff1becfd
* finished zip pending example for overwriting zip output file * moved generate_mbox_name from pop3 to remote_mail
diff --git a/app/models/pop3.rb b/app/models/pop3.rb index 0cf73b7..9c2fb2c 100644 --- a/app/models/pop3.rb +++ b/app/models/pop3.rb @@ -1,84 +1,79 @@ require 'net/pop' -require 'digest/sha1' class Pop3 < RemoteMail DEFAULT_PORT = 110 DEFAULT_SSL_PORT = 992 RemoteMailHelper::setup_columns( self ) at...
hone/backup_my_mail
acb00c7079a778e3b40766052c50fab1964b1079
* Imap setup mailer
diff --git a/app/models/imap.rb b/app/models/imap.rb new file mode 100644 index 0000000..ebd2a98 --- /dev/null +++ b/app/models/imap.rb @@ -0,0 +1,27 @@ +require 'net/imap' + +class Imap < RemoteMail + DEFAULT_PORT = 143 + DEFAULT_SSL_PORT = 993 + + RemoteMailHelper::setup_columns( self ) + column :old_ssl , :boole...
hone/backup_my_mail
00711ca1cc1edc5cb1c914fc02dfb017e996db70
* spawns background processing for downloading mailing and sending email notifications * zips mailboxes * actionmailer support
diff --git a/app/controllers/backups_controller.rb b/app/controllers/backups_controller.rb index 2dbd827..f26ded1 100644 --- a/app/controllers/backups_controller.rb +++ b/app/controllers/backups_controller.rb @@ -1,60 +1,54 @@ class BackupsController < ApplicationController def new @remote_mail = RemoteMail.ne...
hone/backup_my_mail
d6a9038052885d981b8fad20323effd17ef56191
* changed interface for displaying mbox download link. It only expects the name of the mbox not a hash of them. * added ActionMailer support to a dreamhost account I have via SMTP
diff --git a/app/controllers/backups_controller.rb b/app/controllers/backups_controller.rb index 329fded..2dbd827 100644 --- a/app/controllers/backups_controller.rb +++ b/app/controllers/backups_controller.rb @@ -1,59 +1,60 @@ class BackupsController < ApplicationController def new @remote_mail = RemoteMail.ne...
hone/backup_my_mail
f1ad26e9cf3929c696e768d2e02ad0d860855eec
* added public/download to .gitignore * completed BackupsController new/show views * added part in BackupsController create to display error messages (hack)
diff --git a/.gitignore b/.gitignore index e04d6e7..9bcb89c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ db/schema.rb log/*.log tmp/**/* config/database.yml tags public/cache/**/* doc/* coverage/* +public/download/* diff --git a/app/controllers/backups_controller.rb b/app/controllers/backups_control...
hone/backup_my_mail
c84c243b6f7cb5da74cd2b2586f4343071823e4b
* moved validations and general constants to RemoteMail from Pop3 * copied columns over to RemoteMail, need columns in both places. This should be refactored later * added new, show, create methods to BackupsController
diff --git a/app/controllers/backups_controller.rb b/app/controllers/backups_controller.rb new file mode 100644 index 0000000..cc1b086 --- /dev/null +++ b/app/controllers/backups_controller.rb @@ -0,0 +1,51 @@ +class BackupsController < ApplicationController + def new + @remote_mail = RemoteMail.new + + respond_...
hone/backup_my_mail
bc4e06ca100c7029bf89cbf4f6a62a49df4f16ba
* added rcov folder to .gitignore * download now returns the mbox filename (not path) * write_mbox now takes the parameter of the name of the mbox
diff --git a/.gitignore b/.gitignore index a6f0ddf..e04d6e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ db/schema.rb log/*.log tmp/**/* config/database.yml tags public/cache/**/* doc/* +coverage/* diff --git a/app/models/pop3.rb b/app/models/pop3.rb index 33d1dbb..d598edd 100644 --- a/app/models/pop...
hone/backup_my_mail
2c55131e1aae16167b1b7558acc7648a25e87539
* pop3 validations
diff --git a/app/models/pop3.rb b/app/models/pop3.rb index e1f366b..33d1dbb 100644 --- a/app/models/pop3.rb +++ b/app/models/pop3.rb @@ -1,84 +1,101 @@ require 'net/pop' require 'digest/sha1' class Pop3 < ActiveRecord::BaseWithoutTable DEFAULT_PORT = 110 DEFAULT_SSL_PORT = 992 + PORT_MIN = 1 + PORT_MAX =...
hone/backup_my_mail
06bb85da2f5368fd35419c1115fdc41e43cc571f
* generates mbox name based off of a hash of the email address and time * writes mbox to file in /public/download/hash.mbox
diff --git a/app/models/pop3.rb b/app/models/pop3.rb index a32b267..e1f366b 100644 --- a/app/models/pop3.rb +++ b/app/models/pop3.rb @@ -1,65 +1,84 @@ require 'net/pop' +require 'digest/sha1' class Pop3 < ActiveRecord::BaseWithoutTable DEFAULT_PORT = 110 DEFAULT_SSL_PORT = 992 OK_FLAG = :ok AUTHENTICA...
hone/backup_my_mail
fbbb3bc76ea5bcb8948ac3b55eee4c99156f3cce
* added download method to pop3 for accessing the mail from the server
diff --git a/app/models/pop3.rb b/app/models/pop3.rb index ade176e..a32b267 100644 --- a/app/models/pop3.rb +++ b/app/models/pop3.rb @@ -1,42 +1,65 @@ require 'net/pop' class Pop3 < ActiveRecord::BaseWithoutTable DEFAULT_PORT = 110 DEFAULT_SSL_PORT = 992 + OK_FLAG = :ok + AUTHENTICATION_ERROR_FLAG = :auth...
hone/backup_my_mail
b3f414c06c4ba6bfbdd1ec4df0635deba1e636f9
* added Pop3 model * added plugin to have ActiveRecord without Table * setup_mailer to setup Net::POP3
diff --git a/app/models/pop3.rb b/app/models/pop3.rb new file mode 100644 index 0000000..ade176e --- /dev/null +++ b/app/models/pop3.rb @@ -0,0 +1,42 @@ +require 'net/pop' + +class Pop3 < ActiveRecord::BaseWithoutTable + DEFAULT_PORT = 110 + DEFAULT_SSL_PORT = 992 + + column :email_address, :string + column :server...
hone/backup_my_mail
76f9ba6720927dbff5a4e18419615f2fb43ab0f4
* pieces needed for rspec
diff --git a/lib/tasks/rspec.rake b/lib/tasks/rspec.rake new file mode 100644 index 0000000..2a478a8 --- /dev/null +++ b/lib/tasks/rspec.rake @@ -0,0 +1,132 @@ +raise "To avoid rake task loading problems: run 'rake clobber' in vendor/plugins/rspec" if File.directory?(File.join(File.dirname(__FILE__), *%w[.. .. vendor p...
madrobby/textorize
d121ecb2f57f4b8c2dbb0ccd8045a8dd57640836
switching to gemcutter permanently
diff --git a/README.rdoc b/README.rdoc index b794a65..f4b7795 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,69 +1,68 @@ = textorize: for a more beautiful web Official homepage: http://textorize.org textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. O...
madrobby/textorize
139424fb9dc1189db0cda5fc3193bc9f22153da8
not alpha anymore
diff --git a/README.rdoc b/README.rdoc index 0113327..b794a65 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,69 +1,69 @@ = textorize: for a more beautiful web Official homepage: http://textorize.org textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. O...
madrobby/textorize
08ae6cb29460564dade7f0cc36d9e1f022dcd539
let us call it one-oh
diff --git a/lib/textorize/renderer.rb b/lib/textorize/renderer.rb index 09a0857..fc19ef4 100644 --- a/lib/textorize/renderer.rb +++ b/lib/textorize/renderer.rb @@ -1,59 +1,59 @@ require 'osx/cocoa' module Textorize class Renderer include OSX def initialize(window, string, options) @text_v...
madrobby/textorize
ceaaf2a718c4363c6e46401ed3dc97c110bf8065
Add padding option
diff --git a/README.rdoc b/README.rdoc index 69437c3..0113327 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,68 +1,69 @@ = textorize: for a more beautiful web Official homepage: http://textorize.org textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. O...
madrobby/textorize
d302ab0e32013c60b9b5725be43adc81c324ca2f
For convenience, utput CSS snippet w/ generated name, width, height
diff --git a/lib/textorize/saver.rb b/lib/textorize/saver.rb index f3d15c5..3dc561c 100644 --- a/lib/textorize/saver.rb +++ b/lib/textorize/saver.rb @@ -1,16 +1,20 @@ module Textorize class Saver include OSX attr_reader :png def initialize(renderer) - bitmap = renderer.bitmap - @png =...
madrobby/textorize
cfd42c5c6eac737a41fcef86c5632fcd1d1d946d
use uncalibrated colors, better results for web stuffs
diff --git a/lib/textorize/color.rb b/lib/textorize/color.rb index 3832965..b2d5f35 100644 --- a/lib/textorize/color.rb +++ b/lib/textorize/color.rb @@ -1,64 +1,64 @@ # this code taken from limechat # http://github.com/psychs/limechat # LimeChat is copyrighted free software by Satoshi Nakagawa <psychs@limechat.net>....
madrobby/textorize
406095d2ede858151377bfd817380a22e0d4ff30
Add font smoothing parameter. Choose between no, light, normal and strong antialiasing
diff --git a/README.rdoc b/README.rdoc index 51d7425..69437c3 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,67 +1,68 @@ = textorize: for a more beautiful web Official homepage: http://textorize.org textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. O...
madrobby/textorize
226a1ce6b3ab16fa89ab5fa0fd68d68c9bb794dc
Add support for switching off ligatures
diff --git a/README.rdoc b/README.rdoc index 4a4e70a..51d7425 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,66 +1,67 @@ = textorize: for a more beautiful web Official homepage: http://textorize.org textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. O...
madrobby/textorize
260d4fb3ab748ca51890b21a630cea3a3e00c799
Add support for background transparency (0 background opacity disabled sub-pixel antialising)
diff --git a/lib/textorize/renderer.rb b/lib/textorize/renderer.rb index 61117b4..72af65a 100644 --- a/lib/textorize/renderer.rb +++ b/lib/textorize/renderer.rb @@ -1,51 +1,55 @@ require 'osx/cocoa' module Textorize class Renderer include OSX def initialize(window, string, options) @text_v...
madrobby/textorize
1f7cf1ca1ff4cbb0521666e6c0ecdec75db35995
Made use of RubyCocoa's features to make the Cocoa code more Ruby-ish.
diff --git a/lib/textorize/renderer.rb b/lib/textorize/renderer.rb index 7c2853b..61117b4 100644 --- a/lib/textorize/renderer.rb +++ b/lib/textorize/renderer.rb @@ -1,52 +1,51 @@ require 'osx/cocoa' module Textorize class Renderer include OSX - + def initialize(window, string, options) @text...
madrobby/textorize
25fe81ea6f1d39d2507e7fc8770a43d0becdf59e
Add support for CSS colors.
diff --git a/bin/textorize b/bin/textorize index cdf585d..5afd1c4 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,66 +1,66 @@ #!/usr/bin/env ruby require "optparse" require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: #$0 [options] string" opts.on('-f', '--font=...
madrobby/textorize
3c69a7bd14eff310885aac7bff317ee714f72082
Add *.gem to gitignore
diff --git a/.gitignore b/.gitignore index 1bb4e65..05059e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store github-test.rb -*.png \ No newline at end of file +*.png +*.gem
madrobby/textorize
b156742aeecf55e51febe736bcd6819c657b8fb9
Add option to list installed fonts
diff --git a/README.rdoc b/README.rdoc index b3b1eec..6e46b12 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,44 +1,50 @@ = textorize: for a more beautiful web textorize produces beautifully subpixel antialiased text graphics on OS X, through a Rubycocoa Ruby script. Output format is always PNG. = Learn more...
madrobby/textorize
d0ccef8117fbdebd234e4b82994bf4351fa4221e
Re-add kerning argument to command line tool
diff --git a/bin/textorize b/bin/textorize index 9608795..b4a1564 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,52 +1,56 @@ #!/usr/bin/env ruby require "optparse" require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: #$0 [options] string" opts.on('-f', '--font=...
madrobby/textorize
3dce5e8b97d890bcb7fa11c779241ee0665135c5
better README!
diff --git a/README b/README deleted file mode 100644 index f04845a..0000000 --- a/README +++ /dev/null @@ -1,25 +0,0 @@ -textorize produces beautifully sub-pixel-antialiased text graphics on OS X. Output format is always PNG. - -Install the gem and binary by doing: - -$ gem sources -a http://gems.github.com -$ sudo ge...
madrobby/textorize
ffc37c2df3b289c170a333335dd9a9c0373f3ddf
Bump version
diff --git a/.gitignore b/.gitignore index 496ee2c..1bb4e65 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.DS_Store \ No newline at end of file +.DS_Store +github-test.rb +*.png \ No newline at end of file diff --git a/textorize.gemspec b/textorize.gemspec index 014ce11..311ee1f 100644 --- a/textorize.gemspec...
madrobby/textorize
56908ccb1cb5de7997d76a1d41ff9691dbfdbe5a
fix order of attribute setting, update README
diff --git a/README b/README index 278b633..f04845a 100644 --- a/README +++ b/README @@ -1,21 +1,25 @@ textorize produces beautifully sub-pixel-antialiased text graphics on OS X. Output format is always PNG. Install the gem and binary by doing: $ gem sources -a http://gems.github.com $ sudo gem install madrobby...
madrobby/textorize
af9c468e9e05288e9d29136a26dfcf6d51051b3d
add gem instructions
diff --git a/README b/README index 87f4b10..278b633 100644 --- a/README +++ b/README @@ -1,16 +1,21 @@ textorize produces beautifully sub-pixel-antialiased text graphics on OS X. Output format is always PNG. -Usage: ./textorize.rb [options] string +Install the gem and binary by doing: + +$ gem sources -a http://gems...
madrobby/textorize
c8e8d9720b4db9b4557bb2329a21558716b88c3d
cleanups, remove dead options, off-screen rendering, fix fg color
diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2f9ea90 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +Copyright (c) 2009 Thomas Fuchs +http://script.aculo.us/thomas + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (th...
madrobby/textorize
0137321f5bce274930e6f4220df672b52aa3598c
trying hard!
diff --git a/bin/textorize b/bin/textorize index d4cf539..16f7022 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,67 +1,68 @@ #!/usr/bin/env ruby require "optparse" +require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: #$0 [options] string" opts.on('-f', '--font=...
madrobby/textorize
baffacc72713f4c3dc7d3fc35b7a04c37d0b235a
another try, yawn
diff --git a/bin/textorize b/bin/textorize index 16f7022..d4cf539 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,68 +1,67 @@ #!/usr/bin/env ruby require "optparse" -require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: #$0 [options] string" opts.on('-f', '--font=...
madrobby/textorize
bc27b6dc61cecde0b6dca3d2009d1829d7a08dbf
blah blah fixing bugs
diff --git a/bin/textorize b/bin/textorize index 0832afc..16f7022 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,70 +1,68 @@ #!/usr/bin/env ruby require "optparse" - -$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner ...
madrobby/textorize
c959d5f7033f4405bb8c9888dfc47b9d170c18fb
really fix a bug
diff --git a/bin/textorize b/bin/textorize index 16f7022..0832afc 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,68 +1,70 @@ #!/usr/bin/env ruby require "optparse" + +$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner ...
madrobby/textorize
98f3346bde4a5a4eaead7b3b57ab52dd26a18f1a
fix a bug
diff --git a/bin/textorize b/bin/textorize index 5eda120..16f7022 100755 --- a/bin/textorize +++ b/bin/textorize @@ -1,69 +1,68 @@ #!/usr/bin/env ruby require "optparse" -require "lib/textorize" - +require "textorize" options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: #$0 [options] string" ...
madrobby/textorize
f0cfb774279d4dec49cbf3e2d9da4c626ddef03b
initial version
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000..c67bd9a --- /dev/null +++ b/README @@ -0,0 +1,15 @@ +textorize produces beautifully sub-pi...
nataliepo/util
f45fbbc868b4280318f418c2c306434093cdbb24
notable journal updates
diff --git a/journal.txt b/journal.txt index 476f0d5..1031f7b 100644 --- a/journal.txt +++ b/journal.txt @@ -227,512 +227,528 @@ STILL NEED TO DO: * put a "powered by typepad" footer on everything * start to toy around with the django interface to pick colors and background ** abstract out current code into regul...
nataliepo/util
96c5d2f33b566cc1bc58d8ebb9feab0eba73a61a
todays notes
diff --git a/journal.txt b/journal.txt index d9361ec..476f0d5 100644 --- a/journal.txt +++ b/journal.txt @@ -210,512 +210,529 @@ in the header corrects the problem. Cool. << Weird Errors >> 100s of JS errors on every Motion site: document.all.tags is not a function http://www.iconico.com/CSSScrollbar/CSS.js v...
nataliepo/util
fb8d7efed894129137427ff8b2f220e395365dd7
todays updates - demo url
diff --git a/journal.txt b/journal.txt index 1b363db..d9361ec 100644 --- a/journal.txt +++ b/journal.txt @@ -196,514 +196,526 @@ Figured out why the Avatar widget isn't working. Turns out I had the wrong XID! in API endpoint but on the front page of Avatar, that user's display name shows up as: Àn'drié poste...
nataliepo/util
0c0ad16090b3919be0bb9eec9e7c042dfa7bcffe
today's updates to the journal.
diff --git a/journal.txt b/journal.txt index 79727d3..1b363db 100644 --- a/journal.txt +++ b/journal.txt @@ -181,512 +181,529 @@ STILL NEED TO DO: * Figure out why Avatar's XID doesn't work with the group. * Avoid hard-coding too many style elements in the Javascript. * Style 9-11 on my widget! /**********...
nataliepo/util
f4f3a3a9dd88a6c27b6c165fb8e5f07935392552
several journal updates to reflect oauth progress. how to confirm that i've oauth'd?
diff --git a/journal.txt b/journal.txt index 7ed17e2..79727d3 100644 --- a/journal.txt +++ b/journal.txt @@ -161,512 +161,532 @@ To avoid yesterday's challenge, I ended up getting tricky with divs and hrefs. <p> <a class="whatever" href="http://profile.typepad.com/nataliepo">nataliepo</a> recently posted a photo ...
nataliepo/util
3e9b0c280aae84b5ad34548966a49013d7c298bc
several days' commits. gotta get back in the habit of journaling every day.
diff --git a/journal.txt b/journal.txt index d21d157..7ed17e2 100644 --- a/journal.txt +++ b/journal.txt @@ -91,513 +91,582 @@ pulls only 5 events from mmmeow. Why? /*************** * [4] 2/27/10 ****************/ This day went to TPM to write the MostRecc plugin to avoid costly sql queries for most recent fav...
nataliepo/util
5a95e437bfeb765aab82de77f8fc6c3406db0174
reverting a messy commit
diff --git a/journal.txt b/journal.txt index d5ae64a..d21d157 100644 --- a/journal.txt +++ b/journal.txt @@ -91,584 +91,513 @@ pulls only 5 events from mmmeow. Why? /*************** * [4] 2/27/10 ****************/ This day went to TPM to write the MostRecc plugin to avoid costly sql queries for most recent fav...
nataliepo/util
352b408af4fb8cedb288cd7e12d8878773ddd579
Databas t /path/to/sqlite/database/file
diff --git a/journal.txt b/journal.txt index d21d157..d5ae64a 100644 --- a/journal.txt +++ b/journal.txt @@ -91,513 +91,584 @@ pulls only 5 events from mmmeow. Why? /*************** * [4] 2/27/10 ****************/ This day went to TPM to write the MostRecc plugin to avoid costly sql queries for most recent fav...
nataliepo/util
76cdeb312e7257fd964d5f79a040d8c79ce9c0ac
todays updates
diff --git a/journal.txt b/journal.txt index d8497ec..d21d157 100644 --- a/journal.txt +++ b/journal.txt @@ -86,513 +86,518 @@ pulls only 5 events from mmmeow. Why? ****************/ << MISSING ENTRY >> /*************** * [4] 2/27/10 ****************/ This day went to TPM to write the MostRecc plugin...
nataliepo/util
4ce602c3a75c7be18defb6602eb3bb84f998ee24
a few journal updates du jou
diff --git a/journal.txt b/journal.txt index 21dfe33..d8497ec 100644 --- a/journal.txt +++ b/journal.txt @@ -80,513 +80,519 @@ This pulls all of my events, but this typepad_api_url = 'http://api.typepad.com/groups/%s/events.json?max-results=5&start-index=1' % mmmeows_group_xid pulls only 5 events from mmmeow. Why? ...
nataliepo/util
f701d5ea5e31ac3527fe8750f3b2b3bd8bb28511
todos for this evening
diff --git a/journal.txt b/journal.txt index dbf9f4e..21dfe33 100644 --- a/journal.txt +++ b/journal.txt @@ -1,584 +1,592 @@ -/*************** + /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was v...
nataliepo/util
104620f6725438036307ef5f65915e007eb77720
evening journal updates
diff --git a/journal.txt b/journal.txt index 9d97b16..dbf9f4e 100644 --- a/journal.txt +++ b/journal.txt @@ -12,544 +12,573 @@ ** export PATH=/lots/of/paths:/more/paths:/usr/local/mysql/bin/mysql * then, had to modify the default mysql socket that php looks for! ** http://foolswisdom.com/mac-wordpress-error-establ...
nataliepo/util
7b4225e7ed2a66568cf3184930126cca63f9fe3b
several days' updates.
diff --git a/journal.txt b/journal.txt index a22274b..8dba28d 100644 --- a/journal.txt +++ b/journal.txt @@ -1,481 +1,513 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
791ea01b47609e5ed4dbf8f948bf6907068932f2
today's journal updates
diff --git a/journal.txt b/journal.txt index 7c2be6d..a22274b 100644 --- a/journal.txt +++ b/journal.txt @@ -1,479 +1,481 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
e3523e2d1a8bb35d161e7d42b56b47996242d294
more notes.
diff --git a/journal.txt b/journal.txt index c7cc27e..7c2be6d 100644 --- a/journal.txt +++ b/journal.txt @@ -1,469 +1,479 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
43195ac3a015f1b5969ea6d5315e144318aa10cb
today's journal updates
diff --git a/journal.txt b/journal.txt index 0ea2272..c7cc27e 100644 --- a/journal.txt +++ b/journal.txt @@ -1,433 +1,469 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
3ffdbfc25ad00ff6f061c72b21775dab5d035dc2
todays updates
diff --git a/journal.txt b/journal.txt index 8103878..0ea2272 100644 --- a/journal.txt +++ b/journal.txt @@ -1,431 +1,433 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
db92e30ec7a2c27260ab896b672e7c6e0a084123
small updates to the journal...
diff --git a/journal.txt b/journal.txt index 240a677..8103878 100644 --- a/journal.txt +++ b/journal.txt @@ -1,422 +1,431 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
e6f15bd79df933cd9b72fa0d8ed16c81f8547f76
today's journal updates
diff --git a/journal.txt b/journal.txt index 6edbe7c..240a677 100644 --- a/journal.txt +++ b/journal.txt @@ -1,397 +1,422 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
39b64863215e59893eb0ebee63d444d95475bb32
journal updates for today's work.
diff --git a/journal.txt b/journal.txt index e09b671..6edbe7c 100644 --- a/journal.txt +++ b/journal.txt @@ -1,377 +1,397 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
7a6b32e89ad06cfb04418eae53a78caa10e0d666
Tuesday (short day) updates. Stylist is coming along nicely!
diff --git a/journal.txt b/journal.txt index 0b87473..e09b671 100644 --- a/journal.txt +++ b/journal.txt @@ -1,363 +1,377 @@ /*************** * [1] 02/21/10 ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once...
nataliepo/util
a5abc465bb9f50c28bffcd3d0e9a89e38d68ec3b
merging journal changes back together
diff --git a/journal-2.txt b/journal-2.txt deleted file mode 100644 index 68c2868..0000000 --- a/journal-2.txt +++ /dev/null @@ -1,45 +0,0 @@ -[16] 03/08/10 - -Getting sloppy with my journal commits..... - -SHORT CODING DAY TODAY: - X make Stylist slurp in a JSON feed specifying objects to present as an alternative to ...
nataliepo/util
c0633736381c127f0d229b276ccbef4800d2bde2
forgot to check in journal from sunday
diff --git a/journal.txt b/journal.txt index 6e4a314..18422b0 100644 --- a/journal.txt +++ b/journal.txt @@ -1,249 +1,318 @@ -[1] 02/21/10 +/*************** + * [1] 02/21/10 + ****************/ * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very u...
nataliepo/util
d4cb6f9ea6491ae9f7a894ba7154fdf9b9689512
adding yajf (yet another journal file) to merge in with the root later
diff --git a/journal-2.txt b/journal-2.txt new file mode 100644 index 0000000..68c2868 --- /dev/null +++ b/journal-2.txt @@ -0,0 +1,45 @@ +[16] 03/08/10 + +Getting sloppy with my journal commits..... + +SHORT CODING DAY TODAY: + X make Stylist slurp in a JSON feed specifying objects to present as an alternative to the ...
nataliepo/util
0e216fc290651105dbbab7b3c26c04b07278df17
more updates for today
diff --git a/journal.txt b/journal.txt index 430bbf5..6e4a314 100644 --- a/journal.txt +++ b/journal.txt @@ -1,236 +1,249 @@ [1] 02/21/10 * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once I restarted apache, i was able to run th...
nataliepo/util
1e29d6e94937d10573f0359e2cb52794421bbd26
journal updates + a new resources file since i keep opening the same links for help
diff --git a/journal.txt b/journal.txt index bff60b3..430bbf5 100644 --- a/journal.txt +++ b/journal.txt @@ -1,207 +1,236 @@ [1] 02/21/10 * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once I restarted apache, i was able to run th...
nataliepo/util
0c4452104b8e1395351719b9d2c7bd17d4870c57
today's journal updates
diff --git a/journal.txt b/journal.txt index f4a61a6..bff60b3 100644 --- a/journal.txt +++ b/journal.txt @@ -1,159 +1,207 @@ [1] 02/21/10 * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once I restarted apache, i was able to run th...
nataliepo/util
33068dc7829c519979ad2a4004d7694de051af5c
today's journal updates
diff --git a/journal.txt b/journal.txt index 65ffdcc..f4a61a6 100644 --- a/journal.txt +++ b/journal.txt @@ -1,129 +1,159 @@ [1] 02/21/10 * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once I restarted apache, i was able to run th...
nataliepo/util
c0c58226f4b7365b5cd7dcfa50d9b33227219f30
today's notes
diff --git a/journal.txt b/journal.txt index 02161d9..65ffdcc 100644 --- a/journal.txt +++ b/journal.txt @@ -1,110 +1,129 @@ [1] 02/21/10 * downloaded WP 2.9.2 * had to install php on leopard ** http://foundationphp.com/tutorials/php_leopard.php was very useful ** once I restarted apache, i was able to run th...