控制器调用: function gets() { $model = Model('ap_pic'); $model->select = ' id, size_type '; $gets['page'] = empty($_GET['page'])...
分类:
其他好文 时间:
2015-05-23 12:47:33
阅读次数:
125
当我写content=$(".pic_01 .use"); //content是一个数组,里面放了一堆按钮for(var j=0;j<content.length;j++){ //循环了每一个按钮content[j].click(function(){ //想要给它们每人绑定一个点击事件但是不...
分类:
其他好文 时间:
2015-05-21 12:07:03
阅读次数:
111
51,AVR,MSP430,PIC单片机的区别与联系
分类:
其他好文 时间:
2015-05-20 07:04:50
阅读次数:
148
import reimport urllibdef getHtml(url):page=urllib.urlopen(url)html=page.read()return htmldef getpic(html):s=r'src="(.*?\.jpg)" pic_ext'piclist=re.fin...
分类:
编程语言 时间:
2015-05-17 18:28:38
阅读次数:
149
公司人员命名图片习惯的加上了空格,今天有个需求,要批量下载这个写图片,这下蛋疼了正确的url是这样的http://url211901.jpghttp://url001.jpg写到文本里就要加转义,变成http://url\2119\01.jpghttp://url\001.jpg结果循环的结果就蛋疼了#!/bin/bash
pic=$(catlist.txt)
for..
分类:
编程语言 时间:
2015-05-13 19:59:12
阅读次数:
495
单片机编程就是C语言+振荡器配置+寄存器设置。
以前对PIC振荡器的配置都是拿来主义,把别人的代码拿过来用就行了。这两天特意研究下振荡器的配置与时钟切换。在mplab IDE和C30编译器下,针对PIC24FJxx系列单片机完成的测试。...
分类:
其他好文 时间:
2015-05-13 19:45:52
阅读次数:
127
#include
#include
using namespace std;
const int maxn = 100 + 5;
char pic[maxn][maxn];
int m, n, idx[maxn][maxn];
void dfs(int r, int c, int id) {
if(r = m || c = n) return;
if(idx[r][c] > 0...
分类:
其他好文 时间:
2015-05-11 21:50:54
阅读次数:
100
Android图片处理整理总结:
1:Android拍照的时候我们会遇到一些状态,比如用三星手机拍照的话,有可能在拍完照片后,照片会自动旋转,下面这个方面是把旋转的照片还原回来:
Bitmap bitmap = BitmapFactory.decodeFile(Const.ACT_CREATE_PIC_PATH.concat(photoName));int angle= imageUtil...
分类:
移动开发 时间:
2015-05-11 18:03:23
阅读次数:
165
一,基于数据库的PHP项目
目前的动态网站都是基于数据库的,将网站内容使用数据库管理系统去管理用户,栏目,图片,文章,评论都存储在数据库中
比如
XSCMS库
users
clumn
pic
articles
commention
二,为什么使用My...
分类:
数据库 时间:
2015-05-11 10:48:25
阅读次数:
115
/***自定义动画,利用Camera可以实现3D效果在Activity中调用一下方法p_w_picpath=(ImageView)*findViewById(R.id.p_w_picpath);Bitmapbitmap=*BitmapFactory.decodeResource(getResources(),R.drawable.main_back_pic);*p_w_picpath.setImageBitmap(bitmap);p_w_picpath.startA..
分类:
其他好文 时间:
2015-05-09 20:34:02
阅读次数:
171