Categories
General

Twitter Bootstrap, LESS CSS, and Caching Problem

I’m working on some works right now with a small team at the office. We decided to use Bootstrap as the front-end development framework. We came up with this solution for some key reasons:

  • We need to do it fast.
  • It’s easy to maintain, especially for a collaborative project
  • Bootstrap is cool.

There are lots of similar frameworks to choose like Skeleton, 960.gs, Blueprint, Foundation, and more. It didn’t take long discussion to take Bootstrap. Its features and flexibilities are just perfect for our need. The next thing is that we need to do some customisations, for example on the font sizes and colours. Since Bootstrap might release updates in the future, it’s better to leave the core files untouched.

LESS

Basically, it’s easy to customise them by using its own customisation tool. But, I prefer another method by using LESS. And yes, Bootstrap works great with LESS. The installation works straight forward. After downloading less.js file, add these two lines in the <head>

<link rel="stylesheet/less" href="/path/to/bootstrap.less">
<script src="/path/to/less.js"></script>

Inside bootstrap.less file, there is a little note that we can easily modify the font color and size by working on the variables.less file. I decided not to edit it. I created another .less file — for example: mycustom.less — and import it from bootstrap.less file. So, my bootstrap.less file looks like this:

...
@import "accordion.less";
@import "carousel.less";
@import "hero-unit.less";
// My Custom LESS
@import "mycustom.less";
...

And, this is what I have for mycustom.less:

@baseFontSize: 13px;
@tableBorder: #ddd;
@navbarInverseBackground: #faa141;
@navbarInverseBackgroundHighlight: #ec8b22;
@navbarInverseBorder: #d77c1b;
@navbarInverseLinkColor: #fff;

It should just work. But, does it work as expected? No.

Caching

Editing and saving mycustom.less file, and refreshing my page does not load the latest variables. It takes time to refresh/load the latest changes. It’s not good. It happens because less.js caches the .less files called using @import.
I tried to modify the web server setting by adding these lines in my httpd.conf file:

<FilesMatch ".less$">
Header set Cache-Control "no-cache"
</FilesMatch>

But, it didn’t work. After searching for solutions, there is a method offered for this issue. I added this line of code:
<script>localStorage.clear(); </script>
Now, whenever I make some changes on my .less files, reloading the page will give the latest changes. It works.

Categories
General

Amazon Glacier and S3

Amazon Glacier differs from S3 in two crucial ways:

First, S3 is optimized for rapid retrieval (generally tens to hundreds of milliseconds per request). Glacier is not (we didn’t call it Glacier for nothing). With Glacier, your retrieval requests are queued up and honored at a somewhat leisurely pace. Your archive will be available for downloading in 3 to 5 hours. Secondly, S3 allows you to assign the name of your choice to each object. In order to keep costs as low as possible, Glacier will assign a unique id to each of your archives at upload time.

 

Categories
General

Instaport

Instaport — “A simple way to export all your Instagram photos to other social services or your local hard drive. Instaport is a simple way to export or backup all your Instagram photos by downloading a single zip file. You can then use it in combination with Google+, Facebook or any other (photo) application.”

Categories
General

Instagram for Android gets tablet support

Good news for Instragram users on Android device. Instagram is now supporting tablet. It also support WiFi-only devices like Samsung’s Galaxy Play. Download now.

Categories
General

How To: Install Opera Mobile on Nokia N9

Nokia N9 already has a built-in internet browser. It’s not the best, but it works. I like having some browsers for my Nokia N9, and currently I have Firefox Mobile and Opera Mobile installed. Both browsers (Firefox Mobile and Opera Mobile) are not available from Ovi Store. If you’re using Symbian for your Nokia, you can download Opera Mini. Firefox is not yet supported.
I’m not considering the installation process as something difficult. Yes, it’s not like the regular installation procedures. It’s my first-time experience too. So far, everything works without any issue at the moment. For Opera Mobile installation, I just follow the installation tutorial from Nokia N9 Fans Club. It’s an unofficial site, not maintained by Nokia.

Now, let me share a bit about how I installed Opera Mobile. Anyway, my N9 is running MeeGo 1.2 Harmattan with software version PR1.1 (20.2011.40-2_PR_005). And, if you’re not familiar with command line, you can continue reading.

Categories
General

Solved: Nokia N9 can't connect to Twitter

