text:
Measure hosted cellxgene feature usage

For the hosted cellxgene application
Measure how many times key features are used per visit.
Measure the probability that two key features are used in sequence
Business Justification
This data will help us tailor UX research to understand if:

features are difficult to use, or
features don't provide value to users, or
features are used in particular flows or contexts, but not others.

List of "key features"
Left sidebar:

painting by a category on left side bar
selecting cells by unselecting some values within a category
opening a category on left side bar
creating a new category on left side bar

Top bar:

lassoing a selection of cells
saving a selection of cells to a DE category
saving a selection of cells to a category and assigning a label
calculating differential expression between two categories
subsetting to a selection of cells from a lasso selection
returning to the full dataset
selecting the zoom tool
show labels on graph
use the clip tool
undo an action
redo an action
use the help menu, or any sub-menu item.

Right sidebar:

Add a gene
Bulk add genes
create an xy plot
color the scatterplot by a quantitative variable (e.g. gene expression)
select a range of cells using the range selector

Have we talked to Trust about this? It seems like per visit and order of actions is getting pretty far into user tracking?

I raised with Trust on August 27 and pinged again this morning.

Per September 1 Refinement, @signechambers1 to follow up with @ambrosejcarr on the relative priority of this issue.

Trust approved the increased instrumentation on 9/15, from Shawn "Our current cellxgene policy covers this (see section 2.2) but I’ve made a note to spell this out even more since we are updating the policies for Data Portal anyways."

Per PM triage, closing. Ambrose will open a new issue to track specific actions.

authors: MDunitz ambrosejcarr brianraymor signechambers1

repo: chanzuckerberg/single-cell


text:
feat: Add port/protocol for driver

Adds the ability to provide protocol and port options to the snowflake driver
Test Plan

[X] acceptance tests
[X] Locally we have tested this for almost two weeks

References

https://github.com/snowflakedb/gosnowflake/blob/master/dsn.go#L54

I rebased the changes in main and made sure the docs were updated properly this time, should be ready for testing

/ok-to-test sha=b6f792a

We fixed this test in a different PR, could you merge main into your branch and then we can merge your PR?

Hi @alldoami,
I have updated this PR with the latest from main.

/ok-to-test sha=0987fe9

/ok-to-test sha=0987fe9

#1238 closes this PR

source: gharchive/pull-request

authors: Dirrk alldoami mrlannigan sfc-gh-swinkler

license: MIT

license_type: permissive

license_source: github-api


text:
Update GSoC-interest.md

provided pull request with my information

@jsdabrowski are you no longerer interested or did you close the pull request for a different reason?

am interested

Wonderful, you can make the requested changes in your repository and it will update this pull request :-)

For this pull request to update, you have to push the changes to the same branch that this pull request is from: patch-1

I hope should it be good. Sorry for the mess. i am still in the learning process.

No worries, I found GitHub and pull requests confusing at first.
You are 2/3 done now:

[ ] Please update your pull request to not delete other interested students that are already in the list.
[x] Please change the format of your email to use "at" instead of @
[x] Please change the last column to read "To-Do" without a link, if you don't have your Project Proposal ready yet.

hope in the project will be many opportunity to advance the skills

thank you

authors: GeorgLink jsdabrowski

repo: chaoss/governance


text:
🛑 sg (Freedif) is down

