shared

Why can't I see elements in a shared queue from my Perl thread?

I will listen on a port (simple server) when a request is passed parse the URL and start a thread. The thread will insert an element in a queue which is shared, and it is locked while inserting. I am not able to get element when I call peek on queue. use Thread qw(async); use Thread::Queue; my $DataQueue:shared = new Thread::Queue;...

android shared directory with read and write access

How do I create a shared directory with read/write permissions to all applications installed on my phone and that is not on the sdcard? I tried that : File f = new File("/tmp"); f.mkdir(); but it is not working. ...

PHP: upload files to network shared folder

Hi there: I have a problem uploading file to a network shared folder. I can connect to the folder by using windows authentication in IE. The script is as followed: $target_path = '\\\\server\\images\\'; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],...

Skip compile-time symbol resolution when building Linux shared libraries with dependencies

Is there a gcc flag to skip resolution of symbols by the compile-time linker when building a shared library (that depends on other shared libraries)? For some reason my toolchain is giving undefined reference errors when I try to build shared library C that depends on B.so and A.so, even though the dependencies are specified and exist. I...

How to validate open id in Shared hosting?

I have a site hosted on a shared hosting, I am building a forum and want users to register through OpenId. The problem is I am not able to connect to OpenId providers like Google and Yahoo, because my server doesnt connect to them! Is there a way to use client side OpenId validation using ajax (XmlHttp) or anything like that? ...

Cannot obtain shared variable value in separate threads

My program has a server thread and separate client threads that are individual connections to other servers. So how my program works is the client threads make individual requests, and when each of them so, I increment the shared variable iTimeStamp. However, I need to access this shared variable value through my Server thread, but when...

How do I add custom icons to custom Ribbon tab in Word?

I am trying to add custom icons to a Shared Add-in for Microsoft Word. The Shared Add-in uses XML to add a tab to Word's Ribbon. I am following the guidance of this document on MSDN: I have followed the steps described in the document for adding the image as a Resource. When I run the installer, and open Word the icons do not show up. ...

Does program need additional symbols from .so shared library except those declared in header file?

In C programming, I thought that a object file can be successfully linked with a .so file as long as the .so file offers all symbols which have been declared in the header file. Suppose I have foo.c, bar.h and two libraries libbar.so.1 and libbar.so.2. The implementation of libbar.so.1 and libbar.so.2 is totally different, but I think ...

Shared faces-config.xml across web project

I am trying to come up with a common UI framework for my organization. I want to know can I have something called shared faces-config.xml file which can be shared across projects. ...

Techniques for sharing a value among classes in a program

I'm using Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\MyProgram" As the path to store several files used by my program. I'd like to avoid pasting the same snippet of code all over the my applcation. I need to ensure that: The path cannot be accidentally changed once its been set The classes that ...

what variable i can use instead of shared?

I have the following variable which creates problem when i use multiples instance of the same web form. Could you please let me know how i could what variables other than shared i can use to achieve this purpose? Public strRoleType As String = String.Empty Protected Shared isAreaSelected As Integer = 0 Protected Shared isStoreSelected A...

VB .NET Shared Function if called multiple times simultaneously

Consider I have a shared function:- Public Shared Function CalculateAreaFromRadius(ByVal radius As Double) As Double ' square the radius... Dim radiusSquared As Double radiusSquared = radius * radius ' multiply it by pi... Dim result As Double result = radiusSquared * Math.PI 'Wait a bit, for the sake of t...

Windows Service on NetworkService account can't access remote (shared) directory

I'm trying to remotely access a shared folder with a Windows Service set to NetworkService account permissions. However, I get errors when I try to do this, e.g. Directory.Exists(servicePath) returns false, FileSystemWatcher doesn't recognize activity in the directory. If I change the service's account to LocalSystem, these methods wor...

Making shared library from exist o-files

Hi guys, I have a project. I need in shared library of it to use in extensions. I don't want to make copy of this project but with shared-library settings. Are there any way to build it using *.o-files from building project? As I understand, I can write makefile for this. ...

How to export C++ functions with GCC?

I'm using Code::Blocks to compile a shared library on Ubuntu. When I make a simple main.c file with: void* CreateInterface() { int* x = (int*)malloc( sizeof( int ) ); *x = 1337; return x; } This works fine and I can find the function CreateInterface with dlsym in another application. However, I want the function to create ...

how to create one setup file for two projects in c#?

Hello, I have two projects 1) COM project(Shared Add-in) and 2) myProject(windows application) now i want to execute both project through one setup file. problem is the first project is shared add-in project so how can i do that? ...

can asp.net access flash shared object?

I'm looking for a direct way for server-side code to access a flash shared object. Obviously you can write some javascript that can read flash shared objects via ExternalInterface. But doing that requires a client code execution, and then a push of the shared object data back to the server-side code. This seems rather complicated. So is...

Using Session State in Public Class in ASP.NET?

I'm trying to move some reusable portions of code into a class. This is working okay except when I attempt to use Session within this class. I get an error: "Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class." My code looks something like thi...

Is a base class with shared fields and functions good design

I've got a BaseDataClass with shared fields and functions Protected Shared dbase as SqlDatabase Protected Shared dbCommand as DBCommand ... //also have a sync object used by the derived classes for Synclock'ing Protected Shared ReadOnly syncObj As Object = New Object() Protected Shared Sub Init() //initializes...

PHP Shared Sessions across Domain

Hi, I have seen a few answers to this on SOF but most of these are concerned with the use of subdomains, of which none have worked for me. The common one being that the use of session.cookie_domain, which from my understanding will only work with subdomains. I am interested in a solution that deals with deals with entirely different d...