vllm support GLM-4V-9B model

https://hf-mirror.com/THUDM/glm-4v-9b
please enable this model for customer's requirement.

https://github.com/vllm-project/vllm/pull/5358 GLM-4V-9B model is not yet supported by vllm now.


No longer support replacing dayofwk and dayofyr

Closes #106
Thanks @jswhit -- this is sort of what I had in mind.  Here I simply no longer propagate the old dayofyr and dayofwk attributes from the original date to the new one.  I'm not sure if there was a use-case for replacing the dayofyr and dayofwk attributes of a date, since they are intrinsic properties of a given datetime.
I added a couple tests to this implementation too.  I'm happy to make any changes if you have any comments.

I like you version better - removing the other pull request.

Thanks!  This should be ready to merge once the CI finishes if you have no further comments.


[TRI-1329] Update all Docs "Introduction" or "Overview" page titles to be : Introduction/Overview

Problem
A lot of pages in the docs are called "Introduction" and "Overview". They are the first page is a "group" in the sidebar.
This is a problem because the Open Graph images are terrible and they don't display well in search results.
Solution
Keep the sidebar titles as they are. Update the page titles so they're in the format : Introduction/Overview.
Examples:

This should be "React hooks: Overview"
This should be "Triggers: Introduction"

The markdown frontmatter needs to be updated:
---
title: Introduction
//add this ⬇
sidebarTitle: "Triggers: Introduction"
description: "A Trigger is what starts a Job Run. It can be a webhook, a schedule, or an event."
---

We currently support three types of Triggers: Webhooks, Scheduled, and Events. You can use any of these to start a Job Run.

From SyncLinear.com | TRI-1329
TRI-1335

Hi @matt-aitken could you please assign it to me ?


Override switch

Continued from #592 (merge after)
Also fixes #587

Not sure if this is ready to go as it's still draft but all looks 👍 to me.

Was just in draft so the other one will go first!


How to train the checkpoint of my datasets?

Hi authors!
Thank you for releasing this amazing work!
Now, I have my own dataset similar to S3dis, but not the same scene. How can I train my own point cloud dataset and get a checkpoint?
Best wishes！
luna

Thank you for your interest in our work. To adapt our method to a new dataset, you need to create a new Dataset module, inherited from our CustomDataset, it will define how to read your own point cloud (including rgb and xyz) as well as the semantic and instance labels, and define the train-val split. If you do not have the superpoint for your data, you could create a "dummy" superpoint as we do in the Replica dataset here. Then you need to create a new config file, defining the number of semantic and instance classes, and the model's hyper-parameter.

Thank you for your reply!
Best.


Get Issuer from authy and replace if necessary

Hi,
A lot of my TOTP secrets are just my email as the username which causes confusion when importing. Would it be possible to get the issuer from Authy and prepend it to the username and add to the issuer parameter?

Would it be possible to get the issuer from Authy and prepend it to the username and add to the issuer parameter?

Sure - if it is actually present in the data.
I don't have access to an Authy account anymore, so I will need some help. If you can run the exporter with this environment variable set, it will show the raw responses from the Authy servers:
AUTHY_DEBUG=1

If you see the TOTP issuer is embedded somewhere in the responses, we can use it.

This is the newer format for the tokens endpoint:

    {
      "account_type": "authenticator",
      "digits": 6,
      "encrypted_seed": "seed",
      "issuer": "Cloudflare",
      "logo": "cloudflare",
      "name"<EMAIL_ADDRESS>      "original_name"<EMAIL_ADDRESS>      "password_timestamp":<PHONE_NUMBER>,
      "salt": "salt",
      "unique_id": "1586798286"
    }

It seems like all are now set to authenticator type. Here is some code I tried playing around with:
func (t AuthenticatorToken) IssuerName() string {
	if t.Issuer != "" {
		return t.Issuer
	}
	if t.OriginalName != "" {
		return strings.SplitN(t.OriginalName, ":", 2)[0]
	}
	if t.Logo != "" {
		return t.Logo
	}
	if strings.Contains(t.Name, ":") {
		return strings.SplitN(t.Name, ":", 2)[0]
	}
	if !strings.Contains(t.AccountType, "authenticator") {
		return t.AccountType
	}
	return ""
}

That also requires updating the AuthenticationToken struct with the new fields as well as updating the t.Description() method to exclude the issuer since otherwise we will duplicate it.
For the URL generation we will also have to fix encoding spaces, since Go by default replaces them with +'s.
		params.Set("issuer", tok.IssuerName())
		u := url.URL{
			Scheme:   "otpauth",
			Host:     "totp",
			Path:     tok.Description(),
			RawQuery: strings.ReplaceAll(params.Encode(), "+", "%20"),
		}

Wow, thanks, seems like you have done all the legwork already.
I think for the sake of conformity with https://github.com/google/google-authenticator/wiki/Key-Uri-Format#issuer , it might be worth also changing Description() to return issuer:name, if both issuer and name are defined.

For the URL generation we will also have to fix encoding spaces, since Go by default replaces them with +'s.

Nice catch, Go's choice to encode spaces here as + here is not something I'd noticed before.
Do you want to submit a PR (only if you want to)? Otherwise I'll try integrate these changes when I find the time.

I have some more stuff to work out then I can file a PR. I noticed a lot of the names are still including the : if they are older and the logo was not set so I would need to write some logic for that first.


will you share the trained checkpoints?

Hi, thanks for the cool repo, your results look great. Do you have plans of sharing the trained checkpoint files? If yes, when?

Hi,
Thanks for your inquiry.
Yes! I am planning to release the checkpoint.
In fact, you can access them here.
https://drive.google.com/drive/folders/1aHDWOqW0FE0E5HD6A84sYxAe9BBRYbr_?usp=sharing
I have yet to write proper documentation since I am busy moving to a different location at the moment.
The checkpoints correspond to the dataset mentioned in our paper. You might need to download their data and run the NHA preprocessing as mentioned in this repo's README.
Please let me know if there is any other question. I am also trying to add a Jupyter Notebook demo at some point.

That's helpful, thank you. :)


[TS009168275] HDFS Transparency is not installed properly

APIS IT D.O.O. customer facing issue when deploying hdfs using toolkit where datanodes are skipping to install hdfs rpms while deploying.


Transpilation issues and possible solutions

In this discussion, someone has found the following blocking rule causes Splink to error when using the DuckDB backend
"ABS(DATE_DIFF('hour', l.visit_date_time_utc, r.visit_date_time_utc)) <= 5"

This syntax is valid.   It'll run inefficiently because it's non-hashable (a non-equality condition), but that's not relevant to this issue.
In order to work out what was going wrong, I had to remind myself how transpilation worked in Splink.
I've written up some notes as a developers' guide here.
In a nutshell, all SQL generated by SPlink is executed as follows:
sql_for_execution = sqlglot.transpile(sql_generated_by_splink, read=None, write="duckdb", pretty=True)[0]

This originally made sense, because all sql_generated_by_splink was written in the Spark dialect, and so the above statement originally had read="spark".  However, I realised none of the core data linking algorithms used Spark specific syntax, and so it made more sense for everything to be written in 'vanilla'* SQL (read="spark")
Once I'd re-written all the core algorithms into 'vanilla' SQL, I then set read=None in the above statement and didn't think about it much any more.
This seemed to work quite nicely, because SQL 'leaves alone' any functions it doesn't understand.  So if you have custom_duckdb_function(a,b,c), and you run:
sqlglot.transpile('custom_duckdb_function(a,b,c)', read=None, write="duckdb")

This will output custom_duckdb_function(a,b,c) - i.e. it's works fine.

There's not really a definition of precisely what 'vanilla' means, so there is some annoying ambiguity here

When does this break?
This creates a problem if someone provides custom SQL (a blocking rule or sql_condition in a Comparison) which uses a backend-ambiguous functino.
So for example date_diff has different arguments in different orders depending on which backend (dialect) you're using.
This means there's no predictable 'vanilla' version of this statement, and if you run
sqlglot.transpile('date_diff(a,b)', read=None, write="duckdb")

The results are unpredictable.
Solution?
Do we actually need the transpilation step any more?  What happens if we eliminate it?

See #713


Improve readme for backend to include database information

Improve the readme for the backend to include the setup, installation and usage guide for mongo db.

I want to work on this issue.


Any Idea why I am getting this error? Please help

Bug Report
(Fill in the relevant information below to help triage your issue.)

Information
Description

Version
9.6.2

PHP version
7.2.5

OS Platform

The error is thrown by the WordPress plugin repository linter.

Cc @nyamsprod

@w3guy I am not familiar with this package but the error message says it all the filtername parameter get something which is not a string. Why and how I'm afraid that I can't help you with. It depends how the class is being called and use

indeed they got removed in 9.7.2 according to the tags


Get-Command fails with unexpected error when given a blank command-name argument

Note: This is definitely a minor bug that won't arise too often in the real world.
Passing an all-whitespace -Name argument to Get-Command results in unexpected error message Get-Command: Index was outside the bounds of the array.
Steps to reproduce
{ Get-Command -ea Stop -Name ' '  } | Should -Throw -ErrorId CommandNotFoundException

Expected behavior
The test should succeed; that is, the usual CommandNotFoundException should be reported.
Actual behavior
The test fails, because the error mentioned above is reported instead.
Expected an exception, with FullyQualifiedErrorId 'CommandNotFoundException' to be thrown,
but the FullyQualifiedErrorId was
'System.IndexOutOfRangeException,Microsoft.PowerShell.Commands.GetCommandCommand'

Environment data
PowerShell Core 7.1.0-preview.5

I'll try tackling this one.

This issue could benefit from the proposed enhancement in #10010 to have [ValidateNotNullOrEmpty()] have a settable property to check for whitespace in addition to null and empty.

I'd like to point out that when reproducing this error after doing Start-DevPowershell it gives a different error. This is because src\System.Management.Automation\engine\CommandSearcher.cs has the following Dbg.Assert(                 !string.IsNullOrEmpty(name),                 "Caller should verify name");.
My question is, does this assert belong here? Issue #10165 was closed because it was decided that variable names and alias names with whitespace should be possible. So should Get-Command return the whitespace alias if it exists?

Given the conclusion to that issue, I'd agree that that assertion shouldn't be there, yeah. 👍

Well I've done some digging and it looks like in CommandSearcher.cs at line 1540 _commandName is trimmed _commandName = _commandName.TrimEnd(Utils.Separators.PathSearchTrimEnd);. This is what ultimately causes the index out of range exception to be thrown at line 1102                if (_commandName[0] == '.' || _commandName[0] == '~' || _commandName[0] == '\\'). If I comment out the _commandName.TrimEnd(Utils.Separators.PathSearchTrimEnd); The behavior of Get-Command ' ' is as expected and everything else seems to work fine.
My next question is (and I realize this is asking a lot), does anyone have any ideas why the _commandName = _commandName.TrimEnd(Utils.Separators.PathSearchTrimEnd); is there?


correct text to avoid misunderstanding

Why is it a "response" to a form? that's a time that the form was received, not responded to. I think submission should work then :).


Fixed misalignment of social media Icons in Login & Register page issue ! #358

Hello, PR
Fixed Issue - #358

Issue fixed done -
Before -

After -

Type of Change
What kind of change does this pull request introduce?

[x] 🐛 Bug fix
[ ] 🚀 New feature
[x] 📄 Documentation update
[x] 🛠 Code improvement/refactor
[ ] 🖼 UI/UX update
[ ] Other (please specify)

Checklist
Please ensure the following tasks are complete before submitting the pull request:

[x] I have tested my changes and ensured they work as expected.
[x] I have added any necessary documentation or comments.
[x] I have checked the existing issues and pull requests to avoid duplicates.
[x] I have starred this repository.
[x] I have reviewed my code for best practices and readability.
[x] I have included any relevant tests (if applicable).

@gauravsingh1281 done

@gauravsingh1281 but you assign me, then who solve it ??
please merge my PR with level


[Feature] Want to set up a tracking script

Checklist

[X] I searched existing issues and no one else requests similar feature. | 我搜索了现有的问题，没有人要求类似的功能。
[X] I think that 25%+ users are positive towards this feature. | 我认为 25% 以上的用户需要这个功能。

Describe the feature | 功能/建议
When I deploy this project myself, I need to see how many of my customers use this function.
So, I want to set up a tracking script, where can I set it ?
Additional context | 补充说明
Not yet.

The tracking code is in plugins\piwik.js, and you can replace it with your own tracking script.


BLS public key enhancements

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1174  👈
#1170
feature/proof-of-stake

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lazynina and the rest of your teammates on  Graphite


Disable week-end in month view

As I see in this issues #97, #372 the work_week view will be available in the next realease ?
I looked at the PR #383 , but I'm not sure this is about the month view too.
Is that ?
If not, will it be possible to do this with a custom view component ?
Like in this example example/CustomView.js.
I'm lookin at the core but for now, I don't see an easy way to acheive this.

You can make a custom view but it would involve a lot of rewriting. the Month view doesn't support removing the weekends.

Good afternoon!
Tell me, is there any news about this problem?

@Guardpc work_week is a valid view. You can see it in use on the Docs page

@cutterbl, thanks for your answer, but I'm interested about "Disable week-end in month view"

@Guardpc Missed that. Yes, that would probably require a custom view. Might check Stackoverflow, or ask in our Slack community. Someone may have done this before.

Hello everybody!
I have found a solution for this problem.
Maybe the solution is not quite correct, but it works (if the week starts on Monday).
I made a copy Month.js , defined it as a custom view (WorkMonth).
views = {
	month: true,
	week: true,
	work_week: true,
	work_month: WorkMonth,
	day: true
};

And truncated arrays of days in the following methods:
renderWeek = (week, week Ids) => {
	week = week.slice(0, 5);
	...
}

renderHeaders(row) {
	row = row.slice(0, 5);
	...
}

@jquense   -Tell me, is there any solution about this problem to disable weekend in month-view?

@InsaneRohit, Hi!
Ask your questions, I'll try to answer them.

@Guardpc @InsaneRohit I would suggest moving this conversation into the #custom-components channel of our Slack group

@Guardpc @jquense @cutterbl Can anyone help me in building Custom Month View to hide weekends ?
Is ther any solution for this?

@cutterbl, unfortunately, slack is not available in my country.
@InsaneRohit, Just copy the file Month.js in a convenient place.
Rename it and the class name as you like, for example, WorkMonth.js .
Correct 2 functions as I showed above.
Then import it into your component with react-big-calendar and add it to the views object.
I showed you what my object looks like.
Here's the documentation.
Good luck to you!

@cutterbl, unfortunately, slack is not available in my country.
@InsaneRohit, Just copy the file Month.js in a convenient place. Rename it and the class name as you like, for example, WorkMonth.js . Correct 2 functions as I showed above.
Then import it into your component with react-big-calendar and add it to the views object. I showed you what my object looks like. Here's the documentation.
Good luck to you!

@Guardpc  Can you share the code please I really need it. I have tried not working giving so many errors. Is there any chance we can talk through email or any other social media . I really need to do it

@Guardpc  Need your code to understand or more help would be better in custom month view

@Guardpc where are you i am looking for you?


updated documentations

Pull Request Test Coverage Report for Build 216

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 50.872%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/com/t13g2/forum/ui/MainWindow.java
0
1
0.0%

Totals

Change from base Build 215:
0.0%

Covered Lines:
1488

Relevant Lines:
2925

💛  - Coveralls


Release build crashes on Android & iOS (On Launch)

Is this a bug report?
Yes

Have you read the Contributing Guidelines?
Yes
Environment
OS:  macOS Sierra 10.13.2
Node:  8.4.0
Yarn:  1.0.2
npm:  5.6.0
Watchman:  4.9.0
Xcode:  Xcode  9 Build version 8E3004b
Android Studio: 3 AI-162.4069837

Packages: (wanted => installed)
react-native: 0.52.0 => 0.52.0
react: 16.2.0 => 16.2.0
Target Platform: iOS (10.3, Android 7.1.2

Steps to Reproduce

(Write your steps here:)
iOS & Android release build crashes on application launch.
**Package i think may have relation are (Not Sure) **

"react-native-maps": "^0.19.0",
Log
02-27 21:41:13.822  8695  8754 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
02-27 21:41:13.822  8695  8754 E AndroidRuntime: Process: com.reactwork, PID: 8695
02-27 21:41:13.822  8695  8754 E AndroidRuntime: com.facebook.react.common.JavascriptException: undefined is not a function (evaluating '(void 0)()'), stack:
02-27 21:41:13.822  8695  8754 E AndroidRuntime: @531:415
02-27 21:41:13.822  8695  8754 E AndroidRuntime: c@2:837
02-27 21:41:13.822  8695  8754 E AndroidRuntime: n@2:409
02-27 21:41:13.822  8695  8754 E AndroidRuntime: t@2:262
02-27 21:41:13.822  8695  8754 E AndroidRuntime: @402:1044
02-27 21:41:13.822  8695  8754 E AndroidRuntime: c@2:837
02-27 21:41:13.822  8695  8754 E AndroidRuntime: n@2:409
02-27 21:41:13.822  8695  8754 E AndroidRuntime: t@2:262
02-27 21:41:13.822  8695  8754 E AndroidRuntime: @336:133
02-27 21:41:13.822  8695  8754 E AndroidRuntime: c@2:837
02-27 21:41:13.822  8695  8754 E AndroidRuntime: n@2:409
02-27 21:41:13.822  8695  8754 E AndroidRuntime: t@2:262
02-27 21:41:13.822  8695  8754 E AndroidRuntime: @303:161
02-27 21:41:13.822  8695  8754 E AndroidRuntime: c@2:837
02-27 21:41:13.822  8695  8754 E AndroidRuntime: n@2:409
02-27 21:41:13.822  8695  8754 E AndroidRuntime: t@2:262
Expected Behavior

The release build should not crash.
Actual Behavior

The debug build working fine.
The release build crashes on launch.
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@YogeshYo are you able to provide us a reproducible demo?

What demo do you need on this? Please guide. I have attached screenshot. The crash takes place as soon as we launch application even before appearing splash screen. Do you need a package.json details?

I tried upgrading react-native & reinstalling node modules.

Ideally we’d have a project you’ve uploaded which exhibits this crash; maybe you can reproduce with your depdencies and a new project.
However, when I’ve seen crashes that happen on both iOS and Android at startup, it usually points to a problem that only occurs when building the jsbundle in release mode.
To test this theory, modify your JSCodeCodeLocation on Android or iOS to point to: http://localhost:8081/index.bundle?platform=ios&dev=false&minify=false and see if the stack trace is any more informative.

@joshyhargreaves, i tried above   for android protected String getJSMainModuleName() {
return "http://localhost:8081/index.bundle?platform=android&dev=false&minify=false";
}

The actual point is finding the cause of the crash!

protected String getJSMainModuleName() {
return "http://localhost:8081/index.bundle?platform=android&dev=false&minify=false";
}
is this right in mainapplication.java?

@joshyhargreaves, with above I got the attached message.
I already tried removing & relinking Datepicker library. I will try again relinking datepicker with a different approach.
Please let me know your inputs on same. am I moving in right direction?

@joshyhargreaves, I removed Datepicker library but no difference.
{
"name": "ReactWork",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.20.1",
"react": "16.2.0",
"react-native": "0.53.3",
"react-native-android-keyboard-adjust": "^1.1.1",
"react-native-extra-dimensions-android": "^0.21.0",
"react-native-maps": "^0.19.0",
"react-native-pages": "^0.6.1",
"react-native-root-siblings": "^3.0.0",
"react-navigation": "^1.0.0-beta.27",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-persist": "^4.10.1",
"redux-saga": "^0.15.6"
},
"devDependencies": {
"babel-jest": "22.0.4",
"babel-preset-react-native": "4.0.0",
"jest": "22.0.5",
"react-test-renderer": "16.2.0"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts"
]
}
}
I was able to generate release build earlier but now I am stuck to this from last 4-5 days. am I following your solution to get the message for crash correctly?

@joshyhargreaves, With  jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.bundle?platform=ios&dev=false&minify=false"];. I am able to get tha same message as i posted earlier.

@joshyhargreaves, anything else I can try? Release build was working fine until last week. I tried a release build with removed lib added since then but same error on release build. "App crashes after splash screen on both Android & iOS"

@yogesho, the thing I might suggest, is if you can keep your native dependencies, remove any application code that you don’t want to upload, and create a repro project, then that’s be easier for one of us to take a look.

@joshyhargreaves, can you please share you email id so that i can share codes to you

@joshyhargreaves, can you please look into this? I tried to reach you on Gmail. Thanks

Hi Josh,
I will do this still I think if you have a chance to have at least one look then I am sure you can at least give me hint to move ahead on this. Believe me, I tried everything I can & now I am stuck.
It's already around 10 days so I am requesting you to have one look.
Thanks

HI @joshyhargreaves, reproducible demo added
https://github.com/Tradesmen/CRASH/tree/master.
I request you to remove "Need more information" badge.
Thanks

@YogeshYo I have similar issue and it start happening after upgrade to react-native 0.50.4. I'm told the cause could be a that a dependency violates things that because invalid in react 16.0.0.

@testshallpass, I went line by line & found two culprits for this issue (i.e only in release build).

