For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
gCnt = 0 | |
def main(): | |
squre = [] | |
for i in range(4): | |
squre.append([0,0,0,0]) | |
print squre | |
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import copy | |
testcases = int( raw_input() ) | |
for i in range(testcases): | |
nk = raw_input().split(" ") | |
n = int(nk[0]) | |
k = int(nk[1]) | |
data = [] |
packet1 = IP(dst='106.187.39.23')/TCP(dport=9999,flags=0x18) | |
packet1.payload = 'GET / HTTP\r\nUser-Agent: curl/7.28.1\r\nHost: liruqi.com\r\nAccept: */*\r\n\r\n' | |
send(packet1) |
// No working anyway | |
CGSize screenSz = [UIScreen mainScreen].bounds.size; | |
CGSize leftSz = [self.haveAccountLabel intrinsicContentSize]; | |
CGSize rightSz = [self.signInButton intrinsicContentSize]; | |
CGFloat contentWidth = leftSz.width + rightSz.width + 8; | |
CGFloat x = (screenSz.width - contentWidth) / 2; | |
if (x < 0) { | |
NSLog(@"Text overflow %lf > %lf", contentWidth, screenSz.width); |
# copied from: http://code.google.com/p/chnroutes/source/browse/trunk/chnroutes.py | |
import re | |
import urllib2 | |
import sys | |
import argparse | |
import math | |
import json | |
def fetch_ip_data(): |
// Hide separator for specific cell is extremely hard in iOS 9. | |
// None of these worked or good enough for me: | |
// http://stackoverflow.com/questions/8561774/hide-separator-line-on-one-uitableviewcell | |
@interface NSPZeroMarginCell : UITableViewCell | |
@property (nonatomic, assign) BOOL separatorHidden; | |
@end |
== iOS == | |
===Build guide=== | |
* https://github.com/actorapp/actor-bootstrap/tree/master/docs/server | |
== Configuration == | |
===File Storage=== | |
AWS S3 or file system on actor server | |
* AWS S3: https://github.com/actorapp/actor-bootstrap/blob/master/docs/server/configure-s3.md | |
* Steps: [http://roomchat-cn.azurewebsites.net/oss/actor/aws-s3-cors1.jpg],[http://roomchat-cn.azurewebsites.net/oss/actor/aws-s3-cors2.jpg] |
ALTER TABLE beijing_house add column `usage` varchar(16) default NULL; | |
ALTER TABLE `beijing_house` add column `createtime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; |
/* | |
249 / 282 test cases passed. | |
Status: Wrong Answer | |
Input: | |
[-2,0,5,-1,-5,5,3] | |
-2 | |
Output: | |
[[-5,-2,0,5],[-2,-1,0,1]] | |
Expected: |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt