What steps can I give a windows user to make a given file writeable

Imagine we have a program trying to write to a particular file, but failing. On the Windows platform, what are the possible things which might be causing the file to be un-writable, and what steps...

How to import a module given the full path?

How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option.

Git: How to remove file from index without deleting files from any repository

When you use git rm --cached myfile it doesn't delete from the local filesystem, which is the goal. But if you've already versioned and committed the file, pushed it to a central repository, and...

How to create file directories and folders in Android data/data/project filesystem

I am working on a video editor program and am fairly new to android and java. What I would like to happen is when the user presses "create new project" button, a dialog pops up asking the user for...

How expensive is File.exists in Java

I am wondering how File.exists() works. I'm not very aware of how filesystems work, so I should maybe start reading there first. But for a quick pre information: Is a call to File.exists() a...

remove xcode recent projects from dock menu

I would like to remove from Mac OS-X taskbar (Dock) the XCode's recent project menu items. Everywhere I am searching it says the File->Open Recent->Clear Menu it will clear, but not. It doesn't...

Convert a directory structure in the filesystem to JSON with Node.js

I have a file structure like this: root |_ fruits |___ apple |______images |________ apple001.jpg |________ apple002.jpg |_ animals |___ cat |______images |________ cat001.jpg |________...

How to change metadata with ffmpeg/avconv without creating a new file?

I am writing a python script for producing audio and video podcasts. There are a bunch of recorded media files (audio and video) and text files containing the meta information. Now I want to...

Insert image into Reportlab either from PIL image or StringIO

I'm trying to insert a barcode image into Reportlab. I know there are a lot of questions asked on this, but all of them assume that you already have the image file in the directory or on the...

Automatically apply "git update-index --chmod=+x" to executable files

I frequently add bash scripts to my Git repository, and the scripts have executable permissions in the Linux filesystem prior to the git add. But after pushing the added files to a remote...

How to remove an ACL from a Mac OS symlink - in C

It's a known problem on MacOS that the supplied command line tools (chmod) cannot remove an ACL from a symbolic link: https://discussions.apple.com/thread/1440377?start=0&tstart=0 So I thought I'd...

Remove directory which is not empty

In my Node application I need to remove a directory which has some files, but fs.rmdir only works on empty directories. How can I do this?

How do I fix "Error: MONGO_URL must be set in environment" on ubuntu using forever and startup script?

I just deployed a meteor js app on an EC2 ubuntu server. I installed forever and added the following startup script to /etc/init/meteor.conf start on (local-filesystems) stop on shutdown script ...

How does HDFS write to a disk on the data node

I not an expert in how File Systems work, but this question can help me clear some vague concepts. How does HDFS write to the physical disk? I understand HDFS runs on ext3 file system disks...

How are HDFS files getting stored on underlying OS filesystem?

HDFS is a logical filesystem in Hadoop with a Block size of 64MB. A file on HDFS is saved on the underlying OS filesystem, say ext4 with 4KiB as the block size. To my knowledge, for a file on the...

How to debug dm-verity block corruption issue in Android

dm-verity is complaining of a dm-verity data corrupted. Is there any pointers or idea how we can debug such filesystem corruption issues.

HDFS blocks Vs HDD storage blocks

I am working with Hadoop HDFS for quite some time and I am aware of the working of the HDFS blocks(64 Mb, 128 Mb).but still I am not clear with the blocks in the other file systems for example...

Access build-id at runtime

I am trying to figure out how to access the build-id generated by the linker at runtime. From this page, https://linux.die.net/man/1/ld When I build a test program like: % gcc test.c -o test...

What does Get-Content really output, a string or several properties?

What does Get-Content really output, a string or an object with several properties? If it's an object, which property contains the string, and can I modify that property? The file is only one...

Provide Flux to signal events without a concrete value?

How can I setup a stream/publisher with project Reactor that emits events over time but without any concrete values. I thought about Flux<Void> but the documentation mentions that Flux<Void> is an...

Truncated file in XFS filesystem using dd - how to recover

Disk layout My HDD raid array is going for his end of life, and I bought some new disks for it. Old HDD I have used as a storage of raw disk images for kvm/qemu virtual machines. Raid array was...

Strange operator/ of std::filesystem::path

auto path = std::filesystem::path("c:") / "PosteClient.log"; results in c:PosteClient.log instead of c:\PosteClient.log This is a strange behavior for me as the result on windows can't be used...

<b-form-file> does not keep the filename visible when switched to other components

I am new to Vue and using Bootstrap view for my form. I am using b-form-file for uploading a file in component say Component2.vue and I am able to browse my local filesystem and select the file....

Disable file output of hydra

I'm using hydra to log hyperparameters of experiments. @hydra.main(config_name="config", config_path="../conf") def evaluate_experiment(cfg: DictConfig) -> None: print(OmegaConf.to_yaml(cfg)) ...

Project and build structure for Microsoft DirectShow based virtual webcam application on Window 10

I am trying to create simplest virtual webcam application which can display image file on my local filesystem. After initial research on stackoverflow links and seeing OBS Studio source code I got...

How to read COM ports? navigator.serial.getPorts returns empty list

I have a small number of USB serial interfaces connected (a HF transceiver, CW keyer based on Arduino) and two bluetooth ports, that I never use and am not sure where do they come from (probably...

The Android SDK location cannot be at the filesystem root. [Mac]

I have try installing Android Studio on my Mac, and I stuck 2 days with this problem, I do each solution found on Stack, and non of them help. Start with very simple installation, things working...

Error about Android Studio on Macbook M1: An error occurred while trying to compute required packages

I've downloaded Android Studio from the official website, the one for M1 chip (arm). Basically running it for the first time, the error is the following: An error occurred while trying to compute...

How to compile and install tensorflow-2.8 from source for the aarch64/arm64, now that the version depends on "tensorflow-io"

I followed the compile guide found in https://www.tensorflow.org/install/source to compile tensorflow from source successfully on Oracle ARM Ampere instance and managed to generate the "whl"...

League\\Flysystem\\AwsS3v3\\AwsS3Adapter::__construct(): Argument #1 ($client) must be of type Aws\\S3Client, Aws\\S3\\S3Client given

I have installed the s3 flysystem package by running the following composer command in my Laravel 8 project composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0" and tried to...