Update batch mode in event hub binder doc

Codecov Report

Merging #256 into release/1.0.0.M2 will not change coverage.
The diff coverage is n/a.

@@                 Coverage Diff                 @@
##             release/1.0.0.M2     #256   +/-   ##
===================================================
  Coverage               56.66%   56.66%
  Complexity                270      270
===================================================
  Files                      86       86
  Lines                    1156     1156
  Branches                   62       62
===================================================
  Hits                      655      655
  Misses                    467      467
  Partials                   34       34

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40e5827...905854a. Read the comment docs.


[Bounty] SOTA 7B chatbot + proper chatbot format + better sampling + tests

Overview
This is PR for using the Intel-7B model as the SOTA 7B model as mentioned here.
Here's a screenshot of loading the Intel-7B model in the existing examples/llama.py:

The command I ran is the following:
METAL_XCODE=1 DEBUG=1 python3 examples/llama.py --gen intel --size 7B --model path/to/pytorch_model.bin.index.json

For now, you'll have to download the Intel-7B weights + tokeniser.model + pytorch_model.bin.index.json files and place them in a single folder. Once #2415 is merged later on, I'll add support for downloading the needed models.
Note: This is a work in progress and will address the rest of the tasks as I go.
Tasks

[x] Load Intel-7B model
[ ] Add proper chatbot prompting
[ ] Add better sampling
[ ] Add tests
[ ] Add model downloading depending on #2415

This is not enough for a lock. For a lock I need to see it running + proper chatbot prompting. Then for bounty show the tests confirm it's SOTA 7B

@geohot - added the following template for the intel-7b model. There was a recommended template from their Huggingface page:
### System:
{system}
### User:
{usr}
### Assistant:

Here's a very quick demo:

I updated the system prompt locally and had some decent conversation with the chatbot. One thing I noticed is that at the very end, the chatbot pretty much produced a different language after I said "bye" to it.

@geohot - saw you taking on this bounty. Feel free to close this if that’s the case.

Yea ### User: isn't the right delimiter. See what I did on stream, you have to use the extended hidden tokens.


University add: UniNorte

Another domain owned by UniNorte
Centro Universitário do Norte - UniNorte is a part from Ser Educational Group

@BearusuMyo Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

You can provide us with any of the following as the proof:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

@BearusuMyo You might miss my previous comment. Please react.

Official website
Rua 10 de Julho, 873 – Centro, Manaus, Amazonas State, Brazil
Computer engineering Bachelor course overview
The following lines are the WHOIS transcription
`% Copyright (c) Nic.br
%  The use of the data below is only permitted as described in
%  full by the terms of use at https://registro.br/termo/en.html ,
%  being prohibited its distribution, commercialization or
%  reproduction, in particular, to use it for advertising or
%  any similar purpose.
%  2021-11-22T07:09:30-03:00 - IP: ..***.188
domain:      sempreuninorte.com.br
owner:       SER EDUCACIONAL S/A
owner-c:     ESJ120
tech-c:      ACV75
nserver:     e.sec.dns.br
nsstat:      20211120 AA
nslastaa:    20211120
nserver:     f.sec.dns.br
nsstat:      20211120 AA
nslastaa:    20211120
dsrecord:    59050 ECDSA-SHA-256 65AAAEB325BA9DB33E3AFC542E0C5407034498E4BD7CF8B16B72B572B148A26A
dsstatus:    20211120 DSOK
dslastok:    20211120
saci:        yes
created:     20200120 #20569889
changed:     20210123
expires:     20230120
status:      published
nic-hdl-br:  ESJ120
person:      ESBJ-Ensino Superior Bureau Jur?dico
created:     20030530
changed:     20191113
nic-hdl-br:  ACV75
person:      André C. Vasconcelos
created:     20010412
changed:     20180530
% Security and mail abuse issues should also be addressed to
% cert.br, http://www.cert.br/ , respectivelly to
% and
%
% whois.registro.br accepts only direct match queries. Types
% of queries are: domain (.br), registrant (tax ID), ticket,
% provider, CIDR block, IP and ASN.
Information Updated: 2021-11-22 10:09:30`

@BearusuMyo Thank you for the clarification. Pull request merged.


Error with ssh

SSH is working for a while then it suddenly stops and i get this error.
fwup: Upgrading the B partition
 1%** (MatchError) no match of right hand side value: {:error, :closed}
   lib/mix/tasks/firmware.push.ex:130: Mix.Tasks.Firmware.Push.wait_for_complete/3
   (mix) lib/mix/task.ex:301: Mix.Task.run_task/3
   (mix) lib/mix/cli.ex:75: Mix.CLI.run_task/2
   (elixir) lib/code.ex:376: Code.require_file/2

I think that we should be able to reproduce this error. Could you post your Nerves system and version as well?

nerves "0.7.5
nerves_system_rpi3, "0.16.1
nerves_system_br, "0.13.9"
nerves_runtime, "0.4.4"

Update: #9 addresses this issue, but I can't merge it for a few reasons unfortunately. I'll try to clean it up this coming week.

#12 combined with an update to fwup that supports the new handshake will make it possible to see what error you're getting that's failing the firmware update. I suspect that we'll either run into the error when going through the release process for the RPi3 or your updating everything will fix whatever inconsistency there was. In either case, I'll post again after the changes have been reviewed and releases are made.

This was fixed with the fwup handshake feature as stated above. I missed closing this issue when the previous release was made.


LICENSE / NOTICE file

After doing some reading, we've come up with the following information:
We should include a NOTICE.md file in our repository, which lists all LICENSEs engo depends on. This includes Go itself (BSD license), probably ajhager/engi, and possibly all other packages we depend on.
Those that use engo to compile something, should include that NOTICE file with that binary (those annoying README files you see with games you install).
See also http://opensource.stackexchange.com/questions/1711/combining-code-written-under-different-licenses-eiffel-forum-license-mit-and-a

I recommend you just add a "Credits" or "Copyright" section to you game (Those long sections that people barely read).

https://github.com/EngoEngine/engo/issues/188https://github.com/EngoEngine/engo/issues/188 will also benefit from this

We should include a NOTICE.md file in our repository, which lists all LICENSEs engo depends on.

Is it conventional to use a NOTICE file to track licenses of third-party projects? Which other projects use this approach?
Along @otraore's reasoning, I'd suggest simply adding a bullet list in the credits section of the readme and simply stating their license, or better yet providing a link to their original license file. E.g.

The Lux engine, which provides a float32 math package (MIT license)

I think what @mewmew says is a good idea, unless anyone wants to argue against it, I'm going to send a PR soon to implement it

@otraore This works for me!

@paked Great!

Closed by https://github.com/EngoEngine/engo/pull/248


Allocated buffer data can wrap around and overwrite live data

Describe the bug
Assuming we have large enough number of goroutines, the code in alloc.h, write_target_data can wrap around and overwrite an ongroing request data.
Namely the following code: https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/main/include/alloc.h#L77
When we reach the end of the allocated buffer, it simply begins at the start of the buffer for the current CPU. However, the data that's at the beginning of the per CPU segment can technically be in use. One simple example is a goroutine thread being preempted after the CreateHeaderFields uprobe returns. After the preempted thread resumes, the data for its headers can be replaced with something else that's using the buffer.
Environment

OS: Linux
Go Version: any
Version: any

To Reproduce
No reproduction case. Making a testcase that fails should be possible, but it would be unreliable reproduction case.
Expected behavior
Allocating new space from the shared memory segment should be safe.
Additional context
I think a solution here could be a rudimentary reference counting.

Permalink to what I think the original description issues refers to: https://github.com/open-telemetry/opentelemetry-go-instrumentation/blob/635eaed246905f841d07f4d69a247c8387696a09/internal/include/alloc.h#L84
@grcevski please double check I have this correct.

Yes that's correct @MrAlias.


Add pipecd-base image

What this PR does / why we need it:
To run the gcloud command in an Ops process, pre-installed Google SDK is definitely needed.
Which issue(s) this PR fixes:
Ref https://github.com/pipe-cd/pipe/issues/1471
Does this PR introduce a user-facing change?:

NONE

The image size gonna be over 600MB, so we have to keep in mind we'd better replace Go SDK upon it will be started providing as mentioned https://github.com/pipe-cd/pipe/pull/1553#issuecomment-773715567.

The image size gonna be over 600MB, so we have to keep in mind we'd better replace Go SDK upon it will be started providing as mentioned #1553 (comment).

You know, this is definitely the dark side of the integration of multiple tools into a single one.

@nghialv Thank you for your suggestion. I settled on using the python:alpine image as a base image because most other tools around cloud infrastructure including aws-cli highly depend on Python, so it could be thought reasonable one.

I settled on using the python:alpine image as a base image because most other tools around cloud infrastructure including aws-cli highly depend on Python, so it could be thought reasonable one.

Yes, I know. But if we can install python with a single line of apk add, I prefer to use the pure alpine image.

Okay, I got what you'd like. I'll look into it.

@nghialv I've fixed following your thought!

Fixed. PTAL 😄

Nice.
/approve


Searching.  When you try a keyword.  Filter according to key words. And remove previous search tag from textbox

While searching. if you have searched some data.  Next time when you enter new keyword.  Previous take place like place holder.  And new entry not show and writin under the place holder.  You need to improve.

⚠ Idea migrated from UserVoice
Created By: Waseem Hussain
Created On: 2017/09/18 18:41:05 +0000
Votes at Migration: 0
Supporters at Migration: 0

From the description, that seems be a bug. But can't reproduce the it. A screenshot will be very helpful to understand more about the issue.

Tried it again recently, not reproducible according to the description. Need a screenshot for more details, or we could close it for now. @dend @Powerhelmsman

Close as lack of enough information and can't repro.


maestro-cloud-upload 1.5.0

What to do if the build fails?
At the moment contributors do not have access to the CI workflow triggered by StepLib PRs. In case of a failed build, we ask for your patience. Maintainers of Bitrise Steplib will sort it out for you or inform you if any further action is needed.
New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