Platform.select({
"ios": () => StatusBar.setBarStyle("light-content"),
"android": () => StatusBar.setBackgroundColor("#263238")
})();

The second was https://github.com/facebook/react-native/issues/4831 for which I proper message in the crash log which helped me to fix.
Still, i think for the 1st either this should be rectified in debug build or at least get a proper error message in the crash log.

@testshallpass, I went line by line & found two culprits for this issue (i.e only in release build).
Platform.select({
"ios": () => StatusBar.setBarStyle("light-content"),
"android": () => StatusBar.setBackgroundColor("#263238")
})();
The second was #4831 for which I got a proper message in the crash log which helped me to fix.
Still, i think for the 1st; either the issue should be rectified in debug build or at least get a proper error message in the crash log.


Implement getKeys

Implement getKeys for all types of Config
Add methods to differentiate between addConfigFirst and addConfigLast for more control over CompositeConfig ordering
Add PrefixViewConfig that decorates another Config without copying data

archaius-pull-requests #128 FAILURE
Looks like there's a problem with this pull request


Bosh unalias-env command doesn't exist (but docs say it does)

The bosh docs for commands says unalias-env should exist
The last bosh-cli release was 5.4.0 cut on november 13th.
But the feature for unalias-env was merged in on november 28th.
I realize this isn't a huge deal, just a heads up that the docs appear a little out of sync with what's actually available in the latest CLI release 👍

Hi @aegershman, it looks like we missed a chance to release this recently. We're working on a couple small things on the CLI and should be releasing a new version pretty soon.
There's not much of an issue here since the code is already in place and we have plans to release a new version regardless. But feel free to re-open this if we for some reason end up failing to release.
CC @mgadiya (our product manager)
Cheers,
Luan


Add preferFunctionDeclarations lint

This lint adds a rule and corresponding autofix for const function expressions. These should be written as regular function declarations. The lint rule does not complain if the function expression is an arrow and contains a valid this, or if variable declarator has a type annotation.

Main motivation for this is I'm seeing PRs that use const arrow functions when the rest of the codebase consistently uses function declarations.


FEATURE: Show user statuses in search results when sending a direct message

The status will appear after merging https://github.com/discourse/discourse/pull/17716 and https://github.com/discourse/discourse/pull/17809 in Core.

Can we add a test in direct-message-creator-test please?

Can we add a test in direct-message-creator-test please?

Sure thing. I've added a test, but it will start passing only after we merge https://github.com/discourse/discourse/pull/17716 in Core.

I also realized that I forgot to add styles to status on the user-info component in Core. I'll mark this PR with the do-not-merge label for a short time, will fix styles in Core, and then will merge this.


using the sdk with angular 2

Hi, I managed to use the plugin with angular2 but I am not able to add the event listeners on the map tag
(markerSelect)="onMarkerSelect"
(cameraChanged)="onCameraChanged"

I added brackets because thats how it should be in angular (I also tried without) but the functions do not seem to be called.
Anyone has any idea?
Thanks

Maybe try (markerSelect)="onMarkerSelect($event)" and (cameraChanged)="onCameraChanged($event)"

I tried like that and it didnt work, than i saw the function was static :(
now it works.
Thanks

Hello, any way to execute something after the marker selection is removed ?, for example, I want to show some controls when the marker is selected, this part I already have, but when I remove the marker selection and click on the map I do not know how to execute code to hide my views.
Thank you!


Lint does not provide errors

npx vuesion lint does not provide meaningful error messages.
This is all that I get.
» npx vuesion lint
✗ An error occurred.

Exit with error code: 2

Trace:

hey, npx only supports the create command right now. Please use the locally installed binary in node_modules/.bin directory for other commands. This will change in the next version.

@jackmahoney in which context was it necessary to run the lint command via npx? I would like to understand if this is a common use-case.

@jackmahoney any news on this one?

Hi @devCrossNet sorry for the delay. I resolved this by not using npx. I might have an unusual JS approach whereby I use npx to run bin commands. I'll close now, thanks your support.

For more context I often use a Makefile instead of package.json and invoke node bins using npx via Make instead of "npm run "

@jackmahoney good to know 🙂 the thing with npx is that it doesn’t give the binary you run access to other binaries because of security reasons. The vuesion service in the current version is only a proxy to other clis which is exactly what doesn’t work with npx. In the next version it will work with the package apis instead of the binaries than it should also work for you.

Thanks @devCrossNet I appreciate it!

@jackmahoney I just saw on your website that you worked at Atfarm. I work at BCGDV! 😊


refactor: Fix RefundFeesOnChannel

Description
read #1060
closes: #860

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

work continued on #1244


Title: Age Detection Using OpenCV

Initiative (Required)
GSSoC (Girl Script Summer of Code) 🌸
Is your feature request related to a problem? Please describe.
I would like to add a file about Age detection in machine learning folder.
Describe the solution you'd like.
This project implements an age detection system using OpenCV's DNN module and a pre-trained Caffe model. The system detects faces in an image and predicts the age group of each detected face.
Add any other context or screenshots about the feature request here.

The output would be this.

I am the mentor of this project.
Hello @ramana2074
Can you please provide working video!!

https://github.com/user-attachments/assets/df5beac5-635c-4393-b6a7-97e70650f1e7
Here you go

@ramana2074 Tell me where you can contribute ?
@Kushal997-das Kindly assign this issue!!!!!

In the Machine Learning Folder Advanced

In the Machine Learning Folder Advanced

Try to add in intermediate

Okay i will add it in Intermediate
please add level and hactober fest labels


[Feature Request] Add --disable-noqa support

flake8 has an option to disable # noqa comments. When running pydocstyle as a flake8 plugin (via flake8-docstrings) and using flake8's --disable-noqa option, # noqa comments still block all violation reports from pydocstyle because pydocstyle is processing those comments itself and deciding to not send the reports at all.
It would be great if pydocstyle supported a feature equivalent to flake8's --disable-noqa and once that's in place, flake8-docstrings activated that feature so that flake8 sees all reports regardless of # noqa comments and could make its own decision to report them or not.
(I understand that would be a separate issue on flake8-docstrings once support is added to pydocstyle, I just mention it to ensure that the feature can be activated directly in ConventionChecker.check_source() as well as via traditional means).

Trying to hack this into flake8-docstrings will go poorly. As a Flake8 and Flake8-docstrings maintainer I'd rather start with something in the API only that allows us to gather all results because it will be very confusing going forward why we're overriding --disable-noqa for pydocstyle and that's not the good kind of maintenance burden.

I never proposed to hack something into flake8-docstrings to change pydocstyle's behavior, that would be painful to maintain, and it would be trying to solve the problem at the wrong layer. I did file this issue on pydocstyle, not flake8-docstrings.
I'm asking for feature parity between pydocstyle and flake8, they both parse and respect # noqa comments but only flake8 has the option to disable them (if pydocstyle has that ability I'm not finding it, happy to be proven wrong).
pydocstyle not having an equivalent to --disable-noqa (via any mechanism) is preventing flake8's --disable-noqa feature from working with pydocstyle violations. Getting that to work is my ultimate goal here, but pydocstyle getting a --disable-noqa option (or equivalent) for stand-alone use as well seemed reasonable to me.
If you'd rather expose this functionality in pydocstyle via an API only, or prefer some different way of getting violations from pydocstyle to flake8 that bypasses its # noqa handling that'd by fine by me.

To me it looks like adding a boolean argument (with default value matching current behavior, of course) to ConventionChecker.check_source and using that to optionally disable the error.code not in definition.skipped_error_codes test on line 124/125 would be the minimally invasive fix.
e.g.
--- src/pydocstyle/checker.py
+++ src/pydocstyle/checker.py
@@ -104,7 +104,7 @@ class ConventionChecker:
         ".+"            # Followed by 1 or more characters - which is the docstring for the parameter
     )

-    def check_source(self, source, filename, ignore_decorators=None):
+    def check_source(self, source, filename, ignore_decorators=None, all_errors=False):
         module = parse(StringIO(source), filename)
         for definition in module:
             for this_check in self.checks:
@@ -121,8 +121,8 @@ class ConventionChecker:
                         error = None
                     errors = error if hasattr(error, '__iter__') else [error]
                     for error in errors:
-                        if error is not None and error.code not in \
-                                definition.skipped_error_codes:
+                        if error is not None and (all_errors or error.code not in \
+                                definition.skipped_error_codes):
                             partition = this_check.__doc__.partition('.\n')
                             message, _, explanation = partition
                             error.set_context(explanation=explanation,

(deliberately didn't reformat to keep the diff small)
flake8-docstyle could then simply add , all_errors=True to it's call to get all errors and let flake8's # noqa handling take over from there.
Instead of a bool it could also be a list of codes to always return if you want more flexibility.

flake8-docstyle could then simply add , all_errors=True to it's call to get all errors and let flake8's # noqa handling take over from there.

This is why I preferred this direction. flake8-docstrings really wants to give all of the errors to Flake8 and let that make decisions.
I think it's an anti-pattern for every tool to implement the same options as Flake8 and proliferate that maintenance across a bunch of already stretched thin maintainers. That's why I reacted to your solution-y feature request of adding more maintenance and support burden to this project

Apologies, I misstated my original ask. My primary concern was simply to enable this functionality for flake8-docstrings, which is why I explicitly wrote:

I just mention it to ensure that the feature can be activated directly in ConventionChecker.check_source()

It just seemed to me that asking for API surface without exposing that to users was a bit odd, so I phrased it in the terms of a user-facing feature. Especially considering that apparently # noqa support was added to pydocstyle for feature parity with flake8, and it's not quite equivalent.
I'll modify the title of this issue to reflect just the API changes, and submit a separate issue to add the option to expose the API to users. Feel free to close that one as a "won't fix", but I think it's worth having the paper trail of the discussion in case it comes up again or others want to chime in.
In general, I agree that having # noqa processing in plugins to flake8 is an anti-pattern (and one I've seen in a few). My original thought was to request that it simply be dropped from pydocstyle, but I accept that pydocstyle is a stand-alone tool and people use it without flake8. So either internal # noqa processing or requiring some kind of wrapper to post-process the errors would be desired. This approach seems to serve both use cases.
While writing the tests, I noticed that pydocstyle also doesn't respect the flake8 # noqa feature of ignoring errors via prefix, e.g. # noqa: D4. I'll file a separate issue for that, again feel free to close as "won't fix".

(and apologies if you feel I'm spamming you with irrelevant issues. I'll gladly close them myself if you'd prefer.)


Make KDE an optional dependency

KDE has been a PITA to recompile on the Mac. It would be nice to have KDE (and the KTextEditor) an optional dependency. At worst, at the expense of not providing plugin support. But even that would be better than not being able to build.
I suggest a -DENABLE_KDE=ON/OFF switch to CMake, which defaults to ON and #ifdefs out KDE stuff on OFF.

macOS build successful as of e0f39fa4184568c67309b0b3ed3ee73016ee7b85.


APP-1201 Fix app certificate generation

The certificate generation process needs to sign the app certificate with the root certificate.

Codecov Report

Merging #122 into dev will decrease coverage by 0.75%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              dev     #122      +/-   ##
==========================================
- Coverage   90.78%   90.02%   -0.76%
==========================================
  Files         139      169      +30
  Lines        2660     3380     +720
  Branches      254      319      +65
==========================================
+ Hits         2415     3043     +628
- Misses        189      254      +65
- Partials       56       83      +27

Impacted Files
Coverage Δ

...ration/provisioning/service/AppKeyPairService.java
100% <100%> (ø)

...ation/provisioning/service/UserKeyPairService.java
97.77% <0%> (ø)

...on/provisioning/exception/UserSearchException.java
100% <0%> (ø)

...ration/provisioning/properties/UserProperties.java
0% <0%> (ø)

...ation/provisioning/IntegrationProvisioningApp.java
50% <0%> (ø)

...tegration/provisioning/service/KeyPairService.java
91.66% <0%> (ø)

...ion/provisioning/client/model/AppStoreBuilder.java
89.18% <0%> (ø)

...ng/exception/ApplicationProvisioningException.java
100% <0%> (ø)

...ation/provisioning/service/ApplicationService.java
95.65% <0%> (ø)

...rovisioning/service/CompanyCertificateService.java
82.6% <0%> (ø)

... and 21 more

Continue to review full report at Codecov.

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


Trouble with v68 getting started guide

I'm trying to upgrade my project to v68 and running into a problem with what I believe to be CEF dependencies.  For simplicity sake, I started with a fresh new project to confirm my issues.

Started by following each of the steps on the following guide: https://github.com/mattkol/Chromely/wiki/Getting-Started-CefGlue-Winapi-(.NET-Core)

I downloaded via nuget, so I manually downloaded and merged the CEF dependencies as described in this guide: https://github.com/mattkol/Chromely/wiki/CefGlue-Application-Layout

When running the application, it seems as if dotnet is attempting to download or run something.  I get a blank chromely screen with dotnet output in the terminal.

I will start over not using nuget and report back.

Seems to behave the same after checking out master and using that as a reference versus Nuget.  I'm seeing the following error in my output console

Exception thrown: 'System.IO.FileNotFoundException' in Chromely.CefGlue.Winapi.dll

Sorry I missed that.


Connected with LD_LIBRARY_PATH (managed by a script called 'start-openbazaar-node')
user1: ./start-openbazaar-node start -t --port=28467 --restapiport=18469 --websocketport=18466    --heartbeatport=18470 --pidfile=/tmp/openbazaard.pid
user2:  ./start-openbazaar-node start -t --port=27467 --restapiport=17469 --websocketport=17466    --heartbeatport=17470 --pidfile=/tmp/openbazaard2.pid
user3: ./start-openbazaar-node start -t --port=26467 --restapiport=16469 --websocketport=16466    --heartbeatport=16470 --pidfile=/tmp/openbazaard3.pid
The 1st instance starts normally.
The 2nd and 3rd instance starts until the message:
[Server] [INFO] seed.openbazaar.org:8080 returned 28 addresses
And is than stuck there.
Stopping and restarting a couple of times finally starts the instance.

A Traceback of a interrupted stuck instance:
^CTraceback (most recent call last):
File "./openbazaard.py", line 283, in
Parser(OpenBazaard('/tmp/openbazaard.pid'))
File "./openbazaard.py", line 208, in init
getattr(self, args.command)()
File "./openbazaard.py", line 258, in start
int(args.heartbeatport), time.time())
File "./openbazaard.py", line 179, in run
KeyChain(db, start_server, heartbeat_server)
File "/home/user2/OpenBazaar-Server_2/keys/keychain.py", line 28, in init
callback(self)
File "./openbazaard.py", line 111, in start_server
looping_retry(reactor.listenUDP, port, protocol)
File "/home/user2/OpenBazaar-Server_2/net/utils.py", line 9, in looping_retry
time.sleep(0.5)
KeyboardInterrupt

Try to append a new line raise into net/utils.py like following and look at the traceback.
        try:
            return func(*args)
        except Exception:
            time.sleep(0.5)
            raise

THANK YOU saltduck !
Traceback (most recent call last):
File "./openbazaard.py", line 283, in
Parser(OpenBazaard('/tmp/openbazaard.pid'))
File "./openbazaard.py", line 208, in init
getattr(self, args.command)()
File "./openbazaard.py", line 258, in start
int(args.heartbeatport), time.time())
File "./openbazaard.py", line 179, in run
KeyChain(db, start_server, heartbeat_server)
File "/home/user2/OpenBazaar-Server_2/keys/keychain.py", line 28, in init
callback(self)
File "./openbazaard.py", line 111, in start_server
looping_retry(reactor.listenUDP, port, protocol)
File "/home/user2/OpenBazaar-Server_2/net/utils.py", line 7, in looping_retry
return func(*args)
File "/home/user2/OpenBazaar-Server_2/32/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 374, in listenUDP
p.startListening()
File "/home/user2/OpenBazaar-Server_2/32/lib/python2.7/dist-packages/twisted/internet/udp.py", line 175, in startListening
self._bindSocket()
File "/home/user2/OpenBazaar-Server_2/32/lib/python2.7/dist-packages/twisted/internet/udp.py", line 195, in _bindSocket
raise error.CannotListenError(self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on any:1028: [Errno 98] Address already in use.

I don't know how helpful that is. The reason it's in a loop is because STUN starts up on that port then shuts down and sometimes the server starts before STUN fully closes the socket.

I've run a number of instances recently from one box without issue. If this comes up again we can reopen.


Should API return url and localizedUrl?

Currently API returns localized url to product/page/category storefront page, but lacks ability to return url that contains store default language code - for example, if one queries japanesse store for product url, API will return url that contains client's browser default language, and there is no possibility to obtain japanesse url without changing browser settings. Should we return url field that is not affected by client's settings and localizedUrl, or should we solve this little problem in another way?

How about we let you query for it:
query {
  pages {
    edges {
      node {
        id
        publicUrl
        japaneseUrl: publicUrl(language="jp-ja")
      }
    }
  }
}

I suppose that now that we're working on building a single-page storefront, the concept of backend servers knowing public URLs is no longer applicable. @maarcingebala?

It won't be when we drop the current Django-based storefront.


The OkHttpClient doesn't wrap enqueue

Passing a callback and not returning from
RestResponse execute(HttpRequest request) throws IOException;
Would avoid the need to wrap jraw calls in async blocks.
So: void execute(HttpRequest request, Callback) throws IOException;
Thoughts?

What is the Callback class? Is it from OkHttp or JRAW? The reason I ask is because HttpAdapter was designed to be generic, so requiring a class from another library defeats the purpose. I do like what you're thinking though.

In this case it was the okhttp callback class, but really its just an interface if jraw has one then that'll do just grand.
There are a lot of calls to execute in the code that would need altering and I'm trying to figure out if its better to have the library synchronous and then just wrap the client calls in asynchronous blocks or to async up the library.
I'm not sure how people are handling this at the moment, maybe RX Java or one of the other hip libraries is being used to wrap these calls.

I never actually intended this library for use in Android, so my original thought process was to build the library as a synchronous one since It's generally more predictable. Wrapping JRAW with an asynchronous library would be best at this point as I have no intention of changing the flow to be asynchronous.


feat: Add default platform for alpine linux

This should close #28

The failing tests don't seem related to my changes... or at least not at a first glance 🤔

one question about alpine but otherwise seems fine -- does alpine guarantee a strata of packages for a minor version or is it more of a rolling release?  if it's the latter, providing a platform name isn't really appropriate (since it's a moving target and dynamic linking will fail at a later date as the moving target... well... moves)

one question about alpine but otherwise seems fine -- does alpine guarantee a strata of packages for a minor version or is it more of a rolling release? if it's the latter, providing a platform name isn't really appropriate (since it's a moving target and dynamic linking will fail at a later date as the moving target... well... moves)

Hmm... not sure if I'm understanding your question. As far as I know, alpine edge could be considered somewhat a rolling release, but the fixed versions aren't. Each version has its own set of packages like here

But I'd say that most of the cases where alpine is used is for Docker images used in deployments, where the whole environment is isolated and re-built every time a new release is launched, and not really on end user machines.

sounds like the answer is "yes" -- basically if I were to build an image against 3.11 in a few years it would still use the same set of packages / C-apis 👍

Yep, right now if you install python3 on alpine:3.3 you'll get 3.5.1, for example 🙂
https://pkgs.alpinelinux.org/packages?name=python3&branch=v3.3


New AI Task structure questions

Last time, Zidane mentioned when ST-DDT contributed AI docs on SpongeDocs that the whole AI system (agent goals/tasks) will be revamped. I have a few notes for these changes:
Goal class:
public interface Goal<O extends Agent> {
    GoalType getType();
    O getOwner();
    TaskEntry<O> addTask(int priority, AITask<O> task);
    Optional<TaskEntry<O>> removeTask(AITask<O> task);
    Collection<TaskEntry<O>> removeTasks(AITaskType type);
    List<TaskEntry<O>> getTasksByType(AITaskType type);
    List<TaskEntry<O>> getTasks(); // Same above
    void clear();
    AITaskOccupiedFlag getUsedFlags();

    interface TaskEntry<O extends Agent> implements Comparable<TaskEntry<O>> {
        Goal<O> getGoal();
        AITask<O> getTask();
        int getPriority();
    }
}

The AITask now holds the exact owner type instead of the superclass owner type which is the lowest bound of the task. Making it easier for plugins. Moreover, the task entry object allows retrieval of priority and confirm removal.
AITask class:
public interface AITask<O extends Agent> {
    AITaskType getType();
    Optional<Goal<O>> getGoal();
    default Optional<O> getOwner() {
        return getGoal().map(Goal::getOwner);
    }
    AITaskOccupiedFlag getOccupiedFlag(); // Something backed by bit operation like BlockChangeFlag
    boolean canBeInterrupted();
}

Replaced the canRunConcurrentWith with the occupied flag. The old method is way too ambiguous. Some of the occupied flags are changed with entity states (e.g. riding a boat disables some flags)
AITaskBuilder class: (Or AbstractAITaskBuilder)
public interface AITaskBuilder<O extends Agent, R extends AITask<O>, S extends AITask<?>, B extends AITaskBuilder<O, R, S, B>> extends ResettableBuilder<S, B> {
    R build(O owner);
}

O: owner
R: result built, aware of generic owner
S: sources to initialize the builder, wildcard owner
B: builder
Unfortunately, I couldn't find a way to reduce the generic parameters.
Sample builtin ai task class: (Take avoid entity for example)
public interface AvoidEntityAITask<O extends Creature> extends AITask<O> {
    @SuppressWarnings("unchecked")
    static <O extends Creature> Builder<O> builder() {
        return (Builder<O>) (Object) Sponge.getRegistry().createBuilder(Builder.class);
    }
    Predicate<? super Entity> getTargetSelector();
    AvoidEntityAITask<O> setTargetSelector(Predicate<? super Entity> predicate);
    float getSearchDistance();
    AvoidEntityAITask<O> setSearchDistance(float distance);
    double getCloseRangeSpeed();
    AvoidEntityAITask<O> setCloseRangeSpeed(double speed);
    double getFarRangeSpeed();
    AvoidEntityAITask<O> setFarRangeSpeed(double speed);

    interface Builder<O extends Creature> extends AbstractBuilder<O, AvoidEntityAITask<O>, AvoidEntityAITask<?>, Builder<O>> {}

    interface AbstractBuilder<O extends Creature, R extends AvoidEntityAITask<O>, S extends AvoidEntityAITask<?>, B extends AbstractBuilder<O, R, S, B>> extends AITaskBuilder<O, R, S, B> {
        B targetSelector(Predicate<? super Entity> predicate);
        B searchDistance(float distance);
        B closeRangeSpeed(double speed);
        B farRangeSpeed(double speed);
    }
}

Note that every builtin ai class now carries a generic for the owner type; the owner type does not matter that much except its lower bound. This design guarantees mod compatibility in case mod ai tasks extend vanilla ones. As a result, every builtin ai class has an abstract builder and a concrete builder.
For AITaskOccupiedFlag, we can write it in a fashion similar to block change flags.
Known info from mc code snippet:
boolean flag = !(this.getControllingPassenger() instanceof EntityLiving);
boolean flag1 = !(this.getRidingEntity() instanceof EntityBoat);
this.tasks.setControlFlag(1, flag);
this.tasks.setControlFlag(4, flag && flag1);
this.tasks.setControlFlag(2, flag);

So flag 1, 2, 4 are not ridden flags and flag 4 is not riding boat (or can move?) flag
Examples:
avoid entity: 1
leap at entity: 4 | 1
eat grass: 4 | 2 | 1
villager mate: 2 | 1
sit: 4 | 1
wither do nothing: 4 | 2 | 1
panic: 1
drowned go to water: 1
tempt: 2 | 1
swimming: 4
ghast look around: 2
watch closest: 2
watch closest without moving: 2 | 1
trade player: 4 | 1
ranged attack: 2 | 1
melee/zombie attack: 2 | 1
defend village: 1
move to block: 4 | 1
Appears flag 1 is for movement (in phantoms, all regular tasks have a flag of 1)
flag 2 is for the action of looking (watch/ghast look)
For flag 4, it is a bit more complex
mutex bit of 4:
swimming
mutex bit of 5:
slime float in liquid
trade with player
jump
leap at target
move to block
sit
mutex bit of 6: (none)
mutex bit of 7:
eat grass
wither do nothing
In conclusion, flag 4 is for liquid movement.
So, I propose an AI Task Occupied flag class as below:
public interface AITaskOccupiedFlag {
    boolean moving();
    boolean looking();
    boolean inFluid();
    AITaskOccupiedFlag withMoving(boolean moving);
    AITaskOccupiedFlag withLooking(boolean looking);
    AITaskOccupiedFlag setInFluid(boolean inFluid);
    AITaskOccupiedFlag inverse(); // copy-pasta from BlockChangeFlag
    AITaskOccupiedFlag andFlag(AITaskOccupiedFlag flag);
    AITaskOccupiedFlag andNotFlag(AITaskOccupiedFlag flag);
}

And an AITaskOccupiedFlags, too. (You need to run sortfields)
@SuppressWarnings({"unused", "WeakerAccess"})
public final class AITaskOccupiedFlags {

    // SORTFIELDS:ON
    public static final AITaskOccupiedFlag ALL = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "ALL");
    public static final AITaskOccupiedFlag IN_FLUID = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "IN_FLUID");
    public static final AITaskOccupiedFlag LOOKING = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "LOOKING");
    public static final AITaskOccupiedFlag LOOKING_IN_FLUID = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "LOOKING_IN_FLUID");
    public static final AITaskOccupiedFlag MOVING = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "MOVING");
    public static final AITaskOccupiedFlag MOVING_IN_FLUID = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "MOVING_IN_FLUID");
    public static final AITaskOccupiedFlag MOVING_LOOKING = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "MOVING_LOOKING");
    public static final AITaskOccupiedFlag MOVING_LOOKING_IN_FLUID = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "MOVING_LOOKING_IN_FLUID");
    public static final AITaskOccupiedFlag NONE = DummyObjectProvider.createFor(AITaskOccupiedFlag.class, "NONE");

    // SORTFIELDS:OFF

    private AITaskOccupiedFlags() {
    }
}

With BlockChangedFlags as a precedent, this should not be too hard to implement.

I initially didn't foresee me writing so much. Guess I can ping @Zidane for a look then :sweat_smile:

How will this support custom AITaskOccupiedFlags?

we can expose a factory method in game registry (most likely) for hard registration with mutex

IMO the flags should be a CatalogType, that will work similar to an enumset to resolve the contents

@st-ddt i did not make it one since block change flag is not a catalog type. might ask @gabizou on that design

The difference is that it's not possible to create custom BlockChangeFlags

The number of Mutex bits/AI flags is also limited. Some might not have a name by default, but they exists nevertheless. Unless we throw the bits in the ditch and invent something new that is a superset of MCs way, but might cause issues for mods that also want to use a different superset.

We can assign the actual bits dynamically based on calls to the normal goal. when the normal goal is called, we usually have an idea which bits are actually used and can substitute their flag objects with preset or generated entries

Changing existing bits or dynamically assigning them will cause conflicts with non Sponge plugins? How is a forge mod supposed to check whether the Sponge plugin uses the CastMagicFlag if the bit is always different.

@ST-DDT forge mods do not check flags. They only set flags they need. Sponge plugins will enable flags with entity update event listeners.

So the revamped flag class is:
public interface AITaskOccupiedFlag {
}

the flag set:
public interface AITaskOccupiedFlagSet {
    boolean has(AITaskOccupiedFlag flag);
    AITaskOccupiedFlagSet set(AITaskOccupiedFlag flag);
    AITaskOccupiedFlagSet inverse();
    AITaskOccupiedFlagSet union(AITaskOccupiedFlagSet flag);
    AITaskOccupiedFlagSet distinct(AITaskOccupiedFlagSet flag);
    AITaskOccupiedFlagSet intersect(AITaskOccupiedFlagSet flag);
}

goals and tasks use the flag set instead.

Mutex bits set by mods may be different from vanilla ones if they create completely custom ai. In that case it won't possible to assume the flag. It will always be a issue to recognise these bits in combination with mods, unless something gets changed in forge.

we can recognize those bits with hooks in the method where goals set their available bits and where ai tasks set their mutex bits.

IMO we should this part of the API as simple as possible (and close to vanilla) for the following reasons:

If mods want to add more bits (beyond from whats already possible), they have to resort to a custom implementation anyway, so there is no point in registering additional values ourselves in the first place (the number of bits is limited, if mods use them for different purposes there is nothing we can do to detect that)
Using a non primitive value has a huge performance impact: O(1) vs O(n * (n/2))

I could understand an API wrapper for usability reasons, but then it should be a (set of) catalog types (with just getters and setters)

I don't see a usecase for inverse, union, distinct and intersect (maybe a boolean variant for canRunConcurrentWith?)
maybe it would be best to have a VanillaAITask interface that can be used for these behavior/flag based canRunConcurrentlyWith checks or just some fake methods in AbstractAITask from the API, that will be implemented at runtime.

TLDR: Have a getter/setter with a Set<VanillaAITask...Flag extends CatalogType> and a method to call to check

@ST-DDT

Mods do not need custom implementations. They need to do zero thing. We use transformer to add extra hook in the methods where the bits are set!
The primitive value thing is not that important. The flags can be sorted to make comparison much faster. It is not freaking slow.
All those methods are bitwise operations. union for bitwise or, distinct for "and not", inverse for inversing bits, and intersect for and operation. They are definitely needed. Don't try to outdumb me.
Your vanilla ai task interface approach is definitely wicked and will only introduce more problems.

@ST-DDT I believe you have trouble understanding some of my ideas:
We can detect with injections in EntityAIBase#setMutexBits,EntityAITasks#enableControlFlag, and EntityAITasks#disableControlFlag
We will also fetch the agent type in context to determine for which types of agents these flags exist.

By the way, the new system I propose may supersede #1014

By the way, the new system I propose may supersede #1014

I opened that issue to track (one of) the issues of the current AI API. I will happily close that issue once we have a working variant inside the API.

We can detect with injections in EntityAIBase#setMutexBits,EntityAITasks#enableControlFlag, and EntityAITasks#disableControlFlag
We will also fetch the agent type in context to determine for which types of agents these flags exist.

Wouldn't this LAZY initialization have the drawback that it might never be fully populated if certain entity types aren't spawned. What would be the difference between BIT_4 for Zombies and BIT_4 for Skeletons? Why can't I use BIT_4 for Slimes, if vanilla MC does not use it?

The primitive value thing is not that important. The flags can be sorted to make comparison much faster. It is not freaking slow.

Performance isn't my only concern there. Well AFAICT that int is the one value every custom AI mod out there is using (if they use the vanilla classes at all).

All those methods are bitwise operations. union for bitwise or, distinct for "and not", inverse for inversing bits, and intersect for and operation. They are definitely needed. Don't try to outdumb me.

Sorry, that wasn't my intention. This class can easily replaced by a Set (addAll, removeAll, retainAll), maybe the impl is backed by an int, but that doesn't mean we should avoid the java standard API for well known concepts. As for Inverse I'm not 100% sure about its definition: Is it !MOVE = NOT_MOVE or !MOVE = LOOK + SWIM + ... ( I assume you refer to the second variant). But still what would be the usecase?

IMO Our concepts might be pretty similar, that why I try to demonstrate my thoughts using pseudo code (limited to the behavior flags).
Changes to the API:
AITask:
Set<AIFlag> getAIFlags(); // optional
void setAIFlags(Set<AIFlag> flags); // even more optional

AIFlag implements CatalogType (no additional methods)
AIFlags:
public final AIFlags {

 public static final AIFlag MOVE = ...;
 public static final AIFlag LOOK= ...;
 ...
 public static final AIFlag BIT_31= ...;

}

AbstractAITask:
protected final Set<AIFlag> getAIFlags() {
    Set<AIFlag> flags = new ...;
    return flags ;
}

