上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: You've created a web API, but now you want to control access to it. In this series of articles, we'll look at some options for securing a web API from unauthorized users. This series will cover both... 阅读全文
posted @ 2017-10-19 17:08 今夜太冷 阅读(460) 评论(0) 推荐(0) 编辑
摘要: ThesessionStorageproperty allows you to access a sessionStorageobject for the current origin. sessionStorage is similar toWindow.localStorage, the only difference is while data stored in localS... 阅读全文
posted @ 2017-10-19 17:07 今夜太冷 阅读(1673) 评论(0) 推荐(0) 编辑
摘要: SharePoint used to have a menu option called "Sign in as Different User" in the top-right corner of every page. It was a handy tool for developers and IT professionals in SharePoint 2007 and 2010, whi... 阅读全文
posted @ 2017-09-28 11:58 今夜太冷 阅读(672) 评论(0) 推荐(0) 编辑
摘要: All of the packing that is done is completely transparent to the user of the OpenGL ES Shading Language, except for one detail: The packing impacts the way in which uniforms and vertex shader outputs/... 阅读全文
posted @ 2017-09-27 17:09 今夜太冷 阅读(175) 评论(0) 推荐(0) 编辑
摘要: In addition to basic if-then-else statements, it is possible to write for, while, and do-while loops. In OpenGL ES 2.0, very strict rules governed the usage of loops. Essentially, only loops that co... 阅读全文
posted @ 2017-09-26 15:58 今夜太冷 阅读(313) 评论(0) 推荐(0) 编辑
摘要: An example function definition is given here for a simple function that computes basic diffuse lighting: vec4 diffuse(vec3 normal, vec3 light, vec4 baseColor) { return baseColor * dot(normal, l... 阅读全文
posted @ 2017-09-26 15:37 今夜太冷 阅读(278) 评论(0) 推荐(0) 编辑
摘要: To query for the list of active uniforms in a program, you first call glGetProgramiv with the GL_ACTIVE_UNIFORMS parameter (as described in the previous section). This will tell you the number of acti... 阅读全文
posted @ 2017-09-26 10:46 今夜太冷 阅读(219) 评论(0) 推荐(0) 编辑
摘要: glValidateProgram应该只用于调试,用于release版本中会影响性能。以下是详细描述: Before doing so, however, we might want to check whether the program validates. That is, there are certain aspects of execution that a successful ... 阅读全文
posted @ 2017-09-26 10:36 今夜太冷 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 可以在任何时候attach一个shader到program对象,不一定非要在指定source和编译以后,具体的描述如下: Once you have a program object created, the next step is to attach shaders to it. In OpenGL ES 3.0, each program object needs to have one... 阅读全文
posted @ 2017-09-25 16:55 今夜太冷 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 在windows 10上运行docker-machine scp myvm1 docker-compose.yml myvm1:~的时候报错: "garbage at end of line \.docker\machine\machines\myvm1\id_rsa" 【解决方法】 这是boot2docker的一个bug, 帖子在这里: https://github.com/lara... 阅读全文
posted @ 2017-09-22 10:04 今夜太冷 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 在运行docker-machine scp 命令的时候,报错: "You must have a copy of the scp binary locally to use the scp feature" 【解决方法】 It Works!... just adding path to ...Git\usr\bin ... where scp.exe is ... to the PATH en... 阅读全文
posted @ 2017-09-21 10:34 今夜太冷 阅读(413) 评论(0) 推荐(0) 编辑
摘要: From powershell prompt following works for me with no issues restart-service *docker* [注意] 我试了一下,这个命令不行!会导致docker for windows无法启动,必须重启机器才可以修复。 正确的方法是从 阅读全文
posted @ 2017-09-21 10:06 今夜太冷 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 在运行docker swarm join的时候需要一个token参数,如何知道这个参数那? 【答案】 Join as a worker node To retrieve the join command including the join token for worker nodes, run the following command on a manager node: $ docker s... 阅读全文
posted @ 2017-09-20 17:09 今夜太冷 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: Docker-machine创建虚机时停在虚机启动的提示上,并且创建的虚机用docker-machine ls 列出来的时候显示Ip Not found, 是什么原因那? 【答案】 看这个帖子: https://github.com/docker/machine/issues/3832 拷贝如下: I am having trouble getting my docker-machine to ... 阅读全文
posted @ 2017-09-20 15:52 今夜太冷 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Enable Hyper-V to create virtual machines on Windows 10.Hyper-V can be enabled in many ways including using the Windows 10 control panel, PowerShell (my favorite) or using the Deployment Imaging Ser... 阅读全文
posted @ 2017-09-20 11:37 今夜太冷 阅读(273) 评论(0) 推荐(0) 编辑
摘要: function Get-CurrentUserRoles { $SecurityPrinciple = New-Object -TypeName System.Security.Principal.WindowsPrincipal -ArgumentList ([System... 阅读全文
posted @ 2017-09-20 10:24 今夜太冷 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 网店店主在上传图片是,总是会被"您上传的图片格式不符合规定"这样的对话框搞的很郁闷。一般图片的后缀,可以直接手工改掉,但是如果要改的图片多了怎么办呢?用一些图片处理工具acdsee、photoshop等改也是可以的,但是会很浪费时间,并且操作这些软件会让电脑变的很慢。我们今天教你一招,让你能轻轻松松的修改图片后缀…… 工具/原料 acdsee、photoshop 步骤/方法 ... 阅读全文
posted @ 2017-09-19 11:45 今夜太冷 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: % docker login Username: xxxx Password: Email: xxxxxxx@yahoo.co.jp FATA[0033] Error response from daemon: Server Error: Post https://index.docker.io/v1/users/: dial tcp: lookup index.docker.io on 20... 阅读全文
posted @ 2017-09-19 11:01 今夜太冷 阅读(393) 评论(0) 推荐(0) 编辑
摘要: When working with data view web parts or data form web parts in SharePoint, you might want to use some conditional formatting or branching logic, based on the file extention of your SharePoint item.... 阅读全文
posted @ 2017-09-18 14:15 今夜太冷 阅读(210) 评论(0) 推荐(0) 编辑
摘要: OpenGL ES 3.0 Graphics Pipeline OpenGL ES 3.0 Vertex Shader Transform feedback: Additionally, OpenGL ES 3.0 adds a new feature called transform feedback, which allows the vertex shader outputs... 阅读全文
posted @ 2017-09-13 15:17 今夜太冷 阅读(239) 评论(0) 推荐(0) 编辑
摘要: OpenGL® ES 3.0 Programming Guide - Book Website http://opengles-book.com sample codes in GitHub: https://github.com/danginsburg/opengles3-book/ 阅读全文
posted @ 2017-09-12 17:23 今夜太冷 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 有时我们在winform项目中嵌入了网页,想通过html页面调用后台方法,如何实现呢?其实很简单,主要有三部: 1、在被调用方法类上加上[ComVisible(true)]标签,意思就是当前类可以com组件的形式供外包调用 2、在webBrowser控件中设置可被html页面调用的类即:webBrowser1.ObjectForScripting = this;前端即可通过win... 阅读全文
posted @ 2017-09-05 15:57 今夜太冷 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: 1. A PVRShaman (.POD) workspace is provided as an example in the Chapter_10/PVR_LinearFog folder that demonstrates the fog computation. Figure 10-4 is 阅读全文
posted @ 2017-08-31 15:27 今夜太冷 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Once a texture has been loaded as a compressed texture, it can be used for texturing in exactly the same way as an uncompressed texture. The details of the ETC2/EAC formats are beyond our scope here... 阅读全文
posted @ 2017-08-31 09:52 今夜太冷 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 编译NDK项目的时候,当用到sinf的时候,编译报错: 选中sinf函数,右键Go to declaration, 发现math.h的文件路径是: c:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b\platforms\android-21\arch-arm64\usr\include\math.h 试了很多种方法,包括在library... 阅读全文
posted @ 2017-08-27 18:11 今夜太冷 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 在一台两G内存的win server 2008电脑上运行一个程序,一段时间后mongod自动停止,发现日志文件最后有这样的错误: 2014-11-30T00:32:32.914+0800 [conn30751] command taskdb.$cmd command: count { count: 阅读全文
posted @ 2017-08-26 11:35 今夜太冷 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 所谓工欲善其事,必先利其器,所以通读了cheerio的API,顺便翻译了一遍,有些地方因为知道的比较少,不知道什么意思,保留了英文,希望各位不吝告诉我,然后一起把这个翻译完成。 ###cheerio 为服务器特别定制的,快速、灵活、实施的jQuery核心实现. ###Introduction 将HTML告诉你的服务器 var cheerio = require('che... 阅读全文
posted @ 2017-08-24 15:32 今夜太冷 阅读(280) 评论(0) 推荐(0) 编辑
摘要: [问] I'm trying to iterate through an array of elements. jQuery's documentation says: jquery.Each() documentation Returning non-false is the same as a continue statement in a for loop, it will skip... 阅读全文
posted @ 2017-08-23 14:33 今夜太冷 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.substring 用于提取字符串中介于两个指定下标之间的字符 substring(start,end) 开始和结束的位置,从零开始的索引 substring 方法返回的子串包括 start 处的字符,但不包括 end 处的字符。 如果 start 与 end 相等,那么该方法返回的就是一个空串(即长度为 0 的字串)。... 阅读全文
posted @ 2017-08-23 11:10 今夜太冷 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一个c语言项目,在.h文件中原来只有一些方法的声明,后来我加入了一些变量声明后,编译的时候报错: 运行代码时报linker command failed with exit code 1 错误 怎么回事那? 【解决方法】 将变量的声明都移到.c文件中去就好了。 阅读全文
posted @ 2017-08-22 19:52 今夜太冷 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页