text:
Unable to process buying and selling Future contracts

The following entries could not be processed with the error ValueError(f'Unknown openclose: {openclose}'):
03/04/2024 02:16 PM,Trade,Sell,/CLJ4,Sell,Sell,1,,,,160,1.820,-160,Sold 1 /CLJ4 @ 79.53,Individual...39
03/04/2024 02:12 PM,Trade,Buy,/CLJ4,Buy,Buy,1,,,,0,1.820,0,Bought 1 /CLJ4 @ 79.69,Individual...39

I created the line with the legacy.py referenced from issue #39. But I guess it would also not be processed successfully by the script.
New Format would look like:
2024-03-04T14:16:27+0100,Trade,Sell,SELL,/CLJ4,Future,Sold 1 /CLJ4 @ 79.53,-160.00,1,-160.00,-1.25,-1.82,,,,,,,310910163,USD
2024-03-04T14:12:32+0100,Trade,Buy,BUY,/CLJ4,Future,Bought 1 /CLJ4 @ 79.69,0.00,1,0.00,-1.25,-1.82,,,,,,,310909959,USD

I ran your transactions with the adjusted code for reading the new Tasty data format. There was no issue. It has been processed successfully. So we should may be wait until the Pull Request #24 is incorporated.

/CL seems to be included with a multiplier of 1000. I've not looked at this issue in detail.
Can you test this again and report back if the current version works ok or if this issueis still open?
Thanks a lot,
Florian La Roche

authors: MiErnst laroche quantx-heiko

repo: laroche/tastyworks-pnl


text:
Specify user and channel.

Fix CI configuration.

Thanks, I updated the CI scripts using the recommended way with conan create command, also updated the example, now by default, the library is not requiring google test, because it doesn't need it, is the test_package the one requiring the testing library.
In the README I also have commented that a different approach is use the build_requires feature to require gtest in the main package (will be retrieved only when need to rebuild) and run the tests as the last step of the build() method. In that case, the test_package folder doesn't need to require gtest, just create an example of execution of the encryption library.

source: gharchive/pull-request

authors: lasote sheeeng

repo: lasote/conan-gtest-example

license: MIT

license_type: permissive

license_source: github-api


text:
JavaScript Developer Experience 🎥 ✨ 🚫

The development environment supports modern JavaScript development tools and practices.

Subsumed by #2

There's a difference between project features of the Jali project itself (housekeeping) and of projects that use Jali. The former will have a feature code of [devenv] and the latter, this epic, [dev].

source: gharchive/issue

repo: latticework/jali

license: mit

license_source: bigquery


text:
docs(guides/best-practices/deployment-settings): first version

To be merged after https://github.com/latticexyz/mud/pull/2764 .

@alvrs , can you reapprove, now I did what doesn't work in the Middle East (I resolved conflicts).

repo: latticexyz/mud


text:
Dynamic SQLx queries offline mode + regular [QUESTION]

I am having trouble building a binary with the sqlx crate in rust. I tried running offline mode using sqlx to ignore the db connection for the initial compilation, however I need the DATABASE_URL var set for my postgres cluster in kubernetes. I do the following:
run cargo build --release
use the env variables in my local host to point to my local host postgres (works fine)
run /bin/crate name in my docker file
however, when i try:
run cargo build --release
use the env variables in my KUBERNETES cluster that point to my KUBERNETES postgres a. build fails because there is a "unresolved host"
run /bin/crate name in my docker file
Keep in mind SQLx checks queries during compilation.
Im sure this might be a networking issue where my docker runtime build is in the local host rather than the kubernetes environment. Is there a work around ? How can I build this in a kubernetes virtual env from the cargo build compilation ?
My initial approach is to create a kubernetes pod as a workspace, and run docker build ... -network="host" from inside the pod to have access to the node(s) dns to allow successful query compilation checks.
Does sqlx support this at the moment ? In other words, ignorning the db connection and then using it later on ? Again I want to run sqlx in my kubernetes environment however, when i build off my local host I get a "hostname not found" because I am building my docker image on my local machine that is looking for the kubernetes postgres internal uri
rust env: rustc 1.47.0 (18bf6b4f0 2020-10-07) macosx sqlx 0.3

You can force sqlx to build offline by setting SQLX_OFFLINE=1

got it, thanks !

Actually it has to be SQLX_OFFLINE=true since #732. That PR should probably have updated the documentation :sweat_smile:

Fix in #776.

authors: NyxCode Yepez1997 jplatte

repo: launchbadge/sqlx


text:
channel generator

Be nice to generate a livestate channel without all the unneeded stuff that comes from phoenix channel generator

Done in #17


text:
serial data for software

I came across this so called 'LXARDOSCOPE', which uses an arduino uno to input signals to the software for Linux and I think this is a really nice enhancement for this project.

I wrote tiny_scope to be a cheap portable scope but this might indeed be a good option to have.
thanks


text:
Update the 'Why GetNighthawk' section on the home page

Currently, the 'Why GetNighthawk' section on the homepage is not according to the Figma design.

The section should be modified according to the Figma design given  - https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs?node-id=2650%3A4236

Environment:

OS: [e.g. Ubuntu]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]
Device: [e.g. laptop, iPhone 8]

Contributor Resources

See the Contributing to getnighthawk.dev Website
See the Project Site section of GetNighthawk project doc

Thanks for opening this issue


text:
Running mesheryctl should show usage information

Description
Running mesheryctl without any arguments outputs empty lines
Expected Behavior
Running mesheryctl without arguments should show usage information (just like mesheryctl -h does)
Enviroment:

OS: macos
Browser: n/a
Version:

Client Version: 0.3.10
Server Version: 0.3.10
GitSHA:07ca1f461b0c7a2bd3f4b943b56257a7f332ce89

Great call,  @peterj 👍

@subhamkrai thanks for grabbing this one. Is this something that you might demo on today’s call?

Thank you, @ashis

@leecalcote sir, should i close this issue??

Please, yes, @ashiscs. I think we're good to go here.

authors: ashiscs leecalcote peterj


text:
[component] Tooltip Icon

Notes for Reviewers
This PR fixes #376
Signed commits

[ ] Yes, I signed my commits.

oh okay got it, i made pr i thought it was required for that same quick

I will make this tooltip as the tooltip we use for information across modals

@sudhanshutech you didn't answer @nebula-aac's question.

I will make this tooltip as the tooltip we use for information across modals

@sudhanshutech you didn't answer @nebula-aac's question.

yes, its done now

@sudhanshutech there are two different tooltips being used in Meshery UI.
@iArchitSharma should have recently filed an issue on this that he can link here. Let's consolidate to the better looking of the two, which should be the Sistent tooltip. Hopefully, this is the good-looking tip.

Link to issue - https://app.clickup.com/t/86cuqu3qm
@sudhanshutech

thanks @iArchitSharma i will take a look on the task

authors: iArchitSharma leecalcote sudhanshutech


text:
replicated rows for USA total data

I am observing that at least for the US it is repeated twice
USA repeated twice with two country codes US and USA
test code in python -->
df = pd.read_csv("http://blog.lazd.net/coronadatascraper/data.csv",parse_dates=True) df[(df["cases"]>1e4)&df["country"].str.contains("US")]
Data base i am observing, with said code -->
'\n  \n    \n      \n      city\n      county\n      state\n      country\n      cases\n      deaths\n      recovered\n      tested\n      active\n      population\n      lat\n      long\n      url\n      maintainers\n      rating\n      tz\n      featureId\n      sources\n      curators\n    \n  \n  \n    \n      199\n      NaN\n      NaN\n      NaN\n      US\n      53740.0\n      706.0\n      NaN\n      NaN\n      53034.0\n      326625791.0\n      45.119614\n      0.761872\n      https://github.com/CSSEGISandData/COVID-19\n      [{"name":"Larry Davis","email":"lazdnet@gmail....\n      0.414634\n      ["Europe/Paris"]\n      192.0\n      NaN\n      NaN\n    \n    \n      375\n      NaN\n      NaN\n      NY\n      USA\n      25665.0\n      210.0\n      NaN\n      91270.0\n      25455.0\n      19453561.0\n      42.760805\n      -75.840971\n      https://covidtracking.com/api/states\n      NaN\n      0.341463\n      ["America/New_York"]\n      353.0\n      NaN\n      [{"name":"The COVID Tracking Project","url":"h...\n    \n    \n      396\n      NaN\n      NaN\n      NaN\n      USA\n      53192.0\n      709.0\n      NaN\n      367710.0\n      52483.0\n      326625791.0\n      45.119614\n      0.761872\n      https://covidtracking.com/api/states\n      NaN\n      0.341463\n      ["Europe/Paris"]\n      192.0\n      NaN\n      [{"name":"The COVID Tracking Project","url":"h...\n    \n    \n      2513\n      New York City\n      NaN\n      NY\n      USA\n      14904.0\n      NaN\n      NaN\n      NaN\n      14904.0\n      8398748.0\n      40.706840\n      -73.978335\n      https://coronavirus.health.ny.gov/county-count...\n      NaN\n      0.463415\n      ["America/New_York"]\n      2453.0\n      NaN\n      NaN\n    \n  \n'

Seems covidtracking data is also aggregated for cross referencing / fallback purposes.  If you exclude that source does it address your problem?

The US/USA issue is definitely a problem, I can address that.
Otherwise, we have New York City without a county, because the city contains counties, so that's working as designed.

Just pushed a fix for this. Check again after 9PM PST tonight and re-open this issue if you still see duplicate USA/US entires.

authors: cmcjacob lazd raysalem

repo: lazd/coronadatascraper


text:
incorrect predicate for versionOf

I believe there's a type in the predicate used to link to the original version
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/terms/isVersionOf/ defines dcterms:isVersionOf instead of dcterms:versionOf

Hey @nvdk
Not too sure what you're referring to here. Might be missing something myself, but I believe the library is using the correct predicate already: https://github.com/lblod/ldes-producer/blob/master/src/fragmenters/time-fragmenter.ts#L67-L71
PURL('isVersionOf') (IMO somewhat confusingly) returns http://purl.org/dc/terms/IsVersionOf, which is what you correctly state as the expected predicate.
Maybe the confusion comes from the usage of versionOfPath (as opposed to isVersionOfPath) elsewhere in the code (when specifying the LDES feed's metadata)? That's the term used by the LDES spec, which is why it's used here. https://semiceu.github.io/LinkedDataEventStreams/#versioning

I think I confused this library with another one, though I now can't find it anymore 😓 .

authors: nvdk sergiofenoll

repo: lblod/ldes-producer


text:
show total credits as your balance instead of spendable credits

this would involve UI element(s) that communicate how much of your balance is free/spendable, and probably show the spendable amount on mouseover or in light text

this includes an audit of all LBRY Credit inputs and refactor of top balance display of transaction history page

repo: lbryio/lbry-desktop


text:
newline rendering issue between bullets

Newlines between bullets are inserting a
 tag inside of the
 tag which leads to incorrect formatting of bullets.
Noticed this when creating https://lbry.io/faq/startup-troubleshooting originally and I had newlines between the bullets. Removing them fixed the issue but the renderer should be able to handle this situation correctly.

Does this still need to be resolved?

It's a minor annoyance, but sure!

MY browser does not show any <p< in between s. Is there something I am missing?

Is this still an issue? It looks like there is 24px of margin space between list items. Is there a need for newlines within the list items?

I think I fixed this without realizing there was a ticket for it. @tzarebczan can you confirm this issue is resolved?

Nope, still happening and Brinck ran into it recently when creating https://github.com/lbryio/lbry.io/blob/master/content/news/158-LBRY-in-2017-2018.md which had bullets.
To reproduce, edit that file locally to insert new lines between the bullets.

The page source looks like:

Over 100 developers have contributed to the LBRY code base, over 4,000 developers follow the project, and LBRY is continually rated one of the most active projects in blockchain. For example, we’re in the top 20 on CoinGecko, despite it only counting one of several core codebases!

We grew from a lean 5 employees to 14 employees on five continents.

@tzarebczan is this still an issue?

@NetOperatorWibby said its fixed

authors: KamilPiekutowski alyssaoc jsigwart kauffj tzarebczan


text:
claim_list_mine returns empty result

claim_list_mine returns empty result

Any updates on this?

https://github.com/lbryio/lbry/pull/1456

authors: alyssaoc eukreign tzarebczan

repo: lbryio/lbry


text:
Following page does not refresh on tab change / pull down

check other pages also

Wanted to report this as well. The only sure way to refresh the tab is to relaunch the app, after which new entries show up.

authors: anohren tzarebczan

repo: lbryio/odysee-ios


text:
Language display policy

Get all label of the specify language, and those with no language.
Ex:
"english"@en,"none","français"@fr

if "en", will return "english" and "non"

created 4 new methods
/**
	 * Get all the labels for this language
	 * @param lang language of the label
	 * @param includeUnderfined return those who have underfined language
	 * @return
	 */
	public List<String> getLabels(String lang,boolean includeUndefined)
	{
		return getLabels(this.contextResource,lang,includeUndefined);
	}

	/**
	 *
	 * @param r context resource
	 * @param lang
	 * @param includeUnderfined
	 * @return
	 */
	public List<String> getLabels(Resource r,String lang,boolean includeUndefined)
	{
		List<String> labels = new ArrayList<String>();
			StmtIterator s =  r.listProperties(RDFS.label);
			while(s.hasNext())
			{
				Statement st = s.next();
			    if (lang == null)
					// we get them all
					{
						labels.add(st.getLiteral().getValue().toString());
					}
					else
					{
						if ((includeUndefined && (st.getLanguage() == null || st.getLanguage().trim().length() == 0)) || lang.equals(st.getLanguage()))
							labels.add(st.getLiteral().getValue().toString());

					}
			}
			return labels;

	}

	public String getJoinedLabels(Resource r,String lang,boolean includeUndefined,String sep)
	{

		return	StringUtils.join(getLabels(r,lang,includeUndefined),sep);
	}

	public String getJoinedLabels(String lang,boolean includeUndefined,String sep)
	{
		return	StringUtils.join(getLabels(lang,includeUndefined),sep);
	}

in the template, looks like
${model.getJoinedLabels(p, locale, true," | ")}

done commit 1df2872d8d84a5855dd8f305e45e9c18a5524775

repo: lcnp/GSIP


text:
ldaps issue with any node js versions

For some reason I am not able to authenticate securely with AD. I am able to do ldap but not ldaps.
I see two type of errors:

TypeError: Cannot read property 'on' of undefined

Uncaught Exception: unable to get local issuer certificate

I am currently trying Node v8

'use strict';
var AuthStrategy = require('../auth-strategy.js'),
user_profile = require('../user-profile.js'),
passport = require('passport'),
config = require('../../config/auth-strategy-config.json'),
logger = require('../../logger').logger,
ldapConfig = config.active_directory_ldap,
ldap = require('ldapjs'),
ldapurl = 'ldap://' + ldapConfig.host + ':' + ldapConfig.port,
opts = {
base: null,
filter: null,
scope: null,
attributes: null
};
var fs = require('fs');
var tls = require('tls');
var ldap = require('ldapjs');
server: {
url: ldapurl,
searchBase: ldapConfig.userbaseCtxDN,
searchFilter: ldapConfig.userbaseFilter,
adminDn: ldapConfig.bindDN,
adminPassword: ldapConfig.bindCredentials,
searchAttributes: ['mail', ldapConfig.userAttributeID, ldapConfig.displayNameAttr, ldapConfig.securityRolesAttr],
tlsOptions: {
key: fs.readFileSync('../../JBoss/Eo/server/config/aeDCs/eo.net.key'),
cert: fs.readFileSync('../../JBoss/Eo/server/config/aeDCs/eo.net.crt'),
ca: [
fs.readFileSync('../../JBoss/Eo/server/config/aeDCs/dc.crt')
]
}
}
I was even asked to try the following which I did
https://github.com/felixrieseberg/windows-build-tools
Still cannot authenticate

This almost looked like my issue but it didnt help
https://github.com/joyent/node-ldapjs/issues/229

Did you verify AD is properly setup for LDAPS and verify what port it was setup with? (Default is 636)
I only ask because many IT admins do not setup LDAPS by default.

So this application is broken into two. One is a thick client and the other is a web client.
I was able to get the thick client to conenct with LDAPS by installing the DC certs on the server manually. Then I changed the url from ldap://dc/ to ldaps://dc/. That worked and so easy.
For the Web Client its not so easy. With all the Nodejs and JavaScript stuff. What is confusing is that I am able to connect with ldap and not ldaps on the webclient. I have done telnet on port 636 and also connected sucessfully with LDAP Admin to the DCs on 636 using TLS/SSL. I believe the issue is in the ldaps/nodejs on the app.

Is it a self-signed cert and if so is it in a local CA that the Node server is configured with? If not I believe you can by pass it using the Node TLS API for testing purposes. https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
You should be able to use tlsOptions to send it the settings needed to bypass the CA check or you can send it a pem file. Which is shown in the link above.
Should be something like:
const client = ldap.createClient({
    url: 'ldaps://127.0.0.1',
    tlsOptions: {
        rejectUnauthorized: false
    }
  });

My certs are all from our internal CA. So both the server and the DC certs are from our company CA. I have imported my server's cert on the client and made sure SSL 3.0, TLS 1.0, TLS 1.1, and TLS 1.2 are all active in the browser.
So connection should look like this for the handshake Client->Server->DC
If I bypass the CA check, will the app still process LDAPS connection? I ask because we can do LDAP currently but our organization doenst like passing credentials in cleartext. If I can bypass the CA and still process the transaction with LDAPS (port 636) then we will like to try that option.
I get the following errror from the code above
const client = ldap.createClient({
^^^^^^
SyntaxError: Unexpected identifier
Thanks for your reply

Are you making the request from the client / browser or from a Node backend?
Browser app (Like React) -> Nodejs Server -> AD
Browser app (Like React) -> AD
Bypassing the CA check will still allow secure connections, but will not validate the certificate to prevent man in the middle attacks. Think of it like clicking the continue anyway button on browsers when accessing a website that is using a self signed certificate.

Browser app (Chrome) -> Nodejs Server -> AD
That sounds like an option I will like to try. The intranet site is already using port 443 signed by our local CA. The app will never be used on the internet (outside our domain). The only issue is the LDAPS and our security team don't like 389 so if I can bypass the CA check it would help. I wonder if the check is trying to go online to verify.....
/
I got this from our vendor but I wasnt really sure why I needed it but I suspect it had something to do with rebuilding the sqlite3, that the app was complaining about. Also to help register the cert online. We are certainly not experts in this area but we are willing to learn and not give up on trying to make port 636 work. So beware that this might not make sense....
https://github.com/felixrieseberg/windows-build-tools
Python
VC++ Build tools 2015 (freely available from MS)
Make scratch directory, for example
c:\server
Dealing with proxy issue
2.1) Change your NPM configuration to set proxies
npm config edit
proxy=http://:80/ https-proxy=http://:80/
2.2) Allow node to use additional GE certificates Create file e.g. C:\certs\GEcerts.pem
as text file combining GE_External_Certificate1.pem,GE_External_Certificate2.pem
https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file
2.3) Install node-pre-gyp
set NODE_EXTRA_CA_CERTS=C:\certs\GEcerts.pem https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file
npm install node-pre-gyp –g
2.4) Either
1.4.1) directly install Python 2.7.x and VC++ Build tools 2015
OR
1.4.2) let npm do it for you.
From Windows PowerShell (Administrator) session
cd c:\server
set-location env:
new-item -path . -name NODE_EXTRA_CA_CERTS -value C:\certs\GEcerts.pem
This is the Powershell equivalent of set NODE_EXTRA_CA_CERTS=C:\certs\GEcerts.pem https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file
npm install --global --production windows-build-tools https://github.com/felixrieseberg/windows-build-tools
1.5) set PYTHON=...path to python.exe
1.6) From "server" folder
npm install sqlite3 --build-from-source
/
I suspect one of the command lines above goes online to register the local Cert. If I can bypass it that will help.

