Google Service Account

Is it possible to use a Google Service Account?
The authorization would be a bit different I think.  Perhaps something like
https://github.com/RobertoBrandini/GoogleCloudPrint/blob/31c4e011dbd12ca5c53930bdc781156d90be09c6/GoogleCloudPrintService.cs#L294

@DEllingsworth it is possible we use Google Service Account as long as we provide the "cloudprint" scope & returns the access token but the integration with the "Google.Apis.Auth.OAuth2" have not yet implemented on this lib.
It would be good if you could help to implement it, or I would do it later but i can't guarantee any time schedule

Hi,
There's code at https://github.com/io7/GoogleCloudPrint that uses a service account for many operations. But I don't think you can register a printer or issue a share invitation from a service account. I've found that once I register a non Google cloud ready printer, I cannot register any more. I can register all the Google Cloud ready printers I want, and do a manual share to the service account.
So, I've been trying some things to get the authorization code and pass that value into the code in this project. Specifically, I found code at https://developers.google.com/identity/sign-in/web/server-side-flow that appears to generate an authorization code. I pass that code to a REST service using an Ajax call, and that service calls the GenerateRefreshTokenAsync method using a redirect URL that is registered with my OAuth2 credentials (on the https://console.developers.google.com/apis/credentials/oauthclient page). But, I get a 401 (Unauthorized) error when I call GenerateRefreshTokenAsync. So, I'm pretty stuck trying to register non Google cloud ready printers.
I hope this helps you.
If you know how to get a token using the code in this repository, please reply to this, or reach me through my repository at https://github.com/awerber/GCP_Service_Account, I've been working on this problem for 2 weeks now.

Closed for being inactive for a long time.


Update README.md

typo

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   51.29%   51.29%
=======================================
  Files           7        7
  Lines         310      310
=======================================
  Hits          159      159
  Misses        151      151

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6aa3ded...0241416. Read the comment docs.

@opexxx Thank you!


Add support for multiple environments

Different base URLs, different credentials.

<environments>
  <environment>
    <baseUrl></baseUrl>
    <basicAuth>
      <username></username>
      <password></password>
    </basicAuth>
  </environment>
</environments>


Class syntax

Made Changes to src/vue-animate-scroll to utilize Class Syntax instead of prototype syntax.

I think this is what you were going for - 5226f9d2c3b4f979b90e16da1e4c430f602574c4, but let me know if I'm wrong.

That is exactly what I was trying to accomplish :+1:


Linked List Cycle

Aim :
Given head, the head of a linked list, determine if the linked list has a cycle in it.
There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the index of the node that tail's next pointer is connected to. Note that pos is not passed as a parameter.
Return true if there is a cycle in the linked list. Otherwise, return false.
Please Assign me under LGMSOC'21 .I will be doing in C++ language.
Programming language

[ ] C
[ ] C++
[ ] Java
[ ] Python

Im preparing for my coding interviews and it would really help me if you assign this question to me
Kindly assign me this
I have immense intrest  in coding

i want to work on this issue under java language
please assign me
@Saurabh4626


Can't run builded Standalone OHIF viewer.

Hello, I need to run builded OHIF viewer on my server. I've run build command as described here:
https://github.com/OHIF/Viewers/wiki/Running-and-building-the-Standalone-Viewer
But when I've uploaded files on my server I'm getting this error:
Oops, looks like there's no route on the client or the server for url: "http://my-site.com/viewer/."
In console I see error - 404 on address: http://my-site.com/sockjs/info?cb=ded2pd_otk
But locally when I run using METEOR_PACKAGE_DIRS="../../Packages" meteor command everything works perfectly!
I think something is missing in wiki. What am I doing wrong?

Still need to be using routes for the Standalone viewer.
If you haven't modified routes.js, have you tried:
http://my-site.com/viewer/testDICOMs
?

Great! It works! but why I'm getting errors in my browser console?
https://s.mail.ru/Fr42/M53WrWwr8

Also how to correctly provide DICOM files for viewer? In the example sampleDICOM.json there using dicomweb:// protocol. I've tried to use http but it doesn't work. What can you advice?

It looks like we don't have any default settings being used. You will need to add a config JSON file when building the standalone viewer. The argument is like --settings ../../config/orthancDICOMWeb.json
So the whole thing would be:
METEOR_PACKAGE_DIRS="../../Packages" meteor-build-client ../myOutputFolder -u localhost:3000/subdirectory/ --settings ../../config/orthancDICOMWeb.json

I added some default settings to index.html here:
https://github.com/OHIF/Viewers/commit/fc29b48b591c0259453ba97da43f0394db7feaa7#diff-b11222605e5ee5357bd25265ff2307d4R23


Backend Setup for ResumeHub.

Backend is runnig completely fine ,

First of all, thank you very much @coderight1 for your contribution. I really appreciate that you are making good progress in this project. However, since this project is for my self-development, I am trying to make it from the beginning all alone. I really appreciate your time on this project, I really do. This is unfortunate but this project may not be able to conduct any merges from any contributor except me. I am open to the suggestion but will personally try and test it before merging.
Please, do not take it as a loss of opportunity but an opportunity to grow in this field. I am a team player, but not for this project. I hope you would understand.
If you want to progress in this project on your own, you could make your own branch or clone this project in your repository to develop it in your own way.
I am not being harsh, it is just that my vision of this project is different.
Thank you for your sincere contributions.
Best regards.


Grouped result of multiple joins

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
def get_model_detail(session: Session, id: int):
    data = session.query(ModelProfile, SubModelProfile).join(SubModelProfile, ModelProfile.id  == SubModelProfile.mp_id).filter(ModelProfile.id == id).all()

    return data

Description

Above code is trying to retrieve one-to-many relationship of ModelProfile [1:M] SubModelProfile
It results in duplicate ModelProfile in the result:

[
  {
    "ModelProfile": {
      "model_version": "1",
      "id": 1,
      "created_at": "2021-09-15T14:01:52"
    },
    "SubModelProfile": {
      "mp_id": 1,
      "id": 1
    }
  },
  {
    "ModelProfile": {
      "model_version": "1",
      "id": 1,
      "created_at": "2021-09-15T14:01:52"
    },
    "SubModelProfile": {
      "mp_id": 1,
      "id": 2
    }
  },
  {
    "ModelProfile": {
      "model_version": "1",
      "id": 1,
      "created_at": "2021-09-15T14:01:52"
    },
    "SubModelProfile": {
      "mp_id": 1,
      "id": 3
    }
  }
]

Question: I'm expecting the result to look like:
[
  {
    "ModelProfile": {
      "model_version": "1",
      "id": 1,
      "created_at": "2021-09-15T14:01:52"
    },
    "SubModelProfile": [
       {
        "mp_id": 1,
        "id": 1
      }, {
       "mp_id": 1,
       "id": 2
      }, {
      "mp_id": 1,
      "id": 3
      }
   ]
  }
]

