Question about batch size.

Hello,
In the StyleGan2 paper they mention that they use a minibatch size of 32, and they train their models using 8 Tesla V100 GPUs. I am just not sure if this batch size is per-GPU or across all GPUs? I have tested this implementation on a single 32GB V100 GPU, and the largest batch size I could accomplish was 8. 12 worked for a bit but eventually runs out of memory.
If they were using 16GB V100 gpus then this is consistent since they would have a per-GPU batch size of 4, making the total size 4*8=32. However if it is 32 per-GPU then that means that this implementation is using a lot more memory than the official tensorflow implementation. I think the only way that could be possible is if the mixed precision that they use saves a lot of memory. Any ideas about what might be the case?
Thanks.

Batch size in the official implementation corresponds to the total batch sizes across the gpus. So they have used batch size 4 per gpu.

Thanks for the information. I suppose dividing up a batch of 32 into 8 GPUs leads to very fast training times. Maybe they could have done 8 per GPU but chose not to.


originalEvent.changedTouches is undefined in andriod chrome after v4.4+

check https://output.jsbin.com/qabutamifo in chrome develop tool simulator or andriod chorme.
v4.3.5 works normally.

Pixi now listens to PointerEvents where available, so you would only see the changedTouches property of a TouchEvent where PointerEvents are not supported. You should get an event for each touch that occurs.


meson.build:1:0 ERROR: Meson version is 0.56.2 but project requires >=0.59.0

Hi,
Thank you for your script !
There is a problem with pipewire
Get and build Pipewire :
.....
meson.build:1:0 ERROR: Meson version is 0.56.2 but project requires >=0.59.0

I understand but it's the last version of Raspberry PI OS and when i update Meson, the last version is 0.56.2
How could I update with 0.59 ?

It's what I told :
sudo pip3 install meson  -> 0.56.2
I'll try archlinuxARM


[Bug]: API give only 100 images when there are over 100 on the creators Pages

What happened?
Normal  API  query
https://civitai.com/api/v1/images?username=WTFusion
The API response gives only the First page with 100  Images and  nextCursor   null
Steps to reproduce the problem

Go to  https://civitai.com/api/v1/images?username=WTFusion
Scroll down it  says nextCursor   null

What should have happened?
should give me all  the Images from the Creator WTFusion.
metadata.nextCursor 	number 	The id of the first image in the next batch
metadata.currentPage 	number 	The the current page you are at (if paging)
metadata.pageSize 	number 	The the size of the batch (if paging)
metadata.nextPage 	string 	The url to get the next batch of items
What platforms do you use to access the site?
Linux
What browsers do you use to access the site?
Mozilla Firefox
Additional information, context and logs
No response

It is in the documentation:
https://github.com/civitai/civitai/wiki/REST-API-Reference#get-apiv1images

The number of results to be returned per page. This can be a number between 0 and 200. By default, each page will return 100 results.


Add dimakis to CodeFlare operator owners

/hold

/approve

/lgtm

Heh, I wanted the tests to fail :-D (was testing the hypershift stuff)

/unhold

/lgtm


Generate VS Solution using /MT rather than /MD

I am using:
cmake.exe -G "Visual Studio 15 2017" -DWITH_BOOST=OFF -DWITH_FIREBIRD=OFF -DWITH_ORACLE=OFF -DWITH_DB2=OFF -DWITH_MYSQL=OFF -DWITH_POSTGRESQL=OFF -DWITH_SQLITE3=OFF -DCMAKE_INSTALL_PREFIX="C:\Soci\install" -DSOCI_TESTS=OFF -DSOCI_CXX_C11=ON -DSOCI_EMPTY=OFF -DSOCI_SHARED=OFF -DCMAKE_CONFIGURATION_TYPES:STRING=Release;Debug
To generate soci_core_static/soci_odbc_static
But I note that the projects use /MD (Multi-threaded DLL) rather than /MT.
I tend to think of static being all static (i.e not using any runtime DLLs)
Is there a configuration option to set it to use /MT?

I tend to think of static being all static (i.e not using any runtime DLLs)

That is a matter of personal/project preference.
Let's consider the Boost.Build speak, which in my opinion makes the distinction vividly clear - b2 commands accepts link=static|shared and runtime-link=static|shared - any combination of the values is valid.
Unfortunately, CMake does not offer equivalent of b2-s runtime-link and the 'canonical' way to request /MT instead of the default /MD is fiddling with CMAKE_CXX_FLAGS:
First, clear the defaults:
string(REGEX REPLACE "/MD" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REGEX REPLACE "-MT" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

Then,
target_compile_options(soci_core_static $<$<CXX_COMPILER_ID:MSVC>:-MT> ...)

Currently, you would have to patch CMakeList.txt-s on your own, locally.
Our CMake configuration could offer SOCI_RUNTIME_LINK_STATIC=ON|OFF as sort of equivalent option to b2-s runtime-link.
I am working on complete rewrite of the CMake configuration for SOCI 4, see https://github.com/mloskot/soci/tree/ml/modern-cmake, so I will consider adding such option. Let's keep this open.

Thanks for the reply!
I agree being able to specify the link and runtime settings like b2 would be incredibly useful.
I will attempt to modify my local CMakeList.txt to do what you suggest.

https://github.com/protocolbuffers/protobuf/blob/master/cmake/CMakeLists.txt#L139-L153

If anyone wants to improve the CMake configuration to allow /MT, feel free to propose a PR.


New post: Multichassis ICMP Path Discovery in OVN

Note: consider how this is affected by Lorenzo's work on ICMP Frag Needed propagation from kernel.

This depends on https://github.com/booxter/booxter.github.io/issues/7 published first.


This my design

Your layout looks good.
p.s. I am debugging my automated GitHub actions.

Is my layout merged?

Not yet merged. But it will be soon.

Okay thankyou sir


mac OSX directory paths

Just a note:
I discovered that if any directory on the path has a blank space (allowed on Mac OSX, example: ~/foo bar/blee), the output of html2jade goes into never never land. The file is created, but it is of zero length. Remove the whitespace from the directory path, and no problem.

Have you tried quoting the path like this?
    html2jade "~/path to/my.html"

Use quotes when path has whitespace.


Using nan to support iojs

This PR use nan to rewrite the code a bit. Now this module should support iojs.

Amazing! It seems to me we're losing 0.8 support but i think it's worth it to embrace the new :)

0.8 should still work, it is supported by NAN. Is there a compilation error? If so, there might be some additional tweaking necessary.

I'll check it out after I'm back to my office.

