A way to not have run() with a closure?

First of all - sorry for my ignorance, I'm new to Rust.
In the project I am working we want to use bb8 and we're successfully using it, but something like that:
let fut = self.db_pool
            .run(move |mut conn| {
                conn.prepare("SELECT channel_id, creator, deposit_asset, deposit_amount, valid_until FROM channels")
                    .then(move |res| match res {
                        Ok(stmt) => {
                            conn
                                .query(&stmt, &[])
                                .collect()
                                .into_future()
                                .then(|res| match res {
                                    Ok(rows) => Ok((rows, conn)),
                                    Err(err) => Err((err, conn)),
                                })
                                .into()
                        }
                        Err(err) => try_future!(Err((err, conn))),
                    })
                    .and_then(|(rows, conn)| {
                        let channels = rows.iter().map(|row| {
                            Channel {
                                id: row.get("channel_id"),
                                creator: row.get("creator"),
                                deposit_asset: row.get("deposit_asset"),
                                deposit_amount: row.get("deposit_amount"),
                                valid_until: row.get("valid_until"),
                            }
                        }).collect();

                        Ok((channels, conn))
                    })
            })
            .map_err(|err| handle_internal_error(&err));

Looks quite, well - unbreakable. + we cannot use await!() inside the closure.
From my understanding some things are happening in run() that handle the dropping/idling of the connection. Isn't it possible that this can be change in such a way that Drop (or tbh I don't know what exactly) is implemented that run() can return the connection and we can use it with await!(), but also as a future and to get rid of the tidies Ok((channels, conn)) returns?
Thank you in advance! I will be happy to help and implement this as long as I understand how.

I think r2d2 does implement something similar. There, a PooledConnection struct is used which has a reference to the pool. The pooled connection puts itself back into the pool upon Drop.
I would also be interested in that.

I'm quite new to Rust async development but had some struggles with the run function, too. Is it possible to provide a Pool::get() -> Future<Client, Error>? I think that's how L3-37 does it.
The Future<(_, Client)> return value feels wrong to me.

@khuey with the help of @djc we've managed to get the drop-based interfaces.
Would it be possible for you to check it out and give your thoughts, please?
https://github.com/djc/bb8/pull/3

Using a drop based interface which blocks in an async function is wrong and could cause very awkward deadlocks when the entire reactor hangs because of that.
I recently released deadpool-postgres which is based on async-await and has a non-blocking drop based interface. It doesn't support any of the advanced r2d2/bb8 features and doesn't even aim to compete in scenarios where a more sophisticated connection pooling is desired. It's just dead simple: https://crates.io/crates/deadpool-postgres/

This is in the process of being fixed in #45.

@bikeshedder, why is drop() blocking in an async function worse than other kinds of blocking? I don't necessarily see why blocking in drop() is worse than outside drop() for this.

If you block in an async fn you can end up blocking the executor that is responsible for unlocking the locking primitive you're waiting for. Thus resulting in a deadlock.
In the case of bb8 this can happen quite easily:

Use a tokio executor with only one thread. e.g. #[tokio:main(basic_scheduler)]
Grab a connection A from the pool
Grab a connection B from the pool - that call gets interrupted while holding the mutex lock
Drop connection B which now calls futures::executor::block_on which blocks the executor and waits for the lock which never gets released.

This can also happen with a multi threaded executor as well and will result in hard to reproduce deadlocks. It should be fine to replace that block_on call by something like tokio::spawn and get rid of this problem.
Also there is another thing to be aware of: Futures are not guaranteed to run to completion. Every time you put an .await in your code ask yourself what happens if that code is never run to completion. e.g. https://github.com/khuey/bb8/blob/master/bb8/src/lib.rs#L458 - pending_connections is increased by one (L449) and never reduced again. If the future is interrupted at L458 the count will be off by one. The only way to fix this is by adding a guard implementing a Drop trait to fix the internal state. And this needs to be done without blocking or you can run into the deadlock issue again.
That is by the way exactly how I solved this problem in deadpool: https://github.com/bikeshedder/deadpool/blob/master/src/lib.rs#L107 - In the case of deadpool it's much simpler as the entire code base only contains 3 awaits and uses the new Semaphore locking primitive from tokio and the non blocking Queue from crossbeam.
When benchmarking various pools (bb8, l337, r2d2) in the past I did run into actual deadlocks with bb8. One way to test this is by writing a simple hyper server and benchmarking it with wrk. Upon test completion wrk closes the TCP sockets and doesn't wait for completion. Hyper in response stops executing the futures as the results are no longer needed.
Hope that helps.


Error when starting lldb.exe

OS: Windows
VSCode version:  1.77.3
CodeLLDB version: v1.9.0
Compiler: N/A
Debuggee: N/A

Open up the lldb.exe from terminal
A python error is thrown:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:/Users/noob-destroyer/.vscode/extensions/vadimcn.vscode-lldb-1.9.0/lldb/lib/lldb-python\lldb\embedded_interprete
r.py", line 29, in <module>
    if 'libedit' in readline.__doc__:
TypeError: argument of type 'NoneType' is not iterable

It seems that this error results in the python environment not being probably setup. When I try to run the script command in the lldb REPL I get the following error:
(lldb) script
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_python_interpreter' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'lldb' is not defined
(lldb)

In lldb/lib/lldb-python/lldb/embedded_interpreter.py the imported readline module is from my installed python:
print(type(readline)) gives C:\Users\<user>\AppData\Roaming\Python\Python39\site-packages\readline.py.
It appears that lldb is loading readline from a python outside the embedded one? Is this intended?

BTW, I don't get this error when using the vanilla LLVM LLDB and I am able to use the script command when in the REPL

I don't understand how lldb is finding my installed python. If I remove all python related things from my path, it still imports readline from my local installation.

Do you have Python-specific environment variables (like PYTHONPATH) set up?

Actually, can you please clarify what did you mean by "Open up the lldb.exe from terminal"?

Actually, can you please clarify what did you mean by "Open up the lldb.exe from terminal"?

So, I'm not using the "DEBUG CONSOLE" in vscode. When I did that I got some generic error about something not being right (basically don't remember what exactly it was). So I opened my terminal emulator (WezTerm) running PowerShell and cd to the lldb.exe file in the .~\vscode\extensions\valdimcn....
There I just run ./lldb.exe. There I can see the actual error where the "DEBUG CONSOLE" hides them.

Sorry, I don't think I'll be much help in diagnosing this.   This issue seems to be specific to your machine configuration, so you will need to do the detective work to figure out how lldb ends up finding your external Python installation.  Once we know how this happens, we can discuss possible fixes.


Example in readme.md doesn't work

Code run:
package main

import "github.com/veandco/go-sdl2/sdl"

func main() {
	sdl.Init(sdl.INIT_EVERYTHING)

	window, err := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED,
		800, 600, sdl.WINDOW_SHOWN)
	if err != nil {
		panic(err)
	}
	defer window.Destroy()

	surface, err := window.GetSurface()
	if err != nil {
		panic(err)
	}

	rect := sdl.Rect{0, 0, 200, 200}
	surface.FillRect(&rect, 0xffff0000)
	window.UpdateSurface()

	sdl.Delay(10000)
	sdl.Quit()
}

Expected: an 800x600 window with a 200x200 red rectangle in the corner.
Actual Results: An 800x600 window flashes for 10 seconds, with nothing in it, showing the background of the windowing environment. Linked screenshot.

Linux version: Ubuntu 17:04.
% glxinfo | grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.3
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 17.0.3
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

Hi @jrmiller82, could you run this similar native C code and see if it's any different?
#include <SDL2/SDL.h>

