Quantcast
Channel: User aggsol - Stack Overflow
Browsing latest articles
Browse All 41 View Live

Comment by aggsol on Getting sqlite3 on clients computer without needing them...

The database can easily be persistet as stated in the documentation, see example

View Article



Comment by aggsol on How to map a function to all elements of a namedtuple?

@RomanPerekhrest I added an example tuple but at program runtime I don't know how the namedtuple looks like.

View Article

Comment by aggsol on How to map a function to all elements of a namedtuple?

Not quiet there, the result tuple should be (Firstname="'Foo'", Lastname="Unknown")

View Article

Comment by aggsol on How to handle WSDL Operations not recognized by Zeep

Any other ideas where I could look into?

View Article

Comment by aggsol on Python - UserWarning messages loading WSDL into Zeep client

Did you find a solution for this?

View Article


Comment by aggsol on WDSL file contains operation but zeep "gives service has...

@Thameem Any ideas how to fix this by now?

View Article

Comment by aggsol on WSDL: How to define operation/message which accepts any...

Did you find a solution by now?

View Article

Comment by aggsol on Using PEM format of JKS key to sign soap with zeep...

Did you find a solution for your problem?

View Article


Comment by aggsol on Python p12 to pem

PSA: PKCS#12 support in pyOpenSSL is deprecated. You should use the APIs in cryptography.

View Article


Comment by aggsol on How to create elements with zeep from WSDL?

I cannot share the WSDL as this would reveal who my client is. Maybe I can create a reduced example. I will try a dictionary.

View Article

