群晖6.1 MTime刮削补丁
本帖最后由 shmiluyu 于 2017-9-1 09:40 编辑默认的也能用,就是下载的电影名字有中文英文,识别出来的封面和标题以及主演介绍等,老是英文的就去找豆瓣或者MTime的.网上搜了,隔壁网有豆瓣的.不过注册个论坛账号都要3块钱?就自己写了一下. 二手PHP, 速度我也没感觉多快. 不过至少 封面和标题演员介绍等都是中文的了.本来准备用豆瓣,不过豆瓣的API没有背景图,而且封面图片也是小图.默认的themovie的封面像素最高, mtime其次,豆瓣最次该补丁,没有屏蔽themoviedb, 如果mtime搜不到,会继续搜themoviedb, 有些影片文...
解决IE不支持html5 file api中readAsBinaryString
//废话不多说,直接上源码var reader = new FileReader();reader.readAsBinaryString(fileData);reader.onload = function(e) { if (reader.result) reader.content = reader.result; var base64Data = btoa(reader.content); //...}//extend FileReaderif (!FileReader.prototype.readAsBinaryString) { FileReader.prototype.readAsBinaryString = function (fileData) { var binary = ""; var pt = this; var reader = new FileReader(); reader.onload =...
群晖ds photo开启远程访问
ds photo APP在外网无法登陆,是因为DS photo默认是80端口,所以通过5000/5001无法访问,于是需要把80端口下面的这个配置文件放到5000/5001下面,可参考/etc/nginx/nginx.conf,里面有加载 conf.d/*, app.d/*步骤:1.在/etc/nginx/conf.d下增加dsm.PhotoStation.conf文件:location = /photo/csp_report.cgi { return 200;} location = /photo { rewrite ^/(.*)$ $1/ permanent;} location = /blog { rewrite ^/(.*)$ $1/ permanent;} rewrite ^/photo/share/([^/]+)$ /photo/share.ph...
salesforce Custom Settings简单使用
前言Custom Settings创建类似于Custom Object,但是两者用法上有一些区别:Custom Setting可以通过条件配置来区分特定的用户,或者Profile。所有Custom Settings数据都暴露在应用程序缓存中,这使得无需反复查询数据库的成本就能够高效访问。然后,这些数据可以在formula fields, validation rules, flows, Apex, and the SOAP API使用。Custom Settings可以应用到很多场景,因为可以通过特定用户和Profile进行配置,所以设置白名单或者相反的功能很容易,除此之外还可以应用到其他场景,根据他的功能自行来使用...
[转]纯CSS 实现radio checkbox样式美化
.demo--label{margin:20px 20px 0 0;display:inline-block}.demo--radio{display:none}.demo--radioInput{background-color:#fff;border:1px solid rgba(0,0,0,0.15);border-radius:100%;display:inline-block;height:16px;margin-right:10px;margin-top:-1px;vertical-align:middle;width:16px;line-height:1}.demo--radio:checked + .demo--radioInput:after{background-color:#57ad68;border-radius:100%;content:"";display:inline-block;height:12px;margin:2px;width:12px}.demo--checkbox.demo--radio...
常见文件文件头
1、从Ultra-edit-32中提取出来的附件:文件格式分析器JPEG (jpg),文件头:FFD8FFPNG (png),文件头:89504E47GIF (gif),文件头:47494638TIFF (tif),文件头:49492A00Windows Bitmap (bmp),文件头:424DCAD (dwg),文件头:41433130Adobe Photoshop (psd),文件头:38425053Rich Text Format (rtf),文件头:7B5C727466XML (xml),文件头:3C3F786D6CHTML (html),文件头:68746D6C3EEmail [thorough only] (eml),文件头:44656C69766572792D646174653AOutlook Express (dbx),文件头:CFAD12FE...
js验证图片真实格式(针对手动修改后缀名)
js验证图片真实格式(针对手动修改后缀名) <input type="file" id="file" onchange="handleFiles(this.files)"/> <script>function handleFiles(files) { if (files.length) { var file = files[0]; console.log(file.name); console.log(getFileExt(file)); }}function getFileExt(file){ var index = file.name.lastIndexOf('.'); var fileExt = file.name.substring(index+1); return fi...
MySQL Connector/Net for .net 4.0 驱动包
MySQL Connector/Net for .net 4.0 驱动包http://mysql-connector-net-6.8.7.msi 附使用方法:using PW.Common;using PW.Model;using System;using System.Collections;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.Common;using System.Linq;using System.Text; namespace PW.Db{ /// <summary> /// 数据访问基础类 /// </summary> public class Sql { protected static string connect...
salesforce开发利器:metaforce下载
谷歌app下载地址:https://chrome.google.com/webstore/detail/metaforce/hhnkaakhlhngcdckdiogpkjihnmgodep本地下载:Metaforce 3.1.2.5_0 (本人从谷歌下载后,上传到了自己的博客供大家下载)先看下效果图:
salesforce rest api test class
上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class@isTest(SeeAllData=true)public class Api_user_profileTest{ static testMethod void Api_user_profileTest() { system.debug('start...'); Test.startTest(); String ReturnCode = ''; RestContext.request = new RestRequest(); RestContext.response = new RestResponse(); RestContext.request.requestURI = '/services/apexrest/user/p...