int main()
{
    SDL_Window *window;
    SDL_Surface *surface;
    SDL_Rect rect = {0, 0, 200, 200};

    SDL_Init(SDL_INIT_EVERYTHING);

    window = SDL_CreateWindow("test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_SHOWN);
    if (!window) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    surface = SDL_GetWindowSurface(window);
    if (!surface) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    SDL_FillRect(surface, &rect, 0xffff0000);
    SDL_UpdateWindowSurface(window);
    SDL_Delay(1000);

    SDL_DestroyWindow(window);
    SDL_Quit();
}

It won't compile; I wonder if I have a path issue. Going to reboot and try again and see. I definitely installed the SDL dev packages per the install instructions though.
% gcc example.c
/tmp/cczYrsZT.o: In function `main':
example.c:(.text+0x39): undefined reference to `SDL_Init'
example.c:(.text+0x60): undefined reference to `SDL_CreateWindow'
example.c:(.text+0x70): undefined reference to `SDL_GetError'
example.c:(.text+0xa4): undefined reference to `SDL_GetWindowSurface'
example.c:(.text+0xb4): undefined reference to `SDL_GetError'
example.c:(.text+0xf1): undefined reference to `SDL_FillRect'
example.c:(.text+0xfd): undefined reference to `SDL_UpdateWindowSurface'
example.c:(.text+0x107): undefined reference to `SDL_Delay'
example.c:(.text+0x113): undefined reference to `SDL_DestroyWindow'
example.c:(.text+0x118): undefined reference to `SDL_Quit'
collect2: error: ld returned 1 exit status

Scratching my head... Can't figure out what's going on. Maybe there's some sort of bug in Debian / Ubuntu upstream? It sure looks like all the right SDL packages are installed...
% sudo dpkg-query -l '*sdl*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version       Architecture  Description
+++-================-=============-=============-======================================
un  libsdl-1.3-0     <none>        <none>        (no description available)
un  libsdl-1.3-dev   <none>        <none>        (no description available)
ii  libsdl-ttf2.0-0: 2.0.11-3      amd64         TrueType Font library for Simple Direc
un  libsdl1.2        <none>        <none>        (no description available)
un  libsdl1.2-all    <none>        <none>        (no description available)
un  libsdl1.2-esd    <none>        <none>        (no description available)
un  libsdl1.2-nas    <none>        <none>        (no description available)
un  libsdl1.2-oss    <none>        <none>        (no description available)
ii  libsdl1.2debian: 1.2.15+dfsg1- amd64         Simple DirectMedia Layer
un  libsdl1.2debian- <none>        <none>        (no description available)
un  libsdl1.2debian- <none>        <none>        (no description available)
un  libsdl1.2debian- <none>        <none>        (no description available)
un  libsdl1.2debian- <none>        <none>        (no description available)
un  libsdl1.2debian- <none>        <none>        (no description available)
un  libsdl1.2debian- <none>        <none>        (no description available)
ii  libsdl2-2.0-0:am 2.0.5+dfsg1-2 amd64         Simple DirectMedia Layer
ii  libsdl2-dev      2.0.5+dfsg1-2 amd64         Simple DirectMedia Layer development f
ii  libsdl2-image-2. 2.0.1+dfsg-2b amd64         Image loading library for Simple Direc
ii  libsdl2-image-de 2.0.1+dfsg-2b amd64         Image loading library for Simple Direc
ii  libsdl2-mixer-2. 2.0.1+dfsg1-1 amd64         Mixer library for Simple DirectMedia L
ii  libsdl2-mixer-de 2.0.1+dfsg1-1 amd64         Mixer library for Simple DirectMedia L
ii  libsdl2-ttf-2.0- 2.0.14+dfsg1- amd64         TrueType Font library for Simple Direc
ii  libsdl2-ttf-dev: 2.0.14+dfsg1- amd64         TrueType Font library for Simple Direc

There's something weird going on... most of those undefined references don't exist in any of the headers when I do a grep -iname "SDL_INIT" ./* on /usr/include/SDL2/. Any ideas?

I copied all the *.h* headers into my local directory with the example.c file and switched the include to #include "SDL.h" and still getting the same failure to compile.

Ah perhaps you didn't link the libraries? Try this gcc example.c -lSDL2. It should output an a.out executable file.

D'oh! (There I go showing my lack of C knowledge). Yes, with the -lSDL2 flag it compiled just fine. Same issue as above. So there must be something wrong with Debian and Ubuntu's SDL packages. I'll see if I can slap fedora on a VM later today and try the same thing.

I just installed Fedora 26 to a VM and to pure golang example works as expected. So something must be wrong in the Debian/Ubuntu realm. Any ideas on how to fix?

It looks like it may have something to do with Mir; I can't even install SDL2 from source on ubuntu 17.04 without getting all sorts of compiler errors referencing mir. Tried to compile both the 2.0.5 release as well as the tip their mercurial repo. Both fail. Quite frustrating/ (I know that's not this repo's fault... just trying to get this working so I don't have to change my dev system to fedora or arch etc...)

Hm... perhaps there's an error while drawing that SDL2 returns? Could you try this updated code and see if it reports any error? I added a couple of error checks for SDL_FillRect() and SDL_UpdateWindowSurface(). It doesn't seem to happen on my Ubuntu 17.04, VM or not. I do use the Nvidia driver on my non-VM Ubuntu 17.04.
#include <SDL2/SDL.h>

int main()
{
    SDL_Window *window;
    SDL_Surface *surface;
    SDL_Rect rect = {0, 0, 200, 200};

    SDL_Init(SDL_INIT_EVERYTHING);

    window = SDL_CreateWindow("test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_SHOWN);
    if (!window) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    surface = SDL_GetWindowSurface(window);
    if (!surface) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    if (SDL_FillRect(surface, &rect, 0xffff0000) != 0) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    if (SDL_UpdateWindowSurface(window) != 0) {
        fprintf(stderr, "main: %s\n", SDL_GetError());
        return -1;
    }

    SDL_Delay(1000);
    SDL_DestroyWindow(window);
    SDL_Quit();
}

Same issue as before running the new code; and no errors are being printed to the console. Is there a log file somewhere I should be checking?

I see.. I don't know any log that could be related and am clueless to what is going on, so I have asked on the SDL2 forum here https://discourse.libsdl.org/t/blank-drawing-using-sdl-fillrect/22835

Thank you for your help.
Sent from my iPhone

On Jul 25, 2017, at 03:34, Lilis Iskandar<EMAIL_ADDRESS>wrote:
I see.. I don't know any log that could be related and am clueless to what is going on, so I have asked on the SDL2 forum here https://discourse.libsdl.org/t/blank-drawing-using-sdl-fillrect/22835
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

It seems like ChliHug from the SDL2 forum is right. Kubuntu 17.04 seems to do something different when creating the window. If you put some delay after creating the window or put the drawing in a loop, it should work okay.

Let me try with a different DE like Gnome or XFCE and see what happens.

Yup. It worked on Unity on 17.04. Strange. Sorry for all the confusion. I appreciate your time helping me!

No worries! Let me know if there's anything else you need help with.


Generate a sha256 hash for each of the published istioctl archives.

With the istioctl archives being published to GCS, the archives should additionally ship with corresponding sha256 hashes to ensure that these files are delivered safely and accurately.

The merge of PR #15629 closes this issue.


[sival] Enable UART baud rate test on FPGAs

Needed a couple of fixes to make it more reliable.

FPGA failure (//sw/device/tests:i2c_target_test_fpga_cw310_sival) is known flaky and unrelated.


AMO shenanigans

why do you keep publishing/removing/republishing your add-ons on AMO?

Sorry about that,
Mozilla reviewers keeps either marking my web-extensions 'incomplete' ("you need to upload a newer version") or 'disabled' ("you have to upload a brand new web-extension with new generated signature since we've blocked your current web-extension from being installed on our Firefox browsers").
Just the at the start of the week a reviewer marked 4 web-extension disabled,
putting them in this Mozilla-bugzilla-bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1602022 (feel free to view/look for items with "@eladkarako.com"),
after hours of me trying to figure out how/why,
I've got a very rude reply, which I won't going to repeat in here...,
saying my web-extensions are 'obfuscated' for some reason,
and since I'm also hosting them on 3'rd party website (in this project-releases section),
he (the reviewer) felt that he should also mark them as "blocked" so the browser will download its daily "block-listed" addons, any installed instances will be blocked as well.
I was sending both the reviewer and the generic email asap. response that none of the code I've submitted to firefox not even minified for whitespace, but didn't got reply so far (6 emails were sent by me... the last email includes a screenshot of every file in the XPI archive showing that I, in-fact have plain text content everywhere) - regardless, I was not really answered yet.
I'm not the only one having problems with the guys reviewing web-extension or the general way which are developers are addressed by, which is not the nicest way,
so as long my web-extensions are marked as "approved",
which means they are signed by the mozilla-server and ready for installation on Firefox (desktop/mobile) I download the signed XPI,
and upload it, as a backup to https://github.com/eladkarako/chrome_extensions/releases/tag/LatestFirefox
where I and other users can have a 24/7 ability to download/use/reivew its content (archive) without being too depend on its ability on the AMO website, I don't have them generally available there anyway.
some time I preform a more-than usual update the includes various other web-extension (I base my web-extensions on a kind of a template I've designed which works well for me, and from time to time I update it, which means about 30+ web-extensions will get an updated version),
in that case I upload every few hours a new web-extension, and wait for it to get approved,
this whole thing takes about few days,
so if you've being noticing that the web-extension suddenly available for download,
that is the reason.
so to your question,
the web-extensions I've designed/alpha-testing/use are to be accessed from this repository's release section, where they are available 24/7. Any shenanigans (I love that word :]) are indirectly related to some nasty annoyances introduced by the AMO reviewers or the nice people maintaining https://github.com/mozilla/addons-server
that was quite long explanations.
I hope I've found that informative and entertaining...
happy holidays :) 🎄🕎 🎁🎅


Missing Social Media icons

Would be lovely to have them somehow in the footer!

Good suggestion! While we aren't planning to add them to this template, could be something nice to add on your fork 😄

Thanks for the update!


[Feature Request] Pass through on Import Error (eg Concept ID not found)

Hi,
I have found Archi very useful in finding Solution Architecture gaps in requirements, CMDBs and other models through semi-automated approaches creating CSV import files using Excel. The only trouble is Archi stops the CSV import on every missing "Concept ID" not found the elements.csv file.
My feature request is simply that there is an 'option' to log and omit the relationship when a missing 'Concept ID' is found on processing the relationships.csv, rather than a hard stop of the import on the first find. At the end of the import the log should be shown in simple text box (allowing copy of the text).
Thoughts?
Many thanks
James Usmar
PS: Apologies, but this is one of a couple of feature requests around the CSV Import feature.

Are you seeing the missing concept message because you are importing relationships that reference non-existent elements? Would it not be better to try and address the cause of the problem in the CSV file? There's a reason that the error is thrown and stops the import process, in case the model gets corrupt.

I do agree that as a principle the data model must not become corrupt, and so a relation being imported with a missing corresponding concept id in the elements file must not happen... and yes, the error is because on or the other end of a relationship is missing in the elements file as an object.
Accordingly an option toggle should default to a "stop" rather than "omit, log and continue".
The root of the issue is efficiency, time and "value". If I knew the root cause in the empirical data I would have addressed it. I am finding that actually I need to go back to the source empirical data and understand what went wrong at a fundamental level from the source masses of diverse Architecture data I am looking at.
I have found in modelling an existing Architecture it is a little time consuming, when there are a "good few" errors and you are trying to just capture the extent of the data error to address the root cause through identify the pattern of the error. Hence being able optionally to bypass the errors, omit the relationship and get a log of them, would create the most value from an Architecture perspective and be the most valuable use of my time.
Just a thought, if would be a quick win.
Many thanks for your consideration.


[ReadHandler] Remove timing related flags

Mentionned here: https://github.com/project-chip/connectedhomeip/pull/28104/files#r1269742928
TestReadInteraction relies on flags to simulate expiration of ReadHandler timers, they have been migrated to the ReadHandlerNode object of the ReportScheduler and additionnal test code was ifdefed in to allow those flags to work as they were originally implemented.
We need to remove all code  in the #ifdef CONFIG_BUILD_FOR_HOST_UNIT_TEST and modify our test to stop relying on the flags.
Easiest way would be to have the test wait for the timers to elapse but that would slow down a test that is already slow.
Other options would be: modify the timestamps to be <= now and ensure to call the appropriate callbacks if expiration is supposed to have happen, manually bump up the timestamp, change the concept of "now" in checks for reportability.

Will help reduce ram usage for : https://github.com/project-chip/connectedhomeip/issues/28277


Implement more annotation support for graphql type factory - fixes #1488

Implements #1488
TODO / Questions:

[ ] is the isEntityView check required in isNotNull or is it not needed, since it can only be called on EntityViews (filtered before)

Trying to build the project locally to understand the issues in the tests, but failing
mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId=blaze-persistence-archetype-core-sample" "-DarchetypeVersion=1.6.6"

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:3.0:check (check-license) on project blaze-persistence: Some files do not have the expected license header -> [Help 1]

Used to build the entire project using (JDK 17)
set jdk8.home=~/.jenv/versions/1.8
mvn install -pl '!website,!documentation' -DskipTests

But that fails with the very same error

Trying to build the project locally to understand the issues in the tests, but failing

Don't worry about that, you simply can't statically refer to the javax class as that might not be on the class path, but I'll fix that when integrating your work.

But that fails with the very same error

The license error you mean? That shouldn't fail, unless you have an old version of the source tree or are running from a subdirectory.

The license error you mean? That shouldn't fail, unless you have an old version of the source tree or are running from a subdirectory.

Sorry that was the case, i was not aware my repo was actually based on my fork. Merged downstream now and refreshed the PR, the local build is working now. Trying to update the spring dgs example to a more recent DGS version

Don't worry about that, you simply can't statically refer to the javax class as that might not be on the class path, but I'll fix that when integrating your work.

do you mean that the test issues are nothing to worry about?

This was fixed as part of https://github.com/Blazebit/blaze-persistence/commit/7be4bda106599954b61b3d171a1be042349060b8


hand landmark

Hello, I am currently studying the hand tracking module in mediapipe. I now want to understand the relevant information inside the hand landmark detection model. However, the document only writes about the detected hand area through regression (ie direct coordinate prediction) The 21 3D hand joint coordinates inside are used for precise key point positioning, and no more detailed related information is given. For example, there are several convolutional layers, pooling layers, activation functions and other information inside the model. Can you rely on help from related parties?

Hi @warmsh, you may find some details in https://arxiv.org/pdf/2006.10214.pdf

Hi @warmsh, Please go through the above comment. Thanks!

We are closing this issue now due to lack of activity.


How to detect the end of a model fitting in a callback?

I need to invoke some function after the end of a model fitting. How can I detect this in the callback? I can figure it out by comparing current iteration with the last but it's not always true (for example I can use early_stopping callback).

I think there is no straightforward way to do it right now. We can add a callback point after training stage ends.

I need to collect some kind of data in "a buffer" at every iteration, and after a training, it should be saved. I think that usage of a global buffer is not a good idea, so I've supposed there is a better solution. For example, local buffer and detection of the end of the training.

@yutkin in this case, I think the easiest way to do it is copy all codes of early stopping callback and add your owns.

close now. @wxchan @yutkin feel free to reopen if needed.


Add support for proxy server

We are trying to send data from an on-premise Kafka Connect cluster to a Clickhouse Cloud environment. Our infrastructure requires us to use a proxy server.
This cannot be configured in the connector at the moment

@johanvandevenne, What proxy are you using?


Fix DocumentProvider.pipeline/1 typespec

Hi! Just a small typo fix 😄
The typespec for the DocumentProvider.pipeline/1 callback is not the right one. The function does not receive a %Absinthe.Plug.Request{} struct — it receives a %Absinthe.Plug.Request.Query{} struct.
Thank you!

Thank you!


"get started with html" button leads to react docs

A wrong link on this page https://www.material-tailwind.com/blocks

Hey @gtitov,
This issue is already fixed.
Cheers,
Sajad


Horizontal resizing is broken on Windows

It seems resizing the viewport horizontally is broken on Windows.

I can't open Sameboy.exe, I managed to get it work only with Sameboy_debugger, and it doesn't let me enlarge the window horizontally (only vertically but in part) or go fullscreen (only with widescreen enabled it seems), here some screenshots. Thank you for your time.

https://www.reddit.com/r/emulation/comments/bg2tx2/widegb_playing_game_boy_games_on_wide_screens/eo0opzk/?context=3

Windows version: 10 Pro 1803 build 17134.765

Im also having the very same issue, im running Windows 10 Pro 1809 Build 17763.503.

I published a new version to fix the crash on launch. Does it work better now?
Also, do you still reproduce the horizontal resizing issue with this new version?

Now I can open Sameboy.exe, but the resizing issues are still there, exactly the same as before.

Thanks for the testing. I couldn't reproduce the resizing issue myself, but I only have a Windows Virtual machine, so that may be why.
Could you:

Tell me what Scaling factor does your Windows settings use;
Record and post a small video of the resizing issue? I wonder if there is something I'm missing in the testing scenario.

Thanks for the testing. I couldn't reproduce the resizing issue myself, but I only have a Windows Virtual machine, so that may be why.
Could you:

Tell me what Scaling factor does your Windows settings use;
Record and post a small video of the resizing issue? I wonder if there is something I'm missing in the testing scenario.

My Scaling factor is 100%, here's the video.

Any fix/update for the Windows version?

I am also having the same issue, except the screen goes completely black when playing the GameBoy game or in the menu. Also, can you please push whatever changes you did for the new release mentioned here? https://github.com/kemenaran/SameBoy/issues/3#issuecomment-493771286 @kemenaran.


Update the venue specification to include information about covid/health related policies

Describe the change being requested
Add questions to the venue specification to cover post pandemic health/venue policies
State the reason for the change
The pandemic is not over but the world has opened up - we need to live with this new normal
Describe the impact of the change on other parts of the SSI-EOG
There needs to be a small reference to in in the SSI-EOG main sphinx project but the venue specification on GitHub needs updating
Describe any alternatives you have considered (if applicable)
We have a separate health policy - but as this is related to the venue it would seem right to go into the venue specification
Additional context
The was raised as part of RSECon2022 planning by Claire Wyatt

Get Claire's input for the update and add Claire as a co-author on the updated venue specification.

I can share the finished document when it's done.

We could work it into the venue spec as an update or link out to it as an external doc - just putting this in here so we can pickup the convo later.


Heltec WiFi LoRa 32 Oled problem

Hi, I got an Heltec ESP32 with OLED (SSD1306) were I put the latest code properly configured with OLED 1 but nothing is displayed.
I changed oLED.h file to define OLED_SCL and OLED_SDA with PINs 15 and 4 respectively for _PIN_OUT==5 (which I use) but display remains black.
Any suggestion?

Hi,
I do have it working for the 433MHz version of the TTGO/Heltec board, and indeed I made changes to the I2C pins like you did.
Will publish shortly, but still testing some changes I made for the WiFi, I do not remember excatly but there were issues. I init the board with the OLED_RST==16 pin before getting it to work.
So add these lines at the beginning of the init_oLED() function in _OLED.ino:
#if defined OLED_RST
pinMode(OLED_RST,OUTPUT);
digitalWrite(OLED_RST, LOW); // low to reset OLED
delay(50);
digitalWrite(OLED_RST, HIGH); // must be high to turn on OLED
delay(50);
#endif

And
#define OLED_RST 16
Somewhere in the OLED.h file in the right section

Hi, it worked, will you do a PR?

Ok, thanks. I will publish a new version of the code shortly. Still finishing tests for getting a gateway working on 433.175 mhz an 433.375 and 433.575 as well as some new WiFi functions and better support for ttgo/heltec modules.

Done


Retain application focus on render

To @mathieudutour @darknoon,
sketchtool run always brings Sketch to the foreground - super annoying because it takes focus from your editor.
Turns out it's not that hard to do ~= what sketchtool run was doing with raw CocoaScript - I extracted it out to run-sketch-plugin.
Any downsides to this approach? I didn't want to wait for Sketch to patch sketchtool

one downside is that runPluginCommandWithIdentifier:fromBundleAtURL: is deprecated, use runPluginCommandWithIdentifier:fromBundleAtURL:context: instead
But I guess removing the ugly hack I've done to handle the different errors and not bringing sketch to the foreground is worth it
Can you fix the lint errors?

published in<EMAIL_ADDRESS>

@mathieudutour

one downside is that runPluginCommandWithIdentifier:fromBundleAtURL: is deprecated, use runPluginCommandWithIdentifier:fromBundleAtURL:context: instead

I figure we can fix that next. I tried changing it to use runPluginCommandWithIdentifier:fromBundleAtURL:context but it kept crashing - will investigate more.
@bomberstudios any chance we could have insight on when runPluginCommandWithIdentifier:fromBundleAtURL will break? I'll try to get it done by Sketch 44…

Ping here, SketchTool 45 added a --without-activating option so maybe you want to re-add it to skpm or run-sketch-plugin to replace coscript.

done here: https://github.com/skpm/skpm/pull/48 😄

Awesome 👏👏👏


Minor improvements in GitHub webhook and CSS

Hi, I have tried to trigger a build by calling PHPCI's GitHub webhook URL and assumed it would work. At first I was confident since PHPCI returned "...OK...". It did not work though, there was a PHP error message in php_error.log stating that $payload was null when it should have been an array.
The second commit actually loads the PHPCI logo when the app has been installed in a sub directory.
Bye
Rene

If I'm right you have one pull request with multiple changes. Can you split it in multiple pull requests?


[QUESTION] - Migragate or start from scratch?

Which is faster from your estimation? Thanks.

I think migrating is anyway faster. The update function stays quiete the same, except for the signature. You just change the current matching on key events with the Msg you define. The function where you render the ui with draw() stays the same, except that you use the Application instead of the View. Then all the places where you're using the old props builder you need to construct the Component you've defined for each element in your Ui.
The not so easy thing is to handle the fact that the ui model cannot handle the Application, so you may need a wrapper around these two. You can take tuifeed as a reference.
I'm my opinion migrating is not hard, it just takes relatively a long time and it's kinda boring, but I hope satisfying at the end.

Thanks！

And this is no longer used?
pub trait Activity {
    /// ### `on_create`
    ///
    /// `on_create` is the function which must be called to initialize the activity.
    /// `on_create` must initialize all the data structures used by the activity
    /// Context is taken from activity manager and will be released only when activity is destroyed
    fn on_create(&mut self, context: Context);

    /// ### `on_draw`
    ///
    /// `on_draw` is the function which draws the graphical interface.
    /// This function must be called at each tick to refresh the interface
    fn on_draw(&mut self);

    /// ### `will_umount`
    ///
    /// `will_umount` is the method which must be able to report to the activity manager, whether
    /// the activity should be terminated or not.
    /// If not, the call will return `None`, otherwise return`Some(ExitReason)`
    fn will_umount(&self) -> Option<&ExitReason>;

    /// ### `on_destroy`
    ///
    /// `on_destroy` is the function which cleans up runtime variables and data before terminating
    /// the activity. This function must be called once before terminating the activity.
    /// This function finally releases the context
    fn on_destroy(&mut self) -> Option<Context>;
}

I tried to migrate but seems the whole structure changed. Probably I'll start from the example and add my stuff back gradually. Thanks.

The Activity trait is something I use in termscp in order to have different "Ui applications" and to handle their lifecycle easily in the main loop, but it's not related to tui-realm (the activity existed before tui-realm was implemented).
In my migration I'll keep activities, but I will make the struct implementing Activity to have a member Model which holds the UI model, the Application (which is the tui-realm application) and the Context (which holds data shared between activities).

Thanks for the explanation. I always thought activity is a part of tui-realm but I was wrong.


Dynamic way for dynamically linked RTS Haskell distros

Fixes issues with the failure of discovery of platform libraries in Haskell distributions where the RTS was linked dynamically (like Arch Linux for example).

Thanks for this patch! I'm happy to merge when tests pass, but also there isn't anything in our CI to check that this works so it might break again in the future. Do you have any suggestions on how we might add such a check?

Hmm, it also looks like GHC 9.2 doesn't have a GHC.Driver.Ways module and it has been replaced by GHC.Platform.Ways.

Hmm, it also looks like GHC 9.2 doesn't have an addWay'.

Happens that I've overlooked the detail that there's an addWay function, though I haven't seen it since the API docs at Hackage for GHC 9.2 are not currently available.

They are here: https://downloads.haskell.org/~ghc/latest/docs/html/libraries/ghc-9.2.2/index.html

Thanks for this patch! I'm happy to merge when tests pass, but also there isn't anything in our CI to check that this works so it might break again in the future. Do you have any suggestions on how we might add such a check?

Does this repo has a Haskell CI environment that uses dynamic only packages, i.e. every package is built with --enable-shared only, and not dynamic-too neither static only? If so, then that image can be used for checks. Otherwise another image can be created for it.

No, we do not have such an environment already, otherwise we would have discovered this issue earlier :smile:.

Hmm, nix-build release-9.0.nix --arg enableStaticLibraries false works for me on current master, so I don't think this is right.

I'm merging this for now, with the caveat that we currently have no way to check this works and will continue to work in the presence of changes.

I'm merging this for now, with the caveat that we currently have no way to check this works and will continue to work in the presence of changes.

Well, in Arch Linux this is required because every Haskell package is built with -dynamic, so the setWayDynFlag function (by the usage of addWay') appends -dynamic to a GHC session. The hie-bios package also does this with setWayDynamicIfHostIsDynamic so it can be used in those kind of distributions too. I can't wrap my mind around with how to test it in Nix, but AFAICT this works for Arch Linux, maybe that could be used unless there's the way to doing it in Nix :thinking:.


Feature/157 publish jetbrains plugin

Yes you are right sorry. I was just testing some stuff with the workflow.


Perfect Vision is making the background image always visible, even when tokens do not have LoS

The screenshots are from the GM's POV.
When PV is on, walls are not blocking LoS and so the Token can see areas of the background image they should not. Light grey in GM view.
When PV is off, the walls block LoS and the Token cannot see areas of the background image as normal. Dark grey in GM view.

Did you enable Reveal Fog in the scene settings?

Thank you. It's been a few months since I last walled a map, and maybe missed when that setting when in. Thanks for the quick reply. Cheers!


New dispatcher for all windows

I use the option only_active_workspace but sometimes I would like to overview windows from all workspaces, even all monitors. So, I'm asking for another dispatcher that toggles the overview mode in a state that shows windows from all workspaces, regardless of the value of the option.

done


I did not add my hotspot.

I am new user hotspot. I want to setup helium app and i want my hotspot but this is not possible.  The home button is not active and the add hotspot button is black.  Also, when I click the add hotspot button, the button closes.  That's why I can't install.

this is related to #1056 closing as a duplicate


feat: add arrow thin style

Details
I think need a thin arrow. So add a thin arrow style with class.

 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.


Regression - VC View Jobs

v0.11.0 PAI-PROD
How to reproduce

Go to Virtual Cluster page, find a VC with utilization >0 (vc name: be*e), click on the View Jobs link.
go back to VC page;
select another vc whose utilization is 0 (vc name: xi*e, click on the view jobs link

Expectation
View jobs in the job list page
Actual
The jobs shows the previous vc's (be*e) job list.

Will fix with #2535


Properly detect content based text direction on native

Proposed Changes

Expose ICU's u_charDirection function in skiko (need to be released)
Fixed iteration over codepoints (support symbols that do not fit in 2-bytes) and moved it to common
Added proper fallback based on locale text direction (logic from Android)

Testing
Test: More tests TBD
Issues Fixed
Fixes: https://github.com/JetBrains/compose-multiplatform/issues/2875

Before
After


feat: Add cluster_additional_security_group_ids_exclude_cluster_sg_id…

… for excluding the cluster security group id from the list of additional security groups.
Description
Adds a variable cluster_additional_security_group_ids_exclude_cluster_sg_id that defaults to false. When set to true, the list of additional security groups added to the eks cluster will not include the cluster security group. By default, the cluster security group is included.
Motivation and Context
This is useful in the scenario where an existing cluster is being imported with terraform import and the cluster security group was not included in additional security groups. Without this option, the cluster has to be recreated because the module tries to change the list of additional security groups, which forces a replacement
Fixes https://github.com/terraform-aws-modules/terraform-aws-eks/issues/2751
Breaking Changes
None
How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects

[ ] I have executed pre-commit run -a on my pull request

lets stick to the issue before we start opening PRs


New comment local entry for user satisfaction

Just like upvotes, when user replies to a post it takes some time before that new comment appear in post response. it can usually take one minute giving user a worry regarding whether or not the reply actually got registered.
To Reproduce
Steps to reproduce the behavior:

Make a comment to any post
Refresh post details page right after
The comment would not appear

Expected behavior
The experience should feel as snappy and response as possible.
Additional context
Just like we manage local vote map, we can manage local comment map, though we will have to slightly more intelligent about discard the local comments on post refresh as user may refresh the post within one minute.

Yes, let's do it... replicating website behaviour is best for consistent and pleasing user experience.


HazelcastClusterManager#getAsyncMultiMap memory leak

Repeating call cause probably a memory leak. In this call is created a new one HazelcastAsyncMultiMap - a wrapper for Hazelcast MultiMap, it is stored into weak set and send it to the result handler. So if the result handler throw the reference away, it should be removed from weak set too.
But.
There is a call of com.hazelcast.core.MultiMap#addEntryListener(this, true) in the HazelcastAsyncMultiMap constructor, which will store a strong reference to the object to some Hazelcast's ConcurrentHashMap of registered listeners. And it will prevent a garbage collecting of HazelcastAsyncMultiMap instance (and referenced data/objects), which is unused by result handler already.
Detected in version: 3.5.0

@michalsida is this workaround still needed after the fix for vert-x3/vertx-hazelcast#90 is merged in master?

Closing as  vert-x3/vertx-hazelcast#90 should remove the need for creating many multimaps.


Small documentation improvement: add unity

Hello,
A small suggestion to improve documentation: explicit unity :
Document getHumidity() return a value between 0.0-1.0 or between 0.0-100.0, to be interpreted as a percent of humidity.
float getTemperature() returns temperature as °C or °F ?
Thanks

Thanks for this issue,
Will have a look a the documentation to see how to improve.

Created a develop branch and a PR to improve the documentation.
Also includes some other pending updates.


ci: Add git config to rebase code

Try using dummy details in git config to avoid:

Committer identity unknown
...
fatal: empty ident name

error

This PR is 1 commit behind main, to hopefully we can use it to test the rebase logic


Infra 3710 grafana

On top of https://github.com/Affirm/cabot/pull/40, actual changes are in https://github.com/Affirm/cabot/pull/45/commits/3abb1ceae9d6291dc86a668170742f52623eb7bd.

Models for Grafana Instance (grafana site) and GrafanaDataSource (links the name of a data source in Grafana to the GrafanaInstance and MetricsSourceBase objects)
Views/forms/template for selecting a GrafanaInstance, dashboard, panel, and series
Autofill ElasticcsearchStatusCheck form based on panel/series info
ElasticsearchStatusCheck creation form

Tested creating checks based on some dashboards (web, prequal, charlotte, etc.), in general worked but more testing necessary. Ran into several issues with Grafana autofill values in the API response that I had to make special cases for--I'm sure there are more issues I haven't found yet.
TODO: test cases for Grafana API parsing, handle more edge cases (and fail more gracefully)
In future PRs: update/delete check views, refesh check based on dashboard changes, celery task for checking if a dashboard changes and emailing owners, etc.

trigger build


selling planks to bot price issue

🐛 Bug Report
me and another had 50k+ teak planks in bank and it said a higher amount in the bank with —sv then when sold to bot.

Cause of this issue is that Planks sell for less than the GE Sell value, due to a recent economy update. Going to close this, but it would be fitting to make a suggestion where the --sv flag shows accurate sell value


add author name

this is my first contribution on a python project ever. found your project at PyDigger.com
hope my contribution is helpful

Hi Salimer,
Thanks for the pull request.
According to the specification the authors should be a list (so should be between square brackets) and should be in the form of "author ". So in this case it should be:
authors = ["Sebastian van der Voort<EMAIL_ADDRESS>If you can fix that I can merge the pull request.


Email Spam Detection Using Machine Learning

The objective of this project is to develop a machine learning model capable of detecting spam emails. With the increasing volume of email communication, distinguishing between spam and legitimate emails has become crucial. Effective spam detection can enhance email security and improve user experience by reducing unwanted and potentially harmful emails.

Please assign me this issue

Issue solved #43

Hello @sanjay-kv , please assign this issue to me as I have already worked on this kind of problem in the past.

Hello @sanjay-kv please assign this issue to me.

Issue will be assigned to Only 1 person ...FCFS basis.
Others get a chance if the issue gets stale & the assignee is inactive for 5+ days
Also if you would like to work on more issue create a new issue and I will create label and assign you.
Feel free to create new issue, I will assign to you


Sound Pressure API

Pull Request Overview
This pull request adds:

a sound pressure API resolves #11 , similar to the libtock-c version. The API provides a function that simulates a synchronous sound pressusre reading and also functions to initiate a reading, register/unregister a listener, check for driver existence, enable/disable the sound pressure measurement
an example app which samples the sound pressure sensor every 1 second and prints the measured sound pressure
a fake sound pressure driver, for testing
unit tests for the fake driver and for the user space library

Testing Strategy
This PR was tested with the unit tests and by running the example app on a microbit v2 board
TODO or Help Wanted
Feedback
Documentation Updated

[x] no updates are required

@SheepSeb any updates?

@SheepSeb any progress?

Upstream tock#469

Merged into master


Question: Why does rkt run --volume require type?

The ACI spec talks about host and empty volume types. The host type is defined as a bind mount:

"host" fulfills a mount point with a bind mount from a source

Why does --volume bind:/opt/storage require the type bind. Can't that be inferred? Same with tmpfs proposed in #378, which I assume maps to the empty type from the spec.

I think this can be closed and was based on an existing version of the project and docs. Closing for now.


Use lambda instead of bind

It's slimmer on the code size, and arguably more explicit

Does this have an impact on binary size?

Increases the binary size from 3147kb to 3560kb :(
Closing.


Library needs to be moved to GitHub Actions.

@dherrada It was apparently missed in the original sweep. Please move this library to actions once it is renamed. I will post here again once the rename is complete.

@dherrada The rename is done - please move this library to GitHub Actions. Thank you.

Done.


Add Neo4j Crash Course Tutorial

Neo4j Graph Database Crash Course on YouTube by Laith Academy
What does this PR do?
Add course.
For resources
Description
This resource is a YouTube tutorial which covers Neo4j (a graph database).
Why is this valuable (or not)?
For those who wish to go through the crash course of Neo4j, this is a good tutorial available on YouTube.
How do we know it's really free?
It is available on YouTube.
For book lists, is it a book? For course lists, is it a course? etc.
It's is a YouTube tutorial.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


Enchants

Can you add enchants to the modifiers? For example, if a ring or amulet has X anointment enchant?
Thanks

@LostPoE I could try, but do you have an idea how it could be presented? Right now different colors represent number of "good" suffixes and dashed line means there is no more space for new affixes.

Could add a star icon that represents an enchant. Thanks for the quick response!

Good idea, will add it to my TODO list. For anointments I could add several stars depending on what oils are part of it. I'm not sure about lab enchants though, the value of enchant may differ from league to league, maybe I could use poe.ninja API.

Any anointment that has Golden Oil is worth keeping.

http://www.vhpg.com/anointing-rings/ You can filter by oil type in the search bar at the top right. Try searching for gold.

Are the searches able to find these anointments yet?

Not yet, sorry, didn't have much time lately to work on it. I will let you know as soon as it's added.

Thanks!


feat(prql-python): expose CompileOptions

Close #1792
Expose CompileOptions to allow compile options to be specified from the Python side.
Note: This is a basic implementation only.
For example, I am not sure if the behavior when an invalid target name is specified falling back to sql.generic silently is appropriate.
It would be worth changing later.

Excellent, thanks a lot @eitsupi !

Looks great! I'll hit the button since you asked


documentations to fr

add installations.md

Q
A

Is bugfix?
yes/no

New feature?
yes/no

Breaks BC?
yes/no

Tests pass?
yes/no

Fixed issues
comma-separated list of tickets # fixed by the PR, if any

Merged. Thanks!


az aks check-acr uses device code authentication instead of launching a browser

Extension name (the extension in question)
aks
Description of issue (in as much detail as possible)
az aks check-acr uses device code auth instead of launching a browser (like az login):

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXX to authenticate.

route to service team


More than one upload server end points

Hi ,
I'm looking to make my server accept file from many end points.
For example:
"/user/upload-image"
"/post/upload-main-image" -> this will be handled differently by different segment of code
"/post/upload-sub-image" -> this will be handled also differently
Is it possible?

No, the server package supports only one upload URLs. Instead, why not pass different formdata to distinguish between different content?


The csi-akshcicsi-controller pod crashing

csi-akshcicsi-controller pod crashing

PS C:>kubectl describe deploy csi-akshcicsi-controller -n kube-system
Name:                   csi-akshcicsi-controller
Namespace:              kube-system
CreationTimestamp:      Wed, 23 Mar 2022 17:13:08 -0400
Labels:
Annotations:            deployment.kubernetes.io/revision: 1
Selector:               app=csi-akshcicsi-controller
Replicas:               1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
Labels:           app=csi-akshcicsi-controller
Annotations:      scheduler.alpha.kubernetes.io/critical-pod:
seccomp.security.alpha.kubernetes.io/pod: runtime/default
Service Account:  csi-akshcicsi-controller-sa
Containers:
csi-provisioner:
Image:      mcr.microsoft.com/oss/kubernetes-csi/csi-provisioner:v2.2.2
Port:
Host Port:
Args:
--feature-gates=Topology=true
--csi-address=$(ADDRESS)
--v=5
--timeout=15s
--leader-election
Environment:
ADDRESS:  /csi/csi.sock
Mounts:
/csi from socket-dir (rw)
csi-attacher:
Image:      mcr.microsoft.com/oss/kubernetes-csi/csi-attacher:v3.1.0
Port:
Host Port:
Args:
-v=5
-csi-address=$(ADDRESS)
-timeout=120s
-leader-election
Environment:
ADDRESS:  /csi/csi.sock
Mounts:
/csi from socket-dir (rw)
liveness-probe:
Image:      mcr.microsoft.com/oss/kubernetes-csi/livenessprobe:v2.4.0
Port:
Host Port:
Args:
--csi-address=/csi/csi.sock
--probe-timeout=3s
--health-port=29602
--v=5
Environment:
Mounts:
/csi from socket-dir (rw)
csi-resizer:
Image:      mcr.microsoft.com/oss/kubernetes-csi/csi-resizer:v1.1.0
Port:
Host Port:
Args:
-csi-address=$(ADDRESS)
-v=5
-leader-election
-handle-volume-inuse-error=true
-timeout=180s
Environment:
ADDRESS:  /csi/csi.sock
Mounts:
/csi from socket-dir (rw)
akshcicsi:
Image:       ecpacr.azurecr.io/akshcicsi:v1.0.6
Ports:       29602/TCP, 29604/TCP
Host Ports:  29602/TCP, 29604/TCP
Args:
--v=5
--endpoint=$(CSI_ENDPOINT)
--nodeid=$(KUBE_NODE_NAME)
--alsologtostderr=true
--metrics-address=<IP_ADDRESS>:29604
Liveness:  http-get http://:healthz/healthz delay=30s timeout=10s period=30s #success=1 #failure=5
Environment:
CSI_ENDPOINT:       unix:///csi/csi.sock
WSSD_CONFIG_PATH:   /etc/azhci/cloudconfig/value
WSSD_LOGIN_CONF:    /etc/azhci/wssdlogintoken/value
WSSD_DEBUG_MODE:    <set to the key 'WSSD_DEBUG_MODE' of config map 'moc-config'>                Optional: false
CLOUDAGENT_SERVER:  <set to the key 'AZURESTACKHCI_CLOUDAGENT_FQDN' of config map 'moc-config'>  Optional: false
Mounts:
/csi from socket-dir (rw)
/etc/azhci/cloudconfig from cloudconfig (rw)
/etc/azhci/wssdlogintoken from akshcicsiwssdlogintoken (ro)
Volumes:
socket-dir:
Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
cloudconfig:
Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit:
akshcicsiwssdlogintoken:
Type:               Secret (a volume populated by a Secret)
SecretName:         akshcicsiwssdlogintoken
Optional:           true
Priority Class Name:  system-cluster-critical
Conditions:
Type           Status  Reason

Progressing    True    NewReplicaSetAvailable
Available      False   MinimumReplicasUnavailable
OldReplicaSets:
NewReplicaSet:   csi-akshcicsi-controller-5c7d5b49 (1/1 replicas created)
Events:

I restarted the server to apply some updates and now there are a bunch of of pods in the CrashLoopBackOff state.
Also I get a lot of:
'Error from server: etcdserver: leader changed' and 'Error from server: etcdserver: request timed out' errors.

The test server has plenty of resources:

I am trying to test the ASK HCI to recommend it to one of my customers but It is really difficult to test anything with this amount of errors.

I was able to resolve this issue by deleting the pods, one by one.

BTW, the crashes are getting worth everyday:

It's almost impossible to do anything since I get a lot of:
Error from server: etcdserver: request timed out
etcdserver: leader changed
lost leader election, exiting
...
This is the log for the crashed certificate-controller:
Starting
I0426 15:22:13.700149       1 leaderelection.go:243] attempting to acquire leader lease kube-system/certificate-controller-manager...
I0426 15:22:16.034219       1 leaderelection.go:253] successfully acquired lease kube-system/certificate-controller-manager
I0426 15:22:16.060823       1 certificate_controller.go:118] Starting certificate controller "approver"
I0426 15:22:16.060900       1 shared_informer.go:240] Waiting for caches to sync for certificate-approver
I0426 15:22:16.161195       1 shared_informer.go:247] Caches are synced for certificate-approver
E0426 15:22:24.126763       1 leaderelection.go:325] error retrieving resource lock kube-system/certificate-controller-manager: etcdserver: leader changed
E0426 15:22:30.432651       1 leaderelection.go:325] error retrieving resource lock kube-system/certificate-controller-manager: Get "https://<IP_ADDRESS>:443/api/v1/namespaces/kube-system/endpoints/certificate-controller-manager": context deadline exceeded
I0426 15:22:30.432750       1 leaderelection.go:278] failed to renew lease kube-system/certificate-controller-manager: timed out waiting for the condition
F0426 15:22:30.432782       1 main.go:205] lost leader election, exiting
I0426 15:22:30.432912       1 certificate_controller.go:130] Shutting down certificate controller "approver"
Any suggestions?

As I have said before, it's impossible to do anything.
I am trying to test AksHci per a customer request but all I get is:
kubectl get pod --all-namespaces
Error from server: rpc error: code = Unknown desc = OK: HTTP status code 200; transport: missing content-type field
PS C:\Deployments\SFS> kubectl get pod --all-namespaces
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding
PS C:\Deployments\SFS> kubectl get pod --all-namespaces
Error from server: etcdserver: request timed out
PS C:\Deployments\SFS> kubectl get pod --all-namespaces
Error from server: etcdserver: leader changed

Since the certificate renewal pod is in a crash loop state, I am trying to follow this procedure:
https://docs.microsoft.com/en-us/azure-stack/aks-hci/known-issues-upgrade
But I am getting the following error when running the "scp -i (get-mocconfig).sshprivatekey clouduser@<IP_ADDRESS>:~/cert*.yaml ." command.

It is any place I can get more guidance about this issue?

I think I found the culprit of my Aks Hci pod crash problems:

I will be replacing that RAID with high speed SSDs.


Integration Test - Release - 2019/10/31 23:00:36

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#reassign PRMergerTest2

PRMergerTest2 is not a valid GitHub ID, or is not a collaborator on this repo.

GitHub user PRMergerTest1 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#reassign NonAllowedUser

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#please-close


Consent improvements and fixes

This issue is imported from pivotal - Originaly created at Jan 28, 2019 by Arnout Terpstra
- For some SPs, _no_ attributes are sent from IdP to SP (only NameID). In those cases, the information below the IdP is missing (which is logical because no attributes are sent). Please add a message "This service requires _no_ information from your institution. " / "Voor deze dienst zijn _geen_ gegevens van jouw instelling nodig." [**PR**](https://github.com/OpenConext/OpenConext-engineblock/pull/630)

The logo used for SURFconext (to show the identifier) is the wrong logo; please use current logo (https://static.surfconext.nl/media/sp/surf-conext-logo.png)

Request 2 should be fixed during deployment. We aim to keep the Engineblock code base SURFism free. So updating the logo should happen during deployment. @thijskh or @bartgeesink are one of you able to see to @arnoutt's request? (Michiel Kodde - Feb 5, 2019)

That makes sense! (Michiel Kodde - Feb 25, 2019)

@michielkodde perfect, thanks! (Arnout Terpstra - Feb 25, 2019)


Bug:  Application CCBC IDs are not sequential

Describe the bug
The CCBC ID for the second intake should follow a format of
CCBC-020001
CCBC-020002
CCBC-020003
CCBC-020004
CCBC-020005
instead it is missing some of the sequential number
To Reproduce
Steps to reproduce the behavior:

go to meatabase
view prod data for Application
Notice CCBC IDs for 2nd intake

Expected behaviour
Ids should be sequential
Screenshots
Logs/tracebacks
Additional context
Add any other context about the problem here.

Hey Mars, this is defined behaviour for the way we're generating CCBC IDs (see this article for an explanation). We can change this but it would effectively be tackling #880 as we would no longer be using a sequence.
Do you want to bring that ticket in, and add this as an AC?

Hey Mars, I just want to have go-ahead on the change to use a counter vs a sequence (the current method) if having gaps is a must-have for the business process.
The risks of using a counter is that we lose concurrency in this operation, additionally it means we can run into deadlocks which will result in more cancelled operations (and thus fails/rejections when trying to submit). If these risks are acceptable I can go ahead and merge this in once it's ready and reviewed

Hey @AntBush can we have a quick chat about it at 930 please so I am confident I understand the implications you have outlined above?

Sure thing!

CCBC IDs are not quite assigning correctly

Thanks Tony,
Yes please fix the ccbc number so it doesn't seem strange during demos

Also we may need to create a 3rd (and 4th) intake in test to test this out

Should be all fixed up now if you want to give it a look over, want to create the other intakes after the demo?

yep looks good.  and Yes lets create another intake today, if you do that then I can PO review this by end of sprint.  You can use start date and time as Sept 21, 9am and end date as Dec 21, 2pm 2023

Hey I've added the third intake with those parameters


Allow to disable String.Chars implementation for Geo objects

Hello,
I'm using geo_postgis for a web application in which I store GPS coordinates and I would like to change the default string representation of a Geo.Point, as WKT is not well-known enough for end-user.
This small change would allow me to disable the default String.Chars implementation by simply adding the following config:
config :geo, impl_to_string: false

The default behavior of the project is not changed at all.

Perhaps it would be nice to allow to over-ride the individual implementations with a module in the config, so you could provide your own, per-type-String.Chars-impl. With macros this should be entirely compile-time, so should not impact performance, but give the needed flexibility ... just a thought :)

Sorry for just getting to this. I think I'm going to push back on this and say to either find a different way to print the string or we should just remove the implementation of String.Chars here altogether.
I think I'm fine with removing it completely

I have implemented a configurable version of this feature, which can be seen in my branch here:
https://github.com/aseigo/geo/tree/customizable_string_chars_impls
I will send a push request once my other pending PR is handled ...

I guess for now it may be a good idea to allow it to be configurable. I'll accept a PR for it

I'm still quite new to Elixir so I didn't really know what you had in mind (or how exactly to do it), but I like what you've done!

Sorry there are some conflicts here, but if you can resolve those, I'll merge this

I implemented this in master since there was a conflict here.

Thank you, sorry for the long reaction :)
I was actually speaking about @aseigo 's implementation, but I guess it could be implemented later anyway


[feature] Add CI&CD

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug
/kind feature

What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

We need to support Python PYPI, too.


feat(material/dialog): update dialog subjects to be AsyncSubjects

AsyncSubjects have the advantage over other types of Subjects that any subscription made after the subject is marked as complete is still provided with the value.
Specifically for dialogs, this allows the consumer to delay subscribing to the afterClosed observable and still get the result from their dialog.

You are correct. I had not considered that approach when I originally ran into the problem that prompted me to create this patch.


Read Simultaneously RFID TAG with multiple RFID Reader

i have a project that use two RFID Reader, the project for counting tag from conveyor belt, in this case the reader will placed in the middle of the conveyor belt and the reader faces each other.
So i have question, can two RFID Reader reading one or many tag simultaneously? I tried before but when i tried to scan, the two readers did not respond, but if i scan one tag and one reader it will work correctly.
For example: i have readers 0 and readers 1, and two variables count0 and count1, remember the readers faces each others, so i put one tag in the middle of reader0 and reader1, if the reader 0 scan the tag, count0 will increase to 1 and if reader 1 scan the tag in the SAME TIME it wouldn’t be counting because the reader 0 has scan that tag.
but in my case, the readers(0 and 1) didnt response if i put the tag in the middle of readers.
i use this tutorial for my project https://youtu.be/HmGmFknAIqc
and for this project the data count0 and count1 i send it to nodemcu using SoftwareSerial(5,6).
Im new for using Arduino and i still learn about it(i dont understand too much)
Heres my arduino code
/**
 * --------------------------------------------------------------------------------------------------------------------
 * Example sketch/program showing how to read data from more than one PICC to serial.
 * --------------------------------------------------------------------------------------------------------------------
 * This is a MFRC522 library example; for further details and other examples see: https://github.com/miguelbalboa/rfid
 *
 * Example sketch/program showing how to read data from more than one PICC (that is: a RFID Tag or Card) using a
 * MFRC522 based RFID Reader on the Arduino SPI interface.
 *
 * Warning: This may not work! Multiple devices at one SPI are difficult and cause many trouble!! Engineering skill
 *          and knowledge are required!
 *
 * @license Released into the public domain.
 *
 * Typical pin layout used:
 * -----------------------------------------------------------------------------------------
 *             MFRC522      Arduino       Arduino   Arduino    Arduino          Arduino
 *             Reader/PCD   Uno/101       Mega      Nano v3    Leonardo/Micro   Pro Micro
 * Signal      Pin          Pin           Pin       Pin        Pin              Pin
 * -----------------------------------------------------------------------------------------
 * RST/Reset   RST          9             5         D9         RESET/ICSP-5     RST
 * SPI SS 1    SDA(SS)      ** custom, take a unused pin, only HIGH/LOW required **
 * SPI SS 2    SDA(SS)      ** custom, take a unused pin, only HIGH/LOW required **
 * SPI MOSI    MOSI         11 / ICSP-4   51        D11        ICSP-4           16
 * SPI MISO    MISO         12 / ICSP-1   50        D12        ICSP-1           14
 * SPI SCK     SCK          13 / ICSP-3   52        D13        ICSP-3           15
 *
 */
#include <Wire.h>
#include <SPI.h>
#include <MFRC522.h>
#include <SoftwareSerial.h>
#include <LiquidCrystal_I2C.h> //library penampil LCD

#define RST_PIN         9          // Configurable, see typical pin layout above
#define SS_1_PIN        10         // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 2
#define SS_2_PIN        8          // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 1

#define NR_OF_READERS   2

LiquidCrystal_I2C lcd(0x27,20,4); //0x3f dapat dicari dengan i2c scanner
SoftwareSerial s(5,6);

byte ssPins[] = {SS_1_PIN, SS_2_PIN};

MFRC522 mfrc522[NR_OF_READERS];   // Create MFRC522 instance.
int i = 1;
byte code[10];
String uidString;
int count0 = 0;
int count1 = 0;

/**
 * Initialize.
 */
void setup() {
  s.begin(9600);
  Serial.begin(9600); // Initialize serial communications with the PC
  while (!Serial);
  SPI.begin();        // Init SPI bus

  for (uint8_t reader = 0; reader < NR_OF_READERS; reader++) {
    mfrc522[reader].PCD_Init(ssPins[reader], RST_PIN); // Init each MFRC522 card
    Serial.print(F("Reader "));
    Serial.print(reader);
    Serial.print(F(": "));
    mfrc522[reader].PCD_DumpVersionToSerial();
  }

}

/**
 * Main loop.
 */
void loop() {
  for (uint8_t reader = 0; reader < NR_OF_READERS; reader++) {
    if(reader == 0){
      reader0(reader);
    }else if(reader == 1){
      reader1(reader);
    }
  }
}

/** SCAN RFID TAG READER0 */
void reader0(int reader){
    if (mfrc522[reader].PICC_IsNewCardPresent() && mfrc522[reader].PICC_ReadCardSerial()) {
      Serial.println();
      Serial.print(F("Reader "));
      Serial.print(reader);
      // Show some details of the PICC (that is: the tag/card)
      Serial.println();
      Serial.print(F("Card UID = "));
      dump_byte_array(mfrc522[reader].uid.uidByte, mfrc522[reader].uid.size);
      Serial.println();
      count0++;
      lcd.setCursor (0,0);

      Serial.print("Counter ");
      Serial.print(reader);
      Serial.print(" = ");
      Serial.print(count0);
      Serial.println();
      s.write(count0);
       }

      mfrc522[reader].PICC_HaltA();
      mfrc522[reader].PCD_StopCrypto1();
}

/** SCAN RFID TAG READER1 */
void reader1(int reader){
    if (mfrc522[reader].PICC_IsNewCardPresent() && mfrc522[reader].PICC_ReadCardSerial()) {
      Serial.println();
      Serial.print(F("Reader "));
      Serial.print(reader);
      Serial.println();
      // Show some details of the PICC (that is: the tag/card)
      Serial.print(F("Card UID = "));
      dump_byte_array(mfrc522[reader].uid.uidByte, mfrc522[reader].uid.size);
      Serial.println();
      count1++;
      lcd.setCursor (0,0);

      Serial.print("Counter ");
      Serial.print(reader);
      Serial.print(" = ");
      Serial.print(count1);
      Serial.println();
      s.write(count1);
    }

      mfrc522[reader].PICC_HaltA();
      // Stop encryption on PCD
      mfrc522[reader].PCD_StopCrypto1();
}

/**
 * Helper routine to dump a byte array as hex values to Serial.
 */
void dump_byte_array(byte *buffer, byte bufferSize) {
  for (byte i = 0; i < bufferSize; i++) {
    Serial.print(buffer[i] < 0x10 ? " 0" : " ");
    Serial.print(buffer[i], HEX);
  }
}

This issue tracker is for problems in the library only. For coding questions please use the arduino forum. Furthermore there is already a topic about multiple readers, see #290 .


ignite app size is 30.2 mb

why app size is so big 30.2 mb without any huge libraries ?

If memory serves, an empty Hello World React Native app is ~25MB. We haven't spent much time on optimizing bundle size because it isn't really an important factor for most of our clients. However, if someone wanted to do a breakdown on why the bundle is so large and/or some pull requests to reduce the initial size we'd be happy to take a look.

@kevinvangelder for your quick Response, I think after React Native 0.60 The App Size Will Reduce, But Still have a Look When Your Team Get Time. I can Use Android App Bundle To reduce the app size, But Ios Is a concern.

The Hermes Engine will further dramatically reduce package size on Android. I think over time this will improve. We'd love some help reducing app size!

is there any current work to reduce the size? How may I help with that?

@ferroblesh
Our release build is about 11mb with a bunch of 3rd party libs.
Android: If you release the app as aab instead of apk then you'll reduce the size of the app a lot.
To be able to do that you need to signup for "google app signing".
There are several resources out there https://shift.infinite.red/handling-64-bit-android-builds-for-react-native-2fcd7a2e5c14

Inside an Ignite project, is this the app whose size we're concerned with?ios/build/TestAppSize/Build/Products/Release-iphonesimulator/TestAppSize.app
This was 22.1 MB for me.

This app bundle size topic has been discussed over at issues https://github.com/infinitered/ignite/issues/2240 and https://github.com/infinitered/ignite/issues/1947#issuecomment-1223985929 so I'm going to close this for now.
Closing this for now but feel free to bring it back up in Discussions or Community Slack


Switch check targets from npm to bun

bun is much faster

This will fail CI until we next update the container images, so draft for now.

This is good to go now. Anyone have comments/concerns?


Update README to point to Slack

Thanks for this @rgoomar! Merged. This reminds me that we need to do a pass on all our engines and make this same update.


Doesn't work with roughjs v4.3.1

This sandbox works for roughjs v3.1.0 with react-rough v2.0.0-beta.12 but gives the following error when upgrading to roughjs v.4.3.1:
Could not find module in path: 'roughjs/dist/rough.umd' relative to '/node_modules/react-rough/dist/react-rough.es.js'

Upgrading react-rough to v.2.3.0 also does not fix the issue

Yeah. There's a breaking change from v3 to v4 from the rough package.
And, we also moved to a declarative approach. Apologies for the inconvenience 🙏


Test for the bug that #218 was causing

Issue #218 was a name clash in bql_column_value_probability that, in the presence of constraints, would mess up the value whose probability was being computed.  We should write a test that would catch a regression there.  Should we craft a specific extreme input and a specific test, or should we develop an inference quality suite that's high enough quality to catch this (generically?)?

Extreme input and specific test is easier and can likely detect similar errors in a fast-test run.


Create Server Failure: SYSCALL error: EOF detected

Greetings, I'm getting the following failure when attempting to create a server:
SYSCALL error: EOF detected
Everything is pretty vanilla and I went through the installation steps as outlined.  Anyway I can try to debug this issue?
linux d 4.15.0-29-generic #31-Ubuntu
thanks!

This is interesting as I found that when I disable ssl within postgres everyhting works fine.  I re-created keys and set ssl_renegotiation_limit to 0 but an still seeing the issue.  Would like to resolve it so I can leave ssl turned on.  Anybody have any ideas?  I'm not sure how the FDW actually works.

What is the server you are trying to create? For the avoidance of doubt, let's go though the steps and you can identify which one is failing:

Build the multicorn extension and install it
Enable the extension: sql CREATE EXTENSION multicorn;
Create a SERVER e.g. sql CREATE SERVER multicorn_imap FOREIGN DATA WRAPPER multicorn options ( wrapper 'multicorn.imapfdw.ImapFdw' );
1.Create a foreign table  ``sql create foreign table gmail (
... ) server multicorn_imap options ()```

One easy way to start debugging is to put in lots of calls to python log_to_postgres().  If you are implementing just  python execute(), get_rel_size() and get_path_keys() then I have found it fairly straightforward to debug that code standalone with test quals. Most of the juicy errors come up when you have a tool flinging lots of generated SQL at the tables (e.g. Tableau) but, again, you can capture the quals from the live system and then debug the code like you do with ordinary Python.

Hi, we figured out the problem and wanted to share.  We were using the enterprisedb builds for both 10.4 and 10.5 with ssl mode set to on.  For whatever reason they must not have compiled those builds with a certain flag that was causing the malloc issue.  Reverting to ubunutu builds did the trick and the edb builds with ssl off worked fine.  The failure seemed to only occur with the wrapper "multicorn.sqlalchemyfdw.SqlAlchemyFdw".  Hope this helps somebody else.


Create Monkey.md

Added pilot lore for Monkey (Sophia Ogawa)

can you pop a png of monkey in the pilots folder and a png png your mech in the mechs folder?


[Bug Report] Select control options are not selected

Element UI version
1.2.9
OS/Browsers version
W10  chrome 58.0.3029.81
Vue version
2.3.0
Reproduction Link
https://jsfiddle.net/pj71jkyw/146/
Steps to reproduce

点击选择项后，选不中
What is Expected?

点击选择项后，选不中
What is actually happening?

点击选择项后，选不中

Please search existing issues before submitting a new one.


http request to @windicss-devtools-update stuck in pending status

Describe the bug
the HTTP call to @windicss-devtools-update gets stuck in PENDING forever causing the content on the webpage to be all broken.
http://localhost:3030/@windicss-devtools-update
To Reproduce
Steps to reproduce the behavior:

npm install
npm run dev
check the dev-tools network panel (see screenshot)

Desktop (please complete the following information):

OS: OSX 12.6.2
Browser: Chrome 110, Chrome Dev 112 (but any other browser will do)
Slidev version: 0.40.x
node --version -> v18.13.0

As an update, I figured the abovementioned problem is not "the problem".
I have noticed that package-lock version 3 causes problems, so forcing npm to create version 2 seems to get everything working.
Is this a known issue? is this "my" issue? shall I close this and open a new one for the package-lock version?


Transition to setup.cfg

This PR transitions hydrotools and subpackages from setup.py to setup.cfg. The source is a little tidier and PEP517 compliant.
Additions

setup.cfg

Removals

setup.py

Changes

moved source under src
data files are included in MANIFEST.in instead of setup.py
Development instructions included in README.md

Testing

Passes all tests

Notes

None

Todos

Research methods to automate testing and deployment when new packages appear

Checklist

[x] PR has an informative and human-readable title
[x] PR is well outlined and documented. See #12 for an example
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows project standards (see CONTRIBUTING.md)
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[x] New functions are documented (with a description, list of inputs, and expected output) using numpy docstring formatting
[x] Placeholder code is flagged / future todos are captured in comments
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Ballooned a bit, but the transition required some further rearranging and revealed some additional bugs I didn't want to shove off to another PR because they prevented full testing. Two separate issues remain that will be dealt with later.

Related to #129

Note regarding make install. pip's --use-feature=in-tree-build flag was added to in 21.1. If your version of pip is <21.1, you will receive a error no such option: --use-feature. Please update pip using pip install -U pip.


Order request returning Invalid Body

test_order = Order(order_type="BUY", scrip_code=2885, quantity=100, exchange="N",
exchange_segment="C", price=64, is_intraday=False, atmarket=False,
exch_order_id="0", DisQty=0, stoploss_price=0,
is_stoploss_order=False, ioc_order=False, is_vtd=False, ahplaced=AHPlaced.NORMAL_ORDER,
public_ip='<IP_ADDRESS>', order_validity=OrderValidity.DAY, traded_qty=0)
x=self.client.place_order(order=test_order, client_id=CLIENT_ID, order_requester_code='order_requester_code')
I receive message as Invalid body.
12:43:48 | {'BrokerOrderID': 0, 'ClientCode': '', 'Exch': '\x00', 'ExchOrderID': '', 'ExchType': '\x00', 'LocalOrderID': 0, 'Message': 'Invalid body parameters.', 'RMSResponseCode': 0, 'ScripCode': 0, 'Status': 2, 'Time': '/Date(1640691828333+0530)/'}
Note: Order was placed when market was closed.

x=self.client.place_order(order=test_order, client_id=CLIENT_ID, order_requester_code='order_requester_code')

What value are you using for 'order_requester_code' ??
I use my client code for order requester code as well, works just fine!

x=self.client.place_order(order=test_order, client_id=CLIENT_ID, order_requester_code='order_requester_code')

What value are you using for 'order_requester_code' ?? I use my client code for order requester code as well, works just fine!

Yes works fine when I assigned order_requestor_code as clientID.


refactor: use enum for payload and gw types

Pull Request Test Coverage Report for Build 740345654

14 of 33 (42.42%)  changed or added relevant lines in 1 file are covered.
7 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.05%) to 17.992%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/Gateway.js
14
33
42.42%

Files with Coverage Reduction
New Missed Lines
%

lib/Gateway.js
7
19.81%

Totals

Change from base Build 737944439:
0.05%

Covered Lines:
2032

Relevant Lines:
11583

💛  - Coveralls

Ref: #1044


Linux setup install pulumi

What does this PR do?
Linux setup install pulumi
Which scenarios this will impact?
inv setup
Motivation
Additional Notes

Running blake on your local code should fix the python lint issue, thank you for the contribution !

Running blake on your local code should fix the python lint issue, thank you for the contribution !

s/blake/black/ :)
Thanks


updated changelog and pom.xml version for new release 0.2.7

Hi @hhellyer @owen-lynch-ibm , Need to release Sol003 driver with vulnerabilities fixed to EKS. Could you please approve the change log and the version change in pom.xml. Thank you.


Annoy warnings from nix as unknown experimental feature ... except NixOS

In repositories which having flake and the direnv
warning: unknown experimental feature 'repl-flake'

on WSL2 Ubuntu and macOS

https://github.com/DeterminateSystems/nix-installer/issues/1048

https://zenn.dev/eiel/articles/538954db7a7f1c
Ah... I remember this feature is useful.
Can I suppress the warnings with keeping the flag?

Officially provided and just removed the experimental flag since https://github.com/NixOS/nix/pull/10299  - nix 2.22?
I can understand that my NixOS 24.05 uses nix (Nix) 2.18.8, others are 2.24.9

sudo sed -i 's/ repl-flake//' /etc/nix/nix.conf

Fixed it with this, and I can still use repl flake ✅

if I I have doctor command, it should prints this file https://github.com/kachick/dotfiles/issues/716


Wonderful but...

Hey, Im a newbie to this so..yeah
First of all thank you for the script. Everything works fine from outside my home network but while inside my network clients can't connect.

Forgot to mention that once I change the ip on my client config file to <IP_ADDRESS>(the rpi ip) it works..but that's not really a fix

you don't need to connect from inside your home, there is no purpose to that.  you need to put the IP back to your public IP that is port forwarded in your router.  The purpose is to encrypt your traffic when you are NOT at home so that it is not able to be sniffed or inspected at untrusted locations.

doizece, that is the right fix. I know this is closed but you're SUPPOSED to change the internal IP to the same IP as the openVPN server (i.e. your Raspberry Pi) in the *.ovpn file. However, connecting from the inside, like Kaladin said, is not the intended use for this project.. unless you're trying to troubleshoot or something..


WIP: Sync the ccommon subtree from upstream

WORK IN PROGRESS. DO NOT MERGE.
Sync the ccommon subtree from upstream

#285 takes the place of this PR


Failure to mount partition using mount_filesystems

Can i mount manually the partition? This happens when trying to mount_filesystems for A11 device iOS16 , iPhone10,1 , iPhone 8.
What will be the mounting syntax for manual mounting? Thanks in advance for your help

iOS 16 renamed the disk numbers. I need to edit my mount_filesystems script to accommodate for that.


[0.5] Add draw_indirect_count feature

gfx-hal work for https://github.com/gfx-rs/wgpu/issues/742. I would not merge this until I've finished the wgpu work and prove that it works on both dx12 and vulkan, but it can be reviewed now :)
This adds two methods to a gfx-hal trait, so I added them with a default unimplemented!() implementation so it is a non-breaking change. When this is ported forward to master, the functions will just exist as is.
This adds support for this feature on DX12 and Vulkan (through VK_KHR_draw_indirect_count). Metal is possible as discussed in the wgpu issue, but I don't have access to a development mac, so I couldn't do the work on it, at least right now. GL 4.6 also seems to support this though glMultiDrawIndexedIndirectCount, but that's a problem to solve once the GL backend is sorted.

Alright, should be upgraded. I also changed the feature name from (DRAW_INDIRECT_COUNT to MULTI_DRAW_INDIRECT_COUNT) to be more consistent with the other MULTI_DRAW features.

MULTI_DRAW_INDIRECT_COUNT

I think it would make sense to keep it DRAW_INDIRECT_COUNT as you had originally, since that matches Vulkan, which gfx-hal is close to. We can reconsider the naming at wgpu-core level, but here we have the strong Vulkan affinity.

