`
cn_arthurs
  • 浏览: 322114 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
 随着行业发展,产品经理这个群体在IT行业也越来越受到关注,各种产品交流学习组织蓬勃兴起,作为其中的一员,一直以来就想写写自己对于产品经理这一角色的认识。俗话说,一个成功的男人身后必然有一个默默的女人,那 ...
在android系统中,通过代码定制方式实现"电话呼叫"和"发送短信"功能 1.电话呼叫 电话号码 + 电话呼叫事件 + 电话呼叫权限 Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:13333333333"); MainActivity.this.startActivity(intent); --AndroidManifest.xml <uses-permission android:name="android.per ...
在运行项目的时候,出现 emulator: ERROR: the user data image is used by another emulator. aborting     没有正常关闭导致的,关闭模拟器,删除android-sdk-windows\.android\avd\对于版本\下的以.lock结尾的文件夹. 重启模拟器即可.

Toast简单使用

1. 使用图片方式显示Toast Toast toast = new Toast(this); ImageView view = new ImageView(this); view.setImageResource(R.drawable.icon); toast.setView(view); toast.show();   2. 使用文字方式显示Toast Toast toast = Toast.makeText(this, "lalalal", Toast.LENGTH_LONG); View textView = toast.getView( ...
package lab.sodino.android; import android.app.Activity; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.text.Spannable; import android.text.SpannableString; import android.text.Spanned; im ...
package com.cordyschina.apptoolkit.util.http; import java.io.ByteArrayInputStream; import java.io.InputStream; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.InputStreamRequestEntity; import org.apache.commons.httpclient.methods.PostMethod; imp ...
#!/bin/bash i=1 while [ 0 ];do [ $i -eq 1 ] && { echo 10;i=0; } || { echo 192;i=1; };sleep 2 done      
来是很简单一个事情,转过来是因为打字机这事比较有趣…… http://blog.csdn.net/xyp84/archive/2009/08/11/4435899.aspx ============淡定的分割线=============== 今天写了个shell脚本,在自己机器上运行正常,给同事,运行报错syntax error near unexpected token `,左看右看shell脚本没有问题,没有办法google搜索,发现一位仁兄讲的挺好,内容如下:       用命令vi -b 打开你的SHELL脚本文件,你会。发现每行脚本最后多了个^M。   那么接下来就要搞清楚这个^M是什 ...
参考:http://linux.net527.cn/fuwuqiyingyong/Webfuwuqi/20434.html   Apache安装路径为:/usr/local/apacheLinux的启动级别为5,版本为CentOS5Apache安装完后,创造Apache无法主动 启动,查察 /etc/rc.d/rc5.d/下,应当没有S打头,httpd最后的链接文件。1、将apachectl文件拷贝到/etc/rc.d/init.d 中,然后在/etc/rc.d/rc5.d/下介入链接即可。下令如下:cp /usr/local/apache/bin/apachectl /etc/rc.d/i ...
参考:http://www.delnabla.cn/article.asp?id=151   很多书中会有如上图所示的代码高亮显示,其实在word中可以如下设置:点菜单栏上的“格式”--->样式和格式...--->新样式...--->名称(自己定义,比如:代码高亮)--->样式类型:段落--->样式基于:无样式--->后续段落样式:代码--->点下面的“格式”--->边框--->底纹,选择一个需要的底纹,也可以增加边框,按个人需要而定,点确定就ok了。选择要编辑的代码段,点击word右边我们新建的格式,名字是我们自己定义的“代码高亮”,就 ...
转载自:http://blog.csdn.net/wei801004/archive/2009/07/03/4318852.aspx   编辑/etc/selinux/config,找到这段:# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of e ...
转载自:http://tolywang.itpub.net/post/48/406624 oracle的其他版本也适用 The information in this document applies to: Oracle Net Services - Version: 10.1.0.3This problem can occur on any platform. Symptoms The listener fails to start with the following errors:TNS-12537: TNS:connection closedTNS-12560: TNS:p ...
import java.io.ByteArrayInputStream; import java.io.InputStream; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.InputStreamRequestEntity; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.methods.Request ...
最新需要使用MAIL服务器进行测试,正所谓山不在高,有仙则灵.水不在深,有龙则灵.功能不要强大,能用就行 (冷~~~)1.安装JDK1.5以上版本 2.下载最新的JES压缩包  (http://www.ericdaugherty.com/java/mailserver/#Introduction) ,解压到目标目录. 3.为了测试方便,我在 c:/window/system32/drivers/etc/hosts/ 添加一个IP映射,127.0.0.1 training.com 4.配置mail.conf , user.conf , log.conf(如果有必要的话) --------- ...
我通过安装mysql-connector-odbc-5.1.7-win32.msi驱动,创建mysql的odbc连接,测试没问题,但是在修改配置的时候,总是提示驱动程序的ConfigDSN、ConfigDriver或ConfigTranslator失败     后来经过删除该驱动,改成安装mysql-connector-odbc-3.51.27-win32.msi驱动就没问题了 
Global site tag (gtag.js) - Google Analytics