码迷,mamicode.com
首页 > 全部
Android 使用ContentProvider扫描手机中的图片,仿微信显示本地图片效果
首先我们先看第一个界面吧,使用将手机中的图片扫描出来,然后根据图片的所在的文件夹将其分类出来,并显示所在文件夹里面的一张图片和文件夹中图片个数,我们根据界面元素(文件夹名, 文件夹图片个数,文件夹中的一张图片)使用一个实体对象ImageBean来封装这三个属性package com.example....
分类:微信   时间:2014-05-22 16:01:54    阅读次数:574
UIImageView和UIButton
1> 使用场合* UIImageView: 如果仅仅是显示图片,不需要监听图片的点击* UIButton: 既要显示图片,又要监听图片的点击2> 相同:能显示图片3> 不同点* UIButton能处理点击事件, UIImageView不能处理点击事件* UIButton既能显示图片, 又能显示文字*...
分类:其他好文   时间:2014-05-22 16:02:38    阅读次数:198
ref 关键字out关键字
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace outAndref{ class Program ...
分类:其他好文   时间:2014-05-22 16:04:40    阅读次数:258
Breaking parallel loops in .NET C# using the Stop method z
List integers = new List() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };Parallel.ForEach(integers, (int item, ParallelLoopState state) =>{ if (item > 5) { ...
分类:Web程序   时间:2014-05-22 16:03:56    阅读次数:287
HTML5资料整理 [From luics]
来自http://www.cnblogs.com/luics/,新浪微博@徐凯-鬼道HTML5资料整理项目组要做html5这块,花了一周左右时间收集的,快有一年时间了,部分内容需要更新,仅供参考。如需更新请回复几点说明:本次收集的信息以HTML5为主,这里的HTML5 ~=HTML5 + Javas...
分类:Web程序   时间:2014-05-22 16:05:18    阅读次数:841
C#中的数组
一维数组:可以如下例所示声明一个由 5 个整数组成的数组:int[] myArray = new int [5];此数组包含从 myArray[0] 到 myArray[4] 的元素。new运算符用于创建数组并将数组元素初始化为它们的默认值。在此例中,所有数组元素都初始化为零。可以用相同的方式声明存...
分类:其他好文   时间:2014-05-22 16:06:30    阅读次数:242
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-05-22 16:05:56    阅读次数:239
Linux System Programming 学习笔记(六) 进程调度
1. 进程调度the process scheduler is the component of a kernel that selects which process to run next.进程调度器需要使 处理器使用率最大化,并且提供 使多个进程并发执行的虚拟Deciding which pr...
分类:系统相关   时间:2014-05-22 16:07:11    阅读次数:505
我在大学的3年
在大学的这三年时间里,编程成为了我生活的全部。 从大一上了C程序设计开始,给我印象最深刻的是大一下学期测量学的奖励作业-闭合导线测量的程序设计,虽然开发出来的是控制台应用程序,但是最让我兴奋的是真正解决现实中难以解决问题的那种快感。自己用全站仪外业测数据,然后内业自己写程序处理,分析,最后得出...
分类:其他好文   时间:2014-05-22 16:07:47    阅读次数:212
JQ each
tomjackmarry
分类:其他好文   时间:2014-05-22 16:11:02    阅读次数:198
单例模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;/* * 单例模式 * 保证对象的唯一性 */namespace SingleDemo{ class Program { ...
分类:其他好文   时间:2014-05-22 16:10:25    阅读次数:222
LINUX QQ2(转载)
关于这个话题,小编写过多次文章,也是很多朋友关心的问题。前几日,由于小编手贱,升级Wordpress后不满意,只得重装旧版本的Wordpress,却忘了备份网站图片,导致损失惨重。近日都没有写新文章,只是在夜以继日地抓图、补图。在补图的过程中,小编翻阅网站成立之初的文章,觉得文字不够简练,图片也不够...
分类:系统相关   时间:2014-05-22 16:09:10    阅读次数:357
Parallel stepped for loops in .NET C# z
for (int i = 0; i SteppedIntegerList(int startIndex, int endEndex, int stepSize){ for (int i = startIndex; i { Console.WriteLine...
分类:Web程序   时间:2014-05-22 16:08:30    阅读次数:281
innodb和myisam存储引擎插入速度
--innodb和myisam存储引擎插入速度------------------------------------2014/05/21MySQL 5.6 全部默认设置,插入数据9999条,性能一般的虚拟机。mysql> delete from test;Query OK, 10000 rows ...
分类:数据库   时间:2014-05-22 16:12:53    阅读次数:295
MVC 授权过滤器 AuthorizeAttribute
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace 过滤器.Filtes{ /// /// 授权过滤器,在Acti...
分类:Web程序   时间:2014-05-22 16:12:14    阅读次数:371
javascript学习7-细节总结
学习js,总结了一些需要注意的细节部分,和大家一起分享,共同进步。一、javascript区分大小写js数据类型:1.基本数据类型-数值型,字符串型,布尔型2.复杂类型:数组,对象3.特殊类型:null,undefined二、javascript中函数2种调用方式1.根据函数名直接调用,如:test...
分类:编程语言   时间:2014-05-22 16:14:56    阅读次数:329
多线程
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:编程语言   时间:2014-05-22 16:14:16    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!