2010/12/29

2011年沒有景氣問題 只有競爭力問題

鴻海集團董事長郭台銘今天表示,2011年台灣有清廉政治和兩岸和平願景,加上有40-50歲受過良好教育的企業家崛起,「2011年沒有景氣問題,只有競爭力問題」。郭台銘並透露,他最近每2周去一次日本「取經」,包括日元升值到80幾元兌1美元,日本企業仍能生存,日本的確有值得師法之處,而台灣與日本就「經濟技術學」來講,有很大的結合空間。

郭台銘表示,對鴻海來說,沒有景氣問題,只有競爭力問題,例如鴻海進入桌上型電腦(DT)領域比較晚,但市占率愈來愈高,由於競爭力加強,網路安全獲得重視,反而讓DT需求上來。而鴻海集團今年營收達3兆元,今年成長幅度6成,明年成長幅度也有信心可以超過「下限」。郭台銘先前接受媒體採訪時,曾經將鴻海未來年成長率目標糾正為15%。

郭台銘今天並未正面答覆景氣、匯率等問題,尤其是匯率部分,郭台銘表示,不管他怎麼說,媒體都會大做文章,因此他不發表意見。

不過針對匯率部分,郭台銘以日元為例,日元對美元升值到80幾元兌1美元,日本企業仍能生存,以往的匯率可視為「環境的保護」,「順境人人會走,只是快或慢的問題,但逆境就看公司能不能生存」,因此明年的關鍵仍在於競爭力。

2010/11/19

iPhone iPAD tethering

1. JB the iPhone - redsn0w
2. Open Cydia, add the source - http://www.sinfuliphonerepo.com
3. Install MyWi Cracked
4. Open MyWi, set it up so iPhone become a wifi router.
5. wifi iPAD over.

2010/08/08

not load file or assembly 'System.Windows, Version=2.0.5.0...'

if you get this error, it's because Sliverlight assembly is not in GAC. Do this to fix:


cd C:\Program Files\Microsoft Silverlight\4.0.50524.0
gacutil -i System.Core.dll
gacutil -i system.dll
gacutil -i system.net.dll
gacutil -i system.xml.dll
gacutil -i System.Runtime.Serialization.dll


check out what other people said.

2010/08/03

Snow Leopard's NTFS read/write support

http://tool-box.info/blog/archives/1193-Snow-Leopards-NTFS-readwrite-support.html

This still stands for release version of Snow Leopard. It also works for USB disk.

update: 2010/8/6:
I switch back for NTFS-3G, the Apple built-in version is not stable and screw up my partition table. Apple did not enable it for a reason...

2010/06/21

.NET fix: System.Security.SecurityException: Requested registry access is not allowed.

If you get something like this:

Server Error in '/applicationname' Application.
---------------------------------------------------------------------------
Security Exception 
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 
[SecurityException: Requested registry access is not allowed.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
....

I'm not sure there's a secured way, but adding permission for iis daemon user solve the problem for me.

1. Find out which deamon user your app is using, by looking up App_Pool and secruity section in event log.

2. Give the user permission to read/write access for the eventlog registry entry. To do so, open regedit and navigate to the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
.
Right click and select Permissions, and add permission for the user.

3. restart iis and give it a try.

2010/05/28

MySQL 5.x Repair Cheat Sheet

If you upgrade MySQL or move the database around, you are most likely need to do those operations:

Backup

mysqldump -u root -p --default-character-set=utf8 databasename > data.sql

Restore

mysqldump -u root -p --default-character-set=utf8 databasename < data.sql
if database is larger then 100MB, this works better:
mysql -u root -p
#mysql> use the_database
#mysql> source data.sql

Check, Repair & Optimize All Tables in All Databases

If you need database server up, use mysqlcheck:
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases


Or you can make it offline and do a better check:
service mysqld stop
myisamchk /var/lib/mysql/the_database/*.MYI
service mysqld start

Repair single table

mysql -u root -p
#mysql> use the_database
#mysql> repair table the_table


Reference:
http://www.felipecruz.com/repair-mysql-database.php

2010/05/24

MySQL 5.1.x & unicode

In our recent upgrade from 5.0 to 5.1.47, the new version behaves differently and it screw up character set when user submit info from our web app powered by .NET.

After digging around for a afternoon, this is how to fix it:

vi /etc/my.cnf


And add those lines to the config:

init_connect='SET collation_connection = utf8_general_ci'
init_connect='SET NAMES utf8'
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake


There are other options for collation besides utf8_general_ci such as utf8_unicode_ci. See this article:
http://dev.mysql.com/doc/refman/5.1/en/charset-unicode-sets.html

Reference: http://rhyous.com/2009/11/05/how-to-create-a-utf-8-unicode-database-on-mysql/

2010/04/08

RHEL: Install GNOME from console

this will do:
yum groupinstall "X Window System" "GNOME Desktop Environment"


To start the desktop, just type startx

2010/04/03

CentOS: Install git

1. Download and install EPEL if you don't have it yet:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm


2. Install git via yum
yum --enablerepo=epel install git


2010/03/31

XShell profile/session backup

XShell from NetSarang is a great SSH client that we use. Even one awhile, you might wanna back up all the saved profiles.

The profiles are actually located at: %user_profile%\%username%\AppData\Roaming\NetSarang\Xshell. For example, C:\Users\johnny\AppData\Roaming\NetSarang\Xshell.

You can just copy the directory to where you want to back it up. You can also create sub-directories if you want to manage them a bit.

開發網路電視 Panasonic不採用Android系統

Bloomberg報導,日本電子大廠 Panasonic (6752-JP) 高層表示,由於成本過高,公司生產的網路電視決定不採用 Google (GOOG-US) Android 作業系統。

積極推廣 Android 作為網路電視平台的 Google,嘗試與 Panasonic 合作卻遇挫。

Panasonic Consumer Electronics Co. 資深副總派瑞 (Robert Perry) 說,Android 雖是免費,卻需要價格不斐的技術來支援,包括英特爾的高價晶片。

Panasonic Consumer Electronics 是 Panasonic 的美國子公司。

派瑞周二出席舊金山召開 3D 技術發表會,他會後表示,Android 平台「須利用晶片的處理能力,將增加成本負擔」。

將網路導入家庭娛樂產品漸成趨勢,Panasonic、三星電子 (005930-KR)、索尼 (6758-JP) 等電視製造商今年均計畫推出相關產品。

根據日前報導,Google 與英特爾正攜手開發「Google TV」平台,讓用戶可透過電視來上網。消息人士透露,索尼也參與了該平台開發計劃。

全球第4大電視製造廠的 Panasonic,則選擇自行研發網路軟體,透過自家的伺服器傳送網路內容。

2010/03/12

iPhone: Internet Tethering option is gone!?

If it happens to you, on the phone, navigate to help.BenM.at, follow the instruction to reinstall carrier profile.

This works 3G, 3GS, OS version 3.1 or up, no need to jail-break.

Google Testing TV Internet Search

The experiment could determine whether TV viewers would favor Web-like searches over the use of remote control searches.

By W. David Gardner
InformationWeek
March 10, 2010 11:00 PM

Google and Dish Network are testing a search service that would enable users to find video content on conventional TV and on the Internet, according to a report in the Wall Street Journal.

The test, which uses Google's Android software, could determine whether TV viewers would favor Web-like searches over the use of remote control searches, which usually involve the use of menus and much clicking around via a TV's remote control. The test is said to be restricted to a small number of set-top boxes in the hands of Google employees.

The experiment is another indication that a wide range of companies is seeking to take advantage of the emerging convergence of TV and Internet video offerings. Google and Dish Network officials have declined to discuss the test publically. Google's chief executive, Eric Schmidt, however, has suggested that Android technology could be used by TV hardware manufacturers.

"It makes sense that people would use Android as an operating system for set-top boxes, buddy boxes and TVs," he said, according to published reports. "All of those ideas have been proposed by our partners."

Two years ago, Google teamed up with satellite TV provider Dish Network to test the automation of ad buying, delivery sales, and metrics to study how TV search and advertising operate. At the time Schmidt said that test was important because Google said it believed it could add value to TV by delivering more relevant ads to viewers.

The 2007 experiment was also meant to test the waters by providing better accountability for advertisers and to better monetize inventory for TV operators and programmers.


Microsoft Entertainment and Devices Division created the Mediaroom solution powering 4 million telco IPTV set-top boxes. It is also home to Xbox 360 with over 30 million consoles sold with more foc...

2010/03/07

Andriod Emulator ERROR: could not find virtual device name: xxx

If you get this error, it's because your windows user home directory is changed. Fix the error by adding a environment variable named ANDROID_SDK_HOME, and set the value to, for example, d:\users\MY_USERNAME.

Click to view
















Reference: http://www.mail-archive.com/android-beginners@googlegroups.com/msg13718.html

2010/01/18

MacBook Pro - Very Poor Volume Output FIXED!

If your bootcamp windows is having very poor volume output on 2009 unibody MacBook Pro, here's the solution: http://www.stuffedcow.net/macbook_audio. Thank you, Henry.

I follow the instruction below, plus a reboot, and fixed the problem:
  1. Download and unzip this package: CirrusAudioXP_Macbook_c.zip 1.0.0.13c (Nov. 1, 2009).
  2. In Device Manager, Update Driver for the Cirrus Logic High Definition Audio device. Don't let Windows search for or do anything automatically. Manually choose to the driver from a list, and use the "Have Disk..." button.
  3. Reboot.
My configuration is latest 13" MBP (MB990LL/A), bootcamp 3.0 from Snow Leopard, and latest Windows 7 (build 7600).

The detail discussion can be viewed here: http://discussions.apple.com/thread.jspa?threadID=2037093&start=449

Mercury簡易改裝

有同好有一樣的困擾 - 如何使用自己的data logging軟體,因此寫了這篇來分享我的簡易改裝。 Background 雲豆子 MERCURY roaster 烘豆機的設計是使用自行開發的軟體,來:1. 操控風門/火力; 2. data logging/自動烘焙。 ...