Include files not found in VS 2015 C++ project

I have both VS 2017 and VS 2015 installed on my Windows machines. I'm using VS 2015 for some C++ projects. I've cloned and built the azure-store-cpplite library per the build instructions. Now when I try to include:
#include "storage_credential.h"
#include "storage_account.h"
#include "blob/blob_client.h"
VS does not find these files.
I've run "vcpkg integrate install":
Applied user-wide integration for this vcpkg root.
All MSBuild C++ projects can now #include any installed libraries.
Linking will be handled automatically.
Installing new libraries will make them instantly available.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake"
But my VS C++ project still doesn't find the include files.

@asafka-zerto We now only support install dependencies of cpplite via vcpkg, cpplite itself is not supported by vcpkg yet.
#include "storage_credential.h"
#include "storage_account.h"
#include "blob/blob_client.h"

These three headers are from cpplite, so you should specify the include and link path manually in your VS project.


Error trying to execute the new ExampleBot.php

I'm having this error when I try to execute the new ExampleBot.php
Fatal error: Arrays are not allowed in class constants in C:\Users\mig4ng\php\PHP-SteamCommunity-master\SteamCommunity.php on line 19
My current settings.json is the default one (settings.example.json) with the correct auth data of my bot account and deviceId generated with node-totp:
{
  "username": "HIDDEN_USERNAME",
  "password": "HIDDEN_PASSWORD",
  "mobileAuth": {
    "sharedSecret": "HIDDEN_SHARED_SECRET",
    "identitySecret" : "HIDDEN_IDENTITY_SECRET",
    "deviceId": "android:HIDDEN_DEVICE_ID"
  }
}

Same

Php 5.6

You need to be running PHP 5.6+ according to http://stackoverflow.com/questions/1290318/php-constants-containing-arrays/27413238#27413238
@CyanoFresh You're probably not actually on PHP 5.6.

@CyanoFresh Upgrading PHP (to version 7) as @waylaidwanderer said worked for me, try to do the same! Thanks for the help.

Sorry, I have 5.5.9 on remote :(


Update info on submissions

As soon as we've clarified submission process (templates, forms etc.), we have to update the info on page the-prject.

Done


Feat(exporter-js): Introduce JS exporter from Supernova #DS-1013

Description

Additional context

Issue reference

Before submitting the PR, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Follow the PR Title/Commit Message Convention.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

It generates
export const bodyLargeButton = {
    mobile: {
        fontFamily: "'Inter', sans-serif",
        fontSize: '1.125rem',
        fontStyle: 'normal',
        fontWeight: NaN,
        lineHeight: 1.5,
    },
};

But this is not in SCSS-generated tokens.

gradients.ts has been generated empty.

Good Job 👍 A lot of code and big effort from you and AI ;-)
I have tried to run it a examine the generated files manually and found some inconsistencies with SCSS-generated tokens. Please see my comments in this PR.

Ok, badly set configuration on my side.


How to publish a package on aptos chain using martian wallet

Hello, I am connecting the martian wallet to the website. I wonder if there is a way to publish a module on the aptos chain. I tried this,
	 const metadataHexNew = new HexString(
        metadataHex
      ).toUint8Array();
      const codeSerializer = new BCS.Serializer();
      BCS.serializeVector(
        [new TxnBuilderTypes.Module(new HexString(moduleHex).toUint8Array())],
        codeSerializer
      );
      const payload = new TxnBuilderTypes.TransactionPayloadEntryFunction(
        TxnBuilderTypes.EntryFunction.natural(
          "0x1::code",
          "publish_package_txn",
          [],
          [
            BCS.bcsSerializeBytes(
              metadataHexNew
            ),
            codeSerializer.getBytes(),
          ]
        )
      );

      const pendingTransaction = await (window as any).martian.signAndSubmitTransaction(
        payload
      );

but it failed.

It doesnt seem like you are using the adapter but directly Martian wallet. I'll let Martian team know

It doesnt seem like you are using the adapter but directly Martian wallet. I'll let Martian team know

Yes, Thanks a lot


claimpack fix

stop /claimpackcmd2 from allowing users to claim a pack that's worth more than 10 bucks

5e7c7e5c12dee20bc11a12a34250801a0d12174e


Update roadmap

