r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!CureCode] web-based bugtracking tool

Steeve
22-Sep-2009
[762x2]
you tested with R2 ?
would you an R3 version better ?
Dockimbel
22-Sep-2009
[764]
R2 only. I can't use R3 for my projects.
Steeve
22-Sep-2009
[765x3]
New version, i build images from texts, it should work on linux as 
well.
And you can change the font used as well.
pie-chart: func [
    con [block!] ;-- block of overriden constants
    cmd [block!] ;-- commands to draw the pie-chart 
    /local push angle middle bottom pane bout sens
    size back-color start line text font* font
][

    ;-- default constants (overridable by con block)
    size: 300x200       ;--size of the box
    back-color: white   ;-- back color of the pie
	font: make face/font [color: gray size: 12]

    start: -90          	;-- starting angle of the pie chart (in degrees)
    line: [pen gray line]   ;-- draw block used for lines
    ;--
    do bind con 'size
    font/offset: 0x0
    pane: make block! 30
    push: func [data][append pane compose data]
    center: size / 2    ; -- center of the pie chart
    radius: to-pair divide min size/x size/y 2.5
    sens: true
    bottom: 0 
   	font*: font
    foreach [title color percent] cmd [
        if issue? color [color: to-tuple debase/base color 16]

        push [pen back-color fill-pen (color) arc center radius (start) (angle: 
        round/ceiling percent * 360) closed]
        middle: angle / 2 + start
        push line
        push [

            (center + as-pair radius/x * cosine middle radius/x * sine middle)

            (bout: center + as-pair radius/x + 3 * cosine middle radius/x + 3 
            * sine middle)
        ]
        text: to-image make blank-face [

         size: size-text make face [size: 5000x5000 text: title font: font*]
        	text: title
        	font: font*
        	color: none
        ]
        either 0 <= cosine middle [
            unless sens [bottom: 0 sens: true]
            push reduce [
                bout: as-pair center/x + radius/x bout/y
                bout: as-pair bout/x + 8 max bout/y bottom
                bout: as-pair bout/x + 3 bout/y
            ]
            bottom: bout/y + text/size/y
        ][
            if sens [bottom: size/y sens: false]
            push reduce [
                bout: as-pair center/x - radius/x bout/y
                bout: as-pair bout/x - 8 min bout/y bottom
                bout: as-pair bout/x - 3 bout/y
            ]
            bottom: bout/y - text/size/y
            bout: as-pair bout/x - text/size/x bout/y 
        ]

        push [image (text) (bout + as-pair 1 text/size/y / -2 - 0.5 ) black 
        ]
        start: start + angle
    ] 
    pane
]
pie: pie-chart [
    size: 300x200
    start: -80
    font: make font [size: 10]
][
    "block" none 0
    "crash" #ff3030 .04
    "major" #ff6060 .09
    "minor" #ffb850 .44
    "tweak" #ffd850 .03
    "text" #ffd850 .02
    "trivial" #ffd8a0 .31
    "not a bug" pewter .06
]

