Performance question

Greetings y’all!
I was searching for a way to create objects in RSTAB remotely in C#, and it didn’t take long to find Dlubal API. After tinkering for a while with the basic example that I found, I managed to make it work – but it seemed rather slow… so I removed everything I could and ended up with a simplified method that creates one material, a series of nodes, and then adds members (that use those nodes). It works faster, but still it’s something like 10 nodes per second.
Now I’m thinking, maybe my idea was a bit silly? I thought I can add loads of objects in something close to real time. Perhaps that’s not the way this API should be used?
Here is my code, aka the stripped-down API example, with the addition of a Beam class, that has a list of points:
public static void RSTABilize(List<Beam> beams)
        {
            #region Application Settings
            try
            {
                application_information ApplicationInfo;
                try
                {
                    application = new ApplicationClient(Binding, Address);
                }
                catch
                {
                    if (application != null)
                    {
                        if (application.State != CommunicationState.Faulted)
                        {
                            application.Close();
                        }
                        else
                        {
                            application.Abort();
                        }

                        application = null;
                    }
                }
                finally
                {
                    ApplicationInfo = application.get_information();
                }
                #endregion

                string modelName = @"C:\RSTAB\temp\template.rs9"; // template

                string modelUrl = application.open_model(modelName);
                model = model ?? new ModelClient(Binding, new EndpointAddress(modelUrl));

                materialConcrete = materialConcrete ?? new material
                {
                    no = 1,
                    name = "C20/25 | EN 1992-1-1:2004/A1:2014"
                };

               List<section> sections = new List<section>();
                List<node> nodes = new List<node>();
                List<member> members = new List<member>();

                section sectionRectangle = new section
                {
                    no = sect++,
                    material = materialConcrete.no,
                    materialSpecified = true,
                    type = section_type.TYPE_PARAMETRIC_MASSIVE_I,
                    typeSpecified = true,
                    parametrization_type = section_parametrization_type.PARAMETRIC_MASSIVE_I__MASSIVE_RECTANGLE__R_M1,
                    parametrization_typeSpecified = true,
                    name = "R_M1 0.3/0.3", // width/height as in RFEM
                };

                foreach (Beam beam in beams)
                {
                    try
                    {
                        node n1 = new node()
                        {
                            no = nod++,
                            coordinates = new vector_3d()
                            {
                                x = beam.Points[0].X,
                                y = beam.Points[0].Y,
                                z = beam.Points[0].Z
                            },
                            coordinate_system_type = node_coordinate_system_type.COORDINATE_SYSTEM_CARTESIAN,
                            coordinate_system_typeSpecified = true,
                            comment = "concrete part"
                        };

                        node n2 = new node()
                        {
                            no = nod++,
                            coordinates = new vector_3d()
                            {
                                x = beam.Points[1].X,
                                y = beam.Points[1].Y,
                                z = beam.Points[1].Z
                            },
                            coordinate_system_type = node_coordinate_system_type.COORDINATE_SYSTEM_CARTESIAN,
                            coordinate_system_typeSpecified = true,
                            comment = "concrete part"
                        };

                        //memb = 1;
                        // create member
                        member member = new member()
                        {
                            no = memb++,

                            node_start = n1.no,
                            node_startSpecified = true,
                            node_end = n2.no,
                            node_endSpecified = true,

                            section_start = sectionRectangle.no,
                            section_startSpecified = true,
                            section_end = sectionRectangle.no,
                            section_endSpecified = true,
                            comment = "concrete beam"
                        };

                        sections.Add(sectionRectangle);
                        nodes.Add(n1);
                        nodes.Add(n2);

                        members.Add(member);
                    }
                    catch { }
                }
                try
                {
                    try
                    {

                        model.begin_modification("Geometry");
                        mod = true;
                        model.set_material(materialConcrete);
                        model.set_section(sectionRectangle);

                        foreach (section sect in sections)
                            model.set_section(sect);

                        foreach (node node in nodes)
                            model.set_node(node);

                        foreach (member mem in members)
                            model.set_member(mem);
                    }
                    catch
                    {
                        model.cancel_modification();
                        throw;
                    }
                    model.finish_modification();
                }
               catch { }
                model.close_connection();
            }
            catch { }
        }

Hi @MarkoCAD,
the performance is affected, because API is based on Web Services using SOAP.

@OndraMichal, thanks for a quick response! I really needed to hear from someone if that's normal, or have I forgot/oversaw something. I'll see what else works for me.
Have a lovely Friday afternoon!
Marko

@MarkoCAD, performance depends on the underlying technology. As was mentioned by OndraMichal, we use SOAP WebService.  Our C# library is generated based on WSDL so it is a kind of client. You have classes which mirror objects in application, and you have set and get methods.
Set method sends data to application - so object is serialized to xml, sent through TCP/IP, received in application, deserialized from XML and created / updated. This takes some time compared to some direct access aka COM. I saw you use begin_modification and finish_modification. This is used with application to notice that modifications are being made and finish_modification runs some consistency checks and validations. You might run some basic performance checks to see the times for operations. Try to measure all the sets and finisih_modification. One of the most time-consuming operations is also open_model.
We are quite limited in the possible speed up.
Have a nice day.


DASH-283 Add offset for numbers of blocks

PR for update to add env var to readme: #76

Thank you. I've missed this


Game logo adding on the Website header[New Feature]

🎮 feature Request
Game logo adding on the Website header
Point down the features

i add the logo here
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@Durgesh4993 Please this issue

@shristipandey128 @RamakrushnaBiswal Please raise any other issue..
If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created separate channels for all projects...
Thank you :)


Ram increase for Vagrant VMs

Increase RAM available to Vagrant machines (especially Windows) and cap the CPU on the hypervisor for each individual one so that the build jobs don't overwhelm it

@sxa555 Will need a rebase

@karianna Can you see the rebase/resolve conflicts button on the UI here? It's greyed out for me ...

@sxa555 @karianna The button is greyed out because it says "These conflicts are too complex to solve in the web editor". I imagine it's because Vagrantfile.SLES12 was renamed / removed and replaced with Vagrantfile.SUSE12

Well spotted - resolved and testing under https://ci.adoptopenjdk.net/view/work in progress/job/VagrantPlaybookCheck/369/


Format code in xml

The command Format code is missing in the Command Pallette for XML files.

I'm having the same issue with the latest November release (0.10.1)
Regret hitting update...

duplicate of #71


Draft: Extrema of convex polygons

Trying to implement an algorithm to find the exact extreme points of a convex polygon in a specific direction. Aiming for O(log n).

Good start. Try using Vector::cmp_along to find the extreme points given an input direction (eg vector).
Iterating through all the points will take O(n) time but it's a great place to start. We can use the O(n) solution to test the O(log n) solution.

I am trying to get this example algorithm to work. But I am struggling with the implementation. If somebody could take a look at it and help with the code it would be great! Thanks


Unreadable cursor color

The current cursor color is set to base_1, which is almost the same as the background color. I believe it's a typo and you intended the cursor to be more visible.

Cheers man, appreciate the effort.
Closing issue


fix: tasklist when chainlit is submounted

Fixing https://github.com/Chainlit/chainlit/issues/1400.
The issue is that the tasklist url is already containing the subpath.useApi will add the subpath again. So we just use useSWR raw here.

@willydouhard Any chance you could continue with the other cleanup requested (e.g. removing unrelated changes)?
If not I can do it, but might not get to it until ~Monday.


Make loggedon-users unique to reduce spam and fix alignment

Make loggedon-users output unique to reduce spam and fix alignment.

@NeffIsBack do we also want to not include Computer account logins?

@Marshall-Hallenbeck i thought it wouldn't hurt to let it in there, my goal was to just filter out the duplicates as they spammed A LOT :D
Maybe it's not bad to have a reminder that you can also impersonate the machine account


Child contract communication

I've spent some time thinking about the communication pattern and the call stack that we might see for an execution environment that can spawn additional runtimes. The result of this thinking is a hypothesis: I believe that for each child runtime, there should a scoped frame of data for each call.
The most important thing to keep in this frame is the modifications to underlying multiproof. This is because every modification within a child runtime must be atomically committed with all of its children that execute successfully. If one runtime reverts, all its changes and its children's changes should be dropped. The best way that I can think of modeling this is some sort of diffing mechanism.
The high level of how I think this can be accomplished is by adding a buffer (represented as a hash table) that is accessible from the EE and all its children. If lookups are implemented similarly as cache lookups are, falling to the next level in the case of a miss, we should be able to get away with storing only the changes.
New host functions
buffer_set(frame: u8, key: Bytes32, value: Bytes32)

associates frame and key to value

buffer_get(frame: u8, key: Bytes32) -> Option<Bytes32>

retrieves the associated value for frame and key
returns None if not set

buffer_merge(frame_1: u8, frame_2: u8) -> Bool

merges the key-value pairs of the two namespaces
conflicts are always won by frame_2

Context
The other important aspect to keep relative to the current execution frame is the call's context. This includes things like the call's sender, data, target, etc. These values can be the initial data given to the child runtime (like block data is for the parent EE) and these individual values can be accessible via special, dynamically-linked functions. Trust can be established and integrity can maintained by only using the output of these functions as the input for privileged operations (e.g. msg.sender of a new call should come from the msg_destination() function).
msg_sender() -> Address

fetches the input data if it hasn't already been loaded
returns the address of the call's sender

msg_destination() -> Address

fetches the input data if it hasn't already been loaded
returns the address of the call's destination

msg_data() -> Vec<u8>

fetches the input data if it hasn't already been loaded
return the input data for the transaction

load(index: u256) -> Bytes32

fetches the input data if it hasn't already been loaded
ensures index is under the executing contracts state tree
returns the 32 byte value corresponding to index from the highest id'd ctx

store(index: u256, value: Bytes32) -> Result<()>

fetches the input data if it hasn't already been loaded
ensures index is under the executing contracts state tree
sets the value of index to value
returns a Result

call_contract(address: Address, data: Vec<u8>) -> Result<()>

fetches the input data if it hasn't already been loaded
loads the code for contract at address
sets the id to the current id + 1
constructs the coresponding Message for the call
calls the raw host function to execute code
calls the merge host function on [id, id + 1] if the call succeeds

