Help this project stay strong

@JoshuaWise,
Hi Joshua,
Just seen the Patreon/Paypal links and a few thoughts sprang to mind.
It'd be a shame to see the competition win out just because they got the SQLite name for their repo - SQLite3 for node is top of the search list results just now. There's an excellent book on seo I came across recently. (I read it for free on kindle unlimited but will buy it at some point)
Some observations:
Have you considered crowd funding options for specific functionality like worker_thread and SQLCipher ? With 33K downloads a week it could work.
Another "sell"/focus for better-sqlite could be with  jupyter-lab/data science for Javascript developers - the work flow is essentially sequential so having synchronous data access is ideal. see here. Should also be very useful for users of TensorFlow.js

I'm not Joshua, but I want to give my opinion.

It'd be a shame to see the competition win out

This is unfortunately the mindset that keeps burning people out on open-source software. There is no competition. This is not a product.

just because they got the SQLite name for their repo

You are assuming sqlite3 has more weekly downloads than better-sqlite3 because of the name. Even if this number would mean anything, it is still not comparable. One project started in 2009 and the other in 2016. Even if we ignore that, then one project has a commercial entity behind and the other doesn't. So if you really wanted to look at it in a competitive way, then Joshua is already winning. He has created a beautiful piece of software that works better than the competition for almost every use-case. And he is also free to move the project in whichever direction he pleases, without behind held back by a corporate entity and its arbitrary goals and policies
If someone is in charge of a software project and bases their decisions off of which module is the first search result then this person should not be in charge of a software project.
@JoshuaWise I wanted to bring this up in the future but since this came up now: have you considered setting up GitHub Sponsors? I am currently held back by my health condition but once I'm able to launch my commercial product I was planning on supporting better-sqlite3. GitHub Sponsors would work best for me because I can write the costs off as business expenses. I'm not sure if that works with Patreon and definitely not with a PayPal transaction without a proper invoice. So I cannot promise anything right now, but maybe others would rather use GitHub Sponsors as well.

@Prinzhorn

"This is unfortunately the mindset that keeps burning people out on open-source software.

I suspect what burns people out is tirelessly working without reward and the expectation from evangelists that all software should be completely free - the notion that their time is essentially worthless.

"There is no competition,".

It certainly looks like competition: it is called "better"-sqlite after all and performance comparisons are front and center.  Competition can be a good thing.

"this is not a product"

Everything is a "product":  if it doesn't get and maintain enough traction it will die or deteriorate. Some of the best software products I've seen have gone to pot once the original author(s) bowed out. The exception is where it gets finished/reaches a point where it doesn't need work - rare in today's CI world.

search results

better-sqlite doesn't make it into the first few pages of search results for "sqlite node". Most people using node are just expecting to use async code. Once you've found something that does what you thought you were supposed to be doing and has 283K+ weekly downloads and you've trawled several pages looking for alternatives and not found any why would you keep looking ? The majority of JS developers aren't going to have a reason to add "synchronous" to their search terms or a use case where the performance sends them looking past node-sqlite3.

funding

Sponsorship (Github/Patreon) works for some people/organisations (as sponsors) but not for others.
PayPal works for some but not for others
Crowd funded milestones work for some / not others (it'd work for me right now)
Each has a group it appeals to so I'd use all three.

"" It'd be a shame to see the competition win out ""

Ok, so I should have put a smiley in there but the sentiment remains: I can use better-sqlite where I need sync or async (via a child process/messaging) but I can only use node-sqlite for async so I would much rather see better-sqlite with the bigger following and better chance of funding and survival that goes with that.

@bobOnGitHub fair enough

I'd like to shed some light on a few talking points, from the author's perspective.
better-sqlite3 started out, as most open-source projects do, as a package for personal use. I needed to accomplish some tasks in Node, and I found that the existing SQLite3 drivers were sub-adequate, so I created my own. As I dove into the source code of existing drivers (node-sqlite3, and few others), and as I experimented and tested different approaches, I consistently found evidence that async was not the right way to go for this. Believe it or not, better-sqlite3 was originally async.
After my discovery, I decided to share my findings publicly by posting benchmarks and describing why async drivers underperform in this situation. better-sqlite3 wasn't created with the purpose of "competing" against node-sqlite3. As @Prinzhorn  pointed out, node-sqlite3 does not even compete for funding/donations because it is controlled by a commercial entity.
However, I believe there is always an intrinsic competition between dogma/misinformation and reason/experimentation. A side effect of Node's own marketing is the perpetuation of the belief that async is "always" better for I/O operations. Any experienced programmer should be skeptical when reading the word "always". The reality is that async is advantageous under many common conditions, but those conditions are frantically evaded by SQLite3 (in a very intelligent way). However, without a deep understanding of SQLite3 and how it evades those conditions, the everyday programmer won't realize this (or even have the time to think about it).
Over time, I've used Node less and less. In fact, I'm not using better-sqlite3 for anything in my life right now. However, since it has become so popular, I feel an obligation to continue maintaining it. We all know the sad feeling of seeing a module you love go out of maintenance. However, it's difficult to justify spending so much of my time on something that nets me nothing in return. That's why I put up the donation options. I haven't gotten much (less than 10 donations, usually between $20-$40). But each time someone donates, it reminds me that people still care about this work, and it motivates me to continue working on it when I have time, instead of leaving it to decay.

Have you considered crowd funding options for specific functionality like worker_thread and SQLCipher ? With 33K downloads a week it could work.

I haven't considered this. Thanks for the idea; I might use it.

Another "sell"/focus for better-sqlite could be with jupyter-lab/data science for Javascript developers

Unfortunately, I'm not in the business of trying to integrate with projects that I don't use or understand.

If someone is in charge of a software project and bases their decisions off of which module is the first search result then this person should not be in charge of a software project

Unfortunately, as @bobOnGitHub  pointed out, this is what most JavaScript developers do. Hopefully leaders making important decisions won't, but the hobby programmer most certainly will, and they have equal weighting when it comes to SEO, which perpetuates the problem.

have you considered setting up GitHub Sponsors?

I haven't looked into it yet, but if it's the ideal way for some people (including you) to help support this project, then it's pretty much a no-brainer for me to setup that up. I'll get on that. Thanks for the suggestion.

So much for "Development of this module is sponsored by MapBox." https://kewde.github.io/sqlite

In fact, I'm not using better-sqlite3 for anything in my life right now. However, since it has become so popular, I feel an obligation to continue maintaining it.

I know this feeling. I cannot speak for you but feeling pressured into working on something is a shitty feeling. And if that's not enough toxic people show up and demand things (I'm not thinking of anything particular in this repo, but I've seen it happen enough). I'm glad you keep supporting the project and I like the way you handle everything. I think at this point better-sqlite3 just works and there are no major issues. So there's no reason to stress about that. I fully understand that there is simply no motivation for you to work on big new features that are not essential. Maybe when these feature requests come up you can make it more clear that the project is essentially in maintenance mode and people cannot expect these feature to magically appear out of thin air. I do have interest in better-sqlite3 and in the future I hope to be in a position where I (or my business) can support it. Until then I'll keep triaging issues every now and then.

For those interested and invested, you can now become a sponsor of better-sqlite3 through GitHub! Rejoice! (click here)

It'd be a shame to see the competition win out

This is unfortunately the mindset that keeps burning people out on open-source software. There is no competition. This is not a product.

@Prinzhorn Hit the nail on the head. This is not a product.
I've run an open source project commercially successful for 8 years now and I can tell you open source can never be the product:

Donations don't work
Sponsorship don't work
Begging don't work

You have no leverage as open source author, so it naturally can never be the product. You can, at best be "the nice guy" everyone exploits for their own benefit (I briefly was):

In fact, I'm not using better-sqlite3 for anything in my life right now. However, since it has become so popular, I feel an obligation to continue maintaining it. We all know the sad feeling of seeing a module you love go out of maintenance. However, it's difficult to justify spending so much of my time on something that nets me nothing in return.

This is nice guy mentality. You are trying to justify being exploited even though you see no results. You don't owe the world anything. There is no such thing as "obligation" unless you have a contract for work, telling you so.
In my experience (and this is the reason I write here), nice guy mentality never works. Ever. Whatsoever. For any purpose.
 Guess what? That was the instant I became profitable.

Don't work for free, for any reason, whatsoever.
People who nag and don't respect the above, ignore them.
The world doesn't owe you anything, especially not happiness.
If you are not in position to TAKE happiness, YOU need to change.

In Sweden we say "You are the smith of your own fortune"
Personally, I will never do open source again. My next project will be at best freeware with built-in pay-to-win locks.


Wrong RTP header extension parsing when it includes a direction

The following valid RTP header extension attribute:
a=extmap:1/sendonly urn:ietf:params:rtp-hdrext:ssrc-audio-level

produces the following parsed object:
{
  uri:   "urn:ietf:params:rtp-hdrext:ssrc-audio-level",
  value: "1/sendonly"
}

It's wrong. value should be 1 (numeric) and a new direction key should be sendonly.
BNF spec: https://tools.ietf.org/html/rfc5285#section-7

Yeah, the current method is a bit lazy:
https://github.com/clux/sdp-transform/blob/8794bce963759ca3301fc9430b9869d3014fbc89/lib/grammar.js#L99-L109
A better method here that accepts another optional field is welcome. Don't have too much time to look at it myself at the moment, but will merge a reasonable change with tests.

Pull Request #52 fixes (and improves) this.

I will publish a new version with it later today. Not sure if it should be a major bump, I think it could technically break some parsing a little bit.

Humm, may be. IMHO the previous behavior was a bit "buggy" (in the sense that, even when there was no direction, value was an integer). So in my app, I am doing this "hack":
let extId = parseInt(ext.value);

But, anyhow, the API changes since value is no longer a string nor it includes the direction so a major bump makes sense. Well, numbers are free! :)

Yeah, ended up bumping the major just to be sure. Hate it when patch bumps break my code underneath me :)
<EMAIL_ADDRESS>out now.
Thanks again.

Great, thanks!


zeek: 4.1.0 -> 4.1.1

