[IA-4380] add lodash and hyperscript type declarations

Jira Ticket: https://broadworkbench.atlassian.net/browse/IA-4375

Summary of changes:
Added the public DTO files for lodash/fp and hyperscript as we had not yet added them. We already had the DTOs for lodash, but a newer version was released that also typed FP so now we can flawlessly convert our lodash/hs code to typescript without pesky typeErrors.
What

upgraded lodash types
added hyperscript types

Why

to increase ease/stability of typescript conversions

Testing strategy

[x] ts linter still passes all files

I don't think we need @types/hyperscript'. We don't directly use hyperscriptand have our own type definitions forreact-hyperscript-helpers`.

Our type definitions for react-hyperscript-helpers are not complete. They only cover the parts we use and the way we use them.

Our type definitions for react-hyperscript-helpers are not complete. They only cover the parts we use and the way we use them.

alright, thanks. perhaps this means at some point we should switch away from react-hyperscript-helpers, it hasn't been touched in 6 years and isn't very conventional


Mat-Table shows empty cells when observable if fed by non-angular event

I used the current stackblitz temple to create the reproducer that connects to a demo websocket server to get the issue working.
The problem is that I use an Observable as datasource in a mat-table element. The observables Subject is fed by a when.js deferred object like this:
// in my reproducer in src/app/_services/user-data.service.ts:19-40
someLib
    .call().then(() => {
        mySubject.next([new User(), new User()]);
     });

The result is that the table shows all rows but does not render the actual cells until I for example focus the search input in the upper left corner of my reproducer.
If I instead feed the subject like this:
setTimeout(function () {
    mySubject.next([new User(), new User()]);
}, 100);

it works just as expected.
Apparently zone.js replaces the setTimeout to detect changes.

You are right that the setTimeout tells the zone that change detection should occur. You will want to inject ChangeDetectorRef and mark for check when your subject fires so that the view knows to update.
If you have further trouble or need help, feel free to re-open with a stackblitz reproduction and we can diagnose the issue.


[Feature request] Support building of tasks using .net Core

To what I understand, if I want a task to run well on Windows I can use Powershell. However that won't work on Linux/Mac/etc. in which we build tasks using nodejs. This means that a lot of tasks have the same task built twice, once in powershell and once in node to ensure it works across platforms. This seems very redundant to me and means anyone writing these tasks either picks a single platform or has to be proficient in both Powershell and Javascript.
In my simple mind, it makes a lot of sense to be able to write tasks in a language that .net developers are very familiar with already (Or indeed one of the many languages that DNX supports). By utilising the dnx, these tasks should also happily run on Windows/Mac/Linux without any changes, ultimately simplifying the building of the tasks and allowing much more flexibility.

You can write a task in JavaScript and have it run on any platform, both agents support the Node Js task handler.  Given the current flux that DNX and dotnet core has been in it would not have been a good choice.


pragma('js', ...) inside if clause fails without meaningful message

Doing this:
if __pragma__('js', 'obj instanceof Object'):
    pass

Fails with no messsage:
Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.7.16
Copyright (C) Geatec Engineering. License: Apache 2.0

Error while compiling (offending file last):
        File 'd', line 1, namely:

        Error while compiling (offending file last):
        File 'd', line 1, namely:

Aborted

Wrapping in brackets won't helping:
if (__pragma__('js', '(obj instanceof Object)')):
    pass

Howerver wrapping in function surprisingly works:
if test(__pragma__('js', 'obj instanceof Object')):
    pass

This is even more dreadul together with another bug, which silences the error inside module and just skips module compilation if this pragma code is inside module:
https://github.com/QQuick/Transcrypt/issues/640

On a side note - maybe exposing instanceof in a similar way you did with new is a goold idea? Could be __instanceof__(obj, Object) or something like that. I really don't want to descend into raw javascript even in these short pragmas, the python is so much better.


Storing tabs into a pinned titled list results in duplicate tabs

I see where this is coming from, but imagine the scenario where you want to open all tabs of a titled list (in new window), do some work, maybe open or close a few tabs, and then save your progress back to that same titled list. Right now, "store into a titled list" will cause any existing tabs to be duplicated.
To keep it flexible, maybe add an "overwrite titled list" option?
EDIT: I have found the "Remove duplicate item in a list" setting, but we still need the "overwrite titled list" option when tabs have been removed.

