public

VBA Public Array : how to ?

Hi folks ! So today's problem is getting me mad because that should be easy and i can not find the answer : How to declare a public array in VBA ? I'm using an array with the letters A, B, C,... because i'm working with Excel cells, and i don't want to declare it in every function i create, right ? I've tried to look on the web first an...

public static final variable in an imported java class

hi all, I happen to come across a Java code at my work place. Here's the scenario: There are 2 classes - ClassA and ClassB. ClassA has nothing except 4 public static final string values inside it. Its purpose is to use those values like ClassA.variable (don't ask me why, it's not my code). ClassB imports ClassA. I edited the string va...

public synonym creation

How can I create a public synonym in oracle 7.3.4 for a common table located in different users. ...

When should a DTD be made public

When creating a custom external DTD you have the choice of making it private or public. When should a DTD be made public? In this case I'm creating a DTD for an xml file which will describe product. The XML will be created by our client, filled with data from their old system. we will import this data into the new system we are building...

Making Controls public/Global in Netbeans with Java.

So I have multiple forms for my current project and I have made classes that interact and do some utility work behind these forms. However I am unable to access controls on other forms. Say I have a text control on Form A and I want to use a class that receives/manipulates data from a completely different Form B. My classes and Form ...

vb.net external-only properties or methods

Is there a simple way in vb.net to mask a public property or method from the internal namespace? It would be helpful as a refactoring tool to isolate internal dependencies and perhaps to enforce a non-recursion policy for external services. ...

Public stream to facebook's user wall with php ?

I build a facebook app with php api, everything work fine just have a problem when i need public a message on user's Wall. my code bellow $appapikey = "xxxxxx"; $appsecret = "xxxxxx"; $facebook = new Facebook($appapikey, $appsecret); $fb_user = $facebook->require_login(); if (!$facebook->api_client->users_hasAppPermission("publish_str...

Gen public key from xml data file using M2Crypto for signature verification.

I have pub key in xml format: <RSAKeyValue><Modulus>xF9y25EXh8n99sXtU/JAsYTwML6PB7gSCE8tWw8Www2KBfDqohQBL8FMs8jzsDQa7WwoEmiVJ1resEC9YXJGbwQyWgb9qgooC9oSnCB/TkRdBybwby0DKuZOzq+609OBGkwWpgnS4QVCBc6eW+10l3qE3/2hKdcSV+08iRYp7zs=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue> So i try thms like this: from M2Crypto import RSA from xml.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...

Problem with Interfaces

I have an interface(call it as IMessage) which has a method Check(), a class implements this interface interface IMessage { bool Check(); } class NewClass : IMessage { #region IMessage Members public bool Check() { //Some logic } } That all fine. The problem is that I don't want this method(Check()) to be...

Override public method in subclass in a way that restricts public access while still allowing access from parent class?

I have a generic Collection class, with a variety of public getter methods. To get one item from the Collection, you call get(). There are also several methods that return multiple items: getMany(), getRange(), getAll(), find(), findAll(), query(), queryAny(), etc. Internally, all of these methods that return multiple items have a loo...

How do I know if image from my site is getting cached by proxy servers?

Hi all, The following is a http response header from a image on our company's website. HTTP/1.1 200 OK Content-Type: image/png Last-Modified: Thu, 03 Dec 2009 15:51:57 GMT Accept-Ranges: bytes ETag: "1e61e38a3074ca1:0" Date: Wed, 06 Jan 2010 22:06:23 GMT Content-Length: 9140 Is there anyway to know if this image is publicly cacheable...

How to get public properties of a class?

I can't use simply get_class_vars() because I need it to work with PHP version earlier than 5.0.3 (see http://pl.php.net/get_class_vars Changelog) Alternatively: How can I check if property is public? ...

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...

Public SVN setup

I have an account with the shared hosting, IXwebhosting, will I be able to install a public SVN? if not, what server requirements I would need? any ideas? ...

C# change labels created in public class from form button click

Having hard time understanding classes and why I can't access certain object. How can i modify the code so I can change "map"(which is a bunch of labels) properties in all of my classes/events? The method Draw2d() creates a couple of labels on the main form that I wish to change on different events(button click in this example). Can so...

Protecting the content of public/ in a Rails app.

I'm maintaining a Rails app that has content in the public/ folder that will now need to be protected by a login. We're considering moving those folders of files into a path outside of public/ and writing a Rails controller to serve up the content. Before we begin writing this, I was curious if anyone else has ran into this sort of pro...

Encryption key generated by java program is not accepted by Microsoft encryption API

We have generated RSA public key by our java program to encrypt the data in C++ before transmitting it but when we use this key to encrypt the data using Microsoft encryption API, it doesn't accepts this key. Do anyone has any ideas on this? ...

can't access user control public properties

Hi All I am using VS2008 with both VB.NET and C# I have created a simple custom user control and have added some public functions to it my problem is that if I don't drag and drop the user control from the toolbox onto a winform but instead I try to create one dynamically via code - I am not able to access the public functions and pro...

Can I make a protected member public in Java? I want to access it from a subclass

Hi, I'm new to Java and OOP, I was using a private subclass (actually a struct) B in a class A, and everything went well until I decided to make a parent class C for subclass B. I want make public some of the protected members of class C. For example: public class A { private class B extends C { public int product; ...