摘要:
4 tips for staying productive on Friday如何让你的周五和周一一样有效率1.Schedule Your Day with Tasks 用任务计划一天 Sometimes the to-do list seems less urgent on a Friday. (‘It can wait until next week.’) While that may be true, do you really want to start your Mondays already behind? To combat this mindset,schedule a mee 阅读全文
随笔档案-2014年02月
Girls: different perspectives to consider
2014-02-27 10:16 by kingshow, 223 阅读, 收藏,
摘要:
Girls: different perspectives to consider成为极品女人的十大要素The point of articles such as these isn't to dictate how you're supposed to live. The point is to offer you different perspectives to consider, so you can make more conscious and deliberate choices for yourself. 文章里的这些观点并不是要指示你如何生活,而是提供不同的思 阅读全文
Android Style and Theme 样式和主题
2014-02-24 11:09 by kingshow, 608 阅读, 收藏,
摘要:
Styles和Themes都是资源文件位于res/values,当然,可以用Android提供的一些默认的风格和主题资源,也可以自定义自己的主题和风格资源。 Android xml风格和主题文件的编写,是涉及到整个程序界面美观的因素之一。 当设计应用程序时,你可以用风格和主题来统一格式化各种屏幕和UI元素。较好的应用风格和主题,可以实现美观而统一的界面,和web中的CSS一样,Android也可以为界面定义全局、公用的Style。 Styles:风格是一个包含一种或者多种格式化属性的集合,可以将其作为一个单位用在布局XML单个元素当中。 比如,可以定义一种风格来定义文本的文字大小和颜色,然后. 阅读全文
Things about single men that women hate
2014-02-24 10:36 by kingshow, 203 阅读, 收藏,
摘要:
Things about single men that women hate为何你俘获不了女神的心?If you listen in to a group of single women talking, you might realize that they mostly talk about the men in they meet. What's more, you might realize that they can speak volumes about the things that men do that annoy the heck out of them. The 阅读全文
Android Alertdialog之多选对话框
2014-02-21 19:30 by kingshow, 1873 阅读, 收藏,
摘要:
Android UI各种各样,下面是自己学习时写的多选对话框的实例。也在网上看了很多实例,但很多实例都没有将选择后的值显示出来,或者选择后,当用户取消选择时,以前选择的值还在的情况很多。下面是实例不会有这样的问题。 Android中的对话框形式有四种,分别是一般对话框形式,列表对话框形式,单选按钮对话框,多选按钮对话框,这里主要是针对多选对框框的介绍。一、创建alertdialog工程,如图二、activity_main.xml中代码 View Code 三、MainActivity中的代码package com.bruce.alertdialog;import android... 阅读全文
8 Types Of Friends You Need To Have in Your Life
2014-02-21 12:27 by kingshow, 405 阅读, 收藏,
摘要:
8 Types Of Friends You Need To Have in Your Life一生中应该有的8种类型的朋友Did you know that people without friends are more likely to die an early death? 你知道吗?没有朋友的人往往死的早。 It’s true. Just ask science. 这是真的。不信,可以向科学求证。 To up your chances of living a long, happy life, having a bunch of fair-weather buddies won’t 阅读全文
Android ContentProvider 内容提供者
2014-02-20 17:05 by kingshow, 507 阅读, 收藏,
摘要:
ContentProvider 内容提供者,是Android四大组件之一。一、简述 可以理解为一个特殊的存储数据的类型,它提供了一套标准的接口来获取和操作数据。可以把数据封装到ContentProvider 中,从而是这些数据可以被其他的应用程序所共享。搭建起了所有应用程序之间数据交换的桥梁!1. 内容提供者可以将应用中的数据对外进行共享 2.内容提供者将数据的访问方式统一,不必针对不同数据类型采取不同的访问策略 3.内容提供者将数据封装,只暴露出我们希望提供给其他程序的数据 4.内容提供者中数据更改可被监听二、创建内容提供者 定义类继承ContentProvider,根据需要重写内部方... 阅读全文
10 signs you’re dating the wrong person
2014-02-20 08:34 by kingshow, 310 阅读, 收藏,
摘要:
10 signs you’re dating the wrong person10个迹象表明TA不是你的真心人 Do you have any exes who were so awful you can’t help wondering, “What the hell was I thinking?” Join the club. If you’d like to make sure you’re with Mr. or Ms. Right, watch out for these 10 signs you’re dating the wrong person. 有没有某位前任糟糕到让你忍. 阅读全文
SQLite增删改查(利用系统API)
2014-02-19 16:19 by kingshow, 253 阅读, 收藏,
摘要:
在SQLite增删改查(自己写SQL语句)中介绍了通过自己写SQL语句来实现增删改查。下面是利用系统API来实现。一、在上一篇中工程中直接增加PersonService2,PersonDao2和MyTest2类。如图二、PersonService2详细代码package com.bruce.db_test.service;import java.util.List;import java.util.Map;import android.content.ContentValues;public interface PersonService2 { public boolean inser... 阅读全文
15 things to talk about in a healthy relationship
2014-02-19 08:24 by kingshow, 225 阅读, 收藏,
摘要:
15 things to talk about in a healthy relationship男女交往中可以谈论的15个话题 1. Your Daily Activities 1. 你的日常活动 All of your conversations don’t have to be earth shattering. Spend time talking about your day-to-day activities. Discuss what time you woke up, what you ate for lunch, or what you discussed with a co 阅读全文
SQLite增删改查(自己写SQL语句)
2014-02-18 14:14 by kingshow, 1077 阅读, 收藏,
摘要:
在http://www.cnblogs.com/kingshow123/p/sqlitecreate.html中,实现了数据库的创建和升级。没有增加向数据库中添加、删除、修改和查询Data的代码,这里用一种方式实现这些功能。一、在先前的工程中增加PersonService接口和PersonDao类。看下图:二、PersonService接口代码package com.bruce.db_test.service;import java.util.List;import java.util.Map;public interface PersonService { public boolea... 阅读全文
Why you have so few friends?
2014-02-18 11:46 by kingshow, 338 阅读, 收藏,
摘要:
Why you have so few friends?十个原因告诉你:为什么你的朋友那么少1. You Complain A Lot 你总是抱怨 If you’re constantly complaining about your job, lack of money, or unfair life, people won’t care to spend a lot of time with you. Complaining gets old fast. Try to develop a more positive attitude and look for more interestin 阅读全文
android数据库SQLite简单测试
2014-02-14 14:43 by kingshow, 1756 阅读, 收藏,
摘要:
SQLite是文本型的数据库,这里是简单的数据库创建和数据库升级。上班闲得无聊,突然想起昨天有人问android数据库的创建和升级,所以简单记录一下,高手没有必要看这个博文 O(∩_∩)O~一、首先看一下整个工程目录二、创建android工程名db_test,打开AndroidManifest.xml文件,添加单元测试点击instrumentation->add,然后再右边Name行处,点击Browser,添加InstrumentationTestRunner;在Target package行处,点击Browser添加自己应用包名(这里是com.bruce.db_test) 注意:在完成 阅读全文
C语言 stringcpy,stringcat,stringcmp实现
2014-02-14 08:22 by kingshow, 4871 阅读, 收藏,
摘要:
复习复习C语言,O(∩_∩)O~#include#include//实现从源字符串string到目的字符串str的复制函数char* stringCpy(char* str,const char* string){ char* s=str; while(*string) { *s++=*string++; } *s='\0'; //返回目的字符串的首地址 return str;}//函数将字符串string链接到字符串str的尾部char* stringCat(char* str,const char* string){ char... 阅读全文
20多岁的年轻人在2014年该做的9件事
2014-02-08 14:42 by kingshow, 111 阅读, 收藏,
摘要:
9 things every 20-something should do in 201420多岁的年轻人在2014年该做的9件事It's crazy how quickly time is going by. Every year, I make goals for myself and can never seem to accomplish them all. It's like I try to cram all of these tasks -- for instance, starting a company, winning the lottery, gettin 阅读全文
Sit-down habit is killing us
2014-02-07 10:06 by kingshow, 439 阅读, 收藏,
摘要:
Sit-down habit is killing us坐以待毙:久坐坏处多How many hours do you spend sitting in a chair every day? Eight hours in the office plus three hours in front of the TV after work is the norm for many people. 你每天有几小时是坐在椅子上的?对很多人来说,标准答案就是上班时间再加上下班后在电视机前度过的三小时。 You probably don’t need an expert to tell you that 阅读全文