Questions to answer

Does this communication format even make sense?
Which is more efficient, copying the entire multiproof for every frame or looking up at each intermediate level until a hit?
Is it more efficient to merge the buffer natively in the client or within the webassembly binary?

For now, I'm going to direct my focus to implementing the new host functions. The dynamic host functions can be written statically in the child contracts for now (since most of the time, I trust myself).

Design
My first instinct is to compare this chain of cancelable contracts to transactions and sub-transactions in the database world. I am about as far from an expert in database design as you can get, but from a quick google there seem to be two approaches for implementing transactions: shadow paging and write-ahead-logging. The approach you're describing seems a lot like shadow paging. Looking into write-ahead-logging as an alternative might be worthwhile.
Implementation
It wasn't immediately clear when reading that the "Context" section lists functions provided by an EE to callees, and "New host functions" are provided to the EE.
In other words, the functions in "Context" have to be implemented on top of the host functions.
Host Functions

Since buffers in this proposal are actually maps, I'd rename everything to map_*.
In buffer_merge, call the arguments target and other to make it clear that keys in target are overwritten by keys in other. Are the values in other cleared?
In buffer_merge, what does the return value represent?
How does one unset a key, and how does that interact with buffer_merge? buffer_set with all zeroes? If so, buffer_get shouldn't return an Option.
What is the rationale behind providing a host implementation of maps, instead of implementing them in WASM?

Context

Where does the current id get stored by the EE?
How do functions implemented by the EE know which map they're associated with?


docs(tutorial/11 - REST and Custom Services): bower install, not npm

If we change the bower.json then we should run "bower install", not "npm install"

I signed it!

Oops, I didn't notice the Note: below that. Closing.


Made it work with node and created a node CLI tool

Hey there!
So, I like this tool, but I'm a CLI guy, so I can't deal with the productivity break of going to a browser, copy paste my code, compile, then copy paste it back somewhere, etc, so I wanted to give you a hand. I hope what I created is somewhat satisfactory for a start at least.
I started off by making the code compatible with node.js, so to keep it simple, I moved the source files to src/ (sorry), created a package.json , and a makefile to concatenate the scripts to a single file (this makes it easier to keep releases and branches separate as well).
Then I made the CLI tool. Currently it only has the compile feature, and I didn't do anything about library resolving, in case you already had plans for that (which seems likely, it's your project).
For executing from command line, and library resolving, I have a few ideas I'd like to share if you're interested, but I'll see what you think of this first.
Cheers,
Jussi

Nevermind, figured out a more clever way to do this, without including so much code diff pollution.

Missing module "paramon."  Care to resolve this?  Would like to have your CLI compiler in the next release.  If you can update the readme with instructions, that would be fantastic as well!

Sure, will do. Sorry for forgetting to answer this earlier! ^^ If you have an npm account / want to make one, you should probably publish it to npm. Just do npm publish in the main directory, then it should be a matter of npm install javascript-plusplus -g to get the jspp command and all the dependencies installed. But I'll update the readme with instructions on how to install from sources.


Job for<EMAIL_ADDRESS>failed

Hi there,
I'm getting "because the control process exited with error code. See "systemctl status<EMAIL_ADDRESS>and "journalctl -xe" for details.
From the logs, I see the following:
Sep  4 16:54:40 fluffytiger systemd[1]: Stopped<EMAIL_ADDRESS>Sep  4 17:16:56 fluffytiger ovpn-server[28000]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/server.conf
Sep  4 17:17:35 fluffytiger systemd[1]<EMAIL_ADDRESS>Control process exited, code=exited status=1
Sep  4 17:17:35 fluffytiger systemd[1]<EMAIL_ADDRESS>Unit entered failed state.
Sep  4 17:17:35 fluffytiger systemd[1]<EMAIL_ADDRESS>Failed with result 'exit-code'.

let me know if I can assist further. I am happy to help.

I got it to work when i commented out LimitNPROC line in<EMAIL_ADDRESS>so no rush on fixing this.