What about "Update titled list with current window", or "Replace titled list with current window" ?
Anyway, yes, I came here also because the "Remove duplicate item in a list" doesn't seem to work.
(I didn't give a look to the code yet, sorry)


Move Validator Set Fetch Helper function to Blockchain Struct

Current dependencies on/for this PR:

feature/pos-syncing-and-steady-state

PR #918   👈

This stack of pull requests is managed by Graphite.


Update data-lake-storage-known-issues.md

Using the dfs endpoint (abfss://URI) for non-hierarchical namespace enabled accounts will not generate events, but the blob endpoint (wasb:// URI) will generate events. This is expected on the Event Grid documentation page and updating the same on ADLS Gen2 known issue page as well to be in sync https://learn.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?tabs=event-grid-event-schema

Docs Build status updates of commit e99b8f2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/storage/blobs/data-lake-storage-known-issues.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@normesta
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Seems good to me. Thanks! #sign-off


document primary support for node 4 and 5 in README

afaik 0.12 will work with --harmony, correct @deanlandolt ?
what about 0.10? can this be supported by using babelify?

IIRC the only two es features we're using are arrow fns and template strings (pretty useful for authoring sql strings -- and even more useful when we start using something like pg-template-tag for proper escapement). This is all very babelable -- both are just straight transpiles, no shimming cruft necessary.

This is all very babelable -- both are just straight transpiles, no shimming cruft necessary.

:+1: Cool. So it's basically a none issue.

Might be nice to add some node versions to travis, and maybe try babelify as a dev-dep for older nodes.

Might be nice to add some node versions to travis, and maybe try babelify as a dev-dep for older nodes.

Good call. On it.

@deanlandolt Using babelify requires browserify right? Or is there some other way to babelify the code without using browserify?

babelify is just the browserify transform, that's correct. for regular builds, you can use babel-cli:
"scripts": {
  "build": "babel src -d lib"
}

see https://babeljs.io/docs/setup/#babel_cli

:+1:

IIRC there's also a babel require hook, so we can just conditionally require this on older nodes to avoid any explicit build step.

This is a mess imo, or perhaps I just don't get it, or both ;)
If I try to require babel-register in e.g. test/index.js like this (using node 0.12 to test):
require('babel-register')
require('./pgdown')
require('./encoding')
require('./abstract-leveldown')

I get the following error when running npm test:

And I get the same error if I do:
$ babel test -d test-babel
$ PGDATABASE=${PGDATABASE:-postgres} PGUSER=${PGUSER:-postgres} node test-babel/

I can get around that by doing node --harmony but then I instead get problems with template strings:

Oh I might need to specify some presets maybe http://babeljs.io/docs/plugins/preset-es2015/

IIRC there's also a babel require hook, so we can just conditionally require this on older nodes to avoid any explicit build step.

I guess this means babel-register and babel-preset-es2015 would have to be dependencies, right?

yeah i think we need the es2015 preset. but we should only add them as devdeps, the require hook shouldn't be published

Exactly -- just switch on node version in the test/index.js and load the appropriate require hook. I can easily kill all the template strings if that's giving you grief. How far back can we go w/ node versions using --harmony to get arrow functions and const? If 0.12, that seems good enough. Otherwise, we'd need to babel this shit up anyway, so just do the babel-register, babel-preset-es2015 dance.

yeah i think we need the es2015 preset. but we should only add them as devdeps, the require hook shouldn't be published

Cool. I'll fix up a PR for running the tests on 0.10 and 0.12 then.


Change babel specs to fully qualified keywords

[ ] Change the specs themselves
[ ] Change how they are recognized by modify-message

This now corresponds to https://github.com/Clojure-Intro-Course/babel/issues/59 in the migration repository.


type error with 'url' parameter on initial install

I'm just trying to install this at SpinachCon, and once I got node 4.4.0 installed, i ran npm start, but I got this error:
https://gist.github.com/jywarren/d04d10a83c2e4bec2470
Key excerpt:
ERR! config options.dbUrl must be set. PouchDB not supported at this point.
url.js:90
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
    ^

TypeError: Parameter 'url' must be a string, not undefined
    at Url.parse (url.js:90:11)
    at Object.urlParse [as parse] (url.js:84:5)
    at removeAuth (/home/warren/sites/hoodie-app-tracker/node_modules/hoodie/node_modules/hoodie-server/lib/hapi.js:60:30)

I'm on ARM7 (a chromebook) so this may not be relevant to your typical contributor, but I thought I'd share in case it's helpful. Thanks!

I’ll look into it

this should be resolved now. Could you please try to setup from scratch?
https://github.com/hoodiehq/hoodie-app-tracker#setup

please reopen if the issue persists

Thanks, had a very busy few days and will circle back and confirm soon,
reopening if I have trouble.
On Mar 23, 2016 11:17 PM, "Gregor Martynus"<EMAIL_ADDRESS>wrote:

Closed #49 https://github.com/hoodiehq/hoodie-app-tracker/issues/49.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/hoodiehq/hoodie-app-tracker/issues/49#event-601222681

Great, it installed and npm start worked, i was able to sign up and create issues.
However, the output was a bit verbose: https://gist.github.com/jywarren/7bfee91adacb47cce365
Thanks!

thanks! I’ve seen the output before, should be fine :tm:
Might be related that you use npm@2, we recommend npm@3. You can update npm with npm install --global npm


Error when using commas in captions

Markdown:
## This works
{{< figure src=test.jpg alt="test" caption="foo bar" >}}

## This does not
{{< figure src=test.jpg alt="test" caption="foo, bar" >}}

Error:

/layouts/partials/hri/private/print/figure-bottom.html:22:19": execute of template failed at : error calling markdownify: unable to cast []interface {}{"foo", "bar"} of type []interface {} to string

Current workaround:
{{< figure src=test.jpg alt="test" caption="foo, bar" >}}

I have created a new tag (v1.2.10)
Can you please update the module with hugo mod get -u and test and get back to me
Thanks again for the testing - It's hard for me to anticipate every use case.
If you have any feature requests/ideas please log an issue.

Fixed


torusblk flexprepvol: mkfs failed (race?)

Env: Running a pod with a volume via flex volume plugin in Kubernetes 1.5.1.
For some reason flexprepvol is unable to format the device, thus failing the whole mount process and the pod. Tried with v0.1.2 and b783b16 (latest master at this time) on Ubuntu Server 16.04 and 16.10.
This was in the logs:
torus[12325]: mke2fs 1.43.3 (04-Sep-2016)
torus[12325]: mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
torus[12325]:         partition table wasn't reread after running fdisk, due to
torus[12325]:         a modified partition being busy and in use.  You may need to reboot
torus[12325]:         to re-read your partition table.

Which is the exact message I get, when trying to format an unattached /dev/nbd*.
Manually mounting the device via torusblk and running mkfs myself worked, so I added a timeout of 5 seconds (time.Sleep) just before sysd := connectSystemd() in flex.go#mountAction and used the newly compiled binary as my flex plugin. This worked!
So I'm guessing that there is a race condition between attach and mount / flexprepvol where the device needs a little time to be fully initialized. Kubernetes tried too quickly to mount the volume after attach.

Tried it with 2 seconds instead and it failed, don't know if it was related or another error. Back to 5 seconds.
Also I was getting these for my previously working volume (now unusable):
W | distributor: remote asking for non-existent block: br c : 18 : 1

Deleteing and creating a new one worked. Will file another issue if it happens again.
I'm also getting some of these every few minutes. Don't know if related, always been there IIRC:
W | torus: couldn't register heartbeat: rpc error: code = 4 desc = context deadline exceeded
W | torus: couldn't update peerlist: rpc error: code = 4 desc = context deadline exceeded


Service.Speaker saying 'Not Supported' in the Home app

I am trying a build an accessory with the service type Speaker. But when I add in in the 'Home' app it stays 'successfully added', but when I go to the accessory it says 'Not supported'.
Did i miss a Characteristic
This is my code:
`speaker
.addService(Service.Speaker, "Speaker1") // services exposed to the user should have "names" like "Fake Light" for us
.getCharacteristic(Characteristic.Mute)
.on('set', function(value, callback) {
SPEAKER.setVolume(value);
callback(); // Our fake Outlet is synchronous - this value has been successfully set
})
.on('get', function(callback) {
var err = null; // in case there were any problems
callback(err, false);
});
speaker
.getService(Service.Speaker) // services exposed to the user should have "names" like "Fake Light" for us
.addCharacteristic(Characteristic.On)
.on('set', function(value, callback) {
SPEAKER.setVolume(10);
callback(); // Our fake Outlet is synchronous - this value has been successfully set
})
.on('get', function(callback) {
var err = null; // in case there were any problems
callback(err, true);
});
speaker
.getService(Service.Speaker) // services exposed to the user should have "names" like "Fake Light" for us
.addCharacteristic(Characteristic.Volume)
.on('set', function(value, callback) {
SPEAKER.setVolume(value);
callback(); // Our fake Outlet is synchronous - this value has been successfully set
})
.on('get', function(callback) {
var err = null; // in case there were any problems
callback(err, SPEAKER.volume);
});`

speaker service don't supported in homekit !

Home app itself doesn't currently support the new Speaker service as of iOS 10.2.


Adjusts cd.yaml to access GITHUB TOKEN correctly

Context
I forgot to configure cd.yaml to access the GITHUB TOKEN correctly, defined on github secrets.

Deployed on Vercel


Log 'port already in use' to stderr

Nice work on v2
When trying to run a instance of dnscrypt-proxy when an instance is already running it I think It would be better to also log this in the terminal not just in the log file [FATAL] listen udp <IP_ADDRESS>:53: bind: address already in use. Helps the user out when the program exits.

Maybe all messages with FATAL security should go to stderr in addition to syslog/windows logs/a file?
I don't know... Pretty sure there will be people complaining about things going to stderr in spite of them having configured a log file specifically to have nothing sent to stderr.
Sending log only to one channel is also by far the most current practice. Not saying that it is convenient, especially now with systemd, though.

Yea I get your point.
I just realised without specifying a log file the output is in the terminal so I think that is good enough. 👍


Allow for ^1.1.0 || ^2.0 of psr/http-message in composer.json

Newer versions of Symfony 6.2+ component(s) rely on psr/http-message 2.0, which is blocking the install of this package. Can we expand the version constraint please?
See: https://www.drupal.org/project/drupalci_testbot/issues/3362781

Hi @kevinquillen
Thanks for raising the issue. I've released a new version (0.5.2) which allows for psr/http-message ^2.0


Cron jobs not being queued if the queue is quiet

In our deploy workflow we quiet the queues in order to prevent jobs to run in the middle of a deploy. This work nice for jobs triggered by the application but we found that a Cron job is never queued if the queue is quiet which makes it not to run after we finish the deploy. We expected to run after the queue goes out if quiet since the Cron time as recently passed.  It will not enqueue any jobs. Because nothing is running :/
quiet or not it does not matter, Sidekiq-Cron is using same API of sidekiq to push jobs into redis when their time is right.
I run multiple instances or sidekiq on multiple machines and I do rolling deploy, few will migrate to new version, few will remain on old and so on. By this I have allways at least one sidekiq running so my scheduler can add jobs to queues.
Did it help?

@ondrejbartas Does this code https://github.com/ondrejbartas/sidekiq-cron/blame/master/lib/sidekiq/cron/launcher.rb#L28-L31 mean that the cron poller is terminated when Sidekiq process is quiet?


requirement: Only copy FIFO files into temporary files

Closes #552

I still need to do something to get test coverage for FIFO files. I'm thinking of creating one with os.mkfifo and then passing it into the RequirementSource.

That SGTM!


Create Polybees Network

Project Title:
Name of Project:Polybees Network
Proposal Category: Polybees CryptoMarket Watch, Dapp Launcher, Coin Minter, Nft Maker, Play To Earn, Peer to Peer Local Malaysia Market, Polybeeswap
Proposer: Polybees
Do you agree to open source all work you do on behalf of this RFP?: No, Contract Partly open source
Project Description
What we are solving? recently Binance has been blocked in Malaysia, This Create a crumble blockchain society to trust on decentralized idea, Polybees will lead the decentralize market in malaysia,
The rise of Flow shows that NFT games are still popular. And NFT as collectibles are now increasingly recognized by blockchain users. So we plan to develop an Earn to Play game on the IoTeX public chain. This game contents of collection, auction, synthesis, lottery and other functions. And we plan to add some features, such as battle arena in the future. By the way ,we will add IoTeX's new hardware link with Pebble so that can provide more benefits to Pebble owners.  All of the members are all senior developers in game industry.
Value
The main design purpose is Earn to Play, to increase players activity on the chain. It not only allows players to enjoy the fun of collecting but also earn some money in the game. It also serves the purpose of active on-chain transactions and other purposes to bring more activity for the public chain. The game can attracts the first users to invest through the art and bonus pools, thus motivating players to synthetically acquire raffle tickets. Every parts of the cats in the game can be combined, and specific combinations will give birth to extremely rare cats, thus leading to constant actions, such as synthesis and auction in order to get the rare cats. Further strengthen the on-chain activity of the public chain.
Deliverables
The final product is a blockchain game that can be played on both mobile web, and desktop web. People are able to get rare cats on the chain by synthesizing them, and in the same time, we can take a commission for the pool of money. Thus players can be encouraged to synthesize transactions and thus extract fees from them for the purpose of filling up the bonus pool, while also enlivening the effective transactions on the chain. After that, the battle function is added so that players can enjoy more, not just collecting.
Development Roadmap
Number	Deliverable	Date	role	funding require	status
1.Play to Earn Gamify
2.Development of game synthesis, auction, output and other functions	          1,00,000 IOTX
3.Add combat features in the game	                                              1,00,000 IOTX
4. Polybees Market Watch htttps://polybees.network	                            1,00,000 IOTX
5. Polybees trading Bot Based on API  https://app.polybees.network/#/trade 	    1,00,000 IOTX
6. Polybees Market Swap and LP Dapps	                                          1,00,000 IOTX
7. Polybees Dapps Launcher	                                                    1,00,000 IOTX
8. Polybees Coin Minter	                                                        1,00,000 IOTX
Total Budget Requested	                                                        1,00,000 IOTX
Total funding required： 8,000,000 IOTX
The use of funds plan:
R & D (planning, front-end, back-end) costs
Maintenance and Upgrade Plans
First of all , making the basic features, such as synthesis, auction, bonus pools, etc. performance. After these are stable add the card battle function.
Team
Team Members
fariz tiger
Dragon Deha
Wani CheBunga
ChadBakery Swap
shafiq sakri
Moralis Team
Relevant Experience
10 years-experience browser side and javascript tech who work as Neuro Technologist at Penang Neuro Specialist Clinic. He has been involved in the production of many front end and defi apps request and also the head of penang Innovation Team.
Team code repositories
We take a closed source approach for the front-end and back-end code, and an open source approach for the contract of the main logic of the game. To protect the game, the rules related to synthesis we take a closed source approach.
Additional Information
Thinking about how to bring Pebble into the game. And offer some benefits to Pebble users. and how would pebble and other iot equiptment could interact with brain.

Name of Project :  Polybees Network

Proposal Category: Polybees CryptoMarket Watch, Dapp Launcher, Coin Minter, Nft Maker, Play To Earn, Peer to Peer Local Malaysia Market, Polybeeswap example product ads, https://polybeesgamifyiotx.netlify.app/

Do you agree to open source all work you do on behalf of this RFP?
No, Contract Partly open source

What we are solving?

Recently Binance has been blocked in Malaysia, This Create a crumble blockchain society to trust on decentralized idea, Polybees will lead the decentralize market in malaysia, The rise of Flow shows that NFT games are still popular. And NFT as collectibles are now increasingly recognized by blockchain users. So we plan to develop an Earn to Play game on the IoTeX public chain. This game contents of collection, auction, synthesis, lottery and other functions. And we plan to add some features, such as battle arena in the future. By the way ,we will add IoTeX's new hardware link with Pebble so that can provide more benefits to Pebble owners.  All of the members are all senior developers in game industry.

Value
The main design purpose is Earn to Play, to increase players activity on the chain. It not only allows players to enjoy the fun of collecting but also earn some money in the game. It also serves the purpose of active on-chain transactions and other purposes to bring more activity for the public chain. The game can attracts the first users to invest through the art and bonus pools, thus motivating players to synthetically acquire raffle tickets. Every parts of the cats in the game can be combined, and specific combinations will give birth to extremely rare cats, thus leading to constant actions, such as synthesis and auction in order to get the rare cats. Further strengthen the on-chain activity of the public chain.

Deliverables
The final product is a blockchain game that can be played on both mobile web, and desktop web. People are able to get rare cats on the chain by synthesizing them, and in the same time, we can take a commission for the pool of money. Thus players can be encouraged to synthesize transactions and thus extract fees from them for the purpose of filling up the bonus pool, while also enlivening the effective transactions on the chain. After that, the battle function is added so that players can enjoy more, not just collecting.

Development Roadmap
Number Deliverable Date role funding require status
PLEASE TAKE A LOOK
https://iotxpolybeesgrant.netlify.app/
The use of funds plan:
R & D (planning, front-end, back-end) costs
Maintenance and Upgrade Plans
First of all , making the basic features, such as synthesis, auction, bonus pools, etc. performance. After these are stable add the card battle function.
Team
Team Members
fariz tiger https://halopolybees.netlify.app/
Dragon Deha
Wani CheBunga
ChadBakery Swap
shafiq sakri
Moralis Team
Relevant Experience
10 years-experience browser side and javascript tech who work as Neuro Technologist at Penang Neuro Specialist Clinic. He has been involved in the production of many front end and defi apps request and also the head of penang Innovation Team.
Team code repositories
We take a closed source approach for the front-end and back-end code, and an open source approach for the contract of the main logic of the game. To protect the game, the rules related to synthesis we take a closed source approach.
Additional Information
Thinking about how to bring Pebble into the game. And offer some benefits to Pebble users. and how would pebble and other iot equiptment could interact with brain.

Name of Project : Polybees Network
Proposal Category: Polybees CryptoMarket Watch, Dapp Launcher, Coin Minter, Nft Maker, Play To Earn, Peer to Peer Local Malaysia Market, Polybeeswap example product ads, https://polybeesgamifyiotx.netlify.app/
Do you agree to open source all work you do on behalf of this RFP?
No, Contract Partly open source
What we are solving?
Recently Binance has been blocked in Malaysia, This Create a crumble blockchain society to trust on decentralized idea, Polybees will lead the decentralize market in malaysia, The rise of Flow shows that NFT games are still popular. And NFT as collectibles are now increasingly recognized by blockchain users. So we plan to develop an Earn to Play game on the IoTeX public chain. This game contents of collection, auction, synthesis, lottery and other functions. And we plan to add some features, such as battle arena in the future. By the way ,we will add IoTeX's new hardware link with Pebble so that can provide more benefits to Pebble owners.  All of the members are all senior developers in game industry.
Value
The main design purpose is Earn to Play, to increase players activity on the chain. It not only allows players to enjoy the fun of collecting but also earn some money in the game. It also serves the purpose of active on-chain transactions and other purposes to bring more activity for the public chain. The game can attracts the first users to invest through the art and bonus pools, thus motivating players to synthetically acquire raffle tickets. Every parts of the cats in the game can be combined, and specific combinations will give birth to extremely rare cats, thus leading to constant actions, such as synthesis and auction in order to get the rare cats. Further strengthen the on-chain activity of the public chain.
Deliverables
The final product is a blockchain game that can be played on both mobile web, and desktop web. People are able to get rare cats on the chain by synthesizing them, and in the same time, we can take a commission for the pool of money. Thus players can be encouraged to synthesize transactions and thus extract fees from them for the purpose of filling up the bonus pool, while also enlivening the effective transactions on the chain. After that, the battle function is added so that players can enjoy more, not just collecting.
Development Roadmap
Number Deliverable Date role funding require status
PLEASE TAKE A LOOK
https://iotxpolybeesgrant.netlify.app/
The use of funds plan:
R & D (planning, front-end, back-end) costs
Maintenance and Upgrade Plans
First of all , making the basic features, such as synthesis, auction, bonus pools, etc. performance. After these are stable add the card battle function.
Team
Team Members
fariz tiger https://halopolybees.netlify.app/
Dragon Deha
Wani CheBunga
ChadBakery Swap
shafiq sakri
Moralis Team
Relevant Experience
10 years-experience browser side and javascript tech who work as Neuro Technologist at Penang Neuro Specialist Clinic. He has been involved in the production of many front end and defi apps request and also the head of penang Innovation Team.
Team code repositories
We take a closed source approach for the front-end and back-end code, and an open source approach for the contract of the main logic of the game. To protect the game, the rules related to synthesis we take a closed source approach.
Additional Information
Thinking about how to bring Pebble into the game. And offer some benefits to Pebble users. and how would pebble and other iot equiptment could interact with brain.

Name of Project: 'Polybees Network'
Proposal Category: Polybees CryptoMarket Watch, Dapp Launcher, Coin Minter, Nft Maker, Play To Earn, Peer to Peer Local Malaysia Market, Polybeeswap example product ads, https://polybeesgamifyiotx.netlify.app/
Do you agree to open source all work you do on behalf of this RFP?
No, Contract Partly open source
#Project Description
What we are solving?
Recently Binance has been blocked in Malaysia, This Create a crumble blockchain society to trust on decentralized idea, Polybees will lead the decentralize market in malaysia, The rise of Flow shows that NFT games are still popular. And NFT as collectibles are now increasingly recognized by blockchain users. So we plan to develop an Earn to Play game on the IoTeX public chain. This game contents of collection, auction, synthesis, lottery and other functions. And we plan to add some features, such as battle arena in the future. By the way ,we will add IoTeX's new hardware link with Pebble so that can provide more benefits to Pebble owners.  All of the members are all senior developers in game industry.
Value
The main design purpose is Earn to Play, to increase players activity on the chain. It not only allows players to enjoy the fun of collecting but also earn some money in the game. It also serves the purpose of active on-chain transactions and other purposes to bring more activity for the public chain. The game can attracts the first users to invest through the art and bonus pools, thus motivating players to synthetically acquire raffle tickets. Every parts of the cats in the game can be combined, and specific combinations will give birth to extremely rare cats, thus leading to constant actions, such as synthesis and auction in order to get the rare cats. Further strengthen the on-chain activity of the public chain.
Deliverables
The final product is a blockchain game that can be played on both mobile web, and desktop web. People are able to get rare cats on the chain by synthesizing them, and in the same time, we can take a commission for the pool of money. Thus players can be encouraged to synthesize transactions and thus extract fees from them for the purpose of filling up the bonus pool, while also enlivening the effective transactions on the chain. After that, the battle function is added so that players can enjoy more, not just collecting.
Development Roadmap
Number Deliverable Date role funding require status
PLEASE TAKE A LOOK
https://iotxpolybeesgrant.netlify.app/
#The use of funds plan:
R & D (planning, front-end, back-end) costs
Maintenance and Upgrade Plans
First of all , making the basic features, such as synthesis, auction, bonus pools, etc. performance. After these are stable add the card battle function.
Team
#Team Members
fariz tiger https://halopolybees.netlify.app/
Dragon Deha
Wani CheBunga
ChadBakery Swap
shafiq sakri
Moralis Team
Relevant Experience
20 years-experience browser side and javascript tech who work as Neuro Technologist at Penang Neuro Specialist Clinic. He has been involved in the production of many front end and defi apps request and also the head of penang Innovation Team.
Team code repositories
We take a closed source approach for the front-end and back-end code, and an open source approach for the contract of the main logic of the game. To protect the game, the rules related to synthesis we take a closed source approach.
Additional Information
Thinking about how to bring Pebble into the game. And offer some benefits to Pebble users. and how would pebble and other iot equiptment could interact with brain.

Hi there! We are officially moving all Halo Grant proposals to our new community forum page and will no longer be accepting proposals on GitHub. If you are still interested in pursuing this project, please resubmit your proposal to the community page here according to the provided template: https://community.iotex.io/c/halo-grants/61
Thank you! We appreciate your interest in building on IoTeX.


Document Android and Web setup in the Editor

There's "Distributing your game" page that has a minimal information about building for different ports.
https://github.com/adventuregamestudio/ags-manual/wiki/DistGame
Building for Android requires significantly more setup than Windows and Linux, therefore it's essential to have that documented.
I think it's also worth documenting how to run compiled game for the web; at least the basics of it.
NOTE: Android preferences are already mentioned in https://github.com/adventuregamestudio/ags-manual/wiki/EditorPreferences

Added Android build initial information here: https://github.com/adventuregamestudio/ags-manual/wiki/BuildAndroid
Linked from here: https://github.com/adventuregamestudio/ags-manual/wiki/OtherFeatures

Linked to Building for Android from DistGame: https://github.com/adventuregamestudio/ags-manual/wiki/DistGame/_compare/4077bd2^...4077bd2

@selmiak since you are playing with the web port, if you have ideas to clarify or what is important to mention, feel free to do so.
I wrote a very minimal text here: https://github.com/adventuregamestudio/ags-manual/wiki/DistGame

I am going to consider this as done, but we can open issues to improve things anytime.


add docker support

Add dockerfile and docker publish action, the default user is autoware with userid=1000.

@xczhanjun Thank you, but could you open an issue before sending a pull request?
Also, as I'm sending a PR for #14, please tell me the difference, please?

@xczhanjun Thank you, but could you open an issue before sending a pull request? Also, as I'm sending a PR for #14, please tell me the difference, please?

Wow, thanks, you are developing  this future, let me try.

@xczhanjun Thank you, but could you open an issue before sending a pull request? Also, as I'm sending a PR for #14, please tell me the difference, please?

Wow, thanks, you are developing this future, let me try.

I will try your future and the docker image in my forked repo.

I'll prepare official contributing guidelines here, but generally speaking, it's better to discuss things on issues before opening a PR.
So let me close this for now. :bow:
Please re-open this after discussions on issues and if this PR is necessary.


cannot find MongoDB namespace

vscode is unable to find the "MongoDB.Bson" namespace but when I open the project up in Rider its fine

The issue was that it is a c# library and I did not have a c# plugin installed for vscode


ensure_xcode_version failed

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
bundle install with gem "fastlane", "~> 2.3" won't install xcode-install/xcversion

Can you add the following to your Gemfile
gem "xcode-install"

and let me know if that works for you 👍

Yes, that should fix the problem.
And indeed it fix.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/64063

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/64801

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/64840


Create External Table without schema [Spark]

Description
This PR fixes #165
Type of change
When creating an external table with an already populated directory, Qbeast was missing the schema in the final Catalog entry.
We add a method to detect this specific situation and update the service accordingly.
Checklist:
Here is the list of things you should do before submitting this pull request:

[x] New feature / bug fix has been committed following the Contribution guide.
[x] Add comments to the code (make it easier for the community!).
[x] Add tests.
[x] Your branch is updated to the main branch (dependent changes have been merged).

How Has This Been Tested? (Optional)
A new test is added in QbeastCatalogIntegrationTest in which we try to create an external table without schema.

We need to test this solution on the EMR clusters with Glue Catalog, see if we miss something else in the implementation and if everything works correctly.

Hello @Adricu8 !! Do you think this is ready to merge? Did you find any bug creating external tables with Qbeast? (We still missing pre-load the columnsToIndex too, but we will develop it in another PR).

Hi Paola! I did not find any issue with this. Creating external tables worked fine for me :)

Hi Paola! I did not find any issue with this. Creating external tables worked fine for me :)

