[ ubuntu ] Failure to download extra data files The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed. ttf-mscorefonts-installer

Problem

Failure to download extra data files The following packages requested additional data downloads after package installation, but the data could not be downloaded or could not be processed. ttf-mscorefonts-installer

Solution

sudo apt-get install --reinstall ttf-mscorefonts-installer 

[ Hackintosh ] Hello Leopard in 2016

picture-3I have installed Leopard hackintosh 10.5.3 around 7+ years before on my HP laptop.

Then, my HP pavilion dv2000 was broken due to the NVIDIA heat problem. Although, I bought an insurance, but HP offer free claim for everyone after the problem. ( FUCK ! )

I removed the HDD out of my HP laptop and then put it in External HDD case, then I use DELL laptop to run the OS. ( ubuntu, windows, etc. )

However, DELL laptop could not run hackintosh in the HDD. I faced the black screen when boot hackintosh.

Today I google around and found the solution on the website. By enter Single user mode using ( -s ) option when boot. ( NOTE : I tried verbose mode ( -v ) before, but no clue to solve problem )

By manually move file to the backup folder using the command below, then restart the machine, and my hackintosh can be booted again.

mkdir /DsinBackup

cd /System/Library/Extensions

mv -f NVD*.kext /DsinBackup

mv -f ATI*.kext /DsinBackup

mv -f AppleIntel* /DsinBackup

reboot

picture-5Screen Resolution

Add the code below to /Library/Preferences/SystemConfiguration/com.apple.Boot.plist

<key>Graphics Mode</key>
<string>1280x1024x32</string>

picture-2

Internet browsing

Internet browsing is very slow on both safari and firefox. The browser program is not slow, somehow I feel like the connection is not stable.

I also got ssl_error_no_cypher_overlap when I try to download the chrome from the official chrome site.

However, after upgrade to firefox 16.0.2, the browsing speed is OK. Although, we have some problem with the new webpage, the rest is fine.

 

Firefox 16.0.2 is the last version to use with Leopard.

Therefore, I upgrade from Firefox 4 to Firefox 16.0.2.

picture-1It’s 2016 and Firefox said version 16.0.2 is up-to-date. Hooray !!

 

 

 

 

google-cloud-php

git clone -b phase0-helloworld https://github.com/GoogleCloudPlatform/appengine-php-guestbook.git hello-php
~/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin $ python dev_appserver.py hello-php

To install app-engine-python, run the below command outside the install root ~/AppData/Local/Google/Cloud SDK/google-cloud-sdk

gcloud components install app-engine-python
python dev_appserver.py hello-php

ref : https://cloud.google.com/source-repositories/docs/quickstart

[ Facebook Test User ] We didn’t receive all the information we needed from this app to complete your purchase. You haven’t been charged for this purchase, so please try again. If you keep seeing this error, contact the app developer.

Problem :

On test user, we got

could_not_complete_purchase

Solution :

One of the problem that we got is

“fb:app_id” and “og:url” are not correct.

Therefore, after upload the new product page, scrape the page again using facebook debug page ( https://developers.facebook.com/tools/debug ).

[ python ] google sheet API in parallel

Problem

No handlers could be found for logger “oauth2client.contrib.lock_file”

Solution

import logging
logging.basicConfig()

ref : http://stackoverflow.com/questions/345991/python-no-handlers-could-be-found-for-logger-opengl-error

Then Another Problem

WARNING:oauth2client.contrib.locked_file:Could not acquire lock c:\users\phongs~1.e\appdata\local\temp\google-api-python-client-discovery-doc.cache.lock in 0 seconds

Solution

We can disable cache_discovery by setting cache_discovery=False

service = build('sheets', 'v4', cache_discovery=False, http=http,
discoveryServiceUrl=discoveryUrl)