float_format in .to_string can be str

Describe the bug
The change in #721 broke this for mypy. Although the current docs say "one-parameter function, optional, default None", you are allowed to pass a string that specifies the format like in .to_csv.
To Reproduce
These usages all work with both frame and series.
# t.py
import pandas as pd

df = pd.DataFrame({"a": [0.1, 1.0, 3.14]})

print(df.to_string(float_format="%.3g"))
print(df.to_string(float_format="{:.3g}".format))
print(df.to_string(float_format=lambda x: f"{x:.3e}"))
print(df.to_string(float_format=pd.io.formats.format.EngFormatter(3, True)))

print(df.a.to_string(float_format="%.3g"))
print(df.a.to_string(float_format="{:.3g}".format))
print(df.a.to_string(float_format=lambda x: f"{x:.3e}"))
print(df.a.to_string(float_format=pd.io.formats.format.EngFormatter(3, True)))

> mypy t.py
t.py:5: error: No overload variant of "to_string" of "DataFrame" matches argument type "str"  [call-overload]
t.py:5: note: Possible overload variants:
t.py:5: note:     def [HashableT1 <: Hashable, HashableT2 <: Hashable] to_string(self, buf: Union[str, PathLike[str], WriteBuffer[str]], columns: Union[List[HashableT1], Index, Series[Any], None] = ..., col_space: Union[int, List[int], Dict[HashableT2, int], None] = ..., header: Union[bool, List[str], Tuple[str, ...]] = ..., index: bool = ..., na_rep: str = ..., formatters: Union[List[Callable[..., Any]], Tuple[Callable[..., Any], ...], Mapping[Union[str, int], Callable[..., Any]], None] = ..., float_format: Optional[Callable[[float], str]] = ..., sparsify: Optional[bool] = ..., index_names: bool = ..., justify: Optional[str] = ..., max_rows: Optional[int] = ..., max_cols: Optional[int] = ..., show_dimensions: bool = ..., decimal: str = ..., line_width: Optional[int] = ..., min_rows: Optional[int] = ..., max_colwidth: Optional[int] = ..., encoding: Optional[str] = ...) -> None
t.py:5: note:     def [HashableT <: Hashable] to_string(self, buf: None = ..., columns: Union[List[HashableT], Index, Series[Any], None] = ..., col_space: Union[int, List[int], Dict[Hashable, int], None] = ..., header: Union[bool, Sequence[str]] = ..., index: bool = ..., na_rep: str = ..., formatters: Union[List[Callable[..., Any]], Tuple[Callable[..., Any], ...], Mapping[Union[str, int], Callable[..., Any]], None] = ..., float_format: Optional[Callable[[float], str]] = ..., sparsify: Optional[bool] = ..., index_names: bool = ..., justify: Optional[str] = ..., max_rows: Optional[int] = ..., max_cols: Optional[int] = ..., show_dimensions: bool = ..., decimal: str = ..., line_width: Optional[int] = ..., min_rows: Optional[int] = ..., max_colwidth: Optional[int] = ..., encoding: Optional[str] = ...) -> str
t.py:10: error: No overload variant of "to_string" of "Series" matches argument type "str"  [call-overload]
t.py:10: note: Possible overload variants:
t.py:10: note:     def to_string(self, buf: Union[str, PathLike[str], WriteBuffer[str]], na_rep: str = ..., float_format: Callable[[float], str] = ..., header: bool = ..., index: bool = ..., length: bool = ..., dtype: bool = ..., name: bool = ..., max_rows: Optional[int] = ..., min_rows: Optional[int] = ...) -> None
t.py:10: note:     def to_string(self, buf: None = ..., na_rep: str = ..., float_format: Callable[[float], str] = ..., header: bool = ..., index: bool = ..., length: bool = ..., dtype: bool = ..., name: bool = ..., max_rows: Optional[int] = ..., min_rows: Optional[int] = ...) -> str
Found 2 errors in 1 file (checked 1 source file)

Please complete the following information:

OS: [e.g. Windows, Linux, MacOS] Windows
OS Version [e.g. 22] 10
python version 3.10.11
version of type checker mypy 1.3.0
version of installed pandas-stubs <IP_ADDRESS>605
pandas 2.0.2

Additional context
Maybe FloatFormatType can be used (again) but could be updated to be more specific about the callable (Callable[[float], str]).
And perhaps the pandas docs should be updated? Unless support for passing format string was supposed to have been removed?

@twoertwein can you take a look at this?

And perhaps the pandas docs should be updated? Unless support for passing format string was supposed to have been removed?

In the past, it apparently did not work. Since it works now, it probably is intended to pass formatting strings. Do you mind opening an issue at pandas to clarify the intend/update the docs?

In the past, it apparently did not work.

Issue that seems related: https://github.com/pandas-dev/pandas/issues/9448

It still doesn't work for extension dtypes.
pd.Series([1.1, 2.2, 3.3]).to_string(float_format="%.3e")  # works
pd.Series([1.1, 2.2, 3.3]).convert_dtypes().to_string(float_format="%.3e")  # `TypeError: 'str' object is not callable`

Thank you, @zmoon ! In that case, I would be inclined to not add str to the annotations.


fix typo: gater -> gather

Proposed changes
fix typo: gater -> gather
Checklist
Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING document
[x] I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the necessary documentation (if needed)

Test failure, but it seems to be unrelated to this change:
ERROR: test_array_pickle (test_array.TestArray)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/circleci/project/python/tests/test_array.py", line 848, in test_array_pickle
    pickle.dumps(x)
RuntimeError: nanobind::detail::ndarray_wrap(): could not convert ndarray to NumPy array: ValueError: Unable to avoid copy while creating an array as requested.

Fixed the pickle test in #1221 so once that's in I'll rebase this and merge it.

@davidkoski can you rebase on main. The tests should clear now.

Tried to rebase but looks like I don't have permission on @davidkoski's branch


docs: Fix some typos and wording issues.

Just what it says on the tin.
EDIT: CI seems to be having an issue; it's not running here. You can see the status of the CI run at my branch. Also all the changes are to documentation anyway. :smile:

This is great, merged, thanks @cyphase!
Of course, CI can fail from documentation changes due to broken links or lint checks, but that is indeed relatively uncommon, especially for a wording change like this that doesn't adjust any links :)


Conflict with easymotion  https://github.com/easymotion/vim-easymotion

Is this coc-jedi-specific? Or is this a general coc conflict?

@androidfans confirmed that this is an issue with coc.nvim. Please refer to this issue for potential resolutions: https://github.com/neoclide/coc.nvim/issues/110


THRIFT-3589 Pass references to field names in constructor through get_field_name

Currently we are incorrectly handling fields that have default values and uppercase names, like ID = -1
@stevenosborne-wf
@ericklaus-wf
@tylertreat-wf
https://issues.apache.org/jira/browse/THRIFT-3589

+1


CMake Error in Tetragrama/src/CMakeLists.txt

Hi,

git clone repo
git submodule init
git submodule update --recursive --force --remote
mkdir build
cd build
cmake ..

~/D/R/build (develop)> cmake ..
-- {fmt} version: 11.0.1
-- Build type: Release
-- Including Wayland support
-- Including X11 support
-- Documentation generation requires Doxygen 1.9.8 or later
-- Build spdlog: 1.14.1
-- Build type: Release
-- GLM: Version 1.0.2
-- GLM: Disable -Wc++98-compat warnings
-- GLM: Build with C++ features auto detection
-- Shared libraries disabled
-- Looking for ZLIB...
-- Checking for module 'zzip-zlib-config'
--   Package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.a;debug;/usr/lib/libz.a
-- tinyusdz disabled
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IQM IRR LWO LWS M3D MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
-- Disabled importer formats: USD
-- Enabled exporter formats: OBJ OPENGEX PLY 3DS ASSBIN ASSXML M3D COLLADA FBX STL X X3D GLTF 3MF PBRT ASSJSON STEP
-- Disabled exporter formats:
-- Treating all warnings as errors (for assimp library only)
Skipping symbol exports test for SPIRV-Tools-opt
Skipping symbol exports test for SPIRV-Tools-reduce
Skipping symbol exports test for SPIRV-Tools-link
Skipping symbol exports test for SPIRV-Tools-lint
Skipping symbol exports test for SPIRV-Tools-diff
Skipping symbol exports test for SPIRV-Tools-shared
Skipping symbol exports test for SPIRV-Tools-static
-- Did not find googletest, tests will not be built. To enable tests place googletest in '<spirv-dir>/external/googletest'.
-- optimizer enabled
-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- SPIRV-Cross: Git hash: vulkan-sdk-1.3.283.0-50-g68d40111
SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
CMake Warning at __externals/Vulkan-Loader/CMakeLists.txt:222 (message):
  Using non-secure environmental lookups.  This loader will not properly
  disable environent variables when run with elevated permissions.

-- Configuring done (0.9s)
CMake Error in Tetragrama/src/CMakeLists.txt:
  Imported target "imported::zEngineLib" includes non-existent path

    "/home/maxfx/Documents/RendererEngine/__externals/Vulkan-Headers/build/install/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Hi @Martinfx
the project uses has its own script for building.
I'll invite you to follow the Readme -> Building Section here:
https://github.com/JeanPhilippeKernel/RendererEngine?tab=readme-ov-file#setup-window-machine
https://github.com/JeanPhilippeKernel/RendererEngine?tab=readme-ov-file#building
From your log, I can see that you are trying to run it on a Unix sys - like mentioned on the readme, those platforms are out-dated and need particular attention/changes to for the engine to run on it


s3fs and docker image

Issue Summary
I am attempting to run the (latest) docker ghost image using s3fs to access a bucket as a docker volume.  My container starts and dies with the message...
chown: changing ownership of '/var/lib/ghost': Input/output error
my run command looks like this...
docker run --name blog -d -p 80:2368 -v /opt/ghost:/var/lib/ghost ghost
where /opt/ghost is an s3fs mounted volume on the host.  I think this issue is related to https://github.com/docker-library/ghost/issues/19 but I don't see a way from there to resolve.  my mounted volume already has 1000 as user/group.
Also interesting to note; ghost appeared to create files in the volume on first run just fine, but crashed just after that.

Hey @aarongundel Sorry to hear you are having trouble. Can you please swing by our slack channel and ask for help there?

