ve been planning to do some Go work with PDF files, so your email
> triggered me to do some research.
>
> Not sure it using heussd/pdftotext-go is critical to you, or if you are
> just ...more
> <http://groups.google.com/group/golang-nuts/msg/d5ef2741384a6?utm_source=digest&ut
sentence/paragraphs broken up into multiple lines (and not the same
> across releases)
> - embedded code (in boxes) is indistinguishable from other text.
>
> My 2cts.py,
> another Mike.
>
>
> On Thursday, January 23, 2025 at 1:30:33 PM UTC+1 Hugh Myrie wrote:
>
> Hi Mike,
&g
se, please check it out (but be aware,
> my additions to the forked code are rather hacky):
>
> https://github.com/mikeschinkel/go-pdf-content-reader
>
> -Mike
>
> On Jan 22, 2025, at 11:08 AM, Hugh Myrie wrote:
>
> I want to extract text from a PDF and preserve any
I want to extract text from a PDF and preserve any table or at least
convert it to a CSV. I am using the PDFtoText package (which uses the
Poppler software). The text is extracted vertically (i.e. one column at a
time) and each text is separated by a space. There is no line break making
it diff
Look at the sample text file and tell why the special characters differ.
When I open the file in VSCode, the special characters in the first sample
are highlighted.
Could you explain why?
On Wednesday, July 3, 2024 at 10:42:07 AM UTC-4 Hugh Myrie wrote:
> Yes, PeterGo got it correctly. T
Yes, PeterGo got it correctly. That is what I expect to see so I can post
it to an API.
On Tuesday, July 2, 2024 at 11:28:39 PM UTC-4 peterGo wrote:
> Ian,
>
> Hugh Myrie might be expecting to see something like this:
>
> https://go.dev/play/p/7TlD5R1C0oX
>
> Peter
>
&g
.Error())
return
}
resp := Resp{}
println("reply from server=", string(reply))
resp.Status = "response"
resp.Reply = string(reply)
respondWithJSON(w, http.StatusOK, resp)
conn.Close()
}
On Tuesday, July 2, 2024 at 8:28:54 PM UTC-4 Hu
Thanks.
>
> 2) What do you see if you change the %s to %q in the fmt.Printf call?
>
> Ian
>
> On Tue, Jul 2, 2024 at 3:40 PM Hugh Myrie wrote:
>
>> The original Go function is shown below. Initially, a JSON-encoded string
>> is sent from the client. The first print
uot;Write to server failed:", err.Error())
respondWithError(w, http.StatusBadRequest, err.Error())
return
}
resp := Resp{}
println("reply from server=", string(reply))
resp.Status = "response"
resp.Reply = string(reply)
respondWithJSON(
signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Jul 2, 2024 at 8:33 AM 'Dan Kortschak' via golang-nuts <
golang-nuts@googlegroups.com> wrote:
> On Mon, 2024-07-01 at
I am trying to preserve special characters (group separators and field
separators) when reading the request body from a POST request.
When I do a dumpRequest I am able to see the special characters (Hex
Format, for example: \x1c or \x03). I am sending the data from the client
as text/plain.
I
y to authenticate clients this way. This is how ssh
> >>works with certificate based authentication. Peer to peer is a
> >>little harder but usually you get the valid certs from a trusted
> >>server.
> >> > On Jun 30, 2022, at 6:35 AM, Konstanti
> On Jun 30, 2022, at 6:35 AM, Konstantin Khomoutov
> wrote:
> >
> > On Mon, Jun 27, 2022 at 05:35:38PM -0700, Hugh Myrie wrote:
> >
> >> I wish to create a secure private network using a self-signed
> certificate
> >> with a Go web s
I wish to create a secure private network using a self-signed certificate
with a Go web server: See the following code block:
// Code
err := http.ListenAndServeTLS(":"+port, "auto.org.pem",
"auto.org-key.pem", handler)
if err != nil {
logError((err.Error()))
log.Fatal("
I opened an issue there. Thanks for your help.
On Mon, Jun 28, 2021 at 11:09 AM Brian Candler wrote:
> I suggest the issue tracker for the firebirdsql library is the right place.
>
> On Monday, 28 June 2021 at 16:17:22 UTC+1 hugh@gmail.com wrote:
>
>> Stripped down file is attached.
>>
>> Go
Stripped down file is attached.
Go version 1.14.15
DB was created in Firebird 3.0.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googl
erly, cast(mesg as varchar(400)), binary4 from
>>> system"
>>> ...
>>> err := rows.Scan(&p.Tax1, &p.Fees1, &p.Fees2, &p.Minus_stk,
>>> &p.Discount1, &p.Discount2, &p.Discount3, &p.Discount4, &p.Elderly,
>>> &p.M
&p.Discount4, &p.Elderly)
>
> (Aside: those values have type "NullString" but your code snippet didn't
> show how that type was defined)
>
> If that doesn't make a difference, start chopping out the other fields.
>
> On Monday, 28 June 2021 at 01:12:
Update:
I did a re-installation of Go1.14.15. Reinstalled the FirebirdSQL driver,
yet the problem persist.
On Sunday, June 27, 2021 at 1:43:23 PM UTC-5 Hugh Myrie wrote:
> The version I saw in the go.mod file was v0.9.1. However, looking at the
> modified date of the files in the l
The version I saw in the go.mod file was v0.9.1. However, looking at the
modified date of the files in the library folder was last year. So I
deleted the library and reinstalled it . I suppose doing a "go get" without
specifying a version would retrieve the latest version. Correct me if I'm
wrong h
he readme file now startes that go 1.15 or newer is supported. May be
> this helps.
>
> BR,
> Roland
>
> Am Sa., 26. Juni 2021 um 19:03 Uhr schrieb Hugh Myrie >:
>
>> That is a possibility. I didn't try to rebuild under Go1.14., but I will
>> give that
That is a possibility. I didn't try to rebuild under Go1.14., but I will
give that a try. Interestingly, one "select query" worked but the others
failed with similar error messages. After upgrading to G1.16 I ran "go
tidy" which downloaded the libraries and create a "mod" file in the working
f
Yes. It seems that's the case. I'm floored.
On Fri, Jun 25, 2021 at 7:17 PM Hugh Myrie wrote:
> Bypassing the error returns an empty result set.
>
> Additional information: "string right truncation /expected length 0,
> actual 3". In the DB the Code field
in Golang.
On Friday, June 25, 2021 at 3:24:25 AM UTC-5 rol...@gmail.com wrote:
> Hello,
>
> Am Do., 24. Juni 2021 um 18:14 Uhr schrieb Hugh Myrie >:
>
>> I recently updated my Go version to 1.16 and for all my queries I now get
>> an error:
>>
>> {
I recently updated my Go version to 1.16 and for all my queries I now get
an error:
{"error":"Dynamic SQL Error\nSQL error code = -303\narithmetic exception,
numeric overflow, or string truncation\nstring right truncation\n"}
I'm using the package: _ "github.com/nakagami/firebirdsql"
The fo
eed paper
> command could be written "\033J\004" or "\x1bJ\x04". There are other ways,
> of course, to construct such strings that may be more readable by using
> constant declarations such as `const Esc '\x1b'`.
>
> On Sat, Apr 3, 2021 at 2:55 PM Hugh Myrie
Given the following, how do I send escape codes to print?
for _, line := range lines {
fmt.Fprintf(p, "%s\r\n", line)
}
How do I send escape sequences using the above print command?
Below is a C# example:
output = Chr(&H1D) & "V" & Chr(66) & Chr(0);
I want to send the escape codes to a receipt
I am able to decode the body of a POST request
using json.NewDecoder(r.Body)., then save the result to a database.
Example:
type Product struct {
IDint `json:"id"`
Description string `json:"description"`
Price float64 `json:"price"`
Packsize int `json:"packsize"`
Count1 int `json:"c
I am trying to follow the example as described in the
link: https://github.com/gorilla/mux, to serve a single page application
(Angular) from Go and also to route my endpoints.
My endpoints are not being routed although the index.html is served. My
main function has the following format:
//===
Brilliant!! Thanks Tamas, that worked perfectly.
On Tuesday, March 2, 2021 at 4:14:10 PM UTC-5 Tamás Gulácsi wrote:
> If I understand correctly, you receive "bodyBytes", store it in a file,
> and later want to serve it.
> Then a `w.Write(b)` would suffice.
> Or without reading the whole file int
Here is what I have tried.
type product struct {
IDint `json:"id"`
Description string `json:"description"`
Price float64 `json:"price"`
Bin string `json:"bin"`
Qoh int `json:"qoh"`
}
// * function to save data to a file *//
func saveBackup(w http.ResponseWriter, r *h
31 matches
Mail list logo