mysql update触发器
DELIMITER $$ CREATE /*[DEFINER = { user | CURRENT_USER }]*/ TRIGGER `test`.`trig_update` AFTER UPDATE ON `test`.`shunqing_content_open` FOR EACH ROW BEGIN DECLARE num INT; IF(old.title<> new.title OR old.content<>new.content) THEN SELECT COUNT(0) INTO num FROM shunqing_content_tmp WHERE tid=new.tid; IF(num = 0) THEN INSERT INTO shunqing_content_tmp(tid,TYPE,createtime)VALUES(new.tid,2,N...
salesforce发送email
首先,我们要设置一下,否则你是无论怎么怼,你都收不到任何邮件:Have a look under Setup > Email Administration > Deliverability.Newly created sandboxes have the default email deliverability set to "System email only."The options are:No access: Prevents all outbound email to and from users.System email only: Allows only automatically generated emails, such as new user and password reset emails.All email: Allows all types of outbound email. Default for new, non-sa...
Annual Global Change and Configuration Management Process Training and Certification
model3:1.e2.b3.ec4.bd5.admodel41.engage resourcescreate the changemove changecall the ecr primelineadress any out standing concernsensure all groupsexecute the changeclose the change2.b,e3.a,b,d4.c5.bce6.a7.amodel51.b,2.c,3.a,4.f5.a,6.d7.b8.b9.define the repeatable changesindentity the required app,facilitate a formalcreate a change recoredensure the confirand the colse the change
salesforce Metadata Types
Metadata TypeAllows Wildcard (*)?DescriptionAccountSettingsNot ApplicableRepresents an organization’s account settings for account teams, account owner report, and the View Hierarchy link.ActionLinkGroupTemplateYesRepresents the action link group template. Action link templates let you reuse action link definitions and package and distribute action links. An action link is a button on a feed element. Clicking on an action link can take a user to another We...
监督学习(supervised learning)和非监督学习(unsupervised learning)
监督学习:简单来说就是给定一定的训练样本(这里一定要注意,样本是既有数据,也有数据对应的结果),利用这个样本进行训练得到一个模型(可以说是一个函数),然后利用这个模型,将所有的输入映射为相应的输出,之后对输出进行简单的判断从而达到了分类(或者说回归)的问题。简单做一个区分,分类就是离散的数据,回归就是连续的数据。非监督学习:同样,给了样本,但是这个样本是只有数据,但是没有其对应的结果,要求直接对数据进行分析建模。比如我们去参观一个画展,我们完全对艺术一无所知,但是欣赏完多幅...
numl.net 机器学习(一):预测是否迟到
从nuget上搜索numl并安装.我们主要从两个参数(星期几和温度,对于一般的人来说周一容易迟到,天太冷容易迟到)来预测是否迟到,demo代码如下: class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); WorkTime[] data = WorkTime.GetData(); var d = Descriptor.Create<WorkTime>(); var g = new DecisionTreeGenerator(d); g.SetHint(false); var model = Learne...
frp内网穿透
一、frp的作用利用处于内网或防火墙后的机器,对外网环境提供 http 或 https 服务。对于 http, https 服务支持基于域名的虚拟主机,支持自定义域名绑定,使多个域名可以共用一个80端口。利用处于内网或防火墙后的机器,对外网环境提供 tcp 和 udp 服务,例如在家里通过 ssh 访问处于公司内网环境内的主机。二、配置说明1、实现功能(1)外网通过ssh访问内网机器(2)自定义绑定域名访问内网web服务2、配置前准备(1)公网服务器1台(2)内网服务器1台(我这里演示的是linux环境,win10上面vmware安装...
salseforce apex调用salesforce soap api
salseforce apex调用salesforce soap api我们不断需要从Salesforce沙盒向Salesforce生产环境移动一些配置相关的数据。终端用户不喜欢使用数据加载程序,需要Salesforce中的一些简单方法来将数据从Salesforce沙盒移动到Salesforce生产环境。public class API_InsertHolidayRecords { static string outCallResult; static string sessionID; static string userName = 'xxxxx@xx.com'; static string password = 'xxxxxxx'; static string bodyToS...
salesforce Schedule Jobs用法
salesforce Schedule Jobs用法global class deleteANSMessageJob implements Schedulable { //Execute method global void execute (SchedulableContext SC) { DateTime recordDate = DateTime.now().date(); //recordDate = recordDate.addMonths(-2); List<ANS_Message_Repository__c> messages = [select Id from ANS_Message_Repository__c where LastModifiedDate <:recordDate ]; integer count = messages.size(); de...