Archive for category Articles

Microsoft Server 2008 x64 32-bit 和 64-bit 的簡單解決方法

Chowky  在64-bit 的 Microsoft Server 2008 64bit 上要行 32bit application. 本想全部用 64bit 的executable. 只不過有很多legacy system 的driver 是不支援64bit 的,只有32bit 的支援,e.g. foxpro driver, crystal report server 11 runtime…etc.  這些真的沒有方法去解決的 (自己重寫個system / drvier? don’t play la)。當然,最絕的方法就要全部用32bit,推個客話technical problem 指個driver 無64bit support。但是全部採用32bit 的話就似乎影響了 performance (太堅持了~放棄咪唔駛咁慘 la).

簡單來講就要分開兩個來寫。~新的就用x64,舊的就用x86,但online 的解決方法實在太難明了,不想研究。最終都找到合適的方案

~利用 visual studio build target platform~

 
Read the rest of this entry »

Share

, , , ,

No Comments

[Charting] 免費的 .NET Control – Microsoft Charing Component

在以前ASP 的年代,如果大家需要 generate charting 的話,大多數都會利用一些charting 的 software (多數都要買 license)。

chowky 都做了一個 project 是 convert existing 的 asp project ,以前是利用 chartfx,不過都要買 license,當然客有錢,買license 當然無問題,但是budget 不多的client 又要做到同樣的效果以前就十分困難了。

不過 Microsoft 近來賣大包,可能是為了再加強 .net framework 的功能,所以就收購了 Dundas Chart Control (當年都是commercial license 的 control) ,之後再免費加入去.net framework 入面。

sample generated 的chart 都十分很appealing,不用錢的話,就真的太好了。

The samples environments each contains a Getting Started section to help you start using the Chart controls quickly. The samples demonstrates how to use the following features in Microsoft Chart Controls for .NET Framework:

  • All supported chart types.
  • Data series, chart areas, axes, legends, labels, titles, and more.
  • Data Binding
  • Data manipulation, such as copying, splitting, merging, alignment, grouping, sorting, searching, filtering, and more.
  • Statistical formulas and financial formulas.
  • Advanced chart appearance, such as 3D, anti-aliasing, lighting, perspective, and more.
  • Chart rendering.
  • Events and Customizations.
  • Interactivity and AJAX.

Read the rest of this entry »

Share

, , , ,

No Comments

[iPhone] 系統內置字型清單 System Fonts Available List

chowky 當develop 的過程找到一個問題,就是的字型有何choices? 當然中文就完全沒有choice。只得一種字型。

但英文字型就有不少的choices.

這是styling 上必定會遇到的問題。