Perfect! Could you approve the PR? 🙏


Extend math API

Signed-off-by: jparisu<EMAIL_ADDRESS>

Codecov Report
Base: 67.31% // Head: 68.01% // Increases project coverage by +0.69% :tada:

Coverage data is based on head (e84207b) compared to base (180161b).
Patch coverage: 88.88% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   67.31%   68.01%   +0.69%
==========================================
  Files          38       38
  Lines         719      744      +25
  Branches      169      178       +9
==========================================
+ Hits          484      506      +22
  Misses        145      145
- Partials       90       93       +3

Impacted Files
Coverage Δ

cpp_utils/src/cpp/math/math.cpp
90.90% <88.88%> (-9.10%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


[CMake] Add minimal cmake file

This cmake file just provides the minimal infrastructure necessary, such that other libraries can get a sensible result from calling
add_subdirectory( <path-to-boost_exception> )
target_link_libraries( <my_lib> PUBLIC Boost::exception )

More information:

https://groups.google.com/forum/#!topic/boost-developers-archive/kM4JRmyVl3M[1-25]
https://groups.google.com/d/msg/boost-developers-archive/4HU-RzReL7U/FS1X6OFrEQAJ
https://groups.google.com/forum/#!topic/boost-developers-archive/9ZdrVbAn1aU

Of course the file can be extended to e.g. build and run tests and support installation, but that is out of scope for this particular PR.

Any comments?
Do I understand the jam file correctly, that this library can only be used as a static library?

I don't know cmake, will this always build the clone_current_exception_non_intrusive.cpp file? It should not, because that file only works on MSVC and even there it is optional, few people use it. It would be acceptable to leave it out of cmake.

@zajo: Yes. The way it is currently written, it wil always build the file. As far as I understand, the b2 does the same no?
I have no problem with removing it, but I don't quite see the advantage. The nice thing about cmake (and I guess most other higher level build systems) is that if my program Foo needs to use your library Bar, I just need to say target_link_libraries(Foo PUBLIC  Bar) - no matter if Bar is header only, a shared library or a static library - those things are just implementation details as far as the consumer is concerned.
So, if compiling this file provides an advantage for some users and doesn't hurt the rest, I'd tend to prefer its  inclusion.
Of course it could also be made optional, but I generally try to avoid configuration options that don't provide big benefits, because they compound: Even if only every tenth boost library brings just a single configuartion option, there are more than 10.000 different configurations for boost as a whole (not counting things like compilation in different standards, shared/static library rtti etc) which makes it that much more likely to hit an untested/broken one or - if not everything is compiled together - make it more likely that my application tries to use two other libraries that expect conflicting configurations of boost.
In any case: What matters in the end is what model you - as the maintainer of this library - prefer.
The sensible options I see are:

Ignore clone_current_exception_non_intrusive.cpp completely and treat exception as a header only library.
Unconditionally compile clone_current_exception_non_intrusive.cpp (and I guess also define BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR ).
Use 1) on linux and 2) on windows.
Allow the user to choose between 1) and 2)

