Since I could not find any clear direction on where the place the all-important "ESAPI.properties" file, for the Enterprise Security Application Program Interface Java library, I am going to post an image here in the hopes of making it easier for folks.
It goes in the "src" folder (and NOT inside any package in the src folder)
ESAPI, security, Java, properties, location, directory, file, filepath, path: see below:
Quote
"For like a shaft, clear and cold, the thought pierced him that in the end the Shadow was only a small and passing thing: there was light and high beauty for ever beyond its reach." -- J.R.R. Tolkien
Friday, May 23, 2014
Saturday, May 17, 2014
Environmentalists Rejoice
Here is a company that has an idea that if it takes off could revolutionize the green energy movement. This company is green and economically feasible.
Their idea is to use manufactured panels integrated with solar cells to make new roads, highways, and city streets. The price is still a bit more than concrete, I believe, but this company has incredible potential. This would turn surface area of the Earth that is presently unused for energy production into usable energy production, among other benefits.
If you believe in practical green energy that does not stifle economic growth, this is the project for you. This is a project that I would invest in if I was not already pouring time and money into my own startup.
Editors note: I miscommunicated some here. The point is to spread the good idea, not to press you to invest yourself! If you feel so inclined, invest, but do not feel obligated to do anything more than share this idea with more people.
http://www.fastcoexist.com/3029874/fund-this/these-solar-roads-could-power-the-entire-country
https://www.indiegogo.com/projects/solar-roadways#home
Their idea is to use manufactured panels integrated with solar cells to make new roads, highways, and city streets. The price is still a bit more than concrete, I believe, but this company has incredible potential. This would turn surface area of the Earth that is presently unused for energy production into usable energy production, among other benefits.
If you believe in practical green energy that does not stifle economic growth, this is the project for you. This is a project that I would invest in if I was not already pouring time and money into my own startup.
Editors note: I miscommunicated some here. The point is to spread the good idea, not to press you to invest yourself! If you feel so inclined, invest, but do not feel obligated to do anything more than share this idea with more people.
http://www.fastcoexist.com/3029874/fund-this/these-solar-roads-could-power-the-entire-country
https://www.indiegogo.com/projects/solar-roadways#home
Labels:
Economics,
Philosophy,
Politics,
Science/Technology
Saturday, April 12, 2014
Largely Unreported Snowden Interview
As a Libertarian, I feel that it is necessary to forward this information in a public forum, as it is imperative that all sides be heard in the matter of Edward Snowden and the NSA.
Not that I have changed my opinion of Mr. Snowden, for he did violate his integrity and word regardless of his intention, but I do believe that good will come of this, despite the immediate damage that his leaks did to the NSA's capabilities and reputation.
I have often asked myself over the past few months, "What would I do in Edward Snowden's shoes?" And I know that I would not put my intellectual effort toward such an ignoble goal, and as such I would resign quietly without violating whatever agreements would bind me. Sadly, that would not result in the profound change that Mr. Snowden sought, but my integrity is worth more to me than public good.
Not that I have changed my opinion of Mr. Snowden, for he did violate his integrity and word regardless of his intention, but I do believe that good will come of this, despite the immediate damage that his leaks did to the NSA's capabilities and reputation.
I have often asked myself over the past few months, "What would I do in Edward Snowden's shoes?" And I know that I would not put my intellectual effort toward such an ignoble goal, and as such I would resign quietly without violating whatever agreements would bind me. Sadly, that would not result in the profound change that Mr. Snowden sought, but my integrity is worth more to me than public good.
Sunday, April 6, 2014
John Mauldin: When Income Inequality Isn't
Here is another incredibly impressive article by John Mauldin. This man has more access to data than almost anyone I know of.
Saturday, April 5, 2014
Afghan Elections
I found a news article on Fox News that contains some very encouraging news. There is one Afghani woman in particular that this article quotes that I want to honor in particular.
This is the kind of attitude that contains the raw and potent power to change a nation. Sadly, I don't know any Afghani people to encourage with this, but this woman is a forebearer of better times for Afghanistan.
"I'm not afraid of Taliban threats, we will die one day anyway. I want my vote to be a slap in the face of the Taliban," Laila Neyazi of Kabul told AFP.
Monday, March 31, 2014
Charles Murray's Advice for a Happy Life
I found this charming article in a Wall Street Journal essay section. I don't normally post fluffy stuff on life, but this has it's serious shades also. It is an altogether well-written article with some good advice that I need to take to heart.
Tuesday, March 18, 2014
Income Inequality
Another article by John Mauldin citing a large amount of research data that covers a broad spectrum of economics and is not geared towards any one policy paradigm.
I edited out the more personal sections of his letter. If you want all of the URLs in this article, you will have to run through John's original paper here.
I edited out the more personal sections of his letter. If you want all of the URLs in this article, you will have to run through John's original paper here.
Sunday, February 23, 2014
Cast Java Map to ConcurrentMap
I couldn't find a quick and easy example of this on Google, so here you go:
Using Google Guava:
Map<String, String> map;
ConcurrentMap<String, String> ccMap = new MapMaker().weakKeys().weakValues().makeMap();
ccMap.putAll(map);
Using Google Guava:
Map<String, String> map;
ConcurrentMap<String, String> ccMap = new MapMaker().weakKeys().weakValues().makeMap();
ccMap.putAll(map);
Saturday, February 15, 2014
Simple & Stupid Logger for Java
Since I cannot find a logger easy enough for me to use, I made one.
The jar file is here: linky
This logger is thread safe.
Example usage in a servlet:
package com.logtest;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import log4andrew.Logger;
import log4andrew.LogLevel;
/**
* Servlet implementation class Test
*/
@WebServlet("/Test")
public class Test extends HttpServlet {
private static final long serialVersionUID = 1L;
private static String filePath = "";
private static String fileName = "";
Logger fLogger = null;
final static String FS = File.seperator;
/**
* @see HttpServlet#HttpServlet()
*/
public Test() {
super();
}
@Override
public void init(ServletConfig config){
ServletContext scxt = config.getServletContext();
filePath = scxt.getRealPath("WEB-INF") + FS + "logs" + FS;
fileName = "servletTest";
fLogger = new Logger(filePath, fileName, LogLevel.INFO);
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("file location: " + filePath + fileName);
fLogger.critical("some message");
out.println("debug message logged");
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
}
The jar file is here: linky
This logger is thread safe.
Example usage in a servlet:
package com.logtest;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import log4andrew.Logger;
import log4andrew.LogLevel;
/**
* Servlet implementation class Test
*/
@WebServlet("/Test")
public class Test extends HttpServlet {
private static final long serialVersionUID = 1L;
private static String filePath = "";
private static String fileName = "";
Logger fLogger = null;
final static String FS = File.seperator;
/**
* @see HttpServlet#HttpServlet()
*/
public Test() {
super();
}
@Override
public void init(ServletConfig config){
ServletContext scxt = config.getServletContext();
filePath = scxt.getRealPath("WEB-INF") + FS + "logs" + FS;
fileName = "servletTest";
fLogger = new Logger(filePath, fileName, LogLevel.INFO);
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("file location: " + filePath + fileName);
fLogger.critical("some message");
out.println("debug message logged");
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}
}
Saturday, January 4, 2014
The Most Damaging President Ever
I found an article on the site RealClearPolitics.com, which describes in somewhat gory detail the damage that President Barack Obama has done to our nation. Sadly, the damage is not constrained to merely domestic policy.
In his social justice crusade, he has managed to put more people on government assistance than any other time in the history of our nation, destroying human, intellectual, and operational capital that our nation requires to remain competitive on the global stage. In his over-zealousness for remaking America in his image, he has dragged the credibility of his office and our nation through the mud with every nation of importance in the world. With blind fervor, Obama has overturned principles of integrity in leadership that have stood, more or less, since the dawn of human civilization.
I am doubtful whether America will be able to recover from the damage that he has done, particularly since a sizable portion of our nation still rallies around the call to crusade: "In Obama we trust."
In his social justice crusade, he has managed to put more people on government assistance than any other time in the history of our nation, destroying human, intellectual, and operational capital that our nation requires to remain competitive on the global stage. In his over-zealousness for remaking America in his image, he has dragged the credibility of his office and our nation through the mud with every nation of importance in the world. With blind fervor, Obama has overturned principles of integrity in leadership that have stood, more or less, since the dawn of human civilization.
I am doubtful whether America will be able to recover from the damage that he has done, particularly since a sizable portion of our nation still rallies around the call to crusade: "In Obama we trust."
Sunday, December 15, 2013
How to ask questions on the Internet
I found an excellent site that serves as a remind to all who operate on the Internet.
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html
It is a good reminder for myself, as well as anyone else who seeks to interact intelligently.
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html
It is a good reminder for myself, as well as anyone else who seeks to interact intelligently.
Tuesday, December 10, 2013
Stripped-down Version of Glass-Steagall
Today, a stripped-down version of the Glass-Steagall Act was put back in place today, 5 years after the financial world nearly brought our nation to the brink of collapse. While, not an ideal solution, having a holey parachute is better than none at all. Just hope to God that the regulating agencies are able to maintain intelligent and hawkish regulators indefinitely, otherwise the "Volker Rule" is going to hell in a handbasket.
Subscribe to:
Posts (Atom)