Monday, January 20, 2014

"Your security settings have blocked an untrusted application from running" how to workaround

  Got this error message in Internet Explorer, preventing the pop up from opening. I wanted to add an security exception since I knew what I was opening was a trusted internal site. So it should be done only when you are sure that the site is secure and not done when you are not sure, use your discretion.

  Press on Windows Start button, type "Configure Java" hit enter. "Java Control Panel" window will open. Click on the "Security" tab. Click on the "Edit Site List" button. Add the URL that you wish to bypass the security check for. Click Add and Ok.

   This would bypass the security check and refreshing the website in IE opened the pop up.


Friday, January 10, 2014

Add xml so that it renders "as you type" to your blog

If you paste the XML code as such it gets interpreted by your browser and doesn;t show as you type it and eventually the way you would want your readers to be reading it.

Came across this tool called http://www.freeformatter.com/xml-escape.html Here you need to paste your XML and you hit escape button. The resulting text is the "Escaped" version of your XML. You can paste this "Escaped" version of your XML as such to your blog and it will finally render in the browser as its original text/XML version.

Building Weka source code GPG error and resolution

Tried to check out svn repository of Weka using

"svn co https://svn.cms.waikato.ac.nz/svn/weka/tags/stable-3-6-10"


Loaded it as Maven project in Idea Intellij 13.

From Pom targets hit compile - it succeeds.
Pom target -> build succeeds.
Pom target install -> Build hangs at following message :

[INFO] Building jar: C:\Users\user\Desktop\Code\Weka\stable-3-6-10\weka\dist\weka-stable-3.6.10-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-gpg-plugin:1.1:sign (sign-artifacts) @ weka-stable ---
GPG Passphrase:   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...



It will keep on printing ***s on the console and never stop !!

Found the addition of following in your pom.xml to be resolving the issue.

------------------------
<configuration>
       <skip>true</skip>
</configuration>
------------------------

which may finally look like this

-----------------------
<plugin>
  <groupid>org.apache.maven.plugins</groupid>
  <artifactid>maven-gpg-plugin</artifactid>
  <configuration>
    <skip>true</skip>
  </configuration>
  <version>1.1</version>
  <executions>
    <execution>
      <id>sign-artifacts</id>
      <phase>verify</phase>
      <goals>
        <goal>sign</goal>
      </goals>
    </execution>
  </executions>
</plugin>
-----------------------


The general idea behind this plugin is to protect what you might create and share, with a passphrase that only you know. More information about what it does and how to use it is here http://maven.apache.org/plugins/maven-gpg-plugin/usage.html

However as in my case it became a bottleneck in the build process of a freshly downloaded source, not sure what the bug was there, but adding the skip tag bypassed it and the build succeeded.