sábado, julho 11, 2009

Portuguese BLOG

Hey, if you can read Portuguese, use this link to see my weblog in Portuguese.
I don't have time to update two blogs at the same time :-)

http://daltondecamargo.wordpress.com/


See you.

quinta-feira, fevereiro 07, 2008

News of my personal projects

Hi all, I'm sorry about my delay in subscribing new posts, but i'm really busy in my personal projects and with my life.
Probably nobody knows, but I have two personal projects that I'm taking alone, one of them is: www.empregonaweb.com (emprego means jobs in English), like the name says, this is my Job Portal. The another one is called Infoblogs.com.br, this is about an IT Blogs aggregator, but not only aggretator, infoblogs has a particular database which the users can give "credits" for posts of the bloggers and so forth.
Those two projects are my "hobbie" while I'm not in the Gym or with my girlfriend (and another things), but the truth is that I love to maintain portals!

daltondecamargo at gmail.com

terça-feira, janeiro 30, 2007

Spring 2: What's New and Why it Matters

What's New and Why it Matters is an infoQ article by Rod Johnson, the first of two part. This in-depth piece is well worth reading for anybody wishing to understand the evolution of Spring 2.0 as it introduces significant new features, and how these combine to provide the simplicity and power that is the central theme of this release.

segunda-feira, dezembro 11, 2006

JavaBB 0.86 is out!

Now JavaBB works with Tabs! All categories in JavaBB now are divided by tabs.
While you work, you can let javaBB opened in your firefox tab and when new topics are included, JavaBB will reload (using JavaScript setTimeout) and the new topics are going to be shown to you in the title of your firefox tab, similar as Gmail. Beyond this, was included attachment for post files in JavaBB 0.86 version.

Have a look at the newest features:
http://www.javafree.org/dependencias/javabb/version/javabb86.html

terça-feira, outubro 03, 2006

JavaBB 0.85 is available!



JavaBB 0.85 is available!
Many different features includind ajax implementation has been launched in this version.
Please, if you are using older versions of JavaBB, try this version because many security bugs have been fixed.
If you would like to see javaBB runnig, visit JavaFree.org, the most popular Java community in Portuguese Language.
www.javabb.org


Some projects that are using JavaBB:

http://www.wakeboardingmag.com/forum/forum.jbb
http://www.chailounge.co.uk/lounge/forum.jbb
http://www.mmahellas.gr/forum.jbb
http://www.destinationweddingmag.com/forum/forum.jbb
http://www.sportdiver.com/forum/forum.jbb
http://www.caribbeantravelmag.com/forum/forum.jbb
http://www.egenial.corphost.com.br/javabb/forum.jbb

segunda-feira, setembro 04, 2006

Have you ever heard about SwingX??

Of corse you have!
SwingX is a set of components intended to extends functionalities of Swing API default.
Let see how integrate a set of components to the Netbeans' Pallet 5.5 beta, but you can do it from 5.0 version.

To do it, click right button over Pallet and select 'Pallet Manager', make a new category (New Category) that you can call as "SwingX" and add SwingX jar (Add from JAR).
Now we need say wich classes will be added to the Pallet. These classes are:
JXCollapsiblePane , JXComboBox, JXDatePicker, JXDialog, JXEditorPane, JXErrorDialog, JXFindBar, JXFindPanel, JXGlassBox, JXHyperlink, JXImagePanel, JXList, JXLoginPanel, JXMonthView, JXPanel, JXRadioGroup, JXRootPane, JXSearchPanel, JXStatusBar, JXTable, JXTableHeader, JXTaskPane, JXTipOfTheDay, JXTitledPanel, JXTree, LabelProperties

Note: These classes are of SwingX API stable, the development API has some extras components.



After some "nexts", we have the SwingX components integrated with our NetBeans :). You can add these components without problems into of JFrame or JPanel.

Take a look at the Pallet of SwingX into NetBeans!



Thnks Elias :)

Release 0.1 added for Spring Framework Netbeans module


My partner of JavaFree, Marcos Silva, has written about Netbeans plugin support to Spring Framework.
I haven't already used it, and it seems that is still in development (0.1 version).
Summary:
An early release of a module providing Netbeans integration with the Spring Framework has been released. The module allows users to select select the Spring Framework when creating web applications in Netbeans. The module will then add the necessary libraries, configure spring in the web.xml, and register an XML Catalog in the netbeans runtime tab. This will enable XML code completion when editing Spring Framework beans configuration files.
http://spring-netbeans.sourceforge.net/

segunda-feira, agosto 14, 2006

Captcha in JavaBB Project

I have noted that many "fake users" had already inserted in our DataBase. But, how it happened?
Simple! We weren't using Captcha control. Do you know what is Captcha?

From Wikipedia:
A CAPTCHA (an acronym for "completely automated public Turing test to tell computers and humans apart", trademarked by Carnegie Mellon University) is a type of challenge-response test used in computing to determine whether or not the user is human. The term was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper of Carnegie Mellon University, and John Langford of IBM. A common type of CAPTCHA requires that the user type the letters of a distorted image, sometimes with the addition of an obscured sequence of letters or digits that appears on the screen. Because the test is administered by a computer, in contrast to the standard Turing test that is administered by a human, a CAPTCHA is sometimes described as a reverse Turing test. This term, however, is ambiguous because it could also mean a Turing test in which the participants are both attempting to prove they are the computer.

After this, I've just put Captcha in JavaBB project, as you know, JavaBB is my OpenSource Project based on phpBB project.
JavaBB is a software based on Java, developed specifically with intention to join communities.
Based in phpbb, we are working pledged by the success of phpBB, to become javaBB so efficient as it.

Well, let's straight to some example of how you can use Captcha in your Java Project. In this example, I'm using SimpleCaptcha library. After all, what is SimpleCaptcha??

From SimpleCaptcha site:
The purpose of the simple java captcha project is to make it easy to generate good-looking captchas with a minimum of programming and preferably little configuration.

SimpleCaptcha is an open Source Java implementation for captcha creation. Integration is left to the developers of the individual projects because I don't (want) to know your implementations...

My original interest for the thing was after a distributed dictionary attack against one of our systems. Just to make it a little harder we put a quick hack of a picture on the site. The thing was configured so it would only enable itself when an x amount of logins would have failed over an y amount of time. Unfortunately this was found too confusing.
Put in your web.xml the follow lines:

<servlet>
<
servlet-name>Captcha < / servlet-name>
<
display-name>Captcha < / display-name>
<
servlet-class>nl.captcha.servlet.CaptchaServlet < / servlet-class>

And this mapping:

<servlet-mapping>
<servlet-name>Captcha< / servlet-name>
<
url-pattern>/Captcha.jpg< / url-pattern>
servlet-mapping>


Now that you have already configured your web.xml, you must use in your JSP file (velocity, freemarker template and so forth..) an image control like this:

<
img src="Captcha.jpg">

and in your Controller (Action of Struts, WebWork..) or in some JSP file, you must check the value from the text field against the captcha key stored in the session:
(String)session.getAttribute(nl.captcha.servlet.Constants.SIMPLE_CAPCHA_SESSION_KEY) ;

Note that with each request to the servlet the current value of the key in the session is replaced with a new one.

The image generated by SimpleCaptcha library



Well, now that you know how SimpleCaptcha works, you can download and try by yourself :)