-
2014-12-18
iOS RSA encrypt with public key
Views: 4648 | No Comments -
2014-12-18
Get SecKeyRef from RSA public key string in iOS and Cocoa
Views: 5067 | No Comments -
2014-12-12
Pure JavaScript Swipe Event Plugin for PC and Mobile Web
Views: 12119 | No CommentsI tried many JavaScript Swipe event plugins, such as the jQuery mobile swipe plugin, and the jQuery.event.swipe by stephband, and many others. Unfortunately, none of them works for me. Many weakness of those code that I made decision not using them:
The demos provided are so poor, they are not interesting.
The swipe event is fired only after the touch ends(your finger lift off the screen, or release the mouse button), so your event handler is so delayed to the user, that’s why the UI is not smooth. There must be move events before the swipe event fires.
Treats swipe event as a serial of move events. In this way, you provide only one event handler just like you provide for Mac’s trackpad scroll events. The Mac trackpad hardware driver gurantees to generate smooth small scroll events.
So, with my JavaScript swipe event plugin, your code would be as simple as:
guesture.onmove = function(e){ layer.x += e.dx; layer.y += e.dy; }
Check out the exciting demo online! With PC chrome browser, or with your iPhone Safari, it is PC and Mobile compatible.
-
2014-10-25
SSDB 1.7.0.0
Views: 10659 | 1 Comment1.7.0.0
- New features:
- export(ssdb-cli) command supports -i(interactive) option(2014-10-16)
- ssdb-cli performance improved(2014-10-11)
- Add export, import commands in ssdb-cli(2014-10-11)
- Add qtrim_front, qtrim_back commands(2014-10-11)
- ssdb-dump support auth(2014-10-10)
- Add max_open_files config, default is 100(2014-10-08)
- Add auth command(2014-09-20)
- Enable qpop multi elements at a time(2014-09-16)
- Incompatible changes:
- Rewrite hexmem, this affects log messages(2014-10-10)
SSDB official website: http://ssdb.io/
- New features:
-
2014-06-30
SSDB working with Twemproxy
Views: 22078 | No CommentsTwemproxy is a fast and lightweight proxy for memcached and redis protocol, developped by twitter. It was primarily built to reduce the connection count on the backend caching servers. You can use twemproxy + Redis for load balance, hight availability, etc.
SSDB database supports Redis protocol, so you can use Twemproxy + SSDB as Twemproxy + Redis, or even Twemproxy + SSDB + Redis.
Twemproxy + SSDB are already work online for production environment.
Twemproxy: https://github.com/twitter/twemproxy