After I had my Nokia N9 early this month, I setup my Twitter account first — after some basic phone settings, of course. Everything worked. The application is probably not the best, but it works.
Is it problem-free app? I thought so, until I got a problem: I can’t connect to Twitter using this app. I was not sure when the problem occurred for the first time. I did played with my phone (installing apps, downloading musics, adjusting settings, and including working from the command line). When an update was available, I also upgraded.
Added later: I was not sure what caused this problem. When I signed-in for the first time, everything worked without any issues. I deleted my Twitter account from the app, and tried to add it again. I forgot when I did this for sure, before or after installing the firmware update. It  was optional, but I decided to upgrade.
2011-11-13 01-49-48At first, I was not sure about the problem. Is it my phone, or the internet connection I was using. I switched to some different connections, but it didn’t solve my problem. When I tapped the “Sign In” button, it said: “Can’t connect to Twitter”.
So, I searched for a solution. And, I got one. It’s probably something too technical, but the instruction is easy to understand. According to the forum thread, here are some steps to fix the problem — I’m using Software Version: PR1.1 (20.2011.40-2_PR_005):

  • Activate “Developer mode” by going to: Settings > Security > Developer mode. It’s OFF by default. Turn it ON.
  • After having it activated, you will find a “Terminal” app button under application menu.
  • Open it and you need to execute these commands (one command per line):
    • gconftool --recursive-unset /system/http_proxy
    • gconftool --recursive-unset /system/proxy
    • gconftool --recursive-unset /system/osso

You may close your Terminal.
Those commands will wipe your active connection settings (bluetooth and internet data). But, it’s not a problem as I can add/manage connection settings easily. Problem fixed. Great.

Categories
General

Goodbye Google App for BlackBerry

Beginning November 22, 2011, we will end support for the Gmail App for Blackberry (installed native app). Over this past year, we’ve focused efforts on building a great Gmail experience in the mobile browser and will continue investing in this area. Users may continue to use the app, if installed, however it will not be supported by Google, or available for download starting November 22. BlackBerry users can continue to access Gmail through the mobile web app at http://www.gmail.com in their BlackBerry web browser.

Google Apps Blog: Deprecation of Gmail App for BlackBerry

Categories
General

My Nokia N9: Personal Review

I have been using Nokia N9 for about a week, and I would like to share a bit more about this phone. In my previous post, I posted about the unboxing photos. In short, I think this phone works for me and I’m comfortable with the features, speed, and more importantly to keep myself ‘connected’ to the internet world.

The design

When I opened the box, it was like love at the first sight. I got the black Nokia N9. I think Nokia N9 has a beautiful product design. Here’s why.

I have been using some Nokia phone in the last few years with various phone designs. My first Nokia phone was Nokia 3110. That’s right, that big phone. After that, I switched to Nokia 5510, Nokia 3230, Nokia N78, and Nokia 5800 XpressMusic. I also tried Nokia E72 (with the QWERTY keyboard). The latest Nokia phone I have is Nokia N8 which I’m using right now.
Lots of phone companies put their efforts creating products that are not only about the technical aspects like hardware specifications, but also the design. “This [put the product name] is beautiful!” is a very common expression. And I think Nokia N9 got this expression.
Large screen is another features. Lots of phones has bigger screen these days. But still, people will use their hand to operate. I like phone with big screen, but not too big. I was not sure whether Nokia N9 has ‘big enough’ or ‘too big’ screen area. Can I hold and work with it only with my right hand? It’s taller than Nokia N9, and iPhone 4.
Can I reach whole screen area using my thumb? I can. For me, this is something important.
I look at the design, and I could not find any buttons at the front. I’ve heard that it’s all about ‘swipe’. The only buttons/keys are only on the right side: volume/zoom and power/lock keys. It took few minutes to explore how the swipes work. And, it’s not difficult at all. It’s easy. I will write about swiping on Nokia N9 later.
About the SIM card, I need to have the micro SIM card. There are two options: buying it from my desired provider, or make it by cutting the regular SIM card. I went with the second option.

Categories
General

iTunes 10.5, iCloud, and iOS 5

I’m waiting for iOS 5! It should be arrived today and I can’t wait to download it. When I watched Apple Special Event (October 2011) last week, there were many information about iOS features that I want to have. It is said that there are more than 200 new features in this release.

From the video, you can see some icons there about the top features. It will have Notification Center, iMessage (chat between iOS users), Newsstand, Reminders, Twitter deep intergration, Camera improvement, Photos , Game Center, Safari, and also PC Free.
And, if you want get the most from the release, you should check your iTunes. The latest version of iTunes (Version 10.5) is already available now. It will also support iTunes in the Cloud.

What’s new?

  • iTunes in the Cloud. iTunes now stores your music and TV purchases in iCloud and makes them available on your devices anywhere, any time, at no additional cost.
  • Automatic Downloads. Purchase music from any device or computer and automatically download a copy to your Mac and iOS devices.
  • Download Previous Purchases. Download your past music, TV, app, and book purchases again, at no additional cost. Previous purchases may be unavailable if they are no longer on the iTunes Store.
  • Sync with your iPhone, iPad, or iPod touch with iOS 5.
  • Wi-Fi Syncing. Automatically sync your iPhone, iPad, or iPod touch with iTunes any time they’re both on the same Wi-Fi network.
Categories
General

I don't send Instagram photos to Flickr automatically. Why?

