Config file in place of NBT data tags

As the way the mod is now, you can only add sparkles to blocks and items if you have file access to a server and can add a datapack to the world(s) it has. This is far from ideal when using this mod within a client-only environment, hence why I'm proposing this change.

+1


Output Tab reopens  on next execution

System information:
OS Name	Microsoft Windows 10 Pro
Version	10.0.19042 Build 19042
Other OS Description 	Not Available
OS Manufacturer	Microsoft Corporation
System Name	WIN-UFEK63BASEQ
System Manufacturer	HP
System Model	HP 255 G7 Notebook PC
System Type	x64-based PC
System SKU	1B7K2ES#ABU
Processor	AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx, 2100 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date	Insyde F.31, 01/07/2020
SMBIOS Version	3.1
Embedded Controller Version	51.24
BIOS Mode	UEFI
BaseBoard Manufacturer	HP
BaseBoard Product	85EA
BaseBoard Version	51.24
Platform Role	Mobile
Secure Boot State	Off
PCR7 Configuration	Binding Not Possible
Windows Directory	C:\Windows
System Directory	C:\Windows\system32
Boot Device	\Device\HarddiskVolume1
Locale	United Kingdom
Hardware Abstraction Layer	Version = "10.0.19041.488"
Username	WIN-UFEK63BASEQ\PeterLibman
Time Zone	GMT Standard Time
Installed Physical Memory (RAM)	32.0 GB
Total Physical Memory	29.9 GB
Available Physical Memory	22.7 GB
Total Virtual Memory	34.7 GB
Available Virtual Memory	25.8 GB
Page File Space	4.75 GB
Page File	C:\pagefile.sys
Kernel DMA Protection	Off
Virtualisation-based security	Not enabled
Device Encryption Support	Reasons for failed automatic device encryption: PCR7 binding is not supported, Hardware Security Test Interface failed and the device is not Modern Standby, Un-allowed DMA-capable bus/device(s) detected
Hyper-V - VM Monitor Mode Extensions	Yes
Hyper-V - Second Level Address Translation Extensions	Yes
Hyper-V - Virtualisation Enabled in Firmware	No
Hyper-V - Data Execution Protection	Yes

DBeaver version
-<IP_ADDRESS>101161839
Additional extensions
none

Connection specification:

Postgres 12
Driver name
PostgreSQL JDBC Driver
Do you use tunnels or proxies (SSH, SOCKS, etc)?
no

Describe the problem you're observing:
clicked on the Output button on the left hand side of an SQL Editor window. The Output tab appeared to the right of the SQL Editor window (This is new behaviour as it used to be a tab below the SQL which was preferable and I cannot find a way of moving it back there).
Execute a query and output is correctly displayed in the Output window.
Clicked on the 'x' on the output window and the window closed.
Reran the query and the output window reappears without being requested.
Clear the contents of the output window and clicked 'x' to close the window.
The Output window closed.
Reran the query, and the output window magically reappears.
Click on the Output button on the left of the sql window and the output window closes.
Reran the query, and the output window magically reappears.
Kind regards
Pete