Or this (what I wish to achieve)
[
  {
    "model_profile": {
      "model_version": "1",
      "id": 1,
      "created_at": "2021-09-15T14:01:52"
      "sub_model_profiles":  [
           {
            "mp_id": 1,
            "id": 1
          }, {
           "mp_id": 1,
           "id": 2
          }, {
          "mp_id": 1,
          "id": 3
          }
      ]
  }
]

Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.7.11
Additional Context
No response

@tiangolo any updates
@terencetwuo


non-interactive brain figure

Description of the problem
brain windows are not interactable, don't respond to their close buttons, and crash sometimes when calling brain.close()
Steps to reproduce
import mne

data_path = mne.datasets.sample.data_path()
subjects_dir = data_path / "subjects"
sample_dir = data_path / "MEG" / "sample"
brain_kwargs = dict(alpha=0.1, background="white", cortex="low_contrast")
brain = mne.viz.Brain("sample", subjects_dir=subjects_dir, **brain_kwargs)

Link to data
No response
Expected results
an interactive window.
Actual results
a non-interactable window showing a brain that is zoomed in to the level where it shows about 3 gyri. Closing the window manually doesn't work ("the program isn't responding, wait or terminate?").  However:
$ mamba list pyvistaqt
# packages in environment at /opt/mambaforge/envs/mnedev:
#
# Name                    Version                   Build  Channel
pyvistaqt                 0.11.0             pyhd8ed1ab_0    conda-forge

I can't replicate at least on macOS arm64 with:
├☑ pyvista           0.43.dev0 (OpenGL 4.1 Metal - 88 via Apple M1 Pro)
├☑ pyvistaqt         0.12.0.dev55+gee4bbf9
├☑ vtk               9.2.6
├☑ qtpy              2.4.0 (PyQt5=5.15.8)

Window shows up fine and I can interact:

And brain.close is okay. I should be able to test on Linux tomorrow.

Notice that pyvistaqt is marked as version 0.0.0. However:

If you use build 1 instead of build 0 of pyvistaqt 0.11 on conda-forge the version should be fixed, see https://github.com/conda-forge/pyvistaqt-feedstock/pull/18

From a quick look at https://app.circleci.com/pipelines/github/mne-tools/mne-python/22194/workflows/a09f0e0f-0303-4214-b67e-14537775d0b6/jobs/62159 which passed and the resulting doc build things are at least not totally broken there. But CircleCI uses PyQt6 I think. Might be worth seeing if install PyQt6 from pip fixes things for you, that would tell us we have some PyQt5 compat problem

I can't replicate on Linux with PyQt6 6.6.0 or PyQt5 5.15.10 or 5.15.8 :(

Works for me on macOS with Qt5

something seems to be deeply wrong with my system. I can't get it to work with pyqt6 nor pyside6 either:
$ QT_API=pyqt6 ipython
In [1]: import mne
   ...:
   ...: data_path = mne.datasets.sample.data_path()
   ...: subjects_dir = data_path / "subjects"
   ...: sample_dir = data_path / "MEG" / "sample"
   ...: brain_kwargs = dict(alpha=0.1, background="white", cortex="low_contrast")
   ...: brain = mne.viz.Brain("sample", subjects_dir=subjects_dir, **brain_kwargs)
Using pyvistaqt 3d backend.

malloc(): invalid size (unsorted)
Aborted (core dumped)
$ QT_API=pyside6 ipython
In [1]: import mne
   ...:
   ...: data_path = mne.datasets.sample.data_path()
   ...: subjects_dir = data_path / "subjects"
   ...: sample_dir = data_path / "MEG" / "sample"
   ...: brain_kwargs = dict(alpha=0.1, background="white", cortex="low_contrast")
   ...: brain = mne.viz.Brain("sample", subjects_dir=subjects_dir, **brain_kwargs)
Using pyvistaqt 3d backend.

Installed qt6 event loop hook.
In [2]: Killed

with QT_API=pyside6 I got the same behavior as with pyqt5: namely the image was way zoomed in and non-interactive, and the window had to be force-killed as its close button didn't work.

:scream:
Maybe you could try with a Ubuntu-python-based virtualenv instead of conda, just to rule out some badness there? And if that by some miracle works, try a fresh conda env after conda deactivateing your current env, etc.

doing this:
$ /usr/bin/python3 -m venv mnetest
$ source mnetest/bin/activate
$ pip install mne[dev]

followed by running the MWE in the PR description, yields this:
RuntimeError: Could not load any valid 3D backend
pyvistaqt: No Qt bindings could be found
notebook: No module named 'ipyevents'

 install pyvistaqt, using pip or conda:
'pip install pyvistaqt'
'conda install -c conda-forge pyvistaqt'

 or install ipywidgets, if using a notebook backend
'pip install ipywidgets'
'conda install -c conda-forge ipywidgets'

So our pip install mne[dev] apparently doesn't install either pyvistaqt nor ipywidgets?

IIRC it installs pyqt but does not specify a Qt binding so you also need for example pip install PyQt6

ok, I've got things working again. Here's what I did:
download our environment.yml file, and remove pyqt!=5.15.3,!=5.15.4 and replace it with
pip:
  - PyQt6

a fresh conda env based on that file worked.

We should probably add ipyevents to the full variant, WDYT?

We should probably add ipyevents to the full variant, WDYT?

it's in there, I just made the mistake of installing pip install mne[dev] instead of mne[full,dev].  Remember when I said I found it unintuitive/confusing if the dev variant didn't install everything?  I wasn't joking 😆

I find it not great either
Can we not change it?


timestamp set for dencun on mainnet.

Timestamp set for cancun on mainnet.

Fork IDs need to be updated.
https://discord.com/channels/595666850260713488/745077610685661265/1205157653047808071

g11tech — Today at 7:26 AM
is this the forkhash for mainnet cancun<PHONE_NUMBER>, 0x9f3d2254? cc @MariusVanDerWijden
MariusVanDerWijden — Today at 7:33 AM
Looks good 👍

Looks like you just added them


FIXFix decimalv3 with dot string

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Crash during build

OS: Ubuntu 18.04
Error:
[ 55%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
td/CMakeFiles/tdcore.dir/build.make:830: recipe for target 'td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o' failed
make[2]: *** [td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o] Error 4
CMakeFiles/Makefile2:323: recipe for target 'td/CMakeFiles/tdcore.dir/all' failed
make[1]: *** [td/CMakeFiles/tdcore.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

You don't have enough memory on the server to build. For g++ at least 4GB of RAM are needed.

You don't have enough memory on the server to build. For g++ at least 4GB of RAM are needed.

Thanks, got it

OS: Ubuntu 18.04
Compiler: CLang++
Ram: 2GB
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessagesDb.cpp.o
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessageSearchFilter.cpp.o
[ 75%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o
terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7fd096c630ea]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x56)[0x7fd096c61366]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(+0x81c49b)[0x7fd096c6149b]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7fd095d0a040]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fd095d09fb7]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fd095d0b921]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957)[0x7fd096148957]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92ae6)[0x7fd09614eae6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92b21)[0x7fd09614eb21]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d54)[0x7fd09614ed54]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x932dc)[0x7fd09614f2dc]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(ZNSt8_Rb_treeIN4llvm9symbolize22SymbolizableObjectFile10SymbolDescESt4pairIKS3_NS0_9StringRefEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE16_M_insert_uniqueIS4_IS3_S6_EEES4_ISt17_Rb_tree_iteratorIS7_EbEOT+0xb9)[0x7fd097e0f719]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize22SymbolizableObjectFile9addSymbolERKNS_6object9SymbolRefEmPNS_13DataExtractorEm+0x178)[0x7fd097e0fc68]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize22SymbolizableObjectFile6createEPNS_6object10ObjectFileESt10unique_ptrINS_9DIContextESt14default_deleteIS6_EE+0xe2)[0x7fd097e0feb2]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize14LLVMSymbolizer21getOrCreateModuleInfoERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9StringRefE+0x288)[0x7fd097e14f08]
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1(_ZN4llvm9symbolize14LLVMSymbolizer20symbolizeInlinedCodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmNS_9StringRefE+0x40)[0x7fd097e15870]
llvm-symbolizer(+0x41e1)[0x5609156c81e1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fd095cecbf7]
llvm-symbolizer(+0x5e1a)[0x5609156c9e1a]
Stack dump:
0.      Program arguments: llvm-symbolizer --functions=linkage --inlining --demangle
^Ctd/CMakeFiles/tdcore.dir/build.make:2150: recipe for target 'td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o' failed
make[2]: *** [td/CMakeFiles/tdcore.dir/td/telegram/MessagesManager.cpp.o] Interrupt
CMakeFiles/Makefile2:323: recipe for target 'td/CMakeFiles/tdcore.dir/all' failed
make[1]: *** [td/CMakeFiles/tdcore.dir/all] Interrupt
Makefile:129: recipe for target 'all' failed
make: *** [all] Interrupt
Would it be possibile to build it on another system (4GB Ram - Ubuntu 18.04) and then shift it to my system?

@Nickelza Yes, it would be possible if you install compatible OpenSSL and zlib on both systems.

@Nickelza Yes, it would be possible if you install compatible OpenSSL and zlib on both systems.

I transferred the telegram-bot-api folder from the system of which I built to mine (same OS, OpenSSL and Zlib version). I then copied the telegram-bot-api file from the build folder to/bin, /usr/bin and /usr/bin/local but telegram-bot-api command is still not recognized, while on the system I built it it's working. Any ideas please?

Did you turn on the executable bit of the telegram-bot-api executable file after copying it?

Yes I did
"sudo chmod +x telegram-bot-api"
Then ran it with "./telegram-bot-api"
Il displays the command list, but still doesn't work if invoked via "telegram-bot-api" only.

Run which telegram-bot-api.

Run which telegram-bot-api.

No response

What is result of ls -l /bin/telegram-bot-api /usr/bin/telegram-bot-api /usr/bin/local/telegram-bot-api /usr/local/bin/telegram-bot-api?

