Faild validator smart contract call

I've one localchain and that chain has approx 500k blocks and have 4 peers
previously I didn't try to make new peer and sync it but now when I try to add new peer and sync it from genesis it throws error saying

I compiled binary from this from source code
Code
Genesis file contain:
{
  "config" : {
    "chainid" : 878145,
    "berlinBlock" : 0,
    "qbft" : {
      "epochlength" : 30000,
      "blockperiodseconds" : 1,
      "requesttimeoutseconds" : 10,
      "blockreward" : "1500000000000000000"
    },
    "transitions" : {
      "qbft" : [ {
        "block" : 100,
        "validatorselectionmode" : "contract",
        "validatorcontractaddress" : "0xb9A219631Aed55eBC3D998f17C3840B7eC39C0cc"
      }
     ]
    }
  },
  "nonce" : "0x0",
  "timestamp" : "1679403873",
  "gasLimit" : "0x29b92700",
  "difficulty" : "0x1",
  "mixHash" : "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
  "coinbase" : "0x0000000000000000000000000000000000000000",
  "alloc" : {
    "f17f52151EbEF6C7334FAD080c5704D77216b732" : {
      "balance" : "0x446c3b15f9926687d2c40534fdb56400"
    }
  },
  "extraData" : "0xf87aa00000000000000000000000000000000000000000000000000000000000000000f8549447349b0e16718f7439261616c48fd1b92a9d64d7945c2ec9937230a20ab9a6008bc32952d0551c14fc94903e1eedcb60cc27a386ee2879274b2a445bd72a9457a71c05d16403165c21ce27914573ef5ffad819c080c0"
}

After throwing this error it resume syncing the node but it does occur time to time and after 3 to 4 times it disconnect from other peers and stop syncing it.

Haven't been able to recreate the issue so far. Been in contact with @D3athGr1p on discord and it's with them at the moment. Blocking this for now.

Hi @D3athGr1p, since we couldn't recreate, can this issue be closed now?

@siladu sure


Doc improvements for BYOH before next release

This PR will contains all the doc changes required to improve BYOH documentation.

LGTM


Allow admins to add a site to sitegroup via GraphQL

AC:

GraphQL query which will add the site to target sitegroup
The information will be stored and commited in the hiera repository
Only users with a valid admin token can do the mutation

actually, adding a site to a sitegroup should be allowed to all users that their ssh key is part of the sitegroup or the client of this sitegroup :)

@Schnitzel so far we don't have a proper R/W credential separation and we decided on starting with the admins and slowly integrate the common users as well :-)

okay, it's just that we would like soon to allow a beta test :)

I would say we create a new ticket for users specifically ASAP 👍

This issue is suspended in favor of #35


Upgrade SDC and Engine libraries

We now have newer SDC and Engine artifacts from the latest changes on the SDK:

Engine - org.smartregister:engine:0.1.0-beta04-preview2-SNAPSHOT
SDC - org.smartregister:data-capture:1.0.0-preview17-SNAPSHOT

Originally posted by @ndegwamartin in https://github.com/opensrp/fhircore/issues/2708#issuecomment-1717226524

We now have newer SDC and Engine artifacts from the latest changes on the SDK:

Engine - org.smartregister:engine:0.1.0-beta04-preview3-SNAPSHOT
SDC - org.smartregister:data-capture:1.0.0-preview18-SNAPSHOT


Added Idemixgen doc from fabric repo

Created this pull request to move the doc content related to idemix from the Hyperledger Fabric repository to the idemix repository.

This is needed because, idemixgen doc is not required in fabric repo. So for the reference doc is added to the idemix repo and it makes sense to have its documentation in idemix repo for better organization and accessibility.

@ale-linux I asked the submitter to move the doc from Fabric since idemixgen tool is in idemix repository now.
It appears rst files are formatted correctly when viewing on Github, so this is probably ok as-is.
Would be nice to have a link to it from the main README but that could be added after it is merged.
Could you click the button to authorize running of the checks?

This doc removed from Fabric docs in PR https://github.com/hyperledger/fabric/pull/4834


Empty strings / accounts create

Something similar to the already closed #156 - when I create a new user using the accounts-ui package it creates the optional fields in profile - firstName, lastName, organizaiton, but since they are empty simple-schema/collection2 removes them from the profile object.
Which is fine, we don't really want empty string fields, but when I try creating an Account Information page that displays these optional values (and the user can set them for the first time), yet it gets stuck because the keys don't exist.
The solution I was thinking of is to use the removeEmptyStrings : false but it doesn't seem like I have direct access to the insert/update happening in the accounts-ui package. What's the solution to this, custom helper to handle the case where they are not defined ?
I mean, they are set to "optional" in the schema, so it shouldn't fail at creating the form, it should be created with no values set to those fields and on update it should do a $set on those new fields if they have a non-empty string value.

Is the profile form autoform or your own custom form? AutoForm shouldn't have any problem with the missing profile object.

You are right, I take that back, it's not the empty fields, it works fine on another account with that info missing. It is an autoForm that uses afQuickFields.
It's stuck on the "Loading..." template and doesn't even render the form if I remove all the afQuickFields.
I don't get any output that tells me what's really wrong, here's a pastebin of what I have - the template is at the bottom and it's in Jade.

OK, completely wrong here - wasn't autoforms/scheme at all - it was a lack of user data, even though I could see it using Mongol it actually wasn't getting published for some reason...very weird.

Even the before hooks weren't triggering correctly so reference this iron-router issue. I was wondering what was happening, hopefully it's fixed by the time someone finds this.


Allow TEMP_DIR to be set externally

This makes it easier to plug the repo into other build systems.
Ex:
i'm using different build stages, and want to keep using make controllers, but have my own specific requirements for building the docker image itself.

This change is

/lgtm

Coverage remained the same at 44.08% when pulling fa5c2a1f728b122fcd88137b0d80b632cc14c633 on pieterlange:fix/tempdir into 848144a990ba62cb7e8501a05717b8f594397e4b on kubernetes:master.

@pieterlange thanks!

Thanks for the quick merge!


[Feature request] API to immediately run sync

Hello. I have a thousand deployments. Can we add a HTTP server that runs a sync state immediately? I attached a draft. And I have one crucial question. Is it safe to invoke p.Start() at any time?
We don't want to wait for 10s / 5s. It is very critical to start sync as fast as possible.
metacontroller/pkg/server/server.go
// New returns a new controller manager and a function which can be used
// to release resources after the manager is stopped.
func New(configuration options.Configuration) (controllerruntime.Manager, error) {
	// Create informer factory for metacontroller API objects.
	mcClient, err := mcclientset.NewForConfig(configuration.RestConfig)
	if err != nil {
		return nil, fmt.Errorf("can't create client for api %s: %w", v1alpha1.SchemeGroupVersion, err)
	}

       ......

	// Add http router to call /sync
	httpRouter := HttpRouter{compositeReconciler, decoratorReconciler}
	go func(httpRouter *HttpRouter) {
		port := ":" + configuration.TriggerSyncPort
		logging.Logger.Info("Api server starting.", "port", port)
		http.HandleFunc("/sync", httpRouter.triggerSync)
		err := http.ListenAndServe(port, nil)
		if err != nil {
			logging.Logger.Error(err, "Cannot start Api server")
		}
	}(&httpRouter)

	return mgr, nil
}

type HttpRouter struct {
	compositeReconciler *composite.Metacontroller
	decoratorReconciler *decorator.Metacontroller
}

func (r *HttpRouter) triggerSync(w http.ResponseWriter, req *http.Request) {
	logging.Logger.Info("New /sync request")
	for _, pController := range r.compositeReconciler.ParentControllers {
		pController.Start()
	}

	for _, dController := range r.decoratorReconciler.DecoratorControllers {
		dController.Start()
	}

	w.Header().Set("Content-Type", "application/json")
	fmt.Fprintf(w, "ok")
}

https://github.com/metacontroller/metacontroller/issues/43

I think those method was intended to run once, unsure if running them many times won't cause any issues
It will always be a few second delay, the cache needs to be populated from API server anyway

Closing as duplicate of https://github.com/metacontroller/metacontroller/issues/43


Document JDK version

OpenSearch requires JDK 11 to build at a minimum per dev guide. It has been building with JDK14 (and will be building with 11 post 1.0 with this change). The combined artifact is packaging JDK 15.0.1.

document the above
potentially document what JDK(s) we testing with, core and plugins

Hey @dblock, are you sure about that? My understanding was that we require 11 to build at a minimum, but that you can run OpenSearch it with 8 or 11. In general, the build instructions for a particular repo go in the README, and the documentation is more concerned with using and extending the off-the-shelf artifacts. See this PR: https://github.com/opensearch-project/documentation-website/pull/62

Hey @dblock, are you sure about that? My understanding is that we require 11 to build at a minimum, but that you can run OpenSearch it with 8 or 11. In general, the build instructions for a particular repo go in the README, and the documentation is more concerned with using and extending the off-the-shelf artifacts. See this PR: #62

You are correct. I think #62 actually addresses this issue!

https://github.com/opensearch-project/documentation-website/pull/62


[AI Agent idea] ADVANCED RECIPE TELLER WITH OTHER DETAILS!

Description
Amazing recipe teller. Providing other details like dish history , benefits etc...  also you can include and exclude recipe items then AI makes u a recipe according to it .  otherwise, you can add your country name and AI try to take recipe items which is available in your country..
Additional Information
Its very helpful...GO A HEAD AND TRY IT!!!

:/assign @

/assign @itztani

Because there has been no progress for too long, it will be closed


Add support for STARTTLS

This PR adds support for STARTTLS.
The code was influenced by denomailer.
How it is used
The user must NOT provide SMTP_USETLS in Environment Variables but MUST provide SMTP_USERNAME (and password of course).
@dangrie158 In case the code is not of your liking, feel free to change it. I merely wanted to provide the concept of how it can be supported.
P.S.: I haven't added any documentation about this feature. If you have any questions feel free to ask me.

Cool, now that this is merged, I'll add some sentences to the documentation and then create a new release.
I'll probably also will do some cleanup in smtp.ts since I noticed some stumbling stones while reviewing this PR :)

While I have your attention. I have switch the dockerfile to the alpine distro of deno, on my repo. It's significant smaller than the one used. Interested in a new PR?

Sure :)
Originally I used alpine based images, but when official deno images became available for arm64 I switched to those. Now that alpine images seem to be officially available we definitely should switch!


[FEATURE] Add the ability to stack data for polar area chart

Currently, polar area charts can only have one piece of data associated with a "slice". I propose that stacking of data, similar to stacked bar charts, is made possible.
See image below for clarification

