2014-06-01ãã1ã¶æéã®è¨äºä¸è¦§
Dockerã§vsftpdã ããåããéçºç°å¢ä½ã£ã¦ã¿ãããªããéãã¨ãªã£ã話ã®ç¶ç·¨ã§ãã éçºç°å¢ã®FTPãµã¼ãã¼ãboot2dockerã§ã³ã³ããã¨ãã¦ä½ããã¨ããããªããã³ã¬ã¸ã£ãã¤æãã«ãªã£ã - ã¾ã¼ã½ãã£ã¦èª°ãã¤ããã®ï¼ â» Vagrantã§ç«ã¦ãä»®æ³ãµã¼ãã¼ã«ãã¡â¦
Dockerããã¼ã«ã«ã®éçºç°å¢ã«ä½¿ããã®ããæ¤è¨¼ãã¦ã¿ããã¨æã£ã¦ããã ã®FTPãµã¼ãã¼ãä½ã£ã¦ã¿ã¾ããã ã³ã³ããã®èãæ¹ã¨boot2dockerã®ãããã¯ã¼ã¯ãããåãã£ã¦ãªãã£ãã®ã§ãè¦å´ãã¾ããããã ãããã°ã£ã¦ç°å¢ãã§ããã¯ãããã©ããªãããå ¨ç¶ä¾¿â¦
èµ·åã¹ã¯ãªãããè¦ã¦ã¿ãã¨ã/var/lib/boot2docker/profileã«æ¸ãã°ããããã boot2docker/rootfs/rootfs/usr/local/etc/init.d/docker at master · boot2docker/boot2docker · GitHub #import settings from profile (e.g. HTTP_PROXY, HTTPS_PROXY) testâ¦
ã¤ã³ã¹ãã¼ã«ã«ã¯EPELããã http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/repoview/epel-release.html ã¤ã³ã¹ãã¼ã«&èµ·åããã¼ã¢ã³ãªã®ã # yum -y install docker-io # service docker start Starting cgconfig service: [ OK ] Starting dockâ¦
ãdocker ã¨ã¯ãã¨ãã§èª¿ã¹ãã°è²ã åºã¦ããããããèªãã§åãã£ãæ°ã«ãªã£ã¡ãããã ãã©ã ãã£ã±ã使ã£ã¦ã¿ãªãã¨åãããªããªã¼ã¨ãããã¨ã§ã¤ã³ã¹ãã¼ã«ãã¦ãè²ã ããã£ã¦ããã¡ã«ææ§ã ã£ãã¨ãããç解ã§ããã éçºå宿ã®çºè¡¨ç¨ã®è³æã«ã¡ããã©ãâ¦
Chromeã¨ãSafariã§ãã©ã¦ã¶ããã¯ãããããããã§ãã PCèµ·åæã¯ããæããªãã ãã©ãã¡ãã£ã¨æéããã¤ã¨çªç¶ãããªããªã£ããããããªããããã¦ã¹ã®é»æºONãOFFã§ããããã¨ããã£ããã©ããã¡ã§ãã®åº¦åèµ·åã¨ããã¦ããã©ããã£ã¨è¦ã¤ããã¾ããã â¦
varã¯å¤æ°ã§ãletã¯å®æ°ã£ã¦ãã¨ã ã¨æã£ã¦ããã©ã ããããletã§å®£è¨ããå¤æ°ã®ããããã£ãå¤æ´ããã®ã¯OKãªã®ï¼ ã¨ããçåããã£ãã®ã§ã調ã¹ãã letã§å®£è¨ãããã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã®ããããã£ã¯å¤æ´ãã¦ãOKã letã§å®£è¨ãããã¤ã«ãåä»£å ¥ããã®ãâ¦
Objective-Cãªãããæ¸ãããã // ã¯ã©ã¹ã¡ã½ãã NSDate *date1 = [NSDate date]; // ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ãã NSDate *date2 = [[NSDate alloc] init]; // objcã§ã¯ããã¯ããã¾ã使ããªããã© ãããSwiftã¯ï¼ var date1 = NSDate.date() var date2 = NSDatâ¦
NSDateã®referenceè¦ã¦ãã¨ãããããã¨ãããåºã¦ããã extension NSDate { class func distantFuture() -> AnyObject! /* NSDate * */ class func distantPast() -> AnyObject! /* NSDate * */ init() /* designated initializer */ init(timeIntervalSinâ¦
ä¼ç¤¾ã®ååãã¡ã§éçºå宿ï¼ã¨ãããã¾ãæ®æ®µæ¥åã§ããã¾ãããã°ã©ãã³ã°ã§ããªããã¤ããããã温æ³ã§ããã°ã©ãã³ã°ããããï¼ï¼ããã£ã¦ããã ãã©ããã®é¡æãä½ã«ãããããªã¨ãã話ã ã¹ãã«ããã©ãã©ã ããæ°äººãæ®æ®µããã°ã©ãã³ã°æ¥åãã§ããªãâ¦
1. Beaconã«é¢ããCLLocationManagerãä½æãã // 以ä¸ã®ã¡ã½ããã®å 容ãinitç³»ã®å¦çã§å¼ã³åºã - (void)initLocaitionService { // CLBeaconRegionãä½æ // ãã®ã¨ããProximityUUIDã¯ãbeacon製åã§æä¾ãããUUIDã使ç¨ããã // identifierã«ã¤ãã¦â¦