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
function a = actMon() | |
% read train text file to matrix with any ASCII delimiter | |
s = dlmread('standing.txt'); | |
w = dlmread('walking.txt'); | |
% read test text file to matrix with any ASCII delimiter | |
st = dlmread('standing-2.txt'); | |
wt = dlmread('walking-2.txt'); | |
% START OF TRAINING | |
% use 2000 training samples |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.chord path { | |
fill-opacity: .67; |
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
% initializing 0 rack | |
map emptyRack: RackID -> PacketID; | |
var er: RackID; | |
eqn emptyRack(er) = 0; | |
sort PacketID = Nat; % 0 indicates 0/non-existant packet | |
RackID = Pos; % rack levels in rack R | |
ElevatorID = struct e_1 | e_2 | e_1_2; % elevator e_1, e_2, or both (e_1_2) | |
RackRecord = RackID -> PacketID; % array that maps RackID to PacketID. (each rack(RackID) should contains a PacketID, Nat or 0 if its 0)) | |
EleState = struct free|storing|delivering; |
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/env bash | |
#Jalaninnya di dalam /workspace/Powerstone | |
#Cara pakai: sh automatic.sh <nama_output_file> | |
min=2 #START DI min | |
max=16 #SELESAI DI max | |
inc=2 #INC buat tiap percobaan | |
echo "Total Cycles,Execution Cycles,Stall Cycles,Nops,Executed Operations" > $1 | |
i=$min | |
j=0 |
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/env bash | |
echo "Total Cycles,Execution Cycles,Stall Cycles,Nops,Executed Operations" > $1 | |
#loop for each variation | |
for i in {2..6}; do | |
../tools/vex-3.43/bin/cc -ms -O4 -fmm=pipe_1_2_fw.mm -o x264 ../Powerstone/src/x264.c | |
sed -i "s/RES: Alu.0 $i/RES: Alu.0 $((i+1))/g" pipe_1_2_fw.mm; | |
./x264 |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.eclipse.kura</groupId> | |
<artifactId>kura</artifactId> | |
<version>0.2.0-SNAPSHOT</version> | |
<relativePath>../kura/kura/manifest_pom.xml</relativePath> | |
</parent> |
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
1. In manifest_pom.xml, add - ../../com.bontor.iot.mypackage | |
2. Add parent reference in the project pom.xml | |
org.eclipse.kura | |
kura | |
0.2.0-SNAPSHOT | |
../kura/kura/manifest_pom.xml | |
3. Add dependencies in the project pom.xml -> I use eclipse: Maven - add dependencies (for all packages imported to the project) |
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
[INFO] Error stacktraces are turned on. | |
[INFO] Scanning for projects... | |
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/target-definition/0.0.1-SNAPSHOT/maven-metadata.xml | |
Downloading: https://raw.github.com/eurotech/kura_addons/mvn-repo/org/eclipse/kura/target-definition/0.0.1-SNAPSHOT/target-definition-0.0.1-SNAPSHOT-kura-equinox_3.8.1.target | |
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.kura:target-definition:target:kura-equinox_3.8.1:0.0.1-SNAPSHOT -> [Help 1] | |
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.kura:target-definition:target:kura-equinox_3.8.1:0.0.1-SNAPSHOT | |
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) | |
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) | |
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) | |
at org.apache.maven.cli.MavenCli.main(Ma |
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
2014-05-22 16:26:37,256 [Start Level Event Dispatcher] INFO o.e.j.s.Server - jetty-8.1.3.v20120522 | |
2014-05-22 16:26:38,392 [Start Level Event Dispatcher] INFO o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80 | |
2014-05-22 16:26:40,570 [UdevHotplugThread] INFO o.e.k.l.u.LinuxUdevNative - Starting LinuxUdevNative Thread ... | |
2014-05-22 16:26:40,751 [Component Resolve Thread (Bundle 6)] INFO o.e.k.c.s.SystemServiceImpl - Loaded URL kura.properties: file:/opt/eclipse/kura/kura/kura.properties | |
2014-05-22 16:26:40,753 [Component Resolve Thread (Bundle 6)] INFO o.e.k.c.s.SystemServiceImpl - Kura has net admin? true | |
2014-05-22 16:26:40,754 [Component Resolve Thread (Bundle 6)] INFO o.e.k.c.s.SystemServiceImpl - Kura has web interface? true | |
2014-05-22 16:26:40,755 [Component Resolve Thread (Bundle 6)] INFO o.e.k.c.s.SystemServiceImpl - Kura version? 0.2.0.201405212030 | |
2014-05-22 16:26:40,757 [Component Resolve Thread (Bundle 6)] INFO o.e.k.c.s.SystemServiceImpl - Kura home directory is /opt/ec |
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
pi@raspberrypi ~/ftp/files $ sudo apt-get -f install | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Correcting dependencies... Done | |
The following extra packages will be installed: | |
crda dos2unix hostapd isc-dhcp-server iw wireless-regdb | |
Suggested packages: | |
isc-dhcp-server-ldap | |
The following NEW packages will be installed: |