Motivation for this change
Update to latest upstream release 4.1.1
Change log: https://github.com/zeek/zeek/releases/tag/v4.1.1
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 139317 run on x86_64-linux 1

2 packages built:

bro (python39Packages.zeek ,zeek)
python38Packages.zeek

Result of nixpkgs-review pr 139317 at 5321c273 run on aarch64-linux 1

2 packages built successfully:

python38Packages.zeek
zeek (python39Packages.zeek)

Result of nixpkgs-review pr 139317 run on x86_64-linux 1

2 packages built:

python38Packages.zeek
zeek (python39Packages.zeek)


[Fix #12663] Prevent Lint/Syntax being disabled by directive comments

Fixes #12663
This would swallow the syntax error, making it look like the file is all good.
In reality all other cops are not being run, even if Lint/Syntax is "enabled" again later on.
This code for example would show as having no offenses.
# rubocop:disable Lint/Syntax
1 /// 2
# rubocop:enable Lint/Syntax

a = ""
b = ''

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!


python312Packages.imap-tools: 1.5.0 -> 1.6.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.imap-tools is: Work with email and mailbox by IMAP
meta.homepage for python312Packages.imap-tools is: https://github.com/ikvk/imap_tools
meta.changelog for python312Packages.imap-tools is: https://github.com/ikvk/imap_tools/blob/v1.6.0/docs/release_notes.rst
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
closes https://github.com/NixOS/nixpkgs/pull/301597
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.6.0 with grep in /nix/store/qcnfjkin4r961jqvjm2xm3n9fii0jay8-python3.12-imap-tools-1.6.0
found 1.6.0 in filename of file in /nix/store/qcnfjkin4r961jqvjm2xm3n9fii0jay8-python3.12-imap-tools-1.6.0

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath
deltachat-cursed
paperless-ngx
python311Packages.deltachat
python311Packages.imap-tools
python312Packages.deltachat
python312Packages.imap-tools

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qcnfjkin4r961jqvjm2xm3n9fii0jay8-python3.12-imap-tools-1.6.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.imap-tools https://github.com/r-ryantm/nixpkgs/archive/13f18d0c8ea389d72dbb916e87de0f3bf0d23853.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/13f18d0c8ea389d72dbb916e87de0f3bf0d23853#python312Packages.imap-tools

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qcnfjkin4r961jqvjm2xm3n9fii0jay8-python3.12-imap-tools-1.6.0
ls -la /nix/store/qcnfjkin4r961jqvjm2xm3n9fii0jay8-python3.12-imap-tools-1.6.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

11 packages built:

deltachat-cursed
deltachat-cursed.dist
paperless-ngx
python311Packages.deltachat
python311Packages.deltachat.dist
python311Packages.imap-tools
python311Packages.imap-tools.dist
python312Packages.deltachat
python312Packages.deltachat.dist
python312Packages.imap-tools
python312Packages.imap-tools.dist

Maintainer pings
cc @dotlambda for testing.

Result of nixpkgs-review pr 301417 run on x86_64-linux 1

1 package failed to build:

paperless-ngx

10 packages built:

deltachat-cursed
deltachat-cursed.dist
python311Packages.deltachat
python311Packages.deltachat.dist
python311Packages.imap-tools
python311Packages.imap-tools.dist
python312Packages.deltachat
python312Packages.deltachat.dist
python312Packages.imap-tools
python312Packages.imap-tools.dist


feature/docs: improve documentation

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 22.04%. Comparing base (cb8c86a) to head (0ee13ae).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   22.04%   22.04%
=======================================
  Files           9        9
  Lines         635      635
=======================================
  Hits          140      140
  Misses        488      488
  Partials        7        7

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Could's find 'dataset_dog-fish_embeds.npz' file at CodaLab

Hi,
Thanks for sharing this code, I met a problem when I checked  examples/analyze_dogfish.py.
line 22: DOGFISH_EMB_PATH = BASE_DIR / "dataset_dog-fish_embeds.npz"
As I couldn't find dataset_dog-fish_embeds.npz at the link you offered.
Is there any typo of dataset_dog-fish_embeds.npz which should be dataset_koda.npz instead?
Thanks in advance!

It should be okay if the file does not exist, since it should be generated by analyze_dogfish.py (here). Only the dataset_dog-fish_train-900_test-300.npz file needs to be downloaded from CodaLab!


how to set select dynamically

how do you set option to be selected dynamically?

I think you're going to have to elaborate, do you mean simply selecting an option? Assigning it externally and then applying the change? Or Having the actual list of options change dynamically?
All of which are explained on the examples page.

my select list is like this
<select>
<option placeholder = pick something></option>
<option value="drone">drone</option>
<option value="copter">copter</option>
</select>

setTimeout(function(){ now make 'copter' option the selected one },5000)

what code should I put in settimeout function so that the menu/select select the copter option?

As listed on the options instructions for Select2 here, you need the following.
setTimeout(function(){
    $('select').val('copter'); // Select the option with a value of 'Copter'
    $('select').trigger('change'); // Notify any JS components that the value changed
},5000)

@SgtOddball covered it pretty well, and there's an example in the documentation for how to do it.

This appears to be more of a usage question than a bug report or common feature request.  As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.


[933] Makes search results unique

Resolves #933

Makes search results unique by flattening results array before unique is called
Tests for duplicate items in search results

One inline comment / question, let me know what you think after you finish rebuilding our Git repo :stuck_out_tongue:.

@AlanLiu96 your build failed

Looks good, merging! @AlanLiu96 please update the CHANGELOG in #1362.

Just rebased onto the latest master, waiting for a second green build.

committing to changelog now!


Incompatible with Mercurius + Next evolution of the library

Hello,
I'm currently trying to use your lib, but it doesn't work when I add these lines :
  fastify.setValidatorCompiler(validatorCompiler);
  fastify.setSerializerCompiler(serializerCompiler);

I have this error :
{"errors":[{"message":"Graphql validation error","extensions":{"exception":{"name":"FastifyError","code":"MER_ERR_GQL_VALIDATION","message":"Graphql validation error","statusCode":400,"errors":[{"statusCode":400,"validationContext":"querystring"}]}}}]}

Regards
Quentin

As it seems, we need to detect if schema is a Zod or JSON Schema / AJV. And handle validation accordingly.

https://github.com/mercurius-js/mercurius/blob/master/lib/routes.js#L71

to fix it i do it like this @turkerdev :

  fastify.setValidatorCompiler(({ schema }) => {
    const ajv = new Ajv({
      removeAdditional: 'all',
      useDefaults: true,
      coerceTypes: 'array',
      // any other options
      // ...
    });

    //@ts-ignore
    if (schema.safeParse) {
      return (data) => {
        try {
          //@ts-ignore
          schema.parse(data);
          return { value: data };
        } catch (e) {
          const validationError = fromZodError(e as ZodError);
          //@ts-ignore
          return { error: [{ message: validationError }] };
        }
      };
    }

    return ajv.compile(schema);
  });

Because this lib is not maintened anymore I have created a fork who fix all these issues : https://github.com/qlaffont/fastify-type-provider-zod2

@qlaffont This library is supported. Could you please send your changes as a PR with a test, so that we could properly review it?

You have everything on the repo if you want the src/index.ts is the same as the current library you just need to do a diff. And i have include some customs tests to test if everything is working on test folder.

@qlaffont I'm sorry but I honestly don't have time or energy to pull everything by hand and create a PR. Happy to review the PR if it's there.

@kibertoad or @turkerdev any update  ?

any update?


Fix Makefile

I tried to run Kitura using the latest Swift compiler on Ubuntu 15.10, but build failed with error log as below.
make[1]: Packages/Kitura-net*/Makefile: No such file or directory
make[1]: *** No rule to make target 'Packages/Kitura-net*/Makefile'.  Stop.

compiler version(DEVELOPMENT-SNAPSHOT-2016-02-25-a) is as follow
$ swift --version
Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift fc261045a5)
Target: x86_64-unknown-linux-gnu

I think Swift Package Manager is this cause. The behavior of Swift Package Manager has changed and directory names in Packages is different from previous version(DEVELOPMENT-SNAPSHOT-2016-02-08-a). For example,  previous version on OSX is here:
$ ls Packages/
BlueSocket-0.0.4              Kitura-HttpParserHelper-0.2.0 Kitura-router-0.2.0
GRMustache.swift-1.0.1        Kitura-Pcre2-0.2.0            Kitura-sys-0.2.1
HeliumLogger-0.2.0            Kitura-TestFramework-0.2.0    LoggerAPI-0.2.0
Kitura-CurlHelpers-0.2.0      Kitura-net-0.2.0              SwiftyJSON-2.3.3

Latest version on OSX :
$ ls Packages
BlueSocket-0.0.4              Kitura-Pcre2-0.2.0            LoggerAPI-0.2.0
HeliumLogger-0.2.0            Kitura-Sys-0.2.1              Mustache-1.0.1
Kitura-CurlHelpers-0.2.0      KituraNet-0.2.0               PhoenixTestFramework-0.2.0
Kitura-HttpParserHelper-0.2.0 KituraRouter-0.2.0            SwiftyJSON-2.3.3

