read-only

When you make a file read-only via Properties, can your program write directly to that file?

I'm wondering whether making files read-only so the user can't mess with them will disallow my program from writing information to them via an fstream. ...

Settings end up in user.config even though they are unmodified as read from app.config

Consider a C# app which has a number of user settings, some are actively used and updated and others are always read-only. Under which circumstances can such a read-only settings property end up in a per user maintained user.config? I am seeing a funny behavior that several user configuration settings that app merely reads end up in use...

Qt How to make a column in QTableWidget read only.

I would like to have one column in QTableWidget NOT editable. I forums have read a lot about some flags bould could not manage to implement. Thanks in advance! ...

My project in Visual Studio is Read Only. What did I do ?

I must have done something wrong. I have a C# project in Visual Studio 2008. All of a sudden I see a lock on my classes and when I hover the class names on the top tab I see the class name as : C:\Myprojects\Oder.cs[Read Only] ! Has something weird like that happened to you before ? Thanks ...

Delphi 2010 - Source files randomly become read-only in editor?

Does anyone else have this problem or is my Delphi cursed somehow? I'll have a bunch of forms and files open in tabs in the editor and I'll be typing away and then suddenly everything stops - my .pas file has, seemingly at random, become read-only. Sometimes I can just right-click the tab at the top and uncheck "Read-Only" and contin...

SQLAlchemy - how to map against a read-only (or calculated) property

I'm trying to figure out how to map against a simple read-only property and have that property fire when I save to the database. A contrived example should make this more clear. First, a simple table: meta = MetaData() foo_table = Table('foo', meta, Column('id', String(3), primary_key=True), Column('description', String(64), ...

Can anybody explain this read-only exception to me?

Below is my code (don't worry there's a USUW at the top of the module) I'm testing if an array ref is readonly, and if that is the case then I'm copying it into another array ref. The tests show that the array is not read-only, yet when it runs, it fails with that error. ( For those of you not familiar with me or Smart::Comments--those ...

std::map assignment of read only location

I have a static std::map<std::string, CreateGUIFunc> in a class that basically holds strings identifying gui types, and CreateGUIFunc is a reference to a factory function. In my constructor I have if ( m_factoryRef.size() == 0 ) { m_factoryRef["image"] = &CreateGUI<Image>; m_factoryRef["button"] = &CreateGUI<Button>; } ... Howeve...

Why are some Siebel objects read only?

Hi, I want to add some extensions to an existing Siebel application, but the objects which I need to change remain (partially) read only, despite I have locked the respective parent projects. E.g. Add a Menu item to the application main menu. => I can edit existing items, but I cannot add new items (Tool's menu "New record" is disabl...

I get a timeout when i try to install Android app through Eclipse ADT

Whenever i try to install an Android app on my HTC device via the Eclipse ADT i get: [2010-07-27 15:33:20 - Touch] Failed to upload Touch.apk on device '' [2010-07-27 15:33:20 - Touch] java.io.IOException: Unable to upload file: timeout [2010-07-27 15:33:20 - Touch] Launch canceled! I am running on Ubuntu 8.04 in vmware (on a Vista sys...

can a method parameter pass an object by reference but be read-only?

C#: can you make it so that a method parameter passes an object by reference but is read-only? eg: void MyMethod(int x, int y, read-only MyObject obj) where obj is an object reference but this object cannot be modified during the method. Can this be achieved in C#? ...

How can I create read-only FTP access for user on Apache server?

I have a web site with lots of pages of photography. In order to allow visitors to download groups of photos without having to save each one individually, I want to create a read-only FTP user that will be publicly available. Via the control panel for the host, I can create "regular" FTP user accounts, but they have write access, which ...

What is the best practice when you have read-only properties and cannot use the objectdatasource?

I have started a web forms project using nHibernate and objectdatasources; however, I've learned that there are some limitations that I understand but do not know to handle. These limitations include 1) objectdatasources require parameterless constructors and 2) properties of the business object cannot be read-only. The problem I'm havi...