Comment by aggsol on How to sign XML with xmlsec (or other more appropriate...

@DeanMacGregor How did you end up signing the SOAP envelope?

View Article

Comment by aggsol on Javascript closures on heap or stack?

A copy to the heap might do the trick or variables known to be in closures would be created on the heap in the first place. This is likely a good area for optimizations and "smart trickery".

View Article

Comment by aggsol on What does "c14n" mean?

@Matthew I wonder if i can say that in my next presentation. Kinda feels weird. But I also often have trouble saying "canonicalization".

View Article


64-bit unsigned integers which cannot map onto a double [duplicate]

Are there any 64-bit unsigned integer values which cannot be represented with a double-precision floating-point type? (As a double is also 64-bit wide there must be some.) If so, how can I calculate...

View Article

Answer by aggsol for How to enable LZ4 compression for messagepack content...

You have to write a custom media type formatter because the compression is used in a different module. Instead of MessagePackSerializer you have to use LZ4MessagePackSerializer. The usage is the same....

View Article


Certain HTML entities (arrows) are not rendered in PDF (iText)

I tried to render ⇒ ⇔ € © → in the HTML with the XMLWorker and iText. Only the copyright and euro symbol appear in the PDF. I used the dafault font and...

View Article

Why is crypto with .Net Framework so complicated?

In most cases I need to encrypt a string with a password and then send/save it somewhere. Later I want do decrypt it with the password. I am not encrypting nuclear missile codes or medical patient...

View Article


Difference in ApiController HTTP status between empty Ok and NoContent [closed]

An ApiController returns the HTTP status 200 and any content given as parameter to Ok(foo) is sent. If no parameter is given the status is still 200 but no body is sent.Some clients expect a body or...

View Article

How to bundle async tasks for Task.WhenAll?

I fire up some async tasks in parallel like the following example:var BooksTask = _client.GetBooks(clientId);var ExtrasTask = _client.GetBooksExtras(clientId);var InvoicesTask =...

View Article

GNU m4 adds empty lines at top

I am using GNU m4 to preprocess Pandoc Markdown. I have a m4 script that defines a macro to set text in smallcaps named gb_Attr.m4_changequote({{,}})m4_define({{gb_Attr}}, {{[$1]{.smallcaps}}})and an...

View Article

How to apply using-pattern with System.Func?

Usually I use a memory stream with the well known using pattern.using(var mem = new MemoryStream(blob)){ foo(mem);}No imagine a function bar(Func<Stream>) defined in a client library that I have...

View Article


How to release/publish a .Net Core console application?

I have a console application that I want to publish for Windows and Ubuntu so end user can install and use it easily. The intended user is not a developer but able to use a CLI. I can generate a...

View Article


Reuse target_compile_options from variable for multiple targets (CMake)

I have several build targets and want to set the same set of compile options like this:set(app_compile_options "-Wall -Wextra -Wshadow -Wnon-virtual-dtor \ -Wold-style-cast \ -Woverloaded-virtual...

View Article

Answer by aggsol for Async read a subprocess stdin/stderr results into...

The approach is not working as string.data is not meant to be used this way. Instead a DataInputStream should be used that provides functions like read_line(). See details here.var dis = new...

View Article

Async read a subprocess stdin/stderr results into strings in Vala

I try to read stdin and stderr into strings from a subprocess. I request the pipe and the exit code is 0 (success) but the strings are empty.string errStr = "";string outStr = "";string[] cmd =...

View Article


What is an async scope for a delegate in Vala?

I am trying the async examples from the GNOME project site. I get the follwoing warning which I don't under stand on how to fix.async.vala:8.2-8.17: warning: delegates with scope="async" must be...

View Article

How to format int64 to upper case hex in Vala?

The following example does not compile public static int main (string[] args) { var now = new GLib.DateTime.now_utc(); int64 val = now.to_unix(); print ("%"+ int64.FORMAT +"\n", val); print ("%X\n",...

View Article

Does Vala provide something like C++ friend classes?

With C++ I like unit test functions or classes to be friends of the classes they test. That way I am not limited to the public interface. I need less mocking or boilerplate to test all methods. At the...

View Article

How to capture output of ninja build system in Sublime Text 3?

I am tring to set up the ninja build system in Sublime Text 3 that is not supported out the box. I generate my ninja.build file with meson. My build system is configured like this:{"cmd": ["ninja",...

View Article



How to create string from uint8[] in Vala?

I am doing async reads from a DataInputStream filling a buffer with bytes.uint8[] buffer = new uint8[4096];size_t bytes = 0;bool success = false;do{ success = yield...

View Article

Answer by aggsol for How to create string from uint8[] in Vala?

As an alternative to the print solution a simple loop and using append_c from the StringBuilder in a loop works. Just append every byte till the end of arrayvar builder = new...

View Article

Answer by aggsol for Using generic std::function objects with member...

You can avoid std::bind doing this: std::function<void(void)> f = [this]-> {Foo::doSomething();}

View Article

Is PdfStamper disposing output stream? (iTextSharp)

I am using iTextSharp to add page numbers to a PDF with C#. While running code analysis the MemoryStream for the output is suspected to be disposed more than once. See this warning generated by Visual...

View Article


When does Google Play Games services reset weekly leaderboards?

The documentation states that ...weekly leaderboards reset at Saturday midnight PST. Is this the night from Friday to Saturday or from Saturday to Sunday?

View Article

How to add a page break from pandoc markown to RTF output?

I tried to add \page and \page\par\ to the markdown to trigger a page break in the resulting RTF file but that does not work. Adding \newpage works with a LaTex output. Is there something similar for RTF?

View Article

Prevent page break in text block with iText, XMLWorker

I have a text block in a <div> or <p> which I want not to have a page break within. If the text block does not fit on the current page then I want it on a new page. How can I setup...

View Article


Answer by aggsol for Prevent page break in text block with iText, XMLWorker

As of version 5.5.7 the XMLWorker in iText supports page-break-inside: avoid; See ChangelogUpdate 2023-01-17: iText 5 is now legacy software and has been superseeded by iText 7. I don't know if version...

View Article


Answer by aggsol for can't connect to Azure SQL using SQLAlchemy with pymssql

You have to proplery encode/quote parameters in the URL.from urllib.parse import quoteconn_string = f"mssql+pymssql://{quote(user)}:{quote(password)}@{quote(server)}/{quote(db_name)}"

View Article

Missing cache statistics for cachedmethod decorator in cachetools

I am implementing a cached method with cachetools like this:class CachedNum(object): def __init__(self, cachesize): self.cache = LRUCache(maxsize=cachesize) @cachedmethod(lambda self: self.cache) def...

View Article
Browsing latest articles
Browse All 41 View Live




Latest Images