sentence
stringlengths
1
1.38k
label
stringclasses
3 values
Java wrappers are available: URL_http://ubaa.net/shared/processing/opencv/ [OpenCV-Java-and-Processing-library] URL_http://code.google.com/p/javacv/ [JavaCV] I believe you will want to look into Hough transforms for circles.
o
URL_http://www.seas.upenn.edu/~bensapp/opencvdocs/ref/opencvref_cv.htm [This- page] mentions them .
o
IEEE material available , but it needs subscriptions.
o
URL_http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=4579428 [ URL_http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=4579428 ] .
o
I tried the project iris tool.
o
It has the foundation blocks for IRIS Matching SYstem.It has the following features:* Basic QT UI - Needs qt-make and qt-sdk on top of gc++ and make to build* Iris Detection from Image file.
o
- The Image should be 320x280 windows bmp greyscale 8 bit indexed image.
o
- You can take an iris snap from you camera phone.
o
It took a 12M regular jpeg image and converted it to required format using gimp.
o
Iris Image database: Text file db to store Iris Images.
o
- Means you could extend the tool to create a Iris Search database - I could take another iris image and try to match with existing image Image acquisition is not available.
o
Web Application - Authentication / Login Framework.
o
This is a very simple, probably a most asked question and frequently developed as part of any web application.
p
Say I'm planning to build a web application and some of the functional requirements include (apart from the usual hard hitting security reqs),- Need to have users sign up for a new account profile- Authenticate user using the native app authentication / Facebook or Google or Yahoo or OpenId login- Allow lost password retrieval- Session handling needs Is there an out of the box frameworks (Drupal, Liferay, Tapestry with Tynamo, Wicket ??
o
) that I can use to wrap my application which can be a bunch of JSP's or HTML's with JS?
o
I know I'm asking a very simple and maybe a naive question.
n
But this is a topic every web developer guru will go thru.
o
Any help, advise and pointers much appreciated.
p
I'd recommend taking a look at Apache Shiro: URL_http://shiro.apache.org/ [ URL_http://shiro.apache.org/ ] It handles the security portion of your application and gives you a great deal of flexibility in how to secure things.
p
For example, you can add an annotation to secure individual methods (for example: you can't run this method unless you are an admin), individual pages (for example: you can't load this page unless you are an admin), and URL patterns (you must be admin to access anything containing /admin/* in the url).
p
Give how complex it can be do to security right, Shiro is very simple to use.
n
It may take just a bit to get your head around some of the concepts initially, but Shiro does a very good job of hiding as much of the complexity as possible.
p
Also the user list is very responsive and extremely helpful.
p
If you use Tapestry, you might look at URL_http://tynamo.org/tapestry- security+guide [ URL_http://tynamo.org/tapestry-security+guide ] It makes it very easy to get Shiro up and running in a Tapestry application and gives you some easy to use tags to use in your templates.
p
Shiro isn't going to give you OpenID, OAuth or Facebook integration out of the box, but chances are high you will need to customize that part to your application.
o
I believe there is some work being done to help integrate functions that will help enable these types of authentication into the framework.
o
Some of the frameworks that build on Shiro may offer more of what you are looking for.
o
For example, URL_http://tynamo.org/tynamo-federatedaccounts+guide [ URL_http://tynamo.org/tynamo-federatedaccounts+guide ] will give you more support for federated logins in a tapestry application.
o
It is still in the early stages, but might be working looking at if you are using Tapestry.
p
Even if it doesn't do exactly what you need, it might provide some good examples to look at.
p
You also might be interested in: URL_http://static.springsource.org/spring- security/site/ [ URL_http://static.springsource.org/spring-security/site/ ] As a side note: In addition to security there are probably a bunch of other technologies that you will need in a typical web project.
o
You may need security, persistence, basic user management, etc.
o
If you create many web applications, it might be worth creating a maven archetype that lets you quickly get a new basic application up and running so you can start coding with all the initial structure already in place.
p
AppFuse tries to do this, but it aims more at allowing you many different choices when it comes to web frameworks.
o
If you know what technology you are going to use, having a startup app that is customized for your needs can be a huge timesaver.
o
I'd look at Apache Shiro or Spring Security.
o
Java library to visualize database table relationships.
o
Does anyone know of a Java library that would assist in creating a GUI component to visualize the relationships between tables in an SQL database, similar to the Relationships pane in Access, or the Diagrams function in SQL Server Enterprise Manager.
o
The closest I have been able to discover is the Prefuse library, however I would need to extract the database structure and build the graph manually - is there a simpler way to do this?
o
Cheers.
o
I would probably use URL_http://platform.netbeans.org/graph/ [Visual-Library] .
o
I like Prefuse as well, but Visual Library's api is more Swing like if you are a Swing developer.
p
Another option is URL_http://www.graphviz.org [GraphViz] which some people like.
o
You would still have to extract the database structure yourself though this is fairly straight forward using URL_http://www.roseindia.net/jdbc/Jdbc-meta-data-get-tables.shtml [jdbc] .
o
Thanks Jay, this looks promising, I'll check it out.
p
yFiles is a commercial graph and visualization library for Java / .NET / Ajax / Flex / Android that has been used for the exact same use in the DBVisualizer (JDBC) SQL client (free & commercial version).
p
GraphXML files exported from yFiles (and yFiles based windows in DBVisualizer) can be edited / (re)formatted in the (free) yEd Graph editor.
p
Extracting the database structure through the JDBC metadata programmatically might look straightforward, but from experience I can say that there's a fair bit of difference between JDBC drivers/database platforms.
p
Also, depending on database platform, details needed and authorization levels used the results yielded might differ.
o
(N.B.
o
I have no affiliation to either product other than being a user of the free editions of yEd and DBVisualizer, and include them in this answer because using the combination of these programs can give a good preview on the library features needed for such a project, and can be used as comparison check for its results).
p
Looking for an embeddable SQL beautifier or reformatter.
o
I am looking for a Java open source beautifier or reformatter for SQL that I can use to clean up DDL statements that I am generating with URL_http://www.openarchitectureware.org [openArchitectureWare] .
p
Nothing in the answer to " URL_http://stackoverflow.com/questions/206441 /online-code-beautifier-and-formatter [Online-Code-Beautifier-And-Formatter] " is of use to me and I have not been able to get URL_http://www.ohloh.net/projects/simplesqlformatter [Simple-SQL-Formatter] to work for me.
o
2:** org.hibernate.jdbc.util.BasicFormatterImpl got moved in release 4.0.
o
It is now located at: org.hibernate.engine.jdbc.internal.BasicFormatterImpl.
o
Technology marches on.
o
As noted by Alex, org.hibernate.pretty.Formatter no longer exists as of version 3.3.2.GA.
o
The replacement is org.hibernate.jdbc.util.BasicFormatterImpl: CODESNIPPET_JAVA1 .
o
At this writing, this answer has the most upvotes, and ought to have the current correct answer in it, so I have updated it accordingly.
p
Props to Alex for bringing it up.
o
... ANSWER:** If you're using Hibernate, they've got one built-in: org.hibernate.pretty.Formatter CODESNIPPET_JAVA2 .
o
Or DDLFormatter, which will a) Insert newline after each comma; b) Indent three spaces after each inserted newline;.
o
This would appear to be exactly what I am looking for.
o
Hibernate is already a core component of my solution so its not introducing a new dependency.
o
FYI, BasicFormatterImpl does not handle comments '--' and DDLFormatter is even more primitive see URL_http://www.dil.univ-mrs.fr /~massat/docs/hibernate-3.1/api/o rg/hibernate/pretty/DDLFormatter.html#format().
o
With Hibernate v3.3.2.GA, _org.hibernate.pretty.Formatter_ doesn't exist anymore.You can use its replacement : _org.hibernate.jdbc.util.BasicFormatterImpl_ CODESNIPPET_JAVA1 .
o
Part of the eclipse URL_http://www.eclipse.org/datatools/ [Data-Tools- Platform] is the URL_http://www.eclipse.org/datatools/project_sqldevtools/ [SQL-Development-Tools-Project] .
o
The page describing how to use the URL_http://www.eclipse.org/datatools/projec t_sqldevtools/sqltools_doc/SQL%20Query%20Parser%20User%20documentation.htm [SQL-Query-Parser] has an extremely brief use of URL_http://help.eclipse.org/h elp33/index.jsp?topic=/org.eclipse.datatools.doc.isv/html/reference/api/org/ec lipse/datatools/modelbase/sql/query/util/SQLQuerySourceFormat.html [SQLQuerySourceFormat] which provides these options: preserveSourceFormat the option to preserve the input source formating when SQL source text is generated statementTerminator the character separating multiple SQL statements hostVariablePrefix the character that preceedes a host language variable parameterMarker the character that identifies a host language parameter delimitedIdentifierQuote* the character that encloses delimited identifiers whose writing in case will be preserved omitSchema the current schema (omitted in SQL source, implicit to unqualified table references) qualifyIdentifiers the flag describing how identifiers in the SQL source will be qualified preserveComments the option to preserve comments in the parsed SQL source or/and the generated SQL source generateCommentsForStatementOnly the option to generate comments for the SQL source only in the context of the complete statement, or if set to false, for single SQL Query objects outside the context of a statement as well .
o
This solution would definitely work for me but I prefer the simplicity of the Hibernate solution.
p
A pity I could only give you a +1.
n
Have you considered: URL_http://www.sqlinform.com [ URL_http://www.sqlinform.com ] They provide both an API version and a command line version (as well as an online version).
o
No knowledge of costs though.
o
You could just use a URL_http://antlr.org/grammar/list [SQL-grammar] and build the AST with URL_http://antlr.org [antlr] .
o
Then you can output the tree in any format you like.
o
Thanks.
o
That will be my plan of last resort.
o
Fortunately I am too busy with a new job to look at this now and hopefully I'll get an answer before I have to roll up my sleeves.
p
Perhaps URL_http://jsqlparser.sourceforge.net/ [jsqlparser] will work for you.
o
Not as easy to find as you might think, as there are a fair few defunct projects out there.
n
In fact i failed to find it so ended up doing my own thing (based on the h2 parser - you can contact me if all else fails).
o
As a consequence i do not know if it has a beautifier, but writing one on top should be straight forward enough.
p
Its based on a grammar and JavaCC, so probably a better option than reinventing this wheel with antlr in any event.
o
You may find if you need to support various dialects of sql in complex statements that any approach based on a grammar will fail you.
n
Would this work - URL_http://www.wangz.net/cgi- bin/pp/gsqlparser/sqlpp/sqlformat.tpl [SQL-Formatter] .
o
I need to be able to do this off-line as after code generation step in my build process.
o
So SQL Formatter is not an option for me.
o
So this is definitely what you are looking for: URL_http://www.sqlparser.com/features/sql-formatter.php [A-SQL-formatter- library] that support Oracle, SQL Server, DB2, MySQL, Teradata and PostgreSQL.
o
Is there any good dynamic SQL builder library in Java?
o
Anyone knows some good SQL builder library for Java like URL_http://code.google.com/p/squiggle-sql/ [Squiggle] (not maintained anymore it seems).
p
Preferably, a project in active development.
o
Preferably with syntax like URL_http://framework.zend.com/manual/en/zend.db.select.html [Zend_Db_Select] , something that will allow to make a query like CODESNIPPET_JAVA1 .
o
May I ask what is the advantage of the syntax above against "SELECT f1..fn FROM products ORDER BY product_id" ?
o
@ItayMoav-Malimovka, Well, at least the syntax of SQL query in my case (if we take JOOQ as an example) is checked at the time you write code.
p
You have full syntax autocomplete which speeds up your query-writing and makes it more error-prone.
n
I agree this is something IDEs should improve upon.
o
@ItayMoav-Malimovka, well... in the case of JOOQ, if I change something in my DB structure, my code will just stop compiling until I fix it according to new DB structure.
p
If you have queries as a text, they will leave broken.
n
As an example: I am currently working on an application that needs to create statements to work on a massive legacy database.
p
Many statements share custom constraints which we build by a SQL DSL.
o