Is it safe for multiple computers to concurrently access an svn repository stored on a shared filesystem?
I'm building an application in which each Windows client machine has a local working set of files, and can periodically synchronize with the rest of the team. From a server standpoint, I'd like to rely on nothing except a Windows sh...
Hi,
I’m trying to quantify the difference in memory footprint of a small java app performing the same process multithreaded vs multiprocess.
All my tests are on Linux.
When running multithreaded, it is relatively easy to determine the overall footprint and additional overhead per thread. When running the single threaded process, the J...
We build a bunch of products that all have a similar structure, and in fact share installed subdirectories, documentation and various system configuration variables (environment variables, start menu items, ...)
We've been using InstallShield. It works, but it is incredibly painful to configure a product installer one mouse click at a ...
I'm not going to go into detail on the "media player" part except the fact that it will obviously use plug-ins, which will be a simple dynamic library that is loaded at runtime. Now, I could link those plug-ins dynamically to their dependencies, or I could link them statically. Both have their advantages and disadvantage - I'm not counti...
Hi,
my desktop application lets users add (~20MB) files, which should then be available for other users of the application. Currently I handle the uploads/downloads with my own code, but I am getting errors from file transfers that dropout, corrupted files, etc. I really don't want to deal with all this so I plan to use an existing file...
I want to use JCS (Java Cache System) to cache ldap queries which should be shared by multiple EJB's (class loaders) to avoid the duplicate searches. I have created a singleton wrapper to create only one instance of JCS cache but due to each EJB's having their own class loader, it creates multiple instance of JCS cache so ldap search re...
For example, let's say I have a function that will swap bytes in a 32 bit value for you:
uint32_t byte_swap(uint32_t in);
Well it seems silly to push that 32-bit value onto the stack and pop it off again, especially if we're going to be calling this function a lot, so let's pass it in through ECX:
#if __FASTCALL_SUPPORTED_ /* Whate...
AFAIK, memory in Java is based on heap from which the memory is allotted to objects dynamically and there is no concept of shared memory.
If there is no concept of shared memory, then the communication between Java programs should be time consuming. In C where inter-process communication is quicker via shared memory compared to other mo...
Are session variables in the global $_SESSION array shared across scripts? Lets say I place a value into $_SESSION['box'], can another simultaneously running script store another value with the same key? Will they conflict? Or will it manage the actual variable values based upon the session ID from the client?
...
Hi,
I have a class called MembershipHelper, which I am using in my ASP.NET project. It looks like this:
Public Class MembershipHelper
Public Shared Function IsMultiStoreUser() As Boolean
return Roles.IsUserInRole(....)
End Function
Public Shared Function IsAdmin() As Boolean
return Roles.IsUserInRole(....)
...
Hi All,
using shared memory apis in linux, If I have one write(by A process) and only one read( by B process) do I still need semaphore.?.
Is there a example to show, using sharing memory without semaphore will get into deadlock state in linux.
...
I have to implement a dll in C# which contains a list of tasks. The responsibility of this dll is to manage these tasks. Different processes will interact with this dll, each for its own task, identified by the task ID.
But since each process will have its own copy of the dll data, the challange is how to manage this list. This list has...
On Windows, several arguments are passed to the DllMain constructor:
BOOL WINAPI DllMain(
__in HINSTANCE hinstDLL,
__in DWORD fdwReason,
__in LPVOID lpvReserved
);
From hinstDLL I can get the fully qualified file name of the DLL itself using GetModuleFileName():
LPTSTR str = new TCHAR[256];
int libNameLength = GetM...
I have the httphandler on shared webhosting.
It works.
The httphandler webapp (virtual) dir of this httphandler does not have web.config
and the whole shared user's website has web.config with only one uncommented statement:
<compilation defaultLanguage="c#" debug="false"/>
Now, I change it to:
<system.web>
<urlMappings ena...
Hi,
I'm a bit confused about a strange behavior of my JPA's related objects.
I have three bundle :
The User bundle does contain some user-related objects, but mainly the User object.
The Energy bundle does contain some energy-related objects, and particularly a ConsumptionTerminal which contains a List of User.
The Index bundle doe...
Is it possible to make a shared library in which exist some function that are not implemented?
I'l like to make a shared library testDele.so and leave some of the functions in the testDele.so to be implimented by other people for example:
library provider make the files:
====== testDele.c ==============
#include <stdlib.h>
#include...
I use Tomcat 6.0.20 and JDK 1.6.0.13.
How can I load libraries from sub-folders of "%TOMCAT_HOME%/lib/" without taking the .jars out of sub-folders and putting them straight into "%TOMCAT_HOME%/lib/"?
The reason I want to do this, is because many apps are going to be sharing lots of libraries.
So, for the sakes of organization I want ...
is there any concept of shared variable in java and if it is what is it?
...
Any idea about loading the data from database to shared memory, the idea is to fasten the data retrival from frequently used tables?
...
How does the functional programming paradigm deal with shared resources that need to maintain state?
I have a JavaScipt program that allows access from multiple callers to a shared resource, a authenticated HTTP session in this case.
The resource has bunch of state information associated with it including things like credentials, cache...