Latest Entries »

从微信内打开淘宝链接

微信内web页面设置a标签,跳转淘宝,被拒...显示淘宝拒绝了来自微信的请求(我晕)
既然淘宝这么不待见微信,只好伪装下请求咯,设置一个中转页面 xx.php

ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727;http://www.9qc.com)');
header('location:xxxx');

View full article »

Great Android Wear experiences are:
1.Launched automatically
2.Glanceable
3.All about suggest and demand
4.Zero or low interaction

View full article »

Issue :The last packet successfully received from the server was XXXXXX seconds ago.
The last packet sent successfully to the server was XXXXXX seconds ago,
which is longer than the server configured value of ’wait_timeout’.
You should consider either expiring and/or testing connection validity before use in your application,
increasing the server configured values for client timeouts,
or using the Connector/J connection property 'autoReconnect=true' to avoid this problem

View full article »

When to use NSInteger vs. int

You usually want to use NSInteger when you don't know what kind of processor architecture your code might run on, so you may for some reason want the largest possible int type, which on 32 bit systems is just an int, while on a 64-bit system it's a long.

I'd stick with using NSInteger instead of int/long unless you specifically require them.

View full article »

java To objC

Here is a map of what J2ObjC translates from Java to Objective-C:

Java |Objective-C
packages |class naming
classes |interfaces

View full article »

Powered by Typecho. Theme: Motion modified by changyuefeng.版权所有ICP证:浙ICP备20011766号