Also please be aware the docker image is not maintained by us, but by docker 😉


No way to stick to position initially decided by the flip modifier

https://codesandbox.io/s/yj0l1w5yrj
I want popper flip functionality to decide initial placement and than want to turn off the flip automation.  In other words, want it to stick to that initial placement regardless of how I scroll.
Any way to do this easily ?

Opened for react-popper : https://github.com/FezVrasta/react-popper/issues/216

Hhh
Sent from Yahoo Mail on Android
On Wed, Sep 19, 2018 at 12:49 AM<EMAIL_ADDRESS>wrote:
Closed #685.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Added formatting

This project currently lacks formatting, but a single save action with Prettier can bring about significant changes.
This pull request accomplishes exactly that. Additionally, it adds an .editorconfig file to ensure consistent configuration across editors. Furthermore, it formats two instances of multiple line returns to a single line return, as they do not return any value.

Thanks for the PR, but I prefer the formatting as it was.


Connection Close issue while for long data load in ldap

We are getting an OpenLDAP connection lose issue when we try to load / store large amount data (more than 35k characters of string format) . Please use below mentioned connection management logs details,
Logs from LDAP logger level Connection Management:
5df4c06f conn=1022 op=2457 SEARCH RESULT tag=101 err=32 nentries=0 text=
5df4c06f conn=1022 op=2458 ADD dn="cn=com_cordys_cws_runtime_types_teamdevelopment_SCMAdapter.SCMAdapterBinding,cn=Cordys CWS Bootstrap Helper,cn=cordys,cn=defaultInst,o=trialorg.local"
5df4c06f conn=1022 op=2458 RESULT tag=105 err=0 text=
5df4c06f conn=1022 op=2459 SRCH base="cn=determineIncorporateChangeSet,cn=defaultInst,o=trialorg.local" scope=0 deref=0 filter="(objectClass=)"
5df4c06f conn=1022 op=2459 SRCH attr= entryUUID
5df4c06f conn=1022 op=2459 SEARCH RESULT tag=101 err=32 nentries=0 text=
5df4c06f conn=1022 fd=18 closed (connection lost)
Log details from Client Application:
log4j:throwableLDAPException: Connection lost waiting for results from docker_container.local:636 (91) Connect Error
java.io.EOFException: BERDecoder: decode: EOF in Identifier
        at com.novell.ldap.Connection$ReaderThread.run(Connection.java:1381)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.EOFException: BERDecoder: decode: EOF in Identifier
        at com.novell.ldap.asn1.ASN1Identifier.<init>(ASN1Identifier.java:132)
        at com.novell.ldap.Connection$ReaderThread.run(Connection.java:1269)
        ... 1 more
</log4j:throwable>
can any one please let me know.

@pasumarthivijaykumar not sure what you really meant by load/store but I have interpreted it as you are inserting 35k of data into LDAP using ldapadd or something like it
However, err=32 means 'No such object' which means that you potentially have some errors in the data you are trying to feed into LDAP and may be because of this error, your uploading client cuts the connection and therefore the server part gets 'connection lost'.
My 2 cents

@obourdon thanks for the details. Apparently, the issue is CipherSuite which is mentioned in https://github.com/osixia/docker-openldap/blob/stable/example/docker-compose.yml
The ciphersuite is not enough for real world scenarios.
When i used default ciphersuite from openLDAP, everything is fine.


[Work In Progress] Gestalt integration

Important: This PR contains significant amounts of whitespace-only changes caused by IntelliJ autoformatting. Append ?w=1 to the end of the diff view URL to display non-whitespace changes only.
Contains
A work-in progress, proof-of-concept integration of Destination Sol with gestalt-asset-core, as initially suggested by this forum post.
Features and TODO list

[X] A ClasspathModule providing access to core functionality and resources, with required metadata being stored in a module.info file and parsed using a specialized ModuleManager class.

[X] A generalized AssetHelper class registering asset types within a ModuleEnvironment containing the core ClasspathModule (and, potentially, external ArchiveModules), as well as providing generalized wrappers to simple asset operations (get asset of type, get all assets of type).

[X] OggSound asset type (including implementations for AssetData, Asset, AbstractAssetFileFormat, AbstractAssetAlterationFileFormat). Acts as a data wrapper for:

a gdx.audio.Sound object - obtained from a FileHandle generated by reconstructing the path of the input asset file in OggSoundFileFormat;
configuration parameters fetched from a metadata file (loopTime / baseVolume);
a parameter programmatically defined configuration parameter (basePitch).

[x] Asset-based sound manager class - a refactored version of SoundManager that utilises the OggSound class to implement cleaner sound fetching and improved playback code.

[x] A refactor for the game to support said manager class

[ ] Texture asset type and file format. Should read the game's textures and metadata atlas files (with sol.atlas being split into different files corresponding to each texture file).

[ ] Asset-based texture manager class - a refactored version of AtlasTextureProvider.

[ ] Other asset types - complete list up for discussion.

[ ] Test the integration's compatibility with Android and GWT facades.

How to test
Launch the game from source! An asset fetching test in SolApplication should output a list of available OggSound and OggMusic Urns - verify this.
The sound system is now fully integrated into the game, with all the sounds being fetched from an OggSoundManager, so simply start a new game and play around with things - the sounds currently being played will be logged to the console.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/25/
Hooray Jenkins reported success with all tests good!

Seems to work beautifully as far as I can tell! I get the asset logging on startup (which takes a little longer) and everything in-game appears to work.
I did run via Gradle as the Android setup clashes a bit (current version level expects Gradle 2.2) and I didn't want to reset all that to test.
Might be neat for @immortius to check out some Gestalt stuff functional in another game, I'm sure @Rulasmur will think it is all kinds of cool to see some motion toward Gestalt, and hi @SimonC4 long time no talk but I still spot you on Steam and figured you might be interested too :-)
Also, isn't this technically setting up both Gestalt asset and module so we could do Terasology style modding? With a bunch more tweaking needed of course to have similar options to actually select modules and so on.

Hi @Cervator. Yes, I'm still interested and occasionally checking in. Just don't have much time available at the moment and my development setup isn't working at the moment. Maybe as winter approaches I'll have more time to get back into this.

@SimonC4 And we all know ... winter is coming ;-)
stares at April 24th in the distance

@Cervator: thanks for trying out the PR!
The performance loss is actually caused by a somewhat unusual scenario (a LOT of subsequent Gdx.audio.newSound calls in that setup method). This is unlikely to be a problem when the SoundManager is used, as that loads/will load singular sounds only when requested and caches them.
Modding support would definitely be a possibility - although beyond simply adapting Terasology's ArchiveModule loading setup it would probably require making the game all-around more appealing to modding (better API, new/better documentation) - might even call for a full refactor. "DestinationSolPrime"? :wink:
I'd look forward to June 19th - that's when penultimate episode awesomeness happens!

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/26/
Hooray Jenkins reported success with all tests good!

Yeah I figured the experimental nature might have been behind the slower startup :-)
Definitely agreed on more refactoring before we can reach Terasology-level modding. One step at a time and this seems like progress in any case. Dunno if it is easier to refactor in place or throw together a new project skeleton + re-attach the fun stuff.
Either option should be way easier than trying something like cleaning up Terasology's rendering though. So much less code here to worry about, so far :-)

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/27/
Hooray Jenkins reported success with all tests good!

The sound system is now partially integrated into the game! Sspecifically, all the sounds in the SpecialSounds class are now fetched from a new OggSoundManager - a rework of SoundManager that uses the gestalt asset class OggSound instead of SolSound.
To test it out, start a new game (which should be snappier now that I've removed the lengthy test in the main class) and try triggering some "special sounds" - here are some easy ones to test:

Collide with metal things and asteroids

Get set on fire (by colliding with metal things and asteroids)

Shoot metal things and asteroids

Use an ability, wait for it to recharge

Still good! I enjoy colliding with and being set on fire by metal things.
Hoping to grab some time this coming weekend trying to get set back up to where I can run from source on Android, see how v1.4.0 is working on there. Then if all is good we can release that and look at whatever is next. Do you see this being ready in the relatively near future, or still too experimental? :-)

Do you see this being ready in the relatively near future [...]

Yep - I expect to get sound management reworked by the end of the weekend (that's April 17th) and texture management around next weekend (April 24th) - the latter is a loose estimate as it's mostly a question of how hard is it to deprecate the existing asset management classes.
This mighr be enough to "release" the setup to an experimental branch, but I think a proper 2.0.0 release will require refactoring the game to some extent - IMO, recreating it with a new project skeleton is the best option here.

I guess one thing I'm interested in is any feedback you have around the
usage of gestalt - either in terms of areas the documentation could be
improved, or in terms of any rough edged in the classes themselves.
Also whether gestalt works at all under android.
On the "select a random sound" use case, you might consider something like
a SoundGroup asset, which is a Sound that plays one of a random selection
of contained sounds.

@immortius - thanks for taking a look at this!
Re: documentation feedback - one thing that could be improved is the example class family's Book and BookData. At a glance the former looks like a simple wrapper for the latter - the distinction between implementation-specific and implementation-agnostic might need to be made a little more obvious. Also, a paragraph about DisposalHook operations would be nice to have in the "Disposing Assets" section. HeadlessTexture in Terasology is a nice example that hooks up multiple disposal listeners - it can be adapted into a generalized sample class. Otherwise the documentation looks quite solid!
Re: gestalt feedback - didn't encounter anything particularly critical so far. One low-priority issue: the DisposalHook JavaDoc header appears to be unfinished.
Re: SoundGroup asset - are there any benefits to turning the current class into a gestalt asset? Since it's a collection of (loaded) assets, it may not work well as an asset itself, especially regarding loading/disposal.

Hmm, looks like I never updated the doco after introducing the disposal
hook system (which allows for disposal of assets after garbage collection).
On the SoundGroup, just a thought. If there is another system in place for
the same effect that is fine.I don't know the details of the existing
implementation.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/28/
Hooray Jenkins reported success with all tests good!

This might be enough to "release" the setup to an experimental branch, but I think a proper 2.0.0 release will require refactoring the game to some extent - IMO, recreating it with a new project skeleton is the best option here.

@rzats fun timing coincidence - posted a little thing in the forum :-)
http://forum.terasology.org/threads/future-libgdx-options.1534/
Regenerating would also get rid of #22 since the few changes of potential interest there could be worked into a refreshed project structure.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/30/
Hooray Jenkins reported success with all tests good!

