publicclass PublishStream extends Sprite { private var video:Video; private var nc:NetConnection; private var ns:NetStream; private var cam:Camera; private var mic:Microphone;
public function PublishStream():void { btnPublish.label="发布视频"; btnPublish.addEventListener(MouseEvent.CLICK,onPublishClick);
//获取视频和声音,并将视频显示到Flash界面 cam = Camera.getCamera(); mic = Microphone.getMicrophone(); video =new Video(320,240); video.attachCamera(cam); video.x=20; video.y=20; addChild(video); }
private function onPublishClick(evt:MouseEvent):void { nc =new NetConnection(); nc.connect("rtmp://localhost/LiveStreams"); nc.addEventListener(NetStatusEvent.NET_STATUS,onNetStatusHandler); }
publicclass LiveStream extends Sprite { private var video:Video; private var nc:NetConnection; private var ns:NetStream;
public function LiveStream():void { nc =new NetConnection(); nc.connect("rtmp://localhost/LiveStreams"); nc.addEventListener(NetStatusEvent.NET_STATUS,onNetStatusHandler); }
如果希望workflow存储最近20次的log,在session里的Config Object设置,log options做配置,save session log :sessions run ;savesessio log for these runs:20
session下面的source 里面有个tracing 
今天遇到一个客户BUG,当前的jdbc连接用户是root,然后部分删除操作都会报下面这个错误:The user specified as a definer ('aaa'@'localhost') does not exist
最后找原因发现删除操作做了触发器,而触发器里面有这样一句
/*!50017 DEFINER = ''aaa@'localhost' */
原来最初
O7_DICTIONARY_ACCESSIBILITY参数控制对数据字典的访问.设置为true,如果用户被授予了如select any table等any table权限,用户即使不是dba或sysdba用户也可以访问数据字典.在9i及以上版本默认为false,8i及以前版本默认为true.如果设置为true就可能会带来安全上的一些问题.这也就为什么O7_DICTIONARY_ACCESSIBIL
#h1#
0、完成课堂例子
1、将一个四位数逆序打印
1234 ==> 4321
实现方法一:
# include <stdio.h>
int main(void)
{
int i = 1234;
int one = i%10;
int two = i / 10 % 10;
int three = i / 100 % 10;
===================================================================
第一个
===================================================================
try{
CString sql;
sql.Format("select * from p