Found something

Posted On September 27, 2008

Filed under Uncategorized
Tags: ,

Comments Dropped leave a response

No space left on MyJavaServer

Posted On June 3, 2008

Filed under Uncategorized
Tags:

Comments Dropped 2 responses

On transferring a file via FTP, the message displayed is

452 Transfer aborted. No space left on device

What’s going on! This comes after the claim to delete the unwanted users. Logically that would have increased the free surface instead of eating it up.

As a side-effect of this problem, the JSPs won’t run, because they won’t be able to compile to the Java code (which needs to be stored somewhere in the file system). Servlets, already compiled, must have no problem executing.

Removing startup registries for non-admin in XP

Posted On June 2, 2008

Filed under Uncategorized
Tags: , , , ,

Comments Dropped leave a response

So you are NOT an administrator on the Windows XP box you work on, but you feel you could somehow quicken the log-on time or just remove those irritating startup items – the chatting softwares, your non-productive administrator has installed, for fun.

You can run regedit, and look out HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and delete unwanted values int the registry key.

Also check the Startup programs in the folder named Startup located under C:\Documents and Settings\{user_name}\Start Menu\Programs

You can also add your custom startup programs in the regedit. Choose a new string value, name it and give it a value data (the full path of the executable). For example, a value named firefox.exe of the type REG_SZ, and with the data C:\Documents and Settings\{user_name}\Desktop\FirefoxPortable\FirefoxPortable.exe

More information: http://support.microsoft.com/kb/179365
Suggested Utility: http://www.mlin.net/StartupCPL.shtml

Sample MQL (freebase)

Posted On May 29, 2008

Filed under Uncategorized
Tags: , ,

Comments Dropped leave a response

Here’s a JSON style Metaweb Query Language(MQL) to find out the album corresponding to a particular song, when song name and artist are known.

{
  "album" : [
    {
      "limit" : 10,
      "name" : null,
      "track" : [
        {
          "name" : "Every Breath You Take"
        }
      ]
    }
  ],
  "name" : "The Police",
  "type" : "/music/artist"
}

Myjavaserver back, JNLP

Posted On May 25, 2008

Filed under Uncategorized
Tags: ,

Comments Dropped leave a response

Myjavaserver site is up again, but it is the same old and weak. The signup is still disabled.

Invoking Java web start from command line:

javaws.exe <URL of jnlp>

The jnlp file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<jnlp
  spec="1.5+"
  codebase="http://download.java.net/general/openjfx/demos"
  href="javafxpad.jnlp" >
	<information>
		<title>JavaFX Demos:JavaFX Pad</title>
		<vendor>Sun Microsystems</vendor>
		<offline-allowed />
	</information>
	<security>
		<all-permissions/>
	</security>

	<resources>
		<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"
		   java-vm-args="-Xss1M -Xmx256M" >
		</j2se>
		<jar href="javafxrt.jar" main="true"/>
		<jar href="Filters.jar"/>
		<jar href="jfxFormat.jar"/>
		<jar href="swing-layout.jar"/>
		<jar href="javafxpad.jar"/>
	</resources>
	<application-desc main-class="net.java.javafx.FXShell">
		<argument>javafxpad.Main</argument>
	</application-desc>
</jnlp>

Writing mathematics (online LaTeX)

Posted On May 24, 2008

Filed under Uncategorized
Tags: , , ,

Comments Dropped leave a response

A very useful blog post at http://sixthform.info/steve/wordpress/?p=59 tells us about a variety of options available on the internet for using LateX online. The websites usually have a TeX renderer running on the server side which spits out the mathematical equations generated from the input [LaTeX]. I liked two of them.

1) Processing complete LaTeX

http://nirvana.informatik.uni-halle.de/~thuering/php/latex-online/latex.php

I am sharing what I liked about these sites. The first one uses sessions to maintain the output file. You can paste/write a LaTeX source in the textbox, and obtain the output as PS, PDF, DVI or PNG. A sample LaTeX code which you will provide as input will look like this

\documentclass[12pt]{article}
\title{\Sample}
\date{}
\begin{document}
  \maketitle
  \begin{eqn}
    Here's an equation: \sum_a^b f^2(x) = 0
  \end{eqn}
\end{document}

If you want the English edition for the first link, add the sprachauswahl parameter with value 2, i.e., http://nirvana.informatik.uni-halle.de/~thuering/php/latex-online/latex.php?sprachauswahl=2