What is result of `ls -l /bin/telegram-bot-api /usr/bin/telegram-bot-api /usr/bin/local/telegram-bot-api /usr/local/bin/telegram-bot-api?

ls: cannot access '/usr/bin/local/telegram-bot-api': No such file or directory
-rw-r--r-- 1 root root 29422624 Nov  4 20:50 /bin/telegram-bot-api
-rw-r--r-- 1 root root 29422624 Nov  4 20:50 /usr/bin/telegram-bot-api
-rw-r--r-- 1 nick root 29422624 Nov  4 20:50 /usr/local/bin/telegram-bot-api

The files don't have executable bit.

I've created the executable bit for each of the files, now seems to be working. Thanks a lot!


Version 1.0.0

This PR is an amalgamation of several already reviewed PRs that were done against the 1.0 branch. We are ready to merge this work back into master and ship version 1.0.0 of Brigade.
This PR includes the following:

Store + Connect (Thanks @ItsJonQ!)
1.0 API Updates
ReactMixin (Thanks @brettjonesdev)
1.0 Beta Release

A lot has changed, hence the major version number bump.
Checkout the docs: https://brigade.netlify.com/
Checkout the storybook: https://brigade-storybook.netlify.com/ - Look in the stories directory to see the code behind them. These serve as examples of how to use Brigade in a project.
The default export has been removed. The exported ReactMounter HOF is the evolution of the default export from the previous version. A connect HOF is also exported that is meant to be used with ReactMounter to connect components to the store. A new ReactView HOF is also exported. The docs cover when to use ReactMounter and ReactView.

Pull Request Test Coverage Report for Build 115

151 of 151 (100.0%)  changed or added relevant lines in 15 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 39:
0.0%

Covered Lines:
182

Relevant Lines:
182

💛  - Coveralls

Oh boy!  Much learnings...
Re: All the Zero updates. Here's the trickiness

Brigade needs it's own .babelrc, in order to compile things properly.
Need to consider babel build, Docz, and Jest
(Dev)Dependencies are clashing, because of Babel 6 vs 7
@babel/runtime is messing up babel (7) build

Zero: Changes

Zero, is now on Babel 7
Zero does NOT ship with @babel/runtime, what so ever
Zero does not include babel-preset-react-app (as this module uses @babel/runtime)

Docz: Changes

Docz requires babel-preset-react-app
Added babel-preset-react-app to devDependency.

As it now stands...
Build + Jest goes through Zero's now Babel 7 pipeline. It all works, and @babel/runtime is not used.
Docz goes through it's own build/babel pipelines, supplied with babel-preset-react-app via devDependency.
Everybody is happy
:cry-through-pain:


ORB 455 - deploy first strategy subgraph

entities for strategies, deposits, withdraws and tokens
handlers for deposit and withdraws
mappings for creation of strategies, deposit/withdraws and tokens

@RiccardoGalbusera are we going to use npm or yarn ? Please choose one, maybe npm as the repo and remove the lock file?


Fix docs upload directory

Similar to https://github.com/rapidsai/cudf/pull/15291, fixes the upload directory for docs (24.04.00a30 => 24.04).

/merge

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

Project coverage is 93.57%. Comparing base (1874f49) to head (e58d5a9).

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-24.04     #714      +/-   ##
================================================
- Coverage         93.57%   93.57%   -0.01%
================================================
  Files               130      130
  Lines             10009    10007       -2
================================================
- Hits               9366     9364       -2
  Misses              643      643

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


Using addChild add's to the draw calls

I just noticed if I create a sprite and then another one using addChild to that sprite's parent, it actually accumulates extra draw calls.
I am not sure if this is intended or how Pixi / Phaser work internally? But, I could let's say just add that sprite to the game world wherever and not add it to the parent using addChild and then just reposition it seperately (since it's not bound to the parent), and it would result in hundred's of saved drawn calls.
My suggestion is, shouldn't sprites that be added to their parent not add those extra drawn calls or is that just how the group system is set up?

For example:
MONSTER_SPRITE_LAYER = game.add.group();
var temp_monster = game.add.sprite(0, 0, 'Bat');
var monsterShadow = game.add.sprite(temp_monster.x, temp_monster.y, 'GameSprite', 'MonsterShadow', temp_monster);

I can add thousand's of these, and the draw call will not be increased at all. I can lately just reposition the monsterShadow separately later since it's not added to a group (parent positioning).
Now, take a look here:
MONSTER_SPRITE_LAYER = game.add.group();
var temp_monster = game.add.sprite(0, 0, 'Bat');
var monsterShadow = game.add.sprite(temp_monster.x, temp_monster.y, 'GameSprite', 'MonsterShadow', temp_monster);											temp_monster.addChild(monsterShadow);

If I do this 1000 times, I get 1000 more drawn calls, doesn't seem right. The trade-off is that now I don't have to reposition monsterShadow, but I don't think that's worth the 1000 extra drawn calls? Not sure, just trying to show an example here

Draw calls are based on the texture being rendered, not the display
hierarchy. You gain 1000 draws because you're ping ponging between two
textures, so it can't batch them.
Use a texture atlas, then as long as parent and child use frames from the
same atlas it will batch the draws.
On Monday, 28 March 2016, Dillybob92<EMAIL_ADDRESS>wrote:

For example:
MONSTER_SPRITE_LAYER = game.add.group();
var temp_monster = game.add.sprite(0, 0, 'Bat');
var monsterShadow = game.add.sprite(temp_monster.x, temp_monster.y, 'GameSprite', 'MonsterShadow', temp_monster);
I can add thousand's of these, and the draw call will not be increased at
all. I can lately just reposition the monsterShadow separately later since
it's not added to a group (parent positioning).
Now, take a look here:
MONSTER_SPRITE_LAYER = game.add.group();
var temp_monster = game.add.sprite(0, 0, 'Bat');
var monsterShadow = game.add.sprite(temp_monster.x, temp_monster.y, 'GameSprite', 'MonsterShadow', temp_monster);                                           temp_monster.addChild(monsterShadow);
If I do this 1000 times, I get 1000 more drawn calls, doesn't seem right.
The trade-off is that now I don't have to reposition monsterShadow, but I
don't think that's worth the 1000 extra drawn calls? Not sure, just trying
to show an example here
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/photonstorm/phaser/issues/2401#issuecomment-202216089

--
Photon Storm Ltd.
http://www.photonstorm.com
Skype: richard.davey
Twitter: @photonstorm
Registered in England and Wales.
Company ID: 8036404
VAT Number: 136 4333 27

Oh so both texture's need to be on the same atlas. Because my GameSprite is my atlas, but Bat isn't on there because that monster has animations. But if I stick Bat on my GameSprite atlas it should be fine then?  I see now. Thank you for explaining this, I got really confused

I am going to give this a good read too. If anyone else is wondering about animations inside texture atlas's :)
http://www.joshmorony.com/how-to-create-animations-in-phaser-with-a-texture-atlas/
Thanks again @photonstorm


Using --bisect in SPEC_OPTS results in infinite loop

Expected behaviour
Using SPEC_OPTS="--bisect" should work the same as using --bisect on the command line.
Actual behaviour
RSpec prints its bisection startup message, then continuously spawns new processes and does not terminate.
Steps to reproduce
cat > blah_spec.rb <<EOS
RSpec.describe 'blah' do
  it 'is true' do
    expect(true).to be_truthy
  end
end
EOS

rspec blah_spec.rb --bisect # Works as normal

SPEC_OPTS="--bisect" rspec blah_spec.rb # loops infinitely spawning new rspec instances

Discussion
I'm not sure if this is necessarily a case you'll want to handle, but it was a problem we ran into recently while trying to bisect order-dependent failures from CI. We use a separate test runner, knapsack, to manage parallelisation of our build. Since this controls RSpec invocation, it's frequently necessary to use SPEC_OPTS to add extra options such as --fail-fast and --bisect.
When --bisect is specified at the command line, RSpec spawns child processes each time it runs a bisect round, removing --bisect from the original CLI arguments so the child processes don't try to start a new bisection.
When --bisect is specified in SPEC_OPTS, however, it's passed through to the child processes, which then start a new bisection, launch more child processes, and so on and so on.
I'd be happy to submit a PR to address this problem, but first wanted to check whether you think it's worth the extra complexity that would be required to support --bisect via SPEC_OPTS, or whether this is an option you only want to support as a CLI argument.

This isn't an unreasonable assumption, although it's easy to see why the behaviour results, I've tried to trivially isolate this but without success so far, I'm out of time to work on this tonight, but feel free to have a go!

We'd happily merge a fix for this :).  I honestly never considered SPEC_OPTS when adding --bisect so I'm not too surprised to see it caused this problem.

I've tried manipulating the env we pass to Open3 but without any joy, similarly tried to unset the env on the command without any luck, didn't try directly manipulating ENV however.

Thanks for looking into it - I'm having a go too. So far I've managed to fork-bomb my own laptop by writing a correctly-failing test that didn't quite clean up after itself. Tricky one, this. :)
I've also tried to pass a modified env to Open3 (using a copy of the original, but with just --bisect removed from SPEC_OPTS). When I do this, though, the child processes seem to lose any notion of which examples they should be running, and act as if called with no arguments. They get this info from the DRb server, though, so I'm a bit at a loss as to why modifying the env should interfere with this.

I'm going to guess that the reason is that --bisect should only be passed into the top-level RSpec process, but when it's in the ENV, it gets passed into every child which then spawns more children, each trying to bisect.
Just got this memory-usage artifact on our circleci failure

Your build has exceeded the memory limit of 4G on 1 container

 17038 161640 3.5 ruby /home/ubuntu/rails_server/vendor/bundle/ruby/2.2.0/bin/rake knapsack:rspec

and then 43 of these
 17444 27524  0.8 /home/ubuntu/.rvm/rubies/ruby-2.2.4/bin/ruby -I/home/ubuntu/rails_server/vendor/bundle/ruby/2.2.0/gems/webmock- (etc)

yeah, the runner has @original_cli_args = original_cli_args.reject { |arg| arg.start_with?("--bisect") } which only looks at cli args.  I'm not sure if the spawned runners should have a different ENV['SPEC_OPTS'] passed to them or if RSpec should modify before the runners start and restore it when they end

(and if anyone is paying attention, apparently I did not read @urbanautomaton 's description carefully enough because these details are laid out in it.).
any particular reason to use open3 vs. spawn?

any particular reason to use open3 vs. spawn?

Not that I know of.  I've used open3 a few times and reached for it because I was familiar with it.  I don't think I've ever used Process.spawn before and didn't consider it.
If switching helps you fix this issue and satisfies the tests, go for it.

hmm,

Open3.popen3(*cmd, **opts, &block)
The parameters env, cmd, and opts are passed to Process.spawn.

require 'open3'
require 'pp'

ENV.keys.collect { |k| ENV.delete(k) }
result = Open3.popen3({'A' => 'B', 'C' => 'D'}, '/usr/bin/env') do |i, out, err, thr|
output = Thread.new { out.read }
error  = Thread.new { err.read }

[ output.value, error.value, thr.value ]
end

pp result #=> ["A=B\nC=D\n", "", #<Process::Status: pid 46225 exit 0>]


Does not recognise todo.md (VSCODE MAC)

For some reason I don't get any syntax highlighting on the file. Adding tasks from the left panel doesn't work. It seems like todo.md is seen as a markdown file.

There is no steps to reproduce and I don't own a Mac.
Any errors in devtools workbench.action.toggleDevTools Developer: Toggle Developer Tools?

No, no errors. It seems like it's not doing anything.
Also then I click on open default file (from the activity on the right), I get a message that Default file does not exist. Then when I specify, nothing happens.
Dennis

Same here. It works for me after renaming the file to todo.txt and changing the user setting to include its pattern, e.g. "todomd.activatePattern": "**/todo.{md,txt}"

Maybe extension wasn't activated at all?
When this happens - does it show activation time like 12ms or is it showing "Activating..." forever or something like that?

No, nothing.
On Sat, Feb 10, 2024 at 9:29 AM Alexander @.***> wrote:

Maybe extension wasn't activated at all?
When this happens - does it show activation time like 12ms or is it
showing "Activating..." forever or something like that?
—
Reply to this email directly, view it on GitHub
https://github.com/usernamehw/vscode-todo-md/issues/88#issuecomment-1936931868,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABEW5ATXOGZZ5VOCX24AK3YS4VVLAVCNFSM6AAAAABCE6AXWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHEZTCOBWHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


chore(deps): update windows crate to 0.57 and SDK to 1.0.2535.4

Just published 0.31.0 of webview2-com and webview2-com-sys to crates.io with these changes.

Thank you


serkan-ozal's 4th submission

split big regions into shared smaller tasks, so the workers complete their own tasks can pick up from the remaining instead of leaving its core idle
reduce number of executed instructions in the hot path

Check List:

[x] You have run ./mvnw verify and the project builds successfully
[x] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
[x] All formatting changes by the build are committed
[x] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
[x] Output matches that of calculate_average_baseline.sh
[x] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number): 638

Execution time: 3.2s/3.3s (It was 3.4s in the 3rd submission in my testing env)
Execution time of reference implementation: 5m 54.1s

Nice!
Benchmark 1: timeout -v 300 ./calculate_average_serkan-ozal.sh 2>&1
  Time (mean ± σ):      2.379 s ±  0.027 s    [User: 0.003 s, System: 0.005 s]
  Range (min … max):    2.351 s …  2.422 s    5 runs

Summary
  serkan-ozal: trimmed mean 2.3743339423133336, raw times 2.38342231398,2.36604498798,2.42222511898,2.37353452498,2.3505184419800003

Leaderboard
grep: ./src/main/java*/dev/morling/onebrc/CalculateAverage_serkan-ozal.java: No such file or directory

| # | Result (m:s.ms) | Implementation     | JDK | Submitter     | Notes     |
|---|-----------------|--------------------|-----|---------------|-----------|
|   | 00:02.374 | [link](https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_serkan-ozal.java)| 21.0.1-open | [Serkan ÖZAL](https://github.com/serkan-ozal) |  |


Java client

Do you have any plans for java driver?

Yes.
This is a Java client working in progress. It was built for benchmarking purpose, and currently does not support receiving topology change updates, and does not support Prefix Scan yet. But this should change soon if I have some time on this.
https://github.com/chrislusf/vasto-client

merged the java client into the main repo


Could you combine editor Image ‘Caption’ and ‘Free Text’ togeter?

I found that those two function have high Similarity.
Also,Could you save those text in json file ,because we will want change text before actual export to gif file

also the cursor position and mouse click event ,just add to json file instead of draw on the picutre .


[BUG] How exactly do I fix this issue. glad if anybody would help out

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

What problem did you encounter?

Get better at games bro.

 We won't help you loser.

:/

dude comes on here expecting to get help while showing proof he exploits, anyway you need to update to 2.8.0, old versions broke.


flix: 0.46.0 -> 0.47.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/flix/flix/releases.
meta.description for flix is: The Flix Programming Language
meta.homepage for flix is: https://github.com/flix/flix
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.47.0 in filename of file in /nix/store/j69prlg7xri1lprlnjsnihfms401j9qf-flix-0.47.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

flix

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/j69prlg7xri1lprlnjsnihfms401j9qf-flix-0.47.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A flix https://github.com/r-ryantm/nixpkgs/archive/91a5828179a14d3a9054be72b00809585688f432.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/91a5828179a14d3a9054be72b00809585688f432#flix

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/j69prlg7xri1lprlnjsnihfms401j9qf-flix-0.47.0
ls -la /nix/store/j69prlg7xri1lprlnjsnihfms401j9qf-flix-0.47.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

flix

Maintainer pings
cc @athas for testing.

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

1 package built:

flix


Update Logo and Name - Manual merge request - PR#23633

I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Link to my PR: https://github.com/solana-labs/token-list/pull/23633
Thanks for your support!

merged


Broken check for SMT

HTX is looking for smt_snooze_delay in sysfs, which is no longer present:
        r1 = get_cmd_op(dest, "ls /sys/devices/system/cpu/cpu0 | grep smt_snooze_delay | wc -l");
        t->smt_enabled=atoi(dest);  /*System is smt capable and/or whether smt is enabled*/

If HTX wants to know if the box is currently in an SMT mode, then it should look at something like:
/sys/devices/system/cpu/cpu0/topology/thread_siblings

This will also tell you what SMT level it is in.

#118 has been pushed to counter this issue.
smt_snooze_delay was used to find out some redundant information which is no longer necessary. Hence we're removing it.
Currently we're counting the threads in each core whenever such information is requested.


Log power and RAM

Logging power level, RAM and PSRAM.

I've given more thought to this and realized there is potentially an infinite number of rows that one may wish to add to the initial table of the Web Log output, which can quickly become overwhelming.  So instead of continuing to add new rows, I created a general callback method so that users can easily add as many new rows with whatever data they'd like in the initial table of the Web Log output.  The way I coded the callback also has the optional benefit of allowing the user to end the initial table and create a new block of custom HTML text that is inserted in the Web Log before the second table is produced.
This code has been added to the 1.8.1 branch (which is serving as the dev branch for the next release).  See the API Reference and Message Logging pages in the 1.8.1  branch for details and examples (including your DRAM example).
On a related note, I'm not sure your PSRAM code would have produced the results you expected.  You would need to subtract the size of the non-PSRAM memory, otherwise it simply provides the total memory even for systems with no PSRAM (there's actually a lot of subtlety in the various ESP32 memory calculations, such as whether you include only DRAM, IRAM, or both DRAM and IRAM, etc.).
In any case, please feel free to test out the new callback functionality in 1.8.1 and let me know what you think.  Hopefully it will be a good generic solution to adding new Web Log data fields.

Yes, I kinda see that coming as well, as everyone could end up wanting to add their own "status data". The doc was not quite accurate to how the API was actually working, so I submitted PR #671.
The callback fits the needs of this PR, so closing.


west.yml: update hal_ti to include build for TI Power Manager

Updating west.yml to point to the TI HAL repo PR zephyrproject-rtos/hal_ti#2.
Signed-off-by: Vincent Wan<EMAIL_ADDRESS>

Failure on Shippable seems unrelated. Not sure why a test is failing for mps2_an385.

Updated west.yml to point to actual revision, now that the PR on hal_ti has been merged.

@vanti This broke the /kernel/gen_isr_table/arch.interrupt.gen_isr_table test.
https://gist.github.com/stephanosio/1ce7e0abc94c973498c987755ee99ca6

@vanti This broke the /kernel/gen_isr_table/arch.interrupt.gen_isr_table test.
https://gist.github.com/stephanosio/1ce7e0abc94c973498c987755ee99ca6
https://gist.github.com/76546f7376ece0fbc342c57455bd7b9a

@stephanosio I have submitted #21345 to fix the build.


moved carl_parking to carl_interactive markers

I encapsulated my methods & global variables into a class. If I broke any conventions let me know and I'll fix them.

Cool thanks! I'll look it over and make inline comments as necessary!

Good stuff! I made some comments (some are just nit-picky... :smile: ), General comment, your class/method names are camel cased and your variables are underscored. Just pick one and stick with it for both.

Ignore my comment about not underscoring variables. Just re-read this :) http://wiki.ros.org/CppStyleGuide#Member_variables


Crossplatform-Bug in FileSessionPipe

In function
def _store(self, session, expiration):
write  os.replace(tmp, fn) instead of os.rename(tmp, fn) coz window refuses renaming the file if it exists (and it does exist after first call)

I'm closing this since too old and Python2 reached EOL.


Proposal: support for additional clauses

Support for the following clauses would make this library closer to feature complete in my opinion:
insert
api: query.insert('tableName')
output: INSERT INTO tableName
column
api: query.column('columnOne').column('columnTwo')
output: (columnOne, columnTwo)
value
api: query.value('valueOne').value('valueTwo')
output: VALUES (valueOne, valueTwo)
insert + column + value
api: query.insert('tableName').column('columnOne').column('columnTwo').value('valueOne').value('valueTwo')
output: INSERT INTO tableName (columnOne, columnTwo) VALUES (valueOne, valueTwo)
delete
api: query.delete('tableName')
output: DELETE FROM tableName

I agree this could be nice. I haven't worked with Postgres in a while or had the need for this feature yet. I'm open to any PR that would implement this, but I won't have time to implement this myself


Create Code sample for keyed services in minimal APIs, MVC, and SignalR

See Keyed services support in Di and this link
Create sample code in https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/fundamentals/minimal-apis/samples
See https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/samples/WebKeyedService to avoid duplicates
cc @sammychinedu2ky @fiyazbinhasan @timdeschryver
doc the code at #30345
Page URL
https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/dependency-injection?view=aspnetcore-7.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/controllers/dependency-injection.md
Document Version Independent Id
f9a790d8-f25b-0e1d-eb63-c8ed3ac518cf
Article author
ardalis

Would work on this

See Keyed services support in Di and this link

@Rick-Anderson both links point to the same destination. Copy and paste blooper?

Sample pretty much covers every possible scenario. Do you need any additional samples? @Rick-Anderson

fixed in https://github.com/dotnet/AspNetCore.Docs.Samples/pull/184


Name requirement of Controller and Model is different when extending core lib

CI version: 3.1.0
PHP version: 7.0.4
I trying to extend the original CI_Controller and CI_Model to meet some of my demands. But when I do this, I found that the name requirement of extending these two core libraries is different from each other.
First, I created a file called MY_Controller.php in /application/core, and then create a class whose name does not start with the default required MY_:
class A_Controller extends CI_Controller {
public function __construct()
	{}
}

You see, though I did not meet the naming requirement (which can be seen here Create Core Libraries) it actually works.
But it behaves differently when extending CI_Model. If my MY_Model.php is like this:
class A_Model extends CI_Model {
public function __construct()
	{}
}

Codeigniter will throw an error telling me that:
Message: /var/www/application/core/MY_Model.php exists, but doesn't declare class MY_Model
So is this is bug of Codeigniter, or are the naming strategies, or to say requirements, of extending CI_Controller and CI_Molde treated differently ?

CI treats extending CI_Controller and CI_Model differently. In CodeIgniter.php, it requires your MY_Controller.php file but don't check whether the class exist or not. However, in Loader.php, it requires your MY_Model.php file and checks whether the class exist or not. So, here shows the message.


Falling blocks and clearing lines
How do you play your game?
Use A/D to move left/right, W to rotate, and S to make your block fall faster.
Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[x] The image is in the /games/img directory.
[x] The name of the image matches the name of your file.

Thanks for your PR!

Hey! Unfortunately this doesn't meet the bar to be merged into the gallery because we already have several Tetris games. Perhaps you could add more game mechanics or a menu screen?

Closing this due to inactivity.  Feel free to re-open this PR if you want to advocate for its merge.


Improve default behaviour with no config file

Description
Currently, if you have not made a config file, hyprlock exits immediately with an error
[CRITICAL] ConfigManager threw: Could not find config in HOME, XDG_CONFIG_HOME, XDG_CONFIG_DIRS or /etc/hypr.

I think it would be preferable log a warning and continue, as it is a little confusing if you have this set up for example with hypridle and it isn't doing anything.

hyprlock with no config is more confusing than anything, as it will not render anything

@tristanbeedell can you try with c7fa502?


Table child elements (thead, tbody, tfoot, tr, td, th) should inherit parent background color

When working on "sticky header" and "sticky column" features for BootstrapVue (using Bootstrap v4.3.1 CSS), I had to generate a huge amount of SCSS (and conditionals in JS) to ensure that the cells had a background color (they were transparent by default, as table cells do not inherit their parent background color).
It would be nice if Bootstrap set up the table child elements to inherit their parent element's background color, so if a color is applied to a cell, row, or table they will have a solid background.
We also came up with a simple way to generate zebra striping and hover state with much less lines of CSS by cheating with a transparent solid gradient background image (which gets overlayed on the background color).
Something like this would be great in Bootstrap (v5), and it probably would decrease the amount of CSS rules generated (specifically for the them color variants):
.table {
  // Ensure table has a background color by default, plus handle reset
  // of color for nested tables
  background-color: if($table-bg, $table-bg, $body-bg);

  // Ensure child elements inherit their parent element's background color
  // As table child elements do not inherit bg-color by default.
  // Must be defined before any table theme colors are defined
  thead,
  tbody,
  tfoot,
  tr,
  th,
  td {
    background-color: inherit;
  }

  // ...
  // Define table theme background and border color stuff here
  // But no hover/striping stuff, as it is handled below
  // ...

  // Zebra striping (regardless of background color)
  // Also works when cells have their on theme color variant applied
  // table cell backgrounds remain `solid` so if sticky headers/columns is
  // used, the header cells won't show the scrolled table contents through them
  &.table-striped {
    > tbody {
      > tr:nth-of-type(#{$table-striped-order}) {
        // Could do this to reduce the number of rules generated
        // > :nth-child(1n) {
        > td,
        > th {
          // Simple way to "darken" a row, regardless of it's `.table-<variant>` color
          // using transparent black, which is overlayed on top of bg color
          // No need to generate special striping states for each theme color
          background-image: linear-gradient($table-accent-bg, $table-accent-bg);
          background-repeat: no-repeat;
        }
      }
    }

    // Dark mode Zebra striping
    &.table-dark {
      > tbody {
        > tr:nth-of-type(#{$table-striped-order}) {
          // Could do this to reduce the number of rules generated
          // > :nth-child(1n) {
          > td,
          > th {
            // Simple way to "lighten" a row, regardless of it's `.bg-<variant>` color,
            // using transparent white, which is overlayed on top of bg color
            // No need to generate special striping states for each theme color
            background-image: linear-gradient($table-dark-accent-bg, $table-dark-accent-bg);
            background-repeat: no-repeat;
          }
        }
      }
    }
  }

  // Table hover rows  (regardless of background color)
  // Also Works when cells have their on theme color applied
  &.table-hover {
    > tbody {
      > tr:hover {
        // Could do this to reduce the number of rules generated
        // > :nth-child(1n) {
        > td,
        > th {
          // Simple way to "darken" a row, regardless of it's `.table-<variant>` color
          // using transparent black, which is overlayed on top of bg color
          // No need to generate special hover states for each theme color
          background-image: linear-gradient($table-hover-bg, $table-hover-bg);
          background-repeat: no-repeat;
        }
      }
    }

    // Dark mode table hover
    &.table-dark {
      > tbody {
        > tr:hover {
          // Could do this to reduce the number of rules generated
          // > :nth-child(1n) {
          > td,
          > th {
            // Simple way to "lighten" a row, regardless of it's `.bg-<variant>` color
            // using transparent white, which is overlayed on top of bg color
            // No need to generate special hover states for each theme color
            background-image: linear-gradient($table-dark-hover-bg, $table-dark-hover-bg);
            background-repeat: no-repeat;
          }
        }
      }
    }
  }
}

If you want to take a peek at what it looks like, check out https://bootstrap-vue.js.org/docs/components/table/#sticky-headers and https://bootstrap-vue.js.org/docs/components/table/#sticky-columns
The only issue we have is that the table borders scroll with the body since tables are set to border-collapse: collapsed; (which has the effect of transferring the borders to the table element instead of the cells).  Setting that to border-collapse: separate; border-spacing: 0; fixes the border scrolling issue, but doubles the borders in some instances... but that could be fixed by only applying border to the left, bottom, and right where needed.
Related to #28480, #26678
Here is what a scrollable table with sticky headers looks like without the above changes (cells in behind of the sticky headers show through):

And with the above changes (for background-color inheritance):

/cc @mdo

Rereading this after @ysds's summarized things in #28480, a couple comments so far:

We're adding sticky header support for tables in #29456. For background-color there, I think relying on a .bg-white or equivalent is reasonable vs diving back into an inheriting discussion.

The table striping and hover hack with gradients is awesome, I'll look at that!

The inheritance is of BG color is needed when applying a color to the <tr> and using sticky headers

The inheritance could present other issues though as shown here: https://codepen.io/emdeoh/pen/OJVxqeG.

Ah, true, if the background color is translucent.  Are any of the v5 background colors for table's translucent?

We have some translucency coming, but it's more about anticipating what others will try to do with this thing haha.

Yeah, true :laughing:

Checkout #30342 for where my head is at on a bunch of the table changes. Overhauling the docs, changing some features, and putting some of your suggestions to work :D.

One issue with the linear gradient only on the <tr> element is that cells with a .table-{variant} class do not get the shading:

But if you target the inner cells (td and th), then the shading applies to the cell variants too:

But other-wise looks great!

We don't explicitly have examples that show this is possible, and this currently doesn't work in v4. I don't know that this is something we need to explicitly worry about.
I hear you on the nesting though, and with nesting hovers. Will keep looking into that.

The docs (v4) do mention that the table variants can be placed on cells though.

Oh yeah, for sure, just pointing out that it doesn't actually work with those other table modifiers :). I also don't think it's worth the trouble to add additional styles to account for that either, at least for striping—if you want a cell to be a particular color, it should be that color.
I guess we could put the background-image on the cells for hover/stripe, and then the .table- modifiers would stack whether they were on the row or the cell?

Actually I guess we could put the background-image on the cells for hover/stripe, and then the .table- modifiers would stack whether they were on the row or the cell?

Yeah, that would work well regardless of where the color is applied.

.table-striped {
  > tbody > tr:nth-of-type(#{$table-striped-order}) {
    > td,
    > th {
      background-image: linear-gradient($table-accent-bg, $table-accent-bg);
    }
  }
}

.table-hover {
  > tbody > tr:hover {
      > td,
      > th {
        color: $table-hover-color;
        background-image: linear-gradient($table-hover-bg, $table-hover-bg);
      }
    }
  }
}


fix navbar on mobile

Fixes https://github.com/pydanny/cookiecutter-django/issues/325
Mobile collapsed

Mobile expanded

Desktop

Nice, @jayfk! Merged.


Error building source-build-reference-packages using 3.1

I am trying to build source-build-reference-packages commit f07c2d37ddf062561ff57a212e3513fbd0ab083a using .NET Core 3.1.
The build fails for me:
         /home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/src/targetPacks/assemble.targets(90,5): error MSB3073: The command "set -o pipefail;/home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a//artifacts/source-built/coreclr-tools/ilasm /home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/src/targetPacks/ILsrc/microsoft.aspnetcore.app.ref/5.0.0-rc.1.20451.17/ref/net5.0/Microsoft.AspNetCore.Authentication.Abstractions.il -dll -quiet -nologo -output=/home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/artifacts/TFMPack/microsoft.aspnetcore.app.ref/5.0.0-rc.1.20451.17/ref/net5.0/Microsoft.AspNetCore.Authentication.Abstractions.dll |& awk  '!/warning : Method has no body/'" exited with code 1. [/home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/src/targetPacks/ILsrc/microsoft.aspnetcore.app.ref/microsoft.aspnetcore.app.ref.proj]

    0 Warning(s)
    2 Error(s)

Rerunning the failing command manually shows this error:
$ /home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a//artifacts/source-built/coreclr-tools/ilasm /home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/src/targetPacks/ILsrc/microsoft.aspnetcore.app.ref/5.0.0-rc.1.20451.17/ref/net5.0/Microsoft.AspNetCore.Authentication.Abstractions.il -dll -quiet -nologo -output=/home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/artifacts/TFMPack/microsoft.aspnetcore.app.ref/5.0.0-rc.1.20451.17/ref/net5.0/Microsoft.AspNetCore.Authentication.Abstractions.dll |& awk '!/warning : Method has no body/'
/home/omajid/fedora-git/dotnet-build-reference-packages/source-build-reference-packages-f07c2d37ddf062561ff57a212e3513fbd0ab083a/src/targetPacks/ILsrc/microsoft.aspnetcore.app.ref/5.0.0-rc.1.20451.17/ref/net5.0/Microsoft.AspNetCore.Authentication.Abstractions.il(1089) : error : syntax error at token 'constraint' in:     .param constraint   THandler/*2A000001*/ , Microsoft.AspNetCore.Authentication.IAuthenticationHandler/*0200000E*/

***** FAILURE *****

Is this a known issue? Is it supported to use .NET Core 3.1 to build recent commits of source-build-reference-packages?

This got a bit complicated due to some compatibility issues with SBRP and dotnet/source-build's release/3.1 vs. master banches...  not just ilasm diffs, but some SBRP packages causing 3.1 to fail. Now they have 1:1 branches rather than having a unified SBRP branch because of the compatibility issues.
source-build master -> source-build-reference-packages pre-arcade
source-build release/3.1 -> source-build-reference-packages pre-arcade/3.1
(source-build-reference-packages master is used for arcade-powered source-build.)
https://github.com/dotnet/source-build-reference-packages/commit/f07c2d37ddf062561ff57a212e3513fbd0ab083a is in the pre-arcade branch, so it can't build using 3.1 artifacts, only 5.0.

Thanks. What does that mean for a Linux distribution looking to build both .NET 3.1 and 5 from source? In Fedora, we have 1 package for SBRP, and it was for 3.1. If I want to add 5.0 (and, say, start working on 6.0 builds too) what should I do? Should I build each branch of SBRP? Can I share one build of SBRP between 5.0 and 3.1?

The branches have distinct sets of packages (and to some degree infra) so you need to build every branch into separate packages. 😕
A significant factor here is that with one branch, changes that are meant to be for 6.0 might regress something in 5.0 and 3.1. (We hit this with 5.0 breaking 3.1.) We don't have the infra/time to validate this effectively, so even though we should be able to keep everything in one branch (with regex + conditions for edge cases), it isn't practical right now.
Ultimately I think we should get rid of SBRP as being something special. (https://github.com/dotnet/source-build/issues/1456.) I expect this to happen in 6.0 with arcade-powered source-build.

Thanks, I was able to follow these steps and get it working locally.


Upgrade k8s libs to at least 1.15

Is your feature request related to a problem? Please describe.
The operator has rather old k8s lib versions.
I'm particularly affected by this:
https://github.com/kubernetes/apimachinery/commit/ed8af178d620cdb55580cddff6bfef9d3b00a7d7
In 1.17 the deprecated feature has been removed.
Describe the solution you'd like to see
Upgrade k8s to at least 1.15, but preferably 1.17
Describe alternatives you've considered
An alternative could be moving the API to a separate module.
Additional context
As of 1.17 importing k8s libraries became easier, you might want to consider moving to Go Modules:
https://github.com/kubernetes/client-go/blob/master/INSTALL.md#add-client-go-as-a-dependency for

In the newest version we use GO modules, separate API module and k8s 1.20 libs.


IllegalStateException on scala2.13.1 and 3.1.3

Hi,I'm trying to use flink in scala3,but there are some problems.
This is build.sbt
name := "flink-scala-3"

version := "0.1"

scalaVersion := "3.1.3"

resolvers += Resolver.mavenLocal

javacOptions ++= Seq("-source", "11", "-target", "11")

libraryDependencies += "org.apache.flink" % "flink-streaming-java" % "1.15.1" % "provided"
libraryDependencies += "org.apache.flink" % "flink-clients" % "1.15.1"
libraryDependencies += "io.findify" %% "flink-scala-api" % "1.15-2"
libraryDependencies += "io.findify" %% "flink-adt" % "0.6.1"

And this is flink code(word count example)
import io.findify.flink.api._
import io.findify.flinkadt.api._

@main def example0 =
  val env = StreamExecutionEnvironment.getExecutionEnvironment
  env.readTextFile("input/words.txt")
    .flatMap(_.split(" "))
    .map(value => (value, 1))
    .keyBy(_._1)
    .sum(1)
    .print()

  env.execute()

It reported error when I ran the code locally:
Exception in thread "main" java.lang.IllegalStateException: Scala products are used but Scala API is not on the classpath.
	at org.apache.flink.streaming.util.typeutils.FieldAccessorFactory.getAccessor(FieldAccessorFactory.java:99)
	at org.apache.flink.streaming.api.functions.aggregation.SumAggregator.<init>(SumAggregator.java:41)
	at io.findify.flink.api.KeyedStream.aggregate(KeyedStream.scala:423)
	at io.findify.flink.api.KeyedStream.sum(KeyedStream.scala:353)
	at com.ververica.Example_00$package$.example0(Example_00.scala:13)
	at com.ververica.example0.main(Example_00.scala:7)

this is code repository
repositorie
Is there any way to solve this problem? Thank you!
(I'm not English native speaker, please forgive me if I have offended you in any way)

If chagne flink code to this, it works
import io.findify.flink.api._
import io.findify.flinkadt.api._

@main def example0 =
  val env = StreamExecutionEnvironment.getExecutionEnvironment
  env.readTextFile("input/words.txt")
    .flatMap(_.split(" "))
    .map(value => (value, 1))
    .print()

  env.execute()

Try to add one more dependency which contains some required Scala factory class:
"org.apache.flink" % "flink-streaming-scala_2.12" % "1.15.2"

Try to add one more dependency which contains some required Scala factory class:
"org.apache.flink" % "flink-streaming-scala_2.12" % "1.15.2"

thank you, it works correctly


Some nodes disappear when using BLOCKTIME event

This happens when profiling with -e BLOCKTIME event.
The BLOCKTIME event uses perf_events' context switch to find out when the application enters the kernel and when exits. The BLOCKTIME metric then records the difference to display how long the application "stalls".
However, sometimes hpcprof eliminate kernel call paths that are associated with exclusive context switch and thus eliminate the BLOCKTIME metrics.
It is possible that hpcprof accidentally prune trees since hpcrun correctly record the call paths. Need to be investigated if this problem can be fixed with prof2.

Fixed in release 2022.03

how could this be fixed in 2022.03? we were exploring the problem after that release. did you reference the right release?

Oops wrong issue

This repository has moved to GitLab, please continue this issue there.


[Bug][Rails] Updating Theme fields causes map to not load

Describe the bug
Terrastories Theme has the ability to add a custom Mapbox map and token per community. As soon as you modify any of the other fields in the Theme (like adding a custom logo), but leave the two map fields alone, it causes the map to not work.
To Reproduce
Steps to reproduce the behavior:

Go to the map with an out of the box Terrastories install. Confirm that it's working.
As an Admin user log in and go to the Theme menu.
Add a custom sponsor logo.
Don't do anything to the two map fields. And click Update Theme.
Now to go to the map. It will load blank and throw the errors in the screenshot below.

Expected behavior
If nothing is added to the Mapbox fields in Theme, it will just stick with the default map and key.
Screenshots

@lauramosher I expect this might be a bug from the December work, and an easy fix :)

Huh, I thought I tested this. I must've messed something up somewhere.


Remove cucumber from internal implementation

This removes the cucumber-js framework from protractor internals so it can be implemented as a framework plugin here: https://github.com/mattfritz/protractor-cucumber-framework
Closes #2159
Let me know if I missed anything or if the updated docs are unclear. Thanks!

I left my comments, but I'm just @juliemr has some more

Can you retrigger the build when you get a free second? Looks like Travis/SauceLabs got hung up:
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

Restarted :)

This looks good to me, and tests are passing now.

merged in with ddb8584


How to get all the transactions in tangle?

Need to get all transaction not any specific wallet

Hey @rav1112 this probably goes beyond the scope of what PyOTA can deliver — IRI nodes don't expose this kind of firehose via the HTTP API.
There's a project by @mlouielu that implements an IRI node in Python, which might have the functionality that you're looking for:
https://github.com/mlouielu/iota-python

@rav1112 you can take a look if iota-python still can work, if everything is correct, you can get all the transaction in rocksdb by iota-python. But I didn't test it on latest IRI, you will need to try it out yourself :)

Hey @rav1112 did you find the answer to your question? May I close the issue?


Update to Vic's Fork

Hi Vic, I updated your name to reflect your Terrace House fandom.

I approve this change!! Love Asian Fred Armisten.


Recipe conflict with default

There is a conflict with the default game:
in init.lua:337
minetest.register_craft({
        output = "default:desert_stone 2",
        recipe = {
                {"default:desert_sand", "default:desert_sand"},
                {"default:desert_sand", "default:desert_sand"},
        }
})

That recipe gives default:desert_sandstone in the default game.

Thanks for reporting the bug. Ill fix it this week.
Do you already have a idea for a alternative reciepe?

On my server, I just removed it ( 😿 ) and let default handle it.

Solved by 686d5316afa650602c85cc4c197a3cb866a82b9c


ClusterFixture: locate neon.exe

ClusterFixture is mostly working after the login refactor (#1770).
The remaining problem is locating the neon.exe tool.  The fixture currently assumes that this tool is on the PATH.  We need to:

[ ] Look for the tool in the ~\neonCLOUD\Build build folder
[ ] It would also be nice if` Neon.Kube.Xunit could have a build dependency on neonCLOUD such that neon.exe will always be built
[ ] Look for the tool in the standard install location at NEON_INSTALL_FOLDER

