Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

2013-02-28

How to avoid Mac temporary files in archives

> tar --exclude "._*" -zcvf template.tgz template
template/
template/.classpath
template/.project
template/build.xml
template/src/
template/src/log4j.properties
template/src/main/
template/src/main/dml/
template/src/main/dml/domain.dml
template/src/main/java/

(VS)

> tar -zcvf template.old.tgz template
template/
template/._.classpath
template/.classpath
template/._.project
template/.project
template/._build.xml
template/build.xml
template/._src
template/src/
template/src/._log4j.properties
template/src/log4j.properties
template/src/._main
template/src/main/
template/src/main/._dml
template/src/main/dml/
template/src/main/dml/._domain.dml
template/src/main/dml/domain.dml
template/src/main/._java
template/src/main/java/

You can also add the following to /etc/profile :
# disable special creation/extraction of ._* files by tar, etc. on Mac OS X
echo "[/etc/profile] disable special creation of ._* files"
COPYFILE_DISABLE=1; 
export COPYFILE_DISABLE

Mac-specific option:
# from man bsdtar
--disable-copyfile
Mac OS X specific.  Disable the use of copyfile(3).

Credits:

Joana

Sources:

http://stackoverflow.com/questions/8766730/tar-command-in-mac-os-x-adding-hidden-files-why

http://superuser.com/questions/61185/why-do-i-get-files-like-foo-in-my-tarball-on-os-x

http://superuser.com/questions/198569/compressing-folders-on-a-mac-without-the-ds-store

2011-03-24

How to split large files? (Mac)

You can use the split command via the Terminal:
split -b2000000000 inputfilename
will generate 2GB files with names starting with the letter x and two appended sorted characters, eg: xaa, xab, xac, etc. The original file is left intact.

To put the files back together, type in the Terminal:
cat x* > completefilename

Reference: Mac Forums

2009-11-13

Mac VS PC accident



This is my PC telling what happened to him last week... Actually the culprit was the network cable, but the end result was the same.

2008-11-26

Computer protection policy

One thing is to teach computer security; another thing is living it! Due to the recent theft, I had to practice more of what I "preach".

I redesigned my identity management policy, using a multi-tier approach, to balance usability and overall security.

I upgraded the use of data security mechanisms. Consider Windows file encryption capabilities (don't forget to backup your certificate, though). If you're using a Mac, consider FileVault. TrueCrypt is also highly recommended, for the most sensitive files.

The data backup procedures were also revised. I finally finished a batch file script, relying on Windows robocopy. The easier it is to backup, the more often you can do it. This decreases the chances of data loss. However, remember to find an alternate, safe physical location for your backup disks. They won't be of any use if they're stolen along with your computer. You can also use an on-line backup service, for less sensitive data.

Currently I'm looking at GadgetTrak or similar service, to enhance the chances of recovering a stolen computer.

In short, take good care of your computer, and prepare for worst case scenarios. It can happen to you!

2008-10-09

In defense of Windows

I used to think Macs were great, but some bad experiences have left me seeing the down side of single-vendor lock-up. I also think that currently Apple is scrambling to keep up with multiple fronts - Mac, iPhone, MacOS - and it's superior quality premise is getting weaker.

For me the ideal solution would be Linux. I like SUSE. But currently I'm pretty comfortable with Windows XP (no, I don't like Vista that much, but eventually will end up using it).

I found the following article with a good case of
Why PCs are better than Macs.

2008-03-31

Mac's Exposé and Spaces coming to a Windows near you

Macs have the edge on Windows (XP and Vista) when it comes to window management.

First it was Exposé, a quick and intuitive way to find open windows or to uncover the desktop.

More recently, it was Spaces, an easy to use virtual desktop manager that allows you to have one desktop for your email, one for your work, on for documentation, etc.; and switch between them.

Otaku software brings these features to Windows with TopDesk and DeskSpace.

Highly recommended! Give them a try and "see what you think", literally ;-)