Removing Dot-Underscore Files ~ Kadin2048's Weblog
This is just a quick note, mostly for my own reference, of a few ways to easily delete the dot-underscore (._foo, ._bar, etc.) files created by (badly-behaved) Mac OS X systems on non-AFP server volumes.
Related cards:
Otaku, Cedric's weblog: Next Generation Java is not very different from today's Java
In a recent post, Stephan Schmidt makes several suggestions in order to write "Next Generation Java". Unfortunately, I disagree with most of them
How to reduce a video's file size with ffmpeg
Using ffmpeg, you can easily re-encode a video to reduce its file size.
Command
Do it like this:
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset slow -c:a copy -movflags +faststart output.mp4
Arguments
-
-i input.mp4
specifie...
Git: How to remove ignored files from your repository's directory
When you have files in your .gitignore
they won't be considered for changes, but still you might want to get rid of them, e.g. because they clutter your file system.
While a regular git clean
will ignore them as well, passing the -x
switch ...
problem updating perl package(s) on freebsd `pkg-static: lstat(..../.packlist): No such file or directory
If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.
For this error there is this solution which worked perfectly for me:
20141127:...
Cucumber: Removing uploaded files after test runs
Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file in features/support/
.
Otaku, Cedric's weblog: Why Java doesn't need operator overloading (and very few languages do, really)
The number of operators that you can overload is very small and each of them is attached to very specific semantics that makes little sense outside the realm of scalars and of a few other specialized mathematical concepts (e.g. matrices).
How to check your file system's integrity with fsck
To force a check on your next reboot (here for your root partition), simply:
touch /forcefsck
To manually do this, here is how to do it for the first partition on sda
, when you are using ext4:
fsck.ext4 -fn /dev/sda1
-
-f
forces th...
Dynamically uploading files to Rails with jQuery File Upload
Say we want …
- to create a
Gallery
that has a name andhas_many :images
, which in turn have a caption - to offer the user a single form to create a gallery with any number of images
- immediate uploads with a progress bar per image
- a snapp...
Carrierwave: Using a nested directory structure for file system performance
When storing files for lots of records in the server's file system, Carrierwave's default store_dir
approach may cause issues, because some directories will hold too many entries.
The default storage directory from the Carrierwave templates loo...