现在位置: 首页 > Manuela33c发表的所有文章
  • 09月
  • 29日
综合 ⁄ 共 402字 评论关闭
B/S结构(Browser/Server,浏览器/服务器模式),是WEB兴起后的一种网络结构模式,WEB浏览器是客户端最主要的应用软件。这种模式统一了客户端,将系统功能实现的核心 部分集中到服务器上,简化了系统的开发、维护和使用。客户机上只要安装一个浏览器 (Browser),如Netscape Navigator或Internet Explorer,服务器安装Oracle、Sybase、Informix或 SQL Server等数据库。浏览器通过Web Server 同数据库进行数据交互。   B/S最大的优点就是可以在任何地方进行操作而不用安装任何专门的软件,只要有一台能上网的电脑就能使用,客......
阅读全文
  • 08月
  • 13日
数据库 ⁄ 共 1937字 评论关闭
每次看看书、写写代码都会有一段让自己沮丧的时间-------自己还是什么都不会啊。 看到了一个程序,想把它的那个SQL Server2000的程序改为mysql的代码,结果给自己找了一大堆麻烦,到现在也没弄清楚,只能先记下点东西,留着明天再看了。 建个表: create database stuinfo; use stuinfo; create table student( stuId int(4) not null primary key, stuName varchar(10) not null, stuScore int(3) ); insert into student values('0001','犀利哥','80'); insert into student values('0002','宇哥','50'); insert into student va......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 44字 评论关闭
http://www.techug.com/website-make-you-relax
阅读全文
  • 08月
  • 23日
综合 ⁄ 共 1381字 评论关闭
 CAEmitterLayer *snowEmitter = [CAEmitterLayer layer];     snowEmitter.emitterPosition = CGPointMake(self.view.bounds.size.width / 2.0, -30);     snowEmitter.emitterSize        = CGSizeMake(self.view.bounds.size.width * 2.0, 0.0);;          // Spawn points for the flakes are within on the outline of the line     snowEmitter.emitterMode        = kCAEmitterLayerOutline;     snowEmitter.emitterShape    = kCAEmitterLayerLine;          // Configure the snowflake emitter cell     CAEmitterCell ......
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 864字 评论关闭
org.red5.server.api.service.IServiceCapableConnection 我们可以在此撰写此一连线(NetConnection)的侦听状态 下面為一个范例程式: import java.util.Iterator; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.service.IServiceCapableConnection; public class Application extends ApplicationAdapter{ public void join(String myName) {    Iterator it = scope.getConnections();    while (it.hasNext()) {    IConnection conn = it.nex......
阅读全文
  • 02月
  • 24日
综合 ⁄ 共 1382字 评论关闭
在Android的UI开发中,我们经常会使用Handler来控制主UI程序的界面变化。有关Handler的作用,我们总结为:与其他线程协同工作,接收其他线程的消息并通过接收到的消息更新主UI线程的内容。 我们假设在一个UI界面上面,有一个按钮,当点击这个按钮的时候,会进行网络连接,并把网络上的一个字符串拿下来显示到界面上的一个 TextView上面,这时就出现了一个问题,如果这个网络连接的延迟过大,可能是10秒钟甚至更长,那我们的界面将处于一直假死状态,而如果这段时间超 过5秒钟的话,程序会出现异常。 这时我们会想到使用线程来完......
阅读全文
  • 02月
  • 05日
综合 ⁄ 共 810字 评论关闭
原理: 代码和上图没关系: package com.lyj.sort; public class MergeSort { /** * @param args */ public static void main(String[] args) { int[] array = { 1, 8, 6, 4, 10, 5, 3, 2, 22 }; mergeSort(array, 0, array.length - 1); } private static void mergeSort(int[] array, int start, int end) { if (start < end) { int mid = (start + end) / 2; mergeSort(array, start, mid); mergeSort(array, mid + 1, end......
阅读全文
  • 12月
  • 23日
综合 ⁄ 共 1701字 评论关闭
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water. Note: You may not slant the container. 意思就是选两个数字来组成一个容器,问最多可以得到多少水。其实也就是求最大面积。 面积取决于两个要素:长和高,很明显我们从两头开始向中间逼近的时候......
阅读全文
  • 12月
  • 06日
综合 ⁄ 共 5954字 评论关闭
Do you need a simple open source cross-platform command line tool that converts web pages and HTML to a PDF file? Look no further, try wkhtmltopdf. From the project home page: Simple shell utility to convert html to pdf using the webkit rendering engine, and qt. Searching the web, I have found several command line tools that allow you to convert a HTML-document to a PDF-document, however they all seem to use their own, and rather incomplete rendering engine, resulting in poor quality......
阅读全文
  • 11月
  • 23日
综合 ⁄ 共 3836字 评论关闭
找规律水题。。。 Traveling Cellsperson Time Limit: 1000ms Memory Limit: 65535KB This problem will be judged on UESTC. Original ID: 185264-bit integer IO format: %lld      Java class name: Main Prev Submit Status Statistics Discuss Next Font Size: + - Type:  None Graph Theory     2-SAT     Articulation/Bridge/Biconnected Component     Cycles/Topological Sorting/Strongly Connected Component     Shortest Path         Bellman Ford         Dijkstra/Floyd Warshall     Euler Trail/Circuit    ......
阅读全文
  • 11月
  • 15日
综合 ⁄ 共 8082字 评论关闭
转自:http://hi.baidu.com/czyuan_acm/blog/item/49f02acb487f06f452664fbc.html     其实学树状数组说白了就是看那张图,那张树状数组和一般数组的关系的,看懂了基本就没问题了,推荐下面这个教程:http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=binaryIndexedTrees        下面对树状数组进行一些分析。 inline int Lowbit(int x) {     return x & (-x); } void Update(int x, int c) {     int i;     for (i = x; i < maxn; i += Lowbit(i))     {         tree[i] += c;     } } int Getsum(......
阅读全文
  • 11月
  • 05日
综合 ⁄ 共 4756字 评论关闭
下面是核心代码: public class Submit_WallpaperUploadFragment extends BaseFragment { private GridViewAdapter adapter; @ViewInject(R.id.gridview) private GridView mGridView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.submit_kisekae_wallpaper_selector, container, false); ViewUtils.inject(this, rootView); return rootView; } @Overri......
阅读全文