A: YES, we can
- Delete the app.
- Wait for at least one day.
See reference:
""" | |
automation based on selenium webdriver with safari native support | |
""" | |
from selenium.webdriver.common.by import By | |
from selenium import webdriver | |
import unittest, time | |
class WebKitFeatureStatusTest(unittest.TestCase): |
def genFontStr13(str) | |
if (str =~ /^\d{13}$/).nil? then | |
return nil | |
end | |
table = ["AAAAAA", "AABABB", "AABBAB", "AABBBA", "ABAABB", "ABBAAB", "ABBBAA", "ABABAB", "ABABBA", "ABBABA"] | |
first = str[0,1] | |
first6 = str[1,6] | |
last6 = str[7,6] | |
table2 = table[first.to_i] | |
result = first |
// | |
// main.m | |
// NSStringHash | |
// | |
// Created by Tonny Xu on 2/10/13. | |
// Copyright (c) 2013 Tonny Xu. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
KVC with special keyPath
is really powerful for collection objects like NSArray
and NSDictionary
and NSSet
このようなコードを使えるようにする:
yyyyMMdd_HHmmss_dfObj = [[NSDateFormatter alloc] init];
yyyyMMdd_HHmmss_dfObj.formatterBehavior = NSDateFormatterBehavior10_4;
yyyyMMdd_HHmmss_dfObj.timeZone = [NSTimeZone timeZoneWithName:@"Asia/Tokyo"];
yyyyMMdd_HHmmss_dfObj.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
yyyyMMdd_HHmmss_dfObj.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
yyyyMMdd_HHmmss_dfObj.dateFormat = @"yyyy-MM-dd HH:mm:ss";
Almost the only option for us is sleep(n)
(if you are familiar with SIGNAL, you can also use it). We are familiar with it, so let's pass it.
There is resource called semaphore
, use it can make your code more robust and more efficient.
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.google.com"]];