Support saving bloc's state instead of The state that bloc produces.

Is your feature request related to a problem? Please describe.
I have a repositoryBloc that caches results. When using HydratedBloc, I can only store the output of the bloc, not it's internal private state.
Describe the solution you'd like
Don't require the fromJson method of HydratedBloc<E, S> to be of type S
Describe alternatives you've considered
I've considered customizing the output of toJson and fromJson, but it seems complicated and probably impossible.
An alternative is to allow for persisting extra bloc data.

Hey @ThinkDigitalSoftware 👋
Thanks for opening an issue!
Can you provide a bit more info around what the internal state of the bloc is and why it’s needed?
Thanks!

Sure, say I have the following HydratedBloc:
class PackageDetailsBloc extends HydratedBloc<PackageDetailsEvent, PackageDetailsState> {
Map _cache = {};
  @override
  PackageDetailsState get initialState => InitialPackageDetailsState();

  @override
  Stream<PackageDetailsState> mapEventToState(
    PackageDetailsEvent event,
  ) async* {
    if(event is GetItem){
    if(_cache.containsKey(event.item)) return _cache[item]
    else {
        var item =  await getItemFromRepo();
        _cache[item] = item;
        yield item;
        return;
    }
  }
}

I'm interested in persisting the _cache variable. This is the real state of my bloc, and this is what I want to persist. I also want to persist myBloc.currentState, but I don't want to have to attach the _cache to that state just to be able to persist it

Hey @ThinkDigitalSoftware my goal with HydratedBloc was to automatically cache the state of the bloc so that your application can pickup where it left off. Why do you need to have an internal cache within the bloc? If you state is cached you should not need to query the repo at all.

The cache is for previous queries. If a query hasn't been run, it uses the
repo. I could renew the cache each time the app is run, but I do feel like
blocs should be able to serialize and rehydrate themselves, not just the
state they produce. Who knows what other use cases there are for this
On Mon, Jul 22, 2019, 7:31 PM Felix Angelov<EMAIL_ADDRESS>wrote:

Hey @ThinkDigitalSoftware https://github.com/ThinkDigitalSoftware my
goal with HydratedBloc was to automatically cache the state of the bloc
so that your application can pickup where it left off. Why do you need to
have an internal cache within the bloc? If you state is cached you should
not need to query the repo at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/hydrated_bloc/issues/13?email_source=notifications&email_token=AFPYO7KJZ4RLVNA3ZCR4JF3QAZUQBA5CNFSM4IFTWDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2RXJRI#issuecomment-514028741,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFPYO7M24MB5MNO5EBWOTK3QAZUQBANCNFSM4IFTWDAA
.

If a person died and you wanted to recreate them, it wouldn't be enough to just save the work they did, you'd need to save other properties about them that made them who they were. Their Metadata. I think this should be the same way

@ThinkDigitalSoftware can you please provide a concrete use case that we can walk through? I think it would be a lot easier to reference a specific example.

Ok. Something more than the example above?

Well with the example above I’d move the cache to the repository layer. That way the bloc just requests the data and doesn’t care about where the data is coming from but if you can provide a concrete use case for an actual feature you’re working on I think it’d be more beneficial to compare and contrast approaches.

This is a part of the pub project I'm working on. This bloc is my repo,
isn't it?
On Tue, Jul 23, 2019, 8:58 PM Felix Angelov<EMAIL_ADDRESS>wrote:

Well with the example above I’d move the cache to the repository layer.
That way the bloc just requests the data and doesn’t care about where the
data is coming from but if you can provide a concrete use case for an
actual feature you’re working on I think it’d be more beneficial to compare
and contrast approaches.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/hydrated_bloc/issues/13?email_source=notifications&email_token=AFPYO7NV3EQN2O2DAJEZBODQA7HNVA5CNFSM4IFTWDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2VC66I#issuecomment-514469753,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFPYO7MVNO5X234FQKCTUPLQA7HNVANCNFSM4IFTWDAA
.

What do you mean the bloc is your repo? Ideally you'd have a data provider (in your case the pub.dev api client), a repository to interface with the data provider and convert the raw data model into your business models, a bloc to interface with your repository and provide the state/view model for your feature, and your UI to consume your bloc's state (view model) and render in response to different states.
hydrated_bloc helps to cache your feature state so that your application picks up in the state it was last in (without having to reinitialize and fetch the initial data set while presenting loading indicators etc...).
If you wanted a cache for your data it would be best to put the cache in the repository layer because that's the layer that directly interfaces with the data provider. You can check out the github search app for an example.

Ok. I have this repository class you linked to as part of the bloc itself. Implemented the same way you have it there. So I'll need to find a different way to persist this repository's cache to the device..

I would highly recommend decoupling the bloc from the repository.
You can write to file, use a db, etc... for the repository cache.
Did this help clarify things?

It's clear, yes. It just defeats my purpose in using HydratedBloc now, since the rest of the state is so light that it won't save me much processing. I'm sure it'll be more helpful for larger projects

No my suggestion is to not store internal state in the bloc. You can add your own solution if you want to the repository layer but it isn’t necessary if you refactor your bloc. Which bloc is this in the pub.dev client? I can take a look and try to create a PR with my suggestions.

I sent you a PR to review. I refactored it out of the bloc into its own
class, it's in the Search bloc, the home bloc and the package details bloc
On Thu, Jul 25, 2019, 7:03 AM Felix Angelov<EMAIL_ADDRESS>wrote:

No my suggestion is to not store internal state in the bloc. You can add
your own solution if you want to the repository layer but it isn’t
necessary if you refactor your bloc. Which bloc is this in the pub.dev
client? I can take a look and try to create a PR with my suggestions.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/felangel/hydrated_bloc/issues/13?email_source=notifications&email_token=AFPYO7IRFED5O6WJCYY7TKLQBGXD3A5CNFSM4IFTWDAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ZSHQA#issuecomment-515056576,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFPYO7KVG3CJ5AHLXSB6ZW3QBGXD3ANCNFSM4IFTWDAA
.


Add kerndisc to projects section

We've created kerndisc for time series modeling using health related data. This PR aims to add it to the GPflow projects section, as we hope that it might be useful to others.
Summary: kerndisc is a library for automated kernel structure discovery in univariate data. It aims to find the best composition of kernels in order to represent a time series. kerndisc currently possesses a test coverage of over 90 %. Still, there is no claim to correctness, contribution and correction is heavily desired.
Usage: See here for an example.

Hi @BracketJohn
Thank you very much for your contribution and for using GPflow. I personally believe that your opensource and modern implementation of the Automated Statistician can be of big value for the community. Definitely let us know if there is anything we can do to improve GPflow to support your use-cases.
Cheers,
Vincent


When changing workspace path, force bios save

When changing the bios path, need to make sure that all of the changes made to the bios are saved and that the entire system restarts itself correctly.

Looks like this doesn't need to be changed, it's working correctly as is. When the user exits the new path and other bios changes will be saved.


Closed at 644164ce131729bf18e7f163fcf61219907892f0


[YUNIKORN-638] Make placeholder image configurable

What is this PR for?
The placeholder image is hard-coded and pulled from a central repository.
In an air gapped environment, this might not be feasible and being able to change it is necessary.
What type of PR is it?

[ ] - Bug Fix
[x] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-638
How should this be tested?
Screenshots (if appropriate)
Questions:

[ ] - The licenses files need update.
[ ] - There is breaking changes for older versions.
[ ] - It needs documentation.

One thought: what happens if an image is specified that does not exists?
What do we show in the logs, what happens to the application and the gang.
We can fail but we should complain loudly if and when it happens.
Can we test for this? maybe in the e2e tests?

One thought: what happens if an image is specified that does not exists? What do we show in the logs, what happens to the application and the gang. We can fail but we should complain loudly if and when it happens.
Can we test for this? maybe in the e2e tests?

I think this would be a legit testcase.

+1, LGTM. Also, please add a PR for the release repo to update the helm charts with the new attribute. This acts as user-visible documentation for the property as well as an easy way to configure it.

There's also a PR for that: https://github.com/apache/incubator-yunikorn-release/pull/83


Fix: swagger in the case of GetRegistry

Signed-off-by: Peter Balogh<EMAIL_ADDRESS>
What this PR does / why we need it:
This PR fixes the swagger in the case of GetRegistry.
Which issue this PR fixes
When I used the generated anchore client I got the following error:
error":"json: cannot unmarshal array into Go value of type anchore.RegistryConfiguration"

After it, I check the response using the anchore-cli. The response was the following:
 anchore-cli --json registry get<PHONE_NUMBER>52.dkr.ecr.us-east-1.amazonaws.com
[
    {
        "created_at": "2020-07-07T12:30:51Z",
        "last_updated": "2021-01-15T01:55:52Z",
        "registry": "602401143452.dkr.ecr.us-east-1.amazonaws.com",
        "registry_name": "602401143452.dkr.ecr.us-east-1.amazonaws.com",
        "registry_type": "awsecr",
        "registry_user": "XXXXXXXXXXXXXXX",
        "registry_verify": true,
        "userId": "testuser"
    }
]

So the anchore-engine response is a list of RegistryConfiguration.

Thanks @pbalogh-sa ! Yes, I see this mismatch

Thanks @pbalogh-sa ! Yes, I see this mismatch


unable to scroll listview

i can feel very difficult to scroll the listview when using in GVRF.
hasFocus() returns true for listview when hover and swipe using the controller. So i can say scroll functionality is missing here.
i can observe issue in gve-events sample app as well.

just ran gvr-events in the headset and the list scrolled just fine using the headset trackpad, though picking in the list seemed a little off.  I tried to add controller support (adding useControllerTypes="gaze,controller" in vr-app-settings in the gvr.xml) to see if there is a problem with the controller, but i'm having some pairing issues with my phone.  once i sort that out (maybe new batteries?), i'll test with the controller.

@thomasflynn i guess u tried on latest gvr-events code branch, even using headset trackpad also i need to struggle many number of times to scroll to end of the list.
i am using the latest model of samsung VR headset.

Yeah...my Galaxy S8 runs on Android 'O'.

ok, thanks for confirming.  we're looking into it.

This may have some relation to https://github.com/Samsung/GearVRf/issues/1829.

It is related to #1829. After adding super.requestLayout(); near the end of GVRViewSceneObject.RootViewGroup.dispatchDraw scrolling works as expected. @ragner Do you have any advice on the correct approach for fixing this refresh problem?

@liaxim  I will take a look

@spakanati123  We have a fix for this.

Thanks @ragner , @thomasflynn, @liaxim

Fixed by https://github.com/Samsung/GearVRf/pull/1854. Planning to close in few days.

@liaxim it seems the build not triggered by this change, can u please trigger build.

@spakanati123 Snapshots have been updated.

I am unable to increase my scene size even changing the frame layout width and height , it always fixed size(small rectangle box) irrespective of the width and height i gave.
Can u please suggest to change the size of scene for my layout. i tried scale as well.
        frameLayout = new FrameLayout(this);
        frameLayout.setBackgroundColor(Color.WHITE);
        registerView(frameLayout);
         frameLayout.getLayoutParams().height = frameLayout.getLayoutParams().width = 1000; //dpToPx(3000);
        View.inflate(this, R.layout.activity_main, frameLayout);
        main = new RecyclerMain(this, frameLayout);

i am using the 4.0.1-snapshot version but still my generated GVRViewSceneObject.class does nt showing the added change onDescendantInvalidated() so on Android o devices still scrolling not working. I did my gradle sync and clean project as well.

@spakanati123 You need to force gradle to refresh the dependencies. See https://stackoverflow.com/questions/13565082/how-can-i-force-gradle-to-redownload-dependencies.


Will there be updates for 4.27 and 5.0?

Hey, thank you very much for providing this plugin!
I managed to use the 4.26 version for 4.27 and 5.0 beta by selecting "Switch Unreal Engine version" in my project with the automatic recompiling.
But will there be official releases for the newer versions?

Yes. I'm just waiting to clean up the mess in the repository first, and to set up a proper releases page :)
But in the meantime I can look at the situation with the latest UE4/5 and release the plugins for them.

Alright, thank you!

Released. Also available as separate downloads in GitHub releases for the plugin.
5.00 is in early access at the moment, so there may be stability problems and the codebase may change as well requiring to changing some code in the plugin.


Missing existence check before dereferencing an array.

If $this->list is empty, an error will rise when checking if $list[0] is string.

Good catch, thanks. :)
Fixed and published as v4.0.2.