There is some breakage upstream, unfortunately. Filed https://github.com/servo/core-foundation-rs/issues/393 for the CI issue... We'll have to proceed in blind upon merging.

Alright, that should be all the changes needed. I have tested this using a modified version of the wgpu-rs texture-array example to try both multi-draw-indirect and multi-draw-indirect-count, so I think we're good to go.

Bors r+

On Jun 27, 2020, at 15:39, Connor Fitzgerald<EMAIL_ADDRESS>wrote:

Alright, that should be all the changes needed. I have tested this using a modified version of the wgpu-rs texture-array example to try both multi-draw-indirect and multi-draw-indirect-count, so I think we're good to go.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Please don't forget to make one for master!


Add support for route params

It is standard for web service routes in different platforms and librarties to support route params such as  "/product/1" where the routes could for example be defined as "/product/:productId" or "/product/{productId}".
Currently routes are absolutely matched so it is not possible to do this, probably some more extensive changes like regex path matching would be needed.

@Jluil it is easy to tend to mimic Chromely use of Restful pattern with what an actual API does. While they seem similar it is not the same. The use of Restful pattern is a choice because of its popularity and not needed to do what Chromely needs to do. A unique key can also be used.
For Chromely these patterns can be used and will be fine
 "url": "/tmdbmoviescontroller/movies"
 "key": "6271a62b-d6b7-4e5e-a9d4-7ecb48f82196"

