Only include fixed length fields in events

As a continuation of #2937, we must slim down the data contained by our events. This will be a breaking change and that will be reflected in both the OneFuzz version number and the event version number.
Which fields we choose to keep will vary event to event but in general:
Data that is OK to keep

Guids
DateTimes
Enums
Numbers
Any models that exclusively contain fields of those types

Examples of data to remove

Open ended strings (ex: notification templates)
Unbounded lists (ex: call stacks)
Any models that include either of those types

AB#141950

How do we assert that the information container in events will never be too large? We can discriminate based on types.
There's 3 scenarios to consider:

Bounded types
Bounded data in unbounded types
Unbounded data in unbounded types

Using a custom serializer, we can skip fields that do not follow scenario 1 or 2.
Bounded types
We don't need to worry about these. It's unlikely we'll ever have so many of them that we start hitting size limits.
Examples: Guids, DateTimes, Enums, Numbers
Bounded data in unbounded types
public record EventScalesetStateUpdated(
    Guid ScalesetId,
    PoolName PoolName,
    ScalesetState State
) : BaseEvent();

ScalesetId and State are bounded in length. PoolName isn't directly bounded since it's just a type alias for String, BUT it's indirectly bounded because we use it as for an azure queue name which has size limits (up to 63 characters).

Suggestion: When the underlying type is unbounded in length but we know there are external constraints, we can create a type alias or wrapping type (like we have with Container) that enforces those constraints. Then, apply a type attribute that can be picked up by the custom serializer to include this field.

If we follow the suggestion, the serialized EventScalesetStateUpdated will not change. If we don't follow the suggestion, PoolName will be omitted.
Unbounded data in unbounded types
public record EventCrashReported(
    Report Report,
    Container Container,
    [property: JsonPropertyName("filename")] String FileName,
    TaskConfig? TaskConfig
) : BaseEvent()

public record Report(
    string? InputUrl,
    BlobRef? InputBlob,
    string Executable,
    string CrashType,
    string CrashSite,
    List<string> CallStack,
    string CallStackSha256,
    ...
);

In Report there are many fields that can and do take unbounded data like CallStack. There are some fields that only take bounded data like BlobRef. There are some fields like CrashType that could be bounded if we spent the time to scope all possible inputs.
In this case, only the fields that follow scenario 1 or 2 will be serialized. So the final serialized type will look like:
{
    "report": {
        "inputBlob": "https://example.com/some-blob-ref"
        /* no inputUrl, no executable, no call stack, no crashType, etc. */
    },
    "container": "some-container-name",
    "filename": "some-file-name",
    "taskConfig": {
        /* follows the same rules as report */
    }
}

I think we should allow any IValidatedString (in #3045 I'm adding a non-generic "base interface" to make this easier), with the assumption that any instances should enforce a maximum length limit. As you point out, PoolName should have a length enforced already.


Refactor the scheduled data refresh to be able to stop and start

The scheduler can be started via startSchedulerFixedDelay with
any delay (in seconds).

The scheduler can be stopped via stopSchedulerFixedDelay action.
This will cancel the current delay and skip the task.

Starting a scheduler while another is already running will cause
the existing scheduler to be stopped.

This will be useful if/when the refresh is enhanced to allow the user to pick the refresh interval.
Also useful for devs to control the refresh using the redux tools browser extension. Dispatch { type: 'STOP_SCHEDULER_FIXED_DELAY', payload: {} } to completely stop the refresh.  Dispatch { type: 'START_SCHEDULER_FIXED_DELAY', payload: { delayInSeconds: 600 } } to (re)start the scheduler with a 10 minute delay.

This change is

NOTE - This PR touches some of the same files as #628.  If that PR is merged first, this one will need some changes.  If this PR is merged first, #628 will need some changes.

There was a simpler way that didn't require enabledScheduler in the config reducer.

#643 included the commit in this PR, so I'm closing this one out since it is no longer relevant.


Added missing IrcCommands, Added # before channels, Updated to 4.7.1 Framework

Added missing IrcCommands, Added # before channels, Updated to 4.7.1 Framework

I re-added the example project, removed the comments and recommitted it to my fork. I am a bit confused about this PR though. Should I just remove it and do a new one or can this one be updated? Kinda new to this whole process.

@SeeingBlue Adding more commits will update your PR. That's why people usually use branches for PRs instead of master.

Thanks @gibbed
At least in this case it did exactly what I needed then.


fix: session log record describe properly print call return values

need to specify SafeForJSON so JSON encoder could serialize the data properly, otherwise it tries to serialize map[any]any and fails.

this is trivial and affects only dashboard, so I'm going to just merge it.


Include documentation-related tools

Like

ReadTheDocs for documentation hosting
EasyDocContents for documentation redaction and integration

Hi @mildis, leaving this open as we'll consider it for a future release. Thanks for the suggestion.

Hi @mildis, like the idea, however real estate is a current challenge with the Landscape and I'm not seeing enough players/momentum to warrant the new category, today. Closing for now, thanks.


fix: issue where DPT9 was giving error

There was an error trying to read value from buffer of DPT9.001. This PR fixes that issue
        throw Error(`Unsupported DPT: ${dptid}`);
              ^
Error: Unsupported DPT: 9.001
    at Object.resolve (/home/lenovo/learning/enmatter/node_modules/.pnpm/knxultimate@2.1.2/node_modules/knxultimate/build/dptlib/index.js:117:15)
    at handleKnxEvent (/home/lenovo/learning/enmatter/apps/server/src/plugins/knx/handleKnxEvent.ts:20:54)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.16.1

Ops, typo :)


Unsaved changes message shown when trying to switch to another page without any changes being made

Reproduction steps

Intended, archiving


DNM: tentative AddressSpace doc for review

I found myself wanting notes about where the new design buried the bodiescached free memory, and what exactly MetaEntry-s held.  I won't pretend that this is useful as it stands to anyone but me, but perhaps it's a start on something that might one day be.

Oh bah, I was hoping that marking it as draft would keep it from going out to the CI builders.

OBE in #477


GUVNOR-2811: Project Editor: Build button is not re-enabled if the user visits an empty Organizational Unit

See https://issues.jboss.org/browse/GUVNOR-2811

Jenkins please retest this.

+1


Issues are not showing

API did not return any screenshot, so an exception is being raised here: https://github.com/Bugheist/Flutter/blob/main/lib/src/components/issue_intro_card.dart#L43

Assign to me

The fix would be on the api

Backend issue has been fixed, closing


[REVIEW] hellodeborahuk

GitHub Profile Link
https://github.com/hellodeborahuk

Looks amazing

duplicate repos in the customised repo and pinned repos


Can anyone provide me with a sample order for Options?

I looked through the sample orders in the order/market_order location and its limited to a few samples. I was wondering if anyone can provide me with a sample for options buy/sell. I tried build one out but for some reason its defaulting to STK purchase vs a OPT purchase.
Thanks

Hey. Have you been able to get IBKR to authenticate through a regular account and create a session properly?


Make doc site more readable

Just a simple request, for the benefit of persons whose eyesight is not very acute, I'd like to ask you to increase the contrast on your web site, between the base font and the background.
I normally don't do this but I spent a minute on your site asking myself "why is this thing so hard to read" before noting that your font is both slim and colored somewhat lightly, and your background isn't helping the matter.
If it helps to set a standard, Github's web site also features fonts so I tend to keep Dark Mode enabled so that I can read it better, but your web site doesn't offer that.
thanks!

It might be that the changes are already committed to the repository, but the website didn't get updated properly.  I'll look into it tomorrow, I hope, when my brain is actually working.

I just cfa8155edd78830a7be75c8d899599f8f0c7d047 in rethinkdb/www.  That's the last use of #647276.  Didn't test locally or anything... Maybe that will do it.

@tylergannon How do you like it now?

I'm closing because this is, generally speaking, done.  The website and docs use solid black for most of the text.
Some other colored text is still kind of questionably low in constrast, but we can see if anybody complains about it.


Types not resolving to .js.flow files

I'm using an npm package that transpiles its files then uses flow-copy-source to copy its flow annotated files to the package's lib folder. The result is there's an index.js file and an index.js.flow file. index.js.flow contains custom types exported by the application, while index.js has these stripped.
At compile time, the flow-bin binary resolves to index.js.flow instead of index.js, allowing the flow compiler to pick out the custom types. However, the flow-runtime babel plugin doesn't resolve index.js.flowfirst, causing flow-runtime to throw the error Error: Could not reference the given type.
If you could point me in the right direction in the code base I might be able to help submit a PR. If you have another suggestion on how I could fix this though I'd appreciate it!

We're not yet using flow's config file and we aren't yet importing types from external definition files. We have a lot of the machinery in place - there's a concept of modules and declarations, and we have a parser for the config files but it's not all tied together yet. The file discovery aspects should be quite straightforward, but there's some complexity or at least open questions around where we put the code we generate from those external files.
In an ideal world, when babel starts we'd visit external definition files, make babel pull them into the working set and process them like any other, importing them into the code where necessary. Everything would be great. Unfortunately babel has no concept of "starting" and it processes one file at a time - there is no concept of a working set. As a babel plugin we don't have the ability to tell babel to process other files as well, in fact even the concept of a "file" is tenuous in babel - it could be a script tag.
There are 2 core problems here:

We need to be able to discover definition files, process them with babel and turn them into calls to t.declare(t.module('mocha', ...)) etc.

The user code needs to be able to reference the definitions. In some cases that's via an explicit import type ..., in other cases it's an implicit reference to a global type, for which we currently generate t.ref("someGlobalTypeName").

I think this has to be done out of band - we will need an external tool which inspects the directory structure, discovers definition files, collates them together, processes them and produces two files:

flow-runtime-typedefs.js which can then be imported by the developer at the top of their entry script.
flow-runtime-type-data.json which contains information about the external typedefs and is used by the babel plugin.

Whenever you install a new module or edit a definition file, you'll have to run something like flow-runtime generate on the CLI to update these files. We'll probably want a webpack plugin to handle this too.

@jamsea I just published v0.1.0 which should not throw in this case, just emit a warning. It should help in the interim. If you get sick of the warnings you could override t.emitWarningMessage() until the issue is fixed properly

in 0.3.0 this is mostly done, there's now flow-runtime-cli which can generate definitions from flow files, next step is to discover .flow files too

:+1: for this feature as I would like to be able to do: t.validate(Type from .flow file, runtime object);


Specific role required by app is not matched by default resource role: "*"

(using playa-mesos with latest marathon and mesos)
After installing marathon-lb using dcos cli:
dcos package install marathon-lb
I noticed that marathon indicates insufficient resources error. After some investigation, the reason seems to be that marathon-lb requires role 'public_slave', but my mesos slave's resources are declared with default role: *

After looking in the marathon code, I noticed that in that situation the resources are indeed not matched. In the following line, the role set will then contain only roles declared on app, skipping defaults: config.defaultAcceptedResourceRolesSet which include the default * role.
https://github.com/mesosphere/marathon/blob/master/src/main/scala/mesosphere/mesos/TaskBuilder.scala#L30
I'm not sure if this is maybe by design? Perhaps the spefic role the app requires just has to be available in mesos (and not in the pool of unassigned resources)?
If this is indeed a bug, I would be happy to provide a PR.

Hi @PiotrTrzpil thank you for your interest! The described behaviour is by design. Marathon will only considers resource offers with roles defined in the acceptedResourceRoles. "If you do not specify this [list], Marathon considers all resource offers with roles that have been configured by the --default_accepted_resource_roles command line flag"¹ This enables users that might want to "reserve" a share of their resources for the role "production" to ensure that other tasks do not consume all resources.

Example 1: "acceptedResourceRoles": [ "production", "*" ] Tasks of this app definition are launched either on "production" or "*" resources.

Example 2: "acceptedResourceRoles": [ "public" ] Tasks of this app definition are launched only on "public" resources.

If you have any further questions please don't hesitate to ask!
/source https://mesosphere.github.io/marathon/docs/rest-api.html (1,2)


我用docker-compose 安装后，在登录页面不能登录，