Hey folks, would it be possible to get some eyes on this? Thanks!

Sorry for the direct ping @godrei, but is there any way you or someone from the team could throw some eyes on this? Or when should we expect it to be reviewed? This is blocking a release on our end so would love to be able to merge the addition of project_id asap - thank you :pray:

Thanks @lpusok - for future reference, is there anywhere we should reach out to get help with stamping these types of PRs?


update nyc report command

The "--reporter=lcov" does not generate a full report, but --reporter=text-lcov" does.

Hi @eddiemoore, thanks for the approval :) Unfortunately: "Only those with write access to this repository can merge pull requests." so I can't do anything about this.

@Kilian you should be able to pull updates from the master branch

looks like this was fixed via https://github.com/codecov/example-node/commit/65c56b51972b498de06df3646d718e781d6b2d03


[Bug] AA number of flaks remains unvaried when activating def AA with Aux. Armaments Mod. 2

Describe the bug
When equipping Aux. Armaments Mod. 2 and activating (right-click) the Def AA consumable, the number of flaks remains unvaried.
To Reproduce
Steps to reproduce the behavior:

Select a ship with Def. AA consumable and equip Aux. Armaments Mod. 2 in the 6th slot.
Right click on the Def. AA consumable.
See flak number staying the same.

Expected behavior
When right clicking def AA with Aux. Armaments Mod. 2, the number of flaks should increase like the damage does.
App Version: 1.5.3
Data Version: 0.11.6#1

Also affecting web


Overwrite sync password might not stay in certain condition.

https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-password-hash-synchronization#overwrite-synchronized-passwords
This statement is not completed as
Scenario 1
If you don't have password writeback - same behaviour (split password)
Scenario 2
If you have password writeback, and you use the MSOL command (or Office 365 portal)  - same behaviour (split password)
Scenario 3
If you have password writeback, and you use the AzureAD command (or Azure Portal )  - password will writeback to on-premises
Reference: https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-sspr-writeback
Of course, I might be wrong so I really want get a clarity on this.
Thanks

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c900f942-4456-5238-9f4c-a7a5bd685c04
Version Independent ID: a5d7d971-765f-0977-f531-232ea5924121
Content: Implement password hash synchronization with Azure AD Connect sync
Content Source: articles/active-directory/hybrid/how-to-connect-password-hash-synchronization.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@limjianan-camelody
Thanks for your feedback! We will investigate and update as appropriate.

Hi @limjianan-camelody are you asking for clarification about these scenarios or for updated documentation? I can't find the section you mentioned in the document that you posted. Please let me know and I can help you further.
Thanks,
James

Hi James,
Reference: https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-sspr-writebac
Snap from the above URL
`

Supports password writeback when an admin resets them from the Azure portal: When an admin resets a user's password in the Azure portal, if that user is federated or password hash synchronized, the password is written back to on-premises. This functionality is currently not supported in the Office admin portal.

The above says when an admin have reset the password (under circumstances), the password will writeback.
And the https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-password-hash-synchronization#overwrite-synchronized-passwords  says below

Overwrite synchronized passwords
An administrator can manually reset your password by using Windows PowerShell.
In this case, the new password overrides your synchronized password, and all password policies defined in the cloud are applied to the new password.
If you change your on-premises password again, the new password is synchronized to the cloud, and it overrides the manually updated password.
The synchronization of a password has no impact on the Azure user who is signed in. Your current cloud service session is not immediately affected by a synchronized password change that occurs while you're signed in to a cloud service. KMSI extends the duration of this difference. When the cloud service requires you to authenticate again, you need to provide your new password.

`
So, i think the idea is it will need to call out if the password writeback is enabled, there is a potential that the password can be writeback and override on-premises password
for the article, my suggestion is to refer to the link and mention there is a possible.

Thank you @limjianan-camelody , we will update this.
Best,
James


Adding java sample

Purpose

Adding Java sample

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]/java
git checkout [branch-name]
mvn clean package

Test the code
mvn clean package runs the unit tests

What to Check
Verify that the following are valid

Tests pass, no failures

Other Information

@ealsur Can you review this PR? We got the last bits of the integration tests converted today.

I'll defer to @kushagraThapar - I am not a Java expert 😄

@scgbear Thanks for the working on this adding this sample!
I've added comments, and will do a follow-up review after you've had time to address them.

@olivertowers think I've addressed all of the issues identified. If you can have another look that would be great.
Thanks!

@scgbear lgtm

Thanks @olivertowers! I assume we need another approval before it's merged into the main branch? @xinlian12, @kushagraThapar, @jayantacs are you able to have another look?
Thanks!

@scgbear - I will take another look today, thanks for resolving all the comments, appreciate it.

Thanks @kushagraThapar! What are the next steps to get it merged.

@scgbear - if everything looks good, I will go ahead and merge it now. Please let me know!
For any future changes, or any current changes, please feel free to create more PRs or to discuss this with the SDK team and Gremlin team.

Thanks @kushagraThapar!


go code out of sync with entrypoint.sh

See https://github.com/ossf/scorecard-action/pull/155#issuecomment-1075758252:

this PR https://github.com/ossf/scorecard-action/pull/98
this https://github.com/ossf/scorecard-action/pull/155

cc @justaugustus

@azeemsgoogle do you know if these have already been resolved?

