bug: App crashes on start after installation on Android

Provide environment information
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 678.18 MB / 7.84 GB
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
Describe the bug
This happens after creating a new repo from template, installing and setting up everything correctly.
After I build only the .apk to try it out on Android, I can install the application on my phone (Huawei Mate 20 Pro) but it crashes as soon as it opens. More specifically, the Splash screen appears then it just closes.
There are no warnings, error messages or something like that. However, on the Expo app it works normally.
Link to reproduction
Create a new project from the template and install
To reproduce
In /apps/expo/App.config.ts I had to add package and version code so that EAS could build (if eas:configure works for you then you skip the first step)
android: {
  package: "com.yourcompany.yourappname",
  versionCode: 1,
  adaptiveIcon: {
    foregroundImage: "./assets/icon.png",
    backgroundColor: "#1F104A",
  },
},

then to build only .apk with EAS I had to add this in /apps/expo/eas.json
{
  build: {
    . . .
    "test": {
      "android": {
        "buildType": "apk",
        "resourceClass": "large"
      }
    },
    . . .
  }
}

and finally, after logging in with EAS run eas build --platform android --profile test.
Afterwards you can download the .apk file from Expo and send it to your mobile phone, install it and try to run. (when trying to run it crashes)
Additional information
No response

Closing as stale - if the above didn't solve it for you, please reopen


chore: propagates the pipe status after tee.