protected final void setAIFlags(Set<AIFlag>flags) {
}

protected final boolean flagBasedCanRunConcurrentWith(AITask task) {
    return false;
}

API changes would be 100% backward compatible.

Changes to SpongeCommon:
MixinAbstractAITask:
@After(Set::new)
protected void getAIFlags(Set<AIFlag> flags) {
    for (int i in 0...31) {
        if (getMutexBits() & 1 << i  != 0) {
            flags.add(VANILLA_FLAGS[i]);
        }
    }
}

@Head
protected void setAIFlags(Set<AIFlag>flags) {
    int mutex = 0;
    for (AIFlag flag in flags) {
           if (flag instanceof SpongeAITask) { // VanillaAITask
                mutex |= flag.getMutexBit();
           }
     }
     setMutexBit(mutex);
}

@Replace
protected boolean flagBasedCanRunConcurrentWith(AITask task) {
    return getMutexBits() & (EntityAIBase) task.getMutexBits() == 0;
}

Usage in SpongePlugins
MyAITask:
public class MyAITask extends AbstractAITask {

    // BIT_15 = Cast Spell in this plugin and MCorcery
    public MyAITask () {
        setAIFlags(Set.of(AIFlags.MOVE, AIFlags.LOOK, AIFlags.BIT_15);
        addFlagIfExists(registry.get(AiTask.class, "spellforce:magic_invoke"));
    }

    public boolean canRunConcurrentlyWith(AITask task) {
        return flagBasedCanRunConcurrentWith(task) && ! criticalSection;
    }

}

Extension by Third-Party mods: (if some mod ever wants to do this)
MixinEntityAIBase:
public MixinEntityAIBase implements MyAIInterface {

    private long myMutexBits;
    private boolean noConcurrentFlagSet;

    // getter + setter (as defined by the interface)

}

MyAIFlags:
public final MyAIFlags {

    public static final AIFlag NO_CONCURRENT = new MyAIFlag(...);

    public static final AIFlag MY_MUTEX_0 = new MyMutexAIFlag(...);
    ...

    public static final AIFlag[] FLAGS_ARRAY = { MY_MUTEX_0, ..., MY_MUTEX_63};

}

MixinAbstractAITask:
@After(Set::new)
protected final void getAIFlags(Set<AIFlag> flags) {
    if (isNoConcurrentFlagSet()) {
        flags.add(MyAIFlags.NO_CONCURRENT);
    }
    for (int i in 0...63) {
        if (getMyMutexBits() & 1 << i  != 0) {
            flags.add(MyAIFlags.FLAGS_ARRAY[i]);
        }
    }
}

@Head
protected void setAIFlags(Set<AIFlag>flags) {
     setNoConcurrentFlag(false);
     setMyMutexBits(0);
     for (AIFlag flag in flags) {
         if (flag instanceOf MyAIFlag) {
             (MyAIFlag) flag.apply(this);
          }
      }
}

@Return
protected boolean flagBasedCanRunConcurrentWith(AITask task, boolean returnValue) {
    return returnValue && (MyAIInterface) this.getMyMutexBits() & (MyAIInterface) task.getMyMutexBits() == 0 && !(MyAIInterface ) this.isNoConcurrentFlagSet();
}

We can use another tracking system for sponge-added flags besides the existing mutex. Inverse should be all other flags set to true.

For your performance concerns, we can require all plugin-based ai flags to be added before a loading stage to allow putting flags in something backed by a bitset, etc.

If you fear sponge cannot spawn mobs, in fact, sponge can (by iterating over the entity registry and spawning in a dummy world)

I'd keep my ai flag set class so that people are not silly enough to feed an array-based set or something similar to the method.

We can use another tracking system for sponge-added flags besides the existing mutex.

You are not referring to a different API here, are you?

Inverse should be all other flags set to true.

What would be the usecase? When would you actually do this?

plugin-based ai flags to be added in something backed by a bitset, etc.

It should be possible to refer to an exact bit, without knowing the using/depending on a plugin (to allow plugins to be compatible to non-Sponge plugins). Like in my example BIT_15.

If you fear sponge cannot spawn mobs, in fact, sponge can (by iterating over the entity registry and spawning in a dummy world)

This does not guarantee that plugin/mod/vanilla provided AI tasks get created/run at all. Some goals are (might be) created conditionally or externally.

I'd keep my ai flag set class so that people are not silly enough to feed an array-based set or something similar to the method.

How would you implement that in the API without exposing implementation details/internals? Well it might be possible, somehow. Thats probably something to verify during the actual PR.

I am referring to a totally different, new ai system for bleeding.

the whole AI system (agent goals/tasks) will be revamped.

I am aiming to get the flags in for the new version.
To refer to exact bit, we can convert flags to catalog types and look up with arbitrary id.
The inversion is for goals. Goals need to reverse the bits.
My AITaskOccupiedFlagSet proposed already covered your last question "How would you implement that in the API without exposing implementation details/internals?"


update device-init to 0.1.8

fixes issues with host entry that gets added multiple times
https://github.com/hypriot/device-init/issues/23

LGTM, successful tested.

LGTM :-)


Npm package

With this PR we can patch the artifacts and ABIs in an npm package.
We only include the .json files and don't have an js API to access those. Users who consume the package have to include the files directly.
The release process looks like this.

"main release"
we have to update the version number and create a PR. After the PR is merged circleCI will create a new release with that version number
"dev release"
whenever someone creates a PR that has modifications to the artifacts folder and provided one is not on the main branch we create a package and set the version number to a --prerelease and we also prepend the current time to that version number.

Example. The package version is 2.0.0
if artifacts have been changed the new version pushed to npm from circleci will be 2.0.1-timestamp-0
if we push new change to the artifacts circleCI will again release a dev version with 2.0.1-newtimestamp-0

What happens if we remove the goerli & mainnet folders (which is the plan) from the deployments folder at one point? We have to make sure to update the create-package.sh script to use the python ../scripts/generate-abi.py command for goerli as well. Since the issue with the commit hashes (for goerli) is still not resolved the whole release pipeline for this package will be faulty.
@istankovic can we please prioritize and address the goerli commit hash issue? Maybe do a redeployment on Goerli soon.
Besides this, maybe take a look at Manuel's comment. I have no other requests here.
Thanks for the big effort around this issue!

@istankovic can we please prioritize and address the goerli commit hash issue? Maybe do a redeployment on Goerli soon.

Yeah, that would be a good idea. Please make an issue for that and make sure it is prioritized.
Depending on the timing, we might even use the new deployment commands directly for that.

Why is in the published package a deployment file inside the abis (abis/goerli/deployment.json)? There is none in the mainnet folder

Because the create abi script is broken for goerli and we are basically copying the old deployments. Once we have a new correct goerli deployment it won't be there

This is causing me issues with typechain at the moment. But should be fixable

Ok, let's remove goerli for now?

Looks good, thanks!


Stylesheets not loading any route other than the root (/)