What
Update roadmap page
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[ ] I've included a screenshot or gif (if applicable)
[x] I have tested demo.rerun.io (if applicable)
[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

Rendered


Websocket reconnection

How to return the latest results to the front-end when websocket reconnects

const socket = io(wsEndpoint, {       path: '/ws/socket.io',       extraHeaders: {         Authorization: accessToken || '',         'user-env': JSON.stringify(userEnv)       },       timeout: 300000,     });
socket = SocketManager(     app,     cors_allowed_origins=[],     async_mode="asgi",     max_http_buffer_size=max_http_data_size,     ping_timeout=300,  # Ping timeout in seconds, increase as needed.     ping_interval=10,  # Ping interval in seconds )

1111

python socket = SocketManager(     app,     cors_allowed_origins=[],     async_mode="asgi",     max_http_buffer_size=max_http_data_size,     ping_timeout=300,  # Ping timeout in seconds, increase as needed.     ping_interval=10,  # Ping interval in seconds )

Does adding a timeout fix your issue?

Should be fixed with the 0.6.0 release.


newline ("\n") characters dropped from Markdown in Content files

I just noticed that the newline character treatment in Content (*md) files isn't what I expected.  Specifically, a "\n" character within a Markdown paragraph is removed (and, by the way, so is any preceding space " " character).  I noticed this because the last word of line n and the first word of line n+1 were being concatenated, viz:
.. the sunspot that was pictured in yesterday’s
animation isn’t the reappearance ..

renders as ".. the sunspot that was pictured in yesterday’sanimation isn’t the reappearance .."
I understand that, in Markdown, paragraphs are separated by two newlines (and I noticed @twostraws Markdown files are like that: one long line per para, with no 'hard folds'), but I thought single newlines were treated as whitespace.  Other Markdown rendering software I use (including BBEdit and Xcode) behaves as I expect [though what I'm typing right now onto the GitHub issues page is a third variation of different].  I spent rather a frighting number of hours stepping through cmark-gfm with the debugger to no avail, and am left with the uncomfortable feeling I've missed something obvious.  [cmark-gfm seems to have a plethora of typographic options (-- to —, etc), I did I miss such an option?]
Obviously, I can reformat my Markdown to resolve this very simply.

"The good thing about standards is that there as so many to choose from!" .. the Markdown quote above renders as:
".. the sunspot that was pictured in yesterday’sanimation isn’t the reappearance .." -- Ignite
".. the sunspot that was pictured in yesterday’s animation isn’t the reappearance .." -- BBEdit/Xcode
".. the sunspot that was pictured in yesterday’s
animation isn’t the reappearance .." -- GitHub

Since I wrote the above, I've looked at apple/swift-markdown and read some of the rationale for a well defined Markdown specification.  It looks like within that codebase, all the *md files have one line per paragraph, so I'll guess I'll change my style and conform !!


fixed the knative manifests

Description
The tests bomb out if the cluster is recent enough to enable knative. These changes seem necessary in order to allow the tests to just run. They do not seem to pass yet, there are one or two intermittent failures in the knative tests.

Ah, crap, I broke that and didn't realize it because I was working with Kubernaut. We really need to update Kubernaut...


Interfaces affected by vlan deletion are not findable in changelog

Environment

Nautobot version (Docker tag too if applicable): 1.5.22
Python version: 3.11
Database platform, version: pgsql
Middleware(s):

(I guess this is only the specific case of a more general issue?)
Steps to Reproduce

Create a vlan, associate it to some interfaces
Delete the vlan (like by mistake)
Check the changelog (even by request_id) to find the affected interfaces

Expected Behavior
The affected interfaces are listed so that you can fix the mistake

Observed Behavior
Only the deleted vlan is listed, it is not possible to find the impact of the deletion

This is working as-designed: Supporting the FK set null case as well as deleting M2Ms and having them change logged from the remote side would be a new feature.


Add BIME Desktop

It seems the download url is only available behind a registration wall. Is that the case? If so, it doesn’t belong in this repo.

@vitorgalvao Squashed & rebased.
It's available for everyone: http://www.bimeanalytics.com/download.html

Thank you. Only a small modification needed, then.

@vitorgalvao Done! Thanks for your help.

Thank you for the submission and corrections. Just noticed something else. It should be bimedesktop, not bime-desktop.

@vitorgalvao OK. Fixed again! :+1:


fix #3307: do nothing when calling init multiple times

I think you're right, if a maintainer wants the change, I'll do it!

In fact, I think it would break in React like website, as React launches startup function twice in dev mode, meaning init would get called twice, and it would break
However, having an error log might be great

I don't really know anything about React. Is it not possible to just call init at the top level of the module, or keep track of whether you've called init yet and only call it if you haven't already?

You can keep track of course, and that's what apps use. However internally (and only in dev mode) they launch twice every component initialisation and destruction to assert you're cleaning the used items
I might be not clear, but it'll call init twice, I'm not 100% sure it would break, but it needs to be taken into account I guess?

Can we extend the same check to initSync?

I think you're right, if a maintainer wants the change, I'll do it!

Liamolucko has merge rights, currently he is probably your best bet to get anything merged in this repo.

Thanks for the heads up @daxpedda

In fact, I think it would break in React like website

More precision on this: It would not break React website. But I think it would break the dev workflow, see React Strict Mode.

It's alright, thanks 👌


Why is build_vocab() called twice in Dataset class initialization ?

❓ Questions and Help
Hi,
I noticed that build_vocab() has been called twice in class initialization of Dataset class, it is called once from self._process() (line 363, dataset.py) and then again in the end separately (at line 372). Is it because of some reason or is it a miss ??

Hey @saneshashank, thank you for letting us know. We are currently working on this issue. Stay tuned for a future update!

Hi, @saneshashank, thanks for your feedback, we have fixed it in #331, please reinstall lib from branch develop (install by source code).

Issue resolved and closed.


Build failure for hugo web site in git repo.

Please describe which feature you have a question about?
Amplify web hosting.
Provide additional details
My build of a new hugo site in a github repo is failing. This is my first tie trying this. I believe it might be failing because it is not using the github personal access token but not sure. I found this doc but not sure how to implement this via the AWS Amplify console build process.  https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html
Any help would be appreciated and hopefully this is the right place to ask.
What AWS Services are you utilizing?
Provide additional details e.g. code snippets

Hi @curranjohn46 👋🏽 can you please provide your Amplify app ID? We can investigate what is causing the build failure and provide you with next steps once we have more details.


[VPP] code cleanup for further background color functions

Choosing of background color moved into separate function.

@lakulako

Good question. As I understand now, only 8 bit per component are used and additional space is reserved for Ice Lake 10 bit color schemes (A2R10G10B10). I keep old code that used only low byte of component, but maybe we need rewrite code for using 16 bit components in right way (using high byte of component instead low one for 64bit ARGB). @dvrogozh can you, please, comment this?

It's black (0xffff000000000000)

emmm... I don't know... @onabiull : can you comment?

I believe statement "I keep old code that used only low byte of component, but maybe we need rewrite code for using 16 bit components in right way (using high byte of component instead low one for 64bit ARGB)." cries to be written as comment in the code :)

@IlyaSergeyev

It's black (0xffff000000000000)
0xffff here is maximum U16.
Usually black is minimum value (0).

@lakulako
A = 0xFFFF
R = 0
G = 0
B = 0
It's a non transparent black

OK, I meant only A (transparency). Having it 0 by default would be simpler.
BTW, I see 2 issues in make_def_back_color_yuv(). It should assert(bit_depth >= 8); and use either studio swing (16, 235) or full swing (0, 255).

0 means do not use colorfill for driver. Why MR closed?

Sorry, closed by error!

@lakulako code updated, could you please, take a look

@IlyaSergeyev: please, rebase (test don't pass - I think that's fake).

@lakulako @dvrogozh any new comments?


Disconnected from peer: <IP_ADDRESS>

On one machine, i installed a bitcoin latest version 0.17 (latest as of today, fully sync node), then i install bitcore 5.0.0 beta 44, and tried to get it talk to my bitcoind on localhost. i got the following error message
[2018-11-22T15:51:12.443Z] info: Starting fee
[2018-11-22T15:51:12.444Z] info: Starting web
[2018-11-22T15:51:12.458Z] info: Starting insight-api
[2018-11-22T15:51:12.459Z] info: localhost-insight-api subscribe: mempool/transaction total: 1
[2018-11-22T15:51:12.459Z] info: localhost-insight-api subscribe: block/block total: 1
[2018-11-22T15:51:12.459Z] info: Starting insight-ui
[2018-11-22T15:51:31.492Z] info: Bitcore Node ready
[2018-11-22T15:51:31.492Z] info: Connecting to p2p network.
[2018-11-22T15:51:31.554Z] info: Disconnected from peer: <IP_ADDRESS>
[2018-11-22T15:51:36.549Z] info: Retrying connection to p2p network.
[2018-11-22T15:51:36.550Z] info: Disconnected from peer: <IP_ADDRESS>
[2018-11-22T15:51:41.556Z] info: Retrying connection to p2p network.
[2018-11-22T15:51:41.558Z] info: Disconnected from peer: <IP_ADDRESS>
This error messages keep going forever. I check the bitcore v5 code, the protocol version is 700015. i think this version is correct.
Also I didn't see any error message on my bitcoind side, perhaps because such connection rejection is not printed/written to debug.log.
Really run out of idea how to fix this issue, anyone care to help? Many thanks!!

I also encountered this problem. Is there a solution?


Hotfix: Add validation for project statuses for project feed

Related to: https://github.com/Giveth/impact-graph/issues/751

@mohammadranjbarz pls check it out

@maryjaf  I merged it, it would be on Staging in 15 minutes


Error: property missing ':' near line

I am require'ing app.css from my app.js. Following jqueryui path in my app.css seems to generate above mentioned error, failing the build process

@import jquery-ui/themes/base/theme.css

I would debug it myself but can't find any debug or verbose option with browserify-css transform. Any idea regarding whats wrong or how do I move forward to debug this ?

May I know how did you install jQuery UI, via NPM or Bower? If jquery-ui is under the node_modules directory, you can add a node_modules prefix to the url:
@import url("node_modules/jquery-ui/themes/base/theme.css");

I installed jquery-ui via npm, and yeah thats exactly how I am including it using the 'node_modules' prefix.

I'm having the same issue. When I @import the jQuery UI CSS like this;
@import url("node_modules/jquery-ui/themes/base/theme.css");

I get "Error: /node_modules/jquery-ui/themes/base/jquery-ui.css:786:30: property missing ':' while parsing file". The line in question is;
font-size: 1.1em/*{fsDefault}*/;

Which is something I have no control over, since it's part of the jquery-ui dependency. One workaround I found was to import the minified file instead;
@import url("node_modules/jquery-ui/themes/base/minified/jquery-ui.min.css");

This works for me, but I'd be curious to know if there's any way to handle @importing a file from a dependency that doesn't have correct syntax.

@localjo
Will the error disappear if you manually remove those comments?

I just want to make sure whether removing comments from CSS files will work. I can add a piece of code to filter out comments before passing to the CSS parser.

Published v0.14.0
Now you can turn on the stripComments option to filter out inline comments. The value defaults to false.
https://github.com/cheton/browserify-css#stripcomments
Note: important comments /*! (e.g. copyright) are preserved.


Feature Request:

Checklist

[X] I have read the README.
[X] The feature would be useful to more users than just me.

Feature Requested
I want to request for catpuccin intergration to make the rest of the code grey like when a section of code is highlighted just like when you use flash or leap. The selected part should retain the color while the rest of the code turn grey rather than the code code turning black. Check the image I uploaded.
Sorry my description is not straightforward.
I want to try this but I am thinking I need to fork catppuccin repo and add the integration but I decided to put this here because I think it would be cool if catpuccin has integration for this plugin, thanks.
Relevant Screenshot

Creating features for one specific theme is a bit too niche to add to a plugin, sorry.

Thank you for your response but do you know how I can achieve this? I know I would have to fork catppuccin and add the integration myself, but how do I know the hlgroup so I can do this myself?

The backdrop is actually a bit more complicated than just a highlight group. Basically, I achieve the effect by creating two dummy-windows that are fully black with transparency, that are laid upon the editor. Here is the function implementing it: https://github.com/chrisgrieser/nvim-rip-substitute/blob/014368a9cde67941170965235e97e73332b23d29/lua/rip-substitute/popup-win.lua#L144-L210
What you suggested is definitely possible, though that would require a very different logic applying highlights on all lines outside the range. So, I personally do not think that a slightly different aesthetic is worth writing all that code (though it's shorter than the current implementation), but if you end up writing that logic, I'd be open for a PR (so you do not have to maintain a fork for this)

Oh, and I just remembered: One non-aesthetic reason why I decided against creating a backdrop with the look you proposed is that it actually creates ambiguity in some edge cases.
While leap and flash can simply paint the whole viewport in a comment color, using such a color for the area outside a range can be problematic when you have a fully commented line at the edge of the range. Since both, the outside-area and the commented line would then have the same appearance, it could become hard to distinguish between the two. Using the backdrop with the dummy-windows creates a "unique" appearance that does not leave such an ambiguity.

Thank you. Appreciate your response.


Update README.md

Fixed several grammatical issues.

Wouldn't usually bother to create a pull request just to fix grammar in the readme file, but there were quite a few grammatical hiccups.


racket: on darwin, use libiconv

Without libiconv, racket doesn't support UTF-16, and this breaks one
of the tests.
Closes #34576
Motivation for this change
Make racket build on Darwin.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[] NixOS
[✓] macOS
[✓] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[✓] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[✓] Tested execution of all binary files (usually in ./result/bin/)
[✓] Fits CONTRIBUTING.md.

The binaries that require libX11.6.dylib in the library path for dynamic loading don't run, but I think that's in scope for another commit.
On Linux side this commit introduces zero change to derivations.

@GrahamcOfBorg build racket racket-minima

@GrahamcOfBorg build racket racket-minimal

Failure on aarch64-linux (full log)
Partial log (click to expand)
Package ‘racket-6.12’ in /var/lib/gc-of-borg/nix-test-rs-3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-3/pkgs/development/interpreters/racket/default.nix:84 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Failure on aarch64-linux (full log)
Partial log (click to expand)
Package ‘racket-6.12’ in /var/lib/gc-of-borg/nix-test-rs-1/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-1/pkgs/development/interpreters/racket/default.nix:84 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Failure on x86_64-darwin (full log)
Partial log (click to expand)
error: attribute 'racket-minima' in selection path 'racket-minima' not found

Failure on x86_64-linux (full log)
Partial log (click to expand)
error: attribute ‘racket-minima’ in selection path ‘racket-minima’ not found

Success on x86_64-linux (full log)
Partial log (click to expand)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 5315k    0 16073    0     0  61819      0  0:01:28 --:--:--  0:01:28 61582
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 5315k  100 5315k    0     0  5435k      0 --:--:-- --:--:-- --:--:-- 5429k

  9 74.1M    9 7523k    0     0  5569k      0  0:00:13  0:00:01  0:00:12 5565k
 28 74.1M   28 20.9M    0     0  9330k      0  0:00:08  0:00:02  0:00:06 9326k
 45 74.1M   45 33.6M    0     0  10.1M      0  0:00:07  0:00:03  0:00:04 10.1M
 60 74.1M   60 45.1M    0     0  10.4M      0  0:00:07  0:00:04  0:00:03 10.4M
 76 74.1M   76 56.8M    0     0  10.6M      0  0:00:06  0:00:05  0:00:01 11.2M
 92 74.1M   92 68.3M    0     0  10.8M      0  0:00:06  0:00:06 --:--:-- 12.3M
100 74.1M  100 74.1M    0     0  10.8M      0  0:00:06  0:00:06 --:--:-- 11.7M

/nix/store/jvf7fjn1xv8aljyf2gj9671ik7c6dbgf-racket-6.12
/nix/store/0i492hfziqhlmgxcp5z0iyrmbpsbh97p-racket-minimal-6.12

Failure on x86_64-darwin (full log)
Partial log (click to expand)
raco setup:      /nix/store/2j30avvbvnahw9k5s0mvhf1cx5w82a5v-racket-6.12/share/racket/pkgs/htdp-lib/2htdp/image.rkt: [traversing imports]
raco setup:      /nix/store/2j30avvbvnahw9k5s0mvhf1cx5w82a5v-racket-6.12/share/racket/collects/racket/private/more-scheme.rkt:148:2: call-with-break-parameterization
raco setup:      .../more-scheme.rkt:261:28
raco setup:      /nix/store/2j30avvbvnahw9k5s0mvhf1cx5w82a5v-racket-6.12/share/racket/pkgs/sandbox-lib/racket/sandbox.rkt:861:5: loop
raco setup:
make[1]: *** [Makefile:178: install-3m] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-racket-6.12.drv-0/racket-6.12/src/build'
make: *** [Makefile:103: install] Error 2
builder for '/nix/store/hhyc9zmrr9jksdv09zdjiz11d0svw9d4-racket-6.12.drv' failed with exit code 2
error: build of '/nix/store/hhyc9zmrr9jksdv09zdjiz11d0svw9d4-racket-6.12.drv' failed

Guess I'll try it in sandbox.

Oh. What do I do to fix this? I set build-use-sandbox = relaxed and reloaded the nix-daemon service, and now I'm getting:
building path(s) ‘/nix/store/cs447fnh7r560wgqrsc6qxdpg648cmm9-racket-6.12’
/nix/store/0igxxngigjgfkgg3cw547n92b8bpg6b1-stdenv-darwin/setup: fork: Operation not permitted

https://github.com/NixOS/nix/issues/759 seems to say this is a problem that was fixed two years ago. Has it come back or am I doing something wrong?
It may be relevant that nix-info -m claims  - multi-user?: no when I'm running with sandbox = relaxed? Or is that normal?

Sandboxing requires nix 2.0 and the relaxed mode isn't really supported anymore.

Ok! Time to upgrade then.

That wasn't a roaring success.
configure:3839: ./conftest
dyld: Library not loaded: @rpath/CoreFoundation.framework/Versions/A/CoreFoundation
  Referenced from: /private/tmp/nix-build-racket-6.12.drv-0/racket-6.12/src/build/./conftest
  Reason: no suitable image found.  Did find:
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation: file system sandbox blocked stat()

@LnL7 It seems to me that https://github.com/NixOS/nixpkgs/blob/3bae30289c15571d6257472b532b07b43a27b5ff/pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh#L38-L42 , activated by https://github.com/NixOS/nixpkgs/blob/3bae30289c15571d6257472b532b07b43a27b5ff/pkgs/os-specific/darwin/apple-sdk/default.nix#L136-L137 , makes sandboxing impossible? Alternatively, sandboxing needs to be opened up to system CF?
Probably https://github.com/NixOS/nixpkgs/blob/3bae30289c15571d6257472b532b07b43a27b5ff/pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh#L1-L4 can explain why my first attempt at solving #35452 segfaulted?

Yeah, there are still some problems with sandboxing and frameworks. FYI the darwin builders don't run with sandboxing enabled anymore.

I already noticed it, when /bin/bash did not return a failure anymore.

Ok. Any suggestions how I can fix this? glib is in the libPath expression, but I noticed that LD_LIBRARY_PATH isn't in the environment when building. And on MacOS maybe we should set DYLD_LIBRARY_PATH instead?

I think that's equivalent. There are also a bunch of other DYLD_* environment variables described in man dyld that might help when debugging something like this.

Is this good to go?

Re: {DY,}LD_LIBRARY_PATH, I have since learned that Racket has internal variables that ffi looks at, and that these environment variables don't help.

@qknight this is mergable, mind taking a quick review please.

@GrahamcOfBorg build racket racket-minimal

Success on aarch64-linux (full log)
Attempted: racket-minimal
The following builds were skipped because they don't evaluate on aarch64-linux: racket
Partial log (click to expand)

these paths will be fetched (6.37 MiB download, 31.09 MiB unpacked):
  /nix/store/3ipjzjm5hxk9h6sh5c791akpxcpw6gli-libtool-2.4.6
  /nix/store/a351yhxr4l2x3a45x2gflsj3dg2vqmcv-racket-minimal-7.1
  /nix/store/xxjz7zmn5jbvyp7rbcklgx10c23fbqf5-poppler-glib-0.67.0
copying path '/nix/store/3ipjzjm5hxk9h6sh5c791akpxcpw6gli-libtool-2.4.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xxjz7zmn5jbvyp7rbcklgx10c23fbqf5-poppler-glib-0.67.0' from 'https://cache.nixos.org'...
copying path '/nix/store/a351yhxr4l2x3a45x2gflsj3dg2vqmcv-racket-minimal-7.1' from 'https://cache.nixos.org'...
/nix/store/a351yhxr4l2x3a45x2gflsj3dg2vqmcv-racket-minimal-7.1

Success on x86_64-linux (full log)
Attempted: racket, racket-minimal
Partial log (click to expand)
copying path '/nix/store/jnn7kk6rsrpwr8ks80f60d4pkm38crm1-libmicrohttpd-0.9.59' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/haf7c8iah82an4r044sbxvlq83yy9ffh-systemd-239' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/n0lb5g87hd7xaa09pinaf74r4p9ckgsi-dbus-1.12.10' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/xzgmxp8ry1kwbpq8sgm4srg9jmmfb44m-at-spi2-core-2.28.0' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/jglz63ny49xcjjkd9240di4p0z05mspc-at-spi2-atk-2.26.2' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/p4b0avnpcvvj6b108zba9j61fgir5b2k-gtk+3-3.22.30' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/9q8vl7kzmckcrvn5nmirp6s13ysznrxl-racket-7.1' from 'https://nix-cache.s3.amazonaws.com'...
copying path '/nix/store/ymb05vac1gvbiwd1g5dhdicwngr5bhw1-racket-minimal-7.1' from 'https://nix-cache.s3.amazonaws.com'...
/nix/store/9q8vl7kzmckcrvn5nmirp6s13ysznrxl-racket-7.1
/nix/store/ymb05vac1gvbiwd1g5dhdicwngr5bhw1-racket-minimal-7.1

Failure on x86_64-darwin (full log)
Attempted: racket, racket-minimal
Partial log (click to expand)
raco setup:      for-loop
raco setup:      [repeats 1 more time]
raco setup:      run-module-instance!125
raco setup:      ...
raco setup:
make[1]: *** [Makefile:177: install-3m] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-racket-7.1.drv-0/racket-7.1/src/build'
make: *** [Makefile:103: install] Error 2
builder for '/nix/store/fx0j7dqisr8yjv0kzdwnhhf4fx5dbc3g-racket-7.1.drv' failed with exit code 2
error: build of '/nix/store/fx0j7dqisr8yjv0kzdwnhhf4fx5dbc3g-racket-7.1.drv' failed


Change how circles work in Bullet Hell.

Change design so that it makes a full circle of bullets except for a random spot that you can use to exit the circle.


runtime: "sweep increased allocation count" on linux/arm64 during bootstrap

2020-11-11T20:26:44-b641f0d/linux-arm64-packet
Possibly related to #32026; see also #21729.
CC @aclements @mknyszek

Looks like the bootstrap compiler crashes? It could be due to an old bug in the bootstrap toolchain.

greplogs --dashboard -md -l -e '# bootstrap/.*\n(.*\n)*fatal error: sweep increased allocation count' --since=2021-01-01
2022-03-20T16:05:03-6673d5d/linux-arm64-packet

This should be fixed by #44505, assuming that that actually happens as planned for Go 1.19.

Rolling forward to 1.20 milestone.

Builders are now on Go 1.17. This should stop happening.

There have been no occurrences of this since the 2022-03-02 log @bcmills linked above, and we have reason to believe this is fixed, so I'm going to close this. If it does happen again, we can reopen.


Number of Transactions

can we also display the number of transactions instead of the fees? For the zero fee routers

For the v1.8.1 a refactor/redesign for the tiouchscreen is planned. Also including there the number of forwarded transaction makes sense. Will mark this issue for v1.8.1 as a reminder. @fusion44

It'll be easy to make things configurable. In the long run we could even make the layout completely user configurable. That's not the current short term goal though.


Confusing instructions

This sentence is very confusing "The Azure AD lockout duration in seconds is longer than the Active Directory reset account lockout counter after duration minutes." does that mean if the AD lockout is 30 Minutes, the Azure AD lockout needs to be at least 31 seconds? Or more than 1801 seconds?

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

ID: 9c7b90ca-a2b1-9cd8-9769-cd48c27f10ea
Version Independent ID: b8c29389-c435-b2f0-4186-1e9c47ab4f3e
Content: Preventing brute-force attacks using Azure AD smart lockout - Azure Active Directory
Content Source: articles/active-directory/authentication/howto-password-smart-lockout.md
Service: active-directory
Sub-service: authentication
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@marcel-wiedemeier
Thanks for your feedback! We will investigate and update as appropriate.

Sent to PM for feedback.

From the PM
Account lockout for Active Directory is normally set in Minutes. Smart Lockout is set in seconds.
When we say “The Azure AD lockout duration in seconds is longer than the Active Directory reset account lockout counter after duration minutes” we mean that 30 seconds for AAD means 0.5 minutes on prem. So if you want your AAD counter to be higher than AD, then AAD would be 120 seconds (2 minutes) while your on prem is  set to 1 minute (60 seconds).

Here's a suggestion to make this clearer: "The Azure AD (AAD) lockout duration must be set longer than the Active Directory (AD) reset account lockout counter after duration. Be aware that the AAD duration is set in seconds, while the AD duration is set in minutes. For example, if you want your AAD counter to be higher than AD, then AAD would be 120 seconds (2 minutes) while your on prem AD is set to 1 minute (60 seconds).”

Made change in private repo based on your feedback above.


mac os: rockspec fails to install

Rockspec fails to install on Mac OS 11 because luarocks does not find pthread:
$ luarocks install lua-llthreads2-0.1.6-1.rockspec

Error: Could not find library file for PTHREAD
  No file libpthread.a in /usr/local/lib
  No file libpthread.dylib in /usr/local/lib
  No file matching libpthread.so.* in /usr/local/lib
  No file libpthread.a in /usr/lib
  No file libpthread.dylib in /usr/lib
  No file matching libpthread.so.* in /usr/lib
  No file libpthread.a in /lib
  No file libpthread.dylib in /lib
  No file matching libpthread.so.* in /lib
You may have to install PTHREAD in your system and/or pass PTHREAD_DIR or PTHREAD_LIBDIR to the luarocks command.
Example: luarocks install lua-llthreads2 PTHREAD_DIR=/usr/local

One workaround could be avoid specifying pthread for mac os, e.g. to replace
  platforms = {
    unix = {
      modules = {
        llthreads2 = {
          libraries = {"pthread"},
        }
      }
    },

with
  platforms = {
    linux = {
      modules = {
        llthreads2 = {
          libraries = {"pthread"},
        }
      }
    },

See also https://github.com/osch/lua-mtmsg/commit/669812de24f6be5782a12ee7415bf890c5d1b7e1

Do you know why it passes uild/test on osx CI?

Do you know why it passes uild/test on osx CI?

No I don't know, BTW what is "uild/test"?
It also passed my Mac OS CI integration tests in the past 3 months ago, see https://github.com/osch/lua-mtmsg/actions/workflows/test.yml but now it doesn't :-(
Perhaps something changed in Mac OS?

Any solution for this?


select component doesn't have clear value feature.

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live working example of other library component:
https://element.eleme.io/#/en-US/component/select#clearable-single-select
Steps:
In above codepen, just tried to tell how simple this feature can be, why we are making it complex.
After using select component i found material doesn't have clearable feature, joy ui has that but it extra complex, need to add endDecorator and have to do magic our own ends.
Current behavior 😯
we can't clear selected value instead need to add extra option for that.
Expected behavior 🤔
there should be simple props option that will be able to handle this thing.
Context 🔦
work around is available, we can add extra option with empty value.

  Output from `npx @mui/envinfo` goes here.

Thanks for the feedback @rishavsahu123. That looks really good, what do you think about this API?
import Select from '@mui/joy/Select';
import SelectClearable from '@mui/joy/SelectClearable';

<Select indicator={<SelectClearable />}>
 <Option>…</Option>
</Select>

cool, thanks! but can we unselect value like joy UI, looks like need to add onClick magic for removing value, I was looking for something like required props, just pass clearable or something else and we can remove value on single click.


Feature Testing for search_items_API Function

Summary
This report details the testing of general features for the search_items_API function. Test cases focus on verifying the function’s core capabilities, including sorting, filtering, handling different parameters, and ensuring consistent and accurate results across a range of inputs. The purpose is to confirm that the function meets expected behaviors for essential features and handles edge cases effectively.
Test Cases Overview

Sorting and Ordering:

Tests assess the function’s ability to handle sorting options, such as ordering by price in both ascending and descending order. This ensures that specified sorting criteria are applied correctly to produce an ordered list of results.

Filtering and Parameter Validation:

Additional tests evaluate how well the function supports filtering and different parameter combinations (e.g., sorting by relevance, applying limits on result length). These tests ensure that parameters are correctly interpreted and that the function adapts to varied inputs without errors.

Observations

Feature Consistency: The function consistently applies sorting and filtering features across multiple parameters, demonstrating reliable functionality.
Error Management: Proper handling of edge cases shows the function’s resilience, allowing it to manage unexpected or unsupported inputs smoothly.

Recommendations

Expand Tests for Additional Filters: As new features are added, implement tests for other filtering options (e.g., rating, popularity) to ensure they work cohesively with existing sorting and ordering capabilities.
Documentation and Error Feedback: Enhance documentation on parameter use and provide clear feedback for unsupported or incorrect parameters to improve user experience and debugging.

If any further feature testing needed, feel free to report here

Add some test cases in #11


Equivalent to Rx.Subject

Hello everyone, I'm new to most and I was wondering if there is an equivalent to Rx's Subject?
In particular, I'm curious if there is a way for recreating Rx.ReplaySubject
For some more information on what I'm trying to accomplish.
I'm trying to rewrite Cycle.js using Most instead of RxJs. I haven't been able to find a way to recreate the circular dependency between Observables.
In Cycle.js it's roughly like this (although a little more complex)
const sinksProxy = new Rx.Subject()
const sources = driverFn( sinkProxy )
const sinks = application( sources )
sinks.subscribe( value => sinksProxy.onNext(value) )

Thanks in advance!

In particular, I'm curious if there is a way for recreating Rx.ReplaySubject

Hey @TylorS, this is a really interesting situation--one I've not really thought about before.  I'd love to find a way to do it declaratively, rather than having to subscribe and feed the events back in.  It's totally not obvious how to do it declaratively right now, though (but I'll give it more thought!)
Anyway, I think it would be annoying to try to do it in the current version of most.js.  There's been some previous discussion about providing an externalized imperative event pushing api in #72.  That PR is a bit long in the tooth, and should probably be abandoned, but the idea certainly seems like it'd work for what you're doing in that sample code.
One question: How do external events make their way into the cycle?  Does someone (perhaps code inside driverFn or application end up calling sinkProxy.onNext?
I went back and forth on adding an API like that, since it tends to either put the burden managing race conditions on the caller, or introduce inefficiency if you force every event to be queued and sent in a future call stack.  But I've made my peace with it :)
Would it work for you if there were some new API that looked like:
import most from 'most';
const { sink, stream } = most.whatever();

sink.add(x); // add x to stream

Thoughts?

Thank you for such a quick and informative reply! I'm in a time crunch right now, but that API would definitely work. I simply need a way to replicate one stream into another.
I actually have a working implementation here https://github.com/tylors/cycle-more if you're interested in how it all works.
Thanks again!

Cool, thanks for the pointer.  Looks pretty interesting so far--I think I need to learn more about cycle.js to fully grok it :)
In the past, I've used a higher order stream which is then either joined (if you want merge) or switched (if you want replacement) to achieve plug/unplug style functionality.  I don't know if that will work for you, but it's quite a nice pattern because it can be completely declarative.

I'm home from work now! I really do agree with you that I'd love to find a clean way to solve this problem. I'm new to functional/reactive programming (and programming in general) and I still need to learn most better and grok it's code base some more before I feel I'd be in a good position to make many suggestions. I really do like the way your suggestion looks though.
const { sink, stream } = most.whatever()

Thanks for the link to issue #72, I couldn't find that on my own. I will likely use that kind of implementation going forward. But I would love to find a better solution to be in most itself of course.
With the higher order stream I'm not sure I follow how that would work in my current case, if at all. I'd love to be shown I'm wrong though :+1:

I'm not sure I follow how that would work in my current case

No worries.  I'm not sure either :) since I'm not yet familiar enough with cycle.js.  Here's a quick sketch of how it works in the general case, though.
const { sink, stream } = most.whatever();
const bus = stream.join();

// "Plug" streams by emitting them as events.
// The join() above will merge anotherStream's events into bus.
// anotherStream "unplugs" itself when it ends, *or*
// you could use .until(), .during(), .takeWhile(), .take() to declaratively
// establish when anotherStream will end (and thus "unplug" itself)
sink.event(anotherStream);

Awesome, I'm going to give that a shot right now! That looks like it will do precisely what I need :+1:

Doing the following
let { sink, stream } = most.empty();
stream.join();

I get TypeError: Cannot read property 'join' of undefined

I think my example was misleading. Sorry about that! The most.whatever api doesn't exist yet. Existing apis like empty just return a stream. I'm proposing that we create a new api that will return a sink,stream pair.
I'll whip up a quick version of this new api for you to try out later today.

Awesome, I came to that conclusion the hard way.I was trying to find the part of most that did that, and obviously couldn't do so! :smile:

@briancavalier

How do external events make their way into the cycle? Does someone (perhaps code inside driverFn or application end up calling sinkProxy.onNext?

Subscription and onNext are called in the cycle-core. It connects the data flow in a unidirectional cycle, a feedback loop, using drivers that are functions and can produce side effects and main() which is the actual closed-world program function. In @TylorS code, application() is equal to main().

I haven't had a chance to put together code for you to try.  I had a thought, though.  Have you looked at to using most.create to create the cycle?  Maybe something like:
const s = most.create(add => {
    const sources = driverFn( add )
    const sinks = application( sources )
    sinks.subscribe(add);
});

I admit I don't know what driverFn and application do, but figured this might be worth discussing.  Would something like that work?

Unfortunately that wouldn't work in my case without doing something like
let _add;
most.create( add => {
  _add = add;
  ...
})

Which is an eye sore to say the least, and I only want the most :wink: Sorry for the really bad pun lol
If you ever have the time, the source code for my most.js version of Cycle is only 100 lines of code in 2 files. You could likely see something I couldn't. If you don't have the time or desire no worries though. https://github.com/TylorS/cycle-more/tree/master/src
As of right now I have it working but it doesn't feel warm and fuzzy.

Sorry this wasn't clear, but "exporting" the add function out of create isn't really the intended usage pattern.  Create wants you to work inside the closure for a few reasons:

it clearly separates producing from consuming.  The function passed to create is responsible for producing events.  Code outside that function should only consume them.
it can help to manage resources, so you don't make mistakes that leak resources. Create will use the producer and disposer function (returned by the producer) to start/stop the production of events automatically as new observers are added and removed.

I see you've isolated that in subject.js, which is probably the best way to do it, if you need externalized imperative push semantics.

I needed to reimplement rx's ReplaySubject as well, you can borrow some ideas from mine in [this gist] (https://gist.github.com/wishfoundry/ffe4f61c7acd276371d7), which can replay more than just the last event.
@TylorS looking at your subject.js, are you sure you can use setImmediate? I suspect that it may drop events as push really must be in another stack frame when called. Also, you may want put in a call to stream.drain() before returning the stream as by definition, Subjects must be "hot".

Awesome @wishfoundry! I suppose that my implementation is much more naive, yours is obviously much more like the real thing.

@TylorS Also, setImmediate( fn ) is imperative and not in line with functional programming. You’d probably choose a word like now( fn ).

For anyone else looking for this, I have an implementation here https://github.com/TylorS/most-subject.
In combination with https://github.com/mostjs/hold a ReplaySubject-like stream can be created though only with 1 past value, as that's the common use case.
@briancavalier Do you think it is safe to close this?

@TylorS Thanks for adding the link to your most-subject!  Yeah, I think we can close this.


Fixed deletion strategy for JDBC MySQL adapter

It seems the JDBC MySQL adapter creates an ActiveRecord::ConnectionAdapters::Mysql2Adapter constant that causes the SelectiveTruncation module to be included in the active record Deletion class.  Everything works fine except the real MySQL adapter returns results differently from the JDBC adapter.  Changing the execute method to exec_query allows it to work for both adapters.

https://github.com/DatabaseCleaner/database_cleaner/pull/333

@DanElbert Thank you! :smile_cat:


Json Support: Parsing JSON from SELECT statement

Given Scylla allows inserting JSON, how do we handle JSON via the rust driver? I don't see anything pre built in the package to handle it?

What kind of support exactly do you have in mind?
If you mean this: https://docs.scylladb.com/stable/cql/json.html , then it doesn't require any additional support from the driver. You just insert or select JSON as a string and the DB does serialization/deserialization itself.
For example:
// Schema:
// CREATE TABLE IF NOT EXISTS ks.t (a int, b int, c text, primary key (a, b))

// Inserting
let json_payload = "{\"a\": 123, \"b\": 456, \"c\": \"zxcvbnmn\"}";
session
    .query("INSERT INTO ks.t JSON ?", (json_payload,))
    .await
    .unwrap();

// Selecting
let rows = session
    .query("SELECT JSON a, b, c FROM ks.t", ())
    .await
    .unwrap()
    .rows_typed::<(String,)>()
    .unwrap();

for row in rows {
    println!("row: {}", row.unwrap().0);
}

Closing because of no response. It also seems there is nothing to do for us here as @piodul said.


BGP SRTE: Segment Lists weight checkbox is not enabled though weight attribute is applied

tick the Enable Weight checkbox when weight attribute is applied

part of tests added with https://github.com/open-traffic-generator/ixnetwork/pull/360


Training and Testing time issue

Hi~ I had trained and test py-R-FCN on GPU K80, before that I also did the same process with py-Faster-RCNN. However , the training and testing time of py-Faster-RCNN-VGG16 is almost close to the time mentioned in paper (train time 1.2s , test time 0.3s ), while py-R-FCN is much slower than py-Faster-RCNN (train time 2s test time 0.4s).
It's far away from the time you mentioned in Readme (train time 0.13s test time 0.09s). I used joint training without OHEM (experiments/scripts/rfcn_end2end.sh) and the pretrain model is ResNet-101.
Could you help me find out what's wrong?

Hello! I have 4 gpus with 4 GB. Is it enough or need at least one gpu with 6 GB?

Hi @Xiangyu-CAS and @mursalal , please try our new implementation, https://github.com/msracver/Deformable-ConvNets. It supports multi-GPU training/test and require GPU memory.

Thanks for the response @Orpine. I will try.


Update sql-database-high-availability.md

For Business Critical tier of Azure SQL Managed Instance, it is mentioned that the failover is handled by SQL Server Engine but my understanding is that the failover from primary to secondary replica is managed by Azure Service Fabric.

@manishk2018 : Thanks for your contribution! The author, @jovanpop-msft, has been notified to review your proposed change.


Fix broken link to the Hub

The Markdown link fails to render if it is in the same line as the <span>. This PR implements @mishig25's fix by using <a href=" "> instead.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Installing Panoptes locally

The Panoptes installation instructions say that I need Docker and Fig. The Fig webpage says Fig is deprecated. If I install Docker, will Fig be installed automatically?

No you have to install fig separately from Docker. We're working up updating to docker-compose the replacement for fig.

Ugh. There's no Windows version of Fig. So I just tried installing the Fig python package (which is the only other alternative). And PIP reports that it installed correctly, but a simple 'fig --version' fails.

Giving up installation on my PC. Will try to do it remotely on my linux work machine...

Yay windows!
Docker-compose is/should be backwards compatable with fig so you if you want you can try that before giving up on windows (but i won't blame you if you want to).

Okay, I've got Docker and Fig installed on Ubuntu.

Just follow the points under usage. Please let us know where they don't work / can be clearer.

Oh - you need to checkout / clone the source code then follow the usage instructions.

Right, thanks. Never done it on Ubuntu before, but that was super easy.
OK. Now I'm at "Create and run the application containers by running fig up" but I don't have a Docker daemon running. Need to figure out how to do that. (And you might want to add that to the instructions.)

I'm stuck. Docker thinks its daemon is running in the standard location. 'fig up' can't find it.

Finished doing this with @edpaget on HipChat. Ed is updating the docs to reflect the issues I ran into in the process. But was ultimately successful.


Completed Landing Page Implementation

I have created the landing page from the design we decided.
The landing page includes the following sections:

Hero
About
Judges & Mentors
Partners/Sponsors
Call To Action
FAQs

I have added reusability to certain sections of the landing page. Once the final content is ready, I will add reusability to the rest as well.
@atapas, coding part is done, go through the code for any bugs or suggestions. And share the content once everything's fine.

@ammaaraslam
Section wise all looks good except this one!

Is it like, when we have the partner name, it will appear just below the "OUR PARTNERS" heading? What will be the background color?
Will the "BE A PART OF..." section follow that?
CC: @nirmalkc

@atapas, done with the new project structure, let me know your review.

@ammaaraslam
Section wise all looks good except this one!

Is it like, when we have the partner name, it will appear just below the "OUR PARTNERS" heading? What will be the background color?
Will the "BE A PART OF..." section follow that?
CC: @nirmalkc

@atapas
The heading "Our Partners" falls under a different section, to which @nirmalkc has not yet included the design for. And the section "BE A PART OF" is a different section that follows the partners section.

Partner section will have N-HOST. We will call this section as OUR SPONSOR and have N-HOST logo in it.
I will share the updated XD file.

@ammaaraslam here are some of my observations, which you may need to fix it in the site.

3 boxes in the about section needs better alignment and padding as per the mockup.
FAQs has slight mismatch when compared with the mockup. Please fix that.
Responsive design for each section.

Please let me know if you need a mockup for the responsive design.

@ammaaraslam here are some of my observations, which you may need to fix it in the site.

3 boxes in the about section needs better alignment and padding as per the mockup.
FAQs has slight mismatch when compared with the mockup. Please fix that.
Responsive design for each section.

Please let me know if you need a mockup for the responsive design.

@nirmalkc, working on the fixes and the responsiveness. Please check on this PR for more updates on that.


Refactor parsers to be executed parser-by-parser.

Previously, parser functions were executed piecewise, meaning that any parser could contribute to any part of the resulting actor. This refactors the parser interface to execute each parser completely or not at all.
I'm not very familiar with Typescript, so let me know if there is a more idiomatic way to do this, happy to make changes.

Previously, parser functions were executed piecewise, meaning that any parser could contribute to any part of the resulting actor. This refactors the parser interface to execute each parser completely or not at all.
I'm not very familiar with Typescript, so let me know if there is a more idiomatic way to do this, happy to make changes.

Hey - so I think this looks decent. I was thinking we would keep the array based composition because it's a nice way for me to add parsers if certain input fails for WTC blocks, but also include the higher level actorParser that you included.
So we would just revert the changes you made to go from an array of parsers to a single parser, while adding the new extension.
Does that make sense?

Hey - so I think this looks decent. I was thinking we would keep the array based composition because it's a nice way for me to add parsers if certain input fails for WTC blocks, but also include the higher level actorParser that you included.
So we would just revert the changes you made to go from an array of parsers to a single parser, while adding the new extension.
Does that make sense?

Done.

Looks great, thanks for the contribution!


Check that all keys in the specified key field are valid

Once https://github.com/multinet-app/multinet-client/pull/54 is merged, users will be able to specify their own key columns, but currently there's nothing in place to verify that the keys in the specified key column conform to the rules that ArangoDB places on keys.

This is pretty high priority, since without this we can leave the system in a broken state.


Transcript:  Hello and good morning. Request failed with status code 400

Transcript:
Hello and good morning.
Request failed with status code 400
Traceback (most recent call last):
File "D:\AlwaysReddy\llm_apis\ollama_client.py", line 55, in stream_completion
raise RuntimeError(f"Request failed with status code {response.status_code}")
RuntimeError: Request failed with status code 400
Traceback (most recent call last):
File "D:\AlwaysReddy\llm_apis\ollama_client.py", line 55, in stream_completion
raise RuntimeError(f"Request failed with status code {response.status_code}")
RuntimeError: Request failed with status code 400
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\AlwaysReddy\actions\always_reddy_voice_assistant\main.py", line 62, in handle_default_assistant_response
response = self.AR.completion_client.process_text_stream(stream,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AlwaysReddy\completion_manager.py", line 166, in process_text_stream
for chunk in text_stream:
File "D:\AlwaysReddy\llm_apis\ollama_client.py", line 62, in stream_completion
raise RuntimeError(f"An error occurred streaming completion from Ollama API: {e}")
RuntimeError: An error occurred streaming completion from Ollama API: Request failed with status code 400
iam not a coder, so maybe someone has an idea.
Voice will be recorded, but the it runs into this error.
thanks in advice

forget to set USE_GPU = True

case closed

Last time I saw status code 400 from Ollama, it was because OLLAMA_KEEP_ALIVE in config.py was set to an invalid value. USE_GPU is not used by the completion APIs - it is currently only used by Whisper STT.

ok thanks for claryfing - thumbs up

@ctxadm is this now resolved? :)

yes its solved! thanks!!!

Hi,
someone can help me?
same error with 405 code:
raise RuntimeError(f"An error occurred streaming completion from Ollama API: {e}")
RuntimeError: An error occurred streaming completion from Ollama API: Request failed with status code 405

Hi, someone can help me? same error with 405 code: raise RuntimeError(f"An error occurred streaming completion from Ollama API: {e}") RuntimeError: An error occurred streaming completion from Ollama API: Request failed with status code 405

Never seen 405 before. But that error is entirely different, so please open a new issue and include your Ollama-related config.py options.


LoomServer parallel listener start

Addresses issue #7051, #6434, and #6498.

Note that #7051 was never really an issue for me locally or in the pipeline.  I need that this as an opportunity to address related issues (see description above).


Do not re-subscribe to Pusher when clicking on desktop notification

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

Action Performed:
Clicking on a desktop web (Chrome) notification
Expected Result:
Does not unsubscribe then re-subscribe to Pusher
Actual Result:
It seems to always unsubscribe and resubscribe from Pusher
[Pusher] Unsubscribing from channel true {channelName: "private-report-reportID-64708287"}
pusher.js:196 [Pusher] Attempting to subscribe to channel true {channelName: "private-report-reportID-64708287", eventName: "client-userIsTyping"}

Workaround:
Just use the app as normal. This is indicative of reloading the chat unnecessarily.
Platform:
Web
iOS
Android
Desktop App
Mobile Web
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork

Triggered auto assignment to @Christinadobrzyn (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

My best guess is that this issue is related to how we are navigating to a report.
https://github.com/Expensify/Expensify.cash/blob/e78340b3e9a3e4fea6dd3f75dcbc32b79c63cc7b/src/libs/actions/Report.js#L618-L624
https://github.com/Expensify/Expensify.cash/blob/e78340b3e9a3e4fea6dd3f75dcbc32b79c63cc7b/src/libs/Navigation/Navigation.js#L58-L64
If we are already on the report we should either reveal the report or do nothing rather than "navigate" to it (which might be reloading it). Something else could be going on but that's what I'd check out first.

Testing this to better understand what needs to be fixed.

sign-in in to e.cash at www.expensify.cash in Chome browser
Allow Chrome browser notifications for www.expensify.cash
Start convo with someone
When I get a push notification > check the chat to see if the chat has loaded to match the recent message
Chat loaded (with delay) to show the recent message > I couldn't see anything in the console but I might not be using it right 😅

Will you confirm the issue we want to fix is the delayed upload of the most recent message in a chat?

Hello, I am not 100% certain about logs referenced in the first post, but here is how I reproduced the issue:

Login into account A and account B from separate browsers/tabs.
Send a message from account A to B.
Wait a few seconds.
Open tab/browser with account B.
Accept the notification permission modal.

Activate the notification.
A browser/tab with account B gets opened. You can see messages appearing, being redrawn. It looks like the ReportView gets reloaded/remounted just like @marcaaron said.
If you look at messages sent over WS via dev tools, you'll see event pusher:unsubscribe immediately followed by pusher:subscribe.

Here is quick reproduction demo video (steps 6-9):
https://user-images.githubusercontent.com/64093836/124717459-cce41280-df0d-11eb-8ec8-4d435cb10fb6.mp4
Proposal
And just a @marcaaron the fix is just as simple as preventing the navigation if requested route is the current one:
--- a/src/libs/Navigation/Navigation.js
+++ b/src/libs/Navigation/Navigation.js
@@ -58,7 +58,8 @@ function navigate(route = ROUTES.HOME) {
     // Navigate to the ReportScreen with a custom action so that we can preserve the history. We're looking to see if we
     // have a participants route since those should go through linkTo() as they open a different screen.
     const {reportID, isParticipantsRoute} = ROUTES.parseReportRouteParams(route);
-    if (reportID && !isParticipantsRoute) {
+
+    if (reportID && !isParticipantsRoute && navigationRef.current.getCurrentRoute().path !== `/${route}`) {
         navigationRef.current.dispatch(CustomActions.pushDrawerRoute(SCREENS.REPORT, {reportID}));
         return;
     }

Here is a video with a fix working (no unsubscribe event, no chat redrawing):
https://user-images.githubusercontent.com/64093836/124717980-50056880-df0e-11eb-8e5d-c9a488b07203.mp4
Thanks.

@marcaaron I don't think there's a way to keep the history in our Drawer without reseting the navigation state. We could try:

Nesting a StackNavigator in our DrawerNavigator
Writing a custom router based on the Drawer router that deals differently with the history.

But I'm not convinced it's worth it, our implementation works well apart from the remount.

To fix this one we have to skip the reset when we're navigating to the same report.

We start passing the navigationRef to our pushDrawerRoute here. We'll need it to dispatch multiple actions and to get the RootState.
In our pushDrawerRoute, get our active report using navigationRef.current.getRootState(). We can't use the state from the dispatch here since if there's an open modal above the report the dispatch state will be from the modal.
If our active report is the same as the one we're trying to push we:

Dispatch StackActions.pop() if our state.type != 'drawer'
Dispatch DrawerActions.closeDrawer().
I don't think we have to check for smallScreenWidth before closing the drawer, it doesn't have any effect on big screens.

@dklymenk that proposal is half of the story as we need to control the drawer + dismiss any modals

But I'm not convinced it's worth it, our implementation works well apart from the remount.

@rdjuric I'm inclined to agree with you here. And the proposal sounds like it's moving in the right direction (perhaps we can find a better way still in the review). I do wish there was a simpler way, but keeping some semblance of browser history is also a priority for us.

PR is up at #3945!
Do you want to take a look at it @marcaaron? Pullerbear requested a review from someone else 😅

I think I missed the step of adding the Eng label to this so I'm going to do that so we can get another engineer in here just in case Marc is busy.

Triggered auto assignment to @nickmurray47 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Created Upworks Job
External: https://www.upwork.com/jobs/~01990e714d0d1f8b93
Internal: https://www.upwork.com/ab/applicants/1413362641408704512/job-details

Hey there @nickmurray47 or @marcaaron can you let me know if the PR looks good for this project? Thanks!

Taking a look now!

The proposal looks good to me as far as I can tell.
I had the same kinda nitpicky concern that @rdjuric brought up with the hard-coded line 'routes[0].state.routes[0].params.reportID'. I'd much rather have that in some kind of getActiveReport(rootState) like you mentioned.

It looks like the PR has been merged already?

PR was merged, holding for 7 days to ensure no regressions and will pay on Upwork July 19.

@Christinadobrzyn Thanks, Christina! Just a note that the PR was merged 4 days ago
@nickmurray47 nice, I'll open another PR to improve that line later

@rdjuric is paid in Upwork! Thank you for working on this!


add download folder or compress folder in to zip option

i like to have download a folder option or compress the folder in to zip file option which will help to reduce the time need to download large contents in a same folder otherwise we have to download files one by one

Duplicate of https://github.com/quasar/Quasar/issues/262


question: Write go to Master origin ?

hey @benbjohnson
I need to set this up with Pocketable, and wanted to know the sure fire way to do this on a globally replicated fly setup.
Does this fly config make it so that writes go to Master ( origin DC as some would call it ), and reads go to Secondaries ?
Because of the Anycast fly system, a user will go to nearest DC, so on a http  write, its hitting the Secondary DC ( closest to Usr ) and then under the hood the DB write is hitting Master DC Sqlite DB ?

Also if there is a better example, please let me know, as this looks a bit old :)

@gedw99 The read replication was removed from Litestream because it was untenable. Replication was implemented in LiteFS instead.

I'll mark this repo as archived.


Virtual workspaces seem to have limited setting set (like the browser version)

Open /pylance-release using Open Remote Repository
Navigate to the diagnostics.py file

Expected result:
A bunch of errors.
Actual result:
Only syntax errors show up. It looks like all the other errors are set to limited mode.

It also seems that auto import doesn't work with limited settings?
The codeactions.py file doesn't show any code actions for things like this:
os

And this doesn't show the auto import completions:

Same with add extra paths:

Move symbols doesn't work either.
Request workspace/executeCommand failed with message: Cannot read properties of undefined (reading 'startsWith')

Also inlay hints feature is not working.

Anything that needs to apply an edit also fails. You get this error message:
2024-02-29 13:07:25.442 [info] [Error - 1:07:25 PM] Request workspace/executeCommand failed.
2024-02-29 13:07:25.442 [info]   Message: Request workspace/executeCommand failed with message: applyEditSync failed with error 0
  Code: -32603

Move file doesn't seem to work either

Internally it seems it doesn't pick up the environment. I keep seeing this:
2024-07-24 14:22:31.583 [info] [Info  - 2:22:31 PM] (26556)   Executing interpreter: 'python'
2024-07-24 14:22:31.583 [info] [Info  - 2:22:31 PM] (26556)   Skipping 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\python311.zip' because it is

any updates here?

Virtual workspaces require the enableSyncServer setting. That work was postponed because it slowed everything down. The tentative solution was to detect virtual workspaces and restart the server in sync mode, but that's a lot of work. The general lack of people using virtual workspaces makes this not a super high priority at the moment.


JOSHUA-257 Add license headers to all Python scripts

This issues addresses https://issues.apache.org/jira/browse/JOSHUA-257

LGTM


WRN-18652: Make drawing controls optional

Enact-DCO-1.0-Signed-off-by: Adrian Cocoara<EMAIL_ADDRESS>Checklist

[x] I have read and understand the contribution guide
[ ] A CHANGELOG entry is included
[ ] At least one test case is included for this feature or bug fix
[x] Documentation was added or is not needed
[ ] This is an API breaking change

Issue Resolved / Feature Added
drawingControls and drawingUtils are rendered optionally
Resolution
Additional Considerations
Links
WRN-18652
Comments

The functionality from #1193 seems to be lost. Can you check? Therese should be 8 preset colors


updating to non-deprecated SwiftPM usage

When following the README documentation, the code example for adding the dependencies to a Package.swift reported as being deprecated (I was using Swift 5.7 - beta release). The updates were simple and minimal, so I wanted to provide them back to prevent someone else from stumbling over the same.
The change updates the dependencies to use enumeration structures in SwiftPM instead of the strings mechanism which was prevalent in earlier Swift versions.

The beta is already out, so I don't see any compelling reason to wait.


require error test-harness

raynos at raynos-Precision-5530
~/projects/fake-ses on master*
$ nectar test/index.js
[*] Generating source file
[!] Require error : ./test-harness

raynos at raynos-Precision-5530
~/projects/fake-ses on master*
$ head test/index.js
'use strict'

const test = require('./test-harness').test

/** @typdef {import('aws-sdk)} AWS */

It looks like it does not understand require('./test-harness') but it DOES understand require('./test-harness.js')
I changed it to a full relative filename and it works.

@Raynos ,
Thx, I will update the require function

I updated the require function, should be corrected

Can confirm, this fixed it.
I still get the "does not support async method / function" error but this one is fixed.


Using transport helper for calling http.request().

This (reference to http.request) assumes (for now) that http is an instance of httplib.Http.
Alternative approach to #583. Towards #128.
Note that this PR stops short of

just using http instead of http.request
changing the input argument in all helpers from http_request to http

It still seems strange to me that http is an argument to transport.request.

@jonparrott Baby steps

@jonparrott Baby steps

But it makes me feel icky.
But more seriously this looks fine so long as there's another PR to nix the http arg.

Actually, why not go ahead and make http and optional arg to transport.request?

I'd rather have a discussion first about your idea of "under the covers" vs. up-front http. Let's hold off on making it optional until we can hash out more details.
transport is essentially complete, except for possibly adding a helper to get status or other headers from a response object.

I'd rather have a discussion first about your idea of "under the covers" vs. up-front http. Let's hold off on making it optional until we can hash out more details.

SG.

@jonparrott Good to merge? @nathanielmanistaatgoogle any thoughts?

I'm fine with it for now.

Resolve conflicts and poke me again?

@nathanielmanistaatgoogle resolved


Using Redux-Saga instead of Redux-Thunk

I wanna ask a feature

Based on this article Using Redux-Saga has some benefits to Redux-Thunk

Expected Behavior
Handling asynchronous actions buy using Redux-Saga
Actual Behavior
But now all of the asynchronous actions are handled by using Redux-Thunk
Your Environment

Client OS: Mac OSX
Browser and its version: Google Chrome -latest version
The version of node: 10

i think redux-saga is a nice too.

Dear @dayrlism10, yes the Redux-Saga is nice but actually, it has many benefits to redux-thunk

you mean redux sage and redux thunk can work together?

@dayrlism10 , Absolutely, Both can work together but I don't mean that you said. I mean we could implement Redux-Saga and completely remove redux-thunk.

@amerllica Redux-Saga is great but more learning curve. Some ppl don't need it that's why I choice Redux bcz it's basic and common.


feature request: dbfs

dbfs as in Databricks File System (https://docs.databricks.com/data/databricks-file-system.html)
I can write the pyspark.sql.dataframe.Dataframe to a parquet file and use data.dataframe.read_parquet to read it in. However, I tend to use tables (dbfs) for efficient usage on databricks. I also use delta tables which are essentially a way of adding version numbers to tables (https://docs.delta.io/latest/index.html).
It would be nice to bring this data into the pydata ecosystem for creating dashboards, EDA, machine learning etc.
I started taking a look at this over at dask-sql using pyhive https://github.com/nils-braun/dask-sql/issues/83

Looks very doable given the API at https://docs.databricks.com/dev-tools/api/latest/dbfs.html
However, the docs seems to suggest that intended usage is to mount the FS, so you can interact with it as local files. Is this method lacking? Are you looking for something that you can access from outside the cluster?

Thanks. Wasn't familiar with that API. I'll check it out.
Yes. Ideally outside of the cluster. e.g. (for dask sql) instead of
c.create_table("taxi", "az://nyctlc/green/puYear=2019/puMonth=1/*.parquet", storage_options=storage_options)
it could be
c.create_table("taxi", "dbfs://nyctlc.green", storage_options=storage_options)

Setting it up looks pretty simple, but I have no idea how you would go about testing it

Likewise. Would be nice to get help from databricks folks. Or if there is something like azurite which is used for testing adlfs.

if there is something like azurite

I'm not aware of it, but someone should at least search around.

I have unfortunately also not found any test/mock software (in general it seems, the ecosystem for client software to be used outside of the cluster is quite rare for dbfs). I think one would need to mock the API ourselves...
However, as we only need the dbfs part, it is only around 10 endpoints. I am happy to help here if you like!

I suppose we could always record with vcrpy, so long as some developer has access to a real cluster; but my experience with gcsfs suggests this is often more pain than it's worth.

However, as we only need the dbfs part, it is only around 10 endpoints. I am happy to help here if you like!

That would be great! Perhaps we could make our own mini "brickulite".

I have just seen that the databricks CLI tool has some tests, maybe we could learn from them: https://www.github.com/databricks/databricks-cli/tree/master/tests
Maybe we could also just use their API python implementation and code against this. We would then only need to mock this part, which should be mich easier (as they will fix their CLI tool probably much faster than we do)

https://github.com/databricks/databricks-cli/blob/master/tests/dbfs/test_api.py#L81 ?

Yes. Sorry, I did not have the time to look into it in more detail. It is not a lot and it seems they are just mocking away their own API implementation.
Might still be worth to maybe use their code, so that we do not need to implement the server interaction again.
I would be able to have a look into it next weekend, but if anyone has already some time before that, I am happy to contribute.


Bug: No hover background for Navbar icons

Describe the issue

What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome

Thanks for repotting this issue. Comparing it to the icon buttons here: https://modus-bootstrap.trimble.com/components/buttons/#icon-only-buttons - it looks like the btn-text-dark or btn-text-secondary CSS class is needed.

yep, adding that class works! I'll make a PR for it later today.
https://codepen.io/coliff/pen/gOjWORp


prefix docker.image with dockerhub repo as the release will fail to p…

…ull the base image if staging to a different registry when performing docker:build docker:push

[merge]


Adds concurrency to cluster context command

Adds concurrent go connections to retrieve data for the cluster context command.  In testing, this sped up retrieval and printing, shaving 6-12s from the overall time required to gather cluster context. It's even more impactful with the --full flag, queuing up the time-consuming AWS stuff right away.

Question: what prevents the function from returning before all the data is queried? In the current setup, I would assume we just start all the coroutines and return immediately?
See my go playground example:
https://go.dev/play/p/QBqHvB_0yFe

My usual stance is to avoid multithreading unless there's a noticeable performance issue. I'm not opposed to this change, but there are always more risks and maintenance woes with concurrency - were we observing any issues with this command's response times?

Another question I have: will the output be in a different order every time now potentially? I don't think this is a problem to be clear, but I'm curious regardless.

/hold

/unhold


[bug]: Deformed Images, Noise in final image when using karras samplers and high steps.

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
8GB
What happened?
After completing the instalation It seems to me there might be a problem regarding the denoising schedulers, and images come out with lots of noise when using k diffusion and high steps (<50)
I tried copying the Horse Image from the toolkit example page, and the result was this atrocity...

I copied the entire prompt, seed, image size and cfg, but instead of a pony I got a albino chupakabra.
Also I tried asking for help in the discord but a bot kept flagging me for explicit language or imagery, so thats why im posting this here.
Screenshots
No response
Additional context
No response
Contact Details
No response

Which k sampler are you using?

I think that what's happened here is between the current release and the last one we did change the k-diffusion noise schedule to allow the samplers to work better at low (<30) step counts. It looks like for this specific prompt the k_euler_a sampler creates a monstrosity. Either increasing the step count modestly, or switching to another k-sampler returns a more acceptable image. If you are using the CLI, you can restore the original noise schedule by passing --karras_max=0 at the invoke> line. Currently there is no easy way to do this on the Web side, but this was an oversight and I'm fixing it now.


win32 hook caused OSError: exception: access violation writing 0x00000102

After running the following , the mouse cursor moving speed becomes a bit slow, guess need enchantment ,
import win32api
import win32con
from threading import Timer
from pywinauto.win32_hooks import Hook
from pywinauto.win32_hooks import KeyboardEvent
from pywinauto.win32_hooks import MouseEvent

def on_timer():
    """Callback by timer out"""
    win32api.PostThreadMessage(main_thread_id, win32con.WM_QUIT, 0, 0);

def on_event(args):
    """Callback for keyboard and mouse events"""
    if isinstance(args, KeyboardEvent):
        if args.current_key == 'A' and args.event_type == 'key down' and 'Lcontrol' in args.pressed_key:
            print("Ctrl + A was pressed");

        if args.current_key == 'K' and args.event_type == 'key down':
            print("K was pressed");

        if args.current_key == 'M' and args.event_type == 'key down' and 'U' in args.pressed_key:
            hk.unhook_mouse()
            print("Unhook mouse")

        if args.current_key == 'K' and args.event_type == 'key down' and 'U' in args.pressed_key:
            hk.unhook_keyboard()
            print("Unhook keyboard")

    if isinstance(args, MouseEvent):
        print(args.current_key,'--------',args.event_type)
        # if args.current_key == 'RButton' and args.event_type == 'key down':
        #     print ("Right button pressed")

        # if args.current_key == 'WheelButton' and args.event_type == 'key down':
        #     print("Wheel button pressed")

hk = Hook()
hk.handler = on_event
# main_thread_id = win32api.GetCurrentThreadId()
# t = Timer(5.0, on_timer)  # Quit after 5 seconds
# t.start()
hk.hook(keyboard=True, mouse=True)

and after playing around (include moving mouse cursor) for a while ,  got
Traceback (most recent call last):
  File "C:\Users\i\Downloads\hook_and_listen.py", line 44, in <module>
    hk.hook(keyboard=True, mouse=True)
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 548, in hook
    self.listen()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 591, in listen
    self._process_win_msgs()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 575, in _process_win_msgs
    res = windll.user32.PeekMessageW(pointer(message), 0, 0, 0, win32con.PM_REMOVE)
OSError: exception: access violation writing 0x00000102

@redstoneleo, I tried your example with the latest code of pywinauto from the master branch, on my win8.1 and py35-x64 and py34-x86. So far it works for me. It looks like you run on py35 x86, please confirm. Which OS version do you use ? How long you run this script ? A couple of minutes or hours? ;-)

Tested on: Python 3.5.2, Win7 32bit for a couple of minutes
I got the exception again
Traceback (most recent call last):
  File "C:\Users\i\Downloads\hook_and_listen.py", line 44, in <module>
    hk.hook(keyboard=True, mouse=True)
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 548, in hook
    self.listen()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 591, in listen
    self._process_win_msgs()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 575, in _process_win_msgs
    res = windll.user32.PeekMessageW(pointer(message), 0, 0, 0, win32con.PM_REMOVE)
OSError: exception: access violation writing 0x00000102

@redstoneleo , do you mind trying a small change in pywinauto sources?
diff --git a/pywinauto/win32_hooks.py b/pywinauto/win32_hooks.py
index 831864f..5531d4c 100644
--- a/pywinauto/win32_hooks.py
+++ b/pywinauto/win32_hooks.py
@@ -570,8 +570,8 @@ class Hook(object):

     def _process_win_msgs(self):
         """Peek and process queued windows messages"""
-        message = wintypes.MSG()
         while True:
+            message = wintypes.MSG()
             res = windll.user32.PeekMessageW(pointer(message), 0, 0, 0, win32con.PM_REMOVE)
             if not res:
                 break

Thanks for your kind help !
I changed the pywinauto source, tested nearly a minute , then
Traceback (most recent call last):
  File "C:\Users\i\Downloads\hook_and_listen.py", line 44, in <module>
    hk.hook(keyboard=True, mouse=True)
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 548, in hook
    self.listen()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 592, in listen
    self._process_win_msgs()
  File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pywinauto\win32_hooks.py", line 576, in _process_win_msgs
    res = windll.user32.PeekMessageW(pointer(message), 0, 0, 0, win32con.PM_REMOVE)
OSError: exception: access violation writing 0x00000102

@redstoneleo, I was able to reproduce this problem on a VM with win7-x86. For me it fails immediately on first key press. The problem happens even when running mouse only hooks - hk.hook(keyboard=False, mouse=True). It also fails with just running win32gui.PumpWaitingMessages, so it's hard to say the reason... I'll try to look into it later on.

CFUNCTYPE should be replaced with WINFUNCTYPE in the project, because someone says that

Pay attention to the calling convention if you need to support 32-bit Windows. The 32-bit Windows API generally requires stdcall (callee stack cleanup), so the callback needs to be defined via WINFUNCTYPE instead of CFUNCTYPE.

And I did, then I didn't get the following mysterious exception anymore.
BTW, Events should be captured in a separate thread in order to not  block main program.


Introduce optional argument in compile_tool function

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (df2ef48) 69.82% compared to head (df3a8f0) 69.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   69.82%   69.82%
=======================================
  Files          60       60
  Lines        1455     1455
  Branches      388      388
=======================================
  Hits         1016     1016
  Misses        213      213
  Partials      226      226

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