上一页 1 2 3 4 5 6 ··· 8 下一页
2013年3月31日
摘要: 一直都只能用右键菜单的方式进行自动排版。后来发现是与搜狗输入法的热键冲突,更改搜狗热键即可。 阅读全文
posted @ 2013-03-31 13:42 Jiang, X. 阅读(2769) 评论(0) 推荐(0) 编辑
2013年3月27日
摘要: @Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) {if(keyCode == KeyEvent.KEYCODE_BACK){Toast toast = Toast.makeText(MainActivity.this, "back", Toast.LENGTH_SHORT); toast.show();}return true;} 阅读全文
posted @ 2013-03-27 20:57 Jiang, X. 阅读(850) 评论(0) 推荐(0) 编辑
2013年3月25日
摘要: 1. simple approach:load:Load data from MAT-file into workspaceexample:array = load('1.txt')2. flexible approach:step 1.Open file, or obtain information about open files: fopen()step2.Read data from binary file: fread() 阅读全文
posted @ 2013-03-25 22:18 Jiang, X. 阅读(190) 评论(0) 推荐(0) 编辑
2013年3月21日
摘要: Use the Linux OS1. Install GIT:sudo apt-get install git2. Clone from the server:git clone https://code.google.com/p/audio-analyzer-for-android/3. Done:johnny@johnny-Rev-1-0:~$ git clone https://code.google.com/p/audio-analyzer-for-android/Cloning into 'audio-analyzer-for-android'...remote: C 阅读全文
posted @ 2013-03-21 15:38 Jiang, X. 阅读(267) 评论(0) 推荐(0) 编辑
2013年3月10日
摘要: 1. 在源代码中使用R.resource_type.resource_name或者android.resource_type.resource_name2.在xml文件中的使用引用自定义资源:@[package:]type/name引用系统资源android:type/name 阅读全文
posted @ 2013-03-10 15:49 Jiang, X. 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1.使用System.out.println语句a 直接在代码中插入:System.out.println("johnny: test");b 打开Window--Show View--Other--Android--LogCatc Filter : johnny 得到:由此可见,在输入println消息的时候要有独特的特征,这样才能够在众多的消息中通过filter找到它。注意,filter所过滤的是text栏的内容,对其他栏没有任何的过滤作用。2. 使用Log类aimport android.util.Log;bLog.d("TAG", "j 阅读全文
posted @ 2013-03-10 14:21 Jiang, X. 阅读(333) 评论(0) 推荐(0) 编辑
2013年3月7日
摘要: What Compsci textbooks don't tell you: Real world code sucksBy Dave MandlPosted in Developer, 21st December 2012 10:19 GMTThere’s a kind of cognitive dissonance in most people who’ve moved from the academic study of computer science to a job as a real-world software developer. The conflict lies 阅读全文
posted @ 2013-03-07 20:50 Jiang, X. 阅读(617) 评论(0) 推荐(0) 编辑
摘要: In 2007, computer science lecturer Neil McBridearguedthatcomputer sciencewas going the way of Latin languages…that a variety of factors might contribute to the death of this field, including robots, lack of interest and progress in computing itself. Three years later, computer science seems to be ho 阅读全文
posted @ 2013-03-07 19:42 Jiang, X. 阅读(271) 评论(0) 推荐(0) 编辑
2013年2月17日
摘要: Data Science Central:http://www.datasciencecentral.com/profiles/blogs/berkeley-course-on-data-science 阅读全文
posted @ 2013-02-17 15:12 Jiang, X. 阅读(275) 评论(0) 推荐(0) 编辑
2013年2月8日
摘要: 1.打开记事本,复制以下内容进去,保存为run.regWindows Registry Editor Version 5.00 [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run] 2.打开记事本,复制以下内容进去,保存为run.bat@echo off :清除注册表 regedit /s g:\soft\run.reg :结束已经运行的进程 taskkill /f /im alga. 阅读全文
posted @ 2013-02-08 20:23 Jiang, X. 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: Eclipse-Window-Preferences-Java-Editor-Content Assist Auto activation triggers for Java:[Add all of the alphabates here, from a to z]. 智能提示:alt+/ 智能填充:ctrl+space 阅读全文
posted @ 2013-02-08 11:57 Jiang, X. 阅读(720) 评论(0) 推荐(0) 编辑
摘要: A style is a collections of properties that specify the look and format of a view or window. They allow to separate the design from the content. Without Style XML, we can design it in the Layout XML:<... 阅读全文
posted @ 2013-02-08 11:05 Jiang, X. 阅读(207) 评论(0) 推荐(0) 编辑
2013年2月7日
摘要: 直接设置XML Layout:<TextView android:id="@+id/text_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20sp" android:layout_marginRight="20sp" android:textStyle="bold" android:background= 阅读全文
posted @ 2013-02-07 19:11 Jiang, X. 阅读(215) 评论(0) 推荐(0) 编辑
2013年2月3日
摘要: Toast是一种非常方便的提示消息框,他会在程序界面上显示一个简单的提示信息,这个提示信息框用于向用户生成简单的提示信息,它具有两个特点。1.Toast提示信息不会获得焦点,2.Toast提示信息过一段时间会自动消失使用Toast来生成提示消息也非常简单,只要如下几个步骤:1.调用Toast的构造器或makeText方法创建一个Toast对象。2.调用Toast的方法来设置该消息提示的对齐方式,页边距,显示内容等。3.调用Toast的show()方法,将他显示出来。public void sendMessage(View view) { // Do something in re... 阅读全文
posted @ 2013-02-03 11:18 Jiang, X. 阅读(17072) 评论(1) 推荐(0) 编辑
2013年2月1日
摘要: 首先按照程序的目录结构大致分析: res/layout/ 这个目录存放的就是布局用的xml文件,一般默认为main.xml res/values/ 这个目录存放的是一堆常量的xml文件 res/drawable/ 存放的是一些图片什么的,当然图标也在这里 下面主要对layout下的xml文件做个介绍,顺便也把布局的方法总结一下: ·文件的开头 <?xml version="1.0" encoding="utf-8"?> 这是在说明xml版本及字符编码 ·紧接着到了关键的部分: <LinearLayout xmlns: 阅读全文
posted @ 2013-02-01 20:31 Jiang, X. 阅读(333) 评论(0) 推荐(0) 编辑
摘要: Project - Generate JavadocConfigure:Choose the path of Javadoc(mine is C:\Program Files\Java\jdk1.6.0_10\bin\javadoc.exe)Finish 阅读全文
posted @ 2013-02-01 19:49 Jiang, X. 阅读(172) 评论(0) 推荐(0) 编辑
2013年1月31日
摘要: Java provides three types of comments:Single-Line (C++-Style) CommentsThe simplest comment in Java is the single line comment. It starts with two forward slashes and continues to the end of the line. For example:Figure 1: Single-line comments// this is a single-line commentx = 1; // a single-line co 阅读全文
posted @ 2013-01-31 21:31 Jiang, X. 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Android projects are the projects that eventually get built into an.apkfile that you install onto a device. They contain things such as application source code and resource files. Some are generated for you by default, while others should be created if required. The following directories and files c 阅读全文
posted @ 2013-01-31 21:00 Jiang, X. 阅读(772) 评论(0) 推荐(0) 编辑
2013年1月30日
摘要: <b></b>加粗字体 <i></i> 斜体字体 <u></u> 给字体加下划线 \n 换行 \u0020表示空格 \u2026表示省略号 使用&lt;b>和&lt;b>来打印出<b></b> 这样的文字;“&lt;”表示“<”的意思; 使用textView.setText(Html.fromHtml("Hello <b>World</b>,<font size=\"3\" c... 阅读全文
posted @ 2013-01-30 21:32 Jiang, X. 阅读(6249) 评论(0) 推荐(0) 编辑
摘要: 为什么需要把应用中出现的文字单独存放在string.xml文件中呢? 一:是为了国际化,当需要国际化时,只需要再提供一个string.xml文件,把里面的汉子信息都修改为对应的语言(如,English),再运行程序时,android操作系统会根据用户手机的语言环境和国家来自动选择相应的string.xml文件,这时手机界面就会显示出英文。这样做国际化非常的方便。 二:为了减少应用的体积,降低数... 阅读全文
posted @ 2013-01-30 21:30 Jiang, X. 阅读(697) 评论(0) 推荐(0) 编辑
摘要: Linux KernelAndroid relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.LibrariesAndroid includes a set of C 阅读全文
posted @ 2013-01-30 20:05 Jiang, X. 阅读(620) 评论(0) 推荐(1) 编辑
2013年1月27日
摘要: SHOW ALL DATABASES SHOW {DATABASES | SCHEMAS} [LIKE 'pattern' | WHERE expr]SHOW DATABASES lists the databases on the MySQL server host. CREATE DATABASECREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db... 阅读全文
posted @ 2013-01-27 16:16 Jiang, X. 阅读(631) 评论(0) 推荐(0) 编辑
2013年1月26日
摘要: The mysqladmin program is used to administrate various aspects of the MySQL database server. Using it, the administrator can perform tasks such as: create and delete databases, shutdown the database s... 阅读全文
posted @ 2013-01-26 11:46 Jiang, X. 阅读(248) 评论(0) 推荐(0) 编辑
摘要: LOGIN In CMD: >>mysql.exe –uroot –p >>Enter Password: ******** >>mysql> It’s like this:mysql -uusername -ppassword –hhostAttention: There is no blank after the parameters: -u, -p, –hThe MySQL client ... 阅读全文
posted @ 2013-01-26 11:42 Jiang, X. 阅读(991) 评论(0) 推荐(0) 编辑
摘要: ->Create new EER (Extended Entity-Relationship) Model ->Click “+” at toolbar of Physical Schemata -> Double click “Add Table” -> Edit and Add columns -> Menu[Model] —[Create Diagram from Catalog O... 阅读全文
posted @ 2013-01-26 11:16 Jiang, X. 阅读(597) 评论(0) 推荐(0) 编辑
2013年1月23日
摘要: 1、自动排版编辑.格式化选定内容 Ctrl + K,Ctrl + F(form)根据周围的代码行,正确缩进选定的代码行。2、注释与去掉注释功能。编辑.注释选定内容 Ctrl + K,Ctrl + C(comment) 使用编程语言的正确注释语法将代码的当前行标记为注释。 编辑.取消注释选定内容 Ctrl + K,Ctrl + U 从代码的当前行中移除注释语法。 将插入点移动到文档中的下一个大括号处。 编辑.转到大括号 Ctrl + ] 将插入点移动到文档中的下一个大括号处。 编辑.向下滚动一行 Ctrl + 向下键 将文本向下滚动一行。仅可用于文本编辑器。 编辑.向上滚... 阅读全文
posted @ 2013-01-23 12:51 Jiang, X. 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 一、总述:使用using语句,定义一个范围,在范围结束时处理对象 (该对象必须实现了IDisposable接口)。其功能和try ,catch,finally完全相同。二、用法: using (Class1 c = new Class1()) { }//在范围结束时清理非托管不受GC控制的资源 其与下面的try…catch…finallya功能一样Class1 f = new Class1(); try { //执行代码 } catch() { //异常处理 } finally { f.Disposable(); }例如: using (SqlConne... 阅读全文
posted @ 2013-01-23 12:36 Jiang, X. 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 通过using语句实现非GC资源的自动回收。 还需要有try…catch…之类的异常检测语句,检测file.exist。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using Syste... 阅读全文
posted @ 2013-01-23 10:19 Jiang, X. 阅读(946) 评论(0) 推荐(0) 编辑
2013年1月22日
摘要: 1. 下载安装ecliplse2. 下载安装Android SDK3.Eclipse安装Developer Tools插件解压“eclipse-java-indigo-SR1-win32”,双击“eclipse”,进入eclipse主界面第一步:点击help->Install New SoftWare->Add按钮Name:任意字母字符Location:https://dl-ssl.google.com/android/eclipse/第二步:加载完“Developer Tools”,点击选中其。第三步:Next第五步:选中“I accept the terms of the li 阅读全文
posted @ 2013-01-22 23:17 Jiang, X. 阅读(259) 评论(0) 推荐(0) 编辑
摘要: name of error:NVIDIA OpenGL DriverNVIDIA display driver files from different (incompatible) versions of the driver have been detected.HOW TO SOLVE:Uninstall the NVIDIA driver and then install it again.It's easy. 阅读全文
posted @ 2013-01-22 22:57 Jiang, X. 阅读(235) 评论(0) 推荐(0) 编辑
2013年1月19日
摘要: I can not log with my password nor can I change my password with root.Others have met with the problem too.https://ask.fedoraproject.org/question/1518/fc16-adduser-cannot-lock-etcpasswd-try-again-laterhttp://superuser.com/questions/296373/cannot-lock-etc-passwd-try-again-laterhttps://answers.launchp 阅读全文
posted @ 2013-01-19 18:04 Jiang, X. 阅读(1737) 评论(0) 推荐(0) 编辑
2013年1月18日
摘要: Data mining draws upon ideas,1. sampling, estimation, and hypothesis testing from statistics;2. search algorithms, modeling techniques, and learning theories from artificial intelligence, pattern recognition, and machine learning. 阅读全文
posted @ 2013-01-18 21:16 Jiang, X. 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1. ScalabilityIf data mining algorithms are to handle these massive data sets, then they must be scalable.2. High DimensionalityFor some data analysis algorithms, the computational complexity increases rapidly as the dimensionality increases.3. Heterogeneous and Complex DataDealing with data with no 阅读全文
posted @ 2013-01-18 21:07 Jiang, X. 阅读(2876) 评论(0) 推荐(0) 编辑
摘要: Data mining is an integral part of knowledge discovery in databases (KDD), which is the overal process of converting raw data into useful information.The process of knowledge discovery in databases:Input Data-> Data Preprocessing(Feature Selection, Dimensionality Reduction, Normalization, Data Su 阅读全文
posted @ 2013-01-18 20:44 Jiang, X. 阅读(260) 评论(0) 推荐(0) 编辑
2013年1月15日
摘要: 常用的google关键字:foo1 foo2 (也就是关联,比如搜索xx公司 xx美女)operator:foofiletype:123 类型site:foo.com 相对直接看网站更有意思,可以得到许多意外的信息intext:foointitle: fooltitle 标题哦allinurl:foo 搜索xx网站的所有相关连接。(踩点必备)links:foo 不要说就知道是它的相关链接allintilte:foo.com我们可以辅助"-" "+"来调整搜索的精确程度直接搜索密码:(引号表示为精确搜索)当然我们可以再延伸到上面的结果里进行二次搜索&quo 阅读全文
posted @ 2013-01-15 14:02 Jiang, X. 阅读(3296) 评论(0) 推荐(2) 编辑
2013年1月10日
摘要: 排名学校学术声誉雇主声誉论文引用率总分1麻省理工学院(MIT)95.5909292.8美国2斯坦福大学91.587.796.691.9美国3卡内基-梅隆大学10079.190.891美国4美国加州大学伯克利分校(UCB)90.281.595.389.1美国5哈佛大学85.593.787.588.6美国6牛津大学85.292.588.188.3英国7剑桥大学83.391.584.386.1英国8苏黎世联邦理工学院(瑞士联邦技术研究所)82.186.489.285.5瑞士9新加坡国立大学(NUS)8094.781.584.9新加坡10普林斯顿大学7881.493.583.7美国11东京大学83.8 阅读全文
posted @ 2013-01-10 22:00 Jiang, X. 阅读(4826) 评论(0) 推荐(0) 编辑
2013年1月4日
摘要: Data Mining is the process of automatically discovering useful information in large data repositories.Data Mining techniques are deployed to scour large databases in order to find novel and useful patterns that might otherwise remain unknown. 阅读全文
posted @ 2013-01-04 16:22 Jiang, X. 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Data mining techniques can be used to support a wide range of business intelligence applications such ascustomer profiling, targeted marketing, workflow management, store layout, and fraud detection.It can also help retailersanswer important business questions such as"Who are the most profitabl 阅读全文
posted @ 2013-01-04 16:16 Jiang, X. 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 美国知名投资人愿意投资的30大创意方向 美国风险投资机构Y Combinator合伙人、知名天使投资人Paul Graham日前撰文,首次透露了Y Combinator愿意进行投资的30大创意。他的看法或许代表了硅谷风投机构的普遍看法。 1.解决版权纠纷的方法 由索尼和环球提起的音乐版权诉讼不仅给文件共享软件的发展造成障碍,也破坏了自己的业务模型。目前的局面决不是最终的解决方案。除了音乐,电影行业未来也将面临类似问题。 2.简化的浏览 在很多情况下,用户希望极度简化的互联网浏览。例如,老年人和儿童并不需要完整的互联网,他们希望的只是通信或共享照片等。数码相框和火狐浏览器体现了这样的... 阅读全文
posted @ 2013-01-04 15:55 Jiang, X. 阅读(222) 评论(0) 推荐(0) 编辑
2013年1月2日
摘要: C#中有一种应用方法叫做委托。其应用方式及实现功能和我们以前为大家介绍的C++函数指针有不少相同之处。在这篇文章中,我们将会针对这两种方法做一个简单的介绍,方便大家区分理解。委托和函数指针都描述了方法/函数的签名,并通过统一的接口调用不同的实现。但二者又有明显的区别,简单说来,委托对象是真正的对象,而函数指针变量只是函数的入口地址。对于高层应用来讲,委托的灵活性和适用范围更胜C++函数指针;但对于底层应用,函数指针则是不可替代的。下面分别是委托类型和函数指针类型定义的例子:delegateintFn(inta,intb)//C#委托 typedefint(*Fn)(inta,intb)//C+ 阅读全文
posted @ 2013-01-02 14:21 Jiang, X. 阅读(992) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页