Unfortunately NodeJS has a set list of CAs and does not use the servers certificate store. You will need to either load in the CA, which it looks like you were trying, or do the CA check bypass. There is some information and even a commit talking about using the servers certificate store, but I have never used it and unsure if it's actually functional.
Next time I'm on-site at my office that has a Windows domain I'll try making a connection using a self signed certificate to see if it goes through smoothly. I don't see why it wouldn't, but I have never used a self signed certificate with this library.
You have probably already double checked these, but do you have port 636 open on the firewall and in this code block are you updating the ldapConfig.port variable to 636 when you change ldap to ldaps?
ldapurl = 'ldap://' + ldapConfig.host + ':' + ldapConfig.port,
The url parse method in ldapjs looks for ldap or ldaps and if no port is passed it will default it to 389 or 636. I normally don't pass it a port unless I'm working with someone who is using a strange port for their LDAP server.

Yes that was what I suspected was happening. I suspected I needed to open firewall to make the registration happen. Our servers are hardened so I need to get through all that later.
Yes I have port 636 opened from the server to the AD. My TELNET works and also LDAP ADMIN works on port 636 using SSL/TLS. The issue might be java script and maybe node area within the app.
I am passing in the following variables:
ldapurl = 'ldap://' + ldapConfig.host + ':' + ldapConfig.port,
and can see that npm is clearly showing:
ldapurl = ldaps://ServerName:636
so ldapurl = ldap://ServerName:389 works just fine.
For now, are you able to help me bypass the CA check and I will deal with the online registry later.

I tried your suggestion above and npm doesn't like it.
const client = ldap.createClient({
url: 'ldaps://127.0.0.1',
tlsOptions: {
rejectUnauthorized: false
}
});
It crashes because I am not a JS programmer. I am not doing something right. Can I list tlsOptions twice?
I already have it in my code block above that is handling all the cert stuff.

No just replace your current TLS options with this one:
tlsOptions: {
    rejectUnauthorized: false
}

If the code you provided above is right it should look something like this:
'use strict';
var AuthStrategy = require('../auth-strategy.js'),
    user_profile = require('../user-profile.js'),
    passport = require('passport'),
    config = require('../../config/auth-strategy-config.json'),
    logger = require('../../logger').logger,
    ldapConfig = config.active_directory_ldap,
    ldap = require('ldapjs'),
    ldapurl = 'ldap://' + ldapConfig.host + ':' + ldapConfig.port,
    opts = {
        base: null,
        filter: null,
        scope: null,
        attributes: null
    };

var ldap = require('ldapjs');

server: {
    url: ldapurl,
    searchBase: ldapConfig.userbaseCtxDN,
    searchFilter: ldapConfig.userbaseFilter,
    adminDn: ldapConfig.bindDN,
    adminPassword: ldapConfig.bindCredentials,
    searchAttributes: ['mail', ldapConfig.userAttributeID, ldapConfig.displayNameAttr, ldapConfig.securityRolesAttr],
    tlsOptions: {
        rejectUnauthorized: false
    }
}

Ok so npm didnt complain during startup. I went to the login page and tried signing in then got the following:
``

ERROR   Fri Apr 13 2018 10:48:34 - TypeError: Cannot read property 'on' of undefined
at setupSocket (D:\JBoss\Eo\server\node_modules\ldapjs\lib\client\client.js:111:15)
at Client._connect (D:\JBoss\Eo\server\node_modules\ldapjs\lib\client\client.js:742:3)
at new Client (D:\JBoss\Eo\server\node_modules\ldapjs\lib\client\client.js:247:22)
at Object.createClient (D:\JBoss\Eo\server\node_modules\ldapjs\lib\client\index.js:60:12)
at new LdapAuth (D:\JBoss\Eo\server\node_modules\passport-ldapauth\node_modules\ldapauth-fork\lib\ldapauth.js:129:28)
at Strategy.handleAuthentication (D:\JBoss\Eo\server\node_modules\passport-ldapauth\lib\passport-ldapauth\strategy.js:
156:10)
at Strategy.authenticate (D:\JBoss\Eo\server\node_modules\passport-ldapauth\lib\passport-ldapauth\strategy.js:200:33)
at attempt (D:\JBoss\Eo\server\node_modules\passport\lib\middleware\authenticate.js:341:16)
at authenticate (D:\JBoss\Eo\server\node_modules\passport\lib\middleware\authenticate.js:342:7)
at Layer.handle [as handle_request] (D:\JBoss\Eo\server\node_modules\express\lib\router\layer.js:82:5)

Well at least the certificate error is gone now. :+1:
What version of ldapjs is in your package.json file?

Based on the error you have and looking at previouse issues it looks like you likely have an old version of ldapjs installed. See #289
If this is the case I would try updating the library, over the time I have used this library I haven't noticed any breaking changes. If it does break something alternatively you could downgrade to the older version of NodeJS if the rest of your app isn't using any of the newer features/API in NodeJS.

I see   "version": "0.7.1",

I added ldapjs to my dependences because I dont see it there per #289 and it still didn't work.
Is my ldapjs too old?
I also have node version 8.11.1

Can you past what your package.json dependencies looks like here?

Yes sure.
"dependencies": {
"asn1": "0.2.1",
"assert-plus": "0.1.5",
"bunyan": "0.22.1",
"nopt": "2.1.1",
"pooling": "0.4.6",
"dtrace-provider": "0.2.8",
"ldapjs": "mcavage/node-ldapjs#acc1ca8f4314fd9d67561feabc8ce4c235076a5e"
},
I just added this yesterday per case #289
"ldapjs": "mcavage/node-ldapjs#acc1ca8f4314fd9d67561feabc8ce4c235076a5e"

The above line from that case is old, the newest version of ldapjs is what you want and will resolve the issue in the case.
The latest version is 1.0.2, I would recommend using the npm update to update your packages. It normally will do all the dirty work for you. https://docs.npmjs.com/cli/update
However I believe you said you did not have any entry for ldapjs in your package.json before this, is that correct? If that is true it must be a dependency of some other library or manually imported.

Yes. Here is what it looked like:
"dependencies": {
"asn1": "0.2.1",
"assert-plus": "0.1.5",
"bunyan": "0.22.1",
"nopt": "2.1.1",
"pooling": "0.4.6",
"dtrace-provider": "0.2.8",
}
I ran npm update and it flashed something and went back to the prompt. Not sure if am suppose to see anything.

Is this an app you or someone in your organization built? Do you know if all the dependencies were installed using npm or did they give you all the node_modules manually?

No our vendor developed the app or maybe third party. I know I have been given ..\server\node_modules\ldapjs folder before to update just to try out things to fix the ldaps issue.
I also see another package.json further up above the folders.
Right now, I see npm is stuck after npm update
SyntaxError: Error parsing D:\JBoss\Eo\server\node_modules\ldapjs\package.json: Unexpected token } in JSON
at position 1232
at JSON.parse ()
at readPackage (module.js:126:52)
at tryPackage (module.js:136:13)
at Function.Module._findPath (module.js:218:20)
at Function.Module._resolveFilename (module.js:545:25)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (D:\JBoss\Eo\server\auth\impl\ldap-ad-auth-strategy.js:8:10)
at Module._compile (module.js:652:30)

You should have a package.json further up in your app, likely in the server\ folder. Is that the package.json you pasted above?
It should look something like this:
yourapp\node_modules
yourapp\package.json

The package.json inside ldapjs folder belongs to the ldapjs library and you typically do not want to touch it.
For reference here is the location of the ldapjs package.json that you wouldn't want to change:
server\node_modules\ldapjs\package.json