Just for clarity, here's what the last three commits actually do:

Slightly modify the random OggSound container, OggSoundSet - it can now be used interchangeably with a single OggSound. (Both of them now implement a PlayableSound interface with a getOggSound() method: the implementation in OggSound returns this, whereas OggSoundSet returns a random sound from the given set.)
Rework gun sounds (as well as the gun config) to be fetched by OggSoundManager.
Add OggMusic* asset classes - similar to OggSound*, but containing a gdx.audio.Music instead of gdx.audio.Sound. They're also slimmer in general, not requiring a metadata parser or any configuration-related variables.
Remake MusicManager into OggMusicManager that fetches the list of music via gestalt. (I've also made it a member variable of SolApplication passed along to SolGame as opposed to a singleton class - in my opinion, this is an all-around cleaner solution.)

To test the changes:

build the game from source;
look at the console output for a list of music assets;
verify that game/menu music works;
verify that gun sounds work.

That said, I'm planning to fully replace SoundManager by OggSoundManager within a day or so, so it might make sense to wait until that point and then test fully reworked sound management! :notes:

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/31/
Hooray Jenkins reported success with all tests good!

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/32/
Hooray Jenkins reported success with all tests good!

The gestalt-based sound system is now fully integrated into the game, with all the sounds (and music) being fetched from an OggSoundManager. @SkySom: SoundManager has been promptly cast into a metaphorical pyre :fire:
To test the overall implementation, simply start a new game and play around with things - the sounds currently being played will be logged to the console.
Also, pinging @msteiger and @flo - some code reviews would be very appreciated!

Thanks for the hint, @rzats - I'd be happy to review this over the coming week, if that is soon enough. I was shocked at first by the 163 changed files by a single commit, but most of them seem to be renames.

@msteiger: the file count is indeed inflated by sound files being moved around, as well as config extension changes (*.txt → *.soundinfo) and simple integration changes (SoundManager method calls → OggSoundManager method calls).
The newly created classes are:

org.destinationsol.assets.audio.*
org.destinationsol.assets.AssetHelper
org.destinationsol.game.sound.OggSoundSet
org.destinationsol.game.sound.OggSoundManager
org.destinationsol.game.sound.OggMusicManager
org.destinationsol.ModuleManager

@rzats  sorry, for destination sol I am the wrong person. I am not a destination sol developer.

Looks good to me - my knowledge of DestSol internal is fairly limited though.
I'd recommend to integrate this PR asap and look into textures and other assets in a follow-up.

@msteiger: immediately merging into develop won't hurt, I suppose.
I'll fix the conflicts with #55 by the end of the day

We should release v1.4.0 first. It works on Android and this doesn't (yet) :-)

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/DestinationSolPRs/38/
Hooray Jenkins reported success with all tests good!

@Cervator: ...immediately merging to develop would hurt, then! :stuck_out_tongue:
This could always be merged into a third branch - although it may require creating a new PR as I don't think there's a way to get GitHub to change the target remote branch for an existing PR.
I've merged this with #93 either way.

Update! After sorting out some v1.4.0 stuff I've tested this out more properly. There was a Gradle/Android issue keeping the Android build from working at all even before this PR, fixed now :-)
Now I'm getting some more interesting errors rather than not getting into Android at all. Some may still relate to Gradle setup as I see the android plugin is deprecated in favor of com.android.application but even switching it leaves me with errors. One on building in IntelliJ seems like it may relate to Gestalt, not sure how serious but could be one of the problems we feared. Alternatively it may simply be due to Gestalt using lambdas, attempted to apply a retrolambdas thing and it may have changed the errror ... unsure, getting late. Here's the initial error:
Information:Using javac 1.8.0_45 to compile java sources
Information:7/17/2016 12:49 AM - Compilation completed with 30 errors and 21 warnings in 21s 705ms
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] com.android.dx.cf.iface.ParseException: InvokeDynamic not supported
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.cst.ConstantPoolParser.determineOffsets(ConstantPoolParser.java:226)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.cst.ConstantPoolParser.parse(ConstantPoolParser.java:132)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.cst.ConstantPoolParser.parseIfNecessary(ConstantPoolParser.java:124)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.cst.ConstantPoolParser.getPool(ConstantPoolParser.java:115)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:482)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.processClass(Main.java:665)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.access$600(Main.java:78)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.processOne(Main.java:596)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at com.android.dx.command.dexer.Main.run(Main.java:230)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at java.lang.reflect.Method.invoke(Method.java:497)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:188)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:336)
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] ...while preparsing cst 003a at offset 00000119
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] ...while parsing org/terasology/module/ResolutionAttempt.class
Error:Android Pre Dex: [gestalt-module-5.0.1.jar] 1 error; aborting
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] warning: Ignoring InnerClasses attribute for an anonymous inner class
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] (org.apache.maven.scm.util.ThreadSafeDateFormat$1) that doesn't come with an
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] associated EnclosingMethod attribute. This class was probably produced by a
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] compiler that did not target the modern .class file format. The recommended
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] solution is to recompile the class from source, using an up-to-date compiler
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] and without specifying any "-target" type options. The consequence of ignoring
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] this warning is that reflective operations on this class will incorrectly
Warning:Android Pre Dex: [maven-scm-api-1.4.jar] indicate that it is *not* an inner class.
Warning:Android Pre Dex: [dom4j-1.6.1.jar] warning: Ignoring InnerClasses attribute for an anonymous inner class
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.dom.DOMNodeHelper$1) that doesn't come with an
Warning:Android Pre Dex: [dom4j-1.6.1.jar] associated EnclosingMethod attribute. This class was probably produced by a
Warning:Android Pre Dex: [dom4j-1.6.1.jar] compiler that did not target the modern .class file format. The recommended
Warning:Android Pre Dex: [dom4j-1.6.1.jar] solution is to recompile the class from source, using an up-to-date compiler
Warning:Android Pre Dex: [dom4j-1.6.1.jar] and without specifying any "-target" type options. The consequence of ignoring
Warning:Android Pre Dex: [dom4j-1.6.1.jar] this warning is that reflective operations on this class will incorrectly
Warning:Android Pre Dex: [dom4j-1.6.1.jar] indicate that it is *not* an inner class.
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.io.DocumentInputSource$1) that doesn't come with an
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.rule.RuleManager$1) that doesn't come with an
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.swing.BranchTreeNode$1) that doesn't come with an
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.swing.LeafTreeNode$1) that doesn't come with an
Warning:Android Pre Dex: [dom4j-1.6.1.jar] (org.dom4j.xpath.DefaultXPath$1) that doesn't come with an

Another warning seems to be about commons-logging being a dependency yet there's a different version in use on Android. Maybe that can simply be excluded via Gradle config for the Android facade. Unsure if that's what results in the following error (and its amusing warning at the very end):
Information:7/17/2016 1:18 AM - Compilation completed with 33 errors and 0 warnings in 3s 525ms
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] trouble processing "javax/xml/parsers/DocumentBuilder.class":
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] Ill-advised or mistaken usage of a core class (java.* or javax.*)
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] when not building a core library.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] This is often due to inadvertently including a core library file
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] in your application's project, when using an IDE (such as
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] Eclipse). If you are sure you're not intentionally defining a
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] core class, then this is the most likely explanation of what's
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] going on.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] However, you might actually be trying to define a class in a core
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] namespace, the source of which you may have taken, for example,
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] from a non-Android virtual machine project. This will most
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] assuredly not work. At a minimum, it jeopardizes the
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] compatibility of your app with future versions of the platform.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] It is also often of questionable legality.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] If you really intend to build a core library -- which is only
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] appropriate as part of creating a full virtual machine
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] distribution, as opposed to compiling an application -- then use
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] the "--core-library" option to suppress this error message.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] If you go ahead and use "--core-library" but are in fact
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] building an application, then be forewarned that your application
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] will still fail to build or run, at some point. Please be
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] prepared for angry customers who find, for example, that your
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] application ceases to function once they upgrade their operating
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] system. You will be to blame for this problem.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] If you are legitimately using some code that happens to be in a
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] core package, then the easiest safe alternative you have is to
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] repackage that code. That is, move the classes in question into
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] your own package namespace. This means that they will never be in
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] conflict with core system classes. JarJar is a tool that may help
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] you in this endeavor. If you find that you cannot do this, then
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] that is an indication that the path you are on will ultimately
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] lead to pain, suffering, grief, and lamentation.
Error:Android Pre Dex: [xml-apis-1.0.b2.jar] 1 error; aborting

Running with gradlew android has produced a few different outcomes as well, including at first running the game flawlessly! Which then made me think that was too good to be true and yeah after uninstalling and trying clean I'm back to errors or warnings ;-)
Too late to continue further tonight, but leaving what I've got in a v2.0.0 branch.

More tweaks applied and progress made in Android land.

Commons logging issue resolved via dependency exclude
Duplicate file issue in META-INF due to Android packaging resolved
General Java 8 issues resolved without the retrolambdas thing, instead using the new Java 8 Android "Jack" compiler - so no more trouble with most Java 8 features in the main app (I noticed Reflections and some other stuff should work this way too!)

Outstanding issues at present

[ ] IntelliJ's Android setup isn't quite good enough anymore, I've switched to straight Gradle command line for now. I don't think some of the alternative compiler options are registered appropriately for IntelliJ
[ ] Still need to find a working setup to avoid dupe resources between android/assets/res and main/res. The traditional solution is to move the assets into the Android project but we currently avoid the Android setup entirely via Terasology style external facades. Moving assets to Android would make it a requirement to keep it present locally. I wonder if there isn't some exclude rule you can set in the Android config. There is a way to auto-copy in assets from the main project instead of manually copying them to the android/assets dir but that doesn't override the regular main/res dir being declared a resource and thus included.
[ ] Despite Java 8 features now being (mostly) OK in the main application the Jack compiler seemingly can't handle lambdas being in use in library projects like Gestalt :( I don't know if maybe there's a clever way to inject retrolambdas specifically to recompile the Gestalt dependency. The Jack issue is known with an update posted just a month and a half ago
[ ] Any actual functional issues with the game when it is actually running on Android

