Cloud for cross-platform, auto EOF conversion

Asked by Andy Nguyen

Hi team.

Context:
I started using RedNoteBook on Ubuntu and it works perfectly. The cloud is capable by storing the data files in Dropbox folder.
I am using Windows PC at works, mainly with Evernote for note taking.
As I love the diary features of RedNoteBook and Evernote limit the numbers of device for free version. I want to use RedNoteBook on Windows for daily basic as well.
I want the data files to be synchronized to the sames location.

Problems:
I try to locate the data path to the same places on Dropbox but it conflict with file system type. My RedNoteBook on Ubuntu stores data on UNIX type, while the Windows stores RedNoteBook files in DOS/Windows.
When Windows RedNoteBook open files stored in UNIX type, the applications crash.
I manually convert the data file from UNIX to Dos/Windows with Notepad++. It works okie. But I could not do it all the times manually like.

Requests:
- Can rednotebook have a kind of auto convert data files when open from different OS?
- I also find the configuration of data path is a little bit hidden. Could you make that setting to be available in Preferences?

Thank you.

Andy

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
Jendrik Seipp
Solved:
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

Hi Andy,

that sounds odd. RedNotebook always saves files using UTF-8 encoding.
The files may have different line endings (LF on Linux, CRLF on
Windows), but a quick test showed that RedNotebook can open either on Linux.

Could you please send me a month file that RedNotebook can't open and
the log file that is written when RedNotebook fails to open it. The log
file is at $HOME/.rednotebook/rednotebook.log ($HOME is
C:\Users\<username> on Windows).

Revision history for this message
Andy Nguyen (andynguyen) said :
#2

Hi Jendrik,

I reported again that it is still failed when try to open RedNoteBook from my Windows with data stored in Dropbox cloud.
Below is the log.

====

2016-09-27 15:29:45,710 INFO Writing log to file "C:\Users\MyPC\.rednotebook\rednotebook.log"
2016-09-27 15:29:45,710 INFO System encoding: mbcs
2016-09-27 15:29:45,710 INFO Language code: en_US
2016-09-27 15:29:49,977 INFO chardet not found. 'utf-8' encoding will be assumed
2016-09-27 15:29:49,980 INFO Running in portable mode: False
2016-09-27 15:29:49,980 INFO First Start: False
2016-09-27 15:29:49,982 INFO RedNotebook version: 1.13
2016-09-27 15:29:50,102 INFO System info: machine: AMD64, platform: Windows-8-6.2.9200, processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel, python_version: 2.7.6, release: 8, system: Windows, GTK version: (2, 24, 10), PyGTK version: (2, 24, 0), Yaml version: 3.10
2016-09-27 15:29:51,085 DEBUG Default font: Sans 10
2016-09-27 15:29:51,085 DEBUG Default size: 10
2016-09-27 15:29:51,476 INFO Cloud ignore list: [u'#tags', u'and', u'comma', u'filter', u'separated', u'these', u'words']
2016-09-27 15:29:51,477 INFO Cloud include list: [u'job', u'mtv', u'play', u'spam', u'work']
2016-09-27 15:29:51,477 DEBUG Start compiling regexes
2016-09-27 15:29:51,480 DEBUG Finished
2016-09-27 15:29:51,575 DEBUG Tray icon visible: False
2016-09-27 15:29:51,589 INFO Opening journal at u'C:\\Users\\MyPC\\Dropbox\\rednotebook'
2016-09-27 15:29:51,589 DEBUG Starting to load files in dir "C:\Users\MyPC\Dropbox\rednotebook"
2016-09-27 15:29:51,589 DEBUG data is not a valid month filename
2016-09-27 15:29:51,589 DEBUG Finished loading files in dir "C:\Users\MyPC\Dropbox\rednotebook"
2016-09-27 15:29:51,589 INFO Connected Signals: [2, 22, 15]
2016-09-27 15:29:51,589 DEBUG Start took 1.61500000954 seconds
2016-09-27 15:29:51,589 DEBUG Trying to enter the gtk main loop
2016-09-27 15:29:51,706 DEBUG Update the cloud
2016-09-27 15:29:51,724 DEBUG Cloud updated
2016-09-27 15:29:51,727 INFO Last backup was made 4 days ago

Revision history for this message
Andy Nguyen (andynguyen) said :
#3

Here is my configuration.cfg:

autoSwitchMode=1
checkForNewVersion=0
closeToTray=0
cloudIgnoreList=#tags, and, comma, filter, separated, these, words
cloudIncludeList=job, mtv, play, spam, work
dataDir=C:\Users\MyPC\Dropbox\rednotebook
dateTimeString=%A, %x %X
exportDateFormat=%A, %x
firstStart=0
lastBackupDate=2016-09-23
leftDividerPosition=250
mainFont=Sans 10
mainFrameHeight=696
mainFrameMaximized=0
mainFrameWidth=1024
mainFrameX=171
mainFrameY=0
previewFont=Ubuntu, mingliu, MS Mincho, sans-serif
rightDividerPosition=764
showTagsPane=1
spellcheck=0
userDir=
weekNumbers=0

The link to download my only monthly data file is:
https://www.dropbox.com/s/p7j9tagbtspmtxn/2016-09.txt?dl=0

Revision history for this message
Best Jendrik Seipp (jendrikseipp) said :
#4

The log shows that you're trying to open
C:\\Users\\MyPC\\Dropbox\\rednotebook, but the data is in
C:\\Users\\MyPC\\Dropbox\\rednotebook\data. You should open the latter
directory.

Revision history for this message
Andy Nguyen (andynguyen) said :
#5

Thank you Jendrik. It works okie now.

Andy