You can use the parameter property to do the same:
https://github.com/chromelyapps/Chromely/blob/4a1319f5bac4628400d94fb088d615bbb34c7926/src/Chromely.Core/Network/ChromelyRequest.cs#L53
In JavaScript:
var request = {
      "method": method,
      "url": url
      "parameters": parameters,
      "postData": postData,
 };

ok but this does not work with http requests via custom-http scheme only with javascript api right?

@Jluil good point.
That is handled a bit differently. Query parameters are turned into parameters for custom-http
http://chromely.com/democontroller/movies?name=MyName&Age=12

https://github.com/chromelyapps/Chromely/blob/fdf33e529d2f9b1a8006d73c91c40fe6b660c9db/src/Chromely.CefGlue/Browser/Handlers/CefGlueHttpSchemeHandler.cs#L80
The alternative is to put everything in as the data object

var request = {
      "method": method,
      "url": url
      "parameters": parameters,
      "postData": postData,
 };
  var http = new XMLHttpRequest();
            var url = "http://chromely.com/externalcontroller/movies";
            http.open("GET", url, true);
			...
	http.send(JSON.stringify(request ));

Ok thanks, with a little bit of boilerplating I am able to work with that.


New Year 2021

Description
Its 2021 dude
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPdocs
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

Thank you @totoprayogo1916

Thank you @totoprayogo1916


Unable to see KV in Nuxt Hub UI

Describe the bug.
We have enabled kv in our nuxt.config.ts and deployed it successfully.
However, we are unable to see the Nuxt Hub KV table.
Steps to reproduce.
Steps to reproduce the behaviour:

Deploy the Nuxt Hub project without hub.kv using the Nuxt Hub UI.
Enable hub.kv = true in Nuxt Config
Push it

**Expected behaviour
Don't see the empty state page and see the KV table.

What is the XHR error when going to the KV tab on client-side?

That last part is probably it.

Solved in this commit
Thank you


api key set to default and server updated for configurations

Updated mailchimp to include the unique server request in the stepzen.config.json and added a general lists endpoint so developers can see the lists they want to individually query.
Resolves --> https://github.com/steprz/stepzen-schemas/issues/26

@SamuelGHill let's discuss some workflow options,  closing for now

Reopening @fakedarren what should we discuss to get this error resolved? I tested this locally and its good to go for mailchimp.

Hi @SamuelGHill, we clearly need automated tests.
As it stands, @remotesynth is correct. All those errors still exist in this code. Please see above and address his comments (and you will need to run the formatting script as well)