Rostlab / JS16_ProjectD_Group5

Joffrey Baratheon is one of the most loathed characters in TV history. As a matter of fact people were celebrating his TV death on Twitter. We are interested to learn more on how people feel about different characters by analyzing tweets mentioning GoT characters. In this project you will be analyzing Twitter feeds across a timeline, you will look for the name of GoT characters in that feed and try to identify whether the tweet is positive or negative. You can then generate a metric that evaluates what is the accumulated sentiment expressed on Twitter for that given character at a given point in time, and what is the trend (positive, negative). It will be interesting to intersect the sentiments for characters following the airing of a certain episode (you can easily get the airing date for an episode from the database constructed in Project A).
GNU General Public License v3.0
2 stars 3 forks source link

File write problem #60

Closed jcebel closed 8 years ago

jcebel commented 8 years ago

@yashha suggests the following, so people get no problem if the config.json does not exist at the beginning. Please implement or at least comment on this proposal if your not gonna implement it

fs.writeFileSync(require('path').resolve(__dirname, 'cfg/config.json'), JSON.stringify(params, null, 4));
statt
fs.writeFileSync('cfg/config.json', JSON.stringify(params, null, 4));

main.js L:7
kajo404 commented 8 years ago

@yashha my current solution is:

fs.writeFileSync(require('path').resolve('./cfg/config.json'), JSON.stringify(params, null, 4));

I don't know what the purpose if the __dirname variable is. Can you explain?

yashha commented 8 years ago

https://nodejs.org/api/globals.html#globals_dirname

kajo404 commented 8 years ago

alright thanks

yashha commented 8 years ago

Can you fix it today? important! :)

kajo404 commented 8 years ago

There is a fix in the current pull request. I don't know if it helps because our database access is still messed up due to missing information from A about token / post requests

yashha commented 8 years ago

Thanks :)