Categories
Database Development

Maintain file database (platform agnostic)

I wonder how can one maintain embedded-like database based on file/folder items. Is it possible to stick to any kind of logic along with the folder structure, that some application (or script) can maintain? I am not searching for a specific product rather than a concept, how to maintain this structure across all major platforms […]

Categories
CMS Drupal Mastering Development

How to display uploaded files with uncommon extensions using file field?

I have a standard Drupal file field to upload different files via this field. I have set the "allowed extensions" to: txt, pdf, doc, docx, pages, key, ppt, pptx, numbers, xls, xlsx, csv, tar, gzip, tgz, gz, zip, ics, html, css, inc, srt, yml, xml, plist, config, patch, info, ico, mp3 But not all uploaded […]

Categories
Mastering Development

How to save files with different names using for loops in R?

I have 168 files saved in a list and I’m trying to save them to my folder using a for loop. I need to name the file as provided below, but what my code does now is save 168 files with different names, but it saves the same file 168 times instead of looping through […]

Categories
Mastering Development

How to lemmatize text?

Currently I am trying to read in a file and lemmatize it to get the base words. However, I keep getting the same error. I have tried looking at previous questions but could not find solution. (Lemmatize tokenised column in pandas) My code: import pandas as pd import json, csv import re import nltk from […]

Categories
Mastering Development

TypeError: (data || []).forEach is not a function

I’m trying to render the data using ant design table but it doesn’t work. I think it’s because of the object key "children" in my response. When I run my code I get the error: TypeError: (data || []).forEach is not a function I would also like to note that I have uploaded csv file […]

Categories
Mastering Development

Is it possible to create a new folder and then export R data to this folder?

Initially, I have the following code path="M:/MainFiles/" Index="Columbus" write.csv(data,paste(paste(paste(path,Index, sep = ""), Sys.Date(), sep = "_" ), ".csv", sep = "")) This file is saved to "M:/MainFiles/Columbus_2021-01-21.csv" I want that the file is saved to "M:/MainFiles/2021-01-21/Columbus_2021-01-21.csv" , where 2021-01-21 is Sys.date(). As a result, every ay a new folder is created and the file is […]

Categories
Mastering Development System & Network

Cleaning different formats of data and storing it using AWS?

End Goal: Have data (txt, csv, xml) dumped on some sort of AWS product that gets cleaned (fixing time formats) and then stored for safekeeping on another AWS product so it can be audited when needed. What’s the cleanest/best practice way of achieving my end goal? My guess at what I have to do: make […]

Categories
User Help

Do uploading files create ewaste? [closed]

I want to know that Do uploading files into server create ewaste? Everytime files (photos, videos, xml, csv, py, jar, etc) files get uploaded into the server of various websites, apps, or web apps. As the file get uploaded into the server and the server uses real hardware for storage. Do this work create ewaste […]

Categories
User Help Web Apps

Uploading files to Azure Storage via a PHP web application

My PHP web application and mySQL database are both hosted on Azure. My application is used by trade union reps to record details of members’ cases (ie. employment issues) they are assisting with. A key functionality is the ability to record notes from meetings and to upload documents relating to to those meetings (eg. Disciplinary […]

Categories
Mastering Development

Fread is not reading the columns names properly

I am trying to use the Apple mobility reports, which can be found here. I am using the following code as the url changes : library(lubridate) library(dplyr) library(data.table) Chemin = "F:/DGTresor/00.Refontes/09.RapportsMobilite/" #Some path get_apple_target <- function(cdn_url = "https://covid19-static.cdn-apple.com", json_file = "covid19-mobility-data/current/v3/index.json") { tf <- tempfile(fileext = ".json") curl::curl_download(paste0(cdn_url, "/", json_file), tf) json_data <- jsonlite::fromJSON(tf) paste0(cdn_url, […]