问题描述
在超管下 登录页面，登录功能，报错：后台服务未启动
问题描述
日志堆栈贴上来。
logs/runtime.log
walle-python | [2019-05-10 17:08:06,143] ERROR in app: Exception on /api/passport/login [POST] walle-python | Traceback (most recent call last): walle-python |   File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request walle-python |     rv = self.dispatch_request() walle-python |   File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request walle-python |     return self.view_functions[rule.endpoint](**req.view_args) walle-python |   File "/usr/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 477, in wrapper walle-python |     resp = resource(*args, **kwargs) walle-python |   File "/usr/local/lib/python2.7/site-packages/flask/views.py", line 88, in view walle-python |     return self.dispatch_request(*args, **kwargs) walle-python |   File "/usr/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 587, in dispatch_request walle-python |     resp = meth(*args, **kwargs) walle-python |   File "/opt/walle_home/walle/api/passport.py", line 34, in post walle-python |     return self_action() walle-python |   File "/opt/walle_home/walle/api/passport.py", line 47, in login walle-python |     user = UserModel.query.filter_by(email=form.email.data).first() walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2895, in first walle-python |     ret = list(self[0:1]) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2687, in __getitem__ walle-python |     return list(res) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2995, in __iter__ walle-python |     return self._execute_and_instances(context) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 3018, in _execute_and_instances walle-python |     result = conn.execute(querycontext.statement, self._params) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 948, in execute walle-python |     return meth(self, multiparams, params) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection walle-python |     return connection._execute_clauseelement(self, multiparams, params) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement walle-python |     compiled_sql, distilled_params walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context walle-python |     context) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception walle-python |     exc_info walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause walle-python |     reraise(type(exception), exception, tb=exc_tb, cause=cause) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context walle-python |     context) walle-python |   File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 509, in do_execute walle-python |     cursor.execute(statement, parameters) walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute walle-python |     result = self._query(query) walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query walle-python |     conn.query(q) walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 517, in query walle-python |     self._affected_rows = self._read_query_result(unbuffered=unbuffered) walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 732, in _read_query_result walle-python |     result.read() walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 1075, in read walle-python |     first_packet = self.connection._read_packet() walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 684, in _read_packet walle-python |     packet.check_error() walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/protocol.py", line 220, in check_error walle-python |     err.raise_mysql_exception(self._data) walle-python |   File "/usr/local/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception walle-python |     raise errorclass(errno, errval) walle-python | ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'walle.users' doesn't exist") [SQL: u'SELECT users.id AS users_id, users.username AS users_username, users.is_email_verified AS users_is_email_verified, users.email AS users_email, users.password AS users_password, users.avatar AS users_avatar, users.role` AS users_role, users.status AS users_status, users.last_space AS users_last_space, users.created_at AS users_created_at, users.updated_at AS users_updated_at \nFROM users \nWHERE users.email = %(email_1)s \n LIMIT %(param_1)s'] [parameters: {u'email_1'<EMAIL_ADDRESS>u'param_1': 1}] (Background on this error at: http://sqlalche.me/e/f405)
walle-nginx | <IP_ADDRESS> - - [10/May/2019:17:08:06 +0800] "POST /api/passport/login HTTP/1.1" 500 37 "http://<IP_ADDRESS>/login" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36" "-"

``
runtime...
logs/error.log

error...

**截图**
拖拽到此处即可上传

**运行环境**
 - OS: [e.g. Centos 7.x]
 - 版本 [e.g. aba77b36] walle首页信息处显示

@xingyu-Lu Hi，你的数据库初始化没有成功，请删除MySQL映射的宿主机目录下的文件，重新数据初始化

@xingyu-Lu Hi，你的数据库初始化没有成功，请删除MySQL映射的宿主机目录下的文件，重新数据初始化

解决啦，谢谢


Fix for Anthropic client class so system messages aren't lost

At the moment if the set of messages for inference has more than one system message, only the last system message will be put into the Anthropic API system parameter.
During some testing of group chats I noticed there are multiple system messages for speaker selection in auto mode. So this meant the speaker selection was losing context and failing.
This PR simply concatenates the system messages together and it proves effective.
Why are these changes needed?
Group Chat doesn't work effectively with Anthropic models when in auto mode without it.
Related issue number
None raised.
Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

looks clean. thanks @marklysze

Thanks @Hk669!

LGTM

Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 17.66%. Comparing base (6279247) to head (628dc7c).
Report is 107 commits behind head on main.

Files
Patch %
Lines

autogen/oai/anthropic.py
0.00%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3392       +/-   ##
===========================================
- Coverage   32.90%   17.66%   -15.25%
===========================================
  Files          94      101        +7
  Lines       10235    10756      +521
  Branches     2193     2458      +265
===========================================
- Hits         3368     1900     -1468
- Misses       6580     8663     +2083
+ Partials      287      193       -94

Flag
Coverage Δ

unittests
17.62% <0.00%> (-15.28%)
:arrow_down:

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

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

There are errors in the openai tests. @marklysze

There are errors in the openai tests. @marklysze

Hi @thinkall, I don't believe the OpenAI tests are required for this PR and I believe they are throwing the error:
if not skip_openai:
    config_list = autogen.config_list_from_json(

I'm not clear on how to bypass them for the checks.
The exception is related to a missing notebook/OAI_CONFIG_LIST file.


README: Add electron/frameless to the example

Lots of people in various github issues are looking for how to create frameless vscode windows now that apc-extension doesn't work, so include it front and center in the example so that people can discover it more easily

Thanks!


Change default position of window

It would be great if we could set the extension to open from the left/right/bottom panels.
I think this extension lends itself to be opened from the bottom panel and then when you click the diff changes it opens in the editors above. Would be really great for git workflows. 🙏
Thanks for working on this awesome extension.

thanks for this suggestion, I hadn't even been aware that this was possible. You can now toggle the position   with the new git-log--graph.position option in version 1.4.0.

Wow thanks for implementing this so fast! This was a feature I wanted in Git Graph for ages. I only recently discovered that it is no longer maintained and found your project.
Will try and use it as my daily and send more feedback! 🙏

awesome :-)


reCAPTCHA Badge Hidden Setting

While I see the temptation to hide the reCAPTCHA badge completely, perhaps it should be noted somewhere that according to the reCAPTCHA terms of service (to which you must have agreed to), you must inform visitors about the reCAPTCHA implementation on your site.
https://stackoverflow.com/a/44543771/1769259
Thanks for a great plugin!!

Added a notice to the setting with a link to the stackoverflow post.

Thanks!


Padding & Groups

Hello,
I found a little issue with exporting layers with padding. If the layers are nested inside groups, padding is not applied. Without groups it works fine.
Photoshop CC 20.0.4 (currently latest version)
Layers - Vector Smart Objects
T.

Hello,
it seems, that problem with padding is not related with groups. If You want export layers with padding, You have to disable and enable this option always, when export dialogue appears.
T.

Thanks for the feedback @kozis. That should make this issue easier to track down!

Actually, neither disabling & enabling and/or ungrouping did anything for me. Moreover, it's not exporting all visible layers. I misses one of the three visible layers.
Is this issue resolved?
This is what I'm trying to export...:

These are my export settings...:

Then it exports only 2 pics...:

And they don't have 32 pix padding...:

I downloaded the script yesterday, so I guess it's the last version. If you need anymore information, I'll be more than willing to help, as I need an export script that can add padding.
Thanks.

@Abelius1 sorry for the very late reply. Could you try again and see if it's still an issue? I released a new version today and padding seems to work for me.


Add note about limitation of the plugin.

Clarify subtle limitation of this plugin as noted in #116

I think what it's most disorienting it's that the examples are all testing directly the Popen() interface, when in the actual use case you test something using it internally.
I'll rework the PR to include some good and bad examples, hopefully before next week.


Authentication

Finishing authentication process, login, register, logout and redirect to main menu if user has logged in


mdl-layout__obfuscator in v1.0.6

Hi there,
In v1.0.6, the side bar (mdl-layout__drawer) no longer work for me as expected. Issue seems to relate to ""mdl-layout__obfuscator" element.
Please take a look:
https://youtu.be/VxltTTJIOpk
Regards,
Dong

Thanks for the video with your issue, @ndaidong. I think we encountered that issue and fixed it in master for 1.1. @sgomes Can you confirm?

Thanks for the video, @ndaidong! @surma There aren't any bugs that we've fixed for 1.1, no. As far as I know, there are no known bugs with the drawer in 1.0.6.
This is likely happening because there were some minor changes to how the drawer works in 1.0.6, to work around some iOS bugs. In order to implement the fixes, we had to change both the JS and the CSS, so if you use the 1.0.6 CSS with the 1.0.5 JS, it won't work correctly.
Looking at the video, you only seem to be changing the CSS file, so I assume that's what's happening. Please try using the 1.0.6 JS with the 1.0.6 CSS and it should work correctly, but if not let me know and I'll look further into this!

Thank you @surma and @sgomes
You guessed correctly, Sérgio. My issue relates to JS version. I've updated to  v1.0.6 both JS and CSS then it works for me now.


Static type of ! does not remove nullability from a type parameter

The static type of a ! expression should be the type of its operand with any nullability removed. In analyzer with the non-nullable experiment enabled, this is working for normal types, but does not seem to work if the type is a nullable type parameter.
If I take:
class Foo<T> {
  void bad1(T? t) {
    T temp = t!;
  }

  T bad2(T? t) {
    return t!;
  }

  void ok1(int? i) {
    int temp = i!;
  }

  int ok2(int? i) {
    return i!;
  }
}

And analyze it using:
dartanalyzer --enable-experiment=non-nullable example.dart

I get:
  error • A value of type 'T' can't be assigned to a variable of type 'T' at example.dart:3:14 • invalid_assignment
  error • The return type 'T' isn't a 'T', as defined by the method 'bad2' at example.dart:7:12 • return_of_invalid_type
  hint • The value of the local variable 'temp' isn't used at example.dart:3:7 • unused_local_variable
  hint • The value of the local variable 'temp' isn't used at example.dart:11:9 • unused_local_variable

As I understand it, this program should have no errors. cc @stereotype441 @leafpetersen

@scheglov can you look at this?

https://github.com/dart-lang/sdk/issues/38900#issue-507385686 will be addressed by https://dart-review.googlesource.com/c/sdk/+/121881.
https://github.com/dart-lang/sdk/issues/38900#issuecomment-542411318 might be related to type parameter substitution, and we need to land a fix for implicit cast first, possibly https://dart-review.googlesource.com/c/sdk/+/121764.

Thanks for the quick turnaround!

The second example will be fixed with https://dart-review.googlesource.com/c/sdk/+/121921.


Disallow rest element as parameter in setter

I wasn't sure if I should extract this logic out or not considering it exists in two places. Since there's other repeated logic in this regard, I opted not to, but let me know if you'd like me to.
Fixes #358

Looks good! Too bad about the duplication of the test, but you didn't start that (the test above is also duplicated) so I won't complain. Merged as 0243a7c


run traefik container with isolation=process

I have the problem described here: https://github.com/StefanScherer/dockerfiles-windows/issues/383 on Windows 10.
docker logs on traefik container:
Failed to retrieve information of the docker client and server host: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: message readmode pipes not supported In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
According to this issue, running the traefik contaienr with proceses isolation should fix the problem.
Can we change the Setup-TraefikContainerForNavContainers.ps1 to use --isolation=process?
Edit: I tested it and can confirm that --isolation=process solves the issue
@freddydk i did not make a PR because i don't know if you would prever to make a switch or use the same logic of new-navcontainer to determine if process isolation is possible.

Shipped in <IP_ADDRESS>


mime.lookup is not a function

I'm seeing this too.  Looks like v2 of node-mime renamed Mime.lookup to Mime.getType.
The dependency of this module on node-mime has been set to ^1.2.11 in this repo but the version on npm still depends on >0.0.0.
@coolaj86 any chance of releasing an updated version that depends on the right node-mime version?


fix: update test

Description
Updates test
Release required?

[x] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

When merging, use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author. The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).
Merge by using "Squash and merge".

/run pipeline

@maheshwarishikha we do not need this import as "testhelper" is already imported on the pr_test.go. Go lang shares imports at the same directory level.

@maheshwarishikha we do not need this import as "testhelper" is already imported in the pr_test.go. Go lang shares imports at the same directory level.

When I run local as below, I hit the same error.
% make run-tests-local RUN=TestRunBasicExample
cd tests && go test -run TestRunBasicExample -count=1 -v -timeout 300m
# github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi.test]
./other_test.go:12:13: undefined: testhelper
FAIL	github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [build failed]
make: *** [run-tests-local] Error 1

And after importing that library, error is resolved.

/run pipeline

@maheshwarishikha I do not encounter that error.

Maybe it is because you are explicitly running that test make run-tests-local RUN=TestRunBasicExample. Does it work if you just run make run-tests-local ?

@ocofaigh i ran exactly that same test

/run pipeline

/run pipeline

@ocofaigh currently there is no existing policy in Dev account block storage -> HPCS but test is still failing with the error  auth policy exists. Is it something related to upgrade test specifically? otherwise what else.... 🤔

@maheshwarishikha If the standard test and the upgrade test are trying to create the same auth policy, then yes we will face this issue. How about running one of the tests with key protect, and the other with hpcs so they don't clash?

@ocofaigh Regardless if we have that import in both files it would fail with an "unused import" error.
4197 ± make run-tests-local                                                                                ✹
cd tests && go test -run '' -count=1 -v -timeout 300m
# github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi.test]
./other_test.go:7:2: "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper" imported and not used
FAIL    github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [build failed]
make: *** [run-tests-local] Error 1

Are you trying out with the latest code? Because the new code has bee added in other_test.go that uses testhelper library.

@maheshwarishikha I believe you are correct - I think this change is needed. Without it I get:
 % make run-tests-local RUN=TestRunBasicExample
cd tests && go test -run TestRunBasicExample -count=1 -v -timeout 300m
# github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi.test]
./other_test.go:13:13: undefined: testhelper
FAIL	github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi [build failed]
make: *** [run-tests-local] Error 1

@maheshwarishikha If the standard test and the upgrade test are trying to create the same auth policy, then yes we will face this issue. How about running one of the tests with key protect, and the other with hpcs so they don't clash? We could update the example to handle both so we just need 1 example. but the tests trigger it differently

hmm..yes, that could be the reason. I'll check tests.

@ocofaigh
I think example will handle any KMS. So as such no update required for example. One test can be configured with HPCS and another one with KMS. Will test it.
Got one question - Dont we use have existing KP instance for any test? If yes, where are the details of KP instance stored? I do not find KP details at common-dev-assets/common-go-assets/common-permanent-resources.yaml

@maheshwarishikha We don't have a permanent Key Protect instance. We just create one in the examples. That way we always have a unique instance ID and full end to end examples. This also mans Key Protect auth policies won't clash since its a unique instance every time

So can we have the standard test using HPCS and the upgrade test using Key Protect? That way there won't be any clashes

So can we have the standard test using HPCS and the upgrade test using Key Protect? That way there won't be any clashes

It can be done. In this case, the example needs modification such that it will create KP instance, auth policy, keys etc if kms_does_not_exist already.
On a lighter note, how much it helps if we do this additional work in example just for PR test? why not to run test sequentially that also takes care of this clash policy issue?

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


remove min replicas to ibievents and isobuild

Description
remove readiness for ibievents and isobuilds
Fixes # ( THEEDGE-2216  THEEDGE-2217)
Type of change
What is it?

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update
[ ] Refactor

Checklist:

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] I run make pre-commit to check fmt/vet/lint/test-no-fdo

remove do not merge as automation is ok now

/rebase

Codecov Report
Base: 47.03% // Head: 47.06% // Increases project coverage by +0.03% :tada:

Coverage data is based on head (a076281) compared to base (9d69797).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1760      +/-   ##
==========================================
+ Coverage   47.03%   47.06%   +0.03%
==========================================
  Files          70       70
  Lines        9827     9827
==========================================
+ Hits         4622     4625       +3
+ Misses       4751     4749       -2
+ Partials      454      453       -1

Impacted Files
Coverage Δ

pkg/services/devices.go
50.43% <0.00%> (+0.32%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

This PR is still labeled as DRAFT. BTW the description says ibevents and isobuilds will be updated but only one has been updated


Fix "is defined" test

see #160

Anyone (e.g. @createvibe because you are quite active recently) wants to review this pull request? See #160 for explanation.

@plepe I found an issue with nested objects.
var context = {
    key: {
        nested: {
            data: "nested data"
        }
    }
};

twig({data: '{{ key.nested.fail is defined }}'}).render(context).should.equal( "false" );

The above is returning "true" instead of "false" and causes the test to fail.
It is returning true on "key.nested.anything" because key.nested is defined.  I don't think it's looking further than the first period.
Is this expected?

shoot I'm sorry @plepe, I spoke too soon.  For some reason make didn't want to regenerate the twig files.  it all works good.  CR passes.  :)

Awesome :-) Then I'll merge.


row-at-a-time FromSql

so we could do:
let results = PersonMapper::select_all()

reddit discussion

I suppose this is addressed by 8a70b7f as well.


Passport numbers starting with character 'O'

Hi, I am trying to use traineddata but have noticed a very peculiar issue for passport images where the passport number starts with 'O' are getting read as '0' (zero). However, other O's in the mrz section are getting read correctly. PP number - 'O996479' getting read as - '0996479'. How can I fix this ?

You'll need to retrain the model with your own data

You'll need to retrain the model with your own data


Remove no-op stream code

This PR fixes #47. I think it needs no CHANGELOG entry because it doesn't affect any output from this plugin.

@spotbugs/everyone please review this change. Thanks in advance!


fix: move metric parsing to state instantiation

SUMMARY
I noticed while testing that the markdown metric field isn't updating properly.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After:
https://user-images.githubusercontent.com/5186919/121429307-9c6b8180-c92b-11eb-84ba-5faceb57dbe8.mov
TESTING INSTRUCTIONS
It's difficult to write any kind of tests for the ace editor when looking at value because it always renders "xxx". Something we can try to figure out in the future. In the meantime I added more tests around editing the other metrics.
Manual testing: click to edit a dataset, go to metrics, and try to add some test in the markdown field. It should show the text.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

/testenv up

🏷 2021.23


How does one go about finding out the ID for addons?

Firstly, thanks for sharing your work.
I'm trying to workout how to hide the context menu items for 1Password, Cookie AutoDelete and Zotero.
How does one go about finding this information out? Is it easy to explain? If it is maybe a description could be included in the Readme?
Best,

Hey,
You need to

Open the browser tools (ctrl + shift + alt + i).
Accept connection.
In the three dots menu, choose to not auto-close popups (needs a checkmark).
Go to the browser and open the context menu you want.
Arrange the windows so you can see the context menu and the browser tools window at the same time.
In browser tools window, go to the inspector tab and on top left there is an icon showing a window with a cursor ("choose element from site"). click that.
Now hover or click the contextmenu item you want to inspect.
The html node will be highlighted in the browser tools window. You just need to read / copy it's id attribute.

Be aware that some extensions have their UUID in that id. That means it's different for every profile. So something like copying to another PC might not work. But don't worry, you'll see immediately if it is a wild id with gibberish or just something like zotero-search-doi
I don't know of any instructions out there for doing that. It's "just using the devtools / browsertools". So it's a mixture of web developer basics, trial and error and mozilla's docs.
Hope I could help

Thank you very much for the detailed breakdown.
I managed very briefly to hide the items I wanted to. Then some of them came back. Checking again the IDs had changed. For example, the last number of zotero's ID, "zotero_chnm_gmu_edu-menuitem-69", changed. Then it changed again after I adjusted my CSS.
Is their something obviously wrong here? Or, is there an alternative approach to using the ID?
Thanks again for your help so far. I'm not very good at this.

Nope, that is because extension devs do what they want :)
Apparently zotero changes id every time you restart the browser.
If only the end changes, try using a different selector like menuitem[id^="zotero_chnm_gmu_edu-menuitem-"] instead of #zotero_chnm_gmu_edu-menuitem-69. So you will target only the beginning of the id.

I hope I'm not speaking too soon, but after some detective work I think have it.
menu[label="Zotero Connector"] {
display: none !important;
}
Look at the inspector, I eventually realised that what I am hiding is not a menu item itself, but leads to a sub-menu.
It similarly worked for the other addons I was trying to block.
Thank you for pointing me in the right direction!

Ah yes, I forgot you can just target the label. This is usually not possible for me as the labels change with the language chosen, thus wouldn't work for everybody.
Glad that it works for you now!


PowerShell namespace matching is strange when namespace contains square brackets

Input:
function foo {
    [string[]]$thing
}

I would expect:
[string[]] - Namespace

Another example is:
[OutputType([System.Collections.Generic.List[int]])] => [OutputType([System.Collections.Generic.List[int]

Here is a regex that matches equal []'s: \[([^[\]]|(?R))*\]
But I read at https://github.com/PrismJS/prism/blob/7035d4ef55c219e4ebcc5f91507f9c9be589a68a/components/prism-powershell.js#L29 something about not matching array indices

Hi! Thanks for reporting. The example regexp you provide is not a feature supported by regexps in JS.
But we can surely add support for one level of nested brackets to fix this issue.

Could two levels be added to support attributes with generic lists, i.e. [OutputType([System.Collections.Generic.List[int]])]
Thanks for this great project


Add publish-release-shortcut feature

LINKED ISSUES:
Closes #2696

TEST URLS:
sindresorhus/refined-github/releases/new

SCREENSHOT:
None

Note pageDetect.isReleasesOrTags is needed since if there is an error publishing the release it does not stay on the new page

In order for updating to be supported the isReleasesOrTags regex needs to be updated to support https://github.com/yakov116/TestR/releases/edit/111

Actually this isn't a good idea as is. Normally you can submit forms when a field is focused, but this shortcut works anywhere on the page

You only want it to work in the text area?

You only want it to work in the text area?

Pretty much, yeah. enter already works inside other fields, like the "release title" field

Make sure you look for this before reimplementing it with delegate 😅

I think GitHub has a specific attribute for fields to enable shortcuts in them.

Make sure you look for this before reimplementing it with delegate 😅

I think GitHub has a specific attribute for fields to enable shortcuts in them.

Thanks for the tip

I think GitHub has a specific attribute for fields to enable shortcuts in them.

In order for updating an existing release to be supported the isReleasesOrTags regex needs to be updated to support https://github.com/yakov116/TestR/releases/edit/111

I need help with this one

Can we just combine this feature/fix to the create-release-shortcut

Can we just combine this feature/fix to the create-release-shortcut

Yes please!

I need help with this one

The edit page needs its own detection, it’s not a regular “tag or release” page. Feel free to add it to GitHub url detection

Yes please!

Done

The edit page needs its own detection, it’s not a regular “tag or release” page. Feel free to add it to GitHub url detection

I can't do it until later today. Is the below good?
export const isEditingRelease= (url: URL | Location = location): boolean => getRepoPath(url).startsWith('releases/edit');
collect.set('isEditingRelease', [
	'https://github.com/sindresorhus/refined-github/releases/edit/11',
]);

Tested! 🚀


Can we detect base distribution with this module ?

I was wondering is there any way to detect base distribution of distro ?
I found base() method in issues but it seems has been removed #36
If we can't do it now, why?

Hi @0ne-zero, if your distribution supports it, you can use distro.like method which is based on OS-RELEASE(5) ID_LIKE entry.
It may contain space-separated identifiers, specified by distribution maintainers.
Please tell us if this could help you.

Thank you, It was everything that i need.


ci: pin node to version 11.x

Description:
Pin node to version 11 on ci environments.
Motivation and Context:
Travis just updated node to v12, and it's not building properly (eg https://travis-ci.com/LN-Zap/zap-desktop/jobs/195058149)

Coverage remained the same at 19.395% when pulling b28e17c7f5cc4ee889b60c1bd4d7db71b4ca853d on mrfelton:ci/pin-node-to-v11 into 54e1cbe0eb84dd576385010e8637a294fbdf9cf0 on LN-Zap:master.


Integral sign cropped in Cauchy's formula MathML Chrome 400% zoom

Google Chrome 19.0.1084.46 m running on Windows 7
http://www.mathjax.org/demos/mathml-samples/
Zoom the browser to 400% and view Cauchy's integral formula (note: slightly larger or smaller zooms look OK)
The Integral sign is clipped off on the right, and the f is also missing a bit on the right

Seems to have been fixed in WebKit as well.


Feature request: map taps listener and marker drag location update

The plugin should listen to map clicks and send as a parameter to the listener the location tapped we can place a pin/marker there if wanted.
Also, the marker can be dragged but it doesn't update it's new location to the current placed one.

There is some estimated date to has this done?

still waiting for these feature, any news ?

I need this feature to

++

I need it too i m in tight production schedule

@nandymandy1
Using "add reaction" on the initial comment would increase priority while +1 comments are rather pointless and cause lots of people to get notified for no reason.
To get notified yourself use the [Subscribe] button to the top right instead.

PR had just updated the Google maps flutter library but still unable to figure out how to use the onTap listener to place marker which is draggable.

This functionality was introduced in https://github.com/flutter/plugins/pull/985. Is there anything in this issue that hasn't been addressed?

Hi @AmitToren
The "Map tap" feature is now implemented.

Also, the marker can be dragged but it doesn't update it's new location to the current placed one.

The Marker class has now a onDragEnd callback which provides you the latest position to where the marker was dragged, does that solves your issue?
Also that would be great to track the last one on a different issue as we don't track more that two problems in the same issue.

Yes, this does seem to solve the issue. I think the onDragEnd callback would be sufficient enough for solving the second issue. Appreciate it!

Hi @AmitToren
Given your last message I feel safe to close this issue.
Thank you


Detecting breathing.

e.g. with stretch sensor around the chest or microphone listening for breathing.

This may not actually require any classification.


TypeScript compiler seems to be caught in infinite loop

I created a repo to demonstrate the issue:
https://github.com/couzic/typescript-compiler-issue
(just run npm install and tsc)
I tried to make it as simple as possible, without flamboyant success...
Expected behavior:
A compiler error
Actual behavior:
The compiler seems to caught in an infinite loop, it does not return and one of the CPU cores is saturated.
Interestingly, when fixing the type error (as commented in line 26), the compiler works as expected.

I am facing the same problem in big project I have been working on for months, and worked perfectly until last week.
Is there a way to see which file in the project tsc is working in real time to get some hints of where to look at ?

@couzic Your example doesn't hang using our 2.7 release (or master branch from github), so we've likely fixed it (the root cause was probably the same as a different hang bug).
@olivr70 does your issue still occur in 2.7? If so, can you share a reproduction?

@weswigham My problem is fixed, as far as I'm concerned you can close this issue.
Thanks !


RuntimeError: weight should have at least three dimensions

Recently I tried to fine-tune the llava-v1.5-7b model.
But when I triggered the LORA task fine-tuning, I got the following error:
Traceback (most recent call last):
  File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/home/noman/.vscode-server/extensions/ms-python.debugpy-2024.0.0-linux-x64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
    exec(code, run_globals)
  File "./llava/train/train_mem.py", line 4, in <module>
    train(attn_implementation="flash_attention_2")
  File "/noman-workspace/LLaVA/llava/train/train.py", line 970, in train
    trainer.train()
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/trainer.py", line 1539, in train
    return inner_training_loop(
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/trainer.py", line 1869, in _inner_training_loop
    tr_loss_step = self.training_step(model, inputs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/trainer.py", line 2772, in training_step
    loss = self.compute_loss(model, inputs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/trainer.py", line 2795, in compute_loss
    outputs = model(**inputs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/accelerate/utils/operations.py", line 581, in forward
    return model_forward(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/accelerate/utils/operations.py", line 569, in __call__
    return convert_to_fp32(self.model_forward(*args, **kwargs))
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/amp/autocast_mode.py", line 16, in decorate_autocast
    return func(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/peft/peft_model.py", line 922, in forward
    return self.base_model(
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/noman-workspace/LLaVA/llava/model/language_model/llava_llama.py", line 81, in forward
    ) = self.prepare_inputs_labels_for_multimodal(
  File "/noman-workspace/LLaVA/llava/model/llava_arch.py", line 202, in prepare_inputs_labels_for_multimodal
    image_features = self.encode_images(images)
  File "/noman-workspace/LLaVA/llava/model/llava_arch.py", line 141, in encode_images
    image_features = self.get_model().get_vision_tower()(images)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/noman-workspace/LLaVA/llava/model/multimodal_encoder/clip_encoder.py", line 61, in forward
    image_forward_outs = self.vision_tower(images.to(device=self.device, dtype=self.dtype), output_hidden_states=True)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 917, in forward
    return self.vision_model(
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 841, in forward
    hidden_states = self.embeddings(pixel_values)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 182, in forward
    patch_embeds = self.patch_embedding(pixel_values.to(dtype=target_dtype))  # shape = [*, width, grid, grid]
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 460, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/opt/conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 456, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: weight should have at least three dimensions

Looking forward, to the suggestions.

facing the same problem, any solutions?


fix(slideshow-controls): put a setState func in a useEffect

General summary
Fix a bug causing an infinite render loop.

Screenshots

Check list

[ ] (if has style) Add need: review-integration label
[ ] (if has textual documentation) Add need: review-doc label
[x] (if has code) Add need: review-frontend label
[ ] (if has react) Check through the react dev check list
[ ] (if fix or feature) Add need: test label

Check out the contribution guide for general guidelines for submissions to the design system.

Duplicate : Has been merged into master through another PR


chore(*) import aws lambda

As a result of an effort to improve external plugins maintainership, we are importing currently-bundled plugins into Kong's main tree. The aws-lambda plugin used to live in [1].
Additionally to importing plugin contents, this PR also preserves the Git history. History was amended to correct commit scopes - including aws-lambda in commit messages scope.
~Note: test failure observed here is the same as observed in current master.~ (already fixed)
[1] https://github.com/Kong/kong-plugin-aws-lambda/

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 8 committers have signed the CLA.:white_check_mark: p0pr0ck5:white_check_mark: murillopaula:x: MosAmokhtari:x: chasingmaxwell:x: verisk-dhaskin:x: jonminter:x: aboudreault:x: ezrapagelYou have signed the CLA already but the status is still pending? Let us recheck it.

@jonminter @MosAmokhtari @chasingmaxwell  @ezrapagel @verisk-dhaskin My apologies to bug you all, but would you mind re-signing the CLA, so we can incorporate this plugin into Kong's tree? It was already signed in the aws-lambda repository, but as it's a separate repo, it doesn't show up here.

Can we please not merge this pending internal discussion?
@Tieske just as a heads up, the planned merge is continuing. I'm available for you on ensuring Field/CX is best equipped to handle the change.

@PaulFischer-Kong If we're going ahead with this, can we then at least NOT install them as part of Kong, but keep the separate rockspecs and use those to install/uninstall the plugins. Still gives all the benefits of mono-repo, but also allows independent usage.

Hey @MosAmokhtari, @jonminter, @verisk-dhaskin, sorry to bug again - could you sign the CLA so we can proceed with this PR?

@gszr Apologies for the long delay sorry for holding this up, CLA has been signed.

@gszr Apologies for the long delay sorry for holding this up, CLA has been signed.

Not a problem, @jonminter! Thank you for signing it.


updated logo and decimals for kong token

I have updated logo and decimals for the "Kong" token here:
https://github.com/solana-labs/token-list/pull/12364
and I would ask if you could manually approve the changes.
Here's the original PR to add it: #7846

merged, thanks for linking the original


EPL Match prediction using web scraping & machine learning.

Utilized Python's BeautifulSoup library for web scraping fbref.com to gather match statistics and EPL teamperformance data.
Cleaned and preprocessed the collected data to ensure consistency and accuracy for further analysis.
Engineered relevant features from the collected data to enhance model performance.
Developed a machine learning model using Python's pandas and scikit-learn libraries to predict match outcomes based on historical data.

The issue has been assigned.
Do follow the project guidelines for PR.
Also, try to deploy the ML model.

please add a level to the issue


Switch to Go 1.19 baseline

Upgrade Go to 1.19 from 1.18
Lack access to TeamCity, feel free to take over the PR and push commits

Hi, @sp71, thanks for taking the time to open a PR for the Go driver!
Unfortunately, we don't bump Go versions outside of a major release to avoid breaking changes in client code. The next major bump for us will be the 6.0 driver. We'll bump the Go version to the latest available at that time.


make a 1.0 payout form

Closes #3743. Currently this is stubbed out with an "email us" (https://github.com/gratipay/gratipay.com/issues/3539#issuecomment-136907133).

We have 148 ~users with a status_of_1_0_balance of resolved. Anyone who never received money on Gratipay 1.0 should also be marked as resolved.

We'll need to add a pending-review status to the status_of_1_0_balance type.

I think what we want to do is replace status_of_1_0_balance with a 1_0_balance column. The question is, how do we populate that column?

*ahem*
s/1_0_balance/balance_1_0/g
Python identifiers can't begin with a digit. :)

We'll still need the status* field to track the payout process per-user.

Once we have balance_1_0 we can set status_of_1_0_payout to resolved where balance_1_0 = 0.

balance_1_0 == 0

balance > 0 and status == 'unresolved'

balance == 0 and status == 'pending-payout'

balance > 0 and status == 'pending-approval'

balance > 0 and status == 'rejected'

Alright, so what's the definition of a 1.0 balance? Who has a 1.0 balance and who doesn't?

Anyone who received money on Gratipay before 153 and hasn't withdrawn it has a 1.0 balance. Note that it's possible to have a balance and not have a 1.0 balance, because we charged in advance. I personally have $5.94 on my Gratipay account right now because of minimum payin, but that's not a 1.0 balance.

We do have 35 transfers post-Gratipocalypse, mostly from final-gifts but two are take-overs.

We closed the final-gift loophole in #3454.

We have 2,808 ~users that received money under Gratipay 1.0:
=> select count(*) from (select distinct on (tippee) tippee from transfers where "timestamp" < '2015-05-07'::timestamptz) as _;
┌───────┐
│ count │
├───────┤
│  2808 │
└───────┘
(1 row)

Those 2,808 may have given their money to someone else on Gratipay. That's what I did: I had a balance of $149.46 on the day of the Gratipocalypse, which I gave to new Teams over the course of the next eight weeks. In the ninth week, we started charging my card to cover my payments.

I suppose that this has been another loophole: giving one's balance away to new Teams. Strictly speaking, we shouldn't have allowed non-upgraded users to use their balance to fund 2.0 payments. But that's water under the bridge: we're not going to pull the money back that we've paid out to Teams.

Are we going to continue allowing this loophole? How would we close it?

Once we have balance_1_0 we could subtract that from balance, either in participants or just during payday.

Alright, so we should be able to compute balance_1_0 by iterating backwards through payments and transfers for the 2,808 1.0 tippees.

2,259 of the 1.0 tippees currently have a balance.

We have 4,721 participants with a balance, which I guess means that 1,913 have a balance because of charging in advance?

I like the idea of decrementing participants.balance by the amount of balance_1_0.

We have 219 participants with a 1.0 balance who are also in the payments table.

I'm gonna work on computing 1.0 balances in a separate PR and then circle back here: #3747.

@stevepiercy How do the above screenshots look, re: https://github.com/gratipay/gratipay.com/issues/3539#issuecomment-137004127?

Decided at https://github.com/gratipay/gratipay.com/pull/3747#issuecomment-137625962 to write this form using participants.balance, without worrying too much about escrow due to minimum payins. We're going to try to refund that money earlier than October 8 as part of #3675.
Escrow due to minimum payouts is not a problem here because anyone with escrow due to minimum payouts will already be owner of a Team.

@whit537 LGTM :shipit:

Cool, thanks @stevepiercy. :-)

[ ] deal with the < 50¢ case
[ ] email notifications

=> select status_of_1_0_balance, count(*) from participants group by status_of_1_0_balance order by count desc;
┌───────────────────────┬────────┐
│ status_of_1_0_balance │ count  │
├───────────────────────┼────────┤
│ unresolved            │ 112808 │
│ resolved              │    154 │
│ pending-payout        │      5 │
└───────────────────────┴────────┘
(3 rows)

Local:
=# select status_of_1_0_payout, count(*) from participants
group by status_of_1_0_payout order by count desc;
┌──────────────────────┬────────┐
│ status_of_1_0_payout │ count  │
├──────────────────────┼────────┤
│ completed            │ 110792 │
│ pending-application  │   2164 │
│ pending-payout       │      9 │
└──────────────────────┴────────┘
(3 rows)

Looks like $127,590.64 for the 2,164 that are pending-application.

Pooped out, sorry. :-(

Alright, so this PR is important because this is where we're defining 1.0 money, which will be the basis for the refund we do on October 8 (#3539).
To date we've been assuming that all balances are entirely 1.0 balances. We've been paying people out using a status_of_1_0_balance field in the database to keep track: unresolved, pending-payout, and resolved. With this PR we're recognizing that the situation is more complex: not all balances are 1.0 balances, because of minimum payins charged in advance. ... should we land charging in arrears first, then? I thought I'd considered this, but I'm not finding "arrears" on this PR ...

Charging in arrears is https://github.com/gratipay/gratipay.com/pull/3675.

Rebased on master.

Double-checked the rebase in https://github.com/gratipay/gratipay.com/tree/c161aadc93e9abcbf1850efd42a4a8f125c300ae (1p branch) because it looked weird. Turns out a rebase when there's a merge commit inlines all of the merged commits into the rebase.

write a test for the trigger

Inspired by https://github.com/gratipay/gratipay.com/pull/3675#commitcomment-13097620, I short-circuited the trigger function and ran the test suite: it passed. Test needed!

Okay! We need some email notifications and then I think we're good here.

What emails do we need to send? Every time the status changes?

I think we just need notifications for rejected and pending-payout. PayPal sends a notification for payouts (cf. #3526)

Last thing on my plate is to require a PayPal route as part of all this. After that I think I'm ready for review.

Alright, ready for review.

So the plan is to deploy this code, and then run sql/1.0/all.sql to set status_of_1_0_payout properly.

Alright, let's do this.


Longhorn Network Failure and Recovery Scenrios

I have the following setup,

4 nodes running RancherOS,(1.5.5)
1 node for rancher ui (2.3.4)
3 nodes as worker,etc,controlpane, these are also running longhorn(0.7.0).

Longhorn is installed via the Rancher Catalag inside a Cluster in Project context.
Longhorn configuration is pretty much default, besides i use only 2 Replicas for Volumes and i set Replica Soft Anti-Affinity to false because i do not want to put one node under heavly load because of replication.
Tried 2 Workloads
one is a statefulset, with 3 replicas , each has a pvc in longhorn via storage template.
After the Workload is running, 3 Volumes are visible in the Lonhorn UI.
another is a deployment with one replica wich uses a longhorn pvc.
Now i simulate a Network Failure with disconnecting the network Cable, on the node where no Replicas are running.
09:17 disconnect
09:20 node in loghorn-ui down, rancherui pod state unkown
[pvc-f962876c-dfc8-42f5-a436-9fd7c8a74001-r-720ed431] time="2020-01-23T09:19:43Z" level=error msg="Failed to read: read tcp <IP_ADDRESS>:10001-><IP_ADDRESS>:48654: read: connection timed out"
[pvc-61292ec2-963d-4d82-ac64-093925639bae-r-13a45f47] time="2020-01-23T09:19:43Z" level=error msg="Failed to read: read tcp <IP_ADDRESS>:10016-><IP_ADDRESS>:42182: read: connection timed out"
The volume itself is shown as healthy in the Longhorn UI.
09:34 reconnect the node
After i reconnect the node the volume health changes to faulted, the state changes to detached.
Node is still shown as Down in the Longhorn-UI
The pod is stuck in the status waiting, ContainerCreating
FailedMount	Unable to attach or mount volumes: unmounted volumes=[vol1], unattached volumes=[vol1 default-token-pjrvb]: timed out waiting for the condition	a few seconds ago
another statueful set with one replica and a longhorn mount looks similar
FailedAttachVolume     AttachVolume.Attach failed for volume "pvc-f962876c-dfc8-42f5-a436-9fd7c8a74001" : rpc error: code = Internal desc = Action [attach] not available on [&{pvc-f962876c-dfc8-42f5-a436-9fd7c8a74001 volume map[self:http://longhorn-backend:9500/v1/volumes/pvc-f962876c-dfc8-42f5-a436-9fd7c8a74001] map[salvage:http://longhorn-backend:9500/v1/volumes/pvc-f962876c-dfc8-42f5-a436-9fd7c8a74001?action=salvage]}]
FailedMount   Unable to attach or mount volumes: unmounted volumes=[blah], unattached volumes=[blah default-token-pjrvb]: timed out waiting for the condition
from the longhorn instance managers:
instanz_manager_log.txt
The volume of the pod whcih was running on the disconnected node ends up in failed state when the node is reconnected.
I had to scale down all relicas of the stateful set, salvage the replicas and then scale the replicas up again to be able to mouint the volume again.
I read
https://github.com/longhorn/longhorn/blob/master/docs/recover-volume.md
and some issues
#851
#375
and other issues linked from those.
Then i added livenedd/readiness probe to the pods and started another test.
11:27 disconnect
12:05 reconnect
all the pods came back online, but the checks did not solve the issue, i still have to manually salvage the failed replicas for the pods to be able to mount the volume again.
So what would be the procedure to correctly handle such a case?

In the upcoming v0.8.0, we will include an auto-salvage feature to help users to deal with network issues caused faulted volume. https://github.com/longhorn/longhorn/issues/1046

Thank you for the information, i will try the fix as soon as 0.8.0 is available.

@j4y4r Let me know if v0.8.0 helps.

@yasker tried with v0.8.0, one workload, one volume(pvc)
network-disconnect-13:44:55
network-reconnect-13:55:19
volume changed to degraded state, the replica on the reconnected node went to failed, after a new one has been created, the volume went into healthy state.
a simple bash script wrote to the pvc several times per second the whole time and it still did after reconnecting.
i could not reproduce the issue, seems fixed!
Thank you :+1:


[ingester] support multiple OTLP exporters

This PR is for:

Server

I'm having a few suggestion in related issue: https://github.com/deepflowio/deepflow/issues/4157#issuecomment-1709846018 , and claim that it won't solve the requirement that sending data to different platform because they need different kinds of data.


Comment:Step-Basic-Db-connector

I'm trying to go through the basics. In chapter 'a database connector' it says:

users is the only service we need and it's a database table located at examples/step/data/users.db.

With the actual version the path data/ does not exist.

Ah it exists; but not as I'd expected it under /examples/step/, but under /examples/step/01/examples/step/data/ - Maybe that should be more clear?

Wouldn't that be /examples/step/01/data/ ?

I wasn't able to find the users.db file. The /examples/step/01/data/users.db filepath doesn't exist anymore.

NeDB creates files when it first opens them. Were you looking for the file before or after running an example? Basically, at which step in the guide did you check the file's existance?


Fix naming form default when no_opinion

addresses #2181

Edit Proposed Name is working fine.
But Propose Another Name is blowing up. Maybe I've messed up the state of VSCode. Does it work for you?
I get:
Started GET "/observations/550522/namings/new?context=namings_table&q=1qEJ0" for ::1 at 2024-06-18 13:43:53 -0700
Processing by Observations::NamingsController#new as TURBO_STREAM
  Parameters: {"context"=>"namings_table", "q"=>"1qEJ0", "observation_id"=>"550522"}
  User Load (0.4ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468 LIMIT 1
  ↳ app/models/abstract_model.rb:154:in `safe_find'
