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
do_set_trace_flags(Tracer,Args,How) -> | |
Fun=fun({Proc,Flags}) -> | |
case check_traceflag_pidspec(Proc) of | |
{ok,Proc2} -> % Reg-names converted. | |
case check_flags(Flags) of | |
Flags2 when is_list(Flags2) -> % No error! | |
case (catch | |
case How of | |
true -> | |
erlang:trace(Proc2, |
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
Starting eqc version 1.162 (compiled at {{2009,4,8},{13,40,53}}) | |
prop_client_put: Failed! Reason: | |
{'EXIT',{badarg,[{lists,member, | |
[seven, | |
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]| | |
8]| | |
7]| | |
5]| | |
4]| | |
2]| |
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
/* API Mapping ---------------------------------------------------------------*/ | |
#ifndef RTE_CORE | |
#define Rte_Receive_RXIface1_RxSig001 Rte_Receive_SwcPubSub_RXIface1_RxSig001 | |
#define Rte_Write_TxIface1_TxSig001 Rte_Write_SwcPubSub_TxIface1_TxSig001 | |
#define Rte_Feedback_TxIface1_TxSig001 Rte_Feedback_SwcPubSub_TxIface1_TxSig001 | |
#define Rte_Pim_mem() ((Rte_Inst_SwcPubSub->Pim_mem)) | |
#endif | |
/* Port handle API Mapping ---------------------------------------------------*/ | |
#ifndef RTE_CORE |
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
import os, glob | |
import subprocess | |
path = 'cases/ex/' | |
if len(sys.argv) > 1: | |
path = sys.argv[1] | |
files = glob.glob(os.path.join(path, '*.txt')) | |
times = [] | |
times_all = {} |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
# Script to instruct Android emulator to move to coordinates | |
# Heavily inspired by @pauloricardomg's GPS-server | |
# Parses a file that contains lat-long tuples, i.e "-91.7674044575329,73.90620635916805" | |
# KML files can be converted using: | |
# cat file.kml | grep coordinates | sed 's/.*>\(.*\),0/\1/;s/<\/coordinates>//g' > coords.out | |
# Hacked by @mljungblad | |
import socket |
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
- Some computer science issues in Ubiquitous computing (M. Weiser) | |
Takes inspiration from everyday objects and how we interact with them such that the interaction is unconscious and non-intrusive. The objects of interaction are proactive in a way that makes humans "think less". Developed three prototypes: Tab (post-it like), Pad (think iPad), and Smartboard (interactive whiteboard). Identified X areas for future work: 1) Hardware - such as pens, battery life, wireless scalability. 2) Network protocols - media access, real-time capabilities, mobile IP. 3) Interaction substrates - surface on which users can pass commands, other ways of passing commands (speaking), separating view from logic, moving views around. 4) Applications - location-awareness, context-aware, collaboration, not only technical challenges. 5) Privacy - what information is the user willing to share, number of devices increasing, voluntary vs involuntary sharing. 6) Computational Methods - caching, disconnected operations. | |
- Pervasive Compu |
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
#include <stdlib.h> | |
#include <stdio.h> | |
int xor_files(FILE *files[], int number_of_files, char *outputfilename) { | |
int file_index; | |
int x = 0; | |
FILE* output; | |
output = fopen(outputfilename, "wb"); |
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
-module(dummy). | |
-export([important_task/0]). | |
important_task() -> | |
gaoler:acquire(beer), | |
drink_beer(), | |
gaoler:release(beer). | |
drink_beer() -> | |
io:format("I'm a happy application!", []). |
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
#!/usr/bin/python | |
# | |
# Created by Albert Au Yeung (2010) | |
# Updated by Marcus Ljungblad (2012) | |
# | |
# An implementation of matrix factorization | |
# | |
try: | |
import numpy |
OlderNewer