How we can resolve “Solving environment: failed with initial frozen solve. Retrying with flexible solve.” issue while installing the new conda package

As stated by a Conda maintainer in https://github.com/conda/conda/issues/8051#issuecomment-1549451621 their official position is that they know the old solver is slow and that is why they put effort in allowing the libmamba solver to be used in Conda. To install: conda install -n base conda-libmamba-solver at which point you are free to use it once, e.g.: … Read more

Why does PDFKit/wkhtmltopdf hang but renders PDF as expected when Rails app is killed?

The problem is with wkhtmltopdf itself, specifically, any version after 0.9.9. wkhtmltopdf hangs when run directly from the command-line. Steps to correct: brew uninstall wkhtmltopdf cd /usr/local/Library/Formula/ git checkout 6e2d550 /usr/local/Library/Formula/wkhtmltopdf.rb brew install wkhtmltopdf Then verify the correct version is installed wkhtmltopdf –version which should yield wkhtmltopdf 0.9.9 Citations: https://github.com/mileszs/wicked_pdf/issues/110 http://wearepandr.com/blog/article/homebrew-and-installing-old-package-versions#blog_nav

Saving PDF Files with Swift in iOS and display them

Since several people requested this, here is the equivalent to the first answer in Swift: //The URL to Save let yourURL = NSURL(string: “http://somewebsite.com/somefile.pdf”) //Create a URL request let urlRequest = NSURLRequest(URL: yourURL!) //get the data let theData = NSURLConnection.sendSynchronousRequest(urlRequest, returningResponse: nil, error: nil) //Get the local docs directory and append your local filename. var … Read more

Can’t create pdf using python PDFKIT Error : ” No wkhtmltopdf executable found:”

The following should work without needing to modify the windows environment variables: import pdfkit path_wkhtmltopdf = r’C:\Program Files (x86)\wkhtmltopdf\bin\wkhtmltopdf.exe’ config = pdfkit.configuration(wkhtmltopdf=path_wkhtmltopdf) pdfkit.from_url(“http://google.com”, “out.pdf”, configuration=config) Assuming the path is correct of course (e.g. in my case it is r’C:\Program Files (x86)\wkhtmltopdf\bin\wkhtmltopdf.exe’).