EXC_BAD_ACCESS crash with iOS 15.2

Describe the bug
When adding a type erased dispatch queue to my composable architecture environment, I found a run time error that occurs when the queue is erased to AnyScheduler.  The code builds successfully, but as soon as it tries to load the app, it crashes, pointing to the "eraseToAnyScheduler()" call.  This also occurs if I try to type erase locally with a labeled queue.
To Reproduce
schedularTest.zip
public struct HomeEnvironment {
  public var mainQueue: AnySchedulerOf<DispatchQueue>

  public init(
    mainQueue: AnySchedulerOf<DispatchQueue>
  ) {
    self.mainQueue = mainQueue
  }
}

@main
struct schedularTestApp: App {
  var body: some Scene {
    WindowGroup {
      ContentView(
        store: .init(
          initialState: HomeState(),
          reducer: homeReducer,
          environment: HomeEnvironment(mainQueue: .main)
        )
      )
    }
  }
}

Expected behavior
Scheduler is successfully erased and the app doesn't crash 🥲
Screenshots

Environment

Xcode 13.2
Swift 5
OS: iOS 15.2

Additional context
This bug was initially found when the preview would crash with no feedback. I then built out a specific preview target to try and run on the simulator. This also crashed, but gave me a stack trace that pointed to the erasing of the scheduler. Because my project was pretty intense, I created a new small test project to see if it was my project or the framework (see zipped project).  Even in just this small app that only imports the latest release of the composable architecture, the bug still persists. I then tested on a device, and the bug was not there.  My device was running iOS 15.1.  I downloaded the 15.0 simulators and those do not have this bug either.  It only appears to occur with iOS 15.2.

Hi @FlyDaddyDev,
I'm not able to reproduce the problem when I run your sample project. It seems to run just fine:

I'm using Xcode 13.2 and then iOS 15.2 simulator.
Honestly it would be very strange for Swift to crash when erasing a scheduler. There isn't anything all that special happening in those lines of code. It feels like there may be something else going on.
Could you paste the stack trace of where the crash is happening? You should be able to just highlight all the stacks from Xcode and paste them into this issue.

Hey @mbrandonw,
Thanks for taking a look into this.  I agree with your statement about it failing on erasing a scheduler, and I was assuming it is probably something on my end since you haven't been hounded about this issue since 15.2 came out.  I've attached a screen shot, and the stack trace.  Hopefully it has all the details you were looking for.

#0	0x0000000180a189f8 in swift::_getWitnessTable(swift::TargetProtocolConformanceDescriptor<swift::InProcess> const*, swift::TargetMetadata<swift::InProcess> const*, void const* const*) ()
#1	0x000000010045510c in lazy protocol witness table accessor for type OS_dispatch_queue and conformance OS_dispatch_queue ()
#2	0x000000010045502c in static AnyScheduler<>.main.getter at /Users/markheussner/Library/Developer/Xcode/DerivedData/schedularTest-fgabbmfosgjjgldhzymcnwzdvonu/SourcePackages/checkouts/combine-schedulers/Sources/CombineSchedulers/AnyScheduler.swift:248
#3	0x0000000100362c2c in closure #1 in schedularTestApp.body.getter at /Users/markheussner/Desktop/Development/schedularTest/Shared/schedularTestApp.swift:18
#4	0x000000010c352364 in WindowGroup.init(content:) ()
#5	0x0000000100362a8c in schedularTestApp.body.getter at /Users/markheussner/Desktop/Development/schedularTest/Shared/schedularTestApp.swift:13
#6	0x0000000100362dec in protocol witness for App.body.getter in conformance schedularTestApp ()
#7	0x000000010bdfa354 in partial apply for closure #1 in AppBodyAccessor.updateBody(of:changed:) ()
#8	0x000000010c3453f4 in closure #1 in BodyAccessor.setBody(_:) ()
#9	0x000000010bdf9c1c in AppBodyAccessor.updateBody(of:changed:) ()
#10	0x000000010c3455b0 in StaticBody.updateValue() ()
#11	0x000000010c513780 in partial apply for implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<τ_0_0>(_:) ()
#12	0x00000001021d1d20 in AG::Graph::UpdateStack::update() ()
#13	0x00000001021d22cc in AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) ()
#14	0x00000001021d88d0 in AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long) ()
#15	0x00000001021ee628 in AGGraphGetValue ()
#16	0x000000010c3454a0 in StaticBody.container.getter ()
#17	0x000000010c345594 in StaticBody.updateValue() ()
#18	0x000000010c513780 in partial apply for implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<τ_0_0>(_:) ()
#19	0x00000001021d1d20 in AG::Graph::UpdateStack::update() ()
#20	0x00000001021d22cc in AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) ()
#21	0x00000001021d88d0 in AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, long) ()
#22	0x00000001021ee628 in AGGraphGetValue ()
#23	0x000000010c352c58 in WindowGroupSceneList.MakeList.id.getter ()
#24	0x000000010c352cf4 in WindowGroupSceneList.MakeList.updateValue() ()
#25	0x000000010bd60778 in partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<τ_0_0>(_:) ()
#26	0x00000001021d1d20 in AG::Graph::UpdateStack::update() ()
#27	0x00000001021d22cc in AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) ()
#28	0x00000001021d81ac in AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&) ()
#29	0x00000001021ee674 in AGGraphGetValue ()
#30	0x000000010bdf8f20 in AppGraph.sceneList() ()
#31	0x000000010c74d594 in AppSceneDelegate.makeSceneHost(restorationSceneItemID:restorationData:userActivity:urlContexts:) ()
#32	0x000000010c74bc2c in AppSceneDelegate.scene(_:willConnectTo:options:) ()
#33	0x000000010c74c4e0 in @objc AppSceneDelegate.scene(_:willConnectTo:options:) ()
#34	0x00000001222b9a30 in +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] ()
#35	0x0000000122e740ec in -[UIApplication _connectUISceneFromFBSScene:transitionContext:] ()
#36	0x0000000122e74588 in -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] ()
#37	0x0000000122948904 in -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] ()
#38	0x0000000105ae5a84 in -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] ()
#39	0x0000000105b11cec in __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.180 ()
#40	0x0000000105af4160 in -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] ()
#41	0x0000000105b11908 in __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke ()
#42	0x0000000101781694 in _dispatch_client_callout ()
#43	0x00000001017849cc in _dispatch_block_invoke_direct ()
#44	0x0000000105b379a0 in __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ ()
#45	0x0000000105b37878 in -[FBSSerialQueue _targetQueue_performNextIfPossible] ()
#46	0x0000000105b379d0 in -[FBSSerialQueue _performNextFromRunLoopSource] ()
#47	0x00000001030792c0 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#48	0x00000001030791c8 in __CFRunLoopDoSource0 ()
#49	0x00000001030785b8 in __CFRunLoopDoSources0 ()
#50	0x0000000103072b9c in __CFRunLoopRun ()
#51	0x00000001030723a8 in CFRunLoopRunSpecific ()
#52	0x00000001015935ec in GSEventRunModal ()
#53	0x0000000122e727ac in -[UIApplication _run] ()
#54	0x0000000122e772e8 in UIApplicationMain ()
#55	0x000000010c58c7f4 in closure #1 in KitRendererCommon(_:) ()
#56	0x000000010c58c750 in runApp<τ_0_0>(_:) ()
#57	0x000000010bfe24f4 in static App.main() ()
#58	0x0000000100362d74 in static schedularTestApp.$main() at /Users/markheussner/Desktop/Development/schedularTest/Shared/schedularTestApp.swift:10
#59	0x0000000100362e14 in main ()
#60	0x000000010092dca0 in start_sim ()
#61	0x00000001009e50fc in start ()
Thread 2 Queue : com.apple.root.background-qos (concurrent)
Thread 3Thread 4Thread 5com.apple.uikit.eventfetch-thread (6)Thread 7Thread 8Thread 9

Update:  It looks like the issue is specific to Xcode 13.2.  I opened my test project on my other computer that has Xcode 13.2.1 and the issue does not present itself.   I'm assuming the first listed bug fix might be the issue I'm seeing that was fixed with 13.2.1.

Ah yeah, that does seem likely to be the issue. Looks like I was testing in Xcode 13.2.1, not 13.2 like I originally stated.
Do you think we should close this issue out? Or convert to a discussion?

Closing is fine.  I'm sure most are already on 13.2.1 and if not, this issue will be here if they come looking for help 😄

Hey @mbrandonw,
I started a new project on Xcode 13.3.1 with Swift 5.6 and I can confirm that I have the same issue on iOS 15.4 simulator.
EXC_BAD_ACCESS on _getWitnessTable


NoSuchMethodError using assertJ 3.6.2

With the new version of assertJ like 3.6.2 I get the following error:
java.lang.NoSuchMethodError: org.assertj.core.api.Assertions.assertThat(Ljava/util/List;)Lorg/assertj/core/api/AbstractListAssert; at com.revinate.assertj.json.JsonPathAssert.jsonPathAsListOf(JsonPathAssert.java:54)

Thanks for reporting. I will take a look


--proxy option didn't work for me

Hi, I tried setting the proxy option, using both localhost:1234 and http://localhost:1234 notation, but it didn't go through. I know because I tried setting a proxy address that doesn't exist (e.g. localhost:9876) and it still worked.

I did get it working through your Node module - thanks so much for the great work.
Note: I only managed to figure out how to add a proxy by studying this file. More documentation needs to be added to the Nodejs module regarding using a proxy (an example would be great).


autocomplete in strings

I've installed VS Code. Now how do I enable auto completion inside comments?
I found some other issues mention Editor.wordBasedSuggestions, so I took a look. By default it is enabled, but I still have no autocompletion inside comments.

Do they show up when you press ctrl+space? If so then you may just need to set
"editor.quickSuggestions": {
        "comments": true,
},

@roblourens Ah, indeed I can press ctrl+space and I get completions.

"editor.quickSuggestions": {
        "comments": true,
},

That indeed does the trick. It's not obvious that this is what I was looking for. I can't seem to find it on Google docs. Plus, the UI for it says "Edit in settings.json", and clicking in that button takes me to settings.json, but does not tell me what I need to edit (it does not add the setting with default values).

In general discoverability for settings is a bit low, because

- the lack of UI for edit-in-settings.json settings doesn't explain the options like for other settings with UI
- it wasn't obvious to hit the gear cog and copy the setting _before_ going to settings.json
- I can't seem to find the documentation for it (even if it exists, I'm not having luck Googling)

I feel like (and maybe its just my opinion), that this setting should be on by default, and that the enter key should not autocomplete by default. From what I _was_ able to Google, people were complaining that auto-complete in comments was annoying due to the `enter` key not making new lines, or automatic completion insertion. It may otherwise not be so bad if those things were turned off by default.