Changes already merged into Bash (#98) should be resolved by #489. The other issues mentioned are still WIP so I'm not sure if those changes have been resolved/are in sync with Golang.

IFAICT, setRepoInfo is out of sync with the bash script. I uses curl https://api.github.com/repos/"$GITHUB_REPOSITORY" in the bash
but uses cat $GITHUB_EVENT_PATH in the golang.
This was a source of problems on private repos, e.g. https://github.com/ossf/scorecard-action/pull/75
Also, I see that setPublishResults() uses o.PublishResults = o.PublishResults && !privateRepo. If an err is reported in strconv.ParseBool(o.PrivateRepoStr), privateRepo will default to false and publish would be set to true. I think we should err on the safe side: when we cannot parse, we should fail.

You are right, I see the failure here - https://github.com/ossf-tests/scorecard-action/runs/6996850405?check_suite_focus=true. It says refs/heads/main not supported, I'm assuming this is due to GITHUB_EVENT_PATH not being set.
re: setPublishResults(), ack. Will send out a PR to fix this.

Closing this issue. Golang code is now in sync with Bash.


Youtube Downloader API function in Flask

Pretty sure we should rename this " Wav2Vec2 endpoint " or something?


No bitwise AND, OR, or XOR operations in IntX for C#  ( '&', '|', and '^' operators)

Hi, is there any development plan into include bitwise, AND, OR, or XOR operations for your library?
I'm trying to implement a Galois Linear Feedback Shift Register of (almost) arbitrary bit length, but in order to accomplish the actual flipping of bits it requires:
1: Determining least significant bit in register (1 = flip bits) (modulus 2 math handles this, but bitwise AND with the number 1 also works)
2: Shifting the "state" of the machine over 1 bit (shifting right already implemented)
3: If lsb from step 1 was a 1, then flip bits (accomplished by XORing the "state" of the machine with a number of equal bit length in which the bits that represent the "taps" of the shift register are set to 1)
(see https://en.wikipedia.org/wiki/Linear_feedback_shift_register for a more detailed explanation)
So If I have a shift register with 4 taps, of width 16 bits, where the taps are set at bits 16, 14, 13, and 11, I would XOR the 16bit number ('short' in C#) 0xB400 to the state (also a 'short').  Or Binary, that's
1011010000000000.
Currently, if I want to use your library, there are no XOR operations, and so I can't flip the bits of the state of the register without a bunch of extra work that slows the whole process down considerably.
I can help with the development if I know how to get at the "raw" bits or internal integers of the two IntX objects and calculate a result.
Thanks.

Hi Dustin,
Implementing bitwise ops should be simple enough, so I will do it soon. No promises though :)
Best regards,
Andriy Kozachuk
On Thu, Feb 19, 2015 at 12:42 AM, Dustin<EMAIL_ADDRESS>wrote:

Hi, is there any development plan into include bitwise, AND, OR, or XOR operations for your library?
I'm trying to implement a Galois Linear Feedback Shift Register of (almost) arbitrary bit length, but in order to accomplish the actual flipping of bits it requires:
1: Determining least significant bit in register (1 = flip bits) (modulus 2 math handles this, but bitwise AND with the number 1 also works)
2: Shifting the "state" of the machine over 1 bit (shifting right already implemented)
3: If lsb from step 1 was a 1, then flip bits (accomplished by XORing the "state" of the machine with a number of equal bit length in which the bits that represent the "taps" of the shift register are set to 1)
(see https://en.wikipedia.org/wiki/Linear_feedback_shift_register for a more detailed explanation)
So If I have a shift register with 4 taps, of width 16 bits, where the taps are set at bits 16, 14, 13, and 11, I would XOR the 16bit number ('short' in C#) 0xB400 to the state (also a 'short').  Or Binary, that's
1011010000000000.
Currently, if I want to use your library, there are no XOR operations, and so I can't flip the bits of the state of the register without a bunch of extra work that slows the whole process down considerably.
I can help with the development if I know how to get at the "raw" bits or internal integers of the two IntX objects and calculate a result.
Thanks.
Reply to this email directly or view it on GitHub:
https://github.com/devoyster/IntXLib/issues/2

Thank you, and no rush, this is a side project that I'm experimenting with Linear registers and Non-Linear registers.  The first only requires XOR, the second requires... well... everything :P

Hi,
Btw, with arbitrary-precision integers bitwise XOR and NOT are not that obvious :)
My current plan is to NOT/XOR using 4-byte number boundaries (I store numbers as uint arrays so it's the easiest way - just go and process every uint in array). Other options could be to decide that number ends on its highest byte or even bit but it's a bit harder to implement and I doubt is needed. What would be your thoughts, will my plan work for you?
Btw, I don't store negative numbers in two's complement format, I just store sign as a separate bool field. So for both negative and positive bitwise ops would work exactly the same (and it's a question what to do with sign - probably best is to perform same bitwise op on sign from both numbers). This behavior is different from that for .NET primitive number types, please keep that in mind.
PS: On lib update - I'm going on vacation soon so I will either do it tomorrow (if will have time) or it will be postponed until mid-March
Best regards,
Andriy Kozachuk
On Thu, Feb 19, 2015 at 2:36 AM, Dustin<EMAIL_ADDRESS>wrote:

Thank you, and no rush, this is a side project that I'm experimenting with Linear registers and Non-Linear registers.  The first only requires XOR, the second requires... well... everything :P
Reply to this email directly or view it on GitHub:
https://github.com/devoyster/IntXLib/issues/2#issuecomment-74979228

Again, no rush, side project :+1:     Thanks :)
You could probably have a highest-bit or most-significant-bit or bit-width parameter, and mask off any bits above that, preventing weird precision problems.   If you are using a separate boolean SIGN flag, in pure theory that should be the highest bit in the result, so yeah it could get a little messy with dealing with the sign's separately between the two operands, especially when they are of different sizes.  Customarily, during size mismatched operations like these, the biggest number is acted upon by the smaller number (or the bigger number becomes the copy for the result, and then "tweaked" by the other operand).  AND operations it's the opposite since no bit of a higher-order than the highest-order bit in the smaller number should be 1 (if that makes sense... in other words, in an AND operation, the smallest number dictates the size of the result).
Since all the bits are uint's internally, just doing a for(int x = blahblah) { intx_result[x] = intx_a[x] ^ intx_b[x] } should work, and the masking can be done at the end (size-mismatch is most critical during AND operations).
As for NOT, I'm not quite sure if that's done in 2's compliment in native .NET, but in theory it should be an XOR operation with all 1's and an ADD operation to accomplish the same bit-wise result.  So implementing XOR would give you NOT in a sense.  You'd have to be mindful of the highest order bits.
As for bitwise AND and OR, the same internal processing principle should apply as for XOR.
I'm not familiar with the internal structure of the IntX class, and how the uints or control functionality are managed, but doing things in this fashion shouldn't be as messy as bit-shifting or carry add/subtract, the bits don't "move" or affect their "neighbors" so I would think it should be straight-forward, but this isn't my library, and I can only speak in a theoretical fashion.  :)
Thanks again for taking the time.  When you do this update, will you be pushing out an updated NuGet or just the source here?
-Dustin

Hi again,
Yes, implementing bitwise ops is quite simple, simpler than any arithmetic ops for sure. So I guess I will just implement it the simplest way for now, it can be adjusted later if needed.
I will publish new version in NuGet, this change will be big enough for that.
Andriy
On Fri, Feb 20, 2015 at 12:41 AM, Dustin<EMAIL_ADDRESS>wrote:

Again, no rush, side project :+1:     Thanks :)
You could probably have a highest-bit or most-significant-bit or bit-width parameter, and mask off any bits above that, preventing weird precision problems.   If you are using a separate boolean SIGN flag, in pure theory that should be the highest bit in the result, so yeah it could get a little messy with dealing with the sign's separately between the two operands, especially when they are of different sizes.  Customarily, during size mismatched operations like these, the biggest number is acted upon by the smaller number (or the bigger number becomes the copy for the result, and then "tweaked" by the other operand).  AND operations it's the opposite since no bit of a higher-order than the highest-order bit in the smaller number should be 1 (if that makes sense... in other words, in an AND operation, the smallest number dictates the size of the result).
Since all the bits are uint's internally, just doing a for(int x = blahblah) { intx_result[x] = intx_a[x] ^ intx_b[x] } should work, and the masking can be done at the end (size-mismatch is most critical during AND operations).
As for NOT, I'm not quite sure if that's done in 2's compliment in native .NET, but in theory it should be an XOR operation with all 1's and an ADD operation to accomplish the same bit-wise result.  So implementing XOR would give you NOT in a sense.  You'd have to be mindful of the highest order bits.
As for bitwise AND and OR, the same internal processing principle should apply as for XOR.
I'm not familiar with the internal structure of the IntX class, and how the uints or control functionality are managed, but doing things in this fashion shouldn't be as messy as bit-shifting or carry add/subtract, the bits don't "move" or affect their "neighbors" so I would think it should be straight-forward, but this isn't my library, and I can only speak in a theoretical fashion.  :)
Thanks again for taking the time.  When you do this update, will you be pushing out an updated NuGet or just the source here?
-Dustin
Reply to this email directly or view it on GitHub:
https://github.com/devoyster/IntXLib/issues/2#issuecomment-75154365

Hi,
I had no time to update lib so it will happen somewhere mid-March.
Andriy
On Fri, Feb 20, 2015 at 12:41 AM, Dustin<EMAIL_ADDRESS>wrote:

Again, no rush, side project :+1:     Thanks :)
You could probably have a highest-bit or most-significant-bit or bit-width parameter, and mask off any bits above that, preventing weird precision problems.   If you are using a separate boolean SIGN flag, in pure theory that should be the highest bit in the result, so yeah it could get a little messy with dealing with the sign's separately between the two operands, especially when they are of different sizes.  Customarily, during size mismatched operations like these, the biggest number is acted upon by the smaller number (or the bigger number becomes the copy for the result, and then "tweaked" by the other operand).  AND operations it's the opposite since no bit of a higher-order than the highest-order bit in the smaller number should be 1 (if that makes sense... in other words, in an AND operation, the smallest number dictates the size of the result).
Since all the bits are uint's internally, just doing a for(int x = blahblah) { intx_result[x] = intx_a[x] ^ intx_b[x] } should work, and the masking can be done at the end (size-mismatch is most critical during AND operations).
As for NOT, I'm not quite sure if that's done in 2's compliment in native .NET, but in theory it should be an XOR operation with all 1's and an ADD operation to accomplish the same bit-wise result.  So implementing XOR would give you NOT in a sense.  You'd have to be mindful of the highest order bits.
As for bitwise AND and OR, the same internal processing principle should apply as for XOR.
I'm not familiar with the internal structure of the IntX class, and how the uints or control functionality are managed, but doing things in this fashion shouldn't be as messy as bit-shifting or carry add/subtract, the bits don't "move" or affect their "neighbors" so I would think it should be straight-forward, but this isn't my library, and I can only speak in a theoretical fashion.  :)
Thanks again for taking the time.  When you do this update, will you be pushing out an updated NuGet or just the source here?
-Dustin
Reply to this email directly or view it on GitHub:
https://github.com/devoyster/IntXLib/issues/2#issuecomment-75154365

No worries. :)   Also, could I request an "IsOdd" or "IsEven" method?  Basically, just a very quick check if the least significant bit is 1 or 0.  This will speed up simple calculations like when to flip bits in a feedback shift register or getting the output of an FSR rather than doing Modulus math on the ENTIRE (potentially large) register just to find out the value of a single bit.   Thanks.

I have added bitwise operations support, as well as IsOdd flag, to IntX lib version 1.0.1
You can already grab it from NuGet

That's awesome :)  Thank you :+1:  I'll run a series of tests in my test harness and if I run into any issues, I'll open them as such here on GitHub.

Hi,
This Big integer class is marvelous!
I have compared IntX with BigInteger for a really big number more than 100digit, and IntX is at least 10 times faster than BigInteger. Anyway I just couldn't find the GreatestCommonDivisor method in IntX.

Hi michealChin,
I have no plans to implement GCD myself. You can implement it youself using Euclid algorithm - should not be too complex - or something more sophisticated.
Please consider creating pull request for IntX if you will do.


If a shard can't be loaded, should we start the other shards?

I'm not sure what the right answer here is, but while adding willow-2024h2c, the new config wasn't valid (wrong inception date, per #26), and so the existing shards also stopped running when Sunlight restarted with the new config, which isn't great. I'm not sure what the right course of action is, but I thought I'd note it as a pain point.

I've been thinking about this (and was bitten by it as well) and I think ultimately it's better not to run, making it very clear there is a problem and hopefully what it is, than to run degraded, which might be easy to miss tailing logs. Also, a restart might fix the issue if it is a transient failure, and I wouldn't like to get into the per-shard scheduling and backoff game. Finally, right now health is binary, which is easy to alert on and to wire into systemd or whatever.
Rollbacks of configs should more or less always work, so that's always the option to restore the other shards.

I think I'm in agreement.  As a different way of thinking about it:  I can always just run more Sunlight instances if I want them to be independent. And since I'm now producing the configurations for my own logs with Terraform, I have a fair amount of confidence the rest of the configs are correct and can always further invest in that path.  Happy to close this.


Update README.md

Fix spelling of upstream author's name

Hey RichardR! I was browsing around and found this almost by accident. I'm so happy you found my Java SmallWorld refactoring a useful baseline!
I plan to study your code a great deal more.
Just one minor nit - corrected the spelling of my name here. :)
Also, I'm working on a port of SmallWorld to JavaScript. It mostly works, but I'm cleaning things up. I hope to have a public repository soon. Thought you might be curious.