不過問題是documentation 沒有提及,所以就有developer dump 了一個清單。(當然自己都可以在Interface builder 看都可以看到的。

如果只是想改font size 就很簡單,用法是

UIFont *mainTitleFont = [UIFont boldSystemFontOfSize:14.0];
UIFont *subTitleFont = [UIFont SystemFontOfSize:14.0];
UIFont *textFont = [UIFont italicSystemFontOfSize:12.0];

如果,你的做法不只一個的呢….就要自己create 一個object 呢

UIFont *altFont = [UIFont fontWithName:@"Courier-Bold" size:14.0];

以下的coding 就是dump 所有的fonts
// List all fonts on iPhone
NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
{
NSLog(@”Family name: %@”, [familyNames objectAtIndex:indFamily]);
fontNames = [[NSArray alloc] initWithArray:
[UIFont fontNamesForFamilyName:
[familyNames objectAtIndex:indFamily]]];
for (indFont=0; indFont<[fontNames count]; ++indFont)
{
NSLog(@” Font name: %@”, [fontNames objectAtIndex:indFont]);
}
[fontNames release];
}
[familyNames release];

Read the rest of this entry »

Share

, , , ,

No Comments

SpatialKey 的收費模式 研究

SptialKey 是利用一家研究data visualization的公司,他們開發了一套在地圖上 visualize data 的software。

這間公司,FLEX 上的技術應該算是頂尖的。要使地圖上顯示得順暢,optimization, smoothness, lazy loading 都必不可少 (很大的學問呢)。

利用了heat map 的方法,去把data source overlay 在map 之上,當然 ,datasource ( csv 格式)亦有特定的格式吧,例如要有latitude 這類的positioning。

SpatialKey 還可以customize reporting , 他們都已經beta 了有整年了 (chowky 在flex 2 的時代已經有參加beta program,beta 了這麼久,成本很高呢) ,所以現在階段,應該算是非常成熟,chowky 覺得這套software 非常厲害。

太多題外話了,入正題!要study 一下他們的收費模式,看看有沒有什麼地方值得參考。

他們用了兩種不同的方法。

1. On-Demand

簡單來說就是月費模式,這是一個cloud (雲端)的architecture,而且他們會host 在amazon cloud (amazon cloud 都算非常穩定) ,這種做法的好處是,SpatialKey 自已不用maintain server,若是自已maintain server 做cloud service 的話,要做的準備(infrastructure, bandwidth, software….) 功夫很多。而且又不用預計scalability.
Read the rest of this entry »

Share

, ,

No Comments

iPhone App 的淘金熱,其他的mobile 市場都能淘?

其實iPhone 現在都比較難度高了,已經有一批成功的公司,長期推出不同的新apps,當然idea就不是人人都想到的。

以下的文章就講,既然iphone 的市場這麼困難,不如去另外的地方,e.g. andriod, blackberry or nokia 的市場吧,而且這些都有一個新的platform 去放上架。

不過chowky 就覺得如果這麼容易就能夠copy app store 的成功。

我們應該要從marketing 方面去想想。
andriod 還未知道.
blackberry 是manager level 的.
nokia 的太散,沒有dominant的segment.

還要考慮一下,platform 的成熟程度,除了app store 之外,其實全部都是新開發的,到時買賣出錯就很麻煩了。

Source: http://blogs.techrepublic.com.com/hiner/?p=2744&tag=nl.e101

Share

, , , ,

No Comments

[White Paper] 文章分享 USING OPEN-SOURCE SOA IN AN ENTERPRISE DEPLOYMENT Reducing costs, lowering risks, and increasing flexibility

Sun 主力是賣hardware的,再配搭opensource的軟件。

所以會有很多研究闗於opensource怎令enterprise 下調成本。

當然這篇文章,對於IT  with Business 有興趣的朋友就一定會很悶的。因為是非常business,這是service-oriented architecture (SOA)

Many companies are turning to a service-oriented architecture (SOA) approach to use their existing IT assets in new ways. Application functionality is made available as a service, available to all applications that use that particular capability. Business managers know that an SOA is a key technology in business integration, and can help increase agility, improve customer satisfaction, and increase responsiveness.

Read the rest of this entry »

Share

, , , , ,

No Comments

小心IE7 javascript 的 getElementById Method 的問題

1. 要注意用相同的 name and id attributes for Form Inputs
chowky 很久以前都覺得奇怪,不過這是因為IE系列和其他不同的browser的分別,ie 是會search 左name attribute先,再search id attribute,但是其他browser是不會的。所以兩個attributes 都要用相同的名。避免發生問題

1
<input type="text" name="full_address" id="address" value="5th Avenue" />

2. 不要放name attribute 在form tag 入面。
和上面的情況非常相似,要避免IE的問題。

不過chowky 不知道name 是deprecated (哈)

Also, the name attribute for forms is deprecated in XHTML Strict, so it’s not best practice anyhow. The name attribute was added to form elements in older sites, so if you’re trying to debug a getElementById issue in IE7 on some inherited code, there could be a conflict occurring due to this fact.

1
2
<form id="contact_form">
</form>

Read the rest of this entry »

Share

, , , ,

No Comments

3 Reasons Why Clients Don’t Choose you?

chowky thinks it is similar to many industry (at least for the IT industry)

3 個原因:

1. Price 價錢

太便宜的話,別人都不會信你。

On the other side, a client may not choose you because your prices are too low!

Even though we received quotes from others that were way below what you quoted us, we want to work with you because your portfolio and professionalism exceeds the rest, and that is what is important to us.”

純粹價格的上競爭,香港跟本不能和大陸、印度的比較,所以應該要從其他方面著手。

不過chowky現在都要選擇性接。depends on projects how it affects you。

2. Professionalism 專業

Every way you interact with the client is reviewed

自己想想….自己會不會有些習慣令人的感覺有問題。

3. Portfolio 作品的選輯

The client wants to feel completely confident that you can provide a perfect solution for their needs, and no matter how good the rest of the work in your portfolio is, if it is not industry related to their company, they may not choose to work with you.

Source: http://www.brianyerkes.com/3-reasons-why-clients-dont-choose-you/

Share

No Comments

Sticky (Fixed) SideNav Layout with CSS

完成圖

構成的structure

HTML tag

1
2
3
4
<div class="container">
	<div id="sidenav><!--Fixed Sidenav Goes Here--></div>
	<div id="content"><!--Content Goes Here--></div>
</div>

利用簡單的技巧,
把sidenav 的加上position 和fix的properties.
position: fixed;
float: left;
CSS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.container {
	width: 980px;
	margin: 0 auto;
	overflow: hidden;
	background: url(container_stretch.gif);
	font-size: 1.2em;
	position: relative;
}
#sidenav {
	width: 300px;
	position: fixed; /*--Fix the sidenav to stay in one spot--*/
	float: left; /*--Keeps sidenav into place when Fixed positioning fails--*/
}
#content {
	float: right; /*--Keeps content to the right side--*/
	width: 640px;
	padding: 0 20px 20px;
}

可惜ie6不支援fixed position property
所以要workaround..

1
2
3
4
5
*html #sidenav {
	position: absolute;
	left: expression( ( 0   ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) )   'px' );
	top: expression( ( 0   ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) )   'px' );
}

Read the rest of this entry »

Share

1 Comment

[iPhone] 3gs Specification Accidentally Revaled

最新的iphone 3gs,600 MHz CPU and 256 MB of RAM
而iphone 3g, 412 MHz CPU and 128 MB of RAM
其他公司的smartphone 配備:
BlackBerry Bold: 624 MHz CPU and 128 MB of RAM
Palm Pre: 600 MHz CPU and 256 MB of RAM
Nokia N97: 434 MHz CPU and 128 MB of RAM.

311136-500-204
Read the rest of this entry »

Share

, , ,

No Comments