One more round done. Leaving some notes here before I forget, will then tweak the the latest round of code to get it online.
The good news: have officially launched Gestalt-based DS on an Android device! :D
Naturally it crashed immediately, but that was more or less expected!
Steps taken:

Excluded some more dependencies in the Android build where the expectation is that Android itself will provide a compatible replacement (at first this was just commons-logging but there appears to be at least one other thing)
Made a temporary Gestalt variant that included the retrolambda Gradle plugin since current Android seems able to handle lambdas in the primary project but not in libraries. That might be solved even before we have a chance to publish DS v2.0. The issue I linked above is still getting updates every few days.
Replaced three method references temporarily with plain old boring Java code in DS itself just for IntelliJ's sake - they compile fine via Gradle but there is probably something not hooked up right in IntelliJ yet (some validation that thinks lambdas are evil for Android) - thanks @rzats ! I'm still testing via IntelliJ, am not quite there yet with pure Gradle.

So the second and third item may be temporary just while we figure this out. We should be able to eventually use full Java 8 in both DS and libs no problem.
Anyway with all that in place I was able to launch on Android, hooray! The first interesting problem seems related to Gestalt attempting to load module.info from the classpath - but may be more about a Java version conflict over SimpleDateFormat. Maybe that's just from Gestalt/GSON trying to initialize supported formats? There aren't even any dates in that file, let alone any containing an X (issue seems to stem from Android's version of SimpleDateFormat being circa Java 6, not 7, which introduced the use of X as a pattern - I think)
The crash looks as follows:
08-09 17:03:28.342 30606-30655/com.miloshpetrov.sol2.android I/ModuleManager: Initializing ModuleManager, got the reader: java.io.InputStreamReader@89654a3
08-09 17:03:28.386 30606-30655/com.miloshpetrov.sol2.android E/AndroidRuntime: FATAL EXCEPTION: GLThread 42308
Process: com.miloshpetrov.sol2.android, PID: 30606
java.lang.IllegalArgumentException: Unknown pattern character 'X'
at java.text.SimpleDateFormat.validatePatternCharacter(SimpleDateFormat.java:314)
at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:303)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:356)
at com.google.gson.DefaultDateTypeAdapter.<init>(DefaultDateTypeAdapter.java:51)
at com.google.gson.GsonBuilder.addTypeAdaptersForDate(GsonBuilder.java:555)
at com.google.gson.GsonBuilder.create(GsonBuilder.java:543)
at org.terasology.module.ModuleMetadataJsonAdapter.read(ModuleMetadataJsonAdapter.java:141)
at org.destinationsol.ModuleManager.<init>(ModuleManager.java:49)
at org.destinationsol.SolApplication.create(SolApplication.java:79)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:243)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)

Hmm. The 'X' option was only added with Java 7, maybe it isn't in Android
java?

Hmm. The 'X' option was only added with Java 7, maybe it isn't in Android java?

Yep it is something like that. The version of SimpleDateFormat Android uses is Java 6 style. It is a weird mix of different version levels in places like that.
The Swagger link goes to example handling that figures out the running environment then considers different date formats based on that.
I'm not sure where we should attempt a fix / config tweak. Will get back for another round later but would appreciate any ideas :-)


Project Tutorial Proposal - Chirag Arora

Rick Roll your Friends using Twilio and Python - Beginner

Haha have to close this one unfortunately!


rcp: 0.9.0 -> 0.10.0

Description of changes
Update v0.10.0 (https://github.com/wykurz/rcp/releases/tag/v0.10.0)

Upgrade build dependencies
BREAKING: Remove the --read-buffer setting as it's no longer used
PERF: Use tokio::fs::copy for copying file data
-- By using tokio::fs::copy we are able to use the copy_file_range system call in Linux which dramatically speeds up the copies (at least 5-20x in our tests).
-- Note the tokio::io::copy(_buf) functions don't seem to be able to use this syscall reliably in our testing
PERF: Fix filegen to use much less memory
Fail with a better error message on non-file fs objects (e.g. socket)

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Could you mark it broken on aarch64-darwin as well?
https://hydra.nixos.org/build/260344724

RCP was bumped to a newer version by a bot, this PR is obsolete.


How to use mandatory proxy of /a/b to /x/y

I want to let path /a/b redirect to service /x/y. Does Kong already support this action?

I am not 100% of what you are asking - in Kong, paths are managed by Routes while Services usually refer to "hosts". Could you give us a more specific example of what you want?
In any case Kong does not have a plugin that suits your needs, you can try with a community plugin. For excample here's one redirect plugin from stone-payments:
https://github.com/stone-payments/kong-plugin-url-rewrite

I guess you mean to use: HTTP Location header with 301, 302, 303, 307, and 308 status codes?

What I described was a little confusing. Just like a request come from http://www.xxx.com/a/b, I want to send it to http://www.yyy.com/c/d.
Now I find Kong can send a request like /a/b/c to /b/c by stripping path, but it can't meet my requirement.

I guess you mean to use: HTTP Location header with 301, 302, 303, 307, and 308 status codes?
redirection: send response to client to go another place
rewriting: change the uri before processing any further (e.g. before routing for example)

No, just a proxy.  You can think that I want to anonymize real path, so I expose a virtual path to client. The real path is invisible to the user.


[META] Automate and document the release process for clients

This is a meta issue tracking automation of release process for all clients

[x] opensearch-go - https://github.com/opensearch-project/opensearch-go/issues/144
[x] opensearch-rs - https://github.com/opensearch-project/opensearch-rs/issues/63
[x] opensearch-py - https://github.com/opensearch-project/opensearch-py/issues/185
[x] opensearch-dsl-py - https://github.com/opensearch-project/opensearch-dsl-py/issues/67
[x] opensearch-php - https://github.com/opensearch-project/opensearch-php/issues/77
[x] opensearch-ruby - https://github.com/opensearch-project/opensearch-ruby/issues/96
[x] opensearch-js - https://github.com/opensearch-project/opensearch-js/issues/274
[x] opensearch-net - https://github.com/opensearch-project/opensearch-net/issues/79
[x] opensearch-java - https://github.com/opensearch-project/opensearch-java/issues/349

Done!


digestmod issue

Certipy v4.8.2 - by Oliver Lyak (ly4k)
[-] Got error: Missing required parameter 'digestmod'.
[-] Use -debug to print a stacktrace

Do you have stacktrace?

Ping @johnumorujo happy to help if you can provide more details, thanks.

@tedbot101 does this help? https://github.com/byt3bl33d3r/CrackMapExec/issues/380#issuecomment-626173555

@fgeek nope

I had the same error with a different tool and had to upgrade the ldap3 package to get it to work.
Version 2.5.1 produced the error. You can check your version with pip list | grep ldap3.
I ran the following command to upgrade, which installed 2.9.1, and it solved my problem.
pip install --upgrade ldap3


Dead link to deprecated.kt file in readme.md

there is the Deprecated.kt file
Link is dead, I suppose.

Ok Got it : https://github.com/SceneView/sceneview-android/blob/main/arsceneview/src/main/java/io/github/sceneview/ar/Deprecated.kt


Data migration after removing obsolete data classes

After removing obsolete dataclasses in PR #695 the data migration needs to be done. db migrate creates a large file that is not able to execute because of the data relationships and needs to be manually checked.
"The data migration is still a sizable task. Running flexmeasures db migrate generates a very large auto revision file (~200 lines) that needs to be checked manually. These predominantly deal with the downgrade.
There is also the offchance that the deleted tables contain user data that has not been migrated yet. This should only be possible in case data was added by circumventing our own classes (e.g. initializing an Asset has been leading to initialize a GenericAsset and a Sensor under the hood). However, I can't guarantee that simply removing the old tables wouldn't lead to some loss of data. Therefore, I suggest creating backups of the deleted tables.
Foreseeing this exact discussion, I had moved the database migration into the list of follow-up tasks to this PR (see task list above)."
Originally posted by @Flix6x in https://github.com/FlexMeasures/flexmeasures/issues/695#issuecomment-1645043890

We could make the upgrade command check whether the obsolete tables contain any data. If they do contain data, we warn the user about the potential loss of data and offer to automatically create a dump file. If they don't contain data, we can drop the obsolete tables.

Yes to the check, no to the automatic dump file creation.
They can do that, if there even is anyone in that need.

First step: Run flexmeasures db revision to understand what comes at us here. Do as a draft PR first, to discuss.

The correct command is flexmeasures db migrate, because revision only creates an empty revision file. Looking forward to provide some insights on the draft PR. I just ran flexmeasures db migrate myself and got to see we will drop the following tables:
Models previously used for devices

asset_type + 2 indices (asset_type_can_curtail_idx and asset_type_can_shift_idx)
asset
power + 2 indices (power_datetime_idx and power_sensor_id_idx)

Models previously used for markets

market_type
market
price + 2 indices (price_datetime_idx and price_sensor_id_idx)

Models previously used for weather sensors

weather_sensor_type
weather_sensor
weather + 2 indices (weather_datetime_idx and weather_sensor_id_idx)

Linked indices
FYI, the following indices are linked to sensor ids (i.e. pointing to a db model currently in use):

power_sensor_id_idx
price_sensor_id_idx
weather_sensor_id_idx

In theory, these could be used to check (perhaps through a checksum of sorts) whether old data had already been copied from the power, price and weather tables to the timed_belief table. However, I suspect those old tables to be empty in most cases. We could also just inform users, in case these old tables are not empty, to reach out to us if they are unsure about whether the data had already been copied.


add a spellchecker GitHub Action

I won't activate it right now as I still need to finalize the custom dictionary so we don't get a lot of typos right away, but I think it will be useful for typos we missed, but also to ensure we write certain words with the proper camel case.

I won't activate it right now as I still need to finalize the custom dictionary so we don't get a lot of typos right away, but I think it will be useful for typos we missed, but also to ensure we write certain words with the proper camel case.

This is a great addition


Make time formatter produce uniform decimals

By non-uniformly showing decimals (e.g. .500) only for some of the benchmarks, while omitting them for others, swift-benchmark makes it needlessly hard to visually compare times:
At a quick glance, is bar faster or slower than foo and/or baz?
running foo... done! (1722.98 ms)
running bar... done! (2296.11 ms)
running baz... done! (1617.17 ms)

name time            std        iterations
------------------------------------------
foo     426280194 ns ±   0.33 %          3
bar  78679670.500 ns ±   1.15 %         18
baz     404978073 ns ±   0.91 %          3

Glancing over these benchmarks one might easily come to the wrong impression that bar is several orders of magnitude slower than the others.
If the benchmark times were printed with uniform decimals instead, such a wrong interpretation would be rather unlikely:
foo 426280194.000 ns ±   0.33 %          3
bar  78679670.500 ns ±   1.15 %         18
baz 404978073.000 ns ±   0.91 %          3

While uniform decimals help in quickly recognizing relative differences the addition of thousands separators can further improve the recognizability of absolute values:
foo 426,280,194.000 ns ±   0.33 %        3
bar  78,679,670.500 ns ±   1.15 %       18
baz 404,978,073.000 ns ±   0.91 %        3

Swift's native string formatting however does not provide a way to add thousands separators, so this PR only implements the former.

Needs to be updated to resolve the conflicting changes in BenchmarkReporterTests.swift.

Resolved. 👍


Only evict if its not already settled

Related to https://github.com/GMOD/jbrowse-components/pull/1350

Codecov Report

Merging #10 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   86.20%   86.32%   +0.11%
==========================================
  Files           4        4
  Lines         116      117       +1
  Branches       29       30       +1
==========================================
+ Hits          100      101       +1
  Misses         16       16

Impacted Files
Coverage Δ

src/AbortablePromiseCache.ts
83.13% <100.00%> (+0.20%)
:arrow_up:

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 fbe155c...7754b0b. Read the comment docs.

merged and released in 1.4.0


Work on deploying the production version of the authorization API

Start by first deploying a docker version of the redis
deploy an admin password for the database on the production server
build the application version of the api and learn how to fire it up from there
possibly use kubernetes to deploy a more convenient API this way
write some tests to make sure everything functions as it should.
pepper the passwords too

this is done


Update instructions.md

Related to #1579

Thanks for the fix! I corrected the capitalization and the excess spaces at the end of the sentence.


Add to codecov

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@19e64e9). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master     #62   +/-   ##
========================================
  Coverage          ?   62.5%
