Does not load

Hey Andreas,
I have downloaded this version and when I launch the app, I get the windows firewall message and i select to allow and then nothing happens. I try launching the app again and nothing opens up. I don’t see it running in task manager. I have the latest version of Windows 10 all up to date. i9 9900k, 32gb memory, NVIDIA 2070 super, custom built just for fs2020.
Any Ideas?

Hmm, interesting... Could you have a look in the Event Viewer for me? Go to Windows Logs -> Application and search for "fs2ff". Any crash logs should end up there. Thanks!
/Andreas

Here are a few things I found.

<#>

<#>

1000
0
2
100
0
0x80000000000000

3975

Application
DESKTOP-238JPKM

<#>
fs2ff.exe
<IP_ADDRESS>
5f3ed523
KERNELBASE.dll
10.0.19041.488
5b4a3325
e0434352
0000000000023e49
2da8
01d6a2680837f7c2
D:\Downloads\fs2ff.exe
C:\Windows\System32\KERNELBASE.dll
e7838476-a3a6-4122-b004-10f87f2fc98e

<#>

<#>

1026
0
2
0
0
0x80000000000000

3982

Application
DESKTOP-238JPKM

<#>
Application: fs2ff.exe CoreCLR Version: 4.700.20.41105 .NET Core
Version: 3.1.8 Description: The process was terminated due to an unhandled
exception. Exception Info: System.NullReferenceException: Object reference
not set to an instance of an object. at
fs2ff.MainWindow.OnSourceInitialized(EventArgs e) at
System.Windows.Window.CreateSourceWindow(Boolean duringShow) at
System.Windows.Window.CreateSourceWindowDuringShow() at
System.Windows.Window.SafeCreateWindowDuringShow() at
System.Windows.Window.ShowHelper(Object booleanBox) at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Int32 numArgs) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at
System.Windows.Threading.DispatcherOperation.InvokeImpl() at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
state) at
MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state) --- End of stack
trace from previous location where exception was thrown --- at
System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state) at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state) at
MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext
executionContext, ContextCallback callback, Object state) at
System.Windows.Threading.DispatcherOperation.Invoke() at
System.Windows.Threading.Dispatcher.ProcessQueue() at
System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled) at
MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr
lParam, Boolean& handled) at
MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Int32 numArgs) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at
System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at
MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&
msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame
frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame
frame) at System.Windows.Threading.Dispatcher.Run() at
System.Windows.Application.RunDispatcher(Object ignore) at
System.Windows.Application.RunInternal(Window window) at
System.Windows.Application.Run() at fs2ff.App.Main()

On Wed, Oct 14, 2020 at 4:10 PM Andreas Stenlund<EMAIL_ADDRESS>wrote:

Hmm, interesting... Could you have a look in the Event Viewer for me? Go
to Windows Logs -> Application and search for "fs2ff". Any crash logs
should end up there. Thanks!
/Andreas
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/astenlund/fs2ff/issues/11#issuecomment-708707800, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AREFDLNVTWOIXJVP2ISAJCTSKYVV7ANCNFSM4SRDD74Q
.

Perfect, thank you! Will have a look.

I did have this work once(one time)with a previous version. The app opened but I was never able to get connected to ForeFlight even directly entering IP address. I then deleted it and installed your latest version hoping it would work.

On Oct 14, 2020, at 4:37 PM, Andreas Stenlund<EMAIL_ADDRESS>wrote:

Perfect, thank you! Will have a look.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I wanted to let you know that I was able to get fs2ff working. Apparently I had my network improperly set. I deleted and reinstalled your app and it’s works perfectly. Thanks for your time.
Rick

On Oct 14, 2020, at 4:37 PM, Andreas Stenlund<EMAIL_ADDRESS>wrote:

Perfect, thank you! Will have a look.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

OK, cool. The app shouldn't crash but I'm glad you got it working.
Since I can't reproduce the problem, finding the cause is proving a little difficult. Closing, but please feel free to reopen or create a new issue if it happens alot in The Future™.

So it worked yesterday as I thought it was a network issue and I
uninstalled and reinstalled fs2ff. Today I attempted to launch fs2ff and
the same thing was happening as before, nothing opened and nothing showing
running in task manager.
I then deleted the app then reinstalled it. The app launched and worked for
the FS2020 flight. I completed my flight and exited Fs2020 and closed fs2ff
and shut down the computer. Upon computer startup, loaded the app, nothing
happened.
I was able to delete and reinstall the app a few times to get it to work
but now when I delete and reinstall, nothing happens. I'll submit a trouble
ticket.
Here is what I am finding in the logs.
0
APPCRASH
Not available
0
fs2ff.exe
<IP_ADDRESS>
5f3ed523
KERNELBASE.dll
10.0.19041.488
5b4a3325
e0434352
0000000000023e49
\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_fs2ff.exe_4f46244b59225d781cc6a6036d6fcbdc3873bde_fa700d49_191dbc5a-7200-40dc-a917-a7ee8cd1710c
0
bb2b04a0-f320-4049-b98b-845b12ffab30
4
0
+ System
- Provider
[ Name] Windows Error Reporting
- EventID 1001
[ Qualifiers] 0
Version 0
Level 4
Task 0
Opcode 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2020-10-18T20:24:00.5178223Z
EventRecordID 4511
Correlation
- Execution
[ ProcessID] 0
[ ThreadID] 0
Channel Application
Computer DESKTOP-238JPKM
Security
- EventData
1980224748882122988
4
APPCRASH
Not available
0
fs2ff.exe
<IP_ADDRESS>
5f3ed523
KERNELBASE.dll
10.0.19041.488
5b4a3325
e0434352
0000000000023e49
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER1EC1.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_fs2ff.exe_4f46244b59225d781cc6a6036d6fcbdc3873bde_fa700d49_191dbc5a-7200-40dc-a917-a7ee8cd1710c
0
bb2b04a0-f320-4049-b98b-845b12ffab30
268435456
c96c7501bef21753cb7b2beadc8e58ec
0
+ System
- Provider
[ Name] Windows Error Reporting
- EventID 1001
[ Qualifiers] 0
Version 0
Level 4
Task 0
Opcode 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2020-10-18T21:02:32.3120508Z
EventRecordID 4537
Correlation
- Execution
[ ProcessID] 0
[ ThreadID] 0
Channel Application
Computer DESKTOP-238JPKM
Security
- EventData
1980224748882122988
4
APPCRASH
Not available
0
fs2ff.exe
<IP_ADDRESS>
5f3ed523
KERNELBASE.dll
10.0.19041.488
5b4a3325
e0434352
0000000000023e49
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER6527.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_fs2ff.exe_4f46244b59225d781cc6a6036d6fcbdc3873bde_fa700d49_bb56277e-f7f6-422f-a8c3-b3f1ad92a385
0
ee7ecf3d-f27d-42f3-83fc-7ea82f74aa11
268435456
c96c7501bef21753cb7b2beadc8e58ec
0
On Sun, Oct 18, 2020 at 10:10 AM Andreas Stenlund<EMAIL_ADDRESS>wrote:

OK, cool. The app shouldn't crash but I'm glad you got it working.
Since I can't reproduce the problem, finding the cause is proving a little
difficult. Closing, but please feel free to reopen or create a new issue if
it happens alot in The Future™.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/astenlund/fs2ff/issues/11#issuecomment-711297919, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AREFDLP26FH6FETRYLVN5L3SLMOPNANCNFSM4SRDD74Q
.

I've been unable to reproduce the problem, but I pushed a new version that I hope solves it. Available here: https://github.com/astenlund/fs2ff/releases/latest
Please let me know if this works for you, thanks!

Hi Andreas,
Thank you for looking into this for me.I found out on my end that I was
missing a, vcruntime140.dll, while attempting to open a different program.
I went to  Microsoft Visual C++-2015 Redistributable Page and downloaded
what was missing.
After downloading the .dll, your original app worked just fine. I did
update the app to the latest release and that works as well .
Thank you again.
Rick
On Tue, Oct 20, 2020 at 11:07 AM Andreas Stenlund<EMAIL_ADDRESS>wrote:

I've been unable to reproduce the problem, but I pushed a new version that
I hope solves it. Available here:
https://github.com/astenlund/fs2ff/releases/latest
Please let me know if this works for you, thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/astenlund/fs2ff/issues/11#issuecomment-713041905, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AREFDLJ465X6CMJLFHI6LCTSLXGWZANCNFSM4SRDD74Q
.

Great, thanks for the update! I'm not sure if the dll is still needed for my app, but I'm glad you managed to solve it anyway.

Hi Andreas,
I just wanted to let you know that fs2ff isn’t working for me on the version 5 update. Your app opens and shows connected but nothing shows under devices on ForeFlight.
I’ll play around with other settings to see if there is something missing on my end.
Eric

On Oct 21, 2020, at 1:51 PM, Andreas Stenlund<EMAIL_ADDRESS>wrote:

Great, thanks for the update! I'm not sure if the dll is still needed for my app, but I'm glad you managed to solve it anyway.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Andreas,
I got it working again. Apparently windows did an update at the same time FS 5 updated. Windows for some reason changes my WiFi connection from private to public and doesn’t let windows connect to other devices via WiFi. So the take away here if anyone else has this problem is to verify that their WiFi is set to private or home, not public.
Thanks again.
Eric

On Nov 1, 2020, at 8:51 AM, Rick Peters<EMAIL_ADDRESS>wrote:
Hi Andreas,
I just wanted to let you know that fs2ff isn’t working for me on the version 5 update. Your app opens and shows connected but nothing shows under devices on ForeFlight.
I’ll play around with other settings to see if there is something missing on my end.
Eric

On Oct 21, 2020, at 1:51 PM, Andreas Stenlund<EMAIL_ADDRESS>wrote:

Great, thanks for the update! I'm not sure if the dll is still needed for my app, but I'm glad you managed to solve it anyway.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Roger, good find.


python setup.py egg_info did not run successfully.