I ended up adding KubeHelper.NeonCliPath and KubeHelper.NeonExecute(), with NeonCliPath locating neon.exe in either the installation folder or $(NC_ROOT)/Build/neon-cli/neon.exe.


Fixed #34560 -- Updated admin's jQuery to 3.7.0.

This fixes ticket-34560 but also fixes a regression from Django 3 described here: ticket-33504.

Thanks for this patch, however it doesn't qualify for a backport (ticket-33504 was closed as invalid). Also, ticket-34560 is targeted for September 2023, so there is no point in preparing PR 4 months earlier.


False negative on hatch run test inside container environment

Description
Though I'm having no problem hosting vizro on my local server, the error on the test is coming out which I believe to be of false negative.
Or maybe it's something I needed to set for the environment which I have missed to, but still I believe it needs to be implemented inside the hatch to install the Google Chrome inside the linux system.
Expected behavior
No errors
Which package?
vizro
Package version
Old: 0.1.16.dev0
New: 0.2.0
Python version
3.8.17
OS
ms windows 11, using vscode container
How to Reproduce

Get containerized environment with vscode
cd vizro-core
hatch run test

Output

Code of Conduct

[X] I agree to follow the Code of Conduct.

Hi @kaestro!
Thanks for spotting this!
If you want to run integration tests (which is a part of hatch run tests command) you should install Chrome manually. Given the difficulties with creating a process to automatically install Chrome on the range of operating systems that users might be using, it would make most sense to add this step to manually install Chrome to the contribution documentation here. Or you can just raise a ticket for the docs change if you have limited time to contribute.
(You can run also unit tests separately using hatch run test-unit command - and for the docs change all you need is to check the linting by using hatch run lint)

