自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

仰望星空,脚踏实地。

Stay Foolish !Stay hungry !

  • 博客(88)
  • 资源 (3)
  • 收藏
  • 关注

原创 [android] ViewPager has not been bound using JakeWharton/ViewPagerIndicator

The way to fix this bug :step 1 : add android:visibility=”gone”<com.viewpagerindicator.TabPageIndicator android:id="@+id/tpi_news_menu" android:layout_width="match_parent"

2015-09-01 13:14:38 587

原创 [algorithm] graph algorithm

graph

2015-08-18 20:11:59 503

原创 [算法] top 10 algorithm

top 10 algorithm

2015-08-18 20:02:54 551

原创 [面试]努力方向和面试准备

1.面试官看重什么就两点:现在的能力,未来的潜力。公司需要的是T字形的人才,其中“一”代表的是全面的计算机体系基础知识,包括计算机原理、操作系统、计算机网络、算法等,也就是计算机专业的相关课程;其中“|“代表了专业深度,这部分在社招的时候更是考察的重点,包括技术深度、项目经历、团队贡献、实际解决问题的能力等。很多人不理解为什么公司很看重基础知识,比如我们组有很多人是JS出身,现在做Android一样

2015-08-17 12:36:41 856

原创 [Book]书单

书单

2015-08-13 20:29:29 339

原创 [ios] UI TableView

UITableView

2015-08-10 10:25:57 322

原创 [ios] UI Delegate

What is the use of delegate ? where ? when?监听那些不能通过addTarget监听的事件!主要用来负责在两个对象之间,发生了某些事件时,来传递消息和数据代理设计模式,是在oc中使用最为广泛的一种设计模式例如UITextField -> UIControl , 不能添加addTarget ,可以使用代理,让viewController监听textFiel

2015-08-09 17:04:33 424

原创 [IOS] Object - Oriented

//———————object-oriented—————————–//类的属性应该初始化,String可以用String?class Person { //swift property is public var age:Int = 0; var name:String? ; // ? 表示 name为空或nil或没有设置,name是可选的 //构造方法

2015-08-08 13:28:56 327

原创 [IOS] Swift enum and Struct

// ——————enum——————————// type 1enum Direction{ case East case South case West case North}enum Direction2{ case East, South,West, North}var d = Direction.Eastvar d2: Direction

2015-08-08 10:00:16 400

原创 [ios] Swift Closure(闭包)

———————Closure闭包————————– Closure 类似于之前oc的Blocks , 还有c语言的函数指针var arr = [20,9,39,39,46]//(num:Int,value:Int)->Bool is the Closure type, cb的类型func hasClosureMatch(arr:[Int], value:Int, cb:(num:In

2015-08-07 16:00:32 387

原创 [ios] Swift Basis

swift //——————– string—————————// 1. String()// 2. "\()"var age = 10var hand = 2var num = 12.444var num2: Float = 12.0var floatStr = String(stringInterpolationSegment: num2)var c = "\(num)"/

2015-08-07 09:51:08 342

原创 [ios] Recommended book list

IT社区:http://www.cnblogs.com/ http://www.csdn.net/ http://www.51cto.com/ http://www.cocoachina.com/ http://www.techcn.com.cn/ http://mobilehub.io/ 推荐 iOS 学习网站:http://www.w3school.com.cn/

2015-08-06 18:25:22 427

原创 [ios] How to fix thread 1 signal sigabrt

How to fix thread 1 signal sigabrt check if every connection is useful , if not , delete it !this bug often appears when you import other people’s project !

2015-08-05 21:48:17 333

原创 [ios] Xcode shortcuts

Xcode shortcutscommand + R 运行程序shift + command + H 在模拟器中回到”桌面”, 相当于在 iPhone上按一下 home 键shift + command + (按两下 H), 相当于在 iPhone上按两下 home 键

2015-08-03 22:40:27 410

原创 [objective-c] 面向对象1

一、 定义OC的类和创建OC的对象➢ 接下来就在OC中模拟现实生活中的情况,创建一辆车出来。首先要有一个车子类,然后再利用车子类创建车子对象 ➢ 要描述OC中的类稍微麻烦一点,分2大步骤:类的声明、类的实现(定义)。跟函数类似,函数有分声明和定义 1. 类的声明 1) 代码编写 ➢ 定义一个Car类,拥有2个属性:轮子数、时速,1个行为:跑 ➢ 类名\属性的命名

2015-08-02 21:12:20 346

原创 [Objective-c] OC介绍

一、 OC简介➢ C语言的基础上,增加了一层最小的面向对象语法 ➢ 完全兼容C语言 ➢ 可以在OC代码中混入C语言代码,甚至是C++代码 ➢ 可以使用OC开发Mac OS X平台和iOS平台的应用程序 二、 OC语法预览关键字 ➢ 基本上所有关键字都是以@开头 ➢ 下面列举一些常见的关键字,看一眼就行了,不用去翻资料查找它们的含义@inte

2015-08-02 20:09:35 359

原创 [IOS] The difference between functions and methods

The difference between functions and methods

2015-08-01 19:01:16 369

原创 [IOS] Class Memory Analysis

memory analysis Each object has a isa pointer which point to it’s class , so each object can get the same method from the class .

2015-07-31 21:40:22 297

原创 [Swift] function pointer(address) as the parameter of function

1 return func pointer(address)func getFuncPointer()->(Int->Int){ func add(num:Int)->Int{ return num+1; } return add;}var f = getFuncPointer();println(f(100)) 2 function point

2015-07-29 20:20:27 429

原创 [Android] How to import library into android studio

