Several warnings and erros in coef_table

With glum version 2.6.0:
from glum import GeneralizedLinearRegressor
import pandas as pd
import numpy as np

X, y = pd.DataFrame({"x": np.arange(3)}), np.ones(3)
glm = GeneralizedLinearRegressor(family="poisson").fit(X, y)
glm.coef_table(X=X, y=y)

results in
python3.9/site-packages/glum/_glm.py:1909: UserWarning: Covariance matrix estimation assumes that the model is not penalized.  The covariance matrix will be incorrect.
  warnings.warn(
python3.9/site-packages/glum/_util.py:37: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
  if pd.api.types.is_categorical_dtype(dtype) and (column in df)

---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
Cell In[1], line 8
      6 X, y = pd.DataFrame({"x": np.arange(3)}), np.ones(3)
      7 glm = GeneralizedLinearRegressor(family="poisson").fit(X, y)
----> 8 glm.coef_table(X=X, y=y)

File python3.9/site-packages/glum/_glm.py:1397, in GeneralizedLinearRegressorBase.coef_table(self, confidence_level, X, y, mu, offset, sample_weight, dispersion, robust, clusters, expected_information)
   1394     names = self.feature_names_
   1395     beta = self.coef_
-> 1397 covariance_matrix = self.covariance_matrix(
   1398     X=X,
   1399     y=y,
   1400     mu=mu,
   1401     offset=offset,
   1402     sample_weight=sample_weight,
   1403     dispersion=dispersion,
   1404     robust=robust,
   1405     clusters=clusters,
   1406     expected_information=expected_information,
   1407 )
   1409 significance_level = 1 - confidence_level
   1411 std_errors = np.sqrt(np.diag(covariance_matrix))

File python3.9/site-packages/glum/_glm.py:1965, in GeneralizedLinearRegressorBase.covariance_matrix(self, X, y, mu, offset, sample_weight, dispersion, robust, clusters, expected_information, store_covariance_matrix, skip_checks)
   1953 X, y = check_X_y_tabmat_compliant(
   1954     X,
   1955     y,
   (...)
   1961     drop_first=self.drop_first,
   1962 )
   1964 if isinstance(X, np.ndarray):
-> 1965     X = tm.DenseMatrix(X)
   1966 if sparse.issparse(X) and not isinstance(X, tm.SparseMatrix):
   1967     X = tm.SparseMatrix(X)

File python3.9/site-packages/tabmat/dense_matrix.py:44, in DenseMatrix.__new__(cls, input_array)
     42 obj = np.asarray(input_array).view(cls)
     43 if not np.issubdtype(obj.dtype, np.floating):
---> 44     raise NotImplementedError("DenseMatrix is only implemented for float data")
     45 return obj

NotImplementedError: DenseMatrix is only implemented for float data

The first UserWarning seems like a false alarm: the GLM is unpenalized!
The FutureWarning is already fixed in main, #711.
The NotImplementedError comes unexpected.

The first UserWarning seems like a false alarm: the GLM is unpenalized!

Note that glum defaults to a regularised GLM (ref). As @jtilly mentioned in #730, it isn't a good default.

The NotImplementedError comes unexpected.

That's a shortcoming in tabmat: it gags when all types are integers. If the data frame contains any floating columns, the conversion succeeds. It should be easy to fix. Thanks for reporting! :)

Note that glum defaults to a regularised GLM (ref).

Should we change the default alpha in version 3 to alpha=0?

Should we change the default alpha in version 3 to alpha=0?

There was a similar discussion for scikit-learn a few years ago: article, HN thread, and there's also a bunch of reddit threads with people getting surprised by the default alpha.

Fix coming as part of Glum 3.


Jump to the proper column when jumping to diagnostics

Need tests

i have replied you, please check https://github.com/yegappan/lsp/pull/162#issuecomment-1475275529


Fixed iso url and checksum for win2016 eval

The default download for Win 2016 eval isos were still set to 2012R2.

Thanks


Social sharing message blank on facebook - Workaround

Referencing https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/344
It appears that you can fill the URL field on Facebook with additional text that then appears just fine in the message. Any chance the plugin could be updated to take advantage of that loophole? Alternatively, maybe just expose a callback that allows use to intercept the generic "share" feature to Facebook so we can do it ourselves? That way you wouldn't be breaking facebook's policy, we would be.
Thanks!

Specifically interested in a callback for the native sharing sheet, if that's possible. Letting the user pick their network is obviously ideal :) I recognize this may be a tall order.

Actually this doesn't work on iOS, which is where the problem is. I take it back. Social sharing works on Android already. Sorry for the noise.


[Feature Request] Separate match weight for filenames

👋
I'm back with a new feature request.
Would it be possible to add a match weight option for the filename?
Right now (see screenshot below) the path matches have the same weigth as the filename matches, which troubles the search results. I like that the path matches show up but i would like to add a lower weight than a filename match.
In the screenshot I'm searching for dossier.  The first match is correct but the following matches don't have dossier in their file name, only in the path as a directory name. Then there are some more files with dossier as a filename match, but these are hard to spot with many results ...

Thx for the amazing work 🙏

I'm pretty certain that this is now possible and also a good idea. Because the filename (path) was implemented, we have the filename and path separate fields.
I'll look this over, but from a hunch it could work as normal score + optional and separate filename score with a weigh modifier.

I'm looking to rework some of the score calculation and I'd like to do that before diving into any more scoring changes.
This will either be done with the rework or after it.

Will be included in the refactor


Add scss-linter and code style guide

I you feel okay with Sass Guidelines, I suggest we follow them as they are very extensive. If there are things from there you don't like, we can totally extend them as we did for SassDoc (with JS guidelines): https://github.com/SassDoc/sassdoc/blob/master/GUIDELINES.md. I'm not precious about them, we can adapt them to suit our needs.
For SCSS-Lint, there is a Sass Guidelines compliant configuration file: http://sass-guidelin.es/#scss-lint.

If you're looking for a full Node stack, a Node only Sass Linter now exists too!
https://github.com/sasstools/sass-lint/

Is it ready for usage or is it still in beta?

@HugoGiraudel let's start with Sass Guidelines and I'll let you know if I hate it. :)
We won't be node-only in either case (we still want to test and release a gem for Ruby Sass) — but I'm not opposed to using the node linter if it does what we need. @HugoGiraudel are you willing to make that call and set up linting for us?

Done in https://github.com/ericam/susy/commit/e15e60f2354c47f13218f375174648128cdc7845.

\o/


[BUG] after change of MAPE symmetric default to False, grid search algorithms fail test_score

After changing the default of the symmetric parameter to False, the grid search estimators ForecastingGridSearchCV and ForecastingRandomizedSearchCV fail the test_score test.
All other estimators pass the test, indicating that there is something not quite right with the grid search algorithms.
This seems unlikely to be anything related to the unified interface, since all algorithms other than grid search pass the test.
I suspect it is some kind of side effect that is specific to the grid search algorithms.
Run with error log is here:
https://github.com/alan-turing-institute/sktime/runs/6747419876
although the error log is uninformative regarding the root cause, since it simply says that the output of score does not agree with the manually computed result.
FYI @aiwalter, I think you are the author of the grid search algorithms.

ok, I think I know what is happening.
The grid search algorithms have their own score function, which override the default of "calculate MAPE". I don't quite know why this is the case and the default is not used. My proposed fix would be to simply delete the custom score function since the default seems sensible anywhere, but I feel we first need to understand the rationale why it is there.
@aiwalter, could you kindly elucidate? That part of the code seems to be coming from @mloning who also might shed some light on it, but Ithink you've worked on it later, @aiwalter, and are still active.


Crash when building network

I was building my normal AE like network set-up, 3 drives on top, grid, crafting grid, grid, 2 drives on the bottom with the controller in the middle. I guess your mod doesn't like that set-up since this crash happens. I have tried it with the creative controller and the normal one, same type of crash. Using refinedstorage-0.5.5.
pastebin

Thanks for reporting, I think I found the cause. Just to be able to reproduce, can you share a screenshot of your setup?

I released a 0.5.6 version on Curse that fixes this error.


Panicking when trying to write to a local array

Local variables are compiled as LocalArchetypeResources. When you have a local variable that is an array, you can update it like this:
log[1] := 3;

The compiled Go output, uses Index() method on the log resource, which is  LocalArchetypeResource. This causes the following panic:
internal error: attempted to index a leaf archetype resource

I have attached a simple program to demonstrate this bug.
index.zip

That's a really important bug!
I totally forgot to consider that "special" feature of local vars...
I've been working on it for a little bit, so fix coming in just a moment.


compass gauge with int values

I need to create a compass gauge that display the integer value of the angle.
The compass should display both majorTicks ['0', '45', '90', '135', '180', '225', '270', '315', '']
and also compassMajorChars = ['N', '', 'E', '', 'S', '', 'W', '', ''];
in addition, I need to display the value box in the middle of the gauge.
for this task, it was nice if there were the additional following features:

valueBox.position [ top | bottom | middle ]
valueBox.padding - I need less padding, to make more place for the ticksText...
majorTicks.radiusPosition [ percent of the gauge width ]
majorAdditionalTicks - array, can be the same array.length as majorTicks
majorAdditionalTicks.radiusPosition
majorAdditionalTicks.font (in my case, larger then majorTicks.font...)

您的邮件我已收到，谢谢！


Test PRM on trotbot

Good issue for those who want to get famililar with ROS also

To simulate trotbot try the omnibase robot in gazebo simulator. Refer ERC's repository https://github.com/ERC-BPGC/omnibase

Closing since we are working on gennav_ros for this


Upgrade core to v0.7.1

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1440   +/-   ##
=======================================
  Coverage   56.96%   56.96%
=======================================
  Files          48       48
  Lines        8137     8137
=======================================
  Hits         4635     4635
  Misses       2887     2887
  Partials      615      615

Impacted Files
Coverage Δ

xorm.go
68.18% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


ImzML Download tweaks

Update dataset visibility help text to say that data files can be downloaded:

Fixes to Terms:

Removed redundant word "Sharing" from phrase "Sharing a dataset or parts of it can be shared". It appears this word was mistakenly added when merging some proposed changes in the gdoc.
Changed license to 4.0

Fixes to Download dialog:

Error message displays correctly instead of causing a JS error. This case usually arises from a "The specified bucket does not exist" error, which may mean the bucket was deleted, or may be a permissions issue with the key used to access AWS

Added a message when no files were found in AWS

Fixed margin at bottom of "slim" dialogs so that there is some space after the "These download links expire" message

Changed the Projects list to only count public datasets when determining sort order, unless the user is a member of the project.

Making the default style for tooltips and dialogs a bit better would be great

I support this. I find the default padding and text formatting of ElementUI's dialogs and tooltips quite ugly. I made .el-dialog-lean because I didn't want to go through and re-test/re-balance every other dialog, but maybe I should have ripped the band-aid off and made global changes to the default styles.
Having a set of "pretty by default" typographic & layout tools would save a lot of time...

I made .el-dialog-lean because I didn't want to go through and re-test/re-balance every other dialog