Can anyone help me with this error? I just run the installation as in the instructions, but using conda enviroment instead of uv
(Moonshine) PS D:\Google Drive\coding\moonshine> pip install useful-moonshine[tensorflow]@git+https://github.com/usefulsensors/moonshine.git
Collecting useful-moonshine@ git+https://github.com/usefulsensors/moonshine.git (from useful-moonshine[tensorflow]@ git+https://github.com/usefulsensors/moonshine.git)
Cloning https://github.com/usefulsensors/moonshine.git to c:\users\user\appdata\local\temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8
Running command git clone --filter=blob:none --quiet https://github.com/usefulsensors/moonshine.git 'C:\Users\user\AppData\Local\Temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8'
Resolved https://github.com/usefulsensors/moonshine.git to commit 88230f0a5b74c93f20811d7e14a032dd411dad2e
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
C:\Users\user\AppData\Local\Temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8\setup.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Traceback (most recent call last):
File "", line 2, in
exec(compile('''
~~~~^^^^^^^^^^^^
# This is  -- a caller that pip uses to run setup.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<31 lines>...
exec(compile(setup_py_code, filename, "exec"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
''' % ('C:\Users\user\AppData\Local\Temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8\setup.py',), "", "exec"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 34, in
File "C:\Users\user\AppData\Local\Temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8\setup.py", line 15, in
version=read_version(),
~~~~~~~~~~~~^^
File "C:\Users\user\AppData\Local\Temp\pip-install-2o1uu6aa\useful-moonshine_35d909ee184b41f2b0eb09bb569772e8\setup.py", line 9, in read_version
return locals()["version"]
~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'version'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

found the error. I was using the newest python version that it does not work with. Please close.

Thanks for updating with your solution. Closing now.


Update quick-start.md to show database options.

https://rubyonjets.com/docs/install/

[ ] I've added tests (if it's a bug, feature or enhancement)
[x] I've adjusted the documentation (if it's a feature or enhancement)
[ ] The test suite passes (run bundle exec rspec to verify this)

Summary

It was a bit of work to find where postgres could be used. I had to go to google and search postgres jets and after a bit of digging found the flag option here.
Context

Version Changes

Thanks! Adjust the wording a bit. Done in #408


Show if app is using test environment

Find a way to clearly highlight if app is connected to the testing environment backend.
Calling GET api/v1/AppConfig returns the environment status.

Proposal: use the 'Debug' banner as a way to indicate that the app is using the test environment

This can be enabled using the 'debugShowCheckedModeBanner' field in 'MaterialApp' in main.dart

Proposal: use the 'Debug' banner as a way to indicate that the app is using the test environment

Hijacking the debug banner means that a developer won't be able to distinguish between the app running in debug or profile mode. I think we should make our own widget to be more explicit than this.
My proposal looks something like this. A persistent widget that will get shown on top of any screen and would not capture any tap events. This solution wraps the outermost widget (MaterialApp/BlocProvider) in a Stack.

@marfavi That's a good point, Omid.
I would also like to add that one motivation for making the environment visible (for test environments only) is also to communicate to baristas that e.g. a purchase or a swiped ticket is not valid. With that in mind, I think it would be great if we visually can make it very clear when the app is connected to a test environment.


Debug pulp authentication

Summary
Currently debugging authentication errors in ephemeral environments
Current thought is that the backend app is up but not properly configured for pulp, although there is some evidence this isn't the case.  This change means that our app will not be 'up' until pulp is fully up and running.
TODO:  make this work without a pulp server!
DO NOT MERGE
Testing steps

Hi
Where would you expect to see this message:
message = "Pulp DB Connection not available."


Don't rely on accessing the public device certificate to get the device's common name

Is your feature improvement request related to a problem? Please describe.

In instances where mosquitto is not being run on the same device as the thin-edge components (e.g. in the containerization scenario), the thin-edge.io components currently rely on access to the public device's certificate to get the external identity (required for some API calls to Cumulocity).
Describe the solution you'd like

The thin-edge.io components should be able to check what the device's common name via MQTT or REST. It should not rely on having access to the device's public certificate.
Describe alternatives you've considered

Additional context

This has been solved for the following components:

tedge-agent
tedge-log-plugin
tedge-configuration-plugin

Remaining:

c8y-firmware-plugin
tedge-mapper (c8y)


suggest(use-system-emoji): apply everywhere

Check all the boxes below

[X] I have checked that this feature hasn't already been suggested

Discord username
@moodalicious
Simple description
system emoji applied to more places
Elaborate
be able to make system emojis replace twemoji in the discord emoji keyboard + reactions and so when we tap on them it shows the emoji

thank you sir

not sure if this is possible since emojis are rendered native side, will continue searching tho

sadly this is impossible, sorry

sadly this is impossible, sorry

Alright; thanks for trying though, much appreciated


Implement message broker.

The message broker is the system responsible for distributing messages to individual replicas using the partitioning system in multi-replica mode, or directly to handlers on the current replica in single-replica mode.

/cc @koden-km @danilvpetrov - published a draft PR in case you guys are interested in the code coming about from the discussions we've been having.

Closing this PR, I'll add individual broker features in their own PR as I go.


Update Grant-CsTeamsUpgradePolicy.md

