« first day (2010 days earlier)      last day (1770 days later) » 

6:46 AM
posted on May 02, 2016 by OlegAney

I need to add new tasks in Russian to my Rebol to-do list window. But it seems impossible. Can I fix it? The code for the programme is simple: Rebol [title: 'Personal Calendar/Scheduler']     write/append %mycal '' forever [      if none = d: request-date [quit]      view center-face layout [       

 
 
8 hours later…
2:46 PM
posted on May 02, 2016 by Steven White

In R2 VID, I know how to view a window with a button and a progress bar, so that when the operator clicks the button, some repetitive process starts and updates the progress bar.   I am wondering if it is possible to have a script start, immediately display a progress bar, and immediately begin some repetitive process that updates the progress bar, without the operator having to init

 
 
7 hours later…
9:55 PM
Hello everyone, i'm new here, i was trying to retrieve some tweet with [this](http://ross-gill.com/page/Twitter_API_and_REBOL) but that doesnt let me connect. Is this a problem on my end? or is this API not relevant anymore?

code is

Rebol []

do/args http://reb4.me/r/twitter context [
Consumer-Key: #consumer-key
Consumer-Secret: #consumer-secret
User-Store: %./user-file.txt
]
twitter/find "olympic game"
 
10:07 PM
@superancetre It is still up-to-date against the current Twitter API. It may be you need to do the twitter/as dance to get permissions to access the API as a specific user.
do/args %twitter.r context [...]
twitter/as "mytwittername"
twitter/find "olympic game"
 
10:20 PM
Never mind, twitter/find does use an outdated API.
 
10:31 PM
I need to go about replacing some of that content. A better way to access the at the moment is hitting it directly with the Rest protocol: ross-gill.com/page/REST_Protocol
You'll still need a key to access items as a twitter user.
Ok, scratch that last part. You can do the following for an anonymous search:
do reb4.me/r/rest-curl
read/custom [
	scheme: 'rest
	url: api.twitter.com/1.1/search/tweets.json
	oauth: context [
		Consumer-Key: "...App Key..."
		Consumer-Secret: "...App Secret..."
		OAuth-Token: OAuth-Token-Secret: none
	]
][
	q: "olympic game"
]
Note that this does use cURL (via CALL) in place of the inbuilt Rebol HTTP protocol.
 
11:03 PM
@rgchris thanks! I saw http://reb4.me/r/twitter-vid (i guess it's your script also?), and tested it, and understood twitter/find was the problem, as the other command works pretty well. Thank you or the workaround with cURL.

Reading the code, i saw you use a lot of the func 'use. Mind explaining why you need it? The documentation lost me "defining words local to a block"
 
@superancetre USE is one way of creating a context where words are not assigned values globally. As an example, a little parse rule: word: use [letter][letter: charset [#"a" - #"z"] [some letter]] —here letter is just assigned within that context. Outside of that, 'letter still has no value.
>> word: use [letter][letter: charset [#"a" - #"z"] [some letter]]
== [some letter]
>> ? letter
No information on letter (word has no value)
>> parse "abc" word
== true
Effectively it avoids naming clashes between different 'modules'.
 
@rgchris Thank you! I guess it's more useful when you write a library, but it's nice to know.
 
11:19 PM
@superancetre Pretty much, though I find myself using it in a few situations for isolating and debugging code...
 
11:29 PM
@rgchris Gotcha, i'll keep it in mind. Another question, is there any recommanded editor for Rebol? The default one does not have syntax highlighting, and F5 does not execute code as i understood it should (rebol 2.7.8 on windows)
 
Hm, don't use Windows much. There is Sublime Text that has syntax highlighting, and (I think) some actions and shortcuts.
 
Gotta go see what sublime text can do then, thanks
 
The Rebol bundle is here: github.com/Oldes/Sublime-REBOL
 
11:52 PM
@superancetre I've updated the Twitter API script so your code here should work.
 
@rgchris dude that was quick! And yes it work :) Just need to parse all of this now. How did you deal with the rate-limit from twitter? I there any function to see how many request left? or do you block request if the rate-limit is over?
 

« first day (2010 days earlier)      last day (1770 days later) »