Questions tagged [writable]

121 questions
0
votes
1 answer

Specify JSON as writable: 'Uncaught TypeError'

I'm running into a read/write error in my JavaScript because my JSON file is defaulting to read-only ('Uncaught TypeError: Cannot assign to read only property'). How do I specify it as writable? In the JavaScript or the JSON? My JSON array is like…
0
votes
1 answer

Does value type in hadoop type has to implement writable interface?

I am trying to understand how to implement custom value type for mapreduce framework. Based on this post (MapReduce - WritableComparables) it seems to me that the value type has to implement Writable interface. Is that correct? I was also following…
Santanu C
  • 1,362
  • 3
  • 20
  • 38
0
votes
1 answer

change the C function contents at run-time

I have a use-case in which the function contents are to be selected conditionally. And that function pointer is passed to other module for later invocation. void encode_function(int flag) { if (flag == 1) encode1(); if (flag == 2) encode2(); …
bharat
  • 29
  • 4
0
votes
0 answers

How to make internal storage writable in android?

I have Huawei Ascend Y530 phone with android 4.3 and now I can't neither read nor write from/to internal storage. At first time it was working fine after some time it just happened. Please help me how to make my internal storage writable. Tried a…
GemeAlex
  • 31
  • 6
0
votes
1 answer

Find all dir's called "example", set it and its contents writable

I have a site, with some template directories, there are a few modules, each with their own template dir (So there are N dirs called templates). Each of those dirs has a dir in it, called translated. I need a script to set all those dirs and it's…
Martijn
  • 15,791
  • 4
  • 36
  • 68
0
votes
1 answer

Nashorn writable property

I am trying to use a non-writable property in an object literal in Nashorn in Java8 as follows: 'use strict'; var p = { x: {value: 100, writable:false}}; p.x = 200; // should not allow to change x, but it does print(p.x); The code prints 200 where…
Kishori
  • 13
  • 6
0
votes
1 answer

Customizing TwoDArrayWritable in Hadoop and Not able to iterate the same in reducer

Trying to emit 2 double dimensional array as value from mapper. In hadoop we have TwoDArrayWritable which takes 1 - 2D array as input. In order to achieve my usecase, I tried to edit TwoDArrayWritable to take input of 2 - 2D array /** * A Writable…
USB
  • 6,019
  • 15
  • 62
  • 93
0
votes
1 answer

Simulating remote environment?

I'm building a .NET MVC application which will be deployed on a Windows 2003 server. The server has a folder @ c:\Website\Files which needs to be written to from the application. How do I cope with this in my development environment so that the MSI…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
1 answer

How to maintain the ordering of MapWritables in the reducer?

My Mapper implementation public class SimpleMapper extends Mapper { @Override protected void map(Text key, Text value,Context context) throws IOException, InterruptedException { MapWritable…
Sambit Tripathy
  • 434
  • 1
  • 4
  • 14
0
votes
1 answer

error with interface writable in hadoop

I have create a class VectorWritable which implements the interface Writable. I am trying to write a VectorWritable object to the output file but i am getting this: VectorWritable@1355b88b. Here is my write method: public void write(DataOutput out)…
0
votes
2 answers

Hadoop NullWritable for RCFIle Format Files

I couldn't quite understand the concept of NullWritable in Hadoop. What is it used for and why is the outputKeyClass for an RCFile format a NullWritable.class and outputValueClass a BytesRefArrayWritable.class?
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106
0
votes
2 answers

Defining collections in custom writables

I am writing a custom writable class with some java collections in it. Can anyone tell me how is my implementation wrong I am passing two java collections in the constructor public class details implements Writable { IntWritable id; Text…
user3301448
  • 3
  • 1
  • 4
0
votes
1 answer

Which directories are writable by web server on shared web-hosting?

Currently I'm using shared webhost (Linux) to host my site. I know that anything inside '~/home/my_user_name/www' directory is writable by server. What are the other locations? Basically I want to change default session storage location and probably…
understack
  • 11,212
  • 24
  • 77
  • 100
0
votes
1 answer

How to know what memory zones are writable

I want to know how to know what memory zones are flagged as writable while I am debugging a process. So, I put a breackpoint in the code and I want to know in that moment what memory zone is writable. How can I do it? I'm using IDA Pro. Thank you
Alberto
  • 701
  • 4
  • 9
  • 25
0
votes
1 answer

How to code Writable Interface in groovy

hoping to use groovy to write a groovy.text.Template for Asciidoctor markup. So far : //----------------------------------- public class AsciidocTemplate implements groovy.text.Template { boolean includeHeaderFooter = true; Asciidoctor asciidoctor…
jnorthr
  • 52
  • 6
1 2 3
8 9