Hi Eric,
Very nice to hear from you!
Let me introduce myself quicky:
I'm Richard Ronteltap, working as an IT manager at the University of Amsterdam.
https://www.linkedin.com/in/richard-ronteltap-81746b6/
I'm head of the deparment with most of the developers.
Development is not part of my work anymore, I do it as a hobby.
Feel free to use my direct email<EMAIL_ADDRESS>--
Indeed your SmallWorld implementation was the best version to build new stuff on.
It was a nice learning exerience, as Budd's original code was not very "developer friendly". ;-)
I'm not working om SmallJ anymore.
I found that the language being written in itself with a binary image, slowed down development too much.
E.g.: If you want to change the behaviour of classes, you have to be vary careful not to corrupt the image.
I did correct your name in the README just now, thanks for mentioning it. :)
Ah, I now see you also did a PR for it. Will process that next.
My main development is now (also?) a Smalltalk to JavaScript platform called SmallJS
You can check it out in these places:
https://small-js.org/
https://github.com/Small-JS/SmallJS
SmallJS compiles (transpiles) Smalltalk directy to equivalent JavaScript source code,
so it does not implement a virtual machine like SmallWorld.
This has worked surprisingly well, being able to implement the full ST language
with easy access to all JS features in browsers and in Node.js.
And the performance is magically fine.
The compiler itself is written in TypeScript, so there are never any bootstrapping problems.
There is no traditional ST 'image'. The ST 'library' is compiled to ECMAscript JS modules.
If you check it out, let me know what you think.
And if you would like to contribute, you're very welcome.
Cheers,
Richard
From: Eric Scharff @.>
Sent: Saturday, 18 May 2024 03:46
To: smalljvm/SmallJ @.>
Cc: Subscribed @.***>
Subject: Re: [smalljvm/SmallJ] Update README.md (PR #39)
Hey RichardR! I was browsing around and found this almost by accident.
I'm so happy you found my Java SmallWorld refactoring a useful baseline!
I plan to study your code a great deal more.
Just one minor nit - corrected the spelling of my name here. :)
Also, I'm working on a port of SmallWorld to JavaScript. It mostly works, but I'm cleaning things up.
I hope to have a public repository soon. Thought you might be curious.

Reply to this email directly, view it on GitHubhttps://github.com/smalljvm/SmallJ/pull/39#issuecomment-2118561262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACJ4NVQFBUB2Y4KK4LFMN7DZC2XGVAVCNFSM6AAAAABH5AVUCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGU3DCMRWGI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Update symfony40 example's bugsnag/bugsnag-symfony version

Goal

Running composer install in the symfony40 example returns the following error:
Root composer.json requires bugsnag/bugsnag-symfony dev-symfony-4-fixes, found bugsnag/bugsnag-symfony[dev-fix-lastversion-version, dev-next, dev-master, v1.0.0, ..., v1.13.0] but it does not match the constraint.
The composer.json requires "bugsnag/bugsnag-symfony": "dev-symfony-4-fixes" but this version doesn’t seem to exist, so BugSnag can’t be installed.
Changeset
composer.json:
"bugsnag/bugsnag-symfony": "dev-symfony-4-fixes"
Is now
"bugsnag/bugsnag-symfony": "^1.5.0"
This matches the symfony50 example.
Testing
Was finally able to run composer install.
All test events were successfully reported to the BugSnag dashboard.
Jira
https://smartbear.atlassian.net/browse/SUP-3061

symfony 4.0 past end of life - closing PR as support is not required.


Shada corruptions when writing on VimLeave

Appears the shada-file cannot write during Nvim shutdown because the files nearly always get corrupted and 26 temp-shada files are created over a period of hours/days when Nvim is opened & closed frequently. This does not happen when the :SaveSessionAndQuitNeovim auto-command is used. It creates the session before calling :qa.
Related issues in other plugins seem to suggest this doesn't happen on Linux and might be due to Windows Defender causing file-writes to take longer than anticipated.

Adding Q as an alias-command for SaveSessionAndQuitNeovim and updating keyamps in my Nvim-config and also changing the default plugin behaviour to do nothing on VimLeave appears to make the problem go away.


[Tabular] How does AutoGluon distribute resources when time_limit is set?

