• Tagged pages for 'console'
  • Post Category
    Post: "Drag and Drop on Window"
    Posted by MaxV on 13 Feb 2014, 15:57
    This script show how to use shell32.dll in order to have use "drag and drop" to move file inside you application. I launched the script and obtained: Drag some files and drop them on this window...
    Blog (24)
    Post: "Econdings"
    Posted by MaxV on 22 Jan 2014, 17:46
    The following code contains functions and charset to check or convert string encoding. Here the most important function: encoding?  This function return one fo the following: "us-ascii"
    Blog (24)
    Post: "ROT-13 obfuscation"
    Posted by MaxV on 01 Oct 2013, 20:22
    The following script perform the well known ROT 13 obfuscation (all letters are changed with the 13rd letter after it in aphabetical order). ROT 13 encryption has the property that you can use the s
    Blog (24)
    Post: "Roman-Arabic numeral converter"
    Posted by MaxV on 27 Sep 2013, 18:23
    Today script is simple but efficient, is a Roman to Arabic (our common) numeral, it converts in both directions: Roman 10 == "X" >> Roman 115 == "CXV" >> Roman 418 == "CDXVIII" >> Roman "XIV"
    Blog (24)
    Post: "PDF barcode"
    Posted by MaxV on 30 Jul 2013, 18:42
    The following script uses last post PDF maker to create barcode, here is an example: do pdf-maker.r text-string: "item2342" x-offset: 10 ; millimeters from the left edge of the page y-off
    Blog (24)
    Post: "PDF maker"
    Posted by MaxV on 18 Jul 2013, 16:42
    Gabriele Santilli wrote the following script in order to create great PDF documents, other scripts use this tool, so it's better to know it. The main function is layout-pdf, lets see an example: a
    Blog (24)
    Post: "Mathematical Expression Dialect Parser"
    Posted by MaxV on 11 Jul 2013, 15:28
    The following script permits you to evaluate correctly math expressions. For example rebol way to evaluate is wrong in this case (the correct result is 50): >> 5 + 5 * 3 ** 2 == 900.0
    Blog (24)
    Post: "Ordinal Number Translator"
    Posted by MaxV on 18 Jun 2013, 19:59
    The following script translate a string, like "nine hundred and nineteenth", in its number equivalent. Here is the source: REBOL [ Title: "Ordinal Number Translator" Date: 18-Jun-1999 File: %
    Blog (24)
    Post: "Morse code generator"
    Posted by MaxV on 30 May 2013, 22:23
    In just one line Mr. Johan Roennblom created a morse code generator: foreach c ask{Message:} [l: index? find{ etinamsdrgukwohblzfcpövxäqüyj}c while[l >= 2][prin pick{-.}odd? l l: l / 2]prin" "]
    Blog (24)
    Post: "Time! and date!"
    Posted by MaxV on 24 May 2013, 16:45
    Hello, I just discovered some funny properties of date and time format. Let's see them together! First of all let's create two variable containing a date and a time value: >> a: now/date == 24-Ma
    Blog (24)
    Post: "Nim game"
    Posted by MaxV on 22 May 2013, 17:41
    Today I'll write about the NIM game, it's a simple game: There are some piles of tokens, every turn can remove any number of token from a pile, the player loose if he remove the last token from
    Blog (24)
    Post: "Sort"
    Posted by MaxV on 08 May 2013, 19:06
    Sort is a very useful and dangerous function at the same time, let's analyze it. First of all, it changes the series: >> a: [ 5 8 7 9 2 3 1 4] >> sort a >> a == [1 2 3 4 5 7 8 9] when you e
    Blog (24)
    Post: "Music player, using external library and making routine!"
    Posted by MaxV on 30 Apr 2013, 18:25
    Today's post is about many topics, but all around the same main argument: using external programs or libraries. If already exists a program that it does what you want, you avoid a lot of work using i
    Blog (24)
    Post: "A new way to use object! type"
    Posted by MaxV on 23 Apr 2013, 18:12
    Rebol object! is a content, usually objects are made this way: car: make object! [ wheels: 4 engine: 'broken battery: 100 name: "polo" ] or this way: car: context [ wheels: 4 engin
    Blog (24)
    Post: "Rebol vs Ruby"
    Posted by MaxV on 10 Apr 2013, 20:23
    Today I'll show you the main differences between Ruby and Rebol: Assigning Assigning is different, I prefer Rebol way since you don't confuse assigning to evaluation. RebolRuby >> a:
    Blog (24)
    Post: "Wiki completed!"
    Posted by MaxV on 27 Mar 2013, 22:53
    The wiki on http://rebol.informe.com/wiki/ is completed, I suggest you the followings topics: http://rebol.informe.com/wiki/view/R3_network_scheme http://rebol.informe.com/wiki/view/R3_GUI_actor
    Blog (24)
    Post: "Memory usage"
    Posted by MaxV on 26 Mar 2013, 16:58
    There are several tools to see the memory usage of Rebol. The first one is to see the system/stats: system/stats == 5524993 The value showed represents the bytes used, you have to divide to
    Blog (24)
    Post: "PBKDF2 encryption"
    Posted by MaxV on 25 Mar 2013, 19:07
    Do you know the PBKDF2 encryption? It's the encryption used on Wi-Fi, Mac and more systems. You may read something here: http://en.wikipedia.org/wiki/PBKDF2 refaktor wrote a script to use PBKDF
    Blog (24)
    Post: "Brett Handley"
    Posted by MaxV on 11 Mar 2013, 18:08
    Today I write about Mr. Brett Handley, another great rebol activist. Do you remember this post (http://rebol.informe.com/blog/2013/01/28/seeing-parse-in-action/)? Mr. Brett Handley updated his scri
    Blog (24)
    Post: "Etsy API"
    Posted by MaxV on 25 Feb 2013, 19:28
    What is the Etsy API? http://www.etsy.com/developers provides a powerful web site interface that allows users to manage account data. When you sign up with Etsy, you can log in and use forms on the p
    Blog (24)
    Post: "The DRAW command"
    Posted by MaxV on 12 Feb 2013, 16:37
    Probably you used DRAW only in a window code, but DRAW is an external console command. Today I'll show you how to use to crate images and cool videos... There are two main was to create a black ima
    Blog (24)
    Post: "NEW-LINE function"
    Posted by MaxV on 29 Jan 2013, 17:27
    Ok, I always forget of this essential function, so I write this post hoping to remember it next time I work with blocks. Did you aver noticed that block can be saved with invisible break lines? Look
    Blog (24)
    Post: "Seeing PARSE in action"
    Posted by MaxV on 28 Jan 2013, 21:49
    Mr. Brett Handley has a great site about Rebol: http://www.codeconscious.com and he made a lot of useful scripts. Today we will discover three of them about PARSE. I contacted him and he was so kind
    Blog (24)
    Post: "Locking and unlocking resources"
    Posted by MaxV on 25 Jan 2013, 19:04
    The script presented today is very interesting, it permits to lock a variable (so any resource), to prevent access to other users. The script is composed of a server (lock-server)and the client funct
    Blog (24)
cron