- https://github.com/microsoft/vscode/issues/11704
- https://github.com/Microsoft/vscode-cpptools/issues/295
- https://github.com/Microsoft/vscode/issues/9504
- https://github.com/Microsoft/vscode-python/issues/34

Searching on Google took me to those, rather than to documentation. It'd be sweet to have better documentation (I know, all developers' dream! 😄).

But what I do gather from those results is that most people have the feeling that "autocomplete annoyingly tries to complete in comments".

But us developers, we like to be able to speed up our workflows too.

So, to make worfkflows faster, without annoyance, I think we need:

- enabled completion suggestions everywhere (including comments).
- _do not try to perform the completion_ automatically. The _only_ way to complete by default should be with a single key (`Tab` by default).

I am very fast when I am in control. I know when I need completion, so I hit `Tab`. It is also nice to know that while I'm typing I can see that auto-completions _are available_ (and not automatically performed). I can very quickly press `Tab` when I need it.

Other users can further customize and enable the other automatic features if they wish.

Sidenote: I've noticed that sometimes I have gotten completion suggestions in certain comments (without modying the above mentioned settings). So I was under the impression that it was working some percentage of the time. Maybe this is language based.
Thanks for the tip!

Yeah the "Edit in settings.json" experience is not great currently and there is an issue to revisit that.
As for the other autocomplete changes, everyone has their own preferences so this is why we have settings 😁 I don't think we should change the defaults now


File system limitations

There are some practical limitations that we must consider for hard links and consistent snapshots.
For example, ext4 limits the number of hard links to a file to 65K. This will not have immediate impact, except when enough consistent snapshots have been produced, so our code must be able to handle this.
The other limit that I ran into the other day was filename size: most modern filesystems limit file paths to 255 characters. If a package name is sufficiently long, then prepending its digest can induce this problem. One way to work around the problem is to simply rename the hard link to simply its hash value; there will be no mimetype problem if we correctly rename the downloaded file.

Not a problem on modern OSes. Will reopen if someone sees this in production.


added hoverable list in feeds section

Added list to feeds section showing list of likers on hover as addressed in issue #21

please review @sebastian-code!!

Thanks @chetanya-shrimali for the PR, please, change line 64 in .gitignore file to something more generic, to keep out the idea files and folder outside the git control.

Hi @chetanya-shrimali after some testing I found than the code has the following bugs:

Hovering the cursor over the like button, only shows your name, no matter how many users liked the feed post.
Hovering the cursor only shows the likers list when the logged in user liked that feed post.
The functionality doesn't works in realtime; when you like a feed post, you need to reload the page to show you the list of likers, but still shows you only your name, as stated in the first error.

Please fix it.

Okk!! I'll fix it! But please tell me more about 2nd point. Also when i tried logging in with 2 different accounts. It gave me both the users who liked. Still i try to figure it out. Also do we have a gitter channel for bootcamp?

To answer your question on the 2nd point, the functionality only works if the user has liked that feed post previously, if the user is still able to like the feed post, the functionality doesn't work.

Sebastian-code I want to add admin feature in this website so I can supervise the content and feeds posted by users, but I'm getting an error and unable to do it in conventional way (setting admin in url and settings) what should I do?/

Hey, @sebastian-code I was recently working on the pr and how do you think we should solve the refresh in real-time issue. shall we use Knockout js?

I personally dislike to add libraries when the project is only going to use it only once, and just for that small activity. Bootcamp relies a lot on AJAX calls to update this kind of information, isn't that enough?
The other thing is than I'm planning to incorporate WebSockets (maybe with django-channels... someday... hopefully) which in turn deprecates AJAX and many other libraries, and I want to avoid unnecessary efforts to achieve this migration.

Yaa, that's true @sebastian-code. AJAX would do the task.

I'll use setInterval() function.

Hi @chetanya-shrimali this is great, now the problems 1 and 2 are solved, thanks for that; at this point only the third error persists.
When you like a feed post, the list doesn't updates for none of the logged in users, and all of them need to reload the page to be able to see the list of users who liked that feed post.

Yaa, @sebastian-code only problem that persists is the update in real-time. I was getting an error on AJAX calls regarding the url.

Have you considered using a new AJAX view to answer that call?

Hey sebastian whenever I set DEBUG=False it stops serving static files (pictures) , what should I do about that?

Hi @NothingxFluctuation
Please remember than that request is not related to this topic, being this a discussion about a PR to the project. What you are asking is related to support.
To answer your question, that happens because when DEBUG = True, the development server from django handles that, but when changed, you require a production deployment setup, using a WSGI server and a proper web server.
For more information I recommend to you to look into the documentation

@sebastian-code can you please elaborate!!

A single view that returns a JSON object just with the desired information to update the components of the DOM.


Publish more than once

If I run publish once, it works:
dotnet publish -r win-x64 -c Release

But if I run the command a second time, the .dll files don't get moved.
It looks like as long as the NetCoreBeauty file that gets generated exists, the .dll files don't get moved.

you are right, once NetCoreBeauty exists, it won't run any more, so the deps.json won't be modified twice and the .dll won't be moved.

this is designed on purpose. the tool expects that the application should be moved or packed and when you publish the second time, the release dir should be nothing in there or be clean up, so when you cross two big different versions this can prevent some weird bugs. but how ever, this will de improved.

Good to know! I'll try to follow that move or pack workflow for my releases.

fixed in v1.1.8
two ways to force beauty:

--force

/path/to/ncbeauty --force /path/to/beauty runtimes

ForceBeauty

<ForceBeauty>True</ForceBeauty>

add into PropertyGroup section in your csproj


Fix pip file deps conversion

Fix for determining if a package name is a locally installed package.  I ran into this because a project I work on depends on the ansible Python package and has a top-level ansible/ directory which is not a Python package.
The current logic detects the ansible/ filesystem directory as a Python package file installation and sets the package name to the hash of the directory path, which is nonsense.  Then, pip tries to uninstall something like deadbeef and fails, not uninstalling anything after that non-existent "package".
I kept this change simple and stupid as I believe that the file (un)installation support is really just about files, and I didn't want to drag importlib into this.
re:

https://github.com/kennethreitz/pipenv/pull/818
https://github.com/kennethreitz/pipenv/pull/868

good catch, I was knee deep in some of this stuff when I wrote it so I didn't have the wherewithal to step back from this. This is a good fix.

Thanks @krismolendyke!

🙇


ci: Fix Docker scan action

This should've been done originally as part of https://github.com/meltano/meltano/pull/6562. The lines I ran locally to test it included the jq step, but I mistakenly didn't update the action with it.

Successful run here: https://github.com/meltano/meltano/actions/runs/2813497937
Apparently we can run workflow dispatch runs for PRs. Maybe that's a new feature? I wasn't able to find any reference for doing that on any of the several previous times I checked. In any case, this feature will make changes to workflow dispatch events far easier to develop.


Error during integration setup

During setup of DWD integration the following error message apears:
Der Konfigurationsfluss konnte nicht geladen werden: {"message":"Invalid handler specified"}
Version of home_assistant
Core
2024.10.3
Supervisor
2024.10.2
Operating System
13.2
Frontend
20241002.3
Version of the custom_component
newest version of integration used
Debug log
not available

Same over here. Already tried v.2.1.18. Same error.

Please see #159. It has the same cause.

I have the same problem. Notification after update to Core 2024.10.3: "Invalid config
The following integrations and platforms could not be set up:
[dwd_weather]

Please check your config and [logs]"

Please see #159. It has the same cause.

This is #159 🤷🏼

My bad, I'm on mobile. I mean #157

Thank you very much, the DWD update to version v2.1.19 has solved the problem, everything is working perfectly again for me. I will buy you a coffee... ;-)

@hoxm90 Thanks for reporting and glad to hear that. And thank you for the coffee. I'll enjoy it during the next coding session. Currently I'm on vacation 😉

No problem, have a nice vacation! 😉

Works after update. Thanks

Done

Unfortunately the latest version doesn't work for me. Had the same issue as also described in 155 and 159, though I cannot get it to work again. Even a downgrade of the core doesn't make it work. I guess the unzip library on my system is already ahead of the version the bug fix was freezing this wonderful piece of work.
Hope a future version will work again as I am using the data from this to override my heating system, generating quite a substantial amount of savings through this :-)


Add custom object hooks

This adds a functionality for overriding/customising the structured object logged at request received/success/error. It is like the custom[Received|Success|Error]Message hooks, but works on customising the structured object.
It was opted not to overload *Message due to that being specifically about messages, and the risk that adjusting that could break an existing usage of that hook.
The README has been updated with example usage.

Thanks for opening a PR! Can you please add a unit test?

Thanks for feedback. I have now added tests as an extra commit.

Hi @mcollina,
I have addressed your feedback. I have also converted the common repeated pattern of (since I believe it further simplified what was being expressed.)
const someEffectiveValue = opt.someOption && opt.someOption === 'function' ? opt.someOption : SomeDefaultOption;
to:
 const someEffectiveValue = getFunctionOrDefault(opt.someOption, SomeDefaultOption);


Support skipping fields in Queryable derive (falls back to Default impl)

Not sure if there was a feature request for this, but I happened to need it and felt it wouldn't be too hard to implement.
Does this seem reasonable? (We perhaps just want this also be available on the other derives?)

Would love if this were to be picked up again :)

The problem here is not workforce but the decision on the relevant discussion. If you have new insights on the topic feel free to add them there. 🙂


Firefox: forbidden page

Description
When searching DuckDuckGo HTML I get a "forbidden" page.
Steps to Reproduce

Highlight a text on page.
Right click, and select DuckDuckGo HTML search
Page with word "forbidden" is shown.

Expected behavior:

A valid search
Actual behavior:

Se above.
Versions
2019.9.12
Firefox 70.0.1 (64-bit, Swedish version), in Windows 10, version 1909.
Additional Information

Is the issue repeatable or intermittent?
Repeatable

Did this issue start after an upgrade to a new extension version? If so, can you repeat it using a pervious extension version?
Don't know.

Are there any errors in the extension debugging console?
Don't know how to use.

I don't use the extension, but my Firefox also uses the header Origin: null if I right-click some selected text -> Search DuckDuckGo HTML for .... If I open the devtools and repeat the request, I can manually set Origin: https://html.duckduckgo.com, which yields the correct response (however, not shown in the browser). However, setting network.http.sendOriginHeader to 0 or 1 didn't solve the problem for me.

I can't reproduce this in Firefox, closing. Please provide some more details if this is still occurring.

