KoblentsBlog Photography
Contact About
Published Jun 27, 2014
I have a pair of lovely 128GB SD cards. Of course, their filesystem isn't the usual FAT or vFAT because of how big they are - it is, in fact, exFAT, for which my linux distro (Linux Mint 14) didn't come with support. Thankfully, it's super easy to get it to work:
UPDATE 8/9/14: Mint 16 is even simpler.
1
sudo apt-get install exfat-utils exfat-fuse
 
Published Jun 26, 2014
A hard link is a link to an inode. If you have a file on your filesystem, the traditional pointer to it is a hardlink. If you create more hardlinks, then deleting, moving, or renaming the original hardlink has no effect on other hardlinks - they still all point to the same area. Modifying the file changes the data at that inode, so all hardlinks will have modified data. Deleting one hardlink does nothing to the data, until all links are deleted, at which point the area is freed.
Because hardlinks point to an inode, they can only be made for the same filesystem.
A symbolic link, or a soft link, simply points to a path - absolute or relative. They can span filesystems, naturally. A softlink has to be dereferenced to find out the underlying inode storing the data. Because of this, softlinks can be "broken" - referencing files that don't exist.
More stuff in the list of things I should have known, but never really needed to.
 
Published Jun 26, 2014
Another thing in a long list of things I wish I had known before:
Commands in makefiles can take prefixes:
-
,
@
, and
+
.
-
suppresses exit status. Great for a
make clean
that looks like:
123
clean:
	-rm -rf *.o
	-rm -rf $(TARGET)

This is lovely because often you don't care if a command fails - you don't care if your object files were already deleted, you want to make sure, and you don't want an exit with a failure just because there's nothing to delete.
@
simply means: don't print this command when you execute it. For example, when your command is to print something, you don't need to also print the command to print something.
+
basically negates the switches
-n
,
-t
, and
-q
which tell make not to actually run. So if you want to launch a make command with a flag telling it not to run, stick a + sign in front and it will, in fact, execute. Nifty way to take a debugging/testing command, test it, then actually run it if it looks good.
 
Published Jun 9, 2014
Simpson's paradox: where each individual group appears to show a clear trend, yet when the groups are combined the trend disappears or reverses.
 
Published Jun 9, 2014
Every time I look, I find new features of C. Well, not new features of C - very old features of C I've never seen before. Here's one:
setjmp
and
longjmp
.
 
 
« July 2014 April 2014 »
© Copyright Koblents.com, 2012-2025