Hello @PeterAlva,
This is a feature and it is enabled by default (because a lot of users don't even know that some servers may send messages).
You can change this behavior in Preferences -> SQL Editor -> Open output viewer on new messages.

Hello @PeterAlva,
This is a feature and it is enabled by default (because a lot of users don't even know that some servers may send messages).
You can change this behavior in Preferences -> SQL Editor -> Open output viewer on new messages.

Thanks for a very speedy response.
From: Who cares<EMAIL_ADDRESS>Sent: 27 January 2021 08:31
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Peter Libman<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] Output Tab reopens on next execution (#11120)
Hello @PeterAlvahttps://github.com/PeterAlva,
This is a feature and it is enabled by default (because a lot of users don't even know that some servers may send messages).
You can change this behavior in Preferences -> SQL Editor -> Open output viewer on new messages.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/11120#issuecomment-768122753, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEMOYN22ZPGNUSLITSGTZ3S37FMLANCNFSM4WTQEM4A.

Thanks for a very speedy response.
From: Who cares<EMAIL_ADDRESS>Sent: 27 January 2021 08:31
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Peter Libman<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] Output Tab reopens on next execution (#11120)
Hello @PeterAlvahttps://github.com/PeterAlva,
This is a feature and it is enabled by default (because a lot of users don't even know that some servers may send messages).
You can change this behavior in Preferences -> SQL Editor -> Open output viewer on new messages.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/11120#issuecomment-768122753, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEMOYN22ZPGNUSLITSGTZ3S37FMLANCNFSM4WTQEM4A.


Change host -> receiver_ip acc to #4 in sockx

Closes #44
Implementation
Update host to receiver_ip in sockapp client (app.py)
Release
Code wise this marks the end to v0.1-alpha-9. Releasing this after testing.

This project is deprecated.


fix(openai): allow iteration with anext protocol

Our company is hesitating to introduce langfuse due to this bug. Would you please expedite it?

I implemented a sync iterator. It may fix the test. https://github.com/langfuse/langfuse-python/pull/887

@sinwoobang Apologies for the delay on this. Will get this merged and released asap.


Fix date related bugs

There is a bug where the user's local language will change the
displayed documented dates. Users are also able to add future
dates into the birth date field.
Let's do the following:

Set display date locale to english to close AY2122S2-CS2103T-T17-3#134
Add check for birth date field to close AY2122S2-CS2103T-T17-3#135

Codecov Report

Merging #168 (b675008) into master (f36a274) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #168      +/-   ##
============================================
+ Coverage     79.85%   79.89%   +0.03%
- Complexity      748      749       +1
============================================
  Files           111      111
  Lines          2194     2198       +4
  Branches        234      235       +1
============================================
+ Hits           1752     1756       +4
  Misses          375      375
  Partials         67       67

Impacted Files
Coverage Δ

.../main/java/seedu/address/model/date/BirthDate.java
100.00% <ø> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
92.53% <100.00%> (+0.34%)
:arrow_up:

.../java/seedu/address/model/date/DocumentedDate.java
90.90% <100.00%> (+0.43%)
: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 f36a274...b675008. Read the comment docs.


Some fixes

Provide the real dependencies in the package.xml
Add license to package.xml
Create models and launch folder (error if not existent)
Add gitignore
Automatically export media and model path (only works if gazebo is launched via the gazebo_ros package)
Use print(...) and not print ""
Use python3 from tkinter import filedialog

I'll give up for now. This is an absolute mess. noetic | passing - in which world?
Here is a list of things that need to be fixed:

Don't use ~/.gazebo/models! Use the models directory from your package. (scripts/model.py)
Use path in read and write file and don't change your directory path all the time. This is not bash. It's python... (see create_model function in scripts/model.py)
How is this command rosrun gazebo_terrain terrain_gen.sh from the readme supposed to work? It calls model.py "$MODEL_PATH" "$YOURIMAGENAME" but model.py has no main.

Someone can use this PR as a starting point to fix this.

The last commit addresses some of the issues. At least main.py is now working.
How to use this branch:
# Generate a new model with
rosrun gazebo_terrain main.py

# Run this and insert the new model from the insert tab in gazebo
rosrun gazebo_ros gazebo

Sorry about this.
I recently merged some code from another contributor who was working with noetic and was in the middle of updating the entire program when I got distracted by some other work I needed to accomplish. I'm aware of the fact that it doesn't quite work with noetic or melodic at the moment and that several items need to be reworked, but I forgot to update the readme to indicate that this is a work in progress.
I will update it now to prevent further confusion until I can work on this further.

An readme update would be nice. You can merge this PR is you want, then the installation with rosdep will work on noetic and you can generate new models with rosrun gazebo_terrain main.py. See my last post.


Name and Logo?

Any ideas for a name and maybe a logo should be collected in this issue.

MEtagenomics RApid hmm based GENE prediction   =>    MeRaGENE


Proper URL Encoding

[x] Did you write/update appropriate tests
[x] Release notes updated (if appropriate)
[x] Appropriate logging output
[x] Issue linked
[x] Docs updated (or issue created)
[x] New package licenses are added to ThirdPartyNotices.txt (if applicable)

Fixes #772
We had a bunch of places in the code where we were replacing spaces in URL's with %20. The more robust way to do this is to use HttpUtility.UrlEncode() which will also catch other special characters (e.g. parentheses which are valid in ADO Team Project names).
I created an extension method string.UrlEncode to make the code a bit more concise.
Everywhere we craft a URL with user-provided values we should be calling UrlEncode() on the user provided values at the place in the code where we stuff them into a URL. This is alot of places in our AdoApi/GitApi/etc classes.
I updated some of our unit test sample data to have special characters, and updated the expected values in a whole whack of existing tests to give a good amount of coverage over the new behavior.

@dylan-smith this didn't work for my use case:
➜  net6.0 git:(dylan-smith/url-encoding) dotnet ado2gh.dll migrate-repo --ado-org digimangos --ado-team-project "Knowledge Management (KM) - Technology Roadmap" --ado-repo test-repo-Migrated --github-org digimangos-playground --github-repo character-test-1 --wait --ado-pat xxx --github-pat xxx
[11:33] [WARNING] You are not running the ado2gh CLI as a gh extension. This is not recommended, please run: gh extension install github/gh-ado2gh
[11:33] [WARNING] You are running an older version of the ado2gh CLI [v<IP_ADDRESS>]. The latest version is v0.37.
[11:33] [WARNING] Please update by running: gh extension upgrade ado2gh
[11:33] [INFO] Migrating Repo...
[11:33] [INFO] ADO ORG: digimangos
[11:33] [INFO] ADO TEAM PROJECT: Knowledge Management (KM) - Technology Roadmap
[11:33] [INFO] ADO REPO: test-repo-Migrated
[11:33] [INFO] GITHUB ORG: digimangos-playground
[11:33] [INFO] GITHUB REPO: character-test-1
[11:33] [INFO] WAIT: true
[11:33] [INFO] ADO PAT: ***
[11:33] [INFO] GITHUB PAT: ***
[11:33] [ERROR] Migration Failed. Migration ID: RM_kgDaACQ4MWQxYTk2Mi0zOTBjLTRkY2EtYmIyYi0xMzZhY2M2MWVkOTE
[11:33] [INFO] Migration log available at  or by running `gh ado2gh download-logs --github-target-org digimangos-playground --target-repo character-test-1`
[11:33] [ERROR] The source repository url https://dev.azure.com/digimangos/Knowledge+Management+(KM)+-+Technology+Roadmap/_git/test-repo-Migrated is invalid. Please ensure the source url you gave is correct and properly formatted.

The escaping looks wrong, shouldn't the url in the error:
https://dev.azure.com/digimangos/Knowledge+Management+(KM)+-+Technology+Roadmap/_git/test-repo-Migrated

but I think it should be:
https://dev.azure.com/digimangos/Knowledge%20Management%20%28KM%29%20-%20Technology%20Roadmap/_git/test-repo-Migrated

I think the change I just did will fix it, I'll do some manual testing before I merge this and show you the results


updating versions of angular and a lot of other npm dependencies

@guilhebl noticed this one hasn't been accepted, Is @qdouble still maintaining this project. have you tried to upgrade this to angular5? I have been getting tons of errors, I was wondering if you have any plans for angular 5. thanks

@pouyaz123 Not sure if this project is being actively maintained anymore,
initially I started using it as a seed project since it had angular
universal configured with server side rendering capability and a useful
build configuration with some predefined tasks using Webpack but when I
realized it's not being actively maintained I switched to other seed
projects (since they can contain useful updates), if you're looking for
up-to-date Angular 5 starter projects:

https://github.com/gdi2290/angular-starter
https://github.com/mgechev/angular-seed

these are 2 popular started proejcts that are being actively maintained and
are already using Angular 5 (although they lack angular universal server
side rendering).
On Mon, Dec 11, 2017 at 1:42 PM, pouya zadrafiei<EMAIL_ADDRESS>wrote:

@guilhebl https://github.com/guilhebl noticed this one hasn't been
accepted, Is @qdouble https://github.com/qdouble still maintaining this
project. have you tried to upgrade this to angular5? I have been getting
tons of errors, I was wondering if you have any plans for angular 5. thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/qdouble/angular-webpack2-starter/pull/307#issuecomment-350867696,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADSphvSDA3FbrMm_1TFrw2PGidkixRcYks5s_aHBgaJpZM4PZuTw
.


AdaptiveCards API Handling

Hi,
I'd like to have the ability to create an AdaptiveCard Object, and during the creation process to validate if there is an existing Webhook supporting the "attachmentAction", if not then create one using the same Target as the "messages" Webhook, to accelerate the adoption and testing of this feature.
Flow
Create AdaptiveCard Object

Validate if a Webhook for "attachmentAction" exists
If not, create a new WH and use the message WH Target Property

Hi @fbellom
thanks for opening this issue. Just to verify, would you want a code sample on how to accomplish such a workflow using the webexteamssdk or are you looking for this workflow to be natively included in the webexteamssdk?

Closing feature request; this issue is over four years old and appears to be asking for what may be bespoke higher-level functionality to be added to the SDK, which if enabled by default, would creating surprising functionality for most users. If we implemented this, it would likely have to be disabled by default and enabled with a flag.
Adding a webhook should be straightforward for an SDK user.


Daily Arena fights

Hello,
when i try to run the script, it works at first and after it comes to the arena fights, it just says: VerifyRGB: Failure! Expected 3c2814, but got fff0df instead.
Maybe you can help me with that.

Hey there!
The reason to that is because I haven't been updating the pixel RGB values lately. Usually every time Lilith updates it's app, the script breaks because the RGB values are wrong.
I've written a small notice on the README file. For now, I just ask for a bit of patience until I get this resolved. At least 2 weeks most likely.
If you'd like to fix it yourself, I can try and make a quick explanation on how to. Just let me know if that interests you.

Yes it is. Check this fork out, it does just that.


the update 1.22 vs code not working in Ubuntu 16.04

Does anybody knows if this version of vs code has any problem on Launching?

VSCode Version: code_1.22.1-1522974421_amd64
OS Version: Ubuntu 16.04

Steps to Reproduce:

Update by download page.
Install by double clicking in .deb.
Try to lauch the vs code and it doesn't work.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

@marciokuroki what happens when you run code --verbose or code --log debug from a terminal?

I'll try to run code --verbose or code --log debug and I'll put the log here

Well, I've tried to reinstall the version of vs code and simply it works!
So I have to close this issue...
Thanks anyway, I really have no idea why didn't worked before.
If it happens again I'll try to be more detailed as possible.

I installed again, but passing some days it happens again. Now I run code --verbose and it show this:
[1733:0418/155912.245117:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 15:59:12] Sending env to running instance...
[main 15:59:12] [ 'TypeError: Cannot convert undefined or null to object',
'    at Function.keys ()',
'    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:37:233',
'    at Array.forEach (native)',
'    at Object.t.assign (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:37:199)',
'    at e.openInBrowserWindow (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:406:461)',
'    at e.doOpen (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:400:880)',
'    at e.open (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:397:176)',
'    at e.startOpenWindow (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:297:283)',
'    at e.start (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:296:711)',
'    at e.call (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:295:280)',
'    at e.onCommonRequest (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:140:713)',
'    at e.onMessage (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:140:549)',
'    at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:140:342',
'    at e.fire (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:94:344)',
'    at Socket. (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:148:536)',
'    at emitOne (events.js:96:13)',
'    at Socket.emit (events.js:191:7)',
'    at readableAddChunk (_stream_readable.js:178:18)',
'    at Socket.Readable.push (_stream_readable.js:136:10)',
'    at Pipe.onread (net.js:560:20)' ]
[main 15:59:12] Lifecycle#kill()

@Tyriar, any help?! :smile:

I think this may have been fixed in the latest, could you try on the Insiders build? https://code.visualstudio.com/insiders/

@Tyriar apparently now it is working fine! Since I've tried this version the problem didn't happen anymore.
Thanks!


Making predictions using eta

Hi, thank you for the nice code and documentation! I was able to install and train the fslda model on my dataset.
I would like to obtain predictions and construct an ROC curve using the trained model. I believe the following method is correct, and was wondering if you could double-check?
from sklearn.metrics import roc_auc_score
# fslda transform fslda_model.npy test.npy test_transformed.npy
slda_scores = np.dot(transformed_X_test.T, eta) # N x 2 matrix
slda_scores_pos = slda_scores[:,1] # scores for y = 1
auc = roc_auc_score(test_labels, slda_scores)

For prediction that is correct. The decision function is a little bit different because it also uses the alpha prior to smooth the decision function a bit. You can see the code that does the same in C++ in LDA.cpp line 195.
The differences are highlighted in the following numpy pseudocode:
# your code
scores = x_test.T.dot(eta)

# smoothed version
x_test = x_test - alpha.T  # shapes could be wrong but you get the idea
x_test /= x_test.sum(axis=1, keepdims=True)
scores = x_test.T.dot(eta)

Since alpha is the same for every document (and every topic in lda++) the predictions won't change but the scores will be smoothed a bit.
You could try both and you could also try training on the transformed training data from scratch using logistic regression or SVM which might get a bit more performance since you can use regularization and other techniques to improve upon plain logistic regression.

This works, thanks!


vbv

(
Вс, 19 нояб. 2023 г. в 07:13, ROMAN MAKSIMOV @.***>:

Closed #5 https://github.com/Franceslav/Synergia/pull/5.
—
Reply to this email directly, view it on GitHub
https://github.com/Franceslav/Synergia/pull/5#event-11003118842, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BEDIPMD7GEG4HOCG56IZDN3YFGPR7AVCNFSM6AAAAAA7RQDFJ2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAYDGMJRHA4DIMQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Add R CMD check to build

The build should do a routine R CMD check to avoid last minute issues when it comes to CRAN.

Sounds good

Sounds fine to me.  It doesn't take too long since we don't run any tests.


kubectx error: " " is not a valid repository/tag: invalid reference format

Getting below error when running kubectx.  Can you help?
docker: Error parsing reference: " " is not a valid repository/tag: invalid reference format

We have nothing to do with docker.
How are you executing kubectx? Is that a bash alias? What OS is this?


Sorting in tool mode: hash-error.

I tried to setup a sorting in tool mode and used the config file from this question on tex.SX:
http://tex.stackexchange.com/questions/269242/how-to-sort-a-bib-file-with-biber
<?xml version="1.0" encoding="UTF-8"?>
<config>
    <sorting>
        <presort>mm</presort>
        <sort order="1">
            <sortitem order="1">presort</sortitem>
        </sort>
        <sort order="2" final="1">
            <sortitem order="1">sortkey</sortitem>
        </sort>
        <sort order="3">
            <sortitem order="1">sortname</sortitem>
            <sortitem order="2">author</sortitem>
            <sortitem order="3">editor</sortitem>
            <sortitem order="4">translator</sortitem>
            <sortitem order="5">sorttitle</sortitem>
            <sortitem order="6">title</sortitem>
        </sort>
        <sort order="4">
            <sortitem order="1">sortyear</sortitem>
            <sortitem order="2">year</sortitem>
        </sort>
        <sort order="5">
            <sortitem order="1">sorttitle</sortitem>
            <sortitem order="2">title</sortitem>
        </sort>
        <sort order="6">
            <sortitem order="1" pad_side="left" pad_width="4" pad_char="0">volume</sortitem>
            <sortitem order="2">0000</sortitem>
        </sort>
    </sorting>
</config>

As bib-file I used a minimal entry:
@misc{regular,
      author = {Paolo Italia}}

When I call biber with this files I get an error message:
G:\Z-Test>biber --tool --configfile=anyvt-sorting.conf lit.bib
INFO - This is Biber 2.4 running in TOOL mode
INFO - Config file is 'anyvt-sorting.conf'
INFO - Logfile is 'lit.bib.blg'
INFO - Looking for bibtex format file 'lit.bib'
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'lit.bib'
Can't use an undefined value as a HASH reference at C:\Users\XXXX\AppData\Lo
cal\Temp\par-4e696c696c616e64\cache-a29446bef12fcafa74d1affb0f5c227cf9ac0385\inc
\lib/Biber/Internals.pm line 1314.

and no tool-bib is created.

Any non-trivial tool mode usage should, as per the manual, copy the default biber-tool.conf and just change the parts you need. That file contains the defaults for the bit which is missing here. Run biber --tool-config to see the location of that file.

I see, I had somehow thought it would like with a bcf load the conf by default. But it doesn't work with biber.conf either:
I copied biber.conf to sorting.conf.
I called biber --tool --configfile=sorting.conf lit.bib: This worked fine.
I replaced in sorting.conf
 <sorting>
    <presort>mm</presort>
    <sort order="1">
      <sortitem order="1">citeorder</sortitem>
    </sort>
  </sorting>

with the <sorting>...</sorting> from above and got again an hash error. It looks as if biber is choking on sortitem which refer to name fields. In my  example lit.bib (with an author field) this sorting gives the hash error:
  <sorting>
        <presort>mm</presort>
        <sort order="1">
            <sortitem order="1">author</sortitem>
        </sort>
    </sorting>

Hmm, ok, I will check this later tonight and see about always loading the default conf first.

It does load the biber-tool.conf first and then overrides this with your conf file. Anyway, this was a bug now fixed in 2.5 DEV and regression test in place.


Installation instructions are difficult to understand

Hi, so I had a bit of a more difficult time installing the plugin since the README confused me a bit with the wording making me think that all of the dll's in the folder needed to be copied instead of the one. Doing this made FanControl repeatedly crash on startup, so it took me a while to figure out. My rambling aside, I think the wording in the installation should be more specific as to specify only copying the needed dll to the Plugins folder, since people like me with ADHD so easily miss that detail, haha.
Thanks, and keep up the great work.

@Blarnix, what are the correct dlls to copy?

@Blarnix, what are the correct dlls to copy?

@ddenev Should just be ALDXWrapper.dll, but I couldn't get the sensors to connect correctly personally, so I haven't played with it since. I believe that is the correct one, though.

Still unkown how to install this pluggin?

https://github.com/Rem0o/FanControl.ADLX/releases/tag/V0.1


Plans for supporting v3

Any plans on supporting this in the near future?

@davissp14 None. I am not using it v3 actively. I will try to work on etcd-ruby after may.


Renamed Hedgehog.Gen.Aux to Hedgehog.Gen.Double

AUX is a reserved file name on Windows.

bors r+


BUG - When you replay the bubble speed increases. You shoot faster the second time.

@johnnycrich This was not fixed with the latest build. When you play a second level you always shoot faster.


[D2IQ-62647] Nifi artifacts migration from S3 to downloads.mesosphere.com

Resolves D2IQ-62647
Migrated the S3 bucket artifacts to downloads.mesosphere.com to avoid the issues after S3 bucket deletion. Changed existing resource-uris, images paths.
Soaked on soak200s, soak201s clusters.

@ankitcid yes, all soaked


Create LatticeCollection class for populating domain

Implement a class LatticeCollection that takes the following arguments:

np : number of particles in the lattice -> int -> ex : 3
types : types of particles -> vector of size np -> ex : [ Ta, Ni, Cu ] or [ 1, 2, 2 ]
positions : reduced positions of particles (x,y,z) -> vector -> ex : [ [0,0,0], [0.2, 0.5, 0.3], [0.7, 0.5, 0.8] ]
size : lengths along x,y,z axes -> Vec3d -> ex : [ 5.2 m, 5.3 m, 6.1 m]
noise : noise on particles positions -> double -> ex : 0.0043
noise_cutoff : maximum noise on particles positions -> double -> ex : 0.004

Done.
Still need to check the assert on the vector positions elements (between 0 and 1). Not sure if it's working.
This branch is up-to-date with the main branch of exaNBody.


Support PHPunit 5

Haven't tried it, but should also run on v5
https://github.com/2amigos/yii2-arrayquery-component/blob/master/composer.json#L32

i'll do asap. Thanks @schmunk42

It's not too critical.
I had an issue with another package and thought this one was causing the problems, but it wasn't ;)

done


Test Suite Tab in Tables

Based on https://github.com/open-metadata/OpenMetadata/issues/4652

After https://github.com/open-metadata/OpenMetadata/issues/5832

Prepare a new Tab in the Table view to handle Tests Suites for that table and a new global page view from settings

@pmbrull , is this relevant anymore? or we can close it?

let's kill this one, all new mocks are already in place. Thanks for flagging


[util,topgen] Remove support for templated ips

Check modules have no 'attr' field, or it is ipgen, reggen_top, or reggen_only.
Part of #8440

Thanks for this! It looks good but we're failing lint because recent versions of flake8 don't seem to notice uses through "# type: foo" comments. I'd probably suggest prefixing the PR with a commit that moves the types out of the comments.

I inserted a commit before the other two that fixes the # type warnings.
PTAL

Oops, there is more code in util that need cleaning up from templated ips. I'll make this a draft PR till ready.

Ready to go, PTAL

Merging this since the changes cannot cause vivado failure: any RTL change would have been caught by ci/scripts/check-generated.sh.


The parameter test.combine_ratio seem invalid when running inference

Hello,
The problem is that the parameter w or "{'test': {'combine_ratio': 0.6}}" in the readme.md  doesn't seem to work when running inference.
I tried setting values 0, 1, 0.1, 0.9 and compared to the default result of w=0.6 (Also tested in 3 trained instances) ,this 11 result are the same, like :
Cls@1:0.938     Cls@5:0.988     Loc@1:0.481     Loc@5:0.506     Loc_gt:0.514
M-ins:0.000     Part:0.008      More:0.440      Right:0.481     Wrong:0.008     Cls:0.062

(I'm trying to replicate how fr or fd works alone.)
I confirm that I successfully adjusted the parameters  ( source code location   and  output.INFO below ),
"INFO: Test Class [0-9]: [dataset: cub] [eval mode: top1] [cam thr: 0.23] [combine ratio: 0.9]".
So I don't understand why the result will be the same.(or may be )
After reading the paper, I understood w as:
fc = fd( 1-w ) + fr ( w )
w>>0,fc>>fd, heatmap'box will small and incomplete;
w>>1,fc>>fr, heatmap'box will much bigger cause deteriorated by background noise;
I successfully trained this project on one 3090 24G close to the paper,
by  reduced train.batch_size and set larger gradient_accumulation_steps.
(This parameter is set w=0.5 when train_unet.)

Your results at cub seem to be very low. The possible reason is that the model has overfitted in training stage 2. What's the performance of the model after training stage 1?

My statement is inappropriate. I trained 3 models and tried to modify w on 2 to test.
The data just shown above is a training effect after I changed the prompt template.
(on 3070 for a simple test of w)
And I reproduce your results using the default prompt template on 3090 as follows

Val Epoch: [0][2897/2897]
Cls@1:0.887	Cls@5:0.979	Loc@1:0.871	Loc@5:0.962	Loc_gt:0.982
M-ins:0.000	Part:0.014	More:0.001	Right:0.871	Wrong:0.000	Cls:0.113

About "possible reason--overfitted in training stage 2".

Are you saying that in the paper, only trained fr (set w=1) and SD's default unet are used for test on CUB ?
(or just set w=0.6, run test, Used to verify that it is worse than the default unet)
Like the article's 6.3.baseline Table2 of ImageNet-1K :
Embedding  Top-1 Loc     Top-5 Loc     GT-kno. Loc
      fd                61.2               69.0               70.4

right?
I'll do it right away and analyze/troubleshoot.  (Both of the above)
When I do point2 , I know if it's overfitting.

About the environment

I experimented with the local 3070 8G and the server 3090 24G, and the two experimental results shown so far are from the 3070 8G
I'm still experimenting with parameters.
At least under the following conditions, the 3090 is less effective than the 3070:

Rent Server 3090 24G {
Phase 1 train_token
train:
    batch_size: 2 # origin 4
    gradient_accumulation_steps: 2 # origin 1.  The total amount is same
	It becomes 90% 67C P2 273W / 350W |  19542MiB / 24576MiB |    100%      Default

Phase 2 Read:
    batch_size: 1 # origin4
    gradient_accumulation_steps: 64 # origin 16.  The total amount is same
	It becomes 86% 64C P2 289W / 350W |  22702MiB / 24576MiB |    100%      Default |

}

local 3070 8g {
    data:
        keep_class:  [0, 9] # None, or say All200,

Phase 1 train_token
    train:
        batch_size: 1 # 4
        gradient_accumulation_steps: 2 # origin 1.   This is equivalent to half of the original simulated batch.

Phase 2 train_unet
    train:
        batch_size: 1 # 4
        gradient_accumulation_steps: 4 # origin 16.   The total amount is 16 times smaller. 4 for 8h, 3 for 4.5h.
}

# `total amount`  I mean  `original simulated batch=batch_size * gradient_accumulation_steps`.
# batch_size limited by video memory.
# gradient_accumulation_steps try to close the `total amount` and be able to run without `loss==Nan`.

Just said the 'worse' result using my prompt on 3090:
my prompt, All200 classes on 3090, test:

Val Epoch: [0][2897/2897]
Cls@1:0.887	Cls@5:0.979	Loc@1:0.308	Loc@5:0.334	Loc_gt:0.341
M-ins:0.000	Part:0.184	More:0.060	Right:0.308	Wrong:0.336	Cls:0.113

my prompt, [0,9] classes on 3070, test:

Val Epoch: [0][243/243]
Cls@1:0.938	Cls@5:0.988	Loc@1:0.481	Loc@5:0.506	Loc_gt:0.514
M-ins:0.000	Part:0.008	More:0.440	Right:0.481	Wrong:0.008	Cls:0.062

# The number of categories and training parameters are different. Both are retrained independently(stage 1&2),
# just for a simple contrast.

Thank you very much for the reply!

Reply 1. Based on the result, it seems that you have successfully reproduced the paper result, i.e., 98.2 gt-known loc on CUB, ovo.
Reply 2. In fact, you can also get good performance on a CUB using SD's default unet (98.0 gt-known loc), and a slight performance boost if you finetune the unet (98.3 gt-known loc). At CUB, we found that fd without training is good enough, probably because CUB does not have enough data to train a robust fr and performance on CUB is nearing saturation.
Reply 3. Based on our experiments, the results of the paper can be reproduced using 3090, and a similar GPU should also work.

As you said, I noticed that the accuracy really didn't change much before and after training the unet on the dataset CUB (every 40 steps), as shown in the figure.

I think it may be that CUB as a fine-grained dataset,
on the one hand does not take advantage of the pre-training effect of CLIP very well,
and on the other hand, the fr generated in this method does not work (I tried set w to 1 and 0, they are the same).
(Maybe it's because fds are all birds, so CLIP can't distinguish.)
I tried to change an fd that might distinguish between larger datasets.
In order to take advantage of GenPromp's innovative approach,
I tried to change a datasets which may cause a larger distinguish fd .
Normal categorical datasets, such as the small-scale caltech101 (which I think is more common for CLIP) and the animal dataset OxfordPets.
But I found that there was a problem that I couldn't solve, how the json was generated
GenPromp\ckpts\classification\cub_efficientnetb7.json
GenPromp\datasets\base.py use yaml.test.load_class_path :

self.pred_logits = None
        if self.test_mode:
            with open(self.load_class_path, 'r') as f:
                name2result = json.load(f)
                self.pred_logits = [torch.Tensor(name2result[name]['pred_scores']) for name in self.names]
        self.image_paths = [os.path.join(image_dir, name + '.JPEG') for name in self.names]
        self.num_images = len(self.labels)

The two mentions of benchmark in the paper seems to be this json file.
Json file contents like:
{"001.Black_footed_Albatross/Black_Footed_Albatross_0046_18.jpg": {"pred_label": 0, "pred_score": 0.7712172865867615, "pred_scores": [0.7712172865867615, 0.1352606564760208, 0.07805578410625458,
...

Hopefully you can tell me the source where the file is generated.

We find that fr is effective on more difficult imagenet, while less effective on cub.
This json file is the classification result of a classification network (finetuned) in mmpretrain. This project only contains the classification results of imagenet and cub. If you need to make wsol on other datasets, you can use gtk mode, which uses the gt class as prompt and requires no classification results.


Workaround for tensorflow 2.0

Is there any workaround for tensorflow 2.0?

+1

+1

I found the problem to be with loading the facenet model, did you find a workaround?

update: you can simply run the code  for inference on tf2 using
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
and the frozen model provided.

@Alloooshe Hi, could you share your solution with more details?same issue with you.

@github2016-yuan just use the frozen model pb, if you don't have it then I didn't find a work around

I solved it by using the pb files instead of ckpt file in tf2.x (I am using tf2.2.0)
Here is my code and hope it helps someone who has the same issue.
with tf.gfile.FastGFile("20180402-114759.pb", 'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
_ = tf.import_graph_def(graph_def, name='')
images_placeholder = tf.get_default_graph().get_tensor_by_name("input:0")
embeddings = tf.get_default_graph().get_tensor_by_name("embeddings:0")
phase_train_placeholder = tf.get_default_graph().get_tensor_by_name("phase_train:0")

Still facing the same issue got error like below
results = c_api.TF_GraphImportGraphDefWithResults(
tensorflow.python.framework.errors_impl.InvalidArgumentError: Node 'gradients/InceptionResnetV1/Bottleneck/BatchNorm/cond/FusedBatchNorm_1_grad/FusedBatchNormGrad' has an _output_shapes attribute inconsistent with the GraphDef for output #3: Dimension 0 in both shapes must be equal, but are 0 and 512. Shapes are [0] and [512].

@github2016-yuan What file can I modify the code you told me?

Hi, which python file and on wich location should we update?

im having a similar problem to @rohitdoddapani, trying to load in my .meta file and I get error
ValueError: Node 'gradients/UNet/conv0_up/batch_normalization_3/FusedBatchNorm_grad/FusedBatchNormGrad' has an _output_shapes attribute inconsistent with the GraphDef for output #3: Dimension 0 in both shapes must be equal, but are 0 and 16. Shapes are [0] and [16].


Arbitrary-precision bigints

Add a flexibly-sized bigint type that grows as required, conforming to BinaryInteger.

So I have a pretty good implementation of this already, would I need to propose it as a new module or does this issue mean it's gone through that part of the process?

I think you can skip step 1, but otherwise that's the right process to follow.


FFRouting lab 01

This is a simple OSPF lab example using FRRouting containers in a ring topology. I created it to demonstrate how to create a lab of "linux"-type nodes that start with a working configuration prepared by the lab developer.
Note that I am using the frrouting:7.5.1 tag for the routers, instead of the latest tag. There is currently a major bug in frrouting:latest that prevents the systems from booting.
For your consideration.

Hi @blinklet
I have added a doc site entry for you contribution and made a few slight changes. Let me know if this looks good to you.
PS> you can run a web server with local changes with a single command:
docker run --rm -d  -p 8000:8000 -v $(pwd):/docs squidfunk/mkdocs-material:7.1.0

Hi @hellt
Yes, this looks good.


Example not working [ANDROID]

I'm trying out your plugin, but the example app doesn't seem to work at all.
I'm using two real devices, both showing the WiFi direct notification, but neither seeing the other.
This si my flutter doctor output:

I'm probably missing something, but I can't figure it out
Permissionas are set, too.

I tried on iOS simulators, and it's working just fine, just like the README gif.
I can't really get it

Tested, same not work on Android in real devices.

android if using wifi means using the hotspot, and will affect internet connection
android only supports Bluetooth
If you still want to use wifi with android you can refer to
https://github.com/VNAPNIC/UDP-TCP-Flutter

I tested this on Android devices as well, and I had the same result. The devices are not able to see each other.

@VNAPNIC Thanks for your answer.
I use exactly the same from your example project:
await nearbyService.init(        serviceType: 'mpconn',        deviceName: devInfo,        strategy: Strategy.P2P_CLUSTER,        callback: (isRunning) async {          if (isRunning) {            if (widget.deviceType == DeviceType.browser) {              await nearbyService.stopBrowsingForPeers();              await nearbyService.startBrowsingForPeers();            } else {              await nearbyService.stopAdvertisingPeer();              await nearbyService.startAdvertisingPeer();               await nearbyService.stopBrowsingForPeers();              await nearbyService.startBrowsingForPeers();            }          }        });
the Strategy.P2P_CLUSTER use Bluetooth, right? if yes, it doesn't work.

class 'kotlin.unit' was compiled with an incompatible version of kotlin. the binary version of its metadata is 1.5.1, expected version is 1.1.16.
execution failed for task ': "flutter_nearby_connections:" compiledebugkotlin'.

@Heshara I had to make a couple of changes to get the app to compile:

Update the Compile and Target SDK Versions  to 30 in example/android/app/build.gradle
Update the kotlin version variable in example/android/build.gradle to a newer version (I used 1.4.32)
In the same file, update the version number at the end of the gradle dependency to use a newer version (I used 4.1.3)

This solved the incompatible version of kotlin error for me.

@smoore-edare thanks a lot it fixed the compilation error! Still Android devices are unable to identify each other

class 'kotlin.unit' was compiled with an incompatible version of kotlin. the binary version of its metadata is 1.5.1, expected version is 1.1.16.
execution failed for task ': "flutter_nearby_connections:" compiledebugkotlin'.

@Heshara I had to make a couple of changes to get the app to compile:

Update the Compile and Target SDK Versions  to 30 in example/android/app/build.gradle
Update the kotlin version variable in example/android/build.gradle to a newer version (I used 1.4.32)
In the same file, update the version number at the end of the gradle dependency to use a newer version (I used 4.1.3)

This solved the incompatible version of kotlin error for me.

Fixed on version 1.1.0 https://github.com/VNAPNIC/flutter_nearby_connections/releases/tag/1.1.0

Me too! Still not working in real android devices


Test PR to debug a workflow

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
13415

Relevant Lines:
13810

💛  - Coveralls

CIFuzz fails on different toolchains, and broke without our intervention.


How not to use Jetty websocket (listen to raw upgrade requests)

I'm so tired of Jetty after hours of trying to figure the API out with their old and horrible docs and how to correctly reject handshakes because header x is missing and all that so now I want to use anything but Jetty. I want to listen to the raw upgrade request so that I can handle everything on my own, is this possible? (websocket)

So yeah I used before to do the rejection and stuff but I'd love if this was possible because I still dislike how the Jetty WebSockets work and would love to use another library.


Backstage docs

Added initial docs folder for backstage application

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

Project coverage is 76.96%. Comparing base (adbf25e) to head (81f096e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1087   +/-   ##
=======================================
  Coverage   76.96%   76.96%
=======================================
  Files          68       68
  Lines         673      673
  Branches      100      120   +20
=======================================
  Hits          518      518
+ Misses        155      139   -16
- Partials        0       16   +16

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


Fix typo in README.md

Based on previous pull requests, it seems that you appreciate these sort of corrections.
"The following" is treated as either singular or plural. See here, section 'noun', number 2.

Merged, thank you!


Publish on Operatorhub.io

Would be awesome to have Dragonfly operator available in operatorhub.io

+1


Rotated map with maxBounds does funny movement

Originally reported by @hyperknot:
https://github.com/hyperknot/Leaflet/issues/5
maxBoundsViscosity: 1
+
setMaxBounds
+
setBearing
+
pan anywhere on low zoom
=> funny dancing movement

I am currently looking into this, but have a functional question:
Given the maxBounds are outside the current view, should the rotated view always be fully contained within these bounds (except when zooming out past the maxBounds)? Because that would mean that when rotated, the corners of the maxBounds are not viewable. But maybe that's what you get when using maxBounds.
Another way to do it would be to limit the center of the view to be within the maxBounds. That would mean that corners are fully viewable, but half the view area could be outside of the maxBounds.
Or maybe some mix-solution of the two is possible, where the view is generally restricted by the maxBounds, but still somehow allows corners to be viewable...?
Opinions?


auto eat issue

playing TNP Limitless 7 and auto eat is not eating infinity ham ;( or im just dumb

Does it work with vanilla food items?

it works with normal and modded but not that

cheatutils relies on food data property of the item you are holding in offhand. If this property is missing, mod assumes you are not holding food and don't try to use this item. What is this infinity ham? Maybe something very custom and mod specific?

its from the mod relics its just food that doesnt run out basiclly it doesnt get consumed maybe thats why?

Yes... I checked their source code, and this is how they define infinity ham item properties:
https://github.com/Octo-Studios/relics/blob/1.21.0/src/main/java/it/hurts/sskirillss/relics/items/relics/InfinityHamItem.java#L46
new Item.Properties()
    .stacksTo(1)
    .rarity(Rarity.RARE)

And this is how porkchop properties is defined in vanilla Minecraft:
new Item.Properties()
    .food(Foods.PORKCHOP)

There is no "food" property on infinity ham.

You can probably code your own auto eat from events scripting

are you in 1.21+ version?

1.20.1

1.20.1 probably lacks some features to implement this

bummer


Accessing internal hidden state

Hi,
I have a question regarding accessing the internal state of an LSTM module .
Say I have the following:
require 'rnn'
di,dh,do,T = 10,100,20,3
fastNN = nn.FastLSTM(dh,dh)
local rn = nn.Sequential()
  :add(nn.Linear(di, dh))
  :add(fastNN:clone())
  :add(fastNN:clone())
  :add(nn.Linear(dh, do))
rn = nn.Sequencer(nn.Recursor(rn, T))
--Assume A,B,C correctly defined
O1 = rn:forward({A,B,C}) --F1
O2 = rn:forward({A,B,C}) --F2

I'd like to access the final hidden state for the LSTMs for rn after the output O1 is computed. (i.e at the end of F1) and use it to set the initial hidden state of the LSTM just before F2.
Is there a way to do this?

Because you aren't calling forget between both calls to forward, the initial state of the second forward is already set to the output of the first one. This will demonstrate this :
require 'rnn'
di,dh,dout,T = 10,100,20,3
fastNN1 = nn.FastLSTM(dh,dh)
fastNN2 = nn.FastLSTM(dh,dh)
local rn = nn.Sequential()
  :add(nn.Linear(di, dh))
  :add(fastNN1)
  :add(fastNN2)
  :add(nn.Linear(dh, dout))
rn = nn.Sequencer(nn.Recursor(rn, T))
--Assume A,B,C correctly defined
local inputs = {torch.randn(3,di), torch.randn(3,di), torch.randn(3,di)}

O1 = rn:forward(inputs) --F1
O2 = rn:forward(inputs) --F2

print(O2[1]:sum(), O2[2]:sum(), O2[3]:sum())

rn:zeroGradParameters()
rn:forget()

O1 = rn:forward(inputs) --F1
local output1, cell1 = fastNN1.output, fastNN1.cell
local output2, cell2 = fastNN2.output, fastNN2.cell
rn:forget()

fastNN1.prevOutput, fastNN1.prevCell = output1, cell1
fastNN2.prevOutput, fastNN2.prevCell = output2, cell2

O2 = rn:forward(inputs) --F2

print(O2[1]:sum(), O2[2]:sum(), O2[3]:sum())

Hi nicholas, thanks a lot for clarifying that!
The reason I ask is because I'm trying to learn on a long sequence that doesn't fit on my GPU and I'm hoping to do it in chunks.
Does the same principle apply for the backward pass?  Said differently, if I have a sequence defined as [inputs,inputs] can I do the following:
O1 = rn:forward(inputs) --F1
O2 = rn:forward(inputs) --F2

--compute gradO1,gradO2
rn:backward(inputs,gradO2)
rn:backward(inputs,gradO1)

Would that persist the gradient with respect to the cells and outputs appropriately?

@rahulk90 No. Do this instead :
-- this will tell the rnn to remember the last output
rn:remember('both')
-- first sequence
O1 = rn:forward(inputs1)
rn:backward(inputs1, grad1)
rn:updateParameters(0.1)
-- second sequence
O1 = rn:forward(inputs1)
rn:backward(inputs1, grad1)
rn:updateParameters(0.1)
-- and so forth and so on

@nicholas-leonard perhaps I'm missing something that happens internally but doesn't the backward pass for the first sequence need gradients with respect to the cell state from the second sequence? In the example above, the first backward pass looks like it wouldn't have access to that.
Finally, could I use optim with this approach? If so, does this suffice?
w,dw = rn:getParameters()
function opfunc(...)
 --forward/backward as above
end
w,dw = optim.rmsprop(opfunc, w)

or is there other bookkeeping to do.

@rahulk90 If you do as you say and forward twice and then backward twice, it is the same as just forwarding one long sequence followed by a backward of the same doubly long sequence. So in terms of your GPU memory constraint, this will use double the memory. This is because a backward pass through a sequence needs to save intermediate input/output states for each time-step.
The only way to save on memory is to split your training into smaller sequences as I demonstrated above. Just make the size of your sequence as large as you can afford to fit on your GPU and call forward -> backward -> update  for each sequence. The remember('both') still has the advantage of using the output of the last sequence as the initial hidden state of your next one.
Yes it works with optim.

@nicholas-leonard Thanks a lot! I understand what you mean. I'll try this out on some test cases and get back to this.

Hi, I don't quite follow this. If you define a Sequencer first and do forward, the default value of self.train is nil, so in updateOutput 'self.train ~= false' is going to be true, and because _remember is 'neither' by default, which then calls module:forget()?


The trails did not generate when user deselect the trail option and select the bubbles again and try to generate trails

SEVERITY:  Major
MODULE: Bubble Chart
PLATFORM: Windows 7 / Chrome 49.0
STEPS TO REPRODUCE:

Navigate to the URL: http://tools-stage.gapminderdev.org/tools/bubbles
Click on China bubble
Drag the slider from start to end to make trails
Click trails icon to disappear trails
Click the selected bubble to unselect it
Click any other bubble
Observe this time the trails icon is not selected when the user selected the bubble

ACTUAL RESULTS:
The trails did not generate when user deselect the trail option and select the bubbles again and try to generate trails
EXPECTED RESULTS:
The trails should generated
SCREENSHOT / Gif :
http://g.recordit.co/qDyJLdbkmQ.gif

this is expected. you disabled trails, so they didn't show up


Update examples section on README.md

To have a clear examples, this will make all methods to use "deviceNames"

Thanks, nice catch completely overlooked this.


Changing a user password

@tarlepp just wondering how you envisage changing a user password would work? Would you hijack the /user/ end-point somehow or would you introduce a Passport controller?
Thanks in advance.

There is basically two possible endpoints for this 1) UserController 2) AuthController so basically just add custom action to one of these to do actual password change and remember to add 'authenticated' policy to that route.
I hope this helps.

Did you get this working?

I am trying to get this working right now, from an admin section standpoint for creating a new user. I have this function:
model.savePassword = function savePassword(password) {
                var self = this;

                return DataService
                    .create('auth/local', { password: password })
                    .then(
                    function onSuccess(response) {
                        return response.data;
                    },
                    function onError(error) {
                        $log.error('UserModel.savePassword() failed.', error, self.endpoint, password);
                    })
                ;
            };

But I cannot for the life of me figure out what url I should be POSTing to. afaict the function I want is in services/protocols/local.js:28 connect(), is this correct?

I got it working like so:
I added a skeleton PassportController.js to sails to enable Passport routes.
I added a function to the controller I was using to create a user:
$scope.addUser = function addUser() {
                    var data = {
                        "protocol":"local",
                        "password":$scope.password,
                        "user": angular.copy($scope.user)
                    };
                    data.user.createdUser
                        = data.user.updatedUser
                        = UserService.user().id;

                    UserModel
                        .create(data)
                        .then(function onSuccess(result) {
                            MessageService.success('New user added successfully');

                            $state.go('admin.user-management');
                        })
                    ;
                };

I overwrote create() in the UserModel:
var model = new DataModel('user');

            model.create = function create(data) {
                return DataService
                    .create('passport', data)
                    .then(
                        function onSuccess(result) {
                            return result;
                        },
                        function onError(error) {
                            $log.error('UserModel.create() failed.', error, 'passport', data);
                        }
                    )
                ;
            };

            return model;

This lets me POST /passport to create a new passport and by extension the user too.

closing this one.


Terraform 1.10 Support Missing

Describe the Bug
Terraform 1.10 dropped support for several legacy backend configuration options related to role assumption see the release notes. The new format, when using role assumption, has the values as nested within an assume_role block, which Atmos does not produce.
Expected Behavior
Atmos is able to properly support Terraform 1.10 and the underlying changes to s3 backend
Steps to Reproduce
Start with any atmos stack, running any terraform version 1.9.x or older.

deploy a resource using 1.9.x
Upgrade terraform to 1.10.x
Attempt to run atmos commands using this TF version.

Atmos will consistently produce an error stating the backend has changed and will not automatically reconfigure or re-init:
template: all-atmos-sections:452:52: executing "all-atmos-sections" at <atmos.Component>: error calling Component: exit status 1

Error: Backend configuration changed

A change in the backend configuration has been detected, which may require
migrating existing state.

If you wish to attempt automatic migration of the state, use "terraform init
-migrate-state".
If you wish to store the current configuration with no changes to the state,
use "terraform init -reconfigure".

Screenshots
No response
Environment
OS: Any (but I'm running Darwin 15.1)
Atmos Version: Latest (1.123.0)
Additional Context
This will likely require that Atmos drops support for older versions of Terraform (https://github.com/hashicorp/terraform/pull/35721) and may have other implications for OpenTofu (I don't use it, so I can't begin to guess)

The backend configuration is a freeform map that gets JSON serialized (e.g. .hcl.json).
Have you tried to drop any fields that are unsupported and add what you need?

I get this error when trying to use two template functions that reference components that inherit from the same abstract component.
kms_master_key_arn: '{{ (atmos.Component "x1-keys" .stack).outputs.alias_arn }}'
sns_encryption_key_id: {{ (atmos.Component "x2-keys" .stack).outputs.key_id }}'


Bump trino-client 411

:mag: Description
Issue References 🔗

This is a regular dependency upgrading,
Describe Your Solution 🔧
Upgrade trino-client from 363 to 411. 411 is the latest version which uses okhttp 3.x, hence it does not have kotlin runtime dependencies.
This PR also updates the docs, especially the Trino cluster version requirement.
Types of changes :bookmark:

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪
Pass GA.

Checklist 📝

[x] This patch was not authored or co-authored using Generative Tooling

Be nice. Be informative.

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

Comparison is base (35e988d) 61.20% compared to head (81d23c6) 61.16%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5975      +/-   ##
============================================
- Coverage     61.20%   61.16%   -0.05%
  Complexity       23       23
============================================
  Files           622      622
  Lines         36903    36897       -6
  Branches       5017     5016       -1
============================================
- Hits          22587    22568      -19
- Misses        11880    11890      +10
- Partials       2436     2439       +3

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

Merged to master


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 12:48:29 on 2023.05.23
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 2, errors out: 0
Original problem ID: 22289
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=22289

Problem has been resolved in 18m 0s at 13:06:29 on 2023.05.23
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 22289


Implement 2FA mutations with existing resolvers

Is there an equivalent of this line for the account or wallet in the new schema?

Is there an equivalent of this line for the account or wallet in the new schema?

Added

Rebased to resolve conflicts @bodymindarts @jrbuhl93


Allow templates to be nested in templates (e.g. use another template field as the DEFAULT value for a template)

Hi,
thanks for developing this great tool, found nothing better!
I have one question concerning templating the folder structure when exporting.
What I want to achieve:
Exporting Photos to a folder-structure like this (DEFAULT value is another field):
--directory "{created.year}/{folder_album,created.mm}"
Which means that photos which are included in albums are exported in a folder like this (example):
2020/myalbum/img-xxxxx.jpg
and for photos which are not present in any album a default value of the month in which the photo was taken:
2020/03/img-xxxxx.jpg
resulting in a folder structure like this:
2020/myalbum1/
2020/myalbum2/
2020/01/
2020/02
2020/..

Is this currently possible?

Unfortunately this isn't currently possible.  I've considered this use case several times -- it would make the templating system very powerful to be able to nest templates.  The template system is currently implemented with a regular expression (pattern matching) algorithm that does simple substitutions and can't handle nested patterns.  To implement this would require significant re-work of the templating engine.  Coupled with the boolean templates I'm working on implementing you could do some really complex export scenarios quite easily. It's something I'd like to tackle eventually but have a number of higher priority things at the moment.
However, I do think it would be easy to create a work-around for your specific use case.  I could add --in-album and --not-in-album options which would allow you to do what you want, albeit it with two separate export runs:
osxphotos export /path/to/export --directory "{created.year}/{folder_album}" --in-album
osxphotos export /path/to/export --directory "{created.year}/{created.mm}" --not-in-album

Thanks, this workaround would be great!

I've implemented --album and --not-in-album in v0.40.8 which should let you do the double-export as referenced above.  This will even work with --update as both exports will use the same export database in your export directory to track exported files.  The only limitation will be you cannot use --cleanup as this would think the photos from the second export were not needed and delete them.  Also, be advised that with using {album} as a template could result in duplicate photos if a photo is in more than one album. Also, if you have any album names that match {created.mm} format (e.g. "03"), you'll possibly get name collisions.

I've been experimenting with pyparsing and I think I can implement a full PEG parser for the template system which would allow arbitrary nesting of templates.  This will take a bit of a learning curve and rework of the templating system so it won't happen quickly but definitely something for the roadmap.   If anyone has experience with pyparsing and wants to help, I'll take it!

After spending a couple hours studying pyparsing, I'm still finding it difficult to understand.  Luckily I found textx and am making progress on grammar implementation for the osxphotos template language which should allow the templating system to be much more capable.

So textx is amazing and easy to use!  I've been able to get a full parser working that allows arbitrary nesting of templates!  It'll take some work to refactor the template code in osxphotos to use this but I think it'll be much easier than I first expected.
@saruter this means you'll be able to do something like this once implemented:
 --directory "{created.year}/{inalbum?{folder_album},{created.mm}}"

I got the new template parser working -- need to add some more tests then I'll release it in next week or so.  It is much more powerful than the current template system -- allows arbitrary nesting of templates and allows any template to be used as a boolean.

Wohoo, sounds amazing. Thanks for your work in this!

I've released v0.41.0 with a completely re-written template engine which now allows nested templates.
For example, this now works:
 --directory "{created.year}/{album?{folder_album},{created.mm}}"


Integrate Yarn 2 possible?

Alternatives
It can be more productivity for package control

Is there any good way to recommend? I don't quite understand this problem

@anncwb it's not a problem it a feature for control packagelist and setup workflow.

Ok, no problem. Wait for me to test


No License

We are looking to use this software and my only concern at the moment is a lack of a License.
Is there any particular reason for this?

added, see https://github.com/lunny/axmlParser/blob/master/LICENSE


Remove buffer dependency

Remove unnecessary buffer dependency.

LGTM, thx

That was faster than me to ask you!
I published a next version, tried it, it worked and was going to ask for the review. Thanks!


Kubernetes ContainerFactoryProvider implementation

We've had this working in a fork for a few months now, but have held off submitting due to performance limits imposed by our inability to suspend/resume containers like the Docker provider. However, @dgrove-oss has some ideas around this and asked us to go ahead and open the PR.
One other limitation is that the k8s API doesn't distinguish between stdout and stderr for logged messages. So in our impl, all messages (even those sent to stderr) appear to go to stdout. See https://github.com/kubernetes/kubernetes/issues/28167
I squashed a bunch of commits for this but wanted to maintain a bit of history for posterity. If you'd prefer a single commit, that's cool, too.

PG1 / 2574 🏃

@jcrossley3 - I dug into the PG test failures this morning.  The problem is that the PR needs to be rebased to pick up the change from #3063  that moves common/scala/Dockerfile to use alpine linux as a base image.  Without that change in base image, it won't go through the PG testing pipeline.

Ok, PR has been rebased against current master and unit tests have been added. There are 2 pending ones in there that revealed some issues @bwmcadams is in the process of addressing. Yay, unit tests! :)

@jcrossley3 I know you want to preserve the history in this PR so when @markusthoemmes approves/dismisses his review, can you adjust the last few commit and stash them appropriately? One of us can merge without squashing the full history.

Regarding credits for all committers: Github introduced https://github.com/blog/2496-commit-together-with-co-authors. Would you be okay using that and still squash down to one commit?

nice! thanks for sharing it, I hadn't see that yet.

@rabbah do you want all of this PR's commits squashed into a single one? Or just those pushed in response to feedback?

With the git enhancement linked by Markus you don’t need to squash at all. We can just amend the commit message when merging.

@jcrossley3 since all feedback seems to be addressed, it'd still be good if you can squash down or at least ammend the first commit in a way to conform with the feature I linked. It seems to be a bit cumbersome to add the proper email adresses and everything. You'll have an easier time doing that than the reviewers/mergers.

@markusthoemmes I added more tests around the log handling and implemented your code suggestions in KubernetesClient which @bwmcadams is in the midst of changing as well. When he pushes his fixes, I'll squash the most recent commits with the email addresses.

@jcrossley3 You'll need to rebase. Are all commit from @bwmcadams in?

Not quite yet @markusthoemmes. In fixing the tests, @bwmcadams took it upon himself to refactor things to remove the blocking calls. Once he pushes that change and you guys approve it, I'll rebase.

Ok, we've rebased and changed the logging stuff quite a bit, but I think we have good unit test coverage now, at least parity with our Docker counterparts. Once you guys approve, let me know how much you'd like to squash. I say probably at least back to 3ef07bf and maybe even farther.

Started PG1/2632 to see how things look.

PG1/2632 looked clean (2 test failed; not specific to this PR (also failing on other PG runs).

should have "kubernetes" label?


Error on startup

Hi,
I have encountered this error upon startup.
pi@raspberrypi:~/projects/keyboard_mouse_emulate_on_raspberry $ sudo ./boot.sh
[ ok ] Starting bluetooth (via systemctl): bluetooth.service.
DC:A6:32:D4:1F:82
pi@raspberrypi:~/projects/keyboard_mouse_emulate_on_raspberry $ ./mouse/mouse_client.py
detected mouse: /dev/input/event0
INFO:root:Connected MouseInput@/dev/input/event0 (Logitech USB Optical Mouse)
ERROR:dbus.proxies:Introspect error on :1.26:/org/thanhle/btkbservice: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
DEBUG:dbus.proxies:Executing introspect queue due to error
ERROR:dbus.connection:Unable to set arguments (0, b'\x00\xfe\xff\x00') according to signature None: <class 'ValueError'>:
embedded null byte
Traceback (most recent call last):
  File "./mouse/mouse_client.py", line 149, in <module>
    i.change_state(event)
  File "./mouse/mouse_client.py", line 116, in change_state
    self.send_current(self.state)
  File "./mouse/mouse_client.py", line 97, in send_current
    self.iface.send_mouse(0, bytes(ir))
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 641, in call_blocking
    message.append(signature=signature, *args)
ValueError: embedded null byte
pi@raspberrypi:~/projects/keyboard_mouse_emulate_on_raspberry $

The same happens when I start it with sudo. It's a Raspberry PI 4.

Before starting mouse and keyboard client, you have to use this:
sudo ./server/btk_server.py

Let me know if it works.

The error message is still there.

I have the issue. Has anyone found a fix?


Password Reset/Forgot?

where can I reset/add forgot password?

I don't think this software has a password recovery system. You could fork the project and make one...

Thanks alot!


Issue in Policies

Hi all,
I have an issue with the policies, I created 4 roles (owner, admin, supervisor, and user)
as you see in the image top left App/Providers/AuthServiceProvider.php
I defined Gate::before to allow the owner and admin to access all admin pages.
in the Backup module I created Module/Backup/App/Providers/AuthServiceProvider.php as bottom left page and defined Backup policy, and add it to register it as it is appears in the top right page in BackupServiceProvider.php
and defined the policies as bottom right page BackupPolicy.php
The problem in this case supervisor cant access backup page as per his permissions, but if I comment Gate::before the supervisor can access his permissions but the owner and admin can not.
Note Before I create the Backup module the permissions and policies was worked fine.
How to solve this issue?

The issue occurs because your Gate::before() method returns a boolean value instead of null. When Gate::before() returns a boolean, Laravel stops checking other policies.
To ensure Laravel continues checking policies when the user does not have the specified roles, you should return null. Here’s the corrected code:
Gate::before(function ($user, $ability) {
    return $user->hasRole(['owner', 'admin']) ? true : null;
});


Determine what is missing capability wise (if anything) for good enough rewriting

Taking the most capable and easiest to extend rewriter produced in the POCs we should:

Perform a visual inspection of each URL
Give a quick usable/un-usable rating for each page
For each un-usable page (if any) we should spend a small amount of time attempting to work out which extra capability would fix it (see https://github.com/hypothesis/via3/issues/152)
If the fix is easy to implement we should try and re-test

Output

A list from our example set of URLs which are not usable with the current best POC
A guess at why, or "unknown" if it can't be determined quickly
A percentage of URLs usable at this point

What counts as usable?

The main text is visible and not obscured in any place
No obnoxious scrolling to find or read the content (horizontal or vertical)
The main content is not hard to distinguish from surrounding content (where it is normally easy)

(edit) I think the "best" solution here is a bit debateable. The most fully featured, which this meant, it probably the lxml solution. But I think the one we'll carry on with is the lxml_streaming, so I'm going to conduct the investigation with that. I might dip into both to get an idea of whether it's easily fixed by something I've already done.

Ok, we have a serious cookie problem. We're accumulating cookies like mad as you browse about. Eventually we accumulate so many that the header gets big enough for NGINX to reject it.
I'm not sure where we'd start with this one.

We're accumulating cookies like mad as you browse about.

Aren't you stripping the Set-Cookie header out of the response? I believe legacy Via strips this header for all requests, so we can do the same as a starting point. We really don't want to have cookies intended for one proxied origin sent to requests made to another proxied origin.
I think we will eventually need to support cookies in order to make certain sites work, but we would need to look into some way of isolating them to the proxied origin, which would very likely involve modifying the cookie (eg. to add Domain= or Path= scoping).

The majority of cookies are added by advertising Javascript, so we can't do much about it from the backend. We are now proxying certain cookie headers in the rewriters by appending a modified path to them.
To support this the URLs look a bit goofy now. If you have a url at scheme://host/path?params
You end up with a url like: http://localhost:9093/html/scheme/host/path?url=<urlencoded url again>
This allows us to set cookies by path, and is more readable for the user. I don't think we can get away without the full url again, as we have learned from Canvas that there's no way to preserve it accurately once it's been through the wringer of WSGI and friends if it had encoded chars in it. For some URLs we must keep the exact characters as they are signed with an authentication param.

So I've had a decent shot at patching this up and the final numbers are in for now.
There's one odd discrepancy which is www.mytimes.com, which loads and looks perfect, but really murders your CPU for a while. I don't know if we count that as usable or not. I'll include both.
There are two numbers presented. One is the direct number of the 100 tested that worked, the other takes into account the frequency with which they are used in assignments at the present time (of the top 100).
Counting mytimes as un-usable

Sites usable: 86%
Assignments usable: 84%

Counting nytimes as usable

Sites usable: 87%
Assignments usable: 91%

(reminder) - I should add the percentage of the top 1000 we have represented here

Some comparatives with original flavour Via. The percentages are percentage count of the top 100 and top 1000.
Legacy Via

ok - Site: 96, Count: 1975 (95.27%) (54.04%)
bust - Site: 3, Count: 80 (3.86%) (2.19%)
other - Site: 1, Count: 18 (0.87%) (0.49%)

New Via

ok - Site: 84, Count: 1712 (82.59%) (46.84%)
bust - Site: 14, Count: 327 (15.77%) (8.95%)
other - Site: 2, Count: 34 (1.64%) (0.93%)

Comparative

better 9 - Both render the page, we render it better (small errors)
same 77
worse 2 - Both render the page, we render it worse (small errors)
newly_broken 11 - Via renders it successfully, we don't
other 1

Some page specific ideas about what we need
Medium
https://medium.com/@Bhasingursifath/graffiti-art-or-vandalism-4ecda1f780ab
Certain sites (like Medium) construct URLs based on the scheme of the window. In dev we are running with http not https and so the wrong URL is constructed.
This isn't the reason Medium is failing, but it could be for other sites.
NPR
https://www.npr.org/2017/03/21/520820142/soy-marr-n
The initial response from NPR is a redirect. We need to handle this as a redirect ourselves, or the base doesn't match the content etc.
Then it sets cookies with javascript. We don't do anything about this and it's a total mess. We are leaking state between sites as well.
Finally it calls window.location to change the URL, which need to intercept somehow. This is apparently done in Via by actually regexing the JS content to insert a custom function which intercepts the call. This has side effects, as the regexing sometimes rewrites things it shouldn't.
Other sites
Some random things that are failing or won't work. Not sure these are the causes of anything:

Web workers won't register on the wrong domain
Anything that relies on the window location to do routing, like single page apps
We aren't currently rewriting in page CSS so inline fonts will probably fail

Super complex sites with no obvious failure reason
A surprisingly large number of sites seem to load fine, and then spot something is wrong and hide their content (e.g. https://www.fastcompany.com/3024273/infographics-lie-heres-how-to-spot-the-bs?) I'm not sure what tips them off.
In general quite a few of these aren't throwing any errors or failing to retrieve any content. They just inspect the general state and decide they don't like it.
This will be a power of guesswork and investigation to work out why,

I looked into medium.com and Medium-platform sites and was able to get them working by making window.location/location return the original URL rather than the proxied URL. See https://hypothes-is.slack.com/archives/C4K6M7P5E/p1591614783488800 for details and the html-poc-window-proxying branch for the code.
In that Slack thread I also identified that the principle issue with the npr.org site is the fact that, for EU visitors, it redirects to a GDPR login page and the proxied URL's <base> tag reflects the original URL rather than the redirected URL and hence various JS/CSS assets fail to load. An important thing to be aware of with GDPR banners is that many of those screens/popups won't be shown in production as requests from QA/production Via always come from a US location. It is still worth figuring out how to handle these though in case US privacy law changes result in US visitors seeing these in future.

A surprisingly large number of sites seem to load fine, and then spot something is wrong and hide their content (e.g. https://www.fastcompany.com/3024273/infographics-lie-heres-how-to-spot-the-bs?) I'm not sure what tips them off.

This URL is now working on the html-poc branch. I didn't implement any specific changes to resolve this URL, so one of the other changes (most likely the window/window.location patching) got it working.

Some of the previous broken sites are now working, but other previously working sites are now broken. The new approach relies on spotting things with regexes, which is fragile in a way intercepting and monkey patching fetch isn't.
On the plus side, this gives us our first scalp over Via (BBC now works), but I honestly don't have the heart to go through all 100 again. I think the conclusion wouldn't be changed even if I did.
We can do this at the cost of it not currently being reliable, and any attempt to work out if we have made things better or worse is very costly. In general I suspect this pattern of increased complexity and not knowing if we are close or far from the end is likely to continue. This approach of patching could be one tweak away from being perfect, or fundamentally flawed. I doubt you could know until you conclusively got it working for every site (which there is no way to be sure of).
List of missing capabilities

Client side cookie rewriting solution - Required
Location interception - Required - We have something here, but it causes errors
Inline JS rewriting - Required (as above, same solution but needs to be applied inline)
CSS inline rewriting - Nice to have (makes fonts always work)
??? - Unknown, unknowns - We do not know what is required to fix remaining sites, the above could do it, or not?


Helm Install under minikube causes high all CPU usage and Cluster goes down, killing elasticsearch as workarround

Describe the bug
Helm Install under minikube causes high all CPU usage and Cluster goes down, killing elasticsearch as workarround.
To Reproduce
Steps to reproduce the behavior:

Install Minikube
Install Current datahub using with following adjusted helm chart values.yaml:
elasticsearch:
enabled: true
replicas: 1
minimumMasterNodes: 1
antiAffinity: "soft"
fullnameOverride: "elasticsearch"
imagePullPolicy: "Always"
esJavaOpts: "-Xmx384m -Xms384m"
maxUnavailable: 0
clusterHealthCheckParams: "wait_for_status=yellow&timeout=5s"

Expected behavior
Installation should succeed
Screenshots
During Helm install all CPU's of the cluster are used and cluster goes down sporadically:

The helm installer aborts with following error:

Desktop (please complete the following information):

CPU: 32 vCPU
RAM: 32 GB RAM
OS: Ubuntu 22.04.1 LTS (GNU/Linux 6.1.12-060112-generic x86_64)
Miniube version:  v1.27.1
Helm dependencies: openmetadata-dependencies-0.0.55
Helm release: https://github.com/open-metadata/openmetadata-helm-charts/releases

Additional context
When we kill the elasticsearch POD, the cluster stabilizes for a short while the Datahub system will boot up but within 1 hour sporadically without no queries in Datahub the all CPU high usage is appearing again bringing down the cluster:

During killing of elasticsearch the following is show in cluster info:
kubectl cluster-info dump
Minikube cluster info after kill elasticsearch.txt

SOLUTION:

Minikube upgrade to v1.29.0
Kubernetes upgrade to: minikube start --kubernetes-version=v1.26.1


Fees not displaying properly in trade slip

Trading fee preview shows: 7 ZTG  (0.07%)
Should be: 1.36 ZTG (7%)
-Trading fee seems to be calculating 7% of the KC tokens being bought and displaying that as an equivalent amount of ZTG for a fee.
-The fee percent shows 0.07% which can misleading from the actual value of 7%

Trading fee needs to be multiplied by 100 to be shown as a percentage


Lose generic information across isolate

code:
import 'dart:isolate';

void _process<T, U>(SendPort sendPort) async {
  var receivePort = new ReceivePort();
  sendPort.send(receivePort.sendPort);
  U Function(T input) mapper;
  await for (dynamic input in receivePort) {
    if (mapper == null) {
      mapper = input;
    } else {
      sendPort.send(mapper(input as T));
    }
  }
}

Stream<U> pmap<T, U>(List<T> list, U Function(T input) mapper, {int parallel = 1}) async* {
  ReceivePort receivePort = new ReceivePort();
  Isolate isolate = await Isolate.spawn(_process, receivePort.sendPort);
  SendPort sendPort;
  await for (dynamic result in receivePort) {
    if (sendPort == null) {
      sendPort = result;
      sendPort.send(mapper);
      for (T item in list) {
        sendPort.send(item);
      }
    } else {
      yield result;
    }
  }
  isolate.kill();
}

int mapper(int x) => x * x;

void main() async {
  List<int> foo = [1, 2, 3, 4];
  Stream<int> results = pmap(foo, mapper);
  await for (int value in results) {
    print(value);
  }
}

Runtime exception:
type '(int) => int' is not a subtype of type '(dynamic) => dynamic' is generated when we execute mapper = input;
Expected:
Ideally I could say something like: Isolate.spawn(_process<T, U>, receivePort.sendPort); so I wouldn't lose that type information when the function is executed in the other isolate.

There is currently no way to specify a non-constant function reference as the isolate entry point. That means that _process<T, U> cannot be sent, only the reference to the generic _process function.
So, when the new isolate needs to call that function, it defaults to instantiating it to _process<dynamic, dynamic>.
What you can do is to send the function as data instead of as entry point.
class _Parameter2<T, U, P> {
  final P parameter;
  final void Function<T, U>(P) function;
  _Parameter2(this.function, this.parameter);
  void call() {
    _function<T, U>(parameter);
  }
  static void entry(_Parameter2 parameters) {
    parameters();
  }
}
...

  Isolate.spawn(_Parameters2.entry,
      _Parameters2<T, U, SendPort>(_process, receivePort.sendPort));

What you can do is to send the function as data instead of as entry point.

Works great and solves all problems! Thank you very much!

We'll solve this issue as part of https://github.com/dart-lang/sdk/issues/36097.

We'll solve this issue as part of #36097.

We are waiting for the addition of this feature, it will make possible to use isolates more often!
Thank you so much!

Closing this issue, merge into the more general https://github.com/dart-lang/sdk/issues/46623.


docs: poll a value

cc @AlCalzone @marcelveldt

Pull Request Test Coverage Report for Build 536825964

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

Totals

Change from base Build 536784812:
0.0%

Covered Lines:
1996

Relevant Lines:
9843

💛  - Coveralls

Nice!

One thing I'd add:
Many values can only be polled together. For example targetValue, currentValue and duration for most of the switch-type CCs. Before enabling polling for all values of a node, users should check whether polling a single value already updates the desired other values too.

Will do it in another one, I have merged settings in the other branch I'm working on


Ref #18 - Add incremental annotation processing

Related to #18
This adds incremental annotation processing for faster gradle builds.
By adding src/main/resources/META-INF/gradle/incremental.annotation.processors, it tells Gradle that the com.github.pozo.BuilderProcessor is an incremental processor.
A bump to MapStruct 1.4.0.Beta1 (https://github.com/mapstruct/mapstruct/pull/1971) and AutoService 1.0-rc.7 (https://github.com/google/auto/issues/615) is required.

@Pozo any chance you could take a look at this?

@mtraynham Sure, so sorry for the late answer. I have a lot of thing going on, that's why I couldn't look over this repo changes nowadays. I'll manage everything soon, thank you very much for your time and your contribution. 🙇

I've tested it locally with the following environment

------------------------------------------------------------
Gradle 4.10
------------------------------------------------------------

Build time:   2018-08-27 18:35:06 UTC
Revision:     ee3751ed9f2034effc1f0072c2b2ee74b5dce67d

Kotlin DSL:   1.0-rc-3
Kotlin:       1.2.60
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_252 (AdoptOpenJDK 25.252-b09)
OS:           Mac OS X 10.13.6 x86_64

With the command
./gradlew clean build --info

With the version <IP_ADDRESS> I'm getting the following output
[kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: com.github.pozo.BuilderProcessor (NON_INCREMENTAL), org.mapstruct.ap.MappingProcessor (NON_INCREMENTAL), com.google.auto.service.processor.AutoServiceProcessor (NON_INCREMENTAL).

With your change this message disappears. Thank you for your contribution @mtraynham
I'll prepare a release the version number will be <IP_ADDRESS>

@Pozo awesome!  One thing I wanted to point out, the Mapstruct version I bumped is the beta release 1.4.0.Beta1, https://github.com/mapstruct/mapstruct/releases/tag/1.4.0.Beta1.  1.4.0.Beta3 is also out now and I've verified it also works locally, https://github.com/mapstruct/mapstruct/releases/tag/1.4.0.Beta3.
Not sure if you want to do a full release with a beta dependency, or just have your own beta release.


How are the 10X files named in AWS?

I'm trying to download the 10X files from AWS. The files in this folder (Amazon S3/czb-tabula-muris-senis/10x//1_month/)
are named as "10X_P5_0/   10X_P5_1/  10X_P5_2/..... "
Do these numbers match with different tissues? where can I find the ID info?
Thank you,
Xu

I am looking for the same information..Are these files associated with different tissues?

I am also in the same problem. 18 month and 24 month are labeled correctly with their tissue, but the others are not. Could you share the information about it?


WIP: Update Manifests for Argo v3.4.16

The issue resolved by this Pull Request:
Resolves #TODO
Description of your changes:
Updates argo manifests for use with argo v3.4.16
Restructures the config/argo directory to match argoproj/argo-workflows manifests for easier maintenance.  (The names and contents remain generally the same)
Testing instructions
Run make deploy, wait for DSPO to become available, then deploy a simple DSPA.  Verify workflows still run
Checklist

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

Change to PR detected. A new PR build was completed.
A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-606

Change to PR detected. A new PR build was completed.
A new image has been built to help with testing out this PR: quay.io/opendatahub/data-science-pipelines-operator:pr-606

/hold don't merge until Argo dependency is updated in DSP itself in https://github.com/opendatahub-io/data-science-pipelines/pull/28

@gmfrasca I think this PR can be closed now, as argo 3.4.17 is in main now

agreed
/close


Update docker-compose and pygeoapi config to have one single file for all the providers

Following the approach on this issue https://github.com/geopython/diving-into-pygeoapi/issues/1#issuecomment-1181746008, we will start with the providers that we do not need commented out, and remove the comments along the workshop. We will end up with a single docker-compose/pygeoapi, which includes all the providers.

Looks good, thanks


tcp connection timeout every ~4hours

Hi Martin,
Thanks for all the work you have done on this project, it's really amazing!
I'm currently running the esp wifi repeater with multiple ESPurna enabled Sonoff devices connected to it.
All devices are communicating with a MQTT broker directly connected to my router.
Every ~4hours I can see all devices disconnecting from the MQTT broker with Mosquitto broker saying:
"Client ESPURNA-BE9FA4 has exceeded timeout, disconnecting."
So I decided to do a tcpdump of this issue and found out that when the disconnect happens, we get a TCP Reset packet.
The tcpdump runs from the raspberry where the broker runs.
It's like the esp wifi repeater is closing TCP connection every ~4hours.
To ensure that my ESPurna devices was correctly configured, I connected it directly to my router and didn't see any disconnect or TCP reset.
Is this a know issue?

This is not a known issue. Let us try to trace it down:

4 hours is not directly related to any NAT timeouts (30 min for a TCP connection)
You receive a proper TCP Reset packet from the ESPurna device? This is certainly not sent by the esp_wifi_repeater, as it cannot create any TCP message, it just rewrites IP packets and adapts TCP port numbers. So it must be sent by the ESPurnas. The questions is: why...? Probably they don't receive anything before that timeout. Can you see any hints for that in the traces? Retransmissions?

It's hard to tell with the trace I have. I would need to do another one with only one ESPurna device connected to the repeater and logging enabled on mosquitto, repeater and ESPurna.
In one of the case, I get:
mosquitto broker log:

Socket error on client ESPURNA-E52C6B, disconnecting.

Wireshark:

MQTT Publish from homeassistant to the broker
MQTT Publish from the broker to the relay (for ESPURNA-E52C6B)
TCP [RST, ACK] from the relay (from ESPURNA-E52C6B)  to the broker

In other case, I get
mosquitto broker log:

Client ESPURNA-515B2B has exceeded timeout, disconnecting.

Wireshark:

TCP [FIN, ACK] from the broker to the relay (for ESPURNA-515B2B)
TCP [RST, ACK] from the relay (from ESPURNA-515B2B) to the broker

I reproduced the issue this afternoon with only one ESPurna device connected to the repeater and to the broker.
From the mosquitto broker log, I can see PINGREQ and PINGRESP every 300 seconds as excepted (this is the keepalive timeout in ESPurna config)
And at 15:04:19, there is this error:

Client ESPURNA-B76EC4 has exceeded timeout, disconnecting.

On the ESPurna console, I got this at the same time:

[200227] [MQTT] Sending light/status => 1 (PID 1)
[500235] [MQTT] Sending light/status => 1 (PID 1)
[800241] [MQTT] Sending light/status => 1 (PID 1)
[019683] [MQTT] TCP Disconnected
[019684] [MQTT] Disconnected!
[019685] [RELAY] Reset relay (0) due to MQTT disconnection

And on the wireshark trace, I get below packets:

1099 15:01:17.798666  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1037 Ack=1171 Win=237 Len=0 TSval=3896277863 TSecr=3428795574
1100 15:02:17.916956  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1101 15:02:17.917355 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1102 15:02:17.919774  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1039 Ack=1173 Win=237 Len=0 TSval=3896337985 TSecr=3428855695
1103 15:03:18.051488  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1104 15:03:18.051869 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1105 15:03:18.053943  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1041 Ack=1175 Win=237 Len=0 TSval=3896398119 TSecr=3428915830
1106 15:04:18.202663  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1107 15:04:18.202997 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1108 15:04:18.204947  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1043 Ack=1177 Win=237 Len=0 TSval=3896458271 TSecr=3428975982
1109 15:04:19.405037 <IP_ADDRESS> → <IP_ADDRESS> TCP 54 1883 → 54743 [FIN, ACK] Seq=119 Ack=1131 Win=63784 Len=0
1110 15:04:19.412232 <IP_ADDRESS> → <IP_ADDRESS> TCP 54 54743 → 1883 [RST, ACK] Seq=1131 Ack=120 Win=2144 Len=0
1111 15:04:19.505599 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 83 Publish Message [light/status]
1112 15:04:19.508867  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1043 Ack=1194 Win=237 Len=0 TSval=3896459575 TSecr=3428977284
1113 15:05:18.643846  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1114 15:05:18.644237 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1115 15:05:18.646224  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1045 Ack=1196 Win=237 Len=0 TSval=3896518713 TSecr=3429036423
1116 15:06:18.784419  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1117 15:06:18.784831 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1118 15:06:18.786785  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1047 Ack=1198 Win=237 Len=0 TSval=3896578854 TSecr=3429096564
1119 15:07:18.929349  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1120 15:07:18.929759 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1121 15:07:18.934138  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1049 Ack=1200 Win=237 Len=0 TSval=3896639001 TSecr=3429156709
1122 15:08:19.079026  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1123 15:08:19.079418 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1124 15:08:19.081177  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1051 Ack=1202 Win=237 Len=0 TSval=3896699149 TSecr=3429216860
1125 15:09:19.219690  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1126 15:09:19.220081 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1127 15:09:19.222228  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1053 Ack=1204 Win=237 Len=0 TSval=3896759291 TSecr=3429277001
1128 15:10:19.353111  <IP_ADDRESS> → <IP_ADDRESS> MQTT 68 Ping Request
1129 15:10:19.353432 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 68 Ping Response
1130 15:10:19.355566  <IP_ADDRESS> → <IP_ADDRESS> TCP 66 54867 → 1883 [ACK] Seq=1055 Ack=1206 Win=237 Len=0 TSval=3896819425 TSecr=3429337134
1131 15:10:24.342262 <IP_ADDRESS> → <IP_ADDRESS> TCP 58 54643 → 1883 [SYN] Seq=0 Win=5840 Len=0 MSS=1460
1132 15:10:24.342437 <IP_ADDRESS> → <IP_ADDRESS> TCP 58 1883 → 54643 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460
1133 15:10:24.349120 <IP_ADDRESS> → <IP_ADDRESS> MQTT 99 Connect Command
1134 15:10:24.349254 <IP_ADDRESS> → <IP_ADDRESS> TCP 54 1883 → 54643 [ACK] Seq=1 Ack=46 Win=64195 Len=0
1135 15:10:24.349935 <IP_ADDRESS> → <IP_ADDRESS> MQTT 58 Connect Ack
1136 15:10:24.392085 <IP_ADDRESS> → <IP_ADDRESS> MQTT 154 Unsubscribe Request (id=1), Subscribe Request (id=2) [light/relay/+/set], Subscribe Request (id=3) [light/pulse/+/set], Subscribe Request (id=4) [light/led/+/set], Subscribe Request (id=5) [light/action/set]
1137 15:10:24.392497 <IP_ADDRESS> → <IP_ADDRESS> MQTT 58 Unsubscribe Ack (id=1)

I have added packets before and after to give some context.
Interesting packets are at 15:04:19.
<IP_ADDRESS> is homeassistant listening to MQTT. (Odroid board)
<IP_ADDRESS> is the esp repeater (with ESPurna connected to it.)
<IP_ADDRESS> is the raspberry with the broker.
The problem is still that we get a TCP [FIN, ACK] packet from the broker followed by the TCP [RST, ACK] packet from the ESPurna.
I don't get why I have this issue only when connected to the repeater.

I managed to capture a trace with the monitor mode of the repeater.
It shows what happens before the broker send the TCP[FIN, ACK] packet and why the broker sends it.
The issue starts when the ESPurna try to publish its status. When the broker sends the ACK to this status, it doesn't get transmitted to the ESPurna because the esp relay doesn't manage to connect to the allocated port. The error is a ICMP Port unreachable.
Because the ESPurna can no more connect with the broker, after the keepalive time since the last ping, the broker sends a TCP[FIN, ACK] to the ESPurna.
Here is the interesting part:

1119 01:13:07.367797  <IP_ADDRESS> → <IP_ADDRESS> MQTT 56 Ping Request
1120 01:13:07.376429 <IP_ADDRESS> → <IP_ADDRESS>  TCP 54 1883 → 25324 [ACK] Seq=181 Ack=1437 Win=64009 Len=0
1121 01:13:07.378429 <IP_ADDRESS> → <IP_ADDRESS>  MQTT 56 Ping Response
1122 01:13:07.492682  <IP_ADDRESS> → <IP_ADDRESS> TCP 54 25324 → 1883 [ACK] Seq=1437 Ack=183 Win=5625 Len=0

1130 01:15:54.415933  <IP_ADDRESS> → <IP_ADDRESS> MQTT 74 Publish Message [speakers/status]
1131 01:15:54.417622  <IP_ADDRESS> → <IP_ADDRESS>  ICMP 70 Destination unreachable (Port unreachable)
1132 01:15:55.056621  <IP_ADDRESS> → <IP_ADDRESS> TCP 74 [TCP Retransmission] 25324 → 1883 [PSH, ACK] Seq=1437 Ack=183 Win=5625 Len=20
1133 01:15:55.058412  <IP_ADDRESS> → <IP_ADDRESS>  ICMP 70 Destination unreachable (Port unreachable)
1134 01:15:56.556451  <IP_ADDRESS> → <IP_ADDRESS> TCP 74 [TCP Retransmission] 25324 → 1883 [PSH, ACK] Seq=1437 Ack=183 Win=5625 Len=20
1135 01:15:56.558286  <IP_ADDRESS> → <IP_ADDRESS>  ICMP 70 Destination unreachable (Port unreachable)

Any idea why the port would be closed after ~4 hours ?

I have found the issue and sent a fix for it in esp-open-lwip. (https://github.com/martin-ger/esp-open-lwip/pull/28)
Let me know what you think!

Thanks a lot! Great analysis and thank you for the patch!
Will include it in the binary right now.

Thanks a lot! Great analysis and thank you for the patch!
Will include it in the binary right now.

Happy to help! Thanks for merging it.


Fix EFR32 builds - window covering is not rpc-aware

Problem

window covering app does not support rpc
'light' prefix being prepended for every EFR32 app

Change overview
Remove -rpc variant for the window cover app
Fix the light prefix typo
Testing
Ran
./scripts/build/build_examples.py --target-glob 'efr32*' gen

unit tests

Hotfix as this fixes a CI build.