Stacked series for polarArea would be really awesome. Any chance of seeing that in the near future?

Yes please, make it.

This would be very handy. I'd even pay for it.

@ChrisKatsaras  are you able to create one, using the chart.js ?

I'm looking for this feature, did anyone manage to find / build a plugin to do this?
Thanks,

wow, no update?


fix: add optional destination directory argument

add optional destination directory argument to avoid using bash pipes
Context: https://github.com/NixOS/nixpkgs/issues/255860
This PR:

[x] Fix https://github.com/NixOS/nixpkgs/issues/255860
[ ] Provide ...
[ ] It breaks backward compatibility
[ ] Is covered by unit tests
[ ] Has static analysis tests (psalm, phpstan)
[ ] Has documentation
[ ] Is an experimental thing

Follows #. Related to #. Fixes #.

Tests are passing locally. The current tests issue on the CI is something being worked on.
Going to merge this PR in priority since this fix an upstream bug in nixpkgs.


Update general-debugging-options-dialog-box.md

Updated the moniker range for the option that is not available in vs2022

@hharshada : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@Mikejo5000 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off Thanks, Harshada!

#sign-off

Hi @Mikejo5000 - In a test PR in the private repo, the added content does show up on staging when you select VS 2022. Is this okay/intended? https://review.docs.microsoft.com/en-us/visualstudio/debugger/general-debugging-options-dialog-box?view=vs-2022&branch=pr-en-us-9075
Thanks.

There might be an extra space in the moniker syntax; let me change that and see what happens.

I'll merge this and you can check on live, see if it works as intended. Thanks.


Internationalization support

Search terms

internationalization
multi-language
languages
zh-cn
en-us

Question
The project currently only provides English. Are there any plans to provide other languages? Maybe we can use i18n to achieve that.

No plans to do this today, #2332 is what I'd recommend at this point

No plans to do this today, #2332 is what I'd recommend at this point

Thanks for reply, I'll think of some implementation options. Until then, I will post it in this issue.

@Gerrit0 Hi, Gerrit. I am trying to use i18n to achieve it. Please see if this is a feasible solution.
Here is my development branch. And here is a demo for it.
Thank you.

Ah, you meant for pieces of the site itself! I thought you were referring to including multiple languages in comments for the source code.
I'm certainly open to including options for localization in TypeDoc, but have concerns with the implementation method you went with:

I'm very wary of adding dependencies. i18next is definitely less of a problem than i18n, which I thought this used at first, but it still seems strange for something that's essentially just a map... am I missing some reason to use a dependency here?
Recursing into plugin folder structures is extremely brittle and forces a structure which I don't want to do. It also prevents plugins from using declaration merging to ensure that they add the same keys for translation as is used when rendering.
To properly support locales, it needs to be available during conversion, not just during rendering. This is because presumably someone doing this would also want to override things like the group names "Enumeration Members", which happen during conversion.
Locales are configured (almost) completely separately from the rest of the options, I'd rather this live within TypeDoc's normal options structure. If someone wants to separate it out, config files can be regular JS, so they can import the configuration they want and merge it into the object given to TypeDoc.

With all this in mind, the design I'm thinking of is:
// interface with all translatable strings so that:
// 1. TypeDoc's schema generator for JSON options can provide reasonably good autocomplete for builtin strings.
// 2. Translation `t` calls can be properly type checked.
// 3. Plugins which add additional translated strings can use declaration merging to add new keys to this interface.
interface TranslatableStrings {
    settings: string;
    content: string;
}

// New member added to the Application class
// Defined here for easy access on plugins, and because it will be used in multiple phases of TypeDoc's run
class Application {
    i18n: I18N;
}

class I18N {
    setActiveLanguage(lang: string): void; // Called by Application.bootstrap after options have been read.
    translate(key: keyof TranslatableStrings): string;
    // may be called by plugins
    // will be called by Application.bootstrap to merge in any translations added by user configuration
    addTranslations(lang: string, translations: Partial<TranslatableStrings>, override = false): void;

   private translations: Record<string, Record<string, string>>;
}

// t method should be on context, not PageEvent
class DefaultThemeRenderContext {
  t(key: keyof TranslatableStrings): string;
}

// Users should be able to specify translations with:
// typedoc.json:
{
  "locales": {
    "default" { // or a language identifier like zh
      "settings": "Settings"
    }
  }
}

// If someone wanted to use json files
// typedoc.js
export default {
  locales: {
    zh: JSON.parse(readFileSync("./locales/zh.json"))
  }
}

I'd like to unify the htmlLang and lang options -- probably just a rename of htmlLang is appropriate. I think this feature deserves a non-patch release, so breaking changes are acceptable.

You do think better! Do you have a schedule for this feature? What can I do to help?

If you consider a website like crowdin to provide translating contribution. You can create a blank translation project first. And then I can start picking out some pieces that need to be translated.

I try not to give dates for features, as that tends to be a recipe for disappointment as I don't always have time to work on typedoc, or  get excited about other projects and abandon it for a few weeks.
That said, this is a fairly straightforward update... going to spend an hour or two looking at it today, so who knows.
Could you help me understand why I should use something like crowdin rather than just a folder of localizations in this repo? I'm having difficulty getting past their marketing to the why

fairly straightforward

These words don't taste too good 6 hours in.
There's an i18n branch on the this repo with my current progress.

[x] Build an Internationalization class as described above (some changes due to requirements I forgot about)
[ ] Review/update 113 log messages to use i18n
[ ] Figure out how to handle translating option descriptions (This one is really annoying, options are a totally separate system which doesn't know about Application, intentionally, so that that system is easier to understand... Maybe option declarations can reference a translation key instead of having the description embedded? Hmmm...)
[ ] Update ReflectionKind stringification to support i18n
[ ] Update group plugin to use i18n reflection kind strings
[ ] Update theme to use internationalized strings
[ ] Consider moving localization strings to @typedoc/locale-X packages - it'd be nice to be able to update a locale without having to make a full release of TypeDoc. This probably requires figuring out how to do a monorepo for real, and will also require getting in touch with whoever it was that parked the @typedoc namespace on npm, since I don't own it.

Initial pass through all of TypeDoc with adding support for localized strings is done! the i18n branch has the current state of everything. There are ~250 strings that can be customized, visible in translatable.ts.
It's also worth pointing at internationalization.ts which discusses which strings I considered translatable, vs which were left directly as English in the source. The internal-docs/internationalization.md page discusses adding translations to TypeDoc.
Remaining work:

[ ] Consider @typedoc/locale-x
[ ] Add locales option to let users overwrite a few translations directly without having to define a plugin or get it added to TypeDoc.
[ ] Figure out how translations can be reviewed - I certainly don't have the expertise to do so... maybe follow in Definitely Typed's footsteps and ask translation submitters to find someone who can review their work + include names at the top of the locale file for future translation contributors? (Maybe this is what crowdin makes easier?)

@shlomiassaf it looks like you own the @typedoc organization on npm, according to some really old discussion in #595. Could you transfer that ownership to me so that it can be used for this?

Fixed with TypeDoc 0.26, which is releasing 2024/06/21


fix bug in MinimizeTermConstruction

So, we can't do it inside an or pattern because unless the pattern appears on every branch of the or, it can't actually be used on the rhs, and we don't want to bother to compute whether that is the case.
As far as collections, it considerably simplifies pattern matching to forbid as patterns which bind subcollections of a map, list, or set. so we are careful not to introduce such terms in this pass as the llvm backend does not yet support them.


Fix Issue 20426 - doesPointTo with void[N] fails

Accept a false positive/negative for may/doesPointTo

Unfortunately there's a problem with the mayPointTo(void[n], T) check that didn't occur to me in time. Aside from containing pointers, the mystery memory region could also contain the language's built-in array slices that are represented as (length, pointer) pairs. Since we also don't know the element size, any (length, pointer) pair where the pointer is non-null and the length is non-zero potentially refers to the entire memory range from the pointer to the pointer plus the greatest multiple of the length that can be added to it without overflow.
IDK if it's worth checking this. It might be better to change mayPointTo(void[n], T) back to always returning true like in the first version of this PR.

Hm... I think it's worth revising, the use case that prompted this is TaggedAlgebraic, which uses a void[N] for storage. That could easily contain an array. Given that mayPointTo returning false is supposed to be "100% sure", I'd say we should opt for the cautious version.

We could still implement checks like if the N is 3, it can't be a pointer, or if it's 5, it can't be an array (on 32-bit), but I'd say that the easiest thing is to return true. It can be enhanced later if a need arises.


Additional error message for date-input field

Related documentation
Date input error messages
Suggestion
Does there need to be an error message pattern for if a user includes a year but only puts 2 digits, for example 27 3 92.
Is it safe to assume a year from two digits, for example 92 is 1992? But then 20 could be 1920 or 2020 etc.
Should we stipulate that the field needs to be 4 digits/numbers if a user only enters 2?

@charlieboydellsmith Thanks for flagging this issue, and apologies for the late response!
We've updated the 'If the date is incomplete' section under 'Error messages' on the date input page.


[Feature-request] Any plans for integrating Samsung IAP and Amazon IAP to this plugin?

If we could integrate both Samsung and Amazon IAP to this plugin, it would greatly help apps to promote and monetize across the most commonly used platforms outside the Google ecosystem.
Own more than 20% market share in android devices
https://gs.statcounter.com/vendor-market-share/mobile/worldwide
Amazon Kindles in e-reader marketplace own 5% across categories
https://gs.statcounter.com/vendor-market-share/tablet/worldwide

Would also like to see this added!
+1


MSM: Add FFA Addition gate

Closing in favour of https://github.com/o1-labs/proof-systems/pull/1904 which does the same but with micro-PR tactics.


[Snyk] Fix for 5 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

jobs/azure-discovery/pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

539/1000  Why? Has a fix available, CVSS 6.5
Directory Traversal SNYK-JAVA-COMAMAZONAWS-2952700
No
No Known Exploit

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038424
No
Proof of Concept

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
No
Proof of Concept

539/1000  Why? Has a fix available, CVSS 6.5
Denial of Service (DoS) SNYK-JAVA-IONETTY-5725787
No
No Known Exploit

586/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.3
Allocation of Resources Without Limits or Throttling SNYK-JAVA-IONETTY-6483812
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Note: This is a default PR template raised by Snyk. Find out more about how you can customise Snyk PRs in our documentation.
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal
🦉 Denial of Service (DoS)
🦉 Allocation of Resources Without Limits or Throttling

Checkmarx One – Scan Summary & Details – ac4f0179-e17a-4246-8688-7acfa7f76df9
Fixed Issues

Severity
Issue
Source File / Package

CVE-2024-4068
Npm-braces-3.0.2


date format

Much like the commit fixing #809, it would be nice if there were also a way to bypass errors coming from the setupMobile () section (lines https://github.com/chmln/flatpickr/blob/master/src/flatpickr.js#L1888-L1918) when using a custom formatDate method. (Like the other posted on #809, I also am using moment.js for timezone reasons).
Specifically, there are four problem lines:
L1897, L1901, L1904, L1918
This could be resolved by explicitly having a mobileFormatStr config option (again, just like the aria options for #809), and possibly a "mobileFormatLimitStr"?
I realize this makes quite a few "config" strings, but it does cover the bases.
Thanks for a great product.

Hello,
I recognize that this may be a problem for those using custom formatters.
However, there are solutions that don't involve adding extra options.
I recommend catching those exact date strings in your formatDate(), something like:
function formatDate(dateObj, format) {
  switch (format) {
    case "Y-m-d\\TH:i:S":
    ....
  }
}


clean up iso_language.rb

there are unused methods (they were only used for importing and normalising data). Lines 10-16 could be outsourced in a helper.

[ ] Remove the table tag_language?
[ ] remove the model TagLanguage

done


Support non-Bazel builds for third-party analyzers

I am trying to set up a Gradle build for a standalone analyzer. It's difficult to figure out which dependencies are needed just from looking at the shipshape build. Also, some of the dependencies do not seem to be available as Jars. Some things we can do to better support other build systems are:

Document all dependencies - artifact names and versions
Make sure dependencies are available on a Maven repository
Provide an example for using e.g. Gradle

I solved the dependency hassle by running
$ bazel build //shipshape/java/com/google/shipshape/service:java_dispatcher_deploy.jar

and then using the produced deploy.jar as compile dependency. This does not seem like the best way to do it though.


fix: disable no-await and ban-ts-comment

Removes some superfluous rules.

unicorn/no-await-expression-member - this disables the error on (await foo).bar, which is a stylistic preference by Sindre.
@typescript-eslint/ban-ts-comment - this disables the error when using // @ts-ignore. We should be judicious about its use, but there are good usecases for it (e.g. kafka.ts, which uses some nasty hacks to re-package a poorly written third-party library).


Use Skills between TwilioWhatsAppAdapter

How to send messages between Skills using TwilioWhatsAppAdapter
Description
Twilio Adapter expects header params x-twilio-signature. How to send it from RootBotApp to SkillBotApp.
To Reproduce
Steps to reproduce the behavior:

Run RootBotApp and SkillAppBot in TwilioWhatsAppAdapter
Post to skill from RootBot

@garypretty - Can you comment here or transfer to the appropriate repo?

Hi @manju605, I am not familiar with the community adapters and samples you are referring to so you may want to post your question in the community repo.
That said, the communication between the root and the skill shouldn't requiere any channel specific headers, it is a plain HTTP call (with auth). The root bot that hosts the adapter is responsible of settings the headers for the channel before sending the activity it got from the skill back to the channel.

@manju605 The Twillio WhatsApp adapter is a community repo and not maintained by Microsoft. Can you please reopen your issue in the BotBuilder-Community and someone from the community can help assist you with your issue there.


<EMAIL_ADDRESS>0x0001): symbol not found in flat namespace...

Error Message

Error<EMAIL_ADDRESS>0x0001): symbol not found in flat namespace '__ZNK2cv12MatAllocator23getBufferPoolControllerEPKc'
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1249:18)
at Module.load (node:internal/modules/cjs/loader:1043:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1067:19)
at require (node:internal/modules/cjs/helpers:103:18)
at getOpenCV (/Users/littlemeteor/Documents/opencv4nodejs-test/node_modules/@u4/opencv4nodejs/lib/cvloader.js:54:23)
at loadOpenCV (/Users/littlemeteor/Documents/opencv4nodejs-test/node_modules/@u4/opencv4nodejs/lib/opencv4nodejs.js:6:48)
at Object. (/Users/littlemeteor/Documents/opencv4nodejs-test/node_modules/@u4/opencv4nodejs/lib/opencv4nodejs.js:21:12)
at Module._compile (node:internal/modules/cjs/loader:1165:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) {
code: 'ERR_DLOPEN_FAILED'
}
Auto Build - Full Error Log

