[REBOL] Re: R: Re: Links ? Pointers ?
Hi tim, I did this on purpose, to show that they really are the same reference. they both point to the same function which stores the same value. actually, all three objects contain the exact same function, so I could set any of the three and any other would reflect the same value. :-) -MAx On Thu, Aug 27, 2009 at 10:28 PM, Tim Johnsont...@johnsons-web.com wrote: * Maxim Olivier-Adlhoch mol...@gmail.com [090827 18:07]: so let's say this is what your app should be: person: context [ =A0 =A0uid: 666 =A0 =A0name: me ] =A0Hi Maxim: See employee/uid below: employee: context [ =A0 =A0 uid: user/uid =A0 =A0 title: Workoholic ] =A0Should that be person/uid ? =A0thanks =A0tj managers: [ =A0 =A0 ceo: employee/uid ] now as you know, changing the uid in person won't be reflected in employe or managers... so you're screwed! Look at this modified version using function trick: person: context [ =A0 =A0uid: func [/set value][data: [#[none]] =A0either set [data/1: val= ue][data/1]] =A0 =A0name: me ] employee: context [ =A0 =A0 uid: get in person 'uid =A0 =A0 title: Workoholic ] managers: context [ =A0 =A0 ceo: get in employee 'uid ] =A0person/uid/set 222 =3D=3D 222 managers/ceo =3D=3D 222 this is one way to use the function hack, but there are many others, and they depend on the application itself. there are a few little details when using the hack, but usually, its pretty invisible. Hope this helps =A0:-) -MAx -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject. -- Tim t...@johnsons-web.com http://www.akwebsoft.com -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] Re: VID Extension Kit
Congratulations on these extensions. Very good job. Le 30 ao=FBt 09 =E0 09:43, Henrik Mikael Kristensen a =E9crit : On Sun, Aug 30, 2009 at 9:10 AM, Henrik Mikael Kristensenhenri...@gmail.com wrote: Ready now! Google Code's issue tracker sucks badly, unfortunately. I will be working on a Curecode server as soon as possible. But feel free to submit bugs, then I can transfer them later. --=20 Regards, Henrik Mikael Kristensen --=20 To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] [REBOL.org] Recent changes
[REBOL] [REBOL.org] Recent changes This is an automatic email from REBOL.org, the REBOL Script Library to notify you of recent changes to the Library. ===changes=== fileserver.r --change: updated script --title: Obscure File Server --owners: piotrgapinsk --author: pijoter --purpose: Share files over HTTP protocol +NLS --url: http://www.rebol.org/view-script.r?script=fileserver.r ftp-tool.r --change: new script --change: updated script --title: FTP Tool --owners: notchent --author: Nick --purpose: Enter your username, password, and FTP URL in the text field, and hit [ENTER]. BE SURE TO END YOUR FTP URL PATH WITH /. Click folders to browse through any dir on your web server. Click text files to open, edit and save changes back to the server. Click [...] --url: http://www.rebol.org/view-script.r?script=ftp-tool.r ===additional information=== new and updated scripts: http://www.rebol.org/st-topic-details.r?tag=//recent ===end=== --The Library People --31-Aug-2009 -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] Determining the length of a sound before playing it
REBOL/View Pro will play a sound. I have done that. Does anyone know if it is possible for a REBOL program to determine the length of a sound before playing it? Last night my spouse was struggling with Power Point to make a slide show with background music. The reason it was such a struggle seemed to be that it was hard to find the settings to make that happen, and when we found some settings that APPEARED to be the ones that SHOULD make that happen, it still did NOT happen. Defeated by complexity. That got me thinking that it should be logically simple to make a program that does only one thing, namely, display pictures with background music. Determine length of music. Obtain list of all pictures in a directory. Determine number of pictures. Divide length of music by number of pictures, giving duration. Start sound playing. For each picture, Display the picture Wait for the duration. Quit (Details are left as an exercise, as they say.) All those steps I have seen done in various sample REBOL scripts, except for the first one of finding out how long a sound will play. Thank you. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) steven.wh...@ci.bloomington.mn.us -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] Re: Determining the length of a sound before playing it
Hi Steven, the lenght of the sound is: (length in bytes) / (sampling frequency) / (sampling resolution in bytes) / (number of channels) = length of the sound This is for RAW sounds. For WAV/AIFF add header size, for MP3 you have to use some MP3 analyzer (I think someone did it in REBOL). So for example a stereo sound that is 176400 bytes long and is sampled at 44100kHz in 16bit it is: 176400 / 44100 / 2 / 2 = 1 second. Hope that helps, Bolek On Mon, Aug 31, 2009 at 7:23 PM, Steven White swh...@ci.bloomington.mn.uswrote: REBOL/View Pro will play a sound. I have done that. Does anyone know if it is possible for a REBOL program to determine the length of a sound before playing it? Last night my spouse was struggling with Power Point to make a slide show with background music. The reason it was such a struggle seemed to be that it was hard to find the settings to make that happen, and when we found some settings that APPEARED to be the ones that SHOULD make that happen, it still did NOT happen. Defeated by complexity. That got me thinking that it should be logically simple to make a program that does only one thing, namely, display pictures with background music. Determine length of music. Obtain list of all pictures in a directory. Determine number of pictures. Divide length of music by number of pictures, giving duration. Start sound playing. For each picture, Display the picture Wait for the duration. Quit (Details are left as an exercise, as they say.) All those steps I have seen done in various sample REBOL scripts, except for the first one of finding out how long a sound will play. Thank you. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) steven.wh...@ci.bloomington.mn.us -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject. -- *** Boleslav BÅezovský http://bolek.techno.cz == http://www.myspace.com/sonyrollinz *** -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] A new challenge for REBOL apps
Here an excerpt form the ACM news. *A New Language for Phone Networks* * Technology Review (08/31/09) Lemos, Robert* University of Cambridge professor Jon Crowcroft is leading a research effort to change how cell phones send information by creating peer-to-peer mobile device networks, or pocket-switched networks, that would enable cell phone users to send information directly to each other. This type of ad hoc network could allow victims of a natural disaster to continue to communicate even if cell towers are knocked out, for example. Crowcroft hopes that people will develop a wide range of applications should the technology take off. The University of Cambridge researchers recently unveiled the D3N programming language, which is designed to capitalize on the inherent characteristics and simplicity of pocket-switched networks, including asynchronous communications and simple-to-express queries. The declarative language allows programmers to focus on the application logic instead of the algorithms that are unique to pocket-switched networks. One of the goals is to keep it very simple so that people can make very complex, very interesting applications easily, Crowcroft says. D3N is based on Microsoft's F# project, and adds concurrency control to handle the ad hoc nature of sending data between a variable number of asynchronous nodes. Unlike other cell phone ad hoc networking languages, D3N includes knowledge on how pocket-switched networks operate, making programming for such networks simpler, and making it easier to test applications written in D3N, Crowcroft says. Would like to see how REBOL would compare with other tools for this kind of work - when R3 it will be ready. But in my head even R2 could be a competitor for the job. I should be better however to look at the specs of the new language - just to see if PArse could be used as is or not ? You can read more at : www (dot technologyreview (dot) com - communications -23330 - page1 - (Simply replace the - by slash) or even simpler : google for D3N ... Not much as been revealed yet but ... -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] Another potential app for REBOL
Again the ACM sent interesting news this day. *It's Semantic--Easier Solution to Annotate and Search Images* * ICT Results (08/27/09)* The European Union-funded IMAGINATION project has developed ImageNotion, software for organizing, searching, and navigating archives of digital images. ImageNotion's tools for semantic image annotation and search link the content of photos and concepts to make the images understandable to computers. The developers say that ImageNotion's system eliminates much of the complexity of developing an ontology for semantic searches by combining annotation with a variety of other technologies, including text mining, object recognition, and facial detection and identification. When you mention ontologies to most people they just switch off, says IMAGINATION coordinator Gabor Nagypal. Because of that, our goal has been to make the technology transparent and intuitive to use. Nagypal says the face-detection system, which identifies the presence of people in a photograph, has an accuracy rate of about 80 percent, and the face-recognition system, which attempts to identify people in a photograph, produces consistent results after about five to 10 images of a person have been tagged. ImageNotion also simplifies navigating between photographs. For example, clicking on a person's face in one photograph will automatically take the user to other photographs of that person. Back in 1997, when I left my work for illness I was already interested in the second generation Hyperwave server, an Apache first gen Web server replacement, with its bi-directional links. The idea was to extend it to support some kind of tool like the one above. Did someone ever used this Hyperwave server, near Austria ? Can you send some feedback on its use for real work ? May be an upgrade for Cheyenne could go in this direction some day ? -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
[REBOL] Re: VID Extension Kit
Hi Henrik, Thanks for all the information. Gerard 2009/8/30 Henrik Mikael Kristensen henri...@gmail.com ...it could be a rich add-on towards a complete intelligent IDE and/or dev framework. It's the most interesting thing I saw since RebGui and the Vive-REBOL project to help better support and then promote the use of REBOL itself f= or more =A0advanced GUI dev... The four primary things the formatter does is manipulate the text, the highlight, the caret and the data part of the face. I hadn't thought of using formatters like that, but it's possible. To write your own, you need to visit the vid-ctx-format.r file in the source (link below). I'll keep you in touch when I will be ready to work with this concept. Thanks. I can help you to test it and report (in the format you want - li= ke in codecure for example) what has to be reworked if you need to. I've uploaded the whole thing to code.google.com, where there is a bug tracker. Like this release, it's quick and dirty, so I'll just be using that for now instead of Curecode. The project can be found here: http://code.google.com/p/vid-ext-kit/ I saw the newest posts in the thread about bad performance of code.google and Curecode So my delay is welcome - I'll wait a bit...more ! However, before downloading any code for commercial use, I need to revisit the licenses. Some files are grabbed from Carl's source directly and the license may not fit. OK I agree. And for the moment I don't plan to work on any commercial product anyway. But this may be of interest to other developers. I have some bugs listed, but it would be simpler for me, if you just start reporting. Then I can weed out what I already know in the bug tracker at the click of a button, rather than communicating I already know that back and forth in mails. :-) Yes I know about this process ... and everything else is welcome ! When you are ready let me know. Ready now! I'll only be able to start in a few days from now- may be less than a week. Some VERY urgent FULL-TIME work to finish before. Delivery of my first magazine production, as a new editor, arrives shortly... But it has nothing to do with computers or programming. It's entirely dedicated to ice-rinks managers. WE try to save the planet, eliminating the freon R-22 and other HCFC nocive gas !!! -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.