Tags » 技术笔记

She Cancelled Her Wedding And Then Gave People A Beautiful Surprise

{“contentType”:”NEWS_STORY”,”id”:{“value”:”25e2c654f0291092a2447bab71b1b9ce”,”link”:”http:\/\/api.newsapi.com.au\/content\/v2\/25e2c654f0291092a2447bab71b1b9ce”},”originId”:”Whimn-54950″,”origin”:”WORDPRESS”,”channel”:”NONE”,”title”:”She Cancelled Her Wedding And Then Gave People A Beautiful Surprise”,”altTitle”:””,”subtitle”:”She Cancelled Her Wedding And Then Gave People A Beautiful Surprise”,”description”:”

This story will give you all the feels.“,”link”:”http:\/\/cdn.newsapi.com.au\/link\/25e2c654f0291092a2447bab71b1b9ce”,”canonicalOverride”:””,”paidStatus”:”NON_PREMIUM”,”originalSource”:”whimn.com.au”,”creditedSource”:”whimn.com.au”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T22:48:32.000Z”,”dateLive”:”2017-07-16T22:20:45.000Z”,”customDate”:”2017-07-16T21:03:43.000Z”,”dateCreated”:”2017-07-16T21:13:32.000Z”,”status”:”ACTIVE”,”thumbnailImage”:{“contentType”:”IMAGE”,”id”:{“value”:”aef474e9724c20dcc745f43f8aaca07b”,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/aef474e9724c20dcc745f43f8aaca07b”},”originId”:”Whimn-43420-spp_thumbnail”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/aef474e9724c20dcc745f43f8aaca07b”,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”felicityharley”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:6,”format”:”jpeg”,”width”:100,”height”:75,”imageName”:”Wedding cake topper”,”imageType”:”THUMBNAIL”,”sourceImageId”:”Whimn-43420″},”related”:[{“contentType”:”IMAGE”,”id”:{“value”:”8a6be58ee17094e9ce0563653df7338f”,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/8a6be58ee17094e9ce0563653df7338f”},”originId”:”Whimn-43420-major_event”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/8a6be58ee17094e9ce0563653df7338f”,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:20.000Z”,”dateLive”:”2017-07-16T21:13:20.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“PRIMARY”,”SUBSTITUTE”],”format”:”jpeg”,”width”:650,”height”:366,”imageName”:”Wedding cake topper”,”imageType”:”PRIMARY”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”0e6af81848a5e6f1e4233cfa0e182110″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/0e6af81848a5e6f1e4233cfa0e182110″},”originId”:”Whimn-43420-promo_thumbnail”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/0e6af81848a5e6f1e4233cfa0e182110″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:149,”height”:86,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”f821027ad6ae9d72887b74ae4b85a340″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/f821027ad6ae9d72887b74ae4b85a340″},”originId”:”Whimn-43420-story_crop”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/f821027ad6ae9d72887b74ae4b85a340″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:316,”height”:237,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”9a7b2852d1915dbae5ca354973fbac93″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/9a7b2852d1915dbae5ca354973fbac93″},”originId”:”Whimn-43420-story_portrait”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/9a7b2852d1915dbae5ca354973fbac93″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:316,”height”:421,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”16ab3e7b8b9abc407c3b7c2c07cf4d80″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/16ab3e7b8b9abc407c3b7c2c07cf4d80″},”originId”:”Whimn-43420-tablet_wide”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/16ab3e7b8b9abc407c3b7c2c07cf4d80″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:1280,”height”:720,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”383840004b03d57177cae4ea86e50e83″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/383840004b03d57177cae4ea86e50e83″},”originId”:”Whimn-43420-tablet_thumbnail”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/383840004b03d57177cae4ea86e50e83″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:196,”height”:110,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”5ebbdbd8d2ab07f2118d5995a54b8811″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/5ebbdbd8d2ab07f2118d5995a54b8811″},”originId”:”Whimn-43420-full_width”,”origin”:”WORDPRESS”,”title”:”Wedding cake topper”,”subtitle”:”Wedding cake topper”,”description”:”Wedding cake topper”,”link”:”http:\/\/cdn.newsapi.com.au\/image\/v1\/5ebbdbd8d2ab07f2118d5995a54b8811″,”paidStatus”:”NON_PREMIUM”,”originalSource”:”Whimn”,”creditedSource”:”Whimn”,”version”:”PUBLISHED”,”dateUpdated”:”2017-07-16T21:13:21.000Z”,”dateLive”:”2017-07-16T21:13:21.000Z”,”dateCreated”:”2017-06-07T19:51:45.000Z”,”status”:”ACTIVE”,”referenceType”:”PRIMARY”,”related”:[],”domainLinks”:[],”categories”:[],”keywords”:[],”authors”:[],”domains”:[],”locationGeoPoints”:[],”userOriginUpdated”:”corrinebarracloughnewscomau”,”systemOriginUpdated”:”WORDPRESS”,”domainOriginUpdated”:”Whimn”,”urlTitle”:”wedding-cake-topper”,”revision”:2,”containerTypes”:[“SUBSTITUTE”],”format”:”jpeg”,”width”:1000,”height”:563,”imageName”:”Wedding cake topper”,”imageType”:”SUBSTITUTE”,”sourceImageId”:”Whimn-43420″},{“contentType”:”IMAGE”,”id”:{“value”:”9ad0e08a494f1cb57c8f2746b452b16e”,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/9ad0e08a494f1cb57c8f2746b452b16e”},”originId”:”Whimn-54951-gallery_landscape”,”origin”:”WORDPRESS”,”title”:”Sarah Cummins at the Ritz Charles. 839 more words

Strength

Send key-strokes Ctrl+Alt+Del through nested RDP sessions

Credit belongs to https://superuser.com/a/871037/136936

  • Ctrl+Alt+Del won’t work with nested RDP(remote desktop protocol) sessions
  • Ctrl+Alt+End won’t work with nested RDP sessions
  • The only way to make it work is to run “osk.exe”(On-Screen Keyboard) through admin command line and Hold the Ctrl and Alt key from your current physical keyboard then use mouse to click the Del key from OSK UI keyboard…
  • 37 more words
技术笔记

Compare two lists of objects by specific properties

Credit goes: http://stackoverflow.com/questions/19790211/comparing-two-lists-according-to-specific-properties .Net Except with IEqualityComparer
// define the Animal class
public class Animal
{
	public Guid Id { get; set; }
	public string AnimalName { get; set; }
	public bool HasTail { get; set; }
}
… 228 more words
技术笔记

Fastest way to insert 1 million rows

Here is the fastest way to insert 1 million rows to a table in SQL Server

Credit goes this post: Generate and Insert 1 million rows into simple table… 118 more words

技术笔记

Quick tip: start visual studio 2015 from git bash without hanging in terminal

Add one alias in your ~/.bashrc file:

alias vs='nohup /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 14.0/Common7/IDE/devenv.exe $1 < /dev/null > /dev/null 2>&1 &'
技术笔记

Get table or view name by search column name keyword

Here is the script:

SELECT c.object_id,
 CASE
     WHEN OBJECTPROPERTY(c.object_id, 'isTable') = 1
     THEN 'Yes' ELSE 'No' END AS IsTable,
 CASE
     WHEN OBJECTPROPERTY(c.object_id, 'isView')  = 1
     THEN 'Yes' ELSE 'No' END AS IsView,
 OBJECT_SCHEMA_NAME(c.object_id) AS SchemaName,
 OBJECT_NAME(c.object_id) AS TableName,
 c.name AS ColumnName
 FROM sys.columns c
 WHERE c.name LIKE '%MyColumnName%'
技术笔记

禁止手机缩放代码

    <meta content="width=device-width, 
initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />

禁止手机页面缩放代码,放在head标签里

$.ajaxFileUpload 不进success,前面加domain这一句

document.domain = 'localhost';        
$.ajaxFileUpload(            {                
url: "<?php echo base_url('index.php/Niche/do_upload')?>", //用于文件上传的服务器端请求地址                
secureuri: false, //是否需要安全协议,一般设置为false                
fileElementId:   "images", //文件上传域的ID                
dataType: 'json', //返回值类型 一般设置为json                
success: function (data)  //服务器成功响应处理函数                
{
//                    $("#img1").attr("src", data.imgurl);
//                    if (typeof (data.error) != 'undefined') {
//                        if (data.error != '') {
//                            alert(data.error);
//                        } else {
//                            alert(data.msg);
//                        }
//                    }                    alert('图片上传成功');                
},                error: function (data, e)//服务器响应失败处理函数                
{                    alert(e);                }            }        )
技术笔记