Manual Build - Environment Information

I installed the opencv with homebrew, then run install_arm64 script in package.json to build opencv4nodejs
the tools I used are:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
node-gyp has successfully built opencv4nodejs.node, but when I run require("@u4/opencv4nodejs") in test.js(a minimize test environment, only has this line of code), errors printed above occured: symbol not found in flat namespace....
my test code is here: https://github.com/cbhh/opencv4nodejs-test
I also uploaded build output files Release.zip to the repository
OpenCV version: 4.7.0_1
With OpenCV-contrib? (extra modules): yes
OS: macOS 13.2 on Apple M1

You can now try the new version V6.4.4
I think that your setup failed due to a missing Typescript dependence. (removed in v6.4.4)

yes, I almost have the same issue here, I installed<EMAIL_ADDRESS>and opencv4nodejs, and run opencv-build, finally got this issue, I think it is due to my node version should be v12, not v16
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

any fix for this?


Additional watched account tests

related to #378
New tests for

Adding custom names to watched multisigs / watched pures
Checking the correct badge is displayed for pures / multisigs
Checking new transaction button does not appear for watched accounts
Checking the subscan link is present on the options menu

Also removed some unnecessary double quotes in the locators on the page objects

@Tbaut @Lykhoyda I left some comments on specific things here, wanted to seek opinions before going further with more tests.

@asnaith you didn't share with us the mnemonic of this accounts. Any way you can do it, or didn't you use a new account for this?

@asnaith you didn't share with us the mnemonic of this accounts. Any way you can do it, or didn't you use a new account for this?

@Tbaut Yeah I had the signatories in this file
https://github.com/ChainSafe/Multix/blob/main/packages/ui/cypress/fixtures/watchAccounts/watchSignatories.ts
but your question made me check...and when I did I realized one of the mnemonics needed updating as it was incorrect, now all is correct in this pr: https://github.com/ChainSafe/Multix/pull/409


Uncaught Error: Module did not self-register.

[Enter steps to reproduce:]

Using Tabletop Simulator Package,
I loaded my current game scripts,
selected the one I wanted
scrolled to the location I wanted to edit
highlighted a selection of whitespace in front of the line I wanted to edit
clicked "delete" to clear the whitespace
also happens with left/right arrow keys

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Unknown macOS version
Thrown From: Atom Core
Stack Trace
Uncaught Error: Module did not self-register.
At ELECTRON_ASAR.js:160

Error: Module did not self-register.
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:20:18)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:695134)
    at get_KeyboardLayoutManager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2781650)
    at get_manager (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2781752)
    at Object.getCurrentKeyboardLayout (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2781878)
    at e.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1083882)
    at KeymapManager.keystrokeForKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1251844)
    at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1249829)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:284496)

Commands
     -1:47.4.0 tabletopsimulator-lua:getObjects (ul.list-inline.tab-bar.inset-panel)

Non-Core Packages
tabletopsimulator-lua 12.3.1

Thanks for taking the time to contribute!
We noticed that this is a duplicate of https://github.com/atom/atom/issues/20222. You may want to subscribe there for updates.
Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


Unable to read repository at https://testng.org/testng-eclipse-update-site/content.xml. Permission denied: no further information

TestNG Version

Note: only the latest version is supported

Expected behavior
Actual behavior
Is the issue reproducible on runner?

[ ] Shell
[ ] Maven
[ ] Gradle
[ ] Ant
[ ] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample

Please, share the test case (as small as possible) which shows the issue

Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

For issues with TestNG eclipse plugin please file them in https://github.com/cbeust/testng-eclipse/issues


New progress bar will never be created after some exceptions happened

🐛 Bug
Once some exceptions happened during progress bar is running, the progress bar will never be displayed after that.
To Reproduce
Steps to reproduce the behavior:

Open a viewer

import napari
viewer = napari.Viewer()

Open activity dock.
Define workers

from napari.qt.threading import thread_worker
import time

@thread_worker(progress={"total": 0})
def ok():
    time.sleep(1)

@thread_worker(progress={"total": 0})
def ng():
    raise ValueError()

Run following codes one by one

ok().start()  # progress bar is displayed
ng().start()
ok().start()  # progress bar is NOT displayed (tqdm progress bar is displayed instead)

Expected behavior

Environment

Please copy and paste the information at napari info option in help menubar here:

napari: 0.4.15rc0
Platform: Windows-10-10.0.22000-SP0
Python: 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
Qt: 5.15.2
PyQt5: 5.15.6
NumPy: 1.21.5
SciPy: 1.7.3
Dask: 2021.11.1
VisPy: 0.9.6
OpenGL:

GL version: 4.6.0 - Build <IP_ADDRESS>21
MAX_TEXTURE_SIZE: 16384

Screens:

screen 1: resolution 1368x912, scale 2.0

Plugins:

animation: 0.0.2
console: 0.0.4
napari-multitask: 0.0.2
napari-roi: 0.1.0
scikit-image: 0.4.15rc0
svg: 0.1.5
Any other relevant information:

Additional context

Hi @hanjinliu, thanks for raising this issue! I haven't been able to reproduce on main or 0.4.15rc1 - both ok() progress bars show up in the viewer, and I don't see anything in the terminal. However I will say that we haven't necessarily clearly defined what happens with a worker's progress bar if the worker throws an error.
To help me reproduce this can you give me a bit more info:

are you running this via ipython? I assumed so because there's no napari.run() call in your code
what version of tqdm do you have installed?
can you attach a gif or screenshot of what you see?

Hi @DragaDoncila , thank you for your reply!

are you running this via ipython? I assumed so because there's no napari.run() call in your code

Yes, I use Jupyter QtConsole for everyday Python. I also doubted QtConsole could be a problem because it is a Qt application itself, but in IPython I still got the same result (except that the ValueError traceback is printed out, which is usually silenced in QtConsole during running another Qt application).

what version of tqdm do you have installed?

I'm using tqdm=4.63.0 now. I was first using 4.62.x (I forgot what "x" was...) and that is when I found the bug.

can you attach a gif or screenshot of what you see?

@hanjinliu thanks for getting back to me. I'm not able to reproduce this at all, from Ipython or Jupyter notebook or through script - everything behaves as expected. I notice the ValueError in your screencap is not shown, either in the viewer or in the console. Seems strange but I wonder if that has anything to do with it... @tlambert03 do you have any insight into what could be causing the difference in behaviour?

can reproduce, but only in jupyter qtconsole (not in IPython).  will need to do into qtconsole to see why this might be hapenning

