This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File pasientBrosjyre = brochureIter.next(); | |
Element link = links.addElement(links.getQName("a")); | |
link.addText(processBrochureName(pasientBrosjyre.getName())); | |
String pasientBrosjyreFolder = bu.getString("no.ovitas.fk.pasientbrosjyre"); | |
StringBuilder href = new StringBuilder("/felleskatalogen/show.do?filename="); | |
href.append(pasientBrosjyreFolder.substring(pasientBrosjyreFolder.indexOf("/"))); | |
href.append("/"); | |
href.append(pasientBrosjyre.getName()); | |
link.addAttribute("href", href.toString()); | |
link.addAttribute("class", "pkvlink"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --head http://www.vg.no/askrfjlrjkqw | |
HTTP/1.1 404 Not Found | |
X-VG-WebServer: wildbill | |
Vary: Accept-Encoding | |
Content-Type: text/html; charset=iso-8859-1 | |
X-VG-WebCache: fritz | |
X-Rick-Would-Never: Never Gonna Give You Up | |
X-VG-Korken: http://www.youtube.com/watch?v=Fcj8CnD5188 | |
Content-Length: 59573 | |
Date: Fri, 06 Aug 2010 10:51:43 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A cabbie picks up a Nun. She gets into the cab, and notices that the | |
VERY handsome cab driver won't stop staring at her. | |
She asks him why he is staring. He replies: 'I have a question to | |
ask, but I don't want to offend you.' | |
She answers, ' My son, you cannot offend me. When you're as old as I | |
am and have been a nun as long as I have, you get a chance to see and | |
hear just about everything. I'm sure that there's nothing you could | |
say or ask that I would find offensive.' | |
'Well, I've always had a fantasy to have a nun kiss me.' | |
She responds, 'Well, let's see what we can do about that: #1, you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String diff(String file, String left, String right) | |
throws IOException, SubversionException { | |
if (log.isDebugEnabled()) { | |
log.debug("diff " + file + " " + left + " " + right); | |
} | |
StringBuffer tag1 = new StringBuffer().append(getValue("svn.document.root")); | |
if (MAINBOOK.equals(type)) { | |
tag1.append(getValue("svn.tags.path")); | |
} else if (PASIENT.equals(type)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Map getTagHeadDifferences() | |
throws IOException, SubversionException { | |
if (log.isDebugEnabled()) { | |
log.debug("Get a list differences between latest tag and head"); | |
} | |
String tag1 = getLatestLiveTag(); | |
StringBuffer taga = new StringBuffer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Map getTagHeadDifferences() | |
throws IOException, ScmException { | |
if (log.isDebugEnabled()) { | |
log.debug("Get a list differences between latest tag and head"); | |
} | |
String tag1 = getLatestLiveTag(); | |
StringBuffer taga = new StringBuffer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This example shows how to setup an environment running Rails 3 under 1.9.2 with a 'rails3' gem set. | |
∴ rvm update --head | |
# ((Open a new shell)) or do 'rvm reload' | |
# If you do not already have the ruby interpreter installed, install it: | |
∴ rvm install 1.9.2 | |
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist. | |
∴ rvm --create use 1.9.2@rails3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long timeTakenTotal = 0; | |
long minimumTimeTaken = 1000; | |
long iterationTime = 0; | |
int iterations = 5000; | |
List<DruidResult> results = null; | |
for (int i = 0; i < iterations; i++) { | |
stopWatch.reset(); | |
stopWatch.start(); | |
results = druidSearchService.search(search); | |
stopWatch.stop(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans:beans xmlns="http://www.springframework.org/schema/security" | |
xmlns:beans="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | |
<http auto-config="true" realm="Felleskatalogen Nedlastingsområde"> | |
<!-- <intercept-url pattern="/resources/css/**" filters="none"/> | |
<intercept-url pattern="/resources/images/**" filters="none"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package no.ovitas.fk.controller; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.ModelMap; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
@Controller | |
public class WebCDController extends DownloadableWebController { |
OlderNewer