private

Private or Public MSMQ

We are using Queue for few of are WCF services. We are using NetMSMQ binding for the WCF services which use Private MSMQ. The system works OK on our QA environment. I am not sure of any real difference between and private or public queue. The client application are on seperate machine still are able to access Private queue of the WCF ser...

Calling a function by a string in JavaScript and staying in scope

Hi, I've been playing around and searching a bit, but I can't figure this out. I have a pseudo private function within a JavaScript object that needs to get called via eval (because the name of the function is built dynamically). However, the function is hidden from the global scope by a closure and I cannot figure out how to reference i...

closed beta application in the app store?

Hi! Is there a way to have something like a closed private beta in the app store? So a customer could see and try the product after I sent him the link. If the app get's approved by a customer I would change the status from private to available (or something like that). Is this possible with apples app store? Thank you. ...

Marking instance variables @private

I've noticed that a lot of Apple's interfaces use @private before their instance variable declarations. Is there a good design reason for this, and is it something I should do? ...

C# Newbie Question from tutorial book: "Head Start C# Greyhound Lab"

Hello, I'm an extreme newbie at C#, but I've been slowly moving through the Head Start C# tutorial book (and finding it extremely enjoyable so far). However, I've hit a wall on the first "lab" assignment: They give code for controlling a PictureBox, and I can get that code to work on the main Form, but I can't get it to work from withi...

How to access a private member inside a static function in PHP

I have the following class in PHP class MyClass { // How to declare MyMember here? It needs to be private public static function MyFunction() { // How to access MyMember here? } } I am totally confused about which syntax to use $MyMember = 0; and echo $MyMember or private $MyMember = 0; and echo $MyMember or $this->My...

Why use private variables when we can use properties ?

Hi all, Sorry If I am being noob, I have this doubt, why do we use private variables and set them using properties ? Why can't we just use properites alone ? I am talking about situations like this private string _testVariable; public string MyProperty { get { return _testVariable;} set {_testVariable = value;} } I am thi...

object-private Vs class-private

Is there a notion of object-private in any OOP language ?? I mean more restrictive than the classic private access ? Private (or class-private) restricts the access to the class itself. Only methods that are part of the same class can access private members. object-private : restricts the access to the object itself. Only methods objec...

MOTD for channels

Is there a way to display a file/string of text to a user's channel output when a user joins a channel? Would this have to happen serverside in the irc config or could a bot do the same? ...

How does a Robot respond privately to you in Google Wave?

Google Wave allows two or more participants to speak privately within a wave. When my robot is added to the wave, I recognize the WAVELET_SELF_ADDED event and call the method below. However, nothing happens. I can tell that the code is executed because of the Debug and Info statements in the logs. Is there any reason why the robot d...

private vs public inheritence

I have a question based on this question In the section http://www.parashift.com/c%2B%2B-faq-lite/private-inheritance.html#faq-24.3 the following is mentioned: A legitimate, long-term use for private inheritance is when you want to build a class Fred that uses code in a class Wilma, and the code from class Wilma needs to invoke mem...

What to do with private member functions when turning static class to namespace in C++?

I have a class that has 5 static public functions and 1 static private function (called from one of the public functions). The class doesn't have any member variables. It seems to me that it should be a namespace and not a class. But what to do with the private function? I prefer it not to be accessible by every namespace user, but there...

Hide instance variable from header file in Objective C

I came across a library written in Objective C (I only have the header file and the .a binary). In the header file, it is like this: @interface MyClass : MySuperClass { //nothing here } @property (nonatomic, retain) MyObject anObject; - (void)someMethod; How can I achieve the same thing? If I try to declare a property without i...

PHP SoapClient Warning: SoapClient::SoapClient(): Unable to set private key file

I'm trying to use soap to call a webservice but I keep getting the following error "Warning: SoapClient::SoapClient(): Unable to set private key file". I'm assuming that the error comes due to the fact the the .cer file I am using only includes public key and no private key. But i'm not sure of another way to use the .cer file. If i d...

JScript.NET private variables

I'm wondering about JScript.NET private variables. Please take a look on the following code: import System; import System.Windows.Forms; import System.Drawing; var jsPDF = function(){ var state = 0; var beginPage = function(){ state = 2; out('beginPage'); } var out = function(text){ if(state == 2){ var st = 3; } M...

Can I use private APIs for an iPhone Enterprise application?

I'm looking into developing an enterprise iPhone app. As it will be proprietary and will not be submitted to the App store, am I free to use private APIs? ...

Android private fields naming guidelines are ok?

Here http://source.android.com/submit-patches/code-style-guide#shortmethods it is stated that : "Field Names * Non-public, non-static field names start with m. * Static field names start with s. * Other fields start with a lower case letter. * Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES. " also s...

iPhone general question on private APIs

Hi, I need to get some general information on private API usage (e.g. Apple80211...): Up to now I was in the opinion, that I would need a jailbroken iPhone in order to run apps using this APIs. I'm a bit buffled now, because it seems, that I can create and run apps using it on my iPhone, e.g. directly from XCode. Is it just a matter of d...

How to clean private data from browsers(temp files, caches, cookies) using Java on Windows

I think of doing something like a file cleaner for Windows with Java just for fun, I want it to be able to clean the temp files, caches... etc for the major browsers opera, ie, firefox. I'm basically looking for some guidance to where to start my research, what are some good reads and basically what kind of libraries will I have to use (...

Returning reference to class with overloaded private & operator?

I got a class called Property (from external library == cannot be modified) that has private overloaded & operator. I use this class in another class as a property and (for sanity reasons) I'd like to return a reference to this property through the Get method. However I got the 'cannot access private member declared in class' error I can...