Disable arrow keys in insert mode to run through selection in favor of  and

Since I use nvim for latex use, I move around text in insert mode.
However, as soon as I pass through a keyword, the pop up triggers and I run through the options instead of moving up or downwards in the text.
I could remap the tab key for moving through the choices but could not figure out how to disable the arrow keys for the completion (however I want to keep  for the sequential completion of markers in neosnippet)
Here is what I have so far (key mapping was always kind of esoteric for me in vim)
inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
imap <c-j>     <Plug>(neosnippet_expand_or_jump)
vmap <c-j>     <Plug>(neosnippet_expand_or_jump)
inoremap <silent> <c-u> <c-r>=cm#sources#neosnippet#trigger_or_popup("\<Plug>(neosnippet_expand_or_jump)")<cr>
vmap <c-u>     <Plug>(neosnippet_expand_target)
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

Help would be very appreciated, since the completion works otherwise like a charm :).

Agreed! Would be cool if somebody shared their configuration to disable arrow keys.

imap <expr>  <down> pumvisible() ? "\<c-e>\<down>" : "\<down>"


Add Integration test + benchmark for a program with all supported builtins + Fixes

What was changed in this PR:

Add the following integration tests:
bitwise + output
bitwise recursion (bitwise + output + range_check)
integration (bitwise + output + range_check + pedersen)
Swap BTreeMap for Vec for builtin_runners
Fix inconsistent auto-deduction error being thrown when trying to verify None values (memory gaps)
Add integration program to benchmarks
Description of the pull request changes and motivation.

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report

Merging #156 (c3ccaab) into main (d25f5c7) will increase coverage by 0.01%.
The diff coverage is 98.50%.

:exclamation: Current head c3ccaab differs from pull request most recent head cee3239. Consider uploading reports for the commit cee3239 to get more accurate results

@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
+ Coverage   96.73%   96.75%   +0.01%
==========================================
  Files          24       24
  Lines        4477     4495      +18
==========================================
+ Hits         4331     4349      +18
  Misses        146      146

Impacted Files
Coverage Δ

src/vm/runners/cairo_runner.rs
99.43% <97.22%> (+<0.01%)
:arrow_up:

src/vm/vm_core.rs
98.87% <100.00%> (ø)

tests/cairo_run_test.rs
100.00% <100.00%> (ø)

src/types/relocatable.rs
98.26% <0.00%> (ø)

src/vm/context/run_context.rs
93.84% <0.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 d25f5c7...cee3239. Read the comment docs.


Pass HttpClient to AuthressClient

It would be great to have the option to pass or configure HttpClient to AuthressClient, so there's a way to configure some retry policy etc.

Hey @pwiejak, I assume #5 would solve your issue, this way you could customize the base message handler and perform different actions in a custom message handler. Since HttpClient is pretty empty, it seemed way more configurable this way. Let me know if that wouldn't work for your use case.

Hi @wparad
Thanks for quick response, I think that should also work.

Okay, let's go with this then, and if it isn't sufficient we can try adding something else. I would be curious in the resulting configuration, it could be a good example to add to the repo.

@wparad it works like a charm :)
I'm using following handler to add retry policy, it's injected to IHttpClientHandlerFactory implementation that simply returns it in the Create method:
`public class RetryHandler : HttpClientHandler
{
private readonly AsyncRetryPolicy _policy;
    public RetryHandler()
    {
        _policy = Policy.Handle<HttpRequestException>()
            .WaitAndRetryAsync(5, attempt => TimeSpan.FromMilliseconds(new Random().Next(300, 1000)));
    }

    protected async override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        var policyResult = await _policy.ExecuteAndCaptureAsync(() => InternalSendAsync(request, cancellationToken));

        if(policyResult.Outcome == OutcomeType.Failure)
        {
            throw policyResult.FinalException;
        }

        return policyResult.Result;
    }

    private async Task<HttpResponseMessage> InternalSendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        var response = await base.SendAsync(request, cancellationToken);

        return (int)response.StatusCode != StatusCodes.Status429TooManyRequests
            ? response
            : throw new HttpRequestException(StatusCodes.Status429TooManyRequests.ToString());
    }
}`

For the policy I'm using Polly.

Awesome, thanks for sharing.


Translation does not work in Firfox v45.0.1

Hi Nathan,
I have found that although the advanced-seed project is displayed in Firefox v45.0.1, the translation does not work.

Thanks @st-clair-clarke good find! Just pushed the fix :+1:


Authorization: Migration from RBAC (Role based) to ABAC (Attribute based)

Handle the following end-points:

[x] CompanyService
[x] SiteService
[x] SiteAreaService
[ ] UserService // wip caro
[x] TagService
[x] CarService
[ ] ChargingStationService
[ ] TransactionService
[x] AssetService
[x] RegistrationTokenService
[x] BillingService
[ ] ConnectionService
[ ] NotificationService
[ ] OCPIEndpointService
[ ] OICPEndpointService
[ ] SettingService
[ ] StatisticService
[ ] LoggingService

@Ramzay Double check if this issue is necessary and eventually update or close it.
Thanks!

@Ramzay
Do not forget to use '[hidden]="!tableColumnDef.visible"' in table.table.component.html:


Webhooks docs release

Q
A

content fix?
yes

New article?
yes

What's in this Pull Request?
SharePoint webhook documentation along with some fixes to SPFx docs.

Hi @chakkaradeep, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Chakkaradeep (Chaks) Chinnakonda Chandran). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


fix: handle deps requiring flagship

What this PR does: Handles the scenario where a dep of a service requires flagship. We shouldn't fail at that level.

I'd probably prefer running a script over repos that fixes dependencies and submits PRs, but this does the job too.

I'd probably prefer running a script over repos that fixes dependencies and submits PRs, but this does the job too.

Eh, we're on a tight schedule as is, it's documented in the breaking changes notes 😄


[BUG] /play command unable to find linked YouTube content

Description:
The /play command is unable to find valid YouTube links provided as input. Instead, it returns the error message "I couldn't find anything with the name [query]." The bot also does not join the voice channel to play music, even if the command is executed with a valid YouTube link.
Steps to Reproduce:

Enter a voice channel.
Use the command /play query: https://www.youtube.com/playlist?list=PLx0sYbCqOb8Q_CLZC2BdBSKEEB59BOPUM or /play query: https://www.youtube.com/watch?v=XgZ4-XPFFE8.
See the error message "I couldn't find anything with the name [query]."

Expected Result:
The bot should recognize valid YouTube links and join the voice channel to play the linked content.
Actual Result:
The bot returns an error message for valid YouTube links and does not join the voice channel to play music.
Screenshots:

Log File:
https://paste.techy.lol/Cvh81n7a0X.sql
Additional Context:
I am using a custom cookie and everything else default.

Not sure if this is just not the intended usage or not a bug honestly.

It should pick up the song from the URL, that's how autocomplete works. Unfortunately I'm not able to reproduce this issue, can you confirm what operating system you're using, and what Node.js version you're using? (You can use node -v to find the version of Node that you are running)

❯ node -v
v18.12.1

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal

Caused by Digital Ocean..


Feature Request:

Feature Idea
From suggestion by @bundfussr:
t_o help with ADQS programming, it would be convenient to implement a function which provides the same transformation arguments as compute_scale():
transform_range <- function(value,
                            source_range = NULL,
                            target_range = NULL,
                            flip_direction = FALSE,
                            outside_range = "NA"
)

The outside_range argument determines how values outside the source range are handled. Options are setting to NA, issuing an error, or issuing a warning. (The new function could also be called by compute_scale().) I would expect that it could be useful for other questionnaires as well._
Relevant Input
See here for compute_range() inputs.
Relevant Output
A transformed value
Reproducible Example/Pseudo Code
transform_range(
  value = 2,
  source_range = c(1:5),
  target_range = c(0:100),
  flip_direction = FALSE,
  outside_range = NA
)

Should return 25.
transform_range(
  value = 3,
  source_range = c(1:6),
  target_range = c(0:100),
  flip_direction = TRUE,
  outside_range = NA
)

Should return 60 i.e. 100 - 40.
transform_range(
  value = 300,
  source_range = c(1:6),
  target_range = c(0:100),
  flip_direction = TRUE,
  outside_range = NA
)

Should return NA.

@bundfussr please double check logic above, thanks

@bundfussr please double check logic above, thanks

@manciniedoardo , looks good to me. Thanks for creating the issue.


Support for disabling the configuration

Proposed functionality
Currently, the configuration.py is mounted statically into the deployment / pods. I propose making this selectable via a value, defaulting to True.
Use case
My NetBox deployment is pretty much preconfigured in the locally built image and ships a ready to use configuration.py. However, this image can't be used because the helm chart will mount its configuration.py on top of it. Allowing user to disable the dynamic configuration would allow this helm chart to be used in even more deployments.

Figured out, that for this chart it's still sufficient to put extra files along with configuration.py in the same folder. So as long as filenames differ, both files will be loaded.


Some publicly available mixins missing from latest Material version

Bug, feature request, or proposal:
When upgrading from Material 5.1.0 to 5.1.1, mixins such as mat-menu-base which were being used before are now missing, with no mention in the change log.
What is the expected behavior?
Importing the styles for material would include the mixins previously available.
What is the current behavior?
Errors are thrown as the mixin mat-menu-base are not known to the product.
What is the use-case or motivation for changing an existing behavior?
Currently I use this to borrow same styling for custom menus using the cdk while sharing the same look as the material library.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
<EMAIL_ADDRESS>Is there anything else we should know?
This might be intended, but it was not listed anywhere in the change log.

I don't think those mixins have been moved for a while, but the build may have changed since then.

Yeah, I had to install 5.1.0 vs 5.1.1 and noticed that in _theming.scss, the mixin was randomly missing. Both my coworker and I ran into it due to this, so i'm guessing the build may have changed how it is importing them. Are they meant to be in there still?

Those sass mixins aren't meant to be public APIs (they're totally undocumented). Only the theming, elevation, and typography mixins (which are all documented in guides) are meant for public consumptions


feat: speed up startup with firmware 7 and newer

It doesn't matter because we have to poll it anyways


added cursor animation

I have added the cursor animation

https://github.com/user-attachments/assets/e023a209-fb55-4ae2-8fce-2e348eceffeb

Hello @AswaniBolisetti, thank you for your pull request! We will review it shortly. 😇❣
Your contributions help us grow and improve our project. Please make sure you have read and followed our CONTRIBUTING GUIDELINES.
Your efforts are appreciated, and we value your participation in our community. Don't forget to ⭐ our repository!
Happy coding!✨

@AswaniBolisetti Please send pr in dev branch

@Puskar-Roy Yes I have changed it

@Puskar-Roy could you please merge this, dont delete

@AswaniBolisetti my bad my bad

Hey @AswaniBolisetti! We're excited to let you know that your pull request has been merged into the APIverse🚀🎁
Your commitment, effort, and expertise have greatly influenced our project, and we're incredibly thankful for your contributions.😇
Your code is now part of our expanding ecosystem, assisting developers worldwide in creating exceptional APIs.❣🔥
Happy Coding! ✨ We look forward to seeing you again soon!❣

Thank you so much
On Fri, Oct 11, 2024, 7:29 PM Puskar Roy @.***> wrote:

Merged #45 https://github.com/Puskar-Roy/create-my-api/pull/45 into dev.
—
Reply to this email directly, view it on GitHub
https://github.com/Puskar-Roy/create-my-api/pull/45#event-14609273076,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4CL2Q525ANLDFUT2QU3HJLZ27KR7AVCNFSM6AAAAABPK7GZ52VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGYYDSMRXGMYDONQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Case Sensitivity Discrepancies for SCS Channel Properties

I think the higher level binder and the implementation specific binders are behaving differently in how they treat the casing of the channel name. If I have the following code to enable SCS
public interface MessagingConfig {
     String TEST = "TEST";

     @Input(TEST)
     SubscribableChannel test();
}

and then define my properties like such:
spring.cloud.stream.bindings.test.destination=rabbit.exchange
spring.cloud.stream.bindings.test.group=test.email.queue
spring.cloud.stream.rabbit.bindings.test.consumer.queueNameGroupOnly=true
spring.cloud.stream.rabbit.bindings.test.consumer.bindingRoutingKey=emails

It will generate an exchange named rabbit.exchange and a queue named rabbit.exchange.test.email.queue even though the property is set to only use the group name for the queue. It also ignores the routing key value and sets to all.
If I change the properties to look like this:
    spring.cloud.stream.bindings.TEST.destination=rabbit.exchange
    spring.cloud.stream.bindings.TEST.group=test.email.queue
    spring.cloud.stream.rabbit.bindings.TEST.consumer.queueNameGroupOnly=true
    spring.cloud.stream.rabbit.bindings.TEST.consumer.bindingRoutingKey=emails

or this:
    spring.cloud.stream.bindings.test.destination=rabbit.exchange
    spring.cloud.stream.bindings.test.group=test.email.queue
    spring.cloud.stream.rabbit.bindings.TEST.consumer.queueNameGroupOnly=true
    spring.cloud.stream.rabbit.bindings.TEST.consumer.bindingRoutingKey=emails

Then everything works as expected and I generate an exchange named rabbit.exchange and a queue named test.email.queue that is bound with a routing key of emails.
I think this is a bug. I am using Spring Boot version 2.0.3.RELEASE and Spring Cloud version Finchley.SR2.
Thanks

Actually this is by design in order to support consumer groups and partitions, so please read through it and follow up with any questions you may have on Stack Overflow channel.
I am closing it as "wontfix".


removes need for second jupyter port

Uses the ability to add a custom HTTP request handler within a jupyter server extension to remove the need for the second HTTP server alongside the jupyter server. Now we just send jupyter ascending POST requests to localhost:8888/jupyter_ascending.
Also did a little bit of cleanup/refactoring to make the server extension file only include code for the server extension.
Tested and working! All tests pass.

This is great, thanks Zack!
Once we merge this I can publish a new version.

@zplizzi any reason not to merge and publish now?

Go for it! I'll make myself a note to update the readme with a big security warning.

@joshalbrecht merged, feel free to publish whenever!


remove the region stratification to avoid distraction

https://github.com/epiverse-trace/howto/blob/159cf2a65e4dd0746e81b4ca4a8a8096b017e93d/internal/incidence2_count_multiple.qmd#L59

Fixed in https://github.com/epiverse-trace/howto/commit/bc1e86a15b342124c9b904659a975ec342d8b7e2


synth upgrade-system yields 'bad input for 'Value: ""'

Running synth upgrade-system on a FreeBSD 10.1 host failed with the following trace:
Scanning entire ports tree.
 progress: 96.36%
culprit: packages/portmaster-backup
Scan aborted for an unknown reason.
bad input for 'Value: ""
Failed to scan ports tree   (Synth must exit)

Prior to this failure, two ports were marked with "failed dependency check".

We saw this with DISTDIR, apparently packages get placed in /usr/ports/packages by default.
Until it's fixed in the codebase, you need to move /usr/ports/packages somewhere else (and maybe set PACKAGES in /etc/make.conf to point to them)

should be fixed by 61c235e

Hi John. I mentioned in the FreeBSD forums, that I ran into this same failure. I hadn't noticed mention of it here, because it's not listed as open. I'm running 0.98_2, and I seem to recall that you mentioned in the forums that use of /usr/ports/packages/* was acceptable. Or will I need to move my packages, and create a pointer in make.conf(5) ?
Thanks

Your version of synth is too old.  Version 0.98_4 has been out of a week and it fixed the problem here.  Upgrade to the latest available version and you'll be fine.

Just did. Thanks, John.


startmoloch.sh fix

For those getting the output:

Giving ES time to start...`
ES started...
Install Elasticsearch server locally for demo, must have at least 3G of memory, NOT recommended for production use (yes or no) [no] Moloch - Creating configuration files
/data/moloch/bin/Configure: line 114: /data/moloch/etc/config.ini.sample: No such file or directory
/data/moloch/bin/Configure: line 115: /data/moloch/etc/config.ini.sample: No such file or directory
No startup scripts created for capture and viewer

Might want to add echo $MOLOCH_LOCALELASTICSEARCH |  at the beginning of line 18&30 in the scripts/startmoloch.sh
Also, thanks for sharing this, its been fun playing around with Moloch.

Hello and thanks for this issue. Don't know why I didn't hit it myself...
The underlying problem however is the Configure script in Moloch, especially this line: https://github.com/arkime/arkime/blob/469df47c5bd8106a60cb0a355d1645df6604c767/release/Configure#L82
There the variable MOLOCH_LOCALELASTICSEARCH gets defined by the script. So it doesn't matter what is set by the environment.
I implemented your fix in the latest commit. If it still doesn't work, please reopen this issue.


computational bottlenecks

I have run the EMA workflow with great results. Even beyond the smart aligner I really like that you provided third-party implementations to critical steps in 10x data analysis i.e. barcode correction and barcode-aware duplicate marking.  While the software certainly works well in it's current state, I wonder whether you would consider addressing some of the most critical computational bottlenecks.

The FASTQ preprocessing step is currently a single-threaded bottleneck in the pipeline execution taking ~50% of the overall wall-clock run-time on our hardware.
Parallelization of the sorting / alignment / duplicate marking steps requires at least 8GB of memory per-core, making it impractical on 64+ core servers.
Use of Picard.

I think 1. could be possibly alleviated using the following strategy.
fastq.gz -> gunzip | split -l 40e6 > chunked_fastq
chunked_fastq > fix_barcode > barcoded_chunked_fastq
barcoded_fastq(s) >  split_by_barcode > buckets

The first and last step's would remain single-threaded, but at least barcode fixing would be parallelized.
For 3. I would suggest using sambamba to mark the duplicates, the software is multi-threaded so using it with ~4 cores per bucket (and process fewer buckets in parallel) would lower memory requirements.
Thanks!

Thanks for the suggestion! This has been implemented internally, and we will release it by the end of this week.

Thanks for your patience. We just implemented the following:

Faster (multithreaded) preprocessing
Multithreading within EMA, using only a single copy of the data structures needed for alignment
Duplicate marking within EMA, and duplicate marking for BWA with sambamba

More details are in the new README. I'll close this issue for now, but please let us know if you run into any issues, or have any more questions/suggestions!

Thank you for your efforts, I will try-out the new version and report back.

Here are some numbers in case you are interested: on NA12878 dataset (64GB gzipped), pre-processing takes 27 minutes on 40 cores for gzipped sample (2 mins for counting and 25 mins for correcting). If you want H2 correction (as in paper), add extra 15 minutes to the correction step (although impact of it is negligible, but if you want 100% compatibility with Long Ranger fo with this). In total, it should take less than 1hr (even with 20 threads w/o H2, since most of the time is spent on I/O). Afterwards, we also trimmed down the times by plugging in sorting and duplicate marking directly in EMA. All in total, it takes ~10hrs on 40 cores from the initial fastq.gz files to the final indexed, marked and sorted BAM.
Best,


docs: Add workflow-count-resourcequota.yaml example

Signed-off-by: Alex Collins<EMAIL_ADDRESS>

@sarabala1979 merging doc only changes.


Checkpoint computer command not recognised

Steps to reproduce
Input the code below into the PowerShell window
Checkpoint-Computer -Description "TWC-RestorePoint" -RestorePointType MODIFY_SETTINGS
Expected behavior
Create a System Restore point
Actual behavior

Environment data
PowerShell 7.2.0-preview.2
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\Program Files\PowerShell\7-preview> Checkpoint-Computer -Description "TWC-RestorePoint" -RestorePointType MODIFY_SETTINGS
Checkpoint-Computer: The term 'Checkpoint-Computer' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Program Files\PowerShell\7-preview>

This command works in PowerShell 7.2.1 for me.

This command works in PowerShell 7.2.1 for me.

I guess in WinCompat :-)
We could try to restore the cmdlet https://github.com/PowerShell/PowerShell/issues/11732#issuecomment-580877408

still not found in PWSH 7.4.3
PS7  [Admin] ${USERPROFILE}\ > $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.3
PSEdition                      Core
GitCommitId                    7.4.3
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

PS7  [Admin] ${USERPROFILE}\ > Checkpoint-Computer -Description "Snapshot" -Verbose -RestorePointType MODIFY_SETTINGS
Checkpoint-Computer: The term 'Checkpoint-Computer' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.


UI Issues - Wallet initialization screen.

keyboard is hiding the CTA. please align it properly.

align the CTA and the pagination on the right, look at the VD for reference.

CTA should be visible on this screen. refer to VD.

CTA should be visible on this screen. refer to VD.

@summikhan11 Can you put Xd link here?

@summikhan11 Please provide XD

https://xd.adobe.com/view/0aef8043-d951-4d0a-9a97-b7b2e16ffdbc-5fbc/
all screens are here

Verified this issue on dev app v2.0.70(431)


Time clustering error with 16 weeks

When using 16 periods of 7 days, the time clustering function returns a blank line (nans) for both load and resource variability. I haven't been able to duplicate the behavior with any other combination of periods/days.

@nspatank did you ever fix this?

yes, we need to add input_data = input_data.reset_index()  after this: input_data = pd.concat([load_profiles, resource_profiles], axis=1)

Fixed in PR #43 and #45


Enforce some coding standards for the contributers

Started working with pre-commit at work lately, and thought it could be useful here.
I thought I'd also run the tests and linters over the entire repo and upload the changes but that's for a separate PR, it will be very noisy. Is it anything you'd be interested in?
Edit: opened one anyway, #1434, and it did change 165 files. Feel free to decide if it should be killed or merged, I see pros and cons for either approach...

This is great - thanks! I'm a huge fan of shellcheck, need to check out the other tools that you referenced!
A couple of questions before we merge this:

Do the tools that you reference (pre-commit, shellcheck, ...) work on all operating systems? I know that some colleagues had issues with installing shellcheck on Windows, for example.
What happens if someone pushes changes without using these tools? I assume that GitHub will still accept the commit/push, right? In this case, someone else will need to clean it up. Would be good if we could integrate the checks with Travis CI so that PRs are automatically checked for compliance...

no idea, I haven't used woodnose since 2002 or so, I only use Unix machines now (MacOS laptop at work, Debian-based distros at home and in production). The pre-commit package definitely works since it's pure python IIRC. No idea about the others. However it's really easy to customize the yaml. I guess you can template it to drop sections if it's a windows machine, etc.

These checks run on .git/hooks/pre-commit and only if the user installed it (no errors if they didn't). You can set up travis tests to block PRs too. pre-commit the CLI can run stand-alone, not only as a git hook.


Reconsider database structure

If a user is to make a polydimensional data structure with Chocolite's ChocoPoly::shape shape(3, "foo") while the number of dimensions here matches Choco3D::stock, it might be a bit conflicting.
Maybe consider just utilising polydimensional shape creation as opposed to fixed-dimension? (This also allows one-dimensional data structures, basically the equivalent of storing data in plaintext. Better than nothing, I guess?)

Addressed in commit 07c13ec. Any commits after that and before b825c83 are related to this issue with database structure. Now, only one data structure exists: Chocolite::shape. You can now initialise it with as many dimensions as you want, with a minimum of 2.
(Ignore typo on intermediary commits, I was probably typing too fast for comfort.)


Config entry 'Livebox' from integration livebox has an invalid unique_id 'False' of type bool when a string is expected

since update to  core 2024.11.1 this error is displayed in the log:
2024-11-10 11:50:37.352 ERROR (MainThread) [homeassistant.config_entries] Config entry 'Livebox' from integration livebox has an invalid unique_id 'False' of type bool when a string is expected, please create a bug report at https://github.com/cyr-ius/hass-livebox-component/issues

Fix release 6.3.7, please feedback..


remove and disable package-lock

Using exact versions in package.json has almost the same effect as lockfiles without all the troubles the lockfiles bring (different versions of package manager generating different lockfiles primarily).
Ensured we only use exact versions in package.json and stopped generation of new lockfiles via .npmrc which is support by both the npm and yarn package managers.
Fixes: https://github.com/go-gitea/gitea/issues/6967

Small tweak pushed: The save-exact option makes modules installed via npm install <module> to save with a exact (what we want) over the default caret ^ versions, so mistakes like for the lesshint case should no longer happen.

Codecov Report

Merging #6969 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6969      +/-   ##
==========================================
- Coverage   41.48%   41.47%   -0.01%
==========================================
  Files         441      441
  Lines       59666    59666
==========================================
- Hits        24751    24747       -4
- Misses      31694    31699       +5
+ Partials     3221     3220       -1

Impacted Files
Coverage Δ

models/unit.go
62.16% <0%> (-5.41%)
:arrow_down:

modules/log/file.go
75.52% <0%> (-2.1%)
:arrow_down:

routers/repo/view.go
42.02% <0%> (-1.02%)
:arrow_down:

models/gpg_key.go
56.66% <0%> (+0.83%)
:arrow_up:

models/repo_list.go
73.09% <0%> (+1.01%)
:arrow_up:

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 68a83cc...22da44d. Read the comment docs.

It is very unlikely but I once saw a weird (minor) bug in one machine that doesn't happened in the other. After some tracking we found the problem was for a dependency of one of our dependencies, that has the bug in a minor version update, so the machine that executed npm install last installed the bugged dep. It was fixed very soon, but wasn't obvious where the problem come from.
The point of having a package-lock.json is not only to lock your own dependencies, but the entire tree of dependencies (the deps of the deps of your deps... and so on), ensuring the same exact tree version of them are installed across all systems.
I have suffered the weird things about maintaining a package-lock.json (as npm adding/deleting "dev": true or changing https to http, etc) so I understand the motive behind this change, but I wanted to remark the reason of its existence so you are sure this is the right path.
Regards

I do also agree that it is best to have package-lock.json even though it could change depending on npm version

We don't really know what happened for @lunny there, it's just a guess that the reason for the change is a npm version difference. @lunny if you can still reproduce after reverting this change, can you show a diff what changed?

@lafriks It's annoying that every time I build gitea, the git workspace will be changed.
@silverwind I'm not using the recent npm version.
/xxxxx/gitea/gitea on  lunny/revert_lock ⌚ 14:12:49
$ npm install
npm WARN gitea No repository field.

updated 1 package and audited 4465 packages in 5.238s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

   ╭───────────────────────────────────────────────────────────────╮
   │                                                               │
   │       New minor version of npm available! 6.1.0 → 6.9.0       │
   │   Changelog: https://github.com/npm/npm/releases/tag/v6.9.0   │
   │               Run npm install -g npm to update!               │
   │                                                               │
   ╰───────────────────────────────────────────────────────────────╯

/xxxxx/gitea/gitea on  lunny/revert_lock! ⌚ 14:12:58
$ npm --version
6.1.0

@lunny but you have to do npm install only once, than you can discard lock file changes as we have only tools in node_modules directory currently anyway

We could opt to keep the setting to disable lockfile generation in .npmrc, so in @lunny's case, npm install would not rewrite it. If one wants to do a package upgrade they'd have to do npm install --package-lock to enable it again, maybe via dedicated make target.

@silverwind that would be the best option imho

Not 100% certain it will work. npm's docs say:

The --no-package-lock argument will prevent npm from creating a package-lock.json file. When running with package-lock’s disabled npm will not automatically prune your node modules when installing.

Depending on interpretation, this could also mean it would ignore the file while installing modules which is not what we want. Need to check in npm's source code.


[BULK] - DocuTune remediation - Sensitive terms with GUIDs (part 12)

Applying sensitive terms with GUID changes as part of Content SFI and outlined in Overview - Writing content securely - Platform Manual. Changes are part of the Microsoft-wide SFI effort. Point of contact: @CelesteDG
DocuTune v<IP_ADDRESS>
CorrelationId: ac15aa43-4e2b-437f-ab1c-fdd7e79cd4db
#docutune

#docutune-review

LGTM


Patrickbkr add focusable role

Separate out a Focusable role from the Input role. Non-input widgets that still want to be able to have focus, can now use this new role.
One thing I don't like:
I had to move submethod Focusable::TWEAK to method Focusable::init-focusable as roles doesing from one another can't both provide identical methods. This unfortunately makes it necessary, that the doer of the Focusable role has to explicitly call the init-focusable method. I think this is so bad that we can't leave it like that, thus only a draft PR for now.

@japhb
I just noticed https://vrurg.github.io/2019/12/16/new-role-of-roles-in-raku
So this won't be a problem in 6.e anymore. How should we deal with this? Stay with plain ::init-whatever methods for now and move over once 6.e is released (+ some time for people to adapt)? Use 6.e.PREVIEW right away?


How can I download the PEGASUS dataset?

How can I download the PEGASUS dataset?

Search about it in Dark Web


C Language Files Aren't Being Discovered by Rich Presence

What happened?
Description:
Whenever you open a .c file, the Discord Rich Presence ignores it, resulting in the last supported file being displayed instead. If you open the IDE directly on a .c file (without previously opening a supported file type), no Rich Presence activity occurs at all.
Steps to Reproduce:

Open any supported file type and verify that Rich Presence updates accordingly.
Open a .c file. Note that Rich Presence continues to display the last supported file instead of the .c file.
Close the IDE and reopen it directly with a .c file. Note that Rich Presence does not activate.

Showcase:

Expected behaviour
Rich Presence should correctly recognize and display .c files just like any other supported file type.
What version of the plugin are you using?
1.3.0
What IDE and version are you using?
CLion 2024.1.1

Can confirm this happens, the issue is that Discord requires the text to be at least two characters large, but the plugin tries to only put "C" which is not valid.

Fixed in version 1.3.1 which has now been released and will be available on the JetBrains Marketplace in the next 2 business days. Until then it can be downloaded through GitHub Releases.


Add bi-directional bindings support

This PR does the following:

Update the output binding interface to support bi-directional bindings
Updates all existing bindings to support the new interface and return a list of operations

@youngbupark please recheck.


init commit for wpf/visuallayerintegration sample

wpf + wincomp sample. See README file for details.
GIF:

    public HwndMouseEventArgs() { }

For simplicity: seeing as you have only one property, and it has a visible setter, get rid of the constructors and have the caller set the property.

Refers to: dotnet/WPF/VisualLayerIntegration/VisualLayerIntegration/CompositionHost.cs:210 in 7484d05. [](commit_id = 7484d05b135e9db45588fbe6876bf846d2e6a624, deletion_comment = False)

    void RaisePaint()

Be consistent with visibility modifiers - use private on all private members even though they're private by default (alternatively never set default visibility modifiers)

Refers to: dotnet/WPF/VisualLayerIntegration/VisualLayerIntegration/CompositionHost.cs:144 in 7484d05. [](commit_id = 7484d05b135e9db45588fbe6876bf846d2e6a624, deletion_comment = False)


Discussion about official API for Alpha AESS Cloud Customers

For not further highjacking this discussion I would like to involve @ElevenFan here too for API requirements. Thanks for your contribution and your offer for an official customer API. I would really appreciate it an open customer API. I think this would bring a lot of projects straight forward for the whole community.
This project currently uses/requires the following API endpoints:

GetSecondDataBySn
GetLastPowerDataBySN
SticsByDay
SystemStatistic

I'm open for any constructive discussion with Alpha ESS development team for getting those things up and flying.

GetSecondDataBySn=GetLastPowerDataBySN

That sounds strange because GetLastPowerDataBySN is the "backup path" for requesting data within this project. Is this the more preferred or common way from your site to use? GetSecondDataBySn seems to not work on all systems.

Last year GetSecondDataBySn was used for real-time power

So am I right that GetSecondDataBySn is deprecated and shouldn't be used further?
Thanks a lot for working together with me! I really like it!

Yes，Now I didn't delete this code，The reason why I added the signature is that there are many people requesting millions of times at the same time

Ok. I see. So there was too much load on your systems, I think. Am I right? Maybe there should be implemented a query limit per second/minute/hour per connection? This would prevent such heavy loads. I think often people query data too often.
I think fetching realtime data every 5 secs. should be enough (this is what this project uses as default and IMHO the cloud portal does too). For statistical data 1 to 10 minutes should be enough (I poll them every 10 minutes).
Do you agree?
I'll remove the code for GetSecondDataBySn ASAP.

GetLastPowerDataBySN you can request once in 10S

I just published an update reflecting your requirements and suggestions.

@ElevenFan am I right that upcoming update on 19th of November won‘t change sign key as the previous one (no anti-crawl updates)? So we can expect our projects will be running after the update?

Yes，This update will only add the energy storage function

Related: https://github.com/alphaess-developer/alphacloud_open_api
Thanks at the Alpha ESS Team!

I'm so happy to see this. I have over the last week put pressure on the Alpha UK office and also China directly for an API and didn't get a positive response so this is good to see.
Will we have the ability to stop and start charging from grid, or is this a read only API?
Thanks.

@vantech14 what features will be there in future I cannot tell you. It is the decision of Alpha ESS at all. But feel free to contribute with your ideas directly at https://github.com/alphaess-developer/alphacloud_open_api/.
If you open the link you'll see there is a planned call for named "setChargingBySn". It might reflect your needs.

@vantech14  stop and start charging from grid This Api is Professional interface，It is provided to VPP company. If the end user does not use it properly, it will cause equipment failure。

Yes，This update will only add the energy storage function

I am not sure if  it  works after update alpha cloud 19.11.
In debug log is: There was an error during fetching Alpha ESS Signature Key: We got an unexpected body.
We got the following body:
(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/fHe":function(e,t,r){},"0Fbn":function(e,t,r){"use strict";r.r(t);var a=r("4BeY"),A=r.n(a),i=r("IaFt"),n=r.n(i),o=new A.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:'<path d="M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15....

@vantech14  stop and start charging from grid This Api is Professional interface，It is provided to VPP company. If the end user does not use it properly, it will cause equipment failure。

Thanks, will there be the ability to adjust charging times etc from the API? So if we can't force grid charge, can we adjust the scheduling?

Yes, Set Charging Time Api and Set DisCharging Time Api  are open。

Please Wait a month，I will release this project。

@ElevenFan hope all is well. I see the Alpha cloud has been updated recently, has there been any movement on the API? 😀

The platform developers have started work, the Api platform has been developed, and now I am writing documents and translations. Next, I will invite you to participate in the internal test, but now the Chinese New Year is coming, and it is expected to be around mid-February。

Because Alpha ESS Open API begins flying I'll close here for now. @ElevenFan thank you so much for your work and time spent on this.
I hope the missing statistics requested here will get implemented soon. So I would be able to switch over to Open API branch ASAP.


Missing suggestions in CB

Discord username
No response
What type of issue is this?
Permanent – Occurring repeatably
Is this issue blocking you from using Enso?

[X] Yes, I can't use Enso because of this issue.

Is this a regression?

[X] Yes, previous version of Enso did not have this issue.

What issue are you facing?
No suggestions visible when opening CB with selected node with Text or Number
Expected behaviour
List of suggestions available
How we can reproduce it?
Open Enso, add a node with text, select the node and open the CB again
Screenshots or screencasts
No response
Logs
No response
Enso Version
nightly 20.10.2023
Browser or standalone distribution
Standalone distribution (local project)
Browser Version or standalone distribution
standalone
Operating System
MacOS
Operating System Version
No response
Hardware you are using
No response

A screenshot would be nice :)

I'm checking where the problem is (is it GUI or Engine).

Haven't reproduced it on 675fff07de10a3e7c1743c9ae6c620c2ec951ddf with 2023.2.1-nightly.2023.10.22 backend.

I'll check it today between the calls

Hubert is looking into this as a separate ticket. After restarting seemed to be fixed.


WIP- Praj/update erlang to 21

This does not contain the changes on buildkite to install 21, so the verify test are still running on 20.
This branch is intended to be merged in chef-server-13.
This does not yet contain omnibus changes for erlang 21.
It will surely break on rabbitmq after omnibus changes are in.
https://buildkite.com/chef/chef-chef-server-chef-server-13-habitat-build/builds/1#1fb5ab1a-2523-422c-a713-a5b512a11877

Closing - erlang 22 is available in hab core_plans.


Does not compile .tsx files

.tsx extension is JSX (React) for Typescript.
This package doesn't output/compile any .js or .jsx  to the build folder or the main-ts.build.js of the .tsx files.
Meteor: <IP_ADDRESS>
OS: Windows 10
Typescript : 1.6.2 ( both npm and visual studio's version for 1.6.2 (<IP_ADDRESS>) )

We'll look into this as soon as we can, but I'm sorry to say that it might take a bit of time as we're pretty swamped at the moment.

I suppose that you have to add .*tsx extension to your package 'source selector' .
And for jsx support in typescript you have to add "jsx" : "preserve" or "react" at the compiler options.
In the current iteration of TypeScript 1.6 appears to have two options for --jsx, both preserve or react.
preserve will keep the jsx in the output. I presume this is so you can use tools like JSX to actually provide the translation.
react will remove the jsx syntax and turn it in to plain javascript so  in the TSX file would become React.createElement("div", null).
I will wait as much as you need, I understand you but I think this will increase your package's usage, thanks you!


chore: update cargo-dist

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

Project coverage is 90.53%. Comparing base (f1c5280) to head (7cdb4c7).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage   90.53%   90.53%
=======================================
  Files          12       12
  Lines        1310     1310
=======================================
  Hits         1186     1186
  Misses        124      124

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


Fix blog release link

Fixed blog link to point to proper 1.5 release.
Microsoft Reviewers: Open in CodeFlow

/azp run AdaptiveCards-SharedModel-CI


Generated Code Optimization

Hi,
Currently Entitas' ComponentEntityGenerator is using CreateComponent for AddComponent/RemoveComponent.
This means (heavy) use of Generics which carries a small but non-trivial performance penality. I dont have any easy-to-share benchmarks, but it improved starting-performance slightly for our specific case.
        // current entitas
        var component = CreateComponent<${ComponentType}>(index);

        // suggested optimization
        var componentPool = GetComponentPool(index);
        var component = componentPool.Count > 0 ? (${ComponentType})componentPool.Pop() : new ${ComponentType}();

Related is use of Activator.CreateInstance for creation of entities. We've replaced this with a function passed as the last argument for Context constructor. The context caches this function and uses it instead of the generic version.
        readonly Func<TEntity> _createEntity;

        public Context(int totalComponents, int startCreationIndex, ContextInfo contextInfo, Func<IEntity, IAERC> aercFactory, Func<TEntity> createEntity) {
            //--- snip
            _createEntity = createEntity;  //  previous: (TEntity)Activator.CreateInstance(typeof(TEntity))
            //--- snip
        }

    public GameContext()
        : base(
            GameComponentsLookup.TotalComponents,
            0,
            new Entitas.ContextInfo(
                "Game",
                GameComponentsLookup.componentNames,
                GameComponentsLookup.componentTypes
            ),
            (entity) =>

#if (ENTITAS_FAST_AND_UNSAFE)
                new Entitas.UnsafeAERC()
#else
                new Entitas.SafeAERC(entity)
#endif
            ,
            () => new GameEntity()
        ) {

Cheers

Hi, thanks for the suggestion. I will try to find time to create a performance test, to see see the benefits
👍

Passing in the an entity factory method speed things up by a factor of 2x, very nice!


Run specific dataset in a specific test

Is there a way to run a specific dataset in a specific test? If not, I think it will be a great addition to the library, which is already great
E.g.

@genty.genty
class Test(unittest.TestCase):
  @genty.genty_dataset(
    hello=('hello', 'Hello'),
    hi_there=('HI THERE', 'Hi There'),
  )
  def test(self, orig, titled):
    self.assertEqual(orig.title(), titled)

Then I would like to run only one of the options from outside, something like one of these options:
python test.py Test.test.hello
python test.py Test.test hello
python test.py Test.test hi # should run hi_there because of the prefix
python test.py Test hi # should be the same, if possible

Thanks for the kind words and your ideas.
I thought a bit about that idea... I believe that logic would be in the test-runner, not genty. Maybe I'm wrong about that? Do you have any thoughts as to how it might be implemented?
You can do something a bit 'hack-isn'. Get to know how gently builds the real/underlying test functions. Here's your example (using nose):
$ nosetests test/test_example.py:Test.test\(hello\)
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
$ nosetests test/test_example.py:Test.test\(hi_there\)
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

genty will build test methods whose actual names are

test(hello)
test(hi_there)
those are the complete names. Parens included.

If you give your test runner the 'verbose' option it should spit out the full names. For example:
$ nosetests test/test_example.py:Test -v
test(hello) (test.test_example.Test) ... ok
test(hi_there) (test.test_example.Test) ... ok
test_other(10) (test.test_example.Test) ... ok
test_other(True) (test.test_example.Test) ... ok
test_other(u'fred') (test.test_example.Test) ... ok

----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK

Hope that helps!
Be warned... genty could well change how these function names are constructed. The goal is to make them readable in test-runner output above... not make them useable in the manner we're discussing here.
Thanks!

That does help! thanks. I use unittest, and the same method of giving a complete name with parentheses works for me too. However, running:
python test/test_example.py Test.test

results in one (random? not sure) test running, except 0 as I had suspected before. This probably means that this feature request should go to the test frameworks themselves :)
Thanks!


Copy Suggestion

There's a typo in Partitioning  section:

are more likely to result in the partitions being co-located on the same partition server. , until increased load requires that they are split into smaller ranges.

should probably be

are more likely to result in the partitions being co-located on the same partition server until increased load requires that they are split into smaller ranges.

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

ID: 6cca4823-69a3-0b1a-059a-3a0605ed74ce
Version Independent ID: 8e8299f1-e618-f1d1-bed2-0e3f4e05829e
Content: Performance and scalability checklist for Blob storage - Azure Storage
Content Source: articles/storage/blobs/storage-performance-checklist.md
Service: storage
Sub-service: blobs
GitHub Login: @tamram
Microsoft Alias: tamram

@hobozero Thank you for catching this . We will review this and update the thread.

@hobozero We have fixed this issue on our side and the changes should reflect in the next 24-48 hours as per global convergence.
Thank you.


Readium Issue in Android Browser View

I have implemented a Readium viewer on an IIS hosted web site.  At this point, it is working wonderfully in several browser environments, including: Safari/Firefox/Chrome on Mac, IE/Firefox/Chrome on Windows, Safari/Chrome/embedded View on iOS, and Safari/Chrome on Android.  However, it is not working in and embedded view in Android, specifically in the Facebook embedded browser.  I am currently running the readium 0.20 pre-built release.  However this issue exhibits whether I am using a pre-built release or running on the head of the readium dev tree.
We have implemented access to the epubs through a rest api.  We can see Readium open an xhtml file, and then it never calls again, and never progresses off the spinner.  Remote debugging in this environment will take some time to learn and setup.  I am heading down the path of installing the Android SDK and emulator to set up a test case.  Does anyone have any ideas how to better isolate the issue?  I am not a backbone expert and am wondering if there are tools at that level that would allow me to figure out what is going on?
Any help/thoughts would be appreciated.

On my iPad, Google Chrome fails to load EPUBs (the cloud reader ebook library displays fine, but clicking on a given EPUB results in infinite spinning loader icon). Apple's own Safari browser loads them fine.
See:
https://github.com/readium/readium-js-viewer/issues/352
Could you please try again on your device and let me know what you see?
Thanks!

Secondly, could you please try this feature build (not from the develop branch):
http://development.readium.divshot.io
PS: when you say "I am currently running the readium 0.20 pre-built release", do you mean:
https://github.com/readium/readium-js-viewer/releases/tag/0.20.0
?

I have tried http://development.readium.divshot.io by creating a facebook post containing the link and clicking on it.  I do get an error message "Page can't be loaded".  I don't know what page is being referred to though. This is what I get.

On the P.S. above, yes...but I find it strange that the date at that location is now June 2...unless I have a time machine, it seems the automated builds are posting with the same version for some period of time.  I last downloaded 0.20.0 on 5/29/2015 @ 4:33pm PDT.

Please try the following fix from this Pull Request: https://github.com/readium/readium-js/pull/73
(in fact, to make things simpler in your tests, just force var isIE = true;, and check the results)


GSE Priority Sequence not  working

HI I am running the current GSE and cant help but notice that Priority sequence still fires spells in sequential order not priority. Is there a fix for this ?


Should also mention to update  in publish profiles to net7.0

[Enter feedback here]
Publish profile also contains a TargetFramework. If not updated publish will fail.

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

ID: e9669d35-3de1-997d-258c-745ebbdbface
Version Independent ID: e9669d35-3de1-997d-258c-745ebbdbface
Content: Migrate from ASP.NET Core 6.0 to 7.0
Content Source: aspnetcore/migration/60-70.md
Product: aspnet-core
Technology: aspnetcore-migration
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

If not updated publish will fail.
Updated where?

The commands get the TFM from the project file:

Basic command-line publishing
dotnet-publish#options


Cannot find module '/usr/src/app/dist/tools/positions.js'

When running docker-compose up, then I am getting the following error:
tws_1     | 2021-07-26 08:30:24:925 IBC: Using default settings provider: ini file is /opt/ibc/config.ini
tws_1     | 2021-07-26 08:30:24:926 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
tws_1     | 2021-07-26 08:30:24:926 IBC: Using default main window manager: constructor parameter isGateway=true
tws_1     | 2021-07-26 08:30:24:926 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
tws_1     | 2021-07-26 08:30:24:927 IBC: Using default config dialog manager
tws_1     | 2021-07-26 08:30:24:932 IBC: CommandServer is not started because the port is not configured
tws_1     | 2021-07-26 08:30:25:008 IBC: TWS Settings directory is: /root/Jts
tws_1     | 2021-07-26 08:30:25:009 IBC: Creating minimal /root/Jts/jts.ini
tws_1     | 2021-07-26 08:30:25:009 IBC:     jts.ini: [Logon]
tws_1     | 2021-07-26 08:30:25:010 IBC:     jts.ini: s3store=true
tws_1     | 2021-07-26 08:30:25:010 IBC:     jts.ini: Locale=en
tws_1     | 2021-07-26 08:30:25:010 IBC:     jts.ini: displayedproxymsg=1
tws_1     | 2021-07-26 08:30:25:010 IBC:     jts.ini: [IBGateway]
tws_1     | 2021-07-26 08:30:25:010 IBC:     jts.ini: ApiOnly=true
tws_1     | 2021-07-26 08:30:25:010 IBC: Starting session: will exit if login dialog is not displayed within 30 seconds
tws_1     | 2021-07-26 08:30:25:805 IBC: Getting config dialog
tws_1     | 2021-07-26 08:30:25:805 IBC: Creating config dialog future
tws_1     | 2021-07-26 08:30:25:806 IBC: Getting main window
tws_1     | 2021-07-26 08:30:25:806 IBC: Creating main window future
ib-api    | internal/modules/cjs/loader.js:905
ib-api    |   throw err;
ib-api    |   ^
ib-api    |
ib-api    | Error: Cannot find module '/usr/src/app/dist/tools/positions.js'
ib-api    |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
ib-api    |     at Function.Module._load (internal/modules/cjs/loader.js:746:27)
ib-api    |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
ib-api    |     at internal/main/run_main_module.js:17:47 {
ib-api    |   code: 'MODULE_NOT_FOUND',
ib-api    |   requireStack: []
ib-api    | }
ib-api exited with code 1

Any tips why /usr/src/app/dist/tools/positions.js cannot be found?

Hey, please try to run yarn build. And let me know if it worked.

@bennycode

Hi @Tsopic, I cloned this repo and executed all steps descripted in test locally. Unfortunately, it crashes on my end after the last build step:
Step 9/10 : ENV NODE_ENV development
 ---> Running in 8594b5a5914e
Removing intermediate container 8594b5a5914e
 ---> 996fb3732c20
Step 10/10 : CMD ["node","./dist/tools/positions.js", "-watch"]
 ---> Running in 96881fa0bc47
Removing intermediate container 96881fa0bc47
 ---> ff129a7b7581

Successfully built ff129a7b7581
Successfully tagged ib_ib-api:latest
WARNING: Image for service ib-api was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating ib_tws_1 ... done
Creating ib-api   ... error

ERROR: for ib-api  Cannot create container for service ib-api: Conflict. The container name "/ib-api" is already in use by container "fdb5e8893d149718d710db8b5c267ac2f7c8fb275c57ff017dadaec91bda2b02". You have to remove (or rename) that container to be able to reuse that name.

ERROR: for ib-api  Cannot create container for service ib-api: Conflict. The container name "/ib-api" is already in use by container "fdb5e8893d149718d710db8b5c267ac2f7c8fb275c57ff017dadaec91bda2b02". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.

As error states it's already running. Please google next time before asking. Also you may create the PR to improve readme to help us improve the repo.
Solution here is to tear down old containers first.
Run:
docker-compose down && docker-compose up

Sorry for causing you trouble. I am new to Docker and when executing docker-compose down && docker-compose up, then I am getting the same error:
C:\dev\projects\temp\ib>docker-compose down && docker-compose up
Removing network ib_default
WARNING: Network ib_default not found.
Creating network "ib_default" with the default driver
Creating ib_tws_1 ... done
Creating ib-api   ... error

ERROR: for ib-api  Cannot create container for service ib-api: Conflict. The container name "/ib-api" is already in use by container "fdb5e8893d149718d710db8b5c267ac2f7c8fb275c57ff017dadaec91bda2b02". You have to remove (or rename) that container to be able to reuse that name.

ERROR: for ib-api  Cannot create container for service ib-api: Conflict. The container name "/ib-api" is already in use by container "fdb5e8893d149718d710db8b5c267ac2f7c8fb275c57ff017dadaec91bda2b02". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.

I am using Docker Desktop v3.5.2 and the latest version of your "master" branch (commit c65fcc8bbd440b022b9f6f189daa730479a7bf7a).

< Docker Desktop v3.5.2
Means on your Container/Apps tab there is container running, that needs the ib-api image (Image tab), so it cannot be re-created.
Stop all running containers first.

Thanks for the hint. 👍 I removed all my builds from the "Containers/Apps" section and now it's almost starting (still the error with Cannot find module '/usr/src/app/dist/tools/positions.js').
@Tsopic, I tried to run yarn build to compile positions.ts but it's not working on Windows. The build script uses rm -rf dist which is not available on Windows. To achieve cross-platform compatibility the rm -rf command could be replaced with a tool like rimraf. Would you accept a PR for that?

@bennycode I would recommend getting those tools for windows, as it is quite common on node projects to just use linux tools (you will run into that issue over and over again). I'm also on Windows + https://www.cygwin.com/ (cygwin is collection of Linux tools + libs, ported to windows, including all the shell tools such rm, but also more advanced stuff such gcc if, if you need it (you can select what you want)).

Ok. For now I fixed the "clean" script in my local clone of "stoqey/ib".
Executing "yarn build" before running docker-compose up helped to get rid off the error with "positions.js". I see now a lot of repeating "ERROR: Cannot disconnect if already disconnected" statements in my console. Is this good to go?

My .env file looks like this:
NODE_ENV=development
ENV_CONFIG_TEST=ENV
LOCAL_CONFIG_TEST=local
IB_PORT=4002
TRADING_MODE=paper
TWS_USERID=top
TWS_PASSWORD=secret

Use IB_PORT=4004. The IBGateway only accepts connections from localhost on default config and since we do not want to change config, we run a proxy that maps 4004->4002 and 4003->4001. So to talk to 4002 from outside, use 4004.
(not sure if that docker is designed for "standalone usage", it's part of our CI).

Thanks for taking the time to debug this with me. I have set IB_PORT to 4004 in my .env file and now it looks like I can connect to the gateway.
I used the demo code from your examples in my TS application:
import Ib, {ErrorCode, EventName} from '@stoqey/ib';

const ib = new Ib({
  host: '<IP_ADDRESS>',
  port: 4004,
});

let positionsCount = 0;

ib.on(EventName.error, (err: Error, code: ErrorCode, reqId: number) => {
  console.error(`${err.message} - code: ${code} - reqId: ${reqId}`);
})
.on(EventName.position, () => {
  positionsCount++;
})
.once(EventName.positionEnd, () => {
  console.log(`Total: ${positionsCount} positions.`);
  ib.disconnect();
});

It now fails with this message:
Server Version 0: It does not support position requests. - code: 503 - reqId: -1

So we are one step further! 😀
Which Docker image do you recommend for "standalone usage"? In my own application I just did yarn add @stoqey/ib but this just downloads the compiled JS code and type definitions. I am now wondering how I can fully use your project to run trades on IBKR?

"Server Version 0:" error means you not connected yet (TCP connection is up, but handshake not completed).
If the positions.js works (that is IBApiNext), but the sample code doesn't anymore (that is IBApi):
move the ib.reqPositions(); to into a:
ib.on(EventName.connected, () => {
ib.reqPositions();
});
If this solves, I will have a look (than send out requests too early, in between the handshake not after completed), shouldn't happen).

Which Docker image do you recommend for "standalone usage"? In my own application I just did yarn add @stoqey/ib but this just downloads the compiled JS code and type definitions. I am now wondering how I can fully use your project to run trades on IBKR?

For getting started, I recommend installing IB Gateway or TWS locally. So you can focus app instead of fiddling around with infrastructure.
If want to dockerize it, there are many images for IBC arround (IBC /IBCalpha is a tool run gateway from command line), but almost always want to do modify it. So best here is get into docker and create your own, that fits to what you need. Like here is one I made https://github.com/mfrener/ib-gateway-docker-headless (also uses proxy), but I don't use it anymore, instead I have decided to run a Typescript App that does a REST server all in same container, that would be this https://github.com/waytrade/ib-api-service / https://github.com/waytrade/ib-api-service/blob/master/Dockerfile  (as you see, really depends on how you want to set it up / configure it)

Thank you for the detailed explanation. I now understood what your library does behind the scenes: It actually forwards requests to the IB Gateway.
I got it running now by doing the following:

Starting "IB Gateway" Version 985.1g (IB Gateway Latest for Windows)
Logging in to "IB Gateway" in "Paper Trading" mode (IB Gateway will now be locally accessible on Port 4002, Socket port can be configured in "Configure" > "Settings" > "API" > "Settings")
Using IBApi in my demo script (instead of using the default Ib export which seems to be referring to IBApiNext)

import {IBApi, Contract, ErrorCode, EventName} from '@stoqey/ib';

const ib = new IBApi({
  port: 4002,
});

let positionsCount = 0;

ib.on(EventName.error, (err: Error, code: ErrorCode, reqId: number) => {
  console.error(`${err.message} - code: ${code} - reqId: ${reqId}`);
})
.on(EventName.position, (account: string, contract: Contract, pos: number, avgCost: number) => {
  console.log(`${account}: ${pos} x ${contract.symbol} @ ${avgCost}`);
  positionsCount++;
})
.once(EventName.positionEnd, () => {
  console.log(`Total: ${positionsCount} positions.`);
  ib.disconnect();
});

ib.connect();
ib.reqPositions();

I can now work with it while the IB-Gateway program is running. Thank you! I am really happy that you provide a TypeScript library to communicate with the IBKR API. 😊

@bennycode I would recommend getting those tools for windows, as it is quite common on node projects to just use linux tools (you will run into that issue over and over again). I'm also on Windows + https://www.cygwin.com/ (cygwin is collection of Linux tools + libs, ported to windows, including all the shell tools such rm, ls, cp, ..., but also more advanced stuff such gcc if, if you need it (you can select what you want)).

Hey @mfrener, I appreciate your recommendation. I came back here because your view on this matter kept me thinking for quite some time. I was never really happy with Cygwin or MinGW as there was always a mismatch between what was available for Linux and what has been ported for Windows. Luckily, I found out about WSL and made a tutorial about it where I feature @stoqey/ib. 😀 https://www.youtube.com/watch?v=bRW5r7TK6KM


New blog post on Chatbot component in PowerApps

Category

[ ] Content fix
[x] New article

Contents of the Pull Request
New blog post on the chatbot component in PowerApps.

great article, @anandragav  - thanks for contributing!


BIGTOP-3915:soft link error about jar of hadoop in {hbase_home}/lib

Description of PR
Solve soft link error ,
Details see: BIGTOP-3915
How was this patch tested?
building hbase rpm,
installing hbase,
check soft link about hadoop  in {hbase_home}/lib
For code changes:
rpm: hbase.spec
deb: hbase/rules
Please review @iwasakims thanks

In addition, i found hbase is still normal even thoes soft link error, this is puzzling.

It works because the classpath set by hbase CLI contains classpath of Hadoop, I guess.
[root@5593b54af887 hbase]# hbase classpath | sed -z 's/:/\n/g'
/etc/hbase/conf
/usr/lib/jvm/java-1.8.0-openjdk-<IP_ADDRESS>2.b09-2.el8_7.x86_64/lib/tools.jar
/usr/lib/hbase
/usr/lib/hbase/lib/shaded-clients/hbase-shaded-client-byo-hadoop-2.4.13.jar
/usr/lib/hbase/lib/client-facing-thirdparty/audience-annotations-0.5.0.jar
/usr/lib/hbase/lib/client-facing-thirdparty/commons-logging-1.2.jar
/usr/lib/hbase/lib/client-facing-thirdparty/htrace-core4-4.2.0-incubating.jar
/usr/lib/hbase/lib/client-facing-thirdparty/jcl-over-slf4j-1.7.33.jar
/usr/lib/hbase/lib/client-facing-thirdparty/jul-to-slf4j-1.7.33.jar
/usr/lib/hbase/lib/client-facing-thirdparty/reload4j-1.2.19.jar
/usr/lib/hbase/lib/client-facing-thirdparty/slf4j-api-1.7.33.jar
/usr/lib/hbase/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar
/etc/hadoop/conf
/usr/lib/hadoop/lib/*
/usr/lib/hadoop/.//*
/usr/lib/hadoop-hdfs/./
/usr/lib/hadoop-hdfs/lib/*
/usr/lib/hadoop-hdfs/.//*
/usr/lib/hadoop-mapreduce/.//*
/usr/lib/hadoop-yarn/./
/usr/lib/hadoop-yarn/lib/*
/usr/lib/hadoop-yarn/.//*
/etc/hadoop/conf

Let me investigate whether we still need those symlinks.

Let me investigate whether we still need those symlinks.

Anyway we can commit the patch here before further refactoring. The patch looks harmless.


D_real.backward(mone) RuntimeError: invalid gradient at index 0 - expected shape [] but got [1]

while training wgan-gp i got this error. can you help to sove this . thanks in ADVANCE

use
'''
D_real = D_real.mean().unsqueeze(0)
'''

I have the same issue. could you tell me how to do

@ramesh720 Hi, I have the same issue. could you tell me how to do

use
one = torch.tensor(1, dtype=torch.float)
mone = one * -1


[GOBBLIN-793] Separate SpecSerDe from SpecCatalogs and add GsonSpecSerDe

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-793

Description

[x] Here are some details about my PR, including screenshots (if applicable):

Separate SpecSerDe from SpecCatalogs out to JavaSpecSerDe

Add GsonSpecSerDe (for now only supports FlowSpec since a serializer/deserializer must be implemented for each Spec)

Improve SpecSerDeException to instead be thrown inside serialize/deserialize methods

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Added FlowSpecSerializationTest

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@autumnust can you take a look? thanks

+1 LGTM.

@sv2000 please merge


Rename @babylonjs/serializers to @urusgraphics/babylonjs/serializers

I'm sorry, this was a mistake.


Add BSD-2-Clause license file

As specified at https://github.com/bramstein/typeset/blob/c56da3a51ab57b3c20468c0a2ff5bcc8aa9291da/src/linebreak.js#L8
Copied from GitHub's own templates: https://github.com/bramstein/typeset/community/license/new?branch=master
This makes it more visible, even GitHub will pick it up and display it:

Thanks!


Chef 15: knife ec2 server create fails if we don't set it in knife.rb and paas in CLI as `--ssh-user``

Version:
knife-ec2 v0.19.16 and chef v15.0.293 on workstation (Windows)
Environment:
Ubuntu 18.04 Node
Scenario:
knife ec2 server create -N "dh-test-node-ubu" -I "ami-005bdb005fb00e791" --identity-file 'E:\Backup\Project\chef-starter\chef-repo\identity-key-aws\dh-aws-key.pem' --ssh-user ubuntu  --flavor t2.micro -c "E:\Backup\Project\chef-starter\chef-repo\.chef\knife.rb"

Steps to Reproduce:
Please run above command to create the server from workstation.
Expected Result:
It should include --ssh-user as well while returning values through config_source  if set in CLI and not in knife.rb from https://github.com/chef/chef/blob/cdcbe629ef44b8206e74db00148b04803a333892/lib/chef/knife.rb#L384-L389
Actual Result:
Returns root as default value due to https://github.com/chef/chef/blob/cdcbe629ef44b8206e74db00148b04803a333892/lib/chef/knife/bootstrap.rb#L1002 and fails with Train::PlatformDetectionFailed

@marcparadise FYI, Thanks.


./configure should fail if the bazel commands fail

The configure script now calls bazel clean and bazel fetch (as of ~Aug 2016).  If they fail, the script should exit with a nonzero exit status rather than continuing onwards.  This is important for automated build systems to detect failed configure calls.

@davidzchen added these to configure script.
David, is this the case at the moment?

The reason why the script continues even when commands fail is because the script does not set -e. Perhaps we should set set -e and some other shell settings in the configure script as described by Writing Safe Shell Scripts.

@martinwicke, is there a reason we do not have set -e in the configure script?

If you use set -e, I'd put it at the end after all the configuration is done, or put it in the bazel_clean_and_fetch() function and unset it when it exits that function. Otherwise stuff like default_python_bin_path=$(which python) will fail the script if there is no python on the path.

Philosophically speaking, I'd prefer for the configure script not to run any bazel commands (esp fetch, since that does a lot of work). It would be more "normal" to write some config files and have the build step clean/fetch if it detects a config change.
But.. if this is really complicated, I dont feel very strongly, just figured I'd voice my opinion.

+cc @damienmg
@llchan That is a good point. For those lines where we have command substitution, would it be idiomatic to do the following to prevent the non-zero exit code:
default_python_bin_path=$(which python || true)

It is not ideal to have to run those bazel commands in the configure script. We are working on improving the cache invalidation for external repositories and have plans to let repository rules declare which environment variables they consume and would invalidate the repository if they change.
At the same time, ideally, a shell script as non-trivial as configure should try to be as strict as possible and exit immediately if any of the commands fail.

set -e is generally a good idea, unless we can include error messages
better than the ones generated by the failing commands.
On Fri, Sep 30, 2016 at 19:16 David Z. Chen<EMAIL_ADDRESS>wrote:

+cc @damienmg https://github.com/damienmg
@llchan https://github.com/llchan That is a good point. For those lines
where we have command substitution, would it be idiomatic to do the
following to prevent the non-zero exit code:
default_python_bin_path=$(which python || true)
It is not ideal to have to run those bazel commands in the configure
script. We are working on improving the cache invalidation for external
repositories and have plans to let repository rules declare which
environment variables they consume and would invalidate the repository if
they change.
At the same time, ideally, a shell script as non-trivial as configure
should try to be as strict as possible and exit immediately if any of the
commands fail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/4662#issuecomment-250873132,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjO_b3G4q6e6_S0udyuh5pk-ziuj_3Mks5qvZgygaJpZM4KKgF0
.


Provision Traffic Manager profile per environment

Via terraform, we should provision a traffic manager profile that has endpoints identified by the IP addresses provisioned by #207

The traffic manager profile is created per environment with Multiple AKS Clusters Deployment with Azure Traffic Manager template. Are you using this template or a different one?


Selection line

is there is a way to customize selection line?
like color or make it dotted

I didn't understand what you wanted.
Can you explain it more clearly?

the line that appears when you hover on the chart
how to customize it in terms of color thickness the tip of it and so on
Thank you

Please checkout our sample:
LineChartSample 3 (Source Code)


thin frontal bone

thin frontal bone (Child of MP:0000107)
DEF: reduced thickness of the single bone forming the forehead and roof of the eye orbit
SYN: thinned frontal bone
SYN: decreased frontal bone thickness
SYN: reduced frontal bone thickness

thin frontal bone MP:0030275


Update docs to remove reference to ChocolateySoftware.ChocolateyManagement.Web.Mvc

Starting with the 0.6.0 version of Chocolatey Central Management, we are now using the In-Process Model for hosting the Web Application within IIS.
Previously, when running, a process called ChocolateySoftware.ChocolateyManagement.Web.Mvc would be created.
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/in-process-hosting?view=aspnetcore-5.0

Since ASP.NET Core 3.0, in-process hosting has been enabled by default for all app deployed to IIS.

Some parts of our docs refer to restarting this process, so we need to update these docs to reflect that this is different starting with 0.6.0.

This was taken care of here: https://github.com/chocolatey/docs/pull/226


Download node-v48-linux-arm.tar.gz got 403

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.8/node-v48-linux-arm.tar.gz
I have tried :

node0.10 / node6.9.5
--unsafe-perm

didn't work for me

I am able to build a package, is there a place where I can upload it ?
https://github.com/mapbox/node-sqlite3/pull/1028

Closing as this should no longer be relevant 🙂


onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: input_image Got: 3 Expected: 4 Please fix either the inputs or the model.

I had this type of error what can I do ?

I had this type of error what can I do ?

Hello, have you solved it？

i had this problem, how to solve it?


Overflow and x-sidescrolling on mobile

Hi Emiel!
I really like your simple theme, but I think I found a small bug (or at last lack of documentation :p )
If the portrait image is larger than the 300x300 example, the page doesn't render nicely on small viewports (phones). It will enable a side scrollbar and put the portrait picture offcentre. It would be nice if that could be improved - or at least recommend people to only use 300x300.

Just found out, it still does it if the viewport is small enough (even on the demo page)

Hi, thank you for your kind words!
I cannot reproduce the behaviour you're describing on the newest version of the theme. This recent commit should make the portrait image scale on smaller viewports.
I did see it happening on the demo page on the theme site, though, so I guess the theme site hasn't updated to the latest version of this theme yet. Could you check whether this still happens with the newest version?

 It is fixed :)
Sorry - somehow I had 2.3.0 checked out, instead of the master... Thanks for your quick response!


Improve ClickHouse performance

What do we show currently?

total number of requests
requests per minute
number of unique operations
success and failure rates
p90, p95, p99 of latency
top 5 clients names (with number of requests)
top 5 client versions (with number of requests)
operations over time (total and failures)
RPM over time
latency over time
latency histogram (super heavy)
list of unique operations (with p90, p95, p99, number of requests, failure rate)

What filters do we have?

date range
operations

What filters do we want to have?

client names
date range
operations (if the number of selected operations is greater than half, let's use NOT IN (not-selected-list)

What else do we want to show?

hide histogram
dedicated page for a single operation

CREATE TABLE IF NOT EXISTS default.operations_registry
  (
    target LowCardinality(String),
    hash String,
    name String,
    body String,
+   coordinates Array(String) CODEC(ZSTD(1)), # hash is built out of body, name and coordinates so we can now store coordinates here - reduces storage size
    operation String,
    inserted_at DateTime('UTC') DEFAULT toDateTime(0)
  )
  ENGINE = ReplacingMergeTree(inserted_at)
  PARTITION BY target
  ORDER BY (target, hash)
  SETTINGS index_granularity = 8192

CREATE TABLE IF NOT EXISTS default.operations
  (
    target LowCardinality(String) CODEC(ZSTD(1)),
    timestamp DateTime('UTC'),
    expires_at DateTime('UTC'),
-   schema Array(String) CODEC(ZSTD(1)), # reduce the size (coordinates are now part of operations_registry)
    hash String CODEC(ZSTD(1)),
    ok UInt8 CODEC(ZSTD(1)),
    errors UInt16 CODEC(ZSTD(1)),
    duration UInt64 CODEC(ZSTD(1)),
    client_name LowCardinality(String) CODEC(ZSTD(1)),
    client_version String CODEC(ZSTD(1)),
-   INDEX idx_schema schema TYPE bloom_filter(0.01) GRANULARITY 3, # we don't use it
-   INDEX idx_ok ok TYPE minmax GRANULARITY 1, # we don't use it
-   INDEX idx_errors errors TYPE minmax GRANULARITY 1 # we don't use it
+   INDEX idx_client_name (client_name) TYPE set(0) GRANULARITY 1, # allows to drop some rows when filtering by client_name
+   INDEX idx_hash (hash) TYPE set(0) GRANULARITY 1 # allows to drop some rows when filtering by hash
  )
  ENGINE = MergeTree
  PARTITION BY toYYYYMMDD(timestamp)
- PRIMARY KEY (target, hash, timestamp)
+ PRIMARY KEY (target, hash)
  ORDER BY (target, hash, timestamp)
  TTL expires_at
  SETTINGS index_granularity = 8192

New table (daily aggregation)
CREATE MATERIALIZED VIEW IF NOT EXISTS default.operations_new_daily_mv
  (
      target LowCardinality(String) CODEC(ZSTD(1)),
      timestamp DateTime('UTC'),
      hash String CODEC(ZSTD(1)),
      total UInt32 CODEC(ZSTD(1)),
      total_ok UInt32 CODEC(ZSTD(1)),
      duration_avg AggregateFunction(avg, UInt64) CODEC(ZSTD(1)),
      duration_quantiles AggregateFunction(quantiles(0.75, 0.9, 0.95, 0.99), UInt64) CODEC(ZSTD(1))
  )
  ENGINE = SummingMergeTree
  PARTITION BY toYYYYMMDD(timestamp)
  PRIMARY KEY (target, hash)
  ORDER BY (target, hash, timestamp)
  SETTINGS index_granularity = 8192 AS
  SELECT
    target,
    toStartOfDay(timestamp) AS timestamp,
    hash,
    count() AS total,
    sum(ok) AS total_ok,
    avgState(duration) AS duration_avg,
    quantilesState(0.75, 0.9, 0.95, 0.99)(duration) AS duration_quantiles
  FROM default.operations
  GROUP BY
    target,
    hash,
    timestamp

Numbers for ~60M operations
SELECT
  quantilesMerge(0.75, 0.90, 0.95, 0.99)(duration_quantiles) as percentiles
FROM operations_new_hourly_mv
PREWHERE timestamp >= toDateTime('2022-07-17 11:13:00', 'UTC') AND timestamp <= toDateTime('2022-08-17 11:13:00', 'UTC')

0.843 s -> 0.1 s

SELECT
  quantilesMerge(0.75, 0.90, 0.95, 0.99)(duration_quantiles) as percentiles
FROM operations_new_hourly_mv
PREWHERE timestamp >= toDateTime('2022-07-17 11:13:00', 'UTC') AND timestamp <= toDateTime('2022-08-17 11:13:00', 'UTC')

0.9 s -> 0.1 s

SELECT
  multiply(
    toUnixTimestamp(
      toStartOfInterval(timestamp, INTERVAL 8 HOUR, 'UTC'),
    'UTC'),
  1000) as date,
  quantilesMerge(0.75, 0.90, 0.95, 0.99)(duration_quantiles) as percentiles,
  sum(total) as total,
  sum(total_ok) as totalOk
FROM operations_new_hourly_mv
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY date
ORDER BY date

1.003 s -> 0.1 s

SELECT
  COUNT(*) as total,
  client_name,
  client_version
FROM operations_new
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY client_name, client_version

->

SELECT
  sum(total) as total,
  client_name,
  client_version
FROM client_daily
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY client_name, client_version

2.1 s -> 0.1 s

The overall storage size should be ~5x less than before.
The bytes per row metric shows an improvement from ~22 to ~4.5.

The payload size of each insert statement will be smaller which means we will be able to process more at a time.

Migration plan:
TBA

Numbers for ~2.5B operations
SELECT
  quantilesMerge(0.75, 0.90, 0.95, 0.99)(duration_quantiles) as percentiles
FROM operations_new_hourly_mv
PREWHERE timestamp >= subtractDays(now(), 30)

4.173 s -> 0.832s

SELECT
  multiply(
    toUnixTimestamp(
      toStartOfInterval(timestamp, INTERVAL 8 HOUR, 'UTC'),
    'UTC'),
  1000) as date,
  quantilesMerge(0.75, 0.90, 0.95, 0.99)(duration_quantiles) as percentiles,
  sum(total) as total,
  sum(total_ok) as totalOk
FROM operations_new_hourly_mv
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY date
ORDER BY date

4.122 s -> 0.844 s

SELECT
  COUNT(*) as total,
  client_name,
  client_version
FROM operations_new
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY client_name, client_version

->

SELECT
  sum(total) as total,
  client_name,
  client_version
FROM client_daily
PREWHERE timestamp >= subtractDays(now(), 30)
GROUP BY client_name, client_version

56 s -> 0.057 s

Implement #193 as part of this task

TODO:

the structure of schema_coordinates_daily (with TTL and total)
schema coordinates in operations_registry + expires_at
write an updated version of OperationsReader
write an updated version of the usage-ingestor service


test: update kernel module name

TravisCI switched to use ubuntu xenial as default. The previous kernel
module package name is no longer available. Update the kernel module
package name.

Looks like it's still rolling out.
Builds for this project is still at Runtime kernel version: 4.4.0-101-generic.

It's time for this https://travis-ci.org/storageos/cluster-operator/jobs/536286792#L12
TravisCI has updated our builds to use gcp kernel.


fixtures not working when deployed to myapp.meteor.com

After deploying my app to meteor.com the data in fixtures.js is not loading. It works fine in development. Any ideas?

Got the same problem. What was the solution?


Fix README headings

Hi,
I noticed that the headings in the readme on this project weren't displaying correctly.
Awesome looking project!

Merged! Thanks!


Remove version 2 from GitHub repo text

The GitHub repo text is currently:
Integration bundle for DoctrineExtensions by l3pp4rd in Symfony2 http://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.html

"Symfony2" should be changed to "Symfony".
Btw: Is l3pp4rd right or shouldn't it be Stof? I don't know. @stof

DoctrineExtensions is by @l3pp4rd. I only wrote the bundle, not the extensions

Ah sure, okay. :+1:


Allow edit command to edit specific tag instead of resetting all tags for the task

something like edit 1 tag 1, #newtag

dropped


how to test with my photos

hi,
I want to test my own picture, does the network input have to have the corresponding MASK.PNG?

If you only wish to do inference with the network, you only need the RGB image as the input (see these lines).
Also please refer to #12 on how to modify the code to test with your own image.


Beyla 1.6 crashes with 'slice bounds out of range'

I updated to Beyla 1.6 and am now using the following configuration (Beyla DaemonSet in Kubernetes with metadata enabled):
routes:
  unmatched: heuristic
discovery:
  services:
    - exe_path: .*(zulu|elasticsearch).*

Now we are seeing constant crashes with panic with the error below. I have enabled BEYLA_PRINT_TRACES, but that does not seem to point towards the problem. The panic seems to trigger before the trace is printed.
The right bound of the slice is always 256, the left bound changes every time but is always higher than the right bound thus triggering the panic.
panic: runtime error: slice bounds out of range [268:256]

goroutine 108 [running]:
github.com/grafana/beyla/pkg/internal/ebpf/common.ReadTCPRequestIntoSpan(_)
	/opt/app-root/pkg/internal/ebpf/common/tcp_detect_transform.go:38 +0x2ac
github.com/grafana/beyla/pkg/internal/ebpf/common.ReadHTTPRequestTraceAsSpan(_)
	/opt/app-root/pkg/internal/ebpf/common/common.go:109 +0x4a5
github.com/grafana/beyla/pkg/internal/ebpf/common.(*ringBufForwarder).processAndForward(0xc002202000, {{0xc002637800, 0x180, 0x180}, 0x0}, 0xc000e0aba0)
	/opt/app-root/pkg/internal/ebpf/common/ringbuf.go:173 +0x16d
github.com/grafana/beyla/pkg/internal/ebpf/common.(*ringBufForwarder).readAndForwardInner(0xc002202000, {0x238ecd0, 0xc000e12150}, 0xc000e0aba0)
	/opt/app-root/pkg/internal/ebpf/common/ringbuf.go:159 +0x159
github.com/grafana/beyla/pkg/internal/ebpf/common.(*ringBufForwarder).sharedReadAndForward(0xc002202000, {0x23a90d8, 0xc00142f590}, {0xc002a22070, 0x1, 0x1}, 0xc000e0aba0)
	/opt/app-root/pkg/internal/ebpf/common/ringbuf.go:107 +0x1fb
github.com/grafana/beyla/pkg/internal/ebpf/httpssl.(*Tracer).Run(0xc001619800, {0x23a90d8, 0xc00142f590}, 0xc000e0aba0)
	/opt/app-root/pkg/internal/ebpf/httpssl/httpssl.go:180 +0xfa
created by github.com/grafana/beyla/pkg/internal/ebpf.(*ProcessTracer).Run in goroutine 47
	/opt/app-root/pkg/internal/ebpf/tracer_linux.go:35 +0x233

Thanks so much for reporting this! We are working on a fix and a release.

@marevers could you try Beyla 1.6.1 and confirm that the issue is closed?

@mariomac Yes, 1.6.1 fixed the issue. The Beyla containers are no longer crashing. Thank you!


Added sorting an array according to another array

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Added sorting an array according to another array in c++ in sorting section and updated readme section also.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#6508

ok, I will do

Changes are done.

Please check @ankitaggarwal23


Origin/UI changes

minor UI updates to the AGS, HPI and DEG tabs.
The AGS tab now includes a list of other tabs compatible with user-defined gene sets.
The HPI tab now includes an "under-development" tag.
The table in the DEG tab now comes with help text indicating the intended use of the associated buttons.

All good, just tweaked the way the table help text was rendered for clarity (including the CPV table help text)


stop destructuring state on the React client

We currently destructure the state object on the React client: source.
This allows you to access G as props.G rather than having to do props.state.G.  However, it does cause name clashes between properties in the game state and other props that are passed to the React client (for example plugins).
The proposal is to stop destructuring the state object.

One thing that could be confusing about this is that state means something in React, so props.state is confusing.  We'd have to rename it to something like gameState, which could also be confused with just the user-controlled game state G.

Maybe use a sort of namespace instead of state? Something like bgio?

I personally don’t mind overly the fact that props.state is similar to the React naming convention. It’s most confusing in class components where you could have this.state and props.state, but with function components it’s less likely there will be a variable actually named state.
This is also a prop that will very likely be destructured early in the component tree, so users will likely not be passing a state prop between lots of components. In fact, I would suggest showing something like this in documentation:
function Board (props) {
  const { G, ctx } = props.state;
  return (
    <div>
      <Score value={G.score} />
      <TurnCounter count={ctx.turn} />
    </div>
  )
}

If you do think an alternative name is essential, might store be viable?
It might also make sense to discuss how to structure namespaces for plugins more generally before deciding for sure. Currently the situation we’re trying to resolve is:
{
  plugins: {}, // plugin data
  plugins: {}, // plugin dispatchers
}

If we add support for client plugins as briefly mentioned in #632, we might end up with a third plugins namespace. This RFC would resolve the current conflict, but how would we resolve that?

Another question around the interface for plugins on the client:
Currently state is available at plugins[name].data, which mirrors the data/api distinction of plugins, but if we’re not going to combine these on the client — e.g. { data, dispatch, ...etc } — the data namespace might be unnecessarily verbose. state.plugins[name] should probably point directly to the data.

Re: the state destructuring, you could get the best of both worlds, by pre-destructuring the state fields you want as top-level properties (like G, ctx, isActive, and isConnected?) and passing those explicitly, and allowing the others to pass as something like gameState:
      if (board) {
        const { G, ctx, isActive, isConnected, ...gameState } = state;
        _board = React.createElement(board, {
          // ...state,        // <=== removed
          ...this.props,
          G,                  // <=== added
          ctx,                // <=== added
          isActive,           // <=== added
          isConnected,        // <=== added
          gameState,          // <=== added, all "other" state
          isMultiplayer: !!multiplayer,
          moves: this.client.moves,
          events: this.client.events,
          gameID: this.client.gameID,
          playerID: this.client.playerID,
          reset: this.client.reset,
          undo: this.client.undo,
          redo: this.client.redo,
          log: this.client.log,
          gameMetadata: this.client.gameMetadata,
        });
      }

I'm still very new to using boardgame.io, so I defer to you as to which values are "worthy" of being escalated to top-level props, and which ones should stay under gameState.


Flutter causes Mac OS Crash 3

Hi,
I'm using flutter now for the last 2years on my machine. A few weeks ago I had the same problem like i have it again - but i do not have any clue why and how to resolve it.
When I run the "flutter run" command, the XCode Build is working and for some seconds i can see the next task "compiling, signing and...." and then suddenly it causes my Mac OS reboot. It happens now every time which makes me impossible to work on flutter. It is same as a few weeks ago.
Specs from my machine: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports) - System Version: macOS 11.6 (20G165) - Kernel Version: Darwin 20.6.0
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en)
I've already created an issue for this problem here but after it was resolved magically the issue was closed.
This is the issue I have created: here
I read some posts that some applications may cause a "kernel panic" but I'm not sure which app this is. And why does this happen now? (like here )
Any idea? Any help from your side? @darshankawar any further points were I can look at?
I have added some text files from the crash report - I hope this helps. if you see some sensitive data please be so kind and delete it.
hi @stuartmorgan - please do not just close the issue. I just had a conversation with the apple support guys and they're telling me that this is not something simulator-related. in fact I've tried to open the Xcode project and build the app there. I did not face any issues there. any idea why? why is crashing when I'm running the "flutter run" command in vscode and not when I'm building the via Xcode with the respective simulated device?
Hopefully, we can fix this quickly.
Thank you
crash_01.txt
crash_02.txt
crash_03.txt
!

Hi @buyildir, Thanks for filing the issue. Please share the complete output of flutter doctor -v.
A couple of  questions

Does the reboot happens when building the application from a specific IDE /  All IDE's
Doe the issue reproduce when running a native IOS app (not a flutter app)?
Does the Android app compile and run on an Emulator?
Does flutter build fine on other similar macs?
Do you have any Anti virus installed on your system?
if yes there is a related issue: https://github.com/flutter/flutter/issues/70596
Please provide the above info to investigate further.

Thanks

hi @maheshmnj
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.60.2)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
xyz@MacBook-Pro timesheetapp % flutter doctor -v
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-x64, locale en)
• Flutter version 2.5.2 at /Users/xyz/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (5 days ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.0, Build version 13A233
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.60.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.27.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.61
! Doctor found issues in 2 categories.
Does the reboot happens when building the application from a specific IDE / All IDE's

I'm using VSCode. Problem occurs when running the "flutter run" and "flutter build ios" command.

Doe the issue reproduce when running a native IOS app (not a flutter app)?

I have not tested a native IOS app but i have opened the previously generated xcode project from my flutter app and I'm able to run the simulator from xcode. I'll test another native ios app later.

Does the Android app compile and run on an Emulator?

did not test it. this case is not necessary for me.

Does flutter build fine on other similar macs?

not tested yet. but the build has worked previously on older MacOS and also on other Mac. Need to test it on other machine with latest code.

Do you have any Anti virus installed on your system?

yes i have McAfee installed. did not find any solution/idea to my issue in #70596

thank you

Closing as a duplicate of https://github.com/flutter/flutter/issues/91251. Please don't deliberately file duplicate issues because you disagree with the outcome; I can reply to your comment there.

hi @stuartmorgan @maheshmnj  so what am i supposed to do now? both issues are closed now. if closed issues are still read, reviewed and answered then ok - sorry for creating a duplicate.

@buyildir  as mentioned please follow up on the original issue. Also additionally please check if disabling the anti-virus makes any difference.
Thanks