Hello, is it possible to restart Tomcat6 by executing a JSP?
This because I would like to deploy the changes of an application by doing it remotely using the webserver.
The deploy script is written in bash and it checkouts the latest version from the svn, then package it as a war, then copy it in /webapps/ while adding some libs. If I execute it…
I have a UIPageViewController with several pages. Each page is the same view controller, but the page number is kept track of and the correct page of a PDF is shown. The problem is that each PDF page needs to be loaded and drawn before the curl effect works (you slide your finger across the screen and nothing happens until loaded). Any ideas on…
In middle of application when calling following line:
var component = _Kernel.Get<IComponent>();
I'm getting TargetInvocationException. IComponent is a Form.
at
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, Binder binder, Object[]
parameters, CultureInfo culture) at
…
I've been thrust into a situation where I need to know something about Machine Learning. Is there a language or perhaps a reasonable tutorial that breaks this subject matter in gently? I'm not a math guy, so it's got to start from a pretty basic level.
Hi, I just want to ask, I know that standart system calls in Linux are done by int instruction pointing into Interrupt Vector Table. I assume this is similiar on Windows. But, how do you call some higher-level specific system routines? Such as how do you tell Windows to create a window? I know this is handled by the…
Hello, I started using Java years ago.. and I've always almost found everything I needed inside the standard API provided with JDK SE, apart from specific things that doesn't fit well inside a generic API..
so I was wondering: which are the most important things that the Java API is missing?
With important I mean…
I'm running netbeans 6.8 on windows 7 pro (x64) with the bitnami stack and I'm using ruby 1.8.7-p72. Note: I can't change the version of ruby I am using because I am working with a team, this is a college project and we have only 3 weeks left before we have to hand it in. Changing the version of ruby at this time…
Hello,
while profiling a java application that calculates hierarchical clustering of thousands of elements I realized that ArrayList.get occupies like half of the CPU needed in the clusterization part of the execution.
The algorithm searches the two more similar elements (so it is O(n*(n+1)/2) ), here's the…
Is there any python library to get a list of countries for a specific language code where it is an official or commonly used language?
For example, language code of "fr" is associated with 29 countries where French is an official language plus 8 countries where it's commonly used.
Would anyone be able to tell me how I can go about using James server as my server with Java in Eclipse?
I'm trying to test the two classes posted below but i get the following error:
Exception in thread "main" javax.mail.AuthenticationFailedException: Authentication failed.
public class JamesConfigTest
{…
I need a php script to read a .txt file.
The content of the text file are like this:
data.txt
145|Joe Blogs|17/03/1954
986|Jim Smith|12/01/1976
234|Paul Jones|19/07/1923
098|James Smith|12/09/1998
234|Carl Jones|01/01/1925
These would then get stored into a database like this
DataID |Name |DOB
234…
I am attemping to use NetUseAdd to add a share that is needed by an application. My code looks like this.
[DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
internal static extern uint NetUseAdd(
string UncServerName,
uint Level,
IntPtr Buf,
out uint ParmError);…
I've tried a lot of different code examples including just brute force try this try that but, stumped.
The popover left arrow seems to display just fine if the first row is displayed at the very top of the table view but, when the table scrolls down the popover left arrow doesn't align correctly with the…
Using ScatterView control shipped in Windows Touch WPF. I want to prevent inertia from happening on a scatterview item. But I still want to allow user to move, scale and rotate the item.
So I try this...
ScatterviewItem svi = new ScatterviewItem();
svi.ManipulationDelta += OnManipulationDelta;
…
I currently have a UIControl, which has a number of subviews (image, label).
Unfortunately when I use addTarget etc. It doesn't detect touches on the subviews.
[myCustomView addTarget:self action:@selector(touchedView:)
forControlEvents:UIControlEventTouchUpInside];
Is it possible for…
I've been working on a program to automate my backup checks with LogMeIn backup (a windows forms based program). I now need a way to store user settings, to save information easily. I've never worked with the Application/User settings that is somewhat "built-in" - and decided to try it, but ran into…
To be more specific:
My delicious account is a Yahoo ID so access via OAuth is required.
It's for my use only to add/remove bookmarks. I have the password.
It's a command line python program, not web-based.
My question is:
Is it possible to access my delicious account without being redirected…
I'm using a WCF service with the NetNamedPipesBinding to communicate between two AppDomains in my process.
How do I secure the service so that it is not accessible to other users on the same machine?
I have already taken the precaution of using a GUID in the Endpoint Address, so there's a little…
I put a login box alone with a keyword search box in 404.html in a Django project so in case a 404 error is raised, visitors get more options to jump to other parts.
But the CSRF middleware doesn't work in 404 error page with no csrf token rendered. I tried move…
when building a desktop app in wpf can you read documentation of problems and safely subsititute 'app.config' when people's answer's refer to 'web.config'?
if so are there any glaring GOTCHAS you have to look out for?
tnx
I am using tomcat 6 on windows. Here is the code I am testing.
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.StringReader;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import…
I have a "project" directory which has an .acignore file containing:
out/*
The "project" directory contains the checked-in "out" directory. But i want to ignore anything in the "out" directory tree.
The above doesn't seem to…
I'm trying to create the pom for an existing grails project via:
mvn grails:create-pom -Dourcompany.com
Now, we have our maven repository available in a local nexus repo:
http://ourcompany.com/nexus
But when i run the…
Data Layer
I have an Order class as an entity. This Order entity is my model object.
Order can be different types, let it be
A
B
C
D
Also Order class may have common properties like Name, Time of creation, etc.
…