Hi Akimasa, we actually fixed this issue by renaming the Kitura-net package (see https://github.com/IBM-Swift/Kitura-net/commit/213148d7a342ed9339abbe3806a8bf7a8caaa704). You may need to switch to the development branch of Kitura and delete your Packages folder to see this. Kitura may not build yet though as there are other issues with the latest swift binary that we are working on.

thanks :+1:


Update link to new standalone page

The new linked page has been updated to reflect Miron's suggestions


Comment: Implementation of delete in IntervalTree

Looking at the delete() method inside the Node class in your IntervalTree, and noticed your TODO comment:
        //TODO: Should we rewire the Nodes rather than copying data?
        //      I suspect this method causes some code which seems like it
        //      should work to fail.

I was also looking at Java 7 TreeMap source code  and they also use a Red-Black Tree based implementation, wondering if taking a cue from there you would want to slightly change your delete() implementation like so:
        private boolean delete() {

            if (isNil()) {  // Can't delete the sentinel node.
                return false;
            }

            Node y = this;

            if (hasTwoChildren()) { // If the node to remove has two children,
                y = successor();    // copy the successor's data into it and
                copyData(y);        // remove the successor. The successor is
                maxEndFixup();      // guaranteed to both exist and have at most
            }                       // one child, so we've converted the two-
                                    // child case to a one- or no-child case.

            Node x = y.left.isNil() ? y.right : y.left; // replacement

            if(!x.isNil()) { // if (replacement != null)
	            x.parent = y.parent;

	            if (y.isRoot()) {
	                root = x;
	            } else if (y.isLeftChild()) {
	                y.parent.left = x;
	                y.maxEndFixup();
	            } else {
	                y.parent.right = x;
	                y.maxEndFixup();
	            }

	            if (y.isBlack) {
	                x.deleteFixup();
	            }
            } else if(y.parent.isNil()) { // return if we are the only node.
            	root = nil;
            } else { //  No children. Use self as phantom replacement and unlink.
                if (y.isBlack)
                	y.deleteFixup();

                if (!y.parent.isNil()) {
                    if (y.isLeftChild())
                    	y.parent.left = nil;
                    else if (y.isRightChild())
                    	y.parent.right = nil;
                    y.parent = nil;
                }
            }

            size--;
            return true;
        }

Vivek.

I'll look into this, but I haven't had much time lately. This code has been rolled into my lab's repository, so I'll get to this at some point. Thanks!


Ever considered using windows-process-tree?

Just happened upon this and I figured it might be neat if this package wrapped/abstracted it.  This is made by Microsoft, so it's a pretty decent option for a solid reference implementation...
https://github.com/Microsoft/vscode-windows-process-tree
Anyway, love this lib, thank you so much!
cc. https://github.com/indexzero/ps-tree/issues/31#issuecomment-411707035

It would be awesome that we can use a module from Microsoft to do this.
Would you like to send a PR so that we can start to discuss based on the code?

I'm not intimately familiar with this library or the Microsoft one, I'm not sure when I'll have time to make an attempt (I'd really love to).
At the very least, let's let this issue serve as a bookmark for the future.  Whether I get to it first or you guys do...

Ok, would love to hear back from you in the future!

@atrauzzi we will definitely give it a try, the speed improvement should be really significative!

this would definitely be a nice improvement! It'd even be better if they could add some metrics to that call so that we stop using wmic (it's sooo slow).


Pomogite

kak zapustit igru/Ya pishu odinakoviy ip i port s druqom no necheqo ne poluchayetsa

To be able to run the game in a multiplayer mode you need to have a public IP (The computer-server that will be accessible from the internet).


improved doc: keymaps to use custom leap functions

Hello ggandor!
Big fan of your lightspeed.nvim!
I was setting up leap.nvim to use bidirectional. In lightspeed.nvim using bidirectional is as easy as the following:
vim.cmd([[
nnoremap s <Plug>Lightspeed_omni_s
]])

But :h leap only shows the following:
<Plug>(leap-backward)
<Plug>(leap-forward-x)
<Plug>(leap-backward-x)
<Plug>(leap-cross-window)

I found the instruction for bidirectional in README.md. With the new lua syntax it took me some time to figure out the remapping, hence the proposed changes in README.md might improve the doc.

Hi, thanks very much! I'm not sure this is necessary here, there's nothing plugin-specific about remapping keys, but it cannot hurt after all :) I updated the example to use vim.keymap.set, which is more comfortable, and the preferred way from 0.7 on.


The user or administrator has not consented to use the application with ID 'xxx' named 'AppName'. Send an interactive authorization request for this user and resource

Dear community
We are trying to have a look at the Partner-Center-SDK-Samples project to see what and how we could implement certain features/functionalities within this sample. We have registered an Native app in the Azure portal, granted ALL permissions available and than clicking on the "grant permission" button in the portal as well as with this url (real values left out) https://login.microsoftonline.com/TenantNameHere/oauth2/authorize?prompt=admin_consent&client_id=
ApplicationIdComesHere&response_type=code&redirect_uri=
http://localhost&login_hint=AccountLoginHere , we do receive the prompt for all permissions and accept it, how ever (even after + 1 hour waiting) we keep getting this error when authenticating: **Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS65001: The user or administrator has not consented to use the application with ID 'ApplicationIDHere' named 'PartnerSDKNative'. Send an interactive authorization request for this user and resource. Trace ID: 877998ed-d3ef-447c-bed7-5ca3996e3100 Correlation ID: 11280449-870a-4364-ba33-cb53772dca8a Timestamp: 2018-07-03 09:13:00Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.**
No idea what we are overseeing here ... Account is global admin, rights are granted, ApplicationId is inserted in the app.config along with the rest of values we must provide. I can see in the manifest that   "oauth2Permissions": [], is empty, shouldn't that be filled with the permissions we granted?
We have followed the following steps from these sources but with no success: https://www.koskila.net/2017/11/20/how-to-fix-admin-consent-issues-aadsts65001/
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d091b15d-8e5d-467b-9ea4-b947ae78dc81/the-user-or-administrator-has-not-consented-to-use-the-application-with-id-xxxxxx-send-an?forum=partnercenterapi
https://www.red-gate.com/simple-talk/cloud/security-and-compliance/azure-active-directory-part-3-developing-native-client-applications/
Does anyone have any suggestions?
Thank you in advance!

Hi,
Did you also register that app on https://partnercenter.microsoft.com under "App Management"?
Take a look at this https://www.youtube.com/watch?v=8RRssasC2Ys&feature=youtu.be
Might be helpful.
Regards,
Salman

Hi Salman
Thank you for your reply, this was actually the only step we couldn't perform because we didn't find this area when logging in with the global admin account. I think the issue here is due to the type of account we tried with, it is a global admin account but not our main partner account i think, i will ask our IT manager when he is back next week to have access to that account so we can configure it properly.
I will get back to you with the results next week in the hope that this will solve our issue.
Kind regards!

Hi,
Happy to help and best of luck :-)
Regards,
Salman

Hi @SalmanMukhtar
So we have managed to get it working using a partner account, i was a little confused between the accounts that we had available for us to use hence the issues using the sample.
Everything works like a charm now, amazing contribution, thank you guys and thank you @SalmanMukhtar  for your help!
Issue can be closed.
Kind regards


Kafka SSL SCRAM Login

Hi,
It doesn't seem to be possible to use a custom JAAS config with the Kafka-SSL Sink and Source.
It should be possible to set saslJaasConfig in https://github.com/apache/camel-kamelets/blob/main/kamelets/kafka-ssl-source.kamelet.yaml

We could add it, it will be in the 0.10.0 release, targeting Camel 3.19.0

Sure, I'll open a PR! Thanks

Thanks for your time.

I had this problem too, @rossdeane not sure if you were working on this, but I've opened a PR https://github.com/apache/camel-kamelets/pull/1093.
@oscerd Can you review it?

Hey sorry I didn't get around to submitting a PR, thanks for doing that @MarcoMartins86 :)


Overflow bug fix

@rnburn does this make sense? I wish C++ had ullround.

That's definitely not the right fix. std::llround will round to the nearest int64_t, and std::numeric_limits<int64_t>::max() is roughly half std::numeric_limits<uint64_t>::max(), so you'll be effectively sampling at 50%.

Right that's what I feared. Well I see hhvm dealt with a similar issue and used a ternary statement to resolve it. See https://github.com/facebook/hhvm/issues/5932. Let me see if I can use that.

