text:
Add definitions for axios

Definitions for https://github.com/mzabriskie/axios

@marcelbuesing Thanks mate!

authors: horiuchi marcelbuesing

repo: borisyankov/DefinitelyTyped


text:
Add test to verify WellKnownKeys are valid ECC keypairs

The WellKnownKeys were regenerated using the latest vanity client which creates valid Scalar private keys to generate the key pairs.

Let's not add 36k keys tho

Let's not add 36k keys tho

Reduced it to include from A -> ZZ which gives us 701 indexed keys.

Let's not add 36k keys tho

Reduced it to include from A -> ZZ which gives us 701 indexed keys.

Now has keys A -> AZZ which gives 1378 keys like it was previously.

core.exception.AssertError@source/agora/consensus/validation/Block.d(474): Enrollment: UTXO not found

And the integration fails because Faucet doesn't create valid transactions anymore, so we'll need an update.

https://github.com/bosagora/agora/blob/60ecf88b8bd6deec6d725993f0a9e7f28acbd797/source/agora/consensus/validation/Block.d#L503
It's just a matter of changing 0 to 1 so that the enrollments refer to an actual UTXO.

https://github.com/bosagora/agora/blob/60ecf88b8bd6deec6d725993f0a9e7f28acbd797/source/agora/consensus/validation/Block.d#L503
It's just a matter of changing 0 to 1 so that the enrollments refer to an actual UTXO.

Better to use GenesisSpendable. I'll update it.

No, it's the opposite of genesisSpendable

No, it's the opposite of genesisSpendable

Yes just realised :-)

Faucet doesn't create valid transactions anymore

Do we need to change the keys generation?

All :green_circle:  except for system integration test.
I updated Faucet in my dockerHub but now it seems the nodes ban themselves so it still fails:-
node-2_1  | 2021-03-20T13:37:29.772292809Z 2021-03-20 13:37:29,583 Info [agora.common.BanManager] - BanManager: Address http://node-2:2826 banned until 1616333849

Added updated config.yaml files used for the system integration test with the new validator keys.

Fixed the suggestions, and also solved a test failures in SCPPrettyPrinter.

source: gharchive/pull-request

authors: Geod24 hewison-chris kchulj

repo: bosagora/agora

license: MIT

license_type: permissive

license_source: github-api


text:
Query simulation clock

Apologies Dr/Mr Lange,
I am only new to GitHub and unsure how to communicate best with you.  This is more of a feature suggestion than an issue.  I hope I am not being too presumptuous by making suggestions.  Feel free to ignore me :-)
regards, Craig
Do your libraries include a facility to drive the /clock topic when the launch file sets the simulation parameter ?
If not, I can teach myself how to manually do this, but it would seem a natural extension to your library might be a modelica based facility that would allow this.  This facility could allow one to execute the FMU's in faster/slower than real time for testing purposes, without the developer having to know how to construct an external ROS Clock Server.

Hi Craig, just call me Ralph, please. Opening an issue for such a feature request is absolutely fine.
Just to recap, to ensure that we have the same understanding:

When using the fmi_adapter library only (i.e. the class fmi_adapter::FMIAdapter from include/fmi_adapter/FMIAdapter.h), you’ll have to trigger the simulation steps from your application code. In this case, you have full control over the simulation speed.
When using the fmi_adapter node (see src/fmi_adapter_node.cpp), the simulation is triggered automatically using a normal ROS timer (http://wiki.ros.org/roscpp/Overview/Timers). The step-size can be adjusted by the parameter update_period. The ROS Timer uses the ROS Clock, from /clock, when available. Hence, the fmi_adapter node will automatically run according to simulation time.

Extending the fmi_adapter library and node with a function to run the simulation time is fairly easy. I regularly speed up the clock in my unit-tests:
std::shared_ptr<std::thread> runner(new std::thread([&enabledFlag]() {
  const ros::Duration SIM_STEP(0.010);
  const double SIM_SPEED = 5;  // 5x faster than real-time
  while (enabledFlag) {
    std::this_thread::sleep_for(
        std::chrono::nanoseconds(static_cast<std::int64_t>(SIM_STEP.nsec / SIM_SPEED)));
    ros::Time::setNow(ros::Time::now() + SIM_STEP);
  }
}));

I'm hesitating to put such functionality directly in the fmi_adapter library and node. As explained above, the library has no built-in functionality to trigger the simulation steps at all. The fmi_adapter node has such functionality, but for separation of concerns, I would place it in a separate node of the fmi_adapter package. Of course, I may provide a launch file that starts both nodes together. What do you think about this architecture?
Best regards, Ralph

@githubfrond, a question about your use-case: Is the FMI-based simulation dominating the computing time, i.e. should be simulation time be slowed down depending on the FMI-based simulation?
In this case if fully agree with you that the simulation clock (topic /clock) should be published directly from the fmi_adapter node and not be factored out in a separate node.

Hi Ralph,
that seems like a perfect approach.
That would also provide example code to those interested in doing anything
more complicated. Unfortunately the ROS website itself has only disjointed
information about clocks, so such sample code would be useful. Thank you
for the link, and all your feedback.
While researching this topic I  came across an interesting comment though.
The author was looking for a method for each FMU to indicate it had
finished updating it's outputs for the current time step. The idea being
that the publisher to the clock could watch these signals from all FMUs,
and only increment the clock once all FMUs indicate completion. What are
your thoughts about this concept?
I hope you and those close to you are well. Thanks for all your feedback,
and the excellent adapter. Looking forward to developments.
Best regards, Craig
On Thursday, March 19, 2020, Ralph Lange notifications@github.com wrote:

Hi Craig, just call me Ralph, please. Opening an issue for such a feature
request is absolutely fine.
Just to recap, to ensure that we have the same understanding:

When using the fmi_adapter library only (i.e. the class
fmi_adapter::FMIAdapter from include/fmi_adapter/FMIAdapter.h), you’ll
have to trigger the simulation steps from your application code. In this
case, you have full control over the simulation speed.
When using the fmi_adapter node (see src/fmi_adapter_node.cpp), the
simulation is triggered automatically using a normal ROS timer (
http://wiki.ros.org/roscpp/Overview/Timers
http://wiki.ros.org/roscpp/Overview/Timers). The step-size can be
adjusted by the parameter update_period. The ROS Timer uses the ROS Clock,
from /clock, when available. Hence, the fmi_adapter node will automatically
run according to simulation time.

Extending the fmi_adapter library and node with a function to run the
simulation time is fairly easy. I regularly speed up the clock in my
unit-tests:
std::shared_ptrstd::thread runner(new std::thread(&enabledFlag {
const ros::Duration SIM_STEP(0.010);
const double SIM_SPEED = 5;  // 5x faster than real-time
while (enabledFlag) {
std::this_thread::sleep_for(

    std::chrono::nanoseconds(static_cast<std::int64_t>(SIM_STEP.nsec / SIM_SPEED)));

ros::Time::setNow(ros::Time::now() + SIM_STEP);

}
}));
I'm hesitating to put such functionality directly in the fmi_adapter
library and node. As explained above, the library has no built-in
functionality to trigger the simulation steps at all. The fmi_adapter node
has such functionality, but for separation of concerns, I would place it in
a separate node of the fmi_adapter package. Of course, I may provide a
launch file that starts both nodes together. What do you think about this
architecture?
Best regards, Ralph
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/boschresearch/fmi_adapter/issues/3#issuecomment-601029856,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOZMFLHPXQ3OS3D6ZFKL24TRIHDCXANCNFSM4LO6GBGA
.

Hi Ralph, in answer to your query, I am looking at using ROS in a rather unusual way. I am modelling a system that is comprised of various conceptually separate subsystems, each of which I can model individually. I'm using ROS to interconnect the different subsystem models in the overall system model, and this allows me to easily assemble subsystems, switch out different compments, or simply switch off/on different components without having to re-architect the overall model. Hence, at this stage, all of my work is in simulation time...no wallclocks.

Hi Ralph,
I have created two launch files now, similar to your suggestion.  One in Python with /use_sim_time FALSE which picks up the wall clock and accelerates time to push into the /clock topic, and the second is my collection of FMU built from your adapater tools and connected up with /use_sim_time TRUE so that they respond to the /clock.
Now I am trying to learn how to adjust both ROS normal update period, as well as how to suitably adjust the step sizes used natively by the FMU.  I'll let you know if I have trouble understanding the documentation.  Thanks for your patience. Craig

Hi Craig, I created a super-simple node named sim_clock_node, which runs the given FMU at maximum speed and advances the ROS time on /clock accordingly. Please find it in the branch prototype/sim_clock_node at https://github.com/boschresearch/fmi_adapter/blob/prototype/sim_clock_node/fmi_adapter/src/fmi_adapter_sim_clock_node.cpp.
The implementation does not provide any mechanisms to synchronize or wait for other fmi_adapter nodes or normal ROS nodes. A good solution for such synchronization should consider dependencies between the different FMUs, potential cycles, different step sizes, and many more aspects. That's exactly the task of a master algorithm according to the FMI standard. For the use-case of simulating multiple subsystems together, it might be useful to look into relevant FMI tools or frameworks before building a similar framework based on ROS from scratch. (Please note that the FMI standard does not define the master algorithm itself, but only the interface between an FMU and any master algorithm.)

source: gharchive/issue

authors: githubfrond ralph-lange


text:
Playback Failed. One or more items failed to play

Your Environment

Add-on name: Jiotv
Add-on version: 2.0.0
Kodi version: Kodi 19.3
Operating system version/name: Android 8.1 (Android TV Box)
Using from country: India

Describe the bug
Since yesterday, I am getting the following error when playing most of the channels (see screenshot).
Some channels play and some don't giving this error. Ex: IndiaTV, Aaj Tak, Discovery Science. These channels show the error.
To Reproduce
Steps to reproduce the behavior:
Play any of the above mentioned channels.
Expected behavior
Supposed to play without an error
Screenshots

Additional context
The above mentioned channels play well on the official JioTV android app.
Tried to clear cache in Add-on settings
Tried to logout and relogin
Debug log
Sorry, I can't do this at the moment.

Seems fixed now.

No not yet fixed, still giving the above issues for majority of the channels

same here...giving playback error....and freezes screen

Refer to #277

Disable Extra channels from Settings. It's causing because of server issue from Jio

Seems fixed now.

It was fixed then but the issue is seen again. Followed this link and issue seems to be fixed
https://github.com/botallen/repository.botallen/issues/277

Not Fixed at all since three days, not even a single channel is working without disabling extra hd channel, and also after disable extra channel sometime channel work but after some time giving playback error, kindly fix if you can, either jio change something on their server or something changed in PVR Extension after last update.

authors: Hishantik Nzzyme beastmaster-bit elite-graphix iMro0t vin2015


text:
Meteor recommends using native bcrypt implementation

When launching the Botfront service with the most recent release v0.18.1, the following information is getting printed by Meteor:
botfront_1      | Note: you are using a pure-JavaScript implementation of bcrypt.
botfront_1      | While this implementation will work correctly, it is known to be
botfront_1      | approximately three times slower than the native implementation.
botfront_1      | In order to use the native implementation instead, run
botfront_1      |
botfront_1      |   meteor npm install --save bcrypt
botfront_1      |
botfront_1      | in the root directory of your application.

I guess, in the most usual deployments, the performance boost might be insignificant. Nonetheless it might save some resources in the long run.

We had problems building the Docker image with native bcrypt. Since it's only used for the login, we can live with the performance impact for now

authors: beevelop znat

repo: botfront/botfront


text:
[Feature request] Support sameSite attribute

Hi, is there any reason why this library couldn't support the sameSite attribute on cookies? Actually, is there any reason why this library couldn't support setting arbitrary attributes on cookies? I see that at the moment it's limited to the fields in CookieOptions, but I can't think of a reason why you wouldn't want to allow any attribute (future proof).
Happy to create a PR for this.

#11

authors: bouzuya nihakue

repo: bouzuya/cookie-storage

license: mit

license_source: bigquery


text:
Bower install does not pickup changes in private git repos

When dealing with private repos specified in a bower.json file as follows:
"dependencies": {
  ...,
  "my_private_lib": "git@github.com:my_org/my_private_lib.git"
  }

Bower install would not pickup the changes to the repo and simply return.
As soon as i would modify 'my_private_lib' by specifying a particular branch, it would fetch them, but it would not fetch the latest changes in that branch after the initial fetch.
Please advise. This reduces viability of bower for management of internal/private libraries.
This issue was mentioned by @robdodson 7months ago:
https://github.com/bower/bower/issues/107#issuecomment-12683200

It seems it also doesn't re-fetch if a hash is provided in the URL and later updated?

authors: aramk vladgurovich

repo: bower/bower


text:
[Task Tracker]: Polish UI & Code

[x] #173
[x] #176
[x] #177
[x] #178
[x] #180
[x] #181
[x] #182
[x] #183
[x] #184
[x] #185
[x] #186
[x] #187

All tasks done, closing tracker

repo: boxfish-studio/sugar-rush


text:
有些超大的图片加载的时候不显示

图片地址: http://wimg.spriteapp.cn/x/640x400/ugc/2016/09/21/57e1bf635a4e2.jpg
这个图片的尺寸是 640*17195.
加载相对小一些的图片是非常完美的,但是上面提到的这张图片就是加载不进去 也不报错,我试了一下在photoView中是可以显示出来的,imageView中也是可以的.希望有时间可以看看这个问题.(不止上面提到的这一张图片有问题,还有其他的比如 http://wimg.spriteapp.cn/x/640x400/ugc/2016/09/23/57e45fc869587.jpg)
最近我也在看你的这个控件.非常的赞

在demo中加在不出来是ImageLoader的问题，ImageLoader在加在大图的时候OOM了，在logcat里会有日志。你可以尝试使用demo中的分片加载来加载大图。

分片加载如何支持glide？

authors: LongAgoLong NiLuogege boycy815


text:
Rust symbol demangling

Is your feature request related to a problem? Please describe.
bpftrace currently doesn't support demangling Rust symbols, so when listing uprobes on Rust programs you get the mangled symbol name. This is a suboptimal user experience.
Unfortunately, Rust's name mangling scheme is different from C++, so the :cpp prefix doesn't work on Rust binaries.
For example:
❯ bpftrace --version
bpftrace v0.20.4
adam @ adams-nixos-desktop 🌐in nixos-configuration on  main
❯ sudo bpftrace -l 'u:/nix/store/71jzy8l7bqkw64fn4gnldrr248vqi2ly-ripgrep-14.1.0/bin/rg:cpp:*' | head -n 1
uprobe:/nix/store/71jzy8l7bqkw64fn4gnldrr248vqi2ly-ripgrep-14.1.0/bin/rg:cpp:"_$LT$aho_corasick..packed..teddy..builder..x86_64..SlimAVX2$LT$_$GT$$u20$as$u20$core..fmt..Debug$GT$::fmt::h5c8301c85bfe80c1"

Describe the solution you'd like
Introduce a :rust prefix to the bpftrace probe syntax that allows users to request automatic symbol demangling for Rust symbols in the same way that they request automatic symbol demangling.
LLVM has a rust demangler that we should be able to use: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Demangle/RustDemangle.cpp.
I'm happy to do the work, but since this would be my first contribution I wanted to discuss the idea before implementing it.
Describe alternative solutions or features you've considered
Use the mangled symbol names – not a great user experience.

not quite sure, but i think we can provide a general demangle prefix for both (Demangle.cpp)

as far as I know, LLVM has supported rust demangling since release/13.x. therefore, we can rely on LLVM to automatically use the appropriate rust demangler (or another one if necessary) when we apply the demangle prefix.

Oh good call - I'll give that a shot.

to fix your trouble check this solution click
maybe this will solve your problem.

authors: adammitha amiremohamadi batu3H

repo: bpftrace/bpftrace


text:
chore: rename trackingModules to features

Closes #22
Related to https://github.com/camunda/camunda-modeler/pull/3598#discussion_r1190428146

Do we also align folder names for features ("popupMenu" -> "popup-menu")?

I guess we can do that to align with the diagram-js/bpmn-js way

repo: bpmn-io/bpmn-js-tracking


text:
Discontinuous DateScale.

When plotting financial data - often there are datagaps for the weekend.
This is less evident when plotting line graphs but pretty obvious with bar plots
https://d3fc.io/api/discontinuous-scale-api.html has a discontinuity scale with features such as skipweekend - perhaps we should consider something similar?
As far as i can see currently need to use an Ordinal scale to achieve desired result.

Hello @DanielAristidou, the link above does not work. Can you post a new one?

authors: DanielAristidou acelere

repo: bqplot/bqplot


text:
Using GroupRequiredMixin while a user's role/group can be different according to the project he/she is working on?

Hi ! It may not be the appropriate place to post this issue but I thought I would try :-)
I would appreciate comments/help on this.
I would like to control the views seen by a user according to its role. However the user's role can be different according to which project he/she is working on...
I am happy to use Django groups nut I thought a multiple user type model could be more appropriate ... along the lines of this video  where @pydanny  is using Django Proxy Models.
Situation
I have a list of XX projects (proj01, proj02 , projXX, ...).
All these projects have their specific page that can be accessed through a specific url mysite/projXX/
I have multiple users: Adam, Bob, Caroline, Dany, Ed, ...
Each user can have several roles according to the project they are working on (e.g. manager, developer, documentarist, reviewer, editor, ...)
A user can have a different role according to the project. E.g. Adam can be reviewer on proj01 but editor on proj02 while Bob can be editor on proj01 but reviewer on proj02, etc..
I started defining multiple user types in the models.py file below (only reviewer and editor roles):
# accounts/models.py
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _

class User(AbstractUser):
    class Types(models.TextChoices):
        EDITOR= "EDITOR", "Editor"
        REVIEWER = "REVIEWER", "Reviewer"

    base_type = Types.EDITOR

    type = models.CharField(
        _("Type"), max_length=50, choices=Types.choices, default=base_type
    )

    name = models.CharField(_("Name of User"), blank=True, max_length=255)

    def get_absolute_url(self):
        return reverse("users:detail", kwargs={"username": self.username})

    def save(self, *args, **kwargs):
        if not self.id:
            self.type = self.base_type
        return super().save(*args, **kwargs)

class EditorManager(models.Manager):
    def get_queryset(self, *args, **kwargs):
        return super().get_queryset(*args, **kwargs).filter(type=User.Types.EDITOR)

class ReviewerManager(models.Manager):
    def get_queryset(self, *args, **kwargs):
        return super().get_queryset(*args, **kwargs).filter(type=User.Types.REVIEWER)

class EditorMore(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    gadgets = models.TextField()

class Editor(User):
    base_type = User.Types.EDITOR
    objects = EditorManager()

    class Meta:
        proxy = True

    def edit(self):
        return "Edition in progress"

class ReviewerMore(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    model = models.CharField(max_length=255)
    make = models.CharField(max_length=255)
    year = models.IntegerField()

class Reviewer(User):
    base_type = User.Types.REVIEWER
    objects = ReviewerManager()

    @property
    def more(self):
        return self.reviewermore

    class Meta:
        proxy = True

    def review(self):
        return "In Review"

Question:
What is the best way to handle the fact that the role of the user can change according to the project page he/she is visiting?
Example: If Adam is logged in and visits the page mysite/proj01/ I would like him to access only the content allowed for a reviewer while if Adam visit  mysite/proj02/, I would like the user to see only the content allowed to the editor.
Ideally, I would like each user to have its unique entry in the user database. I was thinking that the project-dependent role level could be stored as a dictionary? For example:
{'proj01':'reviewer', 'proj02':'editor', 'projxx': 'roleY', ... }

How would you django-braces to tackle this problem?
I opened a Stackoverflow post about this here

Looks like your SO post has an accepted answer. Closing.


text:
Syncing from upstream zalando/patroni (master)

bt_gitbot

Pull Request Test Coverage Report for Build 4516896090

2 of 2 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.008%) to 99.852%

Totals

Change from base Build 4508552063:
0.008%

Covered Lines:
12107

Relevant Lines:
12125

💛  - Coveralls

authors: bt-admin coveralls

repo: brain-tec/patroni


text:
brainglobe command

I've unified all command line commands under a single command, as suggested by @adamltyson
Now you can just use brainglobe followed by

list to print all atlases
update with -a atlas_name -f to update and atlas (-f forces the update)
install with -a atlas_name to install a new atlas
config to modify the config.

not sure why the commit history is so long, it should be only the last 2...

not sure why the commit history is so long, it should be only the last 2...

I think this is usually when you continue to work on a branch, that's previously been merged. It's not even with master because of the merge commit. I think you can either make a new branch, or merge master into your branch.

I did merge master?

I did merge master?

No idea then, sorry.

Also this is great, somehow much more professional.

update with -a atlas_name -f to update and atlas (-f forces the update)
install with -a atlas_name to install a new atlas

What happens if you don't use the -a flag? Does it update  all atlases, or can we get rid of it?

if you don't use -a it throws an error because you didn't pass any atlas name.

Oh sorry, I meant is there any functionality without it? Or can we just do brainglobe install atlas_name?

yeah list and config don't take atlas_name as arguments so I think to remove -a with click I would have to make it so that you always have to pass a name. Maybe @vigji knows better how to do this?

Ahh i didn't know you were using click. In that case dw. It's not a priority

I am not an expert, but maybe these groups can be helpful in this context? https://click.palletsprojects.com/en/7.x/commands/

I only skimmed through it, but I think for now it;s good as is. Should we merge?

Yep, I think this is good to merge whenever.

authors: FedeClaudi adamltyson vigji

repo: brainglobe/bg-atlasapi


text:
Analyzing Numerical Stability in Linear Registration

Title
Analyzing Numerical Stability in Linear Registration
Leaders
Yohan Chatelain, Tristan Glatard, Mina Alizadeh, Ines Gonzalez Pepe
Collaborators
No response
Brainhack Global 2023 Event
Brainhack Montreal
Project Description
This project explores the numerical reliability of the FSL FLIRT linear registration tool.
We aim to investigate how computational errors can affect the accuracy of this alignment tool.
In computers, real numbers are stored with limited precision, leading to tiny inaccuracies known as rounding errors. While often negligible, these errors can accumulate and potentially affect the outcomes in delicate processes like linear registration in neuroimaging.
This project aims to understand and mitigate these errors to improve the reliability of medical imaging analysis.
To evaluate numerical stability, we will employ Monte Carlo Arithmetic (MCA). This technique, a form of stochastic arithmetic, is designed to simulate rounding errors stemming from the finite precision of numbers in computing by using random variables. Tools like Verificarlo, Verrou, and Fuzzy support MCA and are useful in adapting C, C++, FORTRAN, and Python codes for this purpose. Specifically, we'll use Fuzzy-libm, a modified version of libm, which introduces random noise into basic mathematical operations such as exp, log, cos, sin, etc.
Project 1: Testing Numerical Stability in FSL FLIRT
We aim to test FSL FLIRT's stability under varying conditions, including images, degrees of freedom, and optimization parameters. The goal is to understand how these variables impact FSL FLIRT's performance. To do so, we use the Fuzzy-libm tool on FLIRT, experimenting with a range of input parameters.
Project 2: Development Assistance for Simplified Algorithm
Developing and testing a basic version of a registration algorithm.
This task is open to those interested in algorithm development and application, especially using SciPy.
Project 3: Examining Numerical Rounding Impacts
Delving into how numerical rounding affects accuracy in neuroimaging. The objective is to analyze the computational steps of linear registration to gain a deeper understanding of the numerical behaviour.
This project is suitable for participants interested in medical imaging, computational neuroscience, and software development, and is especially relevant for those looking to understand the practical implications of computational inaccuracies in scientific research.
Link to project repository/sources
GitHub repositories:

https://github.com/verificarlo/fuzzy
https://github.com/verificarlo/verificarlo
https://github.com/edf-hpc/verrou
https://git.fmrib.ox.ac.uk/fsl/flirt

Docker images:

Fuzzy-libm: verificarlo/fuzzy:v0.9.1-lapack
Fuzzy-python: verificarlo/fuzzy:v0.9.1-lapack-python3.8.5
Fuzzy-scipy: verificarlo/fuzzy:v0.9.1-lapack-python3.8.5-numpy-scipy
Verificarlo: verificarlo/verificarlo:latest
Verrou: https://github.com/edf-hpc/verrou/blob/master/docker/Dockerfile

Goals for Brainhack Global

Analyze FSL FLIRT numerical stability.
Develop a simplified registration algorithm.
Address and propose solutions for rounding issues.

Good first issues

Provide a dataset to run FSL FLIRT on.
Provide FSL FLIRT parameters to play with.
Set up and run initial tests with FSL FLIRT.
Help in the development of the simplified algorithm (SciPy implementation?).
Provide metrics to measure numerical stability on perturbed registered images.

Communication channels
https://mattermost.brainhack.org/brainhack/channels/numerical-stability-linear-registration
Skills

Python: Intermediate to Advanced
Familiarity with FSL or similar tools: Basic
Familiarity with stochastic arithmetic: Basic

Onboarding documentation
No response
What will participants learn?

linear registration in neuroimaging
stochastic arithmetic
numerical instability metrics
algorithm development
collaborative open-source project work.

Data to use
No response
Number of collaborators
4
Credit to collaborators
Project contributors are listed on the project README using all-contributors github bot.
Image
Leave this text if you don't have an image yet.
Type
other
Development status
0_concept_no_content
Topic
reproducible_scientific_methods
Tools
FSL
Programming language
Python
Modalities
MRI
Git skills
0_no_git_skills
Anything else?
No response
Things to do after the project is submitted and ready to review.

[ ] Add a comment below the main post of your issue saying: Hi @brainhackorg/project-monitors my project is ready!
[ ] Twitter-sized summary of your project pitch.

Hi @brainhackorg/project-monitors my project is ready!


text:
Add redshift_database resource and data source.

Currently the redshift database resource only supports local databases, while the data source supports both local and datashare databases. I'm still trying to figure out whether it's best to manage datashare databases in the same resource definition or a separate one. (edit: this is now working well with a nested configuration block for the datashare. if you go from non-datashare to datashare, or change anything in the datashare block, it will force-new)
The COLLATE CASE_SENSITIVE/CASE_INSENSITIVE option isn't yet supported as there doesn't seem to be a way to read it back that I can find (I've opened a support ticket with AWS about it to see if there's a way) Redshift only allows you to change it (i.e. ALTER DATABASE foo COLLATE CASE_INSENSITIVE) for the database you're currently connected to... you can't change it for other databases in the cluster.
(edit: what I thought was the inability to read the setting turned out to be my sql client's inability to render text[] columns properly)

Update: I've got some local changes working more or less for creating databases from datashares, however I still have some cleanup work to do on the changes so I haven't pushed the code up to my fork yet. Will try and close it off tomorrow.
One issue I can see is that acceptance testing the datashare stuff is much more complicated:

both the producer and consumer cluster must be in the RA3 family (DS2 and DC2 don't support data sharing)
you have to create a data share on the producer first and reference its namespace on the consumer, so either the acceptance test is going to leak a fair amount of info about my environment (which my security team wouldn't like) or it would need to spin up a producer cluster as part of the test and create a datashare on it (which is complicated, since I haven't started the work yet to add a redshift_datashare resource)

Okay everything looks good now except for test coverage of a datashare database. For those I'm still not quite sure how to proceed, especially in light of the fact that terraform-provider-aws doesn't seem to expose the cluster namespace in the aws_redshift_cluster resource/data-source, so tests would either need the value hardcoded or resolved through environment variables.

Okay everything looks good now except for test coverage of a datashare database. For those I'm still not quite sure how to proceed, especially in light of the fact that terraform-provider-aws doesn't seem to expose the cluster namespace in the aws_redshift_cluster resource/data-source, so tests would either need the value hardcoded or resolved through environment variables.

I know that would require some additional work, but how about a new data source (eg. redshift_current_namespace) that would return the current cluster namespace? It's possible with a CURRENT_NAMESPACE call https://docs.aws.amazon.com/redshift/latest/dg/r_CURRENT_NAMESPACE.html

I know that would require some additional work, but how about a new data source (eg. redshift_current_namespace) that would return the current cluster namespace? It's possible with a CURRENT_NAMESPACE call https://docs.aws.amazon.com/redshift/latest/dg/r_CURRENT_NAMESPACE.html

Yeah I was planning to do that as part of my work on data shares (separate PR)

edit: Just realized that this would only work if you manage multiple redshift clusters from single terraform repo. In case of multiple repos, you would have to export the value from the data source to output in terraform and do a cross-state reading of the output value.

I prefer the first approach, that is using multiple provider configurations in the same repo (one for the producer and one for each consumer)

authors: sworisbreathing winglot

repo: brainly/terraform-provider-redshift


text:
Issue 75: setuptools zip error

Handles the case where setuptools download is a zip.

omg thank you <3
Can we just do this conditionally based on the file extension?
Can just be like, if filename.endswith('.zip') instead of checking explicitly for setuptools.

That's what I thought but it seems to download to a random filename with no extension e.g. TSS2G

I'll have a look and see if I can specify the download name or figure something out.  I kind of slacked off in not doing so before.

Ah, then this is good enough for now. I see that it's a NamedTemporaryFile. There's stuff we can do here to preserve that, but we can cross that bridge if this happens again.
Thanks! :pizza:

authors: RunSeven mattrobenolt

repo: brainsik/virtualenv-burrito


text:
Fix Github action LUT visualization

The action seems to have problems when the PR is created from a fork.

Should be fixed now.

repo: bramstroker/homeassistant-powercalc


text:
IntegrationSensor.init() missing 1 required keyword-only argument: 'max_sub_interval'

⚠ Not addressing this issue will break this integration in Home Assistant 2024.7.
System Health details
System Information

version
core-2024.7.0.dev202406160221

installation_type
Home Assistant OS

dev
true

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.12.2

os_name
Linux

os_version
6.6.32-haos

arch
x86_64

timezone
Europe/Amsterdam

config_dir
/config

Home Assistant Supervisor

host_os
Home Assistant OS 12.4.dev20240612

update_channel
dev

supervisor_version
supervisor-2024.06.2.dev1002

agent_version
1.6.0

docker_version
26.1.4

disk_total
468.7 GB

disk_used
103.6 GB

healthy
true

supported
true

host_connectivity
true

supervisor_connectivity
true

ntp_synchronized
true

virtualization

board
generic-x86-64

supervisor_api
ok

version_api
ok

Checklist

[X] I have read the FAQ to see if there is a known solution to my problem.
[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Describe the issue
The current nightly/dev version of Home Assistant, in combination with the latest version of this integration at the time of writing (v1.12.10) will not fully work and throw the error listed below in the log.
This issue is caused by the following upstream PR / change:
https://github.com/home-assistant/core/pull/110685
Reproduction steps

Update Home Assistant to 2024.7.0.dev202406160221 or newer
Use this integration...

Debug logs
2024-06-16 22:39:41.025 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up powercalc platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/powercalc/sensor.py", line 313, in async_setup_platform
    await _async_setup_entities(
  File "/config/custom_components/powercalc/sensor.py", line 378, in _async_setup_entities
    entities = await create_sensors(hass, config, discovery_info, config_entry)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/powercalc/sensor.py", line 631, in create_sensors
    new=await create_general_standby_sensors(hass, global_config),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/powercalc/sensors/group_standby.py", line 47, in create_general_standby_sensors
    energy_sensor = await create_energy_sensor(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/powercalc/sensors/energy.py", line 132, in create_energy_sensor
    return VirtualEnergySensor(
           ^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/powercalc/sensors/energy.py", line 224, in __init__
    super().__init__(
TypeError: IntegrationSensor.__init__() missing 1 required keyword-only argument: 'max_sub_interval'

Diagnostics dump or YAML config
No diagnostics dump is possible in this case. Sorry.

@frenck Thanks for reporting this in early stage, fixed with #2302. Will be in next release.
Just out of interest, how did you discover this. Are you running powercalc in your dev instance of have that integrated in some CI/CD pipelines?

Are you running powercalc in your dev instance

I run Home Assistant dev on my prod instance @ home; updating every morning.

Are you running powercalc in your dev instance

I run Home Assistant dev on my prod instance @ home; updating every morning. (You can switch to nightly as well if you like, run ha supervisor options --channel dev from a terminal).

Thanks will do that on my test HA instance. Good to have that running bleeding edge version. Have that running through proxmox, so can easily set that to dev channel. Don't want to use dev channel on my prod instance. You have so much faith ;-).
I also have dev instance which I'm managing manually using python virtual env, and just git pull origin dev there once every few weeks. However don't have the frontend working there anymore. Posted something on discord about that few weeks ago, but was still unable to resolve. Some very strange caching issue with the JS assets there.
But mostly I'm just working with the unit tests (have 100% coverage on powercalc), which I run against https://github.com/MatthewFlamm/pytest-homeassistant-custom-component. But these releases only contain latest stable and beta versions of HA, so can't use this strategy to test against latest dev version.

However don't have the frontend working there anymore. Posted something on discord about that few weeks ago, but was still unable to resolve.

That is what the nightly is for, that includes latest nightly frontend and nightly intents as well.

You have so much faith ;-)

Honestly, it isnt't that bad. I can't remember the last time I ran into big issues (and if it happens, it's easy to roll back). That said, I love to run into issues, especially before others do.

Haha true, from your perspective it's also a good thing to to actually run the latest code on a system containing actual entities, automations etc. Higher chance you actually discover real bugs.
Don't have time to fiddle with bugs in the latest nighly besides powercalc maintenance, my daily dev job and watching the European football championships ;-).
Sometimes I install latest beta when I have some more spare time to help out, but that's about it.

However don't have the frontend working there anymore. Posted something on discord about that few weeks ago, but was still unable to resolve.

That is what the nightly is for, that includes latest nightly frontend and nightly intents as well.

But I need to have a supervised instance for that right?
I just want to run dev version of HA where I have a working frontend and can use an actual debugger in my IDE.
I have setup my dev instance using this instructions: https://developers.home-assistant.io/docs/development_environment/#manual-environment

I just want to run dev version of HA where I have a working frontend and can use an actual debugger in my IDE.

The frontend in dev should be working with the dev. We generally bump dev if the change isn't backward compatible. Right now, the version of the frontend pinned on the core dev should be fully compatible.

I just want to run dev version of HA where I have a working frontend and can use an actual debugger in my IDE.

The frontend in dev should be working with the dev. We generally bump dev if the change isn't backward compatible. Right now, the version of the frontend pinned on the core dev should be fully compatible.

Good news! I just tried again, and now my development instance started working again magically ;-). Glad to have that finally resolved.
It was broken for 2 months it was always loading outdated JS file, which was not to be found anymore in the sources of my local.
Latest git pull dev which I did today and another script/setup probably fixed it.
But had done that countless times before trying to resolve, and also removed and recreated virtual envs multiple times.
Clearing browser caches etc. etc.

authors: bramstroker frenck


text:
About — 鹏程

https://bran-nie.github.io/about/
打码改变世界

现在个人博客改版升级了吗? 效果不错哦

authors: DavidFeng bran-nie


text:
🛑 Charite gateway-iop-connection is down

In 86f46db, Charite gateway-iop-connection (https://ids.health-x.charite.de/health/4) was down:

HTTP code: 500
Response time: 108 ms

Resolved: Charite gateway-iop-connection is back up in 8f27799 after 32 minutes.

repo: braunma/dataloft-endpoint-monitor


text:
Exception Value: Reverse for 'userena_profile_detail' with arguments...

Choosing a username that starts with signup (like signupxyz) will produce an error.
django-userena==1.4.0
Django==1.7.10
Traceback:
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  137.                 response = response.render()
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/response.py" in render
  103.             self.content = self.rendered_content
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content
  80.         content = template.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in render
  148.             return self._render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in _render
  142.         return self.nodelist.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  126.         return compiled_parent._render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in _render
  142.         return self.nodelist.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  126.         return compiled_parent._render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in _render
  142.         return self.nodelist.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  312.                 return nodelist.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  458.                         six.reraise(*exc_info)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  444.             url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in reverse
  551.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "/home/marc/.virtualenvs/autoconv/local/lib/python2.7/site-packages/django/core/urlresolvers.py" in _reverse_with_prefix
  468.                              (lookup_view_s, args, kwargs, len(patterns), patterns))

Exception Type: NoReverseMatch at /accounts/signupxyz/signup/complete/
Exception Value: Reverse for 'userena_profile_detail' with arguments '(<SimpleLazyObject: <User: signupxyz>>,)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['accounts/(?P<username>(?!signout|signup|signin)[\\@\\.\\w-]+)/$']

fix released as 1.5.1

Thanks!

authors: marcbelmont swistakm

repo: bread-and-pepper/django-userena


text:
No smooth animations

On one of my machines, there are now buttery-smooth animations that move components into view. On another machine, it's just a jerky jump. See below:
https://github.com/user-attachments/assets/43cd9eb6-cd1e-42a2-b601-25bfa217bf55
Both are MBPs with very similar specs

By any chance have you switched on "reduced motion" on the second machine, because we honor that flag if you've set it and we don't animate. Quick check: window.matchMedia("(prefers-reduced-motion: reduce)").matches

returns false

Well that's ... odd. Can you try again with tip-of-tree?

still don't see animations..  I wonder what's going on. Is there something I can check in DevTools to get glean insights?

Ok, so on the non-animating MBP, the value is always false, because it is only called from here:
https://github.com/breadboard-ai/breadboard/blob/f79278038e77235454ded92e9733aa5d8b12ee31/packages/shared-ui/src/elements/editor/graph-renderer.ts#L1618-L1622

The general difference between the two cases is whether we are creating new graphs or updating existing ones. In the case where we are creating new graphs we assume it's a tab switch or a board load where we wouldn't want to animate. All other cases, particularly around selections, are usually graph updates and we animate those. I'm not entirely clear why we would animate updates on one MBP but not another!

you will not believe this. It just started working for no reason. Can't repro anymore.

hmm and now it's back to no animations.

oh interesting! It only seems to skip animations when in this state:

I wonder if there's some math around the number of configs?...

Ah, it's because in that mode we swap graphs entirely so there's no animation. Initially I had the animation on when swapping between the boards and it was very jarring. So... WAI?

This mode is causing more issues than I'd like, so I'm going to remove it and find a better way to organize the Workspace.

authors: dglazkov paullewis

repo: breadboard-ai/breadboard


text:
vdu_sys_sprites heap corruption

Agon crashes after reusing a bitmap, e.g. after running a program twice. VDP 1.03, FabGL 1.0.8
12:49:06.331 -> vdu_sys_sprites: reset
12:49:06.331 -> vdu_sys_sprites: bitmap 0 selected
12:49:06.331 -> CORRUPT HEAP: Bad head at 0x3ffae894. Expected 0xabba1234 got 0x3ffae6f4
12:49:06.331 ->
12:49:06.331 -> assert failed: multi_heap_free multi_heap_poisoning.c:253 (head != NULL)
12:49:06.331 ->
12:49:06.331 ->
12:49:06.331 -> Backtrace: 0x4008788d:0x3ffb2020 0x4008ddc1:0x3ffb2040 0x4009392d:0x3ffb2060 0x4009359f:0x3ffb2190 0x40087c2d:0x3ffb21b0 0x4009395d:0x3ffb21d0 0x400d3317:0x3ffb21f0 0x400d3d28:0x3ffb2230 0x400d3f71:0x3ffb2250 0x400d436a:0x3ffb2270 0x400eb9ad:0x3ffb2290
12:49:06.331 ->
12:49:06.331 ->
12:49:06.331 ->
12:49:06.331 ->
12:49:06.331 -> ELF file SHA256: 54ce0c32490349e1
12:49:06.331 ->
12:49:06.597 -> Rebooting...

Fix for me is to let fabgl::~Bitmap() handle heap free.
diff --git a/video.ino b/video.ino
index 3845f84..5c2c61d 100644
--- a/video.ino
+++ b/video.ino
@@ -1383,10 +1383,6 @@ void vdu_sys_sprites(void) {
 			width = rw;
 			height = rh;
 			//
-        	// Clear out any old data first
-			//
-        	free(bitmaps[current_bitmap].data);
-			//
         	// Allocate new heap data
 			//
         	dataptr = (void *)heap_caps_malloc(sizeof(uint32_t)*width*height, MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
@@ -1411,7 +1407,9 @@ void vdu_sys_sprites(void) {
 				// Create bitmap structure
 				//
 				bitmaps[current_bitmap] = Bitmap(width,height,dataptr,PixelFormat::RGBA8888);
-				bitmaps[current_bitmap].dataAllocated = false;
+				bitmaps[current_bitmap].dataAllocated = true;
+        const size_t free_heap = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
+        debug_log("vdu_sys_sprites: free heap %lu\n\r", free_heap);
 			}
 	        else {
     	    	for(n = 0; n < width*height; n++) readLong_b(); // discard incoming data

I've found that brokes heap vdp_sprite_reset command(I've tried use it for freeing bitmaps).

authors: HarmonicBrick nihirash

repo: breakintoprogram/agon-vdp


text:
Random transport errors

Hello!
I've been seeing random %Mint.TransportError{reason: :closed} errors when calling Elasticsearch through Snap, and usually retrying the same query works.
It looks like this is related to connection pooling, with the client keeping connections that are closed by Elasticsearch. Have you seen anything similar? Wanted to ask here before digging deeper into the issue.

Hi @gabrielpra1 - we've been running this in production for quite a while now and not seen any issues like this. Our ES cluster is operated by Bonsai.

Interesting, thanks @tomtaylor! After implementing a periodic healthcheck in the API this stopped happening, so it seems this only happens after a while without requests, when the connections are probably closed.
Now, I'm still not sure if this is an Elasticsearch configuration or something we can improve in the lib. Do you have long periods without any requests?

Have you tried setting max_idle_time in the Finch pool config? https://hexdocs.pm/finch/Finch.html#start_link/1-pool-configuration-options

Closing this for now, but please reopen if you want to continue the discussion.

repo: breakroom/snap


text:
sdk-flutter: add linux target

This is primarily to make development (on the desktop) easier.
The 4 Linux targets in sdk-core feel like a bit of an overkill but to be consistent I added x86_64-unknown-linux-gnu even though having a simple linux target would be my preference.

@icota what do you mean by simple linux target? We need to be able to build for all architectures.

@roeierez I think there's no need to bloat the makefile with 32-bit archs. But if you have some reason to support those devices that's cool.

authors: icota roeierez

repo: breez/breez-sdk


text:
Can you release as a gem?

Hello,
Can you release this plug in as a gem so it's easier to install and maintain up to date?
Thanks.

Can you gemify this please? The rubygems.org version (benlangfeld) is a fork with some significant and I'd like the original version.

authors: koops pupeno

repo: brendanlim/mobile-fu


text:
Add changelogs to crates

Better late than never!

(I will eventually succeed at being a competent maintainer 🤦♂)

repo: brendanzab/codespan


text:
[aerospike] Checkstyle updates for Aerospike.

Added a package-info.java.
Added JavaDoc for the binding's DB implementation.

+1

@allanbank did you have this similar fix in the works for the JDBC module? If not I'll go ahead and replicate, just didn't want to duplicate effort if you were on it already. I have been working in the JDBC module and have a few other issues to take care of. Besides checkstyle enforcement being 'the right thing to do', currently the indentation is terrible and it's unpleasent to work in.

(jumping in): would you mind waiting on #469, which touches a lot of bindings?

Oh ya! Forgot to say I knew you were working on #469 and was def gonna wait for that one. I checked the other PRs and it looks like the only other relevant one that would touch the JDBC binding is #447. Pretty sure I have already caused conflicts in that one with another PR, either way the merge should not be super difficult.

@kruthar - Yes just drop the blob into the pom and work down the issues.  I have a Eclipse formatter to do most of the white-space fixes if you would like it.

@allanbank - thanks for the suggestion, but I'm an Intellij kinda guy myself. I'll add the same checkstyle enforcement you did and just shoot down the issues until we're good to go.

authors: allanbank cmccoy kruthar

repo: brianfrankcooper/YCSB


text:
select: text cursor

if you click on "select", after name appears text cursor.
for example from demo:
https://dl.dropboxusercontent.com/u/26455887/images/0/8-23-2013 5-16-47 PM.png

+1

+1

I agree, has anyone taken a shot at this?

WebKit supports messing around with the caret with a little CSS hack: http://jsfiddle.net/tw3xk9z3/

authors: DarkMerge andrey-php flamber jsheffers miketeix


text:
feat: Please add star count to the bricks

Description
I think it would be quite useful to see some kind of appreciation of a brick. Something like the star count here on GitHub.
Requirements

[ ] Logged in users can click a star or thumbs up icon to appreciate the brick.
[ ] The list of bricks and the details of a brick show the star count.

Additional Context

Hi @schilken 👋
Thanks for opening an issue!
This is on the roadmap and should be implemented within the next few weeks, thanks! 💙

authors: felangel schilken


text:
webservice: search vs. freeSearch vs. attributeSearch

For the webservice, I often get the different search types confused:

search as in GET /Human/search/1234
freeSearch as in GET /Human/isFreeSearchSupported
attributeSearch as in GET /Human/attributeSearch/CCR5

Would anyone else find it helpful if we updated the endpoints to make it easier to distinguish between the search types? Here are three sets of alternatives that I find easier to understand:
A

GET /Human/identifierSearch/1234
GET /Human/isIdentifierSearchSupported => true
GET /Human/attributeSearch/CCR5

Note that since BridgeDb is primarily about identifiers, one could argue that search is better than identifierSearch.
B
Webservice could accept a new query parameter named field with a default value of Identifier:

GET /Human/search/1234 (equiv. to /Human/search/1234?field=Identifier)
GET /Human/isSearchSupported => true (equiv. to /Human/isSearchSupported?field=Identifier)
GET /Human/search/CCR5?field=Symbol
GET /Human/isSearchSupported?field=Symbol (optional new endpoint)

C

GET /Human/identifier/1234
GET /Human/searchFields/identifier => true
GET /Human/symbol/CCR5
GET /Human/searchFields/symbol => true (optional new endpoint)

Not sure about desired capitalization: search_fields vs. searchFields or identifier vs. Identifier, symbol vs. Symbol. Some people recommend not using capital letters in webservice endpoints.

If we changed anything, we'd obviously need to add redirects for backwards compatibility.

Making a change like this is only worthwhile if there's a general consensus that doing so would make the webservice easier to understand. Any opinions from @egonw, @AlexanderPico, @AlasdairGray, anyone else?

Closing for lack of interest.

repo: bridgedb/BridgeDb


text:
Error in UMD js module when using generic class or interface

I've got error when i try to add compiled js file on html page
Remark: example with interface, but when i using abstract class a error is same
Steps To Reproduce
https://deck.net/d4717c7dbc08f308beaf8e2bd5f59207
[Module(ModuleType.UMD, "TestUmdJs")]
public class App
    {
        public static void Main()
        {
            var entity = new Entity();
            Console.WriteLine(entity.Main());
        }
    }

[Module(ModuleType.UMD, "TestUmdJs")]
    public interface IEntity<T>
    {
        T Main();
    }

[Module(ModuleType.UMD, "TestUmdJs")]
    public class Entity : IEntity<long>
    {
        public long Main()
        {
            return 123;
        }
    }

Expected Result
123 in bridge console
Actual Result
Error:
TestCommonJs.js:35 Uncaught TypeError: TestUmdJs.TestCommonJs.IEntity$1 is not a function
    at TestCommonJs.js:35
    at TestCommonJs.js:15
    at TestCommonJs.js:17
    at Object.Bridge.assembly (bridge.js:3294)
    at TestCommonJs.js:6

Hello, @SteamUpdate! Thanks for reporting the issue! We've just fixed it, and merged upstream.
The fix will make it to the next Bridge release, and it is already available from github, dev branch, if you build from sources. The version it will be released in should match this issue's milestone, which was 17.2.0 at the time of the writing of this follow up.

authors: SteamUpdate fabriciomurta

repo: bridgedotnet/Bridge


text:
Fix syntax formatting of Version.js

https://github.com/bridgedotnet/Bridge/blob/master/Bridge/Resources/Version.js

#400

authors: LeonidVeriga geoffreymcgill


text:
React Dev Docs Final Cleanup/Fixes

Fixes BLUI-3552.

Changes proposed in this Pull Request:

Clean up all logs and warnings
Fix broken props (animationDuration)
Fix Number picker for decimal values (opacity)
Refactor routing to support tab preservation
Fix styling of tabs so they stay sticky on overscroll

To Test:

EVERYTHING

couple more not sure why this happened
shared props links in API docs table

drawer-rail-item/api-docs
sharedProps link missing route item /drawer
https://blui-react-docs--pr623-feature-3552-final-f-mn1pd67j.web.app/components/drawer-rail-item/api-docs#shared-props
should be -
https://blui-react-docs--pr623-feature-3552-final-f-mn1pd67j.web.app/components/drawer/drawer-rail-item/api-docs#shared-props
drawer-body/api-docs
https://blui-react-docs--pr623-feature-3552-final-f-mn1pd67j.web.app/components/drawer-body/api-docs#shared-props
should be -
https://blui-react-docs--pr623-feature-3552-final-f-mn1pd67j.web.app/components/drawer/drawer-body/api-docs#shared-props
drawer/api-docs
sharedProps link not able to navigate down to location in same page
https://blui-react-docs--pr623-feature-3552-final-f-mn1pd67j.web.app/components/drawer/drawer/api-docs#shared-props

I fixed the links so they should work now. I would like to circle back and make it so that the drawer subcomponent routes aren't all prefixed by '/drawer/XXX', but I don't have the time to go in and make the routing changes now.

authors: jeffvg joebochill

repo: brightlayer-ui/react-component-library


text:
Evaluate Discourse ('ask.brightway.dev')

...like is being used by OpenLCA.

-1 to this idea. The brightway tag at Stack Overflow has been used since 2016, and works great. It also allows the broader community to answer questions instead of relying on core Brightway personnel.

authors: cmutel michaelweinold

repo: brightway-lca/brightway-documentation


text:
Visual selection doesn't include char under cursor

The visual selection doesn't include the character under the cursor. For example, in the selection below, pressing y copies only "packag" not "package".

This differs from VIM and other VIM emulation modes, where the character under the cursor is part of the selection. And would be copied.
The problem applies not only to copying/yanking but also to deleting and pasting.

Comparing monaco-vim implementation vs CodeMirror or VsCode Vim, it seems that neither vim emulation system does this in the same way as Vim does. However, the other two systems handle this edge case by allowing selection of the last character of a line, moving the cursor past the last character of a line for mouse selection. monaco-vim cannot select the last character of a line.

authors: adaitche terryzfeng


text:
Fix concurrent map writes in lake/journal.Store

journal.Store contains a zson.UnmarshalZNGContext that can be used unsynchronized from multiple goroutines, causing a panic on concurrent map writes.  Fix by removing the UnmarshalZNGContext from Store and instead allowing each goroutine to allocate its own in Store.load.
Fixes #5261.

I've confirmed that this branch seems to address the crash shown in #5261. While the repro script shown above still causes a crash on my Macbook on the first try when run on the tip of main (commit e100767 at the moment), with this branch at commit 88a9125 I can run it many times in a row without problems.
$ zed -version
Version: v1.17.0-61-g88a9125b

$ ./repro.sh
pool created: foo5 2mANuIPAxTgVcwJaQx10oqoySXa
pool created: foo2 2mANuHnP25bigww7RAHkkbg45uj
pool created: foo1 2mANuGufNnk1QKCfdjyw8zRVZPS
pool created: foo7 2mANuLYAXBYKbNtv0JXj9wJBrWP
pool created: foo3 2mANuFpNrUwb05hbC6hernT02hI
pool created: foo6 2mANuFAZAAYEZXNTuBIu0SIjOuz
pool created: foo4 2mANuGOtAScZL9uDTtEOHpC7Yhv
pool created: foo8 2mANuKeFyIXIutsKabQf69Aj6O4
pool 2mANuGOtAScZL9uDTtEOHpC7Yhv renamed from foo4 to bar4
pool 2mANuHnP25bigww7RAHkkbg45uj renamed from foo2 to bar2
pool 2mANuFAZAAYEZXNTuBIu0SIjOuz renamed from foo6 to bar6
pool 2mANuIPAxTgVcwJaQx10oqoySXa renamed from foo5 to bar5
pool 2mANuKeFyIXIutsKabQf69Aj6O4 renamed from foo8 to bar8
pool 2mANuFpNrUwb05hbC6hernT02hI renamed from foo3 to bar3
pool 2mANuGufNnk1QKCfdjyw8zRVZPS renamed from foo1 to bar1
pool 2mANuLYAXBYKbNtv0JXj9wJBrWP renamed from foo7 to bar7
pool deleted: bar1
pool deleted: bar2
pool deleted: bar3
pool deleted: bar4
pool deleted: bar5
pool deleted: bar6
pool deleted: bar7
pool deleted: bar8

$ ./repro.sh
pool created: foo4 2mANuZA1uUIkBQhpLrdh1fTALBO
pool created: foo3 2mANuZBrnl0Rf5VyAJue82BlJ1R
pool created: foo1 2mANuVtmDtCUtP1KMrnKjCXIPNU
pool created: foo6 2mANubHIwkfwCwVO1PbHD6XMvj0
pool created: foo5 2mANuUV0qYiDiBBBsKyLtzn8V6t
pool created: foo2 2mANuUyTiNe9AhvjXQQrms7ijhh
pool created: foo8 2mANuXXXkQyz5Oj1JgU9xiAQ2cz
pool created: foo7 2mANuYPYmDz4xDrZJkNa7npT0P9
pool 2mANuZA1uUIkBQhpLrdh1fTALBO renamed from foo4 to bar4
pool 2mANuUV0qYiDiBBBsKyLtzn8V6t renamed from foo5 to bar5
pool 2mANuYPYmDz4xDrZJkNa7npT0P9 renamed from foo7 to bar7
pool 2mANuUyTiNe9AhvjXQQrms7ijhh renamed from foo2 to bar2
pool 2mANuZBrnl0Rf5VyAJue82BlJ1R renamed from foo3 to bar3
pool 2mANuXXXkQyz5Oj1JgU9xiAQ2cz renamed from foo8 to bar8
pool 2mANuVtmDtCUtP1KMrnKjCXIPNU renamed from foo1 to bar1
pool 2mANubHIwkfwCwVO1PbHD6XMvj0 renamed from foo6 to bar6
pool deleted: bar1
pool deleted: bar2
pool deleted: bar3
pool deleted: bar4
pool deleted: bar5
pool deleted: bar6
pool deleted: bar7
pool deleted: bar8

...

authors: nwt philrz

repo: brimdata/zed


text:
Copying url of current item

Hi Paul,
it would be great if it would be possible to copy the url of the current photopage to the clipboard, f.e. to send it in a messenger, to twitter, to open it outside the app in a browser, to save it so you can view it later on a big screen at your desktop PC or something like this.
I use your app mostly during long train rides and mostly I do a search for a specific keyword. But currently it's unpossible to find an user again later if the nickname is, f.e., a chinese sign one (otherwise I take a screenshot of it and search later for it at desktop PC)- so it would be pretty helpful if you could save a specific url of a photo page.
Additionally it would be nice to have an option to display the userinfo (the about page) of an user.

Hi,
Thanks for taking the time to log this. Unfortunately I'm not actively working on Glimmr right now, but am happy to look at pull requests and the like.
I'll keep this open, if I decide to look at it in the future I agree it would be a nice feature to add.


text:
Use an HDP-HMM to segment allele fraction data

It's worth a try.

Closed by PR #596.

repo: broadinstitute/gatk-protected


text:
JN-525 site content save

The "save" button now works on the website editor so you can save changes made in the UX.  Hitting save creates a new version of the site content, and then also updates the environment to point to the new version.  As we've talked about before, we eventually may want some 'save as draft' capability, but that's outside the scope of this PR.
In testing, I found that we were missing non-null constraints on siteContent stableId&version.  So that's fixed :)
This also does some drive-by cleanup of environment diffing routes so that the portal environment controller namespace was clearer for the new controller methods needed
TO TEST:

go to  https://localhost:3000/ourhealth/studies/ourheart/env/sandbox/siteContent
make some changes to the site content
hit 'save'
confirm the changes are saved as a new version, and you see success notifications telling you the version was created and the environment was updated
reload the page, confirm your changes persist
go to https://localhost:3000/ourhealth/studies/ourheart/publishing
confirm you see your latest version as the sandbox version

(force push was a rebase of development to avoid merge conflicts)

repo: broadinstitute/juniper


text:
JN-714 enabling delete of environment alerts in populate contexts

DESCRIPTION
Speaking of "adding a new configurable entity has way too many undocumented steps",  this enables the environments with alerts to be deleted/recreated for populating.  The main thing we were missing was a test that the HeartHive environment could be deleted/recreated.  We have that test for OurHealth, but since Matt only added the configurable alerts to HeartHive, we didn't notice that those alerts weren't able to be repopulated in development.
TO TEST:  (simple manual steps for confirming core behavior -- used for pre-release checks)

run ./scripts/populate_portal.sh hearthive
run ./scripts/populate_portal.sh hearthive again, confirm it works

test failures are unrelated


text:
Add email to list of bucket readers for Clinvar dev

Adding an email (for the account running the Dev Test Repo) to the list of bucket readers for the clinvar dev environment.

@danxmoran (on Monday) Let me know if this is what you had in mind

repo: broadinstitute/monster-deploy


text:
Deprecated?

Hello!
Is seems that this bot you wrote does not work anymore. The mumble library is deprecated and does not work with newer versions of nodeJS. I made another bot here (https://git.lolcat.ca/lolcat/rena_mumble) and it would mean alot to me if you could add a link to it inside the readme?
Many thanks!!

Currently addressing these issues as part of https://github.com/brooksmckinley/mumble-music/issues/21

authors: brooksmckinley lolcatw

repo: brooksmckinley/mumble-music


text:
rustic-cargo.el requires the location of the cargo binary, not rustic-compile.el

I have a setup in which there is no unique cargo binary for every project, but instead each project asks for a certain cargo binary, which is provided in the PATH.
In short, this means that, in a shell, for example, you can run cargo, but there is no way to know beforehand where the binary will be. This works well when I run M-x rustic-compile, due to the fact that rustic simply execute a command (see this line), but it does not work when I run M-x rustic-cargo-test (for example) because then rustic uses a customizable path instead of letting the path being resolved dynamically (see this definition).
Concretely, the former one simply calls cargo build, and succeeds, whereas the latter one calls ~/.cargo/bin/cargo test, and fails, because there is no such file.
It's quite unclear to me why there are two different ways in the same project of calling cargo, and what is even more unclear to me is why one of them presumes the location of the binary. It seems to me that the correct one is to call cargo <...>, not ~/.cargo/bin/cargo <...>.
Because of that, I'm not sure whether to label this as a bug, or as a feature request, but anyways it would be nice if all rustic commands worked like rustic-compile, resolving the command on-the-fly instead of having to customize the binary location by hand.

I recently added remote support for rustic and this only works with absolute paths. But I can understand you(we already had this issue in the past). I guess I will just add two variables, one for local one for remote.

It's quite unclear to me why there are two different ways in the same project of calling cargo

That's because providing remote support is work in progress.

Should be working again, sorry for that. Sometimes I introduce bugs that I already fixed in the past =)
Thanks for the bug report!

Indeed, rebuilt Emacs this morning and it's working like a charm.

Thanks for the bug report!

Well, thanks for the bug fix =)

authors: TheBlackBeans brotzeit

repo: brotzeit/rustic


text:
Create landing page for tool.

I think the selling point with this tool is its extreme simplicity. There's some great other options out there, but with their awesome and plentiful feature set they've made compromises in terms of usability and complexity.
I think I can probably show how easy superzippy is to use in two lines of text, and can show exactly how it works with a few more.

Some folks have a lot of love for PyInstaller. The only selling point for superzippy is the simplicity of the whole thing (you can understand exactly what Superzippy does and create some intuition for when and where it'll work in like 15 minutes), and I should make that clear.
If I can make superzippy dirt easy to use, I think it'd be a good competitor. Soaking up the tiny niche market of "I want to ship a single executable for this small Python script I made but I'm tired of forcing all my code into one script, grumble grumble grumble", which was me when I made this.

repo: brownhead/superzippy


text:
[BROWSER] Internet Explorer

** Describe the browser and provide any links if available **
Browser name: Internet Explorer
** List the platforms supported by the browser to be added **
Platforms: Windows
Saw this: https://github.com/browser-history/browser-history/issues/52
Understood, however I went ahead and made class/functions to pull history from registry entries.
I'll be able to put together favorites in a few days or so.
I don't fully understand your syntax/styling & doubtful of my competency.
So don't feel right submitting a proper pull request.
https://github.com/mwilco03/browser-history/blob/master/browser_history/generic.py
It does conform to using only native python libs.
Adds struct, winreg, contextlib, itertools
Iterates over registry keys & values from each of the HKEY_USERS<SID>\Software\Microsoft\Internet Explorer\TypedURLs
Gets the time from TypedURLsTime joins the two and transforms them to what I think is proper format.

This is really good! Can you open a pull request? It makes it easier to review the additions/changes. We can work on it together to make any improvements on it.

TYVM! I would absolutely be happy to.

repo: browser-history/browser-history


text:
Merge "Surfaces and canvases" section into other sections

This PR merges the "Surfaces and canvases" section into other sections where that material is used. Specifically—surfaces are defined in the "Pixels, Color, and Raster" section; layers are described in the "Stacking contexts" section; and state is described in "Optimizing Surface Use".
I have not edited the text moved into "Optimizing Surface Use", because I'll do a pass on that whole section later.

Ready to land, but you will need to rebase first.

authors: chrishtr pavpanchekha

repo: browserengineering/book


text:
Everywhere 0 if views > 1000

This stat parsing is not correct:
Windows,7,Chrome,79.0.3945.130,desktop,401 754
Speed fix: re-save csv file without space delimiters
Windows,7,Chrome,79.0.3945.130,desktop,401754

Hi @Eventusrus, is this issue in regards to using this tool or to using https://github.com/browserslist/browserslist-ga-export? I ask because you mention CSV, but this tool does not involve usage of CSV files.

repo: browserslist/browserslist-ga


text:
Compile brpc with cmake  error

[ 71%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/esp_message.cpp.o
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp:50:29: error: expected constructor, destructor, or type conversion before ‘(’ token
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
^
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp: In function ‘void brpc::{anonymous}::protobuf_AssignDescriptorsOnce()’:
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp:52:5: error: ‘GoogleOnceInit’ is not a member of ‘google::protobuf’
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
^
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp:52:41: error: ‘protobuf_AssignDescriptors_once_’ was not declared in this scope
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
^
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp: In function ‘void brpc::protobuf_AddDesc_esp_5fmessage_2eproto()’:
/unit-uskit/third_party/brpc/src/brpc/esp_message.cpp:81:57: error: invalid conversion from ‘void ()(const string&) {aka void ()(const std::basic_string&)}’ to ‘void*’ [-fpermissive]
"esp_message.proto", &protobuf_RegisterTypes);
^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:48:0,
from /unit-uskit/third_party/brpc/src/brpc/esp_message.h:24,
from /unit-uskit/third_party/brpc/src/brpc/esp_message.cpp:18:
/usr/local/include/google/protobuf/message.h:1115:15: error:   initializing argument 2 of ‘static void google::protobuf::MessageFactory::InternalRegisterGeneratedFile(const char*, void*)’ [-fpermissive]
static void InternalRegisterGeneratedFile(const char* filename,
^
make[2]: *** [src/CMakeFiles/OBJ_LIB.dir/brpc/esp_message.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/OBJ_LIB.dir/all] Error 2
make: *** [all] Error 2

请参考 https://github.com/brpc/brpc/issues/656

authors: CalvinNeo xyjiao

repo: brpc/brpc


text:
How to  use Caadyfile in caddy service

caddy -service start Caddy

where is  Caddyfile？

@zuohuadong  Presumably in the same directory as the Caddy executable.

Thanks @tobya 😄
@zuohuadong and when you install the service for the first time, the flags you use in the command will be the same that the service will use. So, if you run:
caddy -service install -conf c:/Caddyfile

Every time the service starts it will use c:/Caddyfile for configuration.

Actually I'm wrong it wont use the caddyfile from the directory, it is from somewhere else.
To ensure this works always specify the caddyfile as above.

Sorry! By default @zuohuadong it will use the Caddyfile in the current working directory. That's just how Caddy works. This plugin only adds a service into it, nothing else. The Caddyfile part is still done by Caddy itself.
Since I don't know where the current working directory for services is on each OS, you should, as @tobya said, always specify the Caddyfile via flag.
Sorry for the mistake before 😞

I think caddy works by using the caddyfile in the directory which the caddy executable resides in, which is not necessarily the working directory.  The service does not load the caddyfile from the executable directory, and must be specified.
I think it would be good to update docs to say that it is -essential- to specify the caddyfile eg update the command install to this in the docs
caddy -service install [-name optionalName] -conf="c:\caddy\Caddyfile" -log "c:\caddy\logs\caddyservice.log"

For what I know Caddy always uses the Caddyfile from the working directory
if not specified. I always have the executable in a separate folder only
for binaries and whenever I run Caddy command it will use the Caddyfile on
the cwd.
Thanks for the suggestion! We'll add a note for that. ☺
On Sun, May 28, 2017, 12:50 PM Toby Allen notifications@github.com wrote:

I think caddy works by using the caddyfile in the directory which the
caddy executable resides in, which is not necessarily the working
directory. The service does not load the caddyfile from the executable
directory, and must be specified.
I think it would be good to update docs to say that it is -essential- to
specify the caddyfile eg update the command install to this in the docs
caddy -service install [-name optionalName] -conf="c:\caddy\Caddyfile" -log "c:\caddy\logs\caddyservice.log"
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/bruhs/caddy-service/issues/4#issuecomment-304508931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFMdsI4rSS828WIOfDHn_C6X6elgrPyWks5r-V9tgaJpZM4NmIoD
.

authors: hacdias tobya zuohuadong

repo: bruhs/caddy-service


text:
Add get_delegee_scheduler query.

Adds the get_delegee_scheduler receiver query to implement issue #294. get_delegee_scheduler is forwarded independently from get_scheduler and forwards through the on algorithm. This allows a forward progress delegation target, like sync_wait's scheduler, to forward through to schedulers and algorithms that may use it to support forward progress delegation.
For example, in:
sync_wait(on(system_thread_pool, just() | sort(...)));

the sort implementation and/or system_thread_pool scheduler may delegate work to the blocked thread to ensure forward progress in the same fashion that we see now with the standard parallel algorithms.

Can you update the reference implementation to match?

I did. Somehow I just forgot to add it to git.

Oops, a test failure.

authors: LeeHowes ericniebler


text:
InternalError exception

I can often catch this exception.
InternalError: Unhandled Dependency Failure: DeepLeo
The text is part of the response message, which the websocket client received from the server. (see below)
{
    "type": 2,
    "invocationId": "1",
    "item": {
        "firstNewMessageIndex": null,
        "defaultChatName": null,
        "conversationId": "51D|BingProdUnAuthenticatedUsers|E7D ... 284",
        "requestId": "88e6dd8c-2cae-49e4-aef4-223d27f69487",
        "telemetry": { },
        "result": {
            "value": "InternalError",
            "message": "Unhandled Dependency Failure: DeepLeo",
            "error": "Unhandled Dependency Failure: DeepLeo\n ---> ServiceClient failure for DeepLeo",
            "exception": "Microsoft.TuringBot.Common.ServiceInternalError: Unhandled Dependency Failure: DeepLeo\r\n ---> Microsoft.TuringBot.Common.ServiceClientException: ServiceClient failure for DeepLeo\r\n ---> System.Net.Http.HttpRequestException: Failed to call \"DeepLeo\" at \"SelectedByPapyrusLoadBalancer\"...(some call stack information)...",
            "serviceVersion": "20230518.47"
        }
    }
}

It seems to appear once in every 5 questions on average. If I asked the same question again, it can answer. I'm not sure if it's just for me, or if it's a network issue.
If you have any solutions or clues, please let me know. Thank you.

I didn't notice the strange conversationId. it has always been like this to me.
Updating cookies does not work. But it becomes normal when I use Edge to ask questions, like: "conversationId":"51D|BingProd|73E ... 3EA"
If the issue is related to the Id, then something may have been wrong in CreateConversation process? I'll try some debugging.

Well, the API is certainly more complicated than expected heh. While I working on response streaming, here are a few findings you may want to know (will be editing msg):

BingChat uses {\"type\":6}\u001e msgs as what most likely is keep-alive and both server and client send these over ChatHub every 16 seconds
Something makes websocket session server output malformed in the implementation of the library, and it is even recorded when browsing chat history, in the network it looks like it includes chunks of the client-sent messages. Related to keep-alive?

SignalR implementation works (but not the "advanced" protocol negotiation) and does so well.
Basically:

update is a client method that server pushes response updates to
chat is a streaming server method invocation

SignalR update will be a part of response streaming PR.
After that, we'll need to try reproducing the issue once again. If persists, then my next bet is it has to do with not properly using some load-balancing mechanism and, if re-connection happens, landing at a different node (!pay attention to SelectedByPapyrusLoadBalancer in stacktrace!).
Notes: protocol negotiation starts and we even receive a specific connection ID but something happens during negotiation process which causes ChatHub to respond with 502 upon trying to establish connection with wss://sydney.bing.com/sydney/ChatHub?id=....

Well, the API is certainly more complicated than expected heh. While I'm working on response streaming, here are a few findings you may be interested in (will be editing msg):

BingChat uses {\"type\":6}\u001e msgs as what most likely is keep-alive and both server and client send these over ChatHub every 16 seconds. UPD: SignalR keepalive ping-pong logic? I should read about it more;
Something makes websocket session server output malformed in the implementation of the library before we get to message { type: 2 }, and it is even recorded when browsing chat history in Edge, in the network it looks like it includes chunks of the client-sent messages. Related to keep-alive?

Todo:

Look into straight up using SignalR client instead of hand-rolling websocket code (not trusting the library used initially 😅)

p.s.: at least this is JSON instead of MsgPack or Protobuf
UPD: The guess was correct. See https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/common/SignalR.Common/src/Protocol/HubProtocolConstants.cs#L14 It's definitely worth rewriting to SignalR which should fix any possible transport issues. I'm currently looking at BingChat's widget TS/JS code to deduce correct hub builder configuration. That way, we can match the shape of the official API decently well.

Thanks for suggestions.
I once encountered message {type: 7}, which caused the client getting stuck. Using SignalR is definitely a significant improvement for this and other potential transport issues.
The Edge browser can record our chat history, this maybe related to an autosave option? It seems to take effect after these options are added.
https://github.com/bsdayo/BingChat/blob/8f85b1c351dd39f5d99d07deba1bb2cf03bc1207/src/BingChat/BingChatConstants.cs#L22

Type 7 indicates session termination: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/common/SignalR.Common/src/Protocol/HubProtocolConstants.cs#L44
As for autosave - maybe? I have decided to take on issues one at a time: SinalR, then response streaming, then further reverse engineering of option sets and potential issues with sticky-sessions / load-balancing (if true) if network issues continue.
It is yet unknown the degree of control afforded by OptionSets, whether they are purely informational in nature, how back-end validates them, etc.
Consider the following commit: https://github.com/acheong08/EdgeGPT/commit/f536e79429449c62d0819024f12dc534d77780d6
Apparently, there is a way to select new vs old model (with new model often just sucking ass on prompts that used to work very reliably), but when I tried a few I did not notice significant gap you would see when comparing GPT-3.5 vs 4 side-by-side, which means they don't work in such a straightforward way.
All in all, I think we need to start documenting findings somewhere.

@Caulm Since 0.8.0 with SignalR is out, could you check if this still happens for you?

Thanks, this issuse dose not reproduce in 0.8.0.

authors: Caulm neon-sunset

repo: bsdayo/BingChat


text:
ADMIN: Restore explicit py3.4 support

Mostly in the setup.py classifiers.
Also readjust the tox environments a bit for newer attrs, and to allow non-CI checks for Python 3.3 compat.
Reverts #40 per request from jayvdb.

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #54   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines          77     77
=====================================
  Hits           77     77

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 a13f06a...2d4aa23. Read the comment docs.

authors: bskinn codecov-io

repo: bskinn/stdio-mgr


text:
ResetPartitionOffset throws NPE

ResetPartitionOffset throws NPE if we attempt to reset offsets for a topic-partition that is not in subs.  We have a use case that we may attempt to reset offsets for a partition that this consumer may not own (e.g., consider the case of partition rebalance). Seems fairly trivial to make this function noop in this case. I would be happy to submit a PR if this is something that you're open to.
// ResetPartitionOffset marks an offset of the provided topic/partition as processed.
// See ResetOffset for additional explanation.
func (c *Consumer) ResetPartitionOffset(topic string, partition int32, offset int64, metadata string) {
	c.subs.Fetch(topic, partition).ResetOffset(offset+1, metadata)
}

Yes, please, PR would be much appreciated (ideally with a test)

Thanks. Submitted a PR #215. I'm not super familiar with github because we don't use that internally at my company, so not sure how to assign a reviewer.

authors: dim georgeteo

repo: bsm/sarama-cluster


text:
Receiving protobuf data triggers a kafka unknown error

version:
kafka: 1.1.0
sarama-cluster: 2.1.15
sarama:1.22.1
topic: A,  string data
eg:
producer
>a
>b
>c

topic: B,  protobuf byte data  (cannal read binlog data send to kafka https://github.com/alibaba/canal)
eg:
  *��
mysql-bin.000001ǟ�. *UTF-80��ɷ-8B
                                 rupiah_loanJuser_loan_planP�Xb

kafka-console-consumer customer A、B: no any errors
topic A customer:  no any errors
topic B customer errors:
//Every 3 seconds print this:
Errors kafka: error while consuming rupiah_loan_user_loan/0: kafka server: Unexpected (unknown?) server error.

code
	config := cluster.NewConfig()
	config.Consumer.Return.Errors = true
	config.Consumer.Offsets.Initial = sarama.OffsetOldest

	customer, err := cluster.NewConsumer([]string{app.Cfg.App.GetString("KAFKA_BROKER_LIST")}, "dev.test", []string{"credit_data_plus_topic","rupiah_loan_user_loan_plan"}, config)
	if err != nil {
		fmt.Println("kafaka启动失败")
	}
	for {
		select {
		case noti := <-customer.Notifications():
			fmt.Printf("noti: %v\n", noti)
		case err := <-customer.Errors():
			fmt.Printf("errors:%v\n", err)
		case msg := <-customer.Messages():
			fmt.Println(msg.Topic, msg.Offset)
		default:
			time.Sleep(time.Second * 1)
			fmt.Println("间隔1s")
		}
	}

log:
rupiah_loan_user_loan_plan 208
rupiah_loan_user_loan_plan 210
rupiah_loan_user_loan_plan 212
rupiah_loan_user_loan_plan 214
rupiah_loan_user_loan_plan 216
rupiah_loan_user_loan_plan 218
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
rupiah_loan_user_loan_plan 220
rupiah_loan_user_loan_plan 222
rupiah_loan_user_loan_plan 224
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
rupiah_loan_user_loan_plan 226
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
..........

But when I restart the program, it will be consumed from beginning to end.
However, if config.Consumer.Offsets.Initial is configured as sarama.OffsetNewest, a piece of data is consumed and the error is always reported.
like this
#  go run main.go
rupiah_loan_user_loan_plan 250
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
^Csignal: interrupt

# go run main.go
rupiah_loan_user_loan_plan 260
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.
errors:kafka: error while consuming rupiah_loan_user_loan_plan/0: kafka server: Unexpected (unknown?) server error.

Using other libraries to solve the problem

I also meet this problem

authors: hookover wbrucelee


text:
Make message channel buffered

Change the messages channel to be, client.config.ChannelBufferSize big, rather than unbuffered.

Sorry, I will have to decling. This is something that we had in the past but it causes massive races. As buffered messages must be processed in MaxProcessingTime in order to be consumed uniquely.
If you are worried about performance, I have done extensive benchmarks on this one too and adding a buffer has virtually no benefit as the underlying channels are already buffered.

Ah, makes sense. I looked around a little bit and couldn't see any tickets about it.
Thanks for the quick response.

@dim What should I do in case I process the messages in parallel? should I limit the goroutines?:
    msg, ok := <-consumer.Messages()
    if ok {
        go someProcessing(msg)
    }
}```

@AlmogBaku pls take a look at https://github.com/Shopify/sarama/pull/1099, this will solve the problem of parallelism

authors: AlmogBaku Mirey dim


text:
Mark use of extern static variables unsafe

Use of extern static variables will be treated as unsafe code by rustc in the future.
This change makes rsmpi able to be compiled on the nightly as of Oct/1, 2016.
Edit: Sorry. This PR sucks because it makes rsmpi unable to be compiled on the stable due to unnecessary unsafes. Please just close it or keep it for the future.

Well, I do not think it sucks. It is a step in the right direction, but it breaks on some configurations. That is exactly why I have this battery of CI tests set up. Let the machines help you keep track of things.
I have not investigated in detail, but I can think of two ways to move forward here:

build a macro that conditionally (based on the compiler version) marks the use of an extern static as unsafe,
make these variables into functions (RSMPI_COMM_WORLD becomes rsmpi_comm_world()) since they have always been unsafe.

Would you be willing to put more work into this or should I take a stab at it when I find the time?

I could not find any feature to compile codes conditionally on rustc versions .
But, I found a way to prevent the errors which is adding:
#![cfg_attr(not(feature="nightly"), allow(unused_unsafe))]

in lib.rs while this seems not to be the correct way.

The compilation on nightly is failing because of clippy's warnings of useless_transmute.
This cannot be fixed easily keeping code readable because the solution presented by clippy is also warned.
When a: &T,
let b: *const c_void = mem::transmute(a)

causes a warning of useless_transmute and it suggests:
a as *const T as *const c_void

And, this also causes a warning of trivial_casts on a as *const T.
A straightforward solution is:
let b: *const T = a;
b as *const c_void

Is this OK?

I will see if I can do something about the conditional compilation.

Yeah that is okay. The nightly builds are marked non-critical for that reason. I would rather have them taken care of in a separate PR.

I have just pushed a macro that marks an expression as unsafe on 1.13.0 and onward. Could you rework this PR to use that macro instead of unsafe?

Please wait a minute.

That macro is so cool.

Thanks for this.

authors: bsteinb raviqqe

repo: bsteinb/rsmpi


text:
Cross Compile Support

Add 2.11 to cross compile and modified code to support 2.11.7. Good work on the project!
Cross build info is found here for ref: http://www.scala-sbt.org/1.x/docs/Cross-Build.html

Thanks for the PR

authors: btlines zachncst

repo: btlines/fluent


text:
Afterpay validation issue in checkout

Magento 2.4.2-p1
PHP 7.4.21
Buckaroo Magento2 1.42
Steps to reproduce

Select Afterpay in the payment step of the checkout
Select an option for the Gender radio button
A validation error is thrown: Uncaught TypeError: Cannot read properties of undefined (reading 'name')

The field the validator tries to validate is the very first one (input#buckaroo_magento2_afterpay20_genderSelectMan.field). The error occurs in the idOrName function where no element seems to be passed anymore.
Please advise as our client would like to enable afterpay for their customers.

Good morning @vfreriks-bbd we will look into this asap.

Hello @vfreriks-bbd we tested your issue on testing on m244 and m243 with both logged in and guest order but are unable to reproduce this. Can you tell me if you are using an 3th party checkout extension? If yes, which one?

We are still running 2.4.2-p1. However an update is on the way. We only use some of our own custom modules to add 2 steps to the progress bar, change the field sequence in the shipping form and the markup of shipping methods. I disabled these and the error still occurs.
I'll let you know if the Magento update fixes the issue.

Hi @Buckaroo-Rens
I can confirm this is now fixed with M2.4.4

Thanks for informing us @vfreriks-bbd, glad that fixed the issue :)

authors: Buckaroo-Rens vfreriks-bbd


text:
Initial default feedback prompt handler

https://github.com/bucketco/bucket-tracking-sdk/assets/331790/a59456ac-1a3e-46a3-8613-8eb185cc918f

Based on a call with @pavkam we're doing another iteration of this to ensure prompt state handling is kept intact and at the same time improve the ergonomics for customers who just want to override UI defaults of the widget UI while handling a prompt

This PR has been integrated into #41

repo: bucketco/bucket-tracking-sdk


text:
Benchmarks for DB Interactions

Parallel Extraction seems to be consistently much faster than serial extraction, but Batch and Parallel Insertion don't seem to yield performance benefits. They all perform equally as well roughly. Maybe the multiconnection update that Marcos was brainstorming will fix that.

#61 Not sure why wFromPG threw an error. The results from using these functions are in a comment at the bottom of matops-perf-test.chpl


text:
[example][MLIRSparseTensor] Add example for sparse_tensor.coordinates…

…/values/positions

Conflict resolved.

Thanks!

repo: buddy-compiler/buddy-mlir