Hi folks:
I see a document said: CurrentUICulture must be set at the startup of a application.
For a web page, where do I dynamically/statically set this property appropriately?
Thanks.
I have a .NET app (webforms - .NET 3.5) that is running on a 64-bit server as 32-bit (I checked the IntPtr.Size result). The compilation is set to AnyCPU so I would expect that on a 64-bit machine, the app would be run at 64-bit. There are many Third-party programs incorporated into the app, could they be causing a problem? How do I figure out why 64-bit compilation is not being done?
hi
I am going through my first lessons with spring 3.I created a dynamic web app in eclipse with the following structure.
spring3mvc \src\my.spring.HelloWorldController.java
\WebContent
|
|-----WEB-INF\jsp\hello.jsp
|-----index.jsp
|-----web.xml
|-----WEB-INF\spring-servlet.xml
|-----WEB-INF\lib\...*.jar files
I created the spring-servlet.xml as below
<context:component-scan base-package="my.spring" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
and coded the controller
package my.spring;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class HelloWorldController {
@RequestMapping("/hello")
public ModelAndView helloWorld() {
String message = "Hello World, Spring 3.0!";
return new ModelAndView("hello", "message", message);
}
}
index.jsp has a link to hello view
<html>
<body>
<a href="hello.html">Say Hello</a>
</body>
</html>
finally in hello.jsp I have put
<html>
<body>
${message}
</body>
</html>
My web.xml has
<display-name>Spring3MVC</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
When I run the app on Tomcat6 server( thru eclipse),I can see the index page at
http://localhost:8080/Spring3MVC/ .It displays the link to hello page.When I click on it(http://localhost:8080/Spring3MVC/hello.html),I get a 404 error.
message /Spring3MVC/hello.html
description The requested resource (/Spring3MVC/hello.html) is not available.
Any idea how I can solve this?
thanks
mark.
Is there a way in Visual Studio 2008 Professional edition to create a graphical representation of an application? What I am looking for is a flowchart or other design graph that shows each program in the app and how they relate to other programs and files in the app. I can create one using Visio, but wanted to know if there is something built into Visual Studio that can do this.
I'm currently working on a Java Application and it's my first Java App. So I created a file Splash.png and placed it into the source folder resourcesof the application.
I already managed it to show the Splash image on startup, with the JVM param -splash:resources/Splash.png, but my question is;
How can I show this splash screen again, but programmatically?
I need this functionality for the About menu item.
Is it possible to nest simple programs within a Google doc spreadsheet, similar to how you would w/Basic in Excel? Or alternatively a simple = syntax using regex, if there is a way to do that in google docs?
I want to take a list of multiple names(name1, name2, name3) in a single cell from across multiple identical sheets and transpose them to another sheet within the same spreadsheet, check for duplicates and ignore capitals, etc. Is there a way to do this?
After literally days of tweaking, I think I got vim's autocomplete (omnicomplete + Acp plugin) to work acceptably. But the annoying thing is that it is still enabled for plain text files so I would have to type :DisableAcp for README or plain text files. How do I add logic to my vimrc so that if it detects an empty filetype it disables the Acp on startup?
here is what I wrote:
if &filetype == ""
let g:acp_enableStartup = 0
endif
but this disables Acp on start up for all files.
I have found and installed the visual basic mode for emacs. It seems to be loading on emacs startup and the VB mode loads when I open a *.bas file. The code is not highlighted at all, however.
I'm using Emacs23, tried it with 21 and saw no difference.
Background for the curious: I am rewriting a set of codes from VB to Python. The syntax highlighting will make it much easier for me to see what's going on.
Hello,
I am building an application based on a single table with a column with text. Occassionally, an adjacent column will have an image. Is it better to store this image as a BLOB in SQLITE or should I store them on the file system and reference them from my programs.
Thanks!
I have a index.xhtml page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view>
<ui:insert name="metadata" />
<f:event type="preRenderView" listener="#{item.show}" />
<h:body></h:body>
</f:view>
</html>
And in bean class with scope session this method
public void show() throws IOException, DAOException {
ExternalContext externalContext = FacesContext.getCurrentInstance()
.getExternalContext();
//smth
String rootPath = externalContext.getRealPath("/");
String realPath = rootPath + "pages\\template\\body\\list.xhtml";
externalContext.redirect(realPath);
}
i think that I should redirect to next page but I have "browser can't show page"
and list.xhtml (if I do this page as welcome-page I haven't error, it means that error connected with redirect)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
<ui:composition template="/pages/layouts/mainLayout.xhtml">
<ui:define name="content">
<h:form></h:form></ui:define></ui:composition>
</h:body>
</html>
in consol i didn't have any error.
in web.xml
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
What can be the reason this problem?
Hello everyone. Does anyone know how to access webcam native controls such as the zoom, brightness level from the command line interface?
How does programs like messenger and skype list those options and are able to control those settings?
I am trying to do this to an AIR 2 app and know that we can access NativeProcesses etc now.
Anyone have any ideas?
Thanks for the help.
I have started using c++ extensively in school and now my programs are getting to the point where have more than 1 file (i.e. header, driver, implementation file). I don't know enough about software development to understand or get a grasp of how to setup the build process by looking at apple's guides. Could someone walk me through how to compile a simple c++ project with a header and two c++ files in xcode? Do I first need to make a makefile??
How is the NVIDIA PhysX engine implemented in the NVIDIA GPUs: It's a co-processor or the physical algorithms are implemented as fragment programs to be executed in the GPU pipeline ?
I have quite a number of user controls that I need to embed in Umbraco macros. Each user control has quite a bit of in page javascript that needs loaded into the page.
I have been building up the javascript with StringBuilder.Appendline then registering a startup script with code behind but this stinks and I feel there has to be a better way of going about this.
Has anyone any ideas please?
Thanks,
B
Hi
Is there a permission to allow one app to read the (private) data/data//files/... files of another application? If not, how do backup programs like MyBackup work?
C
Hi.
I wanted to know is C# array has a constant access speed?
I need to store 1000 items in static array, that will be initialized during server startup. This array will be used readonly,
so there will be no changes to array.
Should I use a simple C# array (new MyClass[]) or Dictionary instead.
I am really new to C# and trying to understand how C# arrays access works.
Can they be compared to c++ arrays by speed?
I read this article by Miguel de Icaza on attaching an assembly into a live mono process.
How is this any different to attaching a DLL to a running process? I do this already, but once the DLL is attached, it can't be unloaded without using an AppDomain (which I am trying to avoid).
Miguel talks about "patch[ing] running programs", but I don't understand how. I cant find any other documentation or examples on this.
I have an install project that launches a custom action at commit which starts the application that was just installed. During the startup of this application I have a method that checks the current user's name to perform some authentication. When launched from this custom action I am getting 'NTAUTHORITY\SYSTEM' instead of 'DOMAIN\USER'
how can I force tomcat to use my own implementation of Authenticator, and not the existing one like [FORM, BASIC, DIGEST,, etc]. I know if I added my authentication class name in org.apache.catalina.startup.Authenticators.properties it would work,,, any help please... I need an alternative for this...
Wondering what is the -j option mean in the zip command. I found the explanation as following:
-j
Store just the name of a saved file (junk the path), and do not store directory names. By default, zip will store the full path (relative to the current path).
But not quite sure what it is exact mean? Can anyone explain it using the following command as an example?
C:\programs\zip -j myzipfile file1 file2 file3
Thank you.
What small and cool applications that can be helpful for programmer do you know ? I think about programs that not very famous.
I know three:
http://advsys.net/ken/download.htm EvalDraw - for protoyping games
http://www.drpetter.se/project_sfxr.html sfxr - for makeing sound
http://www.kloonigames.com/blog/general/timelog timelog - for mangament time of project
I'm using a LifecycleListener in tomcat to initialize some objects required by contexts in my web server. Within LifecycleListener I would like to have access to GlobalNamingResources Environment variables to keep the configuration for the server inside the server.xml file. When trying various approaches I get the following error:
javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
I'm assuming that the jndi is not initialized by this stage of the server startup process. Any ideas on how to tackle this?
solve puzzles ? Solve programming problems ? what else ?
Someone told me that I need begin with solving typical programs in C like those of factorial, recursion etc to improve logical thinking skills. What else do I do ? How do i go about it ?
I am a beginner to programming.
So for example we have real life photo. how to get (relativly to image dimentions for example) the distance from wall to girls, from girls to trees if all we know ts this picture?
Any papers with algorithms or Open Source programs doing this would be appreciated.
So How to detect how far the object on photo is from another objects on that photo?