Archive

Posts Tagged ‘Mac’

MKV file slow loading problem in Mac OSX

March 14th, 2011 1 comment

When it comes to watching MKV files with embedded subtitles, it often takes a very long time to load the files no matter you use Quicktime or VLC. Here is a simple solution to fix it:

1. Open the Terminal.
2. Type “sudo chmod -R 771 /usr/X11/var/cache/fontconfig”

I don’t actually know why the privilege need to be changed in order to play MKV instantly, but it works like a charm.

Categories: Technology Tags: ,

Vim – commenting a block of code

December 1st, 2010 No comments

Recently, I have seriously started using Vim as my main text editor. It’s really cool stuff, because anything based on terminal is awesome :)

From today I’ll probably start to post a few hints that I found during the learning of using Vim. The purpose is to share some useful tips, and also keep my own references.

First tip I would like to share to day is to commenting a block of text using Vim.

  1. Highlight the block of text to be commented using the blockwise visual mode (ctrl-v), you don’t really have to highlight the entire code block, just the first character of the first line will do.
  2. On Safari

  3. Press the capital letter ‘I‘, and write whatever the comment symbol for the situation (e.g. ‘//’ for C, and ‘%’ for LaTex)
  4. On Safari

  5. Press the ESC key. The comment symbol will be automatically inserted at the front of each line
  6. On Safari

To uncomment, you can use the similar idea by first block visual select all comment symbol you are using, and then press ‘d‘ to delete the selected. There is no need to press ESC this time.

Categories: Technology Tags: , , ,

Random Thoughts about Apple’s Back to the Mac Event

October 21st, 2010 No comments

On Safari

Apple’s “Back to the Mac” special event has just finished, having watched the partial event video, here are some random thoughts about this event.

About the Lion

I think one of most important things I’m looking for is the sneaky peak of the next OSX release, the “Lion”. We do have a lot of expectations about this release having to see the code name — the King of the jungle. Another thing that is worth looking at is that having the last major architectural improvement from 32bit to 64bit, apple could now concentrate on providing us with new features. The following is some of the new features introduced in this event:

  • App Store
  • Mission Control
  • LaunchPad
  • Full Screen App

Well, the concept of app store is good. Having one central location for finding and installing all software is really nice. The open source community (e.g. Ubuntu) has been doing this for years. However, since this is the Apple who is doing it. I do have the concern that I need to ‘jailbreak’ a Macbook in order to install softwares. Do note that Steve Jobs said “it’s not the only way for installing apps”, ‘jailbreak’ a Macbook probably won’t that necessary in the near future, but it is a possibility. The app home page and mission control are the very nice small things that Apple is really good at. Making small things really enjoyable to use. The overall feeling is that Lion does not have that much of improvement :) Maybe I’m asking too much.

About FaceTime

Video chat, Apple introduced this produce like it has never been done before, and they are the inventor of Video chatting. I think this just gets over blowed. I mean, what are the key difference between FaceTime and Skype, and many other softwares that supports video chatting (e.g. gmail, msn, qq etc.)

About TouchScreen

Yes, I completely agrees, touch screen is a useless for note book computers. I mean who wants to have there fingers touching around their computer screen? It makes the screen dirty overtime, and it’s just not comfortable.

Some Little Things

I noticed that in order to watch the event video right after the event. The first browser that is able to do it is Safari. If you’re using other browsers, you just have to wait a bit longer. Here are some screenshots when I was trying to watch the video earlier:

Using Safari on Macbook Pro:

On Safari

Using other browser (Google Chrome) on Macbook Pro:

On Safari

Categories: Technology Tags: , ,

Early thoughts about Safari 5

June 7th, 2010 No comments

Woke up this morning, with WWDC news flying all over the Internet. iPhone 4, Safari 5 and many others. This shows that Apple is still the innovation leader, with every product released with a “WOW”.

I have removed firefox away from my dock, and start trying out the new Safari 5. Will it actually replace firefox? I see the light, but it will not happen in a long time. I have only used it for 10 minutes, so this is a very early review. Welcome to leave your thoughts in the comment.

Start with what I noticed immediately, tab management:

Now, we can finally configure (not using the command line) Safari 5 to open new pages in tabs instead of windows. Seriously, this should be enabled a lot earlier. What’s the point of having tabs while still using many windows? Remember how we use to do it in command lines? You don’t have to any more.

safari 5 new tabs

The Reader:

The reader function is pretty cool. I don’t really mind to read articles within the web pages, but the nice feature about reader function is how it prints the web article. You can use “Shift+Command+R” to start or stop the reader for particular website article.

The Search Engine:

Another feature is more built-in search options (Bing search). This doesn’t excite me much. How about let user decide what search engine they want? How about Google Scholar? How is this helpful to have 3 options but they all offer the same functionality? Think about it, it does not make sense. So give me other options for other search engines, or let me decide.

Safari Developer Program:

Among all these new features, this is very good news. Yes! Extensions! This is why leaving firefox is heart breaking. Let’s see how this works out. Really looking forward to it!

Categories: Technology Tags: , , ,