Questions tagged [save]
To store (data) in a computer or on a storage device.
9,702
questions
0
votes
2
answers
20
views
Import a list of pairs into python
I have a file of the form:
{{ 1 , string1 }
{ 2 , string2 }
...
{ 1000 , string1000}}
The first field is always an integer and the second is a string (they can contain spaces). I would like to ...
0
votes
1
answer
15
views
how to load .RData file whose names contains a previously save system date in R
Assume I save my data ( say mtcars ) as .RData with this name format:
save(mtcars, file = paste0("data","_",Sys.Date(),".RData"))
this file data_2022-05-26.RData and ...
0
votes
1
answer
19
views
Turning graphics into bitmap in c#
So I've been struggling with this for a while. How can I turn a graphic that I drew into a bitmap and how can I keep it updated? I mean let's say I wanna draw some shapes and then go ahead and color ...
0
votes
0
answers
11
views
Using PDF-Lib to create a document and print without saving the document locally
Within my web application, I am attempting to create a PDF document (which I am doing successfully) and then print it.
Most of the solutions I have found said that you will have to do it server-side ...
0
votes
0
answers
17
views
Wagtail wagtailcore issue "NOT NULL constraint failed: wagtailcore_page.translation_key"
I am getting the error message on any call of Page model save method.
django.db.utils.IntegrityError: NOT NULL constraint failed: wagtailcore_page.translation_key
One of the Page Models looks like ...
2
votes
0
answers
19
views
How can I prevent saving document in libreoffice?
I am working on plugin development in LibreOffice. I need a plugin that prevents it from saving the file if it hasn't selected a tag when saving the file. It can also be done for office on Windows.
1
vote
0
answers
28
views
Save tf model in colab to drive
I have trained a tensorflow model for chatbot using Transformers in colab and now I am trying to save the model.
I have mounted the drive and tried saving the model using the following.
from google....
0
votes
2
answers
40
views
save each grepped line as a separate .txt file using bash
I have a file .txt with some informations, i need to grep the "Report:" line and save each line in a different .txt file!
it should result something like this in the end:
case1.txt
case2....
0
votes
0
answers
11
views
Sublime, history of change
I wrote the code in Sublime, then changed it and saved it by accident. I realized after a few days, because the results that the code spits out are wrong.
Is there any chance to get to that version of ...
0
votes
1
answer
21
views
How Do I Set A Variable To An Individual Value in A txt File Used For Data Storage?
As in the question I am having trouble finding a good answer on how to extract values from a txt file into multiple variables, my plan for this is to incorporate saving into the game I mentioned in my ...
1
vote
0
answers
32
views
Why am I receiving an error saving, wrong diskette message?
I recently updated R and R studio and when I tried to save a file, I received an error message that said:
Error saving (file name). The wrong diskette is in the drive. Insert %2 (Volume Serial Number:...
-1
votes
0
answers
10
views
mac - os catalina - Failed to save 'app.component.html': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser
I am unable to save files in VSC
I have tried below -
$ sudo chmod -R </Users/jameselcome/Documents/AStudy/my-first-app/my-first-app/src/app>
folder is set to read and write access
Installed ...
0
votes
1
answer
25
views
How to modify a Django Model field on `.save()` whose value depends on the incoming changes?
I have fields in multiple related models whose values are fully derived from other fields both in the model being saved and from fields in related models. I wanted to automate their value maintenance ...
0
votes
0
answers
8
views
Save Object mesh in Assets/Convert Default Asset File to Mesh Asset
I am working on a project where I have a script that combines all the meshes of a gameobjects childs into one mesh while in edit mode. Now the problem is that even though I have managed to then save ...
0
votes
0
answers
20
views
saving base64 encoded images to .csv file changes string
I'm using this script to batch encode local images to dataframe:
images_dir = "datasets/opensea.com/bored_apes/bayc/"
apes['image']=''
# iterate through dataframe to encode local image
for ...
0
votes
1
answer
38
views
Why is my image saving script not working in R?
I have been using the following function to save images from R scripts.
imageSave<-function(file,w=11,h=8.5,res=300,p=24, antialias = "default"){
plot<-recordPlot()
png(filename=...
-1
votes
0
answers
7
views
How to upload(save) R object(data ) in google colab
Im student that starting 'Seurat' in google colab
I tried many ways to save Seurat object in google drive.
But, i didnt won
In my situation is just mount google drive, when i had cut-off runtime, I ...
0
votes
0
answers
8
views
How to save files from jupyter
I'm learning finance and statistics via jupyter and I'm taking notes with the # action in the files I create on jupyter, but I'm pretty worried that if somenthing happens to my computer I'll lose ...
0
votes
0
answers
24
views
Saving an image from ESP32-CAM to SD Card
I've try to save an image from ESP32-CAM to SD Card. After uploading the code, i opened the Serial Monitor at a baud rate of 115200, then pressed the ESP32-CAM reset button to turn on ESP32CAM, i got ...
0
votes
2
answers
20
views
errorhandeling does not work on SaveAs if file already open
I have a small code that needs to run when closing the excel file.
the file needs to make a copy that is read only so that the original can be amended at the same time.
this part works if the readonly ...
0
votes
1
answer
19
views
How to export a plot in PDF with the text and the legend?
When I try to export a plot in PDF, all the text (titles, axis…) and the legend disappear. Exporting the plot as a PNG works.
I just use the “Export ▾” button in the plot panel.
Is there a way to keep ...
-2
votes
2
answers
29
views
Save int value when restarting game [closed]
I'm currently making a snake game in java and I have a death menu where every time I die, the menu launches. I have a highscore aswell, the thing is that the highscore is not saving and restarting ...
0
votes
0
answers
28
views
Pickle is using way too much space
I have a list which contains a very large numpy array, a very small numpy array, and some fields which are very small in size. I wish to save my list as a file and load it later on. If I use pickle as ...
-1
votes
0
answers
13
views
Unable to view a saved graphite dashboard (its empty)
hoping someone can help me out here.
I have setup graphite on a raspberry pi running FreeBSD, and I am logging some data (only temperature at the moment, but will later include more metrics). I can ...
0
votes
0
answers
20
views
Java Swing - Save infos of the figures as SVG
try {
FileInputStream f = new FileInputStream("proj.bin");
ObjectInputStream o = new ObjectInputStream(f);
this.FigureList = (ArrayList<Figure>) o....
0
votes
0
answers
11
views
How to save non-print Python cmd output in text file
While running web scrapping I am getting unintentional output to cmd. I was curious how to save all content of cmd in a text file. If we use the print function then possible but how to store the non-...
-1
votes
2
answers
39
views
How to make this code go back the start of the problemstate?
I am trying to create a program where you can choose 3 options. Review, cheat sheet and math equations but don't worry about that. Is there any way to loop "def r()" to "problemstate()&...
0
votes
0
answers
14
views
how to save a bitmap and upload it in editable mode?
im doing a painter project in c# in windows forms application and im trying to save the drawing and upload it the picturebox . the image is load, but im not able to keep working on it . is there a way ...
0
votes
1
answer
35
views
If fprintf writes a string and fwrite writes bytes; then, for what is used fopen’s parameter “w” and wb?
I have the following code, if I change "W" for "Wb" it works identical, Why?
void wrte (){
//tpeDta roundLotSze[] = {65,66,67,68};
tpeDta roundLotSze[] = {66,65,6767,75};
...
0
votes
0
answers
21
views
resuming training of pytorch model
hi everyone l’m trying to train a model of neural network on cifar10 (Resnet) when i try to resume my my training using a checkpoint that i saved earlier like this :
!python '/content/drive/MyDrive/...
0
votes
2
answers
35
views
How do I add user input from JTextfield to Text file
I've been trying to create a simple register form using GUI and I am having a hard time in saving the user inputs from JTextfield to a txt file. So far this is what I have come up with:
package com....
0
votes
1
answer
46
views
Name has invalid chars in Unity
I am currently working on a Save/Load System for my game in unity. But I have no idea what I did wrong. Here is my error:
Here is my error:
ArgumentException: Name has invalid chars
System.IO....
1
vote
1
answer
21
views
How to save a 'pos dictionary' type of object? (NetworkX)
I am using the networkx as nx. After creating a graph object (G), I use the data = nx.spring_layout(G) method to generate a dictionary (pos). Generating this pos object is very time-consuming and I ...
0
votes
0
answers
14
views
in excel use checkbox to mark date and time
In my excel code the goal to use the checkbox to mark the date and time that it was checked. Once it is checked the cell in 1c should display the date and time it was checked. When the excel sheet is ...
1
vote
1
answer
25
views
Python - saving the for loop's result
result = [ ]
cents = [25, 10, 5, 1]
number = 141
for cent in cents:
if number >= cent:
helper = number // cent
number = number - (helper*cent)
result.append(helper)
...
0
votes
1
answer
33
views
What to send as Content
In my application, I save data to Firebase and to local storage using the Room library. With Firebase, everything is clear to me. But with Rom I had questions. I can't figure out what to pass to the ...
1
vote
1
answer
48
views
Ruby 3 - Save without validation no longer works on one table
I am upgrading an application from Ruby 2.6.10 to Ruby 3.0.4 and have a very odd situation. When I execute the command record.save(validate: false) on one of my tables I am getting the error message:
...
0
votes
0
answers
22
views
Is it possible to save an R script, with unique parameters used in the script, after it has run?
I'm using R for some processes, and I was wondering if it was possible to save a copy of an Rscript with the parameters in the script after it has ran - instead of args[1]. This would let the user be ...
0
votes
1
answer
20
views
what to do when you won't save
when I load a new scene I get this error: NullReferenceException: Object reference not set to an instance of an object GameController+d__16.MoveNext () (at Assets/Scrips/GameController.cs:76) ...
0
votes
1
answer
29
views
Pass context to store data in Room
I am trying to save received data to local storage using Room library.
I have created a database class in which I define the parameters I need and define the context
And also I have a class in which I ...
0
votes
1
answer
16
views
Form and Sub form save with only one button on MS Access
I want to add record with one button on form and sub form. it should remain on current record when cancel or not click button.Product Detail
iNVOICE NO
New Products://i.stack.imgur.com/NYbiL.png
...
1
vote
1
answer
51
views
Save data to local storage using Room
I apologize in advance if the question seems incomprehensible, since android development and kotlin are not my main stack. I will try to explain in as clear a language as possible.
I have a class that ...
0
votes
1
answer
28
views
How do I properly save state in case of an exception in python?
I want to
load data from files,
work on that data,
and eventually save that data back to files.
However, since step 2 may take several hours I want to make sure that progress is saved in case of an ...
-1
votes
1
answer
18
views
How to Read / Write / Edit Files with Javascript
I want to create a game that saves your progress using files. Is it possible to do something along the lines of this pseudo-code?
/*game_data = The game's content*/
function saveGame () {
...
0
votes
1
answer
44
views
Data type false when saving to Room
I am writing an android application in Kotlin. Trying to save data to local storage using room.
But I have an error: "Cannot figure out how to save this field into database. You can consider ...
0
votes
0
answers
10
views
Download and save data in grass gis
I am very new to GRASS GIS and I am trying to download some data. As in this example ( https://grass.osgeo.org/grass80/manuals/r.import.html ) I am using wget to download bioclimatic data (bioclim ...
0
votes
1
answer
30
views
c++ write date as bytes in binary file and read in same view
I have multiple dates in yyyy-mm-dd format, which I need to write in a binary file as bytes and then read them in the same format. Here is the method I have for writing the file (but seems it is not ...
1
vote
1
answer
21
views
How to save plots in a loop to different pdfs in R (for lmer plots)?
in each itteration of a loop I want to save my plots into a pdf. I have found some good code examples (e.g. here), but for some reason it doesn´t work in my case. What have I been doing wrong?
I did ...
0
votes
2
answers
26
views
I want to save a .text file in a specific file directory for information entered by someone
Whenever this function is called all the information is saved to the list playerInfo. Now I would like to save this list as a .text file with the name being the name enter by the user (p_name) for ...
0
votes
1
answer
8
views
How I can extract, or save data from promise
people please help me with this.
I have an object, and I need to add some data to this object from json file.
let data = {
'test1':1,
'test2:2
}
function convert(){
fetch("./test.json&...