Questions tagged [shared-file]

24 questions
11
votes
1 answer

How to use shared uploaded file on Google Colab

I am using Google Colab with my friend for a group project. I uploaded a csv file and had pandas read it as a dataframe: from google.colab import files uploaded = files.upload() import io df =…
5
votes
1 answer

How to save numpy array from PySpark worker to HDFS or shared file system?

I would like to save/read numpy arrays from/to worker machines (function) to HDFS efficiently in PySpark. I have two machines A and B. A has the master and worker. B has one worker. For e.g. I would like to achieve something as below: if __name__…
Bikash Joshi
  • 103
  • 2
  • 9
4
votes
2 answers

is there a way to synchronize write to a file among different processes (not threads)

My project requires being run on several different physical machines, which have shared file system among them. One problem arising out of this is how to synchronize write to a common single file. With threads, that can be easily achieved with…
Daniel
  • 1,484
  • 5
  • 24
  • 42
3
votes
0 answers

Do I need lock or mutex for shm_open

I would like to do multi-process programming where I need to share data (reader/writer case). My idea is to use shared memory to track read/write index. And the index indicates the shared file index. For example, if write index = 2, it means writer…
chang jc
  • 489
  • 8
  • 16
3
votes
3 answers

Google drive api add shared folder to my files

I'm creating a PHP script that will create folders within a Google Drive account. Once the folder is created I will then then share it using the permissions, with other users of my google apps domain. I've created this part successfully, now I need…
Mix Kira
  • 107
  • 1
  • 8
1
vote
1 answer

How to use the same shared disk/filesystem with boltdb?

I need to share a boltdb database amongt 2 processes (on 2 different linux hosts). One will be alive, the other will be a cold standby that is woken up by pacemaker when the first one is detected as dead. But problem I'm seeing is that when the cold…
Kum
  • 61
  • 1
  • 8
1
vote
1 answer

Common shared CSS JS files in a directory shared between similar sites?

Backgournd info: I have a ISS6 webserver hosting multiple websites. I have about 15 domains that could be considered "sister" sites that share styles, layouts, etc but they still will have their own customization styles. (I haven't created anything…
Scott
  • 11
  • 2
1
vote
1 answer

How can I write image files in iOS such that I can open them in the built in Photos app?

I'm pretty new to iOS development and I need the ability to dump some open GL framebuffers to png files for rendering engine debug purposes. I've found some great boilerplate code out there for doing this by reading the buffer into a UIImage object…
Joey Carson
  • 2,973
  • 7
  • 36
  • 60
1
vote
1 answer

Mercurial repository & MSVS - two projects & shared files

I am currently developping an application in MS VS2010 that's based on a client-server architecture with one project for each part in VS. Until recently, they both had their own repositories in Hg, but I decided to move them together as there are…
0
votes
1 answer

Write to a file present in Linux system having a Samba server from a windows system

I need to write to a file present in Linux system having a Samba server from a windows system through C# code. I am just in the stating phase of evaluation, so I don't have a linux system with samba server now to test my code. I found 2 useful…
Sunil
  • 1,941
  • 3
  • 19
  • 25
0
votes
1 answer

How to get the filename of a shared WhatsApp text file in Xamarin Forms Android?

I used to use the following method to get the name of a text file shared via WhatsApp to my app: string GetIntentFilename(Android.Net.Uri uri) { string filename; string temp; using (var c1 = ContentResolver.Query(uri, null, null, null,…
jho
  • 199
  • 1
  • 8
0
votes
0 answers

Airflow Shared folder ownerships

I have mistakenly changed the ownership of /shared folder using chown airflow:airflow -R /shared/ After this operation the Airflow is showing error as [DAG Import Errors (10)]). There are three linux ec2 machines for Airflow I reverted the ownership…
0
votes
1 answer

Why duplicate excel files are created when saving a shared file

We have an excel file on a shared(network) drive. This excel is being used (Updated and modified) by multiple team members across the globe. We have the shared option set for this file (Image below). Along with the users, this file is accessed…
VIRIYALA NARESH
  • 187
  • 1
  • 4
  • 17
0
votes
0 answers

Android Media Store API does not find image which have been created by Google Photo in External Storage

I try to implement a gallery app which also shows all locally stored images files grouped by their containing directories. To this end I build upon the MediaStore API. My code does not find local image directories, if these directories and the image…
user2690527
  • 1,729
  • 1
  • 22
  • 38
0
votes
2 answers

"Item not found" error is returned when i try to get file details that has been shared by the external user

Shared with me API provides me the list of all files and folders that are shared by internal and external users. The Shared API URL is mentioned below https://learn.microsoft.com/en-us/graph/api/drive-sharedwithme?view=graph-rest-1.0&tabs=http But…
1
2