public

Public class: The best way to store and access NSMutableDictionary?

I have a class to help me store persistent data across sessions. The problem is I want to store a running sample of the property list or "plist" file in an NSMutableArray throughout the instance of the Persistance class so I can read and edit the values and write them back when I need to. The problem is, as the methods are publicly defi...

Drupal : how to emulate the public/private attribute available in WordPress

Hi, Basically, I'm looking for an easy way (module) to add a private/public option to any kind of content I may published in Drupal (blog entry, image, etc.). So that when I'm logged in, I can see everything. But when an anonymous user visit the site, he will only see the public stuff. It's way to manage a kind of front window/back-stor...

loading css or javascript from non-public directory

is there a way to load css and/or javascript files from outside of the public web directory? for example on my hosting service i have /public_html but don't want these files to exist in the public directory and want them in a directory outside of the public directory in a sibling directory /system (i am using codeigniter) within the /sy...

Any problems with this C++ const reference accessor interface idiom?

I was converting a struct to a class so I could enforce a setter interface for my variables. I did not want to change all of the instances where the variable was read, though. So I converted this: struct foo_t { int x; float y; }; to this: class foo_t { int _x; float _y; public: foot_t() : x(_x), y(_y) { set(0, 0...

I need a sql db that has all the stock symbols on the US market. ANYONE?

That is pretty much it. I need a .sql file with all the stock symbols and company names matched up for an autocomplete function I'm writing. ANYONE? ...

How to hide helper functions from public API in c

I'm working on a project and I need to create an API. I am using sockets to communicate between the server (my application) and the clients (the other applications using my API). This project is in c not C++ I come from a linux background and this is my first project using Windows, Visual Studio 2008, and dll libraries. I have com...

ActionScript Calling Private Functions By Changing Public Variables?

i've never tried to do this before, so my head a swimming a bit. i'd like to have a public boolean called enabled in myClass custom class. if it's called to be changed, how do i trigger a function from the change? should i add an Event.CHANGE event listener to my variable? can i do that? or is there a more standard way? ...

Hide public method used to help test a .NET assembly

I have a .NET assembly, to be released. Its release build includes: A public, documented API of methods which people are supposed to use A public but undocumented API of other methods, which exist only in order to help test the assembly, and which people are not supposed to use The assembly to be released is a custom control, not an ...

How to remove a specific file in Rails public folder?

User in my web app are able to upload file. I use Paperclip to handle file attachment issue. Is there any method if I would like to remove any specific user-uploaded file programmatically? ...

scala equivalent of java public field

In java, I have a class like this: public class MyClass extends Properties { public StringProperty prop1 = new StringProperty(this, "default value for prop1"); public StringProperty prop2 = new StringProperty(this, "prop2 default val"); }//MyClass The parent class "Properties" uses reflection to look for all public fields in...

Private class in a Vector used publically

In Java, what happens when you reference a private class in a vector from outside the class? Example: public class A { private class B {} public Vector<B> vector = new Vector<B>(); public A() { vector.add(new B()); } } public class C { public C() { A a = new A(); a.vector.get(0); // <- What does this return? }...

CPL and Subclasses

Two questions really, I'm fairly confident about the first but not sure on the second. Firstly: If I write a subclass of a class from a library released under the CPL, do I also need to release this subclass under the CPL? Secondly: If I copypaste some code from a CPL library, then make reasonably substantial modifications to the code,...

Publicly available Web proxy forward cache logs/data sets

I'm looking to do some analysis on HTTP requests that occur between clients and web servers. Are there any recent (at least within last 4 years) publicly available data sets of web proxy forward cache logs, such as those recorded by a Squid proxy? I'm most interested in forward cache HTTP log data - so coming from a cache that sits bet...

Any performance reason to put attributes protected/private ?

I "learned" C++ at school, but there are several things I don't know, like where or what a compiler can optimize, seems I already know that inline and const can boost a little... If performance is an important thing (gaming programming for example), does putting class attributes not public (private or protected) allow the compiler to ma...

signature.verify() Always returns False

public static void main(String[] args) { try{ String mod = "q0AwozeUj0VVkoksDQSCTj3QEgODomq4sAr02xMyIrWldZrNHhWfZAIcWt2MuAY3X6S3ZVUfOFXOrVbltRrO3F9Z6R8/jJIMv7wjkeVBFC5gncwGR0C3aV9gmF6II19jTKfF1sxb26iMEMAlMEOSnAAceNaJH91zBoaW7ZIh+qk="; String exp = "AQAB"; byte[] modulusBytes = Base64.decodeBase64(mod.getBytes...

URL for the user profile? to be a subdomain or text after the slash?

Hi guys, I'm creating an online based system that has public user profiles for all users.. I'm wondering how to organize the URLs for these public user profiles? What could be better for the SEO and of course for the user friendliness? {username}.mysystem.com or mysystem.com/{username} or maybe even mysystem.com/users/...

C++ inheritance public and private?

Is it possible to inherit both or all parts of a class (other than private) in C++? class A { } clas B : ...? { } ...

Use Public Variable Globally

I'm attempting to modify a MIPS simulator to display the contents of its registers during run time. My question refers to the way in which I plan to do this. So... I have a file, file1.cpp and file2.cpp. There is a local public variable in file1.cpp called typedef long ValueGPR; ValueGPR reg[33]; that I want to access in file2.cp...

Public facing complex business apps on Sharepoint 2010 (or 2007)

I would like to see some public-facing sites or complex business applications built on top of SHarepoint 2010 (or at least 2007). They can either use Sharepoint's look'n'feel or have a completely custom one. If they're using Silverlight in heavy doses even better. ...

C# class not public

I am trying to make a class so when I do the following inside a file: Functions LoginFunctions = new Functions(); LoginFunctions.loadFunctions(); It will create my object which I need, and make it public so every form which calls the class will be able to use it. The class file is below. namespace App { public class Functions ...