Just tell me which you prefer and I'll amned the PR accordingly.
If you don't know cmake at all - should I add comments to the file? It is pretty standard stuff, but in the end you are the one that needs to maintain it.

@zajo: Yes. The way it is currently written, it wil always build the file. As far as I understand, the b2 does the same no?
I have no problem with removing it, but I don't quite see the advantage. The nice thing about cmake (and I guess most other higher level build systems) is that if my program Foo needs to use your library Bar, I just need to say target_link_libraries(Foo PUBLIC  Bar) - no matter if Bar is header only, a shared library or a static library - those things are just implementation details as far as the consumer is concerned.
So, if compiling this file provides an advantage for some users and doesn't hurt the rest, I'd tend to prefer its  inclusion.
Of course it could also be made optional, but I generally try to avoid configuration options that don't provide big benefits, because they compound: Even if only every tenth boost library brings just a single configuartion option, there are more than 10.000 different configurations for boost as a whole (not counting things like compilation in different standards, shared/static library rtti etc) which makes it that much more likely to hit an untested/broken one or - if not everything is compiled together - make it more likely that my application tries to use two other libraries that expect conflicting configurations of boost.
In any case: What matters in the end is what model you - as the maintainer of this library - prefer.
The sensible options I see are:

Ignore clone_current_exception_non_intrusive.cpp completely and treat exception as a header only library.
Unconditionally compile clone_current_exception_non_intrusive.cpp (and I guess also define BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR ).
Use 1) on linux and 2) on windows.
Allow the user to choose between 1) and 2)

Just tell me which you prefer and I'll amned the PR accordingly.
If you don't know cmake at all - should I add comments to the file? It is pretty standard stuff, but in the end you are the one that needs to maintain it.

Ideally:
If the user wants BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR, and if the platform is Windows, and if the MSVC version used is one of the ones this thing works for (see https://github.com/boostorg/exception/blob/develop/src/clone_current_exception_non_intrusive.cpp#L32), then compile and link the cpp file, otherwise (and by default), not.
Perfectly fine:
Treat Boost Exception as header-only, do not include the cpp file, at least until someone complains.
Thank you!

Ok, I changed it to header only.
I think keeping it simple is preferable for now.

Thank you!

Sorry, made a mistake:
target_include_directories( boost_exception PUBLIC include )

should be
target_include_directories( boost_exception INTERFACE include )

I was literally fixing it when you merged the PR ;)

Can I bother you to submit another PR? thanks.

Will try, but I'm currently on my mobile. Sorry for the mess.

That was easier than expected: https://github.com/boostorg/exception/pull/20


[5.4] implement size() method

.. What is the Scrutinizer test?

@AaronJan Hello, Travis seems to fail. Can you fix it, please?

I fixed Travis, but there is nothing I can do about Scrutinizer..

Ignore Scrutinizer, I need to turn it off.
Great job, thanks!


Update free-courses-en.md

Add: Princeton Algorithms course for Algorithms & Data Structures part,

superceded by #2491


New Game with Same Players

After the completion of a game, it would be nice to be able to quickly start a new game with the same set of players instead of going through the game creation process again. (Maybe instead of Create a Game, Create a Group from the home screen, and then you can play as many games with that group as you want.)

Duplicate issue


[🐞] Nested reactivity breaks inside .map()

Which component is affected?
Qwik Runtime
Describe the bug
Nested access of deep recursive store isn't updating.
Reproduction
https://github.com/samijaber/reactivity-bug-repro/blob/nested-reactivity-repro/src/routes/index.tsx
Steps to reproduce
run https://github.com/samijaber/reactivity-bug-repro/blob/nested-reactivity-repro/src/routes/index.tsx
System Info
N/A

Additional Information
No response

Looks like maybe a dup of #5008?

Looks like maybe a dup of #5008?

This example uses () =>  so I don't think that is it.
But I do think it is a duplicate of #5001

https://github.com/BuilderIO/qwik/pull/5013 does not fix this issue so maybe it is not a duplicate of #5001...

I have a simpler repro:
import { component$, useStore } from<EMAIL_ADDRESS>
export const Child = component$<{ columns: string }>(({ columns }) => {
  return
Child: {columns}
;
});

export default component$(() => {
  const state = useStore([{ columns: "INITIAL" }]);
  return (
    <>
      <button onClick$={() => (state[0] = { columns: "UPDATE" })}>
        update!
      </button>
      <Child columns={state[0].columns} /> {/* <== Updates correctly */}
      {state.map((block, idx) => {
        return <Child columns={block.columns} key={idx} />;  {/* <== FAILs to update */}
      })}
    </>
  );
});

looks like it's going to be fixed in v2 with https://github.com/QwikDev/qwik/pull/5987/files


Positionable headers

Hello,
It would be great if you could position headers of each column ( left ( default ), center, right ). We put numbers to the right and I dont see any option to do it for headers or to stylize headers individually.
Also, this table is really nice and easy to use, really great work.

Hi, @RaskaTheFurry
If you want to change style, you can ref here
You will be not change any code and implement it.
Right position headers of 2nd column:
::v-deep(.vtl-table .vtl-thead .vtl-thead-th:nth-child(2)) {
  text-align: right;
}

Hello,
sorry for late answer
it would be great if we could use something like "Class and Style Bindings" even for headers instead of just using

better you give more props to set the position, like center, left or right, not only for header, but for column too,

better you give more props to set the position, like center, left or right, not only for header, but for column too,

You can use 「columnClasses」or 「columnStyles」 to set the position or other.

Hi, I closed this issue. If any questions, reopen it. thx.


Add Enum support in keyset

As a developer I want to be able to use an Enum property in keyset.
Actually this throw an Exception at EF core side.
public enum MyEnum : int
{
    Val1,
    Val2
}

public class MyEntity
{
    public int Id { get; set; }
    public MyEnum MyEnum { get; set; }
}

var context = query.KeysetPaginate(b => b.Ascending(entity => entity.MyEnum), KeysetPaginationDirection.Forward);

Keep in mind that enum order will depend on the way it is stored in Db: string with converter / int ...

I would definitely like to support enums. Feel free to submit the PR for this and I'll review it.

Keep in mind that enum order will depend on the way it is stored in Db: string with converter / int ...

This shouldn't matter because we only generate expressions for EF, we're db agnostic. We're only concerned with generating the equivalent EF query that would have worked if written by hand (and that does for enums), the user is the one to be concerned with their db semantics.


RN 0.66.5: Trimming video (iOS – 17.2.1, 17.3) saves video with black frames

react-native-video-trim version 1.0.13
Trimming a video with the following parameters:
showEditor(videoUri, {
    saveToPhoto: false,
})

Code for setting video URI to display using react-native-video version 5.2.1:
let trimmedVideo = null;
const eventEmitter = new NativeEventEmitter(NativeModules.VideoTrim);

eventEmitter.addListener('VideoTrim', event => {
    if (event.name === 'onFinishTrimming') {
        trimmedVideo = event.outputPath;
    }
})

Creates a video file like expected, but if trimming from the beginning the library adds black frames. The video is displaying fine, could this be react-native-video not refreshing properly?

The weird thing is that when I upload it to our backend the black frames aren't there anymore? 🤔
Doesn't seem like they actually exist if that helps your case.

You mean after uploading to your backend, then you download it again to client and do trimming then the black frames are gone?

After uploading to my backend and viewing it from a separate web app, the black frames are gone. It looks like they don't really exist... 🤔

Also worth mentioning that this bug also seems to only happen on iOS, not on Android (at least not in Android 14).

Yeah, I'm experiencing the same.
I trim a video from Mac using ffmpeg for Mac, send video to iPhone through AirDrop, open using RN-video-trim can clearly see it has around 1 sec black frame
No issue on Android
When I view the video from iPhone Photos app, it seems fine.
I'm thinking it maybe issue with the VideoPlayerController on iOS, probably it considers the initial black frames, meanwhile when playing from Photos App on iPhone or QuickTime MacOS they'll cut out initial frames which have problem (somehow 😅)

Actually the flow from my app is as follows:

Capture video
Trim video
HTTP-post to backend
Backend does post processing (using FFMPEG)
Display video using HTML  element

I'm also thinking it is related to how the iPhone displays the trimmed video. Could be some additional metadata which is not refreshed properly? E.g. information related to length / frame count is "kept / cached"?

I'm also thinking it is related to how the iPhone displays the trimmed video. Could be some additional metadata which is not refreshed properly? E.g. information related to length / frame count is "kept / cached"?

Maybe, we need to figure out

This happens to me as well. My trimmed video also has empty (white) frames at the beginning for a short period of time

Any news here? It happens here as well 1 second black screen when trimming.

hi @ChangyuYan @leitom as my previous response, this seems issue with player on MacOS/iOS, I'm still checking how can we get solve this

hi @ChangyuYan @leitom as my previous response, this seems issue with player on MacOS/iOS, I'm still checking how can we get solve this

Hi @maitrungduc1410 , I've been looking around for why this happens. FFMPEG adds frames in the negative x-axis. They shouldn't actually be visible.
Could you try adding -seek_timestamp 1 to the output command on line 282 on ios/VideoTrim.swift and see if that helps?

@NicTorgersen

-seek_timestamp (input)
This option enables or disables seeking by timestamp in input files with the -ss option. It is disabled by default. If enabled, the argument to the -ss option is considered an actual timestamp, and is not offset by the start time of the file. This matters only for files which do not start from timestamp 0, such as transport streams.

Looks promising, I'll try today when reach home

update: using -seek_timestamp 1 doesn't work 😢

hi @NicTorgersen @ChangyuYan @leitom I fixed the issue, please upgrade to 1.0.16.
this is what I figured out when using FFMPEG:
# has black frames
ffmpeg -i input.MOV -ss 00:00:00 -to 00:00:30 -c copy output1.mp4

# works, no black frame
ffmpeg -ss 00:00:00 -to 00:00:30 -i input.MOV -c copy output2.mp4

Original can be found here

Please help make some tests, if it's okay we can close this issue
@leitom @NicTorgersen @ChangyuYan


Update OWNERS

Signed-off-by: Maggie Chen<EMAIL_ADDRESS>https://github.com/open-cluster-management/backlog/issues/14277

/approve
/lgtm


More private way to store package credentials

Steps

Create a compose.yaml file including a package repo with credentials

name: plasma
version: 1.0.0
dependencies:
- package: plasma-core
  source:
    type: git
    url: https://XXX.XXX.XXX/XXX/XXX.git
    auth:
      name: XXX
      password: XXX

./launchr compose

Current

compose.lock is created with clear credentials

hash: a0c1bf6ff2760b12dd268c8a6e82e305399550db057fae5029b0a9b006aced51
packages:
    - name: ""
      source:
        type: git
        url: https://XXX.XXX.XXX/XXX/XXX.git
        auth:
            name: XXX
            password: XXX

compose.yaml also contains clear credentials

Expected

Would be great to looks for a way to avoid storing package/repos credentials in compose files
Proposal:

if package is not yet in compose.lock, user is prompted to enter package credentials when executing ./launchr compose
credentials are only stored encrypted to compose.lock  and not stored in package.yaml at all

Todo

Implement proposed solution & feel free to challenge it

This may be useful to not leverage credentials on compose tool, here is how it's done for private go packages https://aran.dev/posts/github-actions-go-private-modules/.
You may use .netrc, but windows may not work as expected, I don't know how it will work with powershell.
Or a rewrite for git, may be a better solution, but not enough if ssh is not available.
As David mentioned, we may introduce an encrypted file with all credentials.
We may use ansible vault compatible algo https://github.com/sosedoff/ansible-vault-go to encrypt the file.
For me, it's better not to leverage such things on the compose tool if we can avoid it.
@davidferlay @iignatevich what do you think?

