Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #10 // Upload source file to TinyBrain

Task description

1  
There should be an easy way to upload source files to the snippets DB. Just put it up there, figure out what it is later.
2  
3  
Stuff to transmit:
4  
-file contents
5  
-file name
6  
-path (probably a shortened one, not the full local path)
7  
8  
Also, of course, user ID and date, but TB will add that automatically.
9  
10  
First implementation idea:
11  
-Use a new snippet type (Source file)
12  
-Snippet name = path + file name
13  
-Content = actual file contents
14  
15  
Further implementation details:
16  
-Command in TB interpreter is: upload src//<path-to-file>
17  
-Outputs snippet ID
18  
19  
Second step:
20  
-Show if file with same contents is in DB already.
21  
-Or a file with same path.
22  
-Or both? Then probably it's not wise to upload again. A brain might actually know.

download  show line numbers   

Relations

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
1646 ubataecj 555 2024-04-06 17:27:21
1643 ubataecj 555 2024-04-06 17:27:18

add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 736 [visualize]

Snippet ID: #10
Snippet name: Upload source file to TinyBrain
Eternal ID of this version: #10/1
Text MD5: 2192e8976a946b10984fe6fde7435d69
Author: stefan
Category:
Type: Task description
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2013-12-08 17:58:57
Source code size: 736 bytes / 22 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1050 / 273
Referenced in: [show references]