mate

Any Flex 4 migration experience?

↘锁芯ラ 提交于 2019-11-28 17:59:09
My current development stack is MySQL + iBatis + Spring + Spring BlazeDS Integration 1.01 + BlazeDS 3.2 and Flex 3 with Mate 0.8.9 framework. Now Flash Builder 4 beta 2 is out. There are cool features like Data Centric Development (DCD), form generation etc... Do you know how Spring Blazeds Integration works with BlazeDS 4? What about Mate? Is there any issues with Flex 4 ? How DCD suits with mate eventmaps. I know it is better to try it out myself but I just want to check if somebody ever tried to migrate Flex 4. If so what are the issues? Did you notice any productivity speed up? Thanks.

带花树模板

梦想的初衷 提交于 2019-11-28 15:07:16
带花树模板,用来解决一般图的最大匹配。(可以是带权图) #include<bits/stdc++.h> using namespace std; struct Blossom_algorithm { typedef long long s64; const static int INF = 2147483647; const static int MaxN = 400; const static int MaxM = 79800; template <class T> inline void tension(T &a, const T &b) { if (b < a) a = b; } template <class T> inline void relax(T &a, const T &b) { if (b > a) a = b; } template <class T> inline int size(const T &a) { return (int)a.size(); } const static int MaxNX = MaxN + MaxN; struct edge { int v, u, w; edge(){} edge(const int &_v, const int &_u, const int &_w) : v(_v), u(_u), w(_w){} };

js中call和apply

纵饮孤独 提交于 2019-11-28 00:02:36
call/apply 作用用来改变this指向两者的区别是参数的传递不同,call传递的是变量, apply传递的是数组 var obj = { name:'ghost', age:'20' } function Person(name,age){ this.name = name this.age = age this.say = function(){ console.log(this.name) } } var person =new Person("charry", 20) //charry person.say() //这里的this,谁调用指向谁 所以指向person person.say.call(obj) //ghost 这里改变过this指向,其this指向obj function Person(name, age, sex){ this.name = name this.age = age this.sex = sex } function Student(name, age ,sex, tel, grade){ Person.call(this, name, age, sex) //调用Peson的方法来实习自己的函数,这里的this指向的是Student本身 this.tel = tel; this.grade = grade } var student =

树莓派-Ubuntu Mate开启ssh服务

让人想犯罪 __ 提交于 2019-11-27 20:49:10
1. 运行 apt search openssh-server 查看是否安装ssh服务。 2. 如已安装,运行 sudo dpkg-reconfigure openssh-server 重新配置shh服务。 3. 运行 sudo service ssh restart 重新启动服务后,使用 sudo service ssh status 查看服务状态。 4. 运行 sudo systemctl enable ssh 将ssh服务设置为用户登录时启动。 5. 在其他机器上尝试ssh连接: ssh user@ip_address 参考: https://linuxconfig.org/how-to-install-ssh-server-on-ubuntu-18-04-bionic-beaver-linux 来源: https://www.cnblogs.com/teacat/p/11376013.html

hibernate HQL

大兔子大兔子 提交于 2019-11-26 21:50:01
Hibernate配备了一种非常强大的查询语言,这种语言看上去很像SQL。但是不要被语法结构 上的相似所迷惑,HQL是非常有意识的被设计为完全面向对象的查询,它可以理解如继承、多态 和关联之类的概念。 15.1. 大小写敏感性问题 除了Java类与属性的名称外,查询语句对大小写并不敏感。 所以 SeLeCT 与 sELEct 以及 SELECT 是相同的,但是 org.hibernate.eg.FOO 并不等价于 org.hibernate.eg.Foo 并且 foo.barSet 也不等价于 foo.BARSET 。 本手册中的HQL关键字将使用小写字母. 很多用户发现使用完全大写的关键字会使查询语句 的可读性更强, 但我们发现,当把查询语句嵌入到Java语句中的时候使用大写关键字比较难看。 15.2. from子句 Hibernate中最简单的查询语句的形式如下: from eg.Cat 该子句简单的返回 eg.Cat 类的所有实例。 通常我们不需要使用类的全限定名, 因为 auto-import (自动引入) 是缺省的情况。 所以我们几乎只使用如下的简单写法: from Cat 大多数情况下, 你需要指定一个 别名 , 原因是你可能需要 在查询语句的其它部分引用到 Cat from Cat as cat 这个语句把别名 cat 指定给类 Cat 的实例,