Stack Overflow Exception When Reading Large File After Updating from 2.2.0-beta to 2.3.1-beta

Describe the bug
After updating from version 2.2.0-beta to 2.3.1-beta, reading the same file now throws a Stack Overflow exception.
To Reproduce
Just reading a file .dxf with 64 MB and it takes too long to read the file (30 minutes or more).
Expected behavior
Using the previous version, I was able to read the file in less than 3 minutes.
Screenshots

Stack overflow.
at ACadSharp.CadObjectCollection`1[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetEnumerator()
at System.Linq.Enumerable+WhereEnumerableIterator`1[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at System.Linq.Enumerable.Any[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1[System.__Canon])
at ACadSharp.Parser.Shapes.BlockIdentifier+c__DisplayClass8_0.<GetInsertsByType>b__0(ACadSharp.Entities.Insert)
at System.Collections.Generic.List`1[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ForEach(System.Action`1[System.__Canon])
at ACadSharp.Parser.Shapes.BlockIdentifier.GetInsertsByType(ACadSharp.CadDocument, ACadSharp.Parser.Enums.BlockType)
at ACadSharp.Parser.Parser.<Build<BuildList>b__GetTargetBlock_2_1(System.Nullable`1[KCSMath.XY>, ACadSharp.CadDocument)
at ACadSharp.Parser.Parser.<Build<BuildList>b__GetTargetBlock_2_2(ACadSharp.CadDocument, ACadSharp.Entities.Insert, System.Collections.Generic.List`1[ACadSharp.Entities.LwPolyline>, ACadSharp.Parser.ParserOperations.Tree)

Additional context
I cannot share the file or reproduce an equivalent one, but it has 3000 INSERTS and some LwPolylines interacting with them.

Hi @BrunoSam66
About the Stack Overflow exception it seems that is caused in your code, after the method GetTargetBlock there is a infinite recursion between the methods BuildTree and SearchNewBranch, without more information about what methods or properties are you calling is hard to know what is happening in the code, could you give me some clue of what is happening in these methods?
About the time, I'm checking the PR's from the release but I don't find any major modification in the DxfReader besides adding the entities Shape and Image that messes with the time to read, I'll try to replicate the issue by adding stress tests using big files.
I'll keep looking on what caused this decrease on the performance.

I've tested the issue with a file of 115MB for both versions the 2.3.1 has a bottleneck issue in the builder, which is affecting the dwg and dxf, after a quick fix this was the result:
9 seconds for 2.2.0
12 seconds for 2.3.1
I've opened a branch to try to improve these results.
Thanks for reporting the issue!


Add support for play-json 3

play (and play-json) 3.0.0 was released a few weeks back, as can be seen here:
https://github.com/playframework/playframework/releases/tag/3.0.0
It would be great if this project could publish a compatible release built on top of it!

Done, 4.0.0-M8 is in progress :)


Add spacing to sidebar to improve view on small screens

Short description
I added spacing to the sidebar to improve the view on small screens. At the moment the last menu point ("Language Tree")  disappears behind the version number on small screens.
Proposed changes

I added 3rem padding-bottom to the sidebar hard coded in the scss file
Initially I wanted to use the tailwind class "pb-12" since this equals to 3rem, but for me it didn't work. Neither Chrome nor Firefox registered this class. However p-12 worked, which is strange since if p-12 is working, also pb-12 should be working. See more about this here.
Optionally I could also add a custom class for "pb-12" equaling to 3rem to the tailwind config file, but I'm not sure if we're going to use that class ever again

Side effects

Couldn't find any in Chrome or Firefox

Resolved issues
Fixes: #1710

Pull Request Review Guidelines

Ah yes, I tried it using the developer tools. Thank you for the explanation. Alternatively I could also remove the pb-10 class and instead just set the max-height to 100vh - 96px. This includes the logo on the top and the version number on the bottom. This would safe us using one class. But this way it's also working


Alignment: improve reliability of object apparent motion estimation

During alignment the object's apparent motion is derived from the tracking loop's slew rates after the loop has converged. However the accuracy of this approach requires that the tracking loop be fully converged, which may be difficult to detect and may take longer than desired. Instead, I think it would be better to center the object and then stop slewing the mount and simply observe the object's apparent motion in the camera with the mount stationary until the object comes near the edge of the frame or a certain amount of time (15-30 seconds) has elapsed.

During alignment the object's apparent motion is derived from the tracking loop's slew rates after the loop has converged. However the accuracy of this approach requires that the tracking loop be fully converged, which may be difficult to detect and may take longer than desired. Instead, I think it would be better to center the object and then stop slewing the mount and simply observe the object's apparent motion in the camera with the mount stationary until the object comes near the edge of the frame or a certain amount of time (15-30 seconds) has elapsed.

Fix has been applied but not tested. Closing on assumption that this fixes the problem. Reopen if evidence surfaces that it is still a problem.

Apparent motion estimation is still a bit unreliable in the case where the object's apparent motion is very small in either axis. If the apparent motion is small compared to the jitter and other sources of noise in its estimated position, the estimate of its motion will be poor. Some ideas to improve the situation:

Use all of the error estimates during the observation window rather than just the start and stop points. Should be possible to average out some of the noise to improve the accuracy of the estimate.
Ensure that the object has moved by a statistically significant amount in both axes before moving on. If no motion is detected after some max time limit, give up and instruct the user to select a different star.

For all cases, the estimate of object motion needs to detect the direction with high confidence. For case b it must also estimate the rate of motion in each axis with reasonable confidence so that the algorithm can estimate how close to the center of frame the object must be placed such that it will drift past the center within a reasonable time interval. For case c the estimate of the direction angle must also be fairly accurate so the algorithm can accurately place the object in the frame such that its motion vector will intersect the center of the frame.

It may be appropriate to estimate the variance of the error estimates over some set of samples while the tracking loop is converged. This information can be used to determine how many samples need to be collected and/or how far the object needs to move to produce a reliable estimate. Code for this can be recovered from the deleted backlash estimation script.

I made some additional adjustments. After some further thought, I realized that the tracking loop is doing the exact kind of filtering on the error source samples that we want to apply. However, as observed previously, it is more reliable to take the difference in the mount's position after some time interval than to use the current slew rate for estimation of object apparent motion.
I added code to take statistics on the error source estimates however the stats are only used in print statements. If the tracking loop output is used it would be more appropriate to measure the variance of the mount position (after subtracting the expected motion) and use this information to determine if the position has changed by a significant enough amount to produce a reliable estimate of object motion (direction, angle, and magnitude).

This issue is obsolete due to change in alignment strategy--see #43.


Implement downloads for the genetic algorithm

Functionality must be implemented to download multiple solutions together or separately

 Implementar descargas para el algortimo genético


Remove zookeeper documentation

Fix #3763

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@c64c595). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master   #4910   +/-   ##
========================================
  Coverage          ?   37.4%
========================================
  Files             ?     305
  Lines             ?   45211
  Branches          ?       0
========================================
  Hits              ?   16909
  Misses            ?   25861
  Partials          ?    2441

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 c64c595...06374a9. Read the comment docs.


feat(模块): 添加智能微秘书通知，已自测

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
添加新的通知方式
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

👍


SailGraph(GraphSail(Neo4JGraph)) performance and classloader

Hello,
This is more of a benchmark than a bug-report, but still it is an issue when dealing with large RDF data. I have found that the performance of a SailGraph(GraphSail(Neo4JGraph)) critically depends on the JVM memory settings and Gremlin's defaults are to stringent.
neo4j = new Neo4jGraph("data/bfg")
neo4j.setMaxBufferSize(100000)
graph = new SailGraph(new GraphSail(neo4j))
The graph is populated with ~1M nodes (via loadRDF) and I add edges programatically.
(v[X],v[Y]) = graph.LONG_GREMLIN_TRAVERSAL(U, V)
graph.addEdge(v[X], v[Y], "bfg:binds")
where U and V is parsed from a file. After an initial speed of 100-200 edges/s it drops to ~15 edges/s added in "bursts". This prompted me to increase the memory:
export JAVA_OPTIONS="-XX:MaxPermSize=2048M"
This fixes the performance drop for at least 1.5M edges.

This is most likely due to index caching in Neo4j. GraphSail is index heavy so..... ?? ... Can you profile and tell me exactly where in the code it is hanging?


load file with command on remote to open in Neovim locally

I wonder if there would be a way to give a command to the server to load a file from the remote machine to a buffer in neovim on the local machine. I imagine semantics something like this:
# this is a remote server
pball@snowball🌐:~
❯ distant server nvim-open path/to/myfile

And a buffer for path/to/myfile opens in the local Neovim. This would be in some sense the inverse of distant spawn.  SublimeText has a version of this but it has the "hang while a synchronous copy happens"/sshfs issue. Following up #129.

Today there is not. The architecture works like this, where UDS is Unix Domain Socket (Mac/Linux/Unix), or a named pipe for Windows.

The protocol doesn't have any mechanism to send arbitrary data back from the server to the client that isn't associated with a running process, file IO, active search, or a couple of other APIs we provide.
The closest thing I could think of that could be done would be to start a remote process from distant.nvim where the remote process listens for commands you send it on the server and relays them back to neovim. Here's an example using netcat (BSD version):

Use distant.nvim to spawn a netcat instance on some port that only listens locally: nc -kluw 0 localhost 8888
When on your server, send a message to it to be echoed over stdout: echo nvim-open path/to/myfile | nc -uw 0 localhost 8888
Receive the output from within distant.nvim and parse it to understand what you want to do
Do whatever that is. In this case, use distant.nvim's API to open the file.

Interesting! I'm a little stuck because somehow what I was doing in #129 to get connected has stopped working. I'll try this as soon as I get connections going again.


[Bug]: simply navigating to specific site seems to trigger continual 1200% CPU usage

Minimal, reproducible example
import puppeteer from 'puppeteer';

(async () => {
  const browser = await puppeteer.launch()//{headless: true});
  const page = await browser.newPage();

  await page.goto('https://orasis-industries.com/');
  await page.waitForTimeout(1000000);
  await browser.close();
})();

Error string
no error
Bug behavior

[ ] Flaky
[ ] PDF

Background

When opening this site in a headless Chrome instance, CPU usage rises and stays at 1200% until the site is navigated away from.
With {headless: true}, normal CPU usage is observed.
Normal CPU usage was observed in all the browsers I had installed.
I tried with multiple Chrome executables in addition to the default revision (1108766) used by puppeteer: v121.0.6167.85-1, v121.0.6167.139,  and v110.0.5481.77. All reproduced this issue.
https://www.em-spedition.de/ exhibits high CPU, but only for a second. I am not sure if it's related, but I was unable to get any other site to exhibit such high CPU when it was loaded.

Expectation
CPU usage to less than or equal to that of a headed browsing session.
Reality
CPU is pinned inordinately high

Puppeteer configuration file (if used)
No response
Puppeteer version
22.0.0
Node version
20.5.1
Package manager
npm
Package manager version
9.6.7
Operating system
Linux 6.7.2-arch1-2

@Mattwmaster58 is the cpu usage comes from the Node process? or from the browser process? 1200% is probably not possible in Node so perhaps it's a browser issue?

I am also unable to reproduce high-cpu usage: I have around 40% and that is due to the animations that the page runs. Do you have GPU enabled/configured? It might be that the headless does not detect the GPU and uses software renderer for animations.

@Mattwmaster58 you could try out the animation disabling options from https://peter.sh/experiments/chromium-command-line-switches/ but I am not sure if it works.

Regardless, this doesn't seem to be a puppeteer issue per se - closing for now and thank you for the advice

For reference: The canvas elements I assume were using a software renderer. I used --disable-3d-apis to mitigate this issue.


Xavier - Low frame rate

Hello,
We just successfully transferred an image-classification data set over from the TX2. However, although we are conducting inference at the 30 watt mode, we see decreased frames per second, down to about 8 or 9 frames per second, from 15 fps on the TX2. It's also worth noting that somehow the inferencing seems more responsive on the Xavier, although it states 8 or 9 fps, which leads us to question the accuracy of the fps output. Any assistance is greatly appreciated.

I am having a similar issue.
I am using: ./detectnet-camera multiped in 30 watt mode. sudo ~/jetson_clocks.sh and sudo nvpmodel -m 0 do not seem to help. I am getting 9-10 fps which, comparing to a 10 fps video on YouTube, seems to be accurate. However, there may be less lag between camera and display than the TX2.
Any help would be appreciated.


WFLY-17895 Upgrade to Hibernate ORM 6.2.1.Final and enable SessionFactoryTestCase testInjectPUIntoHibernateSessionFactory

https://issues.redhat.com/browse/WFLY-17895 (ORM 6.2.1.Final upgrade)
https://issues.redhat.com/browse/WFLY-17830 (enable testInjectPUIntoHibernateSessionFactory test).

LGTM, but can you add a release notes or github diff link to the upgrade JIRA? Thanks.

I added https://github.com/wildfly/wildfly/pull/16735/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8L472 to WFLY-17895.

@scottmarlow Sorry, I was unclear.  For Component Update jiras we ask for a link in the JIRA description to info that tells people what comes in via the upgrade. If the component project produces a release note document, then a link to that works, or a link to a git diff between the tags for the old and new version works.

@scottmarlow Sorry, I was unclear. For Component Update jiras we ask for a link in the JIRA description to info that tells people what comes in via the upgrade. If the component project produces a release note document, then a link to that works, or a link to a git diff between the tags for the old and new version works.

Thanks Brian, changed https://issues.redhat.com/browse/WFLY-17895 to mention:
Release note is at https://in.relation.to/2023/04/14/hibernate-orm-621-final

Changes are shown here https://github.com/hibernate/hibernate-orm/compare/6.2.0...6.2.1

Thanks @scottmarlow


Move from .janus to custom distro with VAM

Move to VAM https://github.com/MarcWeber/vim-addon-manager

Closed in favor of vim


Check why ingredient.for was created in 5.0 - in 4.6. it was the other way around.

Ingredient links seems to have been changes due to expected practices and FHIR modeling. However, the way links work doesn't seem to reflect implementation practice, and implementers are apparently using the previous like direction via extension.
This problem could go away while addressing issue #8

This is how it went: https://jira.hl7.org/browse/FHIR-31808
The Jira issue raised and solution provided don't map for me.

https://jira.hl7.org/browse/FHIR-39139


pict-rs: 0.5.9 -> 0.5.10

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/pict-rs/versions.
meta.description for pict-rs is: A simple image hosting service
meta.homepage for pict-rs is: https://git.asonix.dog/asonix/pict-rs
Updates performed

Rust version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.5.10 with grep in /nix/store/frjmxf6zbn97xi3jc4z5bmkwg2ljxckd-pict-rs-0.5.10
found 0.5.10 in filename of file in /nix/store/frjmxf6zbn97xi3jc4z5bmkwg2ljxckd-pict-rs-0.5.10

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
pict-rs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/frjmxf6zbn97xi3jc4z5bmkwg2ljxckd-pict-rs-0.5.10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A pict-rs https://github.com/r-ryantm/nixpkgs/archive/5d820591e93462fe2d12d579997bfb7934d5d01d.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/5d820591e93462fe2d12d579997bfb7934d5d01d#pict-rs

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/frjmxf6zbn97xi3jc4z5bmkwg2ljxckd-pict-rs-0.5.10
ls -la /nix/store/frjmxf6zbn97xi3jc4z5bmkwg2ljxckd-pict-rs-0.5.10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

pict-rs

Maintainer pings
cc @happysalada for testing.

Diff: https://git.asonix.dog/asonix/pict-rs/compare/v0.5.9...v0.5.10


Could tpm.a be loaded as a provider by openssl 3.0?

Hello,
I see the built artifact is tpm.so by default, which indicates a shared object. And openssl is able to find it if it's installed to MODULESDIR. I wonder if's feasible to make it built into .a (aka. tpm.a), and make it recognizable as well as loadable by openssl?

Hello. The loadable openssl modules are expected to be "shared objects", i.e. .so files.

Thanks!

Hi @gotthardp
Sorry for bothering you again. Is there a C example that instructs how to generate a CSR using tpm2-openssl?


App appears twice in Android drawer

I followed the instructions to setup the package for android.
When I select the new icon the app restarts, as shown in the gif you provided, but the icon is not changed on my home screen. Instead there is a second entry of my app in my app drawer with one showing the new icon and one showing the default one.
I'm using android 12 on my device.

Hi, @maxfornacon !
This behavior can occur, for example, if you keep your main activity enabled along with some alias. Are you sure that the only enabled element in your AndroidManifest.xml is a default activity-alias?

Are you sure that the only enabled element in your AndroidManifest.xml is a default activity-alias?

I forgot to explicitly set android:enabled=false. Thank you!


content: Implement Pygments Monokai, for upcoming dark theme