It looks like that's for signed conversion.
I would cast your sampling date to a long double which can perfectly represent 64-bit integers (provided it's using an 80-bit implementation). Even if you add a conditional to handle the overflow, it's not going to be a very precise way of approximating the sampling rate.
The only problem with long double's is that they're required to be implemented on all platforms (e.g. win32).
You might be best off just using a less clever way of sampling with std::uniform_real_dist

Then let me post this on the Go client because that is where I "stole" this idea from.


Add JuiceSwitch which contains correctly formatted switch (from antd) for our form in create

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2131

PR #2132

PR #2133

PR #2134

PR #2135   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: 8MtB741cDgPulkwyaE02


numerical result analysis and map visualization

Hi, I am new to Swarm-SLAM framework. After several days of working, I ran the cslam_experiments preliminarily and got the wsl2 window display like this:

I ran the graco experiment on the Ubuntu 22.04 WSL2 environment, with two graco sequences placed on the /data folder:

I wonder if this means everything is fine, and try to get the numerical locating the mapping result for further analysis. However, I have no idea about at which folder I can find the numerical result.
what's more, there are some wrong with rviz2 on my WSL2, it got segment fault everytime when i try to launch it. so i wonder if there are other ways to visualize the result.

Hi, thanks for your interest on our project!
Everything looks fine on the out put you get!
Currently RVIZ in the only way to visualize the map, and we don't have a map export format, but it should come soon :crossed_fingers:
However, you can access the resulting pose graphs, which are published on a couple of topics that publishes https://github.com/lajoiepy/cslam_interfaces/blob/main/cslam_common_interfaces/msg/OptimizationResult.msg or https://github.com/lajoiepy/cslam_interfaces/blob/main/cslam_common_interfaces/msg/PoseGraph.msg .
By enabling the logs, and making sure you have a results folder, you should obtain pose graph file in the .g2o format (https://github.com/RainerKuemmerle/g2o) which can be visualized with their tool g2o_viewer tool.

Hi, thanks for your interest on our project! Everything looks fine on the out put you get! Currently RVIZ in the only way to visualize the map, and we don't have a map export format, but it should come soon 🤞 However, you can access the resulting pose graphs, which are published on a couple of topics that publishes https://github.com/lajoiepy/cslam_interfaces/blob/main/cslam_common_interfaces/msg/OptimizationResult.msg or https://github.com/lajoiepy/cslam_interfaces/blob/main/cslam_common_interfaces/msg/PoseGraph.msg .
By enabling the logs, and making sure you have a results folder, you should obtain pose graph file in the .g2o format (https://github.com/RainerKuemmerle/g2o) which can be visualized with their tool g2o_viewer tool.

thanks to your reply, that's greatly helpful!
but I still have questions about how to convert the OptimizationResult/PoseGraph data format into TUM format(time, tx, ty, tz, qx, qy, qz), in which (tx, ty, tz) refers to translation and (qx, qy ,qz, qw) refers to rotation.
is there any tool availble, or should I write a tool to convert it?

Sorry for the delayed response.
From the g2o files you can use the functions in this script https://gist.github.com/lajoiepy/10fb6a09ec23d09a85166bf8a641c7ee to convert to TUM format

thanks a lot!

Hi, @HaiCLi in graco lidar experiments, please modify /src/cslam_experiments/config/graco_lidar.yaml to enable logs, and specify the log path with log_folder option in the .yaml file. as far as other experiments, please modify corresponding .yaml files.

Thanks bro

Hi,
Did you meet the same problem when you use the g2o_view to view the "pose_graph.g2o"? Or I used same wrong setting?
Thanks!


Example not working after pip install with requirements

Really cool work! I look forward to exploring more.
It looks like the example on the README does not work with the pacmap installed from pip. I get the following error:
    361         self.n_dims = n_dims
    362         self.n_neighbors = n_neighbors
--> 363         self.n_MN = int((n_neighbors * MN_ratio) // 1)
    364         self.n_FP = int((n_neighbors * FP_ratio) // 1)
    365         self.pair_neighbors = pair_neighbors

TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

After fixing this by putting in setting n_neighbors=10, I find the following error dealing with dimensions of the data:
    257 ):
    258     start_time = time.time()
--> 259     n, high_dim = X.shape
    260
    261     if intermediate:

ValueError: too many values to unpack (expected 2)

The shape of the data/coil_20.npy file stored in github ((1440, 128, 128)) is inconsistent with that expected by the example code.
Thanks!

Thank you for bringing this up! There is an inconsistency in the api between the pip version and the version that is currently on GitHub, which leads to the TypeError you got. We will update the pip version (and also the example code) ASAP to reflect these changes.

The sample code has been temporarily modified to be consistent with the pip version.

Thank you, the new example code works with my env now :)


Why this library work only with internet connection?

I spend a lot of time searching the issue in my code and the problem was the internet connection.
With internet all work fine, but without connection all work bad.

java.lang.NullPointerException at com.allattentionhere.autoplayvideos.AAH_CustomVideoView.onDetachedFromWindow(AAH_CustomVideoView.java:159)

Hi @sebamena , I just checked and the sample app works fine when internet is off.
Are you using the latest version of library (v0.1.7)?
If you are using latest version, can you help me reproduce this crash so that I can resolve it.

I tried to load only local videos on the itemviews.
When item is clicked, the camera is open and take the video, then load into the videoview.
With Internet works and witohout no.

Yes, the local videos were not playing when offline. Added support for that and released it, check out version 0.1.8
Thanks for raising the issue.

Hope the issue is fixed. Closing this for now, feel free to re-open if not solved.


[VS Code] Starting collaboration session: Only the 'http' scheme is allowed for proxies.

Error:
Starting collaboration session: Only the 'http' scheme is allowed for proxies.
Steps to Reproduce:

Version Data

extensionName
VSLS

extensionVersion
0.3.1151

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.31.0-insider

platformName
Linux

platformVersion
4.4.0-140-generic

Thanks for reporting the issue.  Please attach your logs here or email them to<EMAIL_ADDRESS>so that we can investigate this issue. You can get your logs by running "Live Share: Export Logs" in the command palette in VS Code

Closing this issue as its being tracked with #884


visual-studio-code 0.7.0

Updated link to new url based on javascript (old link broke)
Updated folder path inside archive (changed from last release)
Converted to versioned package with sha check

Thank you. Everything looks good. Could you please squash your commits?

@Ngrd Unbelievable, how many times am I going to forget that :angry:

Squashed. Thanks @Ngrd & @scribblemaniac , first homebrew-cask contrib.

Thank you @scribblemaniac for all the explanations for this case. @markhuber, your changes were so quick I even hadn't finished my comment about versioned URL in this cask. You both were always one step ahead of me. Well done!

Thank you for the contribution. It was merged directly as cb1e17b3848e9259fff2af421f3bde40116dd1d8 to keep commit history cleaner. Your contribution is still credited to you.


Test how many meters can the server take

Type
End-to-end
Area
Meters
Description
Test the load that the server can take in the amount of meters it can take at a single point in time.

ask the limits of the system that are to be expected - how many locations and meters


iOS installation

I'm not able to build the dependency for iOS. I get 'BRYXBanner/BRYXBanner-Swift.h' file not found and I don't know why.
Any help, please? Thanks in advance!

Also  Possible Unhandled Promise Rejection (id: 1): TypeError: null is not an object (evaluating 'RNNotificationBanner.Show') when trying to show the banner

I'm not able to build the dependency for iOS. I get 'BRYXBanner/BRYXBanner-Swift.h' file not found and I don't know why.
Any help, please? Thanks in advance!

You have to replace import statement to
import @BRYXBanner;


[ISSUE #4276] remove redundant cookie setting

fix: #4276
Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #4283 (c951ede) into master (f1aaa20) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #4283      +/-   ##
============================================
- Coverage     68.97%   68.90%   -0.08%
+ Complexity     7335     7333       -2
============================================
  Files           994      994
  Lines         28013    28003      -10
  Branches       2483     2480       -3
============================================
- Hits          19323    19296      -27
- Misses         7213     7225      +12
- Partials       1477     1482       +5

Impacted Files
Coverage Δ

...ache/shenyu/plugin/httpclient/WebClientPlugin.java
92.00% <100.00%> (+34.30%)
:arrow_up:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
68.75% <0.00%> (-31.25%)
:arrow_down:

...yu/sync/data/http/refresh/AbstractDataRefresh.java
68.96% <0.00%> (-13.80%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
44.68% <0.00%> (-8.52%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
21.27% <0.00%> (-6.39%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
81.63% <0.00%> (-4.09%)
:arrow_down:

...he/shenyu/plugin/grpc/client/ShenyuGrpcClient.java
8.00% <0.00%> (-4.00%)
:arrow_down:

...yu/common/dto/convert/rule/Resilience4JHandle.java
71.60% <0.00%> (-3.71%)
:arrow_down:

...rg/apache/shenyu/plugin/hystrix/HystrixPlugin.java
75.86% <0.00%> (-0.81%)
:arrow_down:

...yu/admin/service/impl/PluginHandleServiceImpl.java
75.47% <0.00%> (-0.46%)
:arrow_down:

... and 8 more

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


bug in picking one day , (no start date, no end) ,

i just wanna pick one day and filtter my data using it
any solution ?❤🔥

with this package you can't pick only one day , I recommand using showDatePicker


Rancher discovery - Removed hardcoding of query parameters

Removed hardcoding of query parameters (kind=service&state=active) in RancherClient and moved the same to yml file. Moreover, state=active is preventing to display dashboard for  upgraded services which are not yet finalised.

@priyadarsh,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

It looks like your PR has commits that are part of master. Can you try merging in master to clean up the comparison in your PR?

Sure closing this for opening a new PR


Method calls on non-variables

Hey @spencerwi I've been trying to get like 3.to_s or [1,2,3].first to work, and I think what needs to change is
     property: $ => seq(
-        field('object', $._variable),
+        field('object', $._expression),
         '.',
        field('name', alias(/[a-z][a-z0-9_]*[\?!]?/, $.identifier)),
    ),

since I think you can call a method on the result of any expression (though this might be wrong).
This change causes precedent problems with $assignment , so I'm not sure if I'm on the right track. Do you have ideas on what should be done?

Hm, maybe something like this?
@@ -383,8 +383,8 @@ module.exports = grammar({
         $.index_expression,
         $.property
       );
-      return prec.right(seq(
-        commaSep1(field('lhs', target)),
+      return prec.right(2, seq(
+        prec.right(1, commaSep1(field('lhs', target))),
         optional(field('type', $._typeAnnotation)),
         /=/,
         field('rhs', choice($._variable, $._expression))

Yeah, function calls are definitely the part that's hardest to work through. I've taken a couple of attempts at trying to support "bare" function calls (like puts "test hello" or getter :my_attr), with no real success so far - precedence conflicts happen like crazy. I've been trying to pin down places where whitespace shouldn't be allowed to try to avoid some of the conflicts I see when I poke at it.
I wonder if it's worth trying to adapt the tree-sitter grammar for ruby here...could be worth a shot.


[bug]: use of match keyword breaks Python 3.9

Is there an existing issue for this?

[X] I have searched the existing issues

OS
macOS
GPU
mps
VRAM
64
What version did you experience this issue on?
0e53b27655594b36d5565168998a8701a45e2c1f
What happened?
ReadMe says:
https://github.com/invoke-ai/InvokeAI/blob/6d821b32d3ba550624dce3f764c20b05c2af2afb/README.md?plain=1#L126-L127
However, the match keyword is used in a couple places, which is new in Python 3.10. Those two places are:
https://github.com/invoke-ai/InvokeAI/blob/6d821b32d3ba550624dce3f764c20b05c2af2afb/invokeai/app/services/session_processor/session_processor_default.py#L50
https://github.com/invoke-ai/InvokeAI/blob/6d821b32d3ba550624dce3f764c20b05c2af2afb/invokeai/app/services/session_queue/session_queue_sqlite.py#L62
Running this code causes Python 3.9 to bail. Please consider either deprecating 3.9 and updating the docs, or re-writing this to avoid match.
I'll just use newer Python - cheers :)
Perhaps you, like me, didn't know GH's code search has supported regex since May or so. Well, now you know :) This search does the trick, returning only match keywords as used in Python, using the regex /^\s*match\s.*?:$/.
Screenshots
No response
Additional context
No response
Contact Details
<EMAIL_ADDRESS>

Sorry about this. I do test every release against 3.9, but this one slipped past me. I'll make the fix now.


Error when creating Automatic Actions

Expected behaviour
When creating a new Automatic Action, clicking "Next Step" should move the user to the next part of action creation.
Actual behaviour
An error message is displayed:
Internal Error: Automatic Action Not Found: \Kanboard\Action\CommentCreationMoveTaskColumn
Steps to reproduce

Navigate to a Project -> Settings -> Automatic Actions
Click "Add a new action"
Select any action from the dropdown
Click "Next Step"

Configuration
Copy and paste the configuration section from the Kanboard settings page or fill these fields:

Kanboard version: 1.0.28
Database type and version: mysql\5.5.43-37.2-log
PHP version: 5.3.24
OS: Linux 2.6.32-604.30.3.lve1.3.63.el6.nfsfixes.x86_64
Browser: Chrome\49.0.2623.112 m, Firefox\33.1.1

I'm not able to reproduce the issue are you sure that everything is installed correctly?

I believe so.. The issue is only happening on one of my servers though. The
other is trouble free.
On May 5, 2016 8:39 PM, "Frédéric Guillot"<EMAIL_ADDRESS>wrote:

I'm not able to reproduce the issue are you sure that everything is
installed correctly?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/fguillot/kanboard/issues/2141#issuecomment-217326539


optimize the codegen of Vec::clone

these changes optimize Vec<u8, 1024>::clone down to these operations

reserve the stack space (1028 bytes on 32-bit ARM) and leave it uninitialized
zero the len field
memcpy len bytes of data from the parent

analyzed source code
use heapless::Vec;

fn clone(vec: &Vec<u8, 1024>) {
    let mut vec = vec.clone();
    black_box(&mut vec);
}

fn black_box<T>(val: &mut T) {
    unsafe { asm!("// {0}", in(reg) val) }
}

machine code with lto = fat, codegen-units = 1 and opt-level = 'z' ('z' instead of 3 to avoid loop unrolling and keep the machine code readable)
00020100 <clone>:
   20100:              b5d0             push    {r4, r6, r7, lr}
   20102:              af02             add     r7, sp, #8
   20104:              f5ad 6d81        sub.w   sp, sp, #1032   ; 0x408
   20108:              2300             movs    r3, #0
   2010a:              c802             ldmia   r0!, {r1}
   2010c:              9301             str     r3, [sp, #4]
   2010e:              aa01             add     r2, sp, #4
   20110:       /--/-X b141             cbz     r1, 20124 <clone+0x24>
   20112:       |  |   4413             add     r3, r2
   20114:       |  |   f810 4b01        ldrb.w  r4, [r0], #1
   20118:       |  |   3901             subs    r1, #1
   2011a:       |  |   711c             strb    r4, [r3, #4]
   2011c:       |  |   9b01             ldr     r3, [sp, #4]
   2011e:       |  |   3301             adds    r3, #1
   20120:       |  |   9301             str     r3, [sp, #4]
   20122:       |  \-- e7f5             b.n     20110 <clone+0x10>
   20124:       \----> a801             add     r0, sp, #4
   20126:              f50d 6d81        add.w   sp, sp, #1032   ; 0x408
   2012a:              bdd0             pop     {r4, r6, r7, pc}

note that it's not optimizing step (3) to an actual memcpy because we lack the 'trait specialization' code that libstd uses

before clone was optimized to

reserve and zero (memclr) 1028 (!?) bytes of stack space
(unnecessarily) runtime check if len is equal or less than 1024 (capacity) -- this included a panicking branch
memcpy len bytes of data from the parent

bors r+


Add support for path based deployment to the Resource Catalogue helm …

…chart

Yes, this needs to be well set by the user in the values


story selection

Right now the summary is always generated from the day's top story, but we should personalize which story is chosen, both deciding based on relevance to general climate change, and relevance to the specific user.
There is already a "summary" in each of the workspace/daily_news/2024-XX-XX/news_X.jsons, which should be easier to use for sorting (potentially with another LLM call) than trying to judge it based on the entire article contents.

This has been accomplished (recursively, no less!) with llm_calls.narrow_down_items()!


Add an option to allow nullable fields

Currently submiting null to a BooleanType field will result in false. This should at least be documented, maybe even add a form option to allow the Transformer to also return null.
I could create a PR if you are interested in this feature

As far as I know, you cannot do nullable boolean due to the fact that for Symfony false and null are one and the same.
https://github.com/symfony/form/blob/d27a0ee885f37905112c121f60add42f7bd2b0a5/Form.php#L527-L528
But you are right, this should be in README.

@ferdynator I've made a custom type to allow nullable booleans and used it in my APIs for years.
https://gist.github.com/nebkam/716ebdf89d0259cb1aac411ca7d4349f
By convention, it uses 1 for true, -1 for false and 0 for null, but you can adapt it to your needs.

@nebkam thanks for the update. I am currently using a similar solution. Symfony does not set false values so I am actually transforming false to "0" client-side (and true to "1"). That allows me to distinguish true, false and null server-side


Move some files under repo/setting

There are too many files under routers/web/repo and the file routers/web/repo/setting.go is too big.
This PR move all setting related routers' body functions under routers/web/repo/setting and also split routers/web/repo/setting.go

Why removed the reviewed/wait-merge label?

Why removed the reviewed/wait-merge label?

I found one test failed but now restarted it because the error is unrelated.


Avoid extra MediaType.parse() calls by adding charset to MediaType in FormEncodingBuilder

Add charset to MediaType in order to avoid it being added after calling .build()
RequestBody.create() always checks and adds utf-8 charset if undefined in MediaType causing an extra MediaType.parse() call for each use of FormEncodingBuilder

Are you sure? Note that the overload we're calling takes a ByteString.

You're absolutely right; Sorry about that.


Problem with error handling

I'm trying to implement a kind of user-extensible deserialization that allows you to "plug in" extra deserialize implementations. The basic idea is to have a Seed struct containing a HashMap<String, fn (&Seed, &mut erased_serde::Deserializer) -> erased_serde::Error> and use serde::DeserializeSeed to deserialize stuff. This is working pretty well, but there's an annoying issue with the error handling.
Whenever I call one of the deserialize implementations I can get an erased_serde::Error, but to bubble it up I need to convert it to an error for the deserializer I am using (serde_json at the moment, but I would like to remain generic), by using serde::de::Error::custom. These calls can be fairly recursive, so I might end up going back-and-forth between the two error types a few times. This is giving me error messages that look like this:
Error("trailing comma at line 32 column 41 at line 32 column 41 at line 33 column 37 at line 34 column 33 at line 35 column 29 at line 36 column 25 at line 36 column 25 at line 36 column 25 at line 36 column 25", line: 36, column: 25)
The ideal solution for me would be the ability to cast erased_serde::Error back to the original error type, by representing it as a Box<serde::de::Error>. I'm not sure whether my use-case is typical for this library so possibly this makes no sense in the general case, but I am interested to know what you think.

Thanks for reporting this! I would absolutely be interested in supporting your use case better. Box<Error> seems like a reasonable approach to try. Would you like to try it out and send a PR?

I've had a go into implementing this and unfortunately I'm not sure its feasible. The issue is that there is no 'static bound on serializer/deserializer errors meaning any kind of downcasting approach is not possible.


Crash with "trying to get apparently bogus texture handle 0" when attempting to animate path commands

Description
My Expo Go runner crashes with the above message (found in the iOS console) whenever I try to use either usePathValue or useDerivedValue to update a <Path> component's path prop with commands such as .lineTo().
Version
1.3.11
Steps to reproduce
Use usePathValue as described in the docs.
Snack, code example, screenshot, or link to a repository
Here's a Snack with a minimal reproduction. I don't think it's the same error as I'm getting on the device but it doesn't work anyway, and it's pretty much what I'm doing, following the docs as closely as I can. Hopefully it will reveal that I'm doing something obviously wrong!

My mistake: I hadn't fully understood all the restrictions placed on reanimated worklets (to be fair, the reanimated docs are very opaque on that). Everything works now. Apologies for the noise.


optimizer = Ranger21(params=model.parameters(), lr=learning_rate)   File "/mnt/Drive1/florian/msblob/Ranger21/ranger21/ranger21.py", line 179, in init     self.total_iterations = num_epochs * num_batches_per_epoch TypeError: unsupported operand type(s) for *: 'NoneType' and 'NoneType'

I get the following error when starting my training:
Traceback (most recent call last):
  File "tr_baseline.py", line 75, in <module>
    optimizer = Ranger21(params=model.parameters(), lr=learning_rate)
  File "/mnt/Drive1/florian/msblob/Ranger21/ranger21/ranger21.py", line 179, in __init__
    self.total_iterations = num_epochs * num_batches_per_epoch
TypeError: unsupported operand type(s) for *: 'NoneType' and 'NoneType'

initializing ranger with:
# ranger:
optimizer = Ranger21(params=model.parameters(), lr=learning_rate)

Well, have you tried as shown below,
from ranger21 import Ranger21
optimizer = Ranger21(model.parameters(), lr = 1e-02, num_epochs = epochs, num_batches_per_epoch = len(train_loader))

Hi @neuronflow,
@saruarlive is correct - the issue is we need to know how many epochs and how many iterations per epoch in order to auto-compute the lr schedule.
Clearly our error handling should be improved to make it clear the issue (I thought we were checking for this case) but from the error listed above, it's basically saying the num_epochs = None, num_batches_per_epoch=None, and it can't do any math with it.
I'll leave this open until I verify and add some better error handling, but the core issue is you need to pass in the total epochs and num_iterations (and we need to document this better).

thank you, with the above the training seems to start until it's crashing with this error:
  File "/mnt/Drive3/florian/multi_patch_blob_loss/neuronflow/training/epoch/trainEpoch.py", line 77, in train_epoch
    optimizer.step()
  File "/home/florian/miniconda3/envs/msblob/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
    return func(*args, **kwargs)
  File "/mnt/Drive1/florian/msblob/Ranger21/ranger21/ranger21.py", line 570, in step
    self.agc(p)
  File "/mnt/Drive1/florian/msblob/Ranger21/ranger21/ranger21.py", line 398, in agc
    p_norm = self.unit_norm(p).clamp_(self.agc_eps)
  File "/mnt/Drive1/florian/msblob/Ranger21/ranger21/ranger21.py", line 382, in unit_norm
    raise ValueError(
ValueError: unit_norm:: adaptive gclipping: unable to process len of 5 - currently must be <= 4

If I understand it correctly ranger21 contains a lr scheduler, so it does not sense to combine it with cosine annealing and warm restarts?

Hi @neuronflow,
The valueerror above comes from having 4 or more dimensions ala 3D convolutions.
If you pull the latest version that I posted last week then it adaptive clipping will handle any size dimensions so that is resolved.
To your other point - by default Ranger21 will handle the lr scheduling internally for you, so you would not want to use with cosine annealing or other lr scheduling.
You can of course turn off internal lr scheduling if you want to compare using Ranger21 internal scheduling vs your own scheduler...I wouldn't recommend it since there's a lot of validation behind the schedule Ranger21 sets, but certainly you can test it out to see.
You can turn off scheduling by removing the warmup:
use_warmup=False,
and the warmdown:
warmdown_active=False,
I can see that it might be simpler if had a single use_lr_scheduling = True/False so I think I'll add that soon...but for now, turning warmup and warmdown off will have r21 operate as an optimizer with no scheduling, and then you can drive the lr with your own schedule.
Hope that helps!

thank you once again, for the fast and detailed response with the latest update it seems to work! :)

One further question, I have a training where I use multiple training data loaders with different batch length..is it possible to apply ranger21 in this context?


ValueError: low >= high

Traceback (most recent call last):
  File "range_finder.py", line 336, in <module>
    main()
  File "range_finder.py", line 102, in main
    reachTen(stepper)
  File "range_finder.py", line 162, in reachTen
    action = stepper.choice([curr_sum, rand_num, cs_bool, r_bool])
  File "/home/bching/git/relsat/choice_function/stepper.py", line 131, in choice
    self.observe(terminal=terminal, reward=self.total_step_rewards)
  File "/home/bching/git/relsat/choice_function/stepper.py", line 98, in observe
    self.agent.observe(terminal=terminal, reward=reward)
  File "/home/bching/.local/lib/python2.7/site-packages/tensorforce/agents/memory_agent.py", line 136, in observe
    batch = self.memory.get_batch(batch_size=self.batch_size, next_states=True)
  File "/home/bching/.local/lib/python2.7/site-packages/tensorforce/core/memories/replay.py", line 81, in get_batch
    indices = np.random.randint(self.size - 1, size=batch_size)
  File "mtrand.pyx", line 993, in mtrand.RandomState.randint
ValueError: low >= high

I noticed that I am getting this error when I am loading a pre-trained model and the agent completes the run within one iteration. I did some digging around and I noticed that it was an issue with line 81 in replay.py. In my case, self.size is equal to 1 by the time it reaches line 81, and then you subtract 1 from that when you pass it into np.random.randint. In other words, you are passing in a value of 0 into np.random.randint, which throws that ValueError.
The work around I found was to remove the "-1" from the code. So essentially, the code on line 81 is now:
indices = np.random.randint(self.size - 1, size=batch_size)
However, I am wondering, will that cause any other issues with saving and loading models?

Any news on that, does it work in more recent versions?

Assuming it is fixed then...


[BUG]

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
My FS22 launch button keeps getting an error. I get a separate screen that exits out of the Mod Assistant. I would copy or take a pic but it will not let me.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- Mod Assistant Version:2.1.4
- OS: windows 11
- Virtualized: no

Anything else?
No response

So, there is a crash.log file that is created in C:\Users\[YOUR USERNAME HERE]\AppData\Roaming\fsg-mod-assistant - also of use would be assist.log from when that happened.  But without those log files, it is all but impossible for me to track down what might be happening.

Ok
I will check on that. Thank you for getting back so quick.
On Mon, Apr 10, 2023, 3:36 PM J.T. Sage @.***> wrote:

So, there is a crash.log file that is created in C:\Users[YOUR USERNAME
HERE]\AppData\Roaming\fsg-mod-assistant - also of use would be assist.log
from when that happened. But without those log files, it is all but
impossible for me to track down what might be happening.
—
Reply to this email directly, view it on GitHub
https://github.com/FSGModding/FSG_Mod_Assistant/issues/101#issuecomment-1502287535,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFZLWTKTPCR6YUISZFUEJJTXARVLXANCNFSM6AAAAAAWUQLHUA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Does not scans this qr code

This does not scans this qr code . Can anyone suggest how get through it

@wasimalam072 what version of ZXing.Net.Mobile did you test with?

@wasimalam072 what version of ZXing.Net.Mobile did you test with?

This QR code is inverted.  While some scanner support it, not all will, so best to avoid it.  See https://www.qrcode-monkey.com/6-reasons-why-your-qr-code-is-not-working
Tested as NOT working with version 3.1.0-beta2


Improving the versatility of the HTTP output binding

Description
Improving the versatility of the HTTP output binding. Removed the Read method since it is not an input binding.
Issue reference
Related to dapr/docs#153. Will update the docs for this binding as a follow up.
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#153

Please review @yaron2 @artursouza

@pkedy
This seems like a breaking change ... it removes HTTP as an input binding. cc @yaron2 @artursouza
This also breaks the current conformance tests defined for HTTP binding.

@mukundansundar this actually fixes the HTTP binding as it was never meant to be an input binding. the test must change accordingly. /cc @pkedy

@pkedy
This seems like a breaking change ... it removes HTTP as an input binding. cc @yaron2 @artursouza
This also breaks the current conformance tests defined for HTTP binding.

@mukundansundar this actually fixes the HTTP binding as it was never meant to be an input binding. the test must change accordingly. /cc @pkedy

Why not?

@pkedy
This seems like a breaking change ... it removes HTTP as an input binding. cc @yaron2 @artursouza
This also breaks the current conformance tests defined for HTTP binding.

@mukundansundar this actually fixes the HTTP binding as it was never meant to be an input binding. the test must change accordingly. /cc @pkedy

Why not?

In the older implementation, it was an input binding, and input bindings are blocking as they continuously get events. So for the HTTP binding, in practice this meant that the URL defined in the Component was only invoked once during startup and never again.
The HTTP binding was really meant to be a bi-directional binding where a user can invoke an external system over HTTP and get the data back.

It can be input binding where it gets dat

@pkedy
This seems like a breaking change ... it removes HTTP as an input binding. cc @yaron2 @artursouza
This also breaks the current conformance tests defined for HTTP binding.

@mukundansundar this actually fixes the HTTP binding as it was never meant to be an input binding. the test must change accordingly. /cc @pkedy

Why not?

In the older implementation, it was an input binding, and input bindings are blocking as they continuously get events. So for the HTTP binding, in practice this meant that the URL defined in the Component was only invoked once during startup and never again.
The HTTP binding was really meant to be a bi-directional binding where a user can invoke an external system over HTTP and get the data back.

The input binding could trigger an infinite loop getting from the URL every second or so. I am fine removing it for now.


Uniform code style of tools and fix docs of tools

PR types

Code refactoring
PR changes

Tools
Description

Update variable names and uniform the code style of tools

和develop分支有很多冲突，请先解决一下冲突~

好的


(WIP)[feat] add multiple arbitrable transaction

Pull Request Test Coverage Report for Build 755

0 of 32 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.7%) to 14.898%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/contracts/implementations/arbitrable/MultipleArbitrableTransaction.js
0
32
0.0%

Totals

Change from base Build 753:
-1.7%

Covered Lines:
195

Relevant Lines:
997

💛  - Coveralls

And If it isn't possible to have an abstracted deploy it should be removed from the abstract contract @n1c01a5


Can not oci_pull() public images from Docker hub

I've set up rules_oci-2.2.0 according to the release notes (WORKSPACE method) on Bazel 6.4.0. I have it first in my WORKSPACE file, so I think other rules should not interfere. The @distroless_base image works fine, but this one (and any other image from docker.io) does not:
# Example from https://github.com/bazel-contrib/rules_oci/blob/main/docs/static_content.md
oci_pull(
    name = "nginx_debian_slim",
    digest = "sha256:6b06964cdbbc517102ce5e0cef95152f3c6a7ef703e4057cb574539de91f72e6",
    image = "docker.io/library/nginx",
)

The error is this:
Details

WARNING: Download from https://index.docker.io/v2/library/nginx/manifests/sha256:6b06964cdbbc517102ce5e0cef95152f3c6a7ef703e4057cb574539de91f72e6 failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 401 Unauthorized
ERROR: An error occurred during the fetch of repository 'nginx_debian_slim':
   Traceback (most recent call last):
        File "/home/user/.cache/bazel/_bazel_user/9d4d543f391defb1aa88a2e874597605/external/rules_oci/oci/private/pull.bzl", line 351, column 55, in _oci_alias_impl
                manifest, _, digest = downloader.download_manifest(rctx.attr.identifier, "mf.json")
        File "/home/user/.cache/bazel/_bazel_user/9d4d543f391defb1aa88a2e874597605/external/rules_oci/oci/private/pull.bzl", line 161, column 74, in lambda
                download_manifest = lambda identifier, output: _download_manifest(rctx, authn, identifier, output),
        File "/home/user/.cache/bazel/_bazel_user/9d4d543f391defb1aa88a2e874597605/external/rules_oci/oci/private/pull.bzl", line 152, column 13, in _download_manifest
                fail(
Error in fail: Unable to retrieve the image manifest. This could be due to
*) Authentication problems. Check if `docker pull` command succeeds with same parameters.
*) Fetching an image with OCI image media types.
*) If there is a configured URL Rewriter, check that it does not block the request.

See for more: https://github.com/bazel-contrib/rules_oci/blob/main/docs/pull.md#authentication-using-credential-helpers

I can docker pull the image just fine. I retried after docker login on my machine, same thing.
By patching rules_oci, I found out it's trying to access https://index.docker.io/v2/library/nginx/manifests/sha256:6b06964cdbbc517102ce5e0cef95152f3c6a7ef703e4057cb574539de91f72e6, which indeed returns an error when I visit in with my browser, even when I'm logged into Docker hub.

Today it seems to work for some reason, I can't reproduce it anymore.


Update deepcell processing pipeline

Is your feature request related to a problem? Please describe.
Now that we have a way to get segmentations from deepcell without a separate upload step, we can combine the preprocessing and post-processing notebooks together.
Describe the solution you'd like
A single notebook called Segment_Image_Data or something along those lines. It should combine the functionality of the two notebooks together, and add in a call to the new kiosk-client function call.
Additionally, we should switch the format of the deepcell_input tifs to be channels_first, since deepcell now supports that and it makes it easier to load into image viewers.
Finally, now that we've settled on the format for the multi-tiff format, we can combine load_imgs_from_dir and load_imgs_from_multitiff into a single function that handles both a directory of single-channel images and a directory of multi-channel images

Hey Noah,

Additionally, we should switch the format of the deepcell_input tifs to be channels_first, since deepcell now supports that and it makes it easier to load into image viewers.

Could you please explain what does the channels_first format mean?
Thanks!

Sure thing. When you have images with multiple channels, the shape of your array can either be [channel, row, col] or [row, col, channel]. If channel is first we call this format channels first, and if channel is last we call that format channels last.
Channels last is more intuitive (I think) when working 4D arrays, where you have [image, row, col, channel]. However, most image viewing software expects [channel, row, col]. Therefore, we'll want to switch this function to save data with the channels first instead of last.
The other thing that could use some more explaining:
We currently have one function load_imgs_from_multitiff that loads multiple images from a directory. It assumes that each image is a multi-tiff image, meaning [rows, cols, channels].
We have a second function load_imgs_from_dir that loads multiple images from a directory. However, it assumes that each image is a single channel 2D image, meaning [rows, cols].
However, the second is just a special case of the first. So what we should do is combine these two functions together into a single function. We should keep the load_imgs_from_dir name.
load_imgs_from_dir has more functionality than load_imgs_from_multitiff. We should keep all of that functionality except for variable_sizes, which isn't needed anymore.


How to generate sam_train.json in ./dataset/sam_train.json ?

Sorry for the late reply, I can't find the program for generating the JSON file anymore. I only found some draft files and updated them in the 'tool' folder, named 'save_json.py'. I hope this can be of help to you.


API: Allow extensions to render a table in a view

It would be great for extensions to be able to render a table in a view, instead of a tree.
@IanMatthewHuff says:

Basically we just wanted to ask if this is a control that would be exposed in the public API in the future? Working with webviews we have a lot of flexibility but there are big trade-offs with having to deal with stuff like theming, accessibility, UI look and feel, webview building and so on. If this table view is something that we could use or be involved with testing we’d be very interested.

And I tend to agree!

Please expose this API.

I know that things are just in the proposed stage now. But if this helps any I'll share out quick our teams planned usage of a table control to lay out what we are looking to do.
Currently this is the table control that we are using for variables. It's based off a third party grid control and while it works, it's not great with look / feel / accessibility compared to a VS Code native control:
The data here is obviously placeholder, but this is the new design from our design team:
Functionality wise. The columns are just basic value columns. The icon buttons (to the right of container 1) would appear when any row is hovered over. The icons are basically just action / commands relative to the row in question. With the option for icon overflow.
The pin icon on the left is an option to pin rows to the top of the view. This would break them out of the sort order and allow for keeping them at the top of the list.
Obviously some of these requests (like the pinning) might not be requests on the vscode table control to provide. But more requests on the vscode table control to be flexible enough for us to provider that functionality ourselves. As something like pinning would involve letting us break items out of sort order.

Hey @IanMatthewHuff, my apologies in advance, I know this an old issue thread, but any chance you have this webview's code/markup styles available somewhere in GitHub/Gist? It looks like I'll have to follow a similar path to get UX appropriate tables to render in my extension's webviews. Thanks!

Di this nothing go anywhere? The tree view is nice, but it would be great with a table view

I am wondering what the state of this is. The table API is used by the Ports view, and is toggleable in the Problems view now.

Just another ping here. Still hoping to see something in the future.


fixed some bugs in 06-07.Data_Access

fixed some bugs in 06-07.Data_Access/02-Data_Access_rendered.ipynb

Hello @xinluo2018! Thanks for noticing that some elements of these tutorials are out of date. This was an intentional move, in order to publish the tutorials as they were delivered and to also sync with the docker image used to create the binder running environment. We did include a note to this effect within the tutorial (at the end of some lengthy explanatory text):

Please note that the tutorials presented here used version 0.2.0 of icepyx. These tutorials are set up to use that version in the provided Binder link, but they will not run without edits on more recent versions (>= v0.3.0) of icepyx due to non-backwards compatible changes in syntax. Similar, up-to-date data access tutorials/examples are available from icepyx.

The most up-to-date versions of these tutorials (which include the switch to ipx.Query) are available directly in the icepyx repository (examples directory). We'd love to have you submit bug fixes and updates there, since we are actively maintaining those examples.


Add Apache Struts2

Please add Apache Struts 2 to the list.

@creaturemonster Thanks for opening an issue! Please provide the following information so we can address your request.

Vendor Name
Product Name
Version(s) affected
Status: (Please choose from one of the following - Unknown, Affected,
Not Affected, Fixed, and Under Investigation.)
Update Available: Yes or No (If Yes, please provide link to information)
Notes
References
Last Updated: Date of last update

For questions about choice for status, please see the information below.

Unknown - Status unknown. Default choice.
Affected - Reported to be affected by CVE-2021-44228.
Not Affected - Reported to NOT be affected by CVE-2021-44228 and no further
action necessary.
Fixed - Patch and/or mitigations available (see provided links).
Under Investigation - Vendor investigating status.

Vendor Name
Product Name: Apache Struts 2
Version(s) affected:  Versions before <IP_ADDRESS>
Status: (Please choose from one of the following - Unknown, Affected,
Not Affected, Fixed, and Under Investigation.) Fixed
Update Available: Yes or No (If Yes, please provide link to information) Yes
Notes: The Apache Struts group is pleased to announce that Struts <IP_ADDRESS> is available as a “General Availability” release. The GA designation is our highest quality grade.
This release addresses Log4j vulnerability CVE-2021-45046 by using the latest Log4j 2.12.2 version (Java 1.7 compatible).
Please read the Version Notes to find more details about performed bug fixes and improvements.
Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework has been designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time.
References: https://struts.apache.org/announce-2021
https://struts.apache.org/download.cgi#struts-ga
Last Updated: Date of last update:  <IP_ADDRESS>

@creaturemonster Thank you! This has been added.


Command “flutter create –t module xxx” is not work

I want to Add Flutter to existing apps , but command "flutter create –t module xxx" is not work,
exec command "flutter create –t module xxx" , and output "Multiple output directories specified."
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.5.8-pre.241, on Mac OS X 10.12.6 16G1510, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[!] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected devices (1 available)
! Doctor found issues in 2 categories.

I tried and it worked for me.
[✓] Flutter (Channel master, v0.7.1-pre.4, on Mac OS X 10.13.6 17G65, locale en-AT)

 $ flutter create -t module xxx
Creating project xxx...
  xxx/xxx.iml (created)
  xxx/.gitignore (created)
  xxx/.metadata (created)
  xxx/pubspec.yaml (created)
  xxx/README.md (created)
  xxx/lib/main.dart (created)
  xxx/xxx_android.iml (created)
  xxx/.idea/libraries/Flutter_for_Android.xml (created)
  xxx/.idea/libraries/Dart_SDK.xml (created)
  xxx/.idea/modules.xml (created)
  xxx/.idea/workspace.xml (created)
Running "flutter packages get" in xxx...                    10.3s
Wrote 11 files.

Your module code is in lib/main.dart in the xxx directory.

You probably need a newer Flutter version.
Upgrade using
flutter upgrade

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Add support for transchoice method.

At the moment, the transchoice method is not supported, and it's kind of a tricky situation for some specialists of Symfony translation.
This method has to be implemented.

Fixed in 207098f


Search is still broken with TypeError

beadplot.js:383 Uncaught TypeError: Cannot read property 'variants' of undefined
    at beadplot (beadplot.js:383)
    at select_beads_by_comparators (search.js:72)
    at select_beads_by_substring (search.js:120)
    at search (search.js:247)
    at HTMLInputElement.<anonymous> ((index):234)
    at HTMLInputElement.dispatch (jquery.js:5429)
    at HTMLInputElement.elemData.handle (jquery.js:5233)

Possible fix with d326afc
Line 62:70 in search.js
select_beads_by_comparators(clusters, points){
       (....)
	if (d3.selectAll('.clicked').empty()){

	  var first_cluster_idx;
	  d3.select(rects.nodes().pop()).attr("class", "clicked");
	  d3.select(rects.nodes().pop()).each(function(d) {
 	        first_cluster_idx = d.cluster_idx;
  	        create_clusterH(d, this);
	  });
	  beadplot(first_cluster_idx);

first_cluster_idx is undefined, which passes the undefined object to downstream processes. Adding this line will set a random beatplot cluster id in range(0,238) if first_cluster_idx isn't defined. rect.nodes.pop() is the issue here I believe, I'm not sure what the loop does in this case. I don't think there will ever be a case where .clicked() is empty AND rects.nodes().pop() won't be empty.
javascript   first_cluster_idx = typeof first_cluster_idx == "undefined" ? Math.floor(Math.random() * 239) : first_cluster_idx

This is progress, but search is still broken.

reload page
search for "Canada"
submit search with enter, page switches to cluster with beads highlighted but no clusters in tree are selected
pressing "Next" throws the following error:

(index):279 Uncaught TypeError: Cannot read property 'id' of null
    at HTMLButtonElement.<anonymous> ((index):279)
    at HTMLButtonElement.dispatch (jquery.js:5429)
    at HTMLButtonElement.elemData.handle (jquery.js:5233)

Looks like I might have broken the 'next' button with this fix.
I'm getting a Type error on current_cluster. Was this occurring before the fix?
Uncaught TypeError: current_cluster is null

Wait... I don't think this is a real fix, setting a random first cluster doesn't actually display a cluster that has the search term in it. Rollingback d326afc (done).
Went back to the function to do a line-by-line stepforward using breakpoints. The problem is still with Line 62:70 as identified above. The filtering function (datum.searchtext.match(substr) !== null) is to blame here I think. I've tried the filtering function as a constant defined in select_beads_by_substring, and additionally in the same way that it appears (inline) in the search by accession function.
Here's the comparison between search by accession and search by string:
Accession

String

Here the vars first_cluster_idx and d.cluster_idx are both undefined. Firefox eventually ends up in a timeout loop because of undefined input (TypeError).
Can someone jump in here? Not sure how exactly the filtering function works

what the heck is datum?

afaik filter applies an anonymous "lambda" function to every item in an iterable object (e.g., array) and returns a subset of every item for which the function evaluates true

No clue what the point of using a datum was, I hadn't seen it used before, it's a d3 data object. I didn't want to touch someone else's workflow in-case it broke something

Yeah I figured out as much re: d3, but it's not documented in the code and seems to be used at arbitrary scope throughout search.js.  I don't like it :-)

Running through the following lines manually at commit 3e4af2fd114b95f1a0a77522a63c064d070b96b7:
https://github.com/PoonLab/covizu/blob/3e4af2fd114b95f1a0a77522a63c064d070b96b7/index.html#L276-L286
yields the following results:

Note search seems to correctly jump to the correct bead plot, but none of the "beads" are selected - this may be related?

Ok that last problem was because I was sending two Selectors to select_beads_by_comparitors, but the first Selector is used to trigger a refocus to the first matching cluster's beadplot.  Since the second Selector has already been called, it only contains beads for the default beadplot.  I've modified the code to separate select_beads_by_comparitors into separate functions.  Issue with next button remains.

This code is part of the problem:
https://github.com/PoonLab/covizu/blob/3e4af2fd114b95f1a0a77522a63c064d070b96b7/js/drawtree.js#L291-L308
The problem is that this refers to a rect element, to which we have assigned an arbitrary string as id:
https://github.com/PoonLab/covizu/blob/3e4af2fd114b95f1a0a77522a63c064d070b96b7/js/drawtree.js#L281
The use of this.id implies that start_idx is an associative list (Object).  However, start_idx is initialized as an Array:
https://github.com/PoonLab/covizu/blob/3e4af2fd114b95f1a0a77522a63c064d070b96b7/js/search.js#L26-L35
Attempting to index into an Array with a string will return undefined.

Fixed.  The problem was that I changed the DOM (muahahaha!).
This line:
var rect = d3.selectAll('#svg-timetree > svg > g > rect')
had to be changed to:
var rect = d3.selectAll('#svg-timetree > svg > rect')


Visualize defined flow (command -> generate html)

https://google-developers.appspot.com/chart/interactive/docs/gallery/sankey

Done


Adds LOCAL target for offline use

This PR adds a LOCAL target for use offline, with a mounted filesystem.
Example usage:
dploot machinecertificates -root /mnt LOCAL expects to find a Windows disk mounted in /mnt.
This has not been thoroughly tested, and currently lacks documentation, but almost all the original functionality is supported.
Most of the work is implemented in dploot/lib/smb.py: when an instance of DPLootSMBConnection is created with LOCAL in target.address, a DPLootLocalSMBConnection class is returned instead, which handles all the file operations locally. This way not much need to be changed in the calling code to handle local filesystem calls.
Some conditional calls have also been added in other classes for handling registry reads and cases where user and password are empty where they were not.
I have also added code to dump LSA and SAM secrets, as done in impacket's secretsdump, but it is currently commented out, adding much noise to the original output.

Looks awesome ! I will try to work on it asap

I really love your PR. Gonna merge it in a develop branch because I want to prepare a big release with LOCAL triage and other stuff. It is great stuff man thank you very much

Thanks! I have been using it on a few test systems, the only problems I found I couldn't fix are due to impackets' winregistry. For local registry access, I think it would be best to use pyhton-registry which is way faster and more robust than impacket's implementation.
My twitter handle is @DiiiiiiiiiidZ, but I am not very active there. You can refer to my profile here.


nuxt-swiper is not support ssr:false, Is it a bug?

when I set ssr: false in nuxt.config.ts, CI show tips:
[error] Nuxt Build Error: [vite]: Rollup failed to resolve import "swiper/css" from "virtual:nuxt:/builds/mfex/ssr-source/goodtime/.nuxt/css.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

util I import swiper/vue instead of nuxt-swiper

@lizy0329-biubiubiu please trying using the swiper elements branch on v2.
Docs: https://github.com/cpreston321/nuxt-swiper/tree/feat/elements?tab=readme-ov-file#nuxt-swiper
Install: https://github.com/cpreston321/nuxt-swiper/pull/109
Please let me know if that helps. v1 will soon be deprecated.

@lizy0329-biubiubiu please trying using the swiper elements branch on v2.
Docs: https://github.com/cpreston321/nuxt-swiper/tree/feat/elements?tab=readme-ov-file#nuxt-swiper
Install: #109
Please let me know if that helps. v1 will soon be deprecated.

Hi, does "v1 will soon be deprecated" mean that we have another v2.x.x nuxt-swiper later ? Shall I use this library or I might wait you to publish the v2 version?


langlib array returning functions fail at runtime for tuple type

Description:
As tuples are a sub type of arrays in ballerina, it is expected certain lang.array function  to support tuple types.
The following functions (not array specific) does not have proper implementation to support tuple type, which causes failure at runtime.

filter
reverse

Steps to reproduce:
[int, string, float] tupleArr = [2,  "abc", 2.4];
any[] y = tupleArr.reverse();

This fails with the following exception
error: java.lang.ClassCastException {"message":"class io.ballerina.runtime.types.BTupleType cannot be cast to class io.ballerina.runtime.api.types.ArrayType (io.ballerina.runtime.types.BTupleType and io.ballerina.runtime.api.types.ArrayType are in unnamed module of loader 'app')"}
        at ballerina.lang_array.1_1_0:reverse(array.bal:191)

Affected Versions:
slp5
OS, DB, other environment details and versions:
Related Issues (optional):
#18874
Suggested Labels (optional):
Team/jballerina, Type/Bug
Suggested Assignees (optional):

Tuples are arrays: a tuple type [int, string, float] is a subtype of the array type (int|string|float)[]. Values belonging to the tuple type and to the array type are the same basic type but differ only in their inherent type.
reverse is a generic function defined on an array type. So the behaviour should be that at compile-time you find the most precise array type (in this case  (int|string|float)[] and you then instantiate a generic function with that type. So the static type of the reverse function call in this case should be (int|string|float)[], as should the inherent type of the returned list value. The list value will have three members.

Since these functions crash at runtime for tuple types, we need to fix this. Hence reopening the issue.

Sorry, I got confused about which repo I was in.

@jclark no worries. Thank you for the suggestions 🙂


Use ::class notations for routes controllers

Use ::class notations for routes controllers

I had this in previously and had the same issues with the test suite passing. Although it would work locally. ::class was introduced in PHP5.5 I believe, so I don't know why it would have an issue.

Yeah, I think to investigate this a bit more :-D

I could make the tests pass @osiset


Feat -> Meetup Detail Page -> Add Twitter integration -> Possibility to tweet about meetup with single click

Desktop Design
Mobile Design -1
Mobile Design -2

I can pick this up

hey @vinikatyal any update on this?

I can pick this up. I need a bit more description about this.
On clicking the "Tweet a thanks" button, should we open up Twitter/X page where the description about the Meetup will be auto populated.
Is this what we are expecting to happen?

Thank you @djhemath. Can you please share a few more options. Eg:
is it possible to show the tweet first and then the user can decide they want to tweet or not?
I am assigning this to you as of now.

@djhemath are still working on this ?

https://x.com/RakeshPaulraj1

@Neha I can pick this up if no one is working on it.

can  this issue still  open? could i start  working on this

Hi @Ankuristic i have worked on this. Will be creating PR soon.

I was unaware that @Divyue30597 was also working on this issue, which I have been working on for the past  few days. So, I recently created a PR for this issue.

@Ankuristic thanks for letting me know. Just wanted to know if you were working on Meetups detail page as well?
Because I have completed Meet-ups detailed page with this change.

Thank you @Divyue30597. letting me know that you are also working  Meetups  details page I am working on some other issue for that I not create the PR. If you are working on that, please continue.

Hi @Neha @ekas  i create the PR for the twitter integration
#98 https://github.com/jslovers/jslovers-official-website/pull/98


game crashing issues

very paranoid about too many entities on screen checking things (constant loops and such)
make sure to cap shop upgrades to prevent weird texture bugs

may have fixed it by changing how models and texture are loaded by every entity
also may have had something to with the UI health bars and floating point division


Object literal braces should be different from block expression

Use default syntax color for object literal braces

I don't think this is possible with current grammar
The opening brace can be hacked if it's there is an assignment operator, but useless on standalone object literal


Deps(repo): Switch from npm-run-all to npm-run-all2 fork

Description

the original library is unmaintained for more than 5 years
the npm-run-all2 is a maintenance fork

Additional context

https://github.com/bcomnes/npm-run-all2
Issue reference

coverage: 96.371% (+15.4%) from 80.966%
when pulling 7b878c2072a8954f24a62d6cef689d9d1be1c64c on deps/npm-run-all2
into 48277c66fa6537d6baabb87b31a8d2112cf02420 on main.

Do we plan to keep this even if it is only a maintenance fork? I understand that it is better then the non-maintained one, but I would like to know if we have a plan to move somewhere else :)

Do we plan to keep this even if it is only a maintenance fork? I understand that it is better then the non-maintained one, but I would like to know if we have a plan to move somewhere else :)

In this case "maintenance" means not only updates but also some development for future node compatibility and some babel issues, etc.

🙈
Anyway, do we use the --parallel flag anywhere? Because if not, I don't see a reason for using a dependency instead of writing something as simple as yarn task1 && yarn task2…

web: "js:compile": "npm-run-all --aggregate-output --parallel js:compile:**",
Anyway, this is a dev dependency and it is a part of the DX. I do not want to write yarn task1 && yarn task2.
It can do much more like using asterisks * for running multiple scripts based on some kind of pattern.