122 questions
0
votes
0
answers
35
views
Is it normal for ReadableStream.pipeTo() to close both files?
According to these docs
https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo
by default (by not passing preventClose: true) will make the writable stream automatically close when the ...
1
vote
1
answer
969
views
How to use writable computed
In the following code am trying to change the ref value of the constant 'title' inside the computed setter, So I expect to change the value of 'title' when the computed start
<template>
<h3&...
0
votes
0
answers
263
views
What is best naming convention to distinguish between store and normal variable in svelte?
I am currently struggling with naming store(writable, readable etc) in svelte.
store.ts
export type CanvasContext = ReturnType<typeof createCanvasStore>
export const createCanvasStore = () =>...
1
vote
1
answer
642
views
How to get the content of a custom svelte store without calling update()?
I want to call a svelte custom store function without calling the update function. It feels ugly, especially since I don't want to update anything, I just want to query the store's content and ...
0
votes
1
answer
978
views
Error: the templates_c directory does not exist or is not writable
When launching my web application on local EasyPHP web server, I am still getting this :
Error: the templates_c directory does not exist or is not writable
Please make sure that the templates_c ...
0
votes
1
answer
182
views
Local variable updates then when props is passed it reverts to old value
I have a small Svelte app and love the framework, but I am running into a issue with local variables. There is a local writable variable declared in a child component and is only used in this ...
-2
votes
2
answers
457
views
How to save Docker image writable
I found out that docker image is read-only.
Is there a way to save the image writable?
The reason why I post this question is because I want to modify the original image.
Delete or Update from the ...
1
vote
1
answer
1k
views
Svelte: how to create a Blob from `writable store`?
How can I use a "writable store" to create a "blob"?
I am new to Svelte.
I am trying to code a simple markdown editor for visually impaired users. The content of the "textarea&...
2
votes
1
answer
2k
views
Writable store is overwritten on page change, SvelteKit
I to values stored in a writable store
import { writable } from 'svelte/store'
export const user = writable(null)
export const isLoggedIn = writable(false)
I then import these values from and set ...
1
vote
0
answers
818
views
How to write persist in svelte?
I need to convert my store to a persisting store that uses a Localstorage to hold my data even if the user closes the browser. I have tried writing the code using Localstorage.setItem and getItem but ...
0
votes
0
answers
55
views
Scala Writeable of AnyContentAsMultipartFormData - play 2.6
I have those lines in my code
implicit val anyContentAsMultipartFormWritable: Writeable[AnyContentAsMultipartFormData] = {
MultipartFormDataWritable.singleton.map(_.mdf)
}
I had to upgrade my ...
0
votes
1
answer
1k
views
In Kubernetes, can I have a deployment with both read only and writable files?
I am currently running a deployment that is pulling from a database and is set as read only. Unfortunately the deployment freezes on coaction without notice so I came up with the idea of having the ...
1
vote
1
answer
389
views
does not write to the created stream writable node.js
let testWriteableStream_1 = fs.createWriteStream("logs/test_profit_1.csv", { flags: 'a' });
let testWriteableStream_2 = false;
let testFlag = { number: 1 };
let testCount = { number: 0 };
...
0
votes
1
answer
836
views
Writable Classes in mapreduce
How can i use the values from hashset (the docid and offset) to the reduce writable so as to connect map writable with reduce writable?
The mapper (LineIndexMapper) works fine but in the reducer (...
0
votes
0
answers
136
views
Java when writing files what type do I use to make letters unreadble in a text editor
In Java I'm writing a data file that is essentially a save file. I know if I write the file as a .dat (UTF-8) when I open the file in a text editor the numbers are unreadable. In the same file text is ...
0
votes
1
answer
84
views
hadoop reducer not considering two equal custom writable objects as equal
I am trying to write a map reduce program that checks for common friends.
I am using a custom writable (FriendPair) as key.
Given the following input
Tom Jerry,John
John Jerry,Sarah,Tom
It should ...
0
votes
1
answer
4k
views
Node.js Writable stream: write vs _write
I'm reading official Node.js docs to understand streams. I'm implementing Writable stream, but I can't understand what is the difference between write and _write.
Quoting the docs from this section:
...
4
votes
2
answers
7k
views
XAMPP: [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
I wanted to make my own wiki for my own personal use and carry it around on an external drive. I am using Windows 10.
I installed XAMPP portable to my external drive and set up MediaWiki yesterday ...
0
votes
1
answer
140
views
Async/Await In NodeJS
This works in NodeJS but I have to use recordObject within the codeblock where it was created.
It is not visible outside of the code block even if recordObject is declared at the beginning of the ...
2
votes
1
answer
541
views
wdired mode: create, copy, delete files and directories
I know I can move files by renaming them in wdired mode. I am wondering if there is a chance of creating, copying, deleting files/directories in writable dired mode.
-1
votes
1
answer
5k
views
Kubernetes - mount read only share as writable
I am using this config to mount drive that is read-only to docker image:
volumes:
- name: drive-c
hostPath:
path: /media/sf_C_DRIVE
containers:
...
volumeMounts:
- name: drive-c
...
-1
votes
1
answer
46
views
Using toString when setting object prototype to null
If I set the prototype to null, then how come I can still use toString on the object?
var nakedObject=Object.create(null,{
name:{
configurable:true,
enumerable:true,
value:"Hello",
...
0
votes
1
answer
675
views
Issue with RDD of Custom Objects in Spark
I am passing a type into a flatmap like so;
val customData: RDD[(Text/String, Custom)] = origRDD.flatMap { case(x) => parse(x)}
this returns a key value pair of String and Custom(I have used Text ...
0
votes
0
answers
68
views
Write to a "writable" PDF file in .net
This question might have been answered already and I looked into the web, but I don't really know what term to use, but here it is.
As some of you know, some people provide writable pdf file, ...
1
vote
1
answer
2k
views
Hadoop writable readFields EOFException
I am implementing my own Writable for Hadoop secondary sort, but when running the job, Hadoop keeps throwing EOFException in my readFields method and I don't know what's wrong with it.
Error stack ...
0
votes
1
answer
589
views
Using java classes in Play framework with Scala to be returned as Json Object
I have some java classes which were generated using axis wsdl2java. I want to use those classes to be returned in Json format, but i keep getting various error, such as cannot convert Incident Object ...
46
votes
5
answers
123k
views
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 ...
0
votes
6
answers
111
views
create a folder on an SD card
I'm trying to create a folder on the SD card that is named by user inputs, I get no errors when I run it, but it also doesn't create the folder.
the following is all the code I have written for this ...
0
votes
2
answers
4k
views
Why org.apache.hadoop.io.Writable cannot be cast to org.apache.hadoop.io.IntWritable?
My mapreduce application look like this. I want to sum the 3 values from the strings
public class StockCount {
public static class MapperClass
extends Mapper<Object, Text, Text, ...
1
vote
0
answers
1k
views
Android O native library (.so) ELF W+E warning, editing the binary file
I have an (older) Android application which has its targetSDK set to 19, has a few native libraries (.so files) included and runs fine on devices up to API 23.
Running on an Android O device a build ...
1
vote
2
answers
596
views
Hadoop Reducer Custom Writable
I have this following Reducer class
public class CompanyMinMaxReducer extends Reducer<Text, DateClosePair, Text, Text> {
private Text rText = new Text();
public void reduce(Text key, ...
1
vote
1
answer
241
views
Why can't I set the writable attribute using a property descriptor in Object.create()?
I am new to JS and I wonder why this piece of code prints false. What am I doing wrong? Thank you for any hint!
var x = Object.create(Object.prototype, {x:{value:3, writable:true, enumerable:true}});
...
0
votes
1
answer
712
views
Ignoring exception during close for org.apache.hadoop.mapred.MapTask$NewOutputCollector
I have created a hadoop custom writable as shown below
public class ResultType implements Writable {
private Text xxxx;
private Text yyyy;
private Text zzzz;
public ResultType() {}
...
6
votes
1
answer
5k
views
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/#...
0
votes
1
answer
1k
views
PHP PhantomJS unable to make screenshot directory writable
I am trying to capture a screen and save it locally. When I run the code it shoots me an error message
Fatal error: Uncaught JonnyW\PhantomJs\Exception\NotWritableException: Output file is not ...
2
votes
1
answer
1k
views
ArrayWritable as key in Hadoop MapReduce
I am attempting to create a dynamic map reduce application that takes in dimensions from an external properties file. The main problem lies in the fact that the variables i.e. the key will be ...
-1
votes
1
answer
277
views
Why to use Writable when we can directly use DataInput and DataOutput?
Probably because implementing Writable would present us with a serializable object. I know DataInput and DataOutput directly deal with byte streams but I see no harm in directly reading values off ...
2
votes
1
answer
920
views
SetWritable in Hadoop?
I am trying to create a SetWritable in Hadoop. Here is my implementation. I have just started with MapReduce and I can't figure out how exactly I should do this. I wrote the below code but it doesn't ...
0
votes
1
answer
212
views
Apache Giraph/Hadoop: Iterating through custom ArrayWritable
I thought this would be simple to implement, but it's starting to be a pain.
I've got a ArrayWritable subclass like so:
public class VertexDistanceArrayWritable extends ArrayWritable {
public ...
0
votes
1
answer
2k
views
Writable Double-nested serializers with Django Rest Framework
I have invoice with 1 or multiple product_invoice, and some product_invoice can have 1 product_order (so in ProductOrder, productinvoiceid shoulb be a OneToOne relashionship but it is not important ...
0
votes
1
answer
439
views
Implement finish event handler of custom writable stream class
Assume that customWS is a writable stream ..
util.inherits(customWS, stream.Writable);
we implement our logic to handle the writes in the _write() like below ..
customWS.prototype._write = ...
0
votes
0
answers
156
views
How to get rid of "C:\Windows\TEMP :: Unwriteable" in VirtueMart?
I've installed VirtueMart on my host on server. Everything works nice, but uploading photo/file. There are two problems:
I don't know how and where to set the TEMP folder. The default 'temp' folder is:...
5
votes
3
answers
1k
views
How does non-writability of a prototype property affect objects having that prototype?
MDN documentation concerning the "writable" descriptor property states:
writable
true if the value associated with the property may be changed with an assignment operator. Defaults to false.
...
0
votes
0
answers
169
views
ArrayWritable contstructor [duplicate]
I'm trying to create a mapreduce chain composed of two steps. The first reduce emit key-value pairs as (key, value) where value is a list of custom object and the second mapper should read the output ...
2
votes
1
answer
1k
views
Hadoop MapReduce chain with ArrayWritable
I'm trying to create a mapreduce chain composed of two steps.
The first reduce emit key-value pairs as (key, value) where value is a list of custom object and the second mapper should read the output ...
1
vote
1
answer
721
views
Deserialize MapWritable within custom java class
I am currently trying to deserialize a custom object where one of the fields is a MapWritable and the other one is a String. It seems serialization works ok, but can't verify that the object is being ...
3
votes
1
answer
375
views
How do you handle different value types in reducer
I am writing a mapreduce program which has 2 mappers and 1 reducer, I implemented custom Writable Datatypes for each mapper. The Datatype is more or less just a container where the fields are Text / ...
7
votes
1
answer
3k
views
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
> ...
0
votes
1
answer
429
views
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 ...
0
votes
1
answer
279
views
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 ...