For dark theme, web currently uses a mix of Pygments Monokai and Pygments Default. Mixing in Pygments Default seems accidental, so here we just use pure Pygments Monokai. Discussion.
I've included screenshots, below, of just Pygments Monokai, and of Pygments Monokai with web's adjustments. (Except for the adjustment of putting a border around err text; that's hard in Flutter.)
Compare with Pygments's own demonstration of Pygments Monokai here: https://pygments.org/styles/
(To make these screenshots, I plugged in dark-theme colors for the code-block background and message background. So just focus on the code blocks and disregard the jarring appearance of light-theme-styled elements elsewhere. When we implement dark theme #95, we'll do it coherently.)

This PR (pure Pygments Monokai)
Following web (having some Pygments Default mixed in)

Fixes: #749

Oh, and I owe another pair of screenshots; ~coming soon~ here they are. This PR includes a commit to change light mode's plain code-block text color (used for un-highlighted code blocks) from hsl(0deg 0% 15%) to true black, following web.

Does this have a visible effect in the screenshots? I flipped back and forth, and couldn't spot any difference at all except in the clock at the top of the screen.

It's very subtle. The plain, unstyled code block text is now true black, instead of hsl(0deg 0% 15%) i.e. ContentTheme.textStylePlainParagraph.color. Do you have something like Mac's "Digital Color Meter" to see the difference? That's how I checked that there definitely was a change, but I'm also able to see a small difference visually on my monitor.

Can you also say a few words about how you produced the list of styles?

I looked at web's %dark-theme block in web/styles/pygments.css, bulk-formatted it to make nice single-line comments like // .ss { color: #e6db74; }, and translated the commented CSS into Flutter TextStyles.
(Then I started applying the "non-color Zulip customizations" from pygments.css before realizing we didn't want those, as mentioned, and I removed what I had added.)

It's very subtle. The plain, unstyled code block text is now true black, instead of hsl(0deg 0% 15%) i.e. ContentTheme.textStylePlainParagraph.color.

Oh wow, OK — yeah, if I bring my face right up a few inches from the screen and then flip back and forth, I do see the difference.

I looked at web's %dark-theme block in web/styles/pygments.css, bulk-formatted it to make nice single-line comments like // .ss { color: #e6db74; }, copy-pasted those into this file, and translated the commented CSS into Flutter TextStyles.

Cool, makes sense. I think a few words saying these came from web/styles/pygments.css like that would be helpful.
Maybe just have this comment:
  // Pygments Monokai:
  //   https://github.com/pygments/pygments/blob/f64833d9d/pygments/styles/monokai.py
  factory CodeBlockTextStyles.dark(BuildContext context) {

mention that, in addition to the upstream Pygments link (that the current revision has) for whence the colors were ultimately derived.

Thanks for the review! Revision pushed, and I've made a note about the followup you mentioned: https://github.com/zulip/zulip-flutter/pull/756#discussion_r1653830011

Just resolved the conflicts from #759

Thanks! Looks good; merging.


Fixed Highlight Active Page in Hamburger Menu

This fixes issue #279
The list items inside navigation drawer that are for page navigation were wrapped in '.nav-buttons'-class;
Styling was adjusted to adress the '.nav-buttons'-class in header and nav drawer the same way.

Additional suggestion:
As of right now the navigation drawer buttons are "hard to hit" because the buttons are kind of small and there is no visible indication where they actually are.
This could be fixed by changing the width of the <a> to 100%.
Highlighting could be changed to "full row" as well, which would make it a lot easier to hit the links.

┆Issue is synchronized with this Trello card by Unito

Any feedback on this is appreciated :)

@alexastef as you raised the issue maybe you can jump in and give me some feedback on this?

looks good. thanks for your help!


Damage improvements.

Description
A general improvement on how damage works.

This will fire off if the headshot resulted in the entity dying.
Ontop of that, Only_Players is added to make certain mechanics only fire off if the damaged or killed entity was a Player.

  Damage:
    Head:
      Bonus_Damage: 25
      Hit:
        Only_Players: True
        Mechanics: <Mechanics>
      Kill:
        Only_Players: True
        Mechanics: <Mechanics>

Next up is in the main config.

Armor_Point_Protection

Currently, the Armor attribute does nothing in WeaponMechanics, providing you with 0 protection if you had a custom item with the Armor attribute, or someone added armor points to you with /attribute.
Right now, WeaponMechanics only recognizes vanilla armor.
Apparently Minecraft's armor mechanic is pretty complex, with a lot of math behind it, but according to the Minecraft wiki, each armor point should be a 4% reduction in damage, leading to 80% reduction in damage on a full armor bar. (20 armor points).
Individual armor values shouldn't be needed anymore then.

Damage_Dealt / Damage_Received

These two are now split.
Potions and Enchantments under Damage_Dealt will now increase/decrease your damage dealt to entities.
But Potions and Enchantments under Damage_Received will increase/decrease your damage taken.
Strength in vanilla increases damage by 3 HP and Weakness reduces it by 4 HP, I personally think a percentage would be easier like the rest of the damages.
Resistance in vanilla reduces all damage taken by 20%, at Level 5 you become invulnerable.
Blast Protection and Projectile Protection work twice as good as Protection in vanilla, but Blast will only work on explosive damage weapons and Projectile on bullet weapons.
Right now, enchantment and potion effect damage percentages do not stack with levels, which is a shame.

New format

The new format is:
Effect: <Double> <Type>
Effect is replaced by the potion effect or enchantment.
Double is your typical percentage number.
The type is what damage type it is, which can be "ALL" for everything, "BULLET" for normal WeaponMechanics weapons firing bullets, "MELEE" for weapons with Enable_Melee set to true, and "EXPLOSIVE" for the explosive damage.

Such as per-weapon potion/enchant damages that would override the main config list.
But that would get too big and complex for me to write down.
And per-entity damage is left out aswell.
I'm leaving it with this right now.
Configuration
  Damage:
    Head:
      Bonus_Damage: <amount>
      Hit:     #NEW
        Only_Players: <Boolean>
        Mechanics: <Mechanics>
      Kill:     #NEW
        Only_Players: <Boolean>
        Mechanics: <Mechanics>

Damage:
  Use_Vanilla_Damaging: <Boolean>
  Minimum_Rate: <Double>
  Maximum_Rate: <Double>
  Damage_Dealt:
    Potions:
      - <Potion>: <Double> <Type>
    Enchantments: # in 1.13+, These must use MINECRAFT names... all lowercase
      - <Enchantment>: <Double> <Type>
  Damage_Received:
    Armor_Point_Protection: <Double> <Type>
    Potions:
      - <Potion>: <Double> <Type>
    Enchantments: # in 1.13+, These must use MINECRAFT names... all lowercase
      - <Enchantment>: <Double> <Type>

Payment (optional)

[ ] I'm willing to pay for this feature

2.5.0 has implemented proper damage modifiers for explosions and base projectiles. Melee weapons are already covered by the default projectile modifiers.


Date range selector

Hi,
Would be great if there was a date range selector where you can select specific dates so to be able to review specific data.
Thanks

@adidgit in the UI or in the logs imported? If its the UI, then that would be something for goaccess, https://github.com/allinurl/goaccess

Hi, In the UI. Yes, you are right. Goaccess would be the right place.
BTW...Thanks for the excellent application!


WIP: Add tools + AWSDeploy tool

Add tool metaclass that provides string representation

String representation includes object name + function information. Function information includes parameters, type hints, and docstring

Add rough draft of DeployToAWS tool

what's the status of the PR? i.e. what's working or broken?

I left some comments in tools.py too
Nothing thats broken afaik, but still missing some functionality, primarily:
Haven't hit response with eval yet
Haven't updated prompts/operators to use tools well
Missing a smarter pipeline for aws deploy w/ file handling

My development has mostly been contained in a jupyter notebook. I've copied over my most important work, but its not really integrated into the rest of concrete

Anything in particular I can look into?

think about using a metaclass that handles all the superclasses instantiations and at the outermost layer, puts "tool" inside as a field

support normal function calls to tools' actions but pydantic specs for tool action inputs are a great idea

it's weird but fine to have an agent write down files before copying them into docker

your pr on this looks good. I'm going to work on figuring out if we can take out the eval and if there's a better way to specify params for the tool function calls

hm ok, let's try to merge

I have just a couple comments


Trying to run the nano_rust.rs example using chumsky = "1.0.0-alpha.6"

I am trying to run the nano_rs example using chumsky 1.0.0-alpha.6 and ariadne 0.4.0 with the auto-color feature.
Compiling gives this error -
~/rs-rs> cargo r                                                                                101 01/27/24 00:26:44 AM
   Compiling rs-rs v0.1.0 (/home/aneesh/rs-rs)
error[E0599]: no method named `labelled` found for struct `Select` in the current scope
   --> src/main.rs:214:14
    |
208 |               let val = select! {
    |  _______________________-
209 | |                 Token::Null => Expr::Value(Value::Null),
210 | |                 Token::Bool(x) => Expr::Value(Value::Bool(x)),
211 | |                 Token::Num(n) => Expr::Value(Value::Num(n)),
212 | |                 Token::Str(s) => Expr::Value(Value::Str(s)),
213 | |             }
214 | |             .labelled("value");
    | |             -^^^^^^^^ method not found in `Select<{closure@lib.rs:2782:13}, _, Expr<'_>, _>`
    | |_____________|
    |

error[E0599]: no method named `labelled` found for struct `Select` in the current scope
   --> src/main.rs:216:66
    |
216 |             let ident = select! { Token::Ident(ident) => ident }.labelled("identifier");
    |                                                                  ^^^^^^^^ method not found in `Select<{closure@lib.rs:2782:13}, _, &str, _>`

error[E0599]: no method named `labelled` found for struct `FoldlWith` in the current scope
   --> src/main.rs:377:14
    |
376 | /         block_chain
377 | |             .labelled("block")
    | |             -^^^^^^^^ method not found in `FoldlWith<{closure@main.rs:362:56}, Or<RecoverWith<DelimitedBy<Recursive<dyn Parser<'_, _, (Expr<'_>, SimpleSpan), _>>, Just<Token<'_>, _, _>, ..., ..., ...>, ...>, ...>, ..., ..., ...>`
    | |_____________|
    |
    |
    = note: the full type name has been written to '/home/aneesh/rs-rs/target/debug/deps/rs_rs-25e6c660cbfbb541.long-type-15906973034806673080.txt'

error[E0599]: no method named `labelled` found for struct `DelimitedBy` in the current scope
   --> src/main.rs:423:10
    |
418 |       let args = ident
    |  ________________-
419 | |         .separated_by(just(Token::Ctrl(',')))
420 | |         .allow_trailing()
421 | |         .collect()
422 | |         .delimited_by(just(Token::Ctrl('(')), just(Token::Ctrl(')')))
423 | |         .labelled("function args");
    | |         -^^^^^^^^ method not found in `DelimitedBy<Collect<SeparatedBy<Select<{closure@lib.rs:2782:13}, _, &str, _>, Just<Token<'_>, _, _>, &str, Token<'_>, _, _>, &str, _>, Just<Token<'_>, _, _>, Just<Token<'_>, _, _>, Token<'_>, ...>`
    | |_________|
    |
    |
    = note: the full type name has been written to '/home/aneesh/rs-rs/target/debug/deps/rs_rs-25e6c660cbfbb541.long-type-17796388662664924487.txt'

error[E0599]: no method named `labelled` found for struct `MapWith` in the current scope
   --> src/main.rs:429:18
    |
427 | /             ident
428 | |                 .map_with(|name, e| (name, e.span()))
429 | |                 .labelled("function name"),
    | |                 -^^^^^^^^ method not found in `MapWith<Select<{closure@lib.rs:2782:13}, _, &str, _>, &str, {closure@main.rs:428:27}>`
    | |_________________|
    |

error[E0599]: no method named `contexts` found for struct `chumsky::error::Rich` in the current scope
   --> src/main.rs:626:32
    |
626 |                 .with_labels(e.contexts().map(|(label, span)| {
    |                                ^^^^^^^^ method not found in `Rich<'_, String, SimpleSpan, &str>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `rs-rs` (bin "rs-rs") due to 6 previous errors

I'm taking inspiration from this example to build my C compiler, using chumsky as the lexer and the parser, however I am not able to use the labelled, as_contexts and contexts methods on my parsers.

Have you enabled the label cargo feature? Label-related methods are only available when the feature has been enabled in your Cargo.toml, like so:
chumsky = { version = "...", features = ["label"] }

Yep, this works now. I added the crate by hand rather than using cargo add so was not aware of the features.

I should probably have label enabled by default tbh. It does add a very small amount of overhead for Rich, but if one cares about that... one probably shouldn't be using Rich :D

Honestly, I second this.


Command to activate virtualenvs when changing directory

Enables automatic activation of a virtualenv when jumping into a directory. This is done by looking in the current directory for a file or directory named .venv. If it's not found in the current directory its parents will also be examined. .venv can be either:

A file containing the name of a virtualenv found in $WORKON_HOME
A directory containing bin/activate (meaning that the directory is assumed to be a virtualenv.)

If $WORKON_HOME is set it is assumed that virtualenvwrapper is installed and the workon command will be issued.

I was originally looking at something like this in https://github.com/zsh-users/prezto/pull/57 so I'll try to take a look at this later.

I'm going to close this in favor of the new PR because there's more activity there. Thanks for getting the ball started with this!


gopls: lost "file deleted" notification (eglot)

I noticed today that a "git checkout" command, which adds, deletes, and rewrites a number of files, left gopls in a state in which it was still reporting "references" results in Go files that no longer exist in the file system. I suspect a deletion notification from a client-side (eglot) file watcher got lost somewhere.
The task of this issue is to try to reproduce the problem and see whether it's an eglot issue or a gopls one.

Never mind. The emacs buffer of the deleted file was still open, and so it was contributed as a virtual part of the workspace thanks to overlays, and everything worked beautifully.


How do I ask a series of questions in succession?

Hello! First of all, I'd like to say that I love Chatterbot and it has proven very helpful in my studies. I just have a question. I'm trying to create a new Logic Adapter in Django that asks a question, and then once given a valid answer, goes to the next question. But since the training data is made with Statement -> Response in mind, how would I go about making the adapter?

This example is a close example https://github.com/gunthercox/ChatterBot/blob/master/examples/learning_feedback_example.py


Build problem on windows

Jenkins has complained about a build problem on windows:
"C:\Jenkins\workspace\DevAudit.Windows\DevAudit.sln" (default target) (1) ->
"C:\Jenkins\workspace\DevAudit.Windows\DevAudit.AuditLibrary\DevAudit.AuditLibrary.csproj" (default target) (2) ->
(CoreCompile target) ->
  SshAuditEnvironment.cs(16,7): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\DevAudit.Windows\DevAudit.AuditLibrary\DevAudit.AuditLibrary.csproj]
  SshAuditEnvironment.cs(17,7): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?) [C:\Jenkins\workspace\DevAudit.Windows\DevAudit.AuditLibrary\DevAudit.AuditLibrary.csproj]

    12 Warning(s)
    2 Error(s)

What is curious is that a build from the VisualStudio UI works fine.
Any thoughts?

Should be fixed in 03bf67f9d5ee774ffdb0e2bd824ce3f5911104e5. Should also resolve build failures on Linux.

Problem was still occurring, so I upgraded nuget and wiped the build. New build got a bit further:
"C:\Jenkins\workspace\DevAudit.Windows\DevAudit.sln" (default target) (1) ->
"C:\Jenkins\workspace\DevAudit.Windows\DevAudit.CommandLine\DevAudit.CommandLine.csproj" (default target) (5) ->
(ResolveAssemblyReferences target) ->
  app.config : error MSB3249: Application Configuration file "app.config" is invalid. Could not find file 'C:\Jenkins\workspace\DevAudit.Windows\DevAudit.CommandLine\app.config'. [C:\Jenkins\workspace\DevAudit.Windows\DevAudit.CommandLine\DevAudit.CommandLine.csproj]

I added in the missing files. It is curious they were already on the dev machine but not on the build machine.


[Xcode 12 Migration] - Migrate to XCFramework

Jira Ticket

ACCSEC-

Github Issue

ISSUE-

Description

Replace generation of fat framework with xcframework.
Remove old script to create fat framework.
Remove old TwilifioVerifySDK from xcodeproject.

Commit message

Screenshot

Testing

[ ] Added unit tests
[x] Ran unit tests successfully
[ ] Added documentation for public APIs and/or Wiki

Code coverage
Total coverage: 95.13%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.13%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.13%

Powered by Slather

  Generated by :no_entry_sign: Danger

Code coverage
Total coverage: 95.13%

Powered by Slather

  Generated by :no_entry_sign: Danger


ui: display edit button in conference search results

Ref: #1691

@oguzdemirbasci we should update the e2e tests as well :)

@oguzdemirbasci we should update the e2e tests as well :)

Yeah, I have been looking which e2e tests needed to be updated. But screenshots are taken before login. So shouldn't they be the same after this update?

@oguzdemirbasci I know it's not part of the issue but could you please write an e2e to test this functionality? we should also add for all collections that have the edit button


New detecting techniques

I don't have enough data on platform/device differences on these apis, but I know they are used to deep fingerpint client.
Please take a look, and hoping to see them implemented (if not already):

window.SerialPort.prototype.hasOwnProperty('forget') - forget method only in chromium 103+
window.matchMedia('(blah blah)').media === 'not all' - false for media-queries level 4 (used in chromium 104+)
window.matchMedia('(color-gamut: p3)').matches and window.matchMedia('(color-gamut: rec2020)').matches - support of modern color-gamuts
window.cdc_%randomHash%_Array (or _Promise, or_Symbol) - property that can be found in unpatched, selenium controlled chromedriver (see https://github.com/ultrafunkamsterdam/undetected-chromedriver)
await navigator.getBattery() - batteryAPI
document.featurePolicy.allowedFeatures()
fingerprint list of available js versions

var versions = [0,1,2,3,4,5,6,7,8,99];
versions.forEach((v)=>{
    var s = document.createElement(`script`);
    s.setAttribute('language', 'JavaScript1.'+v);
    s.text = "window['__js_ver'] = 1." + v + ";";
    document.body.append(s);
});
// max supported js version is now window.__js_ver

versions 1.6 and 1.7 was deprecated by spec, but still can be found

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare - as a way to detect lies between browser type
window.console.memory.jsHeapSizeLimit - may differ between users
HTML Entities seems to be different in FF and Chrome - https://jsfiddle.net/yx1sn4uo/
Server method - ping the host to know the platform by ttl: https://ostechnix.com/identify-operating-system-ttl-ping/ and https://subinsb.com/default-device-ttl-values/
also maybe add ip blacklist check, including ip in session hash. These guys have 615kk blacklisted ips https://iplists.firehol.org/
await navigator.keyboard.getLayoutMap() - use .entries() or .keys() for hashing
navigator.webkitTemporaryStorage.queryUsageAndQuota((usage,quota)=>{console.log(usage,quota)})

Thank you for recommending these. That's a lot of cool stuff. I will take a look.
Some early notes:

Chrome 103 - Nice find! Right now, the features section is selective, but we could get the exact version by searching internal interfaces, like SerialPort.prototype. Some APIs, such as SerialPort, are only available on desktop, but we could use AbortSignal.timeout to capture Chrome 103 on both Android and desktop.
BatteryManager.charging is beneficial for session based fingerprinting, similar to storage quota, heap memory, network speed, performance timing, viewport size and client triggered events. I might add a "Status" section focused on these.

Hi buddy, I have been researching and exploring your repo every day and trying to explore and learn more so I can contribute and maybe work with u someday, Apart from that as per [Onefivefournine] I looked over and found a demo regarding finding the Js version
mine is 1.7 as it states but I am curious What is the use of this enumeration in terms of bot detection?
jsfiddle link :- http://jsfiddle.net/Ac6CT/

The spec I was talking about
https://mimesniff.spec.whatwg.org/#javascript-mime-type
Currently I see Chrome 103 returns 1.7, but Firefox 102 returns 1.5, also tested on Chromium 105 - it returns 1.5
As for serialPort: like some other techniques it only works on https origin

The spec I was talking about https://mimesniff.spec.whatwg.org/#javascript-mime-type Currently I see Chrome 103 returns 1.7, but Firefox 102 returns 1.5, also tested on Chromium 105 - it returns 1.5
As for serialPort: like some other techniques it only works on https origin

Buddy, I am a little confused about last one The serialPort one

@vis2021t That's cool you are interested in this stuff. You might like this manuscript and paper. A lot of research there.
I am mostly active on GitHub. Feel free to reach out to me either in this repo or anything open source.

@vis2021t That's cool you are interested in this stuff. You might like this manuscript and paper. A lot of research there.
I am mostly active on GitHub. Feel free to reach out to me either in this repo or anything open source.

Thanks buddy I ran your git hosted website over Google mobile web friendly check and and they were easily getting detected as lying, I noticed specifically it was based over Shared worker where they got caught lying

Few images I took:-

Just FYI, I will add new techniques in this issue that I found researching some trackers. You can implement them or can dump them, it is your repo, just want to share some info :)

new techniques

That is awesome. New techniques are always appreciated. I will check them out.

Google mobile web friendly check

Looks like Linux emulating Android. Definitely a good bot. TLS fingerprinting is a good way to determine if it's a real google bot. Very interesting topic.

new techniques

That is awesome. New techniques are always appreciated. I will check them out.

Google mobile web friendly check

Looks like Linux emulating Android. Definitely a good Googlebot. TLS fingerprinting is a good way to determine if behavior like that is a real Googlebot. Very interesting topic.

new techniques

That is awesome. New techniques are always appreciated. I will check them out.

Google mobile web friendly check

Looks like Linux emulating Android. Definitely a good Googlebot. TLS fingerprinting is a good way to determine if behavior like that is a real Googlebot. Very interesting topic.

indeed I will be researching more over real days bot and detection, but I have noticed 1 thing in common, Worker scope over these bots as they pretend to me real device, instead of emulated, do u have resources on tld fingerprinting, as u mentioned It can be great help in these section as I assume

Just FYI, I will add new techniques in this issue that I found researching some trackers. You can implement them or can dump them, it is your repo, just want to share some info :)

Just FYI, I will add new techniques in this issue that I found researching some trackers. You can implement them or can dump them, it is your repo, just want to share some info :)

aaye let me know if u need any hand in research

worker scope

Worker scope in Chrome detects a lot too. In Chrome, device emulation alters the dedicated worker scope, but not shared or service worker scopes. Service workers have better support and run faster, so we can detect a lot there, but some bots try to fudge values in service workers too... requires JS tampering, so we try to detect that. If workers are blocked, that can be a helper in generating a more unique fingerprint. Blocking often creates a better fingerprint when few browsers are doing the same dance.
As far as I know, in Firefox, the device emulator does not affect the worker scope. But, ideally we want to use the dedicated worker scope since service workers can be disabled by a preference. The current method I use is to try service, then shared, and lastly dedicated. But, if we have to use dedicated, Chrome could emulate the user agent and platform. Regardless of the worker scope type, we try to validate the values and look for tampering.

Hi guys sorry for being inactive. haha looks like missed some cool stuff

I'm not sure on the industry standard, but I imagine Google and Yahoo could be using both WebDriver and command line scripts.

I'm not sure on the industry standard, but I imagine Google and Yahoo could be using both WebDriver and command line scripts.

Mind to elaborate regarding cli scripts as I quite unclear with it ++ I think u are right about they using web driver

cli scripts

Here are a few interesting concepts

go framework - https://github.com/gocolly/colly (no webdriver)
python - https://www.scrapingbee.com/blog/web-scraping-101-with-python/
ruby - https://medium.com/@brookeyalof2017/scraping-together-a-cli-bot-10a4baedfa42
apps script (very clever) - https://webscraping.pro/scrape-google-app-script/

Hey, take a look at these articles, fingerprinting is a science, haha
https://incolumitas.com/pages/TCP-IP-Fingerprint/
https://incolumitas.com/pages/TLS-Fingerprint/

Very nice. I was just recently looking at the repo too. Didn't see the demo page till now.
Following your updates in the post too. The ttl-ping looks very interesting.
HTML entities/unicodes are a treasure. They also render using OS fonts and if measured are unique to OS versions.

Added performance.memory, storage quota, battery info, and network info to the status section. I might re-add the keyboard API. It was a performance hog and entropy seemed low.
It's on my mind to dissect Selenium.
I have some browser engine and version detection concepts, but not sure its necessary since this is revealed in so many areas. It's pretty much impossible to hide the engine and version without causing a mountain of site breakage. Check out https://arkenfox.github.io/TZP/tests/engine.html.

Very nice. I was just recently looking at the repo too. Didn't see the demo page till now.
Following your updates in the post too. The ttl-ping looks very interesting.
HTML entities/unicodes are a treasure. They also render using OS fonts and if measured are unique to OS versions.

Added performance.memory, storage quota, battery info, and network info to the status section. I might re-add the keyboard API. It was a performance hog and entropy seemed low.
It's on my mind to dissect Selenium.
I have some browser engine and version detection concepts, but not sure its necessary since this is revealed in so many areas. It's pretty much impossible to hide the engine and version without causing a mountain of site breakage. Check out https://arkenfox.github.io/TZP/tests/engine.html.

SerialPort and matchMedia, allowedFeatures, etc: These are good detections. Currently, we can detect Chrome 103, 104, etc. and all versions with CSS and window features. It's okay if the detection is not exact, since we should allow some mild discrepancy: users can test features or disable them.
selenium: will revisit at some point. Looking for uncommon detections.
storage quota, battery and performance.memory: added to status section. webkitTemporaryStorage is depreciated as of Chrome 106, so I used the Storage API as a default.
HTML Entities: Currently, we have a select use of emojis and unicodes, but need to limit it due to rendering performance cost.
ping: very interesting. Similar to TLS fingerprinting, this gets more into server-side analysis. I'm not sure if I will put focus on that for this project. More interested in front end fingerprinting.
ip blacklist: this should not be necessary, since the goal is not to create a fingerprinting library for fraud prevention. Rather, the goal is to promote research and education on browser fingerprinting. All network IPs are welcome, but I do have an API rate-limiting algorithm to auto timeout networks that generate too many requests in a given hour.

Closing for now, but I will revisit some of these techniques.


Removed deprecated Guest value from "aad m365group user list" command. Closes #5558

Removed deprecated Guest value from aad m365group user list command. Closes #5558

Thank you @nanddeepn!

hi, this PR is now targeting v9.
But it does not mean this PR will be somehow on-hold. We just identified a breaking change issue we want to release ASAP with next major that's why we plan to release v8 a lot sooner to unblock our users with Power Automate commands.
v9 target is will be released shortly after (as planned), which most probably will be the end of September.
Thank you once again for your truly amazing effort in helping us build the best CLI in the world 👏😍. You Rock 🤩

Ready to merge 🚀

I started merging this but when writing the upgrade guidance I noticed that maybe not everything from the related issue was done. @milanholemans may I kindly ask you for your support here
in the initial issue we have

but yet I still see this in the response

also I see this is also used for filtering in code.
 if (args.options.role) {
        users = users.filter(i => i.userType === args.options.role);
      }

@milanholemans it is not quite clear to me why we want to remove this option from the response? Am I missing something here? I will wait for your feed  (double check) on this before I proceed.
Thanks 😉

Hi @Adam-it
The problem is actually that userType is a user property that is returned by Microsoft Graph: https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties

So every user in Entra ID has this property to indicate if a user is a Member or Guest account. What we do in this command is overwriting the value with our own logic, which we shouldn't really do. If people want to know if a user is a member or an owner, they should read the roles property.

Ready to merge 🚀. Update upgrade guidance and recheck sample scripts

Merged manually. You Rock 👏🤩


Flash Attention 2

Hi team Hazy Research,
It's just a matter of time before you get this question but is HyennaDNA going to use Flash Attention 2 vs 1? The improvements listed on repo for v2 seem pretty significant but v. 1 is linked in HyennaDNA.
I also see that you work with Flash Attention team based on author/ contributor list so probably won't be long until we see this change...

Hello!  So to be clear, HyenaDNA itself does not use attention (or FlashAttention).
However, we do * compare *  with FlashAttention in this repo.  In future works, we may compare with FlashAttn2 going forward, but for this repo, it won't fundamentally change any HyenaDNA performance any way :)


[bug]: On android crash when user press on All Wallets

Description
I am using expo, and everything work smoothly except Pressing the All Wallets on android. I got error from native code (see the screenshot).
Web3Modal SDK version
"@web3modal/wagmi-react-native": "^1.3.0"
Output of npx react-native info
System:
    OS: macOS 14.1
    CPU: (8) x64 Apple M1 Pro
    Memory: 28.91 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 14.19.2 - ~/.nvm/versions/node/v14.19.2/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 6.14.17 - ~/.nvm/versions/node/v14.19.2/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
    Android SDK:
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2023.2 AI-232.10227.8.2321.11479570
    Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
  Languages:
    Java: 20.0.2 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.14 => 0.71.14
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Expo Version (if applies)
"expo": "~48.0.21",
Steps to reproduce
I just trigger the open() from useWeb3Modal;
const { open, close } = useWeb3Modal();
With the physical device (dev-client), The modal opened, then I pressed on All Wallets , the app got crash
Snack, code example, screenshot, or link to a repository

Hello @ignaciosantise  ;
Do you have any thought about this? I've tried different version. It's still the same

Apparently the error comes from react-native-svg. Which version are you using?

@ignaciosantise . Thanks. I managed to solved the issue which installs the<EMAIL_ADDRESS>✅
Installing react-native-svg below 1.4.0 will produce the app crash on Android.


What is the effect of memory, CPUs and shared memory settings in Neko-Rooms?

Thank you for the info and sorry in advance if this was already documented somewhere.

Thank you. If running Neko with KDE image on Linode VPS with dedicated 8 CPU + 16 GB RAM, for best performance should I just leave the default settings of N/A for memory and CPUs and 2 GB for shared memory or do you recommend something else? Thanks again.

The default settings of N/A means, there is no limit. You can always increate shared memory if you see that it does not keep up, but I havent seen that it would have performance issues.


refactor(google): resources migration batch 9

@aliscott Would you please review?

@aliscott Ok so your comments started a rabbit hole of refactoring :))
I want to give a summary of the changes and their reason.
A. Why the previous structure was wrong
In the previous refactoring, we had a single struct named NetworkEgress and all usage data were its attributes. The problem was that different resources have different usage keys. For instance, VPNGateway has no same_continent usage key. So we should probably have different structs for different types of resources that use egress.
B. Why composition didn't work
Each egress resource has about 5-6 usage keys. To make working with them easier I use reflect to get their values so I can iterate over them. The helper function is called GetFloatFieldValueByUsageTag.
Let's say we have a core struct named NetworkEgress and another one that encapsulates it named ComputeVPNGatewayNetworkEgressUsage. Since the core logic is placed on the NetworkEgress it can't access its parent fields unless the fields are defined on the core struct which then the problem A will arise.
So I had to split most of the code and introduce some duplication. I'm not sure if that's the best or even the right way so I would be more than happy to get your ideas.

This looks good. I think separating it out makes it more explicit even if it is duplicated. One thought I had was if we should inline the usage subresources in each resource. I've written out an example here since it was easier to express as code: https://gist.github.com/aliscott/6d7f8973f29f2d4a5b1dabda3bd4dc7d. I feel that putting it inline means less jumping around when looking at the code.
Other suggestions I have:
1. Remove the `getEgressAPIRegionName` and `getEgressAPIServiceName` functions if we're just inlining these

2. Same with the `Prefix` and `Address` properties of the usage struct. And if we remove them we don't need the `NetworkEgressUsage` struct anymore, we can just inline `Region` where we need it.

Let me know what you think.

I'm a big fan of making things simple so I completely agree with you.

@sinabakh Just FYI in case you plan on the next batch, I'm working on migrating container_cluster/container_node_pool Google resources and some other related to them.


Visualization of the result

I tried the example and get the output file teddy_seg.off. How to visualize this file?

You can use meshlab to visualize the colored mesh. https://www.meshlab.net/


Fix sysv backwards compatibility

Description
This PR removes the /etc/init.d/wazuh-indexer file from rpm packages, which is standing in the way of backwards compatibility with sysv and the service wazuh-indexer {start,stop,status} commands.
Issues Resolved
solves #340
Check List

[x] New functionality includes testing.

[x] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
[x] Commits are signed per the DCO using --signoff
[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)
[ ] Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

After building the package, the service commands are working:

Test results:
[root@alma9 ~]# yum install ./wazuh-indexer-4.9.0.x86_64.rpm
Last metadata expiration check: 0:36:13 ago on Thu Aug  1 18:52:24 2024.
Dependencies resolved.
======================================================================================================================================================================================
 Package                                        Architecture                            Version                                   Repository                                     Size
======================================================================================================================================================================================
Installing:
 wazuh-indexer                                  x86_64                                  4.9.0-0                                   @commandline                                  813 M

Transaction Summary
======================================================================================================================================================================================
Install  1 Package

Total size: 813 M
Installed size: 1.0 G
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                1/1
  Running scriptlet: wazuh-indexer-4.9.0-0.x86_64                                                                                1/1
  Installing       : wazuh-indexer-4.9.0-0.x86_64                                                                                1/1
  Running scriptlet: wazuh-indexer-4.9.0-0.x86_64                                                                                1/1
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
 sudo systemctl start wazuh-indexer.service

  Verifying        : wazuh-indexer-4.9.0-0.x86_64                                                                                1/1

Installed:
  wazuh-indexer-4.9.0-0.x86_64

Complete!
[root@alma9 ~]# NODE_NAME=node-1
[root@alma9 ~]# mkdir /etc/wazuh-indexer/certs
tar -xf ./wazuh-certificates.tar -C /etc/wazuh-indexer/certs/ ./$NODE_NAME.pem ./$NODE_NAME-key.pem ./admin.pem ./admin-key.pem ./root-ca.pem
mv -n /etc/wazuh-indexer/certs/$NODE_NAME.pem /etc/wazuh-indexer/certs/indexer.pem
mv -n /etc/wazuh-indexer/certs/$NODE_NAME-key.pem /etc/wazuh-indexer/certs/indexer-key.pem
chmod 500 /etc/wazuh-indexer/certs
chmod 400 /etc/wazuh-indexer/certs/*
chown -R wazuh-indexer:wazuh-indexer /etc/wazuh-indexer/certs

[root@alma9 ~]# systemctl daemon-reload
systemctl enable wazuh-indexer
systemctl start wazuh-indexer
Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service → /usr/lib/systemd/system/wazuh-indexer.service.

[root@alma9 ~]# /usr/share/wazuh-indexer/bin/indexer-security-init.sh
**************************************************************************
** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755           **
**************************************************************************
Security Admin v7
Will connect to <IP_ADDRESS>:9200 ... done
Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
OpenSearch Version: 2.13.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: wazuh-cluster
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index does not exists, attempt to create it ... done (0-all replicas)
Populate config from /etc/wazuh-indexer/opensearch-security/
Will update '/config' with /etc/wazuh-indexer/opensearch-security/config.yml
   SUCC: Configuration for 'config' created or updated
Will update '/roles' with /etc/wazuh-indexer/opensearch-security/roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /etc/wazuh-indexer/opensearch-security/roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /etc/wazuh-indexer/opensearch-security/internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
Will update '/actiongroups' with /etc/wazuh-indexer/opensearch-security/action_groups.yml
   SUCC: Configuration for 'actiongroups' created or updated
Will update '/tenants' with /etc/wazuh-indexer/opensearch-security/tenants.yml
   SUCC: Configuration for 'tenants' created or updated
Will update '/nodesdn' with /etc/wazuh-indexer/opensearch-security/nodes_dn.yml
   SUCC: Configuration for 'nodesdn' created or updated
Will update '/whitelist' with /etc/wazuh-indexer/opensearch-security/whitelist.yml
   SUCC: Configuration for 'whitelist' created or updated
Will update '/audit' with /etc/wazuh-indexer/opensearch-security/audit.yml
   SUCC: Configuration for 'audit' created or updated
Will update '/allowlist' with /etc/wazuh-indexer/opensearch-security/allowlist.yml
   SUCC: Configuration for 'allowlist' created or updated
SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"],"updated_config_size":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"]) due to: null
Done with success

[root@alma9 ~]# curl -ku admin:admin https://localhost:9200
{
  "name" : "node-1",
  "cluster_name" : "wazuh-cluster",
  "cluster_uuid" : "8vhtk_3NRKG98zz8nBWybg",
  "version" : {
    "number" : "7.10.2",
    "build_type" : "rpm",
    "build_hash" : "bf42358a96448dcf95cdde3cc82300267743a9e0",
    "build_date" : "2024-08-01T19:11:30.394888472Z",
    "build_snapshot" : false,
    "lucene_version" : "9.10.0",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

[root@alma9 ~]# service wazuh-indexer status
Redirecting to /bin/systemctl status wazuh-indexer.service
● wazuh-indexer.service - wazuh-indexer
     Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: active (running) since Thu 2024-08-01 19:29:27 UTC; 46s ago
       Docs: https://documentation.wazuh.com
   Main PID: 3913 (java)
      Tasks: 125 (limit: 200975)
     Memory: 1.5G
        CPU: 37.476s
     CGroup: /system.slice/wazuh-indexer.service
             └─3913 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -XX:+ShowCodeDetailsInExceptionMessages -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.security.manager=allow -Djava.locale.providers=SPI,COMPAT -Xms1g -Xmx1g -XX:+UseG1GC -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -Djava.io.tmpdir=/var/log/wazuh-indexer/tmp -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/wazuh-indexer -XX:ErrorFile=/var/log/wazuh-indexer/hs_err_pid%p.log "-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/wazuh-indexer/gc.log:utctime,pid,tags:filecount=32,filesize=64m" -Djava.security.manager=allow -Djava.util.concurrent.ForkJoinPool.common.threadFactory=org.opensearch.secure_sm.SecuredForkJoinWorkerThreadFactory -Dclk.tck=100 -Djdk.attach.allowAttachSelf=true -Djava.security.policy=file:///etc/wazuh-indexer/opensearch-performance-analyzer/opensearch_security.policy --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED -XX:MaxDirectMemorySize=536870912 -Dopensearch.path.home=/usr/share/wazuh-indexer -Dopensearch.path.conf=/etc/wazuh-indexer -Dopensearch.distribution.type=rpm -Dopensearch.bundled_jdk=true -cp "/usr/share/wazuh-indexer/lib/*" org.opensearch.bootstrap.OpenSearch -p /run/wazuh-indexer/wazuh-indexer.pid --quiet

Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager will be removed in a future release
Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: Aug 01, 2024 7:29:20 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: WARNING: COMPAT locale provider will be removed in a future release
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: A terminally deprecated method in java.lang.System has been called
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager will be removed in a future release
Aug 01 19:29:27 alma9 systemd[1]: Started wazuh-indexer.

[root@alma9 ~]# service wazuh-indexer stop
Redirecting to /bin/systemctl stop wazuh-indexer.service
[root@alma9 ~]# systemctl status wazuh-indexer
○ wazuh-indexer.service - wazuh-indexer
     Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: inactive (dead) since Thu 2024-08-01 19:36:10 UTC; 5s ago
   Duration: 6min 42.554s
       Docs: https://documentation.wazuh.com
    Process: 3913 ExecStart=/usr/share/wazuh-indexer/bin/systemd-entrypoint -p ${PID_DIR}/wazuh-indexer.pid --quiet (code=exited, status=143)
   Main PID: 3913 (code=exited, status=143)
        CPU: 43.750s

Aug 01 19:29:20 alma9 systemd-entrypoint[3913]: WARNING: COMPAT locale provider will be removed in a future release
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: A terminally deprecated method in java.lang.System has been called
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
Aug 01 19:29:21 alma9 systemd-entrypoint[3913]: WARNING: System::setSecurityManager will be removed in a future release
Aug 01 19:29:27 alma9 systemd[1]: Started wazuh-indexer.
Aug 01 19:36:10 alma9 systemd[1]: Stopping wazuh-indexer...
Aug 01 19:36:10 alma9 systemd[1]: wazuh-indexer.service: Deactivated successfully.
Aug 01 19:36:10 alma9 systemd[1]: Stopped wazuh-indexer.
Aug 01 19:36:10 alma9 systemd[1]: wazuh-indexer.service: Consumed 43.750s CPU time.
[root@alma9 ~]# ^C
[root@alma9 ~]# service wazuh-indexer start
Redirecting to /bin/systemctl start wazuh-indexer.service
[root@alma9 ~]# systemctl status wazuh-indexer
● wazuh-indexer.service - wazuh-indexer
     Loaded: loaded (/usr/lib/systemd/system/wazuh-indexer.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: active (running) since Thu 2024-08-01 19:36:41 UTC; 5s ago
       Docs: https://documentation.wazuh.com
   Main PID: 4420 (java)
      Tasks: 104 (limit: 200975)
     Memory: 1.4G
        CPU: 31.588s
     CGroup: /system.slice/wazuh-indexer.service
             └─4420 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -XX:+ShowCodeDetailsInExceptionMessages -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.security.manager=allow -Djava.locale.providers=SPI,COMPAT -Xms1g -Xmx1g -XX:+UseG1GC -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -Djava.io.tmpdir=/var/log/wazuh-indexer/tmp -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/wazuh-indexer -XX:ErrorFile=/var/log/wazuh-indexer/hs_err_pid%p.log "-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/wazuh-indexer/gc.log:utctime,pid,tags:filecount=32,filesize=64m" -Djava.security.manager=allow -Djava.util.concurrent.ForkJoinPool.common.threadFactory=org.opensearch.secure_sm.SecuredForkJoinWorkerThreadFactory -Dclk.tck=100 -Djdk.attach.allowAttachSelf=true -Djava.security.policy=file:///etc/wazuh-indexer/opensearch-performance-analyzer/opensearch_security.policy --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED -XX:MaxDirectMemorySize=536870912 -Dopensearch.path.home=/usr/share/wazuh-indexer -Dopensearch.path.conf=/etc/wazuh-indexer -Dopensearch.distribution.type=rpm -Dopensearch.bundled_jdk=true -cp "/usr/share/wazuh-indexer/lib/*" org.opensearch.bootstrap.OpenSearch -p /run/wazuh-indexer/wazuh-indexer.pid --quiet

Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:579)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:486)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:188)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:854)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.java:283)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:246)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]:         at java.base/java.lang.Thread.run(Thread.java:1583)
Aug 01 19:36:41 alma9 systemd-entrypoint[4420]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log


audio.js: multpile playlist players on one page

I found your audio.js examples.. and they are just what I’ve been looking for.  Thank you for sharing them.
I just have a quick question... on your example 5 of Customised playlist player http://kolber.github.com/audiojs/demos/test6.html - is it possible to place more than one of these on a single website page?
I have tried it, and the second instance player just displays a rotating circle (instead of the arrow for play).. and if you select any song from this second group, it plays, but shows up as playing on the first player.
Can you quickly tell me if I am missing anything?  Or is it not possible to have multiple players that also have the playlist option.  (I know you can have multiple players with no playlist - as shown on your example 2 of Custom markup/css: http://kolber.github.io/audiojs/demos/test2.html).
Originally, I was guessing that the problem was the fact that I had two divs with id="wrapper" (from your original code examples).  But I think when I changed the name of the ids, it doesn't gel with the javascript.  Any suggestions?
You can see it online here: http://www.allanzavod.com/test-music3.htm
Thanks for any advice.

I think you have to instantiate a second instance of audiojs, and then load the audio using this object. For example,
... var another_instance = audiojs.createAll ... audio.load($('another_instance', this).attr('data-src')); ...

I think that solution might work: https://github.com/kolber/audiojs/issues/190#issuecomment-180565736


Support binary upload

Hi,
Would be great to directly upload without encode it into base64, it can save the bandwidth and avoid the encoding and decoding steps, perhaps https://stuk.github.io/jszip/  can be added as an option to reduce the file size. Thanks.

Working on it, requires a lot of breaking changes, will be published as v1.7.0
For zip you can use .pipe(), docs: https://github.com/VeliovGroup/Meteor-Files/wiki/Insert-(Upload)#piping

Hi @oeway ,
I've tried to do my best to implement pure binary uploads and failed.

WebSockets supports binary data transfers in it's nature, but version of sock.js and DDP does not. More over if I'm trying to send uint arrays the DDP encode / parse takes a lot of resources
Binary uploads via HTTP is working, but it's far away form what I can call stable, or production ready. I guess Meteor's WebApp.connectHandlers has some magic inside, 80% of transferred data was corrupted, encoding to binary strings not helped too

But somehow minor changes made to the package during this investigation made uploads at least 1.5x faster.
Thank you for ideas, I'll wait for update of sock.js and try again.
Btw have you tried the .pipe() method for zipping?

@dr-dimitru Thanks very much for your work. let's wait then, at least we can make upload work.
I haven't try pipe(), will update your when I tried, thanks.

@dr-dimitru do you have any idea on that why http is much faster than ddp? it's like 4 times faster.
https://github.com/VeliovGroup/meteor-python-files

Yes, I wrote about it here, and talked about it here
TL;TR;
All non-pure socket solutions has huge overhead in parsing/structuring/unifying [out|in]coming data
Currently I'm playing with pure and native RTC/DC (WebRTC and UDP) solution. It is so blazing fast, what we need to find a new way to write files to FS. Now FS is bottleneck.


Ethereum HD Wallet implementation in Flutter, is there any library in Flutter?

Are there any existing libraries in flutter to create Ethereum HD wallet?
I have used ethereumjs-wallet npm package to generate a unique wallet address in node.js
var hdkey = require('ethereumjs-wallet/hdkey');
var hdwallet = hdkey.fromExtendedKey(extPubKey);

I want to use the above script in flutter but ethereumjs-wallet library is not available in flutter libraries.

Is there any way to generate Ethereum address using mnemonic or privatekey in flutter?

have you got any?


Add spring examples to readme

Added spring examples to readme
Fixed typo

@gfoster1
Your change looks good, but I want to request a few changes to the tutorial:
https://developer.ibm.com/tutorials/use-spring-kafka-to-access-an-event-streams-service/

in the section: Create an Event Streams instance on IBM Cloud

Select Event Stream. -> Select Event Streams.
The default settings are fine for this tutorial.  There is no default settings, user needs to choose a region and a plan from Lite,Standard,Enterprise. For this simple demo app, Lite plan seems to be a good fit. But we could point user to the doc about how to choose the plan: https://cloud.ibm.com/docs/services/EventStreams?topic=eventstreams-plan_choose
replace the screenshot with a new UI, Lite/Standard/Enterprise plans are using new UI, Classic Plan is using legacy UI and it will become inactive in Nov. and sunset in June,2020.

in the section: Configure Spring Boot to talk to Event Streams

in the code snippet of #Connection:
spring.kafka.bootstrap-servers=kafka01-prod02.messagehub.services.us-south.bluemix.net:9093  ->  spring.kafka.bootstrap-servers=<kafka_brokers_sasl>

@mimaison @edoardocomar want to take another look?

Code review changes made on the tutorial as well as on the current code branch. Awaiting review for merge. :)

Thanks @gfoster1 for the updates. There are still a few spurious changes with copyright headers. I'll be happy to merge this PR once they are fixed.

@gfoster1 Thanks for the PR! I've added a few cleanups and merged your changes


"Invalid input for field/attribute metadata" when creating a snapshot

Hi @Lirt
Sorry to trouble you again but I meet an error when I try to create a volume backup. Here are the partial logs:
time="2021-03-22T06:01:00Z" level=info msg="Trying to create snapshot%!(EXTRA string=e7ec5394-114b-4181-9fa0-a81f3c1c6d76.snap.11963748953446345529)" backup=default/velero-backup-pvs-20210322060028 cmd=/plugins/velero-plugin-openstack logSource="/go/src/github.com/Lirt/velero-plugin-openstack/src/cinder/block_store.go:144" pluginName=velero-plugin-openstack
time="2021-03-22T06:01:00Z" level=info msg="1 errors encountered backup up item" backup=default/velero-backup-pvs-20210322060028 logSource="pkg/backup/backup.go:451" name=storage-grafana-loki
time="2021-03-22T06:01:00Z" level=error msg="Error backing up item" backup=default/velero-backup-pvs-20210322060028 error="error taking snapshot of volume: rpc error: code = Unknown desc = Bad request with: [POST https://volume-3.test.com:443/v3/x/snapshots], error message: {\"badRequest\": {\"message\": \"Invalid input for field/attribute metadata. Value: {u'velero.io/pv': u'pvc-6ae4002e-f715-4887-a6b4-41377d984f3c', u'velero.io/storage-location': u'default', u'helm.sh/chart': u'velero-test', u'app.kubernetes.io/name': u'velero', u'velero.io/backup': u'velero-backup-pvs-20210322060028', u'test/is-provisioned': u'True', u'velero.io/schedule-name': u'velero-backup-pvs'}. u'app.kubernetes.io/name', u'test/is-provisioned', u'helm.sh/chart', u'velero.io/backup', u'velero.io/pv', u'velero.io/schedule-name', u'velero.io/storage-location' do not match any of the regexes: '^[a-zA-Z0-9-_:. ]{1,255}$'\", \"code\": 400}}" logSource="pkg/backup/backup.go:455" name=storage-grafana-loki

I did some investigation though, still no explicit solution for this. I guess it is due to the '/' disallowed likely or something else. Moreover, I found this https://bugs.launchpad.net/cinder/+bug/1798798 bug reported for cinder and I'm not sure whether or not it is relevant. Could you please check with that if you have time? Thanks ahead.

Hi!
no problem I'm here to solve all issues :-).
So you are trying to backup PVC with name pvc-6ae4002e-f715-4887-a6b4-41377d984f3c and the generated snapshot name is e7ec5394-114b-4181-9fa0-a81f3c1c6d76.snap.11963748953446345529.
According to the error message the . is allowed (regex a-zA-Z0-9-_:.) so there should be no problem in the snapshot name, but as you pointed out the properties in metadata contain slashes and the issue you linked looks relevant.
It would be nice if you could confirm this with your cloud provider -- by this I mean which cinder version are they using. Can you please ask them?
The properties are generated by Velero and now I'm not sure if I can change their format. That could break a lot of things (like searching by property) but I will look into the code and see what I can do.

Hi @Lirt
I reached out to the maintainer and was told that the cinder version is still Rocky(13.0.0). It makes sense because the bug was fixed in <IP_ADDRESS>rc1 release. I suppose we can close this ticket and wait for the upgrate.

They also mention the fix is in openstack/cinder 13.0.1. That should be more easily upgradeable for them.


Apply TCA to AboutDroidKaigiScreen and SettingScreen

Issue

close #522

Overview (Required)

Links

Screenshot

Before
After

The buttons response is a little poor. I look into the cause.