remove guidance about TeamsInteropPolicy

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Grant-CsTeamsUpgradePolicy.md
:white_check_mark:Succeeded
View (skype-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix issue #87 when copying .forceignore file

Cool, can you also create a PR for the release branch as well


new-feature-tutorial: Add references to Django.

Fixes #670

This looks great @sarahcstringer!  I added a few comments.

Great! I added the pieces you mentioned.

No need to rebase, I just resolved the conflicts with the giant documentation migration we just did (#7326), made a few tweaks to the text, and merged this.  Thanks @sarahcstringer!


Fix setting colors and legend labels. Allow not showing legend.

Changing the default color pattern and labels for a heat map did not work correctly.
The heat map legend would not allow default color patterns or labels.
The heat map did not allow hiding the legend.

LGTM


Compatibility with Parallel Processing Methods

Hello,
Regarding GASearchCV, is it amenable and compatible with MPI or any other parallel processing method? Currently the fit method of GASearchCV takes very long to compute and is computationally expensive. Will it work with any parallel processing methods (eg. MPI) to speed up the process? Appreciate if you could help!

Hi @mxhsin, at this point, the only parallelism that is enabled is in the training of each individual, cross-validation is performed to calculate the fitness of the solution, and the level of parallelism is controlled by the parameter n_jobs of the GASearchCV class. The default value is None which means no parallelism, you can set it to -1 to use all the available CPUs.
Although this will increase the speed of training, it is still a generally slow process depending on how many individuals and generations you set.
You can also try to use callbacks to stop the training with early stopping strategies: Callbacks Tutorial

Hi, can the individual runs be parallelized also?


How to define fetch plans in gremlin query when using the java api

Hi,
I'm using the gremlin java api for querying. Are there fetch plans supported in gremlin?

+1 This is very much needed. can someone at least confirm that it can't be done at all? Any suggestions to circumvent the problem would be helpful as well.


add built-in support for custom ORM/Pydantic mapping (including mapping Pydantic attributes to 'nested' attributes of underlying ORM object)

Discussed in https://github.com/samuelcolvin/pydantic/discussions/2680

Originally posted by scd75 April 17, 2021
I started using Pydantic and find the library super rich and well-designed. So first, Thanks for that!
I use it in the context of FastAPI (@tiangolo) , and have a DB which I manage through SQLAlchemey ORM. I constructed separately my models on DB side (for handling DB I/O), and my models on Pydantic side (for serialization).
I understand there have been many discussions around bridging the gap between the 2 frameworks, but this is not my exact point here.
When I return a DB entry through a pydantic model (thanks to FastAPI's 'response_model', I would like some attributes from my DB object's related entries (eg relationships) to be directly mapped as attributes of my pydantic model.
Example:
# SQLAlchemy models:

class Parent(Base):
    __tablename__ = "parent"

    id = Column(Integer, primary_key=True)
    reference = Column(String(20), nullable=False, unique=True)
    name = Column(String)

    childs= relationship("Child", back_populates="childs")

class Child(Base):
    __tablename__ = "child"

    id = Column(Integer, primary_key=True)
    parent_id = Column(Integer, ForeignKey("parent.id"))
    reference = Column(String(20), nullable=False, unique=True)
    name = Column(String)

    parent = relationship("Parent", back_populates="parent")

# Pydantic models

class ChildPydantic(BaseModel):
    reference: str
    name: Optional[str] = None
    parent_reference: str

    class Config:
        orm_mode = True

class ParentPydantic(BaseModel):
    reference: str
    name: Optional[str] = None
    childs: Optional[List[ChildPydantic]] = []

    class Config:
        orm_mode = True

Say I get some instance 'my_child' of Child class (on ORM side then), I would like to map the attribute 'parent_reference' from ChildPydantic class to my_child.parent.reference attribute.
I do not want to return the whole structure "Parent" in my Pydantic-serialized response.
I played first with validators, then ended up implementing a custom GetterDict as follows:
def get_custom_mapper(mapping: dict):

    def rgetattr(obj, attr, *args):
        def _getattr(obj, attr):
            return getattr(obj, attr, *args)
        return functools.reduce(_getattr, [obj] + attr.split('.'))

    class CustomGetterDict(GetterDict):

        def __getitem__(self, key: str) -> Any:
            if key in mapping:
                try:
                    return rgetattr(self._obj, mapping[key])
                except AttributeError as e:
                    raise KeyError(key) from e
            try:
                return getattr(self._obj, key)
            except AttributeError as e:
                raise KeyError(key) from e

        def get(self, key: Any, default: Any = None) -> Any:
            if key in mapping:
                return rgetattr(self._obj, mapping[key], default)
            return getattr(self._obj, key, default)

    return CustomGetterDict

And use it like that:
class ChildPydantic(BaseModel):
    reference: str
    name: Optional[str] = None
    parent_reference: str

    class Config:
        orm_mode = True
        getter_dict = get_custom_mapper(mapping={
            'parent_reference': 'parent.reference',
        })

That works great, but maybe it would be a good idea to "robustify" the solution, and add it as a built-in feature.
Thanks!

Bringing up this topic again. The solution described above does not allow for type validation / parsing on nested attributes. Would be great to have a robust built-in method for this problem
Thanks!

It seems like SQLModel suit this use case quite well. I agree that this is important gap to bridge!


Chrome headless driver

it would be great to have an option to use the
https://developers.google.com/web/updates/2017/04/headless-chrome
as a driver

Thanks @jb-san. This is definitely in the works. A lot of the preliminary work is being done with #198.

Heyho, reopening so other PRs can reference this and we can really close it once the driver is implemented and done - which might be a while but as @keathley said #198 already takes us almost there :)

i saw that there is an experimental selenium driver.. and i found this https://intoli.com/blog/running-selenium-with-headless-chrome/ i might give it a try

Just fyi, this is happening y'all :zap: :zap: :tada:

OH YEAHHHHHHHHHHHHH!


Whitelist and Blacklist of Worksheet

We have a spreadsheet with multiple worksheets and I'd like to whitelist or blacklist based on the title.
The reason is that one of the worksheets is an exact copy of the worksheet that I want archived, with the same column names. So the archiver picks it up when we don't want it.
I propose adding 2 extra config items, something like this:
execution:
  # spreadsheet name - can be overwritten with CMD --sheet=
  sheet: "Test Hashing"

  # worksheet to blacklist. Leave blank which is default for none. Useful if users want a MASTERSHEET exact copy of the
  # working worksheet
  worksheet_blacklist: MASTERSHEET
  # only check this worksheet rather than iterating through all worksheets in the spreadsheet. If whitelist is used
  # then blacklist is ignored as whitelist is most restrictive.
  worksheet_whitelist: Sheet1

I only need a single items in the 'lists'.
Happy to code this up and do a PR.

Coded this and like the feature (I generally use the whitelist). Will PR soon.

This is in the Dev branch and working well :-)


[c++/python] Address C++ warnings in Python build

Issue and/or context: #2513
Changes:

Add TILEDB_REMOVE_DEPRECATIONS as a CMake option that can be passed to the external TileDB build.
Update CI to build TileDB without the deprecated API.
Address a few misc. warnings in PyBind.

Use is instead of == for PyBind type checks.
Use TileDBSOMAPyError instead of TileDBSOMAError when generating errors in query_conditions.cc (remove redefinition).
Remove unused variables.

Note: This change removes the TileDB deprecation warnings from some but not most CI. When TileDB is built downstream (e.g. as part of TileDB-Py), then the deprecations are still built into the API.


make kubelet reboot persistent

Adding swapoff service to make kubelet configuration reboot persistent.
Sorry about the noise about whitespace. I am not so experienced with the Github flow yet.

I think this PR doesn't change anything, and therefore I will close it.


Add dns provider for dnspod

Add dns provider for dnspod.
Dnspod provides domain name services in China.

Hello!
I'm sorry, this totally slipped my attention.
Could you please rebase against master and resolve the conflicts?

New pull request #312  has created.


Dat-title

Dat-title -- Linked with the #597 DAT Desktop v4 concept
The issue is that the Dat title often requires to be changed or edited, without necessarily having to access the edit page.
Here are some propositions - an icon enable to edit when the Dat-title is editable by the user:

Or with no dedicated icon, but the Name tag is editable on double-click:

Qº - user can edit any Dat-title ? or should the Dat-title be only editable by the author ?


Improve performance of rendering

What is missing? / What needs to be fixed?

[x] selection of block tiles is rendered incorrect

This PR improves the performance of the OnRender method.
I hopefully tested all possible sitiuations, but please do also test it.
Looking at the diff it seems pretty big, but actually it is an optimization where everything is drawn to a backing DrawingGroup (acts as a kind of cached draw instructions) and those backing fields are (re)used when rendering the UI.

grid lines are drawn once onto a backing DrawingGroup and only updated when necessary

object selection is only drawn once onto a backing DrawingGroup and only updated when necessary

objects are only drawn once onto a backing DrawingGroup and only updated when necessary

influences are only drawn once onto a backing DrawingGroup and only updated when necessary

optimized hot path to access "expensive" properties only when necessary (e.g. _appSettings.ShowScrollbars)

optimized rendering of an empty canvas (methods return early if there are no objects)

count of placed objects is only calculated when necessary

[x] Depends on PR #363.

some images from a profiler
empty layout with mouse moving

pretty big layout with selection with mouse moving

I fixed an issue with the selection while dragging an object. This was found by @StingMcRay (via discord)
Changes in behaviour to version 9.1
Also the mouse over highlight is not drawn anymore while dragging objects over other objetcs.
Also the selection highlight is removed on MouseUp after dragging a single object.
version 9.1

Click to expand!

this PR

Click to expand!

Instead of caching the QuadTree.Count the QuadTree should keep the count internally and update it with add/remove/clear methods. That way you don't have to remember that anytime you modify AnnoCanvas.PlacedObjects you also need to call AnnoCanvas.UpdatePlacedObjectCount

@Atria1234 Could you please add that optimization? I'm still pretty unfamiliar with the QuadTree.

Undo/Redo doesn't trigger stats to update
Place two objects, undo once:


Update overview, tutorials, advanced usage -- change occurrences of 'repo_name'

Since naming the project template directory 'repo_name' is no longer required, I changed occurrences of it to 'project_slug' (matching the current cookiecutter-pypackage) and clarified that this is a templated value. I also updated the cookiecutter-pypackage/cookiecutter.json in the tutorial to match the current version.

[Current coverage][cc-pull] is 99.66%

Merging [#734][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.32%

File ...ookiecutter/utils.py (not in diff) was modified. more

Misses +2
Partials 0
Hits -2

@@           master       #734   diff @@
========================================
  Files          13         13
  Lines         583        583
  Methods         0          0
  Messages        0          0
  Branches        0          0
========================================
- Hits          583        581     -2
- Misses          0          2     +2
  Partials        0          0

[][cc-pull]

Powered by Codecov. Last updated by [124c570...ea91bf9][cc-compare]
[cc-base-branch]: https://codecov.io/gh/audreyr/cookiecutter/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/audreyr/cookiecutter/compare/124c57008ddad26cbfc570b587d8dc72567e2a4d...ea91bf944abed0a1b6c3547dee3da5c88d530eee
[cc-pull]: https://codecov.io/gh/audreyr/cookiecutter/pull/734?src=pr

Amazing work @palmerev, thanks!


A fix for agar.io client update, not an issue

Not sure if this was posted but to get the agar.io client to work on private servers after 3/23/2017
change the 11 to 13 in PacketHandler.js line 38
if (this.handshakeProtocol < 1 || this.handshakeProtocol > 11) {
You'll be able to play but leaderboard is shot. I have no idea how to fix that yet.

That was already done lol

oh nice, lol i'm always late to the party. leaderboard too?

wow @cowpits , best update 4 ever , thanks for your knowledge

Where is the leaderboard?

Yea. Where is the leaderboard?
Raga.pw fixed it ...

@AgarXTRA Nop men

Where is the leaderboard?

I wan't the leaderboard too.

we all do but who cares about the agar.io client if you have a private server just get the cigar client from Luka967 or any other client like alis.io which most people like.

No, Cigar client is so outdated.
And the leaderboard needs to be fixed by putting more code in to make it work, it won't just work the way you want it to work without putting code.
You do need some patience.

i'm not sure what you mean that it needs a lot of work. i'm using this https://github.com/Luka967/Cigar
and seems to work fine. here's what it looks like for me http://gkclan.tk
i don't need additional work lol.

@cowpits Lol I have a video up on how to fix this, so you don't need to make a video on it :D

oh no i'm not making one for it lol.

@MastaCoder If you're gonna add a bug label atleast change the title to fixing the leaderboard

Otherwise putting a bug label for fixing something makes no sense

A fix for agar.io client update, not an issue - Client has an update - MultiOgar needs to be updated - It's a bug. I don't see why we need to get into so many specifics if we already know it needs to be fixed..

eh true

Leaderboard now has packet opcodes: 0x33(ffa/exp) 0x34(party) 0x32(teams)
0x32 is the same for teams(uint32,float,float,float)
0x33 is like this:
(uint8) packet opcode
(null_str8) names
....
0x34 is like ffa, but:
(uint8) op
(uint16) if player spawned, its 1 otherwise 0 (idk lol)
(null_str8) names
...
(uint16) player position in leaderboard

The show mass feature does not actually show, unless you have a name now. And the enlarged names are HORRIBLE LOOKING!

I know right, Moneycrap is going to destroy our game lol

According to their Twitter, the 30FPS thing was done on purpose since "It was CPU intense". 🤦♀

lol  "It was CPU intense"
well now it's "jitter intense"

@NuclearC How do you decode the packets? Tampermonkey script or something else?

Agar.io thinks I have 2 Billion Friends xD

I think there is a flag missing for when you are in the leaderboard

@Tyler3D i made my agar.io bots and client, i know how to decode packets and with some C++ debugging i can easily detect packet errors and try to decode them.

@NuclearC
c++ debugging? can u describe what u use for it?

@F0RIS Visual Studio 2017 :D

@F0RIS actually Visual Studio is 65 gb to install lol, better with wireshark if you dont know the whole agar.io protocol

I use 2010, it's 4gb xD

2010 was bae.

@MastaCoder Like me? lol

lmao xD

ugh no 2017 is the best ;P

xd

I installed 2015 on my laptop once. Load time was 2 minutes xdddddd

@Luka967 try the 2017, they fixed that shitty load times xD now it takes me 5-15 seconds to startup VS2017

https://gyazo.com/d4fb1548c944c071a043d077e77562b0
@NuclearC gotchu


"expected value but found '\n' instead" consul_catalog

Do you want to request a feature or report a bug?
bug
What did you do?
added tag on service / app traefik.backend.loadbalancer.stickiness=true
What did you expect to see?
Sticky session cookie name.
What did you see instead?
have this error:
level=error msg="Failed to create config" error="Near line 42 (last key parsed 'Backends.backend-myappl.LoadBalancer.Stickiness.cookieName'): expected value but found '\n' instead"

Output of traefik version: (What version of Traefik are you using?)
version:v1.4.0-rc5

What is your environment & configuration (arguments, toml, provider, platform, ...)?
# (paste your configuration here)

Closed by #2251.


✨ Convert Number to double implicitly

Overview
Make Number be able to convert to double implicitly
Motivation
Consider the following:
Number num = 0_num;
Angle a(num); // this does not compile

For this code to compile, another constructor overload is necessary. This leads to unnecessary code duplication.

    NEW_UNIT(Number, num, 0, 0, 0, 0, 0, 0, 0, 0, constexpr operator double() { return this->value; })

If we want to have Number have some special behavior, I think it might be better to define it manually rather than through the NEW_UNIT macro. I would like to try to keep these macros from getting any more complex.


Determine MIME type when not provide

As discussed here https://github.com/openhab/openhab2-addons/issues/1628 we discovered that load is failing if MIME type is not provided to the load method. Could it be possible to update the code to try to automatically determine the MIME type when not provided ?
As you can see, @tavalin proposed a code to do that.

As you can see, @tavalin proposed a code to do that.

Didn't see it

https://github.com/openhab/openhab2-addons/pull/1844

From my point of view this is out of scope of the library. The requirement to provide MIME type comes from the Google Cast. But anyway, I think it will be useful to have such functionality since playback of some media is the core function. I will think about it, most probably it will be included. Thank you for suggesting.

Tika could solve this problem quite fast

FYI I have released 0.10.0 today with the automatic detection of MIME type if it is not specified explicitly. It is already available in maven central.


[Japanese translation] Email notification for submitted speakers

Remaining translation work from https://github.com/WWCodeTokyo/speak-her-db/issues/79
We are currently sending an automated email to all submitted speakers with the following content:
To: [email]
CC: [submitter_email]<EMAIL_ADDRESS>Reply<EMAIL_ADDRESS>
Hi [Name],
You have been nominated by [submitter_name] ([submitter_email]) to be featured on SpeakHer.jp, our online database of women and non-binary speakers in Japan!
This is an automated message indicating your nomination:
Name: [name_en] / [name_ja]
Email: [email]
Title: [job_title]
Company: [company]
Secondary Title: [secondary_title]
Secondary Affiliation: [secondary_affiliation]
Pronouns: [pronouns]
Bio: [speaker_bio]
City: [city]
Twitter: [twitter_url]
Facebook: [facebook_url]
LinkedIn: [linkedin_url]
Website: [website_url]
Photo: [photo_url]
Please let us know if you don't want to be featured on the site or if you'd like us to correct any information.
Also, if you know of any women that you think would be a wonderful addition, please nominate them or spread the word about our database. We accept women and non-binary speakers on any topics in Japan.
You can find our website at: https://speakher.jp
And you can follow us on Twitter: @SpeakHerJapan
Kind regards,
SpeakHer team

From the original issue:
It would be nice to translate the above template into Japanese and then amend the Zap to include both languages.
@yanarchy, would this be something Emi could help with? Or we could also ask in the group chat for translation help.

こんにちは [Name],

あなはたSpeakHer.jpに[submitter_name] ([submitter_email])として登録されています。SpeakHer.jpは、日本に在住の女性のスピーカーのデータベースです！
これは、あなたの候補登録を示すために自動で送信されています:
お名前: [name_en] / [name_ja]
Email: [email]
役職: [job_title]
企業: [company]
第２の役職: [secondary_title]
第２の所属: [secondary_affiliation]
一人称: [pronouns]
経歴: [speaker_bio]
都市: [city]
Twitter: [twitter_url]
Facebook: [facebook_url]
LinkedIn: [linkedin_url]
Website: [website_url]
写真: [photo_url]
もし、このサイトに参加するつもりがない、いかなる情報をも修正してほしい等のご要望があれば、お知らせください。
また、もし、他に素晴らしい候補者がいらっしゃいましたら、彼女たちを候補に加え、私たちのデータベースを広めてください。私たちは、日本で、あらゆる分野のトピックについて、女性のスピーカーを受け入れます。
わたしたちのWEBサイトはこちらです。: https://speakher.jp
Twitterのアカウントもあります。: @SpeakHerJapan
よろしくお願いいたします。
SpeakHer チーム

@tuttiq I'd like to add Japanese translation to src. Which no. repository can I fix?

Hello @shokokb san, thanks for volunteering. We might be end-of-lifing the email relay, so let's hold off on translating it for a bit. 🙇🏻♀


Hamburger does not expand using local copy of jquery-3.1.1.slim.min.js

I am running Windows 10 using IE11 and also Firefox 61.0.2. I am upgrading my application from v4-alpha to v4.1.3. I am trying to use local copies of all the CSS and JS files as provided in the download. I have a series of nav buttons which display OK on a wide screen and which are replaced by the hamburger icon on a smaller screen. However, when I click on the hamburger icon it does nothing when it should display a dropdown list of options. If I switch from using a local copy of jquery-3.1.1.slim.min.js to using https://code.jquery.com/jquery-3.3.1.slim.min.js it works as expected.
I have also tried copying the HTML for https://getbootstrap.com/docs/4.1/examples/navbars/ onto my PC and tried switching the location of this JS file with exactly the same effect. It looks like the remote version of this file accesses another resource which has not been included in the download and which therefore is not available on my PC.
Am I missing a file or is there something else which is wrong?

Sorry, but we cannot help with how-to or general troubleshooting issues here; only bug reports and feature requests. You'll want to ask around in the official Slack team or Stack Overflow. See our readme for more details.


refactor(lane_change): rework object filter

Description
Lane change object filters checks for object's arc length from ego, and this time consuming process might be resource extensive if the number of object is huge.
To avoid this issue, the object filtering in lane change is improve, by first performing rough checks, by checking object current location and speed, and then remove if it is not fulfill the requirement.
The following will be the new logic for the object filtering

Related links

Tests performed

Notes for reviewers

Interface changes

Effects on system behavior

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[ ] I've confirmed the contribution guidelines.
[ ] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

The code looks good to me.

@Owen-Liuyuxuan

Thank you for your detailed documentation. I would love to have some more local tests.

Thank you for your comments, but may I know what do you mean by some more local tests?

@Owen-Liuyuxuan

Thank you for your detailed documentation. I would love to have some more local tests.

Thank you for your comments, but may I know what do you mean by some more local tests?

Sorry for the late reply, I was considering how to quantify the improvements with some current ROSBag. But I was blocked by some other tasks lately.


Backoffice: fixed width on some fields in small screens

Package version (if known):
Describe the bug
The datePicker component has a fixed minimum width, and gets off the screen in smaller screens, priceField component seems to have also a fixed width in the currency selector.
Steps to Reproduce

Open DevToools, click Toggle device toolbar(Ctrl + Shift + M) and select Laptop with MDPI screen
Go to Purchase orders
Click create order.

Open DevToools, click Toggle device toolbar(Ctrl + Shift + M) and select Laptop with MDPI screen
Go to Patrons
Click on the first patron.

Expected behavior
Both components (datePicker and priceField) should not have a fixed width.
Screenshots (if applicable)

Additional context

The part with the document titles should be already fixed.
For the forms, acquisition is done (moved to RJSF), borrowing request to do.


update privileged container documentation

Which feature do you think can be improved?
With containerd/cri side improvement containerd/cri#1225, and moby side improvement moby/moby#39702, and cri-o side cri-o/cri-o#2708 (which is not handled yet), we should update kata's docs about how privilege container works in kata and how to setup and use the feature properly.
How can it be improved?
Add/update document about kata's privilege container handling.
Namingly, for containerd/cri, we should add privileged_without_host_devices = true to containerd's config.toml, something like
      [plugins.cri.containerd.runtimes.kata]
         runtime_type = "io.containerd.kata.v2"
         privileged_without_host_devices = true

or
      [plugins.cri.containerd.runtimes.katacli]
         runtime_type = "io.containerd.runc.v1"
         privileged_without_host_devices = true
         [plugins.cri.containerd.runtimes.katacli.options]
           NoPivotRoot = false
           NoNewKeyring = false
           ShimCgroup = ""
           IoUid = 0
           IoGid = 0
           BinaryName = "/usr/local/sbin/kata-runtime"
           Root = ""
           CriuPath = ""
           SystemdCgroup = false

And for docker, users can use --security-opt privileged-without-host-devices, something like
docker run -it --runtime kata-runtime --privileged --security-opt privileged-without-host-devices busybox

/cc @awprice @zhiminghufighting would you like to drive this one?

/cc @awprice @zhiminghufighting would you like to drive this one?

Yep I'd be happy to do it.

@awprice Cool, thanks! Please note the moby one is still wip and the cri-o one is not handled yet. Let's start with containerd/cri and fill the gap later on.

@bergwolf Sounds good to me!


Add code one click copy

Is your feature request related to a problem? Please describe.
The code copy function is very common, and I think it should be possible to add that function.

The effect after clicking：

Describe the solution you'd like
Add a button to the element  that can be clicked to copy the code in it
Describe alternatives you've considered
No response
Additional context
No response
Validations

[X] Read the docs.
[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.

I think I have completed this function and can review code🥳


[#169620545][Blocked] Bump stemcell version to 621.23

What
Bumps the stemcell version to 621.23
How to review
Paired on with @tlwr

This ran down my dev env and passed all the tests


npm run build Module not found Error

I try to build my production, however, I got this error:

Module not found: Error: Cannot resolve module 'shared/globalStyle' in Desktop/portfolio-site/src

I'm using styled-components's
injectGlobal.

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the portfolio-tutorial package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs portfolio-tutorial
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls portfolio-tutorial
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/chloe/.npm/_logs/2017-05-18T02_54_56_636Z-debug.log

Node v7.9.0
npm 4.2.0

Hi, we're unable to help because you didn't follow the issue template. Please fill out the issue template and we'll be able to take a look. 😄

Hi Sorry about that, I re-submit again.
Thanks!


Document mixed units

(Could have sworn there was an open issue for this but I can't find it)
Pages to update: InfluxQL reference (duration literals), Database Management (retention policies)
Looks like this affects everything - retention policy durations, cq every and for intervals, and doing math on timestamps.

https://github.com/influxdata/docs.influxdata.com/issues/573 is the original issue. Closed because it doesn't work everywhere, so feels weird to bother documenting it in only some places.

I think this is only in 1.1. I tried out the query you mentioned in #573 on the nightly and it worked:
> create retention policy blah on mydb duration 3d4h replication 1

> show retention policies on mydb
name	duration	shardGroupDuration	replicaN	default
----	--------	------------------	--------	-------
autogen	0s		168h0m0s		1		true
blah	76h0m0s		24h0m0s			1		false

I remember it being talked about for 1.0 but I think it got pushed to 1.1.


3d touch shortcuts

Anything cool we could do? Random ideas:

Switching accounts
“new issue” on last viewed repo
straight to search

Also maybe jump to the latest 2 notifications (ala Spotify)
Sent with GitHawk

Damn it.

On Spotify: I am a frequent user of 3D Touch and Quick actions, but practically never use Spotify’s

@BasThomas can you clarify a little? You never use Spotify's shortcuts?

Yeah, never use their 3D Touch Quick Actions from the homescreen

Reopening as we don’t have the new issue on last viewed repo yet
Sent with GitHawk

Guess I am going to close this after all; lets pick this back up once needed.


TestsetGenerator.from_langchain Generating failed, randomly stuck at 0% to 80%.

[ ] I checked the documentation and related resources and couldn't find an answer to my question.
Your Question
TestsetGenerator.from_langchain Generating failed, randomly stuck at 0% to 80% And I've been consuming tokens from the OpenAI API.
By the way, my embedded documents are in Chinese. Would this potentially affect this case?
I am a student who has just started programming, and my understanding of related knowledge is limited. I would be very grateful if there were experts who could understand my incomplete questions and help me.
Filename and doc_id are the same for all nodes.
Generating:  70%|██████████████████████████████████████████████████████▌                       | 7/10 [01:29<00:43, 14.33s/it]

Code Examples
from langchain_text_splitters import RecursiveCharacterTextSplitter
import os
from ragas.testset.generator import TestsetGenerator
from ragas.testset.evolutions import simple, reasoning, multi_context
from langchain_openai import ChatOpenAI, OpenAIEmbeddings

os.environ["OPENAI_API_KEY"] = "sk-xxx"

with open("RAGAS\output.md", encoding='utf-8') as f:
    state_of_the_union = f.read()

text_splitter = RecursiveCharacterTextSplitter(
    # Set a really small chunk size, just to show.
    chunk_size=512,
    chunk_overlap=128,
    length_function=len,
    is_separator_regex=False,
    separators=[
    "###"
    ]
)

documents = text_splitter.create_documents([state_of_the_union])
print(documents[0])

generator_llm = ChatOpenAI(model="gpt-3.5-turbo")
critic_llm = ChatOpenAI(model="gpt-3.5-turbo")
embeddings = OpenAIEmbeddings()

generator = TestsetGenerator.from_langchain(
    generator_llm,
    critic_llm,
    embeddings
)
from ragas.testset.evolutions import simple, reasoning, multi_context,conditional

generator.adapt(language="chinese",evolutions=[simple, multi_context, conditional, reasoning])
generator.save(evolutions=[simple, reasoning, multi_context,conditional])

testset = generator.generate_with_langchain_docs(documents, test_size=10, distributions={simple: 0.5, reasoning: 0.25, multi_context: 0.25},  is_async=False)

testset.to_pandas()

testset.to_pandas().to_csv("RAGAS\output.csv", index=False)

Additional context
Anything else you want to share with us?

卡住了，估计就是json的输出问题了

我看好像是編碼不支持 "~\miniconda3\envs\my_env\Lib\site-packages\ragas\llms\prompt.py" line 286, encoding="utf-8"


kwargs limitations

Hi,
As I'm going through the logging module, there are a lot of cases where **kwargs are used to provide flexibility in the UI. When I enable the kwargs option using __pragma__('kwargs') the function receives an object that from what I can tell is a javascript object but not a full dict object. In other words, the function cannot call dict methods like "keys()" or "pop()" on kwargs even though these are defined for standard dict objects. What is the rationale for not having the kwargs object be a full-fledged dict object?
I'm having issues because I'm trying to simulate the certain functionalities of a dict on this quasi-dict object like pop(). To do this I have the following python code:
def basicConfig(**kwargs):
   ...
  style = kwargs["style"]
  if ( style is None ):
    style = '{'

This generates the following javascript:
   ...
var style = kwargs ['style'];
if (style === null) {
    var style = '{';
}

The problem is that === is the identity operator and it will not coerce 'undefined' to 'null'. So the when we try to pull the missing style attribute from kwargs, style = undefined and hence the comparison between style and null using the identity operator fails. The style value never gets a default value. I could of course compare style to "undefined" but that seems antithetical to the goal of transcrypt.
I think it would make a whole lot more sense if kwargs was a full dict object like in python.

The rationale was that I wanted to keep this mechanism as cheap and lightweight as possible. But I may have underestimated the need for a real dictionary, and a real dict isn't that heavy. It could be that there are some technical problems as well, but I expect them to be solvable. So my proposal is to indeed make it a full fledged dict, unless severe implementation problems arise, which as said I don't expect.
The 'kwargs' code was rather tricky at some points (forgot the details, but not the feeling...), so I'd like to postpone correcting until I am free to concentrate upon the core again (don't expect that to take longer than say 2 weeks). But if this hinders progress of your code to much I'll give it priority. Awaiting your reaction.

But if this hinders progress of your code to much I'll give it priority.

I don't think there is any need to change your schedule. I can work around it for now. Thanks!

Done, let me know if not OK

I don't think it's ok :P
At least fail on it, so I know I have to work around it.


Fix incorrect parse async with proto-identifier-shorthand

fix #1847

Codecov Report

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

@@          Coverage Diff           @@
##           master   #1851   +/-   ##
======================================
  Coverage     100%    100%
======================================
  Files           1       1
  Lines        4047    4047
  Branches      717     717
======================================
  Hits         4047    4047

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 08a31db...dd92a33. Read the comment docs.

LGTM. Thank you @Kingwl 👍


Add basic tracking for analytics

Current coverage is 33.53% (diff: 70.00%)

Merging #26 into dev will increase coverage by 13.58%

@@                dev        #26   diff @@
==========================================
  Files            99        101     +2
  Lines          3594       3668    +74
  Methods           0          0
  Messages          0          0
  Branches        377        383     +6
==========================================
+ Hits            717       1230   +513
+ Misses         2827       2331   -496
- Partials         50        107    +57

Powered by Codecov. Last update 1b8ef7d...1016987


[RFE] Allow automatic installation of operator (based on startingCSV) despite Manual installPlanApproval #177

Not few of us are struggling with the fact that sometimes one needs an operator in a given version despite all other versions in the catalog/channel.
There are very low options there and all of them rely on automation and manual approval of install plan for such installations (that are expected to have a Manual + startingCSV pair). And everyone's reinventing the wheel using ansible, acm, k8s jobs, disconnected mirrors with only one version, etc. again and again.
I'm not sure if this has been discussed before, but it would be really great if OLM can be smart enough to cover this use case: whenever a subscription is created, if the startingCSV field is defined and there's an specific annotation, install that version automatically but let the subscription remain in Manual.
It can be a one shot comparison at creation time, no need to add extra logic for recurring modifications.
Example:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: quay-operator
  namespace: quay-enterprise
  annotations:
    olm.install-startingcsv-automatically: true
spec:
  channel: stable-3.9
  installPlanApproval: Manual
  name: quay-operator
  source: redhat-operator-index
  sourceNamespace: openshift-marketplace
  startingCSV: quay-operator.v3.9.6

Hi, that would be the killer feature that many people are eagerly anticipating. I've been trying for 2 years to find the best solution (Ansible, Argo, Wave + script, etc.).

This project really aims to solve this specific problem. The operator-controller's spec just has an explicit spec.versions field that will allow you to specify a specific version. It will still respect the upgrade path, but it will allow you to get a non latest version.
We are not planning on implementing anything like this in the existing operator-lifecycle-manager project, which we are considering feature complete at this point. So it will be available in the new ClusterExtension API, and not in Subscription.

It will still respect the upgrade path, but it will allow you to get a non latest version.

You mean: it will install automatically a version (non latest version) and will respect the Manual strategy set in the Subscription. Don't you?

@soukron The new ClusterExtension API in operator-controller will allow you to set a specific version (equivalent to manual strategy in the existing Subscription API) or a version range (equivalent to automatic strategy in the existing Subscription API). OLMv1 will not know anything about the previous APIs and will not respect any configuration in existing Subscription resources.
For example, to allow for automatic upgrades within a version range the ClusterExtension might look something like:
apiVersion: olm.operatorframework.io/v1alpha1
kind: ClusterExtension
metadata:
  name: clusterextension-sample
spec:
  installNamespace: default
  packageName: argocd-operator
  version: 0.6.x

This essentially says "Install the latest patch release of v0.6 of argocd-operator and automatically upgrade to new patch releases"
An example of a specific version would look like:
apiVersion: olm.operatorframework.io/v1alpha1
kind: ClusterExtension
metadata:
  name: clusterextension-sample
spec:
  installNamespace: default
  packageName: argocd-operator
  version: 0.6.0

This says "Install v0.6.0 of argocd-operator. Do not automatically upgrade". In order to upgrade to newer versions you would need to manually update the .spec.version field in the ClusterExtension to your desired version. Once modified, operator-controller will begin to install the new version.


Configure opportunistic locking

Domain entities should support opportunistic locking. In addition to the normal data integrity motivations, client-side "am I up to date?" checks are a target use case.

BaseEntity provides this on the updatedAt field


[BE] API Endpoint for ReviewStatistics by Prof Id

Features

Core

Optional

Implementation

Potential Issues

i can take this up

thanks for your interest! this issue is stale and no longer relevant, will be closing it-


Independent oversight committees on Councilmatic

Get body type name and number over to Datamade for scraping.

@shrayshray Hi, Shelly! Is it your expectation that the oversight committees are added to Councilmatic prior to next week's meeting of the Measure M Independent Taxpayer Oversight Committee?

Yes, the oversight committees should be added to Councilmatic before the Measure M meeting next week.

BodyTypeName: Independent Taxpayer Oversight Committee
BodyTypeId: 68
BodyName: Measure M Independent Taxpayer Oversight Committee
BodyId: 248
BodyName: Measure R Independent Taxpayer Oversight Committee
BodyId: 250
BodyName: Independent Citizen’s Advisory and Oversight Committee
BodyId: 251
BodyTypeName: Independent Taxpayer Oversight Committee (SAP)
BodyTypeId: 69
BodyName: Measure M Independent Taxpayer Oversight Committee (SAP)
BodyId: 254
BodyName: Measure R Independent Taxpayer Oversight Committee (SAP)
BodyId: 255
BodyName: Independent Citizen’s Advisory and Oversight Committee (SAP)
BodyId: 252

Got it, thank you!

Updated the scraper to import the new oversight committees in https://github.com/opencivicdata/scrapers-us-municipal/pull/301. They should come in, in this evening's full scrape. Will check on this in the morning!

New committees are in! Next week's meeting of the Measure M Oversight Committee is displaying as expected in the upcoming meetings section on the homepage and on the events page.

None of the oversight committees have memberships in Legistar, so they aren't displayed on the committees page. Two questions, @shrayshray:

Do you expect the oversight committees to show up on the committees page?
Should/will there be memberships on the oversight committees?

My inclination is to not show them on the committees page as they are not Board of Directors committees, @camachoo can you confirm?
For the same reason, I don’t believe we will be entering members for them in legistar.

Safe to close this, @shrayshray?

Yes.


LatexWalker does not correctly parse "\newcolumntype{C}{>{$}c<{$}}"

First, let me thank you for you work, it helps me a lot.
I want to report the issue in the title.
For instance:
echo '\newcolumntype{C}{>{$}c<{$}}'  |  latex2text

will issue a parse error (I think because the parser sees a closing group right after an opening math).
I don't know if it is possible to fix, but, if it is not, I wanted to ask if it would be possible to entirely skip the line(s) with parsing errors (maybe by supplying some optional argument) in the hope of not cluttering the rest of the parsing.
Something similar: echo '\newcommand{\be}{\begin{equation}}' |latex2text
My use case is this: I need to scan a tex file, looking for some specific macro (\title, \author,...) and transform their arguments into text. I do not want to use something like latex_text.find("\\title") (and then parse from there) because of comments and "look-alike" macros (e.g. \titleBar, \authorFoo). I could use regexps to find the starting point, but I prefer to navigate the tree of nodes built by LatexWalker.

Hi, thanks for reporting this issue.
The trouble here is that some macros, especially ones that define new macros or new behavior (such as \newcommand, \def, \newcolumntype, etc.) cannot be parsed like "normal" macros (such as \textbf{...}) because their argument structure isn't simply LaTeX content and has to be treated specially (e.g., a sequence of symbols that have a macro-specific meaning, or for \newcommand, LaTeX tokens that one shouldn't try to expand or parse further). In TeX/LaTeX, these macros work with TeX tricks such as changing catcodes, etc. The latexwalker module is not designed to be a TeX engine, but instead, it is meant to parse LaTeX with a simplified set of rules (e.g., there are no catcodes).
That said, there is quite a bit of flexibility to parse complicated LaTeX macros and constructs, but those have to be defined manually in python. There currently is minimal support for some of these "special" macros (e.g. \verb+xxx+). It would be great to add support for more such "special" macros; for instance I hope to be able to add support for \newcommand macros in the future.
In your use case however, you could see if latexwalker's "tolerant parsing mode" (e.g. latex2text --tolerant-parsing or latexwalker --tolerant-parsing) would be able to recover from the errors you mention. (The option is supposed to be on by default. Besides the parse error warnings, did you get any useful output in your attempts?). The resulting node tree might be a bit off, or might have missing nodes, but this would be currently the closest option to the feature you are referring to (ignore the line on which the error is).
I definitely agree that document preambles often have a bunch of advanced LaTeX definitions (e.g., "\makeatletter" tricks etc.) that can throw off the parser. The parser was indeed more designed in view of parsing a document contents, or content snippets of a document, rather than the entire document in one go. An option is to keep all preamble definitions in a separate file and use "\input{macros.tex}" (which by default on the command-line tool is ignored, and is customizable if you use the python API directly). I agree that using regexp searches is very ugly and it will be easy to miss some situations. Here are some further suggestions:

parse everything into a big node list in tolerant parsing mode, and explore it to find the information you'd like
if definitions are well-organized in lines, you could try to load the file and parse it line-by-line or node-by-node (based on your suggestion). E.g.: parse a single node, and if there is a parse error, move to the next line. Then continue parsing the next node etc. Something along the lines of (UNTESTED):

with open("my_tex_file.tex") as f:
    doc_contents = f.read()
lw = latexwalker.LatexWalker(
    doc_contents,
    tolerant_parsing=False, # set to False, we'll catch parse errors ourselves
)
parsing_state = lw.make_parsing_state()
pos = 0
while True:
    # Try to read a one node at a time position pos. If there is a parse error, move to the next line and try again.
    try:
        (nodelist, npos, nlen) = lw.get_latex_nodes(pos, read_max_nodes=1, parsing_state=parsing_state)
        pos = npos+nlen # continue parsing after this node next time we start the while loop
    except LatexWalkerParseError as e:
        print(f"Ignoring parse error at line {e.lineno}, col {e.colno}: {e}")
        # find next newline to continue parsing from there
        pos = doc_contents.find('\n', pos+1) # position of next newline
        continue
    if len(nodelist) == 0:
        break # end of document reached
    assert len(nodelist) == 1
    node = nodelist[0]

    ... # do something with `node`, e.g. call nodelist_to_text([node]) on some latex2text.LatexNodes2Text instance

Thank you for the suggestions, I'll them try and let you know how it goes.
To answer your question, yes, when there is no pesky \newcommands & co., I definitely get useful results.
I use the function below  (still work-in-progress) to navigate the tree looking for the macros that I'm interested in (I customize the context) and, since I know how many arguments they have, I can pass them to LatexNodes2Text to get what I need:
def find_macro(node, macroname):
    """Walk the node (consider the given node as the root of a tree) and
    find the macro I'm looking for"""
    found = []
    if node is None:
        return found
    if isinstance(node, str):
        # logger.debug(f'string: {str}')
        return found
    # == CHARS ==
    if node.isNodeType(LatexCharsNode):
        # logger.debug(f'chars: {node.chars}')
        return found
    # == GROUP ==
    elif node.isNodeType(LatexGroupNode):
        # logger.debug(f'group: {len(node.nodelist)}')
        for child in node.nodelist:
            found.extend(find_macro(child, macroname))
        return found
    # == MACRO ==
    elif node.isNodeType(LatexMacroNode):
        # if node.macroname == "newcommand":
        #     import pdb
        #     pdb.set_trace()
        if node.macroname == macroname:
            logger.debug(f"FOUND {macroname} in {node}")
            found.append(node)
            return found
        else:
            # "\newcommand\mgg[1]{#1}" has empty nodeargd (None)
            if node.nodeargd is None:
                # logger.debug(f'macro: \\{node.macroname}@None')
                return found
            argument_nodes = node.nodeargd.argnlist
            # logger.debug(f'macro: \\{node.macroname}@{len(argument_nodes)}')
            for child in argument_nodes:
                found.extend(find_macro(child, macroname))
        return found
    # == ENVIRONMENT ==
    elif node.isNodeType(LatexEnvironmentNode):
        # logger.debug(f'environment: {len(node.nodelist)}')
        for child in node.nodelist:
            found.extend(find_macro(child, macroname))
        return found
    # == COMMENT ==
    elif node.isNodeType(LatexCommentNode):
        # logger.debug(f'comment: {node.comment}')
        return found
    # == MATH ==
    elif node.isNodeType(LatexMathNode):
        return found
    # == SPECIALS ==
    elif node.isNodeType(LatexSpecialsNode):
        return found
    # == ??? ==
    else:
        logger.debug(f"UNKNOWN TYPE: {node.nodeType()}")
        return found
    assert False


Use https://

I really love this add-on, so first of all: Thank you very much for developing it!
Now, I noticed that archive links are always saved as
http://web.archive.org/web/...

instead of
https://web.archive.org/web/...

Since web.archive.org supports HTTPS, I guess there is really no need to use the insecure protocol. And because the site doesn't automatically redirect to its secure HTTPS counterpart when accessed over HTTP, users will always visit the insecure version if they don't use a browser add-on like HTTPS Everywhere.
I briefly scanned the source (using ack) and detected the following places where http://web.archive.org is used instead of https://web.archive.org:
https://github.com/leonkt/zotero-memento/blob/bb4db7ee10095a46a0886935d4b4177b4e708488/chrome/content/scripts/IaPusher.js#L181
https://github.com/leonkt/zotero-memento/blob/7efbfb9591cea00ce7523441bc717aac22d4f6f7/chrome/content/Jasmine/jasmine-standalone-3.4.0/src/util_test.js#L118
Is there any specific reason that no HTTPS is used at these two places?

Not particularly; good catch! I will make the appropriate changes.

I will make the appropriate changes.

Thanks, I've seen you have changed IaPusher.js accordingly in https://github.com/leonkt/zotero-memento/commit/e558a24e7745de9954fdf872b37374cb0fcd4160.
But shouldn't the jasmine test (see above) be updated as well?
Then I wanted to ask if you could release a new version including the recent changes :)


(maint) Update for 1.3.0

This commit updates the docs site for v1.3.0 release.

@jpogran   For you.


Add User Guide docs for find command

Closes #58

Experimented with using Markbind components! Screenshots for quick reviewing:


Update mockito-core to 3.7.0

Updates org.mockito:mockito-core from 3.6.28 to 3.7.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.mockito", artifactId = "mockito-core" } ]

labels: test-library-update, semver-minor

Superseded by #10.

Superseded by #10.


Display fetched brain data on frontend using NextJS

By using mne.read_raw_fif on NestJs, create api for fetching Data with time-sequence.

How to call python script on Nest.js is here

Or, we can use different datasets as a type of txt or csv.

TODO

[ ] CSV to JSON
[ ] Display JSON by brainwave with SVG
[ ] Use Cloud storage (Change reference of dataset in docker-compose )


tests: Bring utils.go test coverage back to 100%.

#253 inadvertently removed an os.Chdir test in TestRuntimeConfig() that
was exercising resolvePath().
Add a new test in the correct place to handle this scenario.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

Coverage increased (+0.1%) to 48.201% when pulling 0f58333fabb2cf14211c38f8915109f2b2ff44f8 on jodh-intel:fix-utils-coverage into 374bf66436d1699111f65e23ec5f884463d88855 on clearcontainers:master.

LGTM

lgtm


Fix Swift syntax highlighting

Describe the bug
Swift syntax highlighting is broken.
To Reproduce
Detailed steps to reproduce the behavior:

Run vim —clean print-puzzle-catalog-sql.swift (the file is attached below)
Press Shift + G
See incorrect (broken) syntax highlighting
Press Control + B
Press Control + F
See correct syntax highlighting

Expected behavior
Correct syntax highlighting in step 3.
Screenshots

Environment (please complete the following information):

Vim version 8.2 (2019 Dec 12, compiled Mar  8 2021 07:21:32)
OS: macOS 11.2.3 (20D91)
Terminal: Apple Terminal (comes with the OS)

Problematic Swift file
The print-puzzle-catalog-sql.swift file:
print-puzzle-catalog-sql.swift.zip

can you please contact the syntax file maintainer? https://github.com/vim/vim/blob/master/runtime/syntax/swift.vim
See the top of the file.

@chrisbra Is that Joe or Emir?
" Vim syntax file
" Language: swift
" Maintainer: Joe Groff<EMAIL_ADDRESS>" Last Change: 2018 Jan 21
"
" Vim maintainer: Emir SARI<EMAIL_ADDRESS>

My guess is, Emir is the Vim Syntax script maintainer, while Joe Groff is the Swift Language maintainer. But I don't know.

@salutis, you might want to report this to Joe Groff via e-mail, I am just keeping things synced with upstream.

Thanks folks. I pinged Joe here:
https://twitter.com/salutis/status/1372102154450837505

I haven't touched the vim syntax highlighting in a long time. I'm happy to relinquish my maintainership and do whatever you all think is best.

The issue is clearly due to multiline string literal goes out of sync. So this could help:
syn sync match swiftLongStringSync grouphere swiftString /"""$/

But the problem is the whole syntax is quite outdated.  So I'm going to make PR to fix literals, at least.


Missing currencies

The following currencies are missing:
Hong Kong Dollar
Taiwan Dollar
Maccanese Pataca
Mexican peso
All South American currencies
Most East Asian currencies
All Middle Eastern currencies
Bitcoin
Russian Ruble
I personally needed the ARS, UYU and HKD, but the above list is of the ones that I found.

We're just mirroring the rates from the European Central Bank. If they don't provide a rate, Fixer won't have it.


Warn if non standard channel names used. Use two sided test

Codecov Report

Merging #110 into master will decrease coverage by 0.44%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   99.32%   98.87%   -0.45%
==========================================
  Files          27       27
  Lines         442      446       +4
==========================================
+ Hits          439      441       +2
- Misses          3        5       +2

Impacted Files
Coverage Δ

mne_nirs/utils/_io.py
95.23% <75.00%> (-4.77%)
:arrow_down:

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 7ba32ce...924be3d. Read the comment docs.


Waypoint API calls are very expensive

We are doing reinforcement learning and want to track the offset of the car from the lane center. Therefore we make use of the waypoint API, however we noticed that that get_waypoint() calls affect performance very badly.
We wrote a script to outline this performance issue:
https://gist.github.com/hh0rva1h/ff708da80e6e7c61c4e41894ddcbb198
On my machine I obtain the following results:
python3 benchmark_waypoints.py
performance: 609.0 ticks per second for 1.0 seconds
performance (waypoints):   8.0 ticks per second for 1.0 seconds

However we noticed that the lane invasion sensor does not drop performance (so it seems internally the lane invasion sensor does not make use of waypoints or it does it more efficiently).
So could you please evaluate whether the performance of those calls could be improved? Or is this to be expected and we should use other means to track the offset of the car, e.g. receive all waypoints in one call and estimate the nearest way-point ourselves in every time step ourselves?
@germanros1987 Could you be so kind to triage this issue?
@marcgpuig Since you implemented the API could you maybe leave a comment on whether improving the performance of those calls is sensible? Or if it would make sense to make it possible to register a callback/sensor that could report the nearest waypoint with higher performance?

Hi @hh0rva1h, sorry for the late response!
With your same script and the current master branch in my machine (2080 ti | Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz):
performance:  60.0 ticks per second for 1.0 seconds
performance (waypoints):  11.0 ticks per second for 1.0 seconds

The main problem is that you are using world.get_map() on every tick, and this basically ask for the OpenDRIVE file to the server, retrieves it as a string, and parses it to get the actual carla.map object. Considering that the Town04.xodr is around 54 MB I think 8-11 ticks per second still very fast :smile:
You should do:
...

client = carla.Client("localhost", 2000)
world = client.load_world("Town04")
m = world.get_map()

...

while time.perf_counter() - t0 < benchmark_time:
    world.tick()
    m.get_waypoint(vehicle.get_location())

...

Then, I get the following:
performance:  60.0 ticks per second for 1.0 seconds
performance (waypoints):  60.0 ticks per second for 1.0 seconds

Also, notice that these queries are not sent to the simulator, these are computed in the client itself, so synchronizing with the server is pointless if you are benchmarking the Waypoint API. In fact, you can create a script that does not connect to the simulator, and just loads an OpenDRIVE file to make all of these available Waypoint queries to it, which is very useful to make all sorts of utilities. If you need some examples, I can share here some tools I made.
Finally, let me recommend you to store an initial settings state when working with sync, so when the script is done you can set the simulator to async again so it won't get stuck.
...

init_settings = world.get_settings()
settings = world.get_settings()
settings.fixed_delta_seconds = 0.05
settings.synchronous_mode = True

...

world.apply_settings(init_settings)
world.tick()

Hope this helps, cheers!

Let me ping @sergi-e so this knowledge can be added to our documentation in carla.World.get_map() and people don't get confused about this. Thanks for your report.

@marcgpuig @sergi-e Thanks very much, has this been added to the doc?

I don't know if it's relevant, but when using World objet and some other function that need waypoints, don't use the call carla.get_map().get_wapoint(). Create a variable map and use map.get_waypoint()
It's a lot faster and helpful.
Cheers!


3.5.22 - pactVerify is not updating the "Last Verify" status in PACT Broker

logs.txt
build.zip
Am using gradle 4.4 and am trying to publish the verification results in PACT broker. Attached is my build.gradle / error logs:
While am able to publish the pact files in the broker and able to see the dependency graphs, 'Last Verified' shows blank after running the pactVerify method. I saw some documentation around 'pact.verifier.publishResults=true' and tried to pass as gradle parameter, but I got an error message saying:
FAILURE: Build failed with an exception.
What went wrong: Your project is misconfigured, was expecting a 'pact' configuration in the build, but got a String with value '' instead. Make sure there is no property that is overriding 'pact'.
the gradle command I run is:
  ./gradlew test pactPublish
  ./gradlew pactVerify -Ppact.verifier.publishResults=true

Please let me know what am I missing, the pact.verifier.publishResults is not accepted

This is a duplicate of #738. Can you check that issue to see if it resolves your problem.

When I run the command:
./gradlew pactVerify
The verification gets completed but the results are not uploaded to PactBroker.
Skipping publishing of verification results as it has been disabled (pact.verifier.publishResults is not 'true')
So I ran this command:
./gradlew pactVerify -Ppact.verifier.publishResults=true
Now, I get this error:
org.gradle.internal.exceptions.LocationAwareException: Your project is misconfigured, was expecting a 'pact' configuration in the build, but got a String with value '' instead. Make sure there is no property that is overriding 'pact'.]
I had checked issue #738 and added project.version="2.0.1" in the Provider properties in build.gradle but it didn't resolve.
Also, I see a similar issue logged in the issue# 254

The issue was due to invalid build.gradle file:
Per comments by Ronald in StackOverflow:
The first thing is your Gradle config is invalid. There should only be one pact block. You have two. Remove the inner one with the publish block in it (but leave the publish block :-D).
Resolution: Changed it to one pact block and now the results are published to the broker!


resource-graph query with count no longer working as expected

Extension name (the extension in question)
resource-graph 2.1.0 , last known version to work 1.1.0
$ az version
{
  "azure-cli": "2.30.0",
  "azure-cli-core": "2.30.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {
    "resource-graph": "2.1.0",
    "ssh": "0.1.8"
  }

Description of issue (in as much detail as possible)
Version 2.1.0 - not working properly:
$ az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count" -o tsv
1       1       None    1

$ az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count"
{
  "count": 1,
  "data": [
    {
      "Count": 1
    }
  ],
  "skip_token": null,
  "total_records": 1
}

Working version 1.1.0

$ az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count"
[
  {
    "Count": 1
  }
]

$ az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count" -o tsv
1

I would expect count to show (especially in tsv output), just a "1" in this case for a single record.

route to service team

Workaround:
az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count" --query '{count:count}' -o tsv

Oh I think this is a little different, the output of az graph query has changed.
It used to be a list of objects, now it's an object that includes the previous output as object under the data key. So the general workaround is not what I previously wrote but:
az graph query -q "project id, name, type | where type =~ 'Microsoft.Compute/virtualMachines' and name =~ 'hostname' | count" --query 'data'

@Klaas- Are you still experiencing this issue?

@dhu5432 yes
the results still show like:
{
  "count": 1,
  "data": [
    {
      "Count": 1
    }
  ],
  "skip_token": null,
  "total_records": 1
}

I am not sure if that is intended or not. But I can say it was different in 1.1.0 and is still like that with 2.1.0
Now for all my az-cli queries I just use --query 'data' because that is usually what I actually want :)

@Klaas- Confirmed with the team that this change in output is intended. Our older versions the CLI did not conform to standard output


Is there plan to support PostGIS?

Do you mean serving Vector Tiles (using ST_AsMVTGeom and ST_AsMVT functions) from PostGIS database source?

😀 yes .

😀 yes .

Well, it looks like interesting feature, but with several limitations:

serving vector (.mvt) tiles only through xyz endpoint
need separate Web client (Leaflet + Tangram, Mapbox GL or OpenLayers). Currently testing it in latest QGIS 3.22.4
I will do some minimal implementation and make a further decision

Basic implementation added in ecbca45191b1a3fdc069e565020f7a79889ca71a


Fixes #21 by improving lifecycle handling.

Fixes #21.
I'm not a futures-rs guru although I have built a few example tokio apps so please tell me if you think this is wrong.

Without this patch, event on closed streams don't get properly drained.

I've fixed logic error in 87ddb51228c2ba3fef1f403181f8ae71ffe2dab5. Please reopen the issue if problem persists.


When uploading segmented profiles the api key parameter doesn't override env api key value

Description
If you specify an api key in the whylab's writer as an override for an env variable set api key, the parameter should take precedence but it doesn't. This is specific to uploading segmented profiles.
results.writer('whylabs').option(api_key=self.api_key).option(org_id=self.org_id).write(dataset_id=self.dataset_id)

This is still a problem in whylogs 1.1.14


Small edits (section 2.6)

While reading 2.6. Calculating indirect lighting with radiance cascades :
Added "this" and "the" where they seemed missing (line 457 & 459), making the sentences read more smoothly for me.
Removed out of place ' character on line 457.
"probes' texels" -> "probes texels"
Correct me here if this was intentional, it looked out of place to me.

Btw, just so you know, I don't know how to compile the PDF.

"Probes' texels" == texels that belong to probes (multiple)
"Probes texels" == multiple probes, multiple texels, not sure how they are connected
So this is intentional (unless I'm doing something wrong).
English is not my first language, so I constantly struggle with articles. Whenever you see "a" or "the" out of place/missing, feel free to correct, because that's almost always a mistake on my side.

English isn't my first language either, I had never seen ' used like this before.
Hence my confusion, it has now been reverted.

:D


Building with custom cuda/cudnn paths

Compiling with custom paths to CUDA/CUDNN currently (commit a6a8107) does not work, since tensorflow can't find the paths as described. This is seemingly because the tensorflow build flags CUDA_TOOLKIT_PATH and CUDNN_INSTALL_PATH are marked as deprecated, but currently don't work at all. I was able to circumvent this by putting, in build.py:write_bazelrc,
    tf_cuda_paths = ','.join(filter(None, (cuda_toolkit_path, cudnn_install_path)))
    if tf_cuda_paths:
      f.write("build --action_env TF_CUDA_PATHS=\"{tf_cuda_paths}\"\n"
              .format(tf_cuda_paths=tf_cuda_paths))

which gives the intended behavior. Sorry for not submitting this as a proper PR. I can if requested, but I'm tired and it's my EOD :)

@hawkinsp  should we add this?

this can be closed by this change


ja: Make docs/tasks/configure-pod-container/assign-memory-resource.md follow v1.18 of the original text

This is a Feature Request

What would you like to be added
Update docs/tasks/configure-pod-container/assign-memory-resource.md to follow v1.18 of the original (English) text.
Why is this needed
content/ja/docs/tasks/configure-pod-container/assign-memory-resource.md is outdated.
Comments
/language ja
/good-first-issue
File to update
https://github.com/kubernetes/website/blob/dev-1.18-ja.1/content/ja/docs/tasks/configure-pod-container/assign-memory-resource.md
Original
https://github.com/kubernetes/website/blob/fb6364d/content/en/docs/tasks/configure-pod-container/assign-memory-resource.md
diff between translated and v1.18
https://gist.github.com/6b62df6f2281796218cbdb532df2ff82
Note
Currently, we use dev-1.18-ja.1 branch. Please open a PR targeting the branch.
ref
https://kubernetes.io/ja/docs/contribute/localization/
If you have a question, feel free to ask us at slack.k8s.io #kubernetes-docs-ja channel

/assign

/close


Consider python specific options via --pip-args

Contributor checklist

[ ] Provided the tests for the changes.
[ ] Assure PR title is short, clear, and good to be included in the user-oriented changelog

Maintainer checklist

[ ] Assure one of these labels is present: backwards incompatible, feature, enhancement, deprecation, bug, dependency, docs or skip-changelog as they determine changelog listing.
[ ] Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

This allows target specific python version:
$ echo six | pip-compile - -qo- --no-header --no-annotate
six==1.16.0

$ echo six | pip-compile - -qo- --no-header --no-annotate --pip-args='--python-version=3.1.0'
six==1.11.0

cc: @mitsuhiko

Looks good, but this will need a test.

@atugushev This would need merging for the feature worked on in #1998. Could you add a test?

@chrysle I'm inclined to close this, as is may not work as expected.

@atugushev would love to know more about what you don't think would work as expected. I was looking to build upon this to enable the correct default behaviour of pip-tools when installed by pipx or as a system package etc.

My initial intent was to target a specific Python interpreter. I thought --python-version was the solution. However, it is only used for wheel and "Requires-Python" compatibility checks, as stated in the documentation:
$ pip install --help
...
  --python-version <python_version>
                              The Python interpreter version to use for wheel and "Requires-Python"
                              compatibility checks. Defaults to a version derived from the running
                              interpreter. The version can be specified using up to three dot-
                              separated integers (e.g. "3" for 3.0.0, "3.7" for 3.7.0, or "3.7.3").
                              A major-minor version can also be given as a string without dots (e.g.
                              "37" for 3.7.0).

I know there is a --python <python> option, however it runs pip in a subprocess which doesn't work well with the pip-tools resolver.

It sounds like this approach might be ruled out for the purposes of #1998 then. But just for my own curiosity and perhaps to help others look for this:
What difference is there in practice between targeting a specific interpreter vs specifying --python-version?
What is the problem with pip-tools and --python? Could pip-tools be changed to work better with this option?

What is the problem with pip-tools and --python? Could pip-tools be changed to work better with this option?

I think @atugushev refers to the problem that we too heavily rely on pip's internals; it doesn't help us to pass the Python option to pip, as we create a command representation manually via the corresponding InstallCommand only to utilize it to parse and return the options to us, and then invoke the resolution process manually – which means our setting doesn't have any impact on the actual resolution result. In order to benefit from the option, we would instead need to run pip and parse its results, as done for pip-sync. There is an open issue for that (#1654) but actually decoupling would require huge changes; I can look into it, but won't promise anything, especially since activity here has been largely reduced by most maintainers and uv is likely to kick us totally out of business (no hard feelings).


issue with downloading assets

running ai-models --download-assets panguweather breaks during the download with
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(326220731 bytes read, 855490456 more expected)', IncompleteRead(326220731 bytes read, 855490456 more expected))

I also encountered this problem, how did you solve it


Add missing templates to polls

@codiebeulaine ready for review

just one small nit picky thing, otherwise 👍


2024/05/09: Jenkins regular patching cycle - update to 2.440.3

Process to follow: https://github.com/adoptium/infrastructure/blob/master/README.md#jenkins
Current version: 2.440.1
New version: 2.440.3
Jenkins event calendar
Previous patching issue: https://github.com/adoptium/infrastructure/issues/3376
Notes:

Part of general jenkins maintenance

Noting that in the restart I did for https://github.com/adoptium/infrastructure/issues/3552 there were still quite a lot of exceptions in the log during startup despite it mostly running clean during normal operations with the work that's been done under https://github.com/adoptium/infrastructure/issues/3514. We may wish to look at some of these a little more closely during the maintenance outage to see if any of them can be cleared up.
As a point of reference, the restart cycle is currently around five minutes.

Note to self - I was recommended the --sessionEviction parameter alongside sessionTimeout which may reduce the amount of times you have to refresh during the day. sessionEviction is an "idle timeout" so if you're not actively using jenkins it will affect you. I believe it defaults to 30 minutes (less than most meetings ;-) ) so we should look at an increase to 12 hours with --sessionEviction=43200 (126060) (or maybe a little less? 14400 would be four hours)
Note that we currently have --sessionTimeout=720 in /etc/default/jenkins which sets the login validity to 12 hours but that is separate from the idle one which can kick you out earlier. Also, confusingly the sessionEviction parameter is in seconds, not minutes so the value is not the same.

Plugins with breaking changes:

https://plugins.jenkins.io/scoring-load-balancer/releases/
https://plugins.jenkins.io/slack/releases/ Two new scopes are required when uploading files: and no info on the update from 25 minutes ago

Other notes:

https://plugins.jenkins.io/ssh-credentials/releases/ has Remove usage of obsolete trilead-putty key ([#200](https://github.com/jenkinsci/ssh-credentials-plugin/issues/200)) [@olamy](https://github.com/olamy)
https://plugins.jenkins.io/thinBackup/releases/ The config filename changed (from thinBackup.xml to org.jvnet.hudson.plugins.thinbackup.ThinBackupPluginImpl.xml) and will be automatically converted after the first start with the new version. The new name complies with the newer naming convention, which was automatically adjusted because of the internal renovation. More details can be found: [#125](https://github.com/jenkinsci/thin-backup-plugin/pull/125)
https://plugins.jenkins.io/ssh-agent/releases/ Fail the entire build when a requested credential cannot be found ([#144](https://github.com/jenkinsci/ssh-agent-plugin/issues/144)) [@nattofriends](https://github.com/nattofriends)
https://plugins.jenkins.io/report-jtreg/releases/ (No info on latest update, but it was 2 months ago
https://plugins.jenkins.io/jclouds-jenkins/releases/ (No info on updates)
https://plugins.jenkins.io/build-name-setter/releases/ (No info on updates)

Messages of note in the logs:

2024-05-09 08:35:31.342+0000 [id=54]	INFO	jenkins.model.RunIdMigrator#migrate: Migrating build records in /home/jenkins/.jenkins/jobs/Test_openjdk17_j9_sanity.functional_x86_64_windows_xl/builds
2024-05-09 08:35:37.965+0000 [id=56]	WARNING	o.j.p.m.AuthorizationContainer#add: Processing a permission assignment in the legacy format (without explicit TYPE prefix): hudson.model.Run.Update:AdoptOpenJDK*build-triage
https://plugins.jenkins.io/build-name-setter/releases/
java.io.FileNotFoundException: /home/jenkins/.jenkins/jobs/build-scripts/jobs/evaluation-openjdk21-pipeline/builds/125/program.dat (No such file or directory)
java.io.FileNotFoundException: /home/jenkins/.jenkins/jobs/build-scripts/jobs/openjdk21-pipeline/builds/276/program.dat (No such file or directory)
2024-05-09 08:38:36.100+0000 [id=62]	WARNING	o.j.p.w.cps.CpsStepContext$2#onFailure: Failed to proceed after CpsStepContext[177:build]:Owner[build-scripts/openjdk11-pipeline/2698:build-scripts/openjdk11-pipeline #2698]
java.io.FileNotFoundException: /home/jenkins/.jenkins/jobs/build-scripts/jobs/openjdk11-pipeline/builds/2698/program.dat (No such file or directory)
2024-05-09 08:41:55.894+0000 [id=104]	WARNING	o.j.p.w.cps.CpsStepContext$2#onFailure: Failed to proceed after CpsStepContext[302:build]:Owner[build-scripts/jobs/jdk/jdk-windows-x64-temurin/345:build-scripts/jobs/jdk/jdk-windows-x64-temurin #345]

Second restart to update the jenkins version was at 0843UTC
Third restart to pick up --sessionEviction parameter
Noting that after the second restart (warm restart by jenkins itself) we had these messages in the log:
2024-05-09 08:46:19.007+0000 [id=67]    SEVERE  h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (SyncQueueListener/67) died unexpectedly due to an uncaught exception. This may leave your server corrupted and usually indicates a software bug.
java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
We have NOT updated the following plugins due to them still being listed as incompatible:

SSH Credentials (322.v124df57ed808) which prevents the following from being updated:

Config File Provider
Credentials Binding
Git
Mina SSHD API :: Core

ThinBackup 2.0 (Will likely be ok on the next update - it will do a one of migration of the configuration
Slack Notification (Held off due to a potential incompatibility but only when files are uploaded which is not a piece of functionality that we use as far as I'm aware. It has had a few updates in the last couple of days so I'd rather hold off on that one until it has stabilised.

The SSH credentials thing may have been introduced purely to force people to verify that they have looked at the notes about PuTTy keys which should not affect us so we may be able to push that update through without problems. We can look at that in the next cycle.
The following jobs were stopped as they were preventing jenkins from doing it's own restarts (likely because tagged pipelines were in progres) - I will re-iniitate them:

https://ci.adoptium.net/job/build-scripts/job/utils/job/pipeline_jobs_generator_jdk17u/894/
https://ci.adoptium.net/job/build-scripts/job/utils/job/pipeline_jobs_generator_jdk11u/788/
https://ci.adoptium.net/job/build-scripts/job/utils/job/pipeline_jobs_generator_jdk21u/193/

I'm going to close this off on the basis we'll do the next set of updates next month. I will note that there were a lot of exceptions on startup which it would be good to investigate and remediate if possible at some point.