码迷,mamicode.com
首页 > 其他好文
erlang的spawn函数
问:1. spawn(fun() -> loop() end).2. spawn(loop()).语句1和2到底有什么区别? 2会阻塞,1不会, spawn到底是怎么执行的?? 过程能否说详细点.loop() ->receive ok -> ok, loop(); stop -> stopend.答...
分类:其他好文   时间:2014-12-24 11:14:03    阅读次数:174
同EXCEL沟通的最佳方式-------宏之实例1
这次和大家分享的事关于excel中宏的一个真实案例。这个宏实例是根据某部门同事的需求编写的一段非常简单的代码。里面涉及到判断单元格是否填充颜色,if语句,和for语句。细致的语法不想多说,主要是想和大家分享对宏的认识,让大家对宏产生兴趣。大家先看下表,截图是已将可识..
分类:其他好文   时间:2014-12-24 10:08:57    阅读次数:147
基于STM32的学习型通用红外遥控设备的设计实现(三)
3.1 红外脉宽存储及FLASH的读写    根据STM32型号的不同,FLASH容量由16K到1024K不等。 FLASH模块主要由三部分组成:主存储器、信息块、闪存存储器接口寄存器。模块组织见《STM32中文参考手册》小节《2.3.3 嵌入式闪存》。 主存储器用来存放代码和数据常数,对于大容量产品,划分为256页,每页2K字节;中小容量产品每页则是1K。信息块的启动程序代码用...
分类:其他好文   时间:2014-12-24 10:06:15    阅读次数:278
数据结构实验总览
实验1链表的插入和删除 【实验目的】 1、 了解单链表、循环链表和双链表的基本知识; 2、 掌握算法思想和数据结构的描述; 3、 掌握链表的插入、删除的相关语句及基本方法。 【实验步骤与要求】 1、 实验前的准备 (1) 了解C语言的基本概念; (2) 了解C语言的基本段落。 2、 上机操作 (1) 了解链表的基本知识; (2) 掌握算法思想和数据结构的描述; (3) 掌握...
分类:其他好文   时间:2014-12-24 10:05:53    阅读次数:125
1Nginx+fastdfs分布式文件存储
?? 准备,将所需的软件传到服务器上,服务器的列表如下: fastdfs-nginx-module_v1.15.tar.gz FastDFS_v4.06.tar.gz libevent-2.0.21-stable.tar.gz nginx-1.5.6.tar.gz openssl-1.0.1c.tar.gz pcre-8.36....
分类:其他好文   时间:2014-12-24 10:01:52    阅读次数:226
lvs的nat模式和dr模式
一.lvs的nat模式: web端:192.168.3.124      通过访问nginx的反向代理192.168.8.123:80,传送到后端realserver上。 lvs端eth0: dip 192.168.3.123      eth0:0  vip 192.168.8.123     realserver1端eth0:192.168.3.128  echo "hello,192....
分类:其他好文   时间:2014-12-24 10:02:45    阅读次数:202
LeetCode:Majority Element
题目描述: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the array is non-empty and the majori...
分类:其他好文   时间:2014-12-24 10:03:49    阅读次数:120
九度OJ—题目1186:打印日期
题目描述: 给出年分m和一年中的第n天,算出第n天是几月几号。 输入: 输入包括两个整数y(1 输出: 可能有多组测试数据,对于每组数据, 按 yyyy-mm-dd的格式将输入中对应的日期打印出来。 样例输入: 2000 3 2000 31 2000 40 2000 60 2000 61 2001 60 样例输出: 2000-01-03 2000-01...
分类:其他好文   时间:2014-12-24 10:00:24    阅读次数:179
编译华硕asuswrt固件时遇到的问题 configure not supporting AM_INIT_AUTOMAKE
Description Configure of icinga-reports-1.8.0 throws the following error: root@localhost:/usr/src/icinga-reports-1.8.0# ./configure --with-jasper-server=/opt/jasperreports-server-cp-4.7.0 ./confi...
分类:其他好文   时间:2014-12-24 10:00:10    阅读次数:395
[LeetCode]Symmetric Tree
【题目】 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3...
分类:其他好文   时间:2014-12-24 10:00:49    阅读次数:181
华为机试—算日期
题目:算日期 输入一个日期,输出这是这一年的第几天。(题目中没有给出闰年的定义) 输入 20131231 输出 365 #include //判断是否为闰年 int isleapyear(int year) { if(year%4==0 && year%100!=0 || year%400==0) return 1; r...
分类:其他好文   时间:2014-12-24 10:01:27    阅读次数:122
Centos中git的安装
?? CentOS的yum源中没有git,只能自己编译安装,现在记录下编译安装的内容,留给自己备忘。 确保已安装了依赖的包 yum install curl yum install curl-devel yum install zlib-devel ...
分类:其他好文   时间:2014-12-24 10:00:09    阅读次数:186
WTL对话框应用程序响应键盘消息
修改对话框程序的PreTranslateMessage()消息 1 BOOL CMainDlg::PreTranslateMessage(MSG* pMsg) 2 { 3 int nCurSel; 4 if((nCurSel = m_wndOutputList.GetCurSel()...
分类:其他好文   时间:2014-12-24 09:59:45    阅读次数:145
Soufun_News
using AnfleCrawler.Common;using System;using System.Collections.Generic;using System.ComponentModel;using System.IO;using System.Linq;using System.Net...
分类:其他好文   时间:2014-12-24 09:58:16    阅读次数:129
将文件夹下所有文件输出到日志文件中(包括所有子文件夹下的)
转载:http://www.cnblogs.com/lori/p/3529936.html代码: static void GetFiles(List arr, string dir) { arr.AddRange(Directory.GetFiles(dir));...
分类:其他好文   时间:2014-12-24 09:58:03    阅读次数:110
Using pg_dump restore dump file on Odoo
pg_restore -C -d postgres db.dump
分类:其他好文   时间:2014-12-24 09:57:55    阅读次数:211
剪切板操作SetClipboardData GetClipboardData
转载:http://blog.csdn.net/ycc892009/article/details/6521565Code: 01.// Funciton: 02.// 拷贝数据到剪切板 03.// 从剪切板粘贴数据 04.// Data:2011/4/8 05.#includ...
分类:其他好文   时间:2014-12-24 09:57:16    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!