Mobile computing is primarily defined by the use of mobile devices at the edge of the network. Whereas traditional computing would often involve the use of static devices connected to a secure network while protected by a layer of physical security, mobile computing involves using mobile devices such as smartphones which are connected to a potentially insecure network, with no physical security. In some cases, mobile computing also involves transferring responsibilities that were previously analogue or manual, and digitalising them in the process. For example, the process of recording a biological sample might require recording the name of the sample, along with taking a photo. In a non mobile computing system, the photo and name would be recorded on separate mediums, and collated together after the photo has been developed. In a mobile computing system, the photo could be taken digitally, and associated with the name of the sample (and any other records) immediately. While this might seem tangential to mobil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In recent days (the last 12-24 hours), there have been a couple of posts on a one | |
'Marak Squires', who goes by the tag JimBastard. He stands accused of stealing code, | |
and being a general douchebag. Stealing code isn't good. Being a douchebag isn't | |
acutally illegal. However, the way that the campaign against him has been carried | |
out worries me. | |
The post to reddit that brought this issue to attention was entitled 'Code Thief at | |
Large: Marak Squires / JimBastard'. It can be found here: | |
http://www.reddit.com/r/programming/comments/ebge2/code_thief_at_large_marak_squires_jimbastard/. | |
It was a link to a github gist that can be found here: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"time" | |
"context" | |
etcd "github.com/coreos/etcd/clientv3" | |
"github.com/golang/glog" |
I hereby claim:
- I am lclarkmichalek on github.
- I am laurie (https://keybase.io/laurie) on keybase.
- I have a public key ASCShXi8EDq9NFDJ5UDMVlLRteY6zMRoqNnT9Ot2Acq-Zwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
relabel_configs: | |
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape] | |
regex: "true" | |
action: keep | |
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme] | |
regex: (https?) | |
target_label: __scheme__ | |
action: replace | |
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path] | |
regex: (.+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
evaluation_interval: 1m | |
rule_files: | |
- /etc/prometheus/rules/*.rules | |
scrape_configs: | |
- job_name: cadvisor | |
params: | |
module: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url := fmt.Sprintf("%v/dist/v1/%v/artifact/%v/%v", baseURL, repoName, version, runtime.GOOS) | |
debug("GET", url) | |
resp, err := client.Get(url) | |
if err != nil { | |
return errors.Wrap(err, "could not request latest version download") | |
} | |
defer resp.Body.Close() | |
debug("GET", resp.StatusCode, url) | |
if !(200 <= resp.StatusCode && resp.StatusCode < 300) { | |
data, _ := ioutil.ReadAll(resp.Body) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/shader.go b/shader.go | |
index 9be9c52..aec8742 100644 | |
--- a/shader.go | |
+++ b/shader.go | |
@@ -39,15 +39,15 @@ func (shader Shader) GetSource() string { | |
var length C.GLint | |
C.glGetShaderiv(C.GLuint(shader), C.GLenum(SHADER_SOURCE_LENGTH), &length) | |
- log := C.malloc(C.size_t(len + 1)) | |
- C.gogl_glGetShaderSource(C.GLuint(shader), C.GLsizei(len), nil, (*C.GLchar)(log)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'flymake) | |
(defvar go-compiler "8g") | |
(defun flymake-go-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import timeit | |
t1 = """ | |
class Test(): | |
_bar = None | |
@property | |
def bar(self): | |
if self._bar is not None: |
NewerOlder