[linux]invalid conversion from 'void*' to 'HB_PositionRec_*'

2017-2-15 写技术

I get some errors while compilling Qt_ARM: ../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error hb_buffer_ensure(HB_BufferRec_*, HB_UInt)': ../3rdparty/harfbuzz/src/harfbuzz-buffer.c:77: error: invalid conversion from 'void*' to 'HB_PositionRec_*' ../3rdparty/harfbuzz/s...

阅读全文>>

标签: linux

评论(1) 浏览(1321)

[linux] The tslib functionality test failed while installing qtlib

2017-2-14 写技术

The tslib functionality test failed!  You might need to modify the include and library search paths by editing  QMAKE_INCDIR and QMAKE_LIBDIR in  /usr/local/Qt_ARM/mkspecs/qws/linux-arm-g++. 1.If installed tslib or not? If not,install it. 2.If defined tslib path exactlly in ...

阅读全文>>

标签: linux

评论(0) 浏览(1799)

[linux]__sync_add_and_fetch is not defined

2017-2-9 写技术

There's an error that "__sync_add_and_fetch is not defined" while I'm building Qt. Just because of gcc I used is version 3.4, It works after I changed gcc to version 4.6.

阅读全文>>

标签: linux

评论(0) 浏览(1348)

[JS]How to set a navigation hight light dynamic

2017-1-25 写技术

How to set a navigation hight light dynamic? There is a javascript solution: var url = window.location.pathname + window.location.search; url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, ""); $(".sNav").find("a[href='" + url...

阅读全文>>

标签: JS

评论(0) 浏览(1160)

[JS]How to decode xml string

2017-1-22 写技术

There's some part of my project. You must include the jquery first. var xmlDoc = $.parseXML( this.result ); var idx = 0; $(xmlDoc).find('Worksheet Table Row').each(function(){ }

阅读全文>>

标签: JS

评论(0) 浏览(1300)

[JS]How to read local file in JS

2017-1-22 写技术

How to read local file in JS? function jsReadFiles(files) { if (files.length) { var file = files[0]; var reader = new FileReader(); if (/text+/.test(file.type)){ reader.onload = function(){ $('body').append('<pre>' + this.result + '</pre>'); } ...

阅读全文>>

标签: JS

评论(0) 浏览(1236)

[JS]拼图游戏外挂开发实战

2016-12-31 写技术

    我在玩诛仙3,这个游戏本身做得很好,很精致,同时它的官网会时不进推出些活动,今天晚上就是跨年了,完美给我们的礼物就是一个拼图游戏,好像拼得越快资历越好,我这人手拙眼穷,肯定是最慢的。但我有代码呀,呵呵!     F12下去,打开了游戏页面的前端代码,看到它把一张图放到了5X5的矩阵里,形成25个小格子,其实每个格子就是一个DIV,每个DIV用background来显示图片,但图片是同一张,也就是原图,只是做了偏移,background-position不同而已……  &nb...

阅读全文>>

标签: JS

评论(0) 浏览(1425)

[php]Judge client terminal is mobile or not

2016-12-27 写技术

function isMobile(){ if (isset ($_SERVER['HTTP_X_WAP_PROFILE'])){ return TRUE; } if (isset ($_SERVER['HTTP_VIA'])){ return stristr($_SERVER['HTTP_VIA'], "wap") ? TRUE : FALSE; } if (isset ($_SERVER['HTTP_USER_AGENT'])) { $clientkeywords = array (...

阅读全文>>

标签: php

评论(0) 浏览(1503)

ThinkPHP使用CDN加速不显示图片

2016-12-14 写技术

如果你在用thinkPHP做东西,并且又用到了七牛之类的CDN加速方案,那么你应该会碰到这种情况: 当你在一个文章上传了一张图片,图片能正常显示到前端页面,当你在另一个文章又上传了同一张图片,这个时候当前文章的图片能正常显示,可是之前的那文章的图片却不见了。这是怎么加速呢? 其实是因为thinkPHP对图片有指纹验证功能,同样的图片不会二次上传,这其中的指纹识别是记录到数据库中的。当系统通过这种技术检测到图片已经存在的时候,会进一步判断图片实际文件是否真实存在,如果不存在就把数据库里面当前图片记录删除。 那么问题来了,当你上传图片是存到CDN服务器上的,本地...

阅读全文>>

标签: php

评论(0) 浏览(1643)

[linux]Create multi virtual host in apache

2016-12-12 写技术

In http.conf or its sub config file: Must define like this: NameVirtualHost *:443 <VirtualHost *:443> DocumentRoot "/alidata/www/log" ServerName log.anycle.com:443 ServerAdmin you@example.com ErrorLog "/alidata/server/httpd/logs/error_log" TransferLog "/alidata/server/ht...

阅读全文>>

标签: linux

评论(3) 浏览(1875)

Powered by anycle 湘ICP备15001973号-1