码迷,mamicode.com
首页 >  
搜索关键字:use    ( 28727个结果
u3d animation运用明细
u3d的动作legacy模式,经测试得出using UnityEngine;using System.Collections;public class AnimateCon : MonoBehaviour{ // Use this for initialization void Star...
分类:其他好文   时间:2014-08-27 12:19:17    阅读次数:190
sql server 2008 数据库压缩log文件大小脚本(压缩本地文件,由百G压缩至MB)
做的项目数据库文件超过200G,网上到处搜压缩数据日志的方法,但是好多日志文件的物理大小未变,执行以下脚本可以改变物理文件大小,正式生产环境慎用,可先本地测试决定是否使用(DB_NAME为对应数据库名称);USE[master]GOALTERDATABASEDB_NAMESETRECOVERYSIMPLEWITHNO_WAITGOALTERDA..
分类:数据库   时间:2014-08-27 11:07:48    阅读次数:249
perl socket编程
soket是网络套接字,它是ip地址和端口号的组合。在perl中使用套接字需要SOCKET模块;以经过测试可以使用:下面使用如下的例子进行说明: 服务器端: #!/usr/bin/perl -w use Socket; use IO::Handle; socket(SOCK,AF_INET,SOCK_STREAM,getprotobyname("tcp"));#初始化socket se...
分类:其他好文   时间:2014-08-27 10:59:17    阅读次数:179
Mina、Netty、Twisted一起学(三):TCP消息固定大小的前缀(Header)
在上一篇博文中,有介绍到用换行符分割消息的方法。但是这种方法有个小问题,如果消息中本身就包含换行符,那将会将这条消息分割成两条,结果就不对了。本文介绍另外一种消息分割方式,即上一篇博文中讲的第2条:use a fixed length header that indicates the length...
分类:Web程序   时间:2014-08-27 10:33:17    阅读次数:287
杀掉会重新开启rails s的进程
运行了rails s 后出现了一下的错误:/.rvm/gems/ruby-1.9.3-p374/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or ...
分类:其他好文   时间:2014-08-27 00:12:36    阅读次数:297
Tomcat启动时项目重复加载,导致资源初始化两次的问题
最近在项目开发测试的时候,发现Tomcat启动时项目重复加载,导致资源初始化两次的问题 导致该问题的原因:如下图:在Eclipse中将Server Locations设置为“Use Tomcat installation(takes control of Tomcat installation)”时,就会导致该问题!根本原因:解决方法一:把server.xml中的context删除掉但这会导致一个...
分类:其他好文   时间:2014-08-26 22:59:36    阅读次数:290
js 创建方法
贴个代码先:function O(user,pwd){ //use constructorthis.user=user;this.pwd=pwd;this.get=get;return this;}function O2(user,pwd){ //use factoryvar obj=new Obj...
分类:Web程序   时间:2014-08-26 19:16:46    阅读次数:199
HDU4973:A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-26 15:38:46    阅读次数:270
Ceph: Mix SATA and SSD Within the Same Box
The use case is simple, I want to use both SSD disks and SATA disks within the same machine and ultimately create pools pointing to SSD or SATA disks. In order to achieve our goal, we need to modif...
分类:其他好文   时间:2014-08-26 12:01:06    阅读次数:410
用ASDF来组织Lisp程序编译和加载
一.建立示例程序hello world 1.编写asdf 文件hello.asd (defpackage :hello-system (:use #:asdf #:cl)) ? ?? (in-package :hello-system) ? ?? (defsystem hello ? ? :name "hello world" ? ? :versi...
分类:其他好文   时间:2014-08-26 12:00:56    阅读次数:471
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!