- CentOS 7.0 x64 is installed (default install from DigitalOcean Droplet Manager)
- Logged in via ssh key with root privileges
- Using MongoDB as database
Install Remi Collet Repository:
yum install epel-release
| // iOS ロックスクリーン Notification | |
| #define NotifName_LockComplete @"com.apple.springboard.lockcomplete" | |
| #define NotifName_LockState @"com.apple.springboard.lockstate" | |
| //call back | |
| static void lockStatusChanged(CFNotificationCenterRef center, void *observer, CFStringRef name_cf, const void *object, CFDictionaryRef userInfo){ | |
| NSString *name = (__bridge NSString*)name_cf; | |
| if ([name isEqualToString:NotifName_LockComplete]) { |
| /* | |
| http://benjithian.sg/2012/12/simple-background-subtraction/ | |
| Simple Background Subtraction. Simple stuff. | |
| */ | |
| #include <stdio.h> | |
| #include <curl/curl.h> | |
| #include <sstream> | |
| #include <iostream> | |
| #include <vector> | |
| #include <opencv2/opencv.hpp> |
| class ImagePlayer(QWidget): | |
| def __init__(self, filename, title, parent=None): | |
| QWidget.__init__(self, parent) | |
| # Load the file into a QMovie | |
| self.movie = QMovie(filename, QByteArray(), self) | |
| size = self.movie.scaledSize() | |
| self.setGeometry(200, 200, size.width(), size.height()) | |
| self.setWindowTitle(title) |
| ''' | |
| The MIT License (MIT) | |
| Copyright (c) 2013 Krishna Bharadwaj <krishna@krishnabharadwaj.info> | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |