Skip to content

Content Tagged "path"

Page 1 of 1

Content Tagged "path"

Docker Exec Path-based Commands

November 17, 2017Categories: IT, Tutorial
TL;DR: Use sh -c "command with arguments" I've tried to execute in order to see the size used by a container's logs. Unfortunately, this resulted in an error along the lines: du: C:/Program Files/Git: No such file or directory This means that my git bash prompt interpreted the / itself. In…

Redis on Windows - Save RDB but Not Able to Persist

September 23, 2017Categories: IT, Tutorial
TL;DR : My windows service wasn't installed properly. Change the config file to point the DB to an accessible directory and reinstall the service. When trying to build a perioduc Celery task, I got the following error with Redis on Windows (running as a windows service): redis.exceptions…

Change the File Extension in Typescript - Using Path

April 28, 2017Categories: Software, Tutorial
Following from my previous post , I've updated the function to use only the path module. Now, the code looks like: I've updated the workflow presented previously to: isolate the dir , ext and root components of the path replace the ext with the new extension return the normalized version…

Check Duplicated Paths with LoDash (and Angular 2)

February 20, 2017
One of the things I'm looking at is to be able to create a list of paths I'd want to scan. The first iteration had blind addition to the list. However, this would make the user's responsibility to manage the duplicated paths, which is not really nice. Therefore, I think it's a good thing to add some…

Custom saving path for FileField

August 30, 2010
Saving FileFields is pretty annoying anyway (all the manual stuff, saving chunks by hand...). The top bother is actually the limited way of creating paths: In MEDIA_ROOT , only with strftime arguments. While this does limit the number of files in a directory, it's not as customisable as it…

All tags