Good points
Deployment token won't work if repo is behind basic auth though, which is our case ^^
We can't use ansible vault directly because it would couple launchr/compose to ansible but we can use part of that code for sure
Soo I don't see any way to avoid handling/encrypting credentials ourselves

https://github.com/launchrctl/compose/pull/6


module 'torch.onnx' has no attribute 'OperatorExportTypes'

I run this code in Jupyter Notebook，but one error occurs:
`
import torch
import torchvision.models
import hiddenlayer as hl
model = torchvision.models.vgg16()
hl.build_graph(model, torch.zeros([1, 3, 224, 224]))
`
AttributeError: module 'torch.onnx' has no attribute 'OperatorExportTypes'
And I run the code under Ubuntu16.04, pytorch 0.4.0

hi，the same error occurs. Do you know how to solve this problems?

I haven't encountered this issue, but could it be an issue with Pytorch version? The library was tested on PyTorch 0.4.1

@achanger have you solved the issue with pytorch 0.4.1 , thx!

@jiaobingle Yes

I haven't encountered this issue, but could it be an issue with Pytorch version? The library was tested on PyTorch 0.4.1

I have another question.
Now, I have three input with [ 32,6,  25, 25], [ 32,6,  51, 51],[32, 6,  75, 75]. How do I do ?
I also, hl.build_graph(net, torch.zeros(
[ 32,6,  25, 25],
[ 32,6,  51, 51],
[32, 6,  75, 75]
))
But my code had error: TypeError: zeros(): argument 'out' (position 2) must be Tensor, not list
Thank you.


NullPointerException when joining single-player world

Hi! I really like your take on waypoints. Unfortunately something is wrong with the last two versions...
Observation
With (latest) version 1.1.0 I cannot join a world created with 1.0.10 (may have been one before that, cannot remember).
See latest.log
I can join the world, when I revert to version 1.0.10. (However, when jumping world, I sometimes get the same NullPointerException. That is teleporting from the Overworld into the Nether. Or Overworld into the End. Even chunk-loader does not always help e.g. jumping back from the End to the Overworld to a Waypoint in my chunk-loaded base.)
Setup

Minecraft 1.16.4
Fabric Loader 0.10.8
Fabric API 0.29.1+1.16
Wrath Waystones 1.1.0

If it helps, I can try to reduce the number of mods... Problem is, I do not know what causes the error and therefore how to reproduce it in a simpler setup.
Speculation
I only looked briefly over your code. I would guess that your client code expects some constants to be initialised, but the init is done in a server side only code block. Check where WaystonesClient.WAYSTONE_DATABASE is initialised. I can be very much completely wrong!
Cheers,
cryxli

Fixed 👍

Fixed 👍


dome 密码错误

Describe the bug
dome 无法登录

Steps to reproduce

go to dome;
click 'Sign in'
see error

Screenshots or additional context
No response

Redeployed


can you add a slash command extension ?

This is a wrapper for tiptap. You should get raise a discussion in tiptap repo https://tiptap.dev/docs/github. I belive the command is already available https://tiptap.dev/docs/editor/experiments/commands


Debug logging

The application could use a logging feature for easier debugging.

hey @svimanet  assign me i will work on it

Since it doesn't seem any progress has been made on this ill see what I can do...


kubectl Plugin - Shipper

What

AS
A user of Kubernetes Clusters to manage my workloads using kubectl

GIVEN
I have kubectl installed on my workstation and my build-environment

WHEN
I need to perform a Multi-Cluster phased roll-out of my application through intent-driven-specifications
AND
I runkubectl krew install shipper

THEN
I should be able to perform all actions as provide by shipperctl

Why

Kubernetes Command line interface supports plug-in(s)
Shipper is a well maintained tool for Kubernetes users.
Using Krew, if All users of Kubectl could seamlessly leverage the powers offered by shipperctl, shipper might end up becoming the defacto tool of choice for multi-cluster deployments.

References

https://github.com/kubernetes-sigs/krew
https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/

Hi! I was playing with plugins recently. So i made preliminary changes for this issue in my branch - https://github.com/jan25/krew-index/compare/master...jan25:add-shipperctl?expand=1#diff-3de6258562a7a82dd5669df5d77dd1f8.
Let me know if i'm missing something, if its looking good I can proceed with PR to krew-index repo


GraphqlConsumer missing from library

Am I the only one using this library?

Thanks for reporting the bug.
After writing the GraphqlConsumer we found a more versatile way of accessing the client trough the context using an InheritedWidget. Therefore the GraphqlConsumer has become obsolete. On the other hands, since it's documented we might as well export it for developer to use.

@HofmannZ interesting, got any examples of how to access that?

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


apex amp state dict

🐛 Bug
https://github.com/PyTorchLightning/pytorch-lightning/blob/25ee51bc570503f331dceecc610d0eb355e22327/pytorch_lightning/trainer/training_io.py#L310
It seems for native amp support, the scalar state dict is saved. But for non native amp, the amp state dict is not saved?

anyone think it should be fixed?

@ruotianluo mind send a PR? 🐰


How to enable eslint plugin to parse and lint xml files

I'v recently found eslint-plugin-mozilla that is capable to lint xml files
i'v installed the plugin globally (my eslint is globally installed), and i i can use it manually to lint xml files from the command line:
eslint --plugin [eslint-plugin-mozilla] --ext .xml .
Is it possible to configure Brackets-InteractiveLinter to use eslint plugins and to show results for xml files?

@onemen interactive linter loads and runs eslint in process; it does not call the externally available version of eslint. This has the drawback that I have to implement any particular features where eslint would otherwise handle itself as it is the case of allowing eslint to load plugins.  I am lacking some time to investigate how I can use versions of eslint in system.  I am open to suggestions and PRs. :)

take a look at https://github.com/fdecampredon/brackets-eslint

yeah - that's one of the other way of doing it. That's the approach I describe in this other thread you got going on. https://github.com/MiguelCastillo/Brackets-InteractiveLinter/issues/166


Performance issue on touch swipe - iOS13.3

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Swiper Version: 5.3.0

Platform/Target and Browser Versions: iOS
whatismybrowser.com/w/9EQ6CR9

What you did
On the latest iOS and the latest Swiper version, when swiping, the touch event seems to be quite janky. Then you release the finger, the css transition kicks in and it's buttery smooth, but whilst actually swiping there is jank.
Expected Behavior
When using a finger to swiper through the items, the interaction should feel jank free and smooth
Actual Behavior
When swiping using a finger on iOS, the animation is a bit juttery / janky. This isn't to bad when it's just text, but when there are images with text etc, it is quite noticable.
It have recorded a screen capture to try and dislpay the issue. The gif compression probably doesn't help, the the issue is there.

Sorry, closing as not related to Swiper. In latest iOS, it reports touch events coordinates as rounded values (before it had fractional values) so now movement is possible only with a step minimum to 1px which you take for performance issue 🤷♂

Ah ok, that sucks! Thanks for letting me know 🙂


DeliveryItem property DeliveryProvider empty if send fails.

If sending messages fails, the delivery provider in the returned DeliveryItem object, and in history will remain empty.

This is simply due to the fact that this property is set in the SendAsync method after the attempt to deliver mail using the provider has been completed; if the delivery itself fails the try block exits before setting this property.
Setting the property in the AddMessage method would resolve the problem simply.


modal & dropdown menu not working.

interia js & laravel 9

can you write a html with example code?

not working for me too..

Hello @q5p0q5p, @KinG-InFeT, @yiyasha15,
Can you please provide more context for this issue?
Thanks!

this is a test: https://jsfiddle.net/1kosebzL/1/ but works correctly, @q5p0q5p can you explain the problem?


Documentation in English

Would be awesome

Thanks for your attention.
We will be very happy if someone can help us to do the translation work. If no one do it, we will do it later.


New tab causes closing VSCode

Issue Type: Bug
Hi VSCode developers and maintainers.
I found issue which closes window on trying to create new macOS Tab.
Steps to reproduce:

Open VSCode
Open any project
Maximize/Full-screen VSCode
Try open new tab via "Window -> New Tab"
If VSCode didn't closed, open new tab until you get close (for me it's 3-4 tab, sometime 1)

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 19.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 x 4000)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
116, 42, 18

Memory (System)
28.00GB (5.70GB free)

Process Argv
--crash-reporter-id b225e7d4-aa5e-4699-9a2b-abfb60e37365

Screen Reader
no

VM
0%

Extensions (32)

Extension
Author (truncated)
Version

vscode-fish
bma
1.0.20

vscode-intelephense-client
bme
1.6.2

npm-intellisense
chr
1.3.1

path-intellisense
chr
2.3.0

vscode-svgviewer
css
2.0.0

vscode-markdownlint
Dav
0.38.0

vscode-eslint
dba
2.1.14

dprint
dpr
0.3.0

EditorConfig
Edi
0.16.4

vscode-npm-script
eg2
0.3.13

LogFileHighlighter
emi
2.10.0

prettier-vscode
esb
5.8.0

shell-format
fox
7.0.1

go
gol
0.20.2

rust-analyzer
mat
0.2.457

dotenv
mik
1.0.1

HTMLHint
mka
0.10.0

gather
ms-
2020.12.1

python
ms-
2020.12.424452561

vscode-pylance
ms-
2021.1.1

jupyter
ms-
2020.12.414227025

cpptools
ms-
1.1.3

material-icon-theme
PKi
4.5.0

polacode
pnp
0.3.4

vscode-yaml
red
0.14.0

postcss
ric
2.0.0

code-settings-sync
Sha
3.4.3

code-spell-checker
str
1.10.2

code-spell-checker-russian
str
0.2.9

open-in-browser
tec
2.0.0

vscodeintellicode
Vis
1.2.10

vscode-todo-highlight
way
1.0.4

Yes @vscodebot. Thanks.
Related issue seems #102046

Yes @vscodebot. Thanks.
Related issue seems #102046

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/


Release binary on each release of the project

By using wangyoucao577/go-release-action, the binary of the application can automatically be made and uploaded to the release for different platforms.

Thank you dear @anvari1313 for your contribution. ☕
Now, it's added to the crafting table. 💫


some IPv6 WAN issues after update to 18.1.11

Read here about some issues after 18.1.11, since there are already 3 different ppl I thought to put here an issue. One of them explained some more facts so perhaps you already see whats wrong.
https://www.reddit.com/r/OPNsenseFirewall/comments/8w1gx0/no_ipv6_access_to_internet_from_clients_after/

18.1.6 to 18.1.11 is too broad. We need the exact version change. And I don't think kernel or base updates did this. The timing may be purely coincidental with the update, which tends to happen with these obscure problems for reasons outside of our control or just a simple setup quirk. Not trying to fend this off, but I trust the forum and twitter users to report issues like this as well in a very timely and angry mob fashion so this is merely managing expectations :)

FYI
https://www.reddit.com/r/OPNsenseFirewall/comments/8w1gx0/no_ipv6_access_to_internet_from_clients_after/e1tkxkm/


chore: update sonic to support Go1.21

What type of PR is this?

Check the PR title.

[x] This PR title match the format: <type>(optional scope): <description>
[x] The description of this PR title is user-oriented and clear enough for others to understand.
[ ] Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:  update sonic to support Go1.21 & remove unused images.
zh(optional):
(Optional) Which issue(s) this PR fixes:

(Optional) The PR that updates user documentation:

This update is not necessary triggered at the hertz side - users can update directly in their own projects.
Please let me know if there is anything I'm missing.


Enable named servers in cryocloud

Ref https://github.com/CryoInTheCloud/hub-image/issues/7

@sgibson91 i think it is ok to let it be until it becomes a problem and we can limit it if it does!


Crash inside AnimatedVisibility()

How to reproduce
I searched through closed issues and this was addressed in this issue: https://github.com/patrykandpatrick/vico/issues/200
I have created a CartesianChartHost that works fine inside any layout. However, when put inside an AnimatedVisibility(), it crashes when the visibility becomes true. In the old issue you mentioned it would get fixed in 1.6.5, and I am currently using 2.0.0-alpha.19
How to Reproduce:
Create a CartesianChartHost with CartesianChart with LineCartesianLayer. Use it inside an AnimatedVisibility() block.
Observed behavior
Crashes as soon as visibility becomes true. coerceIn() method causes the crash, because of 0 value of bounds.height().toInt() (in BaseDynamicShader.kt:43).
Expected behavior
Normally render the chart, even with initial height of 0.
Vico version(s)
Latest unstable version
Android version(s)
Android 14 (Virtual Device)
Additional information

Hello! Thanks for the report. We’ve followed the reproduction instructions and tried several other setups, but unfortunately, we haven’t been able to reproduce the crash. Could you share a minimal reproducible example? A few extra notes:

The problem reported in issue #200 was resolved in Vico 1.6.5. Something else seems to be happening here.
At least by default, AnimatedVisibility appears to clip its content, not resize it. The CartesianChartHost’s height should remain unaffected, and this was the case in our testing.

Hey Patrick! Thank you very much for taking the time to look at this. I rolled back to yesterday's version of the app and tried to find what was causing the issue, and I figured it out. This is an extremely specific case: my AnimatedVisibility is inside a Column, which is inside a Box, which is inside another Column, and the whole thing is inside the content: @Composable (PaddingValues) -> Unit block of BottomSheetScaffold. When I use the PaddingValues in the parent Column, or the Box that's the only child of it, it would cause this crash. Another thing worth considering is that I measure content's height to determine sheetPeekHeight for BottomSheetScaffold.
I don't know if you think this is worth addressing or not, but here is the minimal reproduction:
BottomSheetScaffold( ... ) { paddingValues ->             Column(                 Modifier                     .fillMaxSize()                     .padding(paddingValues)   // The crash doesn't happen if this is removed.             ) {                 Box(                     Modifier                         .fillMaxWidth()               // We can also put padding(paddingValues) here and it would crash.                         .background(Color.White)                         .onGloballyPositioned { coordinates ->                             val height = with(localDensity) {                                 coordinates.size.height.toDp()                             }                             sheetHeight = (screenHeight - height) - 20.dp                         }                 ) {                     Column(                         modifier = Modifier                             .fillMaxWidth()                             .padding(horizontal = 20.dp)                     ) {                         HomeViewSwitch(                       // This is just to show/hide the chart                             modifier = Modifier,                             mapViewSelected = mapViewSelected,                             onClick = {                                 screenModel.changeHomeScreenView()                             }                         )                         AnimatedVisibility(                             visible = !mapViewSelected,                             enter = fadeIn(tween(300)),                             exit = fadeOut(tween(300))                         ) {                             LineChartImpl(                                          // This is a wrapper aroundCartesianChartHost                                dataPoints = listOf(10f, 20f, 3f, 4f, 6f)                             )                         }                     }                 }             }         }

Hello @fuadenergyom, please provide a self-contained MRE. The code you've shared contains unknown references.

Closing due to no MRE.


Retranslation button (#*) not working

The Retranslation button doesn't appear to be working, and if it isn't already showing, the process of accessing the Retranslation button looses any source text selection that existed at the time the + symbol is pressed to reveal/drop down the list of action buttons (the retranslation icon is the third one down in the drop down list). Later, I figured out that it is possible to have the Retranslation button visible when making a selection of source words to create a Retranslation, but pressing the Retranslation button doesn't allow me to type in a retranslation for the selected words. Instead nothing happens, the selection disappears, and there no phrase box to be seen. I assume that although the #* button is there in the interface you haven't implemented the Retranslation feature yet.

Of course I dunno how selections & retranslations are supposed to work in AIM. In AID, the "selection" is only in a secondary sense a visible highlighting on the screen; the primary thing a selection is in AID is a list of CPile instances which define the scope of the selection, a pointer to the anchor pile (the first pile in the list), and an int for which line of the strip the selection is in (-1 when no selection is current). Then, if the screen's selection isn't visible or is covered or whatever, so long as those things remain, the handlers for things have something they can rely on in all circumstances. --Bruce
----- Original Message -----
From: Bill Martin
To: adapt-it/adapt-it-mobile
Sent: Thursday, September 03, 2015 5:33 AM
Subject: [adapt-it-mobile] Retranslation button (#*) not working (#105)
The Retranslation button doesn't appear to be working, and if it isn't already showing, the process of accessing the Retranslation button looses any source text selection that existed at the time the + symbol is pressed to reveal/drop down the list of action buttons (the retranslation icon is the third one down in the drop down list). Later, I figured out that it is possible to have the Retranslation button visible when making a selection of source words to create a Retranslation, but pressing the Retranslation button doesn't allow me to type in a retranslation for the selected words. Instead nothing happens, the selection disappears, and there no phrase box to be seen. I assume that although the #* button is there in the interface you haven't implemented the Retranslation feature yet.
—
Reply to this email directly or view it on GitHub.

Selection cleanup looks like it addressed this issue -- closing.


chore: update test dependency to version 1.22.0

Updated test dependency to version 1.22.0

Thanks for this. What is the reason to upgrade this particular dependency?

I thought that the problem is caused by the test dependency. But right now it works without this update. You can close or merge the PR. It depends on you.

Upgraded to test 1.22.0 in latest commit. Closing, thanks


Fix vertexai.py 'params' generation for 'init_vertexai'

Fixed a bug that always constructed the 'params' dict for the 'init_vertexai' function as an empty dict.
Fixes # (issue)
Who can review?
Tag maintainers/contributors who might be interested:
@hwchase17
@agola11

thanks for flagging - going to land https://github.com/hwchase17/langchain/pull/5891 which fixes the same thing


Expand the firstNonNil(_:) docs

Expands the doc comment and the guide of firstNonNil(_:). The naming section of the guide might need some more work.
Checklist

[ ] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

@swift-ci please test


Make distribution limit the sum of payout amounts

What does this PR do and why?
UI changes:

Removes the distribution limit selector
For first split, allows selection of percent or amount (and currency), which is then unchangeable for all subsequent splits
If amount is selected in this first split, sets distribution limit to sum of the inputted amounts
If percent, sets infinite distribution limit

Other code changes (apologies for some scope creep):

Made component for CurrencySwitch and used throughout app
Changed all target wording in v2 code to distributionLimit
Made component to for DistributionLimit (returns either specific, 0 or 'No limit')

Follow-up issues:
#1046
#1047
Screenshots or screen recordings
Amount:
https://user-images.githubusercontent.com/96150256/169654324-b9f4b99b-baff-4012-bc41-428f0bcb3513.mp4
Percent:
https://user-images.githubusercontent.com/96150256/169654341-46703f3f-019d-4e61-8000-02083ba5de4b.mp4
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.

Also a performance bug related to the updating percentage
https://user-images.githubusercontent.com/104132113/169676149-e1ddf970-f356-47ba-8dc5-ebddcbd4922e.mov
I personally feel the pain of this one as I have recently been bitten by it. Likely related to how forms update in antd. I am ready to look at overhauling and streamlining the antd stuff once all of this is merged

Is this label supposed to be black?

Should the placeholder be same color text as a real value?

UI nit - should we pop up a warning if percentage is over? Doesn't necessarily have to be added in this PR, but might be a cool feature issue to have

Also a performance bug related to the updating percentage
Screen.Recording.2022-05-22.at.12.51.31.pm.mov
I personally feel the pain of this one as I have recently been bitten by it. Likely related to how forms update in antd. I am ready to look at overhauling and streamlining the antd stuff once all of this is merged

Yeah oath man. This is an existing issue, a fix would hugeee

 UI nit - should we pop up a warning if percentage is over? Doesn't necessarily have to be added in this PR, but might be a cool feature issue to have

Yeah for sure, done:

Should the placeholder be same color text as a real value?

I'm not seeing this one 🤔 if it is though it'd be a pre-existing issue which we could tackle in another PR


hpple on AppleWatch

Hi
i use your class in my app to display image of a gallery in a blog under wordpress.com
In iPhone works perfectly , but when i use hpple on Apple Watch it's works on  simulator but on fisical device it won't works !
When the parsing arrive on this line of code
TFHpple *parser = [TFHpple hppleWithHTMLData:appleWatchHtmlData];
NSLog(@"parser %@", parser);
NSString *tutorialsXpathQueryString = @"//div[@class='gallery galleryid-1461 gallery-columns-3 gallery-size-thumbnail']/dl/dt/a/img";

NSArray *imageFilesArray = [tutorialsParser searchWithXPathQuery:tutorialsXpathQueryString];
NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithCapacity:0];

the nslog say
2015-10-25 18:19:13.939 WatchApp Extension[398:328494] parser <TFHpple: 0x1655d7e0>
2015-10-25 18:19:13.947 WatchApp Extension[398:328494] Unable to parse.
Perhaps it may be due to the limited apple watch resources, but how can i solve this issue ?
Thank you so much

I have exactly the same problem!
Have you found a solution?


Couldn't Reproducing Numbers from Paper

Hello,
I am trying to reproduce the accuracy in 11 datasets in your paper. After running PromptSrc to produce the teacher model, I renamed the model and moved it to the teacher_model folder. Then, I ran the script under promptkd base2new_train.sh. After finishing training, I tried to assess the accuracy on base and novel classes, and I found out that parse_test_rest gives the same number for both new and novel, which is the novel accuracy? Even the numbers are far away from the number delivered in the paper?

I used the publicly available pre-trained models. For most datasets, the results align with those mentioned in the paper. However, for the 'dtd' dataset, there are discrepancies. Here are the results for three separate runs:.
run1	run2	         run3	Base	         run1	run2	        run3	        New	         HM
PromptKD	83.40	73.10	81.80	79.43	70.20	62.10	66.70	66.33	72.29.
It's worth noting that the results for seed 2 differ significantly and do not harmonize with the other outcomes. I've attempted multiple runs, but consistently obtained the same results.

I used the publicly available pre-trained models. For most datasets, the results align with those mentioned in the paper. However, for the 'dtd' dataset, there are discrepancies. Here are the results after three separate runs:
                Base	         New	HM

PromptKD	83.47	68.93	75.51
in Paper           85.84        71.37       77.94
the results for old and  New differ significantly. I've tried multiple runs, but consistently obtained the same results

Maybe you can try using KD_WEIGHT=200.
In my experiment, I ran it four times, and the results are as follows:
Run 1: base:85.88, novel:71.25
Run 2: base: 86.69, novel: 71.37
Run 3: base: 85.76, novel: 71.86
Run 4: base: 85.88, novel: 71.01
The accuracy of the base class in the second experiment is too high, so I do not use this result. I take the average of the first, third, and fourth results.
Actually, it is hard to say why you cannot reproduce my results. I guess it may be caused by the computational environment. When I tried to reproduce the results of PromptSRC, my results were lower than reported. But when my classmate repeated it, he got normal results.


Pydantic dependency too old

This project uses pydantic<2 and it would be nice to have this fixed.
Description
This project uses pydantic<2 and it would be nice to have this fixed as I use it in a jupyterhub which uses pydantic>=2. Also to note that even edsnlp, which i'm also using, accepts version 2+.
How to reproduce the bug
pip install jupyterhub==5.1.0 "edsnlp[ml]>=0.13" edspdf==0.9.1

Your Environment

Operating System: ubuntu and alpine based docker images (modified)
Python Version Used: 3.11.9
EDS-PDF Version Used: 0.9.1
Environment Information: Kubernetes on premise

Indeed! Our main pydantic v2.0 blocker was confit, which we adapted a few months ago, so it shouldn't be too difficult. I'll keep you posted.


No callback to listen for turn on of bluetooth after calling BluetoothManager.enableBluetooth()

I am running this method BluetoothManager.enableBluetooth()  from componentDidMount if bluetooth enabled is false, It works fine.but, once prompt to turn bluetooth showsup and user turns on bluetooth, there is no callback which gets triggered. even code in then block of BluetoothManager.enableBluetooth() doesn't work

I am not sure how to listen the BLE Off event, any idea of that?  I are checking BLE status where It need to ensure BLE enabled,  Like scanning and printing.
发自我的 iPhone

在 2018年12月20日，下午3:19，Shubham Choudhary<EMAIL_ADDRESS>写道：
I am running this method BluetoothManager.enableBluetooth() from componentDidMount if bluetooth enabled is false, It works fine.but, once prompt to turn bluetooth showsup and user turns on bluetooth, there is no callback which gets triggered. even code in then block of BluetoothManager.enableBluetooth() doesn't work
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@januslo  If I am running scanDevices function,  more than one time, it falls in catch block, How did you handled connectivity issues can you please provide me some example

First, plz dot let use scan twice, second, what error shows while trigger scan twice?
发自我的 iPhone

在 2018年12月20日，下午5:48，Shubham Choudhary<EMAIL_ADDRESS>写道：
@januslo If I am running scanDevices function, more than one time, it falls in catch block, How did you handled connectivity issues can you please provide me some example
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@januslo  can you please let me know how to connect to printer using this package. I am facing problems. Sometimes it doesn't show my device in paired devices array even if the device is paired. then I need to restart the app and turn bluetooth on/off it sharts showing

marry Eve, plz try more about the bluetoothManager, is operation should be included in it.
You may try to listen the even rather then using the method returns, I am sorry I need to do more testing about the method returns later.
 DeviceEventEmitter.addListener(
            BluetoothManager.EVENT_DEVICE_ALREADY_PAIRED, (rsp)=> {
                this._deviceAlreadPaired(rsp) // rsp.devices would returns the paired devices array in JSON string.
            });
        DeviceEventEmitter.addListener(
            BluetoothManager.EVENT_DEVICE_FOUND, (rsp)=> {
                this._deviceFoundEvent(rsp) // rsp.devices would returns the found device object in JSON string
            });

okay, thanks. This thing can be solved now. Can I connect to device more than once. I mean if a device is connected can I connect to it again.
or to avoid this, how can I know which device is connected to printer right now.

Actually, we suffer the same thing, I the last commit, I update the android connect mechanism that would check the current connect and return the connected device name directly. I one word, plz update the repo to the last one (with git url directly current, will publish a new version after this mechanism is apply and tested with IOS as well) and you can just call connect once again.

I tried adding these methods also, but getting these functions as undefined :(
can you fix this: here is the code
`    @ReactMethod
public void isDeviceConnected(Callback booleanCallback) {
    Boolean isConnected = true;

    if (mService != null) {
        switch (mService.getState()) {
            case 0:
                isConnected = false;
                break;

            case 2:
                isConnected = false;
                break;

            case 3:
                isConnected = true;
                break;

            default:
                isConnected = false;
                break;
        }
    }
    booleanCallback.invoke(isConnected);
}

/* Return the address of the currently connected device */
@ReactMethod
public void getConnectedDeviceAddress(final Promise promise) {
    if (mService!=null){
        promise.resolve(mService.getLastConnectedDeviceAddress());
    }

}`

plz make sure your code was installed into node_module folder.

Now, I finally I am able to connect to pos printer flawlessly, Thanks for your help. Will give you a pull request soon, I have added both of these methods, which makes the connection with pos easier.


Proposal: arrayLeftJoin

There is a left array join
select a,x from (select 1 a, cast([] as Array(String)) x) left array join x
┌─a─┬─x─┐
│ 1 │   │
└───┴───┘

It would be nice to have the same function arrayLeftJoin
select a, arrayLeftJoin(x) from (select 1 a, cast([] as Array(String)) x)
because now I have to use arrayJoin( empty(x) ? [''] : x ) x to solve this.
select a, arrayJoin( empty(x) ? [''] : x ) x from (select 1 a, cast([] as Array(String)) x)

Note: there is also emptyArrayToSingle function.