I like taking photos using my iPhone 4 and send them to Instagram. At the same time, I also like Flickr. iPhone 4, Nokia N8, and Flickr should be a great combination. Both Instagram and Flickr have their good and bad. And, I think both services can not be compared. Each service has its own medium and audiences, including the way how contents delivered to its users.
Posting to Instagram is super easy. If you use it, you know what I mean. It also has filters. There are some good photography applications to edit or manipulate photos available for download at App Store. Everything looks perfect. But, I decide not to post my photos sent to Instagram to Flickr stream automatically. Yes, it’s a very easy process and I don’t do it. Why? Here are my personal three main reasons:

1. It’s not big enough

When a photo posted to Instagram, it will be posted in multiple sizes. They are Thumbnail (150×150), Medium (306×306), and Large (612×612). Even I can post the large photo, it’s not big enough for me. I want to have my photos on Flickr as my personal photography archive too. By uploading manually to Flickr — from desktop or directly using application like Flickr for iPhone I can bigger photo, even the original photo size — taken using my iPhone.

Categories
General

Hello Mac OS X Lion

When Mac OS X Lion was available at App Store, I decided to download it right away. After purchasing it, I continued with the installation process. I upgraded from Snow Leopard. Anyway, I usually download the updates available from Software Update menu when there are new updates available.
With the not-so-bad internet connection, it took around 5 hours to complete (downloading and installation processes). Here are some screenshots:







Categories
General

Google Plus Sticky Header's User Styles

Pujiono shared a wishlist to have Google Plus‘ header displayed in sticky style. Since Google does not offer this feature, can we have this feature using a simple trick? The answer is: yes.

There is a small extension of User Styles called ‘Google Plus Sticky Common Header’. I have applied this simple style to my browsers (I currently use Mozilla Firefox and Google Chrome), and it works really well. If you want to install it, first you need to get the extension.

Voila!

Categories
General

TED Talks video subtitles

I like watching TED Talks videos. And, I have downloaded lots of videos from TED website. Actually, it’s okey if I watch them without subtitles. But, with subtitles I think it’s much better. The question is: is it easy to get the subtitles? The answer is: not that difficult to get it. But of course, not all videos having subtitles in multiple languages. English is more than enough, I think.

I came across to TED Talk Subtitle Download website and it’s easy to use, to get the subtitles needed. Enter TED Talk video URL and hit the “Download” button. If subtitles are available, just download which subtitles you want.
I’m using VLC on my Mac, and lots of my TED Talk videos now have subtitles. Watching the talks is more enjoyable right now. Time to get more subtitles!

Categories
General

TEDx Jakarta: SOMETHINK DIFFERENT! I'm going!

I went to TEDx Jakarta for the first time in July this year. And, it was because I stay in Jakarta. When I was in Jogjakarta, going to TEDx event become something that I didn’t expect. I like TED events — including its independently-organized event, this is why it has “x” in its name. I downloaded lots of videos from TED Talks. Not sure how many videos in have in my hard-drive, but until today, I feel that I got many knowledge — only by watching the talks.
In the previous TEDx Jakarta event, there were many inspiring speakers like Irfan Amalee, Irwan Ahmett, Dr. Nurul Taufiqu Rochman, Barry Likumahuwa, Ade Rai and Ridwan Kamil. After that event, I told myself that I should be going to the next TEDx event. Today, I got a confirmation letter that I got the invitation. Nice!

I’m ready to be inspired by some speakers like Adi Panuntun, Betti S. Alisjahbana, Chandra Tresnadi, René Suhardono, Anies Baswedan, and Sanggar Roda. Go to speakers’ page to find our more about them. I’m not trying to search for any details about what the speakers will present. Well, for this… I will let them surprise me — and hopefully all the audience. :)
Now, for personal reminder:

  • Venue: Pusat Perfilman Usmar Ismail (Usmar Ismail Hall) Kuningan
  • Address: Jl. H.R. Rasuna Said Kav C. 22, Jakarta 12940
  • Time & Date: December 19th, 2010. 2 PM — 6 PM, registration opens 1 PM

Anyway, I took lots of picture during 5th TEDx Jakarta event. You can go to its photoset at Flickr. And, if you want to see the videos, you can visit TEDxJakarta video playlist. And, if you want to be TEDx Jakarta speaker, there’s a question to answer. :)

Categories
General

WordPress 3.0 Error: Briefly unavailable for scheduled maintenance

I have upgraded this blog to WordPress 3.0 not long after it was available for download. Everything went without any major issues. I only use it without special hacks. One thing that makes this version a little bit different is that WordPress will bring your site offline if there is/are something not working. For example, when you’re upgrading your plugins. WordPress will temporarily bring your site under maintenance mode.
If all process were completed, you should be happy. Otherwise, you will need to do some extra works. WordPress will display this kind of error message: “Briefly unavailable for scheduled maintenance.” You will be locked out from your admin area. Your website will be inaccessible. Solution? Easy. You need to go to login to your webhosting server, and remove .maintenance file. You can find it in your blog folder — the same location with your wp-config.php.