Skip to content

Content Tagged "file"

Page 1 of 1

Content Tagged "file"

Remove Large Files in Git

September 6, 2018Categories: Software, Tutorial
TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example The other day I've committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check out a 1G file :( with no LFS…

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…

Change the File Extension in Typescript (or Javascript)

April 18, 2017Categories: Software, Tutorial
TL;DR: You need to get the root name (without the extension) and append the new extension. Then, it only depends on how tolerant you are. The other day I figured I needed a function to change the file extension (from a .jpg to a .nfo ). Since I haven't found a ready made function to do this, I…

Access Data Files for Local Tests in Android

March 9, 2016Category: Software
TL;DR: Put your data files in test/resources and access it with: I've got an android application with a module performing data processing (HTML scraping in fact). This part is pure java and all its tests are in the src/test path. My particular problem is that I have a set of (large-ish) files…

Get Access to Files in Genymotion

May 26, 2015Category: Software
Genymotion is a fine emulator. I'm using it as any normal user and once in a while I need to get a file from the VM to analyse (a DB file or a trace usually). Normally, the way I go is via the Device Monitor (which, in turn goes via adb). Granted, this is the universal method (read: works both on…

Split a Gradle Build File

November 30, 2014Category: Software
TL;DR: If you can, use ext {} with constants (hash). You can do call pointer things too! In the past days I've been trying to add some functionality to my Gradle build file so the version would be determined from the git tag. I've found this excellent entry showing how to get the actual string. My…

All tags