view layout [
    box 300x200 white effect [draw pie]
]
Dockimbel
22-Sep-2009
[768x2]
It works on Linux. Pie, texts, lines, everything is there.
You should make a library with that code and post it online somewhere 
with short doc/examples (could be rebol.org e.g.).
BrianH
27-Oct-2009
[770x2]
Getting garbage at the top of the page on every page of CureCode 
- more with each view.
This is on http://curecode.org/rebol3/
Graham
27-Oct-2009
[772x4]
It's caused by a missing copy ....
Have to reset Cheyenne ...
The garbage is gzipped data ....
I saw this on my own server a few days ago ...
Maxim
28-Oct-2009
[776]
wow, its getting pretty insane!
Henrik
28-Oct-2009
[777]
I've seen this a lot outside of Curecode. Never figured out what 
it is.
Dockimbel
28-Oct-2009
[778x2]
Looks like Cheyenne is trying to create a new form of ASCII art :-). 
First time I see that on Cheyenne. Will reset the server at once.
Worker processes reset, seems back to normal now.
Maxim
28-Oct-2009
[780x2]
seems there is a copy "" missing somewhere... I could see the last 
page viewed on cheyenne.org just above the curecode page last time 
I visited it.
(or a clear missing)
Dockimbel
28-Oct-2009
[782]
I'm wondering why this garbage is showing up now instead of a few 
weeks ago when I've upgraded the server.
Graham
28-Oct-2009
[783x4]
Henrik ... no idea when you've seen this issue?
It only occurs to me after I've been making changes ... not in the 
normal course of events.
hasn't happened since I reported it in March when I was setting the 
response buffer.
Until the other day.
Dockimbel
28-Oct-2009
[787]
After a quick code and trace.log files inspection : there's no missing 
COPY, it seems related to a complex chain of events preventing the 
RSP output buffer to be CLEARed before re-use. I found a potential 
flaw in response/include, if the included script raises an error 
in a way that's not  catchable by the RSP execution system, it can 
prevent the output buffer from being reset. In trace.log file, I've 
found an error at 00:53 AM from a rejected SMTP connection using 
SEND function (not the new builtin MTA) that could be the trigger 
for this issue.
Graham
28-Oct-2009
[788]
Probably why I only see when debugging faulty rsp code.
Henrik
28-Oct-2009
[789]
Graham, only during development. Cure was a restart of the server. 
From Doc's post, it seems he knows what to do about it.
Dockimbel
29-Oct-2009
[790x6]
CureCode service will be interrupted during a few seconds now in 
order to upgrade the server.
Upgrading also PHP to v5.2.11 on the same server...takes a bit more 
time.
It's amazing how much time it takes to compile PHP...
The number of modules included on the default config is insane.
Stopping Cheyenne...
Restarted. Everything seems ok.
BrianH
3-Nov-2009
[796x2]
Doc, on the login page, could you add id attributes to the login 
and pass tags? I'm guessing that is why password saving isn't working 
in Chrome. The user name is being remembered by forrm completion 
(which is a separate function in Chrome), but perhaps password saving 
can't find the user name and password without having an id to look 
for. Setting the id for tags the same thing as their names might 
solve that problem.
I was comparing source between CureCode and other sites that work 
with Chrome. The missing id attribute is the only difference seen.
Pekr
3-Nov-2009
[798x2]
we are over 1000 tickets. Looks good :-)
btw - still waiting for small enhancement, where Changelog section 
would have preselected first item in the list :-)
Dockimbel
3-Nov-2009
[800x3]
Pekr, I don't understand your request, the first item is already 
preselected.
BrianH: I'm adding IDs to login page's fields.
Done.
Pekr
3-Nov-2009
[803]
Doc - it is not. Just log-off (start new browser), login back, and 
go to Change-log section. You have to select REBOL 3.0 from drop-down 
menu ...
Dockimbel
3-Nov-2009
[804x2]
It's ok here, when I log again with a new fresh browser session, 
the project selector is showing REBOL 3.0 as soon as I'm logged. 
Did you used the "Set current..." button in Profil menu?
If you've never used it, you'll get the default "All Projects" in 
the selector.
BrianH
3-Nov-2009
[806]
Darn, it didn't work again. I'm going to try some more stuff.
Dockimbel
24-Nov-2009
[807x2]
CureCode server will be stopped from now during a couple of minutes 
for maintenance.
Maintenance done. Server up again.
Robert
25-Nov-2009
[809]
I'm thinking about using curecode for a project of mine. Can I install 
it on my server? Can I create a project on curecodes site?
Henrik
25-Nov-2009
[810]
Robert, I use curecode on my Linode. It took about a day to set up 
due to numerous little things, but I can probably help.
Robert
25-Nov-2009
[811]
1 day... wow. I just thought: Install RSP, call init page, fill-in 
some informaiton. Done. Ok... will think about it.