Search the web
Sign In
New User? Sign Up
ClearSilver
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 370 - 399 of 1347   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
370
While trying to write some CS code to generate pretty dates (e.g. 11 -> "November") we ran into the following, seemingly bizarre CS parser crash: The following...
Joseph Smarr
jsmarr
Offline Send Email
Nov 4, 2004
1:43 am
371
hmm. Yes, I left it calling strtol with a 0 base to allow for hex, but octal seems like a bad idea. Not sure what the better fix is: 1) Still allow hex by...
Brandon Long
blong42
Offline Send Email
Nov 4, 2004
2:51 am
372
My vote would be #2 but I'd be happy with #1 as well. I think even with better documentation, this bug would still have really confused me (unless the cs parse...
Joseph Smarr
jsmarr
Offline Send Email
Nov 4, 2004
3:26 am
373
The number is likely being interpreted as Octal since a prefix 0 is a common lead-in for octal notation. As such, 08 and 09 are not legal numbers but 010 is...
Dan Janowski
djjanowski
Offline Send Email
Nov 4, 2004
3:33 am
374
I vote for #3 with eventually improving the error message. Having hex and octal available is useful and eventually necessary for someone. Is there a way to ask...
Dan Janowski
djjanowski
Offline Send Email
Nov 4, 2004
6:39 am
375
... What about having a base function? base("ABCD", 16) or base("777", 8) return the decimal equivalent. That should solve anyone's need for the functionality...
Chris Green
cmg@...
Send Email
Nov 5, 2004
2:36 am
376
I found a problem with this piece of code, and I wonder if this is known: HDF *hdf = NULL; hdf_init(&hdf); for (int i = 0; i < 100000; i++) { char buffer[64]; ...
Haiping Zhao
hz0451
Offline Send Email
Nov 5, 2004
7:55 am
377
... I agree. Failing this, however, I'd favour #2 (Force it to base 10 and forget hex); the code that populates the HDF can always convert hex to decimal...
Homme Zwaagstra
hrz@...
Send Email
Nov 5, 2004
9:57 am
378
Nope, can't say that I've put 1 million nodes in an hdf tree before. Attached is a partial fix (it'll fix the case of lots of nodes in this dimension (next),...
Brandon Long
blong42
Offline Send Email
Nov 5, 2004
10:02 am
379
What language are you guys all programming in that doesn't have hex and octal literals? -R On Fri, 5 Nov 2004 09:28:03 +0000, Homme Zwaagstra...
Rob Wheeler
rob_wheeler
Offline Send Email
Nov 5, 2004
3:06 pm
380
... I'm using PHP, which does support hex and octal literals. You're right - I hadn't thought it through properly; base conversions should be taken care of in...
Homme Zwaagstra
hrz@...
Send Email
Nov 5, 2004
5:17 pm
381
Thank you so much for your quick response! I've also noticed memory usage is a bit higher than I expected. Like the test program here, it takes 100MB. Assuming...
Haiping Zhao
hz0451
Offline Send Email
Nov 5, 2004
5:34 pm
382
Just curious, what application requires 200,000 nodes in memory for applying to a template? - Chris...
Chris Trimble
ctrimble
Offline Send Email
Nov 5, 2004
7:06 pm
383
HDF was not designed to be a low overhead data structure, its actually pretty expensive. If you go over 10 nodes at a particular level, we actually create a...
Brandon Long
blong42
Offline Send Email
Nov 5, 2004
10:35 pm
384
Has anybody used ClearSilver with utf-8 encoded strings? If so, have you used it on Windows? I am trying to use it on an internationalized portable...
Alan Morse
acmorse
Offline Send Email
Nov 9, 2004
6:34 pm
385
I want our CGIs to be able to distinguish between cs_parse_file errors where the cs file was simply not found and cases where it was found but there was a...
Joseph Smarr
jsmarr
Offline Send Email
Nov 9, 2004
7:33 pm
386
I've used UTF8 almost exclusively, but haven't done anything on windows. Brandon ... -- "A man said to the universe, 'Sir, I exist.' 'However,' replied the...
Brandon Long
blong42
Offline Send Email
Nov 9, 2004
10:12 pm
387
ClearSilver is complaining to me that the html_escape filter is an "Unknown function". Can somebody give me a sanity check? Here's the problem code, in Python:...
Erik Rose
grincheroo
Offline Send Email
Nov 9, 2004
10:25 pm
388
We should really change this, but currently html_escape and other functions are only available in a CGI context, in python at least. So, you'd have to do...
Brandon Long
blong42
Offline Send Email
Nov 10, 2004
12:02 am
389
Yes, calling nerr_init() will assign them all values by calling nerr_register on each of them. Brandon ... -- " ... it's [Titanic] got the highest body-count...
Brandon Long
blong42
Offline Send Email
Nov 10, 2004
12:03 am
390
Ah, that clears it right up. Thanks! Erik...
Erik Rose
grincheroo
Offline Send Email
Nov 10, 2004
4:14 pm
391
Ah, I found the problem (FYI for fellow CS developers): The innards of hdf_read_file were indeed returning NERR_NOT_FOUND (error code 3) but when that gets...
Joseph Smarr
jsmarr
Offline Send Email
Nov 10, 2004
7:14 pm
392
There are functions which do that for you: nerr_handle and nerr_match... and lo, they are no comments for them. Oops. Basically, nerr_match does exactly what...
Brandon Long
blong42
Offline Send Email
Nov 11, 2004
12:22 am
393
Hi, Is there any support in the ClearSilver C API for determining whether an HDF node is a child of another node? The reason I ask is that hdf_copy() crashes...
Homme Zwaagstra
hrz@...
Send Email
Nov 11, 2004
11:05 am
394
Nope. Its probably cheaper to find if a node is a parent of another node... except it doesn't currently maintain a parent link. hmm. Brandon ... -- "......
Brandon Long
blong42
Offline Send Email
Nov 11, 2004
11:11 am
395
I've run across the following problem with clearsilver on several occasions: I have a macros.cs file that defines some macro used by various other pages. Many...
Joseph Smarr
jsmarr
Offline Send Email
Nov 11, 2004
10:13 pm
396
The -c option to cc should be part of the suffix rules, not CFLAGS. diff -Naur clearsilver-0.9.12.orig/rules.mk.in clearsilver-0.9.12/rules.mk.in ... +++...
Doug Porter
dsp@...
Send Email
Nov 16, 2004
10:55 pm
397
Hi, Building clearsilver failed at the 'make install' stage. This was due to the fact that the Makefile ran the command 'scripts/document.py' and the shebang...
Homme Zwaagstra
hrz@...
Send Email
Nov 16, 2004
10:55 pm
398
Hello, Whilst developing a ClearSilver extension for PHP I've found a couple of places in the C API where I thought some enhancements would prove useful: 1. It...
Homme Zwaagstra
hrz@...
Send Email
Nov 16, 2004
10:55 pm
399
Sure, that sounds fine. Brandon ... -- "Power Ennobles. Absolute power ennobles absolutely." -- Harlan Ellison http://www.fiction.net/blong/...
Brandon Long
blong42
Offline Send Email
Nov 16, 2004
11:04 pm
Messages 370 - 399 of 1347   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help