How do I determine file encoding in OS X?

I’m trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn’t seem to understand them. Running cat my_file.tex shows the characters properly in Terminal. Running ls -al shows something I’ve never seen before: an “@” by the file listing: -rw-r–r–@ 1 me users … Read more

“You have mail” message in terminal, os X [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions about general computing hardware and software on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question Few days ago I got this message in my … Read more

Do on-demand Mac OS X cloud services exist, comparable to Amazon’s EC2 on-demand instances? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question Amazon’s EC2 service offers a variety of Linux and Windows OS choices, but I haven’t found a service offering a similar “rent by … Read more

In-place edits with sed on OS X

I’d like edit a file with sed on OS X. I’m using the following command: sed ‘s/oldword/newword/’ file.txt The output is sent to the terminal. file.txt is not modified. The changes are saved to file2.txt with this command: sed ‘s/oldword/newword/’ file1.txt > file2.txt However I don’t want another file. I just want to edit file1.txt. … Read more

How to configure Mac OS X term so that git has color? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. The community reviewed whether to reopen this question 8 months ago and left it closed: Original close reason(s) were not resolved Improve this question I’ve seen … Read more

How to remove all subviews of a view in Swift?

I’m looking for a simple method to remove at once all subviews from a superview instead of removing them one by one. //I’m trying something like this, but is not working let theSubviews : Array = container_view.subviews for (view : NSView) in theSubviews { view.removeFromSuperview(container_view) } What I am missing? UPDATE My app has a … Read more