I did similar for the Publishing warning dialogs, I think it's a good strategy for now. I'd prefer to have some dedicated time to do the global changes, enough time to do an inventory of all the different cases we currently have.


Publish Argo UI TypeScript Models Independently

Summary
My teams often develop and interact with Argo Workflows from Node.js backends using TypeScript. In the past, we've had to manually build and maintain our TypeScript bindings to ensure they match the structure of Argo CRDs. This may often involve a lot of duplicated effort and risk of drift as the Argo models evolve.
We noticed that the Argo UI has well-defined TypeScript interfaces for many key objects such as WorkflowSpec, Status, etc:
https://github.com/argoproj/argo-workflows/blob/7d9319b60d0bc417b25d35968c1619e51c13b7ec/ui/src/models/workflows.ts
These types allow the Argo UI front-end code to safely read and manage resources using the Argo REST API. However, these interfaces are packaged alongside front-end concerns and dependencies (e.g. React). This makes it more difficult to re-use these models without introducing unnecessary (and often incompatible) transitive dependencies.
There may be an opportunity to bundle these interfaces separately as a DefinitelyTyped-style .d.ts package. Then the Argo UI package could consume those types alongside other first-party and third-party projects.
Use Cases
Provide type safety for backend and frontend developers when they create and interact with Argo Workflow CRDs from TypeScript.

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Hi! I want to contribute to this issue .

You could add a new Typscript SDK like the Java or Python ones. They use the OpenAPI generator.

See #3309

Duplicate of #3309


Support MacOS 12, Monterey

I'm running MacOS 12, Monterey.
I updated from 6.1.4 to 6.1.5 via Brew, and there was nothing saying this new version would be incompatible.
Is there any reason for the OS version bump? Can you lower it back to support macOS 12?

I hate to disappoint, but we won’t be revising it to work with macOS 12. Supporting older versions is a lot of work and testing, and we want to concentrate on fixing bugs and adding new features rather than on supporting older versions of macOS.

That's fair, I may have to fork it and make my own the way I want it... for now I'll just download the old version. 😅
Best of luck! It was a nice product!

I don’t know who made the brew cask — I’d like to know, though. How can I find out?

