Categories
General

Solution: WhatsApp crashes on iOS 8 Beta

WhatsApp Logo
Last week, I finally decided to upgrade my iPhone 5 to iOS 8 Beta 4. When the iOS Beta 1 was available, I took the risk to have it installed. But, it was too disappointing for too many bugs and errors. I’m excited about the upcoming iOS 8 features, and I want to try some of the features. There is a discussion thread at MacRumors Forum which lists the application compatibility on iOS 8. Anyway, I have lots of apps installed right now. If you’re not sure about having the iOS Beta, you can wait for the official release.
I have some applications that are not running well, and one of them was WhatsApp. It keeps crashing. I can accept the fact that some other applications are broken or crashed. But, WhatsApp is an app that I use on daily basis. After searching for solutions, there are two popular ways to fix this issue:

I chose the second option, because it’s pretty straight forward. Big thanks to Ritvij Pathak’s The Tech Portal. So, what was the problem? Quoting from the site:

The main reason for the crashes is typographic ligature. For those of you who didn’t get what it is, don’t fret, we didn’t either. Turns out it has something to do with two letters being read as one syllable. Ex: letter combos like ff, fi, ffi, fii, will make WhatsApp crash.

What I found was that WhatsApp crashed when I typed some words or there are some words that are already in the database file. So, I followed the instructions and had everything solved. I want to reproduce the solution based on my experience.
I need to download two applications: iExplorer and Navicat for SQLite. Both are paid applications but the trial version are available. After I had it installed, these are steps I did. Anyway, WhatsApp iCloud setting should be turned off.
Open iExplorer — your iPhone should be connected, of course — and navigate to Apps > WhatsApp > Documents. Export the ChatStorage.sqlite file by right-clicking on the file and choose the export destination of your choice. You will need this file later. Having the backup for this file is advisable. So, after exporting this file, duplicating this file won’t hurt.
iex-1972401972491724
Open Navicat for SQLite and import the ChatStorage.sqlite from the previous step. Navigate to Query and add a new query. Paste the query below, and Run it.

update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'ff', 'f f')
where ZWAMESSAGE.ZTEXT like '%ff%';
update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fi', 'f i')
where ZWAMESSAGE.ZTEXT like '%fi%';
update ZWAMESSAGE
set ZTEXT = replace( ZTEXT, 'fl', 'f l')
where ZWAMESSAGE.ZTEXT like '%fl%';
CREATE TRIGGER insert_Ff AFTER INSERT ON ZWAMESSAGE
BEGIN
  UPDATE ZWAMESSAGE
  SET ZTEXT = replace( ZTEXT, 'ff', 'f f')
  WHERE ZWAMESSAGE.ZTEXT like '%ff%';
END;
CREATE TRIGGER insert_Fi AFTER INSERT ON ZWAMESSAGE
BEGIN
  UPDATE ZWAMESSAGE
  SET ZTEXT = replace( ZTEXT, 'fi', 'f i')
  WHERE ZWAMESSAGE.ZTEXT like '%fi%';
END;
CREATE TRIGGER insert_Fl AFTER INSERT ON ZWAMESSAGE
BEGIN
  UPDATE ZWAMESSAGE
  SET ZTEXT = replace( ZTEXT, 'fl', 'f l')
  WHERE ZWAMESSAGE.ZTEXT like '%fl%';
END;

Your ChatStorage.sqlite has been updated. The next thing you need to do is bring the file back to the iPhone using iExplorer. Move it to the same place and if you’re asked to replace the file, just replace the file.
My previous errors with WhatsApp was fixed immediately. But, it seems that the errors still occur under different situation. The most common problem is that WhatsApp still keep crashing when I type some words in the window. For now, the temporary solution works, and let’s wait the official update from WhatsApp team. I’m sure they will fix it once iOS 8 is available.

Categories
General

Display more than 30 sets per page on Flickr

If you actively upload your photos to Flickr, you probably find that having lots of sets is a good idea. How many sets you have on your Flickr photostream right now? I have more than 200 sets. By default, if you browse sets in a photostream profile, you will only have 30 sets per page.

Flickr does not offer an option to have more than 30 sets per page when displaying photo sets. Yes, there is a paging navigation. But, is it possible to have more than 30 sets per page? Let’s say 100 sets per page? It’s possible.
What you need to do is adding a query string in the URL. For example: My Flickr photo sets URL is http://flickr.com/photos/orangescale/sets/. It will give me a list of 30 sets per page. Now, put ?per_page=60 (you can modify the number if you want). So, it becomes like this: http://flickr.com/photos/orangescale/sets/?per_page=60. Now, there are 60 sets in a single page.

Categories
General

Solution: OpenX Missing Statistic Reports

Yesterday, I was a little bit panic because I couldn’t found any statistic reports in an OpenX installation. I didn’t use the latest version (2.8.0). So, I did an upgrade to 2.8.5. But still, the statistics didn’t come back.
I finally found a solution at OpenX Community Forums. Here’s the trick:

  • Go to your database management tool. I’m using phpMyAdmin.
  • Run this simple query: update ox_application_variable set value = 1 where name ='admin_account_id';
  • Voila!

When I went back to the statistic page, I had all statistics available. Great.

Categories
General

Twitter Search Results on Google Search

I have Greasemonkey installed on my Firefox browser. After I heard the news about inserting Twitter real-time search directly on Google search page, I gave it a try. Visit userscripts.org to get the Greasemonkey script.
What about the results? It seems that this script is useful. Having search results from two different sources: Google and Twitter. Twitter is known for its social search because people really involved in giving answers, solution and other info.
On the other hand, Google has numerous search results — of cours, it’s the search engine. But, who gives the most relevant results? Is it Google, or Twitter? Well, both will give search results only if they find the matching keywords/phrases. Twitter might be more updated because our search is pulled out from its database. Google might not give the best search query results, but it offers more data.
Google might win, Twitter too. Who’s the winner? We decide.

Categories
General

Features for Developers (Firefox 3.1 beta 1)

Okey, this should be a good news.
Geolocation

Geolocation is a JavaScript API that lets a web page query the browser’s location via JavaScript. It can be used to plot maps, give directions, attach location information to pictures, give a location for a weblog post and a pile of other things.
More details about Geolocation API Specification.

@font-face

Add support for the CSS @font-face property. This property allows you to specify a true type font file that includes a specific font you want to use to render a web page.
More details about @font-face

Video and Audio

Include support for the <video> and <audio>elements. This beta includes support for the OGG Theora and OGG Vorbis formats on all platforms

And more…

Categories
General

Google Alerts

google-alerts
Google Alerts are email updates of the latest relevant Google results (web, news, etc.) based on your choice of query or topic. We can use this to:

  • monitor a developing news story
  • keep current on a competitor or industry
  • get the latest on a celebrity or event
  • keep tabs on your favorite sports teams

Anyway, remember about Yahoo! Alerts?

Categories
General

Web statistics script for this site

I use some scripts to gain information about the site statisics. The first one is Shaun Inman’s Shortstat, and the second one is refer script by Textism. About the first, Thalia mentioned something about the database rows. Yes, you’re right Thalia. Well, this is how I use those scripts.

Easy-to-read statistics

Shaun Inman’s Shortstats gives me something easy to read. And, it is quite complete. I can have these information: total hits, unique visitors, browsers, referers, search strings, and visitors’ country origins. When I write this, there are thousands of rows in my statistics table.

Categories
General

Not so important… Ranked :)

I just curious how my people who do not want to come here come. The word “thomas” is sometimes shows up as a search query.

And, I tried try to find “lala” at Yahoo! also. Oops… :)
Have a great weekend all!