This is a well known issue with the OpenVPN service in containers (#206) and sadly no one able to fix it is interested in doing so.


Button and LinkButton component created

Fixes Issue #85

Changes proposed

created the button component
created the LinkButton component

Check List (Check all the applicable boxes)

[ x] My code follows the code style of this project.
[ x] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ x] This PR does not contain plagiarized content.
[ x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

All requested changes have been made.

Hi @antosan i just updated the PR.

Hi @antosan i just updated the PR.

Thanks @enowdivine Kindly remove the console log and we can merge this.

Hello @antosan i just removed the console log. Sorry for the late response


Marking a transitive dependency as external in a monorepo doesn't work

For example, let's say a trigger task is installed in package A and it's importing from package B. B has a dependency on @huggingface/transformers. This dependency requires being made external, but marking it as external doesn't work. This is happening to someone with the following config:

pnpm 9.4.0
turborepo
@huggingface/transformers 3.1.2

Have a fix for this coming: https://github.com/triggerdotdev/trigger.dev/pull/1569


Blacklight could give us subclasses of SolrDoc

So a GenericWorkSolrDoc for a data that looks like a GenericWork.

https://github.com/projectblacklight/blacklight/pull/1655


Enforce list type for lora-target-modules

This is in context of https://github.com/instructlab/instructlab/issues/2021 but I'm not sure at this point we shouldn't just list() when passing any data coming from click that has to be a list.

This works but ultimately, this is just how click works. We should be aware of this and deal accordingly (either accept tuples everywhere, or cast before passing.)

This PR is still a blocker for 0.18.0, since even with the fix provided in https://github.com/instructlab/training/pull/162, we still get a warning from Pydantic about passing a tuple to a field that expects a list[str]. For this reason, I've added the blocker-proposed tag as this does not directly impede functionality, but it removes one more thing that may confuse users.

@RobotSail do you have a warning message from pydantic to look at?

@booxter
/opt/app-root/lib64/python3.11/site-packages/pydantic/main.py:364: UserWarning: Pydantic serializer warnings:
  Expected `list[str]` but got `tuple` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_python(

This looks like it comes from pydantic-core Rust implementation:
    pub fn on_fallback_ser<S: serde::ser::Serializer>(
        &self,
        field_type: &str,
        value: &Bound<'_, PyAny>,
        extra: &Extra,
    ) -> Result<(), S::Error> {
        // special case for None as it's very common e.g. as a default value
        if value.is_none() {
            Ok(())
        } else if extra.check.enabled() {
            // note: I think this should never actually happen since we use `to_python(..., mode='json')` during
            // JSON serialisation to "try" union branches, but it's here for completeness/correctness
            // in particular, in future we could allow errors instead of warnings on fallback
            Err(S::Error::custom(UNEXPECTED_TYPE_SER_MARKER))
        } else {
            self.fallback_warning(field_type, value);
            Ok(())
        }
    }

    fn fallback_warning(&self, field_type: &str, value: &Bound<'_, PyAny>) {
        if self.mode != WarningsMode::None {
            let type_name = value
                .get_type()
                .qualname()
                .unwrap_or_else(|_| PyString::new_bound(value.py(), "<unknown python object>"));

            let input_str = safe_repr(value);
            let mut value_str = String::with_capacity(100);
            value_str.push_str("with value `");
            crate::errors::write_truncated_to_50_bytes(&mut value_str, input_str.to_cow())
                .expect("Writing to a `String` failed");
            value_str.push('`');

            self.add_warning(format!(
                "Expected `{field_type}` but got `{type_name}` {value_str} - serialized value may not be as expected"
            ));
        }
    }

There's apparently a flag to disable these warnings (though I don't know if it's available or whether it's ok to suppress these messages), but clearly the library prefers that list fields receives lists, even if it will grudgingly accept tuples and other iterables. (I think pydantic should have explained it better in their docs. There, it just says that either of the types is fine, with no caveats.)
We can land this for now, but I think other options that are "lists" that come from click options will also be tuples, and should also be converted to lists (though it assumes we use list types for all models - which may not be the case: using tuple types is as legit - in this case, warnings would be raised if we cast to list!)
I think post-0.18 we should revisit this issue more broadly for all options and all libraries we have. @RobotSail I suggest a tracking issue is reported to follow up later.

@RobotSail any idea why CI was cancelled here?

@booxter It seems like one of the tests in the functional tests is breaking CI - not sure why it was cancelled.

@mergifyio rebase


Right View of Binary Tree

Submission Title
Right View of Binary Tree
Submission Type
Data Structure
Submission Description
Given a binary tree A of integers, return an array of integers representing its right view.
Right view of a Binary Tree is a set of nodes visible when the tree is visited from Right side.
Submission Directory
Data Structures => Tree => Binary_Tree => Right_View => Right_View.extension
Contributors

[x]  C++ -
[ ]  C -
[ ]  Python -
[ ] Java -
[ ] JavaScript -
[ ] TypeScript -
[ ] Golang -
[ ] Ruby -
[ ] php -
[ ] Swift -
[ ] C# -

Hey! Please assign C++ to me.

Please assign this to me for Java

Please assign this to me for python

please assign this to me for swift

Please assign this to me for Java.

Hey, Can I work on this in Java?

@ahampriyanshu could I be assigned for Ruby please?

Hey, Can I work on this in Java?

Hi @dhairya-parikh ,
Please opt a different language/issue.

thanks everyone :v:


Crowdsec activation blocks all communication

Hi,
I try to add Crowdsec in my configuration. If all seems to start well (no error messages), I cannot open any application properly upon start.
Once AppSec Agent, Crowdsec and SWAG have started, Authelia (all on the same docker network) start to throw the following error (here only a short extract):
.... 2024-11-10T20:45:38+01:00 ERR | error=read tcp <IP_ADDRESS>:9091-><IP_ADDRESS>:52588: i/o timeout method=GET msg=Request timeout occurred while handling request from client. path=/ remote_ip=<IP_ADDRESS> status_code=408 2024-11-10T20:45:39+01:00 ERR | error=read tcp <IP_ADDRESS>:9091-><IP_ADDRESS>:52590: i/o timeout method=GET msg=Request timeout occurred while handling request from client. path=/ remote_ip=<IP_ADDRESS> status_code=408 2024-11-10T20:45:40+01:00 ERR | error=read tcp <IP_ADDRESS>:9091-><IP_ADDRESS>:52592: i/o timeout method=GET msg=Request timeout occurred while handling request from client. path=/ remote_ip=<IP_ADDRESS> status_code=408 ...
<IP_ADDRESS> is my Authelia instance while <IP_ADDRESS> is SWAG.
While this happens, the SWAG error log is registering the following error (again, only a short extract)
... 2024/11/10 20:45:49 [error] 1659#1659: *270 auth request unexpected status: 408 while sending to client, client: <IP_ADDRESS>, server: redacted.*, request: "GET /redacted", host: "redacted", referrer: "https://redacted/redacted" 2024/11/10 20:45:49 [error] 1659#1659: *270 auth request unexpected status: 408 while sending to client, client: <IP_ADDRESS>, server: redacted.*, request: "redacted", host: "redacted", referrer: "https://redacted/redacted" 2024/11/10 20:45:49 [error] 1659#1659: *270 auth request unexpected status: 408 while sending to client, client: <IP_ADDRESS>, server: redacted.*, request: "redacted", host: "redacted", referrer: "https://redacted/redacted" ...
For the sake of clarity, the decision list is empty.
Stopping Crowdsec container doesn't help. To get all back to normal, I have to remove all .env line in the appsec-agent container.
I'm running out of idea, any idea will be welcome

Hi,
Thank you for reaching out! It sounds like the interaction between the open-appsec agent, Crowdsec, Authelia, and SWAG might be causing network-related issues, especially the I/O timeouts. Here are some steps and suggestions to help troubleshoot:
Network Configuration:
The timeout errors from Authelia usually indicate a delay or failure in communication with SWAG over the Docker network. To rule out network issues, you might want to inspect your Docker network settings:
Run docker network inspect  to verify there aren’t any conflicting settings that could be causing timeouts.
Try adjusting the timeout settings in SWAG or Authelia to allow more time for requests between them.
Resource Allocation:
Running the open-appsec agent and Crowdsec together might lead to high resource usage, impacting other services. You can check resource usage with docker stats to see if either service is consuming excessive CPU or memory.
If this is the case, try setting CPU and memory limits for the open-appsec agent and Crowdsec in your docker-compose.yml.
open-appsec Configuration:
Since removing .env variables for the open-appsec agent temporarily resolves the issue, some of the environment settings could be impacting network communication.
Review the .env file for network-related configurations and verify they don’t conflict with Authelia or SWAG settings. You might also want to try adding exceptions in open-appsec for the IPs of Authelia and SWAG.
Crowdsec Settings:
Although your Crowdsec decision list is empty, it may still be inspecting or modifying traffic. If possible, test Crowdsec in a passive mode (if available) to observe if it minimizes interference.
Isolation Testing:
To identify the cause, you could try starting just Authelia and SWAG, and then adding the other services (first open-appsec, then Crowdsec) to see if the issue reappears.
Let us know if these steps help or if further configuration details are needed. We’re here to help!

Hi there,
Network looks good. Tried also after setting fix ip to each container, but same behaviour. All good with Crowdsec env variable removed from the appsec agent compose but screwing all up when activated.
Ressource allocation doesn't seem to be an issue. If the appsec agent is consuming more once Crowdsec is linked (especially network RX ressource), it is far away from the limit for CPU or memory.
Not sure how to test Crowdsec in passive mode, but will further dig into that
The .env screwing up things in the appsec agent are only the one related to Crowdsec:
CROWDSEC_ENABLED=true CROWDSEC_MODE=prevent CROWDSEC_LOGGING=enabled CROWDSEC_API_URL=http://crowdsec_appsec:8080/v1/decisions/stream CROWDSEC_AUTH_METHOD=apikey CROWDSEC_AUTH_DATA=REDACTED
As soon those are out of the equation, all is running fine !

Any feedback idea following my last post info ?

Hi @Flyingfufu,
Apologies for the delayed reply! Did testing CrowdSec in detect mode (by setting CROWDSEC_MODE=detect) help? Also, have you tried running CrowdSec without open-appsec? This will help us determine whether the issue lies with the open-appsec + CrowdSec integration or with the deployment of CrowdSec itself.
Looking forward to your feedback!

Hi @orianelou
Running all with CROWDSEC_MODE set to "detect" doesn't change the result. All get suddenly so slow that nothing is usable.
As mentionned earlier, stopping the Crowdsec container is of no help.
Also tested with loggin enabled or disabled, but same bad result.
However, changing CROWDSEC_ENABLED to false is getting everything running smoothly again, even keeping the Crowdsec container running.
Just to be sure : I have CROWDSEC_API_URL=http://crowdsec_appsec:8080/v1/decisions/stream. Is this correct ? At least looking in the Crowdsec logging it looks like being communicating well between the 2 containers.
An alternate installation with the  sandard SWAG and Crowdsec containers is just running fine.

Hi @Flyingfufu
Thanks for the detailed feedback!
Regarding the URL The CROWDSEC_API_URL=http://crowdsec_appsec:8080/v1/decisions/stream appears to be correct if the CrowdSec LAPI is accessible at that address and port. You mentioned that the logs indicate communication between the two containers, and that this work with SWAG which confirms this is likely set up correctly. of course if with the SWAG deployment a different URL is used this could be the issue.
Regarding how to retrive this URL, in most installations, the CrowdSec LAPI URL is defined during setup. If you deployed CrowdSec using Docker Compose, check the service configurations (docker-compose.yml) for the LAPI URL.
If you deployed CrowdSec on a dedicated server or VM, the default LAPI URL is typically http://:8080/v1/decisions/stream. Replace  with your server's IP address or hostname.
You can also vrify the API settings in CrowdSec's local_api_credentials.yaml file, which includes the base URL and port used by the LAPI.


Pretrained Kth Model checkpoint tensor shapes does not match

Hi alex @alexlee-gk ,
When I try to load the pretrained KTH model (savp, gan and all of them) for testing, there is an error:
Traceback (most recent call last):
  File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call
    return fn(*args)
  File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn
    options, feed_dict, fetch_list, target_list, run_metadata)
  File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [1] rhs shape= [3]
	 [[{{node save/Assign_77}}]]
	 [[{{node save/RestoreV2}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\huoqi\PyCharm Community Edition 2018.3.4\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Users\huoqi\PyCharm Community Edition 2018.3.4\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "F:/video_prediction/scripts/generate.py", line 193, in <module>
    main()
  File "F:/video_prediction/scripts/generate.py", line 152, in main
    model.restore(sess, args.checkpoint)

It seems the checkpoint cannot be restored for the testing. I would very appreciate your help!
The entire error message is below:
error.txt

Getting a very similar error, would appreciate help!
@alexlee-gk

Hi @alexlee-gk, I am having a similar problem as well. This is the output of running
python scripts/generate.py --input_dir data/kth --dataset_hparams sequence_length=30 --checkpoint pretrained_models/kth/ours_savp --mode test --results_dir results_test_samples/kth --batch_size 9
error.txt

The errors from @brandonhuo and @ShreyasKolpe are the same. The problem is that the pre-trained model was trained with grayscale images that had 3 channels (same values tiled for the RGB channels) whereas now the grayscale images have 1 channel. I have new KTH models that were trained with the newer dataset format (and also perform better), but I haven't uploaded them yet. I'll do that soon. In the meantime, if you want to use the old pre-trained models, you can use grayscale images with 3 channels by commenting out this line: https://github.com/alexlee-gk/video_prediction/blob/master/video_prediction/datasets/kth_dataset.py#L118
The issue pointed out by @itstaby is different and that's just a limitation of the current implementation: the size of the evaluation dataset should be divisible by the batch size.

@alexlee-gk  Thank you very much for the reply!  After commenting out L118 in kth_dataset.py script, I still have the following error:
`Traceback (most recent call last):
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call
return fn(*args)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [3,3,39,7] rhs shape= [3,3,53,7]
[[{{node save/Assign_76}}]]
[[{{node save/RestoreV2}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/video_prediction/scripts/generate.py", line 193, in
main()
File "F:/video_prediction/scripts/generate.py", line 152, in main
model.restore(sess, args.checkpoint)
File "F:\video_prediction\video_prediction\models\savp_model.py", line 855, in restore
super(SAVPVideoPredictionModel, self).restore(sess, checkpoints, restore_to_checkpoint_mapping)
File "F:\video_prediction\video_prediction\models\base_model.py", line 246, in restore
sess.run(restore_op)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run
run_metadata)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\client\session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [3,3,39,7] rhs shape= [3,3,53,7]
[[node save/Assign_76 (defined at F:\video_prediction\video_prediction\utils\tf_utils.py:542) ]]
[[node save/RestoreV2 (defined at F:\video_prediction\video_prediction\utils\tf_utils.py:542) ]]
Caused by op 'save/Assign_76', defined at:
File "F:/video_prediction/scripts/generate.py", line 193, in
main()
File "F:/video_prediction/scripts/generate.py", line 152, in main
model.restore(sess, args.checkpoint)
File "F:\video_prediction\video_prediction\models\savp_model.py", line 855, in restore
super(SAVPVideoPredictionModel, self).restore(sess, checkpoints, restore_to_checkpoint_mapping)
File "F:\video_prediction\video_prediction\models\base_model.py", line 243, in restore
restore_to_checkpoint_mapping=restore_to_checkpoint_mapping)
File "F:\video_prediction\video_prediction\utils\tf_utils.py", line 542, in get_checkpoint_restore_saver
restore_saver = tf.train.Saver(max_to_keep=1, var_list=restore_and_checkpoint_vars, filename=checkpoint)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saver.py", line 832, in init
self.build()
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saver.py", line 844, in build
self._build(self._filename, build_save=True, build_restore=True)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saver.py", line 881, in _build
build_save=build_save, build_restore=build_restore)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saver.py", line 513, in _build_internal
restore_sequentially, reshape)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saver.py", line 354, in _AddRestoreOps
assign_ops.append(saveable.restore(saveable_tensors, shapes))
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 73, in restore
self.op.get_shape().is_fully_defined())
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\ops\state_ops.py", line 223, in assign
validate_shape=validate_shape)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\ops\gen_state_ops.py", line 68, in assign
use_locking=use_locking, name=name)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
op_def=op_def)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in init
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [3,3,39,7] rhs shape= [3,3,53,7]
[[node save/Assign_76 (defined at F:\video_prediction\video_prediction\utils\tf_utils.py:542) ]]
[[node save/RestoreV2 (defined at F:\video_prediction\video_prediction\utils\tf_utils.py:542) ]]`
What could be this error comes from? Thanks again for the help!

Hi @alexlee-gk  I am having a similar problem as well with the kth dataset and the ours_savp model.
I used two ways to preprocess the kth dataset(both grayscale images with 1channel ans 3 channels), but the problem still exist:
Traceback (most recent call last):
File "scripts/evaluate.py", line 315, in
main()
File "scripts/evaluate.py", line 252, in main
model.build_graph(input_phs)
File "/home/hechujing/demo/SAVP/video_prediction/models/base_model.py", line 478, in build_graph
outputs_tuple, losses_tuple, loss_tuple, metrics_tuple = self.tower_fn(self.inputs)
File "/home/hechujing/demo/SAVP/video_prediction/models/base_model.py", line 412, in tower_fn
gen_outputs = self.generator_fn(inputs)
File "/home/hechujing/demo/SAVP/video_prediction/models/savp_model.py", line 730, in generator_fn
gen_outputs_posterior = generator_given_z_fn(inputs_posterior, mode, hparams)
File "/home/hechujing/demo/SAVP/video_prediction/models/savp_model.py", line 694, in generator_given_z_fn
outputs, _ = tf_utils.unroll_rnn(cell, inputs)
File "/home/hechujing/demo/SAVP/video_prediction/utils/tf_utils.py", line 139, in unroll_rnn
swap_memory=False, time_major=True, scope=scope)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 618, in dynamic_rnn
dtype=dtype)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 815, in _dynamic_rnn_loop
swap_memory=swap_memory)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3209, in while_loop
result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2941, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2878, in _BuildLoop
body_result = body(*packed_vars_for_body)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3179, in
body = lambda i, lv: (i + 1, orig_body(*lv))
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 786, in _time_step
(output, new_state) = call_cell()
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 772, in
call_cell = lambda: cell(input_t, state)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/ops/rnn_cell_impl.py", line 232, in call
return super(RNNCell, self).call(inputs, state)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/layers/base.py", line 329, in call
outputs = super(Layer, self).call(inputs, *args, **kwargs)
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 703, in call
outputs = self.call(inputs, *args, **kwargs)
File "/home/hechujing/demo/SAVP/video_prediction/models/savp_model.py", line 549, in call
kernels = dense(flatten(smallest_layer), np.prod(kernel_shape))
File "/home/hechujing/demo/SAVP/video_prediction/ops.py", line 7, in dense
input_shape = inputs.get_shape().as_list()
File "/home/hechujing/anaconda3/envs/SAVP/lib/python3.6/site-packages/tensorflow/python/framework/tensor_shape.py", line 903, in as_list
raise ValueError("as_list() is not defined on an unknown TensorShape.")
ValueError: as_list() is not defined on an unknown TensorShape.
when I try to train or evaluate, it always told me "ValueError: as_list() is not defined on an unknown TensorShape. input_shape = inputs.get_shape().as_list()". how can I solve the error?What could be this error comes from? Thanks for the help!

