TODO: Examine biggest dynamic pressure values in dataset

Try these and see if I get a negative result.

Jets 295 and 238 have the highest dynamic pressure in the set.

295 is measured by THEMIS E, right as it exits the magnetosheath and goes into the solar wind, so that's probably not a good test case.
238 is measured by THEMIS A and looks like a good candidate for the symmetric case.

After that we look for asymmetric cases:

197 (northern, THEMIS D) may be promising but it looks like there might be a data gap (?)
261 (northern) might be a good candidate
661 (southern, THEMIS D) might be a good candidate

SuperMAG polar plots: https://supermag.jhuapl.edu/rBrowse/?fidelity=low&start=2015-04-05T19%3A24%3A00.000Z&step=60
Can use for quicklook plots at ground magnetometers. For events of interest, should expect to see the Greenland sector light up. (Other sectors might light up if there's other activity going on.) By default, the scale is fixed for the magnetometer vectors, but it may be useful to adjust that for the weaker jets.

Jet 238: Looks good! This was in September, though, so we don't have much Antarctic data. Could still use for a case study. Might want to compare with other Antarctic magnetometers via SuperMAG.

Jet 661: Large and rapid dip in Bx appears across all mags - rapid dv/dt, relevant for GICs/geoelectric fields and probably worth reporting. We do have some waves, hard to say for sure what is caused by the jet or not.

[ ] Generate survey plots for each event listed here
[ ] Generate SuperMAG survey plots for each event, save for comparison
[ ] Generate THEMIS survey plot as in Issue #26
[ ] Stick all in PowerPoint, review in next meeting

Quicklook plot for The Big Dip after Jet 661: https://vmo.igpp.ucla.edu/data1/SECS/Southernquicklook/2016/06/13/SouthEIC20160613_033300.jpg

From our discussion on 17 Sept:

[ ]  Replot events of interest: 11, 1031 (particularly clean), 3461 (weaker but good; rescale time domain plots), 6242 (waves beforehand). 200 is very southerly and has nice asymmetry.

[ ] BUG: Why does Jet 11 show Antarctic By data but not matching Bx data?

Next steps:

[ ] replot time series; remove background trends with HPF or boxcar; verify same y-axis range

Background trend can be symmetric, but the waves can be opposite - filter and check. (We might consider coming up with a definition for symmetry.)

[ ] Jet 3661 is a good example where the background is symmetric, but the Pc5 activity itself is asymmetric.


Collect examples of good JavaScript API documentations

What
Collect examples of JavaScript API documentations we find good and what we think they do well.
Why
This can help us shape our own API documentation by replicating good practices others are already doing
Who needs to work on this
Developers
Who needs to review this
Tech writer, Developers
Done when

[ ] We have a list of JavaScript API documentation examples and what we think they do well.

Examples have been reviewed and we've gathered a list of useful features (internal link)


Disable cache usage in package index tests

https://github.com/apple/swift-package-manager/pull/4058#issuecomment-1023881874

should we add an explicit configuration option?

https://github.com/apple/swift-package-manager/pull/4062


How to include MSMPI in VsCode?

I config my vscode following this blog , and I changed the “code run - setting.json” like
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -fopenmp -l msmpi -L \"C:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Lib\\x64\" -I \"C:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Include\" && mpiexec -n 4 $dir$fileNameWithoutExt",

Is that wrong? I tried to include mpi.h but something wrong happened, like
C:\Users\PC\AppData\Local\Temp\ccOw0hGm.o:main.cpp:(.text+0x4c): undefined reference to `MPI_Init@8'
C:\Users\PC\AppData\Local\Temp\ccOw0hGm.o:main.cpp:(.text+0x62): undefined reference to `MPI_Comm_rank@8'
C:\Users\PC\AppData\Local\Temp\ccOw0hGm.o:main.cpp:(.text+0x78): undefined reference to `MPI_Comm_size@8'
C:\Users\PC\AppData\Local\Temp\ccOw0hGm.o:main.cpp:(.text+0x90): undefined reference to `MPI_Get_processor_name@8'
C:\Users\PC\AppData\Local\Temp\ccOw0hGm.o:main.cpp:(.text+0x115): undefined reference to `MPI_Finalize@0'
collect2.exe: error: ld returned 1 exit status

and the code #include <mpi.h> in main.cpp also showed the error
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit.
cannot open source file "mpi.h"

emm... maybe this package can only run in Visial Studio 2017??
I tried to include it in clion(cmake) firstly but I failed, either.
I just don't want to install VS due to its huge size.

From this blog https://unordered.org/timelines/5a23942358800000, it seem that the problem is some necessary files were included in vs software while were not included in msmpi. So I think one of the solution is to use mpich or oprnmpi instead of msmpi.

I have tried everything on windows to have smooth sailing with MPI program but nothing works so i came up with this 100% working solution....
But you need to install : 1.Virtual box or VMWare workstation 2. Ubuntu OS Image(In my case i have only used  Ubuntu without gui).
After booting os next step is you just need to type commad to install MPI ->
sudo apt install openmpi-bin libopenmpi-dev
Now you can write program in c or c++
to Compile C-MPI Program : mpicc program.c  -o outputbinaryfile
to run file use : mpirun -n  <no. of processes>   outputbinaryfile


support for single ball games?

I am wondering where to start with modifying this to work with a single ball game.  It seems you hard coded the trough requirements into your game class.

If you are on the dev branch, you can set your machine yaml to a single trough switch (either named trough1, or with any name but a tag of trough) and I believe this will work fine as is.
I can test this after TPF.

Michael

On Mar 21, 2017, at 10:58 PM, UncivilEngineer<EMAIL_ADDRESS>wrote:
I am wondering where to start with modifying this to work with a single ball game. It seems you hard coded the trough requirements into your game class.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I installed the Dev branch, but the lack of a shooter lane switch is still causing issues.   Most single ball games only have an outhole switch (renamed trough1), an single coil (renamed trough).  Most single ball games don't have a shooter switch, because if the eject fails, the ball rolls back to the outhole switch.

I hadn't realized this was a situation where there's no shooter lane switch. Agreed that, at present, the lack of a shooter lane switch is a a problem since a few parts of the trough rely on it to ensure a clean launch --most detrimentally, before installing end of ball/drain logic.
I don't think it would be too painful to support a flag in the machine config to specify the intentional absence of a shooter lane, and if the flag is set, use a short length of time of trough switch open to act as a "virtual shooter lane"
I'll add this next week, after TPF  :)

Michael

On Mar 24, 2017, at 12:23 AM, UncivilEngineer<EMAIL_ADDRESS>wrote:
I installed the Dev branch, but the lack of a shooter lane switch is still causing issues. Most single ball games only have an outhole switch (renamed trough1), an single coil (renamed trough). Most single ball games don't have a shooter switch, because if the eject fails, the ball rolls back to the outhole switch.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Ok, thanks, and have fun at the TPF.  I still have to wait a few months for PAGG.


update readme to include step to set account name

Without account name the demo silently fails (clicking buttons do nothing). Opening up the console reveals:
Error: http://localhost:4242/create-checkout-session 400 In order to use Checkout, you must set an account or business name at https://dashboard.stripe.com/account.
    at script.js:6

Just copied the language from the error message into the README, happy to change it! This is just a bandaid though, maybe a simple error handling via alert would be nice?

Thank you


fix: issue with isComplete function causing an error when an array is not returned

fix: issue with isComplete function causing an error when an array is not returned
ErrorException: Undefined index: status in /var/www/code/vendor/google/cloud-bigquery/src/Job.php:261

Thanks for moving this over here @swinyx. Would you be able to share a bit more information on how you came across the error? Are you walking over a list of jobs from BigQueryClient::jobs(), or directly getting a single job? Do you do anything to limit the result fields? I'd appreciate a bit more context -- I see how the error came up, but I'm surprised we haven't run into it before and would like to see how you as a user are implementing the client. :)

Hello @jdpedrie ,
Was directly getting a single job. Basically checking the status of the job as soon as it was created.
`
public function fetchResults($query, array $bindings): array
{
try {
$results = [];
$job_id  = $this->setupBigQueryJob($query, $bindings);
        if (!$this->isBigQueryJobComplete($job_id)) {
            return ["job_id" => $job_id];
        }

        foreach ($this->getBigQueryResults($job_id, self::BIQ_QUERY_MAX_RESULTS_JSON) as $row) {
            $results[] = $row;
        }

        return $results;
    } catch (\Exception $e) {
        abort(500, $e->getMessage());
    }

    return [];
}

I guess on our end we could make sure that$this->big_query_client->job($job_id)` returns something before checking if the job is complete but it seems like the BigQueryClient.php job function does not always return a job object

Thanks for the PR @swinyx, a few questions:

Does the status field eventually get set with this fix? I'm concerned there might be an underlying issue that could be hidden here, it's odd that the field isn't populated.
Is the issue intermittent or does it always occur?
Would it be possible to add in a debugging statement here to share the output of the getJob call? I'd be curious to see what is returned.

Possibly this is an issue with a user having insufficient permissions to view a job they don't own.  Rather than throw an error bigquery will redact some information.
From https://cloud.google.com/bigquery/docs/managing-jobs

When you are granted bigquery.jobs.list permissions, you can list all jobs in a project, but the details and metadata are redacted for jobs submitted by other users. bigquery.jobs.list permissions lets you see full details for self-created jobs.

The bigquery.jobs.listAll permissions allows this, which is part of the admin and resourceAdmin predefined roles, but the permission can be included in a custom role as well.

@dwsupplee and @jdpedrie - what are your thoughts here? This PR feels a bit stale at this point - would you recommend freshening it up or just closing it as a "Won't Do"?

Sorry I missed the previous ping here, we can close this out. Thank you for taking the time to put this together @swinyx, and I hope the comment from @shollyman was helpful. If not, please let us know and we can take another look here.


fixed https://github.com/Telerik-Verified-Plugins/ImagePicker/pull/58

@@sikotech you can make a request for https://github.com/Telerik-Verified-Plugins/ImagePicker directly. But if it's work I can merge your's, too 👍


Add human readable code/rule list

It takes a lot of digging to actually understand the full set of rules that we are encapsulating in this config.
It would be great if users could see the list of rules before they write the code, instead of either navigating thru eslintrc.json + all the rules it extends >>
extends": ["standard", "plugin:jest/recommended", "plugin:jsdoc/recommended", "plugin:node/recommended"],

Or just writing code and waiting for the linter to reject it ...

Ideally the rules could be parsed into text that could be added to the readme, not sure if such a tool exists ...

Ideally the rules could be parsed into text that could be added to the readme, not sure if such a tool exists ...


Unsupported WSDL : invalid message definition for rpc style binding

Just tried your module for the first time with a WSDL I do not own but have to work with (used to work with PHP), i'm getting a :
AssertionError: invalid message definition for rpc style binding

You can find the wsdl there : https://www.dropbox.com/s/ihiit0hzm7q9jw9/www.intranet.fr.wsdl
Is there an option that would make it work?

wsimport is giving me :
[ERROR] rpc/encoded wsdls are not supported in JAXWS 2.0.

Closing for lack of activity.

Closing for lack of activity.


Fuzz Tests for new TLS 1.3 Handshake Message Types

s2n_server_cert_recv
s2n_server_hello_recv

Related to: https://github.com/awslabs/s2n/issues/378

Fuzz tests implemented in https://github.com/awslabs/s2n/pull/1539 .


client crash when opening chest

trashslot 10.4.4 on forge 28.0.24 crashes client when opening chest
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 7/30/19 8:46 PM
Description: Exception in server tick loop
java.lang.NoSuchMethodError: net.minecraft.network.play.ServerPlayNetHandler.func_147362_b()Lnet/minecraft/network/NetworkManager;
at net.blay09.mods.trashslot.TrashSlot.onPlayerOpenContainer(TrashSlot.java:90) ~[?:10.4.4] {}
at net.minecraftforge.eventbus.ASMEventHandler_0_TrashSlot_onPlayerOpenContainer_Open.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-0.10.6-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-0.10.6-service.jar:?] {}
at net.minecraft.entity.player.ServerPlayerEntity.func_213829_a(ServerPlayerEntity.java:824) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.block.ChestBlock.func_220051_a(SourceFile:191) ~[?:?] {}
at net.minecraft.block.BlockState.func_215687_a(BlockState.java:274) ~[?:?] {}
at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:306) ~[?:?] {}
at net.minecraft.network.play.ServerPlayNetHandler.func_184337_a(ServerPlayNetHandler.java:848) ~[?:?] {}
at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:36) ~[?:?] {}
at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:10) ~[?:?] {}
at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] {}
at net.minecraft.network.PacketThreadUtil$$Lambda$3939/383480.run(Unknown Source) ~[?:?] {}
at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] {}
at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {}
at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:698) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:692) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:677) ~[?:?] {pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:625) [?:?] {pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
-- System Details --
Details:
Minecraft Version: 1.14.4
Minecraft Version ID: 1.14.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory:<PHONE_NUMBER> bytes (1022 MB) /<PHONE_NUMBER> bytes (2048 MB) up to<PHONE_NUMBER> bytes (2048 MB)
CPUs: 8
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
ModLauncher: 3.1.0+58+1395384
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/eventbus-0.10.6-service.jar eventbus PLUGINSERVICE
/forge-1.14.4-28.0.24.jar object_holder_definalize PLUGINSERVICE
/forge-1.14.4-28.0.24.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-0.16.0-shadowed.jar accesstransformer PLUGINSERVICE
/forge-1.14.4-28.0.24.jar capability_inject_definalize PLUGINSERVICE
/forge-1.14.4-28.0.24.jar runtimedistcleaner PLUGINSERVICE
/forge-1.14.4-28.0.24.jar fml TRANSFORMATIONSERVICE
FML: 28.0
Forge: net.minecraftforge:28.0.24
FML Language Providers:
<EMAIL_ADDRESS>Mod List:
TrashSlot_1.14.3-10.4.4.jar TrashSlot<EMAIL_ADDRESS>DONE}
forge-1.14.4-28.0.24-universal.jar Forge<EMAIL_ADDRESS>DONE}
Player Count: 1 / 8; [ServerPlayerEntity['cpm9'/203, l='test', x=81.46, y=80.00, z=103.97]]
Data Packs: vanilla, mod:trashslot, mod:forge
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'forge'

It causes crashes with blocks that opens the inventory(or has it's own?), Furnaces, chests, anvils, enchanting tables, ect.
I just went through the painstaking task of checking all those inventory blocks with only Trash Slot installed. I'm gonna forego the logs since they'll probably look the same as yours.

TrashSlot for 1.14.3 is not compatible with Minecraft 1.14.4. See #54


Cleaner merge ACE

Some fixes to f_gets and have interrupts fired when a UART transmit interrupt is requested. Needed to run Electron.

Thanks for including this into your main branch.


Zcash Infra - 1 year - hanh

Terms and Conditions

[X] I agree to the Grant Agreement terms if funded
[X] I agree to Provide KYC information if funded above $50,000 USD
[X] I agree to disclose conflicts of interest
[X] I agree to adhere to the Code of Conduct and Communication Guidelines
[X] I agree to post request details on the Community Forum
[X] I understand it is my responsibility to post a link to this issue on the Zcash Community Forums after this application has been submitted so the community can give input. I understand this is required in order for ZCG to discuss and vote on this grant application.

Application Owners (@Octocat, @Octocat1)
@hhanh00
Organization Name
hanh
How did you learn about Zcash Community Grants
forums
Requested Grant Amount (USD)
6000
Category
Infrastructure
Project Lead
Name: hanh
Role: devops
Background: developer
Responsibilities: maintain lwd and zebrad

Additional Team Members
None

Project Summary
This is the continuation of the previous grant for zcash-infra, for another year.
Part of it is retroactive because the previous grant already ended.
Project Description
Maintain a minimum of 4 public lwd servers (currently 6)
Proposed Problem
There are not enough public lwd servers for the mobile wallets.
Proposed Solution
lwd[1-6].zcash-infra.com:9067 serve the zcash/lightwalletd repo + zwl patch
Solution Format

lwd servers
a status web page for monitoring

Dependencies
None
Technical Approach
Ansible and a bunch of scripts
Upstream Merge Opportunities
N/A
Hardware/Software Costs (USD)
0
Hardware/Software Justification
N/A
Service Costs (USD)
6000
Service Costs Justification
Hosting for 12 months
Compensation Costs (USD)
0
Compensation Costs Justification
N/A
Total Budget (USD)
6000
Previous Funding
Yes
Previous Funding Details
Same as this one.
Other Funding Sources
No
Other Funding Sources Details
No response
Implementation Risks
None
Potential Side Effects
None
Success Metrics
Good availability of these servers
Startup Funding (USD)
6000
Startup Funding Justification
Upfront payment reduces costs.
Milestone Details
- Milestone: 1
  Amount (USD): 6000
  Expected Completion Date: 2024-20-12
  Deliverables: The servers are already running. We want to keep them running.

Supporting Documents
N/A

https://forum.zcashcommunity.com/t/zcash-infra-1-year-hanh/49786/2


Aborting an update results in a failed rollback and unusable installation

VSCode Version: Unknown (recent)
OS Version: Windows 10

Steps to Reproduce:

Begin installing an update to VS Code.
Click "cancel" during the update and confirm.

Does this issue occur when all extensions are disabled?: Yes
Today I confirmed installing an update to VS Code, then upon suddenly remembering that I did not want to update, because recent versions have broken the functionality of the Arduino plugin, I clicked the available "cancel" button.  The button asked me to confirm, and then stated it was rolling back changes.
After this completed, VSCode was rendered inoperable.  Launching with or without extensions from the command line results in the error:

internal/modules/cjs/loader.js:767
    throw err;
    ^

Error: Cannot find module 'C:\Users\allen\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:764:15)
    at Module._load (internal/modules/cjs/loader.js:669:27)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Function.Module.runMain (internal/modules/cjs/loader.js:991:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

While launching from the GUI shortcut results in the error in the attached image.

It appears there is no way forward but to reinstall VS Code.

My update failed in the background and left me in the same state, today 2/18/2022. I will need to reinstall, because it's completely broken.


Incomplete/zero-sized arrays don't affect struct alignment.

I'm new to the build.rs bindings generation.  Last time I generated bindings I used the old method of having it print to stdout and then manually fixing the errors.  I'm seeing an alignment error that that I don't know how to solve just yet:

Input C/C++ Header
struct dm_deps {
        uint32_t count;
        uint32_t filler;
        uint64_t device[0];
};

Bindgen Invokation

    let bindings = bindgen::Builder::default()
        .no_unstable_rust()
        .header("wrapper.h")
        .generate()
        .expect("Unable to generate bindings");

Actual Results
---- bindgen_test_layout_dm_deps stdout ----
	thread 'bindgen_test_layout_dm_deps' panicked at 'assertion failed: `(left == right)` (left: `4`, right: `8`): Alignment of dm_deps', /mnt/sdb/repos/lvm-sys/target/debug/build/lvm-sys-7e5868edf14c1ccb/out/bindings.rs:3319
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at /checkout/src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at /checkout/src/libstd/sys_common/backtrace.rs:60
             at /checkout/src/libstd/panicking.rs:355
   3: std::panicking::default_hook
             at /checkout/src/libstd/panicking.rs:365
   4: std::panicking::rust_panic_with_hook
             at /checkout/src/libstd/panicking.rs:549
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:511
   6: std::panicking::begin_panic_fmt
             at /checkout/src/libstd/panicking.rs:495
   7: lvm_sys::bindgen_test_layout_dm_deps
             at ./target/debug/build/lvm-sys-7e5868edf14c1ccb/out/bindings.rs:3319
   8: <F as test::FnBox<T>>::call_box
             at /checkout/src/libtest/lib.rs:1368
             at /checkout/src/libtest/lib.rs:140
   9: std::panicking::try::do_call
             at /checkout/src/libtest/lib.rs:1314
             at /checkout/src/libstd/panic.rs:296
             at /checkout/src/libstd/panicking.rs:454
  10: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:98
  11: std::panicking::try::do_call
             at /checkout/src/libstd/panicking.rs:433
             at /checkout/src/libstd/panic.rs:361
             at /checkout/src/libtest/lib.rs:1313
             at /checkout/src/libstd/panic.rs:296
             at /checkout/src/libstd/panicking.rs:454
  12: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:98
  13: <F as alloc::boxed::FnBox<A>>::call_box
             at /checkout/src/libstd/panicking.rs:433
             at /checkout/src/libstd/panic.rs:361
             at /checkout/src/libstd/thread/mod.rs:360
             at /checkout/src/liballoc/boxed.rs:640
  14: std::sys::imp::thread::Thread::new::thread_start
             at /checkout/src/liballoc/boxed.rs:650
             at /checkout/src/libstd/sys_common/thread.rs:21
             at /checkout/src/libstd/sys/unix/thread.rs:84
  15: start_thread
  16: clone

Expected Results

RUST_LOG=bindgen Output

I don't have any additional details from RUST_LOG=bindgen
Here's the generated rust binding code:
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
impl <T> __IncompleteArrayField<T> {
    #[inline]
    pub fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData)
    }
    #[inline]
    pub unsafe fn as_ptr(&self) -> *const T { ::std::mem::transmute(self) }
    #[inline]
    pub unsafe fn as_mut_ptr(&mut self) -> *mut T {
        ::std::mem::transmute(self)
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl <T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
impl <T> ::std::clone::Clone for __IncompleteArrayField<T> {
    #[inline]
    fn clone(&self) -> Self { Self::new() }
}
impl <T> ::std::marker::Copy for __IncompleteArrayField<T> { }
#[repr(C)]
#[derive(Debug, Copy)]
pub struct dm_deps {
    pub count: u32,
    pub filler: u32,
    pub device: __IncompleteArrayField<u64>,
}
#[test]
fn bindgen_test_layout_dm_deps() {
    assert_eq!(::std::mem::size_of::<dm_deps>() , 8usize , concat ! (
               "Size of: " , stringify ! ( dm_deps ) ));
    assert_eq! (::std::mem::align_of::<dm_deps>() , 8usize , concat ! (
                "Alignment of " , stringify ! ( dm_deps ) ));
}

Hmm, interesting!
So this is basically that __IncompleteArrayField<T>() doesn't affect alignment.
I tried to fix it converting _IncompleteArrayField<T> from being PhantomData<T> to [T; 0], and it works, but that prevent's unconditionally implementing Copy, which may be a problem...

If i had done the whitelisting correctly this probably wouldn't have even come up.  It pulled in a bunch of devmapper dependencies that I'm not sure I want yet.  If you want to try this out for yourself to recreate the problem I can push my changes up to github.

No, that's fine, the test-case is perfect, but thanks for the offer!


.Net Upgrade Assistant issue - .Net 7 to .Net 8

I am attempting to run the CLI version of the .Net Upgrade Assistant on a .Net 7 project to bring it up to .Net 8. However, I am getting the following message and no update occurs (some of this is my logging from the assistant):
Upgrading: D:\a\1\checkout[blanked out].csproj
>>> Initializing and loading extensions...
>>> Determining supported upgrades...
>>> Could not find Microsoft.UpgradeAssistant.Mappings nuget package matching
>>> version '1.0.*'.
>>> Unknown target framework.
What does this even mean? I went to nuget.org and there is no package of any version with a name of  Microsoft.UpgradeAssistant.Mappings.

What type of project and target framework are you trying to upgrade from? The optional mappings package hasn't been released yet and is an informational warning; this does not affect the upgrade scenario.

Closing since we have not received a response in 2 weeks


Fix mount paths on Windows.

Fixes mount paths outside of the workspace mount directory on Windows and those provided as a WSL path. This also adds unittests for Windows outside of WSL2.
Closes #1145.
Closes #1156.

I forgot about this:
https://github.com/cross-rs/cross/actions/runs/3554788542/jobs/5971093867#step:5:258

I recommend testing this locally on Windows using ci/test.sh just to confirm it works. I've added unittests but just we should ensure we have slightly more comprehensive coverage prior to merging.

bors retry


 Why does it throws?
(unknown) Warning: Failed prop type: SingleDatePicker: unknown props found: small
    in SingleDatePicker (created by Form)
    in Form (created by Element)
    in div (created by Element)
    ...

<SingleDatePicker small={ true } />

The small props is an option that lets you use small styling on the component, essentially making the date picker smaller. Can you check your version number? I fixed this issue by installing the latest version of react-dates.

Yeah I think the small prop was added in a relatively recent version.
Bumping to 16.7 should allow you to use it!
On Thu, May 17, 2018, 5:08 PM TheBurnerGuy<EMAIL_ADDRESS>wrote:

The small props is an option that lets you use small styling on the
component, essentially making the date picker smaller. Can you check your
version number? I fixed this issue by installing the latest version of
react-dates.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/react-dates/issues/1068#issuecomment-389900436,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUdtbTDbYhuSa1WjBanCyL1SL_0WyLzks5tzZJWgaJpZM4Slvxi
.


[Feature request]: Allow LiteLLM to track cost when accessing models from LiteLLM Proxy

What problem or use case are you trying to solve?
Currently, litellm cannot track cost when invoking a model from a LiteLLM proxy.
Describe the UX of the solution you'd like
Do you have thoughts on the technical implementation?
LiteLLM .completion call's response will have an x-litellm-response-cost in the response header when calling models from an LLM proxy.
We should modify openhands/llm/llm.py so that we first check if the response header is present, if so, we skip any cost calculation and use that directly as completion cost.

This should already been addressed in self.model_info in the LLM class.


Minor padding adjustment

I noticed a very small mobile screen issue that's being caused by setting the overall padding and margin to 0 (left a comment in the code). If that setting is needed somewhere in particular, I suggest adding it to that section specifically rather than globally.

Thanks for that catch, I'll fix that.


Add RSpec/ExpectActual cop

# bad
expect(5).to eq(price)
expect(/foo/).to eq(pattern)
expect("John").to eq(name)

# good
expect(price).to eq(5)
expect(pattern).to eq(/foo/)
expect(name).to eq("John")

Fixes #17

@andyw8 could you review this?

Also @andyw8 I'd be interested in your thoughts on whether this should have an autocorrect.

@andyw8 I'm going to merge this as is now but I'm not releasing so any feedback you have will still be implemented

Re. the name – best I can think of is ExpectationLiteralOnLeftHandSide but it's not great. Happy to leave it as is.

@andyw8 yeah I think that might be too verbose for my taste.


Add ability to easily switch locales

Mentioned in Google Groups (last comments) https://groups.google.com/forum/#!topic/inaturalist/o2tEjxFAIY8
This has been brought up before. I threw together a super simple switcher that's on Staging right now http://staging.inaturalist.org/observations (just noticed that the dashboard is cached so the switcher isn't working there). Maybe we should show the language in the current language and the language itself (e.g. if viewing in English, a listing would be "Spanish, Español")?
Clearly this can be improved - any suggestions?

Screenshot of the super quick version. How do we make this awesome?

IMO, as was suggested in slack, placement in the footer and/or auto-detection based on browser language would be preferable to me. Putting it in the header seems extreme since no one is going to use it more than once, so for everyone who is using iNat for the nth time, it's annoying, and that includes the non-English speakers who actually did use it on their first visit.

I don't really object to the header placement of this, but if thats whats holding this up, how about something like this with the menu expanding up

thoughts @joellebel ?
I don't think I have enough info about how non-english speakers use the internet - do they mostly just set their browser and assume websites will translate?

On twitter, the language chooser only displays when I've set my browser language to something other than English. That might be a good approach since (a) those with their browsers set to English probably won't want to see the site in another language, and (b) those with their browsers set to another language (e.g. French) might still want to see iNat in English if the iNat translation is crappy and they also speak English. If the chooser only displayed when the browser langauge is not English (alla Twitter) any objections to it in the main menu?

Hrmmm... I can't get that to work when I set my browser to another language, so I'll take your word for it. @loarie I don't have an objection to putting it in the the main nav for that scenario.
I am also ok with keeping the language dropdown in the very bottom footer as featured above.

Fixed in https://github.com/inaturalist/inaturalist/pull/1551


Hue motion sensor and dimmer switch not working

Hello,
As a very new Hue- and quite new node-red user I encountered a problem: the huemagic does not seem to be able to connect to my Hue Motion sensor through the bridge. The motion sensor works with native android app(s), both Philips' own and third party apps. There I can see all the movements, trigger scenes and access brightness and temperature information.
In node-red, everythin else works and the connection is established into my Hue bride, but when ever I try to connect motion sensor it just won't succeed.
The motion detector -node can find the sensor and it's name automatically with the search function, but thats it. If I try to push the node, or send a status message into it, I get following error:
"The sensor in not yet available. Please wait until HueMagic has established a connection with the bridge or check whether the resource ID in the configuration is valid."
Is there a known bug or way to fix this? Device seems to work but node's cannot connect into it. Same thing goes with the dimmer switch: should it be working with the 'button' node? It is not found at all.
Please complete the following information:

Node-RED version: v2.1.6
NodeJS version: v12.22.5
Device running Node-RED: Raspberry Pi

Additional context
Add any other context about the problem here.

This issue is very real. No error messages here but ever since updating to the latest version a couple of days ago, all motion sensors and smart buttons stopped working. Very annoying as my home automation heavily relies on HueMagic 😞

1 with buttons

If it helps, I uninstalled and reinstalled, re-paired the hue bridge API and its all working ok now, fingers crossed

This issue is very real. No error messages here but ever since updating to the latest version a couple of days ago, all motion sensors and smart buttons stopped working. Very annoying as my home automation heavily relies on HueMagic 😞
Update; I've downgraded to 4.2.1 and now everything works as expected again.

@rvanbaalen sorry for the simple question, but I do not know - how did you downgrade within Node Red?

This issue is very real. No error messages here but ever since updating to the latest version a couple of days ago, all motion sensors and smart buttons stopped working. Very annoying as my home automation heavily relies on HueMagic 😞

Update; I've downgraded to 4.2.1 and now everything works as expected again.

@rvanbaalen sorry for the simple question, but I do not know - how did you downgrade within Node Red?

Not sure what your level of experience is but this is what I did:
SSH into the device running NodeRED
Go to ~\.node-red
Remove the addon npm uninstall nodered-contrib-huemagic
Install the old version
npm install<EMAIL_ADDRESS>All this without going to NodeRED in between.

Here experiencing issues with the Hue Button (only node I use).
For me, this issue is looking like this issue; https://github.com/Foddy/node-red-contrib-huemagic/issues/227#issuecomment-1100605098
The node works for ~5 minutes, and then the button-node does stop working.
The issue above is fixed since version 4 but maybe the issue is still related?
For now trying to downgrade to 4.2.1.
Not at home right now, so I will test later if the Button will work after downgrading.
I will update this comment if I tried the button.

me2, hue-magic was working for YEARS w/o problems/issues untill 4.2.2
dimmer isn't recognized from time to time and status of lights/groups as well
believe me, i turn on/off a separate light in my kitchen under the cabinets with hue-magic -->> shelly 1pm, that was working 100% untill 4.2.2
conclusion: 4.2.1 AND GOOD
btw, the correct command in my case is: npm install<EMAIL_ADDRESS>

@na-am thanks I fixed the commands in my comment.

For Docker:
docker exec -it nodered_containername /bin/bash
cd /data
npm uninstall nodered-contrib-huemagic
npm install<EMAIL_ADDRESS>

downgrade, still has issues with button switches and motion sensors

downgrade, still has issues with button switches and motion sensors

After my downgrade I left the system alone without any more changes for a day, then just like magic it all works flawless again, weird but i'm glad it works 😊 hoping a fix for this issue is soon implemented so i can continue updating

This issue is very real. No error messages here but ever since updating to the latest version a couple of days ago, all motion sensors and smart buttons stopped working. Very annoying as my home automation heavily relies on HueMagic 😞
Update; I've downgraded to 4.2.1 and now everything works as expected again.

I have the exact same problem. The Version 4.2.2 does not work, 4.2.1 is OK.
unfortunately the new version 4.2.2 does not work for me. The motion function is disturbed.
I have two Philis Hue Motion sensors and switch with each of them a KNX lamp. The function msg.payload.motion does not provide correct values anymore. After restarting the node, the function returns once or twice the correct value (true / false) but stops the operation at some point, without error message. Then it reports no motion at all although the sensor works correctly.
In version 4.2.1 (I deleted the module and installed it against the old version) everything works again without any change.

The problem cost me 2 days, why is not corrected ??? It is ka apparently known for 2-3 months.
Apparently the 4.2.2 can not be used, and all users download this broken version.
This is very annoying and not nice of you.
👎


I had a problem，Ask for advice

[ WARN ] Error in file 'd:\k0171221\Desktop\Tzpt_AutoTest\TZPT\Keywords\YWKeywords.robot': Invalid syntax in keyword '新建T+1投资建议书': In '[Arguments]' setting: Ignoring lines with only continuation marker '...' is deprecated.
I don't know why this other case is not a problem. They are basically the same.

This is a new warning caused by a change in last v5.1.2 RF syntax.
As it says: most likely caused by a continuation line that contained no command (empty or only comment).
Simply remove the '...' or replace them by '#'.


Erlang 17.5 Compatibility

This PR allows all projects to build in erlang 17.5 except for chef-mover.
chef-mover needs some attention to get that done, which it should be receiving shortly.
Since that's the case, these changes were all made to be compatible with R16B03-1 as well, and omnibus continues to build it that way.

:+1:


Added microsoft teams page clone files

🛠 Fixes Issue
Closes #165

👨💻 Changes proposed
Added Microsoft teams => teams page (the page where the groups are listed)
✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
PR made under GSSoC'22 contributions.
📷 Screenshots

LGTM 💜


fix the water.org link

The water.org is a broken link.  It is linking to a 404 page.

Looks good :+1:
Thanks for the contribution. :heart_eyes_cat:


Progress bar causes display issues when in debugger

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
I am trying to debug a module and if a progress bar is present when the debugger is entered it causes display issues by being always present at the bottom of the prompt. You can also see that the curser is on the same line as the and when text is typed it writes over the progress bar. Maybe the progress bar should be hidden when the debugger is displayed or detached from the bottom of the prompt.
Expected behavior
The progress bar does not causes display issues with the prompt.

Actual behavior
The progress bar stays at the bottom of the interactive prompt and causes display issues.

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

@ThomasNieto - Thank you for reporting this issue in the debugger.


Atomically store documents to the document_store

This PR fixes #94.
A document store is now always associated with exactly one UnQLite database. The database can hold three types of data:

catalog: contains the name and the index specification of the document store
data: represents a document in the document store
index: represents the index value of a document

This PR allows to store a document in a document store with zero or more indexes. Each index can be associated with multiple field names.
This PR further introduces a method to get a document store via its name. And I also took the time to start adding rustdoc.
This PR does not fix the following issues:

store and fetch multiple documents that have an identical index value, this is described in #89
apply the order that is specified on an index

 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.

It should not be possible to create a document collection with no indexes. We currently have no way to access such a collection. I do not see a use case for supporting such a collection.

Following the same logic, an index should also define at least one field?

I am looking at https://github.com/pyrsia/pyrsia/blob/63ce66b5a9a78756bbe0928f7aec5dd33d626bf4/pyrsia_node/src/document_store/document_store.rs#L292
Can we schedule a zoom so you can explain what it's doing?

@prince-chrismc Some of your questions about the examples may be explained if you read a detailed comment I wrote towards the end of issue https://github.com/pyrsia/pyrsia/issues/39.
@tiainen Though you have copied pieces of my documentation into the code, it would be helpful to have the whole thing as
//! File level Documentation comments

at the beginning of document_store.rs. It will answer questions that others looking at this for the first time will have.

Okay, thanks for linking the relevant conversation. It's hard to imagine needing something this complex so early but there's no harm.

My other API question(s) remains, I think the following could be change to better follows rust idioms
-   DocumentStore::create("sample", indexes);
-   let doc_store = DocumentStore::get("sample");
+   let doc_store = DocumentStore::new("sample", indexes);

@prince-chrismc If you still have questions, please schedule a time for us to talk. Joeri is implementing my design, so I can explain what the code is doing.


lv2:designation lv2:latency reported invalid by sord_validate

Using sord_validate on a port with this bit in:
lv2:designation lv2:latency;

leads to this error:
error: Object not in property range:
       b732
       http://lv2plug.in/ns/lv2core#designation
       http://lv2plug.in/ns/lv2core#latency

Also related, designation of time properties gives this error:
error: Object not in property range:
       b700
       http://lv2plug.in/ns/lv2core#designation
       http://lv2plug.in/ns/ext/time#beatsPerMinute

lv2:designation needs to be less strict.

Fixed in e3ad15e41cccdd058f9a7fa2086bce5c0237e9fb


Longest palindrome

Added code for finding the longest palindrome in a string

@UTSAVS26 Can you provide resource (maybe a photo) for the same. Its not automatically being selected as default template while creating a PR


bug/unstructured-inference bug: TypeError: UnstructuredYoloXModel.initialize() got an unexpected keyword argument 'extract_images_in_pdf'

Describe the bug
Hello, I find a bug it's about Excess transfer parameters are not processed in initialize method.
The error msg is "TypeError: UnstructuredYoloXModel.initialize() got an unexpected keyword argument 'extract_images_in_pdf'"
I have submitted a issue and solution in unstructured-inference.
Detailed
Detailed information is here:Unstructured-IO/unstructured-inference#265
Analysis
The reason is the parameter process_with_model_kwargs (a dict has extract_images_in_pdf and image_output_dir_path) is passed in when calling the process_file_with_model method in unstructured.partition.pdf
https://github.com/Unstructured-IO/unstructured/blob/82c8adba3fed9c6fbe4743662f5888969c56944a/unstructured/partition/pdf.py#L375-L383
and the parameter  process_with_model_kwargs (as **kwargs) is passed in get_model method.
https://github.com/Unstructured-IO/unstructured-inference/blob/326f1809e33b05b0b2fb94b507200c3296a753c0/unstructured_inference/inference/layout.py#L492
then every initialize_params using **kwargs and it passed in each model.initialize method.
https://github.com/Unstructured-IO/unstructured-inference/blob/326f1809e33b05b0b2fb94b507200c3296a753c0/unstructured_inference/models/base.py#L72

Resolved by #1810, but you will need to update to unstructured-inference 0.7.10.


Docker hub images do not exist

Hi,
thanks for your effort! I tried following the installation steps and found that the links to dockerhub are broken.
Kind regards
Niels-Ole Kühl

The Splunk team has build their own images :

splunk/splunk:latest for the entreprise and deployment server
splunk/universalforwarder for the forwarder

The git repo is available here : https://github.com/splunk/docker-splunk

Thank you!


Expand causes gap size to change on Monterey

Describe the bug
Expand cause gap size to change. I think this may be due to the Monterey bug or Macbook Pro with notch, I'm not sure.
Steps to reproduce
Without Hidden

Before expand

After expand

Expected behaviour
The gap size will be maintained.
If it's Monterey or Macbook Notch bug, then maybe good to consider enhancement to hide the overflow of the Menu Bar.
Environment

OS: Monterey

It is definitely caused by the notch. I could only reproduce this on a MacBook Pro 2021 internal display and not on an external display.

I experimented a bit with this.. it seems like macOS automatically spreads out the menu bar icons evenly once they get close to the notch. This behaviour also occurs when Hidden Bar is not running.
In the following screenshot the menu bar still has some space left towards the notch, so the icons have normal spacing:

Here I added a few icons to make the menu bar wider, now a gap gets added between the icons:

I don't think there is a simple solution for this. The only way I can imagine this could be solved is by calculating the available space of the menu bar, then calculate the actual current width of the menu bar (if that's even possible), then subtract both values and then add an invisible icon to the left of the menu bar with that calculated width. This way macOS would assume all the menu bar icons use up exactly the available space and wouldn't apply any extra spacing.

Nice! Now I can finally re-add all the icons I removed 😅


update for 2.1.2 release

Coverage remained the same at 97.555% when pulling b1d57544b03748dc9c3040dc1e8a5392d2078b04 on prepare2.1.2 into f2ada9cdb0035f6989aaf72150949ebd50a96d41 on master.

build


python312Packages.aioairq: 0.3.2 -> 0.4.2

Diff: https://github.com/CorantGmbH/aioairq/compare/refs/tags/v0.3.2...v0.4.2
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 311962 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.airq
python311Packages.aioairq
python311Packages.aioairq.dist
python312Packages.aioairq
python312Packages.aioairq.dist


Settings (webui) do not load through Reverse Proxy

I'm running nginx proxy manager and passing the web admin interface (using SSL/CF tunnel).   When I try and pull up the existing settings through the webui, none of the configuration settings populate.  If I hit the IP of the device directly, they load in fine.

it sounds like your proxy isn't passing websocket just http. settings are passed via websocket.

aha websockets are on port 8089, you need to pass this via your proxy too.
config-streamer.cgi:
new WebSocket('ws://' + document.location.hostname + ':8089?token=

OK so after 36 versions of NPM advanced configuration settings I've finally got it... here's a version that should work for anyone that is using a similar setup to me.  Adding just in case this helps folks who may stumble across this in the future!
# NPM (NGINX Proxy Manager) Configuration for Thingino IP Cameras with WebSocket Support
# This configuration enables secure streaming over HTTPS/WSS

location / {
    # Authentication settings
    auth_basic off;
    # Replace the text after "Basic" with your own base64 encoded "username:password"
    # To generate: echo -n "your_username:your_password" | base64
    proxy_set_header Authorization "Basic YOUR_BASE64_AUTH_STRING";

    # Should pull in the correct variable from $server but you can replace instead
    #   Replace $server with your camera's IP address (e.g., <IP_ADDRESS>)
    proxy_pass http://$server;

    # Required headers - do not modify
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # WebSocket support - required for streaming
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

    # Stream settings - recommended to keep as is
    proxy_buffering off;

    # WebSocket URL conversion for secure streaming
    # These replacements handle the ws:// to wss:// conversion
    sub_filter "ws://" "wss://";
    sub_filter ":8089" "";
    sub_filter_once off;

    # WebSocket connection handler
    # This routes WebSocket traffic to port 8089 on your camera
    # Should pull in the correct variable from $server but you can replace instead
    #   Replace $server with your camera's IP address (e.g., <IP_ADDRESS>)
    if ($query_string ~* "token=") {
        proxy_pass http://$server:8089;
    }
}

# Required NPM Settings (enable these in the UI):
# 1. SSL: Enabled
# 2. WebSocket Support: Enabled
# 3. Block Common Exploits: Disabled (if you experience issues)

# Usage Instructions:
# 1. Replace YOUR_BASE64_AUTH_STRING with your base64 encoded credentials
# 2. Paste this configuration in the "Custom Configuration" field under
#    the Advanced tab in your NPM proxy host settings

fixed. please test and confirm.


Question about eventSourceInitDict

When you say this

You can define custom HTTP headers for the initial HTTP request. This can be useful for e.g. sending cookies or to specify an initial Last-Event-ID value.

Does that mean on open? where would that appear? Also, what would be a use case of this?

This is an example of setting headers: https://github.com/EventSource/eventsource/blob/master/test/eventsource_test.js#L518-L523
You could use this for anything from authorization to Last-Event-ID which can be used to tell the server how much historical information the client needs. A common scenario is when the client keeps a cache of events and wants to understand the "state of the world".


[WIP] travis: Test on minishift

Signed-off-by: Fabian Deutsch<EMAIL_ADDRESS>

Obsoleted by #71


[question] Is it possible to parse incomplete SQL?

I'm working on building a web-based SQL editor and we would like to implement an intelligent autocomplete. To that end, we would like to know if the cursor position in the string corresponds to a Table/Column/Keyword/Function in the SQL statement. Unfortunately, the user might still be writing the query and it will not be well-formed yet in the majority of the cases.
I'm wondering if this project might be able to handle a scenario like that?
Any suggestions and feedback are greatly appreciated. Thanks!

sqlparser's AST can only represent well-formed SQL. Fixing that (and supporting the editor use-case specifically) is one of the motivations for https://github.com/ballista-compute/sqlparser-rs/pull/189
Unfortunately, that work has seen very little progress and is currently in an early prototype stage. It should be easier, though, to fork it to achieve what you want, as ripping out the typed AST would immediately enable working with incomplete (chopped off) SQL and you can incrementally annotate the bits of the Syntax tree you need.
BTW you know of https://docs.gethue.com/developer/parsers/ , right?


Do not merge - Dummy PR to trigger chaos net

I'm opening this PR as a clone of https://github.com/paritytech/substrate/pull/7076 in order to try trick the CI and make the chaos net run.
I can't open it as a draft, as that would shortcut the CI.

Testing done


Add a workaround for the ARM64 issue for IL2CPP + WSA builds

With some of our recent testing, we found that the ARM64 compiler bug described here https://github.com/microsoft/MixedRealityToolkit-Unity/issues/7624 is actually affecting some new code that was introduced in the 2.5 timeframe. This time around, it's actually a lot worse because it's leading to crashes.
While there's been a fix to the VS compiler that should be coming in a future VS update, there's still going to be some time between the latest MRTK 2.5 release and the VS compiler update, during which things will be a lot worse.
There's a workaround that was identified in the linked issue, and I figured it would be best to add some auto-magic to the build process that will automatically update your IL2CPP project to add this compiler flag ONLY to the ARM64 build option.
This code will only run:

Unity 2019 and above (i.e. ARM64 supporting and above)
When building UWP/WSA (i.e. HL2, HL1 should no-op when it doesn't find the ARM64 option)
If the workaround hasn't run before

This code will also NOT run if someone has already customized their compiler options (I didn't want to blow existing customizations away) or if someone had their own ARM64 NMakeBuildCommandLine customization. Basically this will only do work in the default IL2CPP build, and if you've done work to heavily customize it this should no-op.

/azp run

/azp run


Fixed timestep

Many things are problematic without fixed timestep, comfy should support this trivially.

oops, this already has an issue #24 :skull:


Enable structured logging for RESTler request sequences

This change adds structured logging for all of the network traffic that is currently logged to the network.*.txt log.  The data is written to a 'trace database'. The default format is newline-delimited json, but custom logging formats are supported via a module specified in the engine settings (similar to checkers).
Below is an example for demo_server:
{"sent_timestamp": "2023-11-02T10:10:59.544824+00:00", "received_timestamp": null, "request": "GET /api/blog/posts?page=1&per_page=1 HTTP/1.1\r\nAccept: application/json\r\nHost: localhost\r\nContent-Length: 0\r\nx-restler-sequence-id: fe2172ab-151c-419f-b918-f3e7483b3230\r\n\r\n", "response": null, "request_json": "null", "response_json": "null", "tags": {"request_id": "27f9653431313fdc3fecc4a890b72b80b4ce1e59", "sequence_id": "fe2172ab-151c-419f-b918-f3e7483b3230", "combination_id": "1950cbddab7726489624c3d346d3426561c921ad_1", "hex_definition": "6daf8d22c7a6b3472fc83c9f08f290b3507c3ff3"}}

{"sent_timestamp": null, "received_timestamp": "2023-11-02T10:10:59.597613+00:00", "request": null, "response": "HTTP/1.1 400 Bad Request\r\ndate: Thu, 02 Nov 2023 10:10:58 GMT\r\nserver: uvicorn\r\ncontent-length: 41\r\ncontent-type: application/json\r\n\r\n{\"detail\":\"per_page must be at least 2.\"}", "request_json": "null", "response_json": "null", "tags": {"request_id": "27f9653431313fdc3fecc4a890b72b80b4ce1e59", "sequence_id": "fe2172ab-151c-419f-b918-f3e7483b3230", "combination_id": "1950cbddab7726489624c3d346d3426561c921ad_1", "hex_definition": "6daf8d22c7a6b3472fc83c9f08f290b3507c3ff3"}}

This change also enables sending unique sequence ID headers, which is useful for debugging.  This change is on by default.
A quick overview of new settings:
'include_unique_sequence_id': include a unique sequence ID in requests sent (on by default)
'use_trace_database': enable logging to the trace database (off by default)
'trace_database': settings for configuring the trace database
- cleanup_time
- file_path
- root_dir
- custom_serializer
Testing:

demo_server
added new unit test
manual testing for multiple db files

TODO:

testing with long fuzzing runs
documentation for new settings

Just fixed a few issues - please get the latest iteration for testing

In reply to:<PHONE_NUMBER>

Just fixed a few issues - please get the latest iteration for testing
In reply to:<PHONE_NUMBER>

Thanks! I will give this a try.

TODO: test replay mode with trace DB & update replay sequence to generate a unique sequence ID.


Clarify javadoc for ThreadContext.CDI

For users that are not intimately familiar with CDI, it may not be clear what CDI context propagation means or why the user should care.
Add a code example to the ThreadContext.CDI javadoc to illustrate the value of propagating CDI context.

Fixes #16

thanks for the review @manovotn, I've added another commit to address your review comments


Ipdate properties description according to current doc

Description

Update properties description according to current doc.
Fix String duplication issue.

All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.

@microsoft-github-policy-service agree company="Microsoft"


Fix the v20.1 Change Data Capture page version dropdown

Fixes DOC-7590
Right now, users who search for "cockroachdb cdc" on Google will run into the Change Data Capture Overview page (good), but the second result will be the very old Change Data Capture page (bad). And it's particularly bad, since over the last few years the key element hasn't been added to frontmatters to control where v20.1 visitors on that page will end up. They cannot select the newer versions, and so end up stuck.

Closing this PR — need to rework this and will approach in a different way.


M1.M2 MacOS Users

I am on M2 Max Chip MacOS that has 12CPU, 38GPU, 96 GB processor, 2 TB storage.
This is the issue:
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin /Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
CUDA SETUP: Loading binary /Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so...
dlopen(/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so, 0x0006): tried: '/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (no such file), '/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (not a mach-o file)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++ ANACONDA CUDA PATHS ++++++++++++++++++++
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda116_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda112_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda115_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda111_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda120.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda115.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda121.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda118_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda121_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda111.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda116.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda112.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda120_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda113.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda117.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda118.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda113_nocublaslt.so
/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda117_nocublaslt.so
++++++++++++++++++ /usr/local CUDA PATHS +++++++++++++++++++
+++++++++++++++ WORKING DIRECTORY CUDA PATHS +++++++++++++++
++++++++++++++++++ LD_LIBRARY CUDA PATHS +++++++++++++++++++
Traceback (most recent call last):
File "/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/main.py", line 95, in
generate_bug_report_information()
File "/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/site-packages/bitsandbytes/main.py", line 66, in generate_bug_report_information
lib_path = os.environ['LD_LIBRARY_PATH'].strip()
File "/Users/phdykd/miniconda3/envs/Guanaco/lib/python3.10/os.py", line 680, in getitem
raise KeyError(key) from None
KeyError: 'LD_LIBRARY_PATH'

The same issue

I have the same issue.

So, Apple Silicon M1/M2 (ARM) support is much desired by people who want to use software which is dependent on bitsandbytes.. however looking back over the issues logs, the (sole) maintainer of the repo evidently does not have it as a priority (which may simply be a fair reflection of the priorities they have in their situation - but is clearly a big problem for others because the library has been incorporated into important ML workflows).
The code is not restrictively licensed (it's MIT) except for the portions which are PyTorch (which is BSD and indeed PyTorch now supports Apple Silicon), so licensing doesn't look like an issue. Given the voluntary work which has happened to implement MPS support (Metal Performance Shaders - the on-board Apple GPU system) for the likes of llama.cpp, it's clearly not beyond the capacity of community to self-organise to do the work necessary to give a non-Cuda dependent option - indeed there was already contribution offered by pull-request which was closed, unmerged and without comment (see #252).
I think it's fair to say at present solving bitsandbytes Apple Silicon support is in limbo.. even were an alternative implementation to be created there is the matter of getting it adopted in upstream packages which currently reference bitsandbytes... BUT, maybe, if there is simply no resolution or progress possible through this repository, given the number of ML developers working on Apple Silicon machines, the pressure may build to create a new repo 'openbitsandbytes' as a formal fork, to get basic support for Apple Silicon into that, (tracking any critical changes to bitsandbytes) and potentially to start to vocally lobby all current codebases to switch away from this repo on the basis that it's been a barrier to collective development. @rickardp any thoughts?

I tried to ask the maintainer of this repository to clarify if M1 was explicitly out of scope after all the PRs to support Windows/Apple were closed, but I never received a response. I am positive to creating a fork, as long as there's a decent-sized community around to support it. I won't be able to sort this myself given the spare time I've got. It seems there are a few people now, maybe enough critical mass to actually get this done?
I've got the basic machinery set up in PR #257 for building for Windows/Linux/Mac on x64/arm64 both Cuda + non-Cuda. Everything on GitHub actions. That was kind of a starting point to me as I want everything built reproducably on pipelines. Also, the MPS context is set up so I think functions can be implemented now. I took inspiration from other PRs that were never merged and switch the build system to CMake as the current Makefile-based is not really maintainable for all these platforms.
Next step I would say to get MPS support solid is to have good unit test coverage on expected input/output. There exists tests, but I am not 100% sure they cover all the needed functionality to the degree that the MPS version can be implemented and we can trust it to be correct. I am not saying it is not, just not sure it is.
One task that would also be nice to get a grip on is to have a prioritized list of which functions to implement. Different use cases might use different parts of the library. I looked a few (mostly LLM) codebases, but it would be good to have a proper discussion on where to start and what we cold collaborate on to get something actually working for a real use case. Then we can get down to the actual porting I think (which didn't seem that hard actually when I attempted one of the quantization functions, just a lot of code to go through and I wasn't able to verify the correctness of the code).
I think we should strive for a compatibility fork if we decide to fork, not just a Apple silicon fork, so I'd rather keep all the CUDA implementations in the same fork, same goes for Windows compat. One problem with CUDA is that I think it requires real actual NVIDIA hardware these days (I remember being able to run CUDA in CPU mode, but it seems to have gone away from the CUDA SDK), so keeping test coverage in pipelines is going to be a problem (Azure-based NVIDIA agents are kind of out of range for an open source project). MPS can be run on the Apple build agents (at least it seems so). The reason I mention this is that the set of platforms will be disjoint (Apple is never going to support CUDA in any foreseeable future, MPS is Apple only), so contributors/maintainers will typically only be able to test locally on one platform and there will probably be a real risk of releasing non working code. Not sure how much of an issue this will be, just something to think about.

I tried to ask the maintainer of this repository to clarify if M1 was explicitly out of scope after all the PRs to support Windows/Apple were closed, but I never received a response. I am positive to creating a fork, as long as there's a decent-sized community around to support it. I won't be able to sort this myself given the spare time I've got. It seems there are a few people now, maybe enough critical mass to actually get this done?
I've got the basic machinery set up in PR #257 for building for Windows/Linux/Mac on x64/arm64 both Cuda + non-Cuda. Everything on GitHub actions. That was kind of a starting point to me as I want everything built reproducably on pipelines. Also, the MPS context is set up so I think functions can be implemented now. I took inspiration from other PRs that were never merged and switch the build system to CMake as the current Makefile-based is not really maintainable for all these platforms.
Next step I would say to get MPS support solid is to have good unit test coverage on expected input/output. There exists tests, but I am not 100% sure they cover all the needed functionality to the degree that the MPS version can be implemented and we can trust it to be correct. I am not saying it is not, just not sure it is.
One task that would also be nice to get a grip on is to have a prioritized list of which functions to implement. Different use cases might use different parts of the library. I looked a few (mostly LLM) codebases, but it would be good to have a proper discussion on where to start and what we cold collaborate on to get something actually working for a real use case. Then we can get down to the actual porting I think (which didn't seem that hard actually when I attempted one of the quantization functions, just a lot of code to go through and I wasn't able to verify the correctness of the code).
I think we should strive for a compatibility fork if we decide to fork, not just a Apple silicon fork, so I'd rather keep all the CUDA implementations in the same fork, same goes for Windows compat. One problem with CUDA is that I think it requires real actual NVIDIA hardware these days (I remember being able to run CUDA in CPU mode, but it seems to have gone away from the CUDA SDK), so keeping test coverage in pipelines is going to be a problem (Azure-based NVIDIA agents are kind of out of range for an open source project). MPS can be run on the Apple build agents (at least it seems so). The reason I mention this is that the set of platforms will be disjoint (Apple is never going to support CUDA in any foreseeable future, MPS is Apple only), so contributors/maintainers will typically only be able to test locally on one platform and there will probably be a real risk of releasing non working code. Not sure how much of an issue this will be, just something to think about.
@phdykd If you are looking for a quick fix to run a codebase that depends on bitsandbytes, you are out of luck. No code in this repository will run at all on Apple platforms. The code is written specifically for CUDA. What we are discussing here is the best way forward to make this library portable, something that will require a non-trivial amount of work. Your best option is probably to look for a different implementation (or different hardware).
Edit @deep-pipeline just thought of something, would it make sense to investigate if it makes sense to donate the effort to PyTorch?

I would interested in collaborating on a fork. I am planning to get the same spec'd Mac as the OP in a couple months so I have some incentive to get B&B running on MPS. @rickardp are you in the Huggingface Discord? Perhaps we can discuss planning in further detail over there.

I am interested in collaborating on a fork.

I recently picked up an M1 machine so I can definitely do testing. For me the first issue is getting a better understanding of MPS. I will do my own preliminary research in the next couple days but if any has any recommended resource for learning more about MPS feel free to share.
@phdykd, @deep-pipeline, @rickardp, @matthewdouglas, are you available on Discord or Slack?

@eusip I'm on the Huggingface Discord, where my username is TheUltraInstinct.

I am on HuggingFace too. My username is phdykd. I have pretty good M2 computer. Who is taking the leadership to start?
Thanks

I have a couple ideas in mind for getting around this issue.
The quick and very dirty way is developing some code based on CoreML that integrates into Transformers and Bitsandbytes. It would do a post training quantization of the PyTorch binary and then convert the model to CoreML and make that model available via the generate method in the Transformers library. Very tacky but it would work.
The other way is the long and hard way. Effectively try and swap out the CUDA calculations in the Bitsandbytes library for Metal calculations using Metal-cpp.

Hey another M1 user here, I'd be interested in contributing too :)

Happy to contribute — I can dedicate an M2 Max 12CPU/38GPU 96GB

python3 -m bitsandbytes
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin /Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so
/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
CUDA SETUP: Loading binary /Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so...
dlopen(/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so, 0x0006): tried: '/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (no such file), '/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/libbitsandbytes_cpu.so' (not a mach-o file)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++ BUG REPORT INFORMATION ++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++ ANACONDA CUDA PATHS ++++++++++++++++++++
++++++++++++++++++ /usr/local CUDA PATHS +++++++++++++++++++
+++++++++++++++ WORKING DIRECTORY CUDA PATHS +++++++++++++++
++++++++++++++++++ LD_LIBRARY CUDA PATHS +++++++++++++++++++
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/main.py", line 95, in
generate_bug_report_information()
File "/Users/redacted/Library/Python/3.9/lib/python/site-packages/bitsandbytes/main.py", line 66, in generate_bug_report_information
lib_path = os.environ['LD_LIBRARY_PATH'].strip()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'LD_LIBRARY_PATH'

@rickardp can you provide some instructions on building your fork on macos please?  thanks
https://github.com/rickardp/bitsandbytes

OK, here's what I did to get pytest running:
Environment Setup (after cloning @rickardp 's repo and cd into the directory):
conda create -n bnb python=3.10.6
conda activate bnb
pip install -r requirements.txt

Build and install the packages
cmake .
make
python setup.py install

Run the tests
pytest tests

Some adjustments I made before the test can exit normally:

Added numpy and scipy as dependency in requirement.txt
some adjustments to bitandbytes/utils.py
See commit here: https://github.com/ambahk/bitsandbytes/commit/2fefd2f7666022a292f04a5cb6d68232b5179241

Results
As of now, pytest finishes with 3 passed, 2246 skipped in 20.61s.  Gonna look at the skipped cases as the next step.
BTW, is there a better channel for "porting bitsandbytes to macos"?

Sorry, been crazy busy with other stuff and I haven't had time to look at this. I joined the Huggingface Discord, my username is trick_ka
As for building my branch, currently I skip all the tests requiring CUDA. What I've tried to do is to set up a foundation on which relevant CUDA functionality can be ported, so I focused my effort on making this library along with its build system portable and not assume CUDA everywhere. The skipped tests are entirely by design, as they require CUDA to work. This is where a coordinated effort is required.
Everything also builds on GitHub actions and the packages are published from the actions. Myself I am using conda to separate this project from others. I think the requirements.txt should be self contained, but I might have missed something that was part of my base install (pytorch+MPS). @ambahk  It was only weird that the github actions did not require those two packages. Where were the dependencies needed?

I think the best solution to this issue is simply to integrate the llama.cpp library. Essentially develop a Python binding. 4-bit quantization is already available.

Just a comment from my side on this. I think the bitsandbytes library is widely used for a large variety projects. I don't mind taking the shortcuts needed to get the work done, but I think there is value in keeping the interface from this library to avoid having to create PRs in X other projects (that might be rejected due to the additional complexity and the fact that the vast majority of users seem to be fine with CUDA anyway). So I vote for steal as much as we can given licenses and such, but keep the contract

The missing dependencies were required by tests/test_functional.py.  Maybe the Github actions weren't running the tests.

Just popped back here after much busy-ness / distraction elsewhere and delighted to see beginnings of collective momentum.
Many thanks @rickardp for detailed positive reply and great to see @phdykd @eusip @matthewdouglas @dosier @marcothedeveloper123 input, expressions of support and suggestion of Huggingface Discord as place to chat. Also thanks @ambahk with good point re: instructions and thanks for post which has what you did with testing etc.
Without going searching Huggingface Discord to find folk, I get the feeling there is no disagreement with @rickardp that having a drop-in library interface compatible would be most useful (and least breaking) for existing projects which use bitsandbytes.
At least initially that probably means keeping same name and presumably users having to follow instructions to install the cross platform bitsandbytes manually from wherever the bitsandbytes-compatibility base repo lives. I can't help but think at some point, for reputation/security/clarity and because platform differences and enhancements may come up, it might be worth establishing a different-but-similar descriptive name, like openbitsandbytes or bitsandbytescrossplatform etc, but maybe that makes sense after some degree of publicly visible stable function of a compatibility repo.
On that point, wherever that repo lives needs to be

clear enough to become the git-place to contribute for keeping bitsandbytes compatible (so new people can on-board to keep this sustainable),
end-user friendly enough (ie explanations of how to use to bypass the cuda-only bitsandbytes) and,
it needs to be alive-enough (with frequent enough updates, documented discussions about next steps and issue tracking).

I think https://github.com/rickardp/bitsandbytes is the obvious place to have the new base repo - but equally I am conscious that the 'Issues' section is not enabled there, that Rickard might or might not want the 'noise' and direct personal pressure from hosting the base repo - so maybe it needs to be in a shared repo with clear leadership input from @rickardp but not necessarily all the hassle (so ability to agree PRs perhaps sitting with more people so long as a project plan is being followed?)
Anyway, that's my 'project management' collective nudge - I'm more an end-user on this front, so I'm afraid I'm unlikely to be contributing PRs other than possibly relating to some documentation, and I'm stretched too thin to be active on Discord - though am keen to follow things on GitHub (which is where group activity may naturally gather support and helpful input)
..so I do advise you all make coalesce about where GitHub repo 'base of operations is', make the readme file on that repo clearly different and turn the Issues on live there.
Best, M.

Hi @deep-pipeline, thanks for the update. Likewise, these couple of weeks have been crazy busy for me. I'm happy to start off with my repo (https://github.com/rickardp/bitsandbytes) for collaboration.
If someone comes up with a good name for it, I can create a new organization and move it into to better indicate the status that it's not one of my personal projects but a community effort.
In the meantime, I've invited the ones who expressed interest in contributing code recently as collaborators.
I have enabled issues and discussions in the repo. If preferred over Discord, we can use GitHub discussions. I don't have a strong opinion myself. Feel free to add a discussion topic here
https://github.com/rickardp/bitsandbytes/discussions/new/choose

The main error that you posted (about LD_LIBRARY_PATH) has been fixed, but the main issue here is Apple Silicon support. I currently have no plans of implementing this, but I would be happy to support anyone that want to port bitsandbytes to apple silicon implementations.

I have a couple ideas in mind for getting around this issue.
The quick and very dirty way is developing some code based on Core ML that integrates into Transformers and Bitsandbytes. It would do a post training quantization of the PyTorch binary and then convert the model to CoreML and make that model available via the generate method in the Transformers library. Very tacky but it would work.
The other way is the long and hard way. Effectively try and swap out the CUDA calculations in the Bitsandbytes library for Metal calculations using Metal-cpp.
Update: Here is a link to PR discussing how the llama.cpp team is implementing Metal calculations. Here is a link to their implementation of k-quantization.
I think the best solution to this issue is simply to integrate the llama.cpp library. Essentially develop a Python binding. 4-bit quantization is already available.

interested in contribution too xD

The main error that you posted (about LD_LIBRARY_PATH) has been fixed, but the main issue here is Apple Silicon support. I currently have no plans of implementing this, but I would be happy to support anyone that want to port bitsandbytes to apple silicon implementations.

Hi @TimDettmers! As a maintainer, do you have any input on the effort and discussion so far? My proposal was:

Support cross platform build
Build all in GitHub actions
Improve unit tests
portable bootstrapping (possibly look at if we can use PyTorch for common churns like finding DLL paths)
Then
Using a test driven approach, port function (kernel) by function

I fixed some of the “plumbing” on my branch, specifically:

Switch to cmake over pure makefiles (as cmake does a lot of the needed detections out of the box)
Builds CPU on Windows and Mac (arm64 and x64)
Builds and runs CPU tests on GitHub actions (all platforms including Mac and Windows)
Unit tests which depend on CUDA only code are skipped on non-cuda platforms, non-cuda tests now go green if CUDA is not present
MPS bootstrapping code for Apple Silicon

Would this be something you would find acceptable? If you approve of this, we could baseline on a portable build/test system then the community could work incrementally by adding MPS kernels and possibly also CPU kernels (I would actually think it would be useful for this library to be able to run on CPU only).
or would you rather have one PR where it is usable straight off the bat? (Then the community effort could go on in my fork, or somewhere else).
(I am myself more of a software engineer rather than a data scientist, so I can help out with software engineering parts of the problem (for one, this means I want a simple unit test to tell me if my kernel is working or not, rather than a higher level metric etc). Though I do know a fair share of PyTorch and GPU development so I can help out with the porting where there is a clear spec.)
Also I think the community could help out with API documentation as a way of getting the spec and expected outcome.

Wondering any update in this issue.

Any updates? The latest modifications to the files were 5 months ago.

Would like to know if there are updates for M1/M2? Thanks

I'm in a machine learning class and would rather train quantized models on my laptop than have to suffer with the free tier of google colab. Would love to get a status update on this!

Thank you for your patience. We are currently discussing how we integrate accelerators different from GPU such as Apple Silicon, AMD, Intel and other devices. We first need to define this integration before we can move on with the Apple integration. See this PR for more info/discussion: https://github.com/TimDettmers/bitsandbytes/pull/898


Update setup.cfg to add aliases for pyqt5 and pyside in extras_require

Description

This PR adds some aliases for the extras_require when installing napari. I sometimes find myself doing pip install napari[pyqt] which appears to install correctly, but because "pyqt" isn't an option for extras (should be "pyqt5" instead) I end up with no GUI backend installed.
It's not a big problem, just something that might be nice for convenience.
Type of change

[ ] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change

Final checklist:

[x] My PR is the minimum possible work for the desired functionality
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation I haven't done this, but I think that might be confusing. This is really to catch typos/abbreviations when someone types the install command from memory.
[ ] I have added tests that prove my fix is effective or that my feature works

This PR seems to have many more test runs than our other PRs, it's like the full matrix ran including windows 3.7 and windows 3.8 etc. Am I understanding that right? Is that expected @GenevieveBuckley or am I just confused. cc @jni?

@sofroniewn I noticed that also and thought maybe something had changed in master, but I see now that it hasn't.
If I look at the .cirrus.yml, I see that those checks are there conditional on $CIRRUS_PR == "". Maybe something weird happened with Cirrus images during this one PR that has since been reverted? :shrug:

Oh! Another hypothesis (I think probably correct): this PR comes from a branch on this repo, rather than from a fork. @GenevieveBuckley can you avoid doing that in the future? I think it is what GitHub defaults to in the web editor but there might be ways to avoid it.


New-AzureADGroupAppRoleAssignment : Error occurred while executing NewGroupAppRoleAssignment

New-AzureADGroupAppRoleAssignment : Error occurred while executing NewGroupAppRoleAssignment
Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
HttpStatusCode: Forbidden
HttpStatusDescription: Forbidden
HttpResponseStatus: Completed
At line:27 char:1

New-AzureADGroupAppRoleAssignment -ObjectId $AzureGroup.ObjectId -Pri ...

  + CategoryInfo          : NotSpecified: (:) [New-AzureADGroupAppRoleAssignment], ApiException
  + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewGroupAppRoleAssignment

Having limited knowledge on the workings on the command it seems that in Azure (AWS App) you can only set up one account under provisioning that has access to the AWS account to list the roles. Because we are setting up multiple account though the 1 app (maybe not design for that) I get this error.
Checking the config and all settings are updating as i would expect i can even login to the app view all my AWS accounts and role and login.

Hi @Grant-Rc
Thank you for your issue submission.  Unfortunately, this appears to be a problem with the cmdlt and a support issue.  Issues in this repo are for documentation issues.  You can try one of the following links for additional help.
Microsoft Support:  https://support.microsoft.com/
Azure AD forums: https://social.technet.microsoft.com/Forums/en-US/home?forum=windowsazureaditpro
Stackoverflow: https://stackoverflow.com/
#please-close


specify queue in QueueCommand

Currently, there's no way to specify custom queue name while dispatching a queue.
This is my attempt to do so.
I will write tests if the idea and the approach are liked.

I don't know why it is not working in php 5.5

what if I add onQueue(string $queueName) method. so, I could use something like:
$commandBus->dispatch(new QueueCommand(.....)->onQueue('emails'))

@sagikazarmark Any thoughts here? This might need to be be a new interface rather extending the current one, since this would be a BC break for all current users.
Sidebar: perhaps we should have a chat on IRC sometime in the next few weeks about the future of the Bernard integration?

I don't understand the BC break scenario. Isn't the line Util::guessQueue enough for maintaining backwards compatibility?


Errror running aks get-credentials

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks get-credentials
Errors:
The command failed with an unexpected error. Here is the traceback:
'users'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 603, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 661, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 654, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 631, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/init.py", line 485, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1887, in aks_get_credentials
_print_or_merge_credentials(path, kubeconfig, overwrite_existing, context_name)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 2775, in _print_or_merge_credentials
merge_kubernetes_configurations(path, temp_path, overwrite_existing, context_name)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1178, in merge_kubernetes_configurations
_handle_merge(existing, addition, 'users', replace)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1112, in _handle_merge
if existing[key] is None:
KeyError: 'users'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aks get-credentials --resource-group {} --name {} --subscription {} --overwrite-existing

Expected Behavior
Environment Summary
Linux-4.4.0-18362-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.74 *

Additional Context

thanks for reporting, we'll look at it

I'm getting a similar error when I run az aks get-credentials --overwrite-existing -g jessemillar-provision-test -n jessemillar-provision-test:
The command failed with an unexpected error. Here is the traceback:

'clusters'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 608, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 659, in _run_job
    six.reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 636, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 306, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 493, in default_command_handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1952, in aks_get_credentials
    _print_or_merge_credentials(path, kubeconfig, overwrite_existing, context_name)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 3105, in _print_or_merge_credentials
    merge_kubernetes_configurations(path, temp_path, overwrite_existing, context_name)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1181, in merge_kubernetes_configurations
    _handle_merge(existing, addition, 'clusters', replace)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1116, in _handle_merge
    if existing[key] is None:
KeyError: 'clusters'

Environment:
Shell: Zsh
OS: Ubuntu 18.04.4 LTS
{
  "azure-cli": "2.2.0",
  "azure-cli-command-modules-nspkg": "2.0.3",
  "azure-cli-core": "2.2.0",
  "azure-cli-nspkg": "3.0.4",
  "azure-cli-telemetry": "1.0.4",
  "extensions": {}
}

@jessemillar, I ended up uninstalling and deleting my .azure and .cube directories.  Might have worked with just deleting those directories. anyway, reinstalled,and now it's working again.  Hope this helps!

Hello! Please try again with the latest Azure CLI version. Feel free to reopen an issue if it still doesn't work.
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest