search for: pngfile

Displaying 16 results from an estimated 16 matches for "pngfile".

2010 Feb 10
0
RODBC Update image file into a MS-SQL database table
Hi, I am creating some graphs which I want to update into a database table. The procedure I am following is: 1. create the graphs as a png/jpeg file. 2. Read that file as a binary vector 3. sqlUpdate My code: pngfile <- file(<filename>, "rb") N <- 1e6 repeat{ pngfilecontents <- readBin(pngfile, what="raw", n=N) if(length(pngfilecontents) == N) N <- 5 * N else break } close(pngfile) #There is a table df_DemandPatternMaster in the database with primary...
2017 Sep 19
0
[PATCH 6/6] lib: Use guestfs_int_make_temp_path in a few more places.
...e, "raw", size, -1) == -1) diff --git a/lib/inspect-icon.c b/lib/inspect-icon.c index 3e44b23eb..533e9fb4b 100644 --- a/lib/inspect-icon.c +++ b/lib/inspect-icon.c @@ -390,7 +390,9 @@ icon_cirros (guestfs_h *g, size_t *size_r) return NOT_FOUND; /* Use pbmtext to render it. */ - pngfile = safe_asprintf (g, "%s/cirros.png", g->tmpdir); + pngfile = guestfs_int_make_temp_path (g, "cirros", "png"); + if (!pngfile) + return NOT_FOUND; guestfs_int_cmd_add_string_unquoted (cmd, PBMTEXT " < "); guestfs_int_cmd_add_string_quoted...
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use __attribute__((cleanup(...))) to automatically free memory when pointers go out of the current scope. In general terms this seems to be a small win although you do have to use it carefully. For functions where you can completely get rid of the "exit code paths", it can simplify things. For a good example, see the
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds some internal APIs for running commands. The first patch contains the new APIs. The subsequent patches change various parts of the library over to use it. Rich.
2002 Jul 22
2
finding the colour at a point
I think this was asked recently but I can't find the item. Is it possible to find the colour at a point on a graphics page? I want to estimate the area of a complex shape by colouring it then random sampling from an enclosing box ... Richard Rowe Richard Rowe Senior Lecturer Department of Zoology and Tropical Ecology, James Cook University Townsville, Queensland 4811, Australia fax (61)7
2017 Sep 20
7
[PATCH v2] 0/6] Various clean ups in lib/
v1 -> v2: - Remove the unnecessary calls to guestfs_int_lazy_make_tmpdir in the final patch. Rich.
2017 Sep 19
7
[PATCH 0/6] Various clean ups in lib/
Miscellaneous small cleanups in lib/ directory. Rich.
2017 Oct 05
4
[PATCH 0/2] lib: Allow db_dump package to be a weak dependency.
Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1409024
2015 Sep 29
8
[PATCH 0/7] copy-in/copy-out: Capture errors from tar subprocess (RHBZ#1267032).
Commits 3c27f3d91e1566854747bbe844186783fc84f3a8 and 1b6f0daa9ae7fcc94e389232d0c397816cda973d added an internal API for running commands asynchronously. It is only used by the copy-in and copy-out APIs. Unfortunately this made the command code very complex: it was almost impossible to redirect stderr to a file, and there were a lot of long-range dependencies through the file. It was also buggy:
2017 Oct 05
0
[PATCH 2/2] lib/inspect-icon.c: Return error if guestfs_int_cmd_run has internal error.
...| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inspect-icon.c b/lib/inspect-icon.c index 533e9fb4b..0edd3d1b0 100644 --- a/lib/inspect-icon.c +++ b/lib/inspect-icon.c @@ -400,7 +400,7 @@ icon_cirros (guestfs_h *g, size_t *size_r) guestfs_int_cmd_add_string_quoted (cmd, pngfile); r = guestfs_int_cmd_run (cmd); if (r == -1) - return NOT_FOUND; + return NULL; if (!WIFEXITED (r) || WEXITSTATUS (r) != 0) return NOT_FOUND; -- 2.13.2
2007 Sep 12
0
: Error on tomcat...
...ylab = "CPU Load", xlab = "Time", col = "red", main = title) dev.off() .... .... The problem is when I am running this Perl Script locally in unix, "tmp.png" is getting created, however, when I run this perl script on server, tmp.pngfile is not getting created. My server is running in the same UNIX session where I am trying running the perl script. I have done several hit and trial attempt to make it happen, however, not able to find the error. Kindly suggest. Thanks in advance. Regards Sar [[alternative HTML version deleted]]
2003 Jun 05
1
dev.copy2eps: Why did the colors come into my postscript output?
...ray" and on screen I did not see colors. I put some of the eps files up here, so you can see what I mean: http://lark.cc.ku.edu/~pauljohn/R/epsfiles And if you don't have an eps viewer handy, I made png versions, since all browsers seem to show them. http://lark.cc.ku.edu/~pauljohn/R/pngfiles/ The docs indicate that the x11 device is being copied, but I rather think that a plot object that exists "behind" the x11 device is being saved.? I have since learned that I can put col=c("black") into the matplot command to make sure no colors are used, and that works th...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.
2011 May 13
0
Wine release 1.3.20
...y replace commented out exports. msvcp: Export a couple of variables and their access function. msvcp: Implement the numeric limit constants. msvcp: Implement the numeric limit functions. msvcp: Implement the Ctraits math functions. mshtml: Remove an extra quote in the pngfile registration. msvcp: Export the various floating point constants. winex11: Fix check for desktop process in non-desktop mode. user32: Catch bad pointer passed to SetSysColors. makefiles: Add support for .x template files. dinput: Reset the clipped flag when the cursor...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...name_downloaded); guestfs_int_cmd_add_string_unquoted (cmd, - " | " BMPTOPNM " | " PNMTOPNG " > "); + " | " BMPTOPNM " | " PNMTOPNG " > "); guestfs_int_cmd_add_string_quoted (cmd, pngfile); r = guestfs_int_cmd_run (cmd); if (r == -1) @@ -512,8 +512,8 @@ icon_windows_7 (guestfs_h *g, struct inspect_fs *fs, size_t *size_r) return NOT_FOUND; filename_downloaded = guestfs_int_download_to_tmp (g, fs, filename_case, - &quot...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67