@brandonhuo @Chuckie-He You need to run the download_and_preprocess_dataset.sh script after commenting out the Line#118
https://github.com/alexlee-gk/video_prediction/blob/master/video_prediction/datasets/kth_dataset.py#L118
And then run the code. It will work.

I also met the problem of  "ValueError: as_list() is not defined on an unknown TensorShape. input_shape = inputs.get_shape().as_list()", the method which commenting out the Line#118 in kth_dataset.py file seems have no effect to solve this problem.

me too，whether commenting out the Line#118 or not，it doesn’t work。I am very puzzled。

Yes, I met this problems for both train and predictions steps.

hello @wangwen39 @Chuckie-He
could you resolved this error?
Me too facing same issue.. any way to sort it out?
Please help

Hi, I switched to tf 1.10 and at least testing is working


fix: Position of buttons in examples section

Fixes #1475
Changes:

correct/ fix the position of buttons in example section
Screenshots of the change:

@Qianqianye can you please look at this PR .

Looks good. Thanks!

welcome and also thank you for review and merging .


Warning should be removed

This warning here should be removed from my point of view: https://github.com/Azure/arm-deploy/blob/c241d955ca17a88464fa9d60ce2d0fa3f75375fa/src/deploy/scope_subscription.ts#L12-L15
The warning does not even mention what parameter is affected and lastly this warning is not true. It very much is relevant whether you set the mode to validate or something else. Not sure why this warning is even presented to the user.
You should rather just add a warning that mentions that the mode "Complete" is not supported and therefore it will switch to "Incremental". However, this warning message does not make a whole lot of sense to me.

@marvinbuss this warning essentially is a prompt to user to not use "validate" mode in such a case. User should change the mode to "incremental" and the warning would go away.

@bishal-pdMSFT This is not true. If I set the value to Validate, the warning is not shown. Just look at the if condition. If I set this to anything else, it starts showing the message. Why are you not creating the same behavior as with the ADO ARM task? This one does not show a warning, if I use the deploymentMode "Incremental".

My bad, I mentioned in the other way round. If deploymentMode is set to anything other than validate then it does not have any meaning and it will not have any effect as subscription scope deployment do not support incremental/complete modes.
We could very well not show a warning if deploymentMode is set to incremental or complete, but then it would not be truthful as there is no way to use it. hence we decided to show a warning so that user can fix the input.

Closing this issue. Please re-activate if you still feel this is a problem.


Increment element height when element uses transform leads to unpreditable results

Current behavior
The following code decreases actual dimensions of the element if the parent element uses transform property:
$('.el').height($('.el').height() + 5);

Expected behavior
The element should increase its height.
Codepen
https://codepen.io/vovayatsyuk/pen/qBVYQJJ
Proposed solution
Add a notice to the migration guide to use .css('height') instead?

When reading the height the eventual transform property is not kind of undone, this is mentioned in the migration guide.
So in some sense it is working as expected.
If this is implementable with little code though it might be a nice to have feature 🤔

Add a notice to the migration guide to use .css('height') instead?

Done, thanks 👍


VNL Valgrind defects

There are new valgrind defect related to recent changes in VNL to vnl_vector and vnl_matrix.
https://open.cdash.org/viewDynamicAnalysis.php?buildid=6220140

@hjmjohnson @dzenanz

I'll look at this soon (over the weekend).

FYI:  I did not get any failures when running ctest -D ExpermentalMemCheck on vxl.
More work is needed.

The referenced errors were from the same CentOS7 docker image as the other day. I also ran Valgrind on Ubuntu 18.04.3 LTS and got the same defects ( plus some not suppress libs ones too): https://open.cdash.org/viewDynamicAnalysis.php?buildid=6220955
Maybe there is something in the configuration file:
https://open.cdash.org/viewNotes.php?buildid=6221090

FYI:  I narrowed down the problem and have been able to replicate the problem.
Testing tomorrow should have a PR to fix this.

See https://github.com/vxl/vxl/pull/726,  Tracking down memory bug also identified a bug in the build process as well that was fixed.

Fixed by #1441.


LSP: finish implementation of "find all usages of constant"

Fixed in https://github.com/sorbet/sorbet/pull/1345


[Linear] ...Workspace switcher

Extension
https://www.raycast.com/linear/linear
Description
It would be wonderful to be able to switch the logged-in workspace from the command context modal (or worst case even just the ability to logout from that context menu in the meantime) Love ya!
Who will benefit from this feature?
anyone using multiple workspaces of Linear. Consultants, agencies, even internal teams not on a single workspace.
Anything else?
No response

Thanks for bringing this up. It appears that this is a duplicate of issue https://github.com/raycast/extensions/issues/4299, so I'll mark it as such.

My apologies for the dupe! Appreciate you have it in the backlog already. I'm a huge fan of the plugin!
Sent with Shortwave https://www.shortwave.com?utm_medium=email&utm_content=signature&utm_source=cm9iQHJvb3RzeXN0ZW0uY29t
On Wed Oct 16, 2024, 12:38 PM GMT, Thomas Lombart @.***> wrote:

Thanks for bringing this up. It appears that this is a duplicate of issue #4299 https://github.com/raycast/extensions/issues/4299, so I'll mark it as such.
—
Reply to this email directly, view it on GitHub https://github.com/raycast/extensions/issues/14941#issuecomment-2416727891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATKBEVDARBMRTSR4DXTTLTZ3ZM6DAVCNFSM6AAAAABQAU7HGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJWG4ZDOOBZGE.
You are receiving this because you authored the thread.Message ID: @.***>


how to limit computed property only be computed on client?

can i use process.browser?
like this:
export default{    computed:{      somestate(){     if(process.browser){     ....    } }    } }

Probably you can try this:
if (process.BROWSER_BUILD) {
...
}

if (process.BROWSER_BUILD) { ... }
same as process.browser

if (process.BROWSER_BUILD) { ... }

same as process.browser

@cdoneshot can you explain more why you need computed property only be computed on client?

Btw, in you want to set computed functions only triggered on the client-side you can do this:
let c = {}
if (process.browser) {
  c.somestate = function () {
    return 'hello world'
  }
}

export default {
  computed: c
}

@alexchopin
I want the metadata to be retrieved at the server, and and the userdata needs to be initiated by the client on ajax .The computed property should be computed when metadata and userdata all available .

Have you tried to use asyncData or fetch to initiated your data?

Have you tried to use asyncData or fetch to initiated your data?

my code like this. @alexchopin
 export default{
    // matadata
    asyncData({params}){
      return axios.get(`https://my-api/metadata/${params.id}`)
        .then(res => {
          return {
            metadata: res.data
          }
        })
    },
    mounted(){
     axios.get(`https://my-api/userdata/${user.id}`)
          .then((res) => {
             this.userdata = res.data
         })
    },
    computed: {
      status(){
           /*
            some logic
            need this.metadata and this.userdata
            it throw an exception when status be computed on the server side
            because  i attempted to access userdata's property
          */
        }
      }
}

@cdoneshot that's better to understand with code snippet :)
Why do you have to call userdata API on the client only?