Describe the bug
When importing stylesheets as stated in the docs, they only load in the base route (http://localhost:3000).
However, when navigating to other routes, the frontend concatenates the current route to the css url.
Let's say, you are in http://localhost:3000/profile/reflex
The frontend will request the stylesheets to http://localhost:3000/profile/reflex/css/styles.css
Expected behavior
The frontend should request the styles to http://localhost:3000/css/styles.css regardless of where in the site you are.
Specifics (please complete the following information):

Python Version: 3.11.4
Reflex Version: reflex==0.2.5a1
OS: Fedora Linux 38 (Workstation Edition)
Browser (Optional): Firefox 116.0.3

Docs updated to strongly suggest the use of a leading slash when specifying stylesheets and assets.


Moving to another view while a notification is being shown bugs it!

If you push a second view while the first view is displaying a AJNotification will make it stop working. No other AJNotification will be shown until you restart the app.
The only work around I found is to use:
hideCurrentNotificationViewAndClearQueue

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @JailMango, @VaanMax, @plondon, @Sunzxyong, @javagg, @lsdlinshunda, @blockcloud

Review the latest update and respond here: New Comment
This is critical—take action now.
Stay secure!


Change address in package.metadata.

I was using this template and looks like I should change site-addr to site_address. Or I would get the
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ConfigError("missing field `site_address`")', src/main.rs:10:62

Thanks — this one is actually a last small inconsistency between cargo-leptos and leptos itself. It should be site-addr but there's one place in leptos that still needs to change it.

Thanks. @gbj feel free to change it. I am still playing around with leptos.


errorlogs doesn't show Logging.exception()

As stated. I have errorlogs configured to show all Tracebacks, but when calling the logger and telling it to log an exception, it doesn't show it in channel.
        try:
            raise ValueError("blarg")
        except:
            e = sys.exc_info()[0]
            log.exception(e)```

I'm afraid not how errorlogs works. It only logs tracebacks of unhandled command errors, i.e. the errors that occur when you see Error in command "command": check your console or logs for details. It does not log errors in events because they tend to be very spammy and often users don't care about them. It doesn't log handled events because that's the responsibility of whoever is handling it.


Show more info about receipt

Receipt can be calling another contract or transfer funds. Right now it's unclear.
Result also is encoded in base64, which is unreadable.

For the context, the receipts story is underdeveloped #218.

Seems to be resolved with #574


v4.2.5 and v4.2.6 Release Notes duplicated

On Github Releases page, the messages of v4.2.5 and v4.2.6 are identical.

4.2.5 was broken (#293), we shortly released 4.2.6 afterwards to fix the breakage. Hence, 4.2.6 and 4.2.5 addressed the same issues and have the same release notes.
Thanks for pointing this out. I updated the 4.2.6 release notes to avoid further confusion about this.


Adding a zero-iteration loop causes a blank image

[Shaders, screenshots, error log, reproduction steps, etc.] [ZIP]
The variant shader is identical to the recipient shader, except that this loop is added:
            for(int k = 0; k < -44252; k ++) {
            }

The loop should clearly execute for zero iterations, so should have no effect.  But as shown below it causes a blank image to be rendered instead of the expected image.
Changing the loop bound to -1 makes the problem go away.
Recipient:

Variant:

We discussed this with ARM and it turned out that -44252 is outside the integer range they support, so that it becomes a large positive number, leading to a long-running shader, which gets killed (legitimately).  So this is a false positive.


Source Generator Not Working

I am able to get the Godot Utils working, but the source generators are not working for me.
At the moment I am getting the following error:
0>CSC: Warning CS9057 : The analyzer assembly '$HOME/.nuget/packages/firebelley.godotutilities.sourcegenerators/4.1.0/analyzers/dotnet/cs/Firebelley.GodotUtilities.SourceGenerators.dll' references version '<IP_ADDRESS>' of the compiler, which is newer than the currently running version '<IP_ADDRESS>'.
I tried bumping my Microsoft.CodeAnalysis.CSharp package up to 4.5.0 but it did not work. Any push towards the right direction would help. Thank you!
OS: Linux
Godot Version: 4.1
Editor: Rider

I had the same issue. I had to update which MSBuild instance it was using.

Nevermind, install the latest version of the v7 SDK. The one I had was too old, I just installed 7.0.402 and all is well


Coreset algorithm benchmarks for different data types

What's the new feature?
Explore opportunities to identify benchmarks for application of different coreset algorithms to different types of data, providing objective recommendations.
What value does this add?
This would give us greater insight into the application of different coreset algorithms to different data types, as well as providing a helpful starting point for users new to the package. This will help people apply and use the package more readily.
Is there an alternative you've considered?
No response
Additional context
This was a recommendation made during Sprint 15 Review.

Per @pc532627 there may be possible to combine this with #510

This becomes higher priority when recombination algorithms #71 and further alternative approaches are implemented.

If we're talking about integers vs floats, take care as JAX has some interesting behaviour.


Emby playback error

Description
I setup with a Emby server, and when I click "Play on Jellyfin", the URL will direct to http://myip.com:8096/web/index.html#!/details?id=xxxx&context=home&serverId=xxxxxx，and show nothing，the correct Emby media link should be http://myip.com:8096/web/index.html#!/item?id=xxxx&context=home&serverId=xxxxxx , the "details" should be "item".
Version
1.1.1
Steps to Reproduce

Setup jellyfin server by using emby server ip and user;
select a video in the emby library；
click "Play on Jellyfin"
no detail of the video show up

Screenshots
No response
Logs
No response
Platform
desktop
Device
PC
Operating System
Windows11
Browser
Chrome
Additional Context
No response
Code of Conduct

[X] I agree to follow Overseerr's Code of Conduct

Did you add the emby env variable because this has been fixed #71
If you get detail that means the emby env variable is missing.


Patch test databases for Release 112

Description
Update test databases to patch schema version to 112.
Use case
Benefits
Possible Drawbacks
Testing
note to submitters and reviewers: documentation-only changes may reflect
changes in other repos that can result in new or different output from
REST endpoints. In turn, these may require new tests or changes to existing tests.
Have you added/modified unit tests to test the changes?
If so, do the tests pass/fail?
Have you run the entire test suite and no regression was detected?
Changelog
Are you changing the functionality of an endpoint? If so, please give a one line summary for the public facing changelog.
eg. [/xenobiology/orthologs] Added the ability to look up orthologs and paralogs from klingons and andorians

After the RelCo 112 meeting on 25/09/2023, I found out that these changes onto main will immediately affect the REST staging site. As staging is currently hosting Release 111 for testing, I don't want to create any conflict between versions so will not merge this into main for now. I'll wait until at least the RC sites are up for 111, or hold discussions to change our SOP to create a 112 branch and merge that back into main later on.

After discussions with John Tate from Web, they've updated their SOP to use the release branch for the staging site. This means that we can go ahead and merge these 112-related changes into main without affecting the 111 functionality on the staging site.


Moving Cognitive Services w/out ServicePRs Present

Old -> New Locations.

azure-cognitiveservices-anomalydetector/

sdk/cognitiveservices/azure-cognitiveservices-anomalydetector/

azure-cognitiveservices-language-luis/

sdk/cognitiveservices/azure-cognitiveservices-language-luis/

azure-cognitiveservices-language-spellcheck/

sdk/cognitiveservices/azure-cognitiveservices-language-spellcheck/

azure-cognitiveservices-language-textanalytics/

sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/

azure-cognitiveservices-search-customimagesearch/

sdk/cognitiveservices/azure-cognitiveservices-search-customimagesearch/

azure-cognitiveservices-search-customsearch/

sdk/cognitiveservices/azure-cognitiveservices-search-customsearch/

azure-cognitiveservices-search-videosearch/

sdk/cognitiveservices/azure-cognitiveservices-search-videosearch/

azure-cognitiveservices-search-visualsearch/

sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/

azure-cognitiveservices-search-websearch/

sdk/cognitiveservices/azure-cognitiveservices-search-websearch/

azure-cognitiveservices-vision-contentmoderator/

sdk/cognitiveservices/azure-cognitiveservices-vision-contentmoderator/

azure-mgmt-cognitiveservices/

sdk/cognitiveservices/azure-mgmt-cognitiveservices/

Can one of the admins verify this patch?

@Azure/azure-sdk-eng


POC for kuttl e2e tests

Description
Some simple kuttl tests, they work (mostly).
Reasons it might fail for you:

sometimes there is still timeout issues
you have less/more nodes then the test want (its not nice I know)
KIND needs a lot of RAM for the tests to run and the pods to not be stuck in Pending

How can this be tested?
Have kuttl installed and run kubectl kuttl test in the root of the repo, and it should work.
If you want to try it with KIND then in the kuttl-test.yaml, set the startKind to true.
Checklist

[ ] Unit tests have been updated/added
[ ] PR is labeled accordingly

Please add a readme with instructions how to use these tests and kuttl in the right folder


Add pdfio to vcpkg ports

Thank you very much for pdfio and especially the cross-platform support and the unrestrictive license.
It would be great if there were a vcpkg port of pdfio available as vcpkg really makes it easy for dependency management. Before I put more work into this, I wanted to check with you if this is something that you would welcome or reject. I learned C programming in the late 1980's and your Makefile is delightfully old school.
I would like to incorporate pdfio into a SQLite extension to perform field-extraction from PDF documents by using spatial querying techniques. My interest in the area has renewed recently after the release of a really nice geometry library https://github.com/tidwall/tg . I am not at all skilled in CMake but I would like to use github actions and releases to build and host my extensions so am biting the bullet and trying to learn enough of the toolchain to allow me to concentrate on the extensions themselves.
I tried to a portfile.cmake that called the Makefile but I could not get it to work because it (vcpkg) expects to use configure to generate the Makefile. I hand-crafted a CMakeList.txt file from the Makefile and did a very rough portfile.cmake and now have something that can build from my fork.

I forgot to mention that I have been using a perfectly fine workaround which is to add pdfio as a git submodule for my project. While experimenting with my main CMake, adding entries to compile the pdfio C source files, it looked like it would just be a bit more work to make a standalone CMakeLists.txt for pdfio and in turn provide a portfile.cmake that works with that. I did a basic version but it does not have all the installation targets (just the libraries, executables and the headers).
If making pdfio available via vcpkg is not incompatible with the project style guides, then I will put some more effort into the fit and finish and submit a PR.
thanks!

So I don't have strong feelings either way about getting PDFio added to vcpkg. I don't personally use it, and I already include PDFio in Microsoft's NuGet package collection which works for Visual Studio projects...

Oh and I should mention the submodule approach is usually what I recommend when using PDFio...

That makes sense. I will continue with the submodule approach.
I am a fairly recent user of vcpkg but I have to say that I have been very pleased with the benefits of it for the multi-platform support and the fact that it works nicely with github actions.


Small doc typo in rule disallowMultipleVarDecl

Hi,
The doc for rule disallowMultipleVarDecl states that the allExcept array can get a required value, while actually is should be require.
The doc:
https://github.com/jscs-dev/node-jscs/blob/master/lib/rules/disallow-multiple-var-decl.js#L13
The code:
https://github.com/jscs-dev/node-jscs/blob/master/lib/rules/disallow-multiple-var-decl.js#L99

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27212814-small-doc-typo-in-rule-disallowmultiplevardecl?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

Thanks for the report @ValYouW, do you want to send a pull request for this?


Runtime fault when running with CONFIG_NO_OPTIMIZATIONS=y

Describe the bug
I have two threads in the code which are just printing a string on the uart. If i compile with CONFIG_NO_OPTIMIZATIONS=y, I see two prints on the uart and then nothing. If i attach a debugger (Ozone), I see some usage fault (varying from memfault to usage fault).
I am using arduino_nano_33_ble board. I have connected a FTDI serial to USB board to the two serial  lines and observing the output on minicom. For debugging, I have connected the 5 lines to the nordic PCA10040 board (nrf52DK i think)
The issue seems very similar to issue  #12820, however, even increasing the size of the stacks  by 10 times didn't help. Further, I do not see any traces related to fault on the uart. I have even increased the PRIVILEGED_STACK_SIZE from 1024 to 4096 but that didn't help either.
below are the contents of my prj.conf
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

#CONFIG_STACK_SENTINEL=y
CONFIG_NO_OPTIMIZATIONS=y

#CONFIG_TRACING=y
#CONFIG_ASSERT=y

CONFIG_PRIVILEGED_STACK_SIZE=4096
CONFIG_THREAD_STACK_INFO=y
CONFIG_THREAD_MONITOR=y
CONFIG_KERNEL_SHELL=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_NAME=y

contents of my code file
#define UART_DEVICE_NODE DT_CHOSEN(zephyr_shell_uart)
const struct device *g_dbg_uart_dev = DEVICE_DT_GET(UART_DEVICE_NODE);

#define DBGS_HDLR_STACK_SIZE	1024
#define DBGS_HDLR_PRIORITY	7/*(CONFIG_NUM_PREEMPT_PRIORITIES - 1)*/

static void dbgs_hdlr2(void *p1, void *p2, void *p3)
{
	ARG_UNUSED(p1);
	ARG_UNUSED(p2);
	ARG_UNUSED(p3);

	while(1)
	{
		print_uart("alive2\r\n");
		k_msleep(100);
		//k_sleep(K_FOREVER);
	}
}
static void dbgs_hdlr(void *p1, void *p2, void *p3)
{
	ARG_UNUSED(p1);
	ARG_UNUSED(p2);
	ARG_UNUSED(p3);

	dbg_ser_init();

	while(1)
	{
		print_uart("alive\r\n");
		k_msleep(300);
		//k_sleep(K_FOREVER);
	}
}
/*
 * callback for interrupt handler
 */
static void dbgs_int_cb(const struct device *uart_dev, void *user_data)
{
	uint8_t c;

	if (!uart_irq_update(uart_dev)) {
		return;
	}

	while (uart_irq_rx_ready(uart_dev)) {

		uart_fifo_read(uart_dev, &c, 1);

	}
}

/*
 * Print a null-terminated string character by character to the UART interface
 */
void print_uart(char *buf)
{
	int msg_len = strlen(buf);

	for (int i = 0; i < msg_len; i++) {
		uart_poll_out(g_dbg_uart_dev, buf[i]);
	}
}

void dbg_ser_init(void)
{
	if (!device_is_ready(g_dbg_uart_dev)) {
		printk("UART device not found!");
		return;
	}
	return;
}
K_THREAD_DEFINE(dbg_ser, DBGS_HDLR_STACK_SIZE, dbgs_hdlr, NULL, NULL, NULL,
		DBGS_HDLR_PRIORITY, 0, 0);

K_THREAD_DEFINE(dbg_ser2, DBGS_HDLR_STACK_SIZE, dbgs_hdlr2, NULL, NULL, NULL,
		DBGS_HDLR_PRIORITY, 0, 0);

zephyr version
VERSION_MAJOR = 3
VERSION_MINOR = 0
PATCHLEVEL = 99
VERSION_TWEAK = 0
EXTRAVERSION =

To Reproduce
west build -b arduino_nano_33_ble
west flash --bossac=/home/asethi/Desktop/BOSSA/bin/bossac

Expected behavior
I expect a stream of output on the serial line
Impact
well cannot run a non optimized build, and not sure if the system is running just by fluke by turning on optimization.
Logs and console output
*** Booting Zephyr OS build zephyr-v3.0.0-3507-g6388778fb17d  ***
alive
alive2

Environment (please complete the following information):

OS: Linux
below are the build logs

[0/1] Re-running CMake...
-- Application: /home/asethi/Desktop/ble_gw/app
-- Cache files will be written to: /home/asethi/.cache/zephyr
-- Zephyr version: 3.0.99 (/home/asethi/Desktop/ble_gw/zephyrproject/zephyr)
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: arduino_nano_33_ble
-- Found host-tools: zephyr 0.13.2 (/home/asethi/zephyr-sdk-0.13.2)
-- Found dtc: /home/asethi/zephyr-sdk-0.13.2/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.13.2 (/home/asethi/zephyr-sdk-0.13.2)
-- Found BOARD.dts: /home/asethi/Desktop/ble_gw/zephyrproject/zephyr/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
-- Generated zephyr.dts: /home/asethi/Desktop/ble_gw/app/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/asethi/Desktop/ble_gw/app/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/asethi/Desktop/ble_gw/app/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /home/asethi/Desktop/ble_gw/app/build/zephyr/dts.cmake
Parsing /home/asethi/Desktop/ble_gw/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/asethi/Desktop/ble_gw/app/build/zephyr/.config'
No change to configuration in '/home/asethi/Desktop/ble_gw/app/build/zephyr/.config'
No change to Kconfig header in '/home/asethi/Desktop/ble_gw/app/build/zephyr/include/generated/autoconf.h'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asethi/Desktop/ble_gw/app/build
[1/53] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[2/53] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[3/53] Generating include/generated/offsets.h
[4/53] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[5/53] Building C object CMakeFiles/app.dir/src/global_data.c.obj
[6/53] Building C object CMakeFiles/app.dir/src/main.c.obj
[7/53] Building C object CMakeFiles/app.dir/src/dbg_serial.c.obj
../src/dbg_serial.c:48:13: warning: 'dbgs_int_cb' defined but not used [-Wunused-function]
   48 | static void dbgs_int_cb(const struct device *uart_dev, void *user_data)
      |             ^~~~~~~~~~~
[8/53] Linking C static library zephyr/libzephyr.a
[9/53] Generating linker_zephyr_pre0.cmd
[10/53] Linking C static library app/libapp.a
[11/53] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[12/53] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[13/53] Generating linker_zephyr_pre1.cmd
[14/53] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[15/53] Building C object zephyr/boards/arm/arduino_nano_33_ble/CMakeFiles/boards__arm__arduino_nano_33_ble.dir/board.c.obj
[16/53] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[17/53] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[18/53] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[19/53] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uart.c.obj
[20/53] Linking C static library zephyr/boards/arm/arduino_nano_33_ble/libboards__arm__arduino_nano_33_ble.a
[21/53] Linking C static library zephyr/drivers/clock_control/libdrivers__clock_control.a
[22/53] Linking C static library zephyr/drivers/console/libdrivers__console.a
[23/53] Linking C static library zephyr/drivers/gpio/libdrivers__gpio.a
[24/53] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[25/53] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[26/53] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[27/53] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[28/53] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[29/53] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[30/53] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[31/53] Linking C static library zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a
[32/53] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[33/53] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[34/53] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[35/53] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[36/53] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[37/53] Linking C static library zephyr/drivers/pinctrl/libdrivers__pinctrl.a
[38/53] Linking C static library zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a
[39/53] Linking C static library zephyr/kernel/libkernel.a
[40/53] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[41/53] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[42/53] Linking C static library zephyr/lib/libc/minimal/liblib__libc__minimal.a
[43/53] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[44/53] Linking C static library zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a
[45/53] Linking C executable zephyr/zephyr_pre0.elf

[46/53] Generating dev_handles.c
[47/53] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[48/53] Linking C executable zephyr/zephyr_pre1.elf

[49/53] Generating linker.cmd
[50/53] Generating isr_tables.c, isrList.bin
[51/53] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[52/53] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[53/53] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       61760 B       928 KB      6.50%
            SRAM:       25536 B       256 KB      9.74%
        IDT_LIST:          0 GB         2 KB      0.00%

@aloksethi could you please show us  your prj.conf with all stack sizes increased?

@carlescufi  I used CONFIG_PRIVLEGED_STACK_SIZE=4096 in my prj.conf
For increasing the stack size of threads I just passed the increased size to K_THREAD_DEFINE.
Is there any other size that should have been increased?

@anangl thanks. i will check it.

@anangl btw how did you figure it out that the culprit is idle thread? basically is there any good thread aware debugging tool?


Update find-bugs to generate a report

Note: This PR is just rebased https://github.com/openshift/elliott/pull/33
find-bugs has value as it lets us define exactly which bugs will be
attached to an advisory based on declaritive filters. This update will
allow users to see more useful information about those bugs other than
just the IDs.
without --report flag:
$ elliott --group=openshift-4.1 find-bugs --id 1755350
2019-10-14 15:41:32,183 INFO Data clone directory already exists, checking commit sha
2019-10-14 15:41:36,647 INFO git@gitlab.cee.redhat.com:openshift-art/ocp-build-data.git is already cloned and latest
2019-10-14 15:41:36,747 INFO Using branch from group.yml: rhaos-4.1-rhel-7
Found 1 bugs: 1755350

with --report flag:
$ elliott --group=openshift-4.1 find-bugs --id 1755350 --report
2019-10-14 15:41:20,802 INFO Data clone directory already exists, checking commit sha
2019-10-14 15:41:24,593 INFO git@gitlab.cee.redhat.com:openshift-art/ocp-build-data.git is already cloned and latest
2019-10-14 15:41:24,688 INFO Using branch from group.yml: rhaos-4.1-rhel-7
Found 1 bugs: 1755350
ID       COMPONENT                 STATUS       SCORE   AGE        SUMMARY
1755350  Release                   VERIFIED     0       19  days   Placeholder bug for OCP 4.1.z rpm release

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@44da8ce). Click here to learn what that means.
The diff coverage is 0%.

@@           Coverage Diff            @@
##             master     #58   +/-   ##
========================================
  Coverage          ?   31.8%
========================================
  Files             ?      22
  Lines             ?    1987
  Branches          ?     330
========================================
  Hits              ?     632
  Misses            ?    1331
  Partials          ?      24

Impacted Files
Coverage Δ

elliottlib/bzutil.py
29.68% <0%> (ø)

Continue to review full report at Codecov.

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

Would like to print a link to bugzilla

Would like to print a link to bugzilla

+1 to this

/lgtm


Azure DevOps Hosted Agent

From Prerequisites => Azure DevOps:

Make sure that you've created a self-hosted Azure DevOps VM agent or use an Azure DevOps hosted agent.

However, a few paragraphs down, in Prerequisites => Azure Synapse Analytics, only the self-hosted option is described.
Can the article be clarified to explain the prerequisites needed to deploy with hosted agents?

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

ID: de000363-1626-b5b3-2e13-bff9c8855955
Version Independent ID: ff8b1409-77fe-1d98-4131-8ce7bdd16c6d
Content: Continuous integration & delivery in Azure Synapse Analytics - Azure Synapse Analytics
Content Source: articles/synapse-analytics/cicd/continuous-integration-delivery.md
Service: synapse-analytics
Sub-service: cicd
GitHub Login: @liudan66
Microsoft Alias: liud

@VitalyMCT
Thanks for your feedback! We will investigate and update as appropriate.

@VitalyMCT
Please look this below screenshot for your reference

@RamanathanChinnappan-MSFT Sorry, I do not see any connection between this ticket and the items you've highlighted.

@VitalyMCT
Thanks for your feedback! We have assigned the issue to author and will provide further updates.

@liudan66
could you please review this and update as appropriate.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


As a user, I want the items list page updated as soon as I change search terms, filters, or results page so that I can refine my search without losing my place in the form and have results load more quickly.

testing notes
this issue is tested as part of #226. if you find any problems specifically related to the automatic loading of search results, please note them here.

Blocked until we have at least one filter or search input.

unblocking, moving to current milestone and downgrading to 1pt because all that needs to happen for initial implementation is copying code from the members search.
initial implementation will just be for page controls and keyword search; as we add more filters to the books search page, making them async is folded into their respective stories.

Yes this worked perfectly in #226!


About batch_size ang gpu

Thanks for your code!I have two questions.
1.Is bs only set to 1?Because the speed is so slow,i want to increase bs,but when runs it can have orror.What's the problem?
2.When i use cpu the speed is slow with when i use gpu?Why?Where should i modify?
Thank you!

The code currently only supports batch size 1 :(, because it was easier to code it that way. We plan to allow bigger batch sizes in the future.

GPUs are way faster than CPUs for almost any deep learning method. Are you wondering why the CPU version is slower?

The code currently only supports batch size 1 :(, because it was easier to code it that way. We plan to allow bigger batch sizes in the future.
GPUs are way faster than CPUs for almost any deep learning method. Are you wondering why the CPU version is slower?

Thanks for your code!And the last problem has been settled.
Recently,wo want to use LCFCN to train my own dateset.My dateset has only 1000 images and when i trained  about 100 epochs,the loss converges.I s this normal?Because your trancos dateset runs about 100epochs.
On the other hand, i want to get your advice.Should i cancel the test set and keep only the validation se


Kadene's Algorithm

This would contain the most efficient subarray operation for sum and etc..

@inimitable034 , kadane's algorithm is already present in C and C++.
Always mention the language in which you want to solve this in the issue description.

Okayy
i will keep that in mind .
I would like to solve in java

Okay cool, you can go ahead !

Can I solve kadane's algorithm in python. Can you please assign me

@smv1999, I can solve this problem in Java with Time Complexity: O(N)

@KeerthanaPravallika please create a new issue.

@inimitable034, are you still working on it ?

@inimitable034 please use one PR for each language, others are free to open the issues in different languages which are not present their

@inimitable034, are you still working on it ?

yes sir