I used to have this issue and can confirm it's no longer a problem


mapping for TF issues

addn was mapped earlier but no longer

org.nd4j.linalg.exception.ND4JIllegalStateException: No tensorflow op found for AddN possibly missing operation class?

To run test change this to say add_n

Same for abs

To run test change this to say g_00

This happens with both executioners.


Delegate group permissions are ignored

Create new delegate user and login as this user.
-> All delegate specific permissions does not work. E.g. there is no new motion button! (for stuff users it works).
Group permissions of delegate user in /rest/users/group are ok (e.g. motions.can_support). So it seems to be a client problem with group delegate.

I found the problem in the rest api:
A staff user get for /rest/users/user/42:
{ .. "groups": [3] }
A delegate user gets for /rest/users/user/42:
{ .. "groups_id": [3] }
@normanjaeckel Why the rest api send two different names for groups/groups_id?

@normanjaekel: ping

Hm. The problem is not the delegate but the admin. We need a fix on server and client side:
@emanuelschuetze: Please test the following: Change PrimaryKeyRelatedField to IdPrimaryKeyRelatedField in users/serializers.py. If you do this, the admin now gets groups_id instead of groups. Now you have to change the client so that it expects groups_id when handling permissions.


Updating velero dep after rebase 16 Oct 2023

This also updated the x/net dep to 0.17.0

/retest

/retest

/retest-required
/lgtm

/retest

/retest

fyi splitting out xnet update via dependabot to https://github.com/openshift/oadp-operator/pull/1194

@kaovilai splitting it out just means we have twice as many flaky CI tests to pass, especially since the velero update in this PR automatically pulled in the x/net bump due to the velero requirement for 0.17.0


WIP: Editable Profile UI

I'm going on MAT leave and I didn't finish this yet. DO NOT MERGE.

Needs to be cleaned up . I think I can separate some of the functions into util files.
Need to fix a bug (if you edit the profiles.yaml file..the VS code UI doesn't refresh and reflect the changes)
Need to make the UI look more aesthetic

(Hoping to casually finish this and continue to contribute to the extension MAT leave to avoid extreme boredom)
https://github.com/user-attachments/assets/e9aed671-d1a3-4ae9-a615-6a86324c6925

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1208781373740459


Blockchain: Full verification of blocks

Currently verify only validates if the first TX is a minerTX and that all others can't be a minerTX.

Looks like this still needs done - in fact, it looks like the v2dev branch does even less verification than master.

Valid for master branch and dev also, dev really doesn't do any verification at all. But it needs to be expanded with more details on missing checks (I'll skip that for a moment).

There are some TODOs in the code also around verification path:
pkg/core/block.go:      // TODO: When full is true, do a full verification.
pkg/core/block_base.go: // TODO: Need a persisted blockchain for this.


Custom Resources don't have Icons in FileSystem dock

Godot version
3.x (Probably 4 too, haven't checked yet)
System information
Windows
Issue description
When creating a Custom Resource (which we will call from now on CR for short) and giving it an Icon, everything works fine.

You can see the Icon normally when creating the CR in the Resource List.

But somehow, when in the FileSystem dock, the Icon is replaced by a default file Icon.

I've checked, and seems like this problem has been here for a long time. Does anyone know how to fix it? I hope if someone knows how, they'll do it for Godot 3 too. Also, I DO have checked for older versions of Godot, and it also didn't work. I still haven't checked Godot 4 because my graphic card is too old to support GLES3, so go see if it works there.
Steps to reproduce
Just create a CR, give it a Class Name and Icon, create a new instance of this CR and save it to the Project folder, then the Icon doesn't appear in the FileSystem dock.
Minimal reproduction project
project.zip

Can confirm for v4.0.beta10.mono.official [d0398f62f]

Duplicate of #32706


Add tags and grouped operation ids

This PR contains only metadata updates:

Remove Async suffix from operationIds to avoid generating autorest method names like FooAsyncAsync
Add Tags so that operations are grouped
Add underscores to operationIds to make use of autorest method grouping

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

@yangyuan: we see a JAVA SDK is failing due to related toolset issue. Please advise. Thanks much!


removed references to the users table

It seems like verifyToken works, as if you pass it a faulty token it will fail. However I got it to work by passing it a token I scrounged from the internet, so it seems it will accept any valid token, regardless of source.


Missing destructor

TMapFileWriter in UDataIO.pas needs a destructor to free a TStringBuilder instance.

Worth adding code to debug version to report memory leeks on shutdown to find any other memory leaks


[REQ] Utilize GitHub Arm runners

What kind of request is this?
None
What is your request or suggestion?
GitHub released arm-based runners in beta. Once it is GA, it could be good to run integration tests on arm64 as well.
Are you willing to submit PRs to contribute to this feature request?

[ ] Yes, I am willing to implement it.

Hey is this issue still open?If so,  I would like to work on it

These are not available yet for non-team/enterprise plans

We expect to begin offering Arm runners for open source and personal accounts by the end of the year.


Incorporate support for Strings - Unicode

Can the basictype string be a list of unicode characters (instead of ascii)?
Does Haskell support unicode?
Does smt-lib support unicode?
Does a SMT problem-solver exist that support unicode?

Which basic datatypes should torxakis support? See also #287 and #410

Does Haskell support unicode?

Yes, the text package does.
I'm labeling this as a (potential) performance improvement item, since we will move from String to Text.

We also need to consider the support of CVC4 and Z3 for Unicode.
See e.g. limitations on http://cvc4.cs.stanford.edu/wiki/Strings:
The current version of the solver supports ASCII characters only. We might move on to UNICODE in future versions.
and https://rise4fun.com/z3/tutorialcontent/sequences who only talks about ASCII

See    http://smtlib.cs.uiowa.edu/theories-UnicodeStrings.shtml for the specification of an SMT-LIB 2 theory of strings and regular expressions.


Autocomplete should select names that are shorter if multiple matches exist

When I attempt to type something like inc, where there are other potential matches which start with the same letters, the auto-completion logic in ASM Dude seems to favor the longer options over the shorter ones. This makes it difficult to type things like inc, because when I hit Space it autocompletes to include. I think it should choose the shortest match instead.

Thanx for reporting this annoyance. I've fixed it immediately. The next version (after <IP_ADDRESS>) will have the keywords ordered in shortlex order instead of the default lexicographic order.

Great! Thanks.


vm: add PACKMAP/PACKSTRUCT, extend UNPACK

See neo-project/neo-vm#443.
TODO: tests, compiler.

Are they free (no price)?

They cost the same as PACK, so we shouldn't forget to add the price.


Docs: Add Contribution Guidelines

Template: https://gist.github.com/PurpleBooth/b24679402957c63ec426

Done


KPP (Patch Guard)

Somebody walked KPP?

this isn't a issue, better post such questions at unknowncheats or somewhere


sitl_gazebo: update submodule to latest master

This should fix the CI errors in https://travis-ci.org/PX4/sitl_gazebo.

@julianoes what errors are you trying to fix on sitl_gazebo?

The source of the CI errors on sitl_gazebo is explained here https://github.com/PX4/sitl_gazebo/pull/250#issuecomment-441066686.

@TSC21 huh, so we can't update mavlink here?

CI on sitl_gazebo is totally independent from the PX4 Firmware. It is dependent though of the used containers. But is also dependent on the ROS Mavlink version, since in two of the build jobs, you are building inside a catkin workspace.

Ah thx. Well that's messy :sob:

I believe we should still just go ahead and update mavlink everywhere, right?

Well I agree but mavlink-gbp-release is dependent on @vooon.


[SPARK-30247][PySpark] GaussianMixtureModel in py side should expose gaussian

What changes were proposed in this pull request?
expose gaussian in PySpark
Why are the changes needed?
A GaussianMixtureModel contains two parts of coefficients: weights & gaussians. However, gaussians is not exposed on Python side.
Does this PR introduce any user-facing change?
Yes. GaussianMixtureModel.gaussians is exposed in PySpark.
How was this patch tested?
add doctest

Test build #115312 has started for PR 26882 at commit 76b8249.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/20120/
Test PASSed.

Test build #115312 has finished for PR 26882 at commit 76b8249.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged to master

Thanks! @srowen

Sorry for the late reply.
It seems we need to add a corresponding class MultivariateGaussian containing a vector and a matrix in the py side, otherwise the gaussian can not be used in the py side.
In [8]: model.gaussians
Out[8]:
[{'__class__': 'org.apache.spark.ml.stat.distribution.MultivariateGaussian'},
 {'__class__': 'org.apache.spark.ml.stat.distribution.MultivariateGaussian'},
 {'__class__': 'org.apache.spark.ml.stat.distribution.MultivariateGaussian'}]


feature Support alter hdfs storage vault and alter vault's name

Proposed changes

Previously only s3 vault can be altered. This pr adds support of hdfs storage vault.


StateFactory$Builder with -> append

The term append makes more sense for a mutable Builder type

How about add which is more concise

Hmm, that works too. I was thinking more about objects such as StringBuilder, but I guess add is appropriate too as it is the term Guava uses for appending to immutable collection builders, which is what this builder effectively is

add isnt a bad idea.

Updated


Profile page post img fix

#1068  Changed the display property to grid and set the grid-template-columns to evenly divide the posts into three columns, improving the overall visual presentation, also changed prop background-size to object-fit

Thanks for your contribution!


Is it possible to add error detection to SMS send

https://developer.android.com/reference/android/telephony/SmsManager.html#sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent)
It looks like there can be an Intent to receive the status of a sent SMS.

Related to PR #115 and #114

@VahidShir please check this API, and check can you use this in OnSmsDeliveredResult or not?

@soroshsabz  Yes. The PR #115 works, and it returns the result, i.e whether the SMS was delivered successfully or not.


Using readabilityScores to calculate grades

@wooorm , I've merged in the changes for readability to use readabilityScores. That has the changes for stemming the Dale-Chall and Spache to pass base words with approved suffixes, as well as some other minor fixes.


I don't understand why all the tutorials use simple text as messages. We rarely need to queue a string. It would be more useful if these tutorials would also show some serialization/deserialization example

[Enter feedback here]

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

ID: 3bef36ba-42cf-8490-e4a4-f9731d57add2
Version Independent ID: df2e6d1a-4a43-a61d-bd7f-b81b83441154
Content: Quickstart: Azure Queue Storage client library v12 - .NET
Content Source: articles/storage/queues/storage-quickstart-queues-dotnet.md
Service: storage
Sub-service: queues
GitHub Login: @normesta
Microsoft Alias: normesta

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

Thank you for your input @CosminVana! Adding more real-world applications of Queues involving the encoding / decoding of queue content would be certainly interesting. The contents of what is actually placed into the queue in terms of data is sparse by design to avoid distracting from the mechanics of creating, populating and using queues. Given resource priorities, we don't plan on modifying these QuickStart's too extensively in the near future. But we appreciate your taking the time to share you view of how we can improve them.
#please-close


Wait for kubelet-serving signer request also

kubelet-serving csr is created in few sec after kube-apiserver-client-kubelet is approved. Sometime kubelet-serving approved automatic but sometime it remain pending and our bundle is created. kubelet-serving csr request is responsible for kubelet-server cert and if that remain pending then kubelet-server cert is not valid for longer period.
This PR adds another check just to make sure it is approved as soon as created and also add check for cert vailidy for kubelet-server-current certs.

/cherry-pick release-4.12

Any explanations for this "sometimes" behaviour?

@cfergeau it is something related to certificate approver pod but unfortunately I don't have any logs, also it is not 100% reproducible, in my experience out of 10 retry it happen 1-2 times. If it happen again I will try to capture the pod logs.

Any explanations for this "sometimes" behaviour?

@cfergeau it is something related to certificate approver pod but unfortunately I don't have any logs, also it is not 100% reproducible, in my experience out of 10 retry it happen 1-2 times. If it happen again I will try to capture the pod logs.

This sounds like a workaround for an unidentified bug lurking somewhere :-/

Any explanations for this "sometimes" behaviour?

@cfergeau it is something related to certificate approver pod but unfortunately I don't have any logs, also it is not 100% reproducible, in my experience out of 10 retry it happen 1-2 times. If it happen again I will try to capture the pod logs.

This sounds like a workaround for an unidentified bug lurking somewhere :-/

Agree, somewhere in openshift side, right now it is causing some blocking issue so just careful on our side.

right now it is causing some blocking issue so just careful on our side.

Yes, of course we need a workaround of some sort, but until my messages nothing in the PR was explicitly saying that this most likely workarounds some bug some place else.


Create more obvious way to use component just for events

Some devs may want to use this component to generate named events, but not to move around. Currently this is achieved with <a-entity keyboard-controls="enabled: false"></a-entity, which is not a good syntax. enabled: false should disable everything, including events, and there should be separate documented options like movementEnabled: true|false or eventsEnabled: true|false to achieve this.

This would be useful. I've been using KeyPress to handle my keyboard-tied events.


Extends Pi-hole sensor to support the new monitored conditions

Description:
Extends Pi-hole sensor to support the new monitored conditions

domains_being_blocked
queries_cached
queries_forwarded
unique_clients
unique_domains

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#3011

Example entry for configuration.yaml (if applicable):
#configuration.yaml
 - platform: pi_hole
   host: <IP_ADDRESS>
   monitored_conditions:
    - dns_queries_today
    - ads_blocked_today
    - ads_percentage_today
    - domains_being_blocked
    - queries_cached
    - queries_forwarded
    - unique_clients
    - unique_domains

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

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

If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] Tests have been added to verify that the new code works.