No I pasted the one inside of ldapjs folder.

Can you past the one from in server\ folder?

Perfect, okay so here is what I suggest you try doing.

Make a backup of your package.json, you can copy past it to anywhere.
Delete the ldapjs folder inside node_modules server\node_modules\ldapjs
Edit server\package.json and change "ldapjs": "^0.7.1", to "ldapjs": "^1.0.2",
While in the server directory run npm install

Would npm install need internet access or is it local to the server?

It needs internet access, so if the server doesn't have internet you will need to do it on another computer and manually copy the folder.
Give me a minute and I can post a temporary link to download it if you'd like. Just make sure you update your package.json so if anyone needs to install the app again in the future it will have the latest version.

It looks like the dependencies change between versions, I'd copying your app to a thumb drive and installing the dependencies and copying it back to the server.

Update the server\package.json as mentioned above
Backup the node_modules folder, just in case they gave you any custom ones not in the package.json
Delete server\package.json
Copy app to thumb drive
On a computer with NodeJS and internet change to the app directory and run npm install
Copy app back to the server

Ok just to be clear
Step 1 to backup Server\package.json
Step 3 to delete the file package.json from its location
Doing all the steps and I will report back.

I see the updated Server\node_modeules. There are now 138 items in there. The old one was only 47.
But I do not see ldaps folder in there.

Assuming the developers added everything to your package correctly it should automatically install everything needed after you run npm install. If it needed to compile any modules from source you should have gotten an error.
Did you get any errors when you ran npm install or when you tried to run the app after copying it back to the server?

Ok I spoke too soon. There are many errors. I guess am missing ``
`c:\Server>
c:\Server>c:\Server>npm install
'c:\Server' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>
c:\Server>> bcrypt@0.7.8 install c:\Server\node_modules\bcrypt
'install' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>> node-gyp rebuild
'rebuild' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>
c:\Server>'node-gyp' is not recognized as an internal or external command,
''node-gyp'' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>
c:\Server>> dtrace-provider@0.2.8 install c:\Server\node_modules\ldapjs Ori\node_modules\dtrace-provider
'install' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>> node-gyp rebuild
'rebuild' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>
c:\Server>'node-gyp' is not recognized as an internal or external command,
''node-gyp'' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>
c:\Server>> dtrace-provider@0.8.6 install c:\Server\node_modules\dtrace-provider
'install' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>> node-gyp rebuild || node suppress-error.js
'rebuild' is not recognized as an internal or external command,
operable program or batch file.
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\suppress-error.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>
c:\Server>'node-gyp' is not recognized as an internal or external command,
''node-gyp'' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>npm notice created a lockfile as package-lock.json. You should commit this file.
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@0.7.8 (node_modules\bcrypt):
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@0.7.8 install: node-gyp rebuild
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 (node_modules\ldapjs Ori\node_modules\dtrace-provider):
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 install: node-gyp rebuild
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
module.js:549
throw err;
^
Error: Cannot find module 'c:\Server\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
c:\Server>
c:\Server>added 91 packages, removed 460 packages, updated 3 packages and moved 23 packages in 19.655s
'added' is not recognized as an internal or external command,
operable program or batch file.
c:\Server>`

The npm install command is deleting my "c:\Server\node_modules\npm" off the system.

Can you copy past the commands you are running along with what directory you are in?
You should just be in the app root folder and running npm install.
For example using powershell:
PS C:\Users\username> cd /app
PS C:\app> npm install
You should now have a app\node_modules folder and assuming you are using the latest NodeJS a app\package-lock.json file.

Yes sir it went a little further this time. I had to unistall node from c:\server which was were I initially had it installed and nothing seems to work there. After several tries, I decided to allow node install to the default c:\program files\nodejs and that worked.
Right now I see this error:
C:\Program Files\nodejs\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 'node' is not recognized as an internal or external command, operable program or batch file. npm WARN sqlite3@2.2.7 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@0.7.8 (node_modules\ldapauth-fork\node_modules\bcrypt): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@0.7.8 install: node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 (node_modules\ldapauth-fork\node_modules\dtrace-provider): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 install:node-gyp rebuildnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.8.6 (node_modules\dtrace-provider): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.8.6 install:node-gyp rebuild || node suppress-error.jsnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 (node_modules\pooling\node_modules\dtrace-provider): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.2.8 install:node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@0.8.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\giwahea\AppData\Roaming\npm-cache_logs\2018-04-18T20_43_09_361Z-debug.log
C:\Program Files\nodejs>`

I normally don't dev too much on Windows, but I believe I remember seeing that error before related to the C++ compiler with Visual Studio. Do you have the C++ compiler installed?
If you want you can send me your full package.json file. If so I can download all the dependencies for you and just send them to you in a zip file. If you don't want to share it here I can send you an invite to a privet repo on github or send you a Dropbox link.

I think it worked this time. How do I know if  ldapjs is updated?
I see the following:
C:\Program Files\nodejs>node -v
v8.11.1
C:\Program Files\nodejs>npm -v
5.8.0
C:\Program Files\nodejs>npm.cmd -v
5.8.0
C:\Program Files\nodejs>
npm used to be 5.6.0

I sent you an invite to a GitHub privet repo.
The easiest way to update the server is to just copy the NodeJS installer to the server and run it. I wouldn't really worry about that though, pretty much anything in the major version should have no compatibility issues.
One question you could ask the develoeprs is what version of NodeJS did they develop on. It's possible they developed on an old version of NodeJS and that may be why they used an outdated version of ldapjs.

The app was developed on nodejs v0.10.36

I aready installed v8.11.1 and v9.8.0. How do I get NODE_MODULE_VERSION 59? The upgrade to v9.8.0 is asking for  server\node_modules\sqlite3\lib\binding\node-v59-win32-x64\node_sqlite3.node
``

You want to downgrade, not upgrade NodeJS. They developed on a version from early 2015.

Uninstall all versions of NodeJS on the server
Download the NodeJS installer (v0.10.36) https://nodejs.org/download/release/v0.10.36/node.exe
Copy the v0.10.36 installer to your server
Install NodeJS v0.10.36
Deploy your app again using all the original files the developers sent you

Alternatively if you want to upgrade NodeJS you can keep trying to get the package working with the new updates, but you will need to get the ldapjs package updated. This does pose a risk that something they developed could be incompatible with the new version of ldapjs and or the newer NodeJS version you are using. Since you didn't develop the app I'd suggest downgrading, because we don't know what is in their app code.

Yes the application works with v0.10.36 and v8.11.1.
We are having issues doing LDAPS. We have upgraded the ldapjs to 1.0.2 and the app lunches.
The reject option you mension is what I am trying to do so I dont have to go on the internet to check CA.

Looking at the NodeJS API docs that TLS option is still supported in v0.10.36, so you should be able to still use that setting with the older version of NodeJS. This should also avoid the incompatibility issue of new NodeJS and old ldapjs. Which is what caused this error:
ERROR Fri Apr 13 2018 10:48:34 - TypeError: Cannot read property 'on' of undefined
You most likely need to do one of the following:

Use NodeJS 0.10 + ldapjs v0.7.1 and add tlsOptions: { rejectUnauthorized: false }
Use NodeJS v8 + ldapjs v1.0.2 and add tlsOptions: { rejectUnauthorized: false }

Ok making sure I have the above

AWESOME MR TASTYPACKETS.......YOU ARE THE MAN.
Thanks for not giving up on me....

Yes sir. It was a little painful but we did it.
The app was delievered with NodeJS 0.10 + ldapjs v0.7.1 a lot of the ldaps mouldes were missing.
Like you said....I went ahead and used your recommendation. So NodeJS v8 / ldapjs v1.0.2. Plus lots of dependences...
•Use NodeJS v8 + ldapjs v1.0.2 and add tlsOptions: { rejectUnauthorized: false}
and add tlsOptions: { rejectUnauthorized: false }
•Use NodeJS v8 + ldapjs v1.0.2 and add tlsOptions: { rejectUnauthorized: false}

Awesome, glad we were able to get it sorted out!

Can you mark this issue closed?

Yes I can.
Sent from Yahoo Mail on Android
On Fri, May 11, 2018 at 12:34 PM, Ezekiel Keatornotifications@github.com wrote:
Can you mark this issue closed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks again.

What version of Node and ldapjs are you using?
Did you add the option to ignore certificate verification?
tlsOptions: { rejectUnauthorized: false}

Node : 6.13.0
LdapJS: 0.7.1
Yes, I verified with changing tlsOptions and getting rid of the 2nd error, but still, I am seeing the 1st error.

If for some reason you can not upgrade ldapjs, you'll likely need to downgrade your version of Node installed on the server.

The second issue you are having is due to breaking changes between the Node and ldapjs versions. These are old and I'd encourage you to upgrade things for security, however if this was a 3rd party app and you are not comfortable updating the code I'd downgrade the Node version.
To downgrade Node you simply install an older version on your server. I belive further up in this thread I posted a link to the old version of Node this person's developers used.
If it's Windows simply uninstall Node and reinstall the correct executable for the version you need. If this is Linux I'd recommend using NVM to install the version you need.
Do you still have contact with the original author? Perhaps they can tell you what version of Node they developed on. If not based on that ldapjs version I'd guess it's a pretty old version of Node, like the one discussed earlier in this thread.
Sorry I'm on my cell phone in bed, if you haven't figured it out by tomorrow I'll write up some better directions when I'm at a full keyboard.

Thanks for the prompt response.
I haven't downgraded/upgraded the version..
Just tried by giving certificates in tlsOptions

one error was fixed
Next found that close socket is returning unset in client.js, so I modified client.js file to set closeSocket value with "socket" directly as shown below.

No idea what is happened inside, but the issue was resolved and getting authentication passed.
Can you suggest, is it a correct fix?.

Are you working on NVP or EOWeb application?
Sent from Yahoo Mail on Android
On Thu, Nov 8, 2018 at 2:20 AM, sridharksettinotifications@github.com wrote:
Thanks for the prompt response.
I haven't downgraded/upgraded the version..
Just tried by giving certificates in tlsOptions
one error was fixed
Next found that close socket is returning unset in client.js, so I modified client.js file to set closeSocket value with "socket" directly as shown below.
No idea what is happened inside, but the issue was resolved and getting authentication passed.
Can you suggest, is it a correct fix?.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

Yes,
On Sat, 10 Nov 2018 at 7:51 AM, eshovogiwah notifications@github.com
wrote:

Are you working on NVP or EOWeb application?
Sent from Yahoo Mail on Android
On Thu, Nov 8, 2018 at 2:20 AM, sridharksettinotifications@github.com
wrote:
Thanks for the prompt response.
I haven't downgraded/upgraded the version..
Just tried by giving certificates in tlsOptions
one error was fixed
Next found that close socket is returning unset in client.js, so I
modified client.js file to set closeSocket value with "socket" directly as
shown below.
No idea what is happened inside, but the issue was resolved and getting
authentication passed.
Can you suggest, is it a correct fix?.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/joyent/node-ldapjs/issues/474#issuecomment-437491445,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aqx1xAb6JqVsnAZXcezzE6b8xUwN3dt-ks5uterrgaJpZM4TPENR
.

Yes, nvp

Sorry I never replied to you.
I'm on my cell phone again, but I'll try my best to type this out.
In your ActiveDirectoryLdapAuth function I see you use fs read sync. While this is correct every time this function calls it'll do a synchronous read to the file system which isn't normally a good idea in Node. It's probably better to import this CA on startup of your application.
For the second part that should work,in newer version of Node. However I don't know your full code or the old ldapjs, so I can't gurentee 100% you won't have an issue. You also could just delete closeSocket and rename the event listener to socket.on, because you are just making a pointer to that.
Anyway long story short, looks like it'll work okay just not really what I'd normally do or recommend. You should probably have this app looked at / upgraded.
Never heard of NVP.

I tried everything I could to avoid upgrading and ultimately I had to. I followed Ezekiel's steps and he got us fixed. We have both NVP and EOWeb in our environment.
GE Network Viewer - NVPGE Electric Office Web - EOWeb
Thanks,Eshovo
Sent from Yahoo Mail on Android
On Fri, Nov 9, 2018 at 3:59 PM, Ezekiel Keatornotifications@github.com wrote:
Sorry I never replied to you.
I'm on my cell phone again, but I'll try my best to type this out.
In your ActiveDirectoryLdapAuth function I see you use fs read sync. While this is correct every time this function calls it'll do a synchronous read to the file system which isn't normally a good idea in Node. It's probably better to import this CA on startup of your application.
For the second part that should work,in newer version of Node. However I don't know your full code or the old ldapjs, so I can't gurentee 100% you won't have an issue. You also could just delete closeSocket and rename the event listener to socket.on, because you are just making a pointer to that.
Anyway long story short, looks like it'll work okay just not really what I'd normally do or recommend. You should probably have this app looked at / upgraded.
Never heard of NVP.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

Wow that's interesting, does GE not update this software or is it just an older version? It seems strange for them to be using an outdated code base.

Mr. Tastypackets,
They like to move to the next version of the application which may not have the fix. I think you have to report it as either a bug or enhancement request to get it in the next release of the application.
Change is not easy to do. So I like to fix the version I have because of all the custom changes we have included and getting approvals to implement in prod.
For this user,
Take a look at Tastypacket's steps from April 16th 2018 above. If you are trying to use ldaps, get a separate machine, install NodeJS v8 from https://nodejs.org/en/
Past your dependencies from server\node_modules\ldapjs\package.json here.
Your goal would be to get nodejs v8 and ldapjs v1.0.2 (run npm install or npm update from cmd). Take notes of all your directories.
Run node -vRun npm -v

Thanks for your inputs .. I will try your input and let you know the result.

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.

authors: eshovogiwah jsumners sridharksetti tastypackets

repo: ldapjs/node-ldapjs


text:
[bug]

如图 正方形被禁用 locked = 10

使用快捷键 ctrl + A 全选  被禁用的正方形也被选择了  应该不能被选择

@topology/core 1.1.35修复

authors: Blizzard-liu ananzhusen


text:
Investigate flakiness with tap() and enterText() on Android

Occurs once in 10-15 tests on the login page in the customer project.
Reported by @jBorkowska.

Still occurs. Looks like this is caused by the keyboard obscuring the view.
Example log:
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following PatrolActionException was thrown running a test:
Patrol action failed: enterText() failed with code NOT_FOUND (selector
UiSelector[CONTAINS_TEXT=Password, PARENT=UiSelector[CLASS=android.widget.EditText]] found nothing)

repo: leancodepl/patrol


text:
setIcon 添加多种方式进行设置图片

setIconByBase64
setIconByByte
setIconByFile

https://gitee.com/niu_da_li/tray_manager/blob/main/lib/src/tray_manager.dart

https://gitee.com/niu_da_li/tray_manager/blob/main/lib/src/tray_manager.dart

The link is not working.
I need setIconByBase64 method.
plz, share it again.

https://gitee.com/niu_da_li/tray_manager/blob/main/lib/src/tray_manager.dart

The link is not working.
I need setIconByBase64 method.
plz, share it again.

你好，这个仓库很早之前就被我删除了 :worried:
这几个功能很好实现的，你可以和我在微信上联系，我可以协助你实现这几个功能
setIconByBase64, setIconByByte, setIconByFile methods

================================================================
Hello, I deleted this repository a long time ago :worried:
These functions are very easy to implement, you can contact me on WeChat, I can assist you to implement these functions
setIconByBase64, setIconByByte, setIconByFile methods

https://gitee.com/niu_da_li/tray_manager/blob/main/lib/src/tray_manager.dart

The link is not working.
I need setIconByBase64 method.
plz, share it again.

你好，这个仓库很早之前就被我删除了 😟 这几个功能很好实现的，你可以和我在微信上联系，我可以协助你实现这几个功能
setIconByBase64, setIconByByte, setIconByFile methods

================================================================
Hello, I deleted this repository a long time ago 😟
These functions are very easy to implement, you can contact me on WeChat, I can assist you to implement these functions
setIconByBase64, setIconByByte, setIconByFile methods

Thans for your kindness. but I can't use WeCaht.
Could you explain here how I implement that functions? please.


text:
typo

"proofs of the proof" looks like a typo?
https://github.com/leanprover-community/NNG4/blob/18e0aec41dc63b71c774a40fbb551cedd7b209dc/Game/Levels/Multiplication/L07mul_add.lean#L13-L14

thanks!

authors: jariji joneugster


text:
feat(CategoryTheory/Sites): locally bijective morphisms of presheaves

Let C a category equipped with a Grothendieck topology J. Let A be a concrete category. In this file, we introduce a type-class J.WEqualsLocallyBijective A which says that the class J.W (of morphisms of presheaves which become isomorphisms after sheafification) is the class of morphisms that are both locally injective and locally surjective (i.e. locally bijective). We prove that this holds iff for any presheaf P : Cᵒᵖ ⥤ A, the sheafification map toSheafify J P is locally bijective. We show that this holds under certain universe assumptions.

[x] depends on: #13318

Thanks!
bors merge

How often will this be used? Is it worth adding a new abbrev Presheaf.IsLocallyBijective J f := Presheaf.IsLocallyInjective J f ∧ Presheaf.IsLocallySurjective J f ?

We could do it, but as IsLocallyInjective/Surjective are type-classes, I would rather not introduce this abbreviation. Lemmas typically use the local injectivitity or the local surjectivity, but not that many use both assumptions.

authors: joelriou riccardobrasca


text:
feat(Algebra/Homology): relation between pullback/pushout squares and kernels/cokernels in a preadditive category

In the particular case of abelian categories, one of the results in this PR is that a commutative square is a pullback square iff the corresponding sequence 0 ⟶ X₁ ⟶ X₂ ⊞ X₃ ⟶ X₄ is exact.

bors merge

authors: joelriou semorrison


text:
feat(Kernel): map (κ ×ₖ η) Prod.swap = η ×ₖ κ

and similar lemmas.
From PFR
Co-authored-by: Rémy Degenne

bors merge


text:
feat: port Order.UpperLower.Hom

I followed allthe warnings an adopted to \_x variants in order to avoid name clashes.

Thanks :tada:
bors merge


text:
feat: port MeasureTheory.Covering.Besicovitch

bors r+


text:
WIP: experimenting with HPow as a right action and HSMul as a left action

This is experimenting with some changes to the unary/binary operation elaborator that aim to address lean4#2220
It adds two variants of binop%: leftact% and rightact%. Whereas binop% looks at both arguments when doing its coercion computations, leftact% only looks at the right argument and rightact% only looks at the left.
Exponentiation is best thought of as being a right action. For example, in 2 ^ n + x with x : Real and n : Nat, then this should leave n as a Nat but elaborate 2 as a Real (this is the monoid action of Nat on Real).
The main changes to mathlib that are needed are using (a ^ b :) to essentially switch to the local macro_rules solution for the given expression, using ↑(a ^ b) if it's more convenient, or giving type ascriptions to the exponent, like in a ^ (2 : Ordinal).

This just saved me a huge amount of manual type-ascription insertions in porting LeanAPAP. How far are we from merging?

The binop changes were merged into Lean and updated versions of these fixes were merged into master, so closing.

authors: YaelDillies kmill


text:
chore: Delete noncomm_ring syntax stub

This was accidentally left behind when noncomm_ring was implemented.

Don't forget to add an import for anything you remove in this file. #check by noncomm_ring immediately before the syntax declaration fails.

bors r+


text:
feat: Int.{even_sub_one,even_mul_pred_self}

Also rename Nat.even_mul_self_pred for consistency with Nat.even_mul_succ_self.

Thanks! :tada:
bors merge

authors: Ruben-VandeVelde urkud


text:
Name-shadowing in auto-generated names for injection tactic

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.

Specifically, check out the wishlist, open RFCs,
or feature requests.

Reduced the issue to a self-contained, reproducible test case.

Description
Consider the following example:
lemma foo (x y x' y' : ℕ)
  (h : (x, y) = (x', y'))
  : false
:= begin
injection h,
end

Actual behavior:
After applying the injection tactic, the proof state looks like this:
x y x' y' : ℕ,
h : (x, y) = (x', y'),
h : x = x',
h : y = y'
⊢ false

Expected behavior: I would expect that the injection tactic (when given an insufficient supply of "manual" names) would generate names that are "fresh", i.e., not already in context.
Versions
I am using Lean version from August 12, 2017, Lean (version 3.2.1, commit 32ddac5, Release).
Additional Information
The relevant code that must be changed in the injection tactic can be found here:
https://github.com/leanprover/lean/blob/5a2b7348f9d042a6e7e921f66440d884bb897f33/library/init/meta/injection_tactic.lean#L21
We discussed this on the Lean Gitter and @digama0 suggested the behavior of using names h_n:
https://gitter.im/leanprover_public/Lobby?at=59962766ee5c9a4c5fd0c896

I can PR a fix for this, but I'd like word from the devs that this is worth it first.

repo: leanprover/lean


text:
rcases leaking subgoals out of have

Prerequisites
Please put an X between the brackets as you perform the following steps:

[X] Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues
[X] Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries.
[X] Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)

Description
Using rcases on a term containing a hole leads to subgoals leaking out of the current have.
Context
This was discussed on Zulip. I came across this while refactoring something in the sphere eversion project.
Steps to Reproduce
My original minimization was:
example : True := by
  have : ∃ k, 5 = 2 + k := by
    -- Using apply with a hole create a new goal right here
    -- apply Nat.exists_eq_add_of_le (?_ : 2 ≤ 5)
    -- Using rcases teleports the new goal outside of the have block
    rcases Nat.exists_eq_add_of_le (?_ : 2 ≤ 5) with ⟨k, hk⟩
    exact ⟨k, hk⟩
  trivial -- This trivial solves 2 ≤ 5
  trivial -- this one takes care of True

Kyle came up with a variant where the hole is not directly inside rcases but in a let:
example : True := by
  have : ∃ k, 5 = 2 + k :=
    let h := Nat.exists_eq_add_of_le (?_ : 2 ≤ 5)
    by
      rcases h with ⟨k, hk⟩
      exact ⟨k, hk⟩
  trivial -- this one takes care of True
  trivial -- This trivial solves 2 ≤ 5

Expected behavior: [Clear and concise description of what you expect to happen]
The new subgoal should be inside the have.
Actual behavior: [Clear and concise description of what actually happens]
The new subgoal leaks outside the have.
Versions
Found with 4.8.0, reproduced in 4.9.0-nightly-2024-06-02 on live.lean-lang.org.
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

It's not likely to happen soon, unless someone tells me this is high priority. Feel free to assign it to someone else in the meantime.

I've run into something similar multiple times (first over a year ago!). I think the actual bug is the same, so I'm adding it here rather than making a separate report.
example (f : (n : Nat) → n = 1 → ∃ m, n = m) : False := by
  let n : Nat := 1
  obtain ⟨m, hm⟩ := f n ?g1
  sorry

the hole in obtain creates an error on the previous line, rather than creating a new goal.
I'm happy to make a separate bug report for this if it's viewed as a different problem, but this shows up for me very often.

Kyle came up with a variant where the hole is not directly inside rcases but in a let:
example : True := by
  have : ∃ k, 5 = 2 + k :=
    let h := Nat.exists_eq_add_of_le (?_ : 2 ≤ 5)
    by
      rcases h with ⟨k, hk⟩
      exact ⟨k, hk⟩
  trivial -- this one takes care of True
  trivial -- This trivial solves 2 ≤ 5

This one looks like it's working as intended. For example, this seems fine
example : True := by
  have : ∃ k, 5 = 2 + k := Nat.exists_eq_add_of_le (?_ : 2 ≤ 5)
  trivial
  trivial

thus this seems fine:
example : True := by
  have : ∃ k, 5 = 2 + k :=
    let h := Nat.exists_eq_add_of_le (?_ : 2 ≤ 5)
    h
  trivial
  trivial

thus the provided example looks fine.
The other examples look interesting though. I can reproduce from 4.7.0 (which seems to be when rcases/obtain were introduced into core) onwards.

@b-mehta Your example is the same problem, and it appears to be fixed by #5024.

authors: PatrickMassot b-mehta digama0 kmill llllvvuu


text:
Fix valgrind AutowiringTest hang

Similar to #700
valgrind's thread scheduling allows one thread to livelock forever unless it yields at some point.

Closing this. Will file a separate PR to document valgrind --fair-sched=yes bin/AutowiringTest and remove calls to sleep_for()/WaitForEvent() that will no longer be necessary.

repo: leapmotion/autowiring


text:
Mark finished chapters in the sidebar using an icon

We already save the progress of a user and in the "account" page (e.g. https://oceanacademy.io/user/oceanbyte) and we show the progress of the user there:

We should use the same icons to show progress in the sidebar. It improves the user experience because it 1) increases motivation and 2) it helps with orientation ("I don't remember exactly which chapter I finished yesterday").

Fixed a long time ago, closing.

repo: learn-ocean/ocean-academy


text:
Submit a Cloud Definition - auto scaling

Word [REQUIRED]: auto-scaling
Content [REQUIRED]: auto-scaling refers to a cloud infrastructure's ability to automatically adjust the capacity of its resources based on demand. This is acheived through the use of rules and monitoring systems that continuously analyse the performance of the cloud infrastructure and dynamically adjust the number of resources (such as virtual machines, storage, and network bandwidth) to ensure that the infrastructure is optimised for both performance and cost.
Author Name [REQUIRED]: Rishab Kumar
Author Link [REQUIRED]: https://twitter.com/rishabk7
Learn More URL [REQUIRED]: https://en.wikipedia.org/wiki/Autoscaling
Category [REQUIRED, select one]: compute
Abbreviation [OPTIONAL]: If the word is commonly abbreviated, please provide it. For example, command line interface is often abbreviated as CLI.

Added, thank you!

repo: learntocloud/cloud-dictionary


text:
Server source code

请问有配套的服务端代码吗，安卓开发小白想学习一下整个前后端怎么连接起来的，求求🥺

这个是没有后端代码的，我是直接面向腾讯云 IM SDK 开发的：https://cloud.tencent.com/document/product/269/36838

authors: colinboys leavesCZY


text:
npm install unmet peer dependency catch22

When I unstall grunt-email-workflow:
$npm install
[ommitted output]
$npm ls
[ommitted output]
npm ERR! peer dep missing: grunt@^1.0.1, required by grunt-mailgun@2.0.1
npm ERR! peer dep missing: grunt@^1.0.1, required by grunt-mailgun@2.0.1
$npm install grunt@1.0.1
[omitted output]
$npm ls
npm ERR! peer dep missing: grunt@~0.4.2, required by grunt-autoprefixer@2.2.0
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-aws-s3@0.13.1
npm ERR! peer dep missing: grunt@~0.4.1, required by grunt-cloudfiles@0.3.0
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-contrib-clean@0.6.0
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-contrib-watch@0.6.1
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-express@1.4.1
npm ERR! peer dep missing: grunt@^0.4.5, required by grunt-juice-email@0.1.4
npm ERR! peer dep missing: grunt@~0.4.2, required by grunt-litmus@0.1.8
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-contrib-watch@0.6.1
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-parallel@0.3.1

tl;dr: grunt-mailgun requires newer grunt, a bunch of other modules require old grunt.

@dyspop Dan thanks for the heads up. I'll take a look. If you determine what the best version is to use in the mean time, for grunt-mailgun and others, feel free to commit back to the repo.

All looks good to me now. Closing.

authors: dyspop leemunroe

repo: leemunroe/grunt-email-workflow


text:
Add Iowa City Schools

Institution/School Name
{Iowa City Community School District}
Instiution/School Website
{https://www.iowacityschools.org/}
Email Users
Please place an x between the square brackets if yes

[x] Students
[ ] Academic/Teaching Staff
[ ] Other/Support Staff
[ ] Alumni

Education Levels
Please place an x between the square brackets if yes

[ ] Post-graduate research
[ ] Graduate School
[ ] College (University) or Undergraduate School or equivalent
[ ] Community College or equivalent
[x] High School or equivalent
[x] Elementary School or equivalent

Only universities (post-secondary institutions) can be part of the list.

repo: leereilly/swot


text:
Can not change Power Connector Max Current Socket 1

Hello everyone,
I love this project and I was using the Addon for about a Year now. But after the last update (I am not sure which version I uses before) I cant change any Value. Most Important for me to handle load balancing is "Power Connector Max Current Socket 1".
The value can not be changed now. Whether I use the slider in the GUI or the “Alfen Wallbox: set_current_limit” service. The value remains unchanged.
What I see in the debug-log for example:
2024-04-30 18:23:32.023 WARNING (MainThread) [homeassistant.components.sensor] Updating alfen_wallbox sensor took longer than the scheduled update interval 0:00:05 2024-04-30 18:23:32.057 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.151 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.231 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.308 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.391 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.471 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.551 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.676 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.720 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.815 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.891 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:32.974 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.057 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.135 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.215 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.295 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.379 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.467 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.547 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.627 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.707 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.787 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.867 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:33.946 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.028 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.107 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.191 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.272 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.359 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.439 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.506 ERROR (MainThread) [custom_components.alfen_wallbox.alfen] Unexpected error on UPDATE VALUE Cannot connect to host 192.168.5.5:443 ssl:<ssl.SSLContext object at 0x7f7ce74350> [Connect call failed ('192.168.5.5', 443)] 2024-04-30 18:23:34.506 DEBUG (MainThread) [custom_components.alfen_wallbox.number] Power Connector Max Current Socket 1 Value: 14 2024-04-30 18:23:34.507 DEBUG (MainThread) [custom_components.alfen_wallbox.number] Power Connector Max Current Socket 1 Value: 14 2024-04-30 18:23:34.518 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.599 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.683 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.763 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.843 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:34.923 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.003 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.083 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.170 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.255 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.371 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.449 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.540 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.627 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.706 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.787 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.867 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:35.972 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.059 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.139 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.219 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.299 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.378 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.459 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.539 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.619 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.699 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.787 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.870 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:36.976 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.024 WARNING (MainThread) [homeassistant.components.sensor] Updating alfen_wallbox sensor took longer than the scheduled update interval 0:00:05 2024-04-30 18:23:37.050 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.131 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.211 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.290 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.331 ERROR (MainThread) [custom_components.alfen_wallbox.alfen] Unexpected error on UPDATE VALUE Cannot connect to host 192.168.5.5:443 ssl:<ssl.SSLContext object at 0x7f7ce74350> [Connect call failed ('192.168.5.5', 443)] 2024-04-30 18:23:37.331 DEBUG (MainThread) [custom_components.alfen_wallbox.number] Power Connector Max Current Socket 1 Value: 14 2024-04-30 18:23:37.332 DEBUG (MainThread) [custom_components.alfen_wallbox.number] Power Connector Max Current Socket 1 Value: 14 2024-04-30 18:23:37.371 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.451 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.531 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.615 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.700 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.787 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.867 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database} 2024-04-30 18:23:37.947 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database}
I don't get why it says "Cannot connect to host". I get the right Values from the Wallbox but cant set any.
I already deleted an re-added the device in homeassistant. It has not changed anything. In the MyEVE App and the ACE Installer I am able to change the Values manually.
Does anyone know how to fix this?
Thank you!

interesting log. the question is now why there is no transaction. maybe this came because you don't use backoffice? or there is a possibility to clear the transaction? (do you see transaction in the ace installer)
maybe install now an old version of this to continue use? i'll check this when i'm back from holiday

I seems to have exactly the same issue.. I'm sure that i'm not logged in from any other devices.

great, i'll try to fix this issue

I seems to have exactly the same issue.. I'm sure that i'm not logged in from any other devices.
2024-05-10 20:21:54.182 WARNING (MainThread) [homeassistant.components.sensor] Updating alfen_wallbox sensor took longer than the scheduled update interval 0:00:05
2024-05-10 20:21:54.202 DEBUG (MainThread) [custom_components.alfen_wallbox.alfen] Unknown line: 0_Empty transaction database}

&
2024-05-09 22:33:22.438 ERROR (MainThread) [custom_components.alfen_wallbox.alfen] Unexpected error on UPDATE VALUE Cannot connect to host 10.21.21.31:443 ssl:<ssl.SSLContext object at 0x7f58747b5c50> [Connection reset by peer]

\edit:
Downgrading to version 2.7.29 fixes the issue!
Maybe also an important thing to note: No backend configured.. and this seems to be the same issue as #110

this make me easier to fix the issue, I'll fix them

@Nenodema  can you take a look and see if this beta fixes (2.8.6) the unknown line.. Also just curious, have you already charged before I suppose? but without a backend?
https://github.com/leeyuentuen/alfen_wallbox/releases/tag/2.8.6

@Nenodema can you take a look and see if this beta fixes (2.8.6) the unknown line.. Also just curious, have you already charged before I suppose? but without a backend? https://github.com/leeyuentuen/alfen_wallbox/releases/tag/2.8.6

Thanks for you reply! Unfortunately the same issue with 2.8.6.
Version 2.7.29 is still working perfectly!

did you have the same error in the log?

@Nenodema can you take a look and see if this beta fixes (2.8.6) the unknown line.. Also just curious, have you already charged before I suppose? but without a backend? https://github.com/leeyuentuen/alfen_wallbox/releases/tag/2.8.6

Thanks for you reply! Unfortunately the same issue with 2.8.6.
Version 2.7.29 is still working perfectly!

did you have the same error in the log?

Yes, lots of connection resets (again sure that i'm not logged in from any other devices!)

authors: Nenodema Schockolade leeyuentuen


text:
Adapting ava-ont for plants

Hello,
I am making diploid drafts from R9 ONT reads of a 800Mb plant genome.
I think Minimap does not collapse the haplotypes enough. The haploid draft is 1.2Gb and then phasing proceeds poorly.
I get a result of 854 Mb with Shasta using their plant-optimized settings. I think this draft may permit better phasing. I am wondering how to tune Minimap to have the same tolerances.
These are the Shasta settings optimized for plants:
[Align]
downsamplingFactor = 0.05
sameChannelReadAlignment.suppressDeltaThreshold = 30
maxSkip = 60
maxDrift = 20
maxTrim = 60
minAlignedMarkerCount = 200
minAlignedFraction = 0.3
I think 'maxSkip'  and 'minAlignedMarkerCount' are the most important. The defaults for human are 30 and 100. Shasta uses 10% of 15-mers selected at random which is about the same spacing as Minimap with -k 15 -w 10.
I am not expert in minimizer space. Can you say how to flag minimap to achieve a similar state? Thank you.

Hi,
What are the N50s of primary contigs and alternate contigs in the first/second round of assembly?  They are in the directory 3-assemble and 5-assemble.

Hello,
For the first round, the primary is:
Main genome scaffold total:         	2064
Main genome contig total:           	2064
Main genome scaffold sequence total:	1196.646 MB
Main genome contig sequence total:  	1196.646 MB  	0.000% gap
Main genome scaffold N/L50:         	351/953.876 KB
Main genome contig N/L50:           	351/953.876 KB
Main genome scaffold N/L90:         	1224/298.901 KB
Main genome contig N/L90:           	1224/298.901 KB
Max scaffold length:                	7.881 MB
Max contig length:                  	7.881 MB
Number of scaffolds > 50 KB:        	1890
% main genome in scaffolds > 50 KB: 	99.62%
And the alternate is:
Main genome scaffold total:         	307
Main genome contig total:           	307
Main genome scaffold sequence total:	88.824 MB
Main genome contig sequence total:  	88.824 MB  	0.000% gap
Main genome scaffold N/L50:         	59/402.034 KB
Main genome contig N/L50:           	59/402.034 KB
Main genome scaffold N/L90:         	211/140.592 KB
Main genome contig N/L90:           	211/140.592 KB
Max scaffold length:                	1.593 MB
Max contig length:                  	1.593 MB
Number of scaffolds > 50 KB:        	294
% main genome in scaffolds > 50 KB: 	99.51%
For the second round, the primary is:
Main genome scaffold total:         	1869
Main genome contig total:           	1869
Main genome scaffold sequence total:	1145.416 MB
Main genome contig sequence total:  	1145.416 MB  	0.000% gap
Main genome scaffold N/L50:         	301/1.092 MB
Main genome contig N/L50:           	301/1.092 MB
Main genome scaffold N/L90:         	1045/325.683 KB
Main genome contig N/L90:           	1045/325.683 KB
Max scaffold length:                	8.101 MB
Max contig length:                  	8.101 MB
Number of scaffolds > 50 KB:        	1684
% main genome in scaffolds > 50 KB: 	99.56%
And the alternate is:
Main genome scaffold total:         	989
Main genome contig total:           	989
Main genome scaffold sequence total:	268.740 MB
Main genome contig sequence total:  	268.740 MB  	0.000% gap
Main genome scaffold N/L50:         	132/528.158 KB
Main genome contig N/L50:           	132/528.158 KB
Main genome scaffold N/L90:         	570/104.214 KB
Main genome contig N/L90:           	570/104.214 KB
Max scaffold length:                	5.037 MB
Max contig length:                  	5.037 MB
Number of scaffolds > 50 KB:        	867
% main genome in scaffolds > 50 KB: 	98.41%
These assemblies are of Cannabis which has a genome size of about 800 Mb and estimated heterozygosity of ~1%.
Also I can show you this Merqury plot, because I have short reads of both F0s.

I am comparing PECAT to trio-binning and assembling separately with NECAT. With that method I got N50 of 2.0 and 1.6 Mb and genome size of ~750Mb.
Thank you!

The total size of primary/alternate contigs in the first round are 1196/88 Mb. They are 1145/268Mb in the second round. Their expected values are 800/800 Mb. This result is poor, if its heterozygosity rate is high. Could you please provide the config file.

Here you are. It is based on cfg_arab_ont, with the addition of '-f 0.005 -I 60G' in corr_rd2rd_options.
Also I have reduced lc and sc in phase_options because I have low coverage, about 35x.
The purpose of this exercise is to quantify phasing precision and develop parameters to apply to new data which is 80x, but lacks parental kmers.
The heterozygosity is about 1%.
pecat_cfg.txt

It's a bit strange to me that 1% is not very high but PECAT didn't collapse two haplotypes in the first round of assembly. Increasing the parameter -g of minimap2 may be helpful. Using a lower threshold in the first round may be also helpful, such as:
asm1_assemble_options=--max_trivial_length 10000 --min_identity  0.9
In the second round, reducing parameter diploid_rate can move more contigs from primary.fasta to alternate.fasta, such as:
asm2_assemble_options=--max_trivial_length 10000 --contig_format dual,prialt --diploid_rate=0.1

Hello,
I tried the changes mentioned, and also changed -g to first 6k and then
24k. The size of the primary and alt assemblies stays about the same, 1.2
Gb for primary and ~60 Mb for alternate. Only the N50 drops from about 1Mb
to 500kb. I also tried with -rmq and the same result.
If I concatenate the primary and alternate drafts (from default settings)
and then run purge_haplotigs I get a pretty nice result. So I think there
is good haplotype resolution but yes, not enough contigs being moved to
alternate.
I will close this for now and maybe ask more questions later.
Thank you!
El vie, 15 sept 2023 a la(s) 23:15, lemene @.***)
escribió:

It's a bit strange to me that 1% is not very high but PECAT didn't
collapse two haplotypes in the first round of assembly. Increasing the
parameter -g of minimap2 may be helpful. Using a lower threshold in the
first round may be also helpful, such as:
asm1_assemble_options=--max_trivial_length 10000 --min_identity 0.9
In the second round, reducing parameter diploid_rate can move more
contigs from primary.fasta to alternate.fasta, such as:
asm2_assemble_options=--max_trivial_length 10000 --contig_format dual,prialt --diploid_rate=0.1
—
Reply to this email directly, view it on GitHub
https://github.com/lemene/PECAT/issues/14#issuecomment-1722128533, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABV6OWWE2WTLUGKADHR73N3X2URVZANCNFSM6AAAAAA4WXXXUA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@COMInterop Hi, I'm having a similar result, did you concatenate the primary and alternate of 3-assemble or 5-assemble?
I would really appreciate your answer.

Hi Enrique,
No, I take the output of 6-polish, run purge_haplotigs on primary.fasta and alternate.fasta separately, and then concatenate the curated.fasta output from both together.

@COMInterop Thank you very much for your valuable answer, I will try it. What numbers did you get after that? Well, if it is possible to know.
Thank you very much again.

authors: COMInterop enriquepola1996 lemene paracontias

repo: lemene/PECAT


text:
how to stop scrolling when last item visible is the Last Item of the list

Hi Leochuan
Can we stop scrolling when last item visible in the screen is the real last item of the  list ?

@groomefyvik

@groomefyvik
You can edit the getMaxOffsetDegree method. It decides the boundary of last real item which is center of screen by default.

how to scrollToPosition

@abc20899
You can update to 1.0.2..And call recyclerView's smoothScrollToPosition method

authors: abc20899 groomefyvik leochuan

repo: leochuan/CustomLayoutManager


text:
DetachedContext fails to get service IDetachedContextServices

I have added   services.AddTransient(typeof(IDetachedContext<>), typeof(DetachedContext<>));
in my Setup class but when the  DetachedContext is created the code in DetachedContext fails to get service.  _detachedServices = _serviceProvider.GetService();
What am i missing ?

UseDetached() missing when configuring the scope? Or AddDetachedEntityFramework() to your external service provider?

authors: henrikstromberg leonardoporro


text:
Best way to implement API access functions on separate files.

I need to find out the best way to create API access functions on a separate file and refactor the code, creating components to make the code more readable and scalable.

[ ] Create components for all HTML that can be reusable
[ ] Create new files with the API code logic
[ ] Change the React to Svelte/Preact/Angular/Astro. Preference: Svelte.

This issue will be closed since i refactored the code and created new components that were reusable.


text:
idan/oauthlib 2.0 版本不兼容

oauthlib 2.0 代码问题 :
request.scopes = None

if "openid" in request.scopes:
      handler = self.oidc_auth_grant

请锁定版本在 oauthlib==1.1.2

https://github.com/idan/oauthlib/blob/master/oauthlib/oauth2/rfc6749/endpoints/authorization.py#L110
https://github.com/idan/oauthlib/blob/master/oauthlib/oauth2/rfc6749/grant_types/openid_connect.py#L99

This PR should solve the issue. https://github.com/idan/oauthlib/pull/437

authors: Sumukh wushuyi

repo: lepture/flask-oauthlib


text:
🛑 PC is down

In 2e87a44, PC (https://pc.tailb415a.ts.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PC is back up in c6fa1b4 after 2 hours.


text:
Bump: 0.28.0 -> 0.28.0-next

Proposed changes
This PR is a preparation for the next release.
Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update docker image version of FIWARE GE.
[ ] Update only documentation, not any source code.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[X] I have read the CONTRIBUTING doc
[ ] I have signed the CLA
[X] I have updated the change log (CHANGELOG.md)
[X] I send this pull request to the v0.28.0-next branch.
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (7efa073) 100.00% compared to head (d2e5c93) 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@              Coverage Diff               @@
##           v0.28.0-next      #282   +/-   ##
==============================================
  Coverage        100.00%   100.00%
==============================================
  Files                 2         2
  Lines              1779      1779
==============================================
  Hits               1779      1779

Impacted Files
Coverage Δ

config.sh
100.00% <100.00%> (ø)

lets-fiware.sh
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter fisuda

repo: lets-fiware/FIWARE-Big-Bang


text:
Bump: 0.11.0 -> 0.11.0-next

Proposed changes
This PR is a preparation for the next release.
Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update only documentation, not any source code.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[X] I have read the CONTRIBUTING doc
[ ] I have signed the CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Coverage remained the same at 100.0% when pulling 54d3999f3d6db282c1241ff07a398aa1cb98faf2 on fisuda:release_0.11.0_next into a7da56ae829c3204e31aa0c82ed1d5cca2a37ef9 on lets-fiware:main.

authors: coveralls fisuda

repo: lets-fiware/ngsi-go


text:
Updating youtube-shorts filter to block new shorts window on normal videos on desktop

What filter does this issue target?
https://letsblock.it/filters/youtube-shorts
What changes should be made?
Youtube is now showing shorts on the left basically all normal videos.
I think we should add a new line to the youtube shorts filter to account for this.

I hope this helps :) I just accidentally got lost in shorts for 30minutes without even realizing
Did you write a uBlock filter solving this?
www.youtube.com##ytd-reel-shelf-renderer
Additional notes
The new line is almost identical to one that already exists for mobile see,
m.youtube.com##ytm-reel-shelf-renderer

Thanks a lot @SiggyPony:

could you please test this more selective rule and comfirm that it works?

www.youtube.com##ytd-watch-next-secondary-results-renderer ytd-reel-shelf-renderer

I'd like to give you attribution on the commit adding that rule, could you please give me the @users.noreply.github.com email that is shown in https://github.com/settings/emails, so that I can add it as co-author?

Hey,  yes that more specific rule also works.
If you want to give some attribution I think its,  11322269+SiggyPony@users.noreply.github.com
Took a bit to figure out, I don't generally use github 😅

Cool! It's been merged and deployed, you can remove the custom ruke and manually refresh your list right now to grab it!

authors: SiggyPony xvello

repo: letsblockit/letsblockit


text:
Group crates by attribute

// current syntax
import_crates! {
    rand; lazy_static; rustc_serialize;
    tendril #[cfg(feature = "firefox"];
}

// Proposal: allow grouping by attributes
import_crates! {
    rand, lazy_static, memchr, myutils;
    #[cfg(windows)] winapi, some_relying_winapi;
    #[cfg(feature = "abc_specified")] curl, abc_crate, another;
}

Proposal applied de9027c