Chris Double | 1 Mar 05:24 2009
Picon

Farkup and nofollow

While adding the ability to enter video descriptions in tinyvid I
noticed what I think is a bug in Farkup. The t:farkup component has an
option to make sure links have the 'nofollow' attribute. When the
farkup is rendered this comes out as:

<a href="http://tinyvid.tv" nofollow="true">TinyVid!</a>

The 'nofollow' syntax appears to be wrong. It should be:

<a href="http://tinyvid.tv" rel="nofollow">TinyVid!</a>

See here for details:

http://en.wikipedia.org/wiki/Nofollow

Chris.
--

-- 
http://www.bluishcoder.co.nz

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
Daniel Ehrenberg | 1 Mar 18:58 2009
Picon

Re: Bug List Dump

Wow, that's really awesome! Tell me if you have any issues with
inverse, or think it could easily be made more general in some way.

Dan

On Sat, Feb 28, 2009 at 3:08 PM, Jesse Rusak <factor@...> wrote:
> I also made a new
> version of <filter> which uses the inverse vocab to provide bi-
> directional editing of a model. (I will hopefully contribute some of
> this once it's ready.)
>
> Hope that helps!
> - Jesse

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
Chris Double | 2 Mar 03:13 2009
Picon

Bug in Furnace header handling

There appears to be a bug in the way Furnace is handling headers. I've
attached a simple webapp that demonstrates it. Put this app in a
extra/webapps/badapp directory. Then do:

USE: webapps.badapp
<badapp> main-responder set-global
[ 8888 httpd ] in-thread

>From a shell:

wget -S http://localhost:8888/bad
...
wget -S http://localhost:8888/good

Compare the contents of the Content-Disposition header shown by wget.
In the first case it's a large string of XML. This is wrong. In the
second case it's the text we specified. It appears to be headers that
have a quotation mark in it (").

Here are the two actions to compare:

: do-bad-action ( --  request )
  "<html></html>" "text/html" <content>
  "attachment; filename=\"foo\"" "Content-Disposition" set-header
  ;

: <bad-action> ( -- action )
  <action>
    [ do-bad-action ] >>display ;

(Continue reading)

caesarhu | 2 Mar 06:37 2009
Picon

Taiwan Big5 encoding

Hi, all

I've been working on Taiwan Big5 encoding, here is result

http://paste.factorcode.org/paste?id=482

Encode and decode work just fine,

Can I commit io.encodings.Big5 ?

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
胡培舜 | 2 Mar 06:48 2009
Picon

Taiwan Big5 encoding

Hi, all

  I have working on Taiwan Big5 encoding, It can work normally now,
here is result

http://paste.factorcode.org/paste?id=482

Can I commit to io.encodings.Big5 ?

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
Samuel Tardieu | 2 Mar 19:21 2009
Picon

Pull request: primes factoring optimization, and continued fractions

The following changes since commit 5aba91a0c57130e75628ec71510635f23780f1c5:
  Daniel Ehrenberg (1):
        Merge branch 'master' of git://factorcode.org/git/factor

are available in the git repository at:

  git://git.rfc1149.net/factor.git for-slava

Samuel Tardieu (2):
      When a factor has been found, check if the remainder is a prime number
      Continued fractions

 basis/math/primes/factors/factors-tests.factor     |    1 +
 basis/math/primes/factors/factors.factor           |   25 +++++++++++++------
 extra/math/continued-fractions/authors.txt         |    1 +
 .../continued-fractions-docs.factor                |   14 +++++++++++
 .../continued-fractions-tests.factor               |   21 ++++++++++++++++
 .../continued-fractions/continued-fractions.factor |   24 +++++++++++++++++++
 extra/math/continued-fractions/summary.txt         |    1 +
 7 files changed, 79 insertions(+), 8 deletions(-)
 create mode 100644 extra/math/continued-fractions/authors.txt
 create mode 100644 extra/math/continued-fractions/continued-fractions-docs.factor
 create mode 100644 extra/math/continued-fractions/continued-fractions-tests.factor
 create mode 100644 extra/math/continued-fractions/continued-fractions.factor
 create mode 100644 extra/math/continued-fractions/summary.txt

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
Daniel Ehrenberg | 2 Mar 17:39 2009
Picon

Re: Taiwan Big5 encoding

That's great, Caesar. There's a bit of code duplication with the
earlier io.encodings.korean, and this also repeats with existing code,
so I'll figure out how to factor this out properly. Am I correct in
reading from your code that Big5 is an EUC? If so, it might be better
if we had common code for handling EUCs, and then used this for Big5.
One problem with this code is that it does not handle end of file
gracefully in the middle of a multibyte character. You might have
based the code off an earlier version of io.encodings.japanese, which
has the same problem. Jong-Hyouk Yun (ageldama@...), on this
mailing list, is working on other EUCs; you should talk to him about
his plans for this all.

Great to have another contributor!

Dan

On Sun, Mar 1, 2009 at 11:48 PM, 胡培舜 <hupeishun@...> wrote:
> Hi, all
>
>   I have working on Taiwan Big5 encoding, It can work normally now,
> here is result
>
> http://paste.factorcode.org/paste?id=482
>
> Can I commit to io.encodings.Big5 ?
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@...
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
Jong-Hyouk Yun | 3 Mar 02:34 2009
Picon

Re: Taiwan Big5 encoding

Hi, great works!

I'll pull your code and look at it. :-)

it's glad to Taiwanese supported in Factor

2009/3/3 Daniel Ehrenberg <microdan <at> gmail.com>:
> That's great, Caesar. There's a bit of code duplication with the
> earlier io.encodings.korean, and this also repeats with existing code,
> so I'll figure out how to factor this out properly. Am I correct in
> reading from your code that Big5 is an EUC? If so, it might be better
> if we had common code for handling EUCs, and then used this for Big5.
> One problem with this code is that it does not handle end of file
> gracefully in the middle of a multibyte character. You might have
> based the code off an earlier version of io.encodings.japanese, which
> has the same problem. Jong-Hyouk Yun (ageldama <at> gmail.com), on this
> mailing list, is working on other EUCs; you should talk to him about
> his plans for this all.
>
> Great to have another contributor!
>
> Dan
>
> On Sun, Mar 1, 2009 at 11:48 PM, 胡培舜 <hupeishun <at> gmail.com> wrote:
>> Hi, all
>>
>>   I have working on Taiwan Big5 encoding, It can work normally now,
>> here is result
>>
>> http://paste.factorcode.org/paste?id=482
>>
>> Can I commit to io.encodings.Big5 ?
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> -Strategies to boost innovation and cut costs with open source participation
>> -Receive a $600 discount off the registration fee with the source code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Factor-talk mailing list
> Factor-talk <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Factor-talk mailing list
Factor-talk <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk
Phil Dawes | 3 Mar 10:44 2009
Picon

with-mapped-≤ctype>-file doc error

Hi Factor list,

I noticed a doc error with the new mmapped c arrays: The help docs for 
e.g. 'with-mapped-uint-file' say that the word takes a length parameter, 
but it doesn't.

Unless I'm missing something the error is in io.mmap.functor

: with-mapped-A-file ( path length quot -- )
     '[ <mapped-A>  <at>  ] with-mapped-file ; inline

whereas it should be

: with-mapped-A-file ( path quot -- )
     '[ <mapped-A>  <at>  ] with-mapped-file ; inline

since with-mapped-file just takes 2 parameters.

Cheers,

Phil

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
Sascha Matzke | 3 Mar 14:58 2009

MongoDB Factor driver

Hi,

as an exercise in Factor (my new favorite language :-) ) I wrote a
driver for the MongoDB (http://www.mongodb.org) database.

The code is available via GitHub
(https://github.com/x6j8x/mongo-factor-driver/tree;
git://github.com/x6j8x/mongo-factor-driver.git). Just clone the
repository and add the directory to your ~/.factor-roots file.

Here's a short example of how to use the driver:

USE: mongodb.driver

! 1. initialize mdb
! database host port <mdb>
"db" "127.0.0.1" 27017 <mdb>

! 2. create an index
! <mdb> [ collection name spec ensure-index ] with-db
dup [ "test" "idIdx" H{ { "_id" 1 } } ensure-index ] with-db

! 3. insert an object
! <mdb> [ collection object save ] with-db
dup [ "test" H{ { "_id" "12345" } { "name" "myobject" } } save ] with-db

! 4. find the object
! <mdb> [ collection example <query> ..options.. find ] with-db
dup [ "test" H{ { "_id" "12345" } } <query> find ] with-db

! a find with options would look like this

dup [ "test" H{ { "name" "myobject" } } <query> 10 limit [ "_id" asc
"name" desc ] sort find ] with-db

Unfortunately the code isn't documented ( yet ).

Sascha
--
Through the darkness of future past
the magician longs to see
One chants out between two worlds
Fire walk with me.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

Gmane