Larry Coleman | 13 Jan 16:08
Picon
Gravatar

File Chooser Dialog

Has any work been done on a file selector dialog in the GUI?

In the alternative, are there any bindings to GTK+ or wxWidgets?

Thanks,

Larry Coleman

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
L N | 21 Dec 00:22
Picon

wave calculations

Some interesting ideas and calculations here ...

http://www.glafreniere.com/matter.htm

Looks like the authors did the calculations in FreeBasic.

http://www.glafreniere.com/sa_electron.htm

Seems like any numerical calculation would be nicely done in Factor, due to the mathematical nature of stack-based-languages.

One thought that came to mind while reading the website was, "These calculations should be done in Factor, rather than FreeBasic."

 - Leonard

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
missingfaktor | 20 Dec 21:41
Picon
Gravatar

Short-circuiting boolean operators?

I was unable to find short-circuiting boolean operators in Factor's standard vocabs. Does it not have them? If not, why not? If yes, where are they?

--
Cheers,

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
missingfaktor | 19 Dec 14:53
Picon
Gravatar

What does "fried" in "fried quotations" mean?

Or, why are fried quotations called what they are called?

--
Cheers,

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
missingfaktor | 19 Dec 14:36
Picon
Gravatar

Attempting to solve Project Euler problem 2

Text of the problem: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... . By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

My solution: 

