Language:
switch to room list switch to menu My folders
Go to page: First ... 111 112 113 114 [115] 116 117 118 119 ... Last
[#] Mon Aug 24 2015 09:10:22 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


They had it in 2013, as _snprintf, requiring <stdio.h>. They also have wide versions of the function.

[#] Mon Aug 24 2015 11:15:03 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

_snprintf wouldn't terminate the string on error. So I guess that doesn't count.

afairk they had that for quiet a while.



[#] Tue Aug 25 2015 10:02:29 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Ah... I wondered if the underscore might have been the offense.



[#] Wed Aug 26 2015 09:03:36 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

anno 2015: strncpy() still doesn't guarantee null termination, on *any* platform

[#] Wed Aug 26 2015 10:49:48 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

thats why one should use memcpy. strncpy() isn't buffer overrun safe anyways.



[#] Wed Aug 26 2015 14:23:16 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Heh... memcpy with UTF-16 characters...

[#] Wed Aug 26 2015 14:33:49 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

anno 2015: strncpy() still doesn't guarantee null termination, on *any*

platform

It doesn't guarantee bounds-safety if you pass the wrong size parameter, either. I suppose you're supposed to use it after calloc() or memset() and pass size-1...

[#] Wed Aug 26 2015 14:35:04 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


(I do think it's a dumb design. And as I recall, Citadel has a safestrncpy...)

[#] Wed Aug 26 2015 19:43:30 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

It does have safestrncpy() in its utility library. It also has an elastic string data type. Neither is particularly pleasant to work with. Time to rewrite the whole thing in Python.

[#] Mon Aug 31 2015 23:01:09 EDT from ax25 @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

A Python re-write of any of it would be interesting.  Prolly not gonna happen, but it would be fun for me.



[#] Tue Sep 01 2015 10:29:47 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

If the project were being started today it would be in a higher level language, very likely Python. But it isn't. From time to time we discuss extension languages, though.

[#] Tue Sep 08 2015 22:23:02 EDT from ax25 @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I guess I have never tried calling any of the Citadel libraries with ctypes yet.  I should probably give that a try.  I don't think I will muck about on my live system however :-)  Easy / Queasy install to the rescue.



[#] Fri Sep 11 2015 04:29:24 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

@ax25 I guess there is not much in there realy usefull for python. The client api doesn't use libcitadels abstractions, which, if, then would probably be a good thing to use in python or swig.

 

Another nice thing I've just found:

https://www.madoko.net/ A system for doing markdown documentations & presentations with latex backends written in...

Koka:

http://www.rise4fun.com/koka/tutorial



[#] Mon Sep 14 2015 00:13:48 EDT from ax25 @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Bummer on the lib abstraction not being there.  It would be a bit safer than poking around where it is probably not safe.

Nice find on Madoko  / Koka.  I never did learn LaTeX, but I found it appealing every time I read about it - (especially coming from the times of fitting a report to the bounds of what could be done on an Epson dot matrix in escape codes era).



[#] Mon Sep 14 2015 14:21:04 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

yea, latex is definitely a good inbetween format, I once did my bills with it, and used it as bridge dokuwiki->pdf, plus my vitra is done with it... and, if its not complicated tables, the results look nice!



[#] Tue Sep 15 2015 01:10:37 EDT from ax25 @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

latex is damn pretty.  I was aiming to do a resume in that as the textbooks that were done in latex at the time were borderline eye candy :-)



[#] Tue Sep 15 2015 10:04:11 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

That wouldn't work for any document that would reside on my home computers.
My wife is allergic to latex.

[#] Tue Sep 15 2015 10:59:34 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Can't blame her. Nobody should have to edit source code just to format a document.

[#] Tue Sep 15 2015 13:07:16 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

it works with markdown. it just uses latex as intermediate format.

ok - you can use latex for complicated formulars, but I gues booboo doesn't have much use for them anyways?



[#] Wed Sep 23 2015 08:38:20 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

[[ whoooosssshhhhhhh... ]]



Go to page: First ... 111 112 113 114 [115] 116 117 118 119 ... Last