- 博客(13)
- 收藏
- 关注
原创 那些烂代码教给我的事
(以前的博文,转到csdn上来)如果作为一个程序员,你对我写的东西不感兴趣,可以直接跳到最后一句。这周三的时候,我还是跟往常一样在做我的事,偷偷摸摸学点儿ror。一个老师让一个同学叫我过去帮忙看程序,说是程序编译不通过。。。先说明,这个项目组的项目是一个地质相关的绘图软件,大部分的程序设计到石油数据,和一些计算机图形学的东西,是跟中石油合作的,有大概8、9年的样子了,无测试。几
2012-10-20 20:47:15 3005 6
原创 ruby单词单数复数相互转换
require 'active_support/inflector'puts "user".pluralize #=> usersputs "repositories".singularize #=> repository
2012-10-31 20:24:36 3607
原创 浅说ruby嵌套函数
想到这个问题是因为看了网上的一个问题,大家可以先看看:http://pivotallabs.com/users/nick/blog/articles/302-ruby-quiz-a-trick-question 我先从第二个问题开始讲起: 下面的演示可以在irb中,也可以自己写一个main.rb之类的文件运行尝试(我的ruby是1.9.3) 首先,开始看一个最简单的函数,
2012-10-28 22:52:52 2713
原创 Silverlight DataBinding Converter:根据binding对象调整显示
我希望写一系列关于Silverlight DataBinding的文章,分别讲解Silverlight Binding中不同的功能。本文将会讲的是DataBinding中使用Converter。演示的demo是根据值显示一个小图标,当slider数值小于50的时候,显示绿色,当数值大于等于50时,显示红色。 本文中所有代码都可以在github中查看,git版本中采用了master-dev的
2012-10-22 11:56:12 2837
原创 Head Fisrt Android Development读书笔记(7)Multi Screep Apps
Screen Navigation1.Create a new Activity and configure it to use a new Layout2.Create an Intent3.Call startActivity or startActvityForResult to launch a new screen4.onActivityResult to deal wi
2012-10-19 10:27:58 822
原创 Head Fisrt Android Development读书笔记(6)Lists and Adapters
ListView = ScrollView[ ViewGroup[A View for Each Row] ]Adapter an interface whose implementations provide data and the display of that data used by the ListView.public class TimeTracker
2012-10-16 15:39:30 841
原创 Silverlight中AutoCompleteBox异步更新自定义的ItemSource
本文分为两部分,第一部分演示如何在AutoCompleteBox使用自定义的数据类型和自定义的数据匹配方式,第二部分将演示当itemsource从webservice中异步获取时如何实现. 本文中所有代码都可以在github中查看,git版本中采用了master-dev的方式。在master中可以查看每一个demo的最后完成,在dev中可以查看每一步的代码。github地址:git@git
2012-10-14 14:23:17 2154
原创 Head Fisrt Android Development读书笔记(4)Multiple Device Support
in apk webserveradd the mime type application/vnd.android.package-archive fro the .apk extension portrait mode \ landscape mode intellijandroid2.3.3 :portrait:landscape:android 4.1 l
2012-10-11 12:25:33 721
原创 Head Fisrt Android Development读书笔记(3)When things take time
The activity lifecycleonCreate() : called when your activity is created and typically where layouts and configuration occurs -->onStart(): called when your activity is displayed on the screen. -->
2012-10-10 15:54:12 771
原创 Head Fisrt Android Development读书笔记(2)Working with Feeds
RSS (Really Simple Syndication)/res/drawable-hdpi/test_image.gif android:src="@drawable/test_image">SAXParser(cont.)Android Permission to access InternetUnknowHostException
2012-10-09 13:00:57 676
原创 Head Fisrt Android Development读书笔记(1)Adding Behavior
Make a button action1. use the Button onClick attribute to declare the name of the action method2.Open the Activity that displays the layout with the Button3.Add a method with a name matching th
2012-10-07 23:10:36 915
原创 Ubuntu下配置Intellij的Android开发环境
一、Android SDK安装1.安装java jdk2.安装android SDK,在网站上可以下载你所对应的操作系统的sdk:http://developer.android.com/sdk/index.html。我这里的是linux3.下载完成以后,得到android-sdk_r20.0.3-linux.tgz,解压。注:如果使用的是64位的linux系统,需要安装ia32-
2012-10-05 15:06:07 4764
原创 Silverlight中Datagrid添加Button列用于控制单行对象
说明:vs2010 ultimate + silverlight5本文中所有代码都可以在github中查看,git版本中采用了master-dev的方式。在master中可以查看每一个demo的最后完成,在dev中可以查看每一步的代码。github地址:[email protected]:kiwiwin/silverlight-demo.git 文件夹名称datagrid-button
2012-10-01 16:48:06 4441
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人