Questions tagged [writable]

121 questions
39
votes
5 answers

How to fix Perforce error "Can't clobber writable file" or Perforce Error Message - Can't Clobber Writable File

Error: Can't clobber writable file : //file name// Solution: When you try to sync a file, perforce expects your files in workspace will have read-only permissions. If a file is not checked out (by p4 edit) but has write permission then it will…
Shubham Verma
  • 997
  • 1
  • 10
  • 13
14
votes
6 answers

"/etc/sudoers is world writable" on Mac OS X Mavericks

Currently, I am working on an OSX Maverick, and I can't use sudo command in Terminal. My-Mac:~ phucnd$ sudo sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting. How can i fix it ?
s7ven
  • 173
  • 1
  • 2
  • 12
10
votes
1 answer

MapReduce Output ArrayWritable

I'm trying to get an output from an ArrayWritable in a simple MapReduce-Task. I found a few questions with a similar problem, but I can't solve the problem in my own code. So I'm looking forward to your help. Thanks :)! Input: Textfile with some…
M4scap
  • 123
  • 1
  • 1
  • 8
9
votes
4 answers

php chmod() not changing permissions

I am having problems with a picture uploading script. I know there are hundreds of the same questions, but I haven't found the one that would be work for me. $upload_dir = "images/postcards/"; chmod($upload_dir, 777); if (is_writable($upload_dir))…
Sebastjan
  • 1,117
  • 2
  • 17
  • 24
7
votes
2 answers

How can I detect whether a directory is writeable in Ruby

I am using Ruby and need to detect whether a directory is writeable before trying to create new files. I have tried the following code, which correctly returns true/false depending on whether @path is a directory. However, it still returns true when…
SimonMayer
  • 4,719
  • 4
  • 33
  • 45
7
votes
1 answer

Node.js writable.write return false?

I want to upload (stream) control the writing process. But the writing process always returns false. Large files upload process stops. The output of the code is as follows; > Node app.js > False > False > False > False What am I doing wrong? My…
Wise Colt
  • 131
  • 2
  • 7
7
votes
6 answers

How to check whether a file/dir is writable in batch scripts

In bash, I would use [ -w ... ] What's the equivalent for Windows batch files?
Marc Mutz - mmutz
  • 24,485
  • 12
  • 80
  • 90
6
votes
1 answer

instance expected, got OrderedDict Django Rest Framework writable nested serializers

I am creating a survey kind of app, so i have three models Form, Questiosn, Choices[for multiple choice questions] I followed this tutorial http://www.django-rest-framework.org/api-guide/relations/#nested-relationships It works fine for 1 level…
6
votes
0 answers

Selinux Error when starting xampp on ubuntu

I'm running XFCE4.10 on ubuntu / mint 17.1. Xampp start fine when i manually open manager-linux-x64.run from /opt/lampp/ but once i create a shortcut on the desktop (from Thunar 1.6.3), this new shortcut won't start xampp (nothing happens). When i…
6
votes
3 answers

java.nio.file.Files.isWriteable doesn't agree with java.io.File.canWrite()

I have Java code doing the following: Create a temporary empty file with ZIP extension using File.createTempFile() Delete it with File.delete() (we only really wanted it to generate a temp file name) Copy a "template" ZIP file to the same path with…
user1414274
  • 211
  • 3
  • 6
5
votes
3 answers

Is there a C# equivalent to the STL output iterator?

I'm looking for some type of iterator/enumerator that can write to the backing collection. As I understand it c# enumerators are read-only.
ccarton
  • 3,556
  • 16
  • 17
5
votes
5 answers

How to create folder in sdcard in android

I want to make folders in my sdcard and I have used the code below: public class Screen extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Ali Allahyar
  • 341
  • 2
  • 11
  • 22
5
votes
3 answers

Bean property 'xxx' is not writable or has an invalid setter method

I have spring web application. I have defined the controller bean which takes the bean of service as property. Also service bean takes the Dao. Dao is tested and working fine. Now the problem with service. Actually i'd make sure about the setters…
Hatem
  • 109
  • 1
  • 3
  • 10
5
votes
2 answers

Hadoop: Array of primitives as value in a key value pair

I have asked a very resemblant question in a previous thread Hadoop: How can i have an array of doubles as a value in a key-value pair? . My problem is that i want to pass a double array as value from map to reduce phase. The answer i got was to…
jojoba
  • 554
  • 9
  • 19
4
votes
3 answers

Does Javascript writable descriptor prevent changes on instances?

Answers (please read them below, their respective authors provided valuable insights): "writable: false" prevents assigning a new value, but Object.defineProperty is not an assignement operation and therefore ignores the value of…
Gilgalas
  • 43
  • 4
1
2 3
8 9