shared

How can I access a method from another class?

Hey, I know this question was already ask several times but i don't get it. I have 2 classes classA.h & .m and classB.h and .m. In classA.h i've got a UITextField *myTextfield. In classB i import the header of classA and define the class with @class classA. I also set classA *classa. if i try to get the value of myTextfield like this...

C++ boost shared array swapping pointers (simple question)

Hi all, I'm new to boost shared arrays. There is existing code that declares two arrays: boost::shared_array<unsigned char> src; boost::shared_array<unsigned char> dest; All I want to do is swap what each array is pointing to (src becomes dest, and dest becomes src). As I understand it, the shared_array.get() method returns a poin...

Shared add-in installation via Group Policy

I Have a shared add in (not VSTO) which I need to deploy via group policy to all users on the target machines. My addin (targeting outlook specifically) accepts a command line switch which is the path of an intranet application so it can communicate with it - this all works fine on my development machine and also on a different machine ...

Hibernate one-to-one entity association with shared PK between 3 classes

I want a unidirectional one-to-one relationship between objects of 3 java classes: Person to Heart, and Person to Liver. I want the objects to share the same PK i.e. every person has a corresponding heart and liver, where person.person_id = heart.heart_id = liver.liver_id. I do not want to merge the 3 tables into 1 because each has loads...

Django: vps or shared hosting?

I am new to web development and everything involved with it. Im finishing my website in django and i will soon have to find a hosting and deploy it. I heard there are vps or shared hosting types. So here are the questions: 1. How many visits/clicks per day make it worth choosing vps? shared? 2. How hard is it to tune and maintain a vps o...

Shared memory for fork

I want to create a shared memory between two process. I used fork(). A child tries to change this shared memory and mother creates another child so new child tries to change same memory so on. here is my code in C programing. (ubuntu) mylist ch=NUL; f=fork(); if(!f){ pba=shmget(KEYSHM,sizeof(char),0); /*created shared memory*/ ...

Get value of variable in ASP.NET from within a static/shared class using reflection

Hi, I have a VB.NET website which has a static (shared) class from which I need to obtain the value of specific variables that may exist anywhere in the application's scope. The reason I have this need is that I have snippets of text coming from a database which contain embedded variable names, such as [[FirstName]]. I need to repla...

Shared Apache / MySQL / PHP setup on multiboot

In short: I have a multiboot machine with Win XP, Windows 7 and Ubuntu, and I would like my localhost web projects to be shared by all three OSes. Details: I finally want to get rid of Windows XP for my web development work, but my local Apache + PHP + MySQL stack is tied to my old OS, and I spent some time and thinking to tweak this se...

AS3: Shared Objects Issue

Slight problem i have been pondering on, i have a class that loads a text from a url as a means to sync the time. The swf file can be on the same page multiple times, but i want it to check to see if one of the swf is sync'ing, if so then wait for it to complete and load its sync'd value (rather then query the url itself), so that they ...

Server code in Javascript

I have: Page.aspx Page.aspx.vb TestClass.vb I'm trying to access a shared property of the TestClass class from the Page.aspx. This code works fine: ... <head> <script language="JavaScript"> <% if System.Globalization.CultureInfo.CurrentCulture.Name.ToLower = "pt-br" Then %> alert('portugues'); <% else %> ale...

why is php's ini_set function switched off on shared hosts

I am using hosting on VPS and they've not allowed me to use php's ini_set function to set configuration at runtime, on a script by script basis. Instead I must change the settings directly in the php.ini file which is a mission to access via SSH. Why is this? This, although fine, is slightly annoying as I have 12 domains on the shared...

How to start Solr automatically?

At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then java -jar start.jar Any ideas how to get this to start automatically on boot? Im on a shared linux server. Cheers ...

Is it possible to get CMake to build both a static and shared version of the same library?

Same source, all that, just want a static and shared version both. Easy to do? ...

Class-level Static Variable per Instance.

Hi, I'm trying to do the following: I need a static variable to get a ListItemCollection from a List control (I can do this, but if I don't set it as Shared It's not preserving the values as it should). The thing is that this class is a SharePoint webpart, so I most probably will be using the webpart more than once, and I need this vari...

Rails application on shared hosting?

Is there a way that I can deploy my locally made rails app on a shared host that has Ruby installed? ...

Synergy Monitor Setup

I have a unique setup for my monitors [PC1 Monitor1][PC1 Monitor 2][PC1 Monitor 3]                         [PC2 Monitor1 ] I want the left of PC2 to go to PC 1 Monitor 1 I want the right of PC2 to go to PC 1 Monitor 3 This problem can be solved if I can specify the starting X,Y of the target monitor somethin...

Fluent NHibernate - subclasses with shared reference

Edit: changed class names. I'm using Fluent NHibernate (v 1.0.0.614) automapping on the following set of classes (where Entity is the base class provided in the S#arp Architecture framework): public class Car : Entity { public virtual int ModelYear { get; set; } public virtual Company Manufacturer { get; set; } } public class ...

ASP.NET - VB.NET - Shared methods

I have a method name "LogClick" that is called 2 or more times per second. I call it in the tradicional way: Call New MyClass().LogClick() Everty time I call "LogClick", the "MyClass" is instanciated. So I think: "why not transform this method to shared?" Public Shared Sub LogClick() ... End Sub MyClass.LogClick() Will I have perf...

Sharepoint Shared Services Error

I am biulding a sharepoint 2007 farm but whilst trying to configure the Shared Services I am getting an error of (Provisioning failed: Value cannot be null. Parameter name: adminWebApplication) I have tried googleing but dont seem to come up with an exact answer. Thanks ...

Creating lib with g++ 4.0.1

I'm trying to create a lib with g++ 4.0.1, but it looks for _main (which deliberately isn't in the code). Must I put a _main in there or can I circumvent with some nifty switch? My current command line looks like: g++ -shared -o mylib.so myobj1.o myobj2.o ... On a sidenote I'm using g++ powerpc-apple-darwin9, but I'm guessing/hoping t...