A cross-site request forgery (CSRF)
occurs when a hacker takes advantage of the fact that users don't
always log out of the websites and web applications they visit. The
hacker creates a URL or a form on a website they control that passes
valid data to a...
Here's what I'm trying to do:
Given this mysql table: CREATE TABLE `tag` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`name` varchar(100) NOT NULL UNIQUE,
INSERT INTO tag (name,category) VALUES...
To perform some checks and statistical analysis on my JSPs I needed a
DOM-like, hierarchical model of elements contained in them. But parsing
JSP pages isn’t trivial and is best left to a tool that excels in it –
the Jasper JSP compiler used by Tomcat,...
We wanted to try and generate a build label to use for the name of
the artifacts archive that gets generated each time we run the build but
wanted to default it to a hard coded value if the system property
representing the build label wasn’t...
The discussion on the lambda-dev mailing list has started to address
the issue of what the Java language syntax for lambdas / function
literals ought to look like. Let’s look at a slightly non-trivial
example and try to tease the issues out.
Anyone who has a project set with a bunch of jar projects and an
outer war one has probably had occasion to be working along and then
suddenly, trying to raise the log level doesn‘t work. The main way this
occurs is that logback is an implementation of...
Even Tapestry has limitations!!. One of the limitation is not being
able to get hold of the generated response for use, e.g. to send as an
email or convert to PDF/Image etc. There are two ways of doing
it(atleast Google search results say so). One is to...
Data types for dates and times are slightly different across
databases which often makes life difficult for us developers.
ColdFusion ORM makes this pretty simple:
For a date with time use ormtype="timestamp"Just a date use...
In the first part of our ”Car sale” application
related posts we created some standard index structure by properly
configuring schema.xml configuration file. It didn’t take long to hear
the first complains from the website users with this kind of...
Today’s entry is dedicated to one type of cache in the Solr – filter
cache. I will try to explain what it does, how to configure it and how
to use it in an efficient way.
What it is used for ?
Let’s start from the inside. FilterCache stores ...
We’re making use of MarkLogic and therefore xquery
on the project I’m currently working on and recently wanted to add our
xquery setup files onto the classpath so they could be used in a test.
We added them into ‘src/main/resources’ and set that as...
I just finished converting my FindBugs SBT plugin “findbugs4sbt“ to SBT 0.10.x.
FindBugs? What’s that? – Go have a look at its website, and then use it, always! One caveat though: It doesn’t support Scala source code. So use it with all your Java...