data request

How did you get accurate geodata of polling stations in Kenya and also accurate demarcations of the ward boundaries and any kind of administrative boundaries? I am working on something similar, starting as far back as 2013 and looking at the three elections, but geodata is not easy to get.

There are sites providing admin level geoData. On the polling stations, IEBC provides the list, but for geodata requires much more, will share the links ASAP

Hope it's not too much to ask but can you  share the data in any format that has coordinates? I have about 80% done but I'm running into issues especially with larger counties in the Northern Kenya and North Eastern Kenya. And your database would be really really helpful.

Here is the link to the geo data https://www.geoboundaries.org, you can head up to the individual county data. Although there have been recent changes in some wards/sub counties. Not sure if there have been geo-data demacation.

Yes the admin levels looks great. The source I was using had some errors when it came to some shapefiles in the ward level

I think the issue may be with polling stations, right?

yes absolutely

Oooh I get it, there was one way I used to obtain most but not all polling stations, there is this site https://mycandidate-kenya.opencitieslab.org/. So the site requires name of polling, so on supply it provides lon and lat within the html. I got majority there, some manual search, though not all polling stations were found. You can obtain most via scrapping the site in any programming language.

This conversation has been really helpful so asanti sana.

how do I reach you?

My LinkedIn is linkedin.com/in/kelvin-mungai-murira-47648322b
https://www.linkedin.com/in/kelvin-mungai-murira-47648322b
````````````````````````````````````````````````````````````````````````````````````````````````
*Kelvin Mungai *
Political Science Major |  NYU Abu Dhabi https://nyuad.nyu.edu/en/
Focus Area - Computational Social Science. |  NYU Abu Dhabi
https://nyuad.nyu.edu/en/
UAE: +971 505978265
Kenya: +254 711 179 014
[image: Download Nyu Abu Dhabi - Nyu Abu Dhabi Logo PNG Image with ...]
On Wed, Nov 27, 2024 at 4:36 PM Akhapwoya Obuchere @.***>
wrote:

how do I reach you?
—
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_akhapwoyaco_GeneralElectionsKenya_issues_1-23issuecomment-2D2503768662&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=bTdxEMtRrLLOYejUVjbUBw&m=Ywk-rQw1-57f09kNA9G0VzUShlIWU_7gc9j0tq-0eoNKO_NdixxNTJcf8zyeB2Wq&s=4q1I-3e_Xu9KxBsd8AIe83KEBYkS83xyHU5Jx0E13i0&e=,
or unsubscribe
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_BHSSXKN7XPNGKFQ45X7HHXT2CW4FVAVCNFSM6AAAAABR4WNY3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBTG43DQNRWGI&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=bTdxEMtRrLLOYejUVjbUBw&m=Ywk-rQw1-57f09kNA9G0VzUShlIWU_7gc9j0tq-0eoNKO_NdixxNTJcf8zyeB2Wq&s=JIazWpWWblZ3JpbUwLmELg6I9WgNSgfCeuBu3n_Ja84&e=
.
You are receiving this because you authored the thread.Message ID:
@.***>


Add a warning if cluster's insecure setting is enabled

For cluster, we allow to skip hostname verification from certificate.
We now print a warning when this option is enabled, both on startup
or if the property is enabled on config reload.
Signed-off-by: Ivan Kozlovic<EMAIL_ADDRESS>

Coverage decreased (-0.2%) to 90.359% when pulling 4dd1b26cc559c8f0b95b9ce14a4268c270128147 on add_warning_if_cluster_insecure into 58b21e392c8e8d33c40c662abba7396cf5645d42 on master.


Disable bundle generation

You should be able to do not generate the bundle. We do not use it. I suggest you enable us to set it to false, and then you do not create it, like this:
{
  //other config
  "bundle": false
}

Why would it make sense to disable? You don't have to use it or reference it.

When we do not use this file, it is some kind of pollution in the project.
Having a cleaner work space is a very important argument in favor of the typescript ecosystem.

I'm open to a PR for this, but I won't be implementing it into TSD myself. I don't think it's a valuable feature to add and enabling this may cause issues with future TSD releases. By the same argument, the entire typings folder is pollution - which I agree visually, but so is node modules, bower components, config files, package.json. You can always have your IDE hide the typings directory.


Unable to record the meeting when using amazon-chime-sdk-component-library-react

Hi,
I followed the below documentation to set up and host serverless meetings using ReactJS
https://github.com/aws/amazon-chime-sdk-component-library-react/tree/master/demo/meeting
But the problem is that I cannot record the meetings using the steps in this README. I do not see any bot/recorder joining the meeting. It works fine with native javascript demo meetings but not with React version
Please let me know how to record meetings when using react chime SDK

Chime SDK team has launched a new service to provide meeting capture capabilities with original video resolution and frame rate. You will not need to provision your own container infrastructure. Instead, just call the API from AWS SDK and provide a prepared S3 bucket to receive the artifacts.
To know more, please check out the blog:
https://aws.amazon.com/blogs/business-productivity/capture-amazon-chime-sdk-meetings-using-media-capture-pipelines/


Remove project overview view

The project overview is not helpful and confusing. The cases list for a project should be the entry point. Related, the sidebar should be purged.

Will be regarded as UI/UX issue after discussion.


Accessing ExAC constraint metrics through the REST API

Hello, is there a way of retrieving the constraint metrics table through the ExAC REST API? I'm particularly interested in the expected missense and synonymous variant frequencies for one of my projects but haven't found any way to do it in the documentation at http://exac.hms.harvard.edu/. If there was a way of retrieving the entire constraint metrics table for a gene I think that would be really useful for a lot of people. Thanks.

Update: I have found this (http://mygene.info/blog/functional-gene-constraint-scores-from-exac-now-available-from-mygene-info), which appears to be a way of doing what I need to do. I'll leave it here as well in case it is useful for anyone else. Thanks.

The code in this repository backs http://exac.broadinstitute.org.
http://exac.hms.harvard.edu is based on a fork of this repository (https://github.com/hms-dbmi/exac_browser) and is operated by a different group (https://avillach-lab.hms.harvard.edu/exome-aggregation-consortium-exac). Questions about http://exac.hms.harvard.edu/rest would have to be directed there.


[Bug] [Relay][MXNet] wrong conversion logic in Repeat operator about axis

Bug description
According to the MXNet documentation, the default value of axis is None rather than 0. They are different.

None: uses the flattened input array and return a flat output array.
0: repeats the data along the first axis.

For example:
x = [[ 1, 2], [ 3, 4]]
repeat(x, repeats=2) = [ 1., 1., 2., 2., 3., 3., 4., 4.]
repeat(x, repeats=2, axis=0) = [[ 1., 2.], [ 1., 2.], [ 3., 4.], [ 3., 4.]]
cc @shingjan

This bug has been fixed by #15891

This bug has been fixed by #15891


Infinity Drill particle effect causes particles to not test alpha

Industrial Foregoing Version: 1.11.7
TeslaCoreLib Version: 1.12.2-1.0.15
Crashlog (If Any): N/A
When carrying the Shiny variation of the Infinity Drill, particles behave strangely, in that they don't seem to be alpha testing as they should be. I have confirmed that this occurs in Minecraft 1.12, with only these mods;

Forge <IP_ADDRESS>95
IF 1.11.17
TeslaCoreLib (and Registries) 1.12.2-1.0.15
Shadowfacts' Forgelin 1.8.2

I have attached images showing the issue in action.

Further, I don't know if this is intended, but it dropped in my Modded SSP world from a chicken in the sea.

I came to report the same.
also mine dropped from a blaze


check_binary error for Mach-O universal binary with 2 architectures

$ file /usr/local/bin/python3 /usr/local/bin/python3: Mach-O universal binary with 2 architectures: [i386:Mach-O executable i386] [x86_64:Mach-O 64-bit executable x86_64] /usr/local/bin/python3 (for architecture i386):	Mach-O executable i386 /usr/local/bin/python3 (for architecture x86_64):	Mach-O 64-bit executable x86_64
$ afl-fuzz -U -i in -o out -m none -- python3 frida_driver.py
afl-fuzz++2.58d based on afl by Michal Zalewski and a big online community
[+] afl++ is maintained by Marc "van Hauser" Heuse, Heiko "hexcoder" Eissfeldt and Andrea Fioraldi
[+] afl++ is open source, get it at https://github.com/vanhauser-thc/AFLplusplus
[+] Power schedules from github.com/mboehme/aflfast
[+] Python Mutator and llvm_mode whitelisting from github.com/choller/afl
[+] afl-tmin fork server patch from github.com/nccgroup/TriforceAFL
[+] MOpt Mutator from github.com/puppet-meteor/MOpt-AFL
[] Getting to work...
[+] Using exploration-based constant power schedule (EXPLORE)
[+] You have 4 CPU cores and 2 runnable tasks (utilization: 50%).
[+] Try parallel jobs - see /usr/local/share/doc/afl/parallel_fuzzing.txt.
[] Checking CPU scaling governor...
[] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[] Deleting old session data...
[+] Output dir cleanup successful.
[] Scanning 'in'...
[+] No auto-generated dictionary tokens to reuse.
[] Creating hard links for all input files...
[*] Validating target binary...
[-] PROGRAM ABORT : Program '/usr/local/bin/python3' is not a 64-bit Mach-O binary
Location : check_binary(), src/afl-fuzz-init.c:1901

Hi @riusksk,
thanks for the issue.
We don't have a macOS machine and the majority of changes regards Apple devices come from external contributors.
As a workaround, simply use /bin/python3, we'll figure out how to fix ASAP.
PS: is python3 working in unicorn mode? We are working on it but it is not supported ATM, it should not work, use python2 for the moment.

yes, run cmd with your frida-js-afl-instr tool :
afl-fuzz -U -i in -o out -m none -- python3 frida_driver.py
I made the following changes:
if ((f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED)
          && (f_data[0] != 0xCA || f_data[1] != 0xFE || f_data[2] != 0xBA))
    FATAL("Program '%s' is not a 64-bit Mach-O binary", target_path);

then the following error occurred:
[-] Hmm, looks like the target binary terminated before we could complete a
    handshake with the injected code. Perhaps there is a horrible bug in the
    fuzzer. Poke<EMAIL_ADDRESS>for troubleshooting tips.

[-] PROGRAM ABORT : Fork server handshake failed
         Location : init_forkserver(), src/afl-forkserver.c:457

Ah ok, it's the Frida based instrumentation, I was talking about Unicorn mode.
To fuzz closed source binaries on Linux, I suggest QEMU mode.
The Frida instrumentation is an experiment that has to be ported to Android when the Frida guys will fix all the problems with the Stalker, ATM Frida is not really ready for real fuzzing (and it's not my fault, I don't develop that DBI).
As a workaround, I built a fuzzer based on Frida+QBDI for Android (https://github.com/andreafioraldi/frida-qbdi-fuzzer). Always experimental (the mutator is naive and works only with native code), but at least QBDI works.

Never tested frida-js-afl-instr on macOS, it is not supposed to work on such a platform. The test binary is also Linux only, uses Linux.

What problems need to be solved if I want to port it to macOS?

Above all, recompile test.c as a macOS binary. IDK if there are particular issues cause I never tested it on macOS. I'll close this issue cause it is Out-Of-Topic for AFL++.
Thank you for the patch with universal Mach-O files, I pushed it.


_evaluate_volume() got an unexpected keyword argument ‘epoch’

When I run the codes to evaluate the performance of RobustVolumeShapley with ‘gr_threshold=1.05’ on cifar10-embeddings data set, the code reported a bug, named, “the error is as follows: _evaluate_volume() got an unexpected keyword argument ‘epoch’ ”
is the method, RobustVolumeShapley, not suitable for calculating the Shapley values on Cifar10-embeddings? Or is the hyperparameters, such as gr_threshold, not set correctly?
Can you tell me how to settle this bug? Thanks!

When I try setting the parameters ‘traing_kwargs’ to an empty dictionary, but there is another bug, namely, “‘<‘ not supported between instances of ‘list’ and ‘int’”

Can you share the code?  RobustVolumeShapley should work on any datasets including the cifar10-embeddings dataset.

The code is as follows:
import numpy as np
import pandas as pd
import torch
import sys
from opendataval.dataloader import Register, DataFetcher, mix_labels, add_gauss_noise
from opendataval.experiment import ExperimentMediator
from opendataval.dataval import (
    AME,
    DVRL,
    BetaShapley,
    DataBanzhaf,
    DataOob,
    DataShapley,
    InfluenceSubsample,
    KNNShapley,
    LavaEvaluator,
    LeaveOneOut,
    RandomEvaluator,
    RobustVolumeShapley,
)
from opendataval.experiment.exper_methods import (
    discover_corrupted_sample,
    noisy_detection,
    remove_high_low,
    save_dataval
)
from matplotlib import pyplot as plt
def main(exper_med):
    data_evaluators = [
        [RobustVolumeShapley(gr_threshold=1.05)],
        # [KNNShapley(k_neighbors=valid_count)],
        # [AME(num_models=1000)],
        # [LavaEvaluator()],
        # [DVRL(rl_epochs=2000)],
        # [DataShapley(cache_name=f"cached")],
        # [BetaShapley(cache_name=f"cached")],
        # [DataBanzhaf(num_models=1000)],
        # [DataOob(num_models=1000)]
    ]

    for method in data_evaluators:
        exper_med = exper_med.compute_data_values(data_evaluators=method)
        # Saving the results
        output_dir = "../Cifar10Value/cifar10/+"+str(method[0])+"/" #f"../Cifar10Value/removal-tmp4-cifar10/{dataset_name}_{noise_rate=}/"
        exper_med.set_output_directory(output_dir)

        fig = plt.figure(figsize=(15, 25))
        df_resp, fig = exper_med.plot(remove_high_low, fig, col=2, save_output=True)
        exper_med.evaluate(save_dataval, save_output=True)

        print(1)

if __name__ == '__main__':
    dataset_name = "cifar10-embeddings"#"cifar100"#
    train_count, valid_count, test_count = 1000, 100, 3000
    noise_rate = 0.1
    noise_kwargs = {'noise_rate': noise_rate}
    model_name = "LogisticRegression" # will train a logistic regression model built with PyTorch (sklearn's logistic regression can be very slow).
    metric_name = "accuracy"
    train_kwargs = {"epochs": 5, "batch_size": 100, "lr": 0.01}
    device = 'cuda:2' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu'

    exper_med = ExperimentMediator.model_factory_setup(
        dataset_name=dataset_name,
        cache_dir="../cifa10dataval/",
        force_download=False,
        train_count=train_count,
        valid_count=valid_count,
        test_count=test_count,
        add_noise=mix_labels,
        noise_kwargs=noise_kwargs,
        train_kwargs=train_kwargs,
        model_name=model_name,
        metric_name=metric_name,
        device = device
    )
    main(exper_med)


"minimap-git-diff" community package support

Implement optimized styles for the community :package: package  minimap-git-diff by atom-minimap.
This should make the minimap-git-diff package fit more with the theme color palette.

The git status colors should adapt the Nord color palette

This is a milestone issue #20 item.

BeforeAfter

BeforeAfter


✨[Feature] Agree on a file naming scheme

Is your feature request related to a problem? Please describe.
Currently we are naming our files using both camelCase and kebab-case.
Describe the solution you would like
We need to agree on one naming convention and stick to it.
Additional context
We'll rename the files when we have finished the MVP API on the backend and moved towards the frontend. This'll be done as to minimize merge conflicts.

I think upper CamelCase for constructors and lower camelCase for functions would be fine. However kebab-case is recommended for NPM packages, so if we wanted to refactor some modules into independent packages they would have to be renamed in kebab-case.


Rewrite Stuff

This is still a WIP If you have any suggestions leave them down below

[x] Mute and Unmute commands
[x] Creating Users, Linking Users, and Unlinking Users
[x] Ticket Commands
[x] Command Handler, Event Handler and Command Loading/Sub Command Loading
[x] Ban and Kick commands
[x] Welcome Messages
[x] Reset Password
[x] Message Logging
[x] User Linked Command and User Premium
[x] User Creation Logging
[x] "Donating" Commands
[x] Premium Commands
[x] Report User/Staff Command (Only Admins will be able to see the staff report :+1:)
[x] Reaction Roles
[x] Tickets Logging
[x] Suggestion Commands/Suggestions
[x] More Staff Commands (Warn Commands ETC)
[x] Server Creation Commands
[ ] Better Help Command
[ ] Proxy Commands
[ ] Node Info (If the node is up down ETC)
[ ] Server Creation Logging
[ ] Some Staff Fixing Commands (ProxyFix ETC)
[ ] Node Downtime alerts? (Alerts when a Node goes down etc)

Changes

Complete Rewrite on Command Handler and Event Handler
Change Databases quick.DB to MongoDB
Redis For Caching
Better Util's and Cleaner Code in General
License Change from MIT to GNU 3

*Changed List order to what I think is more important then others

*This Also Changes the License to GNU General Public License v3.0 Package.json does not show that yet

If someone could do the Help command that would be wonderful :+1:

If someone could do the Help command that would be wonderful +1

omw

Not As Important things that need to be done

[ ] Switch to undici
[ ] Using the Cache more then it is (Caching Servers and such)

Anything else you might think is important add here (I'll add it to the list)
If you know how to do these things please help  by doing them :+1:

How should the proxy command be made? Should we use the old proxy system (https://github.com/DanBot-Hosting/DanBotHostingStats/blob/master/bot/discord/commands/server/proxy.js) or are any updates updates planned for the proxy backend? Because I would make the cmd on the next days if I have time

How should the proxy command be made? Should we use the old proxy system (https://github.com/DanBot-Hosting/DanBotHostingStats/blob/master/bot/discord/commands/server/proxy.js) or are any updates planned for the proxy backend? Because I would make the cmd on the next days if I have time

The proxy system there is currently is complete shit, I will work on the proxy system right now though

And?

he's waiting on dan. should've read all the conversation first.

And?

he's waiting on dan. should've read all the conversation first.

im waiting on darker lmao...

And?

he's waiting on dan. should've read all the conversation first.

im waiting on darker lmao...

but darker said hes waiting on you lmao

And?

he's waiting on dan. should've read all the conversation first.

im waiting on darker lmao...

but darker said hes waiting on you lmao anyways

<@599204289088585738> = egg

How about you stop being cringe

Locked

@Darker-Ink
Add a panel link command.
PR: Darker-Ink/DBH-Rewrite#11

Suggestion: everytime a suggestion is posted the DBH bot will follow up with a prewrote message basically saying the rules, ect. As most people don't read guidelines kinda like a discord.js bot thing

@Darker-Ink Add a panel link command. PR: Darker-Ink#11

I'm pretty sure people can put 2 and 2 together if not humanity is screwed

Description: Add .toLowerCase() to message.content
File: src/commands/server/delete.js
Type: Quality Of Life

Description: Add .toLowerCase() to message.content File: src/commands/server/delete.js
Type: Quality Of Life

oop been so long I forgot I do buttons iirc so :+1:

RIP


Cannot override custom-variables.scss and custom-styles.scss

Summary
I am using jekyll-remote-theme to import the master branch of Minima, but I discover that I cannot override custom-variables.scss and custom-styles.scss. I put these two files into _sass/minima/ in my repository, but after running bundle exec jekyll serve, the real imported files are still from the Minima repo.
Here is a CSS map:

Can anyone help me?
Environment

Jekyll: 4.0.0
Bundler: 2.1.4
jekyll-remote-theme: 0.4.1
Minima: the master branch

I'm having this problem too (I've got my Gemfile accessing the current GitHub master version of minima).
Could you clarify that a bit @ashmaroli? Which folder exactly should the user's custom-variables.scss and custom-styles.scss files be placed in?

The entry point is @import "minima-{{ site.minima.skin | default: 'classic' }}";. So when overriding Sass partials, you need to have at minimum, file of path matching
minima-{{ site.minima.skin | default: 'classic' }} for the overrides to be picked up.

That sounds I need to copy multiple files into my repository, for example, if the skin is classic, I have to copy _sass/minima-classic.scss. Since it imports mimima/initialize, I have to copy _sass/minima/initialize.scss

@JJC1138 As of this comment, to customize the CSS generated, place your custom-variables.scss or custom-styles.scss (whichever is relevant to the use-case) in the path _sass/minima at your source.
In addition to this, you need to have the skin partial (i.e., if using the default skin then it would be
minima-classic.scss) at the root of _sass in your source to pull in your overrides.

I have copied custom-variables.scss, custom-styles.scss, and minima-classic.scss into my repository, but only custom-styles.scss has been override:

I see.. Looks like to override custom-variables.scss, you need to copy _sass/minima/initialize.scss as well.. :frowning_face:

This workflow needs to be improved..

I see.. Looks like to override custom-variables.scss, you need to copy _sass/minima/initialize.scss as well.. ☹

Even worse, after copying _sass/minima/initialize.scss into my repository, jekyll serve reported the below errors:
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style-classic.scss':
                    Error: File to import not found or unreadable: base. on line 45:1 of _sass/minima/initialize.scss from line 87:1 of _sass/minima-classic.scss from line 1:1 of style-classic.scss >> @import ^
             Error: Error: File to import not found or unreadable: base. on line 45:1 of _sass/minima/initialize.scss from line 87:1 of _sass/minima-classic.scss from line 1:1 of style-classic.scss >> @import ^
             Error: Run jekyll build --trace for more information.

Thank you very much for looking into it. As a quick workaround, I made a assets/css/style.scss in my site which looks like this:
---
---
// my custom variables that Minima can use here

@import "minima-{{ site.minima.skin | default: 'classic' }}";

// my custom CSS rules that override Minima's rules here

That seems to work well, and has the nice property of only having to duplicate a trivial amount of Minima code in my project (the import line shown above).
I think the intended scheme of having the hooks to pull in the user's custom-variables.scss and custom-styles.scss would be nicer, but I'm afraid I'm a beginner at Jekyll and Sass, so I  don't understand why that doesn't work as it is.


Mercenary routines missing some defensives?

I.E Jet Out and Jet Boost are not used as part of cooldowns?
Could add something like so:

 // Push back melee damage
Spell.Buff("Jet Boost", ret => Me.EnemiesAttackers.Count(x => x.Distance <= 5 && x.HasMeleeWeapon) > 2),
// Escape for distance
Spell.Buff("Jet Out", ret => Me.Level >= 61 && Me.HealthPercent <= 20 && Me.EnemiesAttackers.Count(attacker => attacker.Distance <= 5 && attacker.HasMeleeWeapon) > 2),

Great idea but could/would be problematic if you need to stay in a certain spot, could potentially throw you off a platform, bridge, or ledge etc. A few fights come to mind that this would be really bad. DefaultCombat by default is designed with the presumption that the user is controlling the movement, this is why we allow for enable / disable on charge. We could do it by function (disabled by default) but the bot is already bloated with functions.


Moved kegs from ARGV to args.rb

[ ] Have you followed the guidelines in our Contributing document?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same change?
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

#5730

Still a work in progress, meant to open as a draft.

@zachauten Cool, shout when you're done/need help! @GauthamGoli may have useful thoughts too.

@MikeMcQuaid @GauthamGoli Ready for review!

Great work, thanks again @zachauten!


Explorer: Search File Listing

VSCode Version: Version 1.8.1 (1.8.1)
OS Version: macOS 10.12.2 (16C67)

Feature Request

When focused within the [file] Explorer, it's not possible to search by the names of all directories & files starting at the root of the explorer itself.
It's also not possible to navigate up from the root directory in the Explorer.

Feature no. 1 is very similar to NERDTree in vim: when focused, you can /$searchterm for specific files and open them in the buffer with a quick  (amongst other things). Feature no. 2 is an extension of that: improving the general file navigation within the Explorer.

This issue has already been reported. Please use the search function next time before reporting an issue and/or this time if you are curious about the progress of the issue.

I did search for "search explorer" across open issues, but didn't find an
obvious open issue that matched this.
Mind doing me the favor of linking to it?
On Mon, Jan 30, 2017 at 5:36 AM Benjamin Pasero<EMAIL_ADDRESS>wrote:
Closed #19571 https://github.com/Microsoft/vscode/issues/19571.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/19571#event-941328224, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AABIcC3i8PXc_RBBx1GZ8v8Tv8U8CmaPks5rXedvgaJpZM4LxED-
.

https://github.com/Microsoft/vscode/issues/10026


HTML

#HTML
##User Story
As a bootcamp student
I want a prework notes to be structured on a webpage
so that I can easily find and read information
##Acceptance criteria
GIVEN a prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, JavaScript with associated notes listed


Feature Request

Custom names for printers instead of "My First 3D Printer". Minor I know, but would be helpful as I have 2 Prusa Mk2s connected, one with an MMU and it's sometimes confusing as to which one I'm viewing.

You can now change the printer name by clicking the 3 dots on the right, and clicking 'Preferences'. Let me know if you run into any problems.

Confirmed working! Awesome!


[RF] Implement consensus validators

https://github.com/stratisproject/StratisBitcoinFullNode/commit/f6ea0f603014313003563e4453dff37b21a7c26d


:bug: when update to latest version

I can not load vscode snippet anymore by :
require('luasnip.loaders.from_vscode').load()

this is my error:
Error executing vim.schedule lua callback: ...packer/start/LuaSnip/lua/luasnip/loaders/from_vscode.lua:68: bad argument #1 to '
pairs' (table expected, got nil)

this bug was caused by an error in the syntax of my json snippet s


fix: billing address zip code

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Tks @syuzanvs we fixed on template-odoo repository!


⚠ Bofrost.be has degraded performance

In 0eed43c, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1064 ms

Resolved: Bofrost.be performance has improved in a266ffd after 6 minutes.


Bundle patch4

wmagent branch version of
Upper limit for MaxWallTimeSecs set to 45h #9030
Use cmssw exit code from job report #9009

 Fix #9033 - bundle of patches for patch4


chore: migrate type tests of each to TSTyche

This PR migrates type tests of each to TSTyche.
This is the final migration PR, so I also removed all infrastructure related to tsd.
TSTyche version got bump as well, because I found a bug. It did not collect nested expect, which is crucial in this file. This problem is fix in<EMAIL_ADDRESS>It is a beta release, because I am adding --watch. The watch mode is the only part which is less tested, the testing logic did not change.
Also note that .toEqual() is renamed to .toBe(). This makes it smoother to replace .toBeString() with .toBe<string | undefined>() if there is a need. The old matchers are deprecated, but work as before. I will rework other test files later.
Test plan
Green CI.

Hooray! Thanks for the time you spend looking through the migration PRs.


ListView: fix list view selected hover

Description

This PR fixes #5304.
Motivation and Context

Hover color was different in Light and Dark theme for the ListViewItem. This PR fixes it.
How Has This Been Tested?

Manually.

/azp run

Closing: decision has not been made yet


Unable to pass shareProcessNamespace to PodOptions

I have a need to add shareProcessNamespace for use within a sidecar for some solr thread debugging and there doesn't seem to be a way to pass this option.
This should be able to be passed within the Solr Operator CRD.
apiVersion: solr.apache.org/v1beta1
kind: SolrCloud
metadata:
  name: explore
spec:
  customSolrKubeOptions:
    podOptions:
      shareProcessNamespace: true

Currently i have to use use kyverno to mutate the pod after the operator creates the statefulset and would love to be able to remove that destructive option for a more graceful approach in adding it to the helm chart values file.

Hey @tommylogik - sorry for the long delay.  I've opened a PR that should make this option available - would love a review or some manual testing if you're able to give it a try!


Sample for multi master model

This video shows examples of multi master model very quickly and does not give much details. I am also not able to find much details anywhere.
1.Where can i find the test application that was shown in the video?
2. How to get access to dynamo db tool box console? This library does not have code for the UI.
Please help.

I'm looking for the same thing. This seems to be the old solution. Now there's a new library, but I can't find where I can add code for conflicts resolution.  Is there a way to do it ?

did u manage to get the multimaster mode working with default conflict resolution?

I don't think it's an option of this library if I look at the code. I think the video present an older project no longer maintained.
I'm not sure this one is either.

Here is a high level description of a multi-master implementation that uses the concept of region-to-key mastership to decide which stream update to propagate to other regions. A code sample is a good idea and is probably something that could be added as part of an integration test

This site seems to describe where to download the UI  - https://dynamodb-cross-region.s3-external-1.amazonaws.com/DynamoDBReplicationCoordinatorApplicationBundle.zip

fwiw - AWS re:Invent 2016: Cross-Region Replication with Amazon DynamoDB Streams (DAT201) has some info on how aws lambda was used with cross-region replication of dynamodb tables - (with some adaptations of the tables)

+1

After our discussion with support team it was told to us that the UI shown in the video  is not supported anymore. We have to use the cross region replication library only.

@akshetty9 , @miclefebvre, @jedi4ever , @abadyan-vonage You might want to take a look at my PR which does master-master replication.
Feature Issue
Pull request


New Version: VSDC.Editor <IP_ADDRESS>2

Resolves #58883

Microsoft Reviewers: Open in CodeFlow

Closing as version already present and merged


Add support for multiple evcc servers

setup, edit and switching

Preferably switching is automatic based on internal (home WIFI) or external (on the road) connection. I use this also for Home assistant where my home IP adress for the same instance is different from the external IP adress. Home assistant app recognisez which one to use.  I now need to manually change my IP adress when switching.


Please add a license.

This repo is missing a license. Without a license, all code is copyright the author and may not be used by anyone else.
Please use something like http://choosealicense.com/ to decide what license to use.

Hey there. Thanks for the suggestion. :slightly_smiling_face: No need to close the issue.

Fixed in https://github.com/OpenZeppelin/openzeppelin-network.js/commit/038fbf863d6212b350da9a0e3c22a2132dbed935.


Move mutable key access to a trait

We should put this feature a bit on the side, in a trait.
Something like:
impl Ordermap {
    fn get_pair_mut(&mut self, key: &Q) -> (&K, &mut V) { .. }
}

impl MutableKeys for OrderMap {
    fn good_method_name(&mut self, key: &Q) -> (&mut K, &mut V) {  .. }
}

Should this be done via specialization?
Something like:
impl <K, V, S> Ordermap<K, V, S> {
    default fn get_pair_mut(&mut self, key: &Q) -> (&K, &mut V) { .. }
}
impl <K: MutableHashMarker, V, S> Ordermap<K, V, S> {
    fn get_pair_mut(&mut self, key: &Q) -> (&mut K, &mut V) { .. }
}

I suspect  inherent impl specialization is a long way off, but ultimately I much prefer only having one method name.

The point of a trait would be to provide the feature, but have it a bit out of the way, so reduce misuses of it.

Oh I see the role of that marker trait now. I don't think that's a viable thing to do for technical reasons: get_pair_mut would then vary its signature in a way that's not compatible with Rust's usual trait rules (it would be similar to a C++ templaty thing, that expands to something different for different input types).

There are several ways to accomplish something close to it.
You could use associated types:
fn get_pair_mut(&mut self, key: &Q) -> (KeyReference::Type, &'a mut V)
where K: KeyReference

impl<'a, K> KeyReference<'a> for K { default type Type = &'a K; }
impl<'a, K:MutableHashMarker> KeyReference<'a> for K { type Type = &'a mut K; }

Also just realized you could do it without specialization if you use a wrapper:
struct KeyWrapper<'a, K: 'a>(&'a mut K);

trait MutableHashMarker{}

impl<'a, K> Deref for KeyWrapper<'a, K> {
    type Target = K;
    fn deref(&self) -> &K { self.0 }
}
impl<'a, K: MutableHashMarker> DerefMut for KeyWrapper<'a, K> {
    fn deref_mut(&mut self) -> &mut K { self.0 }
}

impl<'a, K> Into<&'a K> for KeyWrapper<'a, K> {
    fn into(self) -> &'a K { self.0 }
}
impl<'a, K: MutableHashMarker> Into<&'a mut K> for KeyWrapper<'a, K> {
    fn into(self) -> &'a mut K { self.0 }
}

fn get_pair_mut(&mut self, key: &Q) -> (KeyWrapper<K>, &mut V)

I've already implemented KeyWrapper once. (I promise). I didn't commit to the idea.

In general I think each advanced use of the type system has a cost and it has to have a value that offsets that :) Sometimes the simple is the best.

I think it'll be rather difficult to come up with good_method_name. get_pair_mut_key_mut doesn't really roll of the proverbial tongue.
Even with a good name, having two functions still seems less intuitive to me.

It is possible to avoid using a wrapper structure, and achieve almost the same thing using impl Trait
Here's a small demo:
#![feature(conservative_impl_trait)]
use std::ops::Deref;

trait MutableHashMarker{}

trait KeyRef<'a, K>: Deref<Target=K> {
    fn as_mut(self) -> &'a mut K
    where K: MutableHashMarker;
}

impl<'a, K> KeyRef<'a, K> for &'a mut K {
    fn as_mut(self) -> &'a mut K
    where K: MutableHashMarker { self }
}

struct OrderMap<K, V, S>(K, V, S);

impl <K, V, S> OrderMap<K, V, S> {
    fn get_pair_mut<'a, Q>(&'a mut self, _key: &Q) -> (impl KeyRef<'a, K>, &'a mut V) {
        (&mut self.0, &mut self.1)
    }
}

struct MutKey(i32);
impl MutableHashMarker for MutKey{}

fn main() {
    {
        let mut v = OrderMap(MutKey(1i32), (), ());
        let (k, _) = v.get_pair_mut(&0);
        k.as_mut();
    }
    {
        let mut v = OrderMap(1i32, (), ());
        let (k, _) = v.get_pair_mut(&0);
        let i: i32 = *k;
        // k.as_mut(); // Error: the trait `MutableHashMarker` is not implemented for `i32`
    }
}


x/tools/gopls: code lens for interfaces implemented by methods

Is your feature request related to a problem? Please describe.
If I am looking at existing Go code, I would like to see immediately if this method was
implemented to satisify an interface.
For example like this screenshot from a different IDE:

the red up-arrow symbol on the left side shows that this method implements an interface.
It would be great to have these indicators next to the line number in vscode.
Describe alternatives you've considered
I thought about alternatives, but having a small indictor next to the line number is the only solution I have found.
Related discusssion: https://github.com/golang/vscode-go/discussions/1735

@hyangah points out that this is a dupe of #56695.


Fix urlbase

The URL base in the client class is pointed at the gradebook API endpoint, this will need to change to be just the base API endpoint URL and the subclasses will be responsible for adding their own extra piece to the URL.

:+1:

Issue resolve by PR#29


error in highest weight CGC

https://github.com/maartenvd/GTP_CGC/blob/bf9d148d7b42e3c945c858142410f651a021cde3/cgc.jl#L55
This does not seem correct. You just seem to add all the different contributions of different creation operators together, whereas acting with J+^ell = J+^ell_S1 + J+^ell_S2 for every single value of ell gives an independent set of equations. I am actually surprised this worked in its current form, unless I am overlooking something?

Oh indeed, that is totally incorrect. I'll try to correct it
Sent from my iPhone

On 17 Sep 2020, at 02:15, Jutho<EMAIL_ADDRESS>wrote:
https://github.com/maartenvd/GTP_CGC/blob/bf9d148d7b42e3c945c858142410f651a021cde3/cgc.jl#L55
This does not seem correct. You just seem to add all the different contributions of different creation operators together, whereas acting with J+^ell = J+^ell_S1 + J+^ell_S2 for every single value of ell gives an independent set of equations. I am actually surprised this worked in its current form, unless I am overlooking something?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Both highest and lower weight cgcs suffer from this problem. This makes sense, because i tried to rewrite / clean up the code a bit and everything broke. Its a wonder that the tensorkit tests passed partially, and the comparisons to matlab worked
Sent from my iPhone

On 17 Sep 2020, at 02:15, Jutho<EMAIL_ADDRESS>wrote:
https://github.com/maartenvd/GTP_CGC/blob/bf9d148d7b42e3c945c858142410f651a021cde3/cgc.jl#L55
This does not seem correct. You just seem to add all the different contributions of different creation operators together, whereas acting with J+^ell = J+^ell_S1 + J+^ell_S2 for every single value of ell gives an independent set of equations. I am actually surprised this worked in its current form, unless I am overlooking something?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Don't spend time on this during your holidays; I am anyway working on some changes. I hope I can send you something before I leave on holidays.

lower weight cgc turned out not to have that problem. I have rewritten both, but the errors in tensorkit persist. I will first compare with what bram gets to make sure my clebsch gordans are correct

Hi Maarten; did you get my email. It contained the start of an implementation with some (possible) improvements. Slicing a SparseArray used to return a dense array, this should now be fixed with the latest master of TensorOperations. But even then, enumerate on this SparseArray will loop over all indices, also the ones with zero values. I've added a nonzeros function to loop over nonzero index - value pairs . Also, in the current highest way function, you loop over both GT patterns of the two irreps to be fused, while looping over one and then looking up the other in the table is sufficient.

ah no, I was afraid to open my mails after going on holiday, so I put it
off. I was going to be lazy and include all gtpatterns as a field in the
Irrep{N} structure, making iterating over the patterns zero-cost.
it is nicer now, and everything should work again. I tested with tensorkit
and again there goes something wrong with norm conservation after
permutations.
I did change the gaugefixing back, because I don't think the new version is
correct. At the very least, my lowest weight CGC method fails to give
unitary cgc after using the new gauge fixing, while it worked nicely
together with the previous one.
Op di 22 sep. 2020 om 08:59 schreef Jutho<EMAIL_ADDRESS>
Hi Maarten; did you get my email. It contained the start of an
implementation with some (possible) improvements. Slicing a SparseArray
used to return a dense array, this should now be fixed with the latest
master of TensorOperations. But even then, enumerate on this SparseArray
will loop over all indices, also the ones with zero values. I've added a
nonzeros function to loop over nonzero index - value pairs . Also, in the
current highest way function, you loop over both GT patterns of the two
irreps to be fused, while looping over one and then looking up the other in
the table is sufficient.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/maartenvd/SUNClebschGordan.jl/issues/1#issuecomment-696544533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJKVCTHFNHJCR36IMBD6TTSHBDM5ANCNFSM4RPS5ZZA
.


3.0 - old PHP versions cleanup

best to review commit by commit
but I also tried to extract to separated PR as much as possible, so this PR shouldn't contain logic changes
direction aligned within maintainers team
extracted:

[x] #5499
[x] #5500
[x] #5513
[x] #5514
[x] #5515
[x] #5516
[x] #5518
[x] #5520
[x] #5521
[x] #5522
[x] #5523
[x] #5524
[ ] #5525
[x] #5527
[x] #5528
[x] #5529
[x] #5532

Closing, as everything got extracted


Features/vaccine api

Got basic service up.. with swagger
localhost:5001/swagger/index.html gets you there.

@bradhead --- you didn't sign the commits so DCO is failing.  Please give it another try...
Guidance is given on the details link (repeated here).
Thanks

Because this PR has both the immunizer and issuer API it is blocking any work being done to the issuer API. Can we get this merged quickly please?


Generating embedding with EmbeddingClient causes throw reference exception for 2.0.0-beta.6

There is a crash when trying to generate an embedding, both synchronous and async methods. This only occurs for 2.0.0-beta.6. Downgrading to 2.0.0-beta.5 is a workaround.
Minimal code repro:
using OpenAI.Embeddings;

EmbeddingClient client = new(model: "text-embedding-3-small", Environment.GetEnvironmentVariable("OPENAI_API_KEY"));
string description = "Foo";
Embedding embedding = client.GenerateEmbedding(description);
ReadOnlyMemory<float> vector = embedding.Vector;
EmbeddingGenerationOptions options = new() { Dimensions = 512 };

Embedding embedding = client.GenerateEmbedding(description, options);

Stack:
System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenAI.OpenAIClient.<>c__DisplayClass21_0.<CreateAddCustomHeadersPolicy>b__0(PipelineMessage message)
   at OpenAI.GenericActionPipelinePolicy.ProcessAsync(PipelineMessage message, IReadOnlyList`1 pipeline, Int32 currentIndex)
   at OpenAI.GenericActionPipelinePolicy.ProcessAsync(PipelineMessage message, IReadOnlyList`1 pipeline, Int32 currentIndex)
   at System.ClientModel.Primitives.ClientPipeline.SendAsync(PipelineMessage message)
   at OpenAI.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options)
   at OpenAI.Embeddings.EmbeddingClient.GenerateEmbeddingsAsync(BinaryContent content, RequestOptions options)
   at OpenAI.Embeddings.EmbeddingClient.GenerateEmbeddingAsync(String input, EmbeddingGenerationOptions options, CancellationToken cancellationToken)

Thank you for reporting this issue, @DavidLuong98 ! I got a fix for it here: https://github.com/openai/openai-dotnet/pull/85

@DavidLuong98, the fix @joseharriaga described is published now as 2.0.0-beta.7. Thank you again for reporting this!


How to load as assembly for SSRS?

I want to use Base64QRCode in one of my report, I am trying to use below code in SSRS, however I get strange errors. I have already added QRCodeGenerator Class and instance name QRCodeGenerator in Report Reference as well as Base64QRCode class and instance name.

I have added following lines in my code.
QRCodeGenerator qrGenerator = new QRCodeGenerator()
QRCodeData qrCodeData = qrGenerator.CreateQrCode(, QRCodeGenerator.ECCLevel.Q,1)
Base64QRCode qrCode1 = new Base64QRCode(qrCodeData)
Return qrCode1.GetGraphic(20)
I get the following error, [rsCompilerErrorInCode] There is an error on line 12 of custom code: [BC30545] Property access must assign to the property or use its value.
I tried following code
Dim qrGenerator as Object
qrGenerator = new QRCodeGenerator()
QRCodeData qrCodeData = qrGenerator.CreateQrCode(, QRCodeGenerator.ECCLevel.Q,1)
Base64QRCode qrCode1 = new Base64QRCode(qrCodeData)
Return qrCode1.GetGraphic(20)
I got following error, [rsCompilerErrorInCode] There is an error on line 12 of custom code: [BC30002] Type 'QRCodeGenerator' is not defined.
Can anyone help?

Adding classes explicitly shouldn't be necessary as per this guide: https://www.sqlservercentral.com/articles/generate-qr-code-barcodes-in-an-ssrs-report-with-the-qrcoder-library
If your problem still exists, please re-open this issue.


Updated Jwt.io link to jwt.ms link

What issue does this PR address?
Small update to documentation typo
Does this PR introduce a breaking change?
No
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines
[ ] Unit Tests for the changes have been added (for bug fixes / features) - N/A

Other information:
The underlying link is to jwt.ms but the text shows jwt.io.

Well - they both exist. But I also prefer the ms one. Thanks!


Localize OS desktop menus

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
All the context menu items are in English no matter what language you select:

Expected Result:
If you change the app to Spanish, they should be in Spanish.
Workaround:
No workaround
Platform:

Where is this issue occurring?

Desktop App

Version Number: v1.2.36-2
Reproducible in staging?: yes
Reproducible in production?: yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1670350765187639
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01375d7263acd1db70
Upwork Job ID:<PHONE_NUMBER>684824576
Last Price Increase: 2022-12-21

@kadiealexander No need to do anything here, I will take care internally!

A lot of progress made in the PR.

PR is finally ready for final review.

After dealing with this issue, we realized we probably need to handle these in two PRs since there are a lot of limitations when it comes to desktop menus in Electron:
Step 1: Translate the elements that are appended by us.
Step 2: Localize all default menu items that are appended by the OS.

@kadiealexander I am assigning you back since I will be assigning the C+ for review

Sorry @mollfpr, puller bear assigned @sobitneupane to the PR so I am going to switch assignees.

@MelvinBot Not overdue!

Removing the reviewing label since there is another PR left. @sobitneupane we should probably compensate you per each PR so don't forget to remind us when we are done with all of this since I am sure I will forget 😄

Just my two cents, but I think this is more accurately a new feature, because we never implemented this originally. Obviously, let's close the loop and address it, but as a result, I'm swapping out the bug label for the new feature label.

Taking care of this later this week.

Hmm, now that we work with some agencies, I think this would be a great one to externalize as it's not huge priority and I don't feel super passionate (it requires a big-ish refactor).

Hi!
I'm from Software Mansion and would like to take a look at this issue if it is still current 🤗

Of course, you can take a look since I have more urgent priorities rn, reassigning!

I'm happy to help review here as well 🙂

Since @wojtus7 has started working on this, let's make it a weekly

@wojtus7 Can you copy over the whole menu list in English? I can take care of translating them to Spanish 😄

@pecanoro This is the full list used right now:
New Expensify
About New Expensify

Check for updates

View keyboard shortcuts

Services

Hide New Expensify

Hide Others

Show All

Quit New Expensify

File

Close Window
Edit

Undo

Redo

Cut

Copy

Paste

Paste and Match Style

Delete

Select All

Substitutions

_ Show Substitutions

_ Smart Quotes

_ Smart Dashes

_ Text Replacement

Speech

_ Start Speaking

_ Stop Speaking

Start Dictation…

Emoji & Symbols
View

Reload

Force Reload

Toggle Developer Tools

Actual Size

Zoom In

Zoom Out

Toggle Full Screen
History

Back

Forward
Window

Minimize

Zoom

Tile Widow to Left of Screen
Tile Widow to Right of Screen
Replace Tiled Window

Bring All to Front
Help

Learn More

Documentation

Community Discussions

Search Issues

Most of that copy seems wrong, please follow our guidelines https://stackoverflowteams.com/c/expensify/questions/7025/7026#7026 especially WRT capitalization. (ie: it is not
Tile Widow to Left of Screen, it is
Tile widow to left of screen

@iwiznia oh, good to know! Thanks for the info ❤
I was referring to the menus I found in the app and assumed those are correct ._.
https://github.com/Expensify/App/assets/42337257/eb9df2d0-4536-4a05-9d24-951e73e98608

Oh, maybe those were added before we codified the capitalization rules, let's update them?

Yup I think this is great opportunity to do it 🤗

Just a note while we're tidying things up, are these supposed to be Widow or Window?

Tile Widow to Left of Screen
Tile Widow to Right of Screen

Widow seems out of place but I don't know if it's just a term I haven't heard of.

Oh sorry - typo 🫠
Should be Window

I realized I never posted the translations:
New Expensify - Nuevo Expensify
About New Expensify - Sobre Nuevo Expensify
Check for updates - Buscar actualizaciones
View keyboard shortcuts - Ver atajos de teclado

Services - Servicios
Hide New Expensify - Ocultar Nuevo Expensify
Hide Others - Ocultar otros
Show All - Mostrar todos
Quit New Expensify - Salir de Nuevo Expensify
File - Archivo
Close Window - Cerrar ventana

Edit - Editar
Undo - Deshacer
Redo - Rehacer
Cut - Cortar
Copy - Copiar
Paste - Pegar
Paste and Match Style - Pegar adaptando el estilo
Delete - Eliminar
Select All - Seleccionar todo
Substitutions - Sustituciones
_ Show Substitutions - Mostrar sustituciones
_ Smart Quotes - Comillas inteligentes
_ Smart Dashes - Guiones inteligentes
_ Text Replacement - Sustitución de texto
Speech - Voz
_ Start Speaking - Empezar a hablar
_ Stop Speaking - Dejar de Hablar
Start Dictation… - Iniciar dictado...
Emoji & Symbols - Emojis y símbolos

View - Ver
Reload - Cargar de nuevo
Force Reload - Forzar recarga
Toggle Developer Tools - Ver herramientas de desarrollo
Actual Size - Tamaño real
Zoom In - Acercar
Zoom Out - Alejar
Toggle Full Screen - Alternar pantalla completa

History - Historial
Back - Atrás
Forward - Adelante

Window - Ventana
Minimize - Minimizar
Zoom - Zoom
Tile Window to Left of Screen - Ajustar ventana la izquierda de la pantalla
Tile Window to Right of Screen - Ajustar ventana a la derecha de la pantalla
Replace Tiled Window - Reemplazar ventana ajustada
Bring All to Front - Traer todo al frente

Help - Ayuda
Learn More - Más información
Documentation - Documentación
Community Discussions - Debates de la comunidad
Search Issues - Buscar problemas

Hi
I tried a lot of different things but always ended up with similar problems that some menu items are auto generated in JS code and use system language.
For test purpose I changed my Mac language to polish only to realize different Electron app have exactly the same problems. For example those are screenshot from Visual Studio and as you can see some options are in English and some in Polish.
Only real solution I can see is modifying source code or try to make PR to Electron code to make those menu perfect.

@wojtus7 I think when I worked on this for our own items, I ended up discovering that it is possible to build the menu from a template and this was the only solution to our translation problems. Did you look into that option? https://www.electronjs.org/docs/latest/api/menu#menubuildfromtemplatetemplate

@pecanoro That's exactly the solution I came up with and created but the problem is that if you create the whole template with Menu.buildFromTemplate and then put the result template into the Menu.setApplicationMenu function it still automatically creates some menu options I haven't asked for.
It seems that inside that function while creating native menu some thing are auto created based on content of your menu. Eg: If you put Copy option inside menu it automagically will add Start Dictation and Emojis and Symbols options, you have no control over it, but the worst part is that it will create them in your system language. (Below example of removing only "Copy" from template)

On the other hand when I was looking for solution I found that in electron_menu_controller.mm some titles are even hardcoded in english (like "Services" in line 345)
Also creating patches for this C code is impossible up to my knowledge, because we get this code bundled, and I don't think creating electron fork for problem like this is suitable solution.
So for now I have full templates with English/Spanish labels and creating menu based on it, but there are still some English/Mac language menu options generated I have no control over. :(

Payouts due:
Issue Reporter: n/a
Contributor: n/a (internally handled)
Contributor+: $1000 @sobitneupane
Eligible for 50% #urgency bonus? No
Upwork job is here.

Payouts due:
Issue Reporter: n/a
Contributor: n/a (internally handled)
Contributor+: $2000 @sobitneupane
Eligible for 50% #urgency bonus? No
Payment is to be handled via NewDot.

Not overdue, awaiting Newdot payment.

Requested payment on newdot.
https://github.com/Expensify/App/issues/13414#issuecomment-1652813691

Reviewed the payment details for @sobitneupane. $2k is approved for payment via NewDot.


Adding gpio_defaults_block_0801 gl blocks to includes.gl.caravel

please change to merge to main

please change to merge to main

What do I need to change ?


Inheritance and its implementation

Description
Frequent use of code written once, it is reusability.
One superclass can be used for the number of subclasses in a hierarchy.
No changes to be done in all base classes; just do changes in parent class only.
Inheritance is used to generate more dominant objects.
Domain
CPP
Type of Contribution
Addition, Documentation, Others
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

Okay , but also tell how would you implement it .

Describe your problem statement , if it is valid we will accept your issue.


Add TMTensorToLinalgExtPass

This change adds the TMTensorToLinalgExtPass which is a 1 to 1 mapping
from tm_tensor ops to linalg.ext ops. The syntax of the ops from the
two dialects are identical. The goal is to use tm_tensor as an interface
dialect to bridge between projects. The tm_tensor dialect will be
upstreamed eventually. A high level description about tm_tensor dialect
can be found in
torch-mlir-dialects/include/torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorBase.td

The llvm-external-projects/torch-mlir-dialects directory is copied from
the torch-mlir project.
The core of this change is just the TMTensorToLinalgExtPass which is
added in iree/compiler/InputConversion/TMTensor/.
Other minor changes to register the tm_tensor dialect and insert the new
pass into pipelines of different tools.

Is this ready for review or still in progress? Could you please add a description? This is a lot of code to have no description :-)

Is this ready for review or still in progress? Could you please add a description? This is a lot of code to have no description :-)

Sry, I just added the description. Yea, it's ready for review though I am still fixing errors reported from the bazel build.

@cathyzhyi couple of things

Could you please wait for a bit to land this PR. I'd be really helpful to land this after the next IREE integrate that has some very significant changes from upstream to account for. If you could help by rebasing this PR after the integrate lands, that would be appreciated.
Also there are no lit-tests for TMTensor. If there are IR tests for TMTensor IR maybe those are OK to add. Will give us an indication of something broken and we can address that (will probably reach out to you for involved cases anyway), but at least they wont be silent failures/untested code within IREEs codebase.

@MaheshRavishankar Thanks a lot for reviewing!
yea, I can wait until next IREE integrate. Please let me know when it's done or which PR or issue I can watch for.

Also there are no lit-tests for TMTensor. If there are IR tests for TMTensor IR maybe those are OK to add. Will give us an indication of something broken and we can address that (will probably reach out to you for involved cases anyway), but at least they wont be silent failures/untested code within IREEs codebase.

The TMTensor lit-tests are using torch-mlir-dialect-opt binary which is removed. Is it ok to add those tests to iree/compiler/InputConversion/TMTensor/test/ using iree-opt?

@MaheshRavishankar Thanks a lot for reviewing!
yea, I can wait until next IREE integrate. Please let me know when it's done or which PR or issue I can watch for.

This is the integrate PR https://github.com/google/iree/pull/8612 .

Also there are no lit-tests for TMTensor. If there are IR tests for TMTensor IR maybe those are OK to add. Will give us an indication of something broken and we can address that (will probably reach out to you for involved cases anyway), but at least they wont be silent failures/untested code within IREEs codebase.

The TMTensor lit-tests are using torch-mlir-dialect-opt binary which is removed. Is it ok to add those tests to iree/compiler/InputConversion/TMTensor/test/ using iree-opt?

You should be able to keep those in iree-dialects/test/... and use iree-opt ?

You should be able to keep those in iree-dialects/test/... and use iree-opt?

yea, I can do that. Just need an extra step to change the build files and the .mlir file manually when cp & paste from torch-mlir

You should be able to keep those in iree-dialects/test/... and use iree-opt?

yea, I can do that. Just need an extra step to change the build files and the .mlir file manually when cp & paste from torch-mlir

This again points to using a submodule to me. We can run a dependent projects' tests from their repository. We shouldn't need to be copying them over with modifications to use our binaries, etc etc.

Just to give a bit more context here, the TMTensor dialect is basically an "interface dialect" mirroring linalg_ext. This dialect itself just exists transiently when IR is in textual asm syntax between projects, so it doesn't really have a super strict commit hash compatibility requirement (the syntax is fairly stable). We have a plan to upstream linalg_ext in some form so that this dialect isn't needed at all -- @MaheshRavishankar can you describe the plan?

I've addressed all the comments and rebased on the latest. There are two issues left:

bazel tset failed because iree/compiler/InputConversion/TMTensor/BUILD:64:11: no such package 'third_party/torch-mlir-dialects': Package is considered deleted due to --deleted_packages and referenced by '//iree/compiler/InputConversion/TMTensor:init_tm_tensor_dialect' Any suggestions on how to fix this?

I added a new third_party/torch-mlir-dialects/test/CMakeLists.txt for the IR test to use opt-iree but not sure if it's added correctly.

Just to give a bit more context here, the TMTensor dialect is basically an "interface dialect" mirroring linalg_ext. This dialect itself just exists transiently when IR is in textual asm syntax between projects, so it doesn't really have a super strict commit hash compatibility requirement (the syntax is fairly stable). We have a plan to upstream linalg_ext in some form so that this dialect isn't needed at all -- @MaheshRavishankar can you describe the plan?

Missed this notification. Yes, these ops will move upstream. The plan is a bit involved, but I expect to have an RFC in a few weeks. If more detail needed here I can go into more details about the plan as of now.

You should be able to keep those in iree-dialects/test/... and use iree-opt?

yea, I can do that. Just need an extra step to change the build files and the .mlir file manually when cp & paste from torch-mlir

You could probably just write a simple script to change the binary used during copy?
Thanks for adding the tests. If you have some roundtrip tests you want to copy, those would be a good idea as well.

I've addressed all the comments and rebased on the latest. There are two issues left:

bazel tset failed because iree/compiler/InputConversion/TMTensor/BUILD:64:11: no such package 'third_party/torch-mlir-dialects': Package is considered deleted due to --deleted_packages and referenced by '//iree/compiler/InputConversion/TMTensor:init_tm_tensor_dialect' Any suggestions on how to fix this?
I added a new third_party/torch-mlir-dialects/test/CMakeLists.txt for the IR test to use opt-iree but not sure if it's added correctly.

Must have missed the conversation related to this, but putting this in llvm-external-project/iree-dialects should solve these issues.

I've addressed all the comments and rebased on the latest. There are two issues left:

bazel tset failed because iree/compiler/InputConversion/TMTensor/BUILD:64:11: no such package 'third_party/torch-mlir-dialects': Package is considered deleted due to --deleted_packages and referenced by '//iree/compiler/InputConversion/TMTensor:init_tm_tensor_dialect' Any suggestions on how to fix this?
I added a new third_party/torch-mlir-dialects/test/CMakeLists.txt for the IR test to use opt-iree but not sure if it's added correctly.

Must have missed the conversation related to this, but putting this in llvm-external-project/iree-dialects should solve these issues.

yea, Stella suggested moving under third_party. @ScottTodd Do you have any suggestions about this?

Vacation snipped: these kind of IR "stubs" should just be copied into a project that needs them. Per policy, these need to be in third_party if originating "outside".
In hindsight, I may have put llvm-external-projects in third_party to better scalably comply with this bit of policy, but I don't think it is worth changing for this.
Please don't nit pick this and escalate to a very heavyweight (from an integration perspective) solution like submodules for such a thing. Policy compliance and minimizing llvm integrate pain should be the only thing in play here from a decision making standpoint.

Vacation snipped: these kind of IR "stubs" should just be copied into a project that needs them. Per policy, these need to be in third_party if originating "outside". In hindsight, I may have put llvm-external-projects in third_party to better scalably comply with this bit of policy, but I don't think it is worth changing for this. Please don't nit pick this and escalate to a very heavyweight (from an integration perspective) solution like submodules for such a thing. Policy compliance and minimizing llvm integrate pain should be the only thing in play here from a decision making standpoint.

Fair points. I think most of my concerns go away by structuring this as one commit that adds the pristine import (with a readme explaining how to pull in updates), then any modifications to that code (including new cmake files) as separate git commits. The current state of the PR is pretty much there now, but going step by step from the start could have streamlined the review process.

Fair points. I think most of my concerns go away by structuring this as one commit that adds the pristine import

Don't get me wrong: I am definitely in favor of getting the mechanics of complying with our policies right, and this is the first of this kind of dependency to be taken ("ir stubs") so is worth some discussion... It won't be the last and for there transient things, we need to be optimizing for developer throughput. The sooner in and working, the sooner the upstream shape of it takes, and the sooner we get it off our project specific books (which will play out over ~months of code movement). That's the real thing to optimize for here.
Ok, I'm out. Beach time :)

hmm, after rebasing to the head the iree/test/e2e/matmul/e2e_matmul_direct_f32_large_split_k_dylib-llvm-aot_dylib started to fail.

That's preexisting and should be fixed by https://github.com/google/iree/pull/8674.

I can merge this past the failing test if you'd like (admin powers)

I can merge this past the failing test if you'd like (admin powers)

yes, please! Thanks a lot!

Verified that it is only a single test failing in each of the workflows and it is a known failure. Merging past failing checks

Also, merging with a merge commit, per my above comment that the commit history here is interesting and useful


reverse the sorted conversation messages on logConverastion to redire…

…ct to the latest entry

Coverage remained the same at 38.066% when pulling 4159b40a97d756ae2452f9ac1557d9a648bbfbf7 on u9520107:rcint-4225 into ea2da82c66239954bd6dd1afc94f9a5c816ac242 on ringcentral:master.


[BUG] {exited with status 1 at line 210, Ubuntu 22.04 64-bit}

Describe the bug
sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash

Running Linux installer.
Downloading demo app.
Cloning into '/home/pi/Luxonis/depthai'...
Updating files:  12% (60/499)
Updating files: 100% (499/499), done.
Already on 'main'
Your branch is up to date with 'origin/main'.
Already up to date.
Creating python virtual environment in /home/pi/Luxonis/venv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/pi/Luxonis/venv/bin/python3

Failed installing depthai. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 210

setup.txt

yes, did the fix and redo install_depthai.sh
sudo apt install python3.10-venv
sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash


Turning on default authorization provider prevents startup in standalone mode.

Describe the bug
Turning on authorizationEnabled=true causes Pulsar to be unable to startup
To Reproduce
Steps to reproduce the behavior:

Taking a plain vanilla Apache Pulsar 2.5.2
Edit /conf/standalone.conf and set authorizationEnabled=true
Startup Pulsar via /bin/pulsar standalone

Expected behavior
Pulsar starts up as normal OR the provided authorization documentation here https://pulsar.apache.org/docs/en/security-authorization/ provides details to work-around this
Screenshots
Initially we start to see some warnings . . .
12:38:37.703 [pulsar-io-50-7] WARN  org.apache.pulsar.broker.web.PulsarWebResource - [persistent://public/functions/assignments] Role null is not allowed to lookup topic
12:38:37.703 [pulsar-io-50-7] WARN  org.apache.pulsar.broker.lookup.TopicLookupBase - Failed to authorized null on cluster persistent://public/functions/assignments
12:38:37.703 [pulsar-client-io-78-1] WARN  org.apache.pulsar.client.impl.BinaryProtoLookupService - [persistent://public/functions/assignments] failed to send lookup request : org.apache.pulsar.client.api.PulsarClientException$AuthorizationException: Don't have permission to connect to this namespace

finally after some retries we see
11:13:51.379 [Thread-0] INFO  org.apache.distributedlog.impl.BKNamespaceDriver - Release external resources used by channel factory.
11:13:51.379 [Thread-0] INFO  org.apache.distributedlog.impl.BKNamespaceDriver - Stopped request timer
11:13:51.379 [Thread-0] INFO  org.apache.distributedlog.BKDistributedLogNamespace - Executor Service Stopped.
11:13:51.379 [Curator-Framework-0] INFO  org.apache.curator.framework.imps.CuratorFrameworkImpl - backgroundOperationsLoop exiting
11:13:51.492 [Thread-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x1000d8b4f810004 closed
11:13:51.492 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x1000d8b4f810004
11:13:51.492 [Thread-0] INFO  org.apache.bookkeeper.proto.BookieServer - Shutting down BookieServer
11:13:51.492 [Thread-0] INFO  org.apache.bookkeeper.proto.BookieNettyServer - Shutting down BookieNettyServer
11:13:51.508 [Thread-0] INFO  org.apache.bookkeeper.bookie.Bookie - Shutting down Bookie-3181 with exitCode 0
11:13:51.508 [Thread-0] INFO  org.apache.bookkeeper.bookie.Bookie - Turning bookie to read only during shut down
11:13:51.508 [Thread-0] INFO  org.apache.bookkeeper.bookie.SyncThread - Shutting down SyncThread
11:13:51.522 [SyncThread-7-1] INFO  org.apache.bookkeeper.bookie.SyncThread - Flush ledger storage at checkpoint CheckpointList{checkpoints=[LogMark: logFileId -<PHONE_NUMBER>780 , logFileOffset - 3072]}.
11:13:51.530 [Thread-0] INFO  org.apache.bookkeeper.bookie.Journal - Shutting down Journal
11:13:51.531 [ForceWriteThread] INFO  org.apache.bookkeeper.bookie.Journal - ForceWrite thread interrupted
11:13:51.531 [BookieJournal-3181] INFO  org.apache.bookkeeper.bookie.Journal - Journal exits when shutting down
11:13:51.531 [BookieJournal-3181] INFO  org.apache.bookkeeper.bookie.Journal - Journal exited loop!
11:13:51.531 [Thread-0] INFO  org.apache.bookkeeper.bookie.Journal - Finished Shutting down Journal thread
11:13:51.531 [Bookie-3181] INFO  org.apache.bookkeeper.bookie.Bookie - Journal thread(s) quit.
11:13:51.541 [Thread-0] INFO  org.apache.bookkeeper.bookie.GarbageCollectorThread - Shutting down GarbageCollectorThread
11:13:51.541 [Thread-0] INFO  org.apache.bookkeeper.bookie.EntryLogger - Stopping EntryLogger
11:13:51.543 [Thread-0] INFO  org.apache.bookkeeper.bookie.EntryLoggerAllocator - Stopped entry logger preallocator.
11:13:51.704 [Thread-0] INFO  org.apache.bookkeeper.bookie.LedgerDirsMonitor - Shutting down LedgerDirsMonitor
11:13:51.816 [Thread-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x1000d8b4f810001 closed
11:13:51.816 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x1000d8b4f810001
11:13:51.931 [Thread-0] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x1000d8b4f810000 closed
11:13:51.931 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x1000d8b4f810000
11:13:51.931 [Thread-0] INFO  org.apache.zookeeper.server.ZooKeeperServer - shutting down
11:13:51.932 [Thread-0] INFO  org.apache.zookeeper.server.SessionTrackerImpl - Shutting down
11:13:51.932 [Thread-0] INFO  org.apache.zookeeper.server.PrepRequestProcessor - Shutting down
11:13:51.932 [Thread-0] INFO  org.apache.zookeeper.server.SyncRequestProcessor - Shutting down
11:13:51.932 [ProcessThread(sid:0 cport:2181):] INFO  org.apache.zookeeper.server.PrepRequestProcessor - PrepRequestProcessor exited loop!
11:13:51.932 [SyncThread:0] INFO  org.apache.zookeeper.server.SyncRequestProcessor - SyncRequestProcessor exited!
11:13:51.933 [Thread-0] INFO  org.apache.zookeeper.server.FinalRequestProcessor - shutdown of request processor complete
11:13:51.938 [ConnnectionExpirer] INFO  org.apache.zookeeper.server.NIOServerCnxnFactory - ConnnectionExpirerThread interrupted
11:13:51.938 [NIOServerCxnFactory.SelectorThread-1] INFO  org.apache.zookeeper.server.NIOServerCnxnFactory - selector thread exitted run method
11:13:51.938 [main-SendThread(<IP_ADDRESS>:2181)] INFO  org.apache.zookeeper.ClientCnxn - Unable to read additional data from server sessionid 0x1000d8b4f81000b, likely server has closed socket, closing socket connection and attempting reconnect
11:13:51.939 [NIOServerCxnFactory.AcceptThread:<IP_ADDRESS>/<IP_ADDRESS>:2181] INFO  org.apache.zookeeper.server.NIOServerCnxnFactory - accept thread exitted run method
11:13:51.939 [NIOServerCxnFactory.SelectorThread-0] INFO  org.apache.zookeeper.server.NIOServerCnxnFactory - selector thread exitted run method

Desktop (please complete the following information):

OS: MacOS 10.15.5 (Catalina)

Additional context
Add any other context about the problem here.

@frankjkelly
We need to provide documentation for setting up authentication/authorization in standalone. That part is not well documented.
At the same time, you need to configure broker-client authentication parameters. These are used for function workers to talk to brokers for function related operations.
https://github.com/apache/pulsar/blob/master/conf/broker.conf#L535
Or you consider disabling functions in standalone by running standalone using bin/pulsar standalone -nfw.
You can take a look at this video to understand authentication/authorization for deploying a Pulsar cluster. https://www.youtube.com/watch?v=sTISVpyq73o&list=PLqRma1oIkcWhWAhKgImEeRiQi5vMlqTc-&index=10

@frankjkelly  -nfw is short for "--no-functions-worker"

Thanks @jiazhai - I saw mention of -nss is that related somehow also?

-nss is not related. -nfw is the one fixed the issue.


Add BlockUntilContext, which respects context cancellation.

BlockUntil is easy to misjudge and when callers get that wrong, the test blocks forever and eventually times out.
Also deletes notifyBlockers and its test, inlining this function at its only call point.

Hey @sagikazarmark, could I get your thoughts on this change?

Just a friendly ping for any of the maintainers.
@sagikazarmark or @jonboulle, would anyone mind taking a look?

Responded to the NITs, I think I need clarification on the TestNotifyBlockers comment, however. Please let me know how you'd like to handle that. Sorry if I overstepped.

How is one supposed to actually use BlockUntilContext() if it's not part of the FakeClock interface? Am I missing something?


SocketService.js:6 WebSocket connection to 'ws://<IP_ADDRESS>:50005/socket.io/?EIO=3&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I forgot to install the scatter chrome plugin

For others who are wondering, these errors are normal if the user doesn't have Scatter Desktop installed. There's nothing we can do about removing them from the browser's console as those misconnection errors are served by the browsers themselves, and not this library.

in the docs
This library catches Scatter Desktop, Scatter Mobile and Scatter Classic ( extension )...
I thought it means scatterjs-core  could work with any of those versions.
scatterjs-core doesnt work without desktop version, correct?

It does. The error message is irrelevant.

Thanks, it worked. But I've encountered a problem is that previously method getIdentity() returns the name differently.


CPU Overload Errors w/ 3:2:2 Build

In a 3:2:2 Build (3 Lines, 2 Waitresses, 2 Chefs) running the Waitress processes will periodically result in a "CPU Overload" error and one of the Linecook boards shutting down.
Implentment a "cycle saver" system that detects 3:2:2 builds and alternates between having the Linecooks getting new work, or being sent on break while the Waitresses are moving stuff to the Chefs.

Meta Code

[ ] ONSTART have linecooks start work

::TOP

[ ] wait 1 minute
[ ] are more than 1/3 of linecook machines idle?
[ ] IF YES then send_to_break(linecooks)
[ ] have waitresses start work
[ ] wait 1 minute
[ ] are more than 1/3 of waitresses machines idle?
[ ] IF YES then send_to_break(waitresses)
[ ] have chefs start work
[ ] wait 1 minute
[ ] are more than 1/3 of chefs machines idle?
[ ] IF YES then send_to_break(chefs )

GOTO ::TOP


Implement AddMultiplicationEquality for arrays of length > 2

What language and solver does this apply to?
Python, or probably all
Describe the problem you are trying to solve.
With cp-sat, model.AddMultiplicationEquality() only works with arrays/lists of length 2. Longer arrays crash when solving.
Describe alternatives you've considered
The workaround is to split into sub-products, define new variables for those and add the constraint with two variables at most. Which is rather cryptic and needs additional variables.

FYI this is a custom python code, not sure other languages are impacted:
https://github.com/google/or-tools/blob/234d5f19fcf068237a012d3bebadda836c2dd8f8/ortools/sat/python/cp_model.py#L1240-L1247

related: https://stackoverflow.com/questions/57661398/why-is-the-addmultiplicationequality-limited-to-only-2-variables

Close since it won't be supported for the foreseeable future.
Please take a look at the SO for an efficient workaround...

Huh, that was quick :-) Thanks for considering, though.


Error when launching webpage with "streamlit run app.py"

Hello,
First of all, thank you for sharing this amazing code.
I want to ask how do I debug this error when launching webpage with streamlit.

I am working on my Macbook air M1 with VS code app.

Make sure you are in the root folder. Open a new terminal in Github, type ls in the terminal and you should see something similar to:
LICENSE                 app.py                  portfolio_management    screenshots             tests
README.md               config.py               requirements.txt        setup.py                venv

Then, create a new python environment and install the dependencies
python3 -m venv venv
pip install -r requirements.txt

If you don't have pip installed you will need to run the following:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
python3 -m venv venv
pip install -r requirements.txt

Finally, run:
streamlit run app.py

Let me know if you still face an error.

Hello,
Yes I still faced the same problem after following your step. Here is my terminal log.
`(venv) s25832581@ea:79:d6:c7:2b:2f montecarlo-portfolio-management % ls
LICENSE                 config.py               screenshots             venv
README.md               portfolio_management    setup.py
app.py                  requirements.txt        tests
(venv) s25832581@ea:79:d6:c7:2b:2f montecarlo-portfolio-management % python3 -m venv venv
pip install -r requirements.txt
Requirement already satisfied: altair==5.4.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 1)) (5.4.1)
Requirement already satisfied: attrs==24.2.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (24.2.0)
Requirement already satisfied: beautifulsoup4==4.12.3 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 3)) (4.12.3)
Requirement already satisfied: blinker==1.8.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 4)) (1.8.2)
Requirement already satisfied: cachetools==5.5.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 5)) (5.5.0)
Requirement already satisfied: certifi==2024.8.30 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 6)) (2024.8.30)
Requirement already satisfied: charset-normalizer==3.3.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 7)) (3.3.2)
Requirement already satisfied: click==8.1.7 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 8)) (8.1.7)
Requirement already satisfied: contourpy==1.3.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 9)) (1.3.0)
Requirement already satisfied: cycler==0.12.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 10)) (0.12.1)
Requirement already satisfied: fonttools==4.53.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 11)) (4.53.1)
Requirement already satisfied: frozendict==2.4.4 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 12)) (2.4.4)
Requirement already satisfied: gitdb==4.0.11 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 13)) (4.0.11)
Requirement already satisfied: GitPython==3.1.43 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 14)) (3.1.43)
Requirement already satisfied: html5lib==1.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 15)) (1.1)
Requirement already satisfied: idna==3.10 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 16)) (3.10)
Requirement already satisfied: Jinja2==3.1.4 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 17)) (3.1.4)
Requirement already satisfied: jsonschema==4.23.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 18)) (4.23.0)
Requirement already satisfied: jsonschema-specifications==2023.12.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 19)) (2023.12.1)
Requirement already satisfied: kiwisolver==1.4.7 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 20)) (1.4.7)
Requirement already satisfied: lxml==5.3.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 21)) (5.3.0)
Requirement already satisfied: markdown-it-py==3.0.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 22)) (3.0.0)
Requirement already satisfied: MarkupSafe==2.1.5 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 23)) (2.1.5)
Requirement already satisfied: matplotlib==3.9.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 24)) (3.9.2)
Requirement already satisfied: mdurl==0.1.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 25)) (0.1.2)
Requirement already satisfied: multitasking==0.0.11 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 26)) (0.0.11)
Requirement already satisfied: narwhals==1.8.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 27)) (1.8.1)
Requirement already satisfied: numpy==2.1.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 28)) (2.1.1)
Requirement already satisfied: packaging==24.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 29)) (24.1)
Requirement already satisfied: pandas==2.2.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 30)) (2.2.2)
Requirement already satisfied: peewee==3.17.6 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 31)) (3.17.6)
Requirement already satisfied: pillow==10.4.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 32)) (10.4.0)
Requirement already satisfied: platformdirs==4.3.6 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 33)) (4.3.6)
Requirement already satisfied: plotly==5.24.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 34)) (5.24.1)
Requirement already satisfied: protobuf==5.28.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 35)) (5.28.2)
Requirement already satisfied: pyarrow==17.0.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 36)) (17.0.0)
Requirement already satisfied: pydeck==0.9.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 37)) (0.9.1)
Requirement already satisfied: Pygments==2.18.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 38)) (2.18.0)
Requirement already satisfied: pyparsing==3.1.4 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 39)) (3.1.4)
Requirement already satisfied: python-dateutil==2.9.0.post0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 40)) (2.9.0.post0)
Requirement already satisfied: pytz==2024.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 41)) (2024.2)
Requirement already satisfied: referencing==0.35.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 42)) (0.35.1)
Requirement already satisfied: requests==2.32.3 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 43)) (2.32.3)
Requirement already satisfied: rich==13.8.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 44)) (13.8.1)
Requirement already satisfied: rpds-py==0.20.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 45)) (0.20.0)
Requirement already satisfied: scipy==1.14.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 46)) (1.14.1)
Requirement already satisfied: setuptools==75.1.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 47)) (75.1.0)
Requirement already satisfied: six==1.16.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 48)) (1.16.0)
Requirement already satisfied: smmap==5.0.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 49)) (5.0.1)
Requirement already satisfied: soupsieve==2.6 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 50)) (2.6)
Requirement already satisfied: streamlit==1.38.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 51)) (1.38.0)
Requirement already satisfied: tenacity==8.5.0 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 52)) (8.5.0)
Requirement already satisfied: toml==0.10.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 53)) (0.10.2)
Requirement already satisfied: tornado==6.4.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 54)) (6.4.1)
Requirement already satisfied: typing_extensions==4.12.2 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 55)) (4.12.2)
Requirement already satisfied: tzdata==2024.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 56)) (2024.1)
Requirement already satisfied: urllib3==2.2.3 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 57)) (2.2.3)
Requirement already satisfied: webencodings==0.5.1 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 58)) (0.5.1)
Requirement already satisfied: yfinance==0.2.43 in ./venv/lib/python3.12/site-packages (from -r requirements.txt (line 59)) (0.2.43)
(venv) s25832581@ea:79:d6:c7:2b:2f montecarlo-portfolio-management % streamlit run app.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://<IP_ADDRESS>:8501
For better performance, install the Watchdog module:
$ xcode-select --install
$ pip install watchdog
2024-11-03 12:29:43.563 Uncaught app exception
Traceback (most recent call last):
File "/Users/s25832581/Desktop/Portfolio_Management/montecarlo-portfolio-management/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File "/Users/s25832581/Desktop/Portfolio_Management/montecarlo-portfolio-management/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
exec(code, module.dict)
File "/Users/s25832581/Desktop/Portfolio_Management/montecarlo-portfolio-management/app.py", line 5, in
from portfolio_management.data.data_loader import DataLoader
File "/Users/s25832581/Desktop/Portfolio_Management/montecarlo-portfolio-management/portfolio_management/init.py", line 1
streamlit run app.py
^^^
SyntaxError: invalid syntax
`

I see that in Portfolio_Management/montecarlo-portfolio-management/portfolio_management/init.py there is the following line:
streamlit run app.py

Please remove it and run the command in the terminal instead:
streamlit run app.py


Add a convenience interface that allows to issue Floquet calibration requests on cirq.google.Engine

This change adds a containers that represent Floquet calibration requests and responses. Having this abstraction is useful in multiple ways:

it will allow for seamless updates of the calibration protocol, without need for changes in the users' code.
it allows to unify interface of simulators, compilers and other tools that will potentially grow on top of this feature.

This change contains all the logic necessary to encode, decode and issue the calibration API requests.

Some nits. Additional thoughts

I'm most concerned about the run_characterizations function signature, specifically letting you do it without a "bare Engine" and potentially letting you do it in a way that a simulator could be swapped in to test your code before getting engine access.
Does https://github.com/mrwojtek/Cirq/pull/4/files#diff-dffa1a181ce775202a7bb1952aed024378cab37e35610f3dbf6ff167589e3e9eR220
solves your problems?

The class hierarchy makes my eyes glaze over a bit, but maybe it's irreducible complexity inherent in the task. We'll likely need some further convenience functions for making FlorquetPhasedFSimCalibrationRequests more easily
I found it the most reasonable thing to do. I guess it could be done with protocols as well but I think that would grow this feature a lot. I'm not a python expert...

Some nits. Additional thoughts

I'm most concerned about the run_characterizations function signature, specifically letting you do it without a "bare Engine" and potentially letting you do it in a way that a simulator could be swapped in to test your code before getting engine access.
Does https://github.com/mrwojtek/Cirq/pull/4/files#diff-dffa1a181ce775202a7bb1952aed024378cab37e35610f3dbf6ff167589e3e9eR220
solves your problems?

The class hierarchy makes my eyes glaze over a bit, but maybe it's irreducible complexity inherent in the task. We'll likely need some further convenience functions for making FlorquetPhasedFSimCalibrationRequests more easily
I found it the most reasonable thing to do. I guess it could be done with protocols as well but I think that would grow this feature a lot. I'm not a python expert...

Some nits. Additional thoughts

I'm most concerned about the run_characterizations function signature, specifically letting you do it without a "bare Engine" and potentially letting you do it in a way that a simulator could be swapped in to test your code before getting engine access.
The class hierarchy makes my eyes glaze over a bit, but maybe it's irreducible complexity inherent in the task. We'll likely need some further convenience functions for making FlorquetPhasedFSimCalibrationRequests more easily

Btw, as for the second point, this is what is in the next PR:
https://github.com/mrwojtek/Cirq/pull/3/files#diff-dffa1a181ce775202a7bb1952aed024378cab37e35610f3dbf6ff167589e3e9eR107

Some nits. Additional thoughts

I'm most concerned about the run_characterizations function signature, specifically letting you do it without a "bare Engine" and potentially letting you do it in a way that a simulator could be swapped in to test your code before getting engine access.
The class hierarchy makes my eyes glaze over a bit, but maybe it's irreducible complexity inherent in the task. We'll likely need some further convenience functions for making FlorquetPhasedFSimCalibrationRequests more easily

Btw, as for the second point, this is what is in the next PR:
https://github.com/mrwojtek/Cirq/pull/3/files#diff-dffa1a181ce775202a7bb1952aed024378cab37e35610f3dbf6ff167589e3e9eR107

Hi all, I'll merge this soon if there are no more comments from anyone.

Hi all, I'll merge this soon if there are no more comments from anyone.


[Request/Feature] Feet-Inches Units

This would be added under Insert > Units > Imperial/US.
The notations supported would probably include

12' [feet only]
144" [inches only]
12'5" [feet and inches]
12' 5 3/8" [feet and inches and fractions of inches]

I know both " and ' are reserved for title and text, so maybe this is impossible because parsing it would be a nightmare.
MathCAD does it with the FIF() function. Something like FIF(" 12'3 3/4" ") would give 12' 3 3/4". I know it's hard to read and tedious to type, so not sure how viable this is.

Actually this problem happens also with the Italian language when we need to use ' as apostrophe

@iSuckAtCoding8 Adding such kind of units is very difficult to do now. Maybe it is possible for output only.
@sononicola As a workaround you can use ' in comments and prime symbol ′ for variables.
What occurs to me now is that we can escape these symbols with a slash, like in other languages, e.g.: \' and \". In this case, thwy will not be treated as text/title comment breaks.

Try this following code:
#def ftin$(measure$)
#hide
feet = (measure$\1ft)*ft
inch = measure$ - (measure$\1ft)*ft|in
#show
#novar
#if feet > 0ft ∧ inch < 1*10^-6in
feet
#else if feet ≡ 0ft ∧ inch > 0in
inch
#else
feet' 'inch
#end if
#varsub
#end def

'12ft[feet only]
ftin$(12ft)

'144in [inches only]
ftin$(144in)

'12ft 5in [feet and inches]
ftin$((12ft + 5in))

'12ft 5 3/8in [feet and inches and fractions of inches]
ftin$((12ft + 5in + (3/8)*in))

It's only meant to display final results, so you can't perform calculations with it.
These are the results I've got using the code above:


step-by-step guide?

For newbies

Do you mean setting up a private bot instance or user guide for commands?

“Cannot subscribe to this repo. Please enter another:” i got error whit MongoDB database conection whit docker-compose

no longer works the bot, what happened? can you solve?

I also got the error “Cannot subscribe to this repo. Please enter another:”


Use NonZeroUsize for constants

By using NonZero we eliminate a class of errors where you don't get errors with zero length (e.g. traversing arrays with zero length just doesn't happen), however, no work is done and the data at the end is incorrect.
It also allows us to better reflex some places where we pass the size of some collection as a parameter and the collection turns out to be empty due to an error. Now at least we will get panic in such places

I had exactly the same error when I was counting carry-bits. Because of a bug in the code, it always gave zero and it was not caught by tests or compiler, because it just calculated zero everywhere and traversed the collection zero times.
A bad variant of the same design is to put assert_ne!(field, 0); everywhere, but the NonZero variant is much more elegant

I understand this approach can eliminate this specific type of error.  But the use of NonZeroUsize and unsafe seems a little overkill. Let me think about if there is better approach to solve this kind of error, or since we already know it we can avoid it in future.

unsafe is not some scary mechanism that scares developers if it is small and labeled safety
It seems to me you vastly overestimate the complexity this approach brings, it's a type from a standard library and a standard mechanism for initializing it. I first saw this mechanism in general in a regular web2 application, where developers are the least tempted to do complicated things

Putting assert not zero everywhere and getting panic instead of compiler warning - that's the scary part :sweat_smile:


Cursor horizontal position lost after scrolling

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md
[X] I have updated 'mini.nvim' to latest version

Module(s)
mini.animate
Description
I encountered an issue where the cursor's horizontal position is lost after scrolling using C-d / C-u / C-f commands.
I faced a similar problem with another plugin, which was related to the 'winhl' option in Neovim. A fix for this issue can be found here: #27470. Consequently, I believe this issue might be related.
I haven't opened an issue on Neovim because I'm unsure about which option is set by this plugin and how exactly the plugin operates or even if the issues are related.
Neovim version
NVIM v0.10.0-dev-2445+g2e1f5055a
Steps to reproduce

this code:

mkdir repro
cd repro
git clone https://github.com/echasnovski/mini.nvim
cat >repro.lua <<EOF
vim.o.runtimepath = os.getenv('PWD') .. '/mini.nvim,' .. vim.o.runtimepath
require('mini.animate').setup()
EOF
nvim --clean -u repro.lua

edit a long file that has multiple short and long lines.
scroll down by C-d and C-u and the issue will occur.

Expected behavior
keep cursor column position
Actual behavior
lose cursor column position

Thanks for the issue!
Would you mind elaborating a bit about what do you mean by "cursor column position is lost"?
My current understanding is that if before scroll cursor was on come column (say 20) and after scroll it happens to land on the last column of short line (say 10), then next scroll tries to set cursor on line 10 instead of 20 (even if line is long enough)? If this is the case, then I don't think this is a big issue. I'll take a look at if this can be solved relatively pain free, but I'd not have hopes up (as the only way to use the information about where cursor "wants" to go is with Vimscript getcurpos() and cursor() with which I did not have much success in 'mini.animate').

Thank you for the response.

My current understanding is that if before scroll cursor was on come column (say 20) and after scroll it happens to land on the last column of short line (say 10), then next scroll tries to set cursor on line 10 instead of 20 (even if line is long enough)

Yes, this is the issue. I've noticed this especially when it reaches an empty line, column 0, and remains there during scrolling.
Given my experience with a similar issue caused by Neovim options in another plugin, I raised this concern.

If this is the case, then I don't think this is a big issue. I'll take a look at if this can be solved relatively pain free, but I'd not have hopes up

Since I'm not fully familiar with how the plugin operates, and probably the scrolling is not fully controlled, then there is no issue here.
Thank you

So after considering it for a while now, I don't think this is a huge issue for how much trouble it would require to implement, test, and maintain. Sorry.
Closing as not planned.