user=4468 robot=N ip=::1
  TRANSACTION (0.1ms)  BEGIN
  ↳ app/controllers/application_controller.rb:418:in `track_last_time_user_made_a_request'
  User Update (6.0ms)  UPDATE `users` SET `users`.`updated_at` = '2024-06-18 20:43:53', `users`.`last_activity` = '2024-06-18 20:43:53' WHERE `users`.`id` = 4468
  ↳ app/controllers/application_controller.rb:418:in `track_last_time_user_made_a_request'
  TRANSACTION (0.7ms)  COMMIT
  ↳ app/controllers/application_controller.rb:418:in `track_last_time_user_made_a_request'
[I18n] loading locale: en from @user
  Language Load (0.2ms)  SELECT `languages`.* FROM `languages` WHERE `languages`.`locale` = 'en' LIMIT 1
  ↳ app/controllers/application_controller.rb:551:in `set_locale'
[I18n] Locale set to en
  CACHE Language Load (0.0ms)  SELECT `languages`.* FROM `languages` WHERE `languages`.`locale` = 'en' LIMIT 1
  ↳ app/controllers/application_controller.rb:256:in `track_translations'
  UserGroup Load (32.5ms)  SELECT `user_groups`.* FROM `user_groups` INNER JOIN `user_group_users` ON `user_groups`.`id` = `user_group_users`.`user_group_id` WHERE `user_group_users`.`user_id` = 4468
  ↳ app/models/user.rb:570:in `in_group?'
  User Load (0.4ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468 LIMIT 1
  ↳ app/models/abstract_model.rb:154:in `safe_find'
  CACHE User Load (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468 LIMIT 1
  ↳ app/models/abstract_model.rb:154:in `safe_find'
  Observation Load (0.4ms)  SELECT `observations`.* FROM `observations` WHERE `observations`.`id` = 550522 LIMIT 1
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ObservationCollectionNumber Load (2.7ms)  SELECT `observation_collection_numbers`.* FROM `observation_collection_numbers` WHERE `observation_collection_numbers`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  FieldSlip Load (0.2ms)  SELECT `field_slips`.* FROM `field_slips` WHERE `field_slips`.`observation_id` = 550522 ORDER BY `field_slips`.`code` ASC
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Comment Load (0.3ms)  SELECT `comments`.* FROM `comments` WHERE (`comments`.`target_type` = 'Observation') AND (`comments`.`target_id` = 550522)
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  User Load (0.2ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ExternalLink Load (0.7ms)  SELECT `external_links`.* FROM `external_links` WHERE `external_links`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ObservationHerbariumRecord Load (7.8ms)  SELECT `observation_herbarium_records`.* FROM `observation_herbarium_records` WHERE `observation_herbarium_records`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ObservationImage Load (0.2ms)  SELECT `observation_images`.* FROM `observation_images` WHERE `observation_images`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Image Load (0.2ms)  SELECT `images`.* FROM `images` WHERE `images`.`id` IN (1674337, 1674338, 1674339, 1674340, 1674341)
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ImageVote Load (0.2ms)  SELECT `image_votes`.* FROM `image_votes` WHERE `image_votes`.`image_id` IN (1674337, 1674338, 1674339, 1674340, 1674341)
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  License Load (0.1ms)  SELECT `licenses`.* FROM `licenses` WHERE `licenses`.`id` = 6
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ProjectImage Load (13.6ms)  SELECT `project_images`.* FROM `project_images` WHERE `project_images`.`image_id` IN (1674337, 1674338, 1674339, 1674340, 1674341)
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  CACHE User Load (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Interest Load (2.3ms)  SELECT `interests`.* FROM `interests` WHERE (`interests`.`target_type` = 'Observation') AND (`interests`.`target_id` = 550522)
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Name Load (0.5ms)  SELECT `names`.* FROM `names` WHERE `names`.`id` = 1
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Synonym Load (0.1ms)  SELECT `synonyms`.* FROM `synonyms` WHERE `synonyms`.`id` = 9996
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Name Load (0.2ms)  SELECT `names`.* FROM `names` WHERE `names`.`synonym_id` = 9996
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Naming Load (0.2ms)  SELECT `namings`.* FROM `namings` WHERE `namings`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Name Load (0.1ms)  SELECT `names`.* FROM `names` WHERE `names`.`id` = 109604
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Vote Load (0.3ms)  SELECT `votes`.* FROM `votes` WHERE `votes`.`naming_id` = 757264
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  CACHE User Load (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  ProjectObservation Load (4.3ms)  SELECT `project_observations`.* FROM `project_observations` WHERE `project_observations`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  RssLog Load (0.1ms)  SELECT `rss_logs`.* FROM `rss_logs` WHERE `rss_logs`.`id` = 665541
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Sequence Load (5.3ms)  SELECT `sequences`.* FROM `sequences` WHERE `sequences`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  SpeciesListObservation Load (33.0ms)  SELECT `species_list_observations`.* FROM `species_list_observations` WHERE `species_list_observations`.`observation_id` = 550522
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Image Load (0.3ms)  SELECT `images`.* FROM `images` WHERE `images`.`id` = 1674337
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  CACHE User Load (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 4468
  ↳ app/controllers/observations/namings_controller.rb:110:in `init_ivars'
  Rendered controllers/observations/namings/_fields.erb (Duration: 2.3ms | Allocations: 2448)
  Rendered controllers/observations/namings/_form.erb (Duration: 2.7ms | Allocations: 2718)
  Rendered controllers/shared/_modal_form.erb (Duration: 3.0ms | Allocations: 2979)
Completed 500 Internal Server Error in 210ms (ActiveRecord: 113.4ms | Allocations: 32019)

ActionView::Template::Error (undefined method `nonzero?' for an instance of Vote):
    14:   parent_deprecated: @parent_deprecated,
    15:   names: @names
    16: }
    17: menu = unless @vote&.nonzero?
    18:          Vote.opinion_menu
    19:        else
    20:          Vote.confidence_menu

app/views/controllers/observations/namings/_fields.erb:17
app/views/controllers/observations/namings/_form.erb:39
app/views/controllers/observations/namings/_form.erb:35
app/views/controllers/shared/_modal_form.erb:56
app/views/controllers/shared/_modal_form.erb:53
app/views/controllers/shared/_modal_form.erb:41
app/views/controllers/shared/_modal_form.erb:40
app/views/controllers/shared/_modal_form.erb:33
app/controllers/observations/namings_controller.rb:131:in `render_modal_naming_form'
app/controllers/observations/namings_controller.rb:27:in `block (2 levels) in new'
app/controllers/observations/namings_controller.rb:26:in `new'
app/controllers/application_controller.rb:226:in `catch_errors_and_log_request_stats'

Thanks for tackling this.
The fix to Edit Proposed Name works fine.
But other stuff blows up. See https://github.com/MushroomObserver/mushroom-observer/actions/runs/9571501101/job/26388750044?pr=2182

Thanks @JoeCohen - i was going too fast, testing the wrong value for nonzero?.
It needs to be the @vote.value, not just the @vote instance.

coverage: 94.45% (-0.004%) from 94.454%
when pulling cd4e144c65f2e3d6e98e0ce9f6a86664e57c7ae6 on nimmo-fix-opinion-default
into b42b7a7457856d910019f10b17d22298abed812d on main.


fix visual defect in ff for empty tables

There is a defect in underlining Carbon component that causes table cells to grow to match  size of table with explicitly set height in Firefox browser. See our storybook for table card empty table story.

Change List (commits, features, bugs, etc)
added styles to empty table component for now as it seems to only happen when there is no data for the table. May be worth applying these styles to tables as a whole. Will be pushing up to the carbon repo as well.
Related Issues

Closes https://github.ibm.com/wiotp/monitoring-dashboard/issues/422

Acceptance Test (how to verify the PR)

tests here

:tada: This PR is included in version 1.98.5 :tada:
The release is available on:

npm package (@release-1.x dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.14.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Problem login in after upgrade

I get this error when trying to setup the integration.
2021-05-27 06:11:01 DEBUG (SyncWorker_1) [custom_components.kia_uvo.KiaUvoApi] kia_uvo - Get Device ID response {'retCode': 'F', 'resCode': '4017', 'resMsg': 'Invalid request value - Invalid Application Id.', 'msgId': 'ce1914c2-ed09-42de-9d8f-7124c2866856'}

2021-05-27 06:11:01 ERROR (MainThread) [custom_components.kia_uvo.config_flow] kia_uvo Exception in kia_uvo login : string indices must be integers

This worked great before update.
I tried removing the integration and then adding it again and still get this error when I try to login.

Apparently Kia bad updated some values while connecting their servers, i just removed and added back integration and faced same issue. So it is not related to update. I will check and fix it asap.

Same here, my errors started 03:29 this morning ( a query 02:58 went through fine):
2021-05-27 03:29:24 DEBUG (SyncWorker_3) [custom_components.kia_uvo.KiaUvoApi] kia_uvo - get_cached_vehicle_status response {'retCode': 'F', 'resCode': '4017', 'resMsg': 'Invalid request value - Invalid

Same problem, kia has definitely changed something because it gives me login problems even with the Tronity service...

Kia has hardcoded client id in their app and they are using this for authentication purposes. I had noticed this weird behavior while reverse engineering the calls between APP and servers but did not bother a lot on it.
I will try to fetch the new values and update the codebase with it, hopefully this would solve.

updates;

my kia app in my phone which has not been updated recently also failed to work.
i had sniffed the new traffic found out STAMP is updated
testing locally now, will update the code soon

should be fixed with changes, please get latest changes, restart your HA and let me know

it works now, thanks!

on the other hand, i do not have a long term solution in place, this can break any time when Kia decides to update the token in the app.


Is this library still being maintained?

This is a (check one box):

[ ] Bug Report
[ ] Feature Request
[x] General Query

General Query
Hi @christopherthielen just wanted to know if this library is still being maintained? I am asking because I feel this is the best library for angular routing and given the last update the library it seems like its no longer being maintained.
I feel angular router is not at par with this library especially includes and other functions are very useful but not there in Angular router

This repository is ui-roiuter for AngularJS 1.x (not Angular) and no, I am not actively maintaining this library any longer.  The version for Angular (https://github.com/ui-router/angular) gets occasional updates, but hasn't received any new features in quite a long time.


Ingestion sampling caveat

[Enter feedback here]
Please improve the note under ingestion sampling.
"Important
If adaptive or fixed rate sampling methods are in operation, ingestion sampling is disabled."
It should mention that if data is excluded at the SDK level it will still be sampled upon ingestion.
"If adaptive or fixed rate sampling methods are in operation, ingestion sampling is disabled. If you exclude a telemetry type at the SDK level it will be sampled on ingestion by the rate set in the portal."
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2f4c906d-7abe-eab7-331a-120230344583
Version Independent ID: ab24ade5-5e4c-b430-c3f8-2a00073e9e81
Content: Telemetry sampling in Azure Application Insights - Azure Monitor
Content Source: articles/azure-monitor/app/sampling.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @lgayhardt
Microsoft Alias: lagayhar

@casocha Thanks for the feedback!
Assigning content owner @lgayhardt for visibility, review and document enhancement consideration if applicable.

Update to address this is merged internally and will go-live later today.

#please-close


indexed_gzip.indexed_gzip.CrcError: CRC/size validation failed - the GZIP data might be corrupt

Source: https://neurostars.org/t/fmriprep-errors-recon-report-and-mri-coreg/20048
Node: fmriprep_wf.single_subject_J1121053_wf.func_preproc_task_motor_run_3_wf.bold_reg_wf.bbreg_wf.mri_coreg
Working directory: /tmp/work/fmriprep_wf/single_subject_J1121053_wf/func_preproc_task_motor_run_3_wf/bold_reg_wf/bbreg_wf/mri_coreg

Node inputs:

args = <undefined>
brute_force_limit = <undefined>
brute_force_samples = <undefined>
compress_report = auto
conform_reference = <undefined>
dof = 6
environ = {'SUBJECTS_DIR': '/opt/freesurfer/subjects'}
ftol = 0.0001
initial_rotation = <undefined>
initial_scale = <undefined>
initial_shear = <undefined>
initial_translation = <undefined>
linmintol = 0.01
max_iters = <undefined>
no_brute_force = <undefined>
no_coord_dithering = <undefined>
no_cras0 = <undefined>
no_intensity_dithering = <undefined>
no_smooth = <undefined>
num_threads = 3
out_lta_file = True
out_params_file = <undefined>
out_reg_file = <undefined>
out_report = report.svg
ref_fwhm = <undefined>
reference_file = <undefined>
reference_mask = <undefined>
saturation_threshold = <undefined>
sep = [4]
source_file = <undefined>
source_mask = <undefined>
source_oob = <undefined>
subject_id = <undefined>
subjects_dir = /opt/freesurfer/subjects

Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 516, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 635, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 741, in _run_command
    result = self._interface.run(cwd=outdir)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/freesurfer/base.py", line 149, in run
    return super(FSCommand, self).run(**inputs)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 429, in run
    runtime = self._post_run_hook(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/freesurfer.py", line 230, in _post_run_hook
    runtime = super(TruncateLTA, self)._post_run_hook(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/registration.py", line 331, in _post_run_hook
    return super(MRICoregRPT, self)._post_run_hook(runtime)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/mixins/reporting.py", line 50, in _post_run_hook
    self._generate_report()
  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/interfaces/report_base.py", line 47, in _generate_report
    contour_nii = load_img(self._contour) if self._contour is not None else None
  File "/usr/local/miniconda/lib/python3.7/site-packages/nilearn/image/image.py", line 1063, in load_img
    return check_niimg(img, wildcards=wildcards, dtype=dtype)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nilearn/_utils/niimg_conversions.py", line 263, in check_niimg
    niimg = load_niimg(niimg, dtype=dtype)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nilearn/_utils/niimg.py", line 121, in load_niimg
    niimg = nibabel.load(niimg)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/loadsave.py", line 52, in load
    img = image_klass.from_filename(filename, **kwargs)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/dataobj_images.py", line 489, in from_filename
    keep_file_open=keep_file_open)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/freesurfer/mghformat.py", line 575, in from_file_map
    header = klass.header_class.from_fileobj(mghf)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/freesurfer/mghformat.py", line 170, in from_fileobj
    np.prod(hdr_str_to_np['dims']))
  File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/openers.py", line 168, in seek
    return self.fobj.seek(*args, **kwargs)
  File "indexed_gzip/indexed_gzip.pyx", line 635, in indexed_gzip.indexed_gzip._IndexedGzipFile.seek
indexed_gzip.indexed_gzip.CrcError: CRC/size validation failed - the GZIP data might be corrupt

contour_nii = load_img(self._contour) if self._contour is not None else None

Looks like a potential problem with the brain mask

For MRICoregRPT, self._contour is mri/ribbon.mgz. It looks like a corrupted FreeSurfer directory. Probably not much to do but rerun, but worth verifying that the data is corrupted first.

I believe this was user error. Please reopen if you disagree. I'll open an issue with indexed_gzip to include the filename in its errors, if possible, to aid in debugging.


Can I bless the css with  regular expression file name?

Can I bless the css with  regular expression file name?

I believe grunt-bless and gulp-bless may allow you to do this.
You could also probably use globs on the command line but it's not something I've done myself.
For example, cat *.md will run cat on any matching files.

I got it，Thank you


Add CryptoCrew Validators gentx mainnet 2

Description and Motivation

Related Issues

Checklist:

[ ] I have read Migaloo's contribution guidelines.
[ ] My pull request has a sound title and description (not something vague like Update index.md)
[ ] All existing and new tests are passing.
[ ] I updated/added relevant documentation.
[ ] The code is formatted properly golangci-lint run ./... --fix.

@Sen-Com lemme see if I can do a thing.  No guarantees

consolidated in #97 -- we belong together anyhow


Add message broker with queues alongside its respective event consumer

[ ] Explain what this PR does

added the rabbitmq message broker service. On startup, the meetings, participants, and attachments queues are created on the rabbitmq service.
Then each event consumer service is started that listens to its respective queue.
Included a sample script that describes how to send a message to a specific queue.
Right now, for the event consumer functionality, it just prints out a simple message. Have not implemented the API Gateway and actual processing part yet.
Infrastructure and services are set up though. Now need to incorporate functionality and processing.

[ ] Documentation updated (if needed)
[ ] Code reviewed by someone else on the team
[ ] PR is ready and can be merged (do not check this until all other boxes are checked)

Now that we've completed the coding assignments, I'm going to close open PRs without merging them. Of course, you're welcome to to reopen them to get them merged if you feel like finishing the project nonetheless.