========================================
  Files             ?       2
  Lines             ?     104
  Branches          ?       0
========================================
  Hits              ?      65
  Misses            ?      38
  Partials          ?       1

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 19e64e9...76f1ece. Read the comment docs.


Not able to show any graphics upon creating window.

Issue description
I am not able to see anything at all except black screen when I open the application with default run script.
Steps to reproduce the issue

pip install -r requirements
Just run the program using ./run

What's the expected result?

Seeing the trajectory in 3D.

What's the actual result?

Black screen.

Platform Details

Linux asus_arch 4.13.8-1-ARCH #1 SMP PREEMPT Wed Oct 18 11:49:44 CEST 2017 x86_64 GNU/Linux
Python 3.6.1 :: Anaconda custom (64-bit)

Apparently, this was a problem with my Arch installation itself.


Update using-a-listview.md

Update keyExtractor to use a valid key

https://github.com/facebook/react-native-website/pull/3474/files makes the same update as well.

Duped in https://github.com/facebook/react-native-website/pull/3474/files


Allow generating more tokens which follow a grammar

Is your feature request related to a problem? Please describe.
I am not able to generate more tokens than 1 following context-free-grammar.
Describe the solution you'd like
I would like to generate large amount of text following a grammar.
This is my code, how can I generate the whole equation using the context free grammar?
import os
import string

import guidance
from guidance import models, one_or_more, select, zero_or_more, system, regex, gen, Tool