Just tested with napari 0.5.4 and fresh conda env and I can reproduce with jupyter qtconsole but not any other way.


Add Machine Learning EBook in Indonesian Language

What does this PR do?
Add Machine Learning Ebook in Indonesia Language and made a markdone little bit neat or clean
For resources
This is an ebook that tell about machine learning concept which is explained very well and good for beginner
Why is this valuable (or not)?
because the ability to understand a concept of machine learning algorithm is a must (i think) to become very good ML Engineer
How do we know it's really free?
it's like the college book and published for public
For book lists, is it a book? For course lists, is it a course? etc.
it's book
Checklist:

[ x ] Read our contributing guidelines.
[ x ] Search for duplicates.
[ x ] Include author(s) and platform where appropriate.
[ x ] Put lists in alphabetical order, correct spacing.
[ x ] Add needed indications (PDF, access notes, under construction).
[ x ] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

you changed the file structure, be careful with your IDE plugins and fix the problem

you changed the file structure, be careful with your IDE plugins and fix the problem

Yea, it happened because i used prettier. I've disabled that extension and fix the problem


Improved base tag handling

Takes care of issue #230 and #231.
This development aims to improve upon the current handling of base tags within the HyperLinkParser. More specifically, this introduces support for relative base tags in addition to fixing a bug relating to root-relative values when running on Linux. For more information, check the linked issues above.
The testing of this functionality have also been expanded upon to cover more ground. To that end, all of the base tag tests have been consolidated into one data driven test with multiple outcomes, as the tests are otherwise completely the same. All current test cases are still present, but the input for the invalid base tag case had to be adjusted. The old value of http:http://http: technically is a valid relative value according to the defined standard and as such the new logic would succeed in creating a Uri instance from it since relative values are now supported. However, the overall goal of the test case (ensuring that invalid values won't break the parsing) remains intact.

Would you be willing to refactor your changes to the Test class please? I understand semantically what you are trying to achieve with some of your changes but the diff makes it hard to quickly understand the impact of your changes to the tests. It's more important to have consistency in the code base and the keep the pr be as MINIMAL as possible. Also please do NOT delete/alter any tests that aren't necessary as this removes confidence that the change isn't causing issues with original set of tests.

PR accepted


Recycling Bin

What is your question? Describe in detail.
In case someone accidentally deletes their event, should we make a recycling bin so they can recover said event? If implemented, we could just delete these entries after like 24 hours or smth.
Describe a possible solution you have (if applicable).
Have a recycling bin that users can retrieve deleted resources from, and resources that are put there will be deleted within 24 hours.
Screenshots or Links
N/A
Additional context
N/A

Unnecessary compared to the complexity it would add


Allow map tagging on general ingest page

[ ] Bug
[x] Feature Request

Description
Allow someone to add tags to the map ingest general page.

I also want to be able to add tags to maps that are already ingested. Is this supported?


Support for separators in ListView

Row separators are non-trivial to do and ListView could help by providing them out of the box in a way that's easier to use than UIKit in most cases. The special characteristics of a separator are:

It sits in between rows but not above the first row and not below the last row in a section if there is a section header below
It disappears when a row is highlighted
Highlighting a row on either side of the separator will include the separator's area. In the diagram below, if you touch row 1, it highlights row 1 and the separator. If you touch row 2 it highlights row 2 and the separator.

          +----------------------------+  +
          |  row 1                     |  |     touch row 1
          |                            |  |
          +----------------------------+  |
separator ------------------------------  +  +
          +----------------------------+     |  touch row 2
          |  row 2                     |     |
          |                            |     |
          +----------------------------+     +

For these reasons separators are tricky to build. React could outshine UIKit by letting the programmer provide any View as a separator. This makes it really easy to customize the side margins/padding or have separators of arbitrary heights.
The API could resemble the other list child APIs and just be a delegate prop: <ListView renderSeparator={this.renderSeparator} /> where renderSeparator is a function that receives the section ID and the rowID of the row above it, and returns any View.

ListView now has renderSeparator.

renderSeparator doesn't seem to work with ListView

Can you provide more context, like a code sample of how you tried to use it?  I'm pretty sure it's working in the Movies sample app, but it might have broken.
-Spencer

On Jun 6, 2015, at 1:22 PM, Olivier Lesnicki<EMAIL_ADDRESS>wrote:
renderSeparator doesn't seem to work with ListView
—
Reply to this email directly or view it on GitHub.

Shot in the dark. If you install react native the normal way, you get 0.5 that doesn't have this feature yet. You need to manually do npm install<EMAIL_ADDRESS>in order to test it out.

"react-native": "^0.5.0" touché!

Can anyone explain the reasoning behind not having separators rendered above the first row of a section and below the last row of the section?
What is the reasoning for the row and section index checks here? https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/ListView/ListView.js#L409
Hard to pull of the native UIKit look without these.

@ide anything on the above?

I have been using renderSeparator, but it rendering the separator line after the last row (in the end). Why?

I'm using React Native 0.41.0 and getting the same problem that @proteye mentioned for React Native 0.35.0.
Is this being worked on yet?

Related? @RyanMitchellWilson

If provided, a renderable component to be rendered as the separator below each row but not the last row if there is a section header below. Take a sectionID and rowID of the row above and whether its adjacent row is highlighted.

I'm trying to add a separator (or just a style border to the first list item. Any idea how I could do that?  :first-child isn't available. Is there an index?

Note that I just landed (in master) separator highlighting/other custom render support in FlatList and SectionList. The API is a little different from ListView but should be easier to work with, just as powerful/flexible, and maybe a little more performant.

@sahrens Can you please acknowledge as what version is it compatible with? I'm running<EMAIL_ADDRESS>Can I use FlatList and SectionList!?

@Nygma297: you can browse both the source and documentation by version:
Docs have a version number in top left that will take you to this page: https://facebook.github.io/react-native/versions.html
github has a "branches" dropdown you can use to browse the source of your version: https://github.com/facebook/react-native/tree/0.42-stable/Libraries/

@Nygma297 FlatList and SectionList are newer, separate components than ListView. They are included in React Native 0.43 and above - so they will not be available in 0.42.
https://facebook.github.io/react-native/blog/2017/03/13/better-list-views.html
This thread is about the ListView component, which is different. FlatList has a simplified syntax and better performance. It does support item separators - when in doubt just check the API:  https://facebook.github.io/react-native/docs/flatlist.html#itemseparatorcomponent -


On editing cells: ValueError: At based indexing on an non-integer index can only have non-integer indexers

Environment

Operating System: Ubuntu
Python Version: Python 3.6.4 :: Anaconda, Inc.
How did you install Qgrid: pip
Python packages: notebook==5.4.0, qgrid==1.0.3, jupyterlab==0.31.5
Jupyter lab packages (if applicable):

JupyterLab v0.31.5
Known labextensions:
   app dir: /home/ubuntu/anaconda3/share/jupyter/lab
@jupyter-widgets/jupyterlab-manager
        @jupyter-widgets/jupyterlab-manager v0.34.0  enabled  OK
qgrid
        qgrid v1.0.3  enabled  OK

Description of Issue
I'm displaying a dataframe, and trying to edit it. I get the following error:
ValueError: At based indexing on an non-integer index can only have non-integer indexers
Reproduction Steps
In a notebook:
data = [[0, 28108, 'blah1', 'asd', 6, 0.6093999743461609, True],
 [1, 23277, 'blah2', 'dfg', 47, 0.5604000091552734, True],
 [2, 84668, 'blah3', 'asd', 7, 0.551800012588501, True],
 [3, 171563, 'blah4', 'asd', 8, 0.5310999751091003, True],
 [4, 133630, 'blah5', 'asd', 6, 0.5145000219345093, True]]
df = pandas.DataFrame(data)
grid = qgrid.show_grid(df, grid_options={"autoEdit": True}, show_toolbar=True)
grid

