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
TypeError: Second argument should be a buffer | |
at Stream._writeImpl (net.js:306:14) | |
at Stream._writeOut (net.js:752:25) | |
at Stream.write (net.js:685:17) | |
at /usr/local/lib/node/.npm/websocket-server/1.3.52/package/lib/ws/connection.js:179:14 | |
at Connection.<anonymous> (/usr/local/lib/node/.npm/websocket-server/1.3.52/package/lib/ws/connection.js:280:7) | |
at Object.callback (/home/shaver/bzsearch/src/server/websocket.js:30:10) | |
at RedisClient.return_reply (/usr/local/lib/node/.npm/redis/0.3.5/package/index.js:532:25) | |
at RedisReplyParser.<anonymous> (/usr/local/lib/node/.npm/redis/0.3.5/package/index.js:382:18) | |
at RedisReplyParser.emit (events.js:27:15) |
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
shaver@shaver-pulsar:~/bzsearch$ netstat -tn | grep 8000 | |
tcp 0 0 67.23.47.48:8000 67.196.136.168:5555 ESTABLISHED | |
tcp 0 0 67.23.47.48:8000 67.196.136.173:5555 ESTABLISHED | |
tcp 0 0 67.23.47.48:8000 99.231.121.109:50105 ESTABLISHED | |
shaver@shaver-pulsar:~/bzsearch$ | |
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
31 Oct 07:18:37 - server error: Error: ETIMEDOUT, Connection timed out | |
node.js:50 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: ETIMEDOUT, Connection timed out | |
at Stream._readImpl (net.js:310:14) | |
at IOWatcher.callback (net.js:455:24) | |
at node.js:634:9 |
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
pub struct SkillRating { | |
_name: String, | |
_ratings: Vec<u32> | |
} | |
pub struct Job { | |
_name: String, | |
_skill_ratings: (SkillRating, SkillRating, SkillRating), | |
} |
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
pub fn load_jobs(_file: &str) -> Vec<Job> { | |
extern crate csv; | |
let jobs = vec![Job { | |
_name: "Dude".to_string(), | |
_skill_ratings: ( | |
SkillRating { | |
_name: String::from("Drinking"), | |
_ratings: vec![0; 32] | |
}, | |
SkillRating { |
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
#[derive(Debug, Deserialize)] | |
struct JobSkillRecord { | |
rank: u32, | |
name1: String, | |
rating1: u32, | |
name2: String, | |
rating2: u32, | |
name3: String, | |
rating3: u32, | |
job_name: String |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
Rank:1-Name:1-Num:2-Name:2-Num:3-Name:3-Num:Job | |
1:Blades:2:Evasion:1:Stealth:1:Assassin | |
2:Blades:3:Evasion:1:Stealth:3:Assassin | |
3:Blades:4:Evasion:1:Stealth:3:Assassin | |
4:Blades:4:Evasion:1:Stealth:4:Assassin | |
5:Blades:5:Evasion:1:Stealth:4:Assassin | |
6:Blades:5:Evasion:1:Stealth:5:Assassin | |
7:Blades:5:Evasion:1:Stealth:6:Assassin | |
8:Blades:6:Evasion:1:Stealth:6:Assassin | |
9:Blades:6:Evasion:1:Stealth:7:Assassin |