: million ( n -- n' ) 1000000 * ;
: fibonacci ( n -- seq ) 0 1 rot '[ dup _ < ] [ swap over + dup ] produce 2nip ; ! Where has "tuck" gone?!
4 million fibonacci 
[ even? ] filter sum

Any comments on how it can be simplified or made more idiomatic?

--
Cheers,

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
missingfaktor | 18 Dec 21:44
Picon
Gravatar

A word that lets me ommit stack comments

Is there a parsing word that lets you define words without a stack effect declaration?
--
Cheers,

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
David Brown | 12 Dec 20:45

http-get with https seems overly strict.

USING: kernel http.client urls.secure ;
IN: test-vocab

"https://ipv4.tunnelbroker.net" http-get

throws a Common name verification failed exception with

   expected: "ipv4.tunnelbroker.net"
   got:      "tunnelbroker.net"

Firefox, openssl s_client, gnutls-cli all seem happy with this
situation.  I wonder if something about ssl CN validation has changed.

Is there any way to bypass this check (even possibly for this specific
case) short of just editing openssl.factor and changing the test?

If anyone has pointers on what the rules are supposed to be, I could
also take a shot at updating the code.

Below is the output of gnutls-cli, which also claims that this should
match:

Thanks,
David

Resolving 'ipv4.tunnelbroker.net'...
Connecting to '64.62.200.2:443'...
- Ephemeral Diffie-Hellman parameters
  - Using prime: 1024 bits
  - Secret key: 1021 bits
  - Peer's public key: 1024 bits
- Certificate type: X.509
  - Got a certificate list of 4 certificates.
  - Certificate[0] info:
   - subject `O=tunnelbroker.net,OU=Domain Control Validated,CN=tunnelbroker.net', issuer
`C=US,ST=Arizona,L=Scottsdale,O=Starfield Technologies\,
Inc.,OU=http://certificates.starfieldtech.com/repository,CN=Starfield Secure Certification
Authority,serialNumber=10688435', RSA key 2048 bits, signed using RSA-SHA1, activated `2011-11-05
00:44:14 UTC', expires `2016-11-04 21:10:42 UTC', SHA-1 fingerprint `996169ba982488f5212f03f3ae91f628ee21481a'
  - Certificate[1] info:
   - subject `C=US,ST=Arizona,L=Scottsdale,O=Starfield Technologies\,
Inc.,OU=http://certificates.starfieldtech.com/repository,CN=Starfield Secure Certification
Authority,serialNumber=10688435', issuer `C=US,O=Starfield Technologies\, Inc.,OU=Starfield
Class 2 Certification Authority', RSA key 2048 bits, signed using RSA-SHA1, activated `2006-11-16
01:15:40 UTC', expires `2026-11-16 01:15:40 UTC', SHA-1 fingerprint `7e1874a98faa5d6d2f506a8920ff22fbd16652d9'
  - Certificate[2] info:
   - subject `C=US,O=Starfield Technologies\, Inc.,OU=Starfield Class 2 Certification Authority',
issuer `L=ValiCert Validation Network,O=ValiCert\, Inc.,OU=ValiCert Class 2 Policy Validation
Authority,CN=http://www.valicert.com/,EMAIL=info-No2Jvm4j4PRWk0Htik3J/w <at> public.gmane.org',
RSA key 2048 bits, signed using RSA-SHA1, activated `2004-06-29 17:39:16 UTC', expires `2024-06-29
17:39:16 UTC', SHA-1 fingerprint `363e4734f757bdeb89868efe94907774a327695e'
  - Certificate[3] info:
   - subject `L=ValiCert Validation Network,O=ValiCert\, Inc.,OU=ValiCert Class 2 Policy Validation
Authority,CN=http://www.valicert.com/,EMAIL=info-No2Jvm4j4PRWk0Htik3J/w <at> public.gmane.org',
issuer `L=ValiCert Validation Network,O=ValiCert\, Inc.,OU=ValiCert Class 2 Policy Validation
Authority,CN=http://www.valicert.com/,EMAIL=info-No2Jvm4j4PRWk0Htik3J/w <at> public.gmane.org',
RSA key 1024 bits, signed using RSA-SHA1, activated `1999-06-26 00:19:54 UTC', expires `2019-06-26
00:19:54 UTC', SHA-1 fingerprint `317a2ad07f2b335ef5a1c34e4b57e8b7d8f1fca6'
- The hostname in the certificate matches 'ipv4.tunnelbroker.net'.
- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS1.0
- Key Exchange: DHE-RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
- Handshake was completed

- Simple Client Mode:

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
CW Alston | 11 Dec 09:13
Picon

ternary-search-tries confusion

Greetings, Factorials - 

I've been working through mrjbq7's re-factor utilities, particularly a pet interest of mine, ternary search trees. 
Thrilled to see an implementation in Factor, but I can't get the code to compile. Here's the error I get with 
USE: ternary-search-trees in the listener:
----
resource:work/ternary-search-trees/ternary-search-trees.factor

 9: <<
12: >>
      ^
The word define-maybe cannot be executed because it failed to compile

The input quotations to “if” don't match their expected effects
Input                                                            Expected       Got
[ ~quotation~ ~quotation~ make define-inline ] (( ..a -- ..b )) (( x x -- ))
[ 2drop ]                                                        (( ..a -- ..b )) (( x -- ))
----

'define-maybe' is in the required file, accessors.maybe -- I planted all code in the 'work' directory of factor. 
The untouched code there reads:
-----
USING: accessors arrays kernel make quotations sequences
slots words ;

IN: accessors.maybe

: maybe-word ( name -- word )
    "maybe-" prepend "accessors" create ;

: define-maybe ( name -- )
    dup maybe-word dup deferred? [
        [
            over setter-word \ drop 2array >quotation
            [ keep ] curry , \ compose ,
            swap reader-word [ dup ] swap 1quotation compose
            [ [ nip ] ] compose , \ dip , \ if* ,
        ] [ ] make ( object quot: ( -- x ) -- value ) define-inline
    ] [ 2drop ] if ;

: define-maybe-accessors ( class -- )
    "slots" word-prop [
        dup read-only>> [ drop ] [ name>> define-maybe ] if
    ] each ;
-----

I just can't untangle the stack effects in 'define-maybe' to see where the stack is disrupted. Any insights from folks
better initiated? Note that:
---
 9: <<
12: >>
      ^
---
in the error output (lines 9-12) points to:
---
<<
TUPLE: tree-node ch value exists lt eq gt ;
tree-node define-maybe-accessors
>>
---
in file 'ternary-search-trees.factor' .

Thanks, all, and keep up the good work,
CW Alston
--
~ Memento Amori
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
L N | 6 Dec 23:32
Picon

java GUI

Let's say you have an application consisting of business logic and a database.

Let's say you use Factor for the business logic and database interaction.

Let's say also that you want a Java-based GUI as a front-end to this system.

Wondering if anyone has any insights as to how this could be achieved.

 - Leonard




------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
missingfaktor | 6 Dec 18:46
Picon
Gravatar

A word similar to Haskell's 'iterate'

Does Factor have a word similar to Haskell's 'iterate' function?

--
Cheers,

When you stand for what you believe in, you can change the world.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
L N | 5 Dec 20:20
Picon

listener color theme

Anyone know how to change the color theme of the listener, in linux?

 - Leonard

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk

Gmane