I think my I idea was short-sighted after reading your description.
And like you've just said, adding that to the documentation will perfectly make sense!
Thank you.

Just for more context, we use chromedriver-autoinstaller to install chromedriver for running integration tests locally, because it's fiddly to install manually. This should work so long as you have chrome installed.
As @l0uden said above though, chromedriver is only needed for the integration tests, and 99% of the time all you need to run locally is hatch run test-unit and not the full test suite that includes integration tests. So if it's not easy to run integration tests locally they're fine to ignore.


Question: Custom Authorizers

Recently, custom authorizers for API Gateway have been announced. Is there a way to include a custom authorizer in Swagger under x-amazon-apigateway-auth?
I've dug around a bit and have not found anything and may have missed it but would like to confirm.

We are working on adding custom authorizer support for Swagger import and export, but this has not been released yet.

+1 Automatic deployments are difficult without this feature.

Any news on this? if not are you guys willing to accept a pull request with a proposed code change?

Swagger/OpenAPI import is now generally available in the API Gateway REST API, the AWS CLI and all AWS SDKs. You can also import and export Swagger definitions using the API Gateway console. This release addresses many of the open issues and feedback in this repository.
I would encourage you to migrate your workflow to the standard AWS tools. aws-apigateway-importer will receive minimal support from the API Gateway team going forward.
Any feedback or issues with the new importer should be directed to the official API Gateway forums.
Thanks,
Ryan

