1 2 3 4 5 ··· 14 下一页
摘要: 近期需要做一个画板的功能,又鉴于SDK3.0的例子,现在都用SDK4.0在开发了,3.0里实现的一些在4.0里并不适合使用;找了很多相关的资料,也不基于Path实现画板功能;最近在官方网上看找到一些资料,拿出来分享一下;再也不用纠结于 多条lineTo, 难解决操作记录的问题,尤其在解决恢复,撤消问题;不多说,贴上代码:<?xmlversion="1.0"encoding="utf-8"?><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=&q 阅读全文
posted @ 2011-07-18 15:09 Marksion 阅读(1933) 评论(8) 推荐(0)
摘要: 最近忙于公司项目开发的事情,好一段时间没写Blog了,其中有使用到Flex4在项目开发当中,于是分享一,Application中与Module通信, 以登录为例思路:1. 编写接口IUserEntry:继承IEventDispatcher,并加入,设置和返回 用户名方法名;2.新建Module,实现IUserEntry 接口,并新建 登录事件,并颁发登录事件绑定;3.在Application中,创建并使用接口和实例;主要代码://IUserEntry.as接口packagecom.oreilly.f4cb{importflash.events.IEventDispatcher;publici. 阅读全文
posted @ 2011-07-04 08:37 Marksion 阅读(1020) 评论(0) 推荐(0)
摘要: 最近公司接到 视频会议的项目,顺便找了一些Socket通讯的资料,做个小例子测试,拿出来分享下,高手可以直接飘过吧!!国际惯例,看图先!! 简单分端:1.组播端:2.听众端:3.同步窗口:核心代码:// 1. 组播端usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.IO;usingSystem.Text;usingSystem.Net;usingSy. 阅读全文
posted @ 2011-06-04 11:30 Marksion 阅读(1540) 评论(9) 推荐(2)
摘要: Photoshop英文教程资料2008年05月16日 星期五 16:44转自:蓝色理想论坛http://www.photoshoproadmap.com/Photoshop-tutorialshttp://www.photoshoptopsecret.com/http://www.photoshopcafe.com/tutorials.htmhttp://www.splashchallenge.c... 阅读全文
posted @ 2010-03-30 13:15 Marksion 阅读(731) 评论(0) 推荐(0)
摘要: import torch import torch.nn.functional as F #1. 创建 Query、Key 和 Value 张量 q = torch.randn(2, 3, 4) # 形状 (batch_size, seq_len1, feature_dim) k = torch.r 阅读全文
posted @ 2026-07-29 09:12 Marksion 阅读(3) 评论(0) 推荐(0)
摘要: import torch import torch.nn.functional as F # 一个形状为 (batch_size, seq_len, feature_dim) 的张量(矩阵) x # 两个样本, 每个样本3 个词语长度,每个词语编码为4维 x = torch.randn(2, 3, 阅读全文
posted @ 2026-07-28 23:44 Marksion 阅读(2) 评论(0) 推荐(0)
摘要: 1 import torch 2 import torch.nn.functional as F 3 4 # 一个形状为 (batch_size, seq_len, feature_dim) 的张量(矩阵) x 5 # 两个样本, 每个样本3 个词语长度,每个词语编码为4维 6 x = torch. 阅读全文
posted @ 2026-07-22 00:22 Marksion 阅读(4) 评论(0) 推荐(0)
摘要: Seq2Sep机器训练 1 import numpy as np 2 import torch 3 import random 4 import torch.nn as nn 5 6 # 构建语料库,每行包含中文、英文(解码器输入)和翻译成英文后的目标输出 3 个句子 7 sentences = [ 阅读全文
posted @ 2026-07-22 00:20 Marksion 阅读(2) 评论(0) 推荐(0)
摘要: TestCafe前端E2E自动化测试技术要点 最近用TestCafe完成了一个营销活动的前端自动化测试,整个过程很顺利,运行也较稳定。对比以前用Selenium作的几个Web UI自动化项目而言,感觉到了新一代的前端E2E自动化测试工具的强大。下面记录一些遇到的要点和TestCafe独有的一些特性。 阅读全文
posted @ 2020-07-17 13:51 Marksion 阅读(1323) 评论(0) 推荐(0)
摘要: 什么是TestCafe 转自: https://www.jianshu.com/p/94181abe5e9a 官方: A node.js tool to automate end-to-end web testing Write tests in JS or TypeScript, run them 阅读全文
posted @ 2020-07-16 16:05 Marksion 阅读(1130) 评论(0) 推荐(0)
摘要: 资源收集与整理 引图: ZLT-MP 微服平台 nginx http://nginx.org/en/docs/beginners_guide.html flutter https://flutter.dev/ SpringCloud https://gitee.com/homepay/microse 阅读全文
posted @ 2020-07-09 11:03 Marksion 阅读(198) 评论(0) 推荐(0)
摘要: Nginx的启动(start),停止(stop)命令 查看Nginx的版本号:nginx -V 启动Nginx:start nginx 或者 nginx 快速停止或关闭Nginx:nginx -s stop 正常停止或关闭Nginx:nginx -s quit 配置文件修改重装载命令:nginx - 阅读全文
posted @ 2020-07-09 10:56 Marksion 阅读(351) 评论(0) 推荐(0)
摘要: 1.背景: 网友常遇到网站上喜欢的视频,只能看又不能下载(留念),特别可怜的是巨额购买的视频教程到期了快下架,无奈却来不及收集。。。。 2.冲突: 资金有限(穷),能力有限(不想Coding),时间有限(懒) 3.疑问: 如何能快速下载一视频,最好免费!最好非态资源(非 src='./static/ 阅读全文
posted @ 2020-02-09 00:30 Marksion 阅读(13070) 评论(0) 推荐(0)
摘要: 1.安装工具,下载 Go: https://studygolang.com/dl/golang/go1.13.6.windows-amd64.msi 2.创建项目(注:须进入创建的目录,如: cd beevue) 3.创建DB,导入数据 4.连接DB生成API 5.修改main.go,配置数据连接 阅读全文
posted @ 2020-01-19 20:15 Marksion 阅读(600) 评论(0) 推荐(0)
1 2 3 4 5 ··· 14 下一页