@kkoopa i haven't had time to look deeper into it, but this is what i get:
node-gumbo-parser (master)$ nvm use v0.8.28
Now using node v0.8.28
node-gumbo-parser (master)$ npm --version
1.2.30
node-gumbo-parser (master)$ npm install nan
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm ERR! Error: No compatible version found<EMAIL_ADDRESS>npm ERR! Valid install targets:
npm ERR! ["0.3.0-wip","0.3.0-wip2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.6.0","0.7.0","0.7.1","0.8.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.4.2","1.4.3","1.5.1","1.5.2","1.6.0","1.5.3","1.6.1","1.6.2","1.7.0"]
npm ERR!     at installTargetsError (/Users/karl/.nvm/v0.8.28/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR!     at /Users/karl/.nvm/v0.8.28/lib/node_modules/npm/lib/cache.js:641:10
npm ERR!     at saved (/Users/karl/.nvm/v0.8.28/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:302:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR<EMAIL_ADDRESS>
npm ERR! System Darwin 14.1.0
npm ERR! command "/Users/karl/.nvm/v0.8.28/bin/node" "/Users/karl/.nvm/v0.8.28/bin/npm" "install" "nan"
npm ERR! cwd /Users/karl/Development/node/node-gumbo-parser
npm ERR! node -v v0.8.28
npm ERR! npm -v 1.2.30
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/karl/Development/node/node-gumbo-parser/npm-debug.log
npm ERR! not ok code 0
node-gumbo-parser (master)$

Outdated npm.
On March 6, 2015 6:03:48 PM EET, MicroMike<EMAIL_ADDRESS>wrote:

I'll check it out after I'm back to my office.

Reply to this email directly or view it on GitHub:
https://github.com/karlwestin/node-gumbo-parser/pull/14#issuecomment-77583438

As @kkoopa said, if I update the npm to the latest version, it should install with no error, and test also passed.
 mike820324  ⋯  js  wating_for_merge  node-gumbo-parser  node --version
v0.8.28
 mike820324  ⋯  js  wating_for_merge  node-gumbo-parser  npm --version
2.7.0
 mike820324  ⋯  js  wating_for_merge  node-gumbo-parser  npm install
-
><EMAIL_ADDRESS>install /Users/mike820324/ProgramProject/js/wating_for_merge/node-gumbo-parser
> node-gyp rebuild

  CC(target) Release/obj.target/gumbo/deps/gumbo-parser/src/attribute.o
../deps/gumbo-parser/src/attribute.c:30:21: warning: comparison of integers of different signs: 'int' and 'const unsigned int' [-Wsign-compare]
  for (int i = 0; i < attributes->length; ++i) {
                  ~ ^ ~~~~~~~~~~~~~~~~~~
1 warning generated.
  CC(target) Release/obj.target/gumbo/deps/gumbo-parser/src/char_ref.o
char_ref.rl:2492:12: warning: unused variable 'matched' [-Wunused-variable]
      bool matched = utf8iterator_maybe_consume_match(input, start, len, true);
           ^
...
compiling message...
...
1 warning generated.
  LIBTOOL-STATIC Release/libgumbo.a
  CXX(target) Release/obj.target/binding/node-gumbo.o
../node-gumbo.cc:65:10: warning: enumeration values 'GUMBO_NODE_DOCUMENT', 'GUMBO_NODE_ELEMENT', and 'GUMBO_NODE_COMMENT' not handled in switch [-Wswitch]
  switch(node->type) {
         ^
1 warning generated.
  SOLINK_MODULE(target) Release/binding.node
  SOLINK_MODULE(target) Release/binding.node: Finished
<EMAIL_ADDRESS>node_modules/nan

<EMAIL_ADDRESS>node_modules/node-gyp
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS> mike820324  ⋯  js  wating_for_merge  node-gumbo-parser  npm run test

><EMAIL_ADDRESS>test /Users/mike820324/ProgramProject/js/wating_for_merge/node-gumbo-parser
> node test/test.js

Running: normal
roots an object
Parses html tag
Parses head as a child of html
Parses attributes
...done!
Running: stopOnFirstError
stopped on error when option is passed
didn't stop on error by default
...done!
Running: legacy doctypes
added systemIdentifier and publicIdentifier
...done!
Running: unicode
Handles non-ascii characters
...done!
Running: custom tags
Handles custom tags
...done!
Running: fragment parsing
...done

alright, great! Thanks!


Support Keybindings For Terminals In Editor Area

VSCode has a feature that allows you to move a terminal into the editor area. This can be triggered by normally creating a terminal and then running the Terminal: Move Terminal Into Editor Area command.
It looks like this. The Terminal becomes a tab in the UI, same as normal files. It can also be split into its own group.

What is already working
Navigating to the terminal tab. For example using keystrokes like <C-w> or <g-t> from another file, will let you move into the terminal tab.
What is missing
Navigating out of the terminal tab. It would be amazing if it would be possible to navigate while being inside a terminal tab. Currently all keystrokes are just sent to the terminal, which is to be expected.
Idea For A Solution
My rough idea (or wishful thinking) for this: If you send <Esc> you are entering "Terminal Normal Mode", which allows you to run commands like <C-w> or <g-t> to navigate. Sending <i> will put you in insert mode, allowing to normally type in the terminal. From my side this would be enough; I would not require it to be as advanced as Neovims Terminal mode or anything.

I believe it would be confusing for users to be in a "terminal normal mode" while not having access to any vim commands other than <C-w>, etc. Additionally, this might be hard to implement because commands like C-w are handled by vscode->neovim->vscode, not vscode->vscode, so we would need to implement a suite of manual vscode shortcuts to support this.
It would be easier to just bind a vscode keybinding that lets you move between editor groups, like A-h/A-jkl or something.

ah I think understand what you mean. To paraphrase, I would bind commands directly inside VSCode. For example like this

This definitely works for me, nice! just to be sure: Is this safe to do or might this interfere with something inside the plugin?

Depends on what you want...
As is, it will replace the C-w sent to nvim, but this isn't a problem if the binding does what you want anyway.
If you want to keep the default C-w sent to nvim in the editor, add some when clauses that only apply your new binding when you are in the terminal and not in the editor.

Also for example it might interfere with c-w in the terminal (if you were using embedded nvim for example).

@SimonTheLeg
Your "Idea For A Solution" is beyond the capabilities of VSCode. Remember that this is an extension that lives in the scope of VSCode, not a fork of VSCode itself.
VSCode has no concepts of insert and normal mode on panes, so I would vote to close this and continue this as discussion at #1252.
Your current work around will also collide with the recent changes (#1248). You have to adjust your bindings with When expressions to prevent any further collisions.
I think we can leave this issue open, if we know what we really want and need. Are you using terminals within Neovim? Unfortunately, navigateXXX bindings in VSCode do not navigate between panes in the terminal window. The recent change I made above will allow you to enter or leave the terminal panel, but it will not allow you to jump between panes.
We need to figure out good defaults. Until then, you can configure your own.

Hi @martin-braun,
Yes, this post is definitely in the area of wishful thinking. From the original discussion, I was under the impression that we were in state where "it is not implemented, but there is a workaround which has some drawbacks". But if it is beyond the capabilities of VSCode like you said, I am definitely onboard of closing this.
Regarding moving the discussion to https://github.com/vscode-neovim/vscode-neovim/discussions/1252: I have no strong opinion on where future discussions should take place. I have subscribed to 1252 to stay in the loop. Whatever works best for you guys :)


Add support for the Spectator and Competitors

Hi Derrick,
It would be great if you could add support in your plugin to read from the competitors data structure and support the Car being spectated as an alternate to the Driver. This would allow your plugin to provide relatives and data when watching replays or in spectator mode, broadcasting or as Race Control.
The competitors structure is under > SessionData._DriverInfo._Drivers and has information on every player that joins the session. As far as I am aware the Spectator never becomes an "opponent" as they are not actually driving.
So the main trick is to get the currently obxerved CarIdx  as opposed to the "Driver" and then use that as the point to build relatives and standings from the opponents structure.
I have done all of this in my own plugin, but 95% of it could go in the bin if your plugin supported this and worked in spactating mode.
Some other data is also available if you are running in admin mode such as incidents for every car, but 95% of the telemetery isn't.
Thanks in  advance,
Bruce

I've created a branch, but I don't spectate races and I'm not sure how to access the observed car. You're welcome to look at what I've done, if you get the IsSpectator property working I can likely get the gaps working.

It's not the IsSpectator it is the CameraCar for example
_statusDatabase = e.Data.NewData;
DataSampleEx irData = e.Data.NewData.GetRawDataObject() as DataSampleEx;
SessionData._DriverInfo._Drivers[] competitors = irData.SessionData.DriverInfo.CompetingDrivers;
long cameraCarIdx = irData.Telemetry.CamCarIdx;
string cameraCarName = irData.SessionData.DriverInfo.CompetingDrivers[cameraCarIdx].UserName;
then you match the camera car name. I think then what should work is writing it back into the _statusDatabase.
Hoever in the code I wrote it keeps getting over written in the update loop so it "flashes"
Here is how I think it shold work, but I am missing something
if (e.Data.GameRunning && e.Data.NewData != null)
{
Game = new Game(e.Data.GameName);
if (Game.IsSupported != false)
{
_statusDatabase = e.Data.NewData;
    // update the data every frame
    DataSampleEx irData = e.Data.NewData.GetRawDataObject() as DataSampleEx;
    SessionData._DriverInfo._Drivers[] competitors = irData.SessionData.DriverInfo.CompetingDrivers;

    long cameraCarIdx = irData.Telemetry.CamCarIdx;
    string cameraCarName = irData.SessionData.DriverInfo.CompetingDrivers[cameraCarIdx].UserName;

    foreach (var opponent in _statusDatabase.Opponents) {
        if (string.Equals(cameraCarName, opponent.Name)) {
            // If we are the camera car, make us the player as well
            opponent.IsPlayer = true;
        }

        // We need to loop because there is no CarIdx in opponents
        foreach (var competitor in competitors) {
            float[] bestLapTimes = (float[])irData.Telemetry.FirstOrDefault(x => x.Key == "CarIdxBestLapTime").Value;
            float[] lastLapTimes = (float[])irData.Telemetry.FirstOrDefault(x => x.Key == "CarIdxLastLapTime").Value;

            var newBestLapTime = bestLapTimes[competitor.CarIdx];
            if (newBestLapTime > 0) {
                opponent.BestLapTime = TimeSpan.FromSeconds(newBestLapTime);
            }

            var newLastLapTime = lastLapTimes[competitor.CarIdx];
            if (newLastLapTime > 0) {
                opponent.LastLapTime = TimeSpan.FromSeconds(newLastLapTime);
            }
        }
    }

    if (e.Is60Hz)
    {

I'll DM you on Discord.

The other thing is that the getplayerleaderboardposition() position needs to return the camera car, not the actual spectating car, as they don't actually have a position. That way when you change to observe another car, everyting should switch to be from that car's perspective.

I'm just not invested in solving this, any solution I create would also be iRacing specific which is not what I desire for this plugin. I think somebody else with more interest in this use case will need to tackle this.

No worries .. I completely understand .. I'll build it myself. :-)


Deep copying with _.clone(obj, deep)

I sometimes return copies of nested internal data structures, so deep copying is needed to avoid accidental changes by other parts of the program or by loaded plug-ins. See also issue #586 and elsewhere.
Since the _.clone() function didn't support deep copies, I thought it would be fairly straight-forward to add it without breaking the API. Not sure that the implementation is the best though.
Also fixed a few corner cases with Date, Function and RegExp objects being cloned. Not very common scenarios perhaps, but easy enough to handle.
clone_.clone(object, [deep])
Create a copy of the object. The copy is shallow, unless deep is true. This means that nested objects or arrays are copied by reference, not duplicated. Note that the prototype chain is not preserved by this function, unlike Object.create.
_.clone({name : 'moe'});
=> {name : 'moe'};

_.clone([1, 2, 3]);
=> [1, 2, 3];

The JSON.parse(JSON.stringify trick doesn't work for everything. Example:
var homer = { name: "Homer Simpsons", sayCatchprase: () => console.log('doh') };
var bart = JSON.parse(JSON.stringify(homer));
homer.sayCatchprase();
// doh
bart.sayCatchprase();
// Uncaught TypeError: bart.sayCatchprase is not a function


Clarified leading zero on date

Day and month fields should accept input with and without leading zeros
The example month number should illustrate a leading zero isn't mandatory i.e in the range 1 to 9.
The example day number should illustrate it's day before month rather then month before day i.e. in the range 13 to 31
Squashed version of the original work here: https://github.com/alphagov/govuk-design-system/pull/858

You can preview this change here:
Built with commit c31b47bd10c7d1debca8054eeb04ded5513c2bc6
https://deploy-preview-873--govuk-design-system-preview.netlify.com


trival: DOC: fix broken link and remove unused link

What this PR does / why we need it:
Which issue this PR fixes(if applicable):
fixes #
Special notes for reviewers:

Release note:

NONE

Thanks.
/lgtm

Thanks.
/lgtm

/approve

/approve


Systrace Snooping Supports Less Than Half the Market?

Systrace snooping doesn't work on/above Marshmallow. Is it impossible to setup the hooks on these OS versions? Or just not done yet?
Aside: thanks for open sourcing this :)

Coming imminently, we have it working internally but we need to clean it up
for release.
On Mar 13, 2018 12:24 PM, "Brian Attwell"<EMAIL_ADDRESS>wrote:
Systrace snooping doesn't work on/above Marshmallow
https://github.com/facebookincubator/profilo/blob/802042f90f990998a272387e371b893af52465b8/cpp/atrace/Atrace.cpp#L202.
Is it impossible to setup the hooks on these OS versions? Or just not done
yet?
Aside: thanks for open sourcing this :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebookincubator/profilo/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJVmPe73rscbWzT1IHCvWhtcFJ1Tan_ks5teB0BgaJpZM4SpTcM
.

Awesome!
If you don't mind I'll leave this Issue open to track the update. Or, if you folks don't like using github Issues internally I don't mind if you close this Issue :)

ce50933 fixes this.


Page filter better redirect method(s)

Redirect by :

page ID choice
number of pages to go up in the site tree

Implemented with 244110a4f710f4ebcbb5868681ea5fcd523eeb41


Warn when the active environment differs from one in the working directory

Encountered this:
❯ uv venv
Using Python 3.12.3 interpreter at<EMAIL_ADDRESS>Creating virtualenv at: .venv
Activate with: source .venv/bin/activate
❯ uv pip install anyio
Audited 1 package in 3ms
❯ ls .venv/lib/python3.12/site-packages
_virtualenv.pth	_virtualenv.py

Very confusing! Of course, I had just activated a different virtual environment and forgot about it.

+1, I've encountered this many times.
I think this PR is related to this
https://github.com/astral-sh/uv/pull/4835

Yeah, that could help too.


Find implementors should not automatically open 1st entry in list of results

VSCode Version: 1.26.0-insiders 573d53815e74f8e4a52c2b6665f5ba9a92dbd341
OS Version: macOS 10.13.3 (17D102)

Steps to Reproduce:
I'm currently implementing "find implementors" for Java, but the issue can be reproduced with typescript.

Have 1 interface defined in a file, 2 implementations defined in 2 other files
search for the implementations of the interface
the 1st implementor is opened, shows the implementations widget from there. This is wrong since it implies all implementations implement the newly opened file.

This behaviour is inconsistent with the Find all references action. If multiple references are found, the widget listing references is displayed from the initial file.
See the following screencast showing the 2 behaviours, (references vs implementors):

IFoo.ts:
interface IFoo{}

Bar.ts:
class Bar implements IFoo{}

Baz.ts:
class Baz implements IFoo{}

Does this issue occur when all extensions are disabled?: Maybe

I realize the find references example is a bit different as it returns the original file in the results, so keeps it opened. Nonetheless this is still the behaviour I'd expect from the find implementors search.
Point 3 in previous comment is key.

/duplicate of #31046


setuptools 50 fails with KeyError: 'distutils' when installing some packages

I got the following error when tried to install doit.
$ pip install doit
Collecting doit
  Using cached doit-0.32.0.tar.gz (1.4 MB)
    ERROR: Command errored out with exit status 1:
     command: /home/enki/projects/.../.venv/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t_g4mfyi/doit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t_g4mfyi/doit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-shhwaq7f
         cwd: /tmp/pip-install-t_g4mfyi/doit/
    Complete output (17 lines):
    /home/enki/projects/.../.venv/lib/python3.6/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
      warnings.warn("Setuptools is replacing distutils.")
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-t_g4mfyi/doit/setup.py", line 88, in <module>
        'doit = doit.__main__:main'
      File "/home/enki/projects/.../.venv/lib/python3.6/site-packages/setuptools/__init__.py", line 152, in setup
        _install_setup_requires(attrs)
      File "/home/enki/projects/.../.venv/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in _install_setup_requires
        dist.parse_config_files(ignore_option_errors=True)
      File "/home/enki/projects/.../.venv/lib/python3.6/site-packages/setuptools/dist.py", line 665, in parse_config_files
        self._parse_config_files(filenames=filenames)
      File "/home/enki/projects/.../.venv/lib/python3.6/site-packages/setuptools/dist.py", line 572, in _parse_config_files
        filenames = self.find_config_files()
      File "/home/enki/projects/.../.venv/lib/python3.6/site-packages/setuptools/_distutils/dist.py", line 353, in find_config_files
        sys_dir = os.path.dirname(sys.modules['distutils'].__file__)
    KeyError: 'distutils'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Could this be a side-effect of overriding distutils on stdlib the  as described in #2350? I'll try to confirm the workaround (using SETUPTOOLS_USE_DISTUTILS=1 works and report back).

not likely, it rather seems that distutils is not in import "cache". I think that importing distutils at the top of setuptools/_distutils/dist.py should fix the issue, but I'm not sure if it's a good solution.

The doit issue is caused by an import pip (to ensure it’s in a new enough version) in its setup.py (see pydoit/doit#369).

I'm not sure that it's doit issue. is import pip in setup.py is not allowed anymore? if so, why?

I'll try to confirm the workaround (using SETUPTOOLS_USE_DISTUTILS=1 works and report back).

FYI, The two supported values for SETUPTOOLS_USE_DISTUTILS are stdlib (to opt out of the local distutils) and local (to opt into the local distutils).

Aha - so I have a hint of what's going on.
In this method of the distutils hack, Setuptools aims to get out of the way, disabling the hack and falling back to stdlib imports of distutils when pip is running. pypa/pip#8761 is mentioned as the rational for this behavior. This method is assuming, as pip requires, that pip not be used as a library, but only be invoked through its command-line interface. The fact that you've imported setuptools, then imported pip, means you've violated this expectation and triggered the condition where although setuptools._distutils has been imported as sys.modules['distutils'], it's since been removed.
Perhaps the thing to do here is to raise an error in spec_for_pip if 'setuptools' in sys.modules. That approach wouldn't fix this error, but it might make the cause clearer.
Alternately, the routine could avoid clearing distutils if setuptools is already imported. That approach would possibly fix the behavior, but only if the undesirable pip behavior that's being avoided isn't triggered following the user's import of pip.
Should Setuptools support importing of pip after importing of setuptools? My instinct is no and to declare this failure as an unsupported use-case.

is import pip in setup.py is not allowed anymore? if so, why?

import pip has never been supported, and this failure is one reason why - maintaining interpreter-level compatibility across these tools and supported platforms is extremely difficult and relying on the hard interpreter boundary for pip invocation provides guarantees that enable the PyPA team to do hacky things like replace import distutils in a selective way.
Can you make a strong case why import pip is an essential behavior that should be supported?

I see, thanks for the explanation. Closing this issue as irrelevant then.

@jaraco

import pip has never been supported, and this failure is one reason why - maintaining interpreter-level compatibility across these tools and supported platforms is extremely difficult and relying on the hard interpreter boundary for pip invocation provides guarantees that enable the PyPA team to do hacky things like replace import distutils in a selective way.

Is import pip not supported in setup.py or everywhere?
I've seen people using it a lot to either check version, log package info, and install dependencies at the beginning of their script to make it convenient for end users.

And if it's not supported, should it simply fail (maybe with some environment detection) instead of asking why people uses an unsupported code later?

According to using pip in your program, import pip is not supported anywhere.
#2381 takes some steps to avoid breaking under the conditions where pip is imported.

And if it's not supported, should it simply fail (maybe with some environment detection) instead of asking why people uses an unsupported code later?

Perhaps that's a question for the pip maintainers. My instinct is that users should be allowed to "import pip" at their own risk, so it shouldn't be strictly enforced.


Fix changing import type of nested resources

Fixes #85892
...except it doesn't work for some reason. At first the fix failed when trying to find old resource (I had 2 resources that were the same, but had different object id), but after that error magically fixed itself, it now fails to replace the resource with the new one, because loading from the old path fails (without any error ;). I suspect atlas importer does something wrong with the resource. Maybe waiting one frame™ would help, but I'm unable to determine what exactly goes wrong here. There are also errors that the newly created atlas can't be found (which I think existed before).
Putting as draft until this is resolved .-.
On a side note, I had deja vu when writing this code. We do the same exact thing in at least one other place (I mean the _check_property_for_resource() method).
Here's minimal project for the issue, for easier testing:
AtlasTest.zip
Select both icon files and change import type to TextureAtlas, then save the scene.

Request to have this fix for 4.2 also. In some cases, it crashed the editor, but it is hard to reproduce. It may be some corner case.


[About us] Incorrect amount information is shown after switching to another page

Title
[About us] Incorrect amount information is shown after switching to another page
Platform / OS
Windows
Browser
Chrome
Description
[About us] Incorrect amount information is shown after switching to another page
Steps to Reproduce

Open First Page (Home page) >
click page "About us"  > Here's what we're about >
Scroll down and look for donate button in "three ways you can get involved" section.
Notice the info 27.5$ for 1 good night's sleep
Click on the donate button and get directed to a new page that shows 55$ for 1 safe sleep

Expected Behavior
Information about default amounts of donation should be consistent throughout all pages (whether its 55 or 27.5)
Additional Info
Branch: 0b650b07369f1e40f3df170a90fc2b82e13df2d4
dev Build: https://circleci.com/gh/sleepbusorg/sleepbus.org/125

The 27.5 value for 1 day sleep is also present on this page -- https://dev.sleepbus.org/volunteer-signup-thanks

@mop13 confirmed 1 night is 27.50 - but default text is desired to be 2 nights' worth @ $55.
So One safe sleep is just $55.00 is definitely a bug, but placeholder texts aren't necessarily. Could you please confirm all places needing clarification in this issue's acceptance criteria as a checklist? will make it easier to do as one task

Im closing this ticket and putting the inconsistent text/pricing checklist on this ticket #89


Got code ELIFECYCLE after running 'npm run dev'

Upon  'npm run start' I got:
npm ERR! '  code ELIFECYCLE<EMAIL_ADDRESS>dev: ``npm bin/webpack-dev-server, and   npm' is not recognized as an internal or external command, operable program or batch file. `
I am using Windows 10. I changed node and npm versions to match those defined in package.json, and still got the same error. Below is the log for the boilerplate app:
npm-debug.txt
And here is a screenshot of the error message for the alumni app:

Thanks, I believe I know what is happening.  Your commandline is unable to recognize that command.  It's a windows thing.  I will see if I can get it working and report to you how I did it.  Thanks!

@zhangtreefish I am going to close this, pending updates and tests!  I will get it working on Windows.  Thanks again for reporting it!


Enable new math functions?

Looks like there are some new math functions in SQLite 3.35.0. Should we add SQLITE_ENABLE_MATH_FUNCTIONS to the list of default defines?
https://github.com/ericsink/cb/blob/bd3ec0643c5297c05c765f04a28104e85b59dd0c/bld/cb.cs#L1065-L1072

When I try integrating 3.35.x (soon), I do plan to try turning that on to see how it goes.

(But I'm glad you logged this so we have a place to track status of the issue)

Would be great to get this enabled in the next release. The CEILING function is desperately needed and shouldn't be excluded from the standard build IMO (though that's a quirk of SQLite not SQLitePCLRaw)

Any chance of it @ericsink ?
I may be naive of what goes on in the SQLitePCL.raw lib builds but it seems highly unlikely that enabling this compile-time option would break anything?
The math functions are included in most builds of SQLite now but not SQLitePCL.raw yet :(

Hmmm.  That looks like it would be fairly straightforward to include those.
I'll take a look soon.  A few things have piled up, and it seems like time to crank out another release.

I had trouble getting the Android builds to link with the math libs, so for now, I released 2.1.5 without this fix, so I can get the Mac arm64 simulator support out there.  Hopefully 2.1.6 with math functions will follow shortly.

🎉 I got the CI passing in https://github.com/ericsink/cb/pull/17

Yay!
So it looks like the basic fix was to up the android API level higher.
Thanks!


Footer section

@rohansx As a part of GSSOC'23, I would like to improve the footer section of the website. Kindly assign this issue to me.

@shruti8302 Someone is already working on this issue, please checkout for other issues


Update Needs

I request for update this package.
Or can any one suggest how to change dependencies of this package?
I want to change provider version and I need to use in Flutter 2.

Hi @jaykukadiya99, Thank you for opening this issue.
I'm working on it and I will release a new version soon.

Hi @mehdizarepour,
Thank you for your favourable response.

I've published version 0.4.0. now you can use it.


ArrayOfTables

Before jumping into Pr first comment for assign.
Problem statement :Write a function which takes two a arguments (num,length) and return a array of multiple of num and size of
array is length. For eg:-(5,4) return (5,10,15,20) , (12,6) return (12,24,36,48,60,72).
Probelm Link: https://edabit.com/challenge/ebcd4Xu8TLizaj6dm
Choose one Cateorgy - Medium
question category : math,array.

Before submitting a PR please Check some details.

[ ] fileName formet should be in camelcase
example- returnTheNextNumber.py
[ ]  Choose label for Problem , example- "good first issue", "easy"
[ ]  In file there should be problem statement and link to problem

/* Problem-Task : This program will add two numbers
 * Problem Link : https://edabit.com/challenge/SFzHtm63XT6EYNHWY
*/
int main() {
    int bla;
    return 0;
}

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

Please assign it to me.
Thanks!!

please assign it to me.

please assign it to me
thank you

Please assign it to me
Thanks!

Please assign me this thanks!


Traefik dashboard not accessible with port forwarding when setting ingressClass

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
Setting  --providers.kubernetescrd.ingressclass=foo causes the dashboard to not be served on port 9000
Steps to reproduce:

Install Traefik helm install traefik traefik/traefik --set 'additionalArguments[0]=--providers.kubernetescrd.ingressclass=foo' --set 'logs.general.level=DEBUG'
Forward port 9000 kubectl port-forward (kubectl get pod -l app.kubernetes.io/instance=traefik -o name | head -n 1) 9000:9000
Try to access the dashboard curl <IP_ADDRESS>:9000/dashboard/

Notice that the trailing slash is not missing.
If Traefik is installed without --set 'additionalArguments[0]=--providers.kubernetescrd.ingressclass=foo' the dashboard works as expected.
Adding a IngressRoute with the following service block:
name: "api@internal"
kind: "TraefikService"

successfully exposes the dashboard but this does not work for me since I want one internal Traefik to expose the dashboards of others.
What did you see instead?
Trying to access the Traefik dashboard gives 404 page not found.
What version of Traefik are you using?
2.4.3
What is your environment & configuration?
The only configuration set is --providers.kubernetescrd.ingressclass=foo and --log.level=DEBUG. Everything is deployed in a new empty Kubernetes cluster.
If applicable, please paste the log output in DEBUG level
time="2021-08-11T13:33:27Z" level=info msg="Configuration loaded from flags."
time="2021-08-11T13:33:27Z" level=info msg="Traefik version 2.4.13 built on 2021-07-30T15:06:29Z"
time="2021-08-11T13:33:27Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true,\"sendAnonymousUsage\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"metrics\":{\"address\":\":9100/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{}},\"traefik\":{\"address\":\":9000/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{}},\"web\":{\"address\":\":8000/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{}},\"websecure\":{\"address\":\":8443/tcp\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{}}},\"providers\":{\"providersThrottleDuration\":\"2s\",\"kubernetesIngress\":{},\"kubernetesCRD\":{\"ingressClass\":\"foo\"}},\"api\":{\"dashboard\":true},\"metrics\":{\"prometheus\":{\"buckets\":[0.1,0.3,1.2,5],\"addEntryPointsLabels\":true,\"addServicesLabels\":true,\"entryPoint\":\"metrics\"}},\"ping\":{\"entryPoint\":\"traefik\",\"terminatingStatusCode\":503},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"},\"pilot\":{\"dashboard\":true}}"
time="2021-08-11T13:33:27Z" level=info msg="Stats collection is enabled."
time="2021-08-11T13:33:27Z" level=info msg="Many thanks for contributing to Traefik's improvement by allowing us to receive anonymous information from your configuration."
time="2021-08-11T13:33:27Z" level=info msg="Help us improve Traefik by leaving this feature on :)"
time="2021-08-11T13:33:27Z" level=info msg="More details on: https://doc.traefik.io/traefik/contributing/data-collection/"
time="2021-08-11T13:33:27Z" level=debug msg="Configured Prometheus metrics" metricsProviderName=prometheus
time="2021-08-11T13:33:27Z" level=info msg="Starting provider aggregator.ProviderAggregator {}"
time="2021-08-11T13:33:27Z" level=debug msg="Start TCP Server" entryPointName=traefik
time="2021-08-11T13:33:27Z" level=debug msg="Start TCP Server" entryPointName=metrics
time="2021-08-11T13:33:27Z" level=info msg="Starting provider *ingress.Provider {}"
time="2021-08-11T13:33:27Z" level=info msg="Starting provider *crd.Provider {\"ingressClass\":\"foo\"}"
time="2021-08-11T13:33:27Z" level=info msg="label selector is: \"\"" providerName=kubernetescrd
time="2021-08-11T13:33:27Z" level=info msg="Creating in-cluster Provider client" providerName=kubernetescrd
time="2021-08-11T13:33:27Z" level=info msg="Starting provider *acme.ChallengeTLSALPN {\"Timeout\":4000000000}"
time="2021-08-11T13:33:27Z" level=info msg="ingress label selector is: \"\"" providerName=kubernetes
time="2021-08-11T13:33:27Z" level=info msg="Creating in-cluster Provider client" providerName=kubernetes
time="2021-08-11T13:33:27Z" level=debug msg="Start TCP Server" entryPointName=web
time="2021-08-11T13:33:27Z" level=info msg="Starting provider *traefik.Provider {}"
time="2021-08-11T13:33:27Z" level=debug msg="Start TCP Server" entryPointName=websecure
time="2021-08-11T13:33:27Z" level=debug msg="Configuration received from provider internal: {\"http\":{\"routers\":{\"ping\":{\"entryPoints\":[\"traefik\"],\"service\":\"ping@internal\",\"rule\":\"PathPrefix(`/ping`)\",\"priority\":2147483647},\"prometheus\":{\"entryPoints\":[\"metrics\"],\"service\":\"prometheus@internal\",\"rule\":\"PathPrefix(`/metrics`)\",\"priority\":2147483647}},\"services\":{\"api\":{},\"dashboard\":{},\"noop\":{},\"ping\":{},\"prometheus\":{}},\"serversTransports\":{\"default\":{\"maxIdleConnsPerHost\":200}}},\"tcp\":{},\"tls\":{}}" providerName=internal
time="2021-08-11T13:33:27Z" level=debug msg="Added outgoing tracing middleware ping@internal" routerName=ping@internal middlewareName=tracing middlewareType=TracingForwarder entryPointName=traefik
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareType=Recovery entryPointName=traefik middlewareName=traefik-internal-recovery
time="2021-08-11T13:33:27Z" level=debug msg="Added outgoing tracing middleware prometheus@internal" middlewareType=TracingForwarder middlewareName=tracing routerName=prometheus@internal entryPointName=metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareType=Metrics entryPointName=web middlewareName=metrics-entrypoint
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=metrics middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareName=metrics-entrypoint middlewareType=Metrics entryPointName=traefik
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=web middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=metrics middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="No default certificate, generating one"
W0811 13:33:27.510609       1 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0811 13:33:27.512522       1 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
time="2021-08-11T13:33:27Z" level=debug msg="Configuration received from provider kubernetescrd: {\"http\":{},\"tcp\":{},\"udp\":{},\"tls\":{}}" providerName=kubernetescrd
W0811 13:33:27.610485       1 warnings.go:70] networking.k8s.io/v1beta1 IngressClass is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 IngressClassList
W0811 13:33:27.611259       1 warnings.go:70] networking.k8s.io/v1beta1 IngressClass is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 IngressClassList
time="2021-08-11T13:33:27Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd
time="2021-08-11T13:33:27Z" level=debug msg="Configuration received from provider kubernetes: {\"http\":{},\"tcp\":{}}" providerName=kubernetes
time="2021-08-11T13:33:27Z" level=debug msg="No default certificate, generating one"
time="2021-08-11T13:33:27Z" level=debug msg="Added outgoing tracing middleware ping@internal" middlewareName=tracing middlewareType=TracingForwarder entryPointName=traefik routerName=ping@internal
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2021-08-11T13:33:27Z" level=debug msg="Added outgoing tracing middleware prometheus@internal" routerName=prometheus@internal middlewareType=TracingForwarder middlewareName=tracing entryPointName=metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery middlewareType=Recovery entryPointName=metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareType=Metrics entryPointName=web middlewareName=metrics-entrypoint
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareName=metrics-entrypoint middlewareType=Metrics entryPointName=metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=web middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareType=Metrics entryPointName=metrics middlewareName=metrics-entrypoint
time="2021-08-11T13:33:27Z" level=debug msg="Creating middleware" middlewareName=metrics-entrypoint entryPointName=traefik middlewareType=Metrics
time="2021-08-11T13:33:27Z" level=debug msg="No default certificate, generating one"
time="2021-08-11T13:33:28Z" level=debug msg="No default certificate, generating one"
time="2021-08-11T13:33:28Z" level=debug msg="Added outgoing tracing middleware prometheus@internal" middlewareType=TracingForwarder entryPointName=metrics routerName=prometheus@internal middlewareName=tracing
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=metrics middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2021-08-11T13:33:28Z" level=debug msg="Added outgoing tracing middleware ping@internal" entryPointName=traefik routerName=ping@internal middlewareName=tracing middlewareType=TracingForwarder
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=web middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" middlewareName=metrics-entrypoint middlewareType=Metrics entryPointName=metrics
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" middlewareName=metrics-entrypoint middlewareType=Metrics entryPointName=traefik
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" middlewareType=Metrics middlewareName=metrics-entrypoint entryPointName=web
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" middlewareType=Metrics entryPointName=websecure middlewareName=metrics-entrypoint
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=metrics middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:28Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=metrics-entrypoint middlewareType=Metrics
time="2021-08-11T13:33:28Z" level=debug msg="No default certificate, generating one"
time="2021-08-11T13:33:28Z" level=debug msg="No default certificate, generating one"
time="2021-08-11T13:33:46Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetescrd
time="2021-08-11T13:33:46Z" level=debug msg="Skipping Kubernetes event kind *v1.Endpoints" providerName=kubernetes

Why was this issue moved? This is not specific to helm. I only used helm in the issue to make it easily reproducible.

Thank you @texano00, and sorry for the late response. Adding the ingress class annotation was the missing piece. (I feel like I should have seen this issue myself when setting everything up without Helm but alas I did not :sweat_smile:)
To get my full setup working each Traefik v2 ingress controller needed to specify itself in that annotation. Then a NodePort service exposing 9000 for each controller could be added that our internal ingress controller could add IngressRoutes for.
With this information I wouldn't call this a bug but it's up for discussion if documentation is lacking or if the chart should add this annotation automatically when setting ingress class. Is that something that we might want to do or should I just close this issue?


Heightfield physics shape

fixes #13813

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15174/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15174/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15174/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15174/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15174/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15174/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15174/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15174/merge#BCU1XR#0

WebGL2 visualization test reporter:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15174/merge/testResults/webgl2playwright/index.html

Visualization tests for WebGPU (Experimental)
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15174/merge/testResults/webgpuplaywright/index.html

Visualization tests for WebGPU (Experimental)
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15174/merge/testResults/webgpuplaywright/index.html


issue 152 - duplicate registration of inert

Fix issue #152 - Duplicate registration of inert.

Thanks!


have to install dlib

please don't make it mandatory for dlib, it is very big in size. Please import the dlib library where you are using  it (in the DeepFace.py file)

you are right. It does not appear in setup.py. I removed dlib, mtcnn and lightgbm in dependencies.txt as well.

but using DeepFace class will give an import error because of this line in DeepFace.py
Please insert that line where you're using it

you are right. please update deepface to 0.0.38
pip install deepface==0.0.38


New cart created with every "add to cart" action

@tdwesten could you please help me with the assignment? Do you think you can describe a reproducible scenario for us to try? Thank you very much.

The situation we experience (without Redis) is that every time we call the api/v1/carts/-actions/my-cart endpoint, a new cart is created. This is with the lunar setting 'auto_create' => true. I have now solved this in our situation with the TokenBasedCartSessionMiddleware to add a state to the cart in the middleware based on an X-Cart-Token.
I am open to other solutions but I think it would be nice to manage the cart state in the frontend.

I don't know if this helps, but when I was creating the request collection in Postman, I had to add Referer header which is listed in sanctum stateful domains. After that it kept the "current cart" state without a problem.

I attempted the following command to make a request:
curl "https://api.monoz.test/api/v1/carts/-actions/my-cart?include=cart_lines.purchasable.product.default_url" \
     -H 'Content-Type: application/vnd.api+json' \
     -H 'Referer: https://api.monoz.test'

However, with each request, I receive a new cart ID.

Hey, I looked into it. You have to ensure that the cart id can be retrieved from session. That is the way lunar handles carts. See: CartSessionManager.
When using sanctum, you have to ensure that you have SANCTUM_STATEFUL_DOMAINS=localhost, it would be monoz.test in your case I presume.
But I am not sure if you use Sanctum or if sessions are utilized in your case. If not, you will have to create your own implementation of CartSessionInterface, possibly with token based state.
In your case the $cartId is not found and new cart instance is created on every endpoint hit.

I am closing this issue, because this is more related to Lunar functionality instead of the API.
However, I will put some care into cart handling as outlined here: https://github.com/dystcz/lunar-api/issues/93


Fixed the link for Exemptions.

This PR has fixed the link for Exemptions in Enforce Pod Security Standards by Configuring the Built-in Admission Controller.
Fixes: #29702

Hi @bradtopol @liggitt @kbhawkey
could you please take a look!

/lgtm

Preview of updated page: https://deploy-preview-29707--kubernetes-io-main-staging.netlify.app/docs/tasks/configure-pod-container/enforce-standards-admission-controller/
@Shubham82 , thank you for the fix!
/approve


dump_reader reads integer(x) as zero arrays

fix issue #2179
Submisison Checklist

[x] Run unit tests: ./runTests.py src/test/unit
[x] Run cpplint: make cpplint
[x] Declare copyright holder and open-source license: see below

Summary
Allow dump_reader to read zero arrays of integer (or double) that could be generated from R's dump.  This would fix issue #2179 .
Intended Effect
Stan's dump interface can read data of the following format:
x <- integer(0)
y <- structure(integer(0), .Dim = c(2, 3))
z <- structure(double(0), .Dim = c(2, 3))
a <- double(1)
b <- structure(double(1), .Dim = c(1))

How to Verify

see the added unit test
build cmdstan with the new dump.hpp and run examples in #2179

Side Effects
None.
Documentation
See the doxygen comments in the code.
Reviewer Suggestions
@bob-carpenter @syclik  or anyone
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Jiqiang Guo
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Thanks.  I'll review this ASAP, but I want to download it and run it, not just look at the code, so it'll take a bit of time.

Thanks.  By the way, is the manual of CmdStan the only place we documented this dump format for users?

Yes, it is.  We should probably create a standalone document
somewhere.

Bob

On Dec 23, 2016, at 3:20 PM, maverickg<EMAIL_ADDRESS>wrote:
Thanks. By the way, is the manual of CmdStan the only place we documented this dump format for users?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I verified that the previous format works, but I don't know enough about R to understand what is supposed to happen with this:
y <- structure(integer(0), .Dim = c(2, 3))

What would the type be for y in a Stan program?  I tried
int mu[2, 3];

but it segfaulted when i used this data file:
mu <- structure(integer(0), .Dim = c(2, 3));

If I change the declaration to
int mu[0];

then I get this:
Exception: mismatch in number dimensions declared and found in context; processing stage=data initialization; variable name=mu; dims declared=(0); dims found=(2,3)

It the dump file is created from R correctly, it should not have
y <- structure(integer(0), .Dim = c(2, 3))

Besides, it would error in R
> structure(integer(0), .Dim = c(2,3))
Error in structure(integer(0), .Dim = c(2, 3)) :
  dims [product 6] do not match the length of object [0]

I will find out what it current does for this similar case:
y <- structure(c(0, 0), .Dim = c(3))

This is not correct in the sense of R either, but it's fine for stan right now.  Good thing is that it does not segfault.
> y <- structure(c(0, 0), .Dim = c(3))
Error in structure(c(0, 0), .Dim = c(3)) :
  dims [product 3] do not match the length of object [2]

At least, I would make y <- structure(integer(0), .Dim = c(2)) not cause a segfault.

On Dec 23, 2016, at 6:40 PM, maverickg<EMAIL_ADDRESS>wrote:
It the dump file is created from R correctly, it should not have
y <- structure(integer(0), .Dim = c(2, 3))
Besides, it would error in R

OK.  I was confused because I copied the above line
from the pull request itself (under "Intended Effect").
Not segfaulting would be nice, but we probably shouldn't
worry too much about the details of this format since I
think we're going to be replacing it with JSON or Protocol
Buffers soon (though we'll keep supporting the old format
at least until Stan 3).

Let me know if you'd like me to approve and merge now or wait for more changes.

Thanks.  The segfault happens as well for the original case such as the following:
x <- structure(c(), .Dim =  c(2))

What is more, I think it would happen sometimes for the following (the length of the vector is less than what the .Dim says.
x <- structure(c(1), .Dim = c(2))

But it did not segfault at least for me, perhaps for the same reason the following code does not segfault either.
mmac2:cmdstan jq$ more test.cpp

#include <iostream>
#include <vector>

int main(int argc, char **argv) {
  std::vector<int> a;
  a.push_back(3);
  std::cout << a[0] << std::endl;
  std::cout << a[1] << std::endl;
}
mmac2:cmdstan jq$ g++ test.cpp
mmac2:cmdstan jq$ clang++ test.cpp
mmac2:cmdstan jq$ ./a.out
3
268435456

But as these are not supposed to be produced by stan_rdump and using R's dump format won't last long, I am inclined to just merge this one.


Cannot find module 'dotenv-safe/config'

Since the update to 5.0.0, I noticed you removed the config.js file and integrated it into index.js. This breaks for me (and probably a lot of other people) who used to run:
node -r dotenv-safe/config app.js

This wasn't mentioned in the changelog but I would love it if you would consider reintroducing config.js so that I won't have to change the way we run our applications. :)

Seems like I accidentally nuked it in the commit, which is why it doesn't show up in the changelog. I'll fix it today as soon as I can. Sorry about that!

5.0.1 has been released with the original config.js again. Thanks!


Bug: fail to process input JSON for resource owner requests

Following this, I'd like to issue an access_token with curl. I wanna use grant_type == client_credentials and grant_type == password. Both work for inlined curl requests whith all params pasted in the curl request.
However, neither works for curl requests with JSON input parameters.
clientID.json
{
    "grant_type": "client_credentials",
     "client_id": "4fd47f868b2e68aa715e",
     "client_secret": "61b789afdeb66f8ba6ff8037837ac29a1a61bb6a"
}

curl -v -d clientID.json <IP_ADDRESS>:8000/api/login/oauth/access_token
Response: 200 with an eror
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 143
< Content-Type: application/json; charset=utf-8
< Server: beegoServer:1.12.3
< Set-Cookie: casdoor_session_id=c0f9ff61fb3d06e23a633cc0caf52133; Path=/; Expires=Sun, 01 May 2022 09:15:54 GMT; Max-Age=2592000; HttpOnly
< Date: Fri, 01 Apr 2022 09:15:54 GMT
<
{
  "access_token": "error: invalid client_id",
  "id_token": "",
  "refresh_token": "",
  "token_type": "",
  "expires_in": 0,
  "scope": ""
* Connection #0 to host <IP_ADDRESS> left intact
}%

NOTE
If you do NOT intend to process JSON as input (which is a bad idea), you should at least return 400 Bad Request.
As a good practice, JSON inputs should be supported.
Casdoor v1.33.0

@Steve0x2a

@hsluoyz

I'm not sure about your last message. I see a POST /api/login/oauth/access_token in your public Swagger
I provided an example with JSON body in a POST request. That would be a normal use case for all DevOps engineers and CI scripts. If you do not intend to support this at this point, return 400 at least. Now I'm getting 200 with an error. Confusing !

@tetra12 do you mean that all Casdoor APIs should support body JSON?

@hsluoyz
I would implement a JSON body support for only /api/login/oauth/access_token endpoint now. Since many users, DevOps and CI scripts may use standard images with curl to get/refresh/remove a token.
Other APIs may be implemented later upon a request

@tetra12 OK.
@Steve0x2a plz work on this


[feature request] Have a way to patch workload/service

I have this use case where I want to inject "security context" for each workload / service in my generated compose.yaml file.
Today, I need to manually do that:
cat <<EOF > compose.override.yaml
services:
  ${WORKLOAD_NAME}-${CONTAINER_NAME}:
    read_only: true
    cap_drop:
      - ALL
    user: "1000"
EOF

But when I have multiple workloads or containers, this is a bit painful.
A post-processing yq command may be able to help too, but same approach, not user friendly.
Do we have an opportunity to introduce a new provisioner type (or something else) in order to patch a workload or a service directly in score-compose generate?

@mathieu-benoit what kind of expression language do you suggest? how complex should it be?
Tools like jq and yq are very good at what they do, so we will never do something of equivalent complexity, but there is room for something simple potentially using the existing Go template language?
We wouldn't use a provisioner or workload resource like humanitec does, because it breaks the Score resource contracts but we could do something specific to score compose here?

using the existing Go template language

yeah, I think this would be a great experience, consistent with the existing provisioners.
jq/yq could still be used outside score-compose but this feels disconnected and not a consistent experience for end users.


Add linting and unit testing support

Fixes #9
Fixes #10

This includes a CircleCI config. But, I'm not an admin on this repo - I think we'll need @clouserw to enable CircleCI after this is merged.


spike(evm): use cosmos address derivation for ethsecp256k1

Purpose / Abstract
Cosmos uses RIPEMD160(SHA256()), whereas Ethereum uses Keccak-256.

Not proceeding with this anymore


Don't invoke continuations inline in OnCompleted

This should be impossible for LibuvAwaitable anyway since both OnCompleted and its Callback property are always invoked from the same thread.

The Linuv one seems unnecessary. And if it happens we should queue to the uv thread

The Linuv one seems unnecessary. And if it happens we should queue to the uv thread

Good catch. If the next call to FromApplicationPipeReader.ReadAsync in LibuvOutputConsumer.WriteOutputAsync returned a completed ValueTask, we could end up calling uv_write on a random threadpool thread.
I don't have a reference to the LibuvThread in LibuvAwaitable. I could plumb it through, or I could just do a Debug.Assert(false) or something and not call the continuation at all.

I did the Debug.Assert thing and got rid of the Interlocked.CompareExchange in LibuvAwaitable since everything is called from the same thread anyway.


Run tests with Go1.15

Pull Request Test Coverage Report for Build 230471666

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 56.19%

Totals

Change from base Build 230467594:
0.0%

Covered Lines:
354

Relevant Lines:
630

💛  - Coveralls


Continue training with audio_visual branch

Thanks for your awesome work!
I've met some problems when va_joint training with my custom data. I want to finetune VideoLlama2 with custom data for downstream work. My data is not very much so I want to start with the final released model VideoLLaMA2.1-7B-AV and finetune it with videos. Can you provide a script for continuous training with  VideoLLaMA2.1-7B-AV
Thanks again for your work!

I also encountered issues while attempting fine-tuning. We hope the authors can provide an official script for further fine-tuning (LoRA) the VideoLLaMA2.1-7B-AV model.
Thanks for your great work!

Sorry, we currently do not have support for using lora for audio-visual training.

Thanks for your reply!
Could you please provide a script for continuous training with released VideoLLaMA2.1-7B-AV model? Thanks a lot!

Sorry, we currently do not have support for using lora for audio-visual training.

@xinyifei99 Thank you for your prompt response!
Could you provide a script for further fine-tuning? Would it suffice to simply change the model_path in va_joint.sh to VideoLLaMA2.1-7B-AV and set audio_tower to VideoLLaMA2.1-7B-AV/audio_tower.bin? Additionally, how much GPU memory would be required to support such full fine-tuning?


Add storage proxy and finish implementing native server

For the DO bindings, seems like you would want to make a trait to represents the DO operations.  Then the main implementation for them would be to make HTTP requests to the DO bindings you defined.  Feels like the primary interface to the actual endpoints themselves but a Rust interface/trait to the operations desired.  The fact that they are HTTP endpoints is just an implementation detail.

This PR seems to explicitly tie the server implementation with the http implementation.  The original interfaces/traits seem like they would be a cleaner separation between the systems, to identify the DO operations.  For unit testing, this means that the server implementation could be tested with a pure mock interface.  Why was this removed?


Deleting an indicator: Move from Indicators page into the Summary tab of the indicator modal

Issues we're addressing

The delete button is over-emphasized, given the low frequency of use, and it is too easy to click on by accident. (My own observation, that was reinforced by feedback from Nigeria.)
Marie tells me that people are most likely to need to delete an indicator immediately after adding it (if they add by mistake or are adding a temporary one during a training). But right now, they have to go through the entire process of setting up targets and whatnot before they can delete it.

Acceptance criteria

[x] 1. Delete button for indicators is removed from the Program Indicators page.
[x] 2. There is a "Delete this indicator" button on the lower right corner of the Summary tab.

[x] 2.1. Delete button UI details: Text is #DD0000 and 1 rem.

SMALL REQUEST WHILE WE'RE IN THE SUMMARY TAB ANYHOW

[x] Can you please move the "Name*" form field from the Performance tab to the Summary tab? It makes no sense to not see the name right away after adding an indicator, especially since we call it "Temporary" and they will most certainly want to change it right away.
[x]  It should be the first form field on the page.
[x]  Change "Name*" to "Indicator name*" -- to be clearer as to the name of what.

I split out a usability issue that was previously part of this ticket, and moved it to Fruit Basket: https://github.com/mercycorps/TolaActivity/issues/339


Implement support for Embeddings API

Thanks for creating PR. The only issue I have noticed was possible null reference exceptions in SingleOrArrayConverterFactory. I have tried to fix them but there is still one exist I wasn't sure how to handle it. Please have a look => line 58 itemtype, converterType = typeof(SingleOrArrayConverter<,>).MakeGenericType(typeToConvert, itemType);
If you think it is okay we can merge the PR.

Oh, also can you target to dev branch please, I would like to push couple more changes before master merge.

Hi Tolga,
I just changed the target to the Dev branch. Apologies, this is the first time I contribute directly to an open source project, so please bear with me if I mess things up in the process.
As for SingleOrArrayConverterFactory, it was something I had used on another project where the server changed based on the count and I needed to properly deserialize to the POCOs. However, with OpenAI the server always returns an array, so really this is only saving a couple of brackets from being sent in the request in the case of a single string.
So, in hindsight, I don't think it's worth the complexity and potential edge-case bugs and I would rather just drop it completely.

Hi,
This is my first time managing an open-source project, so we are both new in the area. I should have updated the document about PR.
I think the main difference in this project from yours is the nullable setting is enabled.
OpenAI.GPT3.csproj line:6 -> <Nullable>enable</Nullable>
I think it would be better if we use just an array. I would appreciate it if you can drop SingleOrArrayConverterFactory and use array.

Sounds good. I dropped it and committed. I think everything is in order at this point

Great, Thanks! I will release a new version soon with a couple of my changes.

Sounds good. Thanks a million for all the work you've done on this.
BTW, I had made other changes locally to the Completions API. Since they were breaking changes, I wasn't sure how best to handle and just didn't create a pull request for them. I just committed them to a new branch on my repo: https://github.com/sarilouis/openai/tree/update-completions. Not sure how you'd feel about them, but happy to discuss.

Oh and unrelated, but I also created a C# version of the GPT3 encoder/tokenzier if you might need it: https://github.com/sarilouis/GPT3Encoder-dotnet

I was thinking of updating the usage of methods in general(also probably breaking changes.).
I think I will have time next week. I will have a look at your changes and we can discuss them later.


[Q] I can't create academic organization

I requested delete my academic organization for creating new academic organization.
But, I can't create academic organization although previous organization is deleted.
Is there any reason for this or just error?

hello @min99830 , apologies for the inconvenience and happy to help. May we request for a screenshot of error you are encountering? Thanks!

@JoanaMarieL Error says user already has an active trial. But, the trial organization is deleted.

Hi @min99830 thank you for reporting this issue. Would it be possible to try once again and see if you're now able to create an academic team? what was the name of the Org that you had previously deleted?

Hi @min99830 I have been checking this but it looks like you've now deleted your account? please let us know if you need any further assistance.

My account is alive. I login wandb by github account. @thanos-wandb
I can't make academic organization. :(
Thank you for helping me.

Hi @min99830 thank you for the confirmation. It seems you have another active free trial (org: swinvq-org) and that's the reason it won't let you create an academic team. Please let us know how would you like us to proceed.

Hi @min99830 just a quick update, the Org swinvq-org  has been now updated to academic subscription as you're currently entitled to 1 academic team. Please let us know if that worked for you, or if you had any additional questions?

@thanos-wandb Thank you. It's allright now.


[AutoDiff] Add differentiability_witness_function verification.

Assert that differentiability_witness_function is never constructed with
null witness.
Verify that type of differentiability_witness_function instruction matches
the type of the witnessed SIL function.

@swift-ci Please test tensorflow

test/AutoDiff/differentiability_witness_function_inst.sil  failed because it uses differentiability_witness_function_inst with explicit lowered type (as syntax), but this patch makes explicit types valid only in lowered SIL:
sil-opt: /home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/swift/lib/SIL/SILInstructions.cpp:795: swift::DifferentiabilityWitnessFunctionInst::DifferentiabilityWitnessFunctionInst(swift::SILModule &, swift::SILDebugLocation, swift::DifferentiabilityWitnessFunctionKind, swift::SILDifferentiabilityWitness *, Optional<swift::SILType>): Assertion `module.getStage() == SILStage::Lowered && "Explicit type is valid only in lowered SIL"' failed.
Stack dump:
0.	Program arguments: /home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/Ninja-ReleaseAssert+stdlib-Release/swift-linux-x86_64/bin/sil-opt -target x86_64-unknown-linux-gnu -module-cache-path /home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/Ninja-ReleaseAssert+stdlib-Release/swift-linux-x86_64/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache /home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/swift/test/AutoDiff/differentiability_witness_function_inst.sil
1.	With parser at source location: /home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/swift/test/AutoDiff/differentiability_witness_function_inst.sil:64:3
 #0 0x0000000004a1a674 PrintStackTraceSignalHandler(void*) (/home/swiftci/jenkins/workspace/swift-PR-TensorFlow-Linux/Ninja-ReleaseAssert+stdlib-Release/swift-linux-x86_64/bin/sil-opt+0x4a1a674)

Fixed in https://github.com/apple/swift/pull/28505/commits/da138297e74d6908a7fe60193abab553de9143c4.

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

Merging, since https://github.com/apple/swift/pull/28501 mirror was approved.


Add support for collections 2

Subject

I am targeting this branch, because {reason}.

Closes #{put_issue_number_here}.
Changelog

### Added
- Support for doctrine/collections 2

I think the dep is not getting installed.

This is not for now indeed, doctrine/orm doesn't support collection 2.


[Volunteer] Staffing the CNTi booth at ONE Summit

Describe the action item:

LFN booth area will consist of three kiosks/mini booths, one of which will be dedicated to CNTI
Volunteer to be at the CNTi booth, to staff the area and address questions about the CNTi program

Tasks:

express your interest/availability in being present at the ONE Summit's CNTi booth by commenting in this issue
coordinate with Jill, LFN on the volunteer hours needed and your hours of availability

I will attend ONEs and am willing to staff the CNTi booth.  I will be available Mon, Tue, and AM on Wed.

I will attend ONE as well and willing to take some booth shifts.


Custom metric fails with "ValueError: Metric should be a callable"

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Fedora 34
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): v2.5.0-rc3-213-ga4dfb8d1a71 2.5.0
Python version: Python 3.8.10
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the current behavior
Given the minimal viable program below I get an error (also when defining call instead of __call__):
ValueError: Metric should be a callable, found: <__main__.MyLoss object at 0xaddress>

Describe the expected behavior
I expect the fitting to commence and complete without error.
Contributing

Do you want to contribute a PR? (yes/no): no

Standalone code to reproduce the issue
import tensorflow.keras as keras
import numpy as np

class MyLoss(keras.losses.Loss):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
    def __call__(self, x, y):
        return x-y

def get_model():
    i = keras.Input((1,))
    m = keras.layers.Dense(10)(i)
    m = keras.layers.Dense(1)(i)
    return keras.Model(i,m)

m = get_model()
m.compile(loss='mse', metrics=[MyLoss()])
m.fit(np.arange(100), np.arange(100))

Other info / logs
Full output

Was able to replicate the issue on colab. Please find the gist here. Thanks!

@obtu It looks like your Issue relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. As (previously announced), all future development of Keras is expected to happen in the github.com/keras-team/keras repository. If your issue lies with the TF-Core area please comment back with your explanation and we can look into it further. Thanks!

I have created a new issue at the keras repo: https://github.com/keras-team/keras/issues/14965

@obtu  Closing the issue here since issue was created in keras repo.


time: Altered time.Time state from calling IsDST or Zone

What version of Go are you using (go version)?

$ go version
go version go1.17.6 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dschultz/.cache/go-build"
GOENV="/home/dschultz/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/dschultz/workspace/apiserver-go/pkg/mod"
GONOPROXY="github.com/aspenmesh/*"
GONOSUMDB="github.com/aspenmesh/*"
GOOS="linux"
GOPATH="/home/dschultz/workspace/apiserver-go"
GOPRIVATE="github.com/aspenmesh/*"
GOPROXY="https://proxy.golang.org"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.6"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/dschultz/workspace/apiserver/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2743734130=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Observing bizarre state mutations around the location in an instance of time.Time. By calling IsDST (which should be read-only, right?), the state of an instance is changed. Subsequent instances instantiated after the call to IsDST have an updated location and altered state.
https://go.dev/play/p/bq0qA7JMJIz
With output as follows:
before<PHONE_NUMBER>6750117723, after<PHONE_NUMBER>8078847701, new<PHONE_NUMBER>8078847701, pre<PHONE_NUMBER>6750117723

Showing that the hash of the instance changes after calling IsDST (Zone produces the same results). The hash of a new instance created after the call to IsDST on the first instance equals the new hash.
What did you expect to see?
A consistent hash and unaltered state when calling a seemingly read-only function.
What did you see instead?
A mysteriously changing hash value.

What is the bug here? The time package explicitly says you should not do this:
// Note that the Go == operator compares not just the time instant but also the
// Location and the monotonic clock reading. Therefore, Time values should not
// be used as map or database keys without first guaranteeing that the
// identical Location has been set for all values, which can be achieved
// through use of the UTC or Local method, and that the monotonic clock reading
// has been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)
// to t == u, since t.Equal uses the most accurate comparison available and
// correctly handles the case when only one of its arguments has a monotonic
// clock reading.

The location (time.Local) is only initialized on first use. As this isn't exposed, there's no guarantee on internal values.
Closing as working as intended.

Thanks for the explanation and the documentation is quite clear. Just rather odd behavior. Calling UTC and/or Local had no effect. Adding this init function solved the problem:
func init() {
	_ = time.Unix(0, 0).IsDST()
}


new reverse proxy url  not work

@zjrwtx what error message are you getting?

Whatever issue you're having has likely been fixed. Please re-open this issue if you're still having problems.


Log failure to send NaN values to remote store as Debug

This was a warning and can be a frequent occurrence.  Let's not fill up
logs unless we are asked to.
The InfluxDB driver has a similar condition and log message but is already at the Debug level.

Thanks!


Try and get coveralls working

Coveralls is reporting no coverage, try and get it working.

Coverage remained the same at 0.0% when pulling 516c93e850a29a13f18024a528397d2c65505646 on coveralls into 2691b5ebf5aa1000ea0aba76c30f9ec8b3786fee on master.

I have this half-remembered idea that coveralls won't work unless there is some valid data in master, so I'm going to merge this and hope for the best.

It is at least reporting that it is uploading something to coveralls.io


duplicate table names breaks schema inspect

atlas schema inspect fails when there are duplicate table names across schemas. For example, given a postgres db like:
CREATE SCHEMA "foo";
CREATE TABLE "foo"."foo" (
	"id" uuid not null primary key
);

CREATE SCHEMA "bar";
CREATE TABLE "bar"."foo" (
	"foo_id" uuid not null primary key
);

ALTER TABLE "bar"."foo"
ADD CONSTRAINT "fk_foo_bar" FOREIGN KEY ("foo_id")
REFERENCES "foo"."foo" ("id");

Atlas will fail to resolve the foreign key:
$> atlas schema inspect --url "postgres://user:pass@localhost:5455?sslmode=disable"
Error: postgres: referenced column "id" was not found for fk "fk_foo_bar"

I think this is happening because this if/else block doesn't disambiguate foo.foo from bar.foo
Reproduction
The issue can be reproduced using this project: jjdonov/atlas-1973

Thanks for reporting this, @jjdonov. I'll give it a look and update you if I need help reproducing this.


singlevm: Split up and clean up legacy parts

This PR is in preparation for my work on bringing a new deployment tool into ciao. It splits out many of the steps singlevm does into scripts that are then separately sourced moving functionality around to improve legibility but also throughput.
It also addresses some minor bugs around certificate handling and removes some extraneous steps.

Coverage decreased (-0.02%) to 65.771% when pulling 38364bb98913be0124c5d99c8d49cface8be6791 on rbradford:singlevm-spring-clean into 026a5d4b164466bc69e7fa0edd766bbfb6056c33 on 01org:master.


Add support for more elliptic curves

[x] p348 (using RustCrypto)
[x] p521 (using Ruscrypto)
[x] brainpoolP256r1 (Mechanism definition only, implementation in separate backend)
[x] brainpoolP384r1 (Mechanism definition only, implementation in separate backend)
[x] brainpoolP512r1  (Mechanism definition only, implementation in separate backend)

This PR is the upstream version of https://github.com/trussed-dev/trussed/pull/163

Good point.
I did not add the client traits because I don't use them in opcard, so they would not end up being used anyway.
We can add them in the future if needed.


Automate docs update for new Azure image license approvals

Feature Request
When deploying a cluster to Azure, you must first accept the license agreement for the base image. With new releases of TCE, the name/version of the image changes. For an end user, the only means of determining the name of the image that needs to be used is to look at the logs of the capz-controller-manager pod. Not very user friendly.
We should automate updating the documentation with the correct name/version of the images. This way, end-users will always have easy access to the correct image name.
Describe alternatives you've considered

Additional context
#3215 is the inspiration for this issue.

Related #2586

Working with Mary to add this as a checklist item as following doc versioning, we're not using shortcodes for versioning

@seemiller This will be handled by a checklist item. See row 3 here:
https://docs.google.com/spreadsheets/d/1zQ7N9t3Jznzi8hzY7LW088Wzo7XdOqeZQJ5sIOaLXyQ/edit#gid=1527055808


Update edf dependency

This fixes a CI failure first reported in #159 (see https://github.com/lina-usc/pylossless/actions/runs/9830889740/job/27231055697?pr=159)

Since v1.7 (April 2024), MNE uses  edfio for writing EDF files. So we no longer should depend on edflib-python, but should use edfio.

There are a couple of ways we can go about this.

Add a lower cap on the MNE version in our requirements.txt file, i.e. mne>=1.7. This assures that people don't have an older version of MNE installed that will try to use edflib-python.
Follow SPEC0  and officially support all MNE versions that were released within the last 2 years (so that goes back to mne 1.4). Thus, we would need to add code that checks what MNE version the user has installed. If it is < 1.7, check if edflib-python is installed. If it is >1.7, check if edfio is installed, etc.

Personally I vote for 1, because I think the maintenance burden of 2 is currently too much for this project. Also, MNE only officially supports their latest stable release, so I don't want to support people using older versions that MNE doesn't even support themselves.
@Andesha @jadesjardins @christian-oreilly What do you think?

I'm self merging this PR so that #159 is not blocked, but I will repost my comment in a separate GH ticket so that we can discuss

Personally I vote for 1, because I think the maintenance burden of 2 is currently too much for this project. Also, MNE only officially supports their latest stable release, so I don't want to support people using older versions that MNE doesn't even support themselves.
@Andesha @jadesjardins @christian-oreilly What do you think?

SPEC0 is a nice initiative. I did not know about it. In general, I favor the requirements being as flexible as possible to avoid creating dependency conflict in downstream projects but I am good with 1 too because this is a relatively young project so I think we need to keep the maintenance burden relatively low until there is more buy-in from the community.

SPEC0 is a nice initiative. I did not know about it. In general, I favor the requirements being as flexible as possible to avoid creating dependency conflict in downstream projects but I am good with 1 too because this is a relatively young project so I think we need to keep the maintenance burden relatively low until there is more buy-in from the community.

@christian-oreilly  one potential middle ground is that, assuming #159 get merged then users no longer have to save their files as EDF (they can save them to any format mne_bids.write_raw_bids supports; brainvision, fif etc.) - then  I think there's a case to be made to drop the hard dependency on edifo in this project:
Then, If the user wants to export to EDF:

if they have mne >=1.7, but don't have edifo installed, MNE will say "you need to pip/conda install edfio"
if they have mne < 1.7, but don't have eflib-python installed, MNE will say "you need to pip/conda install edflib-python"

Basically we let MNE handle communicating their dependencies.
The downside is that it could cause an annoyance if a user accepts our pipeline defaults, and processed their whole only for it to fail at the end because they don't have the ability to write EDF. We could try to add extra warnings in the documentation to communicate this.
What do you think?

Sorry.. I just saw your response in #159 . I'll respond there


Automate submodule commit update

The submodule in ColossalAI should be update its commit ID when there is any update in this repository. This may be done via github action and we should definitely automate this process to save some trouble.

This was already added in the Github CI in the Colossal-AI repository.


Remove flux emoji store

Summary
Remove stores/emoji_store.jsx.
Note that this will reset previous recent emojis for users.
@lindy65, could you regression test adding custom emojis, recent emoji, posting emojis and reactions?
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[ ] Added or updated unit tests (required for all new features)

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Going to add some unit tests before we merge

Spinmint test server created at: https://i-0484972e6faac7180.test.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-0484972e6faac7180

Thanks @jwilander
Is there a Jira tix for this PR?  I couldn't find one...
Tested adding custom emoji (by a sysadmin and ordinary user) and this is working as expected.
Error messages are displayed correctly (Unable to create emoji. Image must be less than 1 MB in size. and Unable to create emoji. Image must be smaller than 1028 by 1028.).

once you've gone back to correct the image size and before you've pressed "Save", the error messages are still displayed though - is this expected? (doesn't seem part of this PR - reproduces on master - I can put a ticket in for this)

Tested recent emoji, posting emoji and reactions as well as searching for emoji in posts. Also tested clicking on other's emoji reactions to add to the count and clicking again to check removing from the count.  Tested removing emoji reactions I've added.
Posting just a row of emoji post them as jumbo emoji as expected.
Tested searching for emoji in the emoji picker as well as clicking on the emoji section headers in the picker to change from section to section (e.g. people, nature, foods, etc.) - working as expected.
Also tested searching for emoji which is working as expected.
Tested deleting custom emoji - sysadmin can delete everyone's custom emoji, ordinary users can delete only those they created.  If a custom emoji had been posted and is then deleted, the plain text is shown in the channel (e.g. :custom:).  If a custom emoji had been used in a reaction and is then deleted, the reaction is removed from the post.


FileSystem: GetDirectories() always throws exception

https://forums.ghielectronics.com/t/sdcard-problem/21541/

GetFiles() also has same issue.

Fixed in ghi-electronics/TinyCLR-Libraries#263 and ghi-electronics/TinyCLR-Devices#291

Need test more. We didn't test folder/files in folder yet.

Tested and works


Fix a couple of docs typos

Just removing typos. I removed docs/build directory from git tree as well.

Thanks!


Pale Moon desktop detected as phone

Specifically, the presence of "Goanna/xx" in the UA in v26+ is detected as a Wiko Goa phone.

Could you please provide the significant parts of the User-Agent string of Pale Moon desktop?

The UA will always have the slice Goanna/nn.nn in the UA, and normally also always PaleMoon/nn.nn
Details about the entire UA's structure can be found in this post: https://forum.palemoon.org/viewtopic.php?f=24&t=9077

@serbanghita the regex ...|GOA|... in wiko phones matches Goanna. Could this be surrounded by \b so it doesn't match Goanna?

Goanna has its own version detection now.

:+1:


Don't import all of RxJS, only Observable

Best I can tell, this lib does not use any operators and only uses the Observable class itself. So instead of importing all of RxJS, it should probably only import Observable itself.
Since this is almost certainly used in Node.js, most people will prolly end up importing all of RxJS anyway but some people won't--Electron apps where require() IO is a bottleneck sometimes don't.

Coverage remained the same at 100.0% when pulling 57b03fcaa4c3d0e76a90e1b2e4040d6de49166dc on jayphelps:patch-1 into c604df9407d4ffb9910b1bbd5cb629bda0eeca69 on njl07:master.


Can not run ng-cli commands in ClientApp.

$ ng generate component livecast
This command can only be run inside of a CLI project.

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

ID: 32a18270-91cd-2a02-2eb8-2c8b1ed03737
Version Independent ID: c58d57e5-a0c2-201d-f6dd-076ad5971fcb
Content: Use the Angular project template with ASP.NET Core
Content Source: aspnetcore/client-side/spa/angular.md
Product: aspnet-core
GitHub Login: @SteveSandersonMS
Microsoft Alias: scaddie

Moved to https://github.com/aspnet/Templating/issues/628.


Support Linux desktop

Surprised to find out I can't built desktop apps using firebase.

Hi @sgehrman
This repository only wraps the Firebase SDKs so they can be used with Flutter. Platform support or developing new SDKs is up to the Firebase team, not us. Until they decide to develop a Firebase Windows SDK or Firebase pure Dart SDK, we won't be able to implement it.
Currently the closest thing is Firebase for C++ however see #5795. Once there is a rigorously supported Firebase desktop workflow it can probably be piped through dart:ffi.
This request is better suited for https://firebase.google.com/support/troubleshooter/report/features until then.
Thank you


Flow inconsistently reports errors, gets stuck on "0" errors

This has been affecting me and a coworker. I'm not sure exactly when this began occurring, but sometime around 0.56.0 and the latest release
Here's what happens. I'll run flow status and get a list of errors. So far, so good. Functioning as expected. After fixing some (but definitely not all) errors, I run flow status again. Now it says 0 errors, but I know for a fact that this is not accurate. Sometime later (often much later) the previous errors will resurface unexpectedly, blocking releases and just generally being very annoying. This behavior occurs on my macbook pro, my coworkers macbook pro, and even on our ci environment (circle)
Running a full check via flow check is no different, same erratic behavior
I'm not sure how to reproduce, since the main problem is it's unpredictableness
In my current situation, I did some much needed re-organizing. I was running flow status to fix broken imports. I moved hundreds of files and folders, and had about 160 errors left (that I most certainly did not fix). All of a sudden, flow ceases to work

#5180 ?

This probably can be closed.
/cc @vkurchatkin


compiler fails to build via command line

Windows 7 x64, latest JDK, latest commit (f14f472657b004be2915e2dbaa898f625be86e44)
Following the compilation directions on README.markdown:
I execute ant -buildfile build-wurst.xml compile > out.tmp
The build fails with the message:

BUILD FAILED
c:\Users\Blake\workspace\WurstScript\de.peeeq.wurstscript\build-wurst.xml:83: Compile failed; see the compiler error output for details.
Total time: 7 minutes 59 seconds

and out.tmp contains:
https://gist.github.com/Cokemonkey11/b2af8fe9aa81f58220d5
I made a few small changes to fix the build: git diff HEAD^ > compile-fix.diff
which looks like:
https://gist.github.com/Cokemonkey11/595149d9a2ac8d7c2da3

It works for me with javac 1.8.0_25, so I cannot really test other alternatives. Can you please try the change that I pushed now?
If that does not work, I can also go back to the old Java 1.7 style for this.

This latest commit did not fix the issue, unfortunately.
For reference:

$ java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

$ javac -version
javac 1.8.0_31

Ok, I will try upgrading to that version as well. But it is kind of strange for Java to break source compatibility.
Did something change in the error message or is it still the same?

$ ant -buildfile build-wurst.xml compile > out.tmp

BUILD FAILED
c:\Users\Blake\workspace\WurstScript\de.peeeq.wurstscript\build-wurst.xml:83: Compile failed; see the compiler error output for details.

Total time: 9 minutes 13 seconds

out.tmp: https://gist.github.com/Cokemonkey11/a2cee06af572416dc097
$ diff out.tmp out_old.tmp: https://gist.github.com/Cokemonkey11/10ea4c769d2608df7e71

That fixed it.


Put date format in fields that take dates.

E.g., in the Date of Birth field, the placeholder text should be

date of birth (like: 15 jul 2015)

instead of just

date of birth

Now that we're using a datepicker/pop-up calendar, I think this is obsolete.


Tetsuya Yamamoto: Watch freeminecraftgiftcode.net

Tetsuya Yamamoto requests the watch of the watch_keyword freeminecraftgiftcode\.net. See the Metasmoke search here and the Stack Exchange search here.

freeminecraftgiftcode\.net has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Coverage remained the same at 65.058% when pulling 70a76144fbfaf4c6eb6d2462b75f6f1f06c8eab9 on auto-blacklist-1524718266.5436754 into 8c3b5083744583e3ad5163dd4d4c72e7722f51e3 on master.

!!/approve


use bash source rather than dirname $0

Commit Message: use bash source rather than dirname $0
Additional Description:
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

BASH_SOURCE[0] give more reliable path. The dirname $0 always return the path of entry point script. When there are multiple scripts, a.sh and b.sh source c.sh, c.sh source d.sh, we cannot get stable dir/path in the c.sh by the dirname $0 because the entry points may be different.


SpecialBle.startBLEService was called with 0 arguments but expected 2 arguments.

Any help?

I've started example project and got the same issue.