search for: rtrim

Displaying 13 results from an estimated 13 matches for "rtrim".

Did you mean: trim
2006 Apr 26
1
RE nut 2.0 fentonups and Xanto S3000R
...check_mtab2(const char *raw) +static int check_mtab2(const char *raw, int israw) { int i; char *cooked; - /* trim off the leading # and any trailing spaces */ - cooked = xstrdup(&raw[1]); - rtrim(cooked, ' '); + if (israw) { + /* trim off the leading # and any trailing spaces */ + cooked = xstrdup(&raw[1]); + rtrim(cooked, ' '); + } else +...
2011 Apr 18
1
[nut-commits] svn commit r2972 - trunk/drivers
Citeren Arnaud Quette <aquette op alioth.debian.org>: > Log: > Trim extraneous end-of-line, in buggy HID string tables, which > results in upsc breaking the communication pipe (Ubuntu bug #753661) We have 'rtrim' to do this: - return buf; + return rtrim(buf, '\n'); Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)
2006 Apr 15
1
Begin with Autocompleter
...t.status == 200) { 30 alert(http_request.responseText); 31 } else { 32 alert(''Han ocurrido problemas con la peticiĆ³n.''); 33 } 34 } 35 } In search_ajax.php file I find the element in the database: <?php $query = isset ( $_POST[''qword''] ) ? trim ( rtrim ( $_POST[''qword''] ) ) : null; if ( $query != null ){ $db->Execute(" SELECT * FROM table WHERE field LIKE ''%". $query ."%'' ") or die($db->ErrorMsg()); $elements = array(); while ( $record = $db->fetchRow() ){ $elements[] = $r...
2007 Jan 29
0
Antwort: Re: "no longer stale" when disconnected with 2.0.5
...c ups.status "OL"] in return, which looks good at first glance. But it isn't... ;-) Yesterday I committed a change to upsd.c to remove the trailing '\n' in debug mode, since that would break the line with 'write: ...' on it, which looked rather ugly. Bummer, since the rtrim() function that I used will strip it from the answer sent to the connecting client also, the answer will now be shorter than expected and miss the trailing '\n' (server/upsd.c): int sendback(ctype *client, const char *fmt, ...) [...] upsdebugx(2, "write: [destfd=%d] [len=%d] [%s]&qu...
2016 Jan 28
1
Patching CyberPower UPS drivers
...#39;ve written with a "thumbs up" response. (I'm more a hardware guy) And sscanf was working like poo -- so I figured I'd parse it differently with something that didn't seem so sensitive. > A few items: > > * Since v2.6.5, some of the string functions were renamed. rtrim() -> str_rtrim(), for instance. I'll take a look at the latest.... as mentioned, 2.6.5 is what's on my CentOS system with nothing later (yet) so I just downloaded the SRPMS to work on. but I also have 2.7.3 downloaded -- so I'll see what I can do with that. > * If you are takin...
2010 May 30
0
New package RSQLite.extfuns and minor upgrade for RSQLite
...nsion functions provided by the package include: Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, log, log10, power, sign, sqrt, square, ceil, floor, pi. String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, replace, reverse, proper, padl, padr, padc, strfilter. Aggregate: stdev, variance, mode, median, lower_quartile, upper_quartile. RSQLite has been modified to provide the SQLite header files in the installed include directory so that RSQLite.extfuns (and other packages wishing to provide S...
2010 May 30
0
New package RSQLite.extfuns and minor upgrade for RSQLite
...nsion functions provided by the package include: Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, log, log10, power, sign, sqrt, square, ceil, floor, pi. String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, replace, reverse, proper, padl, padr, padc, strfilter. Aggregate: stdev, variance, mode, median, lower_quartile, upper_quartile. RSQLite has been modified to provide the SQLite header files in the installed include directory so that RSQLite.extfuns (and other packages wishing to provide S...
2006 Apr 18
1
gettin erro with xapian binidngs 0.9.5
...one extracted devanagari word per line plus its postion(ie. on which line it appears..line is defined as something that ends with Hindi "|" ie.full stop) $count=0; $t1=time(); foreach($lines as $l) { if($count==0) { $count++; continue; } $pieces=explode(" ",$l); $term= rtrim(souindics(souindics_preprocess($pieces[0]))); echo $term." ".$pieces[1]."<br>"; $pos=$pieces[1]; Document_add_posting($doc, $term, $pos); }//end for WritableDatabase_add_document($database, $doc); WritableDatabase_flush($database); $database = Null; --------------------...
2016 Jan 19
5
Patching CyberPower UPS drivers
Hey there, I got a new UPS (CyberPower PR1500LCDRTXL2Ua) and found the serial drivers don't quite work... So I decided to jump in and make changes to the driver that would hopefully make it happier. I have it working (I really only changed powerp-txt.c) but still have a couple questions... Charles said I should mention them here to talk to anyone interest but specifically Arjen (one of
2016 Jan 28
0
Patching CyberPower UPS drivers
...; > The parsing part works. I just need to alter the collection part so the timeouts work differently. I definitely like your approach. Thanks for moving some of the "magic numbers" to named constants, as well. A few items: * Since v2.6.5, some of the string functions were renamed. rtrim() -> str_rtrim(), for instance. * If you are taking out a block of code, "#if 0" is better than comment characters (which don't nest), and removing it completely is even better (fewer false positives when searching). If nothing else, it's in version control. Diff attached. Th...
2008 Jun 12
10
Ajax.Updater not working in IE, tried everything
hi, i am basically using a button, Prototype/AJAX, and PHP to update a user''s location. something simple as typing ''Chicago, IL''. After the script, it rewrites the result in a div tag. here is the form i''m using: <div id="hometown_result">Aurora, IL</div> <form action="" method="post"
2012 Oct 12
0
Wine release 1.5.15
...alue doesn't exist under the volatile key fallback to the permanent key. Jacek Caban (41): vbscript: Added Left() implementation. vbscript: Added Right() implementation. vbscript: Added Trim() implementation. vbscript: Added LTrim() implementation. vbscript: Added RTrim implementation. mshtml: Store nsIDOMNodeSelector in HTMLDocumentNode. mshtml: Moved getElementById implementation to separated function. mshtml: Defer event script evaluation. mshtml: Simplify get_node_obj. mshtml: Store information if script was already parsed in scri...
2010 Jul 18
6
CRAN (and crantastic) updates this week
...ebsite (http://www.sqlite.org/contrib). Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, exp, log, log10, power, sign, sqrt, square, ceil, floor, pi. String: replicate, charindex, leftstr, rightstr, ltrim, rtrim, trim, replace, reverse, proper, padl, padr, padc, strfilter. Aggregate: stdev, variance, mode, median, lower_quartile, upper_quartile. * RWebMA (0.0.2) Yohei Sato http://crantastic.org/packages/RWebMA This package is an interface for R of WebMA of Yahoo! Japan. http://developer.yahoo...