Project Structure configA this project will use the libraryB is SlidingMenu ‘s build.grade filenotice:android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { mi

2015-07-24 22:44:23 586

转载 [Android] How to use github with android studio

For this tutorial, the project will be connected to Github.The meaning of this post is to give you a quick start to get you up and running.Using Version Control (VCS)Android Studio can work with the fo

2015-07-21 22:22:44 483

原创 【Android】child thread refresh UI

Message Queue Mechanismpublic class MainActivity extends Activity { static ImageView iv; static MainActivity ma; static Handler handler = new Handler(){ //此方法在主线程中调用,可以用来刷新ui

2015-07-20 13:27:01 606

原创 [LeetCode] 4 Median of Two Sorted Arrays

package pack4;import java.util.Arrays;public class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { int len = nums1.length + nums2.length; if(len%

2015-07-12 20:14:42 279

原创 [LeetCode] 4 Find the kth smallest element in two sorted array

Find the kth smallest element in two sorted arraypublic int kthSmallestElem(int[] num1,int[] num2,int k){ /* * 1) num1 length = 0 , num2 length > 0 * 2) num2 length = 0 , num

2015-07-12 20:03:12 901

原创 【Java】Java reflection

一 what is java class file(eg : demo.class)A Java class file is a file (with the .class filename extension) containing Java bytecode that can be executed on the Java Virtual Machine (JVM). A Java class

2015-07-11 16:18:53 444

原创 【LeetCode】3 Longest Substring Without Repeating Characters

Solution1public class Solution { public int lengthOfLongestSubstring(String s) { boolean []exist = new boolean[256]; int i=0,maxLen = 0; for(int j=0;j<s.length();j++)

2015-07-07 22:38:36 357

转载 【BigData】100 open source Big Data architecture papers for data professionals

Big Data technology has been extremely disruptive with open source playing a dominant role in shaping its evolution. While on one hand it has been disruptive, on the other it has led to a complex ecos

2015-07-07 20:15:11 967

原创 【Android】Environment variable does not point to a valid JVM instalation

To solve this, add the JAVA_HOME variable in Users variables instead of System variables.Install 64 bit JDK and JRE if you have a 64-bit computer and set the JAVA_HOME variable like in the picture注意环境变

2015-07-05 19:36:53 504

原创 【java】单例模式涉及的多线程问题

懒汉式,安全class Single{ private static final Single s = new Single(); private Single(){} public static Single getInstance() { return s; }} 饿汉式,不安全,要加同步代码块或同步函数,class Singl

2015-07-05 18:40:55 313

原创 【LeetCode】2 Add Two Numbers

/** * You are given two linked lists representing two non-negative numbers. The * digits are stored in reverse order and each of their nodes contain a single * digit. Add the two numbers and return

2015-07-05 12:21:23 377

原创 【java】Collection-API

todo—

2015-07-04 15:59:55 351

原创 【linux】Vmware中安装ubuntu无法通过NAT上网

比较弱智的方法:关闭虚拟机后,打开主界面里的 编辑(Edit)——编辑网络参数,在最左下角有一个“恢复默认”,点击后让其重新分配子网IP地址,完毕后重新打开安装的XP或Linux就行了

2015-07-04 14:02:35 344

原创 【LeetCode】1 Two Sum

HashMap/** * Given an array of integers, find two numbers such that they add up to a * specific target number. * <p> * The function twoSum should return indices of the two numbers such that they

2015-07-02 14:21:52 281

原创 【java0010】一张图看懂java集合

图片来自NUS ISS PPT

2015-06-30 18:20:58 468

原创 【java0009】多线程同步代码块和同步函数

同步代码块和同步函数同步函数的使用的锁是this;同步函数和同步代码块的区别: 同步函数的锁是固定的this。同步代码块的锁是任意的对象。建议使用同步代码块。class Ticket implements Runnable{ private int num = 100;// Object obj = new Object(); boolean flag = true;

2015-06-30 16:04:39 402

原创 【java0008】多线程卖票(二)

线程安全问题产生的原因:1,多个线程在操作共享的数据。 2,操作共享数据的线程代码有多条。当一个线程在执行操作共享数据的多条代码过程中,其他线程参与了运算。 就会导致线程安全问题的产生。 解决思路;就是将多条操作共享数据的线程代码封装起来,当有线程在执行这些代码的时候, 其他线程时不可以参与运算的。必须要当前线程把这些代码都执行完毕后,其他线程才可以参与运算。在java中,用同步代码

2015-06-30 10:35:53 423

原创 【java0007】多线程卖票(一)

多线程卖票(一)

2015-06-29 21:15:02 382

原创 【java0006】多线程 - Thread VS Runnable

一 创建线程的第一种方式:继承Thread类。 二 创建线程的第二种方式:实现Runnable接口。1,定义类实现Runnable接口。 2,覆盖接口中的run方法,将线程的任务代码封装到run方法中。 3,通过Thread类创建线程对象,并将Runnable接口的子类对象作为Thread类的构造函数的参数进行传递。 为什么?因为线程的任务都封装在Runnable接口子类对象的ru

2015-06-29 19:52:36 441

原创 【java0005】 多线程-线程的状态图

【java】 多线程-线程的状态图

2015-06-29 18:30:52 364

原创 【word001】如何解决Word中文字间距突然变大

具体操作

2015-06-07 12:44:53 5130

angular2权威教程 中文版 The Complete Book on Angular2

angular2权威教程 中文版 The Complete Book on Angular2

2018-01-06

web worker 详解

web worker 详解 web worker 详解 web worker 详解 web worker 详解

2018-01-06

Reactive Extensions for javascript

rxjs Reactive Extensions for javascript Reactive Extensions for javascript

2017-12-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除