Then, try editing any of the cells. In Jupyterlab, I get a popup: Error occurred while attempting to edit the DataFrame. Check the notebook server logs for more information.. In the console:
[IPKernelApp] ERROR | Error occurred while attempting to edit the DataFrame. Check the notebook server logs for more information.
Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/qgrid/grid.py", line 1223, in _handle_qgrid_msg_helper
    old_value = self._df.at[location]
  File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1868, in __getitem__
    key = self._convert_key(key)
  File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1915, in _convert_key
    raise ValueError("At based indexing on an non-integer "
ValueError: At based indexing on an non-integer index can only have non-integer indexers

What steps have you taken to resolve this already?
Workaround for now was to manually set my_qgrid._df, but this seems hacky and unlikely to work correctly.

That not good...looks like a new issue with editing columns that have an unnamed index column in version 1.0.3.  I'll have a new release shortly but in the meantime you can get around this by downgrading to version 1.0.2:
pip uninstall qgrid
pip install qgrid==1.0.2

Thanks for the report.

This is fixed in version 1.0.5 which is now available on pypi.  It will be available on conda shortly...the build is still in progress.

Closing because this is fixed.


[libsndfile:*-android] build failure

Host Environment

OS: Windows 10.0.19042.1288
Compiler: Android NDK 23.0.7599858; clang 12.0.5

To Reproduce
Steps to reproduce the behavior:
./vcpkg install sndfile:arm-android
Failure logs
Starting package 1/14: libsndfile:arm-android
Building package libsndfile[core,external-libs]:arm-android...
-- Using community triplet arm-android. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: D:\dev\3rd-party\vcpkg\triplets\community\arm-android.cmake
-- Downloading https://github.com/libsndfile/libsndfile/archive/1.0.31.tar.gz -> libsndfile-libsndfile-1.0.31.tar.gz...
-- Cleaning sources at D:/dev/3rd-party/vcpkg/buildtrees/libsndfile/src/1.0.31-f71190aa0d.clean. Use --editable to skip
 cleaning for the packages you specify.
-- Extracting source D:/dev/3rd-party/vcpkg/downloads/libsndfile-libsndfile-1.0.31.tar.gz
-- Using source at D:/dev/3rd-party/vcpkg/buildtrees/libsndfile/src/1.0.31-f71190aa0d.clean
-- Configuring arm-android
CMake Warning at scripts/cmake/vcpkg_configure_cmake.cmake:433 (message):
  The following variables are not used in CMakeLists.txt:

      PYTHON_EXECUTABLE

  Please recheck them and remove the unnecessary options from the
  `vcpkg_configure_cmake` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/libsndfile/portfile.cmake:17 (vcpkg_configure_cmake)
  scripts/ports.cmake:141 (include)

-- Building arm-android-dbg
-- Building arm-android-rel
CMake Error at scripts/cmake/vcpkg_fixup_cmake_targets.cmake:95 (message):
  'D:/dev/3rd-party/vcpkg/packages/libsndfile_arm-android/debug/cmake' does
  not exist.
Call Stack (most recent call first):
  ports/libsndfile/portfile.cmake:39 (vcpkg_fixup_cmake_targets)
  scripts/ports.cmake:141 (include)

Error: Building package libsndfile:arm-android failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: libsndfile:arm-android
  Vcpkg version: 2021-09-10-2059ef11aa6067e6f59b0d939c5d17e3c5c47d3e

Additional context
If I comment out these lines so the only one left is set(CONFIG_PATH lib/cmake/SndFile) (the non-WIN32 path), the build works:
https://github.com/microsoft/vcpkg/blob/28af86cc15b53c09de6c0457e0ac737795e497e2/ports/libsndfile/portfile.cmake#L33-L37
This seems strange to me because the CMake docs suggest that WIN32 is set based on the target system - it seems to be getting this confused with the host at some point.
Worth noting that I previously installed the native versions of sndfile - Windows host and target - and they succeed.

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.


Fix memory management gotcha

Current problematic behaviour described in the docs:

Every Laminar element is an Owner. An element kills the resources that it owns when that element is discarded. An element is discarded when it is removed from the DOM. Now, here is an unfortunate loophole: what about a Laminar element that was created, owns some State or subscriptions, but that was never inserted into the DOM? Since it was never inserted, it will never be removed from it, so the resources that it owns will never be cleaned up. Unfortunately there is currently no way around this. This is a design bug that I will fix in a later version. So for now, do not proactively create elements that will never be added to the DOM. The most trivial workaround is to create a factory that creates an element when it's actually needed instead.

I plan to address this by starting the element's subscriptions when the element is inserted into the DOM rather than when the element is created. That way, the elements that were created but never inserted into the DOM will not hold any leaky resources, and so can be discarded without worrying about the subscriptions.
This means that an element that has subscriptions will need to listen to its own mountEvents stream, but it already does that for the purpose of unsubscribing when the element gets unmounted (see ReactiveElement.onOwned).
This solution will fix the issues when using ReactiveElement's subscribe* methods. However, as elements are Owners, they can also be used directly in methods where an implicit owner is required, which would still not be safe for the reason described above. Perhaps we need to avoid exposing elements as Owners, or maybe even extend Airstream's ownership API to allow for a delayed subscription start (basically, bring the subscribe* methods into the Owner?). This might also indirectly help us deal with the other memory management gotcha:

When a Laminar element is removed from the DOM, the resources that it owns are killed with no built-in way to resurrect them.

However, this starts looking a lot like the dynamic subscriptions system we had in previous versions of Laminar, where subscriptions could be turned on and off as the element gets mounted and unmounted. We should investigate if we can bring back this system without falling into other kinds of memory leaks (esp. zombie references).

Well, damn, this is indeed really hard.
Let's summarize the problem once again: when we create a Laminar element like so:
val el = div(onClick --> clickStream, child.text <-- textState)
we immediately create the required subscriptions for clickStream and textState. We will kill these subscriptions when el becomes unmounted, except this line of code does not actually mount it into the DOM, it merely creates the element. So it is entirely possible that el will never be mounted, and therefore that it will never be unmounted, and its subscriptions will live on forever, screwing up our logic and causing memory leaks.
The solution I was hoping to get working is similar to DynamicSubscription feature of Laminar v0.2 – basically, don't start the subscriptions until the element is mounted. Sounds simple enough – we can now safely discard el without mounting it. However, there's a deeper, nastier problem with this. Laminar elements are Owner-s, and we need those not just for subscriptions, but also for creating state variables such as textState. Indeed, it is easy to imagine a method like this:
def makeDiv(textSignal: Signal[String]): Div = {
  val el = div("Number of people:")
  val textState = textSignal.toState(owner = el) // imagine there's a reason to make it a State
  el <-- child.text <-- textState
  el
}

Same situation as before – simply calling that method and ignoring its output is enough to cause a memory leak (textState will never stop, and thus textSignal won't, either).
However, observe how we made el the Owner of textState. State gives us certain guarantees – namely, that once instantiated it will always run until its owner tells it to permanently shut down. The proposed DynamicSubscription would be incompatible with this guarantee, making State effectively indistinguishable from the lazy Signal.
Basically, to solve this memory management issue for good, we can't have Laminar elements remain Owners. Perhaps this calls for introduction of some kind of Component type, although I'm not quite sure what role it would play other than somehow provide an owner and maybe manage element lifecycle (given that this is what tracks mounting / unmounting).
This could potentially improve performance too, as we would only need to keep track of Components' root elements mounted status. I do not want to give up Laminar's compositional freedom. Currently you do not need to wrap your code in any wrappers, and can freely use functions / classes / objects / whatever to build your components. React's notion of components does not suit me at all, it's too constrained.
Less radically, I think perhaps we could introduce a Fragment[El <: ReactiveElement] type like Owner => El. We would recommend using this type for any reactive elements that you aren't 100% sure will be eventually mounted. We wouldn't be able to enforce it, but it is a relatively easy rule of thumb to follow, similar to don't pass State to a different owner's context, pass Signals instead that we already have.
Another option could be to provide something of a whenMounted hook, like so:
val el: Div = div.whenMounted { (owner, thisNode) =>
  val textState = textSignal.toState(owner) // imagine there's a reason to make it a State
  List(
    "Hey, "child.text <-- textState
  )
}

This seems like what people would generally intend state to work like, however this makes it hard to make a component that returns not just an element but also other data like perhaps some relevant streams that are generated from its state. So, this actually sounds like a use case for a well designed Component type. Hrmmmm.
I need to sleep on this... repeatedly.

The Component / Fragment approach looks suspiciously like IO :|
Kinda want to avoid going in that direction, having everything wrapped in a monadic type like that.

A few more things for my own clarity:

<-- and --> work just fine in terms of memory management, if we switch to a model where we start those subscriptions when the relevant element is mounted (as opposed to when it's created)
It's the "component's" state that we have a problem with. Ideally, elements should not be owners, they should contain a private owner and expose safe hooks to use it.
<-- and --> are some of those, but I think we need another one that would let you define Owner => A, where the Owner param is provided by the element, and A is an arbitrary output type.
A needs to be arbitrary in order to preserve easy composition. Perhaps it should be (owner, thisNode) => A instead, so that we can return thisNode is this is what we need. But we should also be able to return other things like bundles of nodes and streams.
This still feels too restrictive, however. If we go this way, a component will still need to be defined by a single element. Perhaps a Component type wrapping a Owner => A is better still, but it would require an Owner that is not related to a particular Element. The Component would need to be a Mod, I guess, similar to how an element is a Mod. The component would then be able to subscribe to its parent's mount events, so it would not become a toxic type like IO.
If we switch to subscriptions activating / deactivating onMount, we will need to provide convenience methods around that. If you unmount a component in React, all its state is lost. In Laminar, we can choose what we want to do.
None of this forces us to solve re-mounting unmounted elements. Component could potentially discard and re-run all of its contents when it's mounted again to get a clear state. But should it? I don't think so. This is all too abstract right now.

Component should become an Owner


3*cycle_length readers are created when using tf.data.Dataset?

Hello, I am creating a tensorflow dataset using the following code.
files = 'hdfs://default/testset/*'
ds = tf.data.Dataset.list_files(files)
ds = ds.apply(interleave_ops.parallel_interleave(tf.data.TextLineDataset, cycle_length=1))
ds = ds.shuffle(buffer_size=10000)
ds = ds.map(parse_line)
ds = ds.repeat()
ds = ds.batch(128)
ds = ds.prefetch(1)
iterator = ds.make_one_shot_iterator()
next_element = iterator.get_next()

Since the first line of each file is an empty line, I can notice it read 3*cycle_length(here cycle_length=1) files at the beginning from the the following output. After that, it still read files in order(not recurrently).
18/07/24 11:07:44 WARN hdfs.DFSClient: zero
18/07/24 11:07:44 WARN hdfs.DFSClient: zero
18/07/24 11:07:44 WARN hdfs.DFSClient: zero

I could not find a argument whose default value is 3. Does anyone know why it is 3? Thank you.

The default value of parallel_interleave()'s prefetch_input_elements argument is 2. Thus when the cycle_length is 1, there will be 1 + 2 = 3 files opened at the start of execution. I suspect it is not 3 * cycle_length for other values of cycle_length.
If you want to avoid this behavior, set prefetch_input_elements to 0.

Hi, @mrry, thank you for your response.
You are right that prefetch_input_elements is the key. But for the default setting, it did read  3*cycle_length, and if I give a value to prefetch_input_elements, it reads prefetch_input_elements+cycle_length files.


39 firebase starter

Added Firebase services and connected the project to the android app

Please run the android app before approving the pull request


Ability info on intro screen

Maybe in a popup instead of cluttering the intro too much.
https://www.reddit.com/r/classicwow/comments/rbat6v/teron_gorefiend_flash_game_remade_in_a_modern_web/hnnkf26/
https://www.reddit.com/r/classicwow/comments/rbat6v/teron_gorefiend_flash_game_remade_in_a_modern_web/hnod6gy/
https://www.reddit.com/r/classicwowtbc/comments/rbaqup/teron_gorefiend_flash_game_remade_in_a_modern_web/hnno5mj/

Agreed. Learning as you go is terrible here. Some way to see what each ability does before starting the simulation.


SQL error should close only with collapse icon.

Version: 1.0.10
Laravel: 9.5

When a SQL error occurs, some times I want to copy only a part of SQL query or simply select some part to hightlight and focus on it, but every time that a click is made on SQL query, the layer collapse.
I think that is better to open the error with a click on any layer part, but to close is a better option to close only using the collapse icon.
Copy all SQL with the copy button and paste after in a editor is almost always slow than select some SQL chunks directly from ignition.
Thanks!

Hi @eusonlito, great idea. I've tried to select, and accidentally collapsed the SQL fields too many times. If you, or anyone else feels up to the challenge, feel free to open a PR! Otherwise, I might look into it later :)
I'll leave this open for visibility!

bad bot


Enhanced Agent Hostname detection function

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[X] Feature or performance improvement

Requirement or improvement
We know that the hostname detection method of skywalking-agent is provided by JVM API InetAddress.getLocalhost().GetHostName().
https://github.com/apache/skywalking/blob/69e3d80e24b203bef4d86bfce2ef201a961373b0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/os/OSUtil.java#L46-L54
However, in some Linux system multiple network card scenarios (for example,container/ Alibaba Cloud ECS), the /etc/hosts file configuration is set in the container. Might look like:
Here is a case where hostname resolution is not assigned
in /etc/hosts,Only the following records:
::1     localhost       localhost.localdomain   localhost6      localhost6.localdomain6
<IP_ADDRESS>       localhost       localhost.localdomain   localhost4      localhost4.localdomain4

In this case, if there is no default bound device, GetHostName() will reverse resolve the host name <IP_ADDRESS> to "localhost", which is usually not what we expected.
So we may be able to make some improvements and perform a second detection for the case of returning "localhost", for example, from the linux kernel information:
// simple demo .When hostname is localhost, check again.
public static String getHostName() {
    if (HOST_NAME == null) {
        try {
            InetAddress host = InetAddress.getLocalHost();
            HOST_NAME = host.getHostName();
        } catch (UnknownHostException e) {
            HOST_NAME = "unknown";
        }
    }

    if (HOST_NAME == "localhost"){
        try{
            HOST_NAME = new String(Files.readAllBytes(Paths.get("/proc/sys/kernel/hostname")), StandardCharsets.UTF_8);
        } catch (Exception e) {
            HOST_NAME = "unknown";
        }
    }
    return HOST_NAME;
}

Maybe things will change. Looking forward to feedback : ) .

I am asking to the Alibaba cloud team. Wait for some feedback.

in aliababa cloud's k8s container service ACK, the pod name and its real ip will be append in /etc/hosts file
here is an example:
[root@pod-centos /]# cat /etc/hosts
Kubernetes-managed hosts file.
<IP_ADDRESS>	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
fe00::0	ip6-mcastprefix
fe00::1	ip6-allnodes
fe00::2	ip6-allrouters
<IP_ADDRESS>	pod-centos

@gameover453 Seems there is IP in the host file. Are you in different case?

Thanks for the quick reply.
Yes, usually we don't specify a bound network device for the program (such as when it runs in a pod, such as when it is deployed in Aliyun ECI).
At this time, the program usually obtains the IP address "<IP_ADDRESS>" and obtains the "localhost" host name through reverse analysis(in /etc/hosts first hostname).
There is a related discussion in openjdk-jira, see:
JDK-8062840
We don't think modifying /etc/hosts is a good option (though it works, but it is tedious and unreliable), so we try to modify the implementation of getHostName() to solve the problem.
In fact, this is not a design issue.
But I think we might be able to help improve the problem of apm-agent not displaying the correct hostname.
Checking again when the hostname is "localhost", or omitting "<IP_ADDRESS>" if not specified, should help solve the problem.
expecting reply  : )

@gameover453 From the JDK discussion you referred, I am a little confused. They said, they provide reasonable logic for getLocalHost. Basically, SkyWalking doesn't care about which files you changed, it is about we are using JDK API. Different OSs have different implementation JDK, and we expect the return value is consistent.
I still can't see reading a linux specific file makes more sense. I think we shouldn't argue about change which file, because we don't require for that, we treat JDK implementation projects/vendors at an expert level, definitely better than us.

I agree.
This thing follows the JDK specification and we don't need to consider the JDK itself.
In fact, this problem is actually a special scenario: the exact network device was not specified when the program was started, causing the apm-agent get a LoopbackAddress.
Please close this issue.
Thank you.
Of course , I hope to provide some possible help for users who have encountered same problem.
My solution is when the apm-agent hostname is "localhost", use information provided by "/proc/sys/kernel/hostname" in the kernel. just like  "/etc/hostname" variable. (Linux environment only).
This does not necessarily work for any scenario, but it may help.

I think change and maintain a private version should not be a problem as this is a special case. If you have interests, could consider to change OSUtil into an agent service, which provide an override mechanism through the plugin.


Error Message when creating a Search Phrase

If you create a search phrase without the query and you run it, you will get an "alert" message like this one:
AN ERROR OCCURRED WHILE EXECUTING SEARCH Invalid input 'I': Expected 'o/O' (line 1, column 3 (offset: 2)) "LIMIT 10000"
We know what this is about, but I think this should not happen. I see two options here, the search phrase couldn't be saved without a query, or the error should be explicit.
Version: Bloom 1.0.2, Neo4j Desktop 1.1.10

Fixed in Bloom 1.0.3, closing


Now playing session time updates

As a user  I want to be able to know the current / remaining time from the control center. I want to be able to seek in the content as well.
Acceptance criteria

Elapsed and remaining times are correctly updated.
The seek bar works.

Out of scope
Possible slider hiccups will be addressed later.
Tasks

[x] Update time range information.
[x] Add livestream flag.
[x] Install / uninstall remote commands only when required (not with each update).
[x] Update current time information (find reliable source to trigger updates). Possible reasons for a current time update: Seek, player buffering.
[x] Configure slider command.
[x] Verify that the behavior is correct after a seek.
[x] Verify that the progress does not move while the player is stuck buffering.
[x] Verify that the behavior is correct for a DVR stream (e.g. when paused).
[x] Verify that the behavior is correct when transitioning between playlist items.
[x] Avoid using property publishers as sources (use player / item publishers if possible).
[x] Write tests for now playing info publisher.
[x] Check whether invalid values can be provided or not. Does it make sense to publish optional playback now playing info in such cases?
[ ] Check network and memory profiles.

We stumbled upon a subtle issue when polishing our implementation.
Issue and how to reproduce
Sometimes the control center was not displaying any metadata, in particular when proceeding as follows:

Open the empty demo.
Add a URN-based content (e.g. Telegiornale).
Check the control center. Metadata should be visible.
Clear the playlist, then add the same content back. It is very likely that the metadata is missing.

Analysis
We observed that this issue only affects URN-based content. We can investigate what happens in the metadata delivery we implemented in this issue as follows:
func nowPlayingInfoMetadataPublisher() -> AnyPublisher<NowPlaying.Info?, Never> {
    currentPublisher()
        .map { current in
            guard let current else {
                print("--> current: none")
                return Just(Optional<NowPlaying.Info>.none).eraseToAnyPublisher()
            }
            print("--> current: \(current) (\(Unmanaged.passUnretained(current.item).toOpaque()))")
            return current.item.$source
                .print("--> source (\(Unmanaged.passUnretained(current.item).toOpaque())")
                .map { $0.asset.nowPlayingInfo() }
                .eraseToAnyPublisher()
        }
        .switchToLatest()
        .print("--> info")
        .eraseToAnyPublisher()
}

The first time info metadata is correct and the log looks as follows:
--> source will be updated: receive subscription: (Concatenate)
--> source will be updated: request unlimited
--> source will be updated: receive value: (Source(id: 34211598-CE53-4D0D-BB37-5D64B0D72307, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78ea0>), metadata: nil, configuration: (Function))))
--> current: Current(item: Source(id: 34211598-CE53-4D0D-BB37-5D64B0D72307, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78ea0>), metadata: nil, configuration: (Function))), index: 0) (0x0000000283f71440)
--> source (0x0000000283f71440: receive subscription: (PublishedSubject)
--> source (0x0000000283f71440: request unlimited
--> source (0x0000000283f71440: receive value: (Source(id: 34211598-CE53-4D0D-BB37-5D64B0D72307, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78ea0>), metadata: nil, configuration: (Function))))
--> info: receive value: (nil)
--> source will be updated: receive value: (Source(id: 34211598-CE53-4D0D-BB37-5D64B0D72307, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: akamai+699CA493-63FF-4F43-B4C8-92294763E0E4+https://rsi-vod-amd.akamaized.net/ww/15916771/de9f9f735c8f758d99722035901d7348b710db10562ba46ac6affd74a6e20635/master.m3u8?start=0.0&end=313.072, delegate: <CoreBusiness.AkamaiResourceLoaderDelegate: 0x280c7c700>), metadata: Optional(Player.Asset.Metadata(title: Optional("Telegiornale flash"), subtitle: Optional("Telegiornale"), description: nil)), configuration: (Function))))
--> source (0x0000000283f71440: receive value: (Source(id: 34211598-CE53-4D0D-BB37-5D64B0D72307, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: akamai+699CA493-63FF-4F43-B4C8-92294763E0E4+https://rsi-vod-amd.akamaized.net/ww/15916771/de9f9f735c8f758d99722035901d7348b710db10562ba46ac6affd74a6e20635/master.m3u8?start=0.0&end=313.072, delegate: <CoreBusiness.AkamaiResourceLoaderDelegate: 0x280c7c700>), metadata: Optional(Player.Asset.Metadata(title: Optional("Telegiornale flash"), subtitle: Optional("Telegiornale"), description: nil)), configuration: (Function))))
--> info: receive value: (Optional(["title": "Telegiornale flash", "artist": "Telegiornale"]))
--> source will be updated: receive finished

The second time the info metadata is wrong and the log looks as follows:
--> source will be updated: receive subscription: (Concatenate)
--> source will be updated: request unlimited
--> source will be updated: receive value: (Source(id: 3AD60300-1FBB-4716-AE9D-1F9238A0E5FA, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78bf0>), metadata: nil, configuration: (Function))))
--> source will be updated: receive value: (Source(id: 3AD60300-1FBB-4716-AE9D-1F9238A0E5FA, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: akamai+2C2578DE-F656-4A47-BA5E-D546160A63EE+https://rsi-vod-amd.akamaized.net/ww/15916771/de9f9f735c8f758d99722035901d7348b710db10562ba46ac6affd74a6e20635/master.m3u8?start=0.0&end=313.072, delegate: <CoreBusiness.AkamaiResourceLoaderDelegate: 0x280d936e0>), metadata: Optional(Player.Asset.Metadata(title: Optional("Telegiornale flash"), subtitle: Optional("Telegiornale"), description: nil)), configuration: (Function))))
--> current: Current(item: Source(id: 3AD60300-1FBB-4716-AE9D-1F9238A0E5FA, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78bf0>), metadata: nil, configuration: (Function))), index: 0) (0x0000000283f713b0)
--> source (0x0000000283f713b0: receive subscription: (PublishedSubject)
--> source (0x0000000283f713b0: request unlimited
--> source (0x0000000283f713b0: receive value: (Source(id: 3AD60300-1FBB-4716-AE9D-1F9238A0E5FA, asset: Player.Asset(type: Player.Asset.(unknown context at $10493f6ac).Type.custom(url: pillarbox://loading.m3u8, delegate: <Player.LoadingResourceLoaderDelegate: 0x280f78bf0>), metadata: nil, configuration: (Function))))
--> info: receive value: (nil)
--> source will be updated: receive finished

We can clearly see that, when things go wrong, the final metadata is delivered first, before the loading item which has not metadata. This order is clearly incorrect.

The above fix might also improve AirPlay behavior in the following cases (see #134):

Moving back and forth in a playlist of DRM- or token-protected contents. Might be more stable now.
Moving fast to the end of a token-protected content list (we introduced UUID-based custom schemes to mitigate this issue but we should try again without).

This should be verified, though.


list_blob_names is slow on my storage, returns markers

Which service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of pip freeze.
azure-storage-blob==2.1.0
azure-storage-common==2.1.0
azure-storage-file==2.1.0
What problem was encountered?
list_blob_names is extremely slow for a particular blob as it seems to be listing "markers" , never seen that before, I just call list_blob_names without num_results.
The response object is an empty list and a marker:
x-ms-date:Thu, 28 May 2020 15:43:56 GMT
x-ms-version:2019-02-02
/alsordon/phillytools
comp:list
delimiter:/
marker:2!472!MDAwMzA5IXByb2plY3RzL2luZm9uY2VzL2MxMF9yZXMxOC9wdC1yZXN1bHRzL2FwcGxpY2F0aW9uXzE1ODMzMDcxNTM4NjhfMzIzNjMvU3VwQ29uL2NpZmFyMTBfdGVuc29yYm9hcmQvSW5mb05DRXNfY2lmYXIxMF9yZXNuZXQxOF9scl8wLjVfZGVjYXlfMC4wMDAxX2Jzel8zMDcyX3RlbXBfMC41X2wxMl8xLjAwX2wxY3V0Ml8xLjAwX2wxMkkxY3V0XzEuMDBfbnNfNTEyX3Zhcl8wLjEwMF90cmlhbF8wX2Nvc2luZV93YXJtL2V2ZW50cy5vdXQudGZldmVudHMuMTU5MDM0ODMxOS5jb250YWluZXItZTc3OC0xNTgzMzA3MTUzODY4LTMyMzYzLTAxLTAwMDAwMiEwMDAwMjghMjAyMC0wNS0yNVQwMzo0Mzo0OS41NjEyMDg5WiE-
prefix:projects/infonces/
restype:container
2020-05-28 11:44:01 AM - DD https://alsordon.blob.core.windows.net:443 "GET /phillytools?restype=container&comp=list&prefix=projects%2Finfonces%2F&delimiter=%2F&marker=2%21472%21MDAwMzA5IXByb2plY3RzL2luZm9uY2VzL2MxMF9yZXMxOC9wdC1yZXN1bHRzL2FwcGxpY2F0aW9uXzE1ODMzMDcxNTM4NjhfMzIzNjMvU3VwQ29uL2NpZmFyMTBfdGVuc29yYm9hcmQvSW5mb05DRXNfY2lmYXIxMF9yZXNuZXQxOF9scl8wLjVfZGVjYXlfMC4wMDAxX2Jzel8zMDcyX3RlbXBfMC41X2wxMl8xLjAwX2wxY3V0Ml8xLjAwX2wxMkkxY3V0XzEuMDBfbnNfNTEyX3Zhcl8wLjEwMF90cmlhbF8wX2Nvc2luZV93YXJtL2V2ZW50cy5vdXQudGZldmVudHMuMTU5MDM0ODMxOS5jb250YWluZXItZTc3OC0xNTgzMzA3MTUzODY4LTMyMzYzLTAxLTAwMDAwMiEwMDAwMjghMjAyMC0wNS0yNVQwMzo0Mzo0OS41NjEyMDg5WiE- HTTP/1.1" 200 None
2020-05-28 11:44:01 AM - DD String_to_sign=GET
x-ms-client-request-id:0da62ca2-a0fa-11ea-a479-554857c9fd70
x-ms-date:Thu, 28 May 2020 15:44:01 GMT
x-ms-version:2019-02-02
/alsordon/phillytools
comp:list
delimiter:/
marker:2!400!MDAwMjU1IXByb2plY3RzL2luZm9uY2VzL2MxMF9yZXMxOC9wdC1yZXN1bHRzL2FwcGxpY2F0aW9uXzE1ODMzMDcxNTM4NjhfMzIzNjYvU3VwQ29uL2NpZmFyMTBfdGVuc29yYm9hcmQvU2ltQ0xSX2NpZmFyMTBfcmVzbmV0MThfbHJfMC41X2RlY2F5XzAuMDAwMV9ic3pfMzA3Ml90ZW1wXzAuNV90cmlhbF8wX2Nvc2luZV93YXJtL2V2ZW50cy5vdXQudGZldmVudHMuMTU5MDM0ODQyMC5jb250YWluZXItZTc3OC0xNTgzMzA3MTUzODY4LTMyMzY2LTAxLTAwMDAwMiEwMDAwMjghMjAyMC0wNS0yNFQyMjowNjo1NS40NzUzMDk4WiE-
prefix:projects/infonces/
restype:container
Have you found a mitigation/solution?
No
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.

Hi @sordonia
Thanks for reaching out!

Just want to clarify that the "log" you pasted there are requests. If there's a marker in request that means the response returned that marker, then the response should have returned the list of blobs.
BTW you said "never seen that before" so does that mean this was working and suddenly it's not working? if that's the case we will look into service log and see what happens!
Thanks!

Hi !
i am looping the return of the list_blobs call
gen = self.bs.list_blobs(..)
for x in gen:
...
Yes suddendly markers started to show up. first few blobs list fine, then the markers slow down the listing terribly
Thanks!

Hi @sordonia
would you like to clarify a bit about "markers slow down the listing terribly", do you mean you have to wait for the marker to continue the next request?

Hi @xiafu-msft ,
I am getting the same issue.
Listing blobs is very slow :
self.blob_service = BlockBlobService(account_name=self.account_name, account_key=self.account_key)
for i in self.blob_service.list_blobs(container_name):
print(i)
It stucks as follows :

Thanks

Hi @erlisb
azure-storage has been deprecated, would you like to use azure-storage-blob<=2.1.0 or azure-storage-blob>=12.0.0 (there are be breaking changes if you use >=12.0.0)
@zezha-msft do you have any idea about the list_blobs behavior in azure-storage==0.36...


Add type parameter for motility

AbstractMicrobe types should be given a type parameter to represent motility, in order to avoid the inefficient motility::AbstractMotility in the struct definition.

On a second thought, this would make model creation really cumbersome as it requires to define model = UnremovableABM(Union{Microbe{2,RunTumble},Microbe{2,RunReverse}}, space, dt) to have e.g. a mixture of two motility patterns.

Just removed the typing on the motility field for now with #62


Add bdd test for update product

Add bdd test for update shopcart
Test bdd integration test

Codecov Report

Merging #90 (f8355bd) into main (46a8a34) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #90   +/-   ##
=======================================
  Coverage   96.91%   96.91%
=======================================
  Files           7        7
  Lines         421      421
=======================================
  Hits          408      408
  Misses         13       13

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[RFC] implement tmux 2.4 compatibility, fixes #159

See: changes from 2.3 to 2.4 20 April 2017. The bindings C-h, C-j, C-k and C-l are broken in tmux 2.4 copy-mode.
This code is a step up from having your cursor frozen in Vim while in tmux 2.4 copy-mode, but I had to remove the if-shell part of the script. Don't know why.

Hi @atweiden, thanks for the update. I'm not on tmux 2.4 yet myself so I can't test the correct behavior, but I've tested and there are no issues with this running on older tmux (specifically 2.3 in my case), and it sounds like a nice fix for tmux 2.4 users.
The removal of the if-shell seems fine since being in copy-mode-vi is inherently a tmux interaction, so having the direct tmux navigation mappings makes sense to me there.


⚠ Guya.moe Proxied has degraded performance

In 343045b, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 11947 ms

Resolved: Guya.moe Proxied performance has improved in 827670e after 11 minutes.


feat: Private API endpoint for open calls

I am adding new private API endpoint for OpenCalls. Endpoint itself is quite simple, but what made this task more challenging is searching ability, because:

country/municipality/department names are localized
name of open call is also localized (we should be able to deal with fallbacks)
instrument types is array of enums
status is enum

It was required to use full text search on all these attributes, BUT instrument_types or status are not texts and names are text, but there is extra logic which is enforced on app layer (fallback). I was able to come with three possible solutions:

do searching at app --> just load everything to app, run it through serializer and do searching then (simple, but quite slow for big sets and not really usable for backoffice)
modify PgSearch gem --> spend some time reading doc, but didn't find some nice way how to do it
use ransack --> backoffice already uses this and it is quite easy to extend, cons is that it is gonna be probably slower then PgSearch (seq scan/filter which it does looks quite intimidating :))

Whatever, I have decided to go for ransack option and written extra concern which adds three possible helpers to model:

generate_ransackers_for_translated_columns --> for every translated columns add ransacker option which fallbacks same way as traco at app
generate_localized_ransackers_for_static_types --> adds ransackers for static types. Allows to search or sort based on user language. For arrays, it does array_to_string
generate_localized_ransackers_for_enums --> similar as previous, allows to search/sort based on status text which is localized.

Testing instructions
Via Rswag documentation -- new API endpoint should be part of it, feel free to check all fulltext filters
Tracking
https://vizzuality.atlassian.net/browse/LET-940

Could we also do it like full_text OR contains in the rest of problematic fields?

Could we also do it like full_text OR contains in the rest of problematic fields?

No sure about question @tsubik :). Basically you can use any matchers mentioned at https://activerecord-hackery.github.io/ransack/getting-started/search-matches/ and some of them should be quite close to full text search (I have used cont, but we can use any of them). True full text search is handled by PgSearch which we already have at project, but I had problem to enhance it so it works with enum, static types or translation fallbacks. You can ofc use combination --> full text for all string values at db which are not translated (don't have fallback) and ransacker for rest.

I meant something like in pseudo code OpenCall.full_text_search.or(OpenCall.ransack_contains_for_troubling_attributes_scope).

But actually, I see there is no description, only name, so maybe cont is good enough as all of the searched fields are short strings.

I meant something like in pseudo code OpenCall.full_text_search.or(OpenCall.ransack_contains_for_troubling_attributes_scope).

Aha, I get it, hmm, I know that it is possible to combine queries generated by PgSearch  and ransacker, but I had problems when joins come into play, because they use different aliases. My experience here was that it is possible, but also quite fragile and does not work for all use cases. If it would be required to search also on top of description (which is localized with traco), we could either use PgSearch and give up on fallbacks or use ransack which is for sure gonna be slower.

Yeah, when combining complicated queries it's better to just pluck(:id) from one query and combine with simplest where(id: ...), but here it's fine how it is.

Yeah, when combining complicated queries it's better to just pluck(:id) from one query and combine with simplest where(id: ...), but here it's fine how it is.

Yes, exactly, with pluck, you can combine everything :D


Сould not save data to database

Hello!
I'm new in elixir and I have a problem with saving data to db through code, if I try to do it through iex like here, everything saved well but if I tried to do it through code I got error:

Error after running code on postgres_branch.
I have a suggestion that this is due to the fact that the post-grace does not start at startup.
I use a simple elixir app without Phoenix. Myrepo, master is with using mongodb, postgres_branch - when try to use postgres.
Env info:
elixir -v 1.6.2;
DB:
tried do it with postgres and mongodb too;
ecto -v 2.2.10
OS:
mac OS X

That's because the Friends.save() at the end of the file is trying to execute some code when your application is being compiled, before it is fully compiled and before its services are started. We need to improve the error message here but genereally speaking you should use iex to try out code. So you can remove the Friends.save from the bottom of the file and do iex -S mix and then type Friends.save in there.

@josevalim and what you can say now?

Remove this line https://github.com/dersar00/friends/blob/master/mix.exs#L17, as you are using Elixir v1.6, to make sure everything is started. If it doesn't work, then you should rather ask in the mongodb_ecto folks or elixirforum.

FWIW, the code from postgres_branch (after removing  Friends.module() call at the end of lib/friends.ex) works for me:
$ mix deps.get
...
$ mix do ecto.create, ecto.migrate
...
$ iex -S mix
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

23:59:35.773 [error] Supervisor 'Elixir.Logger.Supervisor' had child 'Elixir.Logger.ErrorHandler' started with 'Elixir.Logger.Watcher':start_link({error_logger,'Elixir.Logger.ErrorHandler',{true,false,500}}) at <0.174.0> exit with reason normal in context child_terminated
23:59:35.823 [info] Application lager started on node nonode@nohost
23:59:35.828 [info] Application xmerl started on node nonode@nohost
23:59:35.831 [info] Application jsx started on node nonode@nohost
23:59:35.836 [info] Application ranch started on node nonode@nohost
23:59:35.838 [info] Application ranch_proxy_protocol started on node nonode@nohost
23:59:35.840 [info] Application recon started on node nonode@nohost
23:59:35.840 [info] Application rabbit_common started on node nonode@nohost
23:59:35.848 [info] Application amqp_client started on node nonode@nohost
23:59:35.848 [info] Application amqp started on node nonode@nohost
23:59:35.854 [info] Application connection started on node nonode@nohost
23:59:35.864 [info] Application db_connection started on node nonode@nohost
23:59:35.865 [info] Application decimal started on node nonode@nohost
23:59:35.869 [info] Application postgrex started on node nonode@nohost
23:59:35.872 [info] Application poolboy started on node nonode@nohost
23:59:35.874 [info] Application ecto started on node nonode@nohost
23:59:35.902 [info] Application friends started on node nonode@nohost
Interactive Elixir (1.6.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Friends.module
%Friends.Person{
  __meta__: #Ecto.Schema.Metadata<:built, "people">,
  age: 28,
  first_name: nil,
  id: nil,
  last_name: nil
}

23:59:52.444 [debug] QUERY OK db=6.3ms
INSERT INTO "people" ("age") VALUES ($1) RETURNING "id" [28]
{:ok,
 %Friends.Person{
   __meta__: #Ecto.Schema.Metadata<:loaded, "people">,
   age: 28,
   first_name: nil,
   id: 1,
   last_name: nil
 }}
iex(2)>


libtorch-cuda-11.1 NuGet package is missing

Is this because the packages are too big?

You need to choose Linux or Windows - yes, because one package merging these would be overkill

@lostmsu -- is this still an issue, or can it be closed?

@NiklasGustafsson it sort of is, but I guess it is more about efficiency of C# compiler/NuGet, which should only download OS-specific packages until instructed to publish a version, that is OS-independent.


Cm 952: Simple Initialization With Collection Expressions in .NET 8

@AndreCarvalho Please review

@AndreCarvalho Project is moved now. Please review. Thanks


Cannot search across all messages in topic

Describe the bug
When i have a topic with a large number of messages (over 1m) the search failed to return a result which we know is in the topic. When we specified offset to 500k we found the message.
Set up

version: v0.0.1-SNAPSHOT a7d3f1d
Steps to Reproduce

Have a large topic
Search for a key of a message that you know exists in the later part of the topic

Expected behavior
Find message with the correct key  without specifying offset

@rrva

Hey, could you try it with a latest version? We've made some changes which might fix your issue (literally last commit). You can pull docker image tagged with master label.


[docs] Links on getting started page

Links here don't work any more, fyi @flynnduism
What would be the best way to fix it? Remove .md works but maybe they can auto-generated?

Same problem here


You can't use ClasspathConfigurationSource without an environment within a JAR

We package up a Java application into a fat JAR that contains all the application source code and the dependencies. This allows the application to be run as java -jar myapp.jar, however when doing this if I attempt to load a ClasspathConfigurationSource without having an environment set it blows up with:
Caused by: org.cfg4j.source.context.environment.MissingEnvironmentException: Missing environment: Directory doesn't exist:
    at org.cfg4j.source.classpath.ClasspathConfigurationSource.getConfiguration(ClasspathConfigurationSource.java:109)
	at org.cfg4j.source.compose.MergeConfigurationSource.getConfiguration(MergeConfigurationSource.java:62)
    at org.cfg4j.provider.SimpleConfigurationProvider.getProperty(SimpleConfigurationProvider.java:91)
    at org.cfg4j.provider.SimpleConfigurationProvider.getProperty(SimpleConfigurationProvider.java:64)

When running unpacked (from IDE) it all works correctly. Specifying and environment also fixes the problem, but this affects other configurations sources (EnvironmentVariablesConfigurationSource) and so I'd rather keep the environment empty.

Hey @buckett,
Thanks for reporting this! I'm having trouble reproducing the problem that you described. Could you post the sample code to github/gist or tell me how is your code different from this demo app? I'd really appreciate this :)
https://github.com/cfg4j/cfg4j-sample-apps/tree/master/classpath-bind
To run it (with a fat jar being built) clone the repo and the do the following:

./gradlew clean build
cd cd classpath-bind/
java -jar build/libs/classpath-bind-1.0.0-SNAPSHOT.jar

Would also you mind starring this project too - it makes it simpler for me to track all involved parties.

Thanks for the pointer to your examples.
I think the difference is that you're test application uses a spring boot and as a result the classloader that used is org.springframework.boot.loader.LaunchedURLClassLoader, in my application I'm just using a standard Java classloader  (I think it's a sun.misc.Launcher$AppClassLoader, but haven't got my code in the debugger again.
If I debug your sample application I can see the call to:
getClass().getClassLoader().getResource(pathPrefix.toString());

working correctly when an empty string is passed in, however if I use the parent classloader instead and pass in the empty string I get a null back.
getClass().getClassLoader().getParent().getResource("")

There's a some mention of this being a know issue on stackoverflow: http://stackoverflow.com/questions/21836950/urlclassloader-getresources-empty-resource-name-not-giving-roots-of-jars

Sorry for the delay. I managed to reproduce the problem. Thanks for fixing it!
What I also noticed is that the same problem occurs for other parameters (e.g. "/", ".", etc.). I'm going to do rethink how we handle environments since there's a few other issues with them too at the moment.

Released version 4.4.0. Let me know if you're still experiencing this problem :)


ModelPointClass will generate a gdignore regardless of whether "generate_gd_ignore_file" is true or false.

I have a ModelPointClass in my game project, using func_godot for mapping. I like to be able to access all of my folders from within Godot, so I set the "generate_gd_ignore_file" boolean to false within the ModelPointClass resource.

Even with this set, func_godot is insistent in still producing a .gdignore file within my Trenchbroom models folder.

Should be resolved by 2fba771


[Errno 2] No such file or directory: 'sass-convert'

Hi there,
Recently I'm getting this error when trying to run SassBeautify in Sublime Text 3:
"[Errno 2] No such file or directory: 'sass-convert'"
I'm not sure exactly when this started to happen. I've updated to High Sierra and to Sublime Text 3.0 build 3143. I've seen some other topics about this error around here, but the solutions (like adding the path in the user settings) don't work for me.
sass-convert seems to be installed:
which sass-convert
/usr/local/bin/sass-convert

I am not sure what made the difference, but I got SassBeautify up and running again. The final nail in the coffin of my problems was this comment: https://github.com/badsyntax/SassBeautify/issues/11#issuecomment-147745941
I did various things in Terminal and I admit that I'm not sure what everything meant. Some things I did was updating all npm packages, updating node, running brew doctor and as said, the commands in the above mentioned comment.
I'm glad I can use SassBeautify again and hope this helps other people with solving this error!


Update autorest version to prerelease 3.0.0-alpha.20240620.1

Generated by Autorest Regen Preview build 20240620.1Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/4841

API change check
API changes are not detected in this pull request.


Create docker image of mitmproxy

Steps to reproduce the problem:

Any other comments? What have you tried so far?
System information

We provide docker images here: https://hub.docker.com/r/mitmproxy/mitmproxy/


Ensure import for ToFloat and Remainder.

Discussion in Discord explored that toFloat64(Int32) did not appear to be working properly. Found that although ToFloat32, ToFloat64, and Remainder were implemented in Pervasive, they were not recognized in applications. Verified other parts of the compiler pipeline (e.g. all source copied properly, included in build) and also verified that a test application using toFloat64(Int32) worked properly after applying this change.
If I get some time later and this isn't merged, I can look into adding tests that use all of this functionality, but figured I'd open this PR at least for documentation.
The original error was I can't find a callable named toFloat64. (TypeErrors.ml line 343).

If I get some time later and this isn't merged, I can look into adding tests that use all of this functionality, but figured I'd open this PR at least for documentation.

I’ve added some trivial tests from 001-trivial/011-integer-conversions/ as 001-trivial/015-float-conversions/ that do catch the original error: https://github.com/pgfm1/austral/pull/1
AUSTRAL STDERR
	{
	  "module": "Test",
	  "kind": "Generic Error",
	  "text": [
	    { "type": "text", "content": "I can't find a " },
	    { "type": "text", "content": "callable" },
	    { "type": "text", "content": " named " },
	    { "type": "code", "content": "toFloat32" },
	    { "type": "text", "content": "." }
	  ],
	  "span": null,
	  "context": null
	}

If you merge that pull request into your branch (you can select merge, or squash, or rebase before clicking the green button) these tests will be added to your pull request.

Thank you! I'll review/update when I get free (4 hours or so)

Annnnnnnd the tests are merged into this branch and available in this PR!

Thanks for fixing!


clouds menu from menu table

Hi, how to clouds menu from menu table?

Meaning ?

if clicked on menu just close slide bar

What do you mean by slide bar? What dos you want to do?