Fix missing Roboto Regular in Adobe Programs

If Adobe programs (Photoshop, Illustrator, Indesign, etc.) or MS Office cannot recognize Roboto Regular. Try this:

  1. Uninstall your current Roboto font set.
  2. Download and install this new OTF font set from here.
  3. Pay forward.
Advertisements

I recompiled Facebook Messenger with a good Unicode typeface

The new Chatheads feature of Facebook Messenger (Android) is cool but the engineers at Facebook are cold enough to use Helvetica Neue — being a typeface that does not support Unicode characters (like Tiếng Việt). So I recompiled the app using Google’s own Roboto for good.

Download and enjoy: Facebook Messenger with Unicode support.

Turn off your computer’s monitors with a shortcut

Being an IT guy and a tree-hugger, I always want to use my computer the most energy-friendly way possible. One of the tips I’d love do is to put my computer to sleep mode/hibernate mode whenever I’m not around for a while. I showed you a quick way to do that by creating a shortcut for hibernation in the last post.

However, there are cases when you’re leaving your computer, yet you want to keep it on, allowing its tasks to continue running. It’s a good idea to turn off your monitors to save power in that situation.

You can manually turn off your monitor by using its power button — but that will take your another press on the button to turn it on. In fact the power button of one of my monitors was broken because of being used so many times this way.

You can set a power plan for Windows to turn off the monitors after a period of inactivity, but it does not really works when we need it most — and it does when we don’t need it.

So why not just create a shortcut for that? After a quick google, I found this great article at makeuseof.com that answers everything I need. Hope you like it:

Convenient Solutions

turn off screenSleeper is an executable utility, which allows you to turn your screen off. It does not require an installation and will not occupy any memory. You can assign a hotkey to activate it, as described below. Otherwise, simply double-click the icon and your monitor will turn off.

NirCmd is a small command-line utility, which can complete a range of tasks, which includes turning your monitor off. You can run NirCmd without installation. However, if you want to use it regularly, it’s more convenient to install it and thus not having to type the full path every time you want to run a command.

To install NirCmd in Windows 7, right-click nircmd.exe and select > Run as administrator. In Windows XP make sure you are logged in as Administrator. Next, click the > Copy To Windows Directory button.

turn off screen

Also confirm with > Yes in the following window. Once the operation is completed, click > OK in the previous window.

turn off screen

Now that NirCmd is installed, you can use it to turn off your monitor and complete other tasks. Admittedly, opening the command line and typing a command every time you want to turn off your screen is probably the most inconvenient solution of all. However, you only have to do it once in order to create a shortcut, which you can then assign a hotkey to.

Click > [Windows]+[R] to open the Run utility, then type > cmd and click > OK.

In the command line, type the following command and hit Enter:

nircmd.exe cmdshortcutkey "c:\temp" "Turn Monitor Off" monitor off

If you did not copy nircmd.exe to the Windows Directory, spell out the full path. Instead of ‘c:\temp‘ you can choose any other location for the shortcut file. ‘Turn Monitor Off‘ will be the name of the shortcut file, you can choose a different name.

Monitor Off is an all-in-one tool. It can turn off your monitor, you can create a hotkey to do so, and you can set several additional preferences, for example locking the workstation when the monitor is turned off, setting a shut off delay, or starting a screensaver. The drawback is that this utility must be installed and will run in your memory.

shut off computer screen

If you’re interested in learning more about this tool, read Saikat’s article MonitorOff – Software to Switch Off Your Monitor & Save Energy.

How To Assign a Hotkey To Run Any Tool

This works for any executable, including the tools above. Note that Monitor Off comes with its own hotkey setup.

First, right-click the .exe file and select > Create shortcut. Note that you have already created a shortcut for NirCmd, if you followed the steps above.

Next, right-click the shortcut file and select > Properties. Place the mouse in the > Shortcut key: field, which should say ‘None’, and click your keyboard shortcut, for example [Ctrl]+[Alt]+[J]. Click > OK to confirm.

turn off computer screen

Finally, test your shortcut key and enjoy!

Source: http://www.makeuseof.com/tag/3-quickest-ways-turn-computer-screen-windows/

Một vài Styler cho notepad++

Trong quyết tâm tạo dựng một không gian làm việc chuyên nghiệp hơn, hôm nay đến lượt notepad++ được tôi thay da đổi thịt bằng cách chế biến lại stylers.xml (file config về màu mè font chữ của notepad++). Tự làm một hồi không được mẫu nào vừa ý, tôi lang thang trên mạng và sưu tầm được mấy mẫu khá cool.

Sau khi chế biến thì bạn sẽ được notepad++ mới trông như là textMate hay Coda hay bất cứ thứ gì đang chạy trong Mac OS. Kiểu như thế này:

Và nhiều nữa…

Tất cả các style này đều được lấy từ đây. Nhưng mà bạn khoan hí hửng, đây là style cho textMate (file .tmTheme) chứ không phải notepad++ đâu. 😀 Nãy giờ tôi giỡn hả?

Không hẳn, có một anh chàng dễ thương đã viết nên cái script này cho phép bạn convert textMate style sang Notepad++ style. Bạn chỉ cần copy nội dung của file .tmTheme cần chuyển, dán vào và download file stylers.xml về.

Giờ bạn bắt đầu được rồi. Nhân tiện, for your convenience, tôi có làm sẵn vài file stylers.xml ở đây, bạn có thể down về xài liền. Suýt quên, để cài đặt style mới bạn thay file stylers.xml trong thư mục cài đặt notepad++ bằng file stylers.xml mới. Dựa vô tên mấy file style trong file .zip của tôi, bạn tự truy về tác giả nhé (không có cái nào do tôi làm cả).

p.s. post này được tôi soạn bằng Windows Live Writer, một chương trình quá tuyệt vời tôi vừa khám phá ra. Nó làm tôi thay đổi quan niệm về các ứng dụng của Microsoft luôn: xài thử một phát là bạn biết rằng Microsoft cũng biết thế nào là thiết kế đẹp và ứng dụng mở.

Suýt quên 2. nếu chưa có thì mấy bạn tải font DejaVu về xài nhé. Mấy cái style trên chủ yếu dùng font này. Cool open-source one!

Suýt quên 3. Theo mặc định các files thông số của notepad++ được cài vào thư mục %appdata% chứ không phải trong thư mục cài đặt. Để truy cập tới thư mục này bạn vào Start > Run gõ %appdata%\notepad++ rồi enter. Thay file stylers.xml trong đó bằng file của mình là được.

How to embed a flash (.swf) file into your WordPress post

Yeah you ain’t no need any plug-in or complicated code, just use the lines below:

<embed src="http://www.yoursite.com/YOUR_FLASH.SWF" quality="high" bgcolor="#ffffff" width="600" height="600" name="mymovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer&#34; />

Be sure to replace YOUR_FLASH.SWF with your own link and use the video’s width and height you want. Remember to use www after http:// too because sometimes the flash wouldn’t play without that.