# %% defining the grammar from https://github.com/guidance-ai/guidance?tab=readme-ov-file#context-free-grammars
# stateless=True indicates this function does not depend on LLM generations
@guidance(stateless=True)
def number(lm):
    n = one_or_more(select(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']))
    # Allow for negative or positive numbers
    return lm + select(['-' + n, n])

@guidance(stateless=True)
def variable(lm):
    return lm + select(list(string.ascii_lowercase))

@guidance(stateless=True)
def operator(lm):
    return lm + select(['+', '*', '**', '/', '-', "="])

@guidance(stateless=True)
def expression(lm):
    # Either
    # 1. A number (terminal)
    # 2. two expressions with an operator and optional whitespace
    # 3. An expression with parentheses around it
    return lm + select([
        number(),
        variable(),
        expression() + zero_or_more(' ') + operator() + zero_or_more(' ') + expression(),
        '(' + expression() + ')'
    ])

# %% loading llm
grammar = select([expression(), expression() + regex(' = \d+; ') + expression()])

# sending all layers to gpu
mistral = models.LlamaCpp(
    r"C:\Projects\text-generation-experiments\privateGPT\models\mistral-7b-instruct-v0.2.Q3_K_M.gguf", n_gpu_layers=99)

# command = 'Here is a math expression for two plus two: '
command = 'Here is a math expression for taylor polynomial: '
temp1 = mistral + command
mistral_result = temp1 + grammar
print(mistral_result)
mistral_result2 = mistral_result + gen(max_tokens=30)
print(mistral_result2)

the generation afterwards does not follow the grammar and I don't know how to tell it to follow it.

If you mean mistral_result2 then it has an unconstrained gen() call; that doesn't have to follow the grammar. Or are you saying that mistral_result itself doesn't follow the grammar?

Did you mean to do something like:
# command = 'Here is a math expression for two plus two: '
command = 'Here is a math expression for taylor polynomial: '
temp1 = mistral + command
mistral_result = temp1 + grammar + "\n"
print(f"mistral_result={str(mistral_result)}")
mistral_result2 = mistral_result + "Here is another example: " + grammar + "\n"
print(f"mistral_result2={str(mistral_result2)}")

?

I know the gen is unconstrained, but the + grammar generates only single token, I would like to generate more of them, the whole equation.

Interesting. When I try with GPT2, I get multiple tokens in the result. With Llama-7B, I am also only getting a single token.


Intermittent shutdown crashes

During application shutdown there is a race between DestroyModule and the thread that runs CommunicationsHost.
There is a clumsy, temporary fix at https://github.com/sammyfreg/UnrealNetImgui/pull/5 but it would be good to find something better. Perhaps there should be a mutex at the ClientInfo level?

I will try to pin point the issue. Hopefully, it is only related to the listening socket, since I had something in place to prevent race condition with the connection socket (using atomic state).

I believe it is only related to the listening socket. Let me get a partial callstack.

It was a null pointer deference at the following line in ListenConnect() in NetImgui_NetworkUE4.cpp:
FSocket* pNewSocket = pListenSocket->mpSocket->Accept(FString("netImgui"));
My hypothesis was that this code was running at the same time as Disconnect() in the same file was called on the thread running the module shutdown.

FWIW I cannot repro with https://github.com/sammyfreg/UnrealNetImgui/commit/2f4737522b93733f063e8374f3262f8927e60b32. happy to close.


[ENHANCEMENT] Fix missing word & keep tense consistent

Description
-...`map()` maps each element to new element by invoking the callback function on each element and returns a new array...
+...`map()` maps each element to a new element by invoking the callback function on each element and returning a new array...

What does your PR belong to?

[x] Questions / Answers
[ ] Website
[ ] General / Things regarding the repository (like CI Integration)

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (non-breaking improvement of a question)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have checked that the changes are working properly
[x] I have checked that there isn't any PR doing the same
[x] I have read the CONTRIBUTING document.

Thanks for noticing this! 👍


Compatibily with open source Navigation SDK.

Why the development is going further with Close sourced SDK (Mabbox Navigation Android).
It should be compatible with MAplibre Navigation Sdk. Which is open source and can really grow as an open source.

this is focused on MapBox Navigation Core


Update dapr_dashboard_deployment.yaml

The dashboard does not need to run in HA mode.
This PR changes the replicaCount to match the values.yaml file.

@yaron2  I think this change should have a RELEASE NOTE and added to the release notes.

/ok-to-test


Kie dev

Codecov Report
Patch coverage: 92.12% and project coverage change: -1.37 :warning:

Comparison is base (c76cc3d) 71.94% compared to head (169eb9f) 70.57%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   71.94%   70.57%   -1.37%
==========================================
  Files           8       10       +2
  Lines        1201     1203       +2
==========================================
- Hits          864      849      -15
- Misses        337      354      +17

Impacted Files
Coverage Δ

test/connection_test.cpp
66.66% <ø> (-33.34%)
:arrow_down:

test/response_test.cpp
100.00% <ø> (ø)

test/utils_test.cpp
100.00% <ø> (ø)

src/network/connection.cpp
25.00% <20.00%> (-54.17%)
:arrow_down:

src/resp/response.cpp
46.91% <80.95%> (ø)

include/reddish/resp/request.h
91.66% <91.66%> (ø)

src/resp/request.cpp
97.61% <97.61%> (ø)

src/utils/string.cpp
95.23% <100.00%> (ø)

test/request_test.cpp
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Promote call for speaker

Please promote Call for speakers via newsletter and social media. Blog post will publish on Aug 15 at 7 am.
http://citycampnc.org/2017/08/15/citycamp-nc-2017-call-for-lightning-talk-speakers/

@jhibbets = Brasco has a company newsletter going out mid-late week. I'll add in promo/call for speaker. Note: Please check this lightning talk speaker weblink on Citycamp's site. It said broken twice.
Thx.

+1 on newsletter, thanks.
The post isn't live yet, you need to be logged in to view it. It will
publish tomorrow morning.
On Mon, Aug 14, 2017 at 9:40 AM, wildca01t<EMAIL_ADDRESS>wrote:

@jhibbets https://github.com/jhibbets = Brasco has a company newsletter
going out mid-late week. I'll add in promo/call for speaker. Note: Please
check this lightning talk speaker weblink on Citycamp's site. It said
broken twice.
Thx.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codeforraleigh/NCOpenPass/issues/535#issuecomment-322192668,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADgoVwHQ-9sruVoEbbQSQku6bmgCUmvkks5sYE5CgaJpZM4O2UAG
.

@ashumz @natalienoel1 Reminder to get some social media set up for this - time sensitive (Deadline is Aug 28)


METHOD_ADD and ADD_METHOD_TO do not consider unsigned types

Describe the bug
Creating an HttpController with methods that take in uint64_t for example, and making a request to -1 will underflow and become UINT64_MAX.
Another related bug is if the URL contains characters, it still processes it.
Expected behavior
Should give 400 Bad Request upon error.
Desktop (please complete the following information):

OS: Ubuntu

Additional context
For the time being the only choice is to take by string and do validation manually.

In case this issue gets tackled, there is std::from_chars for ASCII to primitive number type conversion, which resides in the <charconv> header.
A proper checker would look like this:
string_view param = "123d";
uint64_t num;
if(std::from_chars(param.begin(), param.end(), num).ptr != param.end())
    return error;

// success, do something with [num]


add git tagging

adds git tagging for

wdqs-ui
wikibase

+1 looks sensible.

+1 looks sensible.


Allow specifying a project_template in "wagtail start"-comment

Added the option to specify a custom project_template to the "wagtail start"-command. Also renamed the optional directory to destination and make it be an option and not an arg.

Thanks for your reply gasman, we've gone a different route using a separate package https://github.com/leukeleu/wagtail-startproject


Kubernetes endpoint: no error message on failing token refresh request

Frontend Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, using docker compose
[ ] Docker, single container deploying all components
[ ] npm run start
[x] Other (please specify below)
CaaSP3

Backend (Jet Stream) Deployment type

[ ] Cloud Foundry Application (cf push)
[ ] Kubernetes, using a helm chart
[ ] Docker, using docker compose
[ ] Docker, single container deploying all components
[x] Other (please specify below)
CaaSP3

Expected behaviour
Stratos shows an error message if the token refresh request failed.
Actual behaviour
The Endpoint is listed as connected, but the Kubernetes Menu doesn't show or update any data.
Steps to reproduce the behavior
Register kubernetes endpoint and e.g. use the same kubeconfig from the cli until Stratos can't refresh the Kubernetes data anymore.
Log output covering before error and any error statements
kubectl logs console-0 proxy -n stratos snippet
ERRO[Tue Nov 13 12:42:47 UTC 2018] Error performing http request - response: &{400 Bad Request 400 HTTP/1.1 1 1 map[Content-Length:[121] Content-Type:[application/json] Date:[Tue, 13 Nov 2018 12:42:47 GMT]] 0xc42053b380 121 [] false false map[] 0xc420467600 0xc4202b4420}, error: <nil>
WARN[Tue Nov 13 12:42:47 UTC 2018] <nil>+
INFO[Tue Nov 13 12:42:47 UTC 2018] Token refresh request failed: Error: <nil>
Status: 400
Response: {"error":"invalid_request","error_description":"Refresh token is invalid or has already been claimed by another client."}
WARN[Tue Nov 13 12:42:47 UTC 2018] Passthrough response: URL: https://f81.suse.de:6443/api/v1/pods, Status Code: 500, Status: Error proxing request, Content Type: Unknown, Length: -1
WARN[Tue Nov 13 12:42:47 UTC 2018] Couldn't refresh token for CNSI with GUID XcksQeT30dPLsVyf7s0O0NqtATE
Request: [2018-11-13T12:42:47Z] Remote-IP:"<IP_ADDRESS>" Method:"GET" Path:"/v1/proxy/api/v1/pods" Status:200 Latency:16.565414ms Bytes-In:0 Bytes-Out:182
INFO[Tue Nov 13 12:42:48 UTC 2018] {"ClientID":"velum","ClientSecret":"74c7d1c4-1e62-4c23-8e2d-867ce22133f2","IssuerURL":"https://f81.suse.de:32000"}
INFO[Tue Nov 13 12:42:48 UTC 2018] &{velum 74c7d1c4-1e62-4c23-8e2d-867ce22133f2 https://f81.suse.de:32000}
INFO[Tue Nov 13 12:42:48 UTC 2018] velum
INFO[Tue Nov 13 12:42:48 UTC 2018] 74c7d1c4-1e62-4c23-8e2d-867ce22133f2

#64 Should help with this


Can not reproduce source only score of Office-31

Hi, thank you for sharing your work.
I tried to reproduce Office-31 source only score using your work, but it failed to get same result as reported in table3 of result.md
Cloned your work and run (referenced run.sh)

SEED
A - D
A - W
D - A
D - W
W - A
W - D
AVG.

2019
79.72
74.84
57.97
94.59
62.83
98.59

2020
79.72
72.70
59.03
95.22
61.87
97.99

2021
80.52
76.98
59.46
93.58
63.72
98.80

Avg.
79.99
74.84
58.82
94.46
62.81
98.49
78.24

Table 3 of result.md

SEED
A - D
A - W
D - A
D - W
W - A
W - D
AVG.

2019
79.9
77.5
58.9
95.0
64.6
98.4

2020
81.5
75.8
61.6
96.0
63.3
99.0

2021
80.9
77.5
60.2
94.8
62.9
98.8

Avg.
80.8
76.9
60.3
95.3
63.6
98.7
79.3

Here is what I did

Clone repo

Download office-31 and place it under object/data folder and create amazon_list.txt, dslr_list.txt, webcam_list.txt in the same folder using below code.
import glob
import os
import random

def load_data_list(root):
    class_list = glob.glob(os.path.join(root, '*'))
    data_list = []
    for label, class_path in enumerate(class_list):
        data_list.extend([f'{path} {label}\n' for path in glob.glob(os.path.join(class_path, '*'))])
    random.shuffle(data_list)
    return data_list

def save_to_txt(save_path, data_list):
    with open(save_path, 'wt') as f:
        f.writelines(data_list)

for dataset in ['amazon', 'dslr', 'webcam']:
    data_list = load_data_list(f'data/office/{dataset}/images')
    print(dataset, len(data_list))
    save_to_txt(f'data/office/{dataset}_list.txt', data_list)

Train model using below command. I tried seed as follow: 2019, 2020, 2021.
python3 image_source.py --trte val --da uda --output ckps/source/ --gpu_id 0 --dset office --max_epoch 100 --s 0

If anyone can spot any problems, I will be really appreciate it.

Hi, thank you for sharing your work.
I tried to reproduce Office-31 source only score using your work, but it failed to get same result as reported in table3 of result.md
Cloned your work and run (referenced run.sh)
SEED	A - D	A - W	D - A	D - W	W - A	W - D	AVG.
2019	79.72	74.84	57.97	94.59	62.83	98.59
2020	79.72	72.70	59.03	95.22	61.87	97.99
2021	80.52	76.98	59.46	93.58	63.72	98.80
Avg.	79.99	74.84	58.82	94.46	62.81	98.49	78.24
Table 3 of result.md
SEED	A - D	A - W	D - A	D - W	W - A	W - D	AVG.
2019	79.9	77.5	58.9	95.0	64.6	98.4
2020	81.5	75.8	61.6	96.0	63.3	99.0
2021	80.9	77.5	60.2	94.8	62.9	98.8
Avg.	80.8	76.9	60.3	95.3	63.6	98.7	79.3
Here is what I did

Clone repo
Download office-31 and place it under object/data folder and create amazon_list.txt, dslr_list.txt, webcam_list.txt in the same folder using below code.import glob
import os
import random

def load_data_list(root):
    class_list = glob.glob(os.path.join(root, '*'))
    data_list = []
    for label, class_path in enumerate(class_list):
        data_list.extend([f'{path} {label}\n' for path in glob.glob(os.path.join(class_path, '*'))])
    random.shuffle(data_list)
    return data_list

def save_to_txt(save_path, data_list):
    with open(save_path, 'wt') as f:
        f.writelines(data_list)

for dataset in ['amazon', 'dslr', 'webcam']:
    data_list = load_data_list(f'data/office/{dataset}/images')
    print(dataset, len(data_list))
    save_to_txt(f'data/office/{dataset}_list.txt', data_list)

Train model using below command. I tried seed as follow: 2019, 2020, 2021.python3 image_source.py --trte val --da uda --output ckps/source/ --gpu_id 0 --dset office --max_epoch 100 --s 0

If anyone can spot any problems, I will be really appreciate it.

Hi, I think the reproduced results are normal. If you really want to obtain similar results, you can try the same environment as ours, e.g., the same version of different python packages.

Thank you for your reply. I understand your answer.


Setup gh-pages for helm charts

Created https://github.com/kubernetes-sigs/secrets-store-sync-controller/tree/gh-pages.
Issue will be closed with https://github.com/kubernetes/test-infra/pull/33028


Installation on Windows: PermissionError: [Errno 1] Operation not permitted: '/home/hummingbot/conf/conf_fee_overrides.yml'

I tried installation with docker on windows via script, but i got this error:
diego@MSI:/mnt/d$ ./create.sh
===============  CREATE A NEW HUMMINGBOT INSTANCE ===============
ℹ  Press [ENTER] for default values:
Enter Hummingbot version you want to use [latest/development] (default = "latest") >>>
Enter a name for your new Hummingbot instance (default = "hummingbot-instance") >>>
Enter a folder name where your Hummingbot files will be saved (default = "hummingbot_files") >>>
ℹ  Confirm below if the instance and its folders are correct:
            Instance name: hummingbot-instance
                  Version: hummingbot/hummingbot:latest

         Main folder path: /mnt/d/hummingbot_files
             Config files: ├── /mnt/d/hummingbot_files/hummingbot_conf
                Log files: ├── /mnt/d/hummingbot_files/hummingbot_logs
     Trade and data files: ├── /mnt/d/hummingbot_files/hummingbot_data
        PMM scripts files: ├── /mnt/d/hummingbot_files/hummingbot_pmm_scripts
            Scripts files: ├── /mnt/d/hummingbot_files/hummingbot_scripts
               Cert files: ├── /mnt/d/hummingbot_files/hummingbot_certs
     Gateway config files: └── /mnt/d/hummingbot_files/gateway_conf
        Gateway log files: └── /mnt/d/hummingbot_files/gateway_logs

Do you want to proceed? [Y/N] >>> y
Creating Hummingbot instance ... Admin password may be required to set the required permissions ...
Traceback (most recent call last):
File "bin/hummingbot_quickstart.py", line 152, in
fork_and_start(main)
File "/home/hummingbot/bin/docker_connection.py", line 137, in fork_and_start
main_function()
File "bin/hummingbot_quickstart.py", line 148, in main
asyncio.get_event_loop().run_until_complete(quick_start(args, secrets_manager))
File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "bin/hummingbot_quickstart.py", line 88, in quick_start
await create_yml_files_legacy()
File "/home/hummingbot/hummingbot/client/config/config_helpers.py", line 801, in create_yml_files_legacy
shutil.copy(template_path, conf_path)
File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/shutil.py", line 416, in copy
copymode(src, dst, follow_symlinks=follow_symlinks)
File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/shutil.py", line 305, in copymode
chmod_func(dst, stat.S_IMODE(st.st_mode))
PermissionError: [Errno 1] Operation not permitted: '/home/hummingbot/conf/conf_fee_overrides.yml'

Hi @delavegaOpengl Good day to you, I'm unable to reproduce this issue when using our helper scripts for docker installation and I'm also using Win11. I've followed the same steps provided on our docs and installed it successfully, perhaps you can try to change the directory and try again? Thank you


Feature/ng1.5

Short description of what this resolves:
This is the initial implementation of angular 1.5.  There is a known outstanding bug pertaining to tabs being jittery.
Changes proposed in this pull request:
Ionic Version: 1.x / 2.x
1.x
Fixes: #

Tab bug is resolved


Can we limit the predicted segmentation masks to specific pixels intensities (eg 0, 128, 255)?

I am running training on a dataset of immunofluorescence images of cells in which the segmentation masks have 3 values for pixel intensities in the masks (0, 128, 255). 0 being background, 128 nuclei, 255 cytoplasm
https://github.com/edwardcao3026/SegBenchmark/blob/main/datasets/datasets.tar
Is it possible to limit the mask prediction to these 3 intensities?
For now I ran up to 50 epochs on 411 image/masks pairs and I kind of gradients with many different gry values instead of only 3

Download
https://www.mediafire.com/file/7ybpxn8lil1av70/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Hi, you can try to change the output channels of segmentation heads from 1 to 3 to support multi-class segmentation. In this case, 0, 128, 255 correspond to classes 0, 1, 2 respectively. We recommend referring to some U-Net examples (such as Pytorch-UNet) that support both binary and multi-class segmentation to confirm what modifications need to be made to SAM2-UNet.

Thanks, I'll try to work on it :)

请问您是怎么解决的呢？

请问您是怎么解决的呢？

Hello, we have roughly made the following changes:

Modify the number of output channels in SAM2-UNet.py
Modify the data loading method in dataset.py (ensure that the values of the training mask are 0, 1, 2, 3)
Modify the loss function, use celoss, and add iou loss
However, we found that the detection effect after multi-class training is relatively poor compared to the results of binary classification training. Do you think the training parameters need to be adjusted? Or the weight of the loss function needs to be improved, etc.? Looking forward to your suggestions

请问您是怎么解决的呢？

Hello, we have roughly made the following changes:

Modify the number of output channels in SAM2-UNet.py
Modify the data loading method in dataset.py (ensure that the values of the training mask are 0, 1, 2, 3)
Modify the loss function, use celoss, and add iou loss
However, we found that the detection effect after multi-class training is relatively poor compared to the results of binary classification training. Do you think the training parameters need to be adjusted? Or the weight of the loss function needs to be improved, etc.? Looking forward to your suggestions
感谢你的回答，抱歉诶，我也不知道有什么好的解决办法


fix(🤖): don't try to resize if the surface has been deleted

fixes #2396

After further investigation this fix is not complete. Will superseed this PR this week.

superseded by #2481


fix: fiat value 0 due to slow connection

Describe the changes you have made in this PR
During loading due to a slow connection, fiatBalance is shown ~$0, so "..." will be shown when the user has some satsBalance but due to a network issue, fiatBalance is not fetched properly.
Link this PR to an issue [optional]
Fixes #1608
Type of change
(Remove other not matching type)

fix: Bug fix (non-breaking change which fixes an issue)

How has this been tested?
As mentioned in the issue issue only reproduces due to slow connection, so I tested by hard coding values.
Checklist

[x] My code follows the style guidelines of this project and performed a self-review of my own code
[x] New and existing tests pass locally with my changes
[x] I checked if I need to make corresponding changes to the documentation (and made those changes if needed)

Closing this in favour of #1645
@vaibhavgarg237 thanks for starting this!


Add tests subfolders to esbuild

esbuild was not including the prototyping tests within the build.

Replaced ./tests/*.spec.* with ./tests/**/*.spec.*
Skipped over AES-192 tests for chrome as it does not support 192 bit keys.

Codecov Report

Merging #474 (f8d1755) into main (30eae0f) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #474   +/-   ##
=======================================
  Coverage   90.54%   90.54%
=======================================
  Files         112      112
  Lines       29085    29085
  Branches     2077     2077
=======================================
  Hits        26335    26335
  Misses       2715     2715
  Partials       35       35

Components
Coverage Δ

agent
78.83% <ø> (ø)

api
97.89% <ø> (ø)

common
98.68% <ø> (ø)

credentials
94.95% <ø> (ø)

crypto
93.81% <ø> (ø)

dids
97.65% <ø> (ø)

identity-agent
96.70% <ø> (ø)

crypto-aws-kms
100.00% <ø> (ø)

proxy-agent
96.70% <ø> (ø)

user-agent
96.70% <ø> (ø)


not compatible with latest filter plugin

Super excited to use this plugin by the way! I wasn't able to see the tsvector field in my filter, so I dug into a bit, and believe there is an issue when the postgraphile-plugin-connection-filter version 2.0.0 is used.
Looks like the FullTextFilter was removed.
 Received value does not match stored snapshot "table with unfiltered full-text field works 1".

    - Snapshot
    + Received

    @@ -24,11 +24,10 @@
          "DeleteJobByIdInput": "DeleteJobByIdInput",
          "DeleteJobInput": "DeleteJobInput",
          "DeleteJobPayload": "DeleteJobPayload",
          "Float": "Float",
          "FullText": "FullText",
    -     "FullTextFilter": "FullTextFilter",
          "ID": "ID",
          "Int": "Int",
          "IntFilter": "IntFilter",
          "Job": "Job",
          "JobCondition": "JobCondition"

I'll keep digging to see if I find a fix, will report here.

I found a breaking change here https://github.com/graphile-contrib/postgraphile-plugin-connection-filter/commit/645b43e10f0a998a56dd9c7b0f76608395199a14 that @mattbretl mentions a change to addConnectionFilterOperator.
Maybe this is related https://github.com/mlipscombe/postgraphile-plugin-fulltext-filter/blob/c780ff524da1ab691d843300bae34f60dfd83d83/src/PostgraphileFullTextFilterPlugin.js#L82


Added a less verbose logging option as csv

To use, add field node_write_log_csv to the config .yml file, specifying the path to the .csv file that will be used to record changes (e.g. node_write_log_csv: node_write_log.csv). If the file already exists, the new log entries will be appended.
This log records the record, the node id, and the title. If the request fails, node_id is recorded as -1.

Added create_media_log option to config .yml for islandora lite.
Log specifies record, title, and node_id. Additionally: success indicates if the job succeeded or failed. reason specifies if failure was because the node was not found or if it was an error in creation or attachment. If ingestion was successful, reason is empty.


feat(dispatch-service): improved error handling for summaries of simulation runs

closes #4077

:tada: This PR is included in version 9.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


allow arrays on fieldOptionsApiShape.formControl

feature(formyField): #327 added multiple formControls.
the apicheck on fieldOptionsApiShape is still missing the this feature though

Thanks :+1:


Sdfat library causes hang when ArduinoShrink included

Not very knowledgeable with the Sdfat library but have found an issue where my Arduino Nano will hang as soon as sd.begin is called when the ArduinoShrink library is called, but works fine without it. this is the only SPI device I have on the board and it's using default hardware SPI with CS set to pin 10.

What version of the Arduino IDE and what version of the SDfat library are you using?
I haven't used the SDfat library, but I can try building it with and without ArduinoShrink and compare the resulting binaries.

Arduino IDE 2.3.2 and SdFat 2.2.2
Thanks!


fix: update comment for newbie command

I am not sure how backticks work let me know if I need to remove them.


Implement Merged Streams for Clipping

Implement audio stream merging by inserting silent buffers when no audio is received
This allows users to clip the entire voice channel
Clipping a single user still has no silence inserted

LGTM!


Is this project dead?

There's a BUG that's blocking anyone using this project from also using VirtualBox 6 on Darwin. This has been solved over 3 months ago in #214, and yet no release has been cut for it. Is this project still maintained? If not, what is the Docker-blessed way for programmatically installing Docker for Mac? Please do not direct me to download the .dmg, it has to be programmatically installed.
Thank you for understanding my frustration!

Still maintains. close!!
For another users(means exclude @kalbasit), see

https://github.com/machine-drivers/docker-machine-driver-xhyve/pull/214#issuecomment-493181669
https://github.com/machine-drivers/docker-machine-driver-xhyve/pull/214#issuecomment-493182020
https://github.com/machine-drivers/docker-machine-driver-xhyve/pull/214#issuecomment-493182570


How to modify original object

I want my object "b" to be merged to object "a" and mergician to return modified object "a" not a cloned object.

Assign the merged object returned by mergician to object "a":
let obj1 = { a: 1 };
let obj2 = { b: 2 };

obj1; // { a: 1 }

obj1 = mergician(obj1, obj2);

obj1; // { a: 1, b: 2 }


don't allow registering an already existing cmap

matplotlib.cm.register_cmap don't allow registering an already existing cmap unless explicitly asked to
so the function  shiftedColorMap should not use a fixed name shiftedcmap, which caused an error when I repeat the same code niche_lr_interp.visualize_params :
ValueError: A colormap named "shiftedcmap" is already registered.

I think you could add one code matplotlib.cm.ColormapRegistry.unregister(plt.colormaps,name='shiftedcmap') in  shiftedColorMap

Thanks @Secretloong. If I understand correctly, I don't think this will be an issue as long as you avoid run the shiftedColorMap multiple times.
@dzhu8 do you think so?


set aggregate property on frame

This solves #1063 by setting the aggregate property of a variable on its frame in a FramedAgent.
It also pulls all the FramedAgent logic into its own modules frames
No new tests -- this is a refactor.
Some docs fixes

[x] Tests for new functionality/models or Tests to reproduce the bug-fix in code.
[x] Updated documentation of features that add new functionality.
[x] Update CHANGELOG.md with major/minor changes.

@Mv77  could I ask you to review this? Should be quick.

This looks good to me. I wonder if there are frames that could be joined, like PermShk and TranShk. Too many frames might become too complex to understand for new users. It would also be useful to map frames in the simulation with frames (or subperiods) in the solution method.

Yes, mapping simulation frames to the solution is a desired next step.
There seems to be some difference of opinion about the best way to group frames.
I prefer more granular frames. @mnwhite thinks more grouped frames might be better for performance reasons. I hear you saying you think more grouped frames are easier to understand.
The current implementation is agnostic about the best amount of aggregation in framing. That way performance of the same model, differently written, can be tested.
One benefit of granular frames is that they support the kind of plotting done in #1071


Component doesn't clean up after itself

Expected Behavior
If I am on a page with the parallax component on it, navigate to a new page in the app, I expect the scroll event listener to no longer fire.
Actual Behavior
When I visit a page with the parallax element, and then navigate to another page without it, when I scroll, I get bombarded with console errors. I source dived a little and found that there isn't a defined cleanup for this component, like turning off the scroll event listener.
vue-parallaxy.min.js?ab81:1 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
    at VueComponent.isInView (vue-parallaxy.min.js?ab81:1)
    at VueComponent.boundFn [as isInView] (vue.esm.js?65d7:182)
    at eval (vue-parallaxy.min.js?ab81:1)
isInView @ vue-parallaxy.min.js?ab81:1
boundFn @ vue.esm.js?65d7:182
(anonymous) @ vue-parallaxy.min.js?ab81:1
requestAnimationFrame (async)
scrollHandler @ vue-parallaxy.min.js?ab81:1
boundFn @ vue.esm.js?65d7:182

Environment

OS: Mac OSX 10.13.1
NPM version: Yarn 1.2.0
vue.js version: 2.4.2
vue-parallax version: 1.0.3

I believe I still have the issue. (Maybe linked to the fact that I had multiples instances on the same page ?)
I think you should also assign your requestAnimationFrame to a variable so that you can call cancelAnimationFrame to clean up the component entirely.
I believe the right place would be below that line:
https://github.com/apertureless/vue-parallax/blob/2f131f2ab51341d82adf8f9cb138ee0f8c56d16e/src/components/Parallax.vue#L127


PR for #20 Restore iml files

linking to #20

@dmfs please review

Duplicate of #20, so closing it.


Update to 1.19.3

can u plese update to 1.19.3 please?, i cant use it in 1.19.3

Hi! Unfortunately 1.19.3 support isn't finalised (the latest revision of the repo is unusable) - my branch https://github.com/CyberFlameGO/viewmodel-changer/tree/fix/resolve-1.19.3-compilation-errors has my latest attempt but I'm unable to figure it out.

@CoderIL This has now been completed :) Here's the link if you're still interested!


symlink for English documentation does not work

Go to "https://github.com/standard/standard/blob/master/docs/RULES-en.md"
Expected: the English documentation.
Actual: it only reads "../README.md".

Sorry that this was confusing. We put the English documentation in README.md and RULES.md in the root of the repo. The symlinks docs/README-en.md and docs/RULES-en.md are only used when generating the website.
Unfortunately, GitHub doesn't follow the symlink and render the linked content 👎


Calculating performance metrics

Hi,
Great work on the code base!
I ran the predict.py on a few micrographs and wanted to know how I can compute the performance metrics such as precision, recall, f1 score.
I have the ground truth as bounding boxes around the particles (4 coordinates).
Thanks

Hi, just a follow up.
I have managed to change my ground truth to coordinates (center) & radius - the same format as the output from CryoTransformer.
Is there any module to compute the metrics (precision & recall mainly)? If not, do you have any reference for the metrics you have published in the paper?
Thanks


incorrect detection of trained model via train_shape_predictor

left is marking shown my imglab tool  and right is detection via face_landmark_detection_ex. marked 80+ images.
there is some issue which i'm unable to resolve with training. i'm training the face on the rs.10 bill but detection is highly irregular. i have trained aflw dataset before and road signs they seem to go excellent. but this one isn't. i changed all the parameters and even oversample to 12000 but still same result. what could be the issue?

First of all, this is not a bug of Dlib, but a question on how to use it. Lets go to stackoverflow and we will solve it
Also give us this info:

Where is face bounding box on the right sample?
Show us all training params - both for object detector and for shape predictor and also training results output
You are talking about one sample. Do you have any statistics? All samples do not work? Event samples used for training?

Please do not answer here - close an issue and goto http://stackoverflow.com/questions/tagged/dlib


Dart 2.0 throws unhandled exception when trying make super-bounded type assigning

Dart SDK Version: 2.0.0-dev.48.0
OS: Windows 10
This bug is similar with #32903, but it's regarding dart (not dartanalyzer) incorrect behavior in preview-dart-2 mode.
Dart 2.0 Super Bounded Types Spec  reads:

The feature described here, super-bounded types, consists in allowing an actual type argument to be a supertype of the declared bound, as long as a consistent replacement of Object, dynamic, and void by Null produces a traditional, well-bounded type. For example, if a class C takes a type argument X which must extend C<X>, C<Object>, C<dynamic>, and C<void> are correct super-bounded types.
We extend covariance for generic class types such that it can be used also in cases where a type argument violates the corresponding bound.
For instance, assuming the classes C and D as declared in the Motivation section, C<D> is a subtype of C<Object>. This is new because C<Object> used to be a compile-time error, which means that no questions could be asked about its properties. Note that this is a straightforward application of the usual covariance rule: C<D> <: C<Object> because D <: Object. We need this relaxation of the rules in order to be able to define which violations of the declared bounds are admissible.

This means that constructions like C<dynamic> c0 = ... now should be allowed in strong mode for bounded types like class C<X extends C<X>>.
If I run dart -c with the example from bug #32903:
class C<X extends C<X>> {}
class D extends C<D> {}
main() { C<dynamic> c = new D(); }

the test does not produce any errors and passes. However, if I try Object  super-bounded class:
class C<X extends C<X>> {}
class D extends C<D> {}
main() { C<Object> c = new D(); }

it starts to fail with unhandled exception:
$> dart -c test.dart
Unhandled exception:
'file:///D:/DART/sdk/tests/co19/src/LanguageFeatures/Super-bounded-types/test.dart': malbounded type: line 1 pos 9: type parameter 'X' of class 'C' must extend bound 'C<X>', but type argument 'Object' is not a subtype of 'C<Object>' where
  Object is from dart:core
  C is from file:///D:/DART/sdk/tests/co19/src/LanguageFeatures/Super-bounded-types/test.dart
  Object is from dart:core

class C<X extends C<X>> {}
        ^
'file:///D:/DART/sdk/tests/co19/src/LanguageFeatures/Super-bounded-types/test.dart': malbounded type: line 3 pos 10: type 'C<Object>' has an out of bound type argument
main() { C<Object> c = new D(); }
         ^

#0      main (file:///D:/DART/sdk/tests/co19/src/LanguageFeatures/Super-bounded-types/test.dart:3:28)
#1      _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:279)
#2      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

Process finished with exit code 255

It seems like this contradicts to the super-bounded types spec.

This needs triage.  Is it a bug in Fasta or the VM?

I can't reproduce the error.  Here's what I do:
$ git fetch origin master
$ git checkout origin/master
$ ./tools/build.py -m release -a x64 runtime_kernel
$ pkg/vm/tool/dart2 program.dart

I also tried to print some types out of the program and have rewritten it to the following:
class C<X extends C<X>> {
  X foo;
  C(this.foo);
}

class D extends C<D> {
  D(D d) : super(d);
}

main() {
  C<Object> c = new D(new D(null));
  print(c.runtimeType);
  print(c.foo.runtimeType);
  // print(c.foo.foo); // compile-time error
}

Here's the output:
D
D

And the compile-time error is produced when the commented line is uncommented.
Maybe, the issue is that the program in the message above is run with dart -c, not with dart2?


Partial Type Argument Inference inconsistent

TypeScript Version:  3.4.0-dev.20190202

Search Terms:
Generics Argument Inference
Code
const val = { foo: "asdf" };

function inferOnDefault<T = any>(val: T) {
  return {} as T;
}
//Infers result type to be typeof val
inferOnDefault(val);

function inferDependent<T, K extends T>(val: T) {
  return {} as K;
}

//Inefers result to be typeof val
inferDependent(val);

function inferDependentDefaulted<K extends T, T = any>(val: T) {
  return {} as K;
}

//Inefers result to be typeof val
inferDependentDefaulted(val);

function inferDependentBothDefaulted<K extends T = any, T = any>(val: T) {
  return {} as K;
}
//Inefers result to be typeof any
inferDependentBothDefaulted(val);

Expected behavior:
For the inferDependentBothDefaulted function to infer the return type to typeof val the same way the above functions did.
Actual behavior:
The inferDependentBothDefaulted function infers the return type to the default generic argument any
Playground Link: link
Related Issues:
Didn't see anything that looked the same.

Would the following be an option for you?
// It would work as expected with this
function inferDependentBothDefaulted<T = any, K extends T = T>(val: T) {
  return {} as K;
}

I guess that the problem is that any does not necessarily extend T:
// would give "yes" | "no"
type test = any extends string ? "yes": "no";

@fazouane-marouane This is just a very simplified example that caused some confusion.
It's not a major issue just thought the behaviour was surprising.

In general it is best to avoid using generic parameters that are unused in the signature; it doesn't play very nicely with the structural type system of TypeScript.
In your examples you are asking TypeScript to synthesize a type for K from nothing. In the presence of no information the choice is to pick the bound, or the default. Picking the default seems a reasonable choice as it was written there for a reason.
@fazouane-marouane

I guess that the problem is that any does not necessarily extend T

any does extend every type (except never). The behaviour you are seeing is special treatment for any in conditional types. In a conditional type, any is viewed as a wildcard that matches both branches.

@jack-williams thanks for the info!


If I invoke one modal after another I get an error: "Do not call Hooks inside useEffect(...)"

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Invoke one modal
Close this modal
Invoke another on exact sequence

Expected behavior
The first modal closes and the second appears
Screenshots

Warning: Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks
Error: Should have a queue. This is likely a bug in React. Please file an issue.

My mistakes. I was submitting JSX instead of a JSX arrow function. Sorry about that.