@tchellomello thank you for your work on this! I recently setup pi-hole when I saw there was hass a integration for it. Looking forward to having these monitored conditions as well!


add syntax highlight for html on template literals

It would be nice if template literals html get highlight!

@developersoul Can you please provide me with a code snippet for where you mean? Thanks a bunch.

It'd be nice to support it in this way.


[MS Teams] - Single-tenant bots don't work in new Teams client

Steps to reproduce
I have a multi-tenant bot that I'd like to convert into single-tenant.
This bot uses REST API and delegated permissions - built from scratch without using any frameworks.
I was able to get an access token using https://login.microsoftonline.com/TENANT-ID/oauth2/v2.0/token endpoint
But I can't post even a simple "Hello World" message using this token to perform requests to https://smba.trafficmanager.net/teams/v3/conversations/CONVERSATION-ID/activities
The response I get is 401 Unauthorized
{ "message": "Authorization has been denied for this request." }

Expected behavior
Single-tenant bots work exactly like multi-tenant bots
Actual behavior
Single-tenant bots don't support basic functionality
Error details
No response

The 401 Unauthorized error indicates that the access token you are using does not have the necessary permissions to perform the action you are trying to execute. Since you are using delegated permissions, you need to ensure that the token you acquire has the required scopes to post messages to a conversation.
You should decode the access token you obtained from the OAuth 2.0 token endpoint using a tool like jwt.ms to verify the scopes included in the token. Make sure it includes the necessary permissions to post messages to conversations.

Thank you @Prasad-MSFT
Here is my decoded token, and unlike Graph API token, I don't see any permissions in this REST API token:
{
  "typ": "JWT",
  "alg": "RS256",
  "x5t": "qXXXs",
  "kid": "qXXXs"
}.{
  "aud": "https://api.botframework.com",
  "iss": "https://sts.windows.net/7XXX0/",
  "iat": 17......92,
  "nbf": 17......92,
  "exp": 17......92,
  "aio": "EXXXAA=",
  "appid": "2XXX8",
  "appidacr": "1",
  "idp": "https://sts.windows.net/7XXX0/",
  "idtyp": "app",
  "oid": "3XXX5",
  "rh": "0.AXXXry7AAA.",
  "sub": "30XXXb5",
  "tid": "7XXX0",
  "uti": "AXXX3AA",
  "ver": "1.0",
  "xms_idrel": "7 12"
}

Which value are you referring to?
To obtain this token, I am sending a POST request to https://login.microsoftonline.com/TENANT-ID/oauth2/v2.0/token with
{
  "grant_type": "client_credentials",
  "client_secret": "XXX",
  "client_id": "YYY",
  "scope": "https://api.botframework.com/.default"
}

And the response comes:
{
	"token_type": "Bearer",
	"expires_in": 3599,
	"ext_expires_in": 3599,
	"access_token": "eyXXX1w"
}

Could you please try getting the token using https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token request with Post method with below mentioned key and values as the image attached.

Then, add your bot to the Teams and run the REST API as below:

Sure. Because my app is a single-tenant application, I get 400 Bad request response
Body:
{
	"error": "unauthorized_client",
	"error_description": "AADSTS700016: Application with identifier '297XXX58' was not found in the directory 'Bot
 Framework'. This can happen if the application has not been installed by the administrator of the tenant or consented
to by any user in the tenant. You may have sent your authentication request to the wrong tenant. Trace ID:
 17745ef6-897e-4b7d-b3a2-6dc478ce2501 Correlation ID: 2e290edf-431b-4ee4-8d69-d88ba20d7a91
Timestamp: 2024-06-28 14:51:40Z",
	"error_codes": [
		700016
	],
	"timestamp": "2024-06-28 14:51:40Z",
	"trace_id": "17745ef6-897e-4b7d-b3a2-6dc478ce2501",
	"correlation_id": "2e290edf-431b-4ee4-8d69-d88ba20d7a91",
	"error_uri": "https://login.microsoftonline.com/error?code=700016"
}

@Prasad-MSFT can you pelase comment on my response. Thank you in advacne

We will check this at our end and will get back to you. Thanks!

@Prasad-MSFT I'm experiencing the same issue by following the steps described above

Hello @Prasad-MSFT! I confirm that the bot is added and I can even send a message and receive an event on my backend application. But right now this bot can't post any messages back to the user.
Can you confirm that single-tenant bots work fine without botframeworks, but with plain REST API requests?

There is a bug raised for this issue. We will inform you once we get any further update from engineering team. Thanks!

@Prasad-MSFT thanks, please can you share some ticket ID for reference?

@Prasad-MSFT any update? Please share ticket id

Hello, @Prasad-MSFT  could you please share ticket details or any known workarounds for the issue?

@Prasad-MSFT are you able to provide any updates on this issue?

@Prasad-MSFT it's been a month since your last response. Is there any chance I can get some details on this issue?
I see 2 potential outcomes:

Something is wrong on my side. Please point me to the proper steps to fix it.
MS Teams bot can't be a single tenant application. Please share a link to documentation or any other source I can read about that issue.

Which one is correct? Please help me find a solution to the issue that I am stuck with.

@Prasad-MSFT do you have any updates?

@Prasad-MSFT do you have any updates?

Apologies for delay in response. We didn't get the notification somehow. Thank you for your inquiry regarding the status of the bug. We are currently checking in with the engineering team for any updates.
We appreciate your patience and will inform you as soon as we have more information. Thank you!

@Prasad-MSFT
Hi , do you have any updates on this?

@Prasad-MSFT any progress?


Invoice creation fails with HTTP 400

Issue: When triggering the invoice creation, the service does not return a success message. In the pod logs you can see the following error message which is thrown right after the POST call is reaching the action endpoint.
[cds] - POST /invoicing/createStripeInvoices
StripeInvalidRequestError: The search feature is temporarily unavailable in your region.
...
statusCode: 400,
charge: undefined,
decline_code: undefined,
payment_intent: undefined,
...
Solution: Your Stripe account is probably setup in India. India is the only country not supporting a dedicated search feature required by the solution. Please create another Stripe account in any other country than India. You can do so by clicking on the name of your Stripe account in the top left when being logged in on the stripe.com website.

Thanks a lot for this @martinfrick!


Support image URLs

I'm writing a plugin which shows GitLab pipeline/job status so I've often got ~200 nested menu items.  Currently each job has a bad emoji for the status but I'd like to use the GitLab images directly.
If I base64 then I'm sending large amounts of data in every run because the images are repeated, and that also tends to crash xbar.
Would it be possible to support a URL for the image to display in the menu?

In the meantime, consider using nerd font. A lot of these icons are also supported by the macos UI font: https://www.nerdfonts.com/cheat-sheet


Documentation: How to configure and enable basic LDAP/AD User Authentication for Oncall

I was having trouble getting basic LDAP/Active Directory authentication enabled in my instance of Oncall due to the config options provided. In the end I figured out that all that is needed is to enable the following:

Enable module: 'oncall.auth.modules.ldap_example'
Enable and configure ldap_url
Enable and configure ldap_user_suffix
Enable and configure ldap_cert_path

Here is a proper example:
# Example configuration for LDAP-based auth
  module: 'oncall.auth.modules.ldap_example'
  ldap_url: 'ldaps://my.domain.com'
  ldap_user_suffix<EMAIL_ADDRESS>  ldap_cert_path: '/home/oncall/configs/corp_cert.pem'

Everything else in the module config block should be commented out.
All of the other configs including ldap_bind_user, ldap_bind_password, ldap_base_dn, and ldap_search_filter wasn't needed as I assume they are used by the ldap_import module.
Is it recommended to submit a PR to add notes on separating out the different module options in the config.yaml? If not, what is the best way to submit contributions to the official documentation at https://oncall.tools/docs/ (documentation is hosted on read the docs)?