When different users open the same url, I would like to get directly from cdn with metadata pages, but the user data is not the same, need to get from the client through ajax. @alexchopin

If the user id attached to the url, cdn is useless

Ok I see, where comes from user.id variable?

Ok I see, where comes from user.id variable?

this page in an app webview, when component mounted ,i send a message to native app,app will send useid to me by call a function
like this:
const post2native = (action, type, data) => {
  let message = {
    action: action,
    type: type,
    data: data
  }
  let messageString = JSON.stringify(message)
  try {
    window.webkit.messageHandlers.callbackHandler.postMessage(messageString)
}

export default{
  mounted(){
     post2native("xxxx","xxxxxx",{})

    //this function will be called by native app
     window.somecallback = (userid)=>{
          axios.get(`https://my-api/userdata/${userid}`)
          .then((res) => {
             this.userdata = res.data
         })
    }
  }
}

Vue.js is executed on the server side and we can not disable it.
The only solution is to set a default value for the computed property which doesn't use userdata when it's triggered on the server side.

Vue.js is executed on the server side and we can not disable it.
The only solution is to set a default value for the computed property which doesn't use userdata when it's triggered on the server side.

ok tks.  :smile:


Add suggested citation metadata to README.md and/or conceptual docs

For use from academic papers, it would be nice if there was an official suggestion as to what BibTeX source to use in citing PyQIR packages.
Examples in other Python packages for scientific computing use:

https://qutip.org/citing.html
https://numpy.org/citing-numpy/
https://qiskit.org/textbook/preface.html#Contributors
https://toqito.readthedocs.io/en/latest/getting_started.html#citing
http://docs.qinfer.org/en/latest/intro.html#citing-qinfer
https://scikit-learn.org/stable/about.html#citing-scikit-learn

Personally, I would rather wait until this becomes a real request instead of preempting it.

I don't think it makes sense to wait, it's the kind of thing if folks can't find it right away they will just skip citing it and not ask...

Is there any reason to believe that someone would want to cite PyQIR in an academic paper? PyQIR is not particularly original (it's just an LLVM wrapper) so that would surprise me, and I'm not particularly bothered if someone uses it without an official citation.


deisctl should exit (with nonzero code) as soon as fleetctl errors occur

Current behavior:
● ▴ ■
■ ● ▴ Installing Deis...
▴ ■ ●
Storage subsystem...
deis-store-metadata.service: loaded
deis-store-monitor.service: loaded
deis-store-daemon.service: loaded
deis-store-volume.service: loaded
<EMAIL_ADDRESS>loaded
Logging subsystem...
deis-logger.service: loaded
deis-logspout.service: loaded
Control plane...
deis-builder.service: loaded
<EMAIL_ADDRESS>loaded
deis-controller.service: loaded
deis-database.service: loaded
Data plane...
deis-publisher.service: loaded
Router mesh...
<EMAIL_ADDRESS>loaded
<EMAIL_ADDRESS>loaded
<EMAIL_ADDRESS>loaded
Done.

Please run `deisctl start platform` to boot up Deis.
● ▴ ■
■ ● ▴ Starting Deis...
▴ ■ ●
Storage subsystem...
deis-store-monitor.service: activating/start-pre
deis-store-monitor.service: active/running
INFO client.go:297: Response 500 Internal Server Error from http://<IP_ADDRESS>:4001/ unusable
ERROR client.go:213: Unable to get result for {Set /_coreos.com/fleet/job/deis-store-daemon.service/target-state}, retrying in 100ms
deis-store-daemon.service: active/running
deis-store-metadata.service: activating/start-pre
deis-store-metadata.service: active/running
<EMAIL_ADDRESS>activating/start-pre
<EMAIL_ADDRESS>activating/start-post
Could not find unit<EMAIL_ADDRESS>deis-store-volume.service: activating/start-pre
deis-store-volume.service: deactivating/final-sigterm
deis-store-volume.service: activating/auto-restart
deis-store-volume.service: activating/start-pre
deis-store-volume.service: active/running
Logging subsystem...
deis-logger.service: activating/start-pre
deis-logger.service: active/running
deis-logspout.service: activating/start-pre
deis-logspout.service: active/running
Control plane...
deis-controller.service: activating/start-pre
deis-database.service: activating/start-pre
<EMAIL_ADDRESS>activating/start-pre
deis-controller.service: active/running
<EMAIL_ADDRESS>active/running
Could not find unit: deis-database.service
Could not find unit: deis-builder.service
Data plane...
Could not find unit: deis-publisher.service
Router mesh...
Could not find unit<EMAIL_ADDRESS>Could not find unit<EMAIL_ADDRESS>Could not find unit<EMAIL_ADDRESS>Done.

Please set up an administrative account. See 'deis help register'

Better behavior:
● ▴ ■
■ ● ▴ Installing Deis...
▴ ■ ●
Storage subsystem...
deis-store-metadata.service: loaded
deis-store-monitor.service: loaded
deis-store-daemon.service: loaded
deis-store-volume.service: loaded
<EMAIL_ADDRESS>loaded
Logging subsystem...
deis-logger.service: loaded
deis-logspout.service: loaded
Control plane...
deis-builder.service: loaded
<EMAIL_ADDRESS>loaded
deis-controller.service: loaded
deis-database.service: loaded
Data plane...
deis-publisher.service: loaded
Router mesh...
<EMAIL_ADDRESS>loaded
<EMAIL_ADDRESS>loaded
<EMAIL_ADDRESS>loaded
Done.

Please run `deisctl start platform` to boot up Deis.
● ▴ ■
■ ● ▴ Starting Deis...
▴ ■ ●
Storage subsystem...
deis-store-monitor.service: activating/start-pre
deis-store-monitor.service: active/running

Deis start failed:
INFO client.go:297: Response 500 Internal Server Error from http://<IP_ADDRESS>:4001/ unusable
ERROR client.go:213: Unable to get result for {Set /_coreos.com/fleet/job/deis-store-daemon.service/target-state}, retrying in 100ms

<exit nonzero>

Why?
I find the first (current) output and process of a deis start platform to be confusing. There are a lot of interspersed errors from fleetctl, deisctl... and for a new user there would be lots of confusion as to... hey this didn't seem so clean... do I actually trust the output that I have a working cluster? (in many cases the cluster is in a horribly broken state).
I'd like to see deis start platform behavior that more adequately reports the status of the cluster. Ideally we should also be checking the health of etcd and fleet as we go through the start process.
Benefits of this change would be:

fail fast install/start behavior that would be greatly appreciated by Jenkins so that we didn't continue on our merry way trying to run tests on flaky clusters.
a more solid "the install worked or it didn't" response

deisctl is going away in Deis v2 and I don't think we will be able to get to this for the LTS release so I'm going to go ahead and close this. Thank you for the report though!


fix onlocalcandidate handling

fixes the onlocalcandidate handling

Codecov Report

Merging #16 into master will increase coverage by 0.02%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   91.79%   91.81%   +0.02%
==========================================
  Files           1        1
  Lines         768      770       +2
==========================================
+ Hits          705      707       +2
  Misses         63       63

Impacted Files
Coverage Δ

rtcpeerconnection.js
91.81% <66.66%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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


Idea: Cryptofresh OPEN.GRC market data

Scraping https://cryptofresh.com/api/asset/markets?asset=OPEN.GRC for Bitshares DEX Gridcoin trading could be worthwhile in the future & could build further bridges with the Bitshares network.
That said, the current trading volume on the BTS DEX for OPEN.GRC is quite low 👎

Unable to proceed with this until @openledger re-enables open.grc


805 rename projects and folders

This is a bunch of file organization. Because we hodgepodged different projects together and didn't have a consistent naming scheme in the beginning our file structure hasn't matched out project/assembly names. This pull request goes through and makes those naming changes and puts projects in the right place. No substantial code has been added or removed.


XMPP authentication failure

I have checked my configuration and my credentials are correct. I have also enabled less secure apps, yet I still receive XMPP authentication failure when running the bot. To clarify - is this compatible with the old Hangouts or only the new Hangouts Chat application?

As far as I tested, it should work with all...

Would there be any alternate steps required if I'm using a gsuite enterprise account?

I've tested it on that too, what you said you already did should have sufficed. Can you double check the credentials again?

Just checked and they are correct. I've cleared the configuration a couple of times just to make sure I'm entering my credentials correctly. I've also tried with my personal gmail account and get the same error.

Did you get any email with the subject Critical security alert from Google when you configured the bot?

I didn't receive an email like that for either my personal or my enterprise account. Yes, I have allowed for less secure apps.

I really have no clue whats going wrong then, I tested it again. Works for me.

I just began a fresh install and this is what I got
`npm install -g hangouts-auto-reply-bot
npm WARN deprecated<EMAIL_ADDRESS>this package is deprecated please use https://www.npmjs.com/package/@xmpp/client
npm WARN deprecated<EMAIL_ADDRESS>use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml
npm WARN deprecated<EMAIL_ADDRESS>this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
/usr/local/bin/hangouts-auto-reply-bot -> /usr/local/lib/node_modules/hangouts-auto-reply-bot/index.js
/usr/local/bin/hangouts-auto-reply-bot-configure -> /usr/local/lib/node_modules/hangouts-auto-reply-bot/configure.js

<EMAIL_ADDRESS>added 75 packages from 85 contributors in 2.56s`

Could this have anything to do with it?

I guess no because it still works on my machine. If those libraries would have stopped working altogether, it would be between Google server and that library, which is most probably client machine-independent.
What platform are you using? I guess MacOS?

Yes, MacOS 10.15.2

Mine is 10.15.6, which I don't think is a difference that will matter.
Just to confirm, the username you are setting in the configuration is your full email address right?

Yes, I'm using my full username


Create ru-RU.json

Russian translation according to in-game translation.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Button not showing

Official Site button as not showing. What is the error on this? Im view on this example: http://pastebin.com/0S6VBxUX
My config:
{
"images":
{
"title":
{
"image": "test:textures/minecrafters.png",
"posX" : -137,
"posY" : 30,
"width" : 512,
"height" : 512,
"alignment" : "top_center"
}
},
"buttons":
{
    "singleplayer":
    {
        "text" : "Single Player Worlds",
        "posX" : -100,
        "posY" : 48,
        "width" : 200,
        "height" : 20
    },

    "multiplayerddd":
    {
        "text" : "Server List",
        "posX" : -100,
        "posY" : 72,
        "width" : 200,
        "height" : 20
    },

    "mods":
    {
        "text" : "Active Mods",
        "posX" : -100,
        "posY" : 96,
        "width" : 200,
        "height" : 20
    },

    "options":
    {
        "text" : "Options",
        "posX" : -100,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "quit":
    {
        "text" : "Quit Game",
        "posX" : 2,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "refresh":
    {
        "text" : "",
        "posX" : -154,
        "posY" : 132,
        "width" : 20,
        "height" : 20
    }
},

    "Official Site":
    {
        "text" : "Official Site",
        "alignment" : "top_right",
        "texture" : "custommainmenu:textures/gui/buttonMedium.png",
        "posX" : -100,
        "posY" : 2,
        "width" : 98,
        "height" : 20,
                    "action" :
                    {
            "type" : "openLink",
                            "link" : "http://txcraftnetwork.tk/"
        }
    },

"texts":
{
    "mojangs":
    {
        "text" : "TxCraftNetwork is not affiliated with Mojang AB.",
        "posX" : 2,
        "posY" : -10,
        "color" : -1,
        "alignment" : "bottom_left"
    },

    "modpack":
    {
        "text" : "Welcome to the:",
        "posX" : -34,
        "posY" : 15,
        "color" : -1,
        "alignment" : "top_center"
    }
},

"other":
{

    "panorama":
    {
        "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
        "blur" : true,
        "gradient" : true
    }
}

}

The official site button is not in the "buttons":{}

Now this giv me a error:
{
"images":
{
"title":
{
"image": "test:textures/minecrafters.png",
"posX" : -137,
"posY" : 30,
"width" : 512,
"height" : 512,
"alignment" : "top_center"
}
},
"buttons":
{
    "singleplayer":
    {
        "text" : "Single Player Worlds",
        "posX" : -100,
        "posY" : 48,
        "width" : 200,
        "height" : 20
    },

    "multiplayerddd":
    {
        "text" : "Server List",
        "posX" : -100,
        "posY" : 72,
        "width" : 200,
        "height" : 20
    },

    "mods":
    {
        "text" : "Active Mods",
        "posX" : -100,
        "posY" : 96,
        "width" : 200,
        "height" : 20
    },

    "options":
    {
        "text" : "Options",
        "posX" : -100,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "quit":
    {
        "text" : "Quit Game",
        "posX" : 2,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "refresh":
    {
        "text" : "",
        "posX" : -154,
        "posY" : 132,
        "width" : 20,
        "height" : 20
    }

    "Official Site":
    {
        "text" : "Official Site",
        "alignment" : "top_right",
        "posX" : -100,
        "posY" : 2,
        "width" : 98,
        "height" : 20,
                    "action" :
                    {
            "type" : "openLink",
                            "link" : "http://txcraftnetwork.tk/"
        }
    },

"texts":
{
    "mojangs":
    {
        "text" : "TxCraftNetwork is not affiliated with Mojang AB.",
        "posX" : 2,
        "posY" : -10,
        "color" : -1,
        "alignment" : "bottom_left"
    },

    "modpack":
    {
        "text" : "Welcome to the:",
        "posX" : -34,
        "posY" : 15,
        "color" : -1,
        "alignment" : "top_center"
    }
},

"other":
{

    "panorama":
    {
        "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
        "blur" : true,
        "gradient" : true
    }
}

}

You forgot the , after the "refresh":{}, you should put your file through a json checker before posting issues^^.

The error persists. Im try to use a json checker and it give me false error with working things.

Im try to coppy refresh button change name and coords, and the error presits, Im use a JSON validator and not have erros. What??
{
"images":
{
"title":
{
"image": "test:textures/minecrafters.png",
"posX" : -137,
"posY" : 30,
"width" : 512,
"height" : 512,
"alignment" : "top_center"
}
},
"buttons":
{
    "singleplayer":
    {
        "text" : "Single Player Worlds",
        "posX" : -100,
        "posY" : 48,
        "width" : 200,
        "height" : 20
    },

    "multiplayerddd":
    {
        "text" : "Server List",
        "posX" : -100,
        "posY" : 72,
        "width" : 200,
        "height" : 20
    },

    "mods":
    {
        "text" : "Active Mods",
        "posX" : -100,
        "posY" : 96,
        "width" : 200,
        "height" : 20
    },

    "options":
    {
        "text" : "Options",
        "posX" : -100,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "quit":
    {
        "text" : "Quit Game",
        "posX" : 2,
        "posY" : 132,
        "width" : 98,
        "height" : 20
    },

    "refresh":
    {
        "text" : "",
        "posX" : -154,
        "posY" : 132,
        "width" : 20,
        "height" : 20
    },

    "OfficialWebsite":
    {
        "text" : "",
        "posX" : -153,
        "posY" : 132,
        "width" : 30,
        "height" : 20
    }
},

"texts":
{
    "mojangs":
    {
        "text" : "TxCraftNetwork is not affiliated with Mojang AB.",
        "posX" : 2,
        "posY" : -10,
        "color" : -1,
        "alignment" : "bottom_left"
    },

    "modpack":
    {
        "text" : "Welcome to the:",
        "posX" : -34,
        "posY" : 15,
        "color" : -1,
        "alignment" : "top_center"
    }
},

"other":
{

    "panorama":
    {
        "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
        "blur" : true,
        "gradient" : true
    },
}

What is the errrrrooor
I'm going mad
WTF
	"Official Website":
    {
        "text" : "Official Website",
        "posX" : -130,
        "posY" : 132,
        "width" : 30,
        "height" : 20
		"action" :
		{
            "type" : "joinServer",
                   "ip" : "mc.hypixel.net"
        }
	},

you are missing a comma after height o_O, you might wanna change your json checker.

Now correct, but this not join the server

Im change joinserver to connectToServer

Solved this not is in action.
"openLink":
{
"text" : "Official Website",
"posX" : -130,
"posY" : 132,
"width" : 30,
"height" : 20,
"link" : "http://hypixel.net/",
(this work)
But on the example the url go in action and works

Then you probably have an old cmm version where the action stuff wasn't implemented yet.

Im using 1.7.10 version because Im building a modpack, and 1.8 not have many mods

No i'm not talking about your minecraft version, what is your custom main menu version?

Im using 0.9 i do not know why. Updating....

Updated. Working.

Yu know how to fix the Ã color code bug?

Change the editor you use to save the file in ASCI.

Saving in ASCII the mod not works. Only saving in UTF-8 without BOM the mod works.

What error do you get when saving in ANSI? And you could also use the color property to change the color of text.

Ok, thx for the help :smiley:


[Example] Add summarization example with finetuning BART model

Description
Currently, we still lack a summarization example and will need to add the dataset and example.
@leezu @szha

Agreed. There's a large body of work in that space, both in extractive and nowadays abstractive summarization. I think we should survey and pick. Some good comprehensive pools to choose from: http://nlpprogress.com/english/summarization.html, https://paperswithcode.com/task/text-summarization

Agreed. There's a large body of work in that space, both in extractive and nowadays abstractive summarization. I think we should survey and pick. Some good comprehensive pools to choose from: http://nlpprogress.com/english/summarization.html, https://paperswithcode.com/task/text-summarization

Actually, can we spare some efforts in adding an example this month?

Actually, can we spare some efforts in adding an example this month?


Visual Studio 2019 release via Appveyor

There is a dedicated project for the visualizer for 2019, but this cannot as of yet be compiled using Appveyor, because there isn't yet a VS 2019 AppVeyor image -- https://github.com/appveyor/ci/issues/2907.

The reference to Microsoft.VisualStudio.DebuggerVisualizers in Tests.Visualizer should be changed to the 2019 version when this becomes available.

The reference to Microsoft.VisualStudio.DebuggerVisualizers in Tests.Visualizer should be changed to the 2019 version when this becomes available.

Done.
Separate Appveyor.yml build configuration for 2017 still pending.

Appears to be working now.


Add a html file to display investigator in the browse panel when selected Fixes #207

A new InvestigatorDetailsPage.html file
Changes made to browsepanel.java to process passing in of data to html

Pull Request Test Coverage Report for Build 333

17 of 25 (68.0%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 81.909%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/seedu/investigapptor/ui/BrowserPanel.java
17
25
68.0%

Totals

Change from base Build 332:
0.1%

Covered Lines:
2617

Relevant Lines:
3195

💛  - Coveralls


Preview Plugin: analog of 'tools' attribute in the DSL

In xml layouts we often use:
tools:text="Dummy text"

for preview purpose.
It would be handy to use same trick with anko preview plugin:
textView {
    toolsText = "Dummy text"
}

or like this
textView {
    text = "Production text"
}.tools {
    text = "Dummy text"
}

Would also be useful for recyclerViews tools:listItem, so we could preview what a recyclerview will look like


Added clipboard has/get image methods

Following proposal #2949, added
clipboard_get_image() to get image from the clipboard
clipboard_has_image() to check if the clipboard has an image. It's faster than clipboard_get_image() so It may be useful to make a check (to disable a "paste" button for example)
Override of clipboard_has(), may be faster for a huge text.
They are only implemented on Windows and MacOS. Should be added on x11 (couldn't get a working result).
Here a code to try quickly (just add a texturerect in child) :
if DisplayServer.clipboard_has():
	print("clipboard txt : ",DisplayServer.clipboard_get())
if DisplayServer.clipboard_has_image():
	print("clipboard img : ",DisplayServer.clipboard_get_image().get_data())
	$TextureRect.texture=ImageTexture.create_from_image(DisplayServer.clipboard_get_image())

Also should be nice to rename clipboard_has() to  clipboard_has_text() and  clipboard_get() to  clipboard_get_text(). Or make Variant as result of  clipboard_get() and clipboard_has() should add an optional param to indicate what type it should check.
Production edit: Closes https://github.com/godotengine/godot-proposals/issues/2949.

I think that's pretty useful to support. We'll indeed need a X11 implementation too (could be in a follow-up PR if someone else wants to work on it), and assess other platforms (Android, iOS, Web).

Also should be nice to rename clipboard_has() to clipboard_has_text() and clipboard_get() to clipboard_get_text().

I agree, this should be done if this PR is accepted. That would also solve the awkwardness of clipboard_has() and clipboard_get() Yoda-speak, because then it would be more obvious that all those methods are clipboard_<method>.
There should also be support for clipboard_set_image() IMO, and clipboard_set() should be clipboard_set_text().
clipboard_set_image() could be quite convenient to let users grab a screenshot for easy sharing on social media / Discord, etc.

I began to replace "clipboard" methods with "text" at the end. And I saw clipboard_set_primary and clipboard_get_primary methods, it duplicates a bit all the methods only for x11 system. I don't know if it exists for the images the primary ? But if yes it can become a bit messy.
Shouldn't be easier to add this in clipboard_set_text method ? Like clipboard_set_text(text,primary=false). So that way you can do also clipboard_has_text(primary=false) without new methods.

I think that's pretty useful to support. We'll indeed need a X11 implementation too (could be in a follow-up PR if someone else wants to work on it), and assess other platforms (Android, iOS, Web).

Android provides the ability to copy/paste complex data structure, so this can be added as well as a follow-up PR once the initial one has landed.

wen in the in the main?

wen in the in the main?

4.0 is in feature freeze, so this will have to wait for a future 4.x release to be merged. Also, this pull request needs to be rebased against the latest master branch first.

Is there anything I could help with to get this merged?
Would be a really nice feature for making apps.

Is there anything I could help with to get this merged? Would be a really nice feature for making apps.

4.1 is currently in feature freeze, but you can test this PR locally and make sure it works as expected. We also recommend creating a publicly accessible testing project (cc @deakcor). That said, this PR needs to be rebased against the latest master branch before it can be merged in a future 4.x release.

I began to replace "clipboard" methods with "text" at the end. And I saw clipboard_set_primary and clipboard_get_primary methods, it duplicates a bit all the methods only for x11 system. I don't know if it exists for the images the primary ? But if yes it can become a bit messy.

Note that this particular part of the PR needs to be reverted, as we can't break compatibility anymore now that 4.0 is released.

Is there anything I could help with to get this merged? Would be a really nice feature for making apps.

4.1 is currently in feature freeze, but you can test this PR locally and make sure it works as expected. We also recommend creating a publicly accessible testing project (cc @deakcor if they still have a copy of the project). That said, this PR needs to be rebased against the latest master branch before it can be merged in a future 4.x release.

I began to replace "clipboard" methods with "text" at the end. And I saw clipboard_set_primary and clipboard_get_primary methods, it duplicates a bit all the methods only for x11 system. I don't know if it exists for the images the primary ? But if yes it can become a bit messy.

Note that this particular part of the PR needs to be reverted, as we can't break compatibility anymore now that 4.0 is released.

So I rebased and reverted the part with "_text" behind clipboard methods. If you validate the changes, let me know and I'll squash the commits into one

Looks good to me overall. The classref needs to be updated, see the diff in https://github.com/godotengine/godot/actions/runs/5513089283/jobs/10050780703?pr=63826
CC @bruvzg to review Windows and macOS implementations.

Strange, the checks succeeded before I squashed the commits but normally there isn't any issue. Let me know if I need to change anything.

Strange, the checks succeeded before I squashed the commits but normally there isn't any issue. Let me know if I need to change anything.

It's not related to PR and caused by https://github.com/godotengine/godot/issues/78749, I have restarted failed job.

Thanks! This is great! No we just need a volunteer to implement this for Linux :)


Fix SpotifyId base 62 and 16 str decoding

A SpotifyId is expected to be a 128 bits integer and can be parsed from a base 62 or 16 string. However the parsing functions only checked the validity of the characters of the string, but not its length. This could result in integer overflows or the parsing of incorrect strings as Spotify ids.
This commit add some checks to the length of the input string passed to the parse functions, and also checks for integer overflows in case of base62 encoded strings.

I guess that https://github.com/librespot-org/librespot/pull/1284 is needed to fix the failing clippy job?

Thanks! Yes the other PR is required to fix the clippy warnings.


Can i use feign and saga in project ?

in our project , use feign ,but we can use saga ?

As Zipkin supports the feign out of box, I don't think there is a big challenge here.
You just need to do something to pass omega context around the framework as we do in https://github.com/apache/incubator-servicecomb-saga/pull/180.

The result of running saga-demo is wrong, soga is not executed correctly.The car's 'cancelled' state does not become true when I enter the wrong information, can u help me?
url: http://localhost:8081/booking/喜马拉雅/333/80
resp: {
"name": "喜马拉雅",
"amount": 80,
"confirmed": true,
"cancelled": false
}

Hi,
I don't think this is a related issue, but I will try to run the demo myself.


High Mysql load

Print from Mysql Solutions
Possible performance issues
Issue	Recommendation
long_query_time is set to 10 seconds or more, thus only slow queries that take above 10 seconds are logged.	It is suggested to set long_query_time to a lower value, depending on your environment. Usually a value of 1-5 seconds is suggested.
The slow query log is disabled.	Enable slow query logging by setting log_slow_queries to 'ON'. This will help troubleshooting badly performing queries.
There are lots of rows being sorted.	While there is nothing wrong with a high amount of row sorting, you might want to make sure that the queries which require a lot of sorting use indexed columns in the ORDER BY clause, as this will result in much faster sorting
There are too many joins without indexes.	This means that joins are doing full table scans. Adding indexes for the columns being used in the join conditions will greatly speed up table joins
The rate of reading the first index entry is high.	This usually indicates frequent full index scans. Full index scans are faster than table scans but require lots of CPU cycles in big tables, if those tables that have or had high volumes of UPDATEs and DELETEs, running 'OPTIMIZE TABLE' might reduce the amount of and/or speed up full index scans. Other than that full index scans can only be reduced by rewriting queries.
The rate of reading data from a fixed position is high.	This indicates that many queries need to sort results and/or do a full table scan, including join queries that do not use indexes. Add indexes where applicable.
The rate of reading the next table row is high.	This indicates that many queries are doing full table scans. Add indexes where applicable.
Many temporary tables are being written to disk instead of being kept in memory.	Increasing max_heap_table_size and tmp_table_size might help. However some temporary tables are always being written to disk, independent of the value of these variables. To eliminate these you will have to rewrite your queries to avoid those conditions (Within a temporary table: Presence of a BLOB or TEXT column or presence of a column bigger than 512 bytes) as mentioned in the MySQL Documentation
MyISAM key buffer (index cache) % used is low.	You may need to decrease the size of key_buffer_size, re-examine your tables to see if indexes have been removed, or examine queries and expectations about what indexes are being used.
The rate of opening tables is high.	Opening tables requires disk I/O which is costly. Increasing table_open_cache might avoid this.
The InnoDB log file size is not an appropriate size, in relation to the InnoDB buffer pool.	Especially on a system with a lot of writes to InnoDB tables you should set innodb_log_file_size to 25% of innodb_buffer_pool_size. However the bigger this value, the longer the recovery time will be when database crashes, so this value should not be set much higher than 256 MiB. Please note however that you cannot simply change the value of this variable. You need to shutdown the server, remove the InnoDB log files, set the new value in my.cnf, start the server, then check the error logs if everything went fine. See also this blog entry
What can i do to make the performance of the Websit better?

has anyone ever come up with a list of indexes that should be added to the mpos tables to seed it up?

the one I see most often in the slow log for mysql is:
Query_time: 0.001738  Lock_time: 0.000012 Rows_sent: 1  Rows_examined: 693
use xxxx_mpos;
SET timestamp=1421255482;
SELECT
IFNULL(SUM(difficulty) / 300, 0) AS sharerate,
IFNULL(SUM(difficulty), 0) AS shares,
IFNULL(AVG(difficulty), 0) AS avgsharediff
FROM (
SELECT
id, our_result, IF(difficulty = 0, POW(2, (20 - 16)), difficulty) AS difficulty
FROM
shares
WHERE username LIKE 'kilo17.%'
AND time > DATE_SUB(now(), INTERVAL 300 SECOND)
AND our_result = 'Y'
UNION
SELECT
share_id, our_result, IF(difficulty = 0, POW(2, (20 - 16)), difficulty) AS difficulty
FROM
shares_archive
WHERE username LIKE 'user1.%'
AND time > DATE_SUB(now(), INTERVAL 300 SECOND)
AND our_result = 'Y'
) AS temp;

Disable the live dashboard if yourDB can't handle the load. That's your only option really since that stuff can't be further optimized. And the simple amount of shares being added every second doesn't help in performance.
A static table with constant data works much better it with mining this is not the case. Hence query caches of SQL and index caches have to be regenerated all the time.
Dashboards are good live information but will be and stay performance killers. Same for a few other expensive queries.

I'm not really suffering any performance problem per se' - even though I have 32 pools  running on my server it's very fast with 32 gb ram - I may disable block averaging or reduce number of blocks averaged.

Query time gave it away indeed. That isn't long at all ;-)
Anyhow as said and discussed in other topics, not much tuning that could be done anymore without losing statistical data or payout methods (PPLNS would be the first to go which is widely used).


Fixes a documentation typo

Before:

After:

Good catch! Thank you!

👍
On Thu, Aug 24, 2023 at 4:03 PM Philip Sampaio @.***>
wrote:

Merged #693 https://github.com/elixir-explorer/explorer/pull/693 into
main.
—
Reply to this email directly, view it on GitHub
https://github.com/elixir-explorer/explorer/pull/693#event-10186767432,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAJH7ZB2GAK6JCRZ7D5TF3XW7MUDANCNFSM6AAAAAA35WDLCE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Added setOpacity function for production layer opacity

Part of functionality for 'S14017 Opacity for production layer'. Sets CSS opacity property on heatmap canvas.

See PR #4


Add "eauth" parameter

Hello !
I've added an "eauth" configuration parameter, to support authentication when LDAP is enabled on salt-server side.
It defaults to "pam" to not break things.
It works on my salt setup, with the snippet present in the README.

Awesome thank you!


All subbuilds in engine_v2 recipes show as "Mac|Linux engine drone"

This complicates the triage process. Example:

\cc @zanderso FYI

Fixed by: https://flutter-review.googlesource.com/c/recipes/+/34802


AudioQualityMode Command-Line Switch Not Accepted

I'm using version 1.2 of FreeRDP and I wish to utilize the AudioQualityMode command-line switch in order to increase the audio quality. The 'dynamic' audio quality (the default setting) produces 'thinny' sounding audio and is laggy. The same thinny sounding audio is produced by the Windows client, but when the client-side audioqualitymode:i:2 parameter is passed, the audio quality is greatly enhanced.
Is this a supported parameter in FreeRDP? If so, how so I use it? If not, any chance it can be supported in a later release?
Thanks!

2.0.0-rc3 supports the setting.


Which hardware to use?

H guys.
I finally got the compiler in line, so it stops complaining.
I tried to load this on an Arduino Nano ESP32.
I also swapped it for an Arduino UNO R4.
Wont upload.
Any suggestions?

I used a ESP32-WROOM-32 and it works like a charme :)
Don't forget to put it in download mode!
It would be nice, if they could support ESP32-C6 Boards in the future ;)


Scalar DL Adapter

This patch set introduces Scalar DL adapter and sample contracts for running the "simple" and "smallbank" workloads. See packages/caliper-scalardl/READEME.md for details.

@siyopao Thank you for reviewing. I pushed fixed patches. As I said the above, currently we do not check errors like negative balance same as HL Fabric.

https://github.com/scalar-labs/caliper/pull/1#discussion_r306666759
@feeblefakie '-p' option of docker-compse could solve my above concern. Also, I cleaned up old docker-composing files.

@jnmt Sorry for getting back to you late. You are missing some comments from me. Please take a look. Otherwise it looks pretty good.

@feeblefakie Sorry for overlooking. The two comments are not fixed (regarding "money" and the difference of SimpleTransfer and SimplePayment). Is that right? I checked and  fixed them. Please find.


Default Theme Features

Feature request
What problem does this feature solve?
 It would be great if they could be brought across. In particular, I'm interested in:

Homepage
Git repo and Edit Links

What does the proposed API look like?
The same as the default theme.
How should this be implemented in your opinion?
Copy and paste.
Are you willing to work on this yourself?
Still new to Vuepress, so no.

It can't just be copied and pasted since they're different theme with different UI for different purpose. I agreed Homepage is a common feature. The big challenge why it hasn't been implemented is I'm lack of UI design experience.

I am voting on this issue as well. In addition, one feature I like from theme-default that's missing in theme-blog is the Markdown containers extension supported by `vuepress-plugin-container'.


Use of undeclared type 'UIWindowScene'

Hello,
just updated my pod to 3.4.2 and receiving an error while building "Use of undeclared type 'UIWindowScene'"
here is the code and error image link:
https://imgur.com/upPixUU

@SohaibSiddique
Version 3.4.2 can be used on Xcode 11.

@SohaibSiddique
Version 3.4.2 can be used on Xcode 11.

for now, downgrade to 3.4.1 after updating Xcode definitely will update pod to 3.4.2


Public IP address DDoS Settings

Check for previous/existing GitHub issues

[X] I have checked for previous/existing GitHub issues

Issue Type?
I'm not sure
Module Name
avm/res/network/public-ip-address
(Optional) Module Version
0.4.0
Description
Hi,
In my own public IP resource Bicep templates using 'Microsoft.Network/publicIPAddresses@2023-04-01' i have public IP address IP protection enabled not part of a DDoS Protection plan. This is defined using the following property. It appear this is not supported in the AVM module? If i specify only the protectionMode i see the following error "The specified "object" declaration is missing the following required properties: "ddosProtectionPlan".
ddosSettings: {
  protectionMode: 'Enabled'
}

(Optional) Correlation Id
No response

Hey @ChrisSidebotham could you take a look at this issue?
@darrenfrowen, sorry for not coming around earlier. It seems something went wrong with the automatic issue assignment.

Hi Alex,No problem at all thanks for your response.RegardsOn 21 May 2024, at 18:35, Alexander Sehr @.***> wrote:
Hey @ChrisSidebotham could you take a look at this issue?
@darrenfrowen, sorry for not coming around earlier. It seems something went wrong with the automatic issue assignment.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

@darrenfrowen - Thanks for submitting this, good to see you in this space! I have updated the ddosSettingType in #2006, once this is approved and merged a new version will be available for use

Hi Chris,
Thanks for the update and hope your well. I only found AVM a few months ago and think its such a great resource. Great community call on Tuesday by the way.
Regards
From: ChrisSidebotham-MSFT @.>
Sent: Wednesday, May 22, 2024 1:55 PM
To: Azure/bicep-registry-modules @.>
Cc: Darren Frowen @.>; Mention @.>
Subject: Re: [Azure/bicep-registry-modules] Public IP address DDoS Settings (Issue #1940)
@darrenfrowen https://github.com/darrenfrowen  - Thanks for submitting this, good to see you in this space! I have updated the ddosSettingType in #2006 https://github.com/Azure/bicep-registry-modules/pull/2006 , once this is approved and merged a new version will be available for use
—
Reply to this email directly, view it on GitHub https://github.com/Azure/bicep-registry-modules/issues/1940#issuecomment-2124729939 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2JS3FQXZX65PHNBV4YEN3ZDSIR7AVCNFSM6AAAAABHYQM4A2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUG4ZDSOJTHE .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AD2JS3FN6LGQ7FSEEFYQMNTZDSIR7A5CNFSM6AAAAABHYQM4A2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT6UTHFG.gif Message ID: @.*** @.***> >

Hi Chris,
Should I now be able to omit the ddosProtectionPlan’ object? If I remove the ‘ddosProtectionPlan’ object I see the following IntelliSense error declaring both required and optional .  Am missing something apologies in advance if I am?
I also tried the ddosProtectionPlan object with an empty value for Id: ‘’ which doesn’t throw IntelliSense error allowing the deployment to run however when accessing the “protect IP address” I see the following .
Regards
From: ChrisSidebotham-MSFT @.>
Sent: Wednesday, May 22, 2024 3:15 PM
To: Azure/bicep-registry-modules @.>
Cc: Darren Frowen @.>; Mention @.>
Subject: Re: [Azure/bicep-registry-modules] Public IP address DDoS Settings (Issue #1940)
Closed #1940 https://github.com/Azure/bicep-registry-modules/issues/1940  as completed via #2006 https://github.com/Azure/bicep-registry-modules/pull/2006 .
—
Reply to this email directly, view it on GitHub https://github.com/Azure/bicep-registry-modules/issues/1940#event-12895337563 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2JS3B5ECNK4IWUWB46HC3ZDSR53AVCNFSM6AAAAABHYQM4A2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHA4TKMZTG42TMMY .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AD2JS3BUSEVOLQWAU3GFOHLZDSR53A5CNFSM6AAAAABHYQM4A2WGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAGAE7HRNQ.gif Message ID: @.*** @.***> >

@ChrisSidebotham
There seems to be an issue, if i set the object on the module as follows, we can see a conflict where it specifies as both required and optional for the ddosProtectionPlan

If i set the parameter object outside of the module then reference the parameter i see no error but the IP protection fails. without any error.

Can you confirm that it does work with the following result under Protect IP address of the public IP resource please?

@darrenFrowen - Leave this with me and will investigate today! :)

@ChrisSidebotham thank you very much appreciated

@darrenFrowen it seems the CDN is being slow but the module version should actually be 0.4.1.
example:
module pip 'br/public:avm/res/network/public-ip-address:0.4.1' = {
  name: 'myPipTest01'
  params: {
    name: 'csuk-tst-avmpip02'
    ddosSettings:{
      protectionMode: 'Enabled'
    }
    skuTier: 'Regional'
  }
}

@ChrisSidebotham yes i wasn't picking any new version up which i found strange.

So i have just forced the module to version 4.0.1 the module now accepts the single protectionMode property and the deployment now works as expected.

Thanks for your support Chris really appreciated.

Thanks for confirming @darrenFrowen. Sometimes your local client may be caching the available versions - il close this issue now :)

Thanks Chris I’ll keep that in mind next timeOn 24 May 2024, at 14:17, ChrisSidebotham-MSFT @.***> wrote:
Thanks for confirming @darrenFrowen. Sometimes your local client may be caching the available versions - il close this issue now :)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

thanks @ChrisSidebotham ill keep that in mind next time


Dont' check lease status on upsert principal access

Proposed changes

Don't validate status on upsert principal access

Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactor (changes to code, which do not change application behavior)

Checklist

[ ] I have filled out this PR template
[ ] I have read the CONTRIBUTING doc
[ ] I have added automated tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (README.md, inline comments, etc.)
[ ] I have updated the CHANGELOG.md under a ## next release, with a short summary of my changes

Relevant Links

Further comments

Already complete


Suggestions work but not highlight

Hi,
I've just installing this plugin. I'm on antergos distribution with zsh 5.4.2 and oh-my-zsh. When I type echo 'hello' for the second time nothing appears but if I type on the right arrow the completion comes. I tried to modify the color but nothing happened.

In order to get help, please include your zshrc configs.

@m4n3z40 Bright Black color under your terminal settings configured correctly? What happens when you run this?
echo -e "\033[1;30m Hello"
Can you see the text?

This looks like a dupe of #262.

I am pretty sure this issue about the colors of your terminal. Try changing the bright black color.

Haha @kutsan is right. My color scheme was the problem. Sorry about that guys.
But thanks a lot!

@m4n3z40 No problem!


can't send fees issue

Why can't i send my BCC out?

we didnt change fee stuff, try sending with min fee


Sample code is also out of date because Swift 2.

Sample code is also out of date because Swift 2.

Can you share any particular example that doesn't work?
They should all work in Swift 2.0.

For some reason self.dynamicType isn't being recognised in Xcode 7.0.1 (7A1001).
let path = NSBundle(forClass: self.dynamicType).pathForResource("fixture", ofType: "json")!
let data = NSData(contentsOfFile: path)!
stub(matcher, builder: jsonData(data))

May be related to #28. :grimacing:

That example is expecting from inside a function (setUp) where self is the instance of the function. You are using self inside a class method thus it isn't available.
I see you've already used the name bundle in your other example (#28) and figured this out.