At some point the benchmaks got broken (can't access action logs older than 3 months) but could have been broken for a while.
BenchmarkCSSDecode/test\a\b\f\n\r\t\v\?\'\"\\x00\12\123\1234\12345\123456\ff01\ff5e\_\\x00__string-2         	 5382614	       222.9 ns/op
BenchmarkEscapeSeqDecode/#00-2                                                                               	229572150	         5.227 ns/op
BenchmarkEscapeSeqDecode/hello_world-2                                                                       	217793412	         5.508 ns/op
panic: runtime error: index out of range [44] with length 43

goroutine 460 [running]:
github.com/corazawaf/coraza/v3/internal/transformations.doEscapeSeqDecode({0x5e2241, 0x2b}, 0x0)
	/home/runner/work/coraza/coraza/internal/transformations/escape_seq_decode.go:101 +0x3a7
github.com/corazawaf/coraza/v3/internal/transformations.escapeSeqDecode({0x5e2241, 0x2b})
	/home/runner/work/coraza/coraza/internal/transformations/escape_seq_decode.go:17 +0x58
github.com/corazawaf/coraza/v3/internal/transformations.BenchmarkEscapeSeqDecode.func1(0xc00007c780)
	/home/runner/work/coraza/coraza/internal/transformations/escape_seq_decode_test.go:59 +0x65
testing.(*B).runN(0xc00007c780, 0x1)
	/opt/hostedtoolcache/go/1.20.4/x64/src/testing/benchmark.go:193 +0x[102](https://github.com/corazawaf/coraza/actions/runs/5210566284/jobs/9401796344?pr=808#step:5:103)
testing.(*B).run1.func1()
	/opt/hostedtoolcache/go/1.20.4/x64/src/testing/benchmark.go:233 +0x59
created by testing.(*B).run1
	/opt/hostedtoolcache/go/1.20.4/x64/src/testing/benchmark.go:226 +0x9c
exit status 2
FAIL	github.com/corazawaf/coraza/v3/internal/transformations	24.522s

See https://github.com/corazawaf/coraza/actions/runs/5210566284/jobs/9401796344?pr=808#step:5:97
cc @anuraaga @jptosso as they worked on this mainly

Always had trouble understanding the escape_seq_decode logic so just refactored it completely, notably continue makes the logic flow easier to follow IMO. Not sure what part of it fixed the bug but looks like it did :P

@jcchavezs I think you can finish, we should remove the actual performance regression check. GitHub runners machine configuration / busyness varies wildly across runs, it is not possible to do a automated perf check on them without custom runners. So the best we can do is just compute the numbers somewhere as a reference point, that's what I've been doing in wasilibs
https://github.com/wasilibs/go-re2/blob/main/.github/workflows/bench.yaml

Shopuld this be a benchmark or a test?

Not sure the question, but there should be a benchmark. It may also need to be a normal unit test.

From the title of this PR I didn't expect the internal/transformations/escape_seq_decode.go to change in this PR. Can we create a new one, just for that change, and write a test if that is a fix?

The change in the yaml file makes the Ci fail (see commit https://github.com/corazawaf/coraza/pull/808/commits/95804f3ed3da83c5300f72e062a125c5b1ab8681) and then the fix in the code makes this green. I just changed the title, does that look better @fzipi ?

I understand the pipe propagation for fixing the benchmark.
I don't understand why escape_seq_decode needed to change for a benchmark. Was this a bug in the code?

Yes, benchmark was failing and since we were not propagating the status the
CI was green.
On Thu, 15 Jun 2023, 16:49 Felipe Zipitría, @.***>
wrote:

I understand the pipe propagation for fixing the benchmark.
I don't understand why escape_seq_decode needed to change for a
benchmark. Was this a bug in the code?
—
Reply to this email directly, view it on GitHub
https://github.com/corazawaf/coraza/pull/808#issuecomment-1593214793,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAUHXVKFSZKWBYTQ7I3XLMOGNANCNFSM6AAAAAAY7EWTDY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Looks like we are not in sync.

Do we need to add additional tests here https://github.com/corazawaf/coraza/blob/4319daaa9cc2fbcdc63b9b174902f9057cfd608f/internal/transformations/escape_seq_decode_test.go#L8?
Looks like we found a bug of some sort, and the failing benchmarks uncover it. Do we need additional tests?

@fzipi added the test.


Date type loaded as string when db is loaded from file

Here is the test that shows the problem. When I load the DB from file, Date type is loaded as string. This happens when I try to load DB from the file.
import { deepEqual } from "assert";
import { JsonDB } from "node-json-db";
import { writeFileSync } from 'fs';

describe('ConfigDao', () => {
    const path = "user/s2022-02-21"
    it('reload-plain', async () => {
        writeFileSync('test.json', '{}');
        let record = {
            username: 'foo',
            time: new Date('2022-02-21T06:00'),
        };

        // Works as expected.
        {
            const db = new JsonDB('test', true, true, '/');
            db.push(`${path}[]`, record);
            db.save();
            let result = db.getData(path);
            deepEqual(result, [record]);
        }

        // Doesn't work. Date is retrieved as string.
        {
            const dbReader = new JsonDB('test', true, true, '/');
            let result2 = dbReader.getData(path);
            // Fails. record.time is retrieved as string instead of Date.
            deepEqual(result2, [record]);
        }
    });
});

Fixed in v2.1.0


addons/prometheus: update grafana dashboard

It contains the recently added bpf_maps_virtual_memory_max_bytes
and bpf_progs_virtual_memory_max_bytes metrics.
Signed-off-by: André Martins<EMAIL_ADDRESS>Updated grafana dashboard

Is this old manifest being converted to a chart?

Is this old manifest being converted to a chart?

Not quite, it's just easier to generate the example manifest if it is based on a helm chart.

test-me-please

Coverage increased (+0.03%) to 36.921% when pulling d8cd3896033c86d3df055459bf2fa39f199eabf0 on pr/update-grafana-and-prometheus-dashboard into 9b0ae85b5fd3c3142a25cc602fd155480ecc8d88 on master.


Fix bugs introduced in findDefaultCrystalPath

This pull request fixes issues #16 and #17. This is a regression from pull request #14. As !match returns false when there is an actual match, resolve will never get called and the process will hang waiting on findDefaultCrystalPath().then(... (results will never be delivered to linter).
This fix makes sure a proper result is returned if there is a match, or an empty string is returned if there isn't a match (for any reason).

Thank you!

Can we get this merged?


Error creating modmail thread for user#0000

Hi,
I message the bot with a message, and it replies back in the mail server with

@here Error creating modmail thread for user#0000
Here is what their message contained:
The quick brown fox jumps over the lazy dog

The installation went without any issues whatsoever, so I don't know what could be the possible cause.

It may be due to permissions. I'll see if it is and reply here.

It was due to permissions.
Thanks for making such a great bot, it works really smoothly.


No _config.yml file in repository

Hi, this theme looks beautiful!
I read README, you said I should edit _config.yml file, but I couldn't find it in this repository, should I use one generated by jekyll?

Sorry, I think I make mistake about this, I notice it in github now....


mlir-python-bindings package is not usable

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
Both packages uses the same file name, so maybe it makes sense to add python bindings as a variant to this package or create mlirdev?
https://github.com/conda-forge/mlir-python-bindings-feedstock/issues/19
Installed packages
n/a

Environment info
active environment : mlir-dev
    active env location : /home/yevhenii/.miniconda3/envs/mlir-dev
            shell level : 1
       user config file : /home/yevhenii/.condarc
 populated config files : /home/yevhenii/.condarc
          conda version : 24.3.0
    conda-build version : 24.3.0
         python version : 3.10.12.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.3.0=0
                          __glibc=2.35=0
                          __linux=<IP_ADDRESS>=0
                          __unix=0=0
       base environment : /home/yevhenii/.miniconda3  (writable)
      conda av data dir : /home/yevhenii/.miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/dppy/label/dev/linux-64
                          https://conda.anaconda.org/dppy/label/dev/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/intel/linux-64
                          https://conda.anaconda.org/intel/noarch
                          https://conda.anaconda.org/nodefaults/linux-64
                          https://conda.anaconda.org/nodefaults/noarch
          package cache : /home/yevhenii/.miniconda3/pkgs
                          /home/yevhenii/.conda/pkgs
       envs directories : /home/yevhenii/.miniconda3/envs
                          /home/yevhenii/.conda/envs
               platform : linux-64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.12 Linux/<IP_ADDRESS>-microsoft-standard-WSL2 ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
                UID:GID : 1000:1000
             netrc file : /home/yevhenii/.netrc
           offline mode : False

https://github.com/conda-forge/mlir-python-bindings-feedstock/issues/19 has been fixed, I think we can close this


Can't select translation

I love and hate this plugin right now. Usually the spell check works and underlines the misspelled words and correctly shows the dropdown for possible spellings. The problem is often clicking on the correct spelling does nothing. That said there are other times it does work correctly. It seems like it just breaks randomly and IDK what exactly is causing it.
I do run some custom css and plugins but turning them on and off as far as I can tell hasn't fixed the issue. That said If anything on my end is causing issue I would expect it to be other plugins or the version of obsidian I'm on.

Are these issues present for others or is it just me? What plugins if any do you think might interfere with this plugin.
I also had a thought that maybe it has something to do with the layout of windows and or linked windows. Is there any chance a weird mixture of windows could cause this issue. I generally have the following layout where all windows are on top of a backlinks window. the top leftmost is local graph and middle top is editing page, next is preview. All of them are linked. Then anything further to the right is unlinked pages but all are still on top of the backlinks panel.

@MatteCrystal Thank you more for your feedback, I really appreciate it. :)
I have already started looking into this problem, hopefully I can get it fixed in the next few days.

Please update plugin
https://github.com/denisoed/obsidian-orthography/releases/tag/2.0.0


deliver script：The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
I have fastlane installed with brew on macOS Sierra. I have an ipa that was generated with Phonegap Build.
I entered:
deliver -f -i <path-to-ipa> -u <email_address>
I got
[17:01:19]: [Transporter Error Output]: Could not start delivery: all transports failed diagnostics
[17:01:19]: Transporter transfer failed.
[17:01:19]:
[17:01:19]: Could not start delivery: all transports failed diagnostics
[17:01:19]: Could not start delivery: all transports failed diagnostics
Return status of iTunes Transporter was 1: Could not start delivery: all transports failed diagnostics
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

Environment
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.4

Ruby
2.2.4

Bundler?
false

Git
git version 2.11.0 (Apple Git-81)

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.12.4 (16E195)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
false

Is homebrew
true

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.3.2

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.28.3
💥 Check failed

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.1

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.4.4

rouge
1.11.1

xcpretty
0.2.6

terminal-notifier
1.7.1

unicode-display_width
1.1.3

terminal-table
1.7.3

plist
3.2.0

public_suffix
2.0.5

addressable
2.5.1

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.4

excon
0.55.0

faraday
0.12.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20170404

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.3

uber
0.0.15

representable
2.3.0

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

hurley
0.2

little-plugger
1.1.4

multi_json
1.12.1

logging
2.2.2

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

google-api-client
0.9.28

json
1.8.1

mini_magick
4.5.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.0

bundler
1.14.6

faraday_middleware
<IP_ADDRESS>

generated on: 2017-04-25

Fixed by prefixing the deliver command with:
DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV"
as per https://github.com/fastlane/fastlane/issues/4544.


Freestanding uProxy

uProxy is a Chrome and Firefox extension, and it is currently configured so that it only modifies the proxy settings of the browser on which it is running.  This seems sensible insofar as the effect of the user's action is clearly scoped to the browser which they are using.  However, it also restricts us to reaching users who run Chrome or Firefox.
There is a large population of users we'd like to reach who run other browsers, on Windows.  We will not be able to convince them all to switch browsers, especially if our supported browser's download page, app store, and update servers are blocked by the censors.
To reach these users, while maintaining our current codebase, I think our best bet is to offer uProxy as a freestanding Windows application, with an installer.  This would install:

a Firefox- or Chromium-based browser, possibly stripped down in some way to reduce size (e.g. XULRunner)
the uProxy javascript application, which runs in this browser
a native-code helper or library that allows the javascript to modify the OS proxy settings
an update mechanism that runs through the proxy (when the proxy is active)

This should be quite close to the packaging provided by http://nwjs.io/

Ref for Chrome: http://electron.atom.io/


LocationAPI params are ignored if not annotated with ParamType

Is your feature request related to a problem? Please describe.
The current implementation require @Param annotations like this:
@Location("test/{name}")
  data class TestLocations(
    @Param(ParamType.PATH)
    val name: String,
  )

but there is no point in such annotations because parameter type can be calculated using Location object (the same way like KTor does it).
Describe the solution you'd like
Annotations should be optional and by default the KTor way should be used.

Hmmm... I guess this is feasible, but can't a location live nested within a normal route? not sure how it would work in that case.
I personally like the declarative nature of saying X is a path parameter, Y is a query parameter, Z is a header, etc. etc., but if you were to make a PR modifying the location module to allow it to support both the explicit and implicit approaches, I'd be fine merging that :)

I'll try to find some time for that.

I'm gonna close this.  V3 handles parameters much differently than past versions, and I think the declarative approach is how Kompendium is going to keep as it's approach going forward.  Ultimately, it is not much extra lift to write out the extra parameter details.
If you do ever want to submit a PR for v3 that implements this feature, I'm happy to look at it and merge it if it feels right :)


Model error: Error in summary.connection(connection) & only runs 1 core (Windows fallback)?

Project Robyn
Describe issue
Whenever I try to run the model, I get a connection error after running the first trial. I saw a previous post on this regarding trying to lower the hyperparameters or number of trials and cores used, but this does nothing for me. I understand the last post also mentioned this was a memory issue but even after entirely restarting RStudio, emptying my environment, and reducing all memory load issues, it still does not run.
The model managed to run once, unfortunately this was when it was not an optimal model yet but only a trial. Since then, it has never run successfully.
update*: I have also tried to run on geometric now with only 56 hyperparameters and still does not run. It always stops after running one trial, no matter how many iterations. I also noticed that although I force the multicore usage, it still continues to fallback to 1 core.
'Input data has 105 weeks in total: 2021-01-04 to 2023-01-02
Initial model is built on rolling window of 105 week: 2021-01-04 to 2023-01-02
Time-series validation with train_size range of 50%-80% of the data...
Using weibull_pdf adstocking with 74 hyperparameters (74 to iterate + 0 fixed) on 1 core (Windows fallback)

Starting 5 trials with 500 iterations each using TwoPointsDE nevergrad algorithm...
Running trial 1 of 5
|=============================================================================================================================== |  99%Error in summary.connection(connection) : invalid connection
In addition: Warning message:
In check_iteration(InputCollect$calibration_input, iterations, trials,  :
We recommend to run at least 2000 iterations per trial and 5 trials to build initial model`

Environment & Robyn version
> packageVersion("Robyn") [1] ‘3.9.0’
`R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_Netherlands.utf8  LC_CTYPE=English_Netherlands.utf8    LC_MONETARY=English_Netherlands.utf8
[4] LC_NUMERIC=C                         LC_TIME=English_Netherlands.utf8
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
other attached packages:
[1] readxl_1.4.1    doRNG_1.8.6     rngtools_1.5.2  foreach_1.5.2   Robyn_3.9.0     reticulate_1.28
loaded via a namespace (and not attached):
[1] colorspace_2.0-3     ellipsis_0.3.2       ggridges_0.5.4       rprojroot_2.0.3      rstudioapi_0.14      farver_2.1.1
[7] rstan_2.21.8         remotes_2.4.2        fansi_1.0.3          lubridate_1.9.0      xml2_1.3.3           codetools_0.2-18
[13] splines_4.2.2        doParallel_1.0.17    jsonlite_1.8.4       nloptr_2.0.3         pROC_1.18.0          png_0.1-8
[19] compiler_4.2.2       httr_1.4.5           assertthat_0.2.1     Matrix_1.5-1         lazyeval_0.2.2       cli_3.6.0
[25] rPref_1.4.0          prettyunits_1.1.1    tools_4.2.2          igraph_1.4.2         gtable_0.3.3         glue_1.6.2
[31] dplyr_1.0.10         rappdirs_0.3.3       Rcpp_1.0.10          prophet_1.0          carData_3.0-5        cellranger_1.1.0
[37] fracdiff_1.5-2       h2o_<IP_ADDRESS>         vctrs_0.5.1          urca_1.3-3           nlme_3.1-160         iterators_1.0.14
[43] lmtest_0.9-40        timeDate_4022.108    stringr_1.5.0        ps_1.7.2             openxlsx_<IP_ADDRESS>     rvest_1.0.3
[49] timechange_0.2.0     lifecycle_1.0.3      zoo_1.8-11           scales_1.2.1         ragg_1.2.5           parallel_4.2.2
[55] inline_0.3.19        RColorBrewer_1.1-3   rpart.plot_3.1.1     yaml_2.3.6           quantmod_0.4.20      curl_5.0.0
[61] gridExtra_2.3        ggplot2_3.4.2        loo_2.6.0            StanHeaders_2.21.0-7 rpart_4.1.19         stringi_1.7.12
[67] tseries_0.10-53      desc_1.4.2           TTR_0.24.3           pkgbuild_1.4.0       zip_2.2.2            shape_1.4.6
[73] systemfonts_1.0.4    rlang_1.1.0          pkgconfig_2.0.3      bitops_1.0-7         matrixStats_0.63.0   lattice_0.20-45
[79] purrr_1.0.1          patchwork_1.1.2      labeling_0.4.2       processx_3.8.0       tidyselect_1.2.0     here_1.0.1
[85] plyr_1.8.8           magrittr_2.0.3       R6_2.5.1             generics_0.1.3       DBI_1.1.3            pillar_1.9.0
[91] withr_2.5.0          mgcv_1.8-41          xts_0.12.2           survival_3.4-0       abind_1.4-5          RCurl_1.98-1.12
[97] nnet_7.3-18          tibble_3.1.8         crayon_1.5.2         car_3.1-1            utf8_1.2.2           lares_5.2.1
[103] grid_4.2.2           minpack.lm_1.2-3     callr_3.7.3          forecast_8.20        digest_0.6.31        tidyr_1.2.1
[109] extraDistr_1.9.1     textshaping_0.3.6    RcppParallel_5.1.7   stats4_4.2.2         munsell_0.5.0        glmnet_4.1-7
[115] quadprog_1.5-8 `

can you please update to the latest github version and retry. we've made some improvement esp. regarding the object size reduction since your version.


Edge length?

Is there a way to dictate how long the edges are based on the nodes that are being connected? I have been using this tool to visualize a simplicial complex that is the result of my own algorithm (not the mapper algorithm) and I want edge length to have meaning. If this is not already a feature would anyone be able to point me to the section of code that I would need to modify to make this happen? I have messed around with quite a few things, but haven't had any luck.

The underlying library for the html vis is d3 force graph, and no, you
can't specify edge length.
On Mon, Sep 14, 2020, 8:04 AM jordansaethre<EMAIL_ADDRESS>wrote:

Is there a way to dictate how long the edges are based on the nodes that
are being connected? I have been using this tool to visualize a simplicial
complex that is the result of my own algorithm (not the mapper algorithm)
and I want edge length to have meaning. If this is not already a feature
would anyone be able to point me to the section of code that I would need
to modify to make this happen? I have messed around with quite a few
things, but haven't had any luck.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/scikit-tda/kepler-mapper/issues/197, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAI6Y7O4LNYNR7XY5OFRJR3SFYPINANCNFSM4RLUSCSQ
.

If you're okay with static graphs, the plotly visualization functionality should let you specify edge lengths.  The entry point is here: https://github.com/scikit-tda/kepler-mapper/blob/956b8c90b93734851e4aa0da5d166c0a65e944b7/kmapper/plotlyviz.py#L61-L86
Right now, it does not support supplying some sort of distance matrix, but I believe you should be able to thread a parameter all the way down to the point the graph_layout argument is used.

In addition to @sauln 's, suggestions, I also misspoke -- d3 force graphs do let you specify link distance, see https://github.com/d3/d3-force#link_distance . I have a PR in the works that upgrades d3 to the latest version which use the linked docs

It might be possible to overwrite the d3 force layout also..
https://github.com/scikit-tda/kepler-mapper/blob/956b8c90b93734851e4aa0da5d166c0a65e944b7/kmapper/static/kmapper.js#L127-L131
You can supply a function to the linkDistance method that will instantiate the distance for each link.  For an example, you can see http://bl.ocks.org/sathomas/83515b77c2764837aac2
force.linkDistance(function(link) {
  return link.graph === 0 ? height/2 : height/4;
});

Maybe instead you could do something like
force.linkDistance(function(link) {
  return link.length;
});

and then turn gravity (and probably other parameters) to 0 so the link length doesn't change?

@jordansaethre  If you can get it to work, it'd be awesome to have this as a contribution to the library!

@sauln I think the more recent versions of d3-force respect the link distance more than the current version does, so gravity wouldn't have to be messed with. Also, I think the concept of gravity has been replaced by charge in the latest versions. You can see some of the changes I had to make to the force layout in the most recent wip pr.

To emphasize, if any work is going to be done on this, the changes between the d3-force version used in my WIP and the version on master are so drastic, that any changes to the d3 code should hold off a bit.
See https://github.com/scikit-tda/kepler-mapper/pull/196/commits/79ec3bde0431c2f175e87215eea75066e78b2b06

@sauln  @deargle  I will definitely give it a shot. Thanks for the tips guys!


Improve readability in ATMP

Thanks to #293 it is finally possible to stop hijacking the final return true in ATMP.
The diff looks less scary with git show --diff-algorithm=histogram.

Nice.
Also less scary with ?w=1 :-)

whaa.... wow!


Remove resets on empty strings

Remove seemingly random resets in strings.
This is definitely a breaking change.

this is definitely not breaking as it doesn't change any API
however I have no idea what is a reset and what is the change here
can you explain ?

A reset is a type of color code. This change changes the color codes inserted into the message from the chat message.
My change only adds the reset to the message if message component is not empty and it meets other requirements of being a string or number.

As for the reason why it is breaking, it would break people's regexes if they rely on the motd color codes being a specific way.


Possible breaking change in 3.5.2

Hello there. After updating Serenity packages from 3.4.4 to 3.5.2, I'm getting an error in T4 template transformation. Updated all packages including Web Tooling. Project is traditional .NET 45. Any suggestions?
Compiling transformation: 'InterfaceImplementation' does not contain a definition for 'FullName' and no extension method 'FullName' accepting a first argument of type 'InterfaceImplementation' could be found (are you missing a using directive or an assembly reference?)	Miscellaneous Files	xxx.Web\Imports\ClientTypes\..\CodeGenerationHelpers.ttinclude	167

Volkan already answered:
replace externalType.Interfaces.Add(intf.FullName) with externalType.Interfaces.Add(intf.InterfaceType.FullName)
=> (it worked for me).
anyway, Try to update to 3.5.4 (latest version)

Thanks for quick response. I tried this and new error results, this time in the ServerTypings.tt
Error		Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
   at Serenity.CodeGeneration.CecilImportGenerator.CanHandleType(TypeDefinition memberType) in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\Base\CecilImportGenerator.cs:line 194
   at Serenity.CodeGeneration.ServerTypingsGenerator.<>c__DisplayClass5_0.<GenerateBasicType>b__1(TypeReference memberType, String memberName, IEnumerable`1 a) in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 107
   at Serenity.CodeGeneration.ServerTypingsGenerator.<>c__DisplayClass5_0.<GenerateBasicType>b__0() in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 101
   at Serenity.Reflection.CodeWriter.InBrace(Action insideBlock) in C:\Projects\StartSharp\Serenity\Serenity.Core\Reflection\CodeWriter.cs:line 45
   at Serenity.CodeGeneration.ServerTypingsGenerator.GenerateBasicType(TypeDefinition type) in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 99
   at Serenity.CodeGeneration.ServerTypingsGenerator.<>c__DisplayClass4_1.<GenerateCodeFor>b__1() in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 44
   at Serenity.Reflection.CodeWriter.InBrace(Action insideBlock) in C:\Projects\StartSharp\Serenity\Serenity.Core\Reflection\CodeWriter.cs:line 45
   at Serenity.CodeGeneration.ServerTypingsGenerator.<>c__DisplayClass4_0.<GenerateCodeFor>b__0(Action`1 action) in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 42
   at Serenity.CodeGeneration.ServerTypingsGenerator.GenerateCodeFor(TypeDefinition type) in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 79
   at Serenity.CodeGeneration.CecilImportGenerator.GenerateAll() in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\Base\CecilImportGenerator.cs:line 184
   at Serenity.CodeGeneration.ServerTypingsGenerator.GenerateAll() in C:\Projects\StartSharp\Serenity\Serenity.CodeGenerator\CodeGeneration\ServerTypings\ServerTypingsGenerator.cs:line 30
   at Microsoft.VisualStudio.TextTemplating94C26B6604256E74C3E65A10A316556AA1B02CC6EB1D555CD8158FBF98FECBED8A38792F0DA15BB9B62C88B9D76FE0C9EA7A88C9EF9B9BAB46BC3461479F9CE1.GeneratedTextTransformation.TransformText()	PWB.Web	C:\Users\antho\Documents\Dev\Projects\PWB\PWB\PWB.Web\Imports\ServerTypings\ServerTypings.tt	1

Also updated packages to 3.5.4 and same result.

Cecil returns null for some memberType.Resolve() in your project, hard to now which

Thanks, that will help a lot

After upgrade to latest serenity and replace externalType.Interfaces.Add(intf.InterfaceType.FullName) , I got this error:
Compiling transformation: 'TypeReference' does not contain a definition for 'InterfaceType' and no extension method 'InterfaceType' accepting a first argument of type 'TypeReference' could be found (are you missing a using directive or an assembly reference?)
C:\Users\admin\source\repos\Serene2\Serene2.Web\Imports\ClientTypes..\CodeGenerationHelpers.ttinclude	167

You need to also upgrade Serenity.Web.Tooling before doing that change

e.g. Cecil under tools\Cecil should be 0.10.0 version

If you don't use Saltaralle at all (e.g. C# to Javascript compiler), you may also remove SSTypeLister class in CodeGenerationHelpers.include along with these lines in ServerTypings.tt and ClientTypes.tt:
    if (System.IO.File.Exists(solutionDir + @"Marmara.Script.Site\Marmara.Script.Site.csproj"))
    {
        var ssDir = solutionDir + @"Marmara.Script.Site\bin\debug\";
        var ssTypeLister = new SSTypeLister(
            ssDir + "Serenity.Script.Imports.dll",
            ssDir + "Serenity.Script.UI.dll",
            ssDir + "Marmara.Script.Site.dll");
        var ssTypes = ssTypeLister.List();
        foreach (var type in ssTypes)
            generator.AddSSType(type);
    }

    if (System.IO.File.Exists(solutionDir + @"Marmara.Script.Site\Marmara.Script.Site.csproj"))
    {
        var ssDir = solutionDir + @"Marmara.Script.Site\bin\debug\";
        var ssTypeLister = new SSTypeLister(
            ssDir + "Serenity.Script.Imports.dll",
            ssDir + "Serenity.Script.UI.dll",
            ssDir + "Marmara.Script.Site.dll");
        var ssTypes = ssTypeLister.List();
        foreach (var type in ssTypes)
            generator.AddSSType(type);
    }

After upgrade Serenity.Web.Tooling it worked, thanks !

@likeshan168 can you tell me what is the file name of generated .ts file under ServerTypings.ts in old version for this file and share the code generated?

Is it?

OK, thanks

found something similar

and the debug info is

Can you try with 3.5.5, it should be available in 5 mins+

ok, I will try when it is available

Well it stuck in validating in NuGet server, so might take some time

fixed for me thx. issue was the <SlingRow> in the SlingPriceRequest class definition. TS Class signature now looks like:
namespace PWB.SlingMate.Services {
    export interface SlingPriceRequest extends Serenity.ServiceRequest {
        Entity?: SlingRow;
        EntityId?: number;
        IsNew?: boolean;
        DistributorId?: number;
        PriceModelId?: number;
    }
}

it also fix my issue, thanks

Same Proble With NetCore version LastVersion :(


Validate component and pipeline fields at class definition

As #360 gets merged and more custom functionality gets added to automl users will be defining more and more pipelines. I think it is best that pipeline structure, pipeline components, and problem types are validated on definition as they errors would only surface on instantiation. If users are using pipelines with automl these errors would surface during model search which is confusing.
Likewise, currently pipeline and component required fields are check on instantiation (as part of an ABC) instead of checked on definition.
I've done some brainstorming in the branch  js_test_decorators where I explored using a class decorator to check for required fields (this can be extended to check the fields themselves). We can use this solution to also enable properties we need for these classes such as returning copies of class variables.

Incomplete list of some things we could validate on components at definition-time:

supported_problem_types
hyperparameter_ranges: ensure that each range contains the default from default_parameters (@bchen1116 and I discussed this on #767 )

Incomplete list of some things we could validate on pipelines at definition-time:

component_graph: ensure all entries are valid components. After pipelines as DAGs (#273 ), check for cycles etc.
custom_hyperparameters: same as for components


Immutable and Parser not working together

Description
If you configure the FormlyModule with immutable property set to true, parsers will not be processed anymore.
Minimal Reproduction
https://stackblitz.com/edit/ngx-formly-ui-bootstrap-ixlc83

the model is not updated when immutable is enabled,you need to rely on modelChange output:
<formly-form
+ (modelChange)="model = $event"
  ...
>
</formly-form>

Thanks a lot!


Add a new FolderColorRgb option to both New-GSDriveFile and Update-GSDriveFile

Currently unable to set drive folder colors using PSGSuite.
Would like to be able to assign colors to drive folders.
New parameter could be added, such as:
        [parameter(Mandatory = $false)]
        [ValidateSet('ChocolateIceCream','OldBrickRed','Cardinal','WildStrawberries','MarsOrange','YellowCab','Spearmint','VernFern','Asparagus','SlimeGreen','DesertSand','Macaroni','SeaFoam','Pool','Denim','RainySky','BlueVelvet','PurpleDino','Mouse','MountainGrey','Earthworm','BubbleGum','PurpleRain','ToyEggplant')]
        [string]
        $FolderColorRgb

with a color dictionary of UI allowed colors being defined as:
$ColorDictionary = @{
            ChocolateIceCream    = '#ac725e'
            OldBrickRed          = '#d06b64'
            Cardinal             = '#f83a22'
            WildStrawberries     = '#fa573c'
            MarsOrange           = '#ff7537'
            YellowCab            = '#ffad46'
            Spearmint            = '#42d692'
            VernFern             = '#16a765'
            Asparagus            = '#7bd148'
            SlimeGreen           = '#b3dc6c'
            DesertSand           = '#fbe983'
            Macaroni             = '#fad165'
            SeaFoam              = '#92e1c0'
            Pool                 = '#9fe1e7'
            Denim                = '#9fc6e7'
            RainySky             = '#4986e7'
            BlueVelvet           = '#9a9cff'
            PurpleDino           = '#b99aff'
            Mouse                = '#8f8f8f'
            MountainGrey         = '#cabdbf'
            Earthworm            = '#cca6ac'
            BubbleGum            = '#f691b2'
            PurpleRain           = '#cd74e6'
            ToyEggplant          = '#a47ae2'
        };

filling the body of the API call with
            if ($FolderColorRgb) {
                $body.FolderColorRgb = $ColorDictionary[$FolderColorRgb];
            }

I believe this will work for Drive folders.  I'm not sure if this will cause any issues if attempted on a non-folder file or Team Drive file.
This should allow automation of the UI feature to change a folder's color as seen here:

Hey @WJurecki - Great suggestion! I'm on it ASAP, although PR's always welcome =]

Should be getting this sorted by tonight!

available now in v2.26.1!


Add photo gallery website

I want to add a photo gallery website.

did u create this issue in any other of our repo ?

Yes I have created this issue in the Amazing JS project but you asked me to
create this in this "cool front end template" and you closed that issue in
the other repo. Thank you.

I WANT TO WORK ON THIS ISSUE UNDER GSSOC'22.


chore(docker): 🤖 remove docker compose

Changes

remove docker-compose.yml
simplify dockerfile
modify the directory structure of the dev container

revert to the previous Docker & Dev Containers settings


Restore the _U cookie.

I want to use it.

cookies = [
{
        "name": "_U",
        "value": "..."
    }
]
bot = Chatbot(cookies=cookies)


Update shutdown modal

It closes #768.
Some details:

I've replaced opening a new browserWindow with a rendering component within the same view,
The main process sends an IPC event to the Renderer, which updates a redux state and then it shows a Shutdown modal,
The desired component look is achieved easily by using the existing Modal component.

Confirming dialog box new look is good.


Adding zk regex to community packages

I suggest we add zk-regex-o1js to our community packages list in the readme.  It is a high-quality package with good documentation and many use cases.
It may need to add some tests within provable code before meeting the criteria.

Dupe of #1773


Capture measurements in CSV based on time intervals

CodeCarbon version: 2.2.2
Python version: 3.11.5
Operating System: Linux-6.2.0-35-generic-x86_64-with-glibc2.35

Description
I have implemented a method that enables the capture and storage of consumption logs (CSV format) in parallel every second during the execution of my algorithm. Nevertheless, I would be interested in exploring whether there are more efficient alternatives from a technical or academic standpoint to accomplish this process. Below, I am providing the code of my current solution for review and suggestions.
What I Did
from codecarbon import EmissionsTracker
import threading

pthread=1
def fthread():
    while pthread:
        tracker.flush()
        time.sleep(1)

# Creates an instance of a thread and passes the function is executed.
eng_measure = threading.Thread(target=fthread)

# Training
tracker = EmissionsTracker(project_name="Test",tracking_mode="machine")
tracker.start()
eng_measure.start()
try:
    # code
finally:
    pthread = 0
    eng_measure.join()
    emissions = tracker.stop()

Hello,
Doing it every second could be quite disk intensive, and useless as CodeCarbon only update measure every 15 seconds.
For a better solution we could update CodeCarbon to write to a csv file in the same place we call the API and Prometheus : https://github.com/mlco2/codecarbon/blob/master/codecarbon/emissions_tracker.py#L703
So you will just need to do:
tracker = EmissionsTracker(project_name="Test",tracking_mode="machine", csv_run_name="emissions_test54.csv")
And CodeCarbon will update the CSV every 8 x 15 seconds (api_call_interval * measure_power_secs).
What do you think of this ?
Maybe CodeCarbon could generate a run_id to prevent the need of giving the file name.

Thank you very much for your response. The proposed update would be very useful. I will be looking forward to your reply.


Contact Us Page - Form setup

Repeat the same design as the home page.
@TheDataAreClean to check the feasibility of integrating Mautic

Removed the contact us form and replaced it with the three new text blocks.


 page needs updating

https://developer.mozilla.org/en-US/docs/Web/CSS/url is scant.
[ ] - add rules associated with escape characters
[ ] - remove the note about the bug fixed 7 years ago.

Added this text to add the escape character rules: "If you choose to write the URL without quotes, use a backslash () before any parentheses, whitespace characters, single quotes (') and double quotes ("). "
Removed the note on this page.

@chrisdavidmills I've reviewed the changes on this, and fixed a typo but looks to be completed.

Yup, this looks good. Thanks @rachelandrew , and thanks @workingwriter !


Easily output normal node streams

When I'm writing modules, I'd like the API I expose to return normal node streams instead of highlands special ones. Some kind of .toNodeStream() would be nice. This would also be solved if highland streams subclassed node streams.

Here it the non compliant part:
Node streams can be consumed multiple times w\o extra effort.
If I'm passing my stream to other lib which later does
stream.pipe(a)
stream.pipe(b)
Then I have an exception.
One example would be GulpJS

Thanks for the tip @stephen-bartell. That solved a problem I was having. I was trying to pipe a highland stream into a REST PUT request using the request.js module but it was only sending the first ~15kb depending on some settings I could tweak. I'm not exactly sure what was wrong, but as soon as I put the intermediate .pipe(new Stream.PassThrough({ objectMode:true })) in it started sending the whole stream.
Even though this method works, it still feels like a hack and it would be nice if there was a more concise way to get back to regular node streams. Or at least info in the docs discussing how to send data to non- objectMode=true streams.


MathJax equation previews

Have you checked that your feature request isn't already filed?

[X] I read through FAQ and searched through the past issues, none of which addressed my feature request.
[X] Yes, I have checked that this feature request isn't already filed.

Description & Motivation
I saw elsewhere that it's possible to configure so that hovering over an equation reference can display a preview of the actual equation (much like hovering over footnotes or references shows the linked object in place).
Discussion:
https://gist.github.com/mauriciopoppe/ec311235997fab7b2993
Would it be possible to support this feature?
Pitch
This is a non-critical but nice-to-have feature that could make reading technical blog posts easier without having to jump back and forth for references.
Alternatives
No response
Additional context
No response

It is worth taking a look.


Stopped working on 10.15.5

Version 0.11 stopped working on 10.15.5 after restart of the computer.
After hitting combination to bring maccy popup it was killed (icon disappeared from the top bar)
How can I provide more info to you?

same here. was fine yesterday

maybe related to https://github.com/p0deje/Maccy/issues/115  ?

Please try on 0.12 - it's likely fixed. I'll close the issue, but feel free to re-open if it's still present.

Duplicate of #115

@p0deje there's no 0.12

Oh, right, I misread the problem. Could you try https://github.com/p0deje/Maccy/issues/115#issuecomment-642437517?

@p0deje for me deleting those folders fixed the issue.
it's weird cause i've been flipping between 0.10, 0.11, and even the test version of 0.12 and all was fine.
today it crashed.
@PkAIR does it fix for you?

@FernandoMiguel going to try now!

@FernandoMiguel indeed, now it works for me also after I deleted prev version completely with appcleaner.
thank you so much.
@p0deje thank you for such a cool and lightweight app!

Feel free to close the ticket

I've found another issue that could potentially cause a similar crash. The fix is 8a59482 and will be released in 0.12. I'm almost sure that is the cause of the crash reported here.

@p0deje good news! waiting for the new build.

Please upgrade to 0.12. In order to upgrade, either install from Github if you can't start Maccy or cleanup the history by removing ~/Library/Application Support/Maccy/Storage.sqlite file - that should allow Maccy to start so you could upgrade.

@p0deje update was really smooth and straightforward. works like a charm


Edit links in readthedocs incorrect

For example on https://springtime.readthedocs.io/en/latest/ the edit link is https://github.com/phenology/springtime/edit/master/docs/index.md while it should be https://github.com/phenology/springtime/edit/main/docs/index.md
For example on https://springtime.readthedocs.io/en/latest/notebooks/datasets_npn/ the edit link is https://github.com/phenology/springtime/edit/master/docs/notebooks/datasets_npn.ipynb while it should be https://github.com/phenology/springtime/edit/main/docs/notebooks/datasets_npn.ipynb
After #164 is merged
On http://<IP_ADDRESS>:8000/reference/springtime/datasets/insitu/pep725/ edit link is https://github.com/phenology/springtime/edit/master/docs/src/springtime/datasets/insitu/pep725.py
while it should be https://github.com/phenology/springtime/edit/main/src/springtime/datasets/insitu/pep725.py
On http://<IP_ADDRESS>:8000/clireference/insitu/NPN/ edti link is
https://github.com/phenology/springtime/edit/master/docs/src/springtime/recipes/datasets/insitu/NPN.yaml
while it should be https://github.com/phenology/springtime/edit/main/src/springtime/recipes/datasets/insitu/NPN.yaml
Notice that the branch should be main instead of master.
Notice that docs/ should removed from edit link when item is not inside docs/ folder.

We discussed that we could also remove the button, I don't think there's a big need for it. For notebooks, the download button is more useful, and if you just want to go to the GH repo, you can use the top right icon in the menu bar.


full TLA+ parsing

Just an FYI (from your talk here: https://www.youtube.com/watch?v=trm9Lp0yt6Y), you can parse TLA+ with either Apalache (it outputs JSON which you can then walk in whatever language you want), or there's a Python project here (based on an Ocaml project): https://github.com/tlaplus/tla_python
Either way, you don't have to build the TLA+ parsing from scratch.

Another alternative is the tree-sitter grammar: https://github.com/tlaplus-community/tree-sitter-tlaplus
It isn't really made to be the backbone of an interpreter/compiler/transpiler, but it is complete and has minimal runtime requirements. See the dev examples here: https://github.com/tlaplus-community/tlaplus-tool-dev-examples/tree/main/tree-sitter

Thanks for the tips! I've actually been postponing taking care of this (terrible) parser of mine for a while now, but this week I've started a converter from Apalache's internal representation (from the produced JSON) to mine. I believe it's the best alternative right now since it's the most used tool from all these.


DR-HSH006S becomes unresponsive after setting state to 'OFF' via Home Assistant

Steps taken from Home Assistant booting up on freshly configured device.

With the heater in the 'OFF' state, set to any state besides 'OFF' - the heater responds as expected
Set the heater to the 'OFF' state and wait for the cooldown to elapse
Set the heater to any state besides 'OFF' <== the heater does not change to the requested state

While in the erroneous state;

the heater only displays a white WiFi symbol on the front that switches off once the state is once again set to 'OFF',
the Dreo app is also unable to set the state of the heater.

I am able to make the heater responsive again by pressing the physical 'mode' button while the heater is configured to be in any state other than 'OFF'. It then works fine via Home Assistant and the Dreo app, until Home Assistant is used to set it to the 'OFF' state again.
The heater works fine with the Dreo app, just this one bit in Home Assistant that means I can't use it.
Heater model: DR-HSH006S
Heater firmware version: V3.2.6_1.2.3
home-assistant_2024-10-29T13-32-13.302Z.log

I'm having the same/similar issue with a DR-HSH006S I setup yesterday.....there is a note/sticker on the top of the heater that says app control will be restricted under "certain situations" and the wifi light will illuminate as you describe above. The note goes on to reference some UK1278 Standard....haven't figured out exactly what the means yet....
Based on your post my own tests would seem to indicate that as you say the issue only arises when set to "Off" from within HA...you can turn On and Off from the App no problem but Off in HA causes the issue. Assuming not set to Off in HA all other functions work fine.
A workaround for now is in HA to set back to Eco Mode with a very low temp so the Heater is effectively off but doesn't lose connectivity to HA.....

I spotted the sticker, and the readme does make reference to the UL... standard too, though I don't believe this is being triggered in this case (at least not via the way described). The sticker does indeed mention that the light is supposed to illuminate yellow, though I can confirm it is very much white in this case.
It does indeed seem to only lie with setting the heater to the 'OFF' state as you can seemingly operate it however you want until turning it off, then manual intervention is required. Your workaround for switching it off via eco mode is genius btw, thank you!
As for Celsius for the current temperature, mine is also locked in Fahrenheit despite using Celsius in Home Assistant. The configured temperature on the heater entity shows in Celsius, but not the current temperature. The target temperature entity is also locked in Fahrenheit.

pull request with possible fix: #226
tested on a different device (DR-HSH004S), but I expect it to work for DR-HSH006S  as well


Improve command-line samples (argument parsing, usage documentation, variable prompting, sample syntax)

Command-line samples should...

provide useful, attractive usage documentation
allow for arguments to be passed such as --project-id or --bucket-name
also allow for arguments to be provided via environment variables or config file
prompt users for required variables that were not provided
have a nice, clear, easy to comprehend syntax for defining commands/arguments/options

Greetings, we're closing this due to inactivity. Please let us know if the issue needs to be reopened.


How to post x-www-form-urlencoded body?

So far I'm not finding anything in the code or examples on how to post something other than a raw_body. How can I post requests using bodies other than raw?

So far I'm not finding anything in the code or examples on how to post something other than a raw_body. How can I post requests using bodies other than raw?

Hi @treymerkley
I also met this issue and found a way to figure out it:
just use the raw body and wet the key: value as a string

set your header

{name: 'Content-Type', value: 'application/x-www-form-urlencoded'}

set body

raw_body: 'key=value'

it works well

So far I'm not finding anything in the code or examples on how to post something other than a raw_body. How can I post requests using bodies other than raw?

Hi @treymerkley
I also met this issue and found a way to figure out it:
just use the raw body and wet the key: value as a string

set your header

{name: 'Content-Type', value: 'application/x-www-form-urlencoded'}

set body

raw_body: 'key=value'

it works well

I didn't end up using ruby-jmeter much longer, so I'll accept this as solving the issue.


I think this bug is related to this mod but not s ure

I recently installed this mod... everything worked fine.. except that sometimes blocks will randomly become another block... water becoming emerald ore, skeleton skull etc... dirt becoming dead bush, grass blocks turning into moss stone... wasnt having this issue before i installed this mod.. so im assuming thats the issue of this mod..

Can you provide logs and such?
Are you using things like NEID or EndlessIDs?
What generator are you using?
Does it fix itself if you disconnect/reconnect.
This seems like an ID issue somehow so not sure why our mod would cause it.


Some multi-language API examples not grouped correctly

Some multi-language API examples aren't getting grouped correctly. For example, see the top of https://www.pulumi.com/docs/reference/pkg/aws/alb/targetgroupattachment/:

Notably, there is an "Example Usage" section further down where things look okay:

I believe this is the same underlying issue as #3428.

The issue here is the in consistent markdown in the upstream provider :/ I guess we need to add some metrics to doc generation to give us a better understanding of what converts and doesn’t
I will fix up this specific example in our fork


Using LockProvider without Spring

Hi @lukas-krecan, thanks for the great library. I am looking for the correct implementation of a simple scheduler without Spring by relying only on ShedLock's LockProvider. To execute the Runnable at a scheduled rate I am using a java.util.concurrent Executor with fixed rate. I am not sure whether creating a new LockConfiguration at each execution will negatively impact, i.e., will another instance of the application running the same executor will be able to create a new lock since the LockConfiguration is created within the Runnable or not?
Following is my approach:
...
public void run() {
    executorService = Executors.newScheduledThreadPool(1);
    Runnable command = () -> {
            Instant lockAtMostUntil = Instant.now().plusSeconds(14);
            LockConfiguration lockConfiguration = new LockConfiguration("my_lock", lockAtMostUntil);
            Optional<SimpleLock> lock = lockProvider.lock(lockConfiguration);
            if (lock.isPresent()) {
                doUpdate();
                lock.get().unlock();
            }
    };
    executorService.scheduleAtFixedRate(command, 15_000, 15_000, TimeUnit.MILLISECONDS);
}

Ps.: Although that is not an issue, I had not found a user list to post such question.

Hi, I would recommend to do it like this https://github.com/lukas-krecan/ShedLock/issues/68. Creating new LockConfiguration is OK, it's just a lightweight data object so it does not matter how you create it.
There is not user list, GitHub issues are good enough.

Thanks for the reply, however I am not sure how recurrently run the Runnable using executeWithLock. It will run once, right? That is why I have used the scheduleAtFixedRate.

Yes, I would do something like this
LockingTaskExecutor executor = new DefaultLockingTaskExecutor(lockProvider);

...
public void run() {
    executorService = Executors.newScheduledThreadPool(1);
    Runnable command = () -> {
            Instant lockAtMostUntil = Instant.now().plusSeconds(14);
            LockConfiguration lockConfiguration = new LockConfiguration("my_lock", lockAtMostUntil);
            executor.executeWithLock(() -> doUpdate(), lockConfiguration);
    };
    executorService.scheduleAtFixedRate(command, 15_000, 15_000, TimeUnit.MILLISECONDS);
}


Restore aging

As it turns out aging was actually used in production, unknown to us. We therefore need to delay removal of this feature until we have implemented an equivalent replacement using compaction.
:memo: Checklist

[x] All user-facing changes have changelog entries.
[ ] The changes are reflected on docs.tenzir.com/vast, if necessary.
[x] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions

For the docs, I think it should be ok to leave them as-is and not restore the section on aging, since we still plan to remove this in the near future.

For the docs, I think it should be ok to leave them as-is and not restore the section on aging, since we still plan to remove this in the near future.

I agree with this assessment. We should still remove this as soon as time-based compaction is available, and then provide a guide on how to migrate. We also need to mark experimental things as experimental more clearly in the future.


Display Max Price and Average Price on buy/sells

Users want to see where the prediction will move to (max price) and what their entry will be (avg price) without doing mental mathematics.

Price impact % or something else?

Price impact would still require someone to do math to figure out where the price moves to, so I think we just need to display max price (Aka price after trade). Average price is probably lesser importance.


kloak: init at v0.2

Motivation for this change
Things done

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

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

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

Thanks for the review @mweinelt!
I wasn't sure if the website-specific fetchers were preferred but I'm happy to defer to your judgement.

Closing as dead.


Use date range to query warehouse content endpoint

What
Use date range to query warehouse content endpoint
Why
We are using materialised views to render content from the content endpoint in our back end. The content end point is set up to use a date_range metric rather than from and to metrics. This makes sense as it will be much easier to identify the required view from a date_range param rather than having to do complex logic to determine the required view from from and to params.
Notes
This PR will not make any difference to the functionality of our index page on it's own. We currently have the back end hard coded to only ever show data from the last 30 days. It does however need to be merged before the back end changes so as not to break existing functionality.

Review Checklist

[ ] Changes in scope.
[ ] Added/updated unit tests.
[ ] Added/updated feature tests.
[ ] Added/updated relevant documentation.
[ ] Added to Trello card.

 (3) Index page - Make date range filters work on index page


Feature request: enable configuring the number of documents that are passed as context to the LLM

At the moment Dialoqbase will pass 4 documents as {context}. It would be great if this number were configurable.

Hey, I will add that in the upcoming update


[Bug Report] Player Head & Tipped Arrow Display Issues

Minecraft Server Version: [1.18.2]
Plugin Version: [1.10.3]
I've recently been having some issues with the crate display menus. First, my player heads no longer have proper textures since the update to the latest version (it was working fine before); essentially, the 'Player: (...)' string only shows default heads now. I'm assuming the display options for this haven't changed since the wiki advice appears the same while the internal data for newly added player skulls has changed in the files.
Also, while I'm here, I may as well report another issue I've been having with the display since I downloaded this plug-in over a year ago, the tipped arrow colors. The wiki has a helpful guide for setting armor and potion colors that doesn't apply to tipped arrows nor does the potion effect string (i.e. TIPPED_ARROW:POISON) seem to change the color in the display. No matter what I try, the color of the tipped arrow item has always remained pink in the display.
This does not include the actual reward items themselves, which work just fine and have continued to since the update. This issue is purely with the crate display menu.
Thank you for your time.

Able to confirm this issue as well that Player Heads are not displaying properly anymore.

Can you give me your config @TroyFarmer @Skizzles

'22':
DisplayName: §eCarbon
Lore:
- ''
- '&e4% Chance'
DisplayItem: PLAYER_HEAD
DisplayAmount: 1
MaxRange: 100
Chance: 4
Player: 'http://textures.minecraft.net/texture/8b3a095b6b81e6b9853a19324eedf0bb9349417258dd173b8eff87a087aa'
Messages:
- '&5&lVoidCrates &8» &7You have won &e1 Carbon&7!'
Commands:
- sf give %player% CARBON 1
  An example of mine that does not work

Any update on this?

Able to confirm this issue as well that Player Heads are not displaying properly anymore.
+1 same here

Try v1.10.4, it should fix the heads issue.

Fixed Heads: f2156e31753303e483202a509dd2b225b342c1c1
Fixed Arrows: a3a245920e0aa516c31e4cc6093d193b6350d7a5

Fixed Heads: f2156e3
Fixed Arrows: a3a2459

After using the latest build this is still not functioning.

Thank you for fixing the player head display issue, they seem to be working now. Although I have still been unable to use tipped arrow colors in the display using the methods outlined in the wiki. Hoping for it to be fixed in a later update.


SW-4740 Add project update card to batch summary

SW-4740 Add project update card to batch summary
Split summary view into 4 on top and 3 on bottom

Current dependencies on/for this PR:

main

PR #2106   👈

This stack of pull requests is managed by Graphite.


chore: enable release workflow

Resolves https://github.com/asyncapi/asyncapi-php-template/issues/151
What I did:

made proper npm package name
cleanup scripts and dependencies for release (basically no deps are now needed)

@emilianozublena before we merge it, please:

rename this repo to php-template
add repo topics like get-global-node-release-workflows and get-global-releaserc
manually create 0.0.1 GitHub release, dummy like https://github.com/asyncapi/modelina/releases/tag/v0.0.1

My recommendation is:

first you do the configuration
then we merge this
then I trigger push of release config and workflow from .github repo
then you add feat:  prefix to https://github.com/asyncapi/asyncapi-php-template/pull/164 and the template will get released with 0.1.0 version

Thoughts?

hihi @derberg ! looking good.
Not sure if you saw my comment here: https://github.com/asyncapi/asyncapi-php-template/issues/151#issuecomment-1357632771 but i don't see the regular name update field under settings, maybe i'm lacking some permission or am i just looking at the wrong place?. Already added the topics, and will create the release after i manage to change the name.
I think we should also remove the node tests as there's nothing to be run there yet, right?
Thanks a ton!

Awesome @derberg! just changed the name and here's the release dummy version
https://github.com/asyncapi/php-template/releases/tag/v0.0.1

sorry @emilianozublena 😞 was out a bit to charge batteries.
you could merge. Best do it through comment like 👇🏼
/rtm (which stands for ready-to-merge)


ValueError: Could not find a format to read the specified file in single-image mode

Traceback (most recent call last):
File "demo.py", line 131, in
source_image = imageio.imread(opt.source_image)
File "/usr/local/miniconda3/envs/animation1/lib/python3.6/site-packages/imageio/core/functions.py", line 265, in imread
reader = read(uri, format, "i", **kwargs)
File "/usr/local/miniconda3/envs/animation1/lib/python3.6/site-packages/imageio/core/functions.py", line 182, in get_reader
"Could not find a format to read the specified file in %s mode" % modename
ValueError: Could not find a format to read the specified file in single-image mode
when i run the command,iget the above error
python demo.py --config config/fashion-256.yaml --driving_video path/to/driving --source_image path/to/source --checkpoint path/to/checkpoint --relative --adapt_scale

You should provide an actual video as driving


Update hitron_coda.py to fix login for Shaw modems

I have a Hitron modem provided by Shaw communications rather than from Rogers as the Docs specify for this device_tracker but it seems like the api/code is all the same except that the login failed due to the password being passed as "pws" instead of "pwd". Making that one character change allowed HASS to read the connected device details from my Hitron modem. If this difference is actually one that stands between the Rogers-provided Hitron modems and the Shaw-provided variant, I am happy to create another device-tracker file for the Shaw modem. I just figured I would go with the simplest solution first.
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5321
Example entry for configuration.yaml (if applicable):
device_tracker:
  - platform: hitron_coda
    host: !secret router_ip
    username: !secret router_username
    password: !secret router_password
    type: rogers

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Hi @mikedm139,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

You don't need to implement a second device tracker. Please make the key configurable. The default of the new configuration parameter should be "pws". The value can be overridden by "pwd".

I have updated the code and docs to reflect the use of an optional config variable.

@mikedm139 This is great! I was disappointed to find it didn't work with my Shaw modem.
One thing, could you update the documentation page?  https://www.home-assistant.io/components/device_tracker.hitron_coda/
Thanks.

@rgitzel I submitted a pull request for the docs too. You can check it out here. This is my first time contributing to Home Assistant so I'm not quite familiar with the process and expected timetable for release of the patch and associated update for the docs.

What about UPC Poland variant of hitron modem (CGNV4) is it possible to have tracker as rogers and shaw one??

@erykosky, it may be possible. I would recommend creating an issue for further discussion and tracking. Feel free to link to this pull request for reference.


Implementing game's logo instead of box art in grid view???

Hello!
I've written a theme for my EmulationStation (V2.10.0RP-DEV) setup and am loving it so far, but I wanted to add a grid view. Is it possible to display the game logos instead of the box art in the grid view? I threw together something to illustrate what I have in mind.

DISCLAIMER: This is not a screenshot from EmulationStation!
I've read the THEMES.md multiple times and can't seem to find a solution. If anyone knows how I could possibly do this, it would be greatly appreciated! Also keep in mind that I am not using RetroPie at all and am instead running everything on my Windows HTPC setup.

I figured it out! I just replaced all the Box art with my logos, then implemented the Box art as md_marquee.


add option for blockHash per EIP-1898

Signed-off-by: Sally MacFarlane<EMAIL_ADDRESS>Related - change status of EIP-1898 from stagnant to draft https://github.com/ethereum/EIPs/pull/5980
Geth and Besu have both implemented support for this.

Hi, its already used in production a lot, now it's very confusing to build any proxy/loadbalancing solution for RPC protocol. Let's merge it!

Hi, its already used in production a lot, now it's very confusing to build any proxy/loadbalancing solution for RPC protocol. Let's merge it!

sounds good @Termina1 - how do we progress this PR?

I support this change! eth_getProof to get hashes / roots should definitely support blockhash param. Geth implements this already too: https://github.com/ethereum/go-ethereum/blob/2189773093b2fe6d161b6477589f964470ff5bce/internal/ethapi/api.go#L658 and I think Nethermind has very flexible block/tag/number/object arguments for most RPCs too.


Investigate process memory difference from heap memory.

From some longevity test, we find that  the gap between node(process) memory and heap memory is almost nearly 3G:

This is quite interesting and may affect our memory management policy. Some tools maybe used to find the gap:

size can be used find the size of different segment of elf file.
pmap command can be used to find the size of different segments of a running process.

duplicated with #9669.


Get-Team unreliable / returning incomplete results

Hi,
We have multiple issues with the Get-Team cmdlet in the MicrosoftTeams module (v2.3.0). Like many organisations, we're programmatically creating Teams based on organisational data (e.g. one Team to support one Dept/Module/some other business unit).
However, Get-Team often fails to return Teams that we have previously created (and do still exist in Microsoft-land). This makes the data untrustworthy and very difficult to deal with.
This problem can surface in multiple ways:

Running "Get-Team" to retrieve all teams

Results are often incomplete. When this happens, there are usually around 1-5 'missing' from what we expect, out of around 4000 Teams.
Problem 1 Demonstration script and output below.

Running "Get-Team -MailNickName" to query for a specific Team.

We can run a loop 100 times (with 3 second wait) and it fails to find the Team 100 times. The next day, the Team is found 100 times. Sometimes for example, it's found only 95 times out of 100. It is unreliable.

Under the hood, it's using the Graph API. Here's an example of a Team that exists, has an associated UnifiedGroup with ResourceProvisioningOptions=Team):
Get-Team -MailNickName 'thisisateam' -Verbose -Debug

VERBOSE: Done performing authorization
VERBOSE: Executing Get-Team for parameters GroupId: , User: , Archived: , Visibility: , DisplayName: , MailNickName: thisisateam
DEBUG: Making an api call to the uri: https://graph.microsoft.com/beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')&$top=20&$count=true&$search="mailNickname:thisisateam"
DEBUG: Returning 0 teams
VERBOSE: Retrieving groups list
VERBOSE: Done retrieving groups, getting team properties
VERBOSE: Done processing Get-Team

Problem 2 Demonstration script and output below.

Problem 1 Demonstration Script #
$LoopCount = 1
$Loops = 10
$WaitTimeSeconds = 400
do
{
    if($AllTeams) { $PreviousLoopData = $AllTeams }

    Write-Output "Get-Team Attempt $LoopCount | $(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss')"
    try
    {
        $AllTeams = Get-Team -ErrorAction Stop
        Write-Output "    - Total Teams Found: $($AllTeams.Count)"

        if($PreviousLoopData)
        {
            $Diffs = Compare-Object -ReferenceObject $PreviousLoopData -DifferenceObject $AllTeams -Property MailNickName
            $NewButNotReally = $Diffs | Where-Object { $_.SideIndicator -eq '=>' } | Select-Object -Expand MailNickName
            if($NewButNotReally)
            {
                Write-Output "    - Comparison between previous loop and this loop suggests the following Teams have been CREATED: $($NewButNotReally -join ', ')"
            }
            $DeletedButNotReally = $Diffs | Where-Object { $_.SideIndicator -eq '<=' } | Select-Object -Expand MailNickName
            if($DeletedButNotReally)
            {
                Write-Output "    - Comparison between previous loop and this loop suggests the following Teams have been DELETED: $($DeletedButNotReally -join ', ')"
            }
        }
    }
    catch
    {
        Write-Output "    - $($_.Exception.Message) | $($_.FullyQualifiedErrorId)"
    }
    Start-Sleep -Seconds $WaitTimeSeconds
    $LoopCount++
} until ($LoopCount -ge 11)

Output:
Get-Team Attempt 1 | 2021-07-19-12-52-11
    - Total Teams Found: 4557

Get-Team Attempt 2 | 2021-07-19-13-01-52
Total Teams Found: 4556
    - Comparison between previous loop and this loop suggests the following Teams have been DELETED: 20BSPN54_11

Get-Team Attempt 3 | 2021-07-19-13-11-38
    - One or more errors occurred. | System.AggregateException,Microsoft.TeamsCmdlets.PowerShell.Custom.GetTeam

Get-Team Attempt 4 | 2021-07-19-13-21-05
    - Total Teams Found: 4555
    - Comparison between previous loop and this loop suggests the following Teams have been CREATED: 20BSPN54_11
    - Comparison between previous loop and this loop suggests the following Teams have been DELETED: 21CVP335, 20PIB621

Get-Team Attempt 5 | 2021-07-19-13-31-38
    - Total Teams Found: 4554
    - Comparison between previous loop and this loop suggests the following Teams have been CREATED: 21CVP335, 20PIB621
    - Comparison between previous loop and this loop suggests the following Teams have been DELETED: 20CVB115, 21PSP900_3, 21CXP302

Get-Team Attempt 6 | 2021-07-19-13-42-13
    - Total Teams Found: 4557
    - Comparison between previous loop and this loop suggests the following Teams have been CREATED: 20CVB115, 21PSP900_3, 21CXP302

Get-Team Attempt 7 | 2021-07-19-13-51-54
    - One or more errors occurred. | System.AggregateException,Microsoft.TeamsCmdlets.PowerShell.Custom.GetTeam

Get-Team Attempt 8 | 2021-07-19-14-03-15
    - Total Teams Found: 4557

Get-Team Attempt 9 | 2021-07-19-14-12-44
    - One or more errors occurred. | System.AggregateException,Microsoft.TeamsCmdlets.PowerShell.Custom.GetTeam

Get-Team Attempt 10 | 2021-07-19-14-22-13
    - Total Teams Found: 4557

Problem 2 Demonstration Script #
# Prove the Team exists and confirm MailNickName attribute:
Get-Team -GroupId '9e65f365-c96b-4a68-9057-54ee3f10aba0' -Verbose | Format-List *

# Now query for the Team using the MailNickName attribute:
$Attempt = 1
$Found = 0
$NotFound = 0
do
{
    try
    {
        Write-Output "Get-Team attempt $Attempt"
        $Team = Get-Team -MailNickName '21CVB079' -ErrorAction Stop -Verbose
        if($Team)
        {
            Write-Host "    - Found" -ForegroundColor Green
            $Found++
        }
        else
        {
            Write-Host "    - Not Found" -ForegroundColor Red
            $NotFound++
        }
        $Attempt++
        Start-Sleep -Seconds 3
    }
    catch
    {
        Write-Output "Error getting Team. Will not count."
        $Attempt++
        Start-Sleep -Seconds 3
    }
}
until($Attempt -eq 101)

Write-Output "Team was found: $Found times"
Write-Output "Team was NOT found: $NotFound times"

It isn't just Teams powershell Get-Teams, I'm seeing this problem in the Exchange Online V2 powershell module with Get-UnifiedGroup.  Even running a simple (Get-UnifiedGroup -ResultSize unlimited).count command to get the total number of groups results in wildly different numbers, from a few hundred to a few thousand.  I'm also seeing my session token timing out very frequently, every few minutes, resulting in this message:
Creating a new Remote PowerShell session using Modern Authentication for implicit remoting of "Get-UnifiedGroup" command ...
It used to be that would only happen once an hour or so.

Hello @robinmalik Robin, how are you? Hope you are doing good. 👍
I read and analyzed your very detailed post, thanks, however, here, we are limited to documentation fixes and improvements, I will try to pass this on to the team behind the module.
Thanks

Hi, thanks for the reply. I had noticed that some technical support was still given in this repo, so decided to try my luck as I've not managed to get any help from other Microsoft support areas so far. Hopefully you can reach the right people, even if it's an acknowledgement that this is a known issue, or by design (to drop requests when under overloaded).

@get-itips Thank you very much for the contribution and sharing this explanation. @robinmalik Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@js-ware I think this is throttling related, but the MicrosoftTeams PowerShell module just doesn't expose any of that information/feedback that's actionable.
I can essentially break my tenancy by running Get-Team twice within roughly 10 minutes; that is, run it twice and then try doing Get-Team -DisplayName "xyz", nothing is returned even when the Team exists. Infact, if you sit at the command prompt and keep running that single command from a shell manually (up key, enter, so roughly once a second), it'll return nothing for a number of attempts and then it'll return a result, and then nothing again.
On a small number of occasions, calling Get-Team -DisplayName 'xyz' -ErrorAction Stop  I was able to catch an exception that really does suggest throttling. Snipped, but refers to error 429:
{
        "Exception":  {
                          "Message":  "429 in /v1.0/teams/ endpoint",
                          "Data":  "System.Collections.ListDictionaryInternal",
                          "InnerException":  null,
                          "TargetSite":  "Microsoft.TeamsCmdlets.PowerShell.Custom.Model.Team GetTeamWithGroupAttributes(System.String, System.String, System.String)",
                          "StackTrace":  "   at Microsoft.TeamsCmdlets.PowerShell.Custom.TeamsCmdlet.GetTeamWithGroupAttributes(String cmdletName, String uriSuffix, String groupId) in D:\\a\\1\\s\\src\\Microsoft.TeamsCmdlets.PowerShell.Custom\\TeamsCmdlet.cs:line 171\r\n   at Microsoft.TeamsCmdlets.PowerShell.Custom.GetTeam.ProcessRecord() in D:\\a\\1\\s\\src\\Microsoft.TeamsCmdlets.PowerShell.Custom\\GetTeam.cs:line 192\r\n   at System.Management.Automation.CommandProcessor.ProcessRecord()",
                          "HelpLink":  null,
                          "Source":  "Microsoft.TeamsCmdlets.PowerShell.Custom",
                          "HResult":  -2146233088
                      },
        "TargetObject":  null,
        "CategoryInfo":  {
                             "Category":  0,
                             "Activity":  "Get-Team",
                             "Reason":  "HttpRequestException",
                             "TargetName":  "",
                             "TargetType":  ""
                         },

... but this is not consistent - most of the time the commands just return nothing so I can't catch anything.


Use range instead of creating a new list

I noticed this while debugging and thought it was kind of weird.

Codecov Report

Merging #278 into master will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #278   +/-   ##
=========================================
  Coverage     80.18%   80.18%
  Complexity      510      510
=========================================
  Files            66       66
  Lines          1509     1509
  Branches        233      233
=========================================
  Hits           1210     1210
  Misses          208      208
  Partials         91       91

Impacted Files
Coverage Δ
Complexity Δ

...pi/miningpipeline/patterndetector/ccspan/CCSpan.kt
97.67% <100%> (ø)
35 <2> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


General Question: General setup with batch of text input

Could you recommend a way to setup batch processing with a bunch of text tokens per class?
For example, I am setting up a task where I have 3 classes, and 2 text sentences per class. For instance, for classes=[daisy, daffodil, lavender], I have the following sentences:

for class daisy: "pushing up daisy", "daisy"
for class daffodil: "planting daffodils", "daffodil"
for class lavender: "smells like lavender", "lavender is good for skin"

The task is then given an image, which class best describes the image.
Right now, I am tokenizing each sentence in the classes. This gives me a batch of 3 x 2 x 77:  3 classes by 2 sentences by 77 context number.
Then for an image, I would iterate over the 2 sentences, doing logits_per_img, logits_per_text = model(image, batch of text[:, i, :]) where i is index of a sentence in the list of sentence descriptors for the class list.
After this, I take the softmax, then the maximum.
My question is: is there an efficient batch processing method I can use for this? And can I increase the context number for longer sentences?

Not the authors, but the context window is baked into the pre-trained model, it's not adjustable unless you train a new model.
FWIW you can compute the sentence vector once and then reuse them for a large batch of images. See https://github.com/thoppe/alph-the-sacred-river for some examples of where I do just that.

Not the authors, but the context window is baked into the pre-trained model, it's not adjustable unless you train a new model.
FWIW you can compute the sentence vector once and then reuse them for a large batch of images. See https://github.com/thoppe/alph-the-sacred-river for some examples of where I do just that.

Thanks. I'll try it out.


Feature/library/cmake refactor [13546]

After #123

Windows Tests fail because dllExports are not correctly set, but this is not done in this PR but in posterior ones.


Schema.org shows webpages as breadcrumbs

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[ ] I have tried the npm run clear or yarn clear command.
[ ] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[ ] I have tried creating a repro with https://new.docusaurus.io.
[ ] I have read the console error message carefully (if applicable).

Description
When I run various docusaurus sites through https://validator.schema.org/ the @type property is always breadcrumbs, not website.
Issue repros on multiple version of docusaurus, including docusaurus.io https://validator.schema.org/#url=https%3A%2F%2Fdocusaurus.io%2Fdocs%2Fnext%2Fseo
Hopefully this is just an accuracy issue, but I worry it might impact SEO as well.
Reproducible demo
https://validator.schema.org/
Steps to reproduce

copy a url from a docusaurus site
run through https://validator.schema.org/
Observe issue

Expected behavior
When I run other websites through the validator @type is website
Actual behavior
@type is breadcrumbs
Your environment

Public source code:
Public site URL:
Docusaurus version used:
Environment name and version (e.g. Chrome 89, Node.js 16.4):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

[ ] I'd be willing to fix this bug myself.

I'm not sure: what are you expecting to see? This validator shows that it picks up one set of structured data, which is the breadcrumblist. We don't have any other structured data by default.
MDN:

react.dev:

nextjs.org:

Closing; our current behavior is correct and intended.


Incorporate and refine data functionality for radio buttons

From Mail Hold prototyping demo

closed by https://github.com/pglevy/trapkit/commit/3cffbeb8af938e438804265f7b3c0e3b409ba3a0


Account errors on Devnet.

The program works fine on local host but as soon as I switch to Devnet the tests fail.
I’ve spent hours looking through the code to find a solution but my only guess is that it’s something to do with the before block in the tests file.
Have you got any ideas on how to fix this?

I still can’t get it to connect to devnet or testnet. Keep getting Transaction Simulation Failed 0x0 Error.
If anyone has any ideas why please let me know!

Hi @graxler.
If you're trying to run CPI tests on devnet it will surely fail as VRF tests can't be setup inside the "before" block. All tests are setup for the local environment.
In case you really want to do it like that then be sure to remove the "before" block and remove all fulfillEmulation calls as well (since VRF already exists and working on devnet/mainnet). Some additional changes might be required.
In case you want to try the CPI example in action, try the roulette-cli as suggested.

Thank you so much for your response!
I’ve removed the before block and fulfil emulation, now it’s giving me “Error number 6009: Unknown Treasury”
I’m using the roulette CPI example you provided, I’ve literally copy and pasted the code and removed unnecessary code but still can’t get it working😔

Random treasury is generated for the Test VRF, but for Devnet VRF the actual treasury must be used, i.e. the one stored in its on-chain configuration.

How would I use the actually treasury, could you provide an example please? I just can’t figure it out.

Here's how to get the actual configuration: https://github.com/orao-network/solana-vrf/blob/master/js/tests/index.ts#L42
And here's how to put the actual treasury into the list of instruction accounts: https://github.com/orao-network/solana-vrf/blob/master/js/tests/index.ts#L48

I can finally get it connected to Devnet (Thank you!), but now It's producing zero randomness again.. how would I resolve this?

The randomness will be fulfilled by configured VRF authorities as soon as possible, but not immediately due to commitment requirements and asynchronous nature of the solana blockchain. I.e. you should wait a few blocks for randomness to be fulfilled. Here's how the VRF example app does it.

@graxler I assume it's OK to close this issue now?

Hi,
Randomness is not yet fullfilled..
how do i fullfill the randomness? Here is my code :
const seed1 = web3.Keypair.fromSeed(Buffer.alloc(32));

const [seed, tx2] = await (await vrf.request(seed1.publicKey.toBytes())).rpc();
const randomness = await vrf.getRandomness(force.toBuffer());
//await delay(3000);
const rnd = randomness.fulfilled();
if (rnd == null) {
  console.log("Randomness is not yet fulfilled...");
} else {
  console.log(
    "Randomness is fulfilled with the new " + randomness.randomness
  );
}

Oh sure , so basically I should keep waiting in a loop untill randomness.fulfilled is turned true?

yes

We've just updated the package and introduce waitFulfilled(seed). Be sure to pull the latest changes.

Ok. thanks


Use source artifacts that come with update report

This pull request addresses issue #105
When user annotates artifact by withSources() classifier the sources for that artifact will be downloaded during 'update'. So nothing prevents sbteclipse to actually link those already downloaded sources to eclipse libraries.
I have introduced two params - userSetSource and userSetJavadoc that will do exactly that. To minimize any error I have defaulted them to 'false', although I think it is safe enough to make them enabled by default.
I know that use of withSources() classifier is discouraged, although I don't know exact reason. But this use case is somehow useful when user includes large library, like spark, and doesn't want to download all sources transitively.
Personally I'd love to see this feature in sbteclipse.

I'm curious, where are you located and what is your internet connection like? For me downloading all the sources for large projects isn't much of an issue, but it seems like folks have different experiences elsewhere

This is not a big issue for me. Still some times I want to check out
project quickly.
On May 3, 2016 08:26, "Ben McCann"<EMAIL_ADDRESS>wrote:

I'm curious, where are you located and what is your internet connection
like? For me downloading all the sources for large projects isn't much of
an issue, but it seems like folks have different experiences elsewhere
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/typesafehub/sbteclipse/pull/306#issuecomment-216441914


Background issue

Is there any ways to get rid of the color scheme background color?
how you can see background of the terminal and neovim is different because of transparency of my command line

Do you mean this?
https://github.com/sainnhe/everforest/blob/f748681a3fac2496aedf694f5bd09a30f80cd3c0/doc/everforest.txt#L252-L262

Do you mean this?
https://github.com/sainnhe/everforest/blob/f748681a3fac2496aedf694f5bd09a30f80cd3c0/doc/everforest.txt#L252-L262

Absolutely. Warmest thanks!


Session management with connect-redis creates unnecessary redis records

Node version: 4.6.1
Sails version (sails): 0.12.14
ORM hook version (sails-hook-orm): 1.0.9
Sockets hook version (sails-hook-sockets): 0.13.14
DB adapter & version (e.g. sails-mysql@5.55.5<EMAIL_ADDRESS>
The issue is that an entry is created in redis for each http request while there should be only 1 entry when user logs in.
The complete details of the issue & configs are listed here on connect-redis adapter issue tracker
Creating an issue here as it could be an issue with how cookies such as sails.sid or headers are handled by sails. Please help!

Can anyone please help? Not able to fix this for past 2 weeks

@makeitcount I'm not entirely sure why it creates multiple entries as well, but I have reproduced the behaviour as well.  I'll bring this up with the team for greater insight.  If it's ok to share, do you have a specific use case that requires this behaviour with connect-redis?

Thanks @johnabrams7 for the heads up.
The use case is simple persistent session management using redis as storage.

Tagging the captain @mikermcneil for help
cc: @rachaelshaw

@makeitcount @johnabrams7 I wasn't able to reproduce this in a new Sails 0.12 app with<EMAIL_ADDRESS>However, after taking a look at the details in the connect-redis issue, I noticed a passport key in the req.session data. @makeitcount, are you using PassportJS in your project? If so, that may be what's causing the unnecessary entries– found this StackOverflow question that looks similar to what you're experiencing.

Yes, I am using PassportJS. v0.3.2 with auth strategy<EMAIL_ADDRESS>I am following the shared SO question. This is a 3 yr old question but no resolution yet.
I am not quite sure how to debug from here on. Shall I create issue in passport repo?

@makeitcount We've essentially avoided support for authentication middleware such as PassportJS in concern of it outdating rather quickly - here's a more detailed philosophy response in Gitter: https://gitter.im/balderdashy/sails?at=5ad97aff1130fe3d36f7e390
There may be plans for an opt-in social login for one reference provider in the future though.
Hope this helps!

Thanks for sharing the info.
Removing PasssportJS could be a big rewrite which can possibly break
application and I don't know for sure if it's an issue with PassportJS only.
@johnabrams7 Is there any boiler plate for implementing authentication in
sails js (with session management backed by redis)?
I can do without social login for now and slowly start implementing them
one by one.
On Tue, Jan 14, 2020 at 4:12 AM johnabrams7<EMAIL_ADDRESS>wrote:

@makeitcount https://github.com/makeitcount We've essentially avoided
support for authentication middleware such as PassportJS in concern of it
outdating rather quickly - here's a more detailed philosophy response in
Gitter: https://gitter.im/balderdashy/sails?at=5ad97aff1130fe3d36f7e390
There may be plans for an opt-in social login for one reference provider
in the future though.
Hope this helps!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/balderdashy/sails/issues/6881?email_source=notifications&email_token=AELE3CKDNY3BKJVVMKGU453Q5TU4JA5CNFSM4JFMB6WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2SHNI#issuecomment-573907893,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELE3CPK4VUFEEAHOYIWAKLQ5TU4JANCNFSM4JFMB6WA
.


fix consider file size on page cache key

Proposed changes
Issue Number: close #xxx
Problem summary
When segment compaction enabled, our p1 case tpcds_sf1_unique_p1 will cause the BE core:
 0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /mnt/disk2/zhangchen/doris-dev/be/src/common/signal_handler.h:413
 1# 0x00007FEBC3D35570 in /lib64/libc.so.6
 2# __GI_raise in /lib64/libc.so.6
 3# abort in /lib64/libc.so.6
 4# 0x0000556D14814819 in /mnt/disk2/zhangchen/deploy/be/lib/doris_be
 5# 0x0000556D14809E2D in /mnt/disk2/zhangchen/deploy/be/lib/doris_be
 6# google::LogMessage::SendToLog() in /mnt/disk2/zhangchen/deploy/be/lib/doris_be
 7# google::LogMessage::Flush() in /mnt/disk2/zhangchen/deploy/be/lib/doris_be
 8# google::LogMessageFatal::~LogMessageFatal() in /mnt/disk2/zhangchen/deploy/be/lib/doris_be
 9# doris::Tablet::calc_delete_bitmap(std::shared_ptr<doris::Rowset>, std::vector<std::shared_ptr<doris::segment_v2::Segment>, std::allocator<std::shared_ptr<doris::segment_v2::Segment> > > const&, std::unordered
_set<doris::RowsetId, doris::HashOfRowsetId, std::equal_to<doris::RowsetId>, std::allocator<doris::RowsetId> > const*, std::shared_ptr<doris::DeleteBitmap>, long, bool, doris::RowsetWriter*) in /mnt/disk2/zhangch
en/deploy/be/lib/doris_be
10# doris::DeltaWriter::close_wait(doris::PSlaveTabletNodes const&, bool) at /mnt/disk2/zhangchen/doris-dev/be/src/olap/delta_writer.cpp:403
11# doris::TabletsChannel::_close_wait(doris::DeltaWriter*, google::protobuf::RepeatedPtrField<doris::PTabletInfo>*, google::protobuf::RepeatedPtrField<doris::PTabletError>*, doris::PSlaveTabletNodes, bool) at /m
nt/disk2/zhangchen/doris-dev/be/src/runtime/tablets_channel.cpp:228
12# doris::TabletsChannel::close(doris::LoadChannel*, int, long, bool*, google::protobuf::RepeatedField<long> const&, google::protobuf::RepeatedPtrField<doris::PTabletInfo>*, google::protobuf::RepeatedPtrField<do
ris::PTabletError>*, google::protobuf::Map<long, doris::PSlaveTabletNodes> const&, google::protobuf::Map<long, doris::PSuccessSlaveTabletNodeIds>*, bool) at /mnt/disk2/zhangchen/doris-dev/be/src/runtime/tablets_c
hannel.cpp:193
13# doris::LoadChannel::_handle_eos(std::shared_ptr<doris::TabletsChannel>&, doris::PTabletWriterAddBlockRequest const&, doris::PTabletWriterAddBlockResult*) at /mnt/disk2/zhangchen/doris-dev/be/src/runtime/load_
channel.h:125
14# doris::LoadChannel::add_batch(doris::PTabletWriterAddBlockRequest const&, doris::PTabletWriterAddBlockResult*) at /mnt/disk2/zhangchen/doris-dev/be/src/runtime/load_channel.cpp:126
15# doris::LoadChannelMgr::add_batch(doris::PTabletWriterAddBlockRequest const&, doris::PTabletWriterAddBlockResult*) at /mnt/disk2/zhangchen/doris-dev/be/src/runtime/load_channel_mgr.cpp:183
16# doris::PInternalServiceImpl::_tablet_writer_add_block(google::protobuf::RpcController*, doris::PTabletWriterAddBlockRequest const*, doris::PTabletWriterAddBlockResult*, google::protobuf::Closure*)::$_13::oper
ator()() const at /mnt/disk2/zhangchen/doris-dev/be/src/service/internal_service.cpp:355

The core is due to a DCHECK:
F0513 22:48:56.059758 3996895 tablet.cpp:2690] Check failed: num_to_read == num_read

Finally, we found that the DCHECK failure is due to page cache:

At first we have 20 segments, which id is 0-19.
For MoW table, memtable flush process will calculate the delete bitmap. In this procedure, the index pages and data pages of PrimaryKeyIndex is loaded to cache
Segment compaction compact all these 10 segments to 2 segment, and rename it to id 0,1
Finally, before the load commit, we'll calculate delete bitmap between segments in current rowset. This procedure need to iterator primary key index of each segments, but when we access data of new compacted segments, we read data of old segments in page cache

To fix this issue, the best policy is:

Add a crc32 or last modified time to CacheKey.
Or invalid related cache keys after segment compaction.

For policy 1, we don't have crc32 in segment footer, and getting the last-modified-time needs to perform 1 additional disk IO.
For policy 2, we need to add additional page cache invalidation methods, which may cause the page cache not stable
So I think we can simply add a file size to identify that the file is changed.
In LSM-Tree, all modification will generate new files, such file-name reuse is not normal case(as far as I know, only segment compaction), file size is enough to identify the file change.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

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

run buildall

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.99 seconds
stream load tsv:          424 seconds loaded<PHONE_NUMBER>9 Bytes, about 168 MB/s
stream load json:         23 seconds loaded<PHONE_NUMBER> Bytes, about 97 MB/s
stream load orc:          59 seconds loaded<PHONE_NUMBER> Bytes, about 17 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230514091404_clickbench_pr_143369.html