Board.KolibriOS.org

Official KolibriOS board
It is currently Thu Nov 21, 2019 6:00 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PASTA
PostPosted: Mon Apr 14, 2014 1:19 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Pasta is a program that uploads the contents of the clipboard to http://paste.kolibrios.org
It's also possible to upload the contents of a file. To do this, specify the path to the file as a parameter when running the program.

The program has no interface, but uses @notify to notify user of result.
On success, the URL to the paste created is shown by @notify, but also copied to the clipboard.

Example:
I want to share the contents of boardlog.txt with somebody on IRC.

    -Copy the contents of boardlog.txt using your favorite text editor in KolibriOS.
    -Run pasta.
    -Paste the URL in IRCc and hit enter.

OR:

    -Run the command '/sys/network/pasta /sys/boardlog.txt'
    -Paste the URL in IRCc and hit enter.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Last edited by hidnplayr on Mon Apr 14, 2014 6:28 pm, edited 3 times in total.

Top
   
 Post subject: Re: PASTA
PostPosted: Mon Apr 14, 2014 2:08 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Demo screenshot:
Spoiler: Show
Attachment:
kolibrios.png
kolibrios.png [ 52.74 KiB | Viewed 2904 times ]

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Last edited by hidnplayr on Mon Apr 14, 2014 6:16 pm, edited 1 time in total.

Top
   
 Post subject: Re: PASTA
PostPosted: Mon Apr 14, 2014 2:58 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5066
"Pasta" should be title. Flag -t for @notify.
If it just uploads text from buffer to Pasta, then better to write:
"Pasta
Text from buffer was successfully uploaded to
link".

Usefull program.
Good job.

_________________
Через тернии к звездам


Top
   
 Post subject: Re: PASTA
PostPosted: Mon Apr 14, 2014 3:17 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Yes, I realised it only after comitting to SVN.

I'm thinking about the following implementation:
When program is run, try to upload text from clipboard to server.
On succes, remove original text from clipboard and place the URL to paste on clipboard.
Display sucess message with @notify

When the program is run with parameters, take the input from a file instead of clipboard.
(Then it will be possible to implement an option 'send to pasta' in filemanagers for txt and log files)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: PASTA
PostPosted: Mon Apr 14, 2014 4:05 pm 
Offline
User avatar

Joined: Sat Oct 05, 2013 9:32 pm
Posts: 386
It is very cool!!! I think you can add some button to TinyPad and TEdit, which will send text to pasta.


Top
   
 Post subject: Re: PASTA
PostPosted: Tue Apr 15, 2014 5:22 pm 
Offline

Joined: Wed May 18, 2005 7:27 pm
Posts: 1001
Image

So, can we make your own Twitter with blackjack and hookers?


Last edited by Wildwest on Tue Apr 15, 2014 7:43 pm, edited 1 time in total.

Top
   
 Post subject: Re: PASTA
PostPosted: Tue Apr 15, 2014 7:04 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Wildwest wrote:
Spoiler: Show
Image


So, we can make your own Twitter with blackjack and hookers?


Yes, very helpfull, thanks.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited