AttributeError: module 'torch' has no attribute 'compiler'

I followed the install instructions.
When I try starting with START_BARK_INFINITY.bat, this is the error I get.
Running command: "C:\Bark_Infinity\installer_files\conda\condabin\conda.bat" activate "C:\Bark_Infinity\installer_files\env" >nul && conda
Running command: "C:\Bark_Infinity\installer_files\conda\condabin\conda.bat" activate "C:\Bark_Infinity\installer_files\env" >nul && python bark_webui.py
Traceback (most recent call last):
File "C:\Bark_Infinity\bark\bark_webui.py", line 14, in
from bark_infinity import config
File "C:\Bark_Infinity\bark\bark_infinity_init_.py", line 1, in
from .api import generate_audio, text_to_semantic, semantic_to_waveform, save_as_prompt
File "C:\Bark_Infinity\bark\bark_infinity\api.py", line 30, in
from .clonevoice import wav_to_semantics, generate_fine_from_wav, quick_clone
File "C:\Bark_Infinity\bark\bark_infinity\clonevoice.py", line 33, in
from bark_infinity.hubert.pre_kmeans_hubert import CustomHubert
File "C:\Bark_Infinity\bark\bark_infinity\hubert\pre_kmeans_hubert.py", line 20, in
from audiolm_pytorch.utils import curtail_to_multiple
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\audiolm_pytorch_init_.py", line 8, in
from audiolm_pytorch.audiolm_pytorch import AudioLM
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\audiolm_pytorch\audiolm_pytorch.py", line 23, in
from audiolm_pytorch.soundstream import SoundStream
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\audiolm_pytorch\soundstream.py", line 20, in
from vector_quantize_pytorch import GroupedResidualVQ
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\vector_quantize_pytorch_init_.py", line 2, in
from vector_quantize_pytorch.residual_vq import ResidualVQ, GroupedResidualVQ
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\vector_quantize_pytorch\residual_vq.py", line 13, in
from einx import get_at
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\einx_init_.py", line 7, in
from . import backend
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\einx\backend_init_.py", line 27, in
update()
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\einx\backend_init.py", line 25, in update
backends.append(backend_factoriesbackend_name)
File "C:\Bark_Infinity\installer_files\env\lib\site-packages\einx\backend_torch.py", line 127, in make_torch_backend
einx.lru_cache.decorate_traced_functions(torch.compiler.allow_in_graph)
AttributeError: module 'torch' has no attribute 'compiler'
If there is an error, take note of it here.

Hello, have you resolved the issue？

Hello, have you resolved the issue？

Never did get it to work by following the instructions. I just used Pinokio to install it, and it's working now.

@JonathanFly This issue might have never went to the right repo.

Hello, have you resolved the issue？

Seems like fferflo/einx was updated, so if you can just pip install ... the newer version it should resolve this problem.


Finish The Scene and Project Serialization

[ ] Stop using entt::snapshot for better Scene json readability

Materials should be in the resource registry
has a name and a uuid that can be used to search it in the resource registry
can be intern or extern. If is intern is serialized in the scene. If is extern is a uuid reference because it will be loaded when loading the project


fix(versions): update Activiti/activiti-cloud-full-chart-security versions

UpdateBot pushed helm dependency: activiti-cloud-full-example to: 7.1.445

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-full-example 7.1.445


excel read error when first row of a column is an empty cell.

If excel data has a column whose value is an empty cell in the first row, then that column is not imported. This is possibly because utils.sheet_to_row_object_array() only has keys for non-empty cells.
This means that a simple example like this:
id col1 col2 col3
1 hello1 10
2 hello2 2 20
3 hello3 3 30
Only imports col1 and col3 correctly but not col2

@kaustuv if I understand correctly, using a CSV example:
a,b,,d,e,f
1,2,3,4,5,6

The third column is lost because the "header row" has no value.
This is by design, since there is no good answer to "what label should the parser use for that column", and there are a few ways to work around it.  The easiest one is to use the sheet_to_json method with the option header:1 set.  This will give you an array of arrays that you can work with.  For the aforementioned example, you would get something like
[
    ["a","b",,"d","e","f"]
    [1,2,3,4,5,6]
]


labplot: Update to 2.10.1

Labplot changes its naming rule

Relates to #6845

[X] I have read the Contributing Guide.

/verify


media.currentTime doesn't reset to 0 when playlist ends

The currentTime in state is reset to 0, but the one in the media element isn't, would you accept a PR to fix this?

Hm, I think I must have only been considering the case where the active track index goes back to 0 before stopping playback.
It seems to me like maybe the currentTime shouldn't reset to 0 if we're just staying on the last track? What do you think?

@danielr18 I tried to repro this bug and I can't. Could you share a repro or at least tell me what browser you're running? Maybe I didn't understand what the issue was. Here are the scenarios I tested:
Scenario A
Conditions:

loadFirstTrackOnPlaylistComplete: false
state.cycle: false
Outcome on last track ended:
Stays on last track, state.currentTime is not reset to 0, media.currentTime is not reset to 0

Scenario B
Conditions:

loadFirstTrackOnPlaylistComplete: true
state.cycle: false
Outcome on last track ended:
Loads first track, state.currentTime is reset to 0, media.currentTime is reset to 0.

Browser: Chrome 70

@danielr18 were you still interested in helping with this?

Yes, your suggestion seems to work well for all cases, although it's a breaking change, you could call onSelectTrackIndex with the activeTrackIndex before and it wouldn't reload the media element, however 2.0.0 is still alpha, so these should be expected.
I'll have the PR created today.

Hm.. that's a good point. I hadn't considered that. And I do want to preserve that behavior. If someone clicks on a track they're already listening to it shouldn't reload. We just want that to happen when the track has actually finished and it's restarting.
Here's an idea... maybe getGoToTrackState should take an extra boolean argument called forceNewTrackLoad which is false by default and only passed as true when it's called internally by backSkip or forwardSkip? And then awaitingNewTrack will be based on that.
Thanks for helping with this!

Yes, makes sense, basically like shouldPlay.

Yeah, right. Maybe it should also start with should for consistency.. shouldForceTrackLoad?

or shouldTrackReload

We might not have to include track in the variables we are introducing, since what it really does is reloading the media element (media.load), and it would be more consistent, we don't have shouldTrackPlay.
Thus I think shouldReload/shouldForceLoad and awaitingLoad are better names.

Released in v2.0.0-alpha.13.


Cubit Delegate/Supervisor missing?

HI,
I am new to your package Cubit and used previously the Bloc package. There is the supervisor, which you can utilize to debug etc.
Do you have it in Cubit as well, if not, how can I work around it?
Thanks again for your work!

Hi @Manuelbaun 👋
Thanks for opening an issue!
It has been renamed to CubitObserver.
You can initialize it via Cubit.observer = MyCubitObserver();
Hope that helps 👍


Add AccessAnnotation support into the registered Web Tabs dashboard endpoint

Don't want to be arbitrarily adding services/roles when those tabs map to an AccessAnnotation

Merged in https://github.com/cashapp/misk/pull/1142


⚠ Carbubu has degraded performance

In f945ee0, Carbubu (https://carbubu.fr) experienced degraded performance:

HTTP code: 200
Response time: 3760 ms

Resolved: Carbubu performance has improved in 4dc5e90 after 6 minutes.


which cat still gives /bin/cat after installation

how do I use it..

How did you install it? The directory that you installed it in needs to be in the $PATH variable before /bin.

oh I see..
Usage: coreutils [function [arguments...]]

what you say if README.md looks more like this,
## installation

$ cargo install coreutils

## Usage

$ ~/.cargo/bin/coreutils


Keyboard symbols/ALT codes instead of emojis?

I realized that for a few emojis, the usual emoji is replaced by the keyboard symbol (Windows ALT codes?). I included screenshots below, and the original emojis I was looking for are ❤ and ☔:

Looks like the font that's loaded by Obsidian doesn't include some of the emojis.
I made a CSS snippet to fix those kinds of issues for me:
@font-face {
  font-family: 'Noto Color Emoji';
  src: url(https://rawcdn.githack.com/googlefonts/noto-emoji/9a5261d871451f9b5183c93483cbd68ed916b1e9/fonts/NotoColorEmoji.ttf);
}

:root {
  --default-font: -apple-system, BlinkMacSystemFont, Segoe UI,
      Helvetica, Arial, sans-serif, Apple Color Emoji,
      Noto Color Emoji;
  --editor-font: 'Hack Nerd Font', 'Source Code Pro',
      ui-monospace, SFMono-Regular, SF Mono, Menlo,
      Consolas, Liberation Mono, monospace;
}

Without that snippet, I do have the heart and umbrella emojis, but the heart is gray instead of red and some of the newer emojis like :anatomical_heart: are just squares.
I made that snippet over a year ago, so I don't know if there are any side-effects.
The plugin itself is fine.


UI: Output galllery cleanups

Motivation
The Gradio version we have pinned allows removal of my original crufty code to manage the number of gallery columns in the output gallery, but also needs a workaround for some inappropriate scrollbar visibility on the parameters pane on the same tab.
So this does that.
Changes

Workaround gradio bug that causes the parameters frame to always show scrollbars.
Remove the original funky method of setting the number of image columns in the gallery using _fn= JavaScript events. The version of gradio we now have pinned allows doing this by setting the property on the gallery directly and also doesn't keep resetting the columns on other events being fired, so we no longer need to workaround that by re-setting the columns every time that happens.

Oh cool, thanks for this. Let me check it out.


Scrape Airbnb website - GSSOC'23

Describe the feature
To create a web scraping script in Python to extract information from the Airbnb website. The script will help gather the following details for each Airbnb listing: links, titles, details, prices, and ratings.
Add ScreenShots
To accomplish this task, I will be using Python along with the BeautifulSoup library, which is a popular choice for web scraping.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC 23 contributor
[X] I want to work on this issue

Hey, @srujana-16 | The Airbnb website is pretty much huge in itself. We do not have plans to add this for now. Instead, we go specific, like specific platforms as per the requirements.


add option to canonicalise the version

To be sure to get this proposal, you mean instead of the current:
https://github.com/agoose77/hatch-nodejs-version/blob/246b692fa9725c77a04c67fd5075a342bd0b6658/tests/test_version_config.py#L12-L16
We will have (if that option is set):
 ("1.4.5-alpha.0", "1.4.5a0"),
 ("1.4.5-alpha.0", "1.4.5a"),
 ("1.4.5-beta.0", "1.4.5b0"),
 ("1.4.5-c1", "1.4.5c1"),
 ("1.4.5-rc.0", "1.4.5rc0"),


Update connection and sync logic.

Motivation
This PR adds bug fixes for handling locks and adds a simple check for pending blocks during sync.

#413


Texas Go Live Checklist

[x]  Intro
[ ]  Receive SFTP credentials
[ ]  Confirm data schema - tracked https://github.com/CDCgov/prime-data-hub/issues/146
[ ]  Send test file
[ ]  Confirm new site registration process

Blocked by CDC submitting form to get SFTP credentials

Blocked by CDC submitting form to get SFTP credentials

Latest updating, sending them another batch of files


Invalid hook call when using in React Project

Hi there, I copy pasted the example from the GitHub page and am getting the following error:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

I think my local React version is conflicting with your version. Is there any current workaround for this?

The issue was due to conflicting React versions. For a workaround I just set
"resolutions: {
   "react": "<my-react-version>",
   "react-dom": "<my-react-version>"
}"

in my package.json.
I will likely fork this and just maintain it myself to deal with their problems


Cursor change to block when exit

What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
konsole 24.08.0
yazi --debug output
Yazi
    Version: 0.3.3 (61c0db8 2024-09-11)
    Debug  : false
    OS     : linux-x86_64 (unix)

Ya
    Version: 0.3.3 (61c0db8 2024-09-11)

Emulator
    Emulator.via_env: ("xterm-256color", "")
    Emulator.via_csi: Ok(Konsole)
    Emulator.detect : Konsole

Adapter
    Adapter.matches: KittyOld

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-0")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : Some("/bin/zsh")
    EDITOR             : Some("/usr/bin/nvim")
    VISUAL             : Some("/usr/bin/nvim")
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None

Text Opener
    default: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block  : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : 3.4
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file             : 5.45
    ueberzugpp       : No such file or directory (os error 2)
    ffmpegthumbnailer: 2.2.2
    magick           : 7.1.1-38
    fzf              : 0.54.3
    fd               : 10.2.0
    rg               : 14.1.1
    chafa            : No such file or directory (os error 2)
    zoxide           : No such file or directory (os error 2)
    7z               : 17.05
    7zz              : No such file or directory (os error 2)
    jq               : 1.7.1

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "/home/user/.local/state/yazi" directory.

Did you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (yazi --debug) to the nightly that I tried
Describe the bug
The default cursor is bar.
And wezterm behaves normally.
Minimal reproducer

Run yazi
Press ‘q’ to exit

Anything else?
No response

See https://github.com/sxyazi/yazi/discussions/1612

Problem solved, thk


Viewmodel weapon XYZ location changer

Decided to revive my old viewmodel mover project (based on #584), thanks #2019 for the inspiration.

Changes the location of the viewmodel onscreen in a kind of neat menu.
Code may be long or something, but this gets the job done quite good.
Warning:
You will lose your current viewmodel settings, so save them or write them down if you want to not forget what they were.
Notes:

Dual berretas/Elites are locked to 0,0,0, currently as they look wierd if moved, might change this later
C4/Bomb is locked to zeroes as well.
when unloading cheat in misc tab "unhook" button viewmodel gets reset to 0, and so does cl_righthand to 1.
(here we would need a system to get the viewmodel values before inject (or enabling viewmodel mover) and set them back to defaults when needed.
As currently this only sets the XYZ location to 0.0.0 when disabling this feature in the GUI and unhooking the cheat, not what it was before/user settings.)
Added grenades and misc/dangerzone equipables to WeaponId.h to make my life more easy.
This is mainly aimed at people who use cl_righthand 1 all the time, i say this because it resets to 1 when disabling the function/unhooking, this needs to change to the users set values.

Can someone help me optimize this? it works in local server if inject after connected but crashes sometimes otherwise in casual any maybe comp too

Nice! maybe see if you can add roll?

Nice! maybe see if you can add roll?

I got this far but i cant figure out how to full port it. (this is not functional)
Can someone take a look?
        if (interfaces->engine->isInGame() && localPlayer && localPlayer->isWeapon())
        {
            auto ViewModel = reinterpret_cast<Entity*>(interfaces->entityList->getEntityFromHandle(localPlayer->viewModel()));
            if (ViewModel)
            {
                auto vsView = Utils::GetVFunc<13, CViewSetup*>(ecx);
                auto eyeAng = vsView->angles;
                eyeAng.z -= 90.f;

                ViewModel->SetAbsAngles(eyeAng);
            }
        }

pretty sure you can reduce the amount of code by using the config system similar to the chams. idk ive not looked at the config system recently and i know its changed slightly

also i'd move this to somewhere else so it doesn't get looped constantly
static ConVar* viewmodel_x = interfaces->cvar->findVar("viewmodel_offset_x");
    static ConVar* viewmodel_y = interfaces->cvar->findVar("viewmodel_offset_y");
    static ConVar* viewmodel_z = interfaces->cvar->findVar("viewmodel_offset_z");
    static ConVar* cl_righthand = interfaces->cvar->findVar("cl_righthand");
    static ConVar* sv_minspec = interfaces->cvar->findVar("sv_competitive_minspec");

Thank you for looking in to this Rem.
config rework would be needed yes, even more if i want to add more types of guns, or each gun independent like aimbot does.
where would i move the static cons then?

Hello, i use other osiris version which has other cfg saving method i like this version because it has jb and better esp than new osiris
i tried to redo the config from your post but still have errors, any help pls?
if (visualsJson.isMember("Playermodel CT")); visuals.playerModelCT = visualsJson["Playermodel CT"].asInt();
if (visualsJson.isMember("ViewmodelXYZ")); v.viewmodelxyz = visualsJson["ViewmodelXYZ"].asBool();
if (visualsJson.isMember("ViewmodelXYZ cl_right")); v.viewmodel_clright = visualsJson["ViewmodelXYZ cl_right"].asBool();
if (visualsJson.isMember("ViewmodelXYZ X")); v.viewmodel_x = visualsJson["ViewmodelXYZ X"].asBool();
if (visualsJson.isMember("ViewmodelXYZ Y")); v.viewmodel_y = visualsJson["ViewmodelXYZ Y"].asBool();
if (visualsJson.isMember("ViewmodelXYZ Z")); v.viewmodel_z = visualsJson["ViewmodelXYZ Z"].asBool();
if (visualsJson.isMember("Color correction")) {
const auto& cc = visualsJson["Color correction"];
visualsJson["Playermodel T"] = visuals.playerModelT;
visualsJson["Playermodel CT"] = visuals.playerModelCT;
visualsJson["ViewmodelXYZ"] = v.viewmodelxyz;
visualsJson["ViewmodelXYZ cl_right"] = v.viewmodel_clright;
visualsJson["ViewmodelXYZ X"] = v.viewmodel_x;
visualsJson["ViewmodelXYZ Y"] = v.viewmodel_y;
visualsJson["ViewmodelXYZ Z"] = v.viewmodel_z;

Hello, i use other osiris version which has other cfg saving method i like this version because it has jb and better esp than new osiris
i tried to redo the config from your post but still have errors, any help pls?
if (visualsJson.isMember("Playermodel CT")); visuals.playerModelCT = visualsJson["Playermodel CT"].asInt();
if (visualsJson.isMember("ViewmodelXYZ")); v.viewmodelxyz = visualsJson["ViewmodelXYZ"].asBool();
if (visualsJson.isMember("ViewmodelXYZ cl_right")); v.viewmodel_clright = visualsJson["ViewmodelXYZ cl_right"].asBool();
if (visualsJson.isMember("ViewmodelXYZ X")); v.viewmodel_x = visualsJson["ViewmodelXYZ X"].asBool();
if (visualsJson.isMember("ViewmodelXYZ Y")); v.viewmodel_y = visualsJson["ViewmodelXYZ Y"].asBool();
if (visualsJson.isMember("ViewmodelXYZ Z")); v.viewmodel_z = visualsJson["ViewmodelXYZ Z"].asBool();
if (visualsJson.isMember("Color correction")) {
const auto& cc = visualsJson["Color correction"];
visualsJson["Playermodel T"] = visuals.playerModelT;
visualsJson["Playermodel CT"] = visuals.playerModelCT;
visualsJson["ViewmodelXYZ"] = v.viewmodelxyz;
visualsJson["ViewmodelXYZ cl_right"] = v.viewmodel_clright;
visualsJson["ViewmodelXYZ X"] = v.viewmodel_x;
visualsJson["ViewmodelXYZ Y"] = v.viewmodel_y;
visualsJson["ViewmodelXYZ Z"] = v.viewmodel_z;

oh nvm i fixed it by replading v.viewmodel_z by visuals.viewmodel_z

haha i pasted the first version which dont have the opposite cl_righthand feature on knife
ggggg

would you mind creating a simple opposite hand knife feature -_- im dumb and cant make this code work, the first one worked but didnt saved to cfg

would you mind creating a simple opposite hand knife feature -_- im dumb and cant make this code work, the first one worked but didnt saved to cfg

///////// in Visuals.cpp for example
void Visuals::KnifeSwapper(FrameStage stage) noexcept{

static ConVar* cl_righthand = interfaces->cvar->findVar("cl_righthand");
const bool config_righthand = config->visuals.viewmodelXYZ.viewmodel_clright;

auto activeWeapon = localPlayer->getActiveWeapon();

if (!localPlayer->isAlive())
{
    if (!localPlayer->getObserverTarget())
        return;
    if (localPlayer->getObserverMode() != ObsMode::InEye)
        return;
    const auto activeWeapon = localPlayer->getObserverTarget()->getActiveWeapon();
}

const auto classid = activeWeapon->getClientClass()->classId;
if (classid == ClassId::Knife) {
    if(cl_righthand->getInt() != config_righthand ){
        cl_righthand = config_righthand ;
    }
}
}

/////// in Gui.cpp

ImGui::Checkbox("cl_righthand", &config->visuals.viewmodelXYZ.viewmodel_clright);

i hope that helps, figure out the hooks and .h file yourself if you can

would you mind creating a simple opposite hand knife feature -_- im dumb and cant make this code work, the first one worked but didnt saved to cfg

///////// in Visuals.cpp for example
void Visuals::KnifeSwapper() noexcept{

static ConVar* cl_righthand = interfaces->cvar->findVar("cl_righthand");
const bool config_righthand = config->visuals.viewmodelXYZ.viewmodel_clright;

auto activeWeapon = localPlayer->getActiveWeapon();

if (!localPlayer->isAlive())
{
    if (!localPlayer->getObserverTarget())
        return;
    if (localPlayer->getObserverMode() != ObsMode::InEye)
        return;
    const auto activeWeapon = localPlayer->getObserverTarget()->getActiveWeapon();
}

const auto classid = activeWeapon->getClientClass()->classId;
if (classid == ClassId::Knife) {
    if(cl_righthand->getInt() != config_righthand ){
        cl_righthand = config_righthand ;
    }
}
}

/////// in Gui.cpp

ImGui::Checkbox("Knife Swap", &config->visuals.viewmodelXYZ.viewmodel_clright);

i hope that helps, figure out the hooks and .h file yourself if you can

ill try it thanks

I hope it works for you i did not test it wrote it just now

I hope it works for you i did not test it wrote it just now, so you might have to fix some stuff

i guess this only works with xyz changes const bool config_righthand = config->visuals.viewmodelXYZ.viewmodel_clright;
not as code itself?

I hope it works for you i did not test it wrote it just now, so you might have to fix some stuff

i guess this only works with xyz changer const bool config_righthand = config->visuals.viewmodelXYZ.viewmodel_clright;
not as code itself?

Yes but make that config path yourself, i just made it to be close to the end product.
Like
const bool config_righthand = config->visuals.Knife_cl_clright;
the config is not hard currently, in config.h in
    struct Visuals {
bool config_righthand { false };
}

and in config.cpp
static void from_json(const json& j, Config::Visuals& v) //This is to LOAD config.
{
read<value_t::boolean>(j, "Config Righthand", v.config_righthand ); (THIS IS FOR bool )

read_number(j, "Config Righthand", v.config_righthand ); (THIS IS FOR int , float , etc )

}
static void to_json(json& j, const Config::Misc& o) //This is to save config.
{
WRITE("Config Righthand", config_righthand);
}
so figur out wich one you need (bool)
and this code is not completekly copy pastable, so just try to figure it out, coding is like a puzzle game when you dont know the basics imho, so beat the puzzle my friend. :)

https://cdn.discordapp.com/attachments/724638912248807465/740312005520523364/Screenshot_2020-08-04-22-55-27-834_com.android.chrome.jpg
im done

getWeaponIndex() and getWeaponClass() are used in aimbot and triggerbot, it crashes because of modifications you've made to those functions.

Sadly it still crashes even without the changes to getWeaponIndex() and getWeaponClass().
i did not change the existing funtion definitions, just added new ones, how would that crash? (trying to understand )

hey, maybe im missing something but i still get 2 errors
i tried to fix 1 and had another 200 so i am asking for help

1st error looks like you need a pointer to the function viewmodelxyz in visuals.h
2nd looks like yuo are missing a { before a }

crashes when afk/tabbed out


Type 'Awaited<Pick<RecordT, T>>[T]' is not assignable to type 'RecordT[T]'

Bug Report
After awaiting a Promise<Pick<RecordT, T>>, applying operator  on it does not resolve to RecordT[T] as expected. When not awaited, it does.
🔎 Search Terms
🕗 Version & Regression Information
4.5

This changed between versions 4.4 and 4.5.3

⏯ Playground Link
Playground link with relevant code
💻 Code
declare function picked_foo_async<RecordT, T extends keyof RecordT>(
    keysToPick: ReadonlyArray<T>,
): Promise<Pick<RecordT, T>>;

async function conversion_async<RecordT, T extends keyof RecordT>(keyToPick: T): Promise<RecordT[T]> {
    const picked = await picked_foo_async<RecordT, T>([keyToPick]);
    /* @ts-expect-error https://github.com/microsoft/TypeScript/issues/47182 */
    return picked[keyToPick];
}

declare function picked_foo<RecordT, T extends keyof RecordT>(
    keysToPick: ReadonlyArray<T>,
): Pick<RecordT, T>;

function conversion<RecordT, T extends keyof RecordT>(keyToPick: T): RecordT[T] {
    const picked = picked_foo<RecordT, T>([keyToPick]);
    return picked[keyToPick];
}

🙁 Actual behavior
Typescript error in conversion_async in example
🙂 Expected behavior
No typescript errors

This is a correct error.
type M = {
    x: Promise<string>
}
const f = conversion_async<M, "x">("x");

Here, f has type Promise<Promise<string>>, but it's actually a Promise<string>


dockertex podman not found

Error when dockertex make
There is an error in the dockertex make command execution, please help with fixing.
Воспроизведение
Описание шагов, приводящих к ошибке:

cloned the repo
made the script executable: chmod +x install-dockertex.sh
executed: ./install-dockertex.sh, everything is OK
executed: dockertex make

what I got:
OTAXON-LPC% dockertex make
/usr/local/bin/dockertex: line 26: hash: podman: not found
Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Non-existent bbl file 'synopsis.bbl'
 No file synopsis.bbl.
Latexmk: Run number 1 of rule 'biber synopsis'
Latexmk: Run number 2 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Run number 3 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Run number 2 of rule 'biber synopsis'
Latexmk: Run number 4 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Run number 5 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Run number 6 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Run number 1 of rule 'xdvipdfmx'
For rule 'xdvipdfmx', running '&do_viewfile(  )' ...
Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2019/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to 'dissertation.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
make: *** [Makefile:89: dissertation] Error 12

Please help me how to fix it?

This repo is a community driven project, so if no one cared to update this part since the initial commit, it may gone outdated. You may:

try to find everyone who commited changes to dockertex part of this repo and mention them in this issue in case they can help
try to use version of dockertex and the state of this repo which was working last time dockertex part was working
update texlive version used to 2023 or 2024 since 2019 may be a bit old to use with this repo.


cannot set to 2 spaces

repro:

file before:

after save

so everything stays at 4 spaces indent, unusable.

OK seems we have to restart VScode for config changes to pickup...


es 5.0 compatibility

Only little changes were necessary.
I needed to upgrade npm dependencies, so do a npm install.
Added a ES 5 instance to docker compose.
All tests pass.
Might conflict a little bit with my other PR. I needed to add a refresh: true at destroyAll, which is already in the other PR.

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

Any updates? Or questions?
Should I create another PR for the develop branch and resolve conflict?

@wolfgang-s I have my hands full as of now so if you could allow me some time I can surely review this and let you know.
@pulkitsinghal ??

please close this one, i submitted a new one for the develop branch with newest version.


position the tooltip

Just came across this tool. Seems to do exactly what I want. However, is there any way to position the tooltip? In an app, I have text that is near the top of the browser window. Right now the tooltip appears above the text, but it's chopped off because it's under the top border of the viewable area. In my screenshot, it's covered by the bookmarks bar in Chrome.
Any way around this?
Thanks!

I think we can customize verticalPosition and horizontalPosition
https://github.com/georgeOsdDev/react-ellipsis-text/blob/master/src/components/EllipsisText.js#L80
BTW,
We are using old materila-ui.
https://github.com/georgeOsdDev/react-ellipsis-text/blob/master/package.json#L61
Latest material-ui does not support tooltip.
So I want to change code to use original tooltip (or enable to pass element as prop).
I'm welcome your PR.

I have release V1.0.0.
https://github.com/georgeOsdDev/react-ellipsis-text/releases/tag/v1.0.0
And tooltip is removed from this release.
Because I think component should be more simple, You can use your own tooltip with onMouseEnter, onMouseLeave etc.


Is it necessary to name a multiplatform lib exactly 'MultiPlatform Library'

My KMM lib has a name different of 'MultiPlatformLibrary'
After I compile iOS project I got the error: No such module 'MultiPlatformLibrary'

Is there any option to use moko-kswift with custom KMM lib name?

kswift works with any framework name.
in your screenshot i see not KSwift generated code, but mokoMvvmFlowSwiftUI module. check readme in moko-mvvm https://github.com/icerockdev/moko-mvvm#swiftui-additions
short: to use precompiled mokoMvvmFlowSwiftUI your module should have name MultiPlatformLibrary but you can copy-paste swift sources of this module to your project https://github.com/icerockdev/moko-mvvm/issues/179#issuecomment-1119254946

Oh, I got it :) Thanks for your help


the ? operator cannot be applied to type Wrapped<()>

Please describe your feature request
It would be great if std::ops::Try is implemented for Wrapped<()>
Additional context
No response

In fact, it would be great if it behaves like a rust Result so that I can perform those operations (.unwrap(), .ok()) on it.

Thats a great point. I will look into this.

As of v0.4.0 the methods that previously returned a Wrapped<T> now return a Result<T, HttpError>. Thanks @IgnisDa for the suggestion, it feels much more idiomatic. This should solve the DX issues you were experiencing.


breaking: tighten up error handling

Introduces a NonFatalError object that is used internally and that is user-detectable in handleError. It's used everywhere where we can reasonably assign a non-500 status code. All other places are untouched - devs implementing handleError should treat any objects besides NonFatalError as a 500. Furthermore, even if we were to adjust all our Error locations, that still doesn't affect all the other locations in user or library code that could throw during the request, so there will always be error objects that don't have a status code.
closes #11287
TODO:

should this be exposed through a isNonFatalError method instead like the objects returned from redirect and error?
is NonFatalError the right word?
start handling error here, too? https://github.com/sveltejs/kit/issues/11287#issuecomment-1853804774

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Instead of introducing a NonFatalError (which is a bit of a weird name) and expecting users to do instanceof checks, why don't we just add status and message properties to handleError?
export function handleError({ error, status, message }) {
  const id = crypto.randomUUID();

  report(id, error);

  return {
    id,
    message // e.g. 'Not Found' for things we threw ourselves, 'Internal Error' for unexpected stuff (as today)
  };
}

We still need the class internally to distinguish it before passing it to handleError though, else how do we know if we can show the message? So if we need it we might aswell surface it.
Having status and message part of the API feels nicer though, I give you that.

we might aswell surface it.

I disagree. We should only expose the things we need to expose, and it's not clear to me that we need to expose this

Was the try-catch really only applied because of the known throw inside, or was it a "who knows let's better be extra safe" precaution?

Because of the known throw inside. It's a bad practice to wrap code that can't error


Bug，There is a problem with the number of images under centos

after run labelme2yolo --json_dir /home/hzadmin/python_project/go2/ningbo_chusui/data --val_size 0.15 --test_size 0.15
(env_all) (base) [hzadmin@DsjAI ningbo_chusui]$ labelme2yolo --json_dir /home/xx/data --val_size 0.15 --test_size 0.15
[2024-09-06T08:15:58Z INFO  labelme2yolo] Starting the conversion process...
[2024-09-06T08:15:58Z INFO  labelme2yolo] Read and parsed 621 JSON files.
[Train] [00:00:00] [########################################] 433/433 (0s)
[Val] [00:00:00] [########################################] 94/94 (0s)
[Test] [00:00:00] [########################################] 94/94 (0s)
[2024-09-06T08:15:59Z INFO  labelme2yolo] Creating dataset.yaml file...
[2024-09-06T08:15:59Z INFO  labelme2yolo] Conversion process completed successfully.
It runs successfully，But when I counted the number of images and txt files, I noticed something was wrong
`images_dir = '/home/xx/data/YOLODataset/images'
labels_dir = '/home/xx/data/YOLODataset/labels'
total_images_li = glob.glob(os.path.join(images_dir, '*', '*.jpg'), recursive=True)
total_labels_li = glob.glob(os.path.join(labels_dir, '*', '*.txt'), recursive=True)
print(len(glob.glob(os.path.join(images_dir, 'train', '*.jpg'))))
print(len(glob.glob(os.path.join(images_dir, 'test', '*.jpg'))))

print(len(glob.glob(os.path.join(images_dir, 'val', '*.jpg'))))

print(len(total_images_li))
print(len(total_labels_li))`

this is it's output

336
72
70
478
621
There are 143 images missing，I ran it multiple times and changed test_size, the result was the same, however, under windows it worked。i install labelme2yolo use pip

You might try using the latest version or a version lower than 0.2.

@wu-yang-work How did you solve this issue?


chore: use poku to run unit tests

Let’s use poku to run unit tests.

@wellwelwel In the other news, I have migrated all unit tests. The end-to-end part is waiting for https://github.com/wellwelwel/poku/issues/580

@mrazauskas, thank you (again)!
I feel supported, regardless of intent, all this makes me want to evolve Poku even more.


Discontinuties in the Story

You can enter the warehouse by saying that the distributor sent you without talking to the distributor.

You can join both Clearwater and the Kiosk.

When you first enter the IKEA, you should not be given the option to leave the Foundation/Kiosk options and wander off by yourself. There should be some checks to restrict movement until you get some information.

I'll fix the warehouse/distributor issue.
The Haven entrance description will also be revised, so that the Kiosk is the first thing you notice/can approach, and only after learning about the Foundation through the Distributor can you join them.


arpeggio key combinations? (for 'jk' smash escape)

I use Arpeggio to implement a reliable 'jk' smash escape: Arpeggio inoremap jk  <Esc>
I tried the usual:
inoremap jk <esc>
inoremap kj <esc>

...but I kept running across variables/words that had jk and kj in them which would totally kill my concentration (and randomly change things :grinning: ).
I have to use a smash escape because the escape key on my mac book pro was causing me massive wrist pains.

Just to note for the original request, j j for me works like:
'atom-text-editor.vim-mode:not(.command-mode, .visual-mode)':
  'j j': 'vim-mode:activate-command-mode'

Here is a currently working method of exiting insert mode with "jj" (or the more common "jk" with a minor edit to the keymap.cson change):
#init.coffee
atom.commands.add 'atom-text-editor', 'exit-insert-mode-if-proceeded-by-j': (e) ->
  editor = @getModel()
  pos = editor.getCursorBufferPosition()
  range = [pos.traverse([0,-1]), pos]
  lastChar = editor.getTextInBufferRange(range)
  if lastChar != "j"
    e.abortKeyBinding()
  else
    editor.backspace()
    atom.commands.dispatch(e.currentTarget, 'vim-mode:activate-command-mode')

#keymap.cson
'atom-text-editor.vim-mode.insert-mode':
  'j': 'exit-insert-mode-if-proceeded-by-j'

Credit for this goes to babygau and his gist @ https://gist.github.com/babygau/ada61d690942ffaf345a

@drbraden Thanks for the code snippet! I wanted to map 'jj' to escape in Atom and you've saved me a lot of time :+1:

@lambdaburrito Glad to hear it!  I've spent way too much time chasing down a solution for this, or finding a new one after a breaking upgrade, so I was hoping I could save others the time :smile:

Thanks @drbraden! Here is a one-line modification of your code snippet, using editor.buffer.undo() instead of editor.backspace() to preserve selections:
#init.coffee
atom.commands.add 'atom-text-editor', 'exit-insert-mode-if-proceeded-by-j': (e) ->
  editor = @getModel()
  pos = editor.getCursorBufferPosition()
  range = [pos.traverse([0,-1]), pos]
  lastChar = editor.getTextInBufferRange(range)
  if lastChar != "j"
    e.abortKeyBinding()
  else
    editor.buffer.undo()
    atom.commands.dispatch(e.currentTarget, 'vim-mode:activate-command-mode')

#keymap.cson
'atom-text-editor.vim-mode.insert-mode':
  'j': 'exit-insert-mode-if-proceeded-by-j'

Looks like editor.buffer.undo() undoes keystrokes in batch, so, ignore my last comment :)

We've fixed this bug. In the next Atom release, you'll just have to do this:
'atom-text-editor.vim-mode.insert-mode':
  'j j': 'vim-mode:activate-normal-mode'

+1


CLI supports conjurrc backwards compatibility

Is your feature request related to a problem? Please describe.
The CLI utilizes the .conjurrc file to hold the connection details required to properly connect to the user's Conjur server. The conjurrc  defines the location of the server's certificate, the account defined on the Conjur server, and the Conjur endpoint url. The conjurrc resembles the following:
cert_file: ...
conjur_account: ...
conjur_url: ...

In the latest CLI release, we updated these field names to be the ones detailed above for better UX without supporting backwards compatibility. In other words, if our users still use the previous conjurrc form, they will fail on commands  when using the new CLI without understanding why. Therefore we should support backwards compatibility by supporting both the older field names and the newer ones.
Adding backwards compatibility, would allow us to continue working with other in-house tooling that rely on the old conjurrc file format (summon for example).
Describe the solution you would like
Support both older conjurrc field names and the new ones
Describe alternatives you have considered
We could fail and ask them to re-init the CLI (conjur init), which would in effect overwrite the old conjurrc with the newest format. This would be a quick win
Additional context

Fixed in #413


Support Float32 and other precisions

The assumption of only supporting Float64 is too strong. Are there any good reasons?
I am labelling this as bugs to signal its priority.

The reason is a lack of testing infrastructure which can properly handle Float32 -- with multiple precisions involved, it becomes a little bit more tricky to properly determine appropriate accuracy thresholds for finite differencing etc.
I've removed the bug label, in favour of enhancement + high priority, because bug isn't an accurate description of what's going on here.

@yebai and @red-portal discovered that we're going to need a rule to Core.Intrinsics.fptrunc is going to need a conversion rule + a rule -- see https://github.com/TuringLang/AdvancedVI.jl/pull/71

I think I'd rather just provide an informative error message, in order to avoid users thinking they're testing one thing, but actually testing another -- I can easily imagine a situation in which a user accidentally has a Float64 somewhere in their input, and then the whole thing gets silently promoted to Float64, and then they're testing something other than what they meant to test.

@penelopeysm discovered in https://github.com/TuringLang/docs/pull/559#discussion_r1857551478 that Mooncake's current rule for matrix-matrix multiplication in LuxLib doesn't successfully handle the case that the two input arrays contain numbers at different precisions.
It really shouldn't be too hard to handle this properly -- we would just need to re-write the current from_rrule implementations of the various variants of matrix-matrix multiplication found around here to have proper Mooncake rules which
define is_primitive for arrays whose elements are subtypes of IEEEFloat, and
define the rrule!s in such a way that ensures the correct element-type is adhered to.
add a method of rrule!! which is a catch-all for all other element types, which always errors with some kind of sensible error message that users can make use of to know how to modify their code.

Note: this is also a great opportunity to ensure excellent performance in Lux.jl -- the current implementations of the rules involve more allocations than are really needed, because we do not increment the gradients in-place.

I'm marking this as done, because I believe it to basically be done. We can re-open if there is a reason to.

It seems to be fine for Float32 and Float64


Add new feature "update"

Discuss how "update" operates with respect to keeping old sysmeta copies and update this issue before proceeding.

Update is the same as "_set_sysmeta". When updating "_set_sysmeta", the old sysmeta should be protected until the new sysmeta is written, with the ability to "roll back" the update should writing the new sysmeta fail.

This feature has been developed in branch 'feature-4-retrieve-store-content' and will be reviewed during alpha release.


The type parameter of extract32()

https://vyper.readthedocs.io/en/latest/built-in-functions.html#extract32
The output is converted from bytes to the type?

extract32(a, b, type=c) is convert(slice(a, start=b, len=32), "c") ?


Not able to inject tracy payload

Hi! So I was just testing how to work with the Tracy web extension. For this particular website which is vulnerable to DOM XSS. User can control the input and that is being reflected too in the code.
But I can't generate payload via Tracy to track the input.
URL
https://brutelogic.com.br/tests/sinks.html?name=something
So in the above URL, name parameter is vulnerable to DOM XSS
Payload (Injecting the valid html )
https://brutelogic.com.br/tests/sinks.html?name=<img+src+onerror=alert(1)>
So for this tracy doesn't show any payload section in the URL bar. Not sure if I'm not using this tool properly !

Hey! Here's what you might be missing:

Open the UI by clicking the tracy logo in the top right.
Copy the following into the URL bar: https://brutelogic.com.br/tests/sinks.html?name=zzXSSzz

When you navigate to that URL, the zzXSSzz string will be converted by tracy to a unique payload that it can spot in the page. It also adds HTML metacharacters so that it can detect XSS Once you navigate to that URL, the UI should reflect the generated payload for you in the table. If you click it, it will show you all the locations that input was rendered in the DOM and should also give a severity rating based on if it was escaped in any special way.
Give that a shot and let me know if you still can't get it. Happy to help.

When I did, I got the following:

Notice how tracy assigned the input as a severity 3? That is because the user-controlled input was rendered in the DOM as a node name, which should never happen unless the user-controlled input was rendered into the page as HTML. This is a big red flag for XSS and why tracy flags it. The output on the right side of the UI shows other interesting information: the HTTP request used to inject the user-input, the screenshot (if one was taken; \"'<qqlqhgtijb> and hottqqilca payloads don't trigger screenshots so there wasn't one generated), and the bottom of the right side shows the actual DOM write to the page. Make sense?

Okay so I didn't know that bvlqswzwch would be tracked via tracy automatically, I was hoping that trace icon would show up in the URL bar of my browser when I can select the payload type just like we get in normal input fields.

But yes "' works well! Thanks for help :)

Wow I forgot to disable tracy xD

Yes, so there are a few issues UI-wise that lead us to have the four different payloads we have. In most cases, you can just use the dropdown and select one of the four. However, in some cases (like the one you describe where you want to modify the query parameter in the URL directly), the extension APIs don't allow us to modify the UI of the browser's navigation bar. So in cases where you want to do that, you can manually type the zzXSSzz and zzPLAINzz and they will get caught by our background scripts when the network request is made. That was actually one of their primary purposes; there are a couple other cases where we couldn't generate the payloads until the network request was made, such as when client-side validation occurs and prevents a < symbol in a text field. The GEN-PLAIN and GEN-XSS are nicer for your average input fields because we can collect a little bit more information about where in the DOM the input was first introduced. But these are just the limitations of the browser.
So overall, we can't modify the navigation bar. If you want to introduce a payload in the navigation bar, use zzXSSzz or zzPLAINzz and you should be good.

Closing this for now, let me know if you have any other issues I can help troubleshoot. And thanks for trying out Tracy!


[Application] : Autonomous Assistant drone for disaster management (Climate Change)

Contact Details
Aadil Memon
Past Projects
https://drive.google.com/file/d/1mROUAOVDXgwDDjWi4A_SLO010igYVN5d/view?usp=drive_link
Which disaster risk or issue are you addressing?
Problem:
Since June 14, 2022, floods in Pakistan have killed 1,486 people. The floods were caused by
heavier than usual monsoon rains and melting glaciers that followed a severe heat wave, all of
which are linked to climate change. It is the world's deadliest flood since the 2017 South Asian
floods[ and described as the worst in the country's history. 33 million people are affected and
displaced up to 100,000 people from their homes. The social activist organizations are trying to
reach out these floods effected areas using boats and other means to help out the people, but they
are numerous unexplored areas where help hasn’t reached till yet due to vast spread of population
and lack of facilities and funds. As the damage is so huge and it’s really challenging to deal with
unlimited challenges of helpless affected people.
Solution:
A Raspberry Pi based fully autonomous drone equipped with OAK – D – Pro Camera (fixed
– Focus) will be flying these areas and checkout if a person is stuck anywhere in flood area and
sending GPS location coordinates of detected person to social activists so that they can drive their
boats to these locations and help them to saving their lives. Drones can explore the flooded areas
where human can’t even approach.
Approach:
Drone will be exploring flooded areas using GPS guided system while avoiding obstacles with
3D point cloud generated by OAK – D – Pro and a person detection model will be running
alongside on OAK – D – Pro (Myriad - X) as the person detected stuck in flood, the GPS
Coordinates will be sent to smart phone of social activists.
Tools to be used:
Pixhawk Px4 Drone Kit, OpenCV, Deepthi, ROS, Raspberry Pi, Drone, OAK – D – Pro, flight
controller, Open Vino, Intel’s person detection model (person-detection-0200), Stereo Vision,
3D Reconstruction, Obstacle Avoidance.
Disaster
Floods
Where are you from?
Asia / Central Asia
Readiness Level of a Project
TRL 1 - Basic Principles Observed
Storytelling

[X] I agree to follow this project's will to share my project evolution with documentation and short interviews during the project's deployment

Hello,
Thank you for sharing your proposal, which was very impressive! After careful evaluation, we regret to inform you that we will be moving forward with other candidates.
Our decision was primarily based on the alignment of the project with MissionPack's objectives, as well as the feasibility of achieving these goals with Mission Pack.
We truly appreciate your participation, and we look forward to seeing your projects in the future.
Sincerely,
Seeed Studio / Davide


Is it thread-safe？but my program show that it is not thread-safe

//result not correct
func TestName1(t *testing.T) {

	c := fastcache.New(1024 * 1024)

	wg := sync.WaitGroup{}

	for i := 0; i < 1000; i++ {

		wg.Add(1)
		go func(i2 int) {

			result := c.Get(nil, []byte(`k`), )

			r, _ := strconv.Atoi(string(result))
			r++
			c.Set([]byte(`k`), []byte(strconv.Itoa(r)))

			wg.Done()
		}(i)
	}

	wg.Wait()

	result := c.Get(nil, []byte(`k`), )
	log.Println(result)
	log.Println(string(result))

}

//result is correct
func TestName2(t *testing.T) {

	c := fastcache.New(1024 * 1024)

	wg := sync.WaitGroup{}

	mutex := sync.Mutex{}

	for i := 0; i < 1000; i++ {

		wg.Add(1)
		go func(i2 int) {

			mutex.Lock()
			result := c.Get(nil, []byte(`k`), )

			r, _ := strconv.Atoi(string(result))
			r++
			c.Set([]byte(`k`), []byte(strconv.Itoa(r)))

			mutex.Unlock()

			wg.Done()
		}(i)
	}

	wg.Wait()

	result := c.Get(nil, []byte(`k`), )
	log.Println(result)
	log.Println(string(result))

}

fastcache is thread-safe, i.e. its methods can be safely called from multiple goroutines. Try building a program or a test with -race flag in order to catch possible data races - see this article for details.
As for the examples above, the TestName1 assumes that no other goroutine can run when a single goroutine executes the code inside go func() { ... }. This isn't true in multi-threaded program. Even with GOMAXPROCS=1 goroutines can switch inside the code of go func() { ... }, so the end result wouldn't match the result from TestName2 where the code inside go func() { ... } is explicitly blocked by a mutex.

thanks a lot .
I learned this .
fastcache is thread-safe. Get method and Set method is thread-safe .
however, the two methods used together are not thread-safe, and I need to ensure that by myself.

Correct! Closing the issue then.


Update setup-downloader.md

Fixed Issue #733 - https://github.com/MicrosoftDocs/SCCMdocs/issues/733

@AdamGrossTX : Thanks for your contribution! The author, @aczechowski, has been notified to review your proposed change.

Thanks @AdamGrossTX for pitching in to help with this. Once merged, this should be live with the next daily publishing process. Right now that should be tomorrow (Friday, 10 August) around 11:00 Pacific time.
#sign-off


[FEATURE] Generating openapi.json programmatically

Is your feature request related to a problem
Is your feature request related to a problem?
In a common CI environment there are cases when automatically deploying an openapi.json to services like Github Pages can very useful. However, in order to access the openapi.json thats generated after fastapi instance is running and providing the docs endpoint is sub-optimal because it requires spinning up the service in CI just to curl that file.
The solution you would like
Add extra flags to fastapi that will allow to generate the openapi.json without running the service instance.
For example when invoking via uvicorn pass extra args that fastapi will somehow intercept and produce the openapi file to specified location:
uvicorn main:app --fastapi_generate_openapi --fastapi_openapi_output "{output_path_goes_here}"

If its not possible to intercept the args when invoked via uvicorn, then perhaps another alternative is to provide a simple fastapi cli, pre packaged with the python module and do something like:
fastapi --fastapi_generate_openapi --fastapi_openapi_output "{output_path_goes_here}"

Describe alternatives you've considered
As described in problem description, the working alternative is running the instance and curling the openapi.json from the docs endpoint.
Additional comments
If this feature is somehow already available and someone could provide a link to how to use/invoke it ill greatly appreciate it and close the GitHub issue :-)

Hello there,
You can achieve this programmatically using get_openapi function from fastapi.openapi.utils.
from fastapi.openapi.utils import get_openapi
from main import app
import json

with open('openapi.json', 'w') as f:
    json.dump(get_openapi(
        title=app.title,
        version=app.version,
        openapi_version=app.openapi_version,
        description=app.description,
        routes=app.routes,
        openapi_prefix=app.openapi_prefix,
    ), f)

I believe you are looking for a script like this one.

@egeucak yeah exactly what I was looking for. Thanks! closing issue

Thanks for the help here @egeucak ! :rocket:
And thanks for reporting back and closing the issue @aorumbayev :+1:
For reference, here are the docs: https://fastapi.tiangolo.com/advanced/extending-openapi/


Print waypoint name in istioctl pc workloads

Please provide a description of this PR:
As suggested in #43311

I can't find an existing test for the pc workloads to update with coverage for my addition.

@ymesika: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
7427470719f2cba377b8ad862da441eb809faefe
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@ymesika: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-telemetry-mc_istio
7427470719f2cba377b8ad862da441eb809faefe
link
true
/test integ-telemetry-mc

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-telemetry-mc


Sort and filter does not work when combined with Query.And()

The sort gets completely ignored when it's combined with Query.And and the result is in "random" order. The following query from the LiteDB wiki does not work in v3:
var results = col.Find(Query.And(Query.All("Age", Query.Descending), Query.Between("Age", 20, 30)));
I've submitted a pull request which fixes (and tests) this issue.  https://github.com/mbdavid/LiteDB/pull/471

Hi @RytisLT, thanks for you PL. , I saw it but not merged yet. It's on my plans but I want made more tests before.

@mbdavid what would you like to test? Maybe I could add more tests to pull request

Hi @RytisLT, I saw your unit test in PL. I will merge this Carnival holidays...

PL merged 👍


Make assert eqauls strict

Changed log

It seems that the package require php-7.2 version at least, and it should remove php-7.1 version and add php-7.2, php-7.3 and php-7.4 versions on Travis CI build.
Using the assertSame to make assert equals strict.

Thank you


I added the one # in the first line which is (Engineering portal)Update README.md

Checklist

[ ] You have read the Contribution Guidlines before creating this PR.
[ ] You created a branch from dev branch
[ ] Blog follows Blog Guidelines.
[ ] Checked for all grammatical errors in the blog.
[ ] Checked for any duplicate blog entry.
[ ] You PR is raised on dev branch and not onmaster.

Description of change

Author Details for Blog Post Entry

I am sorry but this change is not required. Closing the PR


Add importer and resource Reviews

A resource for accessing card reviews

@talha-ahsan contributed this a little while back.


Replace Node.js 18 with Node.js 20

Rationale: Slack discussion and Node.js end of life timeline.
Update in:

package.json
Dockerfiles
GitHub Actions workflows
Terraform (AWS & GCP)

There is a lot of discussion happening on the PR and the problem is that the E2E tests are failing. It's not great, because node@18 receives only security updates. After 30 Apr 2025, it completely stops being maintained.
Let's revisit this issue after some time.


[US-1-2] Add plugin to Google Chrome extensions

https://support.google.com/chrome/a/answer/2714278?hl=ru

Requirements from Developer Dashboard:

[ ]  At least one screenshot or video is required.
[ ]  You must verify your contact email before you can publish any item. Begin the verification process on the Account tab.
[ ] Icon image is missing.
[ ] A justification for scripting is required. This can be entered on the Privacy practices tab.
[ ] The single purpose description is required. This can be entered on the Privacy practices tab.
[ ] You must provide a contact email before you can publish any item. Enter your contact email on the Account tab.

#562

Done.


PHP 7.1 error

This is the error I get on Laravel 5.5 and PHP 7.1:

@ionesculiviucristian what are you doing when this error appears?


Python made a mistake

Python started at 0 instad of 1

Oh, you are right. Thank you. Could you please change xrange(10) to xrange(1000000000) in the commit and I will merge it later. Thanks! :smile:


Discord can't find shared libraries (on master)

Describe the bug
If I start Discord, it can't find libffmpeg:
$ Discord
/home/user/.nix-profile/bin/Discord: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory

I found this issue #104340, and tried to set the LD_LIBRARY_PATH like mentioned:
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(dirname $(which Discord))/../opt/Discord/ Discord
/home/user/.nix-profile/bin/Discord: error while loading shared libraries: libdrm.so.2: cannot open shared object file: No such file or directory

but it then can't find libdrm.
Not sure what I have to do after that...
readelf -d /path/to/disord-0.0.15/opt/Discord/.Discord-wrapped
shows that no RUNPATH is set.

and here is the result of `nix-build . -A discord --check`. not sure if that's useful.

checking outputs of '/nix/store/bb9jl9r08w4fy5wj07d36frhw54rq1vc-discord-0.0.15.drv'...
unpacking sources
unpacking source archive /nix/store/nr94jc8l68k243pf3v1xgkka02m995n2-discord-0.0.15.tar.gz
source root is Discord
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file Discord/swiftshader/libGLESv2.so
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
gappsWrapperArgsHook
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/chrome-sandbox
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libEGL.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libGLESv2.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libffmpeg.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libvk_swiftshader.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libvulkan.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/swiftshader/libGLESv2.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/swiftshader/libEGL.so
shrinking /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/.Discord-wrapped
rewriting symlink /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/bin/Discord to be relative to /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15
rewriting symlink /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/share/pixmaps/discord.png to be relative to /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15
strip is /nix/store/77i6h1kjpdww9zzpvkmgyym2mz65yff1-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/bin
patching script interpreter paths in /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15
/nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/postinst.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/a4yw1svqqk4d8lhwinn9xp847zz9gfma-bash-4.4-p23/bin/sh"
checking for references to /build/ in /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15...
automatically fixing dependencies for ELF files
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/chrome-sandbox
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libEGL.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libGLESv2.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libffmpeg.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libvk_swiftshader.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/libvulkan.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/swiftshader/libGLESv2.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/swiftshader/libEGL.so
searching for dependencies of /nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15/opt/Discord/.Discord-wrapped
/nix/store/2614f2y7n0ch0p8gdrvri3mchfm80wpn-discord-0.0.15

To Reproduce
Steps to reproduce the behavior:

nix-env -f . -iA discord
Discord

Expected behavior
Discord starting.
Additional context
I built Discord from master since, it now refuses to run any version < 0.0.15, and the update hasn't landed in nixpkgs-unstable yet.
Notify maintainers

@MP2E
Metadata

system: "x86_64-linux"
host os: Linux 5.4.107, NixOS, 21.11pre291991.ea7d4aa9b82 (Porcupine)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20210503_6d2553a
channels(root): "nixos-21.11pre291991.ea7d4aa9b82"
channels(ngyj): "nixpkgs-21.05pre291370.dcd5d9a8e5c"
nixpkgs: /home/ngyj/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

works for me
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs/archive/refs/heads/master.tar.gz -p discord

Discord

Discord 0.0.15
(node:519239) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Starting app.
Starting updater.
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Module install path: /home/user/.config/discord/0.0.15/modules
[Modules] Module installed file path: /home/user/.config/discord/0.0.15/modules/installed.json
[Modules] Module download path: /home/user/.config/discord/0.0.15/modules/pending
[Modules] No updates to install
[Modules] Checking for host updates.
[Modules] Host is up to date.
[Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
[Modules] No module updates available.

21.11pre291991.ea7d4aa9b82

So the problem might come from my machine, something unrelated?
Indeed reinstalling discord-0.0.14 from nixpkgs-unstable exhibits the same problem...
I don't really see anything particular I did that might cause this.

try moving or removing ~/.config/discord removing it will remove your fav gifs so back them up first
to save discord fav gifs
ctrl shift i
application tab
local storage > https://discord.com
put GIFF in the filter search
copy the value and put it into a file

to restore
do the same as above but paste the old value

your user nixpkgs channel is not at the newest version , update it by running nix-channel --update without root

Does https://github.com/NixOS/nixpkgs/issues/104340#issuecomment-730815509 fix the problem for you because it worked for me. @leo60228 would you like to create a pull request with that change?

had the same problem as this issue, was able to fix it with this patch (based on @leo60228's patch and @yokodake's info)
diff --git a/pkgs/applications/networking/instant-messengers/discord/base.nix b/pkgs/applications/networking/instant-messengers/discord/base.nix
index 841c979e..ae806c4a 100644
--- a/pkgs/applications/networking/instant-messengers/discord/base.nix
+++ b/pkgs/applications/networking/instant-messengers/discord/base.nix
@@ -31,6 +31,7 @@ in stdenv.mkDerivation rec {
   dontWrapGApps = true;

   libPath = lib.makeLibraryPath [
+    libdrm mesa
     libcxx systemd libpulseaudio
     stdenv.cc.cc alsaLib atk at-spi2-atk at-spi2-core cairo cups dbus expat fontconfig freetype
     gdk-pixbuf glib gtk3 libnotify libX11 libXcomposite libuuid
@@ -50,7 +51,7 @@ in stdenv.mkDerivation rec {
     wrapProgram $out/opt/${binaryName}/${binaryName} \
         "''${gappsWrapperArgs[@]}" \
         --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
-        --prefix LD_LIBRARY_PATH : ${libPath}
+        --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName}

     ln -s $out/opt/${binaryName}/${binaryName} $out/bin/
     ln -s $out/opt/${binaryName}/discord.png $out/share/pixmaps/${pname}.png

I was having the same issue as OP and @iagocq's patch worked for me. Here is my machine info:
 nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.11.21, NixOS, 21.05pre291486.900115a4f7f (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210503_6d2553a`
 - channels(skykanin): `""`
 - channels(root): `"nixos-21.11pre291991.ea7d4aa9b82"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`


RDK-31844: Aspect ratio for tv settings should be in tvsetting instead of device settings.

Removing tv zoom settings from displaysettings.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Failed to parse source map

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/index.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/config/default.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/config/default.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/config/payload.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/config/payload.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/config/slateDemo.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/config/slateDemo.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/dom.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/dom.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/serializers.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/serializers.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/utilities/convert-slate.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/utilities/convert-slate.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/dom/src/lib/utilities/domhandler.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/dom/src/lib/utilities/domhandler.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/index.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/html.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/html.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/default.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/default.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/payload.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/payload.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/slateDemo.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/config/slateDemo.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/index.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/whitespace.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/htmlToSlate/whitespace.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/html/src/lib/serializers/slateToHtml/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/html/src/lib/serializers/slateToHtml/index.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/utilities/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/utilities/src/index.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/utilities/src/lib/blocks.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/utilities/src/lib/blocks.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/utilities/src/lib/style-object.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/utilities/src/lib/style-object.ts'

WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/{projectPath}/packages/utilities/src/lib/utilities.ts' file: Error: ENOENT: no such file or directory, open '/Users/{projectPath}/packages/utilities/src/lib/utilities.ts'

I faced the same errors

I have no idea where to start - haven't been able to reproduce this.
I am hoping that this is resolved in https://github.com/thompsonsj/slate-serializers/releases/tag/v2.2.0 where a lot of dependencies have been updated. If not, any more information to help me recreate this? e.g. node version?

I checked the new 2.2.0 version and the issue is still present.
Node version 16.10.0
Please let me know what additional information I could provide to help to find and resolve the issue.

I believe this is related to what files are actually being included in the package, which does include the sourcemap files, but not the ts files that the sourcemaps are trying to point to.  For example, when I look at the @slate-serializers/dom/src/index.js.map on npm it's trying to include this file as a source: "../../../../packages/dom/src/index.ts".  But no index.ts is present in the src folder in the package, so it's unable to find the file.  Also, even if the index.ts file was present, I'm not sure that this source path would resolve correctly as the ../../../../packages doesn't seem like it corresponds well to where the file would be once it's in a node_modules.
On the other hand, if you adjust your source-map-loader configuration, you can tell it to ignore these files and make the warnings go away.  Something like:
loader.exclude = [path.resolve(__dirname, '../../libs/reactifi/node_modules/@slate-serializers')];

Thanks @shank-eric and @yanjiez . Version 2.2.1 no longer includes source maps, so those warnings should go away 👍  I'll bring back source maps if I can figure out how to generate them properly in a monorepo or NX adds guidance/support for this.


Update to latest WalletConnect v1.x SDK

Just to be sure.

Android doesn't have a v1.x SDK, but will update to the latest spec and try to solve the issues that happen when you allow the phone to go into deep sleep mode.

@JamesSmartCell, @seabornlee or @justindg would you help re-assign among yourself and close this?

@seabornlee is this completed?

@JamesSmartCell Shall we close this issue?


Adapt TxParametersDetail to display a future safeNonce

What it solves
Resolves #2904
How this PR fixes it
When the user edits the transaction params and sets a safeNonce greater than the current nonce
How to test it
On creating transaction "Review" step, edit the safeNonce to be greater than the current one.
Then:

the gas estimate area is replaced with error copy
the advanced menu has been expanded
the offending nonce is highlighted red.
updated warning copy

Screenshots

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

7 of 8 (87.5%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 31.711%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/routes/safe/components/Transactions/helpers/TxParametersDetail/index.tsx
7
8
87.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
2980

Relevant Lines:
8377

💛  - Coveralls

I check the  and  components before removing them. They basically wrap the children prop inside a div. I also verified that I was not getting rid of any particular styling before removing the gasCostsContainer class in the elements.
From my testing the modals are rendered like before but please let me know if it was unnecessary.
The aim was to unify the same wrapping style for the <ReviewInfoText /> inside that component.

I check the and components before removing them. They basically wrap the children prop inside a div. I also verified that I was not getting rid of any particular styling before removing the gasCostsContainer class in the elements. From my testing the modals are rendered like before but please let me know if it was unnecessary. The aim was to unify the same wrapping style for the <ReviewInfoText /> inside that component.

Some were <div>s but there were also <Block>s and <Rows>s. Were all of the gasCostsContainers the same stylistically?

Yes, all the gasCostsContainers were applying the same styles: background and padding. All referring to the same Modal section.
I think it is way more manageable now and this section should have a unified look

Works fine, a small detail:
The snapshot in the original issue 2904 has also the text in red

@francovenica I've fixed it! I also made sure that the Advanced Options section is extended when we enter the Review step with a suggested safe nonce in the future (before it was only opening after you edit).

Looks good to me.
I like the idea of displaying the advanced options if they have to change the nonce.


This article is missing a step and doesn't work in Azure.

[Enter feedback here]
1st Issue.
Once you install the module, i.e.
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
It's nice and dandy,
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
Name                                   Version

Microsoft.Online.SharePoint.PowerShell 16.0.23914.12000
2nd Issue.
You need to clarify that this might not work in Azure Shell (bash or PowerShell) as that's based on linux and this module requires Windows to work per error code.

I am able to repro, and wonder if you can also repro the issue.  This is not a OOB out of box, module, and was installed manually.
The Microsoft.Online.SharePoint.PowerShell module will not work or don’t think it will work in Azure Cloud Shell because it depends on the Microsoft.Win32.Registry type, which is not available in Azure Cloud Shell. Azure Cloud Shell is a cloud-based environment and does not have access to the Windows registry, we just need to confirm that.

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

ID: 51a2a070-5965-61d1-62e6-433fad2b5ecf
Version Independent ID: d54bbe0a-37b6-a6f0-0b25-e931ac537d58
Content: Get started with the SharePoint Online Management Shell
Content Source: sharepoint/docs-conceptual/sharepoint-online/connect-sharepoint-online.md
Service: sharepoint-server-itpro
GitHub Login: @Techwriter40
Microsoft Alias: pamgreen

Hello @enigmanet
In the Intro and Get Started articles it is mentioned it is a Windows PowerShell module.
And in the documentation for Cloud Shell it is mentioned is based on Linux.
Thanks for your feedback,

Thank you for the reply, for the needy ones, out there, a work around that would work is to use the PnP Module inside the Azure Shell.


Convert / Deserialize OpenApiSchema to Json schema

Hello all,
Somebody knows how can I convert a OpenApiSchema to Json Schema.?
Any help will be appreciated 👍

I would also quite like to see this. Is there a proper MSDoc page for this, the Wiki here seems a little light. I'd love to see more detailed documentation. Perhaps I'm overlooking the location.

We're starting to work on complete docs.  Sorry it took so long to get around to it.
If you are just looking to emit the OpenAPI 3.0 flavour of JSON Schema then this will do it for you.
using Microsoft.OpenApi.Readers;
using Microsoft.OpenApi.Writers;

var reader = new OpenApiStreamReader();

var result = await reader.ReadAsync(new FileStream("openapi.yaml", FileMode.Open));

foreach (var schemaEntry in result.OpenApiDocument.Components.Schemas)
{
    var schemaFileName = schemaEntry.Key + ".json";
    Console.WriteLine("Creating " + schemaFileName);
    using FileStream? fileStream = new FileStream(schemaFileName, FileMode.CreateNew);
    using var writer = new StreamWriter(fileStream);
    schemaEntry.Value.SerializeAsV3WithoutReference(new OpenApiJsonWriter(writer));
}

Not a problem, it's understandable, documentation ends up taking up alot more time than anyone intends for it to take up. So it does usually get pushed out towards the back end.
Thank you for the response and the code snippet. I ended up doing something similar, didn't realise that we could actually serialize it using that method. I can still see that there are some internal "$ref" properties that don't seem to get resolved, is that intended, or is it likely down to issues with the Open API spec itself in your experience?

Ahh, if you want to inline all the references you can pass a OpenApiWriterSettings to the constructor of the Writer and set  InlineLocalReferences to true.

That worked an absolute treat.


Support for helm build streamx on k8s

1.Fixed docker-related bugs
2.add helm install

@czy006 PTAL

I hava some question for this mr

helm is support spring config to yaml at next helm version ?
For helm version and chart version, can you elaborate on the difference between them in the remarks? This parameter may be confusing for users

@MonsterChenzhuo


Error  with building scaffolding

[Enter feedback here]
When I try to add the scaffolding to the movie example I get an error message
Finding the generator 'razorpage'...
Running the generator 'razorpage'...
Minimal hosting scenario!
Generating a new DbContext class 'RazorPagesMovie.Data.RazorPagesMovieContext'
Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
I've followed the steps in the guide about a dozen times and always get the same issue.
Please help

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

ID: 6719f08e-3bd7-dc1a-71df-f2ef9fbca9d8
Version Independent ID: 7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Content: Part 2, add a model
Content Source: aspnetcore/tutorials/razor-pages/model.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

Stack Overflow
ASP.NET Core Slack
ASP.NET Gitter

Potential bugs in the ASP.NET Core framework and product feedback can be reported at dotnet/aspnetcore issues (include full repro steps and cross-link to a repro project in GH when appropriate). For Visual Studio, use the Report a Problem gesture or Suggest a Feature gesture within VS, which open internal issues for the VS team. For Visual Studio Code, you can open an issue at microsoft/vscode issues.


Bridge do not work

Hello, Bridge dont work and my tokens didnt arrive to the destination address : GDJGUWE3KBB42E6NPHOXYOJM2GPO2ADW7YYMMZOFGTOGYHPZVPER4TMS
Bridge transaction:
https://bscscan.com/tx/0x7d0439b3e27ee5e5597d96cdbf1c25e6174d636d6f8b7bbbe41709387a2487b3

Am I still not getting my tokens? !!! Or just everyone went on vacation to rest ...

Funds have been received, the problem has been resolved. Thank you for your cooperation!


Implement json writer

Overview
To implement JSON Writer

Created a new writer file for json
added test in test_stream.py
registered in config

#199
Please preserve this line to notify the @frictionlessdata/python team

@gowthamraj198
Hi, not sure I understand - does this create JSON data files as the writer's ouput?

yes. It reads from a csv and just writes in console as a stream. Want to know if this works then i can make changes to write it as a separate file.

@gowthamraj198
The basic goal is to have a writer able to create JSON files as output.
For example, this one can be a basic functionality test:
def test_stream_save_json(tmpdir):
    source = 'data/table.csv'
    target = str(tmpdir.join('table.json'))
    with Stream(source, headers=1) as stream:
        stream.save(target)
    with Stream(target, headers=1) as stream:
        assert stream.headers == ['id', 'name']
        assert stream.read(extended=True) == [
            (2, ['id', 'name'], ['1', 'english']),
            (3, ['id', 'name'], ['2', '中国人'])]

Save tests - https://github.com/frictionlessdata/tabulator-py/blob/master/tests/test_stream.py#L595-L604

I have added code to write a json file without indent and property. Also written test for the same. @roll Please check it


Fix TestBPF

Fixes #22078
See commits for details.

Last two pushes changed only a comment and a workflow step title. The CI job that matter here were passing before. Merging.
Thanks Tobias!


Field / Standard options / Display name stopped working in 4.1 release

Field / Standard options / Display name setting is ignored after update to 4.1.1 release and zabbix item name or Transformation name is used as Display name.
Setting:

Item with plugin 4.1.1:

Same item with plugin 4.0.2:

Grafana
Zabbix
Grafana-Zabbix Plugin

7.3.6
4.4.10
4.1.1

Is there any fix planned for this? This is generic grafana functionality, and it breaks many graphs)


Django Rest Framework - Authentication Class - When Post without Auth header not 401 response it goes by

If you pass incorrect token, it'll return 401 status response.
But if you don't put authorization header on your request, django will not return 401 response and behave with request as AnonymousUser request.
Its this  the common flow of the library. Mabye I am doing thing the wrong way.
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework_simplejwt.serializers import (     TokenObtainPairSerializer as TokenObtainPairSerializerSimpleJwt, )
class CorporateQuotationViewSet(generics.CreateAPIView, viewsets.GenericViewSet):     serializer_class = CorporateQuotationSerializer     authentication_classes = [JWTAuthentication,]     # permission_classes = [IsAuthenticated, ]

Yes, you are correct. If an incorrect token is passed to the JWTAuthentication class, Django will return a 401 status response. However, if no authorization header is included in the request, Django will not return a 401 response and will instead treat the request as coming from an AnonymousUser.
In the code snippet you provided, the permission_classes attribute is commented out, which means that anonymous access is allowed even when JWTAuthentication is used. To ensure that only authenticated users have access to the view, the permission_classes attribute should be uncommented and set to [IsAuthenticated].
By doing this, Django will return a 401 response if an unauthenticated user tries to access the view. Therefore, uncommenting the permission_classes attribute and setting it to [IsAuthenticated] is recommended if you want to enforce authentication for this view.
I hope this is helpful! 👍


[Tooltip] Allow global configuration of delays

Feature request, or proposal:
Allow global configuration of tooltip show/hide delay
What is the expected behavior?
Configuring the show/hide delay of tooltips through a provider
What is the current behavior?
Every tooltip have to be configured individually
What is the use-case or motivation for changing an existing behavior?
Instead polluting the markup and changing tens of tooltips, it would be nice to have a mechanism to configure delays globally.

This is already possible by providing a MatTooltipDefaultOptions with the token MAT_TOOLTIP_DEFAULT_OPTIONS. See here.

@andrewseguin
Facing error while import
import {MAT_TOOLTIP_DEFAULT_OPTIONS, MatTooltipDefaultOptions} from '@angular/material';
/node_modules/@angular/material/material"' has no exported member 'MatTooltipDefaultOpti
ons'.
/node_modules/@angular/material/material"' has no exported member 'MAT_TOOLTIP_D
EFAULT_OPTIONS'.

Seems to be working on this reproduction: https://stackblitz.com/angular/jydgypqvqvk?file=app%2Ftooltip-modified-defaults-example.ts

@andrewseguin
why i am getting same ?
package.json
"@angular/animations": "5.0.0",     "@angular/cdk": "5.0.0",     "@angular/common": "5.0.0",     "@angular/compiler": "5.0.0",     "@angular/core": "5.0.0",     "@angular/forms": "5.0.0",     "@angular/http": "5.0.0",     "@angular/material": "5.0.0",     "@angular/platform-browser": "5.0.0",     "@angular/platform-browser-dynamic": "5.0.0",     "@angular/router": "5.0.0",
`"@angular/cli": "1.6.6",
"@angular/compiler-cli": "5.0.0",
"@angular/language-service": "5.0.0",
"@types/jasmine": "2.5.53",
"@types/jasminewd2": "2.0.2",
"@types/node": "6.0.60",
`

Hi!
That worked for me:
export const customTooltipDefaults: MatTooltipDefaultOptions = {
    showDelay: 100,
    hideDelay: 100,
    touchendHideDelay: 100
}

@NgModule({
    imports: [
        ...
    ],
    exports: [
        ...
    ],
    providers: [
        { provide: MAT_TOOLTIP_DEFAULT_OPTIONS, useValue: customTooltipDefaults }
    ]
})
export class AppModule { }


traffic_ctl  command to display remap rules

Please add to the traffic_ctl  command to show remap rules and perhaps other configuration files, as they are currently loaded by the running system.  Also allowing for regex to display results from specific remap rules.

@mlibbey Please close if you don't have anyone on your team that will work on this.


When signing with a given private key a given message, signature is always the same

Hello,
when I use this library to sign a given message with a given private key, the signature is always the same but I would like to have a different one each time.
When I look at the secp256k1 sign function there is an optionnal parameter taking either a nonce function or some data to obtain a different signature each time.
Is it possible to expose that optionnal parameter for the caller to put what he want in it ? Like
function sign (message, privateKey, compressed, messagePrefix, options) {
  var hash = magicHash(message, messagePrefix)
  var sigObj = secp256k1.sign(hash, privateKey, options)
  return encodeSignature(sigObj.signature, sigObj.recovery, compressed)
}

EDIT : or could it be possible to have by default the randomness factor ? It can be as easy as
var { randomBytes } = require("crypto");
[...]
function sign (message, privateKey, compressed, messagePrefix) {
  var hash = magicHash(message, messagePrefix)
  var sigObj = secp256k1.sign(hash, privateKey, {data: randomBytes(32)})
  return encodeSignature(sigObj.signature, sigObj.recovery)
}

We would need to change this existing API to support this feature

It seems that in some circumstances not having a random nonce can be an issue :
https://github.com/tintinweb/ecdsa-private-key-recovery
(I can't check the math so maybe I'm wrong).
Having an extra parameters seems fine to me: if no extra argument is provided, the current behavior is preserved. However I'm not sure if this is desirable if it poses a threat to private keys.
For the time being, would it be fine to just add the optional parameter to sign()? If so, I'll look into making a pull request for it.

@CleyFaye No. The link you posted is FIXED by using the same k. In a very specific way known as RFC6979
The problem is when you use the same k WITH DIFFERENT MESSAGES AND THE SAME PRIVATE KEY
The way this library works, A DIFFERENT MESSAGE WILL ALWAYS MEAN A DIFFERENT K so it is impossible to use the same k (and thus the same r) with two different messages.

Case different messages, same private key, same k:
r and k are the same so we can forget the r equation, it gives us no new info.

so we have two s equations:
s1 = k^-1(z1 + rp) mod n
s2 = k^-1(z2 + rp) mod n
k, r, p are same... s and z are different.
subtract equations: (let's forget about mod n for a sec)
s1 - s2 = k^-1(z1 + rp) - k^-1(z2 + rp)
multiply both sides by k
k(s1 - s2) = z1 + rp - z2 - rp
+rp and -rp cancel out and divide both sides by s1 - s2
k = (z1 - z2) / (s1 - s2)

So using the same k (and thus the same r, which is visible in the signature) will let an outside observer calculate k.
with k, you can solve the s equation for p, since r, s, z are known and with k, now the only unknown is p.

Well, to be honest I don't really need a different signature each time, it's just that I recently change to bitcoinjs-message and I've realize that the signature was always the same. As I was searching why, I found that the secp256k1 library had an optional parameter to generate a nonce and it was not used by bitcoinjs-message.
After a few test, I manage to obtain different signature each time (like I had before switching to this library) so I ask if it would be possible to expose the optional parameter to the caller so that if someone want to use that option, he could. Though after reading your answers (and a part of RFC6979), I understand that it is not needed.


Running scalene after VScode upgrade to the correct version

I upgrade vscode to the latest as you recommended. trying to run the program I get this:
Fatal error in launcher: Unable to create process using '"D:\bld\scalene_1694817879281_h_env\python.exe"  "C:\ProgramData\miniconda3\scripts\scalene.exe" ': The system cannot find the file specified.
Should the path be updated with its location?
and before you ask see attached. :)

I would think that if you've installed Scalene, the thing you need to do is to make sure you are using the same Python interpreter you used when you installed Scalene. The D:\bld... thing seems pretty surprising.

I created a conda environment  and installed it there, works fine now.
thanks for your help
On Wed, 20 Sept 2023 at 23:37, Emery Berger @.***>
wrote:

I would think that if you've installed Scalene, the thing you need to do
is to make sure you are using the same Python interpreter you used when you
installed Scalene. The D:\bld... thing seems pretty surprising.
—
Reply to this email directly, view it on GitHub
https://github.com/plasma-umass/scalene-vscode-extension/issues/2#issuecomment-1728514079,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6O72NGPLNQ5FBQIJ63USLX3NVZZANCNFSM6AAAAAA5AS7N7E
.
You are receiving this because you authored the thread.Message ID:
@.***>