2) Processing only the equations

http://www.codecogs.com/components/equationeditor/equationeditor.php

The second link is tailor made for embedding equations on a webpage, in the form of an image. It doesn’t process a whole LaTeX code, but it will compile the LaTeX code, as if between the \begin{eqn} and \end{eqn} tags. The image which is generated has the URL of the form

http://www.codecogs.com/eq.latex?\sum_{a}^{b} f^2(x)

The site provides a clean look and nice tools (a set of toolbar implemented in JavaScript) to assist the user.

Sidenote

As a sidenote, to render MathML (offline) using the JEuclid library, download jeuclid-core-3.0.4-SNAPSHOT.jar, commons-logging-1.1.jar, jeuclid-mathviewer-3.0.4-SNAPSHOT.jar from http://jeuclid.sf.net/jeuclid-webstart/ (append filename to this URL) and run the net.sourceforge.jeuclid.app.MathViewer class. For windows, you will invoke something like the following:

java.exe -classpath jeuclid-core-3.0.4-SNAPSHOT.jar;commons-logging-1.1.jar;
jeuclid-mathviewer-3.0.4-SNAPSHOT.jar;./  net.sourceforge.jeuclid.app.MathViewer

It has a simple GUI which takes the input as a file.

Myjavaserver down?

Posted On May 23, 2008

Filed under Uncategorized
Tags:

Comments Dropped 3 responses

Is the MJS service discontinued? The usual site ain’t there!

I hope its only for maintenance. Lately, incidents of misuse and excess of useless accounts had been observed. I think few things are going to get fixed. And I hope a warm and rocking MJS will return very soon.

Thank you, Rick! You have been so generous.

Kick start JavaFX

Posted On May 22, 2008

Filed under Uncategorized
Tags: , , ,

Comments Dropped leave a response

So, you want to get started with JavaFX. Follow these steps:

  • Download the following things
    • JRE6 or higher (for instance, from http://download.java.net/jdk7/binaries/)
    • JavaFX library (http://download.java.net/general/openjfx/demos/javafxrt.jar)
    • A demo (http://download.java.net/general/openjfx/demos/javafxpad.jar)
    • Supporing libraries Filters.jar;jfxFormat.jar;swing-layout.jar (http://download.java.net/general/openjfx/demos/Filters.jar) (http://download.java.net/general/openjfx/demos/jfxFormat.jar) (http://download.java.net/general/openjfx/demos/swing-layout.jar)
  • Now, after the JRE is all setup, execute the following command
  • java.exe -classpath
     javafxrt.jar;javafxpad.jar;Filters.jar;jfxFormat.jar;swing-layout.jar;./
     net.java.javafx.FXShell javafxpad.Main
  • A demo greets you with the ability of updating the result as you play with the code.

For the time being, you can learn the scripting from the article at Sun’s website http://java.sun.com/developer/technicalArticles/scripting/javafxpart1/

Myjavaserver account available

Posted On May 22, 2008

Filed under Uncategorized
Tags: ,

Comments Dropped one response

Myjavaserver (MJS) is a very nice site for Java developers. You get 5MB to host your webpage for free, along with the JSP, servlet and database capabilities. Its ideal for testing small projects, or for learners. These days the sign up process has been disabled. So, any user desirous of having an account at MJS can contact me, because I haven’t been leveraging the facility.

By the way, there are some problems at MJS

  • The deployment is a bit complex and confusing because of its weird scheme, and you won’t be able to use your own jar files without making some changes with the packaging.
  • Recently, it has been observed that the online compilation facility is not working
  • SMTP service, which was earlier available, is no longer supported

And, as for the benefits

  • No add placement (unfiltered HTTP response)
  • Lots of pre-installed third party libraries (Hibernate, Struts, Junit, Xerces, log4j, iText and a lot more)
  • Forum support

Please leave a comment or send me a mail (21.or.23@gmail.com). In case you are an MJS guy, and find this post disturbing or objectionable; please write to me immediately.

I will take this opportunity to thanks the guys at MJS for providing the service for free.

http://www.myjavaserver.com

The account has been given out. Its no longer available.

Strange

Posted On May 19, 2008

Filed under Uncategorized
Tags:

Comments Dropped leave a response

Some people will do just anything to get their site popular. The guy in consideration is throwing money and PS3 for site review etc.

http://www.blogohblog.com

No bad intentions though. Everybody has the right to gain fame and money.

Next Page »