Well I'm not sure how you'd figure out specifically who made the cask, but I imagine just creating an issue at homebrew-cask should work fine? (which I could probably do that if you don't have time)


msgGetTotalTodayNow far greater than msgPutTotalTodayNow

I deployed a RocketMQ, created a consumer group, a Topic, and enabled a simple program to consume and produce. The program is a singleton, there is only one consumer in the consumer group, and the consumption code is very simple, which is to output information to the console
I installed dashboard and found msgGetTotalTodayNow far greater than msgPutTotalTodayNow

Isn't it normal, is making changes here necessary? if yes, let me know I'll create PR

You should close this PR, if we want data for finance market for 6 hours for every second it will be 21600. At least for msgGetTotalTodayNow value LGTM

I don't quite understand what you mean

@codecodesam ,
Which version do you use?

the messages may be get by different consumer group.

@codecodesam , Which version do you use?

latest

the messages may be get by different consumer group.

only one

The issue persists. In some cases, the msgPutTotalTodayNow and msgGetTotalTodayNow values are still not correct.


Exclude doesn't work

I am getting the following warning in VSCode for some typescript-generated javascript:
{
  "resource": ".../packages/cli/lib",
  "owner": "typescript",
  "code": "1",
  "severity": 4,
  "message": "variable name must be in lowerCamelCase, PascalCase or UPPER_CASE (variable-name)",
  "source": "tslint",
  "startLineNumber": 25,
  "startColumn": 7,
  "endLineNumber": 25,
  "endColumn": 15
}

I have "packages/*/lib" in my tslint configuration file's exclude option (its a lerna project), but the only way I can get the warning to disappear is by disabling javascript validation altogether.

Closing as we need more information about the project's structure to investigate this


btree is slower than std::map for finding operation

this is not so much an issue as a question.
I did a very simple comparison between std::map and btree using google benchmark. code is as below
void BM_find_int(benchmark::State& state)
{
    std::map<int, int> m;
    for (size_t i = 0; i < loop_cnt; ++i)
    {
       m.emplace(i, i);
    }
    for (auto _ : state)
    {
        for (size_t i = 0; i < loop_cnt; ++i)
        {
            auto it = m.find(i);
            benchmark::DoNotOptimize(it);
        }
    }
}

BENCHMARK(BM_find_int);
void BM_find_int_btree(benchmark::State& state)
{
    absl::btree_map<int, int> m;
    for (size_t i = 0; i < loop_cnt; ++i)
    {
       m.emplace(i, i);
    }
    for (auto _ : state)
    {
        for (size_t i = 0; i < loop_cnt; ++i)
        {
            auto it = m.find(i);
            benchmark::DoNotOptimize(it);
        }
    }
}
BENCHMARK(BM_find_int_btree);

the benchmark result is as below, btree is only half fast as std::map

BM_find_int                                 807 ns          805 ns       853435
BM_find_int_btree                          1976 ns         1971 ns       354867

I also tried with random numbers and the result is similar.
just wonder if  I am using btree incorrectly or the theory that makes btree faster than std::map does not always stand.
I also did benchmark for flat_hash_map and std::unorderd_map.  flat_hash_map is about four times faster than std::unorderd_map for finding operation.

I noticed your benchmark does not give the value you used for loop_cnt. I tried your benchmark with a few values and found that for smaller values, std::map is indeed faster, but as you increase the value of loop_cnt, absl::btree_map starts to outperform std::map.
On modern CPUs benchmarking code tends to be tricky, particularly when the code depends on the CPU cache. Simplistic benchmarks tend to minimize the effects of the cache, while realistic programs tend to place much more pressure on the cache. In the realistic cases, btrees tend to win. My advice is to always try the real program under real conditions before you decide which to use.
If there is any place where we claim that btree is always faster that the STL counterparts, please let us know so we can soften the language.

what you explained is very helpful to me, thanks for looking into the issue.


fix(server): don't log invalid token in release builds

Description
The server logs a sent token, if the token is not valid:
e.g.: rpaste -a invalid_token -V
[2023-08-13T19:24:30Z WARN  rustypaste::auth] authorization failure for a.b.c.d (header: invalid_token)

This change prints the token only in debug mode. In release mode the log entry will look like this:
[2023-08-13T19:24:30Z WARN  rustypaste::auth] authorization failure for a.b.c.d

Motivation and Context
fixes #111
Let's say you use rpaste with the token in the config file (or curl with the auth_token as env var), but use different rustypaste servers. If you forget only once to add the -a flag, a production token for another instance will be logged.
How Has This Been Tested?

cargo test
fixtures
manual testing

Changelog Entry

### Fixed

- Don't log invalid token in release builds

Types of Changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (no code change)
[ ] Refactor (refactoring production code)
[ ] Other

Checklist:

[x] My code follows the code style of this project.
[ ] I have updated the documentation accordingly.
[x] I have formatted the code with rustfmt.
[x] I checked the lints with clippy.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report
Patch and project coverage have no change.

Comparison is base (77f0e42) 69.47% compared to head (83f13f1) 69.47%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #112   +/-   ##
=======================================
  Coverage   69.47%   69.47%
=======================================
  Files          11       11
  Lines         557      557
=======================================
  Hits          387      387
  Misses        170      170

Flag
Coverage Δ

unit-tests
69.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

src/auth.rs
90.90% <ø> (ø)

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


Fixed #191, fixed handling of handle extended router flow, processor

Junked PR196 due to merge/rebasing issue, creating fresh PR.
@lhausermann please review and merge

Great ! Thanks all for this contribution


update: documentaion, books and file structure

@all-contributors please add @Vinyl-Davyl  for code


Add ExceptionHandling mixin and move ApiError rescue_from

After finding out that about Exception#cause (thanks fryguy!) I removed the ManageIQ::API::Common::ApiError class to move all the logic to a simple loop in the new ExceptionHandling mixin.
// TODO:

[x] specs

@miq-bot add_reviewer bdunne

@miq-bot assign bdunne

@Fryguy @bdunne should I move this to a new PR? I know it changed a lot since I opened it - but it's ready to go now.

@Fryguy @bdunne updated this to use the ErrorDocument class since I basically reimplemented it without thinking.

@miq-bot remove_label unmergeable

@lindgrenj6 I added a couple of changes, can you review them?


[Bug] [RubySrc2Cpg] - Unable to parse ruby on rails schema.rb file

Describe the bug
For the given ruby source code, we are unable to parse
ActiveRecord::Schema[7.0].define(version: 2023_09_22_164903) do
     create_table "my_mappings", force: :cascade do |t|
            t.bigint "company_id", null: false
            t.bigint "center_id"
            t.bigint "target_id", null: false
     end
end

To Reproduce
Steps to reproduce the behavior:

Import the snippet using ImportCode.ruby.fromString

Expected behavior
The snippet should get passed, and we should be able to query on the parsed nodes

This sample parses without issues, it's just that we don't have a representation for member calls with the do-end notation yet. See #3928


Strict scatter_dataset and more flexible multinode evaluator

The rationale behind https://github.com/chainer/chainercv/pull/868 is

Current scatter_dataset implicitly appends duplicate data for odd number of test dataset to communicatgor size
Some evaluators does not allow naive summation or average of results of scattered test data

The case above is calculating standard mAP in object detection but not easy with current MultiNodeEvaluator.
We have to understand more about above case and other cases such as object segmentation, NLP and so on. RL is not using Chainer's trainer scheme so far, could be out of scope.

FYI: duplicate with the former one https://github.com/chainer/chainermn/issues/274

I want to discuss the design with ...

WIP branch: https://github.com/chainer/chainer/compare/master...kuenishi:strict-multinode-evaluator
ChainerCV's example: https://gist.github.com/kuenishi/fa20a88881beffd3cccbd6c15d62522e

On...

converter, eval_func, aggreation funcs are to be injected as function
Design simplicity and level of abstraction (too close to ChainerCV's apply_to_iterator?)

After offline discussion:

inheritance style is more preferred than plugging callable objects on callbacks
no need for generator; debuggable is preferred and give a list to aggregator
ProgressHook to be given from users
naming: eval_func & aggregate -> calc_local & aggregate

Additional requiest:

Hope it works in non-MPI env dummy-like single proc communicator or comm=None


command : "dotnet new webapp -o RazorPagesMovie" is not working

dotnet new webapp -o RazorPagesMovie doesn't work.
Instead need to use : dotnet new razor -o RazorPagesMovie

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7d466934-744e-673c-18a2-e312b04d7b28
Version Independent ID: f52b6f6d-5aaf-c515-22af-a0aeaaf9b8e1
Content: Get started with Razor Pages in ASP.NET Core on macOS with Visual Studio for Mac
Content Source: aspnetcore/tutorials/razor-pages-mac/razor-pages-start.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

webapp is an alias for razor with the 2.1 SDK. Install the 2.1 SDK to use webapp as the template name. If you continue to work with 2.0, then continue to use razor. If you flip the document over to "2.0" (upper left corner of the page), you'll see the command change to call for the razor template. We have some language going in to address this on https://github.com/aspnet/Docs/pull/6939. Thanks for commenting.

see See #6939


Error on AWS EC2

All Socket Connections are in use
Issue
I've created an EC2 instance with 8 cores and 32GB RAM. I've also installed all the required packages and Anaconda3 etc..
I've also assigned 6 cores for set cores. When I run the model(below one) it's throwing below error. Tried lot of things from all the side.
model_output_collect <- f.robyn(set_hyperBoundLocal
,optimizer_name = set_hyperOptimAlgo
,set_trial = set_trial
,set_cores = set_cores
,plot_folder = "")
Error:
r in socketAccept(socket = socket, blocking = TRUE, open = "a+b",  :
all connections are in use

Hey thanks for flagging this. It's the first time we're dealing with EC2 bugs to be honest. First of all, is it running well locally? For parallel on EC2, maybe this helps? https://win-vector.com/2016/01/22/running-r-jobs-quickly-on-many-machines/


Sybil analysis: Addresses with exactly same activity pattern

Related Safe Addresses
Provide a list of Safe addresses that would currently receive a SAFE user allocation.
0x0dA95CF71313986599468cc95dECebc3da28d924
0xf81ec65848D5728551847aE0Bc0a1a38D61Ce0DC
0xF7e10E94E383BAc8a616173EcFd3A54A8d9C7A1F
0xF737DB95DeCCa228100F2547711f447Dd86686b8
0xf6cB89a92F30233C8fdB67c09793fc0B9A765C0b
0xf4d063d27C4A3C90d2ECF3E366744C88eCE5C17b
0xf0acBA263B546A067371AF7b428F2D3F04774857
0xEa4cC58c8D081d8C94D1b8c400EaA984357C1Fba
0xDCF05cb2b2cE32361dB11DDDd732286eDB52c31E
0xdB5a5D45FCC27d1E193fE69384AD11C9851999c4
0xD5E0Ba4f3DEEFaffE7a1780a9E56B8931CDd6d83
0xd4390FeC8e5Ac2cFd79C0d78B2C4f9249EDed9C2
0xD0EdCE1B7595e1c4406fD4ee5727FB513b7B7081
0xcc4f2674c4bfcaccd8eddd812f23b5749b99b9c1
0xc770d0ce1325a877ce2b0af91f24f4b3d7167a9f
0xcdabaf7b0f82fafc6567b5910b55ab742fbfc362
0x02823bfa2d213538b016ebbbb5bc621e1ab7a2fa
0x0da95cf71313986599468cc95decebc3da28d924
0x166b9ad5da4f1fcd2e7b2c1411f0ac5bd875ba75
0x1a1ccd0b9cbc013a8bf9131dffb53fa914bcbb63
0x1b9cfc50b904987dd1675b664cb6919b9f447761
0x1d6308dfaeef77a7237697ff405dbd51c9da620d
0x20c01bd6701f1d81e45ade78f310667a9f4efb5f
0x231829e5f50f103ce5c772cb3e984a3ebf8d974a
0x292168a91bb6d0a44cc40a1fc45a0a06cdcdf8ff
0x2b20522eec11450feff2cef2f5dac23442090fa1
0x2ba1674d6c745f2f69a09c3b9936b042d3958b9f
0x2e1e509e4d8ad11bc71ca64e6b947ef2c5d0da73
0x3a7e659ff7d5ba5632772031e6a076dc98656968
0x3b4b77019ddbb8bd08a2058d77669374d598761f
0x406618cfdfb4a3e036207597d6d6e3c2da38bd6c
0x40903e62c146c36b694e5337c2729f4bf135bd3c
0x43b2e80d68e7ee56dc443a0dc9384f2e901b6231
0x47f84f2bd5da265dfbf92c7bd35ccf55037bd9cd
0x4fe7fc0a03681d4361bc48e8c9becab6e7f90bd4
0x52e7fb6572c2f174dba35872e21f63bee66fccc4
0x55d3e40b04b50b03c4e12ebebfe88c4f376e6788
0x594a22430e7f3bd888879050235af46cfc66dc57
0x5a71443f7f5083c8de6b0d3c2a61119ee3e5b688
0x6612b057f2147775c135fd0f05d77466a9aad4e4
0x6710022ae25cdebf4c16dd1ee8b5c9453dd0ad32
0x67339eb8dc6dad74cae01f18706a12ed74a0d0b6
0x675acd4dafc192ff390dcd567ba3905068312975
0x68ee8e9ca43a8a9bc8dfb13ea22cda53f04c1f0c
0x6b2650aa9a6f22623df74c25ab59632f0599a9e7
0x713390208da3adb2803a009317fc3d8e1402e62d
0x74d5008f2934d4ee85f93cbc951d7c05ca49aacc
0x88990e8e2d7cb918c7f2ffee9d0c2ee2137dc349
0x8959d5d574708c034d4cd6164afa2e45bb7577cd
0x8e53b4839718f2f19dfc66f1c4748208af90f8dc
0x8fb730e3fc869156c960895629560b2396936994
0x910de4de72201f43b66ad2c1a0dfe412ca81cde3
0x92cd97142e1868475f21a6ad716434d0cf7fa094
0x93d6f3b0cd1b83993e403657f843c62368d715b6
0x97d9ca631907d2f963af539afe4784441692a0b7
0x994e556ee4314c2e57dc1487fddb4765fa6cab75
0x9a9713d6836ae17a0e0941fde319c9197a70f288
0x9ae1519017245696a9a026fa8775be883e8b9fdc
0xa099b5e12021d6d05f92d096a19e9adfbc8604c3
0xa149c7d6afbd6f9f986930ec34fa9d06e959f44d
0xa32365da6ff369226f49a354f981115d389db2cc
0xac4cd010b9bc64007383d752d22702bcfb698e97
0xad84272533ca3e5cfaca351139ebc63a17fa2c78
0xb2610eade91f028e6b1f7b075c5ada5f48183934
0xb73e6b3cd55467d833d146d4feb667195942bf43
0xb93d8a67462286b62caf4534fca496a75e0578f6
0xc647ac01b01e0a7f5ed88151cf28591113b5f4c8

Reasoning
These addresses have exactly 11 transactions between Jul-02-2022 6 AM and Jul-02-2022 10 AM UTC. The first incoming transaction are all of 0.0000011 ETH. Next, these safes transferred out 0.0000001 ETH to some other addresses. They repeated the transfer for 10 times, and left with a dust of 0.0000001 ETH.
Such behaviors are obviously non-organic.
You can just search these addresses on etherscan:
https://etherscan.io/address/0x0da95cf71313986599468cc95decebc3da28d924
https://etherscan.io/address/0xf81ec65848d5728551847ae0bc0a1a38d61ce0dc
https://etherscan.io/address/0xf7e10e94e383bac8a616173ecfd3a54a8d9c7a1f
The ENS names that initiated these transactions follow the same pattern. For example: Wilderness.eth, SouthernPine.eth, Caramel.eth
If you see the tx history of these ENSs that created the safes, they follow the same pattern, too. First, they received some ETH from another ENS (and the name follow the same pattern for example Fuchsia.eth which starts with capital letter), then they registered ENS, then they created a safe and did 11 transactions, then they received some ETH from FTX, then they staked AAVE and finally they deposited into zkSync. It's very likely that these are controlled by the same airdrop farmer.
Methodology
I sorted the excel sheet by the amount of eligible SAFE tokens. I identified that there are some addresses eligible of exactly the same amount of tokens (207.557 SAFE). After manually checking etherscan tx history, I found these addresses with exact same activity pattern.
Since the airdrop amount is determined partially by the balance of SAFE, it very unlikely that different SAFEs have exactly the same amount of airdrop. This is a useful clue.
Safe Address

Please see https://github.com/safe-global/safe-user-allocation-reports/issues/215 for more addresses with the same pattern

My Safe Address
eth:0x984129b1C8D6048DF516D81f730475AF7D0E4223

Thanks for the report. These Safes have been already removed by an earlier report though, hence closing this one.

Hey @tschubotz
Some of my addresses are actually earlier than #221
Can you please check the timeline described at https://github.com/safe-global/safe-user-allocation-reports/issues/221#issuecomment-1250113842
@memebeat the author of #221 also helped to confirm the correct time sequence.

Reevaluating this based on https://github.com/safe-global/safe-user-allocation-reports/issues/221#issuecomment-1250022810 and #519
The following Safes are removed based on this report:
0xf7e10e94e383bac8a616173ecfd3a54a8d9c7a1f
0xf737db95decca228100f2547711f447dd86686b8
0xf4d063d27c4a3c90d2ecf3e366744c88ece5c17b
0x02823bfa2d213538b016ebbbb5bc621e1ab7a2fa
0x2b20522eec11450feff2cef2f5dac23442090fa1
0x2e1e509e4d8ad11bc71ca64e6b947ef2c5d0da73
0x3b4b77019ddbb8bd08a2058d77669374d598761f
0x43b2e80d68e7ee56dc443a0dc9384f2e901b6231
0x52e7fb6572c2f174dba35872e21f63bee66fccc4
0x67339eb8dc6dad74cae01f18706a12ed74a0d0b6
0x675acd4dafc192ff390dcd567ba3905068312975
0x6b2650aa9a6f22623df74c25ab59632f0599a9e7
0x93d6f3b0cd1b83993e403657f843c62368d715b6
0x97d9ca631907d2f963af539afe4784441692a0b7
0x994e556ee4314c2e57dc1487fddb4765fa6cab75
0xac4cd010b9bc64007383d752d22702bcfb698e97
0xc647ac01b01e0a7f5ed88151cf28591113b5f4c8


Duplicated footnotes

Footnotes which are referenced more than once are numbered differently and described each time.
original:

rendered:

footnotes_res.zip

I've done it. Need to add note to metanorma.com that these repeat footnotes are realised as fields in Word, so you will need to do Update Fields on first opening the document (as you already have to do for Table of Contents.)


Scrollbar blinking on list items update

I have a chat with simplebar on it. On each new messages hidden by default vertical scrollbar appears that leads to scrollbar blinking on messages flow.
Any way to disable scrollbar visibility on updates? Imho it should be visible only on container hover.

Hey, sorry for the late answer, I believe this has been fixed because I can't reproduce this at the moment. If you remember what method you were using to update your chat let me know. I tested calling recalculate and appending elements in the DOM and none are making the scrollbar appear.


Release 2.4.2

@redguide/nodejs what are you think about?

I will manage pushing it on supermarket

:ok:


No output on videos

I am only getting bounding boxes and counts on the first frame of the video. Rest of the frames give me no detections. I am attaching an image for reference. I tried to see if there is some problem in detect_video.py but couldn't find.

How do you run with video input? When I run with detect_video.py it seems to stop at the first frame: ((tks

The problem of : cannot connect to X server happens when you use cv2.imshow()
Use --dont_show flag or comment the following lines of object_tracking.py when you use Google Colab:
if not FLAGS.dont_show:
    cv2.imshow("Output Video", result)

receiving same problem. only detects the first frame and the remaining only shows the fps. and in the video output, no bounding box was produced. need help

I have the same issue. @https://github.com/zayozayo were you able to resolve this issue?

@fizamurtaza  apparently no. havent able to fix it yet. do you have idea?

@https://github.com/zayozayo yes. I only changed - cudatoolkit>=10.1  in conda-gpu.yml.
in original file it was - cudatoolkit==10.1.243

@fizamurtaza hmm.. so in my case since im using pycharm, i need to use that version of cudatoolkit?


⚠ Bofrost.fr has degraded performance

In a42611f, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1208 ms

Resolved: Bofrost.fr performance has improved in 8701e7f.


Answer parsing feature, automatic paging, retries

Replaces https://github.com/RipTheJacker/survey-gizmo-ruby/pull/48
Answer is its own model.
SurveyGizmo::API::Klass.all(:all_pages) works with a block to handle all paging automatically.
as per our earlier discussion, the default retry behavior is no retries.
the reason i ended up adding some internal retry logic was because without it, the :all_pages loop is kind of useless - a simple timeout in the middle of pulling a million records would cause the data to be lost.
(that and it will solve a lot of annoying problems with SG rate limits)
Also contains merge of https://github.com/RipTheJacker/survey-gizmo-ruby/pull/47

Nice, just one thing: to me it would seems more idiomatic ruby for the .all method to return an enumerable, so instead of:
SurveyGizmo::API::Response.all(all_pages: true, survey_id: 12345) do |page_of_responses|
  page_of_responses.each { |r| process_response(r) }
end

You could do:
SurveyGizmo::API::Response.all(all_pages: true, survey_id: 12345).each { |r| process_response(r) }

The method would simply returns an enumerator that would yield each record instead of each pages.
This way you can use any enumerable method right on it and get them evaluated lazily (map, reduce, select, etc...)
And it wouldn't break the regular:
responses = SurveyGizmo::API::Response.all(all_pages: true, survey_id: 12345)
responses.each {}

The only downside is that it would fail for people currently doing this and calling array only methods, they would need to add .to_a

That makes sense; I can make that change.
As far as people doing it, unless they are pulling my branches down I think i'm the only one ;)

I think the write way to do this is with Lazy enumeration: http://ruby-doc.org/core-2.0.0/Enumerator/Lazy.html
However that would mean we have to require ruby version 2.0 for the gem.  Is that OK?
Otherwise this will be kind of difficult.


fix: remove 'win_delay_load_hook': 'false'

https://www.electronjs.org/blog/electron-4-0#win_delay_load_hook

When building native modules for windows, the win_delay_load_hook variable in the module's binding.gyp must be true (which is the default). If this hook is not present, then the native module will fail to load on Windows, with an error message like Cannot find module. See the native module guide for more information.

https://www.electronjs.org/docs/tutorial/using-native-node-modules#a-note-about-win_delay_load_hook

windows ci failed

hmm, seems like I need to set it conditionally (only for Electron 4+ for example), is that possible?

LINK : fatal error LNK1194: cannot delay-load 'node.exe' due to import of data symbol '"__declspec(dllimport) const v8::ActivityControl::`vftable'" (_imp??_7ActivityControl@v8@@6B@)'; link without /DELAYLOAD:node.exe

hmm, seems like I need to set it conditionally (only for Electron 4+ for example), is that possible?

LINK : fatal error LNK1194: cannot delay-load 'node.exe' due to import of data symbol '"__declspec(dllimport) const v8::ActivityControl::`vftable'" (_imp??_7ActivityControl@v8@@6b@)'; link without /DELAYLOAD:node.exe

It may be works, but I don’t know how to set gyp flags dynamically :(


ts-web: docs updates

that getting-started doc was way out of date

client class has moved
public node urls changed
our sample now uses the cors way

:facepalm: and I still misspelled tightened


simplify widget gallery by using list

Thanks for that, I was about to make an issue for that haha :D
Even recorded an example:
https://github.com/user-attachments/assets/0da68511-5cbc-4945-b5cd-dbf0419c11a3


Script installation error on Windows when executing install.bat

If Anaconda has been installed as a system-wide application as opposed to a user-specific application in Windows, then installing ixmp (and message_ix) via install.bat results in an error related to permissions.  The issue arises when installing scripts. See example below:
Installing import-timeseries-script.py script to C:\ProgramData\Anaconda3\Scripts error: [WinError 5] Access is denied: 'C:\\ProgramData\\Anaconda3\\Scripts\\import-timeseries-script.py'
In order to circumvent this behavior, the user must execute the install.bat with admin privelages.

To be more precise on the work-around. install.bat cannot be executed as an admin.  This results in another error (see below). It is necessary to open a command line window as an admin and then execute install.bat.
C:\WINDOWS\system32>rem Install ixmp and rixmp from source on Windows C:\WINDOWS\system32>rem C:\WINDOWS\system32>rem TODO if this script is to be kept/supported, describe it in the docs. python: can't open file 'setup.py': [Errno 2] No such file or directory

See this comment on the parallel issue iiasa/message_ix#215 for a proposed solution.

Because of limitations like this, the install.bat script was removed, and standard Python/R installation methods are now recommended/supported for ixmp.


Perform Long Click On Date

Is there any method to perform long click on date view?

@riddhee Not right now. I will do the required changes for that and push it in the next update. Stay tuned!

bt i need it urgently
can you guide me on that?

[FIXED] Use version 1.5.1 or above!
USAGE
class MainActivity : AppCompatActivity(), EventsCalendar.Callback {
    override fun onDayLongPressed(selectedDate: Calendar?) {
        Log.e("LONG CLICKED", EventsCalendarUtil.getDateString(selectedDate, EventsCalendarUtil.DD_MM_YYYY))
    }

    override fun onMonthChanged(monthStartDate: Calendar?) {
        Log.e("MON", "CHANGED")
    }

    override fun onDaySelected(selectedDate: Calendar?) {
        Log.e("CLICKED", EventsCalendarUtil.getDateString(selectedDate, EventsCalendarUtil.DD_MM_YYYY))
        selected.text = getDateString(selectedDate?.timeInMillis)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        ....
   }
}

The Callback to be implemented in Activity/ Fragment now has access to a new method called onDayLongPressed which is called when a date is long pressed on the Events Calendar.
Happy Coding!

@riddhee can you update on this? Have you tried it out?

Thank you very much for the help
ya i tried bt i face one issue like when i long press on some date it should not be selected can you suggest me how to solve

@riddhee it is tricky. You work with this for now. I will work on it and update ASAP.

I will remove selection property in long press by default. If you want the date to be selected, you can pass selectCurrentDate method inside Long Press delegate.

Is this ok for you?

yaa ,
Thank You

@riddhee I have tried overriding the gesture properties in the custom view. It seems, click action tends to happen mandatorily when long press action ends. We cannot override it to make it do otherwise. I can be of no help here. Sorry!


Glue in titles and footnotes

Use glue in titles, footnotes, page header, and page footer to resolve function calls.

Add option to turn it off.  Should be on by default.


Check became "Hosts missing | 0/1 hosts" or "Succeeded".

If we have a situation when metric 'failed' (1224.0 >= 1000.0) and the number didn't change in time (Expected num hosts: 0) metric became  in Succeeded status, when the number changed (in failed range) it will fail again. If (Expected num hosts: 1) metric became failing with another status: "Hosts missing | 0/1 hosts".

I'm really sorry, I don't entirely understand what you mean. Can you possibly write a test for this that shows what's going on?

I have figured out what caused the problem.
It is realy hard to describe what I mean before.
But now I will start from the "fix" of the problem, so the fix is to change time in graphite server (-1 minute) because the metrics cant be published in time. So when cabot was truing to make the check there was no metric in that time(for that exact minute).

Dont know if it is an issue, please close if it is not.

having the same problem. But I really don't know what @onagorodniuk means with "change time in graphite server (-1 minute)".
Where to change (conf file)?
What property to change?
Result of changing this property to -1?

having the same problem. But I really don't know what @onagorodniuk means with "change time in graphite server (-1 minute)".
Where to change (conf file)?
What property to change?
Result of changing this property to -1?

Means, move server time backwards for 1 minute.
Sorry for horrible previous explanations.


Improvements + Consistency updates in code indentation across multiple php files

This branch has improvements over a few files to keep the indenting + code formatting consistent across the theme.
Relates to issue: #1172

@colin-marshall , yeah just noticed that in issue #1172 (example code ended up being posted there with the stray ']'.
I've pushed an update, how would a revision to a pull request normally work ? A new pull request or would it be apart of the same one ?

@giollianosulit I guess normally we would revert the commit (as described in https://stackoverflow.com/a/16298304/2755888) but for a single typo it's probably easiest to just create a new PR.


Add option to choose colors

As an author I want to be able to set the background color (base color) and the text color for a tab.

Implemented by https://github.com/otacke/h5p-tabs/commit/1ffe1a0af157c302f1106c00bfe4db62d3146959


PowerToys Bug report

ℹ Computer information

PowerToys version:
PowerToy Utility:
Running PowerToys as Admin:
Windows build number: [run "winver"]

📝 Provide detailed reproduction steps (if any)

…
…
…

✔ Expected result
What is the expected result of the above steps?
❌ Actual result
What is the actual result of the above steps?
📷 Screenshots
Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form
2020-10-17.txt

Same as https://github.com/microsoft/PowerToys/issues/5526 that was fixed.
@hussaingada what PT version are you running


Unable to provide URL in custom JSON fields

Steps to reproduce the problem:

Create new gist with below as metadata:

{
    "name": {
        "title": "Full Name",
        "type": "string",
        "githubKey": "name"
    },
    "privacy": {
        "title": "I acknowledge the Privacy Policy - https:\/\/website.com\/legal\/privacy-policy",
        "type": "boolean",
        "required": true
    }
}

Configure a new link with above gist as CLA.
Try to sign it.

What is the expected result?
That it parses the privacy.title field as valid json.
the culprit is the colon as using: https//website.com/legal/privacy-policy as the title will make the gist parse successfully.
What happens instead?
(Unexpected token h in JSON at position 671)

I tried debugging this myself yesterday evening, but this is essentially the first time I working with Angular/Javascript - I hope to continue the debugging the next couple of evening... If I find a fix I intent to make a PR.
Any pointers or help in regards to this would be greatly appreciated.

sorry for late response! I remember there was a similar issue and the solution was in a way how the characters were escaped. Maybe you can scan our old issues and find a solution there... Sorry I really don't remember what it exactly was.

here it is: #213 😄

Thanks for your response @KharitonOff
https://gist.github.com/BIGPHATTOBY/0bb32088b81199480d028ca0c8c1731e which uses double slashes for escaping the colon also errors out with the same message

@BIGPHATTOBY unfortunately I don't know what's going wrong there and couldn't find any time so far to test it on my own... But I have just realized what you are actually trying to achieve 😄  and would like to point you to the feature, which we have provided for this use case. Maybe this will help you further... On the edit screen you can find following setting:


Remove feature memorytree-wide

Removed in https://github.com/nozel-org/freebsd-serverbot/commit/e007966a2949659d0f223da4ecfb2de7ad2191cd.


Scrollable tabs really scrollable?

I forked the Scrollable Tabs demo from http://www.getmdl.io/components/index.html#layout-section/layout simply attempting to add content "down the page": http://codepen.io/cliffordp/pen/gpyMdb
From the name, I assumed the Scrollable Tabs would have been like Bootstrap's Scrollspy: http://getbootstrap.com/javascript/#scrollspy
Is it not working (my codepen link) or does the name maybe need some context / documentation?
tyvm for the help.

Scrollable tabs are called scrollable because you can scroll the tabs :D
We don’t have any functionality equivalent to scrollspy, which is also related to the fact that we actually switch out the content when switching to a different tab.

AH!! lol
Horizontally-scrollable
tyvm!
I like Scrollspy so you can add that functionality just for me in the future if you want, lol :)

This scrollable demo is really not usable :D
Would probably be better to scroll the size of the next tab instead of a fixed value :/

I noticed your codepen link only has scrollable tabs if the browser is 1025px or wider. Shouldn't scrollable tabs work on all browser widths?

I can scroll on smaller screen sizes just as well. The buttons disappear, because we can assume that you are on mobile and have a touch interface.

Gotcha. Thanks for the insights.

Would be good add more tabs in documentation for most clarity.
http://www.getmdl.io/components/index.html#layout-section.
How here: http://codepen.io/surma/pen/RPOREb


Feature Request: Zapier Integration

Is your feature request related to a problem? Please describe.
This feature would open up corteza to be integrated with all of the tools that zapier supports (no complex workflows needed)
Describe the solution you'd like
Engineering to build a zapier integration
Describe alternatives you've considered
Manually trigger zaps from within workflows

https://n8n.io/integrations/?q=corteza


Update index.html

Fix copy\paste typo in user guide
Code Pull Requests
Please provide the following:

a clear explanation of what your code dose
if applicable, a reference to an issue
a reproducible test for your PR (code, model definition and data sample)

Documentation Pull Requests
Note that the documentation HTML files are in docs/ while the Markdown sources are in mkdocs/docs.
If you are proposing a modification to the documentation you should change only the Markdown files, then recreate the documentation as explained in the mkdocs/README.md file with mkdocs build, which will create the HTML files automatically, and only after this create a commit.
api.md is automatically generated from the docstrings in the code, so if you want to change something in that file, first modify ludwig/api.py docstring, then run mkdocs/code_docs_autogen.py, which will create mkdocs/docs/api.md and then finally run mkdocs build which will generate the HTML in docs/.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

edited the docs and not mkdocs


Remove temp synctriggers route

464b0a68066b4e5e58789fb2b8af593dcf04edb6 adds a couple things needed for a workaround, that probably won't be needed later and should be cleaned up.

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Error with GatewayResponses

I get an error when including GatewayResponses in my cloud formation yaml:
Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [APIGateway] is invalid. GatewayResponses works only with inline Swagger specified in 'DefinitionBody' property.
Below is a sample cloud formation template we are using.
AWSTemplateFormatVersion: 2010-09-09
Description: 'ApiGateways: ConsumerMessageHandlerGateway'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
APIGateway:
Type: 'AWS::Serverless::Api'
Properties:
OpenApiVersion: 3.0.1
StageName: Prod
GatewayResponses:
BAD_REQUEST_BODY:
StatusCode: 400
ResponseTemplates:
"application/json": '{"error": {"code": "BadRequest", "detail": [{"target": "body.data","message":"$context.error.validationErrorString","code": "BadRequest"}]}}'
DefinitionUri:
Bucket: !Sub
- 'payoutv3-${EnvironmentName}-deploy'
- EnvironmentName: !ImportValue
'Fn::Sub': '${VariablesStackName}-Environment'
Key: !Ref SwaggerKey
TracingEnabled: true
MethodSettings:
- DataTraceEnabled: false
HttpMethod: ''
LoggingLevel: ERROR
MetricsEnabled: true
ResourcePath: /
Variables:
lambdaauthoriser: !Ref AuthenticationFunctionName
messagelambdaapi: !Ref APIFunctionName
I previously had the Gateway responses defined separatly:
GatewayResponse:
Type: AWS::ApiGateway::GatewayResponse
DependsOn: APIGateway
Properties:
ResponseTemplates:
application/json: "{"error": {"code": "BadRequest", "detail": [{"target": "body.data","message":"$context.error.validationErrorString","code": "BadRequest"}]}}"
ResponseType: BAD_REQUEST_BODY
RestApiId: !Ref APIGateway
StatusCode: '400'
However I find that for some reason the API gateway response keep reverting back to its default. That is why I am trying to include it as part of the AWS::Serverless::Api definition.
What am I doing wrong here?

You can't use
DefinitionUri:
  Bucket: !Sub
    - 'payoutv3-${EnvironmentName}-deploy'
    - EnvironmentName: !ImportValue

You must embed the swagger definition with DefinitionBody and remove DefinitionUri
DefinitionBody:
  # you swagger definition

It is not possible to embed the swagger definition within DefinitionBody. Is there a way to do this using DefinitionUri? I can define the GatewayResponse outside of the AWS::Serverless::API definition but as I mentioned above, it somehow keeps reverting back to its default?

There are to workarounds for you problem:

Build a prebuild step to embed you swagger file into DefinitionBody
Use an Cloudformation Transformation to embed the swagger file into the DefinitionBody

Thanks @timoschilling !


feat: commad-line overstrike detection with mode()

detecting overstrike by changing the command line causes flickering,
and i think adding a way to detect overstrike will allow command line mappings to be more consistent.

the ci is failing because i forgot to move the defined checks mb.

can you add a test please? I think a screen dump test using mode() in a statusline should be able to test it properly

For cmdline mode there are some tests using feedkeys() in Test_mode() in test_functions.vim which should be easy to extend.

thanks zeertzjq

I think a screen dump test using mode() in a statusline should be able to test it properly

@chrisbra may i ask, why u wanted it to be tested that way?

@chrisbra may i ask, why u wanted it to be tested that way?

It's an easy way to make sure that the mode() is actually correctly shown.

it won't be without an explicit redrawstatus tho.

It doesn't seem to work as expected:

That's the reason I wanted to have a screendump test :)
I guess Vim isn't redrawing the statusline.

it won't be without an explicit redrawstatus tho.

So shouldn't that be made implicitly then?

I am not sure how to make the command line update the statusline.
The CmdlineChanged autocmd isn't working.

I think this one would do it:
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 0aae45fc4..ba87f8d3c 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2050,6 +2050,8 @@ getcmdline_int(
 #ifdef CURSOR_SHAPE
                ui_cursor_shape();      // may show different cursor shape
 #endif
+               status_redraw_curbuf();
+               redraw_statuslines();
                goto cmdline_not_changed;

        case Ctrl_HAT:
```

yea thanks!

why can i never get it right on the first time.

Oh, this will also need to trigger ModeChanged.

Is there anything else that happens when the mode changes in vim?

wait a second, enabling overstrike does not change the mode, right? So it does not need to trigger ModeChanged.

There is a sentence This will be triggered on every minor mode change.

ah okay, yes then it is true. Can we get a test for that one as well please?

yes sir!

how do i record a dump with a specific size?

nvm.

why are they both the same dump ?
call delete('mode_c.dump')
call delete('mode_cr.dump')
let g:buf = term_start('vim', {'term_rows' : 12,'term_cols' : 25})
call term_sendkeys(g:buf,":set laststatus=2 statusline=%!mode(1)\<CR>")
call term_sendkeys(g:buf,":echo\<insert>")
call term_dumpwrite(g:buf,'mode_c.dump')
call term_sendkeys(g:buf,"\<insert>")
call term_dumpwrite(g:buf,'mode_cr.dump')

> +0&#ffffff0@24
@25
@25
@25
@25
@25
@25
@25
@25
@25
@25
@25

should i put CheckRunVimInTerminal in a try catch block?


metallb does not deallocate a Service's IP on Service type change to non-LB

Is this a bug report or a feature request?:
Bug report.
What happened:
Changing the type of a Service with a metallb-assigned IP from LoadBalancer to NodePort does not appear to release the IP allocation to revoke access from outside the cluster.  Instead, the Service remains reachable on the metallb-allocated IP address on the Service's port.
What you expected to happen:
I expected the IP address to be returned to the pool; reachability of the Service to be lost; and the status field of the Service to be updated to remove the ingress IP address.
How to reproduce it (as minimally and precisely as possible):
Setup:
metal v0.4.3 running a K8S 1.8.6 cluster.  Create a NodePort service.  Edit the type to be LoadBalancer.  metallb should assign an IP.  Test connectivity and check the status field for the assigned IP.
After that has been successful, edit the Service and change type back to NodePort.  The allocation will not appear to change, and in my case I was still able to connect to the service on its defined port using the IP address allocated by metallb.
Anything else we need to know?:
No.
Environment:

MetalLB version: 0.4.3
Kubernetes version: 1.8.6
BGP router type/version: using ARP mode
OS (e.g. from /etc/os-release): CentOS 7.4 (except for kernel)
Kernel (e.g. uname -a): 4.14.12-1.el7.elrepo.x86_64

Thanks for the report!
I see where the bug is in the code, I'll cut 0.4.4 with a fix shortly.
I'm surprised this can happen, because when I was developing MetalLB on k8s 1.8, I think I was unable to change the type of a Service after creation... So the codepath just assumes that if something is not a LoadBalancer, then it never was a LoadBalancer and we don't need to run the deletion logic. Oops!

And out of pure brilliance, I cut 0.4.4 before actually testing my change, and wouldn't you know it, it's broken!
Fixing (and testing before cutting the release this time...), 0.4.5 will have the right stuff.

0.4.5 released, with a fix for this. Thank you again for the clear bug report!

Thank you for the quick fix!


additional_env_vars naming

Describe the bug
runner uses additional_env_vars, but holmes uses additionalEnvVars
Expected behavior
we should use the same name for consistency
Additional context
also on docs https://docs.robusta.dev/master/configuration/ai-analysis.html#sinks-configuration-secrets it says to use additional_env_vars to set ROBUSTA_UI_TOKEN but that won't work

Hey @lssjbrolli I have fixed our docs.
Added support for snake case in holmes as well.


feat(template): add release date to template

Hello !
I added the release date in the template of the changelog.
I took the date of the commit of the tag.
I think this an important data to find in the changelog.
Thanks 👍

Awesome, great work!
I will release the new version tonight.


GraphML export with regions

Seems that region are not supported in the GraphML export, as YeD explodes when opening a graphml model containing regions:
y.H.B.B.a: Target node id Start not defined in this graph!
	at y.H.B.B.Y.Ă(Unknown Source)
	at y.H.B.B.Y.ā(Unknown Source)
	at y.H.B.B.Y.Ć(Unknown Source)
	at y.H.B.B.Y.ā(Unknown Source)
	at y.H.B.B.Y.Ą(Unknown Source)
	at y.H.B.B.Y.ā(Unknown Source)
	at y.H.B.B._.ā(Unknown Source)
	at y.H.B.B._.ā(Unknown Source)
	at y.H.B.A$13.ā(Unknown Source)
	at y.H.B.A.ā(Unknown Source)
	at y.H.B.A.ā(Unknown Source)
	at y.H.Q.ā(Unknown Source)
	at B.A.A.B.G.A.F.ā(Unknown Source)
	at B.A.A.B.G.A.F.ā(Unknown Source)
	at B.A.A.B.G.A.D.ā(Unknown Source)
	at y.H.G.ā(Unknown Source)
	at y.B.A.M.ď(Unknown Source)
	at y.B.W.Č(Unknown Source)
	at y.B.W.ā(Unknown Source)
	at y.B.W.ă(Unknown Source)
	at B.A.A.B.Q.Ă(Unknown Source)
	at B.A.A.B.Q.ā(Unknown Source)
	at B.A.A.J.A.ā(Unknown Source)
	at B.A.A.J.A.ā(Unknown Source)
	at B.A.A.J.D.ă(Unknown Source)
	at B.A.A.J.D.Ă(Unknown Source)
	at B.A.A.B$5.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Deprecated as we have replaced the graphical export


Update equality of tensors to also check same values

I think that, if my understanding is correct, two tensors with same dimension but different elements should not be equal, i.e.
val tensor1 = Tensor.denseVector(Array(20.0, 11.0, 5.0))
val tensor2 = Tensor.denseVector(Array(20.0, 10.0, 5.0))
should not be considered equal.
I've updated the equals method for both dense and sparse tensors to reflect this and added some spec tests for the equals method.

@hollinwilkins seems that this change is causing LDAParitySpec test to fail
[info] LDAParitySpec: [info] - has parity between Spark/MLeap *** FAILED *** [info]   scala.this.Predef.refArrayOps[org.apache.spark.sql.Row](sparkDataset).sameElements[org.apache.spark.sql.Row](scala.this.Predef.wrapRefArray[org.apache.spark.sql.Row](mleapDataset)) was false (SparkParityBase.scala:120)
I wonder if my assumption that values should also be checked is not correct.

@ancasarb I thought we were checking element equality before. It's difficult to see what the parenthesis change, but they obviously do change the equality test somehow. Can you describe what was wrong before and what those parens do?

@hollinwilkins I was seeing that with two tensors (for example the ones below) with the same dimensions but different elements, this was still returning true, instead of false.
    it("should return false for dense tensors with same dimension but different elements") {       val tensor1 = Tensor.denseVector(Array(20.0, 11.0, 5.0))       val tensor2 = Tensor.denseVector(Array(20.0, 10.0, 5.0))       assert(tensor1 != tensor2)     }

@ancasarb I see, this probably indicates an issue with LDA then. Will have to investigate further.

I think it was because the equality was checking (dimensions == obj.dimensions) and since this was included in an OR statement and it was returning true then it didn't actually check the elements.

@hollinwilkins should I close the PR for now while we investigate?

Let's keep it open. It's correct, just need to figure out why LDA doesn't produce the same values.

@Mageswaran1989 Hey,
When we updated the Tensor equality code to make sure two tensors have the same values in them, we notice that the LDA parity spec breaks. Would you be able to investigate this a bit or help us debug?
Thank you!

The tensor (dense) that is causing the failure has the following values, which are similar, but not equal
sparkDataset tensor values
0 = 0.028954998227547032
1 = 0.8836739663256541
2 = 0.028936401930665906
3 = 0.028797922505784255
4 = 0.029636711010348833
mleapDataset tensor values
0 = 0.02895479212197769
1 = 0.8836912061545042
2 = 0.028919756312963223
3 = 0.02879775419971172
4 = 0.029636491210843156

Interesting, I wonder if we can relax the constraints for the LDA parity spec or why the numbers are off by any amount in the first place. I'm unfamiliar with how this transformer works.

hello...I will get back to you after doing a sanity test on our pipeline sometime today

The optimizer used in LDA  does a random sampling which most likely be the cause for this mismatch.
analysis with python:
import numpy as np
a0 = 0.028954998227547032
a1 = 0.8836739663256541
a2 = 0.028936401930665906
a3 = 0.028797922505784255
a4 = 0.029636711010348833

#mleapDataset tensor values
b0 = 0.02895479212197769
b1 = 0.8836912061545042
b2 = 0.028919756312963223
b3 = 0.02879775419971172
b4 = 0.029636491210843156

np.set_printoptions(precision=16, suppress=True)
np.array(alist) - np.array(blist)

o/p
array([ 0.0000002061055693, -0.0000172398288502,  0.0000166456177027,
0.0000001683060725,  0.0000002197995057])
We instead validated by checking the sum of both the predictions, which in this case is
a1 + a2 + a3 + a4 + a0 =>  1.0000000000000002
b1 + b2 + b3 + b4 + b0 => 1.0

@Mageswaran1989 Thank you for all of the info. We may disable the LDA parity spec for now in favor of getting this core fix of tensor equality into MLeap. I will make a ticket to reenable it before the next release.
@ancasarb Can you comment out the LDA parity spec in this branch for now and I will merge it in. I think this fix is very important as it is a major bug fix.
For reference, here is the ticket to fix LDA parity spec to be more forgiving about small differences in tensor values:
https://github.com/combust/mleap/issues/169

@hollinwilkins I've updated the branch to ignore the LDA test for now, could you please have a look? thank you!


[New Port Request] Diligent Engine

Library name
Diligent Engine
Library description
A Modern Cross-Platform Low-Level 3D Graphics Library and Rendering Framework
Source repository URL
https://github.com/DiligentGraphics/DiligentEngine
Project homepage (if different from the source repository)
http://diligentgraphics.com/diligent-engine/
Anything else that is useful to know when adding (such as optional features the library may have that should be included)
Diligent Engine includes Core and Tools subprojects, which ideally should be configurable.
The Samples subproject, probably, is out of scope of vcpkg.

I would also like to see this port completed..


meta: decentralize PR status checks

Refactors the webhook handling to support running checks from a dev machine, making the server optional for satisfying PR checks.
Motivation: I don't want to pay for a CI/CD server just to maintain an open-source project with CI checks. With a popular enough project it becomes expensive and risky to run everyone's builds.  And I don't want to use GitHub actions, because it's too slow, and I never want to write YAML DSLs again.
Instead, ~everyone can just run the darn checks themselves~ I can just run the checks myself:
./hack/gh-checks -i repo=some-fork/bass -i sha=<sha>

When I originally did this I wasn't sure if the PR author could actually update the checks on the PR - turns out they can't, which makes sense in hindsight. They can only update commit status on their own fork, which doesn't convey to the PR. Anyone that has repo:write could at least.
Still useful for manually running checks after making sure the PR isn't malicious, or if the server is/was down and missed the webhook event.


Doesn't work with BadgesEverywhere plugin

THis fix is prettyimportant as a lot of users use this plugin.

sorry for the late reply but what client mod are you using?

BetterDiscord


Critical fixes and (slight) polish

fixes #80 #81 #64 #70

Autoupdating isn't included in this version

Autoupdating message now included, essentially a very bad version of #38

Please review this pull request retroactively


Error logging

While looking into #378  I noticed a few lines were still printed to stdout instead of stderr. And two lines where redirection happens twice.

The build failure seems to be a network hickup tests run OK locally. Please restart them.

Merged, thanks.


tf.io.decode_image will flip the image

Please look at colab

@AR-fan
In order to expedite the trouble-shooting process,Can you please fill the issue template.Thanks!

@sushreebarsa

Have I written custom code :

img_bytes = open("./IMG_20210729_194824430_MFNR.jpg", 'rb').read()
img = tf.io.decode_image(img_bytes)
new_img_bytes = tf.io.encode_jpeg(img)

OS Platform and Distribution : colab Linux version 5.4.104+
TensorFlow version : 2.6.0
Python version : Python 3.7.11
GCC/Compiler version (if compiling from source) : gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CUDA/cuDNN version : None

Describe the current behavior
tf.io.decode_image op will flip the input image
Describe the expected behavior
tf.io.decode_image op not flip the input image

Do you want to contribute a PR? (yes/no):yes

@AR-fan I tried to run your code on Colab using TF v2.6 and didn't face the issue reported here ,Please find the gist for reference. Could you please have a look at the link and similar issue? Thank you!

@sushreebarsa
Please try this picture:

@sushreebarsa
I have seen that issue, but not works for me.
Using tf op is right in most case, but fail in this case.

@AR-fan Could you please refer to the gist  and let us know if it helps? Thank you!

@sushreebarsa
Could you please have a look at this gist?
I modify your gist and use wget to get picture.
The result is still wrong.
If you find a solution , please tell me , thanks~
Onz

@sanatmpa1 Was able to reproduce the issue on colab using TF 2.6 and tf-nightly ,Please find the gist here  for reference.Thanks!

hi, how is it going?~

@AR-fan When I used two functions from a TF tutorial https://www.tensorflow.org/tutorials/generative/style_transfer to (load & process) and show image, original image and decoded image show similarly. Can you please verify whether cv library changing the order of the image?
Please check the gist here

@jvishnuvardhan
I have collected a lot of pictures. I need pictures not to be reversed. I found that using tf.io will reverse some pictures, but some pictures will not be reversed, but opencv will never reverse.
Maybe I'll use OpenCV to process the picture, because it will be done as I expected.

@undcloud Could you please have a look at this gist, the issue seems to be fixed in the latest TF v2.13.
Thank you!


Generalize i/o to other storage systems

🚀 Feature
Motivation
Support checkpointing from storage systems, facebook is using this -> https://github.com/facebookresearch/fvcore/blob/master/fvcore/common/file_io.py
Solution should be similar to what is proposed here.

I believe #2164 resolved this.


Drop Safari 5.1 - 9 support

Let's drop these Safari version which have < 0.1% usage:
5.1 - 0.09%
6.1 - 0.01%
8 - 0.04%
9 - 0.06%
We'll still keep these versions which have > 0.1% usage:
9.1 - 0.24%
10 - 0.16%
10.1 - 0.42%
11 - 1.49%
I don't plan to intentionally break older Safari versions, but I don't think there's enough usage to justify worrying about it, or guaranteeing support.

Can we throw in those browsers at least?

@dcousens What's the advantage of that? Isn't partial support better than being totally broken? Say that 95% of methods work fine (and 100% of the ones that are used in an app), then throwing would make things worse...
Willing to log some output at least, but hopefully the browser detection code won't add too many bytes...

We also don't currently print any messages in IE6-10, for example, none of which are supported.

Okay, this is done.
Before we were running Sauce Labs tests on latest Safari only. Now we run them on Safari 9, 10, 11.
For iOS, before we running on latest iOS only. Now we run on 9.3, 10.3, and 11.2.
This is a net win w/ more testing, just updating the readme to not promise support for old Safari back to 5.1 since it's not even possible to test that on Sauce Labs.


waltz-has-role-for-entity-kind directive and apply to person/entity a…

…ssociation edit button
#2167

did this have to be a directive ?

as a component, you have to 'restrict' to elements.  The usage would be different from has-role so I figured I would keep it as a directive for consistency.
thoughts?

how would the usage be different ?

So present it's restricted to an attribute as follows:
<some-element waltz-has-role="userRole"> content </some-element>
as a component, the only support usage is as an element selector, so you have as follows:
<waltz-has-role role="userRole">   <some-element> content </some-element> </waltz-has-role>
unless I'm mistaken.
In this case, it would be a bit verbose.  Plus the directive version has replace as true which ensure no funny business with our current styles.
I can spike moving to a component to assess the impact?

Create an issue and we'll spike at beginning of 1.5 cycle.
On Mon, May 15, 2017 at 8:55 AM, kamransaleem<EMAIL_ADDRESS>wrote:

So present it's restricted to an attribute as follows:
 content
as a component, the only support usage is as an element selector, so you
have as follows:
  content

unless I'm mistaken.
In this case, it would be a bit verbose. Plus the directive version has
replace as true which ensure no funny business with our current styles.
I can spike moving to a component to assess the impact?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/khartec/waltz/pull/2173#issuecomment-301402954, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAjNPU-LKjGQRjNWiQpy_3OMR6Ql_lWYks5r6ATigaJpZM4NZUtH
.

#2180


Text updates

This change is

@johnksv
About https://github.com/statisticsnorway/dapla-lab-helm-charts-standard-test/pull/57/commits/6613d6e0640d61d86a3c47d9e18b93286b6933f0
Can the reduction of resources cause Datadoc to crash?
Or cause the pod to enter an infinite crash-n-restart-loop?


Disk

Does this ever touch the disk or does it get streamed from multer via buffer?

Hello,
The files are streamed directly to S3 so they shouldn't touch your disk.

@OriginalEXE Is there a way for me to save to Disk as well?

I'm not sure actually, I have never tried setting up multer to store files to two locations at once.

Could I make that a feature request?


[QUESTION] resolution with wifi mesh systems

wondering how the find3 algorithms work with wifi mesh systems such as orbi (not really true mesh), velop, etc.  does each node in the mesh constitute a separate physical wifi access point from a find3 perspective?  in other words are the wifi fingerprints a result of the distance & signal calculation to each individual wifi mesh node (as if they were independent wifi access points) or do the distance/signal calculations treat the entire mesh (group of wifi APs) as a single entity?
i'm curious because i am encountering some resolution issues that i don't seem to see with find version 2 and am wondering if this is related or not.  For example, overall it seems to take longer for find3 to converge on location changes - in particular, when i change locations between 2 rooms that each have a wifi mesh node, it's almost as if it doesn't detect the change until i make the find3 scanner on my android the front most app on the phone.  if i leave it in the background, it doesn't seem to detect the location change  - or it takes a really long time (minutes).  Find 2 in comparison, picked up changes almost immediately - but it also had erroneous changes.  once, find 3 has settled on what is the correct location, it doesn't seem to fluctuate.
I haven't tested this exhaustively, but the wifi mesh made me wonder.  Maybe it's just a learning issue still?  (although my accuracy overall is 98% and none individual locations are less than 92%)
thx, jay

@yajrendrag I think this is a learning issue. I don't think it has anything to do with WiFi mesh, although I've never played with them so I can't say for sure.
The location classification in FIND3 is very different than the previous version. It will be better in most cases, I suspect, but not in every case apparently. I would try to do more learning to see if it improves.

thanks.  am thinking you're right.  i also switched over to passive scanning and have a series of questions - will make a new topic for them.


Extend license single select to multi select

Summary of changes
We adapt the AutoComplete field for license selection in the locate popup so that multiple licenses can be selected.
Context and reason for change
We want to extend the locate popup to make it possible to search for multiple licenses at once. Here we change the UI component. The logic behind it will be changed in the next step.
How can the changes be tested
Open the locate popup and check that multiple licenses can be entered.
Note
In order to make this work, I needed to skip one unit test in LocatorPopup.test.tsx. This one should be reenabled when the new logic for the license search is added.

There is nothing yet that can be tested, since the logic for the multiselect will only be added in the next step. I fixed the positioning of the x.


Fix gosec errors converting to int32

Related Issue

https://issues.redhat.com/browse/ACM-0000
Description of changes

Added ...

/cherry-pick release-2.12


zgen traverses all subdirectories (including .git directory) when updating.

On my machine with zsh 5.3.1 and the latest master for zgen I get the following output from a zgen update:
$ printf "ZSH Version: $(zsh --version)\nZgen Version: "; GIT_DIR=~/.zgen/.git git rev-parse HEAD; zgen update 2>&1 | sed -e "s#$USER#username#g"
ZSH Version: zsh 5.3.1 (x86_64-redhat-linux-gnu)
Zgen Version: ffd3f50addf7a0106d9ea199025eb99efbb858f4
-- zgen: Updating '/home/username/.zgen/ascii-soup/zsh-url-highlighter-master/' ...
Current branch master is up to date.
-- zgen: Updating '/home/username/.zgen/.git/branches/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/.git/config' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/config
-- zgen: Updating '/home/username/.zgen/.git/description' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/description
-- zgen: Updating '/home/username/.zgen/.git/FETCH_HEAD' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/FETCH_HEAD
-- zgen: Updating '/home/username/.zgen/.git/HEAD' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/HEAD
-- zgen: Updating '/home/username/.zgen/.git/hooks/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/.git/index' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/index
-- zgen: Updating '/home/username/.zgen/.git/info/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/.git/logs/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/.git/objects/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/.git/packed-refs' ...
zgen-update:cd:3: not a directory: /home/username/.zgen/.git/packed-refs
-- zgen: Updating '/home/username/.zgen/.git/refs/' ...
fatal: This operation must be run in a work tree
-- zgen: Updating '/home/username/.zgen/unixorn/autoupdate-zgen-master/' ...
Current branch master is up to date.
-- zgen: Updating '/home/username/.zgen/zsh-users/zsh-autosuggestions-master/' ...
Current branch master is up to date.
-- zgen: Updating '/home/username/.zgen/zsh-users/zsh-completions-master/' ...
Current branch master is up to date.
-- zgen: Updating '/home/username/.zgen/zsh-users/zsh-history-substring-search-master/' ...
Current branch master is up to date.
-- zgen: Updating '/home/username/.zgen/zsh-users/zsh-syntax-highlighting-master/' ...
Current branch master is up to date.
-- zgen: Deleting `/home/username/.zgen/init.zsh` ...

This seems to be caused by this bit of zgen-update:
for repo in "${ZGEN_DIR}"/*/*; do
I've fixed this in my own fork of zgen by changing that line to:
for repo in "${ZGEN_DIR}"/(^.git)/*; do
which will match alldirectories in the zgen_dir that don't match '.git'
I'll create a pull request shortly, but I'd be interested to know if others are seeing the same issue.

For me, * does not match dot files. Is that a zsh setting?

Odd, it never actually occured to me that this was something I had set in my dotfiles a few years ago, found this in my .zshenv:
setopt globdots


[Bug]: No way to ingest youtube or create transcripts in latest version installed via go

What happened?
ENVIRONMENT:  Red Hat Enterprise Linux release 9.4 (Plow)
GO VERSION: go version go1.23.1 linux/amd64
go install github.com/danielmiessler/fabric@latest installed fabric into $HOME/go/bin , but the version installed does not have the -y flag option, and neither yt nor ts apps were installed.
Version check

[X] Yes I was.

Relevant log output
[grimm@localhost ~]$ fabric -h
Usage:
  fabric [OPTIONS]

Application Options:
  -p, --pattern=                    Choose a pattern
  -C, --context=                    Choose a context
      --session=                    Choose a session
  -S, --setup                       Run setup
      --setup-skip-update-patterns  Skip update patterns at setup
  -t, --temperature=                Set temperature (default: 0.7)
  -T, --topp=                       Set top P (default: 0.9)
  -s, --stream                      Stream
  -P, --presencepenalty=            Set presence penalty (default: 0.0)
  -F, --frequencypenalty=           Set frequency penalty (default: 0.0)
  -l, --listpatterns                List all patterns
  -L, --listmodels                  List all available models
  -x, --listcontexts                List all contexts
  -X, --listsessions                List all sessions
  -U, --updatepatterns              Update patterns
  -c, --copy                        Copy to clipboard
  -m, --model=                      Choose model
  -o, --output=                     Output to file
  -n, --latest=                     Number of latest patterns to list (default: 0)
  -d, --changeDefaultModel          Change default pattern

Help Options:
  -h, --help                        Show this help message

[grimm@localhost ~]$ fabric -y
unknown flag `y'

Relevant screenshots (optional)
No response

Go towards the bottom of the README.md under the "Helper Apps" section.
yt Installation
To install yt, install it the same way as you install Fabric, just with a different repo name.
go install github.com/danielmiessler/yt@latest
Be sure to add your YOUTUBE_API_KEY to ~/.config/fabric/.env.

Go towards the bottom of the README.md under the "Helper Apps" section.
yt Installation
To install yt, install it the same way as you install Fabric, just with a different repo name.
go install github.com/danielmiessler/yt@latest
Be sure to add your YOUTUBE_API_KEY to ~/.config/fabric/.env.

Ah, I see that. The README shows -y as an option, is that just not included yet, and is there still a way to get the ts helper app?

Having a similar problem here....I migrated from the python version to use go. Installed go with the package manager on silicon-based MBP. Added these into .zshrc (export GOROOT=/opt/homebrew/bin/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:) but the go directory doesn't exist under /opt/homebrew/bin.
This prevents me from installing yt, of course, but also makes me wonder if there's something else not configured correctly. Fabric seems to respond ok, but just checking. Any thoughts?

Please use
fabric -y "url" ...


[WIP] Support Doctrine MongoDB ODM

Fixes #26.
This PR introduces compatibility with MongoDB ODM. A quick summary:

All Entity* classes have been replaced by corresponding Object* classes. To avoid BC breaks, existing classes remain but throw a silenced deprecation warning so people can update their code if they extend those classes
ObjectManagerGetRepositoryDynamicReturnTypeExtension takes a managerClass constructor argument to be able to return different repository class names for ODM and ORM. The service configuration was updated to contain all three mappings for doctrine/persistence, doctrine/orm and doctrine/mongodb-odm.
BC break: The doctrine.repositoryClass parameter was renamed to doctrine.orm.repositoryClass to better differentiate it from the other class names. This can be reversed, although I'm not sure of a good way to throw a deprecation notice for this.

Todos:

[ ] Update tests to cover MongoDB ODM as well
[ ] Document functionality
[x] Add type extension for Doctrine\Common\Persistence\ManagerRegistry

@alcaeus May we help you on this ?

I've put work on hold since there are other PRs achieving the same thing and I haven't received any feedback from @ondrejmirtes on how to proceed. I'm not working on this until those questions are resolved to avoid doing work for nothing.


regexp/syntax: add Cut

Note: Current proposal is https://github.com/golang/go/issues/44254#issuecomment-892834119

Regular expressions are often embedded in other languages, and the current regexp package makes it difficult to correctly parse such regexps. Common examples of such embedding include awk, Perl, and Javascript, all of which have a /regexp/ expression syntax. In Go, this appears in the testing package's "-test.run" flag, which is a sequence of /-separated regexps; in benchstat v2's filter syntax; and in at least one other place @rsc mentioned that's now slipping my mind.
In general, this is difficult to implement outside regexp itself because the delimiter may appear nested in the regexp. For example, in the testing package, the run expression a[/]b/c matches subtest c of top-level tests matching a[/]b. The first slash is not a separator because it does not appear at the top level of the regexp. The testing package implements a simple, ad hoc parser for this (splitRegexp) but it doesn't get every corner case.
Since this is now a pattern, the regexp package (or perhaps regexp/syntax) should itself implement a "parse until delimiter" function, which would make it easy to parse regular expressions embedded in a larger syntax.
To make a concrete proposal, I propose we add the following function to regexp/syntax:
// ParseUntil parses a regular expression from the beginning of str
// until the string delim appears at the top level of the expression.
// It returns the regular expression prefix of str and the remainder of str.
// If successful, rest will always begin with delim.
// If delim does not appear at the top level of str, it returns str, "", ErrNoDelim.
func ParseUntil(str, delim string) (expr, rest string, err error)

I propose this should return the split input string, rather than the parsed regexp, so it can be composed with any other regexp parsing entry point (e.g., regexp/syntax.Parse or regexp.Compile).
I don't think this operation needs to take Flags, but I'm not positive.
/cc @rsc

I would use this feature for config files taking use input. It would be great for my end users.  Currently I force them to cope with single/double quoting rules, which is not good when they need to match on quotes. By allowing / as a delimiter, and a rebel aware parser looking for it intelligently, my users would be able to use more familiar regexes directly without figuring out what to escape or how many backslashes to escape with.
Instead of “remainder of string” I would prefer returning bytes consumed.

Instead of “remainder of string” I would prefer returning bytes consumed.

I'm fine either way, but I'm curious what your rationale for preferring bytes consumed is. It seems like one would always take that count and just slice the string to get the remainder.

I've wanted something like this in the past to support something like s/REGEXP/REPLACEMENT/ in the past, but as pointed out, that's impractical without parsing the regexp itself.
regexp.Compile and regexp.CompilePOSIX parse slightly differently which might the composability (I haven't thought about this too hard yet, so I can't be sure :) ).
Given how regexp.Compile and regexp.CompilePOSIX are implemented, it might be better to make the parse/compile steps available to developers:
package syntax
func ParseUntil(s string, flags Flags, delim string) (_ *Regexp, rest string, err error)

package regexp
func CompileSyntax(re *syntax.Regexp, longest bool) (*Regexp, error)

This has some advantages:

Avoids duplicating parsing work
Should support updating flags being compiling (eg, supporting s/regexp/replacement/flags).

This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group

We don't have to do the full parse, just enough to find the delimiter.
So in practice the work will not be duplicated as people may fear.
Calling it Parse may not be right, though, since it doesn't return a *Regexp.
Perhaps:
func Cut(s, delim string, flags Flags) (expr, rest string, err error)

I think the flags are needed to tell where to stop in Cut("[[:alpha:]/]", "/", ...).
This is similar but not exactly the same as strings.Cut (just accepted)
in that it returns an error instead of ok bool - it can fail whereas strings.Cut cannot.

Any objections to syntax.Cut?

In strings.Cut, there's no need to return the delimiter because it's always a fixed string, but in this case, should the return value be  expr, delim, rest string, err error? Or should we expect users to perform a real search if they want the match?

@carlmjohnson the delimiter is a fixed string and it is skipped when returning rest -- same as strings.Cut. Hence returning the delimiter would be redundant.
The syntax.Cut signature should work for me. It also ensures the original regexp text available before parsing (useful for errors/logging). The effective duplicate parsing still seems like a disadvantage to me. Cut also risks a mismatch between the implementations if it doesn't directly reuse the parse logic. However, I'll defer to your expertise on this :).

I misunderstood how this worked. I withdraw the comment. The signature sounds good.

Based on the discussion above, this proposal seems like a likely accept.
— rsc for the proposal review group

@aclements could you update the proposal description to the new function signature?

Note to self: should use regexp.Cut to fix #39904.
I also updated the top comment to add a link to the updated proposal.

@rsc If I understand #39904 correctly, A/B|C/D would be equivalent to (A/B)|(C/D), which is to say the delimiter / is subordinate to the alternation |. So the delimiter is not at the top level of the expression, so regexp.Cut does not apply. ISTM that regexp.Cut would give the same behavior as the current implementation, where A/B|C/D is equivalent to A/(B|C)/D.

I'm less interested using this with testing package (although it would be useful), and more interested in enabling parsing the "s/PATTERN/REPLACEMENT/FLAGS", "/PATTERN/", and "m@PATTERN@" idioms via Go. These idioms are commonly known and I'd like to reuse them in various places. Implementing this manually is potentially error prone or impractical.

We don't have to do the full parse, just enough to find the delimiter. So in practice the work will not be duplicated as people may fear. Calling it Parse may not be right, though, since it doesn't return a *Regexp. Perhaps:
func Cut(s, delim string, flags Flags) (expr, rest string, err error)

I think the flags are needed to tell where to stop in Cut("[[:alpha:]/]", "/", ...). This is similar but not exactly the same as strings.Cut (just accepted #46336) in that it returns an error instead of ok bool - it can fail whereas strings.Cut cannot.

May I ask that what is the enum values of Flags, and how it means?


Question

Is there some documentation how use proto buffer (protobuff)  with Resr Assured?

Protobuff is not supported so there are no docs. Please use the mailing list when asking questions in the future, hopefully, someone can answer faster there.


Fix for issue #50

In "new" method, I added a function call to "initialize" method using not mrbc_funcall() but mrbc_vm_run().
Because "new" method must return a new initialized object.

I agree your idea, thank you.


Hunter adds '-isystem /usr/include' to compiler call

I have hunterised a library (library a) that we use internally, and am able to compile it fine on its own. When using it as a hunter dependency in another project, compilation fails with the following error:
In file included from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Install/include/boost/config/platform/linux.hpp:15:0,
                 from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Install/include/boost/config.hpp:57,
                 from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Install/include/boost/cstdint.hpp:36,
                 from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Build/echo3/Source/include/echo/Types.h:38,
                 from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Build/echo3/Source/include/echo/Animation/AnimationTrack.h:4,
                 from /home/sebastien/.hunter/_Base/0c9801f/9d0c998/91bb880/Build/echo3/Source/src/Animation/Animation.cpp:1:
/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.

When I compare this line with the compiler line from library a standalone, the only fundamental difference is that the hunter package has -isystem /usr/include in the compiler flags. This prevents stdlib.h from being found for some reason. How can I prevent this from being added? Am I doing something wrong?

This issue will be closed because the required template file bug_report.md was ignored. Please read and fill carefully all parts of this file while submitting a bug report.
Thanks for understanding.

I mean I'm asking a general question as to why hunter adds  -isystem /usr/include to gcc call. We want to understand why hunter is doing what it is doing. But I will open a new issue following your template.

why hunter adds -isystem /usr/include to gcc call

Your assumption is not correct; Hunter is not doing it.

Well it's not in the compiler flags when I'm building the package separately and it appears when I'm building the package as a hunter dependency

I guess the problem is in dependency then.


Problem about calling Why.fit()

Please make sure that this is a bug.
System information

OS Platform and Distribution (e.g., CentOS 7.6):Win10
Python version:3.9.12
YLearn version:0.1.2
Other Python packages(run pip list):

Describe the current behavior

I call why.fit(), and input the parameter instrument,  it prints bug as below:
ValueError: Expected 2D array, got scalar array instead:
array=None.
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

Describe the expected behavior
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Jupyter notebook.
Are you willing to submit PR?(Yes/No)

Yes

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and files
should be attached.

Can you "Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Jupyter notebook."?

OK, I have sent an email to<EMAIL_ADDRESS>with attachment, plz check~

I found code in your notebook:
treatment = ['CRIM']
instrument = ['RM']
why = Why(random_state=2022)
why.fit(data, 'Price', treatment = treatment, instrument = instrument)

The reason for this exception is that you set argument instrument but not covariate.
If you set any of the adjustment/covariate/instrument during fiting,  Why will skip identify step, so you should also set the others.
try code below
treatment = ['CRIM']
instrument = ['RM']
covariate = [c for c in data.columns.tolist() if c not in  treatment+instrument+['Price'] ]
why = Why(random_state=2022)
why.fit(data, 'Price', treatment = treatment, instrument = instrument, covariate=covariate)


[Backend] GET API for Contact Us

[ ] Make the api to store the Join Us Form data. Below are the requirements for the same-

It should be a GET request
It should only be accessible to the admins only i.e it requires the auth check

Note - This issue can be worked on once Pr-695 pr gets merged

Hey @Kajol-Kumari , I would like to work on this issue.

Please go ahead @tejasvi541
Happy Learning :)

Can i work on this ?

Hey @Kajol-Kumari, I am getting the "jwt malformed" error while adding auth middleware,
i used the Authrization header with Bearer keyword

@arinmodi

@tejasvi541 is already working on this and he will continue to work once his exam gets over
This is an open api so you don’t need any authentication token for the same

I would like to work on this issue under GSSOC`22.

I would like to work on this issue under GSSOC '22

@tejasvi541 can i please get an update on this issue?


nix-shell does not respect shell variables like NIX_PATH

Description/Reproduction/Expected Behavior
A clear and concise description of what the bug is.
$ unset NIX_PATH
$ NIX_PATH=nixpkgs=channel:nixos-20.03 nix-shell -p --keep NIX_PATH --run "echo $NIX_PATH"

Workaround using export:
$ unset NIX_PATH
$ export NIX_PATH=nixpkgs=channel:nixos-20.03
$ nix-shell --pure -p --keep NIX_PATH --run "echo $NIX_PATH"
nixpkgs=channel:nixos-20.03

I think nix should have the same behavior as sh where both of these work:
$ unset var
$ var=value sh -c 'echo "$var"'
value
$ unset var
$ export var=value
$ sh -c 'echo "$var"'
value

Metadata

system: "x86_64-linux"
host os: Linux 5.4.24, NixOS, 20.09pre216896.0729b8c55e0 (Nightingale)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.3
channels(cody): "home-manager, nixos-unstable-20.09pre216896.0729b8c55e0"
channels(root): "nixos-20.09pre216896.0729b8c55e0, nixos-unstable-20.09pre216896.0729b8c55e0"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

This issue does not belong to nixpkgs the collection of packages.
Questions can be posted to our Discourse https://discourse.nixos.org
Nix issue tracker: https://github.com/NixOS/nix/issues

--run "echo $NIX_PATH"

'echo "$var"'

Better stick to single quotes in your examples.

yes, this is an issue with double quotes. Replace with single quotes and bug disappears.