@joedissmeyer I have a PR for a doc change open now, they use github and sphinx to build the docs so you can modify the source of the docs here
https://github.com/linkedin/oncall/tree/master/docs/source and make the PR based on changes in the example like you showed in this issue

@joedissmeyer i'm actually getting WARNING:oncall.auth.modules.ldap_example:{'info': 'Invalid DN', 'desc': 'Invalid DN syntax'}
when using your format in the example when someone tries to login...did you ever run across this error?

@jordo1138 Unfortunately no, I never encountered the "invalid DN syntax" error with Oncall but I do remember seeing this type of error in other situations in the past with other apps (particularly with other projects using OpenLDAP to interact with Microsoft Active Directory). Are you using active directory? If so, here is something to try:
For all situations the ldap_url should just be the domain name itself. For example, ldaps://my.domain.com. But in my case (for my specific configuration) I ended up having to define a specific AD controller due to an issue with my certificate defined in ldap_cert_path. For example, my ldap_url setting has this --- ldaps://mydomaincontroller.domain.com. I know this is less than ideal but it is what it is for my case.
Try that. Define a specific AD controller. Other than this I'm not sure what else can be done to fix/workaround that issue.
Another note: I am running the newest version of Oncall code (as of 2018.09.10) with all updated python modules, including the newest python-ldap module v3.1.0 installed via pip. Older versions of python-ldap could be a possible cause...
I hope this helps.

Thanks, I’ll check it out, anon bind seemed to be the issue, and worked
with a user, now I’m just trying to see why my objects aren’t found when
logging in, should be straight forward but might be something with our ad
setup or the ldap plugin. I’ll update to the latest
On Mon, Sep 10, 2018 at 2:48 PM Joseph Dissmeyer<EMAIL_ADDRESS>wrote:

@jordo1138 https://github.com/jordo1138 Unfortunately no, I never
encountered the "invalid DN syntax" error with Oncall but I do remember
seeing this type of error in other situations in the past with other apps
(particularly with other projects using OpenLDAP to interact with Microsoft
Active Directory). Are you using active directory? If so, here is something
to try:
For all situations the ldap_url should just be the domain name itself.
For example, ldaps://my.domain.com. But in my case (for my specific
configuration) I ended up having to define a specific AD controller due to
an issue with my certificate defined in ldap_cert_path. For example, my
ldap_url setting has this --- ldaps://mydomaincontroller.domain.com. I
know this is less than ideal but it is what it is for my case.
Try that. Define a specific AD controller. Other than this I'm not sure
what else can be done to fix/workaround that issue.
Another note: I am running the newest version of Oncall code (as of
2018.09.10) with all updated python modules, including the newest
python-ldap module v3.1.0 installed via pip. Older versions of python-ldap
could be a possible cause...
I hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/linkedin/oncall/issues/209#issuecomment-420072652,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIIWyLkKyIQZSoYFUYEHwNoW7GdsUy8Mks5uZt4-gaJpZM4WVeJ2
.

Hi @joedissmeyer , Are you using Active Directory on your end? We have two domains, windows based domain and linux based domain. I have no problem integrating this one on linux based domain. But my other setup which is Active Directory, my user can't login even with the right credentials.
I'm starting to think this has something to do with their unix uid not enabled in AD.

@osalmasan Yes we are using Active Directory with a single domain.

Can we use ldap instead of ldaps.

I would also like to know this, does ldap:// work? Also is a certificate required for this or can this be done without one?
Thanks!

Yes ldap:// works and no certificate is required.

@joedissmeyer  We are also using Active Directory and followed your steps in configuring AD authentication. I noticed that only those AD accounts with Unix Attributes can authenticate to the oncall app. Is this a normal scenario?

can any one explain how to add users using IDAP..?
I don't have experience on IDAP
couldn't find useful answer on google.


Fix request 1 block when block_process_limit is 1

Closes #1238
Also included a fix to possible infinity loop on indexer that happen when block_process_limit is less than blocks_to_reindex_again.
This shouldn't happen frequently because block_process_limit normally is increasing an reducing the value but could happen.

This implementation will break the indexer, as indexer will not increase the to_block_number and will keep looping in the same block.
We should refactor the code where is needed so get_to_block_number can be:
 return min(
            from_block_number + self.block_process_limit - 1,
            current_block_number - self.confirmations,
)

I added a test that should pass

I think that there is an issue in this part of code:
    def get_block_numbers_for_search(
        self, addresses: Sequence[str], current_block_number: Optional[int] = None
    ) -> Optional[Sequence[Tuple[int, int]]]:
        """
        :param addresses:
        :param current_block_number: To prevent fetching it again
        :return: Minimum common `from_block_number` and `to_block_number` for search of relevant `tx hashes`
        """
        current_block_number = (
            current_block_number or self.ethereum_client.current_block_number
        )

        common_minimum_block_number = self.get_minimum_block_number(addresses)
        if common_minimum_block_number is None:  # Empty queryset
            return None

        from_block_number = common_minimum_block_number + 1
        if (from_block_number + self.block_process_limit) >= (
            current_block_number - self.confirmations
        ):
            # Reindex again when it's almost synced to prevent reorg/missing elements issues
            from_block_number = max(from_block_number - self.blocks_to_reindex_again, 0)

        if (current_block_number - common_minimum_block_number) <= self.confirmations:
            return  # We don't want problems with reorgs

        to_block_number = self.get_to_block_number(
            from_block_number, current_block_number
        )
        return from_block_number, to_block_number

For example imagine that we define:
block_process_limit = 10
blocks_to_reindex = 10
current_block_number = 19

The first cycle go from block 1 to block 10.
Second cycle:

common_minimum_block_number = 10
from_block_number at this point is 11 because common_minimum_block_number (10) + 1
because from_block_number (11) + block_process_limit (10) > current_block_number (19) then
from_block_number is equals to 1 at this point.
then get_to_block_number is 10 again because  from_block_number(1) + block_process_limit (10)  -1
And again second cycle starts in 1 and ends in 10...
This is not related with get_to_block_number because would happen the same if  blocks_to_reindex = 11 and with the old implementation.
Then this happen always that get_to_block_number is equals to  blocks_to_reindex

Currently we are not having a lot of issues we the reindex blocks and I'm not feeling confident with this PR, but we should try to find a way to down to one block in the indexer.


Acer X34P name not detected, but it is visible using ddccdl

Checklist

[X] I have searched for existing issues
[X] I have looked through the wiki
[X] I have updated MonitorControl to the latest version

Describe the bug
I have external Acer X34P connected, MonitorControl displays name as Unknown. However using ddccdl I can see monitor name:
ddcctl -d 1
D: NSScreen #478260293 (3440x1440 0°) 109.00 DPI
I: found 1 external display
I: polling display 1's EDID
I: got edid.serial: #ASMUeGST5VPd
I: got edid.name: Acer X34 P
To Reproduce
Connect Acer X34P
Run Monitor Control. In menu, monitor name is Unknown. In Display preferences table, Name and Display Name are both Unknown
Expected behavior
X34P displayed in Menu and preferences window
Additional context
using ddccdl I can see monitor name:
ddcctl -d 1
D: NSScreen #478260293 (3440x1440 0°) 109.00 DPI
I: found 1 external display
I: polling display 1's EDID
I: got edid.serial: #ASMUeGST5VPd
I: got edid.name: Acer X34 P
Environment Information (please complete the following information):

macOS version: Mac OS Catalina 10.15.7
MonitorControl version: 2.1.0 721
Monitor(s): Acer X34P

Hey, we tweaked the display detection logic a bit in 3.0.0. Can you please test the new version and confirm if the issue is still present or can be closed? Thank you!

I'll close this issue for now but please feel free to comment if there is anything we can do. If the issue persists, we can reopen this issue! Thank you!

hello! sorry to reopen, but issue persists on Acer x34.
ddctl brings up:
D: CGDisplay 95277898-4B8B-4E72-AB59-326B415E514F dispID(#3) (3440x1440 0°) 109.00 DPI
I: found 1 external display
brightness works but only between 0 and 50%, anything above 50% is just set to max.

Hi @ellieplz , If you are using a mac m1/m2 please make sure tu use an usb-c cable and not an HDMI one as this may be the reason for your issue. The HDMI port on these models does not allow for ddc control (hardware). Your other option would be to uncheck the "use hardware ddc control" checkbox in MonitorControl preferences


Cannot establish connection between two agents without inbound

I have two mobile agents A and B and mediator agent M.
Mobile agents configuration:
        opts?.addOutboundTransport("ws")
        opts?.transportReturnRoute = "all"
        opts?.autoAccept = true

Mobile agents A and B register agent M as a router
agents A creates an invitation:

   "invitation":{
      "service":[
         {
            "ID":"75fa5b47-e047-4d03-bbd0-a0a4074f305b",
            "Priority":0,
            "Type":"did-communication",
            "RecipientKeys":[
               "3P9DzAQ4VaPgy9VdbPCWJ65Yrxgyxi26urfHoGENyCC5"
            ],
            "ServiceEndpoint":"ws://<IP_ADDRESS>:8002",
            "RoutingKeys":[
               "GF2CwK3eAQZdUG5YxhJtsv7iGCFFavgbxQmBR5VcL7tv"
            ]
         }
      ],
      "label":"AgentA",
      "protocols":[
         "ws"
      ],
      "@type":"https://didcomm.org/oob-invitation/1.0/invitation",
      "@id":"2adcf178-169e-4b63-a66c-7e0db372a750"
   }
}

Agent B accept an invitation:

      "service":[
         {
            "ID":"75fa5b47-e047-4d03-bbd0-a0a4074f305b",
            "Priority":0,
            "Type":"did-communication",
            "RecipientKeys":[
               "3P9DzAQ4VaPgy9VdbPCWJ65Yrxgyxi26urfHoGENyCC5"
            ],
            "ServiceEndpoint":"ws://<IP_ADDRESS>:8002",
            "RoutingKeys":[
               "GF2CwK3eAQZdUG5YxhJtsv7iGCFFavgbxQmBR5VcL7tv"
            ]
         }
      ],
      "label":"AgetnA",
      "protocols":[
         "ws"
      ],
      "@type":"https://didcomm.org/oob-invitation/1.0/invitation",
      "@id":"2adcf178-169e-4b63-a66c-7e0db372a750"
   },
   "router_connections":"503f4136-b445-41ec-802b-bd79ecbf206b",
   "my_label":"AgentB"
}

Agent A gets status responded
Agent B gets status completed
Agent A is able to request presentation or propose credentials to agent B
Agent B cannot respond to agent A and an error is thrown:

[aries-framework/did-exchange/service] 2021/02/08 09:53:02 UTC - n/a -> ERROR command=[didexchange] action=[processMessage] [msgType=[https://didcomm.org/didexchange/1.0/response] msgID=[f24ebfce-dee7-476c-8b7c-9aba5c39243e] connectionID=[f3dbbbc3-898c-4458-b34c-044cb595e570]] errMsg=[failed to execute state action 'completed': outboundDispatcher.Send: no transport found for serviceEndpoint: didcomm:transport/queue]

I have checked this issue and it seems there is the problem with passing the router key?
Configuration:
Every agent is running with rest.
Alice - outbound only, websocket, auto-accept
Carl - outbound only, websocket, auto-accept
Router - in/out, websocket, auto-accept
Steps I did to recreate this issue, using websocket:

Create an invitation for Alice on Router
Receive Router's invitation on Alice - connection has status complete
Register Router as mediator on Alice
Create an invitation for Carl on Router
Receive Router's invitation on Alice - connection has status complete
Register Router as mediator on Carl
Create OOB invitation on Alice with router_connection_id of Router in body
Receive OOB invitation on Carl with router_connection_id of Router in body
Carl gets requested status in connection
Alice gets abandoned
Same issue for regular invitation/receive.

Alice throws this error:
 [aries-framework/out-of-band/service] 2021/02/10 13:10:40 UTC - outofband.(*Service).handleDIDEvent -> DEBUG input: {ProtocolName:didexchange Type:1 StateID:abandoned Msg:map[@id:f02db974-1ae4-4fbf-84d9-3ba1eee6c4cc @type:https://didcomm.org/didexchange/1.0/request _internal_metadata:map[] connection:map[did:did:peer:1zQmNyXoRZTr7ojWmMCoN2BmXFRffYfzDpqhnZFuNJKyciwX did_doc:map[@context:[https://w3id.org/did/v1] assertionMethod:[#1flj933qjuuidrs1yo21yzp2s9SisD-sCWmm4w6U6h0] authentication:[#1flj933qjuuidrs1yo21yzp2s9SisD-sCWmm4w6U6h0] created:2021-02-10T14:10:40.344195+01:00 id:did:peer:1zQmNyXoRZTr7ojWmMCoN2BmXFRffYfzDpqhnZFuNJKyciwX service:[map[id:d0df515b-7cce-4728-8fff-533d9b2a68f0 priority:0 recipientKeys:[GJGRfccvpaRSjJkBuF2YznJ4dB88huPV7Kx4UgbKyBmz] routingKeys:[] serviceEndpoint:didcomm:transport/queue type:did-communication]] updated:2021-02-10T14:10:40.344195+01:00 verificationMethod:[map[controller: id:#1flj933qjuuidrs1yo21yzp2s9SisD-sCWmm4w6U6h0 publicKeyBase58:GJGRfccvpaRSjJkBuF2YznJ4dB88huPV7Kx4UgbKyBmz type:Ed25519VerificationKey2018]]]] label:alice2 ~thread:map[pthid:7dcc1acf-b731-42d3-8443-7d297c7c594a thid:f02db974-1ae4-4fbf-84d9-3ba1eee6c4cc]] Properties:failed to execute state action 'responded': outboundDispatcher.Send: no transport found for serviceEndpoint: didcomm:transport/queue}

It looks like accepting requests does not get valid serviceEndpoint, so it does not know it should respond to Router with given routing key.
It does work without auto-accept flag enabled. Is it expected behavior?

@llbartekll @papkie auto-accept is a helper function that accepts all actions related to didexchange without providing any arguments Continue(&Empty{}).
// the function body
for msg := range ch {
	msg.Continue(&Empty{})
}

In your case because of  auto-accept  you are missing the AcceptExchangeRequest call. exchange request was executed automatically. And the problem here is that router_connection_id was not provided due to (msg.Continue(&Empty{})).
The solution is to turn off auto-accept and perform A.AcceptExchangeRequest manually where you would need to provide a router_connection_id.
@papkie Is it expected behavior? - yes, it is.


MV-1054-event-simulation-code-crashes-when-super-slow-mo-is-not-available

Could you take the opportunity of this PR to replace the last line of the README?
replace this:
This can then be used by our event-based simulator available in the [Professional Offer](https://www.prophesee.ai/metavision-intelligence-professional-request) of [Metavision Intelligence](https://www.prophesee.ai/metavision-intelligence).

with this:
This can then be used by our event-based simulator available with [Metavision Intelligence](https://www.prophesee.ai/metavision-intelligence/).


feat: add chmln/handlr

chmln/handlr: A better xdg-utils
$ aqua g -i chmln/handlr

Note: handlr only provides releases that contains raw binary for linux/amd64. Please see references.
How to confirm if this package works well
Command and output
$ handlr --help

Reference

latest release
release workflow of handlr

Thank you always!

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.137.0


Sandbox environment

[Enter feedback here]
Hi,
my scenario is:
I have to have two different workloads/projects under one subscription.
Each workload/project would have two environments like prod and non-prod.
A set of users would be assigned to each workload.
Each user would have a full fledged sandbox environment for each workload like he should be able to spin all kinds of resources, not just limited to VMs and Secrets(except the ones permitted by global admin) and his resources should be isolated from others users'
A user would be assigned as a owner to a workload/project and shouldn't access other workloads.
How should this be designed.

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

ID: 9f39eebf-968a-e696-f2ff-258562f9231e
Version Independent ID: 81d347c9-d591-d31d-33e0-d637ed668a64
Content: Multiple team governance design in Azure - Cloud Adoption Framework
Content Source: docs/govern/resource-consistency/governance-multiple-teams.md
Service: cloud-adoption-framework
Sub-service: govern
GitHub Login: @alexbuckgit
Microsoft Alias: abuck

Thanks for reporting - this issue is under review.  This is a Microsoft Internal DevOps Bug ID AB#221663

Please review the article series below to establish separate subscriptions for production and non-production workloads. Multiple workloads can reside in each of these subscriptions.
https://docs.microsoft.com/azure/cloud-adoption-framework/ready/azure-best-practices/initial-subscriptions


RPI4 Dual Monitors -

Has anyone gotten dual monitors in RPI4 to work.  with the GUI, I can have streams on 2 monitors, but I like this setup and would like to have it put 4 streams on each of the 2 monitors.  The "offscreen" is not going to monitor 2.

I am attempting the same setup. I can't get any streams to start. Is it the same for you?

Correct. Same for me.  Cannot get it to display on second.

It appears that you have to specify the (second) monitor (rather than a
pixel space where you expect it to be relative to the first monitor) with a
"--display x" parameter in the omxplayer command line. Supporting that
would require a pretty thorough rewrite if we are still supporting
rotation, and, as this project is nearing the end of its useful life, I
don't intend to embark on such an effort.
Thanks,
Andy
On Fri, Oct 9, 2020 at 8:11 PM Eric Garrison<EMAIL_ADDRESS>wrote:

Correct. Same for me. Cannot get it to display on second.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Anonymousdog/displaycameras/issues/78#issuecomment-706450963,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHIYIKKGXPZRH7C73EFP2GLSJ6RBPANCNFSM4SGCIREQ
.

Thanks for the effort you have put into this.  I understand.  Have you seen a different project that works on the Pi and can do dual monitors?  I am thinking that the Pi is a little under powered.

RPiSurv may handle it
Andy
On Thu, Oct 15, 2020, 2:48 PM Eric Garrison<EMAIL_ADDRESS>wrote:

Thanks for the effort you have put into this. I understand. Have you seen
a different project that works on the Pi and can do dual monitors? I am
thinking that the Pi is a little under powered.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Anonymousdog/displaycameras/issues/78#issuecomment-709522559,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHIYIKN2WNBEGJX6HFXRIJLSK47WBANCNFSM4SGCIREQ
.


Mean and standard deviation of range,x,y,z,signal

Hi,
Is it possible to provide insights on how the mean and standard deviation of range,x,y,z, signal were computed?
The availability of the code will be of great help.
Thanks.

As detailed in #43, the values are computed on the training data by taking the mean and computing the standard deviation of each individual point. The complete details at which stage of the annotation process is unfortunately lost.
Regarding code...hmmm...I think it was a one-time thing and therefore I fear that we have not the exact code for computing this.


Anerdw: Watch 94740-6584

Anerdw requests the watch of the watch_number 94740-6584. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Rejected by tripleee in Charcoal HQ. Reason: 'missing zero; superseded by fixed PR 13167'


Problem after select a date?

After select a date when pressed the next/previous month/years buttons the calendar changes but the date at the top dont.

I've fixed the issue.

It works fine, thanks


Adopt formatOnSave changes

Related to https://github.com/mrmlnc/vscode-stylefmt/issues/28, I'd recommend to rely on the new format on save-feature. It will reduce the risk of endless event-write-event-write loops and be a neater integration

Are you sure it does not already support this? As I have my SCSS files being watched by a gulp task and it only sees one write when I use this.

Actually, true. Didn't see that is already is onWillSaveTextDocument. Thanks for catching this.


CA1822 Member 'MoveIsCheckmate' does not access instance data and can be marked as 'static'.

Hello,
I have this issue with EvilBot. EvilBot does not play Checkmate in one if it is possible. I just looked into the code of EvilBot and did not change anything. Has anybody an idea how to fix this?
Thanks.

The original code does checkmate in one.
Are you sure you have not changed EvilBot? Original EvilBot.cs


Feature: test runner

I'd love a workflow like:

edit some code
Keyboard shortcut to run the tests
If test failure, see the failure
Click on the failure location
Fix code
Rerun

Anything so that I don't need to drop to the console to run the tests, and if there's an error, go back to editor and find the location of the error.

+1


Report a Bug button location covering decent logo

Report a Bug button is covering up our logo in the footer
Browser metadata
Path:      /
Browser:   Firefox 125.0 on Mac OS 10.15
Viewport:  1680 x 912 @2x
Language:  en-US
Cookies:   Enabled

Open in BrowserStack

Open Deploy Preview · Mark as Resolved
Originally posted by @nicolaus-sherrill in https://github.com/decentdao/fractal-interface/issues/1578#issuecomment-2101026661

@nicolaus-sherrill how to fix sir

@xraystyle1980 @xanaramoss plz help :-)
We might need to push that footer away from the bottom right. Center align it?

@xraystyle1980 @xanaramoss plz help :-) We might need to push that footer away from the bottom right. Center align it?

That's what I was thinking. Just nudge it to center.
OR
@adamgall can the "Report a bug" widget button just be a text link in the footer instead?
See proof of concept below

It can be a link in the footer, yes
On Thu, May 9, 2024 at 1:42 PM Matt Trice @.***> wrote:

@xraystyle1980 https://github.com/xraystyle1980 @xanaramoss
https://github.com/xanaramoss plz help :-) We might need to push that
footer away from the bottom right. Center align it?
That's what I was thinking. Just nudge it to center.
OR
@adamgall https://github.com/adamgall can the "Report a bug" widget
button just be a text link in the footer instead?
See proof of concept below
image.png (view on web)
https://github.com/decentdao/fractal-interface/assets/18615633/73d8cf34-bd0f-4f50-a438-4226d85a3e75
—
Reply to this email directly, view it on GitHub
https://github.com/decentdao/fractal-interface/issues/1709#issuecomment-2103130886,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFMS4ISQAGEUYOTLCXIJCDZBOYQDAVCNFSM6AAAAABHN2FRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGEZTAOBYGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

It can be a link in the footer, yes
…
On Thu, May 9, 2024 at 1:42 PM Matt Trice @.> wrote: @xraystyle1980 https://github.com/xraystyle1980 @xanaramoss https://github.com/xanaramoss plz help :-) We might need to push that footer away from the bottom right. Center align it? That's what I was thinking. Just nudge it to center. OR @adamgall https://github.com/adamgall can the "Report a bug" widget button just be a text link in the footer instead? See proof of concept below image.png (view on web) https://github.com/decentdao/fractal-interface/assets/18615633/73d8cf34-bd0f-4f50-a438-4226d85a3e75 — Reply to this email directly, view it on GitHub <#1709 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMS4ISQAGEUYOTLCXIJCDZBOYQDAVCNFSM6AAAAABHN2FRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGEZTAOBYGY . You are receiving this because you were mentioned.Message ID: @.>

I like adding this to the footer. Where did we land on having the footer app wide? If we are going with the footer app wide I say let's add the link to the footer. Otherwise let's center the footer and keep the widget button. @nicolaus-sherrill WDYT?

I’m pretty sure the footer lives on the whole app these days
On Thu, May 9, 2024 at 2:42 PM Matt Trice @.***> wrote:

It can be a link in the footer, yes
… <#m_-4996779872853792494_>
On Thu, May 9, 2024 at 1:42 PM Matt Trice @.> wrote: @xraystyle1980
https://github.com/xraystyle1980 https://github.com/xraystyle1980
https://github.com/xraystyle1980 @xanaramoss
https://github.com/xanaramoss https://github.com/xanaramoss
https://github.com/xanaramoss plz help :-) We might need to push that
footer away from the bottom right. Center align it? That's what I was
thinking. Just nudge it to center. OR @adamgall
https://github.com/adamgall https://github.com/adamgall
https://github.com/adamgall can the "Report a bug" widget button just be
a text link in the footer instead? See proof of concept below image.png
(view on web)
https://github.com/decentdao/fractal-interface/assets/18615633/73d8cf34-bd0f-4f50-a438-4226d85a3e75
https://github.com/decentdao/fractal-interface/assets/18615633/73d8cf34-bd0f-4f50-a438-4226d85a3e75
— Reply to this email directly, view it on GitHub <#1709 (comment)
https://github.com/decentdao/fractal-interface/issues/1709#issuecomment-2103130886>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFMS4ISQAGEUYOTLCXIJCDZBOYQDAVCNFSM6AAAAABHN2FRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGEZTAOBYGY
https://github.com/notifications/unsubscribe-auth/AAFMS4ISQAGEUYOTLCXIJCDZBOYQDAVCNFSM6AAAAABHN2FRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGEZTAOBYGY
. You are receiving this because you were mentioned.Message ID: @.>
I like adding this to the footer. Where did we land on having the footer
app wide? If we are going with the footer app wide I say let's add the link
to the footer. Otherwise let's center the footer and keep the widget
button. @nicolaus-sherrill https://github.com/nicolaus-sherrill WDYT?
—
Reply to this email directly, view it on GitHub
https://github.com/decentdao/fractal-interface/issues/1709#issuecomment-2103218453,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFMS4M5265NRZVE5R6QFXTZBO7PRAVCNFSM6AAAAABHN2FRGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGIYTQNBVGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

There are some mobile considerations not being factored in here, too.
I don't think I make the call on the app-wide footer here. Good to go centered either way.
On mobile, this should probably go in the main nav drawer?

Updated the Decent home designs with the new centered footer. *note the home design is in flux (greyed out) but the footer design is accurate
https://www.figma.com/design/9hUYtvCKjOyB92vt8ukYtD/Product-Handoff?m=auto&node-id=2195%3A3373&t=NnAviDkKGepe7Xxb-1

@decentdao/designers i see you moved this to Ready then back to Backlog. Is it not Ready? Seems Ready to me.

@adamgall I changed the status but then thought about you trying to triage all of these issues so I reverted my changes to avoid a too many cooks issue. It's ready from my PoV

got it thanks @nicolaus-sherrill
FWIW https://decentdao.slack.com/archives/C06QZTUTKRC/p1715293679681779?thread_ts=1715289978.327079&cid=C06QZTUTKRC

Closed via https://github.com/decentdao/fractal-interface/pull/1770


7plus A10 equipment always restart

Describe the bug
Mobile phone boot after a period of time, at the same time open multiple app phone will restart，Points to open more than 10 app at the same time, and then switch back and forth, during must restart。System log can't see the root cause, this bug has been exist, the reason I guess is out of memory，Checkra1n would not have this problem, hope can be repaired。
Device (please complete the following information):

iOS Version: 13.3
iOS Device: iphone 7plus
unc0ver Version: 4.3.1

Try cocoatop version 2.2.  You should be able to see whats using all your memory.

Crash reporter 1.17.2   Use this as well.

Crash reporter 1.17.2 Use this as well.

Hi brother memory restart is in a flash, logs, and view the process cannot be captured

What did cocoatop tell you?

What did cocoatop tell you?

in cocoatop It's normal，But there is shut down

Ok in cocoatop.  set the columns to show by cpu usage.  Is there any process using %100?  How many processes are running?

Are normal, no occupy 100% of the process

Ok. at this point the only thing I can say is to see what tweaks you are using.

Ok. at this point the only thing I can say is to see what tweaks you are using.

Brother, you are the author of the unCover？I found out the reason of the restart because too much open program, run out of memory。Have to solve？

@xieao100 no he's not the author at all. please post your unc0ver diagnostics.

Hello, I have switched the checkra1n tool, and now it runs stably for a week without restarting, no bugs. I extracted the logs from unCover for nearly a week, I don't know if I can tell the reason for the restart, thank you

@xieao100 no he's not the author at all. p
diagnostics.plist.zip
lease post your unc0ver diagnostics.


Add benthorner back, who's not a villain

You'll need to rebase and update your SSH key still. I forgot about that step. 🙈


Added XDP support

Hi. Congrats for the great work so far.
This PR adds XDP support based on the python-bcc lib.
Please let me know if there's any change to be made.

Thanks for the comments and suggestions @nhlfr Everything looks good now?

The example xdp_drop.go doesn't give any output, that part is not working for me (probably due to Table.Iter() using ..snprintf and returning hex digits as string: https://github.com/iovisor/gobpf/blob/master/bcc/table.go#L204-L215).
@GustavoKatel what data do you get there that the strconv.ParseUint works for you?
Please credit the authors/source of the example program in a comment: https://github.com/iovisor/bcc/blob/master/examples/networking/xdp/xdp_drop_count.py
Also, can you please squash fixup commits? In this particular case, it should be only two commits, something like:
bcc: add xdp support
examples: add bcc xdp_drop example

Changes as requested, and squashed commits.
@schu Can you elaborate how did you test it?
I'm using https://github.com/iovisor/xdp-vagrant to emulate a supported driver.
Also the dropcnt table contains an uint32_t index and values are long.
Please let me know if there's anything else I can do. Thanks.

Thank you for the update :)

Can you elaborate how did you test it?

$ sudo -E go run examples/bcc/xdp/xdp_drop.go wlp4s0
Dropping packets, hit CTRL+C to stop
^C
{IP protocol-number}: {total dropped pkts}
$

ie. packets are dropped, but I don't get the expected output. The bcc example (./examples/networking/xdp/xdp_drop_count.py wlp4s0) works.
By adding the following patch, I can see in trace_pipe that values are counted correctly on kernel side.
diff --git a/examples/bcc/xdp/xdp_drop.go b/examples/bcc/xdp/xdp_drop.go
index 9ef4c35..e905854 100644
--- a/examples/bcc/xdp/xdp_drop.go
+++ b/examples/bcc/xdp/xdp_drop.go
@@ -102,8 +102,10 @@ int xdp_prog1(struct CTXTYPE *ctx) {
         index = 0;

     value = dropcnt.lookup(&index);
-    if (value)
+    if (value) {
         *value += 1;
+        bpf_trace_printk("index: %d value: %ld\n", index, *value);
+    }

     return rc;
 }

I'm trying to find out what the problem is.

Hi guys,
I guess @alban was in the right direction with the percpu array.
I've changed to a normal array and now the sync fetch and add is done in the xdp prog instead.
I hope it's ok now. Please let me know.
Thanks!


Enable Python warnings during tests

Helps show deprecation warnings early as well as general programming
edge cases.

Yes, that's useful!


[nvim] partial cursorline for rendered file node

Environment

Operating System: debian buster
Vim version: nvim v0.3.4
NERDTree version: 84737f2

Process

Open a directory using nvim and toggle nerdtree
:set cursorline

Current Result
cursorline is drawn partially for file nodes. directory nodes are fine though.

Expected Result
cursorline should be drawn fully.
(screenshot in vim)

Duplicate of #953. This is a reported bug in neovim.


Reject invalid emit

What was wrong?
We currently crash on code such as emit foo()() which is mostly due because we don't properly reject it in the parser stage (See https://github.com/ethereum/fe/issues/337)
How was it fixed?
Fixed it with an extra check in the analyzer pass and filed #337 because the parser is currently getting rewritten.

Codecov Report

Merging #336 (6977d1a) into master (dd017d8) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 6977d1a differs from pull request most recent head 064fc0f. Consider uploading reports for the commit 064fc0f to get more accurate results

@@           Coverage Diff           @@
##           master     #336   +/-   ##
=======================================
  Coverage   92.60%   92.60%
=======================================
  Files          56       56
  Lines        3882     3882
=======================================
  Hits         3595     3595
  Misses        287      287

Impacted Files
Coverage Δ

analyzer/src/traversal/functions.rs
97.39% <ø> (ø)

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 dd017d8...064fc0f. Read the comment docs.


Is Calico support IP encryption on a network?

On the same calico network, all of the ip-addresses of containers are directly connected to each other. Is there any way to encrypt the ip-addresses of the network?

all of the ip-addresses of containers are directly connected to each other

This isn't quite true; we use routing to provide connectivity but we also provide security policy which decides who can talk to who.
If you need to encrypt your traffic, Calico should work just fine over an IPSEC network; we have a customer that is experimenting with this approach.  I don't think even IPSEC encrypts the IP address itself though.  What is your use case for encrypting the IP address?
Short of using onion routing, I can't see a good way to make that work, IP addresses need to be public or there's no way for routing to work!

I want to encrypt all of my container ip addresses, as I don't want to share all of my apps with all users on the same network. Just like openVswitch can, but the problem is network configuration have to be created for each nodes. On the otherhand, it is easy to create network on calico.

Are you worried about containers "snooping" the network?  Calico prevents that, there's no L2 broadcast domain.

In digital ocean, there is no internal network system like GCE or AWS. For that, I have to think about this ip encryption

Yes, the DO network is essentially public.  We strongly recommend deploying Calico over, say IPSEC in that environment, otherwise your etcd will be public!

Any suggestions for Calico with IPSEC?? I mean, by which process it can work with IPSEC.

If you configure IPSEC between your hosts, Calico should "just work"  Calico only requires an IP fabric underneath, which IPSEC provides.


Update index-state and nix updates

description
Update index-state and nix changes necessary for nix-build.
checklist

[x] compiles (cabal v2-build or stack build)
[x] tests run successfully (cabal v2-test or stack test)
[ ] documentation added
[ ] link to an issue
[ ] add milestone (the current sprint)

bors r+

bors r+

bors merge

bors merge

bors merge

bors merge


feat: add activity and popularity scores

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

19 of 27 (70.37%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 69.835%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/entities/Snapshot/utils.ts
12
14
85.71%

src/entities/Place/model.ts
6
12
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
121

Relevant Lines:
161

💛  - Coveralls


Incorrect web3 typings for bytes[]

When generating web3 typings for bytes[] and alike, the resulting typings are incorrect.
While bytes is correctly represented as string | number[] (string or array of numbers), bytes[] is represented as follows:
Actual: string | number[][] - this means string OR two-dimensional array of numbers.
Expected: (string | number[])[] - array of (string or array of numbers)
This behaviour is actually tested here :
expect(
    TypeScriptHelpers.getSolidityInputTsTypeByTypeName(
        'bytes[][][]',
        Provider.web3
    )
).toEqual('string | number[][][][]');

I believe it should result in (string | number[])[][][] not string | number[][][][].

web3 is not very well supported here.. PR welcome 👍

yes you are right web3 is not as well submitted as ethos will fix this though thanks for raising


Use local (GOPATH or just file) as source

When testing new branches one is working on in projects that use dep, it would be useful to be able to without having to push them to the public.
Specifying the branch doesn't work (it seems that dep doesn't look in GOPATH for branches, but remotely (why?)), adding the path of the package in my machine in source also doesn't work.
Either would work:

let branch also include local branches in GOPATH
let source be a path
have a new variable (either global or per-constraint) include-gopath

Any logical reasons that is not supported?

I guess because it wouldn't work on someone elses computer. So I think this would best be implemented as an "override" section.

dep supports git, but what I want to do is actually checkout my local copy and tell dep to use that, so I can do active, local development and test before committing and pushing those changes.
I don't want committing and pushing every debugging "Printf", just because dep doesn't support file://

That's exactly what I wanted this feature for. Right now, if my main
package depends on another of my repos, in order to work on the other repo
and test in the main package, I have to work inside the vendor/
directory. Or upload to a branch and specify the branch in dep and have dep
pull everything again, which is really slow.
On Fri, Apr 13, 2018 at 10:47 AM, juliandroid<EMAIL_ADDRESS>wrote:

dep supports git, but what I want to do is actually checkout my local copy
and tell dep to use that, so I can do active, local development and test
before committing and pushing those changes.
I don't want committing and pushing every debugging "Printf", just because
dep doesn't support file://
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/dep/issues/1747#issuecomment-381068819, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA0F3NY3joFCXMRbsOy1zonIBC9MB0OTks5toGY2gaJpZM4Slahu
.

Yep - I have the same requirement.  It would make life a-lot easier if I could use a local branch.  This is something glide was able to support, and has caused the most pain since switching.
https://glide.readthedocs.io/en/latest/commands/#glide-mirror

Actually when ever I use dep locally - not before checking in but to simply work on my project where everything is local - dep ensure gives so much time that I search for issues like this :)
I still think something like "dep ensure -local" to not query any remote repositories would be useful for everyone. Of course I need to run dep ensure without the -local flag before pushing code and on CI. But for local dev it would speed up things a lot!
For locally missing dependencies it could either just error (would be fine) or download the remote repository at the time being.

Yes, please add this feature to make local dev & testing much easier. Something like yarn link would be awesome.

Any update on this feature? It's getting very difficult when developing multiple dependent repos and not being able to test it locally.

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!


Added a backgroundColor property

Added a backgroundColor property to allow further customization. I needed this functionality for a project thought it might be helpful for others.

Hi @andresribeiro really appreciated if you could review and accept this change. Hope this would be in next release
Thanks


Landingpage

Description
Please include a summary of the change and a link to which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Changed how hours of businesses is uptained when a business is clicked on
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Closing this PR because there's a better solution


J_Putting_It_Together.cljs cleanup

Exercises and solutions currently reference deprecated data-fetch/load-data.
Both solutions fail to re-render when server load is complete.

I'm working on a merged untangled library that will include the guide. I've already fixed this there, but it is not published yet.

See new library (which includes the devguide) at http://github.com/awkay/untangled.


[Blazor server side] Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'.

Hello guys,
I meet some problems on some views with a lot of data (complex view, table with lot of rows, etc).
What's happening is I lost the signalR connection.
Typically, the first time i land on the page is OK.
After i go to anoter page => still OK
After i come back to my page with lot of data and that's now the problem happen
The actions on my page have no effect, on the console output of visual studio i can see a lot of
The thread xxxx has exited with code 0 (0x0)
after maybe 10 seconds, I can see in the chrome console
Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'.
and signalR connection is come back and i can use again application.
I don't know whats happen, there is no Exception, I wanted to know if there is a way to investigate and understand what's happen (application consume too many resources ? memory leak ? blazor bug ?).
Unfortunately, i'm not able to reproduce the case, my app is definitively too complex too reproduce the same environment. I try with the starter project and two view with each a table of 5000 rows and it's not reproduce the problem (it's very slow of course, but the signalR connection is not lost).
I'm pretty sure is a performance problem, because for the same view, if i have 10 rows in my grid the problem not happen and if i have 100 rows the problem happen.
But impossible to know what's happening really
thanks for your help !
Julien

This sounds very similar to https://github.com/aspnet/AspNetCore/issues/9683.
We fixed a bug that caused the connection to hang with large payloads. Can you try out the daily bits and see if the issue still reproduces? https://github.com/aspnet/AspNetCore/blob/master/docs/DailyBuilds.md

Yes it can be the same problem !
I try to use the daily build

I installed the last build (preview7)
I added a Nuget.config with the configuration as expected

But my projects is still on preview5, I think i miss something to switch the nuget of my projects from preview5 -> preview 7
It seem the new Nuget.config in my project is not read/use.

@julienGrd Do you have a simple project that reproduces the issue that we could take a look at? That way we can help up with the required migrations steps to move to preview6 builds.

@danroth27 Unfortunately no, my app is definitively too complex, it's a migration from a big silverlight application where I load existing ViewModel and I let existing code drive the application.
I try to reproduce on a simple project, with two views with table with 5000 rows each and move from view to another but no way, on a simple project can be slow but still working.
What I can say more about this bug

it produce on only two views of my app, the two big views for the moment. These two views contains a table
the bug depending of the data contain by the view, because if i Have only 20 rows on my table, the bug not appear. With 80 rows, it appear each time.
My app load lots of modals containing large data on table, but on these modal  it seem there is no problem like this, so maybe the bug can be related to the router because my two views with problem are loaded with router
When the bug appear, I can continue debug the app, it's "just" the browser UI wich is not refresh. for example if i put a button with a onclick event, and on the click i change some data to have my button blue for example, i reach the onclick with no problem, but the button not become blue (but the browser is not frozen, there is just no effect). after some second, the SignalR reconnect and my button become finally blue.

So i think for the moment just wait for the preview6 see what' happen. It's really strange because I just see this bug few days ago, but i'm on the preview5 since the beginnning, So maybe i do something wrong. But impossible to investigate by myself and impossible to give you reproduce steps

Hello, since the preview 6, i'm unable to reproduce the problem on my app.
so I close this issue


Refactor calculateBodyFatPercentage

The method is too large. Consider breaking it into smaller, more manageable pieces.

Split the method into smaller private functions


Downgrade RDS

Modified DB instance class from db.m5.2xlarge back to db.m5.xlarge.

Start: 03:32
Offline: 03:39
Back online: 03:40
Finish: 03:52
(all times EST)


PIn version python:3.10.13 in dockerfile

Changed coniql dockerfile to use latest version of python 3.10 slim docker image. Currently we use just 3.10-slim, which uses the latest patch version that is available. Changing this to 3.10.13 will allow us to use the latest patch version, released in December, rather than 5 months ago, but also prevents any changes through patches that could break further down the line. I would like to do this in order to get patches available for CVEs that the Kubernetes scanner Stackrox has detected there are upstream fixes for.

Closing after discussion with @AlexanderWells-diamond, as we want to keep the default behaviour of grabbing the latest python 3.10 patch version.


Performance issue between default and named export

If I use:
import Button from 'reactstrap/lib/Button';

vs
import { Button } from 'reactstrap';

Am I gaining any performance benefits? I'm worried that each time I import a named export it's reimporting the whole library, as per this issue https://github.com/facebook/create-react-app/issues/4791#issuecomment-423045091
Does anyone have any insight?

import { Button } from 'reactstrap'; would require treeshaking to remove any unused reactstrap component code, that may be why it would take longer? I don't claim to know how treeshaking works, but I would imagine it imports and processes everything at first and then removes the dead branches. That sounds like a lot more work
import Button from 'reactstrap/lib/Button'; grabs the specific file (the same one that import { Button } from 'reactstrap'; would end up getting, but it does it more explicitly.
The performance would only be in the dev/build. The code to the client should be the same thanks to treeshaking. Both import methods are supported and it's really up to you.

Cool, thanks for your help, have noticed that my hotloading does seem to be a lot faster, and build time is a lot faster.