Posts of #技术Tips
-
Docker入门(上)
这是一篇Docker的学习笔记。
-
Step by Step Tutorial for Spring Boot and Thymeleaf: Part III
第一篇: 《Step by Step Tutorial for Spring Boot and Thymeleaf: Part I》 介绍了项目的初始环境,还有对应的Model,以及对应的Repository。
-
Step by Step Tutorial for Spring Boot and Thymeleaf: Part II
项目源码寄存在Github repo
-
Step by Step Tutorial for Spring Boot and Thymeleaf: Part I
学习Spring MVC,也想学习一下Thymeleaf模板,于是,将整个过程记录下来,作为一个Step by Step的Tutorial教程吧。
-
Spring Authorization Server
.Net社区有Identity Server,一直想了解下Spring社区的替代品。
-
Spring Boot: Spring Data Rest
Spring Rest Data是建立在Spring Data下的一个子项目。
-
Maven浅窥四:将本地archetype添加到Repository
将本地的archetyp安装到本地的Repository:
mvn clean install archetype:update-local-catalog
-
创建基于Spring Boot的OData Web API - Library API, Part I:业务场景和存储层设计
两三年前,当我开始熟悉.Net Core和基于ASP.NET Core的OData API时,曾经通过实现一个项目的方式来锻炼自己,而且写过一系列文档来详细讲述自己的实现步骤:
- 第一篇 Part I: 业务场景和存储层设计
- 第二篇 Part II: 开发环境及项目设置
- 第三篇 Part III: Model类
- 第四篇 Part IV: Data Context
- 第五篇 Part V: Controller
- 第六篇 Part VI: 为Controller添加CRUD
- 第七篇 Part VII: 用Postman测试
- 第八篇 Part VIII: Unit Test准备
- 第九篇 Part IX: Angular程序环境准备
- 第十篇 Part X: 完善Angular程序
- 第十一篇 Part XI: 为API添加CORS支持
- 第十二篇 Part XII, Angular程序的List和Detail页面
-
My SQL 转SQL Server的一些常见问题
学习JDBC的时候,课程上用了MySQL,但是我的机器只装了SQL Server Express,懒得再装一个MySQL,于是打算把MySQL用的Script稍加修改变成T-SQL可用的:
-
Lambda Expression and Functional Interface in Java
继续封控,继续深入学习Java。
-
Java泛型
最近一周开看Java的泛型,本以为Java跟C#、.Net一样,却惊奇地发现Java泛型的实现跟自己想象不同。
-
小试Gradle
IT行业的特点就是“快”。这里有全球最聪明的大脑,所以,技术的浪潮也是一波接着一波。当新的一波到来时,就是旧的一波消散时。
-
Discover xUnit test with MemberData in Test Explorer
起源是,用MemberData进行封装的Test方法,在Visual Studio 的Test Explorer中只显示为1个。本来,这个显示问题没啥问题,问题是,当你其中一个测试用例出错,而你又想进行Debug的时候,在Test Explorer中运行该方法,实际上会遍历所有的调用,是的Debug过程异常麻烦。
-
Angular中Input输入值修改的监听
HTML中Input的值发生变化,应用程序需要对其作出响应。当然有些值修改可以在整张表单提交时才作出响应,但大部分的应用需要当场作出响应,譬如:
-
CSS Tips - 使得控件居中
HTML页面中,将子控件居中显示是一个常见的需求。
-
Typescript Tips
许久没碰的Angular程序,重新编译一遍,却遇到下列错误:
-
使用Postman测试OAuth2.0保护的Web API
本文中,使用Duede Identity Server作为OAuth 2.0的Issuer。换言之,要测试的Web API,通过该Server进行校验。
-
Git I: Branch operations
虽然git的官网有免费的、详细的git文档,但是这并不妨碍做个git相关操作的小结。一来便于记忆,二来便于查阅。
-
Typescript II Enums
根据enum的官方文档,link, Typescript的enum分为numeric enum和string enum两类。
-
JDBC Driver to SQL Server Express, Part III
基于前两篇《JDBC Driver to SQL Server Express》和《JDBC Driver to SQL Server Express,Part II》,已经可以尝试使用SQL Server Express并能执行SQL且返回结果集了。
-
JDBC Driver to SQL Server Express, Part II
基于前一篇《JDBC Driver to SQL Server Express》,已经可以尝试使用SQL Server Express了。
-
Maven浅窥三:archetype
基于前两篇《Maven浅窥一:基础》和《Maven浅窥二:复杂项目》,应该已经可以创建Maven项目,甚至是较大的Maven项目。
-
JDBC Driver to SQL Server Express
JDBC Driver to SQL Server, Microsoft官方文档的链接
-
Maven浅窥二:复杂项目
基于前两篇《Maven浅窥一:基础》,已经可以成功地创建Maven项目了。
-
Maven浅窥一:基础
Maven某种程度上跟NPM类似,都是软件项目中包依赖解决方案。但是它比NPM更强大,因为它提供了更多地软件项目的编译、打包以及发布等操作。
-
Identity Server的Login之后的redirection不能正常工作
Chrome和Edge不停地升级,不停地修改页面行为。这导致的结果就是,即便项目什么都没改,却莫名其妙地不能正常工作呢。
-
设置Angular程序,ng serve启用Https
设置Angular程序的ng serve启用HTTPS的步骤:
-
创建基于OData的Web API - Knowledge Builder API, Part XII, Angular程序的List和Detail页面
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part XI, 添加CORS
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part X, 完善Angular程序
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part IX, Angular程序环境准备
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part VIII, Unit Test准备
本系列之前的文章:
-
学习React.js II: 使用Typescript
上一篇《学习React.js》中使用了Javascript,但还是习惯于Typescript的静态检查。
-
创建基于OData的Web API - Knowledge Builder API, Part VII, 用Postman测试
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part VI, 为Controller添加CRUD
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part V, Controller
本系列之前的文章:
-
学习React.js I
-
常用的Latex符号等
Latex是数学公式的必备工具。
-
OData UPDATE/PATCH不返回更新后的结果
OData的Controller影响HTTP verb中UPDATE和Patch时候,如果使用Updated(entity)的写法,则该Request只返回status code,并不会返回更新后的结果。
-
逐行相加、逐行累加与逐行相减的SQL实现
以下用例使用T-SQL实现。
-
Github.com无法访问
好久没有碰到github.com无法访问,想来应该是上海电信某个路由服务器又出幺蛾子了,因为上海移动的网络可以访问。
-
Rxjs并发处理的错误处理
RxJs中提供了n种operators来支持并发,譬如map, mergeAll, switchMap等等。具体可以查看rxjs的官方文档或者搜索引擎。然而,现实中比较常见的并发请求,是需要只针对出错的需求进行重新计算。
-
创建基于OData的Web API - Knowledge Builder API, Part IV, Data Context
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part III, Model类
本系列之前的文章:
-
创建基于OData的Web API - Knowledge Builder API, Part II, 开发环境及项目设置
本篇为Part II:开发环境及项目设置。
-
创建基于OData的Web API - Knowledge Builder API, Part I:业务场景和存储层设计
背景概要
-
Typescript I 遍历Array的方法
Typescript的官方文档 Iterators and Geneators Link
-
C# Part VII, 统计文本行数
本文基于StackOverflow的以下问题收集整理而成。
-
C# Part VI, 删除字符串中指定字符的几种方法
本文基于Stackoverflows上以下几个Question:
-
PHP访问MySql: 中文乱码问题解决方案
偶尔的机会,遇到PHP代码访问MySql一直中文乱码,登录phpMyAdmin,界面显示是很奇怪的utf8mb4_general_ci;
-
jQuery vs Angular JS: 遍历数组
jQuery中遍历数组,通常的方法是$.each; 语法:
-
phpMyAdmin无法登录之解决方案
登录phpMyAdmin,一直有个user没有设置密码的警告,于是把root的密码给修改掉了,然后,再登录phpMyAdmin,一个华丽丽的错误显示在屏幕上:
-
素描人像PS方法
素描人像PS方法,使用最常见的最小值方法。
-
工笔画人像PS后期方法二
查看 方法一
-
工笔画人像PS后期方法一
缘起:看到这么一组片子(http://www.ilovemw.com/post/7922.html)。于是,今天晚上花了两个小时来研究PS方法。
-
Solve the issues on AngularJS: [$injector:modulerr]
按照现有的Angular JS的教程,即便最简单的controller定义都会遇到[$injector:modulerr]的错误。万能的搜索引擎告诉我,这种问题只出现在AngularJS 1.3版本之后,换言之,这是版本1.2到1.2的break update。
-
国内的前端公共库CDN服务
难得流氓们发次善心,Baidu,Sina等推出的前端公共库CDN服务还是值得值得表扬一下的。综合来说,Baidu的库是最全的,也最新。
-
Next choice: AngularJS?
Search “Multiple views One Page” in Stackoverflow.com, the results all pointed to Angular UI. It’s actually a UI libarary based on AngularJS. AngularJS, is a lightweight, pure JavaScript framework which bought by Google.
-
Enabling PHP Debugging in PDT (Using XDebug)
First of all, read the official document provided by Eclipse: http://wiki.eclipse.org/Debugging_using_XDebug
-
Solve MySQL error 2014: Commands out of sync; you can't run this command now
如果需要在新插入数据记录后立刻进行查询,则可能遇到著名的MySQL error 2014: Commands out of sync; you can’t run this command now
-
MySQL Stored Procedure Practice
使用MySQL的几点心得。
-
当Flickr又无法访问时
最近好懒。懒得拍照,懒得Photoshop处理照片,懒得上传照片到Flickr,懒得备份照片到Baidu,所以,当发现Flickr又无法登陆时,才又愣了一下:感情又到了Flickr无法访问的时候了。
-
SAPUI5 学习笔记IV: Git
跟传统的SAP代码架构不同,也与我熟知的VCS (Version Control System)迥异,SAPUI5项目采用了Git.
-
SAPUI5 学习笔记III:oData的URI Convertions
虽然SAPUI5支持N种Model,但在SAP的产品开发中,最常见的是oData。关于oData(Open Data Protocol),是Microsoft发布的一种旨在标准化网页程序数据交换标准化的开源协议,oData被.Net框架中的WCF原生支持。具体可以参考:OData.org。
-
大杂烩(0028) 烦杂的四月
Chapter 1. 生病的大叔
-
SAPUI5 学习笔记II: Eclipse的配置
罗列一下自己碰到的Eclipse配置,以为后续:
-
SAPUI5 学习笔记I: 自己搭建SAPUI5的开发环境
我司是一个严格控制访问权限的公司:内部Server不通过VPN很难访问,就连Exchange Server权限管理都比Microsoft等严格得多:即便Activate Sync开放出来,即便BYOD (Bring Your Own Device),也不允许unathorized的device进行直连——仅允许Apple和Samsung的Device才可以。
-
Excel plus VBA Tip 3: Outlook中Recurrence Pattern的Exception
想起来写个Outlook的Macro是因为年纪渐渐大,记忆力越来越不够用,于是考虑用艾宾浩斯记忆曲线来加强一下自己的记忆。跟之前写过的那些“复杂”的Excel Macro相比较,Outlook的Macro更具有挑战性——可以有多个Excel的Instance,但只有一个Outlook的Instance。
-
Excel plus VBA Tip 2: DateTimePicker控件和User Form的返回值
虽然一直想得很美好,把技术相关的Blog放到CSDN上(Write Ideas Down, Together With Skills),把随笔等文章放在个人网站上。然而,事实总是很残酷,总有些想法在一边起了个头,却在另外一边掺了一腿。这里说的是,我先是写了一篇Excel plus VBA Tip 1: Using Table in Data Validation,又写了一篇[Office] VBA Practice,然后,当我想写第三篇的时候,我凌乱了,伴随着我这些天感冒的涕零。
-
MacBook Air安装Windows 8虚拟机实录
打算给MacBook Air安装Windows 8的虚拟机的需求来自MacBook Air的主人坚持使用着她的Thinkpad T400。尤其在双十一来临之际,MacBook Air的主人更是抱着T400寸步不离。询问为啥不能给MacBook Air一个春天,得到的答复是,“太麻烦了,Word程序中很多常用的功能还需要花时间找”,顿了一下,又道,“还有,淘宝的插件虽然安装了,总是有问题。另外,网上银行根本不支持Mac。”花了点时间查了查,广受赞誉的招商银行专业版确实不支持Mac系统,更别提各种证券交易软件了。
-
Excel plus VBA Tip 1: Using Table in Data Validation
在Excel定义Table或是使用Table Style (Styles Group中的Format as Table按钮)时,Excel会自动为该Table命名,从Table1, Table2开始。在Name Manager会看到对应的Table。一切看起来很完美,不是么?但注意,Table Name没有对应的Refer To,这点区别于自定义的Name,同时,在选择Table时,只有不包括Header的内容才算Table。除此之外,还有两个大问题:
-
不折腾不痛快
悲哀的发现,自己还是一个喜欢折腾的人。更悲哀的是,难得地可以休息一天的大好时间,就花费了大半天的时间,耗在无穷无尽的Ping,Tracert的命令中,从一个Router折腾到另一个Router,从Switcher折腾到终端设备。聊为记录,是为上次装修的亡羊补牢之举,兼做下次装修的未雨绸缪之备。
-
大杂烩 (0020)
Chapter 1. HTML5
-
Visual C# 2010 Express 切换Configuration和Platform: Debug/Release, Any CPU/X86/X64/Itanium
一直没注意Visual C# Express(以下简称VCSE)默认并不提供切换Configuration和Platform的功能。具体来说,VCSE会默认生成Release版本当按F6来启动Build,而按F5或者F10等启动Debug时则默认会生成Debug版本。至于Platform则根据当前Active的Platform来自动执行。
-
Fix the Frozen issue of Internet Explorer 9 Beta
Download URL for IE9 Beta: http://windows.microsoft.com/ie9
It's frequently frozen during running IE9 beta, from my test, this case occurred during switching the tabs. It's very unacceptable for this big issue of usability. So, I have to find the way out to get the IE9 runs smoothly. After several hours research, here comes the way to fix it:
1. Running IE9 without addons. On Windows 7 platform, 'Start' menu, 'All Programs', choose 'Accessories', then 'System Tools', 'Internet Explorer (No Add-ons) '. Or, professional way, input 'iexplore.exe -extoff' in Run command box directly.
2. Switch off the GPU rendering, lower performance but more stable. In 'Internet Options ' dialog (the command line to lauch it directly: inetcpl.cpl), switch off the check box: 'Use software rendering instead of GPU rendering' in 'Advance' tab.
It should works fine according to my experience.
Alva Chien
2011.02.02 -
[.NET] WPF中Resource调用方法小析
WPF支持两种格式的Resource,即binary resource和logical resource。而Binary resource又有三种方法:可以嵌入在assembly中,编译时才打包的独立文件,运行时的独立文件。至于binary resource的culture属性不在这里讨论。Visual Studio为WPF Project中的Resource定义了Action:
-
Day 3 of 21
Distance: 4.3KM Time: 37min App. Speed: 7.1KM/h
-
[Photoshop] 学无止境,百尺竿头
陆陆续续又累积了无数的片子等待PS,从去年的杭州之旅到东京、西安所拍的照片,对了,还有世纪公园的烟花。
-
[WPF] TreeViewItem, DataGridRow的UI因Field而异的解决方法
这个一个很拗口的标题,其实,我需要的是一个很简单的功能。为了把这个需求解释清楚,用一个小的案例说明:
-
Andriod?Andriod!
终于逃离了Symbian,终于丢掉了Nokia,在偶的E71华丽地以自由落体的方式亲吻了地板之后。当然,Nokia的做工是让人折服的,这样的蹂躏之下,依然只是外伤,内部完好无损。
-
Websites for WIC/XMP, EXIF, IPTC
首先,一个值得收藏的个人Blog: http://www.tassography.com/。看得偶自己都又想做一个自己的了。
Resources websites:
-
[.NET] Get properties of Photoes
这里定义的Photoes,对我来说就是BMP, JPG, TIF, 和CR2 (Canon RAW)。至于NEF之类的,暂不在我考虑范围。
-
[Office] Customize the Page Footer
Though I have digged inside the Style of MS Office five years ago when I joining SAP, I felt strongly loss when I tried to add a customized page Footer to the document.
Requirement: (1) Footer should contain the page number as well as the total amount of pages. (2) Footer should indicate the name of latest character. (3) Footer should be automatically updated after the content has updated. (4) Nice to have: fashion style.
First of all, we need a Field at Footer Design Tools.
-
Tools: Adjust Timeline of SRT file
看一部叫做《Appaloosa》的片子,可惜提供的字幕实在难以忍受。同样的问题出现在最近的《Inglourious Basterds》。
-
[Photoshop] Location of Actions and Scripts for Photoshop CS4
I always confused with the locations for Actions and Scripts, especially after upgrade the Photoshop or even the OS.
-
还是DPP好
Adobe Photoshop Lightroom也好,Google Picasa也罢,以及Windows Live Photo Gallery,无一例外都是创建一个In process的数据库来管理图片文件,问题是,偶却找不到一个能顺利通过Ctrl+C, Ctrl+V来复制图片文件的程序:Windows Live Photo Gallery,不支持RAW;Lightroom只能Export;Picasa么,虽然有复制快捷键和菜单,不知道它到底在复制啥,还有,其RAW的解像力也太弱了。偶只能叹息一声:还是DPP好用啊。
-
[.NET] C#中SendMessage通过LPARAM传递Structure
这两天一直被一个问题烦着:SendMessage在C#始终不正常。因为SendMessage是标准的WinAPI,在C/C++中,Structure可以很方便通过取地址传递给SendMessage,比如Richedit中常用的EM_GETCHARFORMAT消息:
SendMessage( hWnd, EM_GETCHARFORMAT, ( WPARAM)SCF_SELECTION, (LPARAM)cfm );
-
大杂烩V: Windows 7 and Visual Studio 2010 Beta 2 and Lightroom
Chapter 1. Windows 7 偶承认,偶安装的Windows 7 Ultimate是盗版。 其实,这么长时间以来,偶一向觉得“盗版干不掉微软,只是干掉了我们自己的软件业”。买盗版是不对的,起码买了盗版不值得到处炫耀、更不值得在网上发所谓的破解教程,但偶不得不感谢一下这些无私贡献教程的网友们,因为没有这些教程,偶是无论如何不会拿自己的机器BIOS做试验场的。 ■■■(此处略却如何在BIOS添加V2.1的SLIC,如何在Windows 7中Import证书。) 说一点Windows 7的感受,因为早在Windows 7 Beta发布时候偶已经下载并感受过其UI改动的Benefit,所以这次装Windows 7完全冲着Windows XP Mode以及Change Display Language去的。此外,UAC终于不那么烦人了。
-
低调拍照,高调PS
低调拍照,高调PS。 其实,对于PS,偶是“无知者无畏”。
-
Let's Photoshop II
PS不止,磨皮不停。
-
码农读了码农的文档之后
都说“隔行如隔山”, 但是码农这个行业, 却也相隔千万里。 比如,Code for Windows, 用C++, Visual C++; 比如,Code for Multimedia,用DirectX,GraphEdit; 比如,Code for Funny and Usage,用.NET, C#, Visual Studio; 比如,Code for ERP,用ABAP,Web Dynpro; 又, 比如,Code for Photoshop,用AS (Apple Script),VBS, JavaScript。 Adobe的Help文档说,Scripts拥有比Action更强的Customized功效, Adobe的Help文档还说,Scripts支持很多DOM, Adobe的Help文档还说,Reference to Photoshop CS3点这里,Reference to Photoshop CS4点那里, Adobe的Help文档又说,ExtendScript。。。 终于, 偶彻底明白了, 原来写Help Document是Adobe的码农, 与Microsoft码农写在MSDN上的Article, 与SAP码农写在SDN上的Document, 毫无二致。 于是, SAP的码农读了Adobe码农的文档之后, 泪流满面。
-
Let’s Photoshop I
既然逃不过磨皮这道关,那就甘之如饴好了。
-
Operation Research Toolkit: 汽车开销问题
一直想写个Toolkit来应用Operation Research中那些不错的方法。迫于LD要求,首先付之行动的便是汽车开销问题。本以为,写个算法应该不太难,真正动手的时候才发现:写个可以重用的算法就非常难,尤其是基于图这个结构。
-
Chrome OS: 又一场“星球大战计划”?
Google要出桌面版本的OS了,命名为Chrome OS,还故意弄了两张明显跑焦的、所谓的系统图片,另外又号称预装Chrome OS的上网本今年就能上市。一下子,所有的矛头全部指向Microsoft,因为Microsoft看起来是这件事情的唯一受害者。到目前为止,Microsoft还没有官方回应。
作为一个旁观者,忍不住评论两句:Google显然把Microsoft比作了苏联,所以才发动一次“星球大战计划”,只是,实在是纰漏百出,连大Q这种IT不资深人士都发现N个问题:
- Chrome OS为什么这个时候宣布要放出?当然,我觉得Google真的可能拿出一个Chrome OS来,因为这个对Google显然没有太大的难度,靠着二三十条枪的中国软件公司也能基于Linux弄出一个自己的操作系统来,何况本身就运行在Linux系统上的Google?
- Chrome OS VS Andriod OS,都是基于Linux,都是Open Source,Google为什么要搞两个?而且桌面版为啥要跟Chrome浏览器同名呢?
- Google Chrome浏览器是免费的,Chrome OS也是开源免费的,那么Google为什么要花人力、精力去研究、开发这些呢?要绑定Google的主页,Google一直资助的Firefox、Google Toolbar不是已经很好了么?
大Q觉得,这些问题不能直接回答,必须一步步的剖析Google的本源、目的和将来。 Google的人才之道 Google不傻,冲着他们跑到Microsoft大肆挖人的行为就知道他们很聪明,他们知道那些经过Microsoft那些BT般面试、薪水很高的人才才是真正的人才;从那边挖人才是最便捷的网罗人才的渠道。 Google的盈利模式 Google公司靠什么活着?归根结底靠他们的口碑,搜索竞价排名、广告那些都是口碑带来的副产品。要竖立口碑,对于一家新兴的公司来说,永远是直接冲击这个行业中口碑不好却巨无霸的公司,软件业这种目标还真的只有一个:Microsoft。Google这些年来,推出了无数针对Microsoft的、作秀性质很严重的产品,最著名的当然是:2GB的Gmail直接冲击当时50MB的Hotmail。 Google与Microsoft的差别 他们的差别在于,Microsoft提供了一大堆可执行代码,可以通过软件店买到、网上下载到;Google提供搜索,没有产品,没有Service Package。有了实物的Software做支撑,Microsoft店大欺客。没有实物的Google,只能通过推陈出新的免费产品、Idea来吸引用户,通过Gmail来留住客户。 Bing的冲击 不管中国用户如何嘲笑Microsoft的病,但Bing的出现确确实实冲击了Google。当然,说Bing现在就能取代Google为时尚早,Taobao当年干掉Eachnet也足足花了两年,然而,对Bing的冲击力,各大主流媒体都给出了一些比较客观的分析,《第一财经周刊》的Cover Story居然是Bing….O。 Chrome OS:反击还是装着反击 被Bing冲击到Google的最其本的主营业务,Google只能奋起还击,冲击Microsoft的两大收入支柱之一的Office面前看来基本失败,Google祭出另外一个杀手锏:Chrome OS,只是显得那么匆忙。
结语 (仅代表大Q观点) 对于Microsoft这个一直以提供Product为主的Software Giant来说,Bing是第一款彻底的去Windows、不走Traditional Product路线的伪Microsoft的产品,它第一次做的很花哨,不论其胜败如何,它起码都告诉世人,Microsoft要做搜索引擎的话,一样可以做的很Popular和很Fashion。 相比于Bing这款直接攻击Google心脏的搜素引擎,Chrome OS更像是Google一种Show,Google当然会真的拿出免费的Chrome OS,它其目的绝对不是跟Windows抢夺市场,它只是一种报复行径,是对Microsoft发动的一次“星球大战计划”。
以下为题外话: 中国是一个很有特色的国家,尤其是舆论的一边倒。 比如提到Microsoft就必须说他们垄断、对中国市场歧视性高价,要理直气壮的用盗版,曾有新闻报道说一个用正版的大学生觉得很受鄙视。作为这种行为的恶果,那就是,IT民工们(我们)就这么眼睁睁的看着中国软件业的垮掉,中国还有软件企业么?有,都在给国外软件做外包;中国有软件人才么?有,不是在老外直接打工就是给老外间接打工。Bill Gates在北大演讲的时候,有个号称是Open Source的支持者拿着“Free Software”的标语,这种标语看得偶这种IT民工很辛酸,软件免费,那,偶们这些民工吃啥穿啥?Google可以收广告费、关键字的费用,偶们的ERP免费了,难道偶们也在ERP中嵌入广告? 又比如,说到中石化、中石油一定要骂他们那么高的油价,比美国都贵,但中国石油要征高达37%、是美国石油税收双倍的税,没有人愿意去算这个差价。 再比如,英超收费,铺天盖地的在痛斥天盛的收费策略,却不愿意承认主流的西方国家,这种体育项目都是收费的,除了世界杯、欧冠决赛这种开路电视可以挣到足够多广告费的转播才可能免费。大Q一直以为:天盛收费没错,错在收费的价格太贵了,588块的折后价格明显脱离了市场规律,更不符合培养市场的规律,试想,如果以58块每年的价格推广英超,是不是可能结果完全不同?别老是提免费的NBA,NBA和F1都是独一无二的,而英超却面临着西甲、意甲和德甲的竞争。
是为之记。 Alva Chien (大Q) 2009.7.10
-
呓语IV:燃烧吧,CPU!
常在河边走,怎能不湿鞋;所以,接触电脑的这十年:
-
Symbian? NO!
尽管刚刚入手E71一个礼拜,我已经深深后悔,如今的S60系统已经物是人非了,暂且不论证书的引入孰是孰非,但其复杂的权限设置、基础功能的缺失更是让我这种有着数年软件开发经验的用户头疼不已。
无意讨论Symbian的市场份额持续下跌的现实(Google it, Baidu it, Windows Live it, Yahoo it!),也无意讨论Nokia的失败将直接导致Symbian死亡的裙带关系,各大论坛上流传的不仅是如何破解软件,更在开辟路径去Symbian申请CERT。无疑这打动了内需,BBS流量增加了吧,网吧、电费都要开支吧,BBS的维护人员有工作了吧,建议Symbian向各国政府申请一下补贴。
这个至今盘踞40%市场份额的智能手机操作系统,自己开发一个程序玩玩?申请一个证书先!装个输入法要DEVE的权限;要清空Calendar的内容?No way!数据放在Private的文件夹中,Access这个文件夹?申请证书吧您呐!Transaction Data用Master Data的方式处理,DELETE FLAG?这是手机么?还是SAP的ERP?SAP的ERP也提供用户操作数据的接口,而且SAP系统拿到System Administrator权限不需要向SAP申请CERT吧。。。
难怪Google脑袋一拍就能开发出一个Andriod,而且一呼百应,虽然这个系统其实基于Linux。 只可怜我老人家,刚刚跳出M8的火坑,又入Symbian的狼群。。。
是为之记。 Alva Chien 2009.04.10於上海
-
Windows 7 VS 300CNY
最近,杂七杂八的事情忙得我晕头转向,昨天才突然想起来Windows 7的ISO下载了已经快一个月了,而且再不激活,License可能会失效了。于是,打算这个周末抽时间装一下。在网上随意的浏览了一下,貌似Windows 7在初始安装阶段有个严重Bug,如果通过Delete分区来安装的话,会创建一个虚拟分区,而删除这个分区,会破坏磁盘分区表,换言之,整个硬盘数据会统统丢失。
-
Do NOT lying on technologies for we NEVER keep the speed of their refreshments!
What programming languages are paying the bills?</h3>
Survey period: 9 Feb 2009 to 16 Feb 2009
-
三国演义 > 两虎相争
Google这个号称永不为恶的公司,继续着它的口碑策略,依旧是瞄着“万恶不赦”的MS,不过这次Target变成了Internet Explorer了。Google Chrome说来就真的来了。
-
SQL Server Compact Edition 3.5 SP1
不得不记录一下,为了那终于到来的native 64-bit Support!
-
俺要学PS了
终于下定决心好好钻研一下PS了,倒不是因为考试要考这个,而是觉得自己那些只会调饱和度、拉拉曲线以及极其娴熟的打Logo的PS手法,已经越来越拿不出手了。
-
珍惜生命,远离QQ
本来俺不用QQ已经很多年了。只是最近为了跟一帮摄影班的同学交流,不得不重新启用QQ,结果忍受了不到一个礼拜的我,最终还是决定彻底远离QQ,因为我还是比较珍惜自己的生命,人嘛,谁不想活得长一点?
-
依旧恶心的iTunes,还是超烂的Safari
自从白得了一个iPod Touch以后,俺不得不再次用上了Apple的iTunes,不过这次俺学了个乖,不再给Apple做免费测试,为了兼容iTunes,我不得不额外做了个镜像音乐路径来专供iTunes用。
-
Do you IE8 today?
It seemed that the software giant in Raymond has waken up. So that it only took about 1 year for the Internet Explorer to upgrade from 7 to 8, however it cost more than 4 years for IE to upgraded from 6 to 7.
-
Losing...
I am totally lost in the choice between Microsoft SQL Server Compact Edition and Microsoft JET Engine, though I have written an article as a free ad. for Microsoft SQL Server Compact, click here to see that article.
-
How to install Photoshop CS3 on Vista 64bit
Adobe Creative Suite 3 application installer closes with error code 2739 in Windows Vista
-
ACReciter Beta 1.0
In fact, I had decided to read more books instead of written so many codes (mostly in C# now). However when I finished the travel to Nanjing, I can not help myself to write another application again - I need a reciter application to record any word or sentence anywhere.
-
Using Windows Vista 64-bit Version
Finally, I got the 64-bit Windows Vista Home Premium to instead of the unactived version, and it’s great that the new OS supports 4G memory very well.
However, there comes lots of other issues I have met:
- Concerning the language input, only Microsoft ships the 64-bit version PinYin method.
- Internet Explorer 64-bit should be the most pure and safe web browser, because lots of web controls can’t fit the capability with this version, for example, the most used control - Adobe Flash Player can not run on that.
- Windows Media Player 11 which shiped with Vista looks strange, it can not set the advanced options while the lower version of WMP do support.
- The drivers are limited, of course, the biggest producer, such as Intel, nVidia has released their own 64bit Vista solution. In fact, the drivers which support Vista is significant less than Windows XP, and 64-bit OS make thing worst.
- Some applications didn’t support Vista at all, even Microsoft Visual Studio 2005 and SQL Server 2005. Fortunately, Microsoft offers the service package to fit it. But it is quite different with the other products, for example, nVidia PureVideo Decoder is a powerful decode which will enable the PureVideo of nVidia graphics cards when playing HD solution video files, but the decoder do not support Vista. Of course, some games will be refuse to install or run for they can not recognize the DirextX 10.
- The key point, performance issues. From my own test, lots of application supports 64-bit Vista, but all run on WOW64 - a new technology offered by Microsoft to run Win32 application upon x64 or IA64 OS, it is obvious the performance will lost for the transportion. I didn’t read out the official paper from Microsoft, but a third party report says, the performance lost is limited, and can be omitted with compared to Windows XP, and this third party test upon the wide-used softwares, such as Microsoft Office, Adobe Photoshop. For my point of view, this result is acceptable but still need enhancement.
- For my own applications, they all fall into the hell. Because a CPU-neutral .NET application run on 64-bit OS, the OS will start a 64-bit address space, unfortunately, I realize the IO part using C++ under Win32 solution. The 64-bit address space can not load a Win32 module and vice versa. It seems I need hard work to do.
As a conclusion, it will need another 2-3 years then 64-bit can be populars.
-
A perfect weekend
- Ferrari win in Australia, the first F1 race of 2007!
- Real Madrid win!
- HIH Client 1.0 is released!
HIH Client is an application which come from PIH project, built on Microsoft .Net Framework. I took six months to do the movement, from MFC (PIH built on MFC, using C++) to FCL (ADO.Net, Form programming, etc.). And, proud to say, I am an experienced .Net programmer now, after finished 100,000 lines of C# codes.
Major features of HIHClient:
- Using Database file instead of self defintion data format.
- High security of file, the encryption module written in C++ still.
- Supports all (almost?) database collection, because I realized two types of connection: SQL Server and OleDb (Access, Oracle, whatever)…
- Search functionality, you can search everything.
- Intergated more modules, as it name says ‘Home Information Hub’, such as Books, Movie, Discs have been added.
- New UI module (Fish Ren’s Word: Coool!), based on a free component Krpton Toolkit.
- More powerful options, lots of Configurable Objects, configure it as you will.
- Multi-languages, as PIH does. But it supports switch languages dynamically.
- More Extensive, supports plug-in application..
- User access control, as PIH does.
- Multiple users as previous version.
-
Angel_The man/woman who fixes a long-time existed issue
After I decide to reinstall the OS system to get rid of the strange problem which occurred only video file playback with the new Graphics Card (Nvidia GeForce 7600 GS, AGP 8X), it takes about 1 hours to do the preparation. And I could not find out the English OS disc, so I have to choose Chinese version as an instead.
After the new OS installation is completed, install the Graphics driver, the latest version from the official site, restart, test it. Dumps again. Remove the driver, choose a older one, which is shipped with the product CD, but the issue is appeared still.
Then, search it out via BaiDu.com in Chinese description, no directly answer; search it around the producer’s web site, still no answer. Go to Microsoft’s update site, for some all-known reasons, it refused to offer me an opportunity to get the customize update. Disappointed! But suddenly an idea is shot at my mind, that is install the motherboard’s driver!
Make every possible efforts, I choose to try it, reboot the OS as usual. Then, the unbelievable result comes! It works. When the video play back works properly, I can not help laughing and cheering! To make it sure, I download some HD files from Microsoft site for testing: link.
I also solve a software issue meaning while, that is, calling an external DLL in .NET framework always get a crash, check all the codes are fine, but however, I find the way to solve it. First, for the DLL built with C++, the exported function always be changed via extension, so using ‘extern “C” {}’ syntax to correct it. Second, if the DLL dependence on the other DLLs, make sure the dependence DLL are located on the searchable paths.
The last thing need to celebrate is the NFS 9 (Most wanted) has been installed successfully. It also a reason why I choose to reinstall the OS. It is so strange that the setup of NFS 9 will failed always, even I have copied all the files into the hard disc. And I checked the install file, I found the file content is CRC validation error. Now in the newly installed OS, it has been installed successfully. And I got the English version of NFS 9 finally, that also means I can run it in my XBOX 360 even I can’t read out the Japanese character at all.
So great, right?
-
Reading Notes
Reading a good book, and a cup of coffee, and I won’t ask for more…
- Inside Microsoft SQL Sever 2005
- Applied Microsoft .NET Framework Programming, Completed.
- Part I: Basics of the Microsoft .NET Framework, Updated: 15.11.2006
- Part II: Working with Types and the Common Language Runtime, Updated: 16.11.2006
- Part III: Designing Types, Updated: 21.11.2006
- Part IV: Essential Types, Updated: 04.12.2006
- Part V: Managing Types, Update: 08.12.2006
-
Learning FCL – A series of technical articles
FCL, Functional Class Library, basis component of .Net Framework.
-
Feeling the power of ASP.Net
After I have put a month to study the C# under the .Net Framework 2.0 and have writen a Windows Form version P.I.H., I am satisified with current status, and the GP of C# is great, and C# is powerful tool and much more easier than C++, but it still low performance in execution, maybe upgrade my notebook is one of best solutions.
Then, I put my attention to ASP.Net now, it is quite different with the Web dynpro technology based on SAP Netweave platform, but, Microsoft document is full and easy-use than SAP’s, so it is very easy to find out the documents which you need, even some special problems need solved by myself still. However, SQL Server 2005 Express edition is a free tool and fit all my requirements as a tool to do exercises, and ADO.Net support all functionalities too. Anyway, SAP Netweave is just a platform for SAP system, ASP.Net is the only weapon which is developed by Microsoft, and it stands for a weapon which must fight against the Java system.
5 years goes by…
From C++/STL/MFC/COM/DirectX
-
C++ Review Series
写在前面的话
-
Basic Concept of UML
UML is a powerful language for Software Engineering. And the useful tools will be Rational Rose and Microsoft Visio.
-
Quick Review of Microsoft.Net
As I explained in my articles earily, I have to stop the review process of C++ and STL, instead, I must put all my attention to Microsoft.Net platform.
-
DirectShow 学习系列