Submitted by gouki on 2015, November 11, 1:30 PM
 只有图,没有字,随便看看吧
 
参考来源:
1、http://www.server110.com/sec_news/201511/11322.html
2、http://netsecurity.51cto.com/art/201510/495611.htm
3、http://www.hostloc.com/forum.php?mod=viewthread&tid=289531&page=1#pid3775357
4、http://www.court.gov.cn/zgcpwsw/jiangsu/jsshaszjrmfy/xs/201507/t20150710_9441657.htm   这个才是原地址,看最后一段话,明显是交友不慎啊
 
Tags: sablog, phpspy
Misc | 评论:1
 | 阅读:24807
Submitted by gouki on 2015, November 5, 9:36 AM
 自从PD10开始,其实分辨率已经都可以自由调整了,但还是有很多朋友说,为什么分辨率那么大,图标和鼠标那么小?设置了分辨率后一重启又恢复了?
其实PD 10的虚拟机配置里有一个选项:
只要将这个勾去掉,你所有的分辨率的设置就都可以保存,而不再受retina的分辨率大小限制了。。
 
不信你可以加上试试(加上和取消这个勾不用重启,你就可以看到你的虚拟机分辨率的变化了。。。)
 
Flutter | 评论:0
 | 阅读:24009
Submitted by gouki on 2015, October 20, 10:08 AM
position有9个点:lt,mt,rt,lm,mm,rm,lb,mb,rb,其实对应的是几个英文:lt(left top),mt(middle top),rt(right top),以此类推
上官方原图:

OK,然后我们看一下他的代码是怎么写的,如果有人涉及到也可以借鉴:
 
PHP代码
    - <?php  
 
    -   
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -  
 
    -   
 
    -     public static function calculatePositions($containerWidth, $containerHeight, $layerWidth, $layerHeight, $layerPositionX, $layerPositionY, $position = 'LT')  
 
    -     {  
 
    -         $position = strtolower($position);  
 
    -   
 
    -         if ($position == 'rt') {  
 
    -   
 
    -             $layerPositionX = $containerWidth - $layerWidth - $layerPositionX;  
 
    -   
 
    -         } elseif ($position == 'lb') {  
 
    -   
 
    -             $layerPositionY = $containerHeight - $layerHeight - $layerPositionY;  
 
    -   
 
    -         } elseif ($position == 'rb') {  
 
    -   
 
    -             $layerPositionX = $containerWidth - $layerWidth - $layerPositionX;  
 
    -             $layerPositionY = $containerHeight - $layerHeight - $layerPositionY;  
 
    -   
 
    -         } elseif ($position == 'mm') {  
 
    -   
 
    -             $layerPositionX = (($containerWidth - $layerWidth) / 2) + $layerPositionX;  
 
    -             $layerPositionY = (($containerHeight - $layerHeight) / 2) + $layerPositionY;  
 
    -   
 
    -         } elseif ($position == 'mt') {  
 
    -   
 
    -             $layerPositionX = (($containerWidth - $layerWidth) / 2) + $layerPositionX;  
 
    -   
 
    -         } elseif ($position == 'mb') {  
 
    -   
 
    -             $layerPositionX = (($containerWidth - $layerWidth) / 2) + $layerPositionX;  
 
    -             $layerPositionY = $containerHeight - $layerHeight - $layerPositionY;  
 
    -   
 
    -         } elseif ($position == 'lm') {  
 
    -   
 
    -             $layerPositionY = (($containerHeight - $layerHeight) / 2) + $layerPositionY;  
 
    -   
 
    -         } elseif ($position == 'rm') {  
 
    -   
 
    -             $layerPositionX = $containerWidth - $layerWidth - $layerPositionX;  
 
    -             $layerPositionY = (($containerHeight - $layerHeight) / 2) + $layerPositionY;  
 
    -         }  
 
    -   
 
    -         return array(  
 
    -             'x' => $layerPositionX,  
 
    -             'y' => $layerPositionY,  
 
    -         );  
 
    -     }  
 
 
END;
 
 
 
 
Tags: imageworkshop, position
PHP | 评论:1
 | 阅读:28555
Submitted by gouki on 2015, October 10, 5:01 PM
之前有发过一篇博客:几个常见的 Composer 国内镜像 ,经过长期的测试,发现这些源不是少内容就是速度慢,这不再推荐一个新的,用了它之后,我就腰不酸腿不疼了:http://packagist.phpcomposer.com 【其实这个就是原来的:http://pkg.phpcomposer.com/repo/packagist/,只是换个名字,但这个好象确实快了一点】
具体的操作方法查看上文的博客内容。
 
 
苹果相关 | 评论:0
 | 阅读:21676
Submitted by gouki on 2015, October 9, 5:47 PM
这是一个备份,起因是由于我现在使用的gogs不能使用ssh的方式连接,主要是不方便,所以目前我是使用了HTTP的方式。
看了这篇文章后对我有启发,但是我没有使用,所以只是先做个备份。原文在:http://www.luxingmin.com/archives/278.html
XML/HTML代码
    - 一直想实现指定git访问的私钥,网上资料给出来的都是通过ssh_config来实现,这种方法很繁琐,另外想实现git webhook部署时,使用这种方法也比较不灵活。  
 
    -   
 
    - 切入正题  
 
    -   
 
    - 建立git_ssh文件,内容如下  
 
    -   
 
    - #!/bin/bash  
 
    - ssh -i $SSH_KEY_FILE $1 $2  
 
    - 然后增加执行权限  
 
    -   
 
    - chmod 755 git_ssh  
 
    - 然后就可以通过如下命令指定git访问时使用的ssh私钥  
 
    -   
 
    - SSH_KEY_FILE=/root/git/id_rsa GIT_SSH=/root/git/git_ssh git clone git@xxx  
 
 
---EOF---
 
 
 
 
Tags: ssh, git, gogs
苹果相关 | 评论:0
 | 阅读:23527