I'm trying to do url rewriting with Lighttpd. I have what I need partially working. Right now I have this:
http://domain.com/name/a/123 which rewrites to http://domain.com/name/a.php?pid=123
I do this with this rewrite-once rule: "^/name/a/([^/]+)"= "/name/a.php?pid=$1"
That php page has external resources that are not getting rewritten such as…
I'm working on a server application in Java. I've successfully got past the handshake portion of the communication process, but how do I go about decrypting my input stream? Here is how I set up my server:
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.HashMap;
…
Anybody out there notice anything wrong with this JSON? It validates at JSONLint.com, but neither Chrome nor Firefox's native JSON parse functions will properly parse it.
Any ideas?
{
"result": "{\"players\":[{\"name\":\"User 522\",\"turn\":true,\"score\":0},{\"name\":\"User…
I'm running in to an error when I try to run my server application from Eclipse. The error is java.net.BindException: Permission denied. I think this is because I am using port 443 to set up an SSL connection. I can get around this problem if I run my code on the command line using javac…
I often use java.lang.Integer as primary key. Here you can see some piece of code
@Entity
private class Person {
private Integer id;
@Id
@Column(precision=8, nullable=false)
public Integer getId() {
}
}
I need to set up its precision attribute value…
Here goes a command object which needs to be populated from a Spring form
public class Person {
private String name;
private Integer age;
/**
* on-demand initialized
*/
private Address address;
// getter's and setter's
}
And Address
public…
I have a datatable that contains the rows of a database table. This table has a primary key formed by 2 columns.
The components are assigned this way: datatable - bindingsource - datagridview. What I want is to search a specific row (based on the primary key) to select it on the…
I'm trying to get HTML5's audio tag to work in Chrome. The following code works flawlessly in Firefox, any ideas why it isn't working in Webkit?
<html>
<head>
<script type="text/javascript">
function init(){
audio = new Audio("chat.ogg");
…
I working on adding file uploading to my web application. I'm using an iframe to post my upload. When my php script processes the upload it writes some JavaScript to the iframe. This JavaScript is attempting to attach a function to the parent, this works, but when this…
I am currently working on a project where I have to make an agent to interact with a server.
Each 50ms, the server will receive the last thing I outputted to System.out and send me a new set of lines as a 'state' through the System.in printstream to analyze and send…
Suppose a Table per subclass inheritance relationship which can be described bellow (From wikibooks.org - see here)
Notice Parent class is not abstract
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Project {
@Id
private long id;
…
Recently there has been several reports on TFS databases growing too fast and growing too big. Notable this has been observed when one has started to use more features of the Testing system. Also, the TFS 2010 handles test results differently from TFS…
I am running into an odd keyboard problem: some key combinations end up reversed (e.g. "pl" ends up being emitted as "lp") when I'm typing quickly. The problematic ones are the key combos I hit with two adjacent fingers on my right hand-- in other words,…
Hi, i have a question about the google chrome browser.
When i navigate to my work's Outlook Web Access site to read my emails, the chrome browser is prompting me for a username and password to the server saying "Authentication Required - the server…
Here's the laptop
It wouldn't be hardcore gaming, mostly things like the new Deus Ex game, Mirror's Edge, Portal 2, etc...
I need to replace my current, broken, laptop and I thought this would be a good opportunity to get to play some of these…
I have a Ubuntu 12.04 server which sometimes dies completely - no SSH, no ping, nothing until it is physically rebooted.
After the reboot, I see in syslog that the oom-killer killed, well, pretty much everything.
There's a lot of detailed…
I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for
display_errors On
display_startup_errors On
error_log /var/log/php.log
error_reporting E_ALL…
I am trying to run net time on a Windows 7 box with an account that is part of the Administrators group.
When I run the command net time from an elevated command prompt I get the following error:
System error 5 has occurred.
…
What exactly is the CPU Average field in VMM 2012 showing me?
I'm running Server 2008 R2 with VMM 2012. My server has 2x16 core CPUs installed.
An example virtual machine has 4 virtual processors, and shows 20% CPU usage. Is…
Getting the hardware in the mail any day.
Hardware related to my question:
x10 15.5k RPM SAS Segate Cheetah's
x2 Adaptec 5405 PCIe Raid cards
Motherboard has integrated SAS raid.
Was thinking I would build 2 RAID 10 arrays…
Hi, i am trying to install the workstation components of sql server 2008 on my windows xp sp2 machine and during the setup, the only options i have to install are the database engine and sdk. all of the other options including…