Monday, February 23, 2009
Wednesday, February 18, 2009
Check out the new outstanding web site of MentesVirtuais
The new web site of mentesvirtuais it's really nice and causes a great impact.
Mentes Virtuais creates and develops solutions and products of excellence for an increasingly global and competitive market, on the areas of Telecommunications and Information Technology.
Thursday, February 12, 2009
qmail-toaster + spamdyke: test behaviour
Edit /etc/spamdyke/spamdyke.conf
log-level=debug
Then run the following command
$ /usr/local/bin/spamdyke --config-file /etc/spamdyke/spamdyke.conf /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
To send an email enter the SMTP commands:
mail from: youremail@mail.com
rcpt to: to_address@mail.com
data
subject: TEST MESSAGE
data
Put some content here...
.
You will see debug lines that shows you all the steps of spamdyke.
Wednesday, February 11, 2009
RubyonRails: How to Integrate Comatose CMS & FCKEditor tutorial in your rails application
Install CMS Comatose plugin
$ script/plugin install http://comatose-plugin.googlecode.com/svn/trunk/comatose
$ script/plugin install git://github.com/darthapo/comatose.git (For Rails 2.X)
$ script/generate comatose_migration
$ rake db:migrate
Dependencias
$ ruby script/plugin install git://github.com/rails/acts_as_list
$ ruby script/plugin install git://github.com/rails/acts_as_tree
Install FCKEditor Plugin
$ script/plugin install git://github.com/davividal/fckeditor.git
Install views in our project
$ rake comatose:admin:customize
Edit "app/views/comatose_admin/_form.rhtml"
replace:
<%= f.text_area :body, :rows=>20, :tabindex=>2 %>
with:
<%= fckeditor_textarea('page', 'body', :width => '100%', :height => '500px') %>
Add FCKEditor javascript file to
app/views/layouts/comatose_admin.rhtml
<%= javascript_include_tag :fckeditor %>
Configure FCKEditor to accept other other Files Types like "PDF".
/vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb
MIME_TYPES = [
"image/jpg",
"image/jpeg",
"image/pjpeg",
"image/gif",
"image/png",
"application/x-shockwave-flash"
]
Comatose Configurations in config/initializers/comatose.rb
Comatose.configure do |config|
config.admin_title = 'Administration'
config.admin_helpers = []
config.admin_sub_title = 'Administration Pages'
config.content_type = 'utf-8'
config.default_filter = ''
config.default_processor = :liquid
config.default_tree_level = 3
config.disable_caching = false
config.hidden_meta_fields = 'filter'
config.helpers = []
config.includes = []
# These are 'blockable' settings
config.authorization = Proc.new { true }
config.admin_get_author = Proc.new { request.env['REMOTE_ADDR'] }
config.after_setup = Proc.new { true }
# Includes AuthenticationSystem in the ComatoseAdminController
#config.admin_includes << :authenticated_system
# Calls :login_required as a before_filter
#config.admin_authorization = :login_required
end
Java Tools - Finding bugs, optimization and profiling
FindBugs
«FindBugs, a program wich uses static analysis to look for bugs in Java code»
http://findbugs.sourceforge.net/
«PMD scans Java source code and looks for potential problems like:
- Possible bugs - empty try/catch/finally/switch statements
- Dead code - unused local variables, parameters and private methods
- Suboptimal code - wasteful String/StringBuffer usage
- Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
- Duplicate code - copied/pasted code means copied/pasted bugs
PMD is integrated with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.»
«YourKit, LLC is a technology leader, creator of the most innovative and intelligent tools for profiling Java & .NET applications. The YourKit Java Profiler has been already recognized by the IT professionals and analysts as the best profiling tool.
With YourKit solutions, both CPU and memory profiling have come to the highest professional level, where one can profile even huge applications with maximum productivity and zero overhead.
There are several, recent innovations to profiling that have gained well-deserved popularity among professional Java developers, both in big and small companies.
YourKit is the standard-setter in the evolution of profiling tools.»
http://www.yourkit.com/Wednesday, February 4, 2009
Ajaxian » ECMA What? Harmony Who? TC39? Tamarin? JavaScript!
There's a lot of misunderstanding among "javascript" and what it really means. I found an article that clarify it in a simply and direct way .
Ajaxian » ECMA What?
I'm not a fan of ECMA and other standardization comities like