I'm training AutoGluon for tabular data with the following settings:
TabularPredictor(label='labels',
                             path=save_path,
                             eval_metric=metric).fit(train_data,
                                                     time_limit=28800,
                                                     verbosity=4,
                                                     hyperparameters={'CAT': {}, 'GBM':{}}

As train_data contains ~200M rows, training LightGBM model already takes ~6 hours while CatBoost is trained in only ~2 hours (much worse results). Hence, the Ensemble is solely based on LightGBM model.
Is there a way to automatically limit the training time for each model (i.e. LightGBM 4hr, CatBoost 4hr)? Now it seems to me that CatBoost needs to wait for LightGBM to finish training to actually starts.

Yes, you can give per-model time-limits, refer to the hyperparameters argument documentation in Tabular.fit, search for ag_args_fit. The parameters are called 'min_time_limit' and 'max_time_limit'
https://auto.gluon.ai/stable/api/autogluon.task.html#autogluon.tabular.TabularPredictor.fit
TabularPredictor(label='labels',
                             path=save_path,
                             eval_metric=metric).fit(train_data,
                                                     verbosity=4,
                                                     hyperparameters={
'CAT': {'ag_args_fit': {'max_time_limit': 14400}},
'GBM': {'ag_args_fit': {'max_time_limit': 14400}},
}

This would give 4 hours of training time to CatBoost and LightGBM (8 hours total). You can also play around with min_time_limit and specifying an overall time_limit budget as you did originally.


Text Regressor using Google AI's BERT

This pull request resolves #594.
The pull request is in progress.
The details of the pull request:
Provide TextRegressor module.

Coverage decreased (-0.09%) to 93.566% when pulling ea38c654e50b39b13bf327c9705b4ec07f98c23c on text_regressor into e9dbf66b005e2ffaabe29bc366bb4e72fa79add8 on master.

The code looks good. Next time please remember to set assignee and request review. Thanks.

I did not request it for review since I needed some clarifications. I did not think you will review and merge it. :-\

The code looks good. Next time please remember to set assignee and request review. Thanks.

I did not request it for review since I needed some clarifications. I did not think you will review and merge it. :-\

Sorry, I forgot that you asked the question in the email. We can discuss your questions later.  : )


Add a device setting to configure what to sync

We need to persist a users's choice about what they want to sync (current options are "previews only" and "everything"). This is a device-based setting, which might be scoped to project (e.g. support different settings for each project). It shouldn't be written to the project settings of the database, which syncs with other devices.
I think this makes sense to implement on the frontend, and add an API method to change this setting.
Choices to make:

Default sync config for a new project instance
a. All new project instances start with "previews only" until configured otherwise.
b. All new project instances start with "everything" until configured otherwise.
c. We add a new option to api.getProject for configuring what to sync
d. Combination of above (option + default)
Method name & signature
a. project.configureSync('previews' | 'everything')
b. project.setArchiver(true | false)
c. project.setBlobDownloadFilter({ variants: Array<'preview' | 'thumbnail' | 'original'> })
d. Other ideas welcome!

It shouldn't be written to the project settings of the database, which syncs with other devices.

this part makes sense to me, but I don't agree with this at the moment:

I think this makes sense to implement on the frontend

It's not immediately clear why this is necessary. My initial thought was that this should be stored this in the backend via a table in the "client" database that isn't the projectSettings table (since data in that one gets synced). Think it would result in fewer implementation issues, as well as UX edge cases around relying on client-side storage.

Default sync config for a new project instance

for this, i would lean towards projects being configured to sync everything by default, and exposing an option to determine the sync setting upon creation.
The usage I'm imagining when creating the project looks something like this:
const manager = new MapeoManager({ ... })

// Case 1: Create a project with the default sync setting, which is to sync everything:
manager.createProject({ ... })

// Case 2: Create a project that explicitly sets the sync setting (option name tbd)
manager.createProject({ ..., syncSetting: ... })

As for updating a project's sync setting, I'm wondering if the method needs to live in the manager instance instead of the project instance. Depending on how storage of this setting works (e.g. in the client database in core), it might be easier to expose this as a manager method that accepts the project id and sync setting. For example, these are the two approaches that are coming to mind:
// Approach 1: Expose a manager instance method (name and interface tbd)
manager.updateProjectSettings(projectId, { syncSetting: ... })

// Approach 2: Expose a project instance method (name and interface tbd)
project.setSyncSetting(...)

I have a slight preference for the manager approach since this is a device-specific setting to begin with, which is usually more of a concern handled by the manager.

Method name & signature

I guess my thoughts on this depend on where the method lives.

If it's in the manager instance, I can imagine it being similarly named to the existing methods that deal with projects e.g. createProject(), getProject(), addProject(). Maybe something like updateProject() would suffice?

If it's in the project instance, the ideal from a API-design perspective would be something that's exposed in the SyncApi so we could do something like project.$sync.updateSettings(...). Not sure if that's actually feasible, since this setting affect other things like the BlobApi and thus may need to live as a direct method on the project instance instead. If that's the case, then something like the proposed project.configureSync() could work fine! Or maybe even something more generic like project.configure({  syncSetting: ... })

Default sync setting? I agree with Andrew: default to syncing everything. Make it easy to change at any time.
What is the method attached to? project.$sync feels like the most obvious spot for an external API; you're dealing with project-level sync settings, after all. I'd also be fine with any of the above options: on MapeoProject or MapeoManager/api.
What is the method signature?
I think you want to be able to specify simple filters like "download everything" or "download nothing", but also more complex queries like "only download photos" or "only download thumbnails".
This is my dream API, which I think (1) best expresses developer intent, and (2) offers the most flexibility:
// Download everything
myProject.$sync.setBlobDownloadFilters(() => true)

// Download nothing
myProject.$sync.setBlobDownloadFilters(() => false)

// Only download audio
myProject.$sync.setBlobDownloadFilters((blob) => blob.type === "audio")

// Download audio, photo previews, and photo thumbnails
myProject.$sync.setBlobDownloadFilters((blob) =>
  blob.type === "audio" ||
  (blob.type === "photo" &&
    (blob.variant === "preview" || blob.variant === "thumbnail"))
)

However, I don't know if this dream is actually possible. Is something like this fast enough? Do we need to persist filters? Does this break for some other reason?

I'm realizing that we'll need to expose a method in the project instance one way or another, so we can dismiss the fake distinction I created in terms of where the update method lives 😅

Thanks all. For terminology, I suggest calling this "blob download filters", or "blob filters" for short.
Persistence: backend or frontend?
We do need to persist blob filters, for when the app is closed down and then re-opened. This state needs to be synced between the front-end and back-end, no matter where we persist this state.
If we persist on the front-end, then we need a method setBlobDownloadFilters(), and possibly a new getProject() option to remove the need to getProject then call setBlobDownloadFilters().
If we persist on the back-end, then we need two methods setBlobDownloadFilters() and getBlobDownloadFilters(). The latter will be needed when displaying the settings screen, in order to display the current filter.
I think persisting in the backend will reduce complexity / logic needed in the front-end, so I tentatively propose we persist in the back-end
Persistence: storage location
We currently have two sqlite tables which are not views on hypercore data: projectKeysTable and localDeviceInfo. projectKeysTable has a projectInfo column, which currently stores the fallback project name (project name normally comes from the synced project settings table, but if this has not yet synced, then projectKeysTable.projectInfo.name is used). We could either add another property to projectInfo or we could add an additional column.
localDeviceInfo currently has a deviceId and deviceInfo column and is designed for storing a single row. I don't see an obvious way of adding more persisted data into there.
We could create a new sqlite table for storing this information.
Alternatively we could start persisting "app config" data separately, using something like conf.
Options:

Add to projectKeys table as additional info on projectInfo column.
Add to projectKeys table as additional column
Create new sqlite table
Separate persistence mechanism

For anything that we use, we should consider handling migrations (e.g. changing of config structure). Given all of this we might want to consider using the front-end for persistence which maybe already handles migrations of config structure?


[Question]: run queries on multiple indices in parallel

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Hello, I have multiple indices, each one containing an article. How can I execute the same query against all the indices simultaneously and collect the response for each article?
Previously, I tried storing all articles as separate nodes in an index and querying in accumulate mode. But I observed some weird behavior there where I felt the entire article was not getting sent in the context due to length issues (would appreciate if someone could throw more light on this - doesn't chucking happen within a node too?)
TIA.

The majority of time is spent waiting for API calls -- async is rather effective, and easy

Hi @logan-markewich thank you. I am getting this error on the responses line, not sure why?
---> responses = asyncio.run(asyncio.gather(*tasks))

File /usr/lib/python3.8/asyncio/tasks.py:823, in gather(loop, return_exceptions, *coros_or_futures)
    [821](https://vscode-remote+ssh-002dremote-002btunnel.vscode-resource.vscode-cdn.net/usr/lib/python3.8/asyncio/tasks.py:821) nfinished = 0
    [822](https://vscode-remote+ssh-002dremote-002btunnel.vscode-resource.vscode-cdn.net/usr/lib/python3.8/asyncio/tasks.py:822) for arg in coros_or_futures:
--> [823](https://vscode-remote+ssh-002dremote-002btunnel.vscode-resource.vscode-cdn.net/usr/lib/python3.8/asyncio/tasks.py:823)     if arg not in arg_to_fut:
    [824](https://vscode-remote+ssh-002dremote-002btunnel.vscode-resource.vscode-cdn.net/usr/lib/python3.8/asyncio/tasks.py:824)         fut = ensure_future(arg, loop=loop)
    [825](https://vscode-remote+ssh-002dremote-002btunnel.vscode-resource.vscode-cdn.net/usr/lib/python3.8/asyncio/tasks.py:825)         if loop is None:

TypeError: unhashable type: 'Response'

Here is my code:
article_indices = []
for article in articles:
    article_index = create_article_index(article)
    article_indices.append(article_index)

import asyncio

def query_index(index):
    query_engine = index.as_query_engine(response_mode="accumulate", qa_template=text_qa_template, use_async=True)
    response = query_engine.query("")
    return response

tasks = [query_index(index) for index in article_indices]

# if your code is running async already
# responses = await asyncio.gather(*tasks)

# or if your code isn't async
responses = asyncio.run(asyncio.gather(*tasks))

@r3shma slight error on my example (and also in your example it seems)
Here's what I changed so that it worked for me
....
async def query_index(index):
    query_engine = index.as_query_engine(response_mode="accumulate", use_async=True)
    response = await query_engine.aquery("Tell me something about llms")
    return response

tasks = [query_index(index) for index in article_indices]

async def main():
    responses = await asyncio.gather(*tasks)
    return responses

responses = asyncio.run(main())

print(responses[0])

the gather has to be in an async function I guess, and the query_index function should be async and also use the aquery() method

Thank you, really appreciate your help!


Check over the install details in README and check they work

People have had a few issues installing the open source design repo to work on the code so it'd be great to get some folks stress testing the installation process and documenting these either in the README file or in a new markdown file possibly called 'Potential Installation problems'
Also open to other suggestions where these installation 'FAQs' could live.
See this issue thread for some installation conversation and problems: https://github.com/opensourcedesign/opensourcedesign.github.io/issues/224

hello, I'd like to work on this isssue if possible. Thanks!

Please do @leonard-vlaicu ! It'd be great to be able to update the readme file and installation details with any extra info and intracacies you find while reviewing the installation process :)

Just faced an issue and resolved it! Thought of adding it here:

Adding an additional line in line 11 of _config.yml resolves this issue
[10] exclude:
[ +]      - vendor
[12]      - scripts

For further information: Refer to this and this


Player Parser Refactor Pt1

Beginning of refactoring player.py. It's not a very impressive refactor, we just pull a big try statement out and stick it in it's own function. This PR is WIP - if the refactor is correct, the function should still be given a more appropriate name, and we should add a doc string as well before merging. We could also continue to add more refactorings in this branch before merging if we'd prefer to not have a ton of PRs; just wanted to start small so its easy to review changes
Let me know what you think! Maybe you can enlighten me on what exactly we're doing here. Seems like it has something to do with when playback hits the end of the loop/file or something of that sort.

That block of code mainly processes things that need to happen before the prompt shows again in midi shell mode as well as the shell itself.  So that involves finishing pending commands and arpeggios, as well as allowing looping.  Maybe I should go through and comment that more and we can figure out the best way to break it up.   Maybe we could break it into 2 functions, process_pending() and show_prompt()?


Portability

This module is to be used in a Python environment at first. Portability is needed since some user candidates want to use it without installation.

This has been solved by releasing the portable file. However, executing the portable exe file is blocked by Windows Defender. This is due to the pyinstaller itself, according to some Web sources, and should be solved in the future.


Update feedback endpoints

Description
This PR updates the endpoints used for voting, enabling, disabling and giving feedback for the rule hits from an Smart Proxy client. Now, it will require the "error key", not only the rule id, because some of the rules have more than 1 valid error key
Type of change

Bug fix (non-breaking change which fixes an issue)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

Testing steps
Regular CI
Checklist

[x] make before_commit passes
[x] updated documentation wherever necessary
[x] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report

Merging #561 (39c8d9b) into master (b2e6803) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #561   +/-   ##
=======================================
  Coverage   53.96%   53.96%
=======================================
  Files          12       12
  Lines        1338     1338
=======================================
  Hits          722      722
  Misses        517      517
  Partials       99       99

Impacted Files
Coverage Δ

server/endpoints.go
100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2e6803...39c8d9b. Read the comment docs.


Scan Page https://sara-sabr.github.io/ITStrategy/2019/11/11/pourquoi-modifier-billets.html for accessibility issues

Scan this page using axe to see if there are any accessibility issues

@Moro-Code this link is broken

This one should work https://sara-sabr.github.io/ITStrategy/2019/11/12/pourquoi-modifier-billets.html

no issues found


Add support for Internet download manager

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.06.23. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.06.23

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.06.23
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description of your issue, suggested solution and other information
Please add support for https://www.internetdownloadmanager.com/index.html as an external download manager.
I DOES support commnad line operations: https://www.internetdownloadmanager.com/support/command_line.html
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.

I too have been waiting for this for a long while. Please implement! Thread's from 2016 with no replies.


Installing single CRD resource without other resources returns error

I have a chart with a single with a crd.yaml in the crds folder and an empty templates directory. Running a  helm upgrade --install produces the below error.
$ helm upgrade --install test-crd test-crd --wait
Release "test-crd" does not exist. Installing it now.
Error: no objects visited

Is this the expected behavior? I would have expected this to succeed. The CRD is installed, but the returned error is misleading.
Output of helm version:
$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

Output of kubectl version:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:24:34Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.7", GitCommit:"4683545293d792934a7a7e12f2cc47d20b2dd01b", GitTreeState:"clean", BuildDate:"2019-06-06T01:39:30Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):  AKS

Yes. This is the same result as #4670: if there are no templates to render (i.e. only chart hooks and CRDs are installed), a helm install has no objects to track, so it considers that as an error condition.

Thanks, closing this issue out.


vue-cli-service not found in Frontend

I've ran docker compose up but it gives me this error in Frontend container:
yarn run v1.22.4

$ vue-cli-service serve

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

/bin/sh: vue-cli-service: not found

error Command failed with exit code 127.

I've tried running yarn install inside frontend folder thinking it may need node-modules, but without success.

Any news on this?


Could not resolve com.datastax.dse:dse-db:6.8.23

Is this a charge bag? Unable to download

Is this a charge bag?
No. That is not the intension. The CLI tool that is failing on you is not yet released and will be vended as an artifact on the release page. In the meantime, I'll take a look what can be done to enable a successful build for all users.


Fix default opera cookie detection on linux, closes #38

added profiles with Default
re-ordered such that it looks firstly for stable versions in snap, system and flatpak installations, then beta (next) versions and finally developer versions
tested locally with python bindings and installed snap package

@mahlzahn
Thanks a lot for contribution!


Update api-management-howto-protect-backend-with-aad.md

changing the value of the claim from "aud" to {backend-api-application-client-id}, making it clearer for the reader which value should be used in the field

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

#label:"aq-pr-triaged"

@wesleyfeitosa - Thanks for submitting this PR! It's a very helpful clarification.
#sign-off


Statistics: Default bounding box

The default bounding box for the Statistics tool should probably enclose the entire domain.  From what I've tested so far, the X and Y axes are slightly trimmed in their minimum and maximum extents, and the Z axis maximum is substantially trimmed.
To reproduce:

Open Vapor with KatrinaMaster.nc
Open the Statistics tool
Add variable P.  The Geometry widget's defaults will not enclose the entire domain.

Hmm, Statistics doesn't really command GeometryWidgets where to place the sliders; it responds to whatever GeometryWidgets reports back.
Maybe @sgpearse can provide some hints on how to make them work better?

This bug is still present.  I'd like to bump it to medium priority.  I think the extents of our Statistics tool should default to the maximum extents, like what we get back from DataStatus::GetActiveExtents().  I believe this is the same behavior exhibited by our renderers.

The issue seems to pertain to 3D variables.  Since we're not listing them as options for the Statistics tool anymore, this problem cannot be encountered currently.


Conrod example broken on macOS

macOS is frustrating. If an application wants to have a gui, that gui has to be on the main thread, as described when trying to run the conrod example.
▲ CXXFLAGS+=-stdlib=libc++ cargo run --release --example conrod
    Finished release [optimized] target(s) in 0.59s
     Running `target/release/examples/conrod`
thread '<unnamed>' panicked at 'Windows can only be created on the main thread on macOS', /Volumes/data/tmp/cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.16.2/src/platform/macos/window.rs:595:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I am not decent enough at threading to refactor the example to have winit on the main thread with the rest of the application in a spawned thread, but that would fix it on macOS. Maybe conrod has examples but I'm not sure.

The joy of writing portable software. Really appreciate you running the examples and reporting back!


Formalize code structure vs WGSL implementation

Upgrading to bevy 0.10 demonstrated the need for some kind of formal mapping between WGSL and Rust implementations, for the sake of easily patching in changes via diff as they're made in upstream.
However, this is somewhat at odds with Rust organization idioms. Need to see if anything can be done, perhaps by splitting out impl blocks in cases where free functions have been made intrinsic over a related type.

@Shfty You might be interested in my draft PR to naga:
https://github.com/gfx-rs/wgpu/pull/5175/


crashes on every attempt

Hi Paul
Again, thank you for all your effort.
Sorry, I am not a programmer and cannot help you much.
At moment the latest version crashes on every attempt.
It does the login but probably graph drawing causes the crash.
And yes, we have comma as decimal separator, not dot. So a number looks like 5,43

CareLinkErrorReport.zip

@Fishbaits This is the text file you sent running on my system and everything looks perfect with commas where they belong and 24-hour time format

There is an update here to prevent the overflow, if it doesn't work, I have one more thing to try then without running a debugger on your system when it crashes, I have no way to fix further.
CareLink<IP_ADDRESS>x64.zip

Still crashes.
Exception: Input string was not in a correct format.

CareLinkErrorReport(en-US)3.txt

It's interesting that the error report is en-US but all the data is et-EE your local format.

This version has a speciic fix for the above error even though is should not happen
CareLink<IP_ADDRESS>x64.zip

Still throws exception...

CareLinkErrorReport(en-US)5.txt

What language is you Windows running in and your pump? Would you like to try a remote debug session at a time that works for you. We would install a free copy of Visual Studio and connect with Chrome remote desktop.

@Fishbaits your last report actually shows a different error, and I found a few more places I was parsing wrong. Please try this one.
CareLink<IP_ADDRESS>x64.zip
.

paul1956, there is a clear change in error messages now but it still crashed.

CL.zip
I am running Windows in Estonian language but I also tried it on a pc with Win10 64bit Pro Eng and got the same result.

@Fishbaits thanks for you supper getting this fixed. This version has some more error reporting and some fixes. Please try.
CareLink<IP_ADDRESS>x64.zip

There is some visible progress but still an exception appered.

CareLinkErrorReport(en-US)7.txt

@Fishbaits This will probably still crash but should produce a better report.
CareLink<IP_ADDRESS>x64.zip
t

Yes, it crashed.

CL.zip

Thanks for all the help. That helped a lot, I never would have found the issue. It may not be the only one. Please try this.
CareLink<IP_ADDRESS>x64a.zip
.

And we have a winner!
It seems to work all properly now, no exceptions or anything.
Graph is displayed, all seems ok. Great work!!

Thanks for all your help.

I am going to close


Error

The library is still being worked on and literally throws a NotSupportedException if a platform is not supported (yet) so this is expected at the moment.


Tag filtering and search input filtering performance concern

Would it work if there is a lot of data?
export const displaySnippetsStore = derived(
  [localSnippetStore, globalTagsStore, globalSearchStore],
  ([localSnippets, globalTags, globalSearch]) => {
    globalSearch = globalSearch.toLowerCase()
    const filteredSnippets = localSnippets.filter(
      snippet => {
        const snippetTags = new Set(snippet.tags)
        const searchingFound =
          snippet.name.toLowerCase().includes(globalSearch) ||
          snippet.text.toLowerCase().includes(globalSearch)
        // make sure that the snippet's tags include every global tag
        const taggingFound = Array
          .from(globalTags.keys())
          .every(globalTag => snippetTags.has(globalTag))
        return searchingFound && taggingFound
      }
    )
    return filteredSnippets
  }
)

Should not be a problem after #26.


docs: change content of toolbar-button-click-event

PR
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our Commit Message Guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
https://www.opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-event#event-toolbar-button-click-event

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
update grid-event.json

@all-contributors please add @KevinAndrewDong for code


New error 0xa367da00

Coverage remained the same at 88.849% when pulling 9c8965b7263799296c8de2af260e66da07aa7b58 on mirceaulinic:NEW-ERROR-0xa367da00 into d51cdd9fad5cc8f9580e95c0bc58cb387f2ca33a on fooelisa:master.


IE9 troubles

I'm using latest version on pixi.js 3.0.7 and I'm having random stalls on IE9.
Same code works fine on IE10. There are no error events fired.
The Readme here says IE9 is a TODO, but pixi guys says it's ok.
Is this a known issue?

I am the pixi guy :) IE9 should work fine, the README is out of date. If you are having a problem, show me a running example of the error.

I'll try to get a sample of the error. Unfortunately this bug only shows up in a large project with lots of assets that are confidential, so its going to be kind of difficult for now. Actually, the problem didn't show when using few assets in the early stages of the project, so maybe this bug is related to the size/quantity of assets loaded. I tested regressing to latest pixi 2 version and the assets load fine so this is a v3 issue only.

I'll try to get a sample of the error. Unfortunately this bug only shows up in a large project with lots of assets that are confidential, so its going to be kind of difficult for now. Actually, the problem didn't show when using few assets in the early stages of the project, so maybe this bug is related to the size/quantity of assets loaded. I tested regressing to latest pixi 2 version and the assets load fine so this is a v3 issue only.

Closing this since I never got a reproduction case.


httpreq endpoint url

I tried to use dns verification with httpreq modul. My setup forces me to have my endpoint HTTPREQ_ENDPOINT set to: https://example.com/api/acme/, but currently it will only request https://example.com/present instead of https://example.com/api/acme/present.
https://github.com/xenolf/lego/blob/master/providers/dns/httpreq/httpreq.go#L161

Thanks for fixing.

What would be the correct HTTPREQ_ENDPOINT format now?
I have set it to https://example.com/api/acme/ and this throws the following error:
level=error msg="Unable to obtain ACME certificate for domains "sub.domain.tld" detected thanks to rule "Host:sub.domain.tld" : cannot get ACME client httpreq: parse "https://example.com/api/acme/": first path segment in URL cannot contain colon"
Would be nice if you could add a working example to the README and maybe fix that error.


Bluetooth: Host: Move GAP service to new file

Wouldn't subsys/bluetooth/services/gap.c make more sense as the location?

Wouldn't subsys/bluetooth/services/gap.c make more sense as the location?

To be clear, I'm not 100% convinced of this since GAP is a "core" service, but we do have a "services" directory for GATT services, so...

Wouldn't subsys/bluetooth/services/gap.c make more sense as the location?

My intention is that gap_svc.c is the GATT "frontend" for GAP. This file will not be compiled in when the GATT server is not.
I want to move the GAP "values" "backend" into gap.c later. What I would put into gap.c is at least bt_dev.name, bt_dev.appearance, bt_get_name, bt_set_name, bt_get_appearance, bt_set_appearance`. These are used by more than just the GAP service, for example, advertising.

Wouldn't subsys/bluetooth/services/gap.c make more sense as the location?

I am positive to this. True, the service is mandatory on all GATT servers, but that can just be enforced by kconfig / build system.

Fixed failing compliance.


[NFV] Move root hint selector to DS

As that variable is tightly coupled to cifmw_baremetal_hosts we move cifmw_ci_gen_kustomize_values_ctlplane_interface there as the root_device_hint value depends on that selector.
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[x] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[x] Content of the docs/source is reflecting the changes

/approve

/lgtm


Cannot reproduce "monot5-base-msmarco-10k" via pytorch script

Hello!
I am trying to reproduce quality of monoT5 on BEIR benchmark from the recent article. But after running script finetune_monot5.py on one epoch, as stated in the description of the checkpoint "monot5-base-msmarco-10k", my results are quite lower.
For example, on NQ, when I use my checkpoint the result is 0.5596 ndcg@10. But when I use the original checkpoint  - 0.5676 ndcg@10. On NFCorpus:  0.3604 ndcg@10 with my checkpoint,  0.3778 ndcg@10 with the original.
So, is one epoch of training monoT5 with pytorch script similar to one epoch of training with TF? And with what hyperparameters can I reproduce performance of "monot5-base-msmarco-10k"?

Hi @polgrisha, we haven't tested that pytorch script extensively, especially in zero-shot, but it seems that some hyperparameters were wrong.
I opened a PR with the ones we used to train the model on TPUs + TF:
https://github.com/castorini/pygaggle/pull/308
Could you please give it a try?

I was looking at my logs and I was never able to reproduce the results on pytorch+GPU using the same hyperparameters used to finetune on TF+TPUs. The best ones I found were the ones already in the repo.
However, in another project, I found that this configuration gives good results to finetune T5 on PT+GPUs:
--train_batch_size=4
--accumulate_grad_batches=32
--optimizer=AdamW
--lr=3e-4 (or 3e-5)
--weight_decay=5e-5
Could you please give it a try?

Hi @polgrisha, thanks for running this experiment. It seems that you go pretty close to the original training in mesh-tensorflow+TPUs.
I expected those small differences in the individual datasets from BEIR, especially since you are using a different optimizer.
However, to be really sure, I would run on a few more datasets and compare the average against the results reported in the "No parameter left behind" paper.

Sorry about the late reply. The correct configuration should be batches of 128 examples, so 10k steps means 6.4M lines of the triples.train.small.tsv file.


Add Anhui Agriculture University

official site:http://eng.ahau.edu.cn/
IT related course: http://eng.ahau.edu.cn/xzyj/yxbm/index.htm

@richardyou Pull request merged. Thank you!


(enhancement) Simplify schedule download process

Instead of downloading and parsing through a pdf file to obtain the person's schedule, four11 also provides an XML document with the person's schedule (obtained through their username, not the student id, makes that part simpler too), and the times that the classes occur. I believe this file is actually what is used to make the pretty pdf schedules since it includes specific times for the periods on each day. Instead of trying to work backwards from the pdf, you could take the XML document and use that directly (or convert to a JSON format or whatever you prefer and use that).
Don't get me wrong, you have some very nice pdf download and data extraction scripts, but it can be much simpler.
Just a thought.

The tech lead at EPS has also proposed me doing this, instead of attempting to download over two thousand schedules. However, the XML docs (at least the ones that I have access too) do not provide the names of who teaches each of the student's classes. This makes all of the EPSNET XML docs unusable.

Ah, I see. You're right, they don't have any teacher info.


add code splitter

Description
Add code splitter to text splitters. Thanks to @kevinlu1248 from Sweep AI for the idea and push.
Type of Change
Please delete options that are not relevant.

[X ] New feature (non-breaking change which adds functionality)
[X ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[X ] Added new unit/integration tests

Suggested Checklist:

[X ] I have performed a self-review of my own code
[X ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X ] My changes generate no new warnings
[X ] I have added tests that prove my fix is effective or that my feature works
[X ] New and existing unit tests pass locally with my changes

@kevinlu1248 can you take a look at the autolanguage logic? I don't think it's 100% necessary, although it's a cool idea if it works.

Taking a look. I'll play with it a bit later tonight.

Talked to Yi, and the plan is to ship this for now and add auto-language detection later, possibly using https://github.com/yoeo/guesslang. I also added some tests for some additional common languages.
Technical detail: It seems tree-sitter-languages' version of typescript can parse TSX. At Sweep, we just use the TSX parser directly, not sure what tree-sitter-languages is using under the hood.

Makes sense, deep learning based language detector is overkill

Could it be that the chunk_lines parameter is not used at all? It only chunks it based on the max_chars?
Seems not to be used in the Code ...


I cannot attach pictures into the popup window

Hello,
Your tool is really nice.
I would like to ask or report (I am not good enough so far with JS), that I have problems with input pictures into the popup window likewise in example below:
http://jlord.us/sheetsee.js/demos/demo-map.html
So regarding to your code I tried:
    var popuphtml = "Entrance " + "" + feature.properties.PlaceName + "
" + feature.properties.PhotoUrl + "

Notes: " + feature.properties.Venue + "

";
    layer.bindPopup(popuphtml);
    layer.setIcon(entranceIcon);
  }
}

as well as sth like this:
          var popuphtml = "Entrance " + "" + feature.properties.PlaceName + "
" + feature.properties.PhotoUrl + "

Notes: " + feature.properties.Venue + "

";

but withoput the result.
In the place of image I see undefinied. Once I click on  the link I have an info like this:
Not Found
The requested URL /t20/undefined was not found on this server.
Apache/2.4.39 (Win64) PHP/5.6.40 Server at localhost Port 80
Is there a way to input image as a link included in Google Sheets column?

Let's try the most basic thing first, get something working, and then add more to it.
If you'd like to show an image, and not a link to an image, then an img src= tag would be used instead of  a href=
Try this first and if you're unable to get it to work then there's no point in trying to do more advanced things.
var popuphtml = "";
When you can get this working, then move onto making it work using an image variable that's set in geojson.php
For instance, it will be necessary to define the image variable, feature.properties.PhotoUrl, in the geojson.php, around line #37
      'properties' => array(
        'title' => $csvRow[2],
        'notes' => $csvRow[3],
        'property3' => $csvRow[4],
        'PhotoUrl' => 'https://en.wikipedia.org/static/images/project-logos/enwiki.png'
      )

These "properties" will be case Sensitive, so PhotoUrl is not the same as photoUrl.
Now, try this in the index.html.
var popuphtml = "";
Additionally, I don't think the {{{PhotoUrl}}} idea is going to work because that is a syntax for a template file and this is a plain HTML file with no template functionality.

Works, thanks


Add "locked" items which won't be automatically pulled into horadric cube

Duplicate of https://github.com/Praytic/youtd2/issues/242


Pretrain weights and experiment set on resnet20,32

Thank you for sharing your work, the interaction of information between different dimensions is very interesting and this is very helpful for me.
When I tried to reproduce Triplet attention on resnet20,32, I had a little problem, the accuracy of my baseline model as well as the model after applying Triplet attention were lower than the results mentioned in your article. So can you share your pre-training weights and experimental setup?
Thanks a lot!

Hello. All our pretrained models are available here. Regarding lower performance, can you share the exact config that you used, whats the dataset and how much lower performance you are getting?

Hello. Thank you for your prompt reply

The dataset which I used is Cifar-10.
For data augmentation, each image is zero-padded with 4 pixels on each side, and a 32 × 32 patch is randomly cropped from the padded image or its horizontal flip. The input images are then normalised using RGB mean values and standard deviations.
For optimization, we use a synchronous SGD optimizer with weight decay of 5e-4, momentum of 0.9, and mini-batch size of 128, and set the initial learning rate to 0.1 and divide it by 5 at the 60th, 120th, and 160th epochs, to train all models from scratch for 200 epochs.
For the baseline I used the standard resnet20 and resnet32 (with a convolutional kernel size of 3). For models where triplet attention is introduced, I added triplet attention to the back of each BasicBlock (set reduction_ratio=16).
The results of my training are baseline model accuracy: 91.25% (resnet20) and 92.49% (resnet32). After adding triplet attention, accuracy: 91.68%(resnet20) and 92.72%(resnet32). There is still a small difference compared to your results in the paper (Table 5 for 93.12% (resnet32) and Supplementary Experiments Table 1 for 92.66% (resnet20))

I guess the problem could be with the reduction_ratio, because of the difference in the number of channels between resnet20 and ResNet18.
Thanks again for your help!

Yes, I believe correct tuning of reduction_ratio is required. Please feel free to reopen this issue if it is still not resolved.


Question about A, B C and D matrices ordering in memory?

Hello,
I am trying to fix some bugs in my code and want to make sure one of my assumptions is correct.
I think that the A, B, C and D matrices are ordered in memory column-wise rather than row-wise? I.e lets say you have a 4x4 A matrix
The elements would be ordered like
0  4   9    13
1  5   10  14
2  6   11  15
3  7   12  16
Is this correct?

The A, B, C, D matrices, computed here as (DyDq, DyDv, DyDa), DyDu, (Dsdq, DsDv, DsDa), DsDu are ordered column-wise (or transposed).

As a side note, there is a currently unexposed function "mjd_stepFD" which does use column-major, but then everything is transposed, in case you want column-major for some reason (though transpose is very cheap.)


Project folder with hidden components

TypeScript Version:  2.0.0
Code
On Linux if one of the components of the project folder pathname begins with a dot, tsc ignores all files in the project:
.a/projectDir/foo.ts
.a/projectDir/tsconfig.json
{
    "compilerOptions": {
        "outDir": "dist"
    }
}

Expected behavior:
.a/projectDir/dist/foo.js
Actual behavior:
No dist

This is the intended design to avoid automatically loading hidden files and folders. if you need them explicitly you can use "files".
"include" should also work with something like ".*", but does not seem to be the case.  @riknoll can you take a look at this case?

Should be fixed now that #9528 is merged


All the best testdata

https://github.com/googlefonts/fontmake-rs/pull/78#issuecomment-1376156936 asks if there is a better way to manage test data:

So I wonder if it's worth being more principled about test data? For fea-rs, I have a separate repo that contains all my test data, which I include as a submodule, although I appreciate this is not always a popular strategy.
My main thinking is that we are going to want a lot of overlapping test data used in various points in the pipeline. Does it make sense to reuse that data somewhat?

I dislike submodules, but not so much as to rule them out entirely.

Fairly happy with our testdata, I don't see obvious work to do here so closing.


Acceptance Tests...again

I see that this has popped up here and there in previous issue but I am completely lost on how to verify success or failure on my tests.
Some examples seem to indicate you turn on alerts during testing but that slows things down:
// my-acceptence-test.js
import Notify from 'ember-notify';
Notify.testing = true;
I just want to detect if a notify.success() or notify.alert() is called from within the test.  I've seen suggestions like "stub out notify.success" and to spy this.notify.alert() but I have no idea how to do that within a test.
Could someone give me a pointing to detect when success() or alert() is called from within an Acceptance test?

I'm struggling with this in 2018 too. I love this library, but this is backbreaking.

I'm able to acceptance test Ember Notify when it's configured to never close the alert.
I have a setting in my application controller that makes the alert never close in the test environment, but works as normal in my production/development environment.
app/templates/application.hbs
{{outlet}}
{{ember-notify closeAfter=closeAfter}}

I then configure the library to not close in my application controller.
app/controllers/application.js
import Controller from '@ember/controller';
import config from '../config/environment';
import { computed } from '@ember/object';

export default Controller.extend({
  closeAfter: computed(function() {
    return config.environment == 'test' ? null : 5000;
  }),
});

And my acceptance tests are working fine!

Is there a better alternative?

Cc @rwjblue is there a standard or recommended way?

As a user of Bulma, and specifically, bulma-toast, and since I'm thinking about using this library instead of bulma-toast, and am also struggling with acceptance testing toasts... I'm very interested in the solution to this :)

I just ran into the same issue. Prior to Ember 3 we had been stubbing the notify service and while I was refactoring the acceptance tests I was seeing this.get('source').setTarget is not a function when registering the stub in the beforeEach hook.
The ember-notify component lives in our application template and we already had a computed prop setup to read the ENV from the config so conditionally rendering the ember-notify component fixed the issue.
{{#unless isTesting}}
  {{ember-notify closeAfter=3500}}
{{/unless}}

And the stub looks like...
export default Service.extend({
  lastMessage: null,

  alert(msg) {
    this.set('lastMessage', msg);
    console.log('Notify: '+msg);
  },
  info(msg) {
    this.set('lastMessage', msg);
    console.log('Notify: '+msg);
  },
  success(msg) {
    this.set('lastMessage', msg);
    console.log('Notify: '+msg);
  },
  warning(msg) {
    this.set('lastMessage', msg);
    console.log('Notify: '+msg);
  }
});

Register the stub...
import notifyStub from '/path-to-stub';
module('Application test name', function(hooks) {
  setupApplicationTest(hooks);
  hooks.beforeEach(function() {
    this.owner.register('service:notify', notifyStub);
  });
});

After that I can see the logs from the stub firing again and ember-notify is no longer throwing any errors.


bot interactions with slime

Versions1.17.1

Minecraft: ...java fabric loader
QuickCarpet: ...3.3.0

Describe the bug
A clear and concise description of what the bug is.
when pushing a bot with a 2-high slime it get stuck in the
slime and start suffocating when piston retract it retract the bot with it
To Reproduce
Steps to reproduce the behavior:

spawn bot
put 2 slime blocks next to it
use piston to push and pull

Expected behavior
A clear and concise description of what you expected to happen.
the bot should be pushed away with some velocity
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Wait does the bot not move? Is it in creative mode? Is creative no clip enabled?

of course it's in survival it take damage in the pic

Wait does the bot not move? Is it in creative mode? Is creative no clip enabled?

bots just doesn't get pushed by slime

Might be related to #108


FlowRouter.path params and queryParams as strings?

FlowRouter.path(pathDef, params, queryParams);

For params and queryParams, are we able to pass strings to them, or do they have to be objects? If they have to objects, are you able to give the ability to pass strings?
For example:
// For this route definition
FlowRouter.route('/path/:id1/:id2', { name: 'myRouteName', ...  Simply concat them. :)
We mostly don't accept different types of arguments to path and most of our apis. It makes APIs hard to use and maintain.

I forgot why I asked this :laughing:. I will get back to you.


Changed so that comments can be fetched with using channel IDs

Very cool! But there are some conflicts...


Fix tests after https://github.com/flare-foundation/flare/pull/23

https://github.com/flare-foundation/flare/pull/23 introduced some tests being broken and also there were some tests which were getting skipped. This PR aims to fix all the test:

[x] windower
[x] platformvm
[x] proposervm
[x] network
[x] remaining windower
[x] errPChainHeightNotMonotonic
[x] Mutate() was deleted but is used in tests. Figure out what to do for this

@emailtovamos Why is this PR a draft at the moment?

@Ullaakut I just changed it to ready for review. There are commented out code which I will remove later but the rest should be reviewable.

@emailtovamos Yeah it seems like some commits from other PRs got mixed up as well. So this PR should be closed in favor of #31 right? If you are confident with the code on #31 you could also just have git pushed with the force argument to replace the code on this PR, which would have avoided having two PRs for it.

I'm closing it, feel free to reopen if I misunderstood what you meant.


Pagination is not working with tortoise-orm version 0.20.0

Hi!
I'm trying to use pagination with the latest version of tortoise-orm (0.20.0) according to the official integration tortoise-orm example.
But it's not working and getting pydantic model serialization error.
Later tried the following and it's working with the default paginate method like below.
from typing import Any

from fastapi import Depends
from fastapi_pagination import Params, paginate, Page

from apps.contacts.models import Country
from apps.utils.cbv.routers import InferringRouter
from apps.utils.cbv.views import cbv

router = InferringRouter()

@cbv(router)
class CountryViews:
    @router.get("/countries", response_model=Page[Any], tags=["address"])
    async def country_list(self, params: Params = Depends()) -> Any:
        return paginate(await Country.all().values(), params=params)

I'm using cbv and InferringRouter  from FastAPI utils.
As they don't have support for Pydantic version 2.0 yet, so I've copied two modules in my local utility packages so that I can use them with Pydantic version 2.0.
Can you please tell me what  I can do to use the tortoise-orm integration version of fastapi-pagination instead of  default paginate?
@uriyyo

@xalien10 I fixed example, it should work now.

@uriyyo
I'm sorry but actually it doesn't work. It's having the same problem. May be you can take a look that the following error message to shed some light on the darkness

@xalien10 That because Country is not valid pydantic type:
from typing import Any

from fastapi import Depends
from fastapi_pagination import Params, Page
from fastapi_pagination.ext.tortoise import paginate
from tortoise.contrib.pydantic import pydantic_model_creator

from apps.contacts.models import Country
from apps.utils.cbv.routers import InferringRouter
from apps.utils.cbv.views import cbv

router = InferringRouter()

CountrySchema = pydantic_model_creator(Country)

@cbv(router)
class CountryViews:
    @router.get("/countries", response_model=Page[CountrySchema], tags=["address"])
    async def country_list(self, params: Params = Depends()) -> Any:
        return paginate(Country, params=params)

Thank you for pointing it out. 🙂  Now it's working. There was another thing that was also responsible for this serialization error is the reverse relation to other model.
My pydantic schema of the Tortoise database Model is like below:
from tortoise.contrib.pydantic.creator import pydantic_queryset_creator, pydantic_model_creator

from apps.contacts.models import Country

Country_Pydantic = pydantic_model_creator(Country, name="Country", exclude_readonly=True)


Import from URL does not work

Running docker run --network=host node:20-alpine npx @haxtheweb/haxcms-nodejs I then choose import and then choose HTML, it asks for a URL and I give it https://postpartumsidekick.ca/ it pops up a little progress bar in bottom right for a second and then it goes away. No error, no progress, just goes away.
Dev console says:
Uncaught (in promise) TypeError: n.data.filename is undefined
    importFromURL http://localhost:3000/build/es6/node_modules/@haxtheweb/app-hax/lib/v1/app-hax-steps.js:1
    handleEvent http://localhost:3000/build/es6/node_modules/lit-html/lit-html.js:6
app-hax-steps.js:1:5864

From localhost it may believe it's running locally and expect vercel endpoints for those integrations. #2103

So right now this kind of import is not expected to work from local?

npx command should work locally though HTML import doesn't unfortunately work the way thought of in said request


project name space

is seems this project is mature enough to warrant own "proper" name space
please consider a move to a separate git organisation, i.e. scalajs-sri
https://github.com/scalajs-sri
as well as changing maven artifacts group name
thank you

@Andrei-Pozolotin  thanks for bringing it up, definitely sri will be moved to a separate organization, but before that i want to finish the following ..

update web-router
more/better documentation
update mobile-router to use NavigationExperimental instead of Navigator

great. please accept my invitation to take ownership of https://github.com/orgs/scalajs-sri/ or let me delete that organization if you do not like the name

let me delete that organization if you do not like the name

yeah we should come up with a better name(SEO friendly and relevant to tech) for this project :)

removed

@Andrei-Pozolotin  https://github.com/chandu0101/sri/issues/55


Fix the space before player's rating in team profile page

Example of the wrong formatting, https://www.lichess4545.com/team4545/season/27/team/35/
Board 1: | My_goal_2400 ( 2202)
There's a space before 2202.

Looks good to me.


Promise support

Currently this easily works with Bluebird.promisifyAll(require('spotify-node-applescript')), but I think it would be fantastic if the library supported promises out of the box.

Seconded. I'm currently wrapping all callback functions in my code to give promise functionality!

I have created a fork which supports Promises. You can find it here.
Unless you guys think otherwise, I don't think I will create a pull request for it because the changes remove callback functions, making it not backwards compatible.

@matthewnitschke: awesome, can you add it to npm so others can use it easily? can be under spotify-node-applescript-promise name.

@lucasbento just added it. Can be downloaded via
npm install spotify-node-applescript-promise


Get PDF Page rotation

Can we extract the angle of rotation of PDF Page using pdfminer?
I know we can rotate, but didn't get any code as to how we can detect the angle of orientation.

You can get the rotation by calling the .rotate attribute of PDFPage instance.
for page in PDFPage.create_pages(doc):
    interpreter.process_page(page)
    r = page.rotate


Add more pages/layout in boilerplate

At least 2/3 pages with on that handle collections.

Eg: disqus example https://github.com/putaindecode/putaindecode.io/blob/797c87bad4491a7bf2277cabd55eeb23745b6315/web_modules/Layout/Post/index.js#L55-L59
and/or https://github.com/thangngoc89/blog/commit/d774f1553079599f007329e765a406e620e49933#diff-390581ab82ee594a7e11637f986763b6

Some content with lorem ipsum right ?

React Waypoint is a better solution for React than the vanila Waypoint (I have to use it for other reason)

Closing in favor of #428


Add config for gitpod

Description of changes

I have added config for gitpod. People will now have the opportunity to view PR's in a gitpod environment which is automatically setup and configured to run Onlinweb4.
Code Checklist

[ ] I have added tests
[ ] I have provided documentation

Visual changes

Before

After

Works like a charm! LGTM