Here's the link of daringfireball Markdown. Can i use this API in my java project? I read the whole site and did not find anything that could help me figure it out.
I also went to the wikipedia page to see if there was more API that do the same thing, but they're for web language like PHP or ruby.
I want my user to be able to use markdown as it is more simple for a non-programmer to type with this syntax.
If not, is there any other API that does the same thing for JAVA? Would it be hard to implement such thing my self as i am a starter experienced programmeer?
Thanks
Related
So, I'd like to create a bilingual program. From what I have heard, xml files are way to go...
I couldn't really find anything useful with Google (when you enter Java in Google it sees the word "language" only as in "programming", instead of desired "spoken"), so if any of you could direct me to some tutorial page which explains this topic further, or even show it to me here (It can be that complicated, can it?), I'd be very grateful.
If xml is way to go, that is! If any of you have any better suggestions, I'm listening...
XML could be the way to go, but the usual approach to internationalise your Java applications is using ResourceBundles. When asking Google the right keywords are: Java i18n or Java Internationalization.
There is a basic java tutorial that can get you started with i18n. If you are writing a web application then you should check the documentation of your specific framework.
Java has a built in internationalization system that uses properties files.
Java Internationalization API Tutorial
I am trying to write an extension to google chrome and I want to use my own java classes and it's attributes, methods inside a javascript code. I search on the internet but I did'nt find enough resources in terms of implementation. Can you give me any idea how to integrate and use my own java classes inside a javascript code. If you can help me , I will appreciate
Thanks.
This will not work. Both are totally different programming languages. Javascript is a script that is interpreted by the web browser. Java is a object oriented programming language that needs to be compiled and run in a virtual machine (JVM). Many people are confused by the similar names.
Isn't Google Web Toolkit (GWT) what you are looking for? It translates code written in Java to native Javascript to be run on the browser.
I wonder if it would be possible to integrate the generated code with your code, to run it as a browser extension, though.
If you need only instance variables of your classes, you would do well by converting your object into JSON and sending it to you extension. Check http://www.json.org/java/index.html. As pointed out by Marcelo, GWT will help you but only if you are deploying your app on Google App Engine. It is not for chrome extensions.
I guess you wanted a bean like access from a scripting language to java 'objects'..
http://commons.apache.org/bsf/ may help you to access Java objects and methods from scripting languages.
it claims to support javascript.
Mozilla has something like this through XP-COM.
also: see this, Chrome and XPCOM
I am wondering if you found a solution to this.
I want to write a Java code to parse a certain website. Each result in the website appear in a specified URL.
How can I start? Is there a good library to use? Could I benefit from your experience in this field?
Search for "web crawler" and you'll find many examples (e.g. Crawler4J or Crawler), how to solve this.
Besides Java, you'll often stumple upon Python when it comes to grepping stuff from web pages - I'm not a Python guy, but it seems to fit for the task.
I want to create a web based java tutorials kind of project which involves jquery, css, jsp, springs etc .,
so I actually want to practice these technologies resulting a good product. The content of this tutorial can be edited by any user and rated by clients according to the chapter etc.,
I have few such ideas.
One primary idea being have a web based compiler and executor . Similar to w3schools. I know its difficult for a compiler of server side technology on a browser.
My questions are:
Are there any such open source java
compiler/executor services available
which can be used?
Is anyone interested to work on such
project (in case there isnt any)?
EDIT:
I am planning to use Compiler in java and Beanshell. Any better solutions ?
Google App Engine is the one, which one can you help to set up Free online Java Compiler, But for that you need to have an account to proceed.
Few other places you can defnitely Check
http://compilr.com/
If you have Applets,
http://www.innovation.ch/java/java_compile.html
EDIT : As Stephen Suggests, Download JRE and JDE and use it from oracle website
http://www.oracle.com/technetwork/java/javase/downloads/index.html
With http://www.browxy.com you can compile and run java console application and applets
You would need a script on your server that accepts the sourcecode, compiles it and runs it, however I'm pretty sure, you don't want to run arbitrary code.
If you still want to do it, take a look at Google's AppEngine, they do allow users to upload their (compiled) java programs and don't seem to have had any problems with it.
This question is interesting. In fact, Tomcat JSP server is an online compiler for Java Servlet. May help you a little in your case. (Not for traditional Java, though).
Imagine that you gave user an input form for Java codes ( preferably a WYSIWYG editor ), the codes will be written in a temp JSP file, and then your code compile and run the JSP.
But be careful , JSP is too powerful ( as it can touch file system, etc. ). Make sure your security measure is set.
I've used ideone.com before when discussing Java code with someone in a remote location. It is a web based IDE that handles Java as well as a lot of other languages, and is very useful.
If you are trying to do it yourself, you should be aware java6 and above have compilation built into the language in the javax.tools package.
You may want to check out Fixoncloud compiler. It's a web-based collaborative online compiler. Anyone can make changes to the code and you can also track history of your code. The compiler supports C, C++ and Java.
Depending on the permissions set to the code, the owner can also make his code completely private and permit only specific users to view/modify the code.
Here's the link to the compiler:
http://www.fixoncloud.com/Home/compiler/index.php?id=254
There are a handful of open-flash-charts tutorials on the web, mostly php from what I can see. I know there is a Java helper class, but I haven't found documentation or examples.
The helper library is also includes in the ofcharts grails plugin.
Java/Groovy or Grails suggestions welcome.
thanks!
One of the single best sources I have found on it is here
From the site: "This site is now mainly used to post examples, help and patches for users requesting help in the OFC2 forum which I occassionally haunt."
Has proven invaluable in my developing Java/Grails charts with it. Bear in mind that you need to do little else to make the charts work than to generate JSON. To that end Grails is ideal - however what you will spend a lot of time working on is structuring that JSON data.
The linked site provides the most detailed JSON API documentation that exists for the different chart types OFC supports.
There is also a Java API reference open source project hosted on Google Code:
http://code.google.com/p/jofc2/
This is the code embedded in the Grails plugin I've been using so the documentation has helped a ton!