In 4dfa7b3, sg (Freedif) (https://sg-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 159 ms

Resolved: sg (Freedif) is back up in 625e001.

source: gharchive/issue

repo: chaotic-aur/chaotic-uptimes


text:
🛑 secret (Garuda) is down

In bc60ab3, secret (Garuda) (https://secret-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 119 ms

Resolved: secret (Garuda) is back up in 28cf61d.


text:
🛑 us-tx (xstefen) is down

In 57427d4, us-tx (xstefen) (https://us-tx-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 119 ms

Resolved: us-tx (xstefen) is back up in f9e7729.


text:
🛑 Silky.Network - us-ca is down

In a1d42ce, Silky.Network - us-ca (https://us-ca-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 146 ms

Resolved: Silky.Network - us-ca is back up in f559c32.


text:
🛑 kr (silent-heigou) is down

In b486890, kr (silent-heigou) (https://kr-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 115 ms

Resolved: kr (silent-heigou) is back up in 90aeec0.


text:
🛑 sg (Freedif) is down

In 735baf4, sg (Freedif) (https://sg-mirror.chaotic.cx/no-failover/chaotic-aur/lastupdate) was down:

HTTP code: 503
Response time: 141 ms

Resolved: sg (Freedif) is back up in 1cf0b0b.


text:
KeyError: 'fasta'

Hi Brad,
After upgrading the pipeline, I have the following error when I start a run. Where should I be looking for the configuration file?
Paul
File "/media/bigdata/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/run_info.py", line 179, in _check_ref_files
for contig in ref.file_contigs(ref_info["fasta"]["base"], data["config"]):
KeyError: 'fasta'

Paul;
Sorry about the confusing error message. I was able to replicate this error if you don't add a genome_build to your configuration. I updated the configuration checking to identify this and provide a more useful message. Hopefully this explains the problem and once adding it you can get things running cleanly. Thanks again for the feedback.

Thanks Brad. I just found that my .yaml file is truncated where the
genome_build is taken off for the last sample. Thanks for digging into the
issue.
On Fri, Mar 18, 2016 at 2:50 AM, Brad Chapman notifications@github.com
wrote:

Paul;
Sorry about the confusing error message. I was able to replicate this
error if you don't add a genome_build to your configuration. I updated
the configuration checking to identify this and provide a more useful
message. Hopefully this explains the problem and once adding it you can get
things running cleanly. Thanks again for the feedback.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/chapmanb/bcbio-nextgen/issues/1277#issuecomment-198284377

authors: chapmanb tanglingfung

repo: chapmanb/bcbio-nextgen

license: mit

license_source: bigquery


text:
Why open image with 'rw' in docs

In the docs (https://github.com/charlesthk/python-resize-image) you use 'rw' to open the images.
from PIL import Image

test_img = open('test-image.jpeg', 'rw')
img = Image.open(test_img)
img = resizeimage.resize_thumbnail(img, [200, 200])
img.save('test-image-thumbnail.jpeg', img.format)
test_img.close()

I see no sense in opening the file for writing.
BTW, it is very common to use fd_.... as variable name for file descriptors returned by open().
You use test_img. That's valid python code, but fd_img would be more easy to read.

Thanks for this issue, I updated my code accordingly.

authors: charlesthk guettli

repo: charlesthk/python-resize-image


text:
Failed to initialise tesseract engine (Tesseract 3.0.2 - Visual Studio 2015)

Hi and thank you very much for your help.
I have done everything that I possibly can think of to attempt to resolve a "Failed to initialise engine" error.
I read post #277 where the person stated that adjusting the path to tessdata fixed his issue. But he did not state the "adjustment" that he made.
Line where the failure occurs
using (var engine = new TesseractEngine (@"./tessdata", "eng", EngineMode.Default)) {
Error
"Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details."}	Tesseract.TesseractException
Stack Trace
Data	{System.Collections.ListDictionaryInternal}	System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HResult	-2146233088	int
HelpLink	null	string
InnerException	null	System.Exception
Message	"Failed to initialise tesseract engine.. See https://github.com/charlesw/tesseract/wiki/Error-1 for details."	string
Source	"Tesseract"	string
StackTrace	"
at Tesseract.TesseractEngine.Initialise(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialValues, Boolean setOnlyNonDebugVariables)\r\n
at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary2 initialOptions, Boolean setOnlyNonDebugVariables)\r\n
at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode)\r\n
at OCRTestOne.OCRTest.Go() in C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\Classes\OCRTest.cs:line 22"	string
TargetSite	{Void Initialise(System.String, System.String, Tesseract.EngineMode, System.Collections.Generic.IEnumerable1[System.String], System.Collections.Generic.IDictionary2[System.String,System.Object], Boolean)}	System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
Development Environment

Windows Server 2012 R2 (virtual machine running in Azure)
Visual Studio 2015 (Version 14.0.25431.01 Update 3)
Project Type: ASP.NET (also tried console app).
Framework Target 452 (.NET Framework 4.5.2).
Verified that Visual C++ 32-bit and 64-bit runtimes are both installed
Nuget Package: Tesseract by Charles Weld 3.0.2
tessdata folder exists with English language files underneath (I added it). Files set to Copy Always.
32 and 64-bit assemblies (liblept172.dll and libtesseract304.dll) exist in the x86 and x64 folders and are set to Copy Always (they seem to be copied to the lib folder).

Trace
Turned on verbose mode tracing. The trace below is based on one execution attempt (I tried to attach a text file but the site said: "We don't support that file type"). Apologies for the long trace
Tesseract Information: 0 : Current OS: Windows
Tesseract Information: 0 : Current platform: x86
Tesseract Information: 0 : Custom search path is not defined, skipping.
Tesseract Information: 0 : Checking executing application domain location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\99b032d6\fb07eb9\assembly\dl3\26c8fcd5\00342a46_d765d101' for 'liblept172.dll' on platform x86.
Tesseract Information: 0 : Checking current application domain location 'C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One' for 'liblept172.dll' on platform x86.
Tesseract Information: 0 : Trying to load native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll"...
Tesseract Information: 0 : Successfully loaded native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll", handle = 325451776.
Tesseract Information: 0 : Trying to load native function "pixaReadMultipageTiff" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixaReadMultipageTiff", function handle = 325469402.
Tesseract Information: 0 : Trying to load native function "pixaGetCount" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixaGetCount", function handle = 325462092.
Tesseract Information: 0 : Trying to load native function "pixaGetPix" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixaGetPix", function handle = 325455972.
Tesseract Information: 0 : Trying to load native function "pixaDestroy" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixaDestroy", function handle = 325456927.
Tesseract Information: 0 : Trying to load native function "pixCreate" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixCreate", function handle = 325465967.
Tesseract Information: 0 : Trying to load native function "pixClone" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixClone", function handle = 325466612.
Tesseract Information: 0 : Trying to load native function "pixDestroy" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixDestroy", function handle = 325466382.
Tesseract Information: 0 : Trying to load native function "pixGetWidth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetWidth", function handle = 325460622.
Tesseract Information: 0 : Trying to load native function "pixGetHeight" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetHeight", function handle = 325460452.
Tesseract Information: 0 : Trying to load native function "pixGetDepth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetDepth", function handle = 325464312.
Tesseract Information: 0 : Trying to load native function "pixGetXRes" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetXRes", function handle = 325463887.
Tesseract Information: 0 : Trying to load native function "pixGetYRes" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetYRes", function handle = 325463882.
Tesseract Information: 0 : Trying to load native function "pixGetResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetResolution", function handle = 325469492.
Tesseract Information: 0 : Trying to load native function "pixGetWpl" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetWpl", function handle = 325466032.
Tesseract Information: 0 : Trying to load native function "pixSetXRes" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSetXRes", function handle = 325463907.
Tesseract Information: 0 : Trying to load native function "pixSetYRes" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSetYRes", function handle = 325463902.
Tesseract Information: 0 : Trying to load native function "pixSetResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSetResolution", function handle = 325465697.
Tesseract Information: 0 : Trying to load native function "pixScaleResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixScaleResolution", function handle = 325467282.
Tesseract Information: 0 : Trying to load native function "pixGetData" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetData", function handle = 325469052.
Tesseract Information: 0 : Trying to load native function "pixGetInputFormat" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetInputFormat", function handle = 325467712.
Tesseract Information: 0 : Trying to load native function "pixSetInputFormat" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSetInputFormat", function handle = 325459102.
Tesseract Information: 0 : Trying to load native function "pixEndianByteSwap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixEndianByteSwap", function handle = 325468587.
Tesseract Information: 0 : Trying to load native function "pixRead" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixRead", function handle = 325467527.
Tesseract Information: 0 : Trying to load native function "pixReadMemTiff" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixReadMemTiff", function handle = 325472137.
Tesseract Information: 0 : Trying to load native function "pixWrite" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixWrite", function handle = 325466617.
Tesseract Information: 0 : Trying to load native function "pixGetColormap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixGetColormap", function handle = 325464692.
Tesseract Information: 0 : Trying to load native function "pixSetColormap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSetColormap", function handle = 325468467.
Tesseract Information: 0 : Trying to load native function "pixDestroyColormap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixDestroyColormap", function handle = 325465782.
Tesseract Information: 0 : Trying to load native function "pixConvertRGBToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixConvertRGBToGray", function handle = 325460777.
Tesseract Information: 0 : Trying to load native function "pixDeskewGeneral" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixDeskewGeneral", function handle = 325460177.
Tesseract Information: 0 : Trying to load native function "pixRotate" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixRotate", function handle = 325466312.
Tesseract Information: 0 : Trying to load native function "pixRotateOrth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixRotateOrth", function handle = 325468177.
Tesseract Information: 0 : Trying to load native function "pixOtsuAdaptiveThreshold" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixOtsuAdaptiveThreshold", function handle = 325468767.
Tesseract Information: 0 : Trying to load native function "pixSauvolaBinarize" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSauvolaBinarize", function handle = 325463922.
Tesseract Information: 0 : Trying to load native function "pixSauvolaBinarizeTiled" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixSauvolaBinarizeTiled", function handle = 325461412.
Tesseract Information: 0 : Trying to load native function "pixScale" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixScale", function handle = 325466597.
Tesseract Information: 0 : Trying to load native function "pixcmapCreate" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCreate", function handle = 325462397.
Tesseract Information: 0 : Trying to load native function "pixcmapCreateRandom" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCreateRandom", function handle = 325460482.
Tesseract Information: 0 : Trying to load native function "pixcmapCreateLinear" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCreateLinear", function handle = 325460392.
Tesseract Information: 0 : Trying to load native function "pixcmapCopy" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCopy", function handle = 325463212.
Tesseract Information: 0 : Trying to load native function "pixcmapDestroy" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapDestroy", function handle = 325464252.
Tesseract Information: 0 : Trying to load native function "pixcmapGetCount" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetCount", function handle = 325466562.
Tesseract Information: 0 : Trying to load native function "pixcmapGetFreeCount" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetFreeCount", function handle = 325456837.
Tesseract Information: 0 : Trying to load native function "pixcmapGetDepth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetDepth", function handle = 325468462.
Tesseract Information: 0 : Trying to load native function "pixcmapGetMinDepth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetMinDepth", function handle = 325462157.
Tesseract Information: 0 : Trying to load native function "pixcmapClear" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapClear", function handle = 325460977.
Tesseract Information: 0 : Trying to load native function "pixcmapAddColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapAddColor", function handle = 325466517.
Tesseract Information: 0 : Trying to load native function "pixcmapAddNewColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapAddNewColor", function handle = 325459832.
Tesseract Information: 0 : Trying to load native function "pixcmapAddNearestColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapAddNearestColor", function handle = 325464897.
Tesseract Information: 0 : Trying to load native function "pixcmapUsableColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapUsableColor", function handle = 325468852.
Tesseract Information: 0 : Trying to load native function "pixcmapAddBlackOrWhite" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapAddBlackOrWhite", function handle = 325460002.
Tesseract Information: 0 : Trying to load native function "pixcmapSetBlackAndWhite" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapSetBlackAndWhite", function handle = 325456282.
Tesseract Information: 0 : Trying to load native function "pixcmapGetColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetColor", function handle = 325466527.
Tesseract Information: 0 : Trying to load native function "pixcmapGetColor32" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetColor32", function handle = 325458992.
Tesseract Information: 0 : Trying to load native function "pixcmapResetColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapResetColor", function handle = 325457197.
Tesseract Information: 0 : Trying to load native function "pixcmapGetIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetIndex", function handle = 325466567.
Tesseract Information: 0 : Trying to load native function "pixcmapHasColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapHasColor", function handle = 325458122.
Tesseract Information: 0 : Trying to load native function "pixcmapCountGrayColors" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCountGrayColors", function handle = 325462272.
Tesseract Information: 0 : Trying to load native function "pixcmapCountGrayColors" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapCountGrayColors", function handle = 325462272.
Tesseract Information: 0 : Trying to load native function "pixcmapGetNearestIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetNearestIndex", function handle = 325459557.
Tesseract Information: 0 : Trying to load native function "pixcmapGetNearestGrayIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetNearestGrayIndex", function handle = 325466522.
Tesseract Information: 0 : Trying to load native function "pixcmapGetComponentRange" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetComponentRange", function handle = 325459077.
Tesseract Information: 0 : Trying to load native function "pixcmapGetExtremeValue" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGetExtremeValue", function handle = 325458877.
Tesseract Information: 0 : Trying to load native function "pixcmapGrayToColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGrayToColor", function handle = 325464607.
Tesseract Information: 0 : Trying to load native function "pixcmapColorToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapColorToGray", function handle = 325469397.
Tesseract Information: 0 : Trying to load native function "pixcmapColorToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapColorToGray", function handle = 325469397.
Tesseract Information: 0 : Trying to load native function "pixcmapToRGBTable" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapToRGBTable", function handle = 325469742.
Tesseract Information: 0 : Trying to load native function "pixcmapSerializeToMemory" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapSerializeToMemory", function handle = 325465572.
Tesseract Information: 0 : Trying to load native function "pixcmapDeserializeFromMemory" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapDeserializeFromMemory", function handle = 325460637.
Tesseract Information: 0 : Trying to load native function "pixcmapGammaTRC" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapGammaTRC", function handle = 325470952.
Tesseract Information: 0 : Trying to load native function "pixcmapContrastTRC" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapContrastTRC", function handle = 325462497.
Tesseract Information: 0 : Trying to load native function "pixcmapShiftIntensity" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixcmapShiftIntensity", function handle = 325460387.
Tesseract Information: 0 : Current platform: x86
Tesseract Information: 0 : Custom search path is not defined, skipping.
Tesseract Information: 0 : Checking executing application domain location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\99b032d6\fb07eb9\assembly\dl3\26c8fcd5\00342a46_d765d101' for 'libtesseract304.dll' on platform x86.
Tesseract Information: 0 : Checking current application domain location 'C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One' for 'libtesseract304.dll' on platform x86.
Tesseract Information: 0 : Trying to load native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\libtesseract304.dll"...
Tesseract Information: 0 : Successfully loaded native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\libtesseract304.dll", handle = 329383936.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIAnalyseLayout" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIAnalyseLayout", function handle = 329706928.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIClear" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIClear", function handle = 329706560.
Tesseract Information: 0 : Trying to load native function "TessBaseAPICreate" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPICreate", function handle = 329709952.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIDelete" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIDelete", function handle = 329709920.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIDetectOS" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIDetectOS", function handle = 329706368.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetBoolVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetBoolVariable", function handle = 329709264.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetDoubleVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetDoubleVariable", function handle = 329709184.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetHOCRText" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetHOCRText", function handle = 329706736.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetIntVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetIntVariable", function handle = 329709344.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetIterator" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetIterator", function handle = 329706784.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetPageSegMode" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetPageSegMode", function handle = 329707728.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetStringVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetStringVariable", function handle = 329709104.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetThresholdedImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetThresholdedImage", function handle = 329707312.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIGetUTF8Text" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIGetUTF8Text", function handle = 329706752.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIInit4" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIInit4", function handle = 329708688.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIMeanTextConf" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIMeanTextConf", function handle = 329706688.
Tesseract Information: 0 : Trying to load native function "TessBaseAPIRecognize" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPIRecognize", function handle = 329706912.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetDebugVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetDebugVariable", function handle = 329709424.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetImage2" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetImage2", function handle = 329707536.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetInputName" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetInputName", function handle = 329709840.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetPageSegMode" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetPageSegMode", function handle = 329707760.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetRectangle" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetRectangle", function handle = 329707440.
Tesseract Information: 0 : Trying to load native function "TessBaseAPISetVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessBaseAPISetVariable", function handle = 329709504.
Tesseract Information: 0 : Trying to load native function "TessDeleteBlockList" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessDeleteBlockList", function handle = 329710688.
Tesseract Information: 0 : Trying to load native function "TessDeleteIntArray" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessDeleteIntArray", function handle = 329710720.
Tesseract Information: 0 : Trying to load native function "TessDeleteText" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessDeleteText", function handle = 329710784.
Tesseract Information: 0 : Trying to load native function "TessDeleteTextArray" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessDeleteTextArray", function handle = 329710736.
Tesseract Information: 0 : Trying to load native function "TessVersion" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessVersion", function handle = 329710800.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorBaseline" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorBaseline", function handle = 329705472.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorBegin" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorBegin", function handle = 329705760.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorBlockType" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorBlockType", function handle = 329705568.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorBoundingBox" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorBoundingBox", function handle = 329705616.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorCopy" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorCopy", function handle = 329705776.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorDelete" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorDelete", function handle = 329705808.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorGetBinaryImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorGetBinaryImage", function handle = 329705552.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorGetImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorGetImage", function handle = 329705520.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorIsAtBeginningOf" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorIsAtBeginningOf", function handle = 329705696.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorIsAtFinalElement" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorIsAtFinalElement", function handle = 329705664.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorNext" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorNext", function handle = 329705728.
Tesseract Information: 0 : Trying to load native function "TessPageIteratorOrientation" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessPageIteratorOrientation", function handle = 329705440.
Tesseract Information: 0 : Trying to load native function "TessResultIteratorCopy" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function "TessResultIteratorCopy", function handle = 329705200.
Tesseract Information: 0 : Trying to load native function "TessResultIteratorDelete" from the library with handle 329383936...
-- Again the log is from one run (one attempt to execute the single line of code listed at the start of this post).
Conclusion
I am a very experienced programmer (have done win32 to cloud). I spent about 5 hours trying to get this to work without success. One thing I notice is that the log seems to end on TessResultIteratorDelete, and in some cases it starts to print the next line but stops midway (prints "Tesseract Information: 0 : Successfully", or "Tesseract Information: 0 : S").
Any help that you can offer would be greatly appreciated (the more specific the better).
Thank you very much again.
Best,
Conrad

My guess is that the actual tessdata path isn't what you expect. I'd
strongly recommend using absolute paths, especially for ASP.NET
applications, in this case Server.MapPath("~\tessdata") should do the trick.
Note that's just of the top my head so the syntax may not be 100% correct 😉
On Fri, 17 Feb 2017, 16:56 Conrad-S, notifications@github.com wrote:

Hi and thank you very much for your help.
I have done everything that I possibly can think of to attempt to resolve
a "Failed to initialise engine" error.
I read post #277 https://github.com/charlesw/tesseract/issues/277 where
the person stated that adjusting the path to tessdata fixed his issue. But
he did not state the "adjustment" that he made.
Line where the failure occurs
using (var engine = new TesseractEngine (@"./tessdata", "eng",
EngineMode.Default)) {
Error
"Failed to initialise tesseract engine.. See
https://github.com/charlesw/tesseract/wiki/Error-1 for details."}
Tesseract.TesseractException
Stack Trace
Data {System.Collections.ListDictionaryInternal}
System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HResult -2146233088 int
HelpLink null string
InnerException null System.Exception
Message "Failed to initialise tesseract engine.. See
https://github.com/charlesw/tesseract/wiki/Error-1 for details." string
Source "Tesseract" string
StackTrace " at Tesseract.TesseractEngine.Initialise(String datapath,
String language, EngineMode engineMode, IEnumerable1 configFiles,
IDictionary2 initialValues, Boolean setOnlyNonDebugVariables)\r\n at
Tesseract.TesseractEngine..ctor(String datapath, String language,
EngineMode engineMode, IEnumerable1 configFiles, IDictionary2
initialOptions, Boolean setOnlyNonDebugVariables)\r\n at
Tesseract.TesseractEngine..ctor(String datapath, String language,
EngineMode engineMode)\r\n at OCRTestOne.OCRTest.Go() in
C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\Classes\OCRTest.cs:line 22"
string
TargetSite {Void Initialise(System.String, System.String,
Tesseract.EngineMode, System.Collections.Generic.IEnumerable1[System.String],
System.Collections.Generic.IDictionary2[System.String,System.Object],
Boolean)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
Development Environment

Windows Server 2012 R2 (virtual machine running in Azure)
Visual Studio 2015 (Version 14.0.25431.01 Update 3)
Project Type: ASP.NET (also tried console app).
Framework Target 452 (.NET Framework 4.5.2).
Verified that Visual C++ 32-bit and 64-bit runtimes are both
installed
Nuget Package: Tesseract by Charles Weld 3.0.2
tessdata folder exists with English language files underneath (I
added it). Files set to Copy Always.
32 and 64-bit assemblies (liblept172.dll and libtesseract304.dll)
exist in the x86 and x64 folders and are set to Copy Always (they seem to
be copied to the lib folder).

Trace
Turned on verbose mode tracing. The trace below is based on one execution
attempt (I tried to attach a text file but the site said: "We don't support
that file type"). Apologies for the long trace
Tesseract Information: 0 : Current OS: Windows
Tesseract Information: 0 : Current platform: x86
Tesseract Information: 0 : Custom search path is not defined, skipping.
Tesseract Information: 0 : Checking executing application domain location
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET
Files\root\99b032d6\fb07eb9\assembly\dl3\26c8fcd5\00342a46_d765d101' for
'liblept172.dll' on platform x86.
Tesseract Information: 0 : Checking current application domain location
'C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One' for 'liblept172.dll' on
platform x86.
Tesseract Information: 0 : Trying to load native library
"C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll"...
Tesseract Information: 0 : Successfully loaded native library
"C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll", handle
= 325451776.
Tesseract Information: 0 : Trying to load native function
"pixaReadMultipageTiff" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixaReadMultipageTiff", function handle = 325469402.
Tesseract Information: 0 : Trying to load native function "pixaGetCount"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixaGetCount", function handle = 325462092.
Tesseract Information: 0 : Trying to load native function "pixaGetPix"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixaGetPix", function handle = 325455972.
Tesseract Information: 0 : Trying to load native function "pixaDestroy"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixaDestroy", function handle = 325456927.
Tesseract Information: 0 : Trying to load native function "pixCreate" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixCreate", function handle = 325465967.
Tesseract Information: 0 : Trying to load native function "pixClone" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixClone",
function handle = 325466612.
Tesseract Information: 0 : Trying to load native function "pixDestroy"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixDestroy", function handle = 325466382.
Tesseract Information: 0 : Trying to load native function "pixGetWidth"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetWidth", function handle = 325460622.
Tesseract Information: 0 : Trying to load native function "pixGetHeight"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetHeight", function handle = 325460452.
Tesseract Information: 0 : Trying to load native function "pixGetDepth"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetDepth", function handle = 325464312.
Tesseract Information: 0 : Trying to load native function "pixGetXRes"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetXRes", function handle = 325463887.
Tesseract Information: 0 : Trying to load native function "pixGetYRes"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetYRes", function handle = 325463882.
Tesseract Information: 0 : Trying to load native function
"pixGetResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetResolution", function handle = 325469492.
Tesseract Information: 0 : Trying to load native function "pixGetWpl" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetWpl", function handle = 325466032.
Tesseract Information: 0 : Trying to load native function "pixSetXRes"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSetXRes", function handle = 325463907.
Tesseract Information: 0 : Trying to load native function "pixSetYRes"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSetYRes", function handle = 325463902.
Tesseract Information: 0 : Trying to load native function
"pixSetResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSetResolution", function handle = 325465697.
Tesseract Information: 0 : Trying to load native function
"pixScaleResolution" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixScaleResolution", function handle = 325467282.
Tesseract Information: 0 : Trying to load native function "pixGetData"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetData", function handle = 325469052.
Tesseract Information: 0 : Trying to load native function
"pixGetInputFormat" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetInputFormat", function handle = 325467712.
Tesseract Information: 0 : Trying to load native function
"pixSetInputFormat" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSetInputFormat", function handle = 325459102.
Tesseract Information: 0 : Trying to load native function
"pixEndianByteSwap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixEndianByteSwap", function handle = 325468587.
Tesseract Information: 0 : Trying to load native function "pixRead" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixRead",
function handle = 325467527.
Tesseract Information: 0 : Trying to load native function "pixReadMemTiff"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixReadMemTiff", function handle = 325472137.
Tesseract Information: 0 : Trying to load native function "pixWrite" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixWrite",
function handle = 325466617.
Tesseract Information: 0 : Trying to load native function "pixGetColormap"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixGetColormap", function handle = 325464692.
Tesseract Information: 0 : Trying to load native function "pixSetColormap"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSetColormap", function handle = 325468467.
Tesseract Information: 0 : Trying to load native function
"pixDestroyColormap" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixDestroyColormap", function handle = 325465782.
Tesseract Information: 0 : Trying to load native function
"pixConvertRGBToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixConvertRGBToGray", function handle = 325460777.
Tesseract Information: 0 : Trying to load native function
"pixDeskewGeneral" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixDeskewGeneral", function handle = 325460177.
Tesseract Information: 0 : Trying to load native function "pixRotate" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixRotate", function handle = 325466312.
Tesseract Information: 0 : Trying to load native function "pixRotateOrth"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixRotateOrth", function handle = 325468177.
Tesseract Information: 0 : Trying to load native function
"pixOtsuAdaptiveThreshold" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixOtsuAdaptiveThreshold", function handle = 325468767.
Tesseract Information: 0 : Trying to load native function
"pixSauvolaBinarize" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSauvolaBinarize", function handle = 325463922.
Tesseract Information: 0 : Trying to load native function
"pixSauvolaBinarizeTiled" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixSauvolaBinarizeTiled", function handle = 325461412.
Tesseract Information: 0 : Trying to load native function "pixScale" from
the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function "pixScale",
function handle = 325466597.
Tesseract Information: 0 : Trying to load native function "pixcmapCreate"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCreate", function handle = 325462397.
Tesseract Information: 0 : Trying to load native function
"pixcmapCreateRandom" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCreateRandom", function handle = 325460482.
Tesseract Information: 0 : Trying to load native function
"pixcmapCreateLinear" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCreateLinear", function handle = 325460392.
Tesseract Information: 0 : Trying to load native function "pixcmapCopy"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCopy", function handle = 325463212.
Tesseract Information: 0 : Trying to load native function "pixcmapDestroy"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapDestroy", function handle = 325464252.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetCount" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetCount", function handle = 325466562.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetFreeCount" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetFreeCount", function handle = 325456837.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetDepth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetDepth", function handle = 325468462.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetMinDepth" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetMinDepth", function handle = 325462157.
Tesseract Information: 0 : Trying to load native function "pixcmapClear"
from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapClear", function handle = 325460977.
Tesseract Information: 0 : Trying to load native function
"pixcmapAddColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapAddColor", function handle = 325466517.
Tesseract Information: 0 : Trying to load native function
"pixcmapAddNewColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapAddNewColor", function handle = 325459832.
Tesseract Information: 0 : Trying to load native function
"pixcmapAddNearestColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapAddNearestColor", function handle = 325464897.
Tesseract Information: 0 : Trying to load native function
"pixcmapUsableColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapUsableColor", function handle = 325468852.
Tesseract Information: 0 : Trying to load native function
"pixcmapAddBlackOrWhite" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapAddBlackOrWhite", function handle = 325460002.
Tesseract Information: 0 : Trying to load native function
"pixcmapSetBlackAndWhite" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapSetBlackAndWhite", function handle = 325456282.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetColor", function handle = 325466527.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetColor32" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetColor32", function handle = 325458992.
Tesseract Information: 0 : Trying to load native function
"pixcmapResetColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapResetColor", function handle = 325457197.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetIndex", function handle = 325466567.
Tesseract Information: 0 : Trying to load native function
"pixcmapHasColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapHasColor", function handle = 325458122.
Tesseract Information: 0 : Trying to load native function
"pixcmapCountGrayColors" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCountGrayColors", function handle = 325462272.
Tesseract Information: 0 : Trying to load native function
"pixcmapCountGrayColors" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapCountGrayColors", function handle = 325462272.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetNearestIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetNearestIndex", function handle = 325459557.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetNearestGrayIndex" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetNearestGrayIndex", function handle = 325466522.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetComponentRange" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetComponentRange", function handle = 325459077.
Tesseract Information: 0 : Trying to load native function
"pixcmapGetExtremeValue" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGetExtremeValue", function handle = 325458877.
Tesseract Information: 0 : Trying to load native function
"pixcmapGrayToColor" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGrayToColor", function handle = 325464607.
Tesseract Information: 0 : Trying to load native function
"pixcmapColorToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapColorToGray", function handle = 325469397.
Tesseract Information: 0 : Trying to load native function
"pixcmapColorToGray" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapColorToGray", function handle = 325469397.
Tesseract Information: 0 : Trying to load native function
"pixcmapToRGBTable" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapToRGBTable", function handle = 325469742.
Tesseract Information: 0 : Trying to load native function
"pixcmapSerializeToMemory" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapSerializeToMemory", function handle = 325465572.
Tesseract Information: 0 : Trying to load native function
"pixcmapDeserializeFromMemory" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapDeserializeFromMemory", function handle = 325460637.
Tesseract Information: 0 : Trying to load native function
"pixcmapGammaTRC" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapGammaTRC", function handle = 325470952.
Tesseract Information: 0 : Trying to load native function
"pixcmapContrastTRC" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapContrastTRC", function handle = 325462497.
Tesseract Information: 0 : Trying to load native function
"pixcmapShiftIntensity" from the library with handle 325451776...
Tesseract Information: 0 : Successfully loaded native function
"pixcmapShiftIntensity", function handle = 325460387.
Tesseract Information: 0 : Current platform: x86
Tesseract Information: 0 : Custom search path is not defined, skipping.
Tesseract Information: 0 : Checking executing application domain location
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET
Files\root\99b032d6\fb07eb9\assembly\dl3\26c8fcd5\00342a46_d765d101' for
'libtesseract304.dll' on platform x86.
Tesseract Information: 0 : Checking current application domain location
'C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One' for 'libtesseract304.dll'
on platform x86.
Tesseract Information: 0 : Trying to load native library
"C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\libtesseract304.dll"...
Tesseract Information: 0 : Successfully loaded native library
"C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\libtesseract304.dll",
handle = 329383936.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIAnalyseLayout" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIAnalyseLayout", function handle = 329706928.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIClear" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIClear", function handle = 329706560.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPICreate" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPICreate", function handle = 329709952.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIDelete" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIDelete", function handle = 329709920.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIDetectOS" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIDetectOS", function handle = 329706368.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetBoolVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetBoolVariable", function handle = 329709264.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetDoubleVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetDoubleVariable", function handle = 329709184.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetHOCRText" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetHOCRText", function handle = 329706736.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetIntVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetIntVariable", function handle = 329709344.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetIterator" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetIterator", function handle = 329706784.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetPageSegMode" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetPageSegMode", function handle = 329707728.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetStringVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetStringVariable", function handle = 329709104.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetThresholdedImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetThresholdedImage", function handle = 329707312.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIGetUTF8Text" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIGetUTF8Text", function handle = 329706752.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIInit4" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIInit4", function handle = 329708688.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIMeanTextConf" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIMeanTextConf", function handle = 329706688.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPIRecognize" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPIRecognize", function handle = 329706912.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetDebugVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetDebugVariable", function handle = 329709424.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetImage2" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetImage2", function handle = 329707536.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetInputName" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetInputName", function handle = 329709840.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetPageSegMode" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetPageSegMode", function handle = 329707760.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetRectangle" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetRectangle", function handle = 329707440.
Tesseract Information: 0 : Trying to load native function
"TessBaseAPISetVariable" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessBaseAPISetVariable", function handle = 329709504.
Tesseract Information: 0 : Trying to load native function
"TessDeleteBlockList" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessDeleteBlockList", function handle = 329710688.
Tesseract Information: 0 : Trying to load native function
"TessDeleteIntArray" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessDeleteIntArray", function handle = 329710720.
Tesseract Information: 0 : Trying to load native function "TessDeleteText"
from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessDeleteText", function handle = 329710784.
Tesseract Information: 0 : Trying to load native function
"TessDeleteTextArray" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessDeleteTextArray", function handle = 329710736.
Tesseract Information: 0 : Trying to load native function "TessVersion"
from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessVersion", function handle = 329710800.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorBaseline" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorBaseline", function handle = 329705472.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorBegin" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorBegin", function handle = 329705760.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorBlockType" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorBlockType", function handle = 329705568.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorBoundingBox" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorBoundingBox", function handle = 329705616.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorCopy" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorCopy", function handle = 329705776.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorDelete" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorDelete", function handle = 329705808.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorGetBinaryImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorGetBinaryImage", function handle = 329705552.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorGetImage" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorGetImage", function handle = 329705520.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorIsAtBeginningOf" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorIsAtBeginningOf", function handle = 329705696.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorIsAtFinalElement" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorIsAtFinalElement", function handle = 329705664.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorNext" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorNext", function handle = 329705728.
Tesseract Information: 0 : Trying to load native function
"TessPageIteratorOrientation" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessPageIteratorOrientation", function handle = 329705440.
Tesseract Information: 0 : Trying to load native function
"TessResultIteratorCopy" from the library with handle 329383936...
Tesseract Information: 0 : Successfully loaded native function
"TessResultIteratorCopy", function handle = 329705200.
Tesseract Information: 0 : Trying to load native function
"TessResultIteratorDelete" from the library with handle 329383936...
-- Again the log is from one run (one attempt to execute the single line
of code listed at the start of this post).
Conclusion
I am a very experienced programmer (have done win32 to cloud). I spent
about 5 hours trying to get this to work without success. One thing I
notice is that the log seems to end on TessResultIteratorDelete, and in
some cases it starts to print the next line but stops midway (prints
"Tesseract Information: 0 : Successfully", or "Tesseract Information: 0 :
S").
Any help that you can offer would be greatly appreciated (the more
specific the better).
Thank you very much again.
Best,
Conrad
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/318, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyPb7KW6g6m7pE5HhORKHByTo19EIks5rdTZ4gaJpZM4MD5r6
.

Charles,
Thank you for the fast response!
It works!
I had tried that before but changed it while trying other things.
Below is a summary the issues (or gotchas) that I encountered and how resolved:
Initially I couldn't get it to work so I experimented with settings.

I had tried multiple versions of the Tesserat Nuget package. So I needed to double-check that the correct versions of the assemblies were in the x86 and x64 folders. I did this by downloading the latest source (in my case tesseract-3.0.2.zip) and getting the latest assemblies from the "..src\lib\TesseractOcr" x64 and x86 folders.

The rest of the checklist is as follows:

Make sure that the assemblies in the x86 and x64 are set to "Copy Always" (right-click the file in Visual Studio, open the properties dialog, and set the property).

Make sure that the language files are in the Visual Studio project, match the Tesserat Nuget package version, and are set to "Copy Always".

Use the following include statement and code to set the path to tessdata:

using System.Web.Hosting;
string tessPath = HostingEnvironment.MapPath(@"~/tessdata");

Make sure that the code includes: using System.Drawing; (otherwise an error occurs saying that a bitmap is being used by not referenced).

Again, thank you very much for your help. This looks like a great library! I cannot wait to try it out!!
Best,
Conrad

By the way is there documentation that lists functions in the library and their use?
For example, I would like to open a PDF and read it, but don't know what function to use..
Thanks again!

Most of the functions are documented using XML comments so VS should
provide some explanation through the auto complete and it would be possible
to generate some API doco from said comments. Otherwise check this issue
tracker and/or stack overflow for anything more specific.
In regards to pdf support, that's currently only supported in the
prerelease version and only supports generation of pdf (image + searchable
text) not reading pdf. In your case you'll need to find another library to
load the PDF and extract any contained image for processing.
On Fri, 17 Feb 2017, 17:56 Conrad-S, notifications@github.com wrote:

By the way is there documentation that lists functions in the library and
their use?
For example, I would like to open a PDF and read it, but don't know what
function to use..
Thanks again!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/318#issuecomment-280570159,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyAG4WFMGMAxUHRkabyu-TqpfBMXDks5rdUSxgaJpZM4MD5r6
.

Thanks. Nothing is documented in Visual Studio, but auto-complete (intellisense) does work. I can probably use object browser to view the methods, but it would be good to have a document somewhere with the list of methods and their use (also helps to understand overall functionality).
I didn't realize that it cannot extract images from pdf's; that was my main purpose. Do you know of a .NET library that can extract the images? Thanks again!!

Mmm the XML document file mustn't be being included property in the nuget
package.
Anyway in regards to handling PDFs I'm not really sure what's available
these days for .net. That being said, as of a couple years ago, a good
stable open source option was itextsharp though it's no longer free for
commercial use. However there are still copies of the code available before
the license was changed but I'm not aware of anyone actively maintaining
these forks.
On Fri, 17 Feb 2017, 18:18 Conrad-S, notifications@github.com wrote:

Thanks. Nothing is documented in Visual Studio, but auto-complete
(intellisense) does work. I can probably use object browser to view the
methods, but it would be good to have a document somewhere with the list of
methods and their use (also helps to understand overall functionality).
I didn't realize that it cannot extract images from pdf's; that was my
main purpose. Do you know of a .NET library that can extract the images?
Thanks again!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/318#issuecomment-280573566,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyKgNDDkoOeg9G8noVzipga8E7EgSks5rdUm1gaJpZM4MD5r6
.

You can get the old version from nuGet
https://www.nuget.org/packages/iTextSharp-LGPL/

Thanks again! This is great software.
By the way I notice that it always seems to load the 32-bit version. I even tried setting the MapPath.
Tesseract.TesseractEnviornment.CustomSearchPath = HostingEnvironment.MapPath(@"~/x64");
Do you know how to convince it to load the 64-bit DLL?
Tesseract Information: 0 : Current OS: Windows
Tesseract Information: 0 : Current platform: x86
Tesseract Information: 0 : Custom search path is not defined, skipping.
Tesseract Information: 0 : Checking executing application domain location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\99b032d6\fb07eb9\assembly\dl3\8760118f\00342a46_d765d101' for 'liblept172.dll' on platform x86.
Tesseract Information: 0 : Checking current application domain location 'C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One' for 'liblept172.dll' on platform x86.
Tesseract Information: 0 : Trying to load native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll"...
Tesseract Information: 0 : Successfully loaded native library "C:\Projects\SANDBOX\OCR-Test-One\OCR-Test-One\x86\liblept172.dll", handle = 369360896.

I'll answer my own question. Got it to work (Visual Studio 2015; ASP.NET MVC; .NET 452):

Do NOT set Tesseract.TesseractEnviornment.CustomSearchPath
Select Debug -> Options -> Projects and Solutions -> Web Projects.
Select User the 64 bit version of IIS Express for web sites and projects.
Set the debug configuration to x64 (Configuration Manager next to the Debug dropdown)
Restart Visual Studio, open the solution and run.

You may also want to set up a trace file so you can see that it loaded the 64-bit assembly:
<system.diagnostics>

</system.diagnostics>
Don't forget to turn off logging after you are finished (performance).
Hope this helps.

Fail with asp.net core, i've tried exactly path, but still throw exception failed to initalise... Please help me

After banging my head against my desk for 30min, I finally realized the path needs to be to the FOLDER containing the .traineddata files (ie: "c:\tessdata"), not the path to one of the .traineddata files (ie "c:\tessdata\eng.traineddata"). Doh!
Hopefully this saves someone's desk (and head).

Fail with asp.net core, i've tried exactly path, but still throw exception failed to initalise... Please help me

Try using tessdata_fast rather then tessdata version.
Anyone knows how to read data from table in image with this library?

authors: Conrad-S Sicos1977 andimalaj anpham293 charlesw losbear

repo: charlesw/tesseract


text:
bugfix: remove stray endif, revise comments to match

Remove stray  endif, revise comments to match.
Closes issue #3828

On Summit now I can build pamilrts successfully.

authors: davidhardy ericjbohm

repo: charmplusplus/charm


text:
Issue in styling legend in Pie charts

Hi All,
I'm trying to style my pie chart as first image below. But with below code I'm getting as shown in second image. Even I tried the solution as mentioned here 2253. Then no legends are displayed. Also I don't want white border between pies.
I'm using ChartJs 2.4.0 version. Please help me in resolving the issue.
var legend = chartInstance.generateLegend();
document.getElementById("legend").innerHTML = legend;

@nutanlade to get the legend to look like the top image, you're going to need to use some CSS to change the
 elements in the legend.
To remove the border:
data: {
  datasets: [{
    borderWidth: 0
  }]
}

Thanks @etimberg for your quick reply. I'm using angular js code for pie chart. Below is my code for generating pie chart. I'm not able to apply your code to remove border. Is there any default global option to disable?
<canvas id="monthlyExpensesChart" class="chart chart-pie" chart-data="$ctrl.communitytotalCostArray" chart-labels="$ctrl.communityCategoryNamesArray" chart-options="$ctrl.options" chart-legend="true" height="250" chart-colors="$ctrl.colors">                                 </canvas>
Also for legend now it showing like square but color is black. How can I get pie colors to populate legend labels?

@nutanlade the global border option would be Chart.defaults.global.elements.arc.borderWidth
For the legend, you would need to style the
 elements with CSS. You would probably want to set the first one to the first color. I think something like the following would work.
#legend > li:nth-child(0) {
  color: red;
}

#legend > li:nth-child(1) {
  color: yellow;
}

#legend > li:nth-child(2) {
  color: blue;
}

Controller:
Create an object of legend items with color & label :
# Chart conf
scope.chart = []
scope.chart.labels = ['Food', 'Fuel']
scope.chart.colors = ['red', 'yellow']

# Legend
scope.legend = []
for label, i in scope.chart.labels
    scope.legend[i] =
      title: label
      color: scope.chart.colors[i]

(it's coffee script, use http://js2.coffee/ if you want a translation)
HTML:
Loop on legend items to display them and you can do whatever you want with styles

          <canvas beautiful-chart chart-type="::chart.type" chart-options="::chart.options" chart-datasets="::chart.datasets" chart-labels="chart.labels" chart-data="chart.data"></canvas>
          <canvas id="monthlyExpensesChart" class="chart chart-pie" chart-data="communitytotalCostArray" chart-labels="communityCategoryNamesArray" chart-options="options" height="250" chart-colors="colors"></canvas>

              {{::item.title}}

Result
You should see something like that

Thanks @etimberg and @frlinw . Issue resolved. I disabled tooltips but while hovering on chart color is changing which I don't want. I tried below option but didn't worked.
showTooltips: false

@nutanlade to turn off hover you can do
options: {
  hover: {
    mode: false
  }
}

Thanks @etimberg. Issue resolved.

authors: etimberg frlinw nutanlade


text:
Circular gradiant

Hi all, (thanks for that awesome lib)
I am using Chart.js v3 and I am trying to create a gradient
My fiddle is here:
https://jsfiddle.net/1wfd2ztx/1/
What I would like to do is to start at top center with the green and finish with the red at top center too with a gradient
And ++ draw with red under the green if the percent is more than 100

@dcyou this is a very interesting question! A radial gradient is probably not the right solution here since it changes colour as you move out from a center point. You probably want something more akin to a SweepGradient but as far as I am aware, nothing like this exists natively. If this were WebGL, a custom shader would be pretty trivial to write.
The best idea I have at the moment is to draw the colour pattern you want on another canvas (handling resize accordingly) then create a CanvasPattern from that canvas and set that as the background colour of the dataset.
This is quite intriguing. I'll try and prototype something out and see where I get.

@dcyou got a working implementation. Generates a CanvasPattern using webgl then renders that as the background image. I don't think the plugin part is entirely correct. I suspect on resize it may be wrong, but have not attempted to test it.
https://jsfiddle.net/6d0gv7w9/

awesome! @etimberg thanks a lot I will have a look

Played around with @etimberg's fiddle and applied some changes: https://jsfiddle.net/x1t38f7v/
Precicely, multiplied the webgl canvas size by devicePixelRatio and changed the plugin implementation to beforeDatasetsUpdate hook.

very interesting too
question:

do you know why at bottom we have the blank?

do you know why at bottom we have the blank?

I'm guessing you have a devicePixelRatio greater than 1? Does that appear in the fiddle where I multiplied the canvas size with it?

i actually don't think devicePixelRatio needs to be used. chart.chartArea will already include the devicePixelRatio since we up the size of the canvas by it inside of https://github.com/chartjs/Chart.js/blob/531d4c09bf5778274d362eaf1f5dd17a9a08ec7b/src/helpers/helpers.dom.js#L148-L149

authors: dcyou etimberg kurkle


text:
refactor: replace Math.pow in favor of the ** operator

friendly PR to improve readability
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.codemods.cleanup.PreferExponentiationOperator?organizationId=UG9wdWxhciBKYXZhU2NyaXB0

I find the Math.pow more readable myself and would be against this change

authors: LeeLenaleee zieka


text:
Unable to login with chat sdk

Is the bug present in the demo Chat SDK project?
Yes

What modifications have you made to the Chat SDK?
None

Android Version:
11

Steps taken to reproduce the problem:
Insert username and password and press register

Expected result:
Register user and enter profile screen

Actual result:
Authentication progress bar keeps spinning "forever"

Comments:

I have been trying to integrate this chat sdk on my app for some time, but cant seem to go through the authentication
Took a look at logcat and it seems that something is failing. I even tried to register in the example android app, but it doesn't go through. The logs obtained are the ones below:
2022-06-09 12:47:26.960 10270-10318/sdk.chat.android.live W/System: Ignoring header X-Firebase-Locale because its value was null.
2022-06-09 12:47:27.495 10270-10318/sdk.chat.android.live W/System: Ignoring header X-Firebase-Locale because its value was null.
2022-06-09 12:47:27.696 10270-10318/sdk.chat.android.live D/FirebaseAuth: Notifying id token listeners about user ( bTlcQnKU0AQ1ClDop8lhrSRukS63 ).
2022-06-09 12:47:27.696 10270-10318/sdk.chat.android.live D/FirebaseAuth: Notifying auth state listeners about user ( bTlcQnKU0AQ1ClDop8lhrSRukS63 ).
2022-06-09 12:47:27.718 10270-10577/sdk.chat.android.live I/greenDAO: Creating tables for schema version 20
2022-06-09 12:47:27.743 10270-10577/sdk.chat.android.live I/System.out: 2022-06-09 12:47:27 [RxComputationThreadPool-1] sdk.chat.core.dao.DaoCore.openDB()
2022-06-09 12:47:27.743 10270-10577/sdk.chat.android.live I/System.out: INFO: Database: e92eded1acf5e51967b47107e633e719 setup correctly
2022-06-09 12:47:27.743 10270-10577/sdk.chat.android.live I/System.out: 2022-06-09 12:47:27 [RxComputationThreadPool-1] sdk.chat.firebase.adapter.FirebaseAuthenticationHandler.lambda$authenticateWithUser$9$FirebaseAuthenticationHandler()
2022-06-09 12:47:27.743 10270-10577/sdk.chat.android.live I/System.out: INFO: authenticateWithUser: bTlcQnKU0AQ1ClDop8lhrSRukS63
2022-06-09 12:48:08.817 10270-10631/sdk.chat.android.live V/FA: Connecting to remote service
2022-06-09 12:48:08.841 10270-10631/sdk.chat.android.live D/FA: Connected to remote service
2022-06-09 12:48:08.842 10270-10631/sdk.chat.android.live V/FA: Processing queued up service tasks: 1
2022-06-09 12:48:08.854 10270-10627/sdk.chat.android.live W/System: Ignoring header If-None-Match because its value was null.
2022-06-09 12:48:13.859 10270-10631/sdk.chat.android.live V/FA: Inactivity, disconnecting from the service
Thanks in advance

I checked out the current version from Github and I can log in... Have you tried this without connecting it to your Firebase account? Have you enabled the login methods you want to use from the Firebase console?

@letzter I need some more information because I tried it myself and it worked just fine. Can you send me a video?

Here goes the video showing the process that I'm following.
Is it possible that I'm having this problem because I'm running the app on an emulator from android studio instead of a real device, or should it it work as well?
chat-sdk.webm.zip

It is possible. I never test on the emulator. Do you have Google Play services installed? If that were missing it Wouk's cause issues.

@bensmiley the issue was with the emulator. I created a new one in which it all worked out well.
Thank you very much for the support

authors: bensmiley letzter

repo: chat-sdk/chat-sdk-android


text:
update stellar-base dependency

Tried to use the wallet for an angular 6 project and could not build it because the angular cli started complaining about the crypto library.  I then found out that wallet is currently using the stellar-base 0.11. The guys from stellar have removed the crypto library in version 0.13 of the stellar-base sdk which should have fixed the issue. More details can be found here

thanks @Ebioro   i've updated and published new release 0.10.0

you are welcome! I had an open question on stellar stack exchange about this (under yulemata username) I will add there that you guys have updated it and publish a new release!

authors: Ebioro chatch

repo: chatch/stellar-hd-wallet


text:
[FEATURE] 如何接入CustomLLM？

功能描述 / Feature Description
目前只有FastChat支持列表里的LLM才可以接入进来。现在我想试用一个新的模型，没在支持列表里存在，应该如何接入？
解决的问题 / Problem Solved
实现建议 / Implementation Suggestions
项目是否有CustomLLM的计划？或者除了往FastChat中提pr接入新模型外，还有哪种方式可以快速接入一个新的模型？
替代方案 / Alternative Solutions
无
其他信息 / Additional Information
另外，请问FastChat和vLLM两个项目都要集成才可以接入新模型吗？

转成openai的格式接入

转成openai的格式接入

能详细一点吗？能否出个官方demo或者tutorial？谢谢

这个会在0.3.x开放，但是大概率不会有时间做demo，要开发者自行尝试

authors: cauwulixuan zRzRzRzRzRzRzR

repo: chatchat-space/Langchain-Chatchat


text:
在那里能改最大并发数？

用的内网穿透，会经常显示tunnel xxxx not found

程序框架设计的时候没有考虑并发，是顺发的

authors: CingyQ zRzRzRzRzRzRzR


text:
邮箱验证、修改密码报错后，后台服务程序直接退出

请问邮箱验证、发送邮件修改密码报错后，后台服务程序直接退出，怎么处理？谢谢！

请问这个问题解决了吗~ 我也遇到了，所以暂时关闭注册了

repo: chatgpt-web-dev/chatgpt-web


text:
Make operator installable via olm

Signed-off-by: Josh Pinkney joshpinkney@gmail.com
What does this PR do?
This PR prepares everything needed for olm in the older olm format. The Makefile has been modified so that it is easy to load everything onto the cluster and so that you can see che-workspace-operator in the OperatorHub catalog.
The csv was made with make gen_csv except for a few custom things like the alm-examples
What issues does this PR fix or reference?
Is it tested? How?

Deploying the controller with olm
In order to deploy the controller you need to first create the olm image, push it to the application registry on quay and then deploy the crd registry to your cluster.
You can do this by using the Makefile olm_full_start rule:
make olm_full_start

Before doing this you need to set environment variables QUAY_USERNAME, QUAY_PASSWORD, QUAY_NAMESPACE (most likely this is the same as QUAY_USERNAME), CATALOG_IMAGE
You might have to manually create the application registry on quay and set it to public.
To do this, use + in the top right hand corner of quay and click new repository. Then instead of having a Container Image Repository set that dropdown to Application repository and make sure it's public. The repostory name you choose for the application registry must be the same name as you have set in the CATALOG_IMAGE.
If you already have it deployed to the quay application registry then you can just use
make olm_start

to deploy the crd registry to your cluster
To remove the crd registry use
make olm_uninstall

cc: @davidfestal since you're familiar with deploying via OLM.

Why not use the new bundle format as a source, and just export the index in the old format when needed ?
https://github.com/operator-framework/operator-registry/blob/master/docs/design/opm-tooling.md#export

/retest

Yeah at this point I think I'm going to close this PR and then we can transfer the catalogsource to the web-terminal-operator repo

authors: JPinkney amisevsk davidfestal sleshchenko

repo: che-incubator/che-workspace-operator


text:
removed windows_reboot and windows::reboot_handler.

Description
Drops the windows_reboot resource and the windows::reboot_handler recipe.  The no longer exist in the windows cookbook.
Issues Resolved
None that I know of.
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] The CLA has been signed. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

That resource and recipe has been dropped from the windows cookbook. replace windows_reboot with the reboot resource.

I didn't actually intend to have that second commit added into this PR.  Although that being said it is related and fixes the problem of the recipe not actually allowing a reboot to occur.  I was going to make a second PR for it after this got committed.

Updated to address @smurawski comment.

repo: chef-cookbooks/powershell


text:
Make auto_run's root registry key configurable

I recently found myself working on a cookbook for an app that only installs on
a per-user basis, putting all its registry entries under the
HKEY_CURRENT_USER root key instead of HKEY_LOCAL_MACHINE.
This change adds a root property to the windows_auto_run resource,
maintaining the current behavior as a default and allowing support for
user-level applications as well.
Signed-off-by: Jonathan Hartman j@hartman.io

@RoboticCheese If you want to rebase this against master it would be nice to get merged in

@RoboticCheese Ping on a rebase here. I'd love to pull this in before we move this into chef-client so we can pull in this new functionality as well.

Thanks for the reminder about this one. Rebased and updated. Seems to work again, though my Windows is pretty atrophied RN 🤞
       Describing test::autorun
          Context windows_auto_run
           [+] does not auto-run Notepad for the machine 916ms
           [+] auto-runs Wordpad for the current user 95ms
       Tests completed in 1.01s
       Passed: 2 Failed: 0 Skipped: 0 Pending: 0
       Finished verifying <autorun-windows-10> (0m20.17s).

Thanks. I'll get this addition in when we move this into chef with Chef 14

repo: chef-cookbooks/windows


text:
update readme to match resource

Description
Updates documentation to match the resource rule
Issues Resolved
N/A
Check List

[X] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[N/A] New functionality includes testing.
[X] New functionality has been documented in the README if applicable

Thanks


text:
Moved protractor from dependency to dev-dependency

:nut_and_bolt: Description: What code changed, and why?
Signed-off-by: AadeshNichite anichite@progress.com

Moved protractor from dependency to dev-dependency
:chains: Related Resources
https://chefio.atlassian.net/browse/CHEF-7042
:+1: Definition of Done
:athletic_shoe: How to Build and Test the Change
:white_check_mark: Checklist
All PRs must tick these:

[ ] I have read the CONTRIBUTING document.
[ ] All commits signed-off for the Developer Certification of Origin.

With occasional exceptions, all PRs from Progress employees must tick these:

[ ] Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
[ ] Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
[ ] Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
[ ] Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
[ ] Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

[ ] Tests added/updated? (all new code needs new tests)
[ ] Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.
:camera: Screenshots, if applicable

No need to work this, input from @arunjn-progress.

repo: chef/automate


text:
chef clean-policy-revisions command

Adds a subcommand to delete unused policy revisions, and fixes some minor issues with the service class discovered in manual integration testing.

CLI output is like this:
bundle exec bin/chef clean-policy-revisions -c ~/.chef/localserver.rb
DELETE aar 37f9b658cdd1d9319bac8920581723efcc2014304b5f3827ee0779e10ffbdcc9
DELETE aar 5c5922d9febb3ee758c60b0bdd423185c7a4e88450c4fdf0cf90450cfcbfe88a
DELETE aar 7a812b7e7570b93b6672e8befab0423be68f8b44109adb5eb0d3cd9a044504c8
DELETE aar d81e80ae9bb9778e8c4b7652d29b11d2111e763a840d0cadb34b46a8b2ca4347
DELETE aar e67f1b04a055017e7de02acb166e2ab18b4682313f381fae6e2fa8f4bc7db4ae
DELETE jenkins 613f803bdd035d574df7fa6da525b38df45a74ca82b38b79655efed8a189e073
DELETE jenkins 6fe753184c8946052d3231bb4212116df28d89a3a5f7ae52832ad408419dd5eb
DELETE jenkins 9c2cae07a5c68ae0ab7d06165e90ded1325a8b0ca94d78cfc2efa4dcfea36244
DELETE jenkins cc1a0801e75df1d1ea5b0d2c71ba7d31c539423b81478f65e6388b9ee415ad87
DELETE jenkins cec985e916690e82c792114c5b10a4e4694981804bcbc5ff89556e6709c28ec1

repo: chef/chef-dk


text:
Test

Note: GitHub integration record type. Please leave out any sensitive information.Job to be Done:
As an ,
I want to
So that <reason for needing job/benefit>

Description:

Acceptance Criteria:

Aha! Link: https://chef.aha.io/features/INFRA-1

sdfsadfsdf

repo: chef/chef


text:
Use a real KDF for data bag encryption secrets

Currently we use a single round of SHA256 for deriving the actual AES key. This is okay, but it would be better to use a real-er key derivation function some day like PBKDF2 or if we want to be really fancy, Argon2. This would require a new encryptor version most likely so it will probably take a while to get this in.

Just for the sake of prioritization I can't think of an attack where this would matter so probably can put it off until such time as we're making a v4 encryption for another reason and just slide it in for extra crypto points.

I'm going to close this out at this point since the future of secrets management in Chef Infra Client is not encrypted data bags.


text:
I want to run a single category dataset. How can I set it to a single category

I want to run a single category dataset. How can I set it to a single category
please tell me, thank eyeryone!!!!!!!!

./examples/train_ssl_abdominal_ct.sh
train_SABS_Superpix_lbgroup0_scale_MIDDLE_vfold0
WARNING - root - Changed type of config entry "min_fg_data" from str to int
INFO - mySSL - Running command 'main'
INFO - mySSL - Started run with ID "12"
INFO - main - ###### Create model ######
NETWORK: Using ms-coco initialization
INFO - main - ###### Load data ######
INFO - main - ###### Labels excluded in training : [2, 3] ######
INFO - main - ###### Unseen labels evaluated in testing: [2, 3] ######
Dataset: the following classes has been excluded [2, 3]######
DEBUG_DATASET CT_STATS NORMALIZED MEAN 0.2503295103060257 STD 0.22380904778564215
Initial scans loaded:
['7', '8', '9', '10', '11', '12']
INFO - main - ###### Set optimizer ######
INFO - main - ###### Training ######
INFO - main - ###### This is epoch 0 of 100 epoches ######
/home/wangyixiong/anaconda3/envs/self/lib/python3.7/site-packages/torch/nn/functional.py:2973: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
"See the documentation of nn.Upsample for details.".format(mode))
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
Faulty batch detected, skip
^CWARNING - mySSL - Aborted after 0:00:20!
Traceback (most recent call last):
File "training.py", line 30, in
@ex.automain
File "/home/wangyixiong/anaconda3/envs/self/lib/python3.7/site-packages/sacred/experiment.py", line 140, in automain
self.run_commandline()
File "/home/wangyixiong/anaconda3/envs/self/lib/python3.7/site-packages/sacred/experiment.py", line 263, in run_commandline
return self.run(cmd_name, config_updates, nam

I am also getting  "Faulty batch detected, skip". How to fix this?