The new functionality from the AWS CLI is half-baked. Exporting an API with custom authorizer and trying to create a new API from the fresh export will fail.

Could you provide an example?

@jackrk I'll try to make a sample when I get to work tomorrow.

I may know what the problem is. You have to explicitly request the authorizer extensions
The import fails because the export without authorizer extensions contains security definitions that are referenced by methods, but are incomplete (no authorizer extension). This is by design to prevent accidentally deploying an open API that you think is authorized.
Did you get an error like this?
Errors found during import:
	Unable to put method 'GET' on resource at path '/': Invalid authorizer id specified. Setting the authorization type to CUSTOM requires a valid authorizer.
Additionally, these warnings were found:
	Unable to create authorizer from security definition: 'test-authorizer'. Extension x-amazon-apigateway-authorizer is required. Any methods with security: 'test-authorizer' will not be created. If this security definition is not a custom authorizer, remove the x-amazon-apigateway-authtype extension and it will be ignored.

The authorizer extension is documented here (missing from public docs right now) https://github.com/awslabs/aws-apigateway-importer/issues/187#issuecomment-206475788
If you use the CLI command below you should get authorizer extensions in the export.
aws apigateway get-export --parameters '{"extensions":"integrations,authorizers"}' --rest-api-id a1b2c3d4e5 --stage-name dev --export-type swagger /path/to/filename.json

That's exactly the problem that I was having. I'll give your solution a try.

Hello @jackrk,
Importing Swagger file from AWS Console UI does not work for me either.
When I import a new swagger file and navigate to a Method, which is associated with my custom authorizer, I can find Auth=CUSTOM under Method Request box. However, when I drill down to the method details I see Authorization = INVALID under the  Authorization Settings section
When I go to Custom Authorizers panel on the left sidebar, I cannot find my custom authorizer
Importing with aws-apigateway-importer does not work as well. Moreover  aws-apigateway-importer does not make any validations against swagger files

Hi @yegor86 , I think the put-rest-api functionality is broken. The import-rest-api correctly maps the custom authorizer.

Yeah there is but in put-rest-api now, it will generate a bad reference to the authorizer on any existing methods/authorizers (new authorizers work fine).
Fix is coming out ASAP. You can fix your API in this state by simply correcting the reference in the console, or using the CLI like so:
aws apigateway get-authorizers --rest-api-id a1b2c3d4e5

(find the correct authorizer and record the ID)
aws apigateway update-method --rest-api-id a1b2c3d4e5 --resource-id a1b2c3 --http-method GET --patch-operations "[{\"op\":\"replace\",\"path\":\"/authorizerId\",\"value\":\"AUTHORIZER_ID\"}]"


Lower the titles in the same notebook

It is a little bit weird that readthedocs do not delete their cache so this small issue is not noticed in https://github.com/XENONnT/straxen/pull/1077.
The only issue here is that the markdown headers are considered to be another section in docs if it is only started with #.

Here Interactive event display, Record matrix, and Event selection are from the same notebook.

Coverage: 93.44% (-0.01%) from 93.451% when pulling d6960688b587816d0e8d4d86873d82c46d8c02fa on display_notebook into fbe0c0a5596b866ead06a77538dc798dc4e78d40 on master.


[Mobile] boolean enableUnfocusOnTapOutside does not do anything

My issue is about [Mobile]
the boolean enableUnfocusOnTapOutside does not do anything. When set to true, if we are typing something, on tapping outside, it does not unfocus the editor.
Flutter_quill version: 7.2.18

They comment that:

You can fork this repo to make it right follow your purpose.

Oh, kinda meaningless to not have an unfocus feature supported for Android/mobile when basic input fields support it without issues.
Perhaps this behaviour could be changed.

I agree with you. So that I forked this repo to fix it.

Does your fork version include the tapoutside code for Android?

This is original code.

You just delete from line 455 to line 458, it's working.

Hi, thank you for the report, this issue has been fixed, if you still facing any other issues or have any other questions feel free to ask us on GitHub


[Boards] test

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Modin installed from (source or binary):
Modin version:
Python version:
Exact command to reproduce:

Test from Github

New test from Github


haskellSrc2nix: disallow substitutes

Fix #49818. See the bug for more details.
Motivation for this change
The work done by haskellSrc2nix is usually lightweight, but needs to
be done each time a cabal file change. This triggers unexpected
network activity for a cache query which results most of the time on a
cache miss.
By disabling substitutes we:

avoid the, mostly useless, binary cache query
avoid unexpected network failure when users change a cabal file and
try to rebuild without connectivity.

Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Fits CONTRIBUTING.md.

cc @basvandijk in case the codeowners ping gets lost in the storm. :-)

Shouldn't this already be covered by preferLocalBuild? According to the manual:

If this attribute is set to true, it has two effects. First, the derivation will always be built, not substituted, even if a substitute is available. Second, if distributed building is enabled, then, if possible, the derivaton will be built locally instead of forwarded to a remote machine. This is appropriate for trivial builders where the cost of doing a download or remote build would exceed the cost of building locally.

Aah, I see. Thanks!

Good change! Thank you

Is there a way to override this change easily?
Context: My team has a fairly big project and we a few forked dependencies and a few pinned dependencies. In all running callCabal2nix over and over again on them takes about 3 minutes in our CI. These would almost always be a cache hit for us.

@akshaymankar you can just override all your callCabal2nix with allowSubstitutes = true;, this could be done in a overlay, something like:
selfh: superh: {
    callCabal2nix = name: path: args: (superh.callCabal2nix name path args).overrideAttrs(_old: { allowSubstitutes = true; });
}

However, I'm curious you are raising this question right now. Maybe it is related to https://github.com/NixOS/nixpkgs/pull/194753 that I'm trying to merge now?


Modify Settings to have all flash links instread of Blink links (Contact Us, Join the Community, Rate us on Store)

Definitely need to take my personal WhatsApp number off of this lol

Hide Mattermost

@islandbitcoin Can you provide the links of telegram, whatsApp if exist, status page?


Client Server Sample Program

Hello Team
I've tried client server sample program given in examples.
When I start server, not sure on which URI it is coming up and may be because of that client program is not able to make a connection to server URI.
My observation is ' client is not identifying where server is running' and I could not find an option where to fix host & port for server & client program.
@darconeous : Please advise. I've attached sample server & client program.
Thanks
coap.zip

Same issue here. I had to debug the port, but every time I run the server it changes the port

I've checked testCommunication () metod in Android app. Not works:
2020-10-21 14:41:54.749 20946-20946/com.mk.testcoap2 E/coap: TestCommunivation.Exception->java.util.concurrent.TimeoutException


110 OpenTelemetry PHP OTLP Exporter Collector doesn't show OTLP spans

Spans generated from OTPL Exporter do not appear to be recognized by the collector.  The opposite is true with ZipKin Exporter.
OTLP Request: http://localhost:8110/SampleOTLPhttpExporter.php
Response:

Starting Sample app instrumented with OpenTelemetry, exporting OTLP http telemetry to http://aternity-opentelemetry-collector:4318/v1/traces Span: 1 Span: 2 Span: 3 Span: 4 Span: 5 Complete!

Docker output:

...
aternity-opentelemetry-collector-110 | 2022/07/29 22:56:58.371785, 718, WARN, appint_server.go:171, No handler for /api/appInternals/1.0/plugin found
service110_php_1                    | <IP_ADDRESS> - - [29/Jul/2022:22:57:00 +0000] "GET /SampleOTLPhttpExporter.php HTTP/1.1" 200 430 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
aternity-opentelemetry-collector-110 | 2022/07/29 22:57:52.006440, 718, INFO, main.go:251, In the past minute, 0 spans received and 0.00 KB of data were uploaded to Analysis Server
service110_php_1                    | <IP_ADDRESS> - - [29/Jul/2022:22:57:52 +0000] "-" 408 0 "-" "-"
aternity-opentelemetry-collector-110 | 2022/07/29 22:58:01.232910, 718, WARN, appint_server.go:171, No handler for /api/appInternals/1.0/plugin found
aternity-opentelemetry-collector-110 | 2022/07/29 22:58:52.007035, 718, INFO, main.go:251, In the past minute, 0 spans received and 0.00 KB of data were uploaded to Analysis Server

ZipKin Request: http://localhost:8110/SampleZipkinExporter.php
Response:

Starting Sample app instrumented with OpenTelemetry, exporting Zipkin telemetry to http://aternity-opentelemetry-collector:9411/api/v2/spans Span: 1 Span: 2 Span: 3 Span: 4 Span: 5 Span: 6 Span: 7 Span: 8 Span: 9 Complete!

Docker output:

...
aternity-opentelemetry-collector-110 | 2022/07/29 22:59:04.401038, 718, INFO, common.go:23, First span was received
service110_php_1                    | <IP_ADDRESS> - - [29/Jul/2022:22:59:00 +0000] "GET /SampleZipkinExporter.php HTTP/1.1" 200 439 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
service110_php_1                    | <IP_ADDRESS> - - [29/Jul/2022:22:59:51 +0000] "-" 408 0 "-" "-"
aternity-opentelemetry-collector-110 | 2022/07/29 22:59:52.007704, 718, INFO, main.go:251, In the past minute, 10 spans received and 4.25 KB of data were uploaded to Analysis Server

Actually the Aternity OpenTelemetry collector supports OTLP and Zipkin.
Maybe there was a glitch during the cookbook 110 deployment, have you tried to rebuild the cookbook (docker-compose build) ?
On my end, it works well - i validated earlier while fixing #30 (with this change on getTracer)  both PHP samples with zipkin exporter and otlp exporter. The span are collected and stored in the Aternity SaaS Analysis Server like in this screenshot:

I tried to rebuild on 2 separate machines but no luck.  Not sure what I'm missing.  I can't find the transactions on the Analysis server either.

Update: I can see the ZipkinExporter transactions on the Analysis server, just not the OTPL transactions.

Thanks for the update I will look closer

I finally could reproduce (i started from scratch, it worked, then stopped, restarted and got the problem) and found a workaround. Can you please have a try?
In the docker-compose.yaml, changing the env variable for the service110_php like this
      OTEL_EXPORTER_OTLP_ENDPOINT: http://aternity-opentelemetry-collector:4318
instead of
     OTEL_EXPORTER_OTLP_ENDPOINT: http://aternity-opentelemetry-collector:4318/v1/traces
According to the OpenTelemetry Protocol Exporter specs the env var OTEL_EXPORTER_OTLP_ENDPOINT SHOULD contain a path.
But it appears that sometimes the opentelemetry sdk decides to append "/v1/traces" whatever the env variable contains so that when the env variable OTEL_EXPORTER_OTLP_ENDPOINT is set with a full url that contains the url path /v1/traces , the sdk will actually try to export to http://aternity-opentelemetry-collector:4318**/v1/traces/v1/traces** and will get an error.

Yes, I can see the container recognized the spans and thanks for the full explanation.  It takes a few moments for the Analysis server to show results but they finally appeared there also.

... It takes a few moments to show results ...

Normally it is pretty quick to ingest. If you are in search, there is a trick with the gui, after you click on of the "recent mins" buttons you can hit the range and move it to the right and the very latest ingested spans will show up in the search result.
For example it might look like:

So you can move the range and get more recent spans:

Thanks again for raising this issue.
I could also fix the cookbook 103 (python)


Create a project site

The domain pgsphere.org is proposed to be the primary project place. A simple site with some description and documentation should be implemented.

The site should be changeable by the community using github (think how to utilise GitHub Pages)
The pgsphere.github.io site might be used as the initial version (with some corrections)
Decide whether to put the site contents into the same repo or into another one

Any comments, proposals, requirements are welcome!

Dear Sirs,
There is the pgsphere logo at http://pgsphere.github.io/img/pg_sphere.png. I may ask designers to improve it but I have no idea how to mitigate the risks of possible copyright conflicts. If you have some idea who is the owner of the logo or how to avoid possible copyright conflicts, please, share. I would appreciate it . Thank you.

I am not the creator of that logo, and I have no idea who created it, but I would say it was clearly created for "the" pgsphere project, independent from where that project happens to be hosted.
To me it seems ok to use the logo on pgsphere.org and whatever github repo/organization that hosts the code.
@msdemlei ?

The logo could use some improvement, but I like the premise of an elephant on a sphere.
Copyright only applies to a specific image. Trademark applies to all images that depict an elephant on a sphere, for example. I rather doubt anything has been trademarked. (I am not a lawyer, but that's my understanding.)
The image probably goes back to the original repository owned by akorotkov ?

Oh right, I had assumed the logo would be new in pgsphere.github.io, but it's already present as a .png in https://github.com/postgrespro/pgsphere/tree/master/doc/img . (Haven't checked the .xcf file there, but I'd assume it matches.)
So the logo is properly part of pgsphere, and if it doesn't carry any extra (C) notices, it's ok to assume the terms from COPYRIGHT.pg_sphere.

Thank you very much for your comments! Once, it is a part of the project, we can change it under the same terms. It is a reasonable argument.

On Tue, Oct 24, 2023 at 08:58:18AM -0700, Ed Sabol wrote:

The image probably goes back to the original repository owned by akorotkov ?

I'm pretty sure it's much older.  I've hence just asked Igor
Chilingarian about it, and he doesn't remember either. I'd hence say
it's fine if we just claim it for the project; whoever the original
author is pretty certainly has lost interest in it.

I'd just redo it anyway. It's low-res and pixel-y. One of the LLM AI tools to generate art could whip up an elephant sitting on a sphere easily, I bet.

On Wed, Oct 25, 2023 at 6:44 PM msdemlei @.***> wrote:

On Tue, Oct 24, 2023 at 08:58:18AM -0700, Ed Sabol wrote:

The image probably goes back to the original repository owned by
akorotkov ?

I'm pretty sure it's much older. I've hence just asked Igor
Chilingarian about it, and he doesn't remember either. I'd hence say
it's fine if we just claim it for the project; whoever the original
author is pretty certainly has lost interest in it.

It's made by Yanko. I suggest to create a new logo keeping compatibility
with old one.

—
Reply to this email directly, view it on GitHub
https://github.com/postgrespro/pgsphere/issues/88#issuecomment-1779567441,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQURYS674CWEPBZKPAFAEDYBEXXNAVCNFSM6AAAAAA6NEATKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZZGU3DONBUGE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

I'd just redo it anyway. It's low-res and pixel-y. One of the LLM AI tools to generate art could whip up an elephant sitting on a sphere easily, I bet.

I'm not sure, who owns the copyright when using such AI tools :)

Dear All,
I would like to propose to use the abandoned pgsphere  repository for pgsphere.org site hosting. It seems we can not use postgrespro/pgsphere because we can not use custom domains for subdirectories in github. It seems, github doesn't support subdomains like pgsphere.postgrespro.github.io. So, the use of the community domain with custom domain configuration helps us.
Another thing I'm concerned, how to publish the docs for new releases automatically from postgrespro devci into the community site. I believe, it is possible, but I have no full confidence about it.
Please, let me know if you have some objections against using the community repo for pgsphere.org site hosting.
Any comments are welcome!

Just to clarify the current situation, this project already has a CI workflow which automatically publishes the documentation to https://postgrespro.github.io/pgsphere/ and going to https://pgsphere.org/ automatically redirects to https://postgrespro.github.io/pgsphere/. This seems to work well in my opinion.
https://github.com/pgsphere/pgsphere.github.io publishes to https://pgsphere.github.io/. @df7cb committed a change there last year to point the documentation section of that website to https://postgrespro.github.io/pgsphere/.
@vitcpp : I think what you are suggesting is getting committer access to https://github.com/pgsphere/pgsphere.github.io in order to publish to https://pgsphere.github.io/ which can be https://pgsphere.org/ (if you remove the current redirect).

The simple fix would be to move everything over to the other organization. Or to push doc changes to repos in both orgs.

The simple fix would be to move everything over to the other organization.

I'd rather not lose the issues and PR history we have in this project, personally.

Hi @esabol, @df7cb, I would not propose to change the existing dev site on github. All the existing dev stuff will be unchanged. My proposal is related to pgsphere.org site only, which purpose to provide some introduction and docs. Now it redirects to postgrespro.github.io/pgsphere. I propose to create a complete web site with some introduction and docs for each version using pgsphere.org domain but with github hosting. Github has the Custom Domain feature. But it can be applied to subdomains only, not to directories. Github doesn't allow to create a subdomain like pgsphere.postgrespro.github.com for which a DNS CNAME record can be created. As the initial version, we can take the existing pgsphere.github.io site with some links to postgrespro repo.

Sorry I didn't actually mean to suggest moving, just that it's one of the options. (Properly moving the repo keeps the issues etc.)
There is probably a way to automatically push doc changes from the main repo to the pgsphere org using GitHub actions. Or just have two git remotes and push to both. Or simply have a front-end web page there like now.

@vitcpp wrote:

My proposal is related to pgsphere.org site only, which purpose to provide some introduction and docs. Now it redirects to postgrespro.github.io/pgsphere. I propose to create a complete web site with some introduction and docs for each version using pgsphere.org domain but with github hosting. Github has the Custom Domain feature.

I understood that. AFAIK, the only thing preventing you from doing what you suggest is that you need committer access to https://github.com/pgsphere/pgsphere.github.io/.

@esabol I think, I have. If you and @df7cb don't mind, I will play a little with the web site. If everything will be ok, we create a CNAME alias for pgsphere.org domain name.

Sure, go ahead. TBH I'm not entirely sure how I ended up "owning" the pgsphere github org. Do whatever you seem sensible.

I concur! :smile:


Added book

My book is written in German. I am not sure if this is OK for your list.
Thanks
Holger

ASP.NET Core Blazor 5.0: Blazor WebAssembly und Blazor Server: Moderne Single-Page-Web-Applications mit .NET, C# und Visual Studio - German book on Blazor (Published September 15, 2020 with montly Updates).

I put your book in the "Other languages" section.


Fix typos

Hi,
This PR will fix :

1 typo in .eslintrc.yml
1 typo in entrypoint.spec.js
2 typos in services/dynamic/dynamic-xml.tester.js
1 typo in services/nuget/nuget-v3-service-family.js

Best! :robot:

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @pgrimaud!

  Generated by :no_entry_sign: dangerJS against 0a3e001d3b62fb771c778990b53234a4c1f1300c