Number support

For an intent parser I created, where you could ask the timetable for a specific bus line, I had to write down the possible numbers for bus lines. But then, typing real numbers from the command line, e.g. when is the next bus sixty-one leaving from home? starts to be annoying.
Would it be possible to build in a support for numbers, somehow? I know of the library inflect that translates integers to text, which would help quite a bit on this. There is also pynum2word.
I think that being able to specify a new sort of entity (i.e. a numerical entity) would be nice. Something where you specify a range, say 1 to 100, and it will then understand both 1 and sixty-one, preferably returning the integer version in the json structure.

Kind of a duplicate to #7, sorry. Still, having number support would be nice. Maybe we can discuss here what it would take to make a better support for at least numbers written like 20, in the engine? Using regex for specifying a range can be quite painful...
The advantage of something like pynum2word is the sort of multilanguage support, also. Speaking of which: what is the plan for putting in localisation support? Will this be part of another package, somehow?

Still a duplicate of #7 , and I haven't had time to think through how I want to do this in a language agnostic way. I'd prefer to use something that's a reversal of pynum2word (or the like).
Short term, I imagine that your bus line data source has a static set of routes? If so, you could consume that and use pynum2word or inflect to populate the vocabulary automatically, as opposed to maintaining a list of number-to-word mappings.
https://github.com/MycroftAI/adapt/commit/1da3760963c8f6bf603e4d24a121269ca1d5dccb
The above commit introduced alias support, which should allow you to map the numeral-words back to the integer values, albeit as strings.

Nice, I did not know about the alias feature. Sounds like a good solution in the meantime, thanks. Feel free to close the issue if it is not on your radar for the foreseeable future.


Cost Calulation

Im really loving this tool I have been using it for a while now and its great to see so many active user and contributors! One feature that i often thought would be really great is a new sensor that calculates cost? I think its a gap in the home assistant energy feature, we get total cost of home usage but not a breakdown of cost per device.
I would imagine this would be quite easy to do - provide powercalc with a fixed value or reference to another sensor / input number for cost per kWh and then it create another sensor entity for it :)

I think this would best be solved in HA itself, as it already has cost functionality faik. It feels like reinventing the wheel. But I need to have a closer look into that.
Also it's a little more complex as a lot of people also have different tariffs depending upon the time of day, or weekends.

Btw I found this topic where this feature was requested for the energy dashboard. https://community.home-assistant.io/t/energy-cost-for-the-individual-devices/334932/40.
Would be a good idea to vote. Hopefully they will implement soon. I will also cast my vote.
Not planning into adding something like this into powercalc as it should be part of HA energy dashboard and current cost functionality.
When you really need something right now you can just create some template sensors.
Closing this issue.

As HA energy dashboard individual devices cost is still not in works, i'm working on a custom integration that does that: https://github.com/martinarva/dynamic_energy_cost

Im going to give this a try this morning @martinarva! How does it handle when the rates change (Peak, Off Peak Day etc).

Im going to give this a try this morning @martinarva! How does it handle when the rates change (Peak, Off Peak Day etc).

It uses the current price, so if you have a sensor that reflects the current price you are good to go.
If you use energy (kWh)sensor as an input it will calculate every time input sensor changes.
Calculation logic is simple - integration calculates the difference between current reading and last reading and multiplies it with electricity price. Then adds the result to cost sensors. And then resets it daily, monthly and yearly for the corresponding sensors.
If you input power (w) sensor it first calculates the real time cost (€/h) and then uses Reimann Sum logic to calculate daily, monthly and yearly cost and resets them accordingly.
Strong recommendation is to use energy (kWh) sensor as an input instead of power (W) sensor,  because it's more precise. Only use power sensor if you for some reason don't have energy sensor on your device.


Prove that any complex number can be constructed out of scalars

See Wetering paper Section 3.4

We might not need this after all, since we restricted our notion of proportionality and we mostly needed this for the reconstruction of scalars into ZX diagrams (See #9). Putting into backlog


Add support for Doxygen commands @todo, @warning, etc.

From mesheb82 on 2012-07-05T02:16:57Z
Spyder Version:  2.1.10
Python Version:  2.7.2
Qt Version:      4.7.3, PyQt4 (API v1) 4.8.5 on Windows
What feature would you like?
Spyder already supports FIXME, TODO, XXXX, HINT, TIP.  It would be nice to also support the various doxygen markers (@todo, @param, @retval, @returns, @brief, @warning, @note, @-see) as well.
One approach would be to add them directly.  Another would be to allow the user to specify special variables that will be flagged yellow and red or possibly a user defined color.
Some info on Doxygen. http://www.stack.nl/~dimitri/doxygen/doxywizard_usage.html Thanks for the great program!
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1109

From ccordoba12 on 2012-07-08T09:02:52Z
Doxygen is used to document C/C++ programs, right? Or is it also used for Python programs too?
Status: HelpNeeded
Labels: -Priority-Medium Priority-Low Cat-Editor

From mesheb82 on 2012-07-08T10:16:20Z
Yes.  Doxygen is used to document C/C++ and Python programs.  The project I'm using it on:
Here's an example from pyNastran (the open source project I'm working on):
Attachment: fieldWriter.py

From ccordoba12 on 2012-07-08T10:32:49Z
Ok, I see.
I don't see this being added before 2.2 is released but if you want to work on it, I'll be happy to help you.

From<EMAIL_ADDRESS>on 2012-08-21T13:29:04Z
FYI: https://code.google.com/p/spyderlib/issues/detail?id=613

From ccordoba12 on 2014-02-14T05:59:54Z
This issue was updated by revision f1c1cad1c7b3 .
Status: Started


Feature Requests

There doesn't seem to be a place for feature requests, so here are mine:

Image to Image support-This would be blindingly fast for image to image

GPU Option-Only an option, but support for GPU use

Custom Model support-Ability to drop custom safetensors or other types of models into a specified directory and select them from a drop-down

Even without the requests above, this has been my go-to for fast image generation since I found it a few weeks back.  Thank you for your efforts!

@y0himba LCM-LoRA custom model supports added in the release https://github.com/rupeshs/fastsdcpu/releases/tag/v1.0.0-beta.12
GPU option will be added soon!


Using meta.span_count in the rules fails when Refinery makes sampling decisions without the root span

Looking at some rules with a customer recently, they have some larger traces with 100k+ spans in a the trace.  However they have the rules below:
                - Name: Drop traces with more than 5000 spans
                  Drop: true
                  Conditions:
                    - Field: meta.span_count
                      Operator: '>='
                      Value: 5000
                      Datatype: int
                - Name: sample marketdata trace with more than 1000 spans
                  Conditions:
                    - Field: meta.span_count
                      Operator: '>='
                      Value: 500
                      Datatype: int
                    - Field: service.name
                      Operator: =
                      Value: marketdata
                  Sampler:
                    EMADynamicSampler:
                        GoalSampleRate: 1000

A lot of those long traces match these rules, but they're also missing the root span, which explains why they're getting through because the trace doesn't have that field added anywhere.  I think a lot more traffic is getting through that they don't want because this field isn't made available to trace_send_no_root traces.
Versions

Refinery: 2.1.0

Describe the solution you'd like
I'm thinking that the easiest solution would be to add the meta.span_count field to another span should the root span not exist, maybe the first span to arrive at Refinery in that trace? Or if there's another trace that's easily grabbed to add a field to. I think adding it on every span would be unnecessary, but we should make sure it makes it onto a span if the root span doesn't arrive.
Describe alternatives you've considered
First Alternative:
We could have a set of pre-caching rules that are evaluated when a span arrives and is processed before going into the cache.  This would allow us to have rules for dropping traces with a certain volume of spans where we could hopefully just look at a count counter for a trace_id real quick and if > threshold, drop the trace and log it in the decision cache. This also has the benefit of being able to handle some traces before the root span comes in or before the trace timeout gets hit.
Second Alternative:
We could have meta-spans that don't get sent, but maintain meta information about a trace, and we can use values in that meta span to drop the span_count field in, so that the rule processes based on the data, but the meta span is dropped at the end of the rule processing and not sent upstream to honeycomb.  There's a lot of cool stuff we might be able to do with that concept of a meta span.

This is basically #646 in a different suit. My thought is to store current span count on the trace object rather than individual spans, so that refinery can act on it at any time. But we also would prefer to recognize when it's too high and execute a drop rule before refinery tries to record a million spans.

The feature we released in v2.3.0 called Virtual Fields addresses most of the use cases in this issue.
The remaining situation that is hard to handle is:

A trace doesn't terminate and times out
But the ?.NUM_DESCENDANTS value is still less than the rule
Refinery decides to keep the trace and records a Keep record
A million other spans arrive for the same trace and get sent to Honeycomb

The general solution would require re-evaluating rules on every span, even late spans, which would be computationally very expensive. It might be possible to address this very specific case with a config value that continues to count late spans and changes the decision after reaching a configured maximum value. But that feels pretty specific right now, so I'm closing this until we see an actual instance of the problem in the field.


Mint freeos action failed with read error.

28/6/22 freeosgov2 v0.9.24 iteration:460103 Account: alanappleton
Mint freeos action failed with read error.

28/6/22 v0.9.25 iteration: 460105. Mintfreeos action ran successfully. Fixed.


Move talk formatting to a new class

This PR moves the createdFormattedOutput function of the model to another class. The version in the talk mapper still exists, but is just used to point to the new function.
I moved the function to a new location in order to keep the models clean, and a bit of separation of concerns. I'm not 100% sure on the names of the class and interface, so feedback is welcome.
I also changed the scopeRecent a little bit to now just return a builder object instead of the formatted array. This is in line with how scopes are intended, and would allow us to chain multiple scopes if so desired.
Related to #506 .

Thanks @BackEndTea


update Japanese translation

Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Run the unit tests with gradlew app:connectedGmsDebugAndroidTest to make sure you didn't break anything (with an emulator running or phone connected)

[x] If you have multiple commits please combine them into one commit by squashing them.

Note you may see the Cirrus CI system failing on your PR. It's pretty flaky right now so don't
be alarmed.

Thanks a lot!


Treat deps/ as system includes to suppres warnings in external code

A better version of #9 which treats code in deps/ as system libraries causing GCC and the like to suppress warnings in this code.
This is only until miniz gets fixed upstream - PR was opened and the strict aliasing violation has been reported.

The benefit over #9 is it doesn't disable warnings in Anvil code.

If you can fix the whole thing, that would be much appreciated. I don't have free cycles at the moment to look into sorting these warnings on my own. Thanks!

@janisozaur i proposed a solution for violations in Anvil code in #11
This is getting messy, having three PR and a issue for the same thing.

Superseded with #17


Handle management app feature integration tests

Dependents on https://github.com/wso2/carbon-identity-framework/pull/3839, need to update the framework version after merging this PR

Closing as it is waiting for the FE improvements to support this. Once the FE improvements are done, we can reopen and merge this.

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1985620062
Status: success


OMDB API Integration not working

Tried to integrate OMDB API which allows us to integrate with movie databases such as imdb, rotten tomatoes etc but its not working. To be resolved.

Looking into this issue, will update soon.

Resolved the issue with latest branch and also added feature of poster fetching for predicted movies


let documentsProvider = CloudFileProvider(containerId: nil)

when run，
let documentsProvider = CloudFileProvider(containerId: nil)
break and The following log
assertion failed: LocalFileProvider.init(containerId:) is not recommended to be executed on Main Thread.: file /Users/xxx/Pods/FileProvider/Sources/CloudFileProvider.swift, line 55
What the problem？thanks！

This not a problem, it's by design. Apple doesn't recommend initializing iCloud container for the first time from main thread. You can run the initializer in DispatchQueue, or set CloudFileProvider.asserting property to false in case you don't mind if you app freezes in some cases.
Check Apple documentation for more information: https://developer.apple.com/reference/foundation/filemanager/1411653-url

thank you！


Lexical HTML link converter leads to an endless loop if pages link each other.

Link to reproduction
No response
Payload Version
Beta 78
Node Version
20 LTS
Next.js Version
15 - 104
Describe the Bug
Given the following:

A collection uses a lexical field (directly or through blocks makes no difference)
There is an HTML converter for that collection
There is a custom HTML converter for the link node
The link node HTML converter uses req.payload.findByID to get some attributes of the entry for generating the url
2 entries of that collection exists which link each other
Upon save of the link in the second entry the whole node process will go in an endless loop and the complete CMS is unusable.

Additionally, after the docker container has been restarted and the CMS works again that a simple click on the collection is enough to get the whole CMS again to be unusable.
So there are 2 things here:

We need to prevent endless loops for the HTML Link node converter. Perhaps it would be the best if the existing Link feature would expose a function called generate_url() which defaults to return the ID but can be overwritten with a function where we could safely generate an url based on the properties of that entry without using req.payload.findByID.
HTML converter for the entries should IMHO not be called when only the collection overview page is visited and the contents of that field are not displayed inside the list.

Additional information can be found in this discord discussion:
https://discord.com/channels/967097582721572934/1274009889106038846
Why is it necessary to use something like that in the link converter?
Here our use case:
  ...
  const payloadArgs = {
      depth: 0,
      draft: false,
      req: req,
      showHiddenFields: false,
      id: doc?.value as string,
    }

  const result = await req.payload.findByID({
          ...payloadArgs,
          collection: 'pages',
        })
        const locale = req.locale ?? 'de'
        href = result.paths?.[locale] ?? ''
  ...

We use a virtual / computed field called paths which holds the locale specific paths which are generated via the parent relationship of the nested docs plugin and we need the locale of the request to add the correct lang code.
Perhaps this is related to https://github.com/payloadcms/payload/issues/7722
Adapters and Plugins
db-postgres lexical

Following this issue since I'm also having this problem when two entries in the same collection are linked with each other

Having the same issue.

Added a reproduction with steps to reproduce here:
https://github.com/yobottehg/payload/blob/beta-repro-7743/test/_community/config.ts

Fixed by https://github.com/payloadcms/payload/pull/7890
Now, for custom converters, you will have to pass through depth and currentDepth (those are now parts of the html converter args) in order to avoid infinite recursion.
Instead of the local API, I recommend using the populate function now exported from richtext-lexical: https://github.com/payloadcms/payload/blob/beta/packages/richtext-lexical/src/features/upload/server/feature.server.ts#L118
This handles checking and incrementing depth for you, and is more efficient


[FEATURE} Make oss.gg fully responsive

Issue Summary
I just exploring through mobile and found that oss.gg is not mobile user friendly.
https://github.com/formbricks/oss.gg/assets/77881638/eafc6f8e-5d0c-4563-a6f0-231c05581191
Steps to Reproduce

Open in mobile device

Expected behavior
All components should proper set so user can check their update from mobile device also
Other information
No response
Screenshots
No response
Desktop (please complete the following information)
- OS: Android

/assign

/assign

/assign

/unassign

/unassign

/assign

/assign


Almost no tests?

It looks like there is almost no test coverage for this project. I gather most of the code was originally sourced from other projects, and so hopefully it'll work, but it would be very reassuring to have more test coverage. Is that on the roadmap (and could I help contribute with some tests)?

@carltonwhitehead yup, you are right. The point is what you mentioned: most of the classes have been grabbed from Guava.
Always any contribution is possible. I encourage you to start 😃


Fake bot plugin

Motivation
As we all know, many bots are fakeing User-Agent header to look like a, i.e., Googlebot. In lots of cases, users are trusting this header and, for example, are not applying so high restrictions for such requests. Anyway, behavior where anyone is fakeing anything to get something more is considered bad (or should be). This plugin is able to detect and block such requests.
Proposed solution
This is an alternative and more general version of Fake Googlebot plugin.
As @theMiddleBlue suggested, this version of plugin is using DNS PTR records for checking if a bot is real or fake. Plugin consists of these parts:

blocking rule
Lua script

Currently, plugin is able to detect these fake bots:

Googlebot
Bingbot
Facebookbot

Prototype of this plugin is ready.
Plugin registry PR: https://github.com/coreruleset/plugin-registry/pull/4.

wow, that's true... I didn't think about this kind of problem!
➜  ~ time host -t PTR <IP_ADDRESS> <IP_ADDRESS>
Host <IP_ADDRESS>.in-addr.arpa not found: 2(SERVFAIL)
0,00s user 0,01s system 0% cpu 3,941 total

➜  ~ time host -t PTR <IP_ADDRESS> <IP_ADDRESS>
Host <IP_ADDRESS>.in-addr.arpa not found: 2(SERVFAIL)
0,00s user 0,00s system 0% cpu 8,516 total

weird... why this happens?

Plugin registry PR: https://github.com/coreruleset/plugin-registry/pull/4

@dune73 @lifeforms --^

Repo for new plugin created https://github.com/coreruleset/fake-bot-plugin
@azurit has been made maintainer.
I have also added the plugin into the registry, which is formally too early, but that way @azurit can get on with the work.


Ways of learning the attribute vector

Very impressive work! I'm wondering if you have compared the proposed way of learning the attribute vector (by classification) with the way in [1] (by simply using the difference between the mean features)?.
[1] P. Upchurch, J. Gardner, G. Pleiss, R. Pless, N. Snavely, K. Bala, and K. Weinberger. Deep feature interpolation for image content changes. In CVPR, 2017

Thanks. We do not compare with that work. (We guess that training a classifier is more stable than just using mean features since more data is used for searching the boundary. But you are right, an comparison experiment is needed to support this claim. If you are interested, you can replace the train_boundary functon in utils/manipulator.py.) Actually, using SVM for classification is just one solution to boundary search. Clients can use whatever method they like to achieve this goal, and this repo just provides one feasible way. The main contribution is that we found that unconditional GAN actually learns to encode semantics into the latent space. Some semantics may correlate with each other, but the proposed conditional manipuation method can help reveal such disentanglement.

Thank you for the quick response. I'll try it out when I have time :). Again, nice work!


npm run bootstrap failed in windows 10

`
C:\Server\electron\app\insomnia-develop>npm run bootstrap

<EMAIL_ADDRESS>bootstrap C:\Server\electron\app\insomnia-develop
npm install && lerna bootstrap && lerna run --parallel --stream bootstrap

<EMAIL_ADDRESS>preinstall C:\Server\electron\app\insomnia-develop
node ./scripts/check-version.js

npm WARN<EMAIL_ADDRESS>requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of styled-components@>= 2 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\eslint-plugin-html\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
up to date in 11.131s
63 packages are looking for funding
run npm fund for details
lerna notice cli v3.22.1
lerna info Bootstrapping 29 packages
lerna info Installing external dependencies
lerna ERR! npm install exited 1 in 'insomnia-send-request'
lerna ERR! npm install stderr:
]
node version : 12.18.3
windows 10`

It looks like you've truncated the actual error output in your original post.
I've ran through the development setup, and prepared a small guide that I personally use which you can find here:
https://github.com/Kong/insomnia/wiki/Development-Guide
The environment I was testing with uses Git Bash and VSCode. What does your environment look like?
Another note, here is what I did to update / clean my environment from a broken to clean state:

rm -rf node_modules
npm run clean (make sure that you have lerna and rimraf installed globally)
npm run bootstrap
npm run app-start

It looks like you've truncated the actual error output in your original post. Do you mind following the steps below and pasting the full output should you encounter an error? I've also written a small development guide while trying to replicate. Mostly requirements to get started.
Can you follow these steps below and provide output?

rm -rf node_modules
npm run clean (make sure that you have lerna and rimraf installed globally)
npm run bootstrap
npm run app-start

Also do you mind providing your full environment details? See mine below as well.

Git Bash
VSCode
Windows 10 x64

Thank you. I'll try it later


Official Documentation incorrect

The 'IsLoopEnabled' entry for Loop components in Teams entry in the official site is incorrect. The correct value to check is 'IsFluidEnabled'. Only after wondering why my 'Get-SPOTenant' didn't show this information and going down that rabbit hole did I eventually learn that 'IsFluidEnabled' the correct field. Please update the Microsoft official documentation to reflect this in order to reduce confusion.

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

ID: c41c35b5-e159-ed6d-a9ff-bea0ef7f0736
Version Independent ID: 2eca8e70-2e83-b100-890b-03b4377186e9
Content: Manage Loop experiences (Loop app and Loop components) in SharePoint - SharePoint in Microsoft 365
Content Source: SharePoint/SharePointOnline/manage-loop-components.md
Service: sharepoint-online
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

@dancontoso can you help?

indeed, IsLoopEnabled is the correct, new property/value to set. IsFluidEnabled has been deprecated. functionally under the covers, they both set the same property to ensure interop for people who used IsFluidEnabled almost a year ago as MS usually maintains compatibility with deprecated settings for at least a year, but it is no longer a relevant setting and IsLoopEnabled is the correct way to address the property that Teams chats will listen to.

Thank you for your swift help and response. Proving that friendship isn't the only magic; commenting on GitHub is too.

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Expose Conn.BufReader

To prevent data loss from internal buffer when unwrapping Conn back to the underlying connection, the private buffered reader was made external. Follows-up #51.

Coverage remained the same at 93.487% when pulling eb536e94f2baca92553ce53a4a533a45e732d479 on guysv:master into 9d53ed5686d1944a3e0a53a7521c578a92e37719 on pires:master.

Coverage remained the same at 93.487% when pulling eb536e94f2baca92553ce53a4a533a45e732d479 on guysv:master into 9d53ed5686d1944a3e0a53a7521c578a92e37719 on pires:master.

Also, off-topic. #51 mentioned a generic Conn.Raw() to get the underlying connection without casting. where did that go?

Hmm, still not clear to me why it's not possible to just read from proxyproto.Conn.

Also, off-topic. #51 mentioned a generic Conn.Raw() to get the underlying connection without casting. where did that go?

Feel free to submit a PR for it. I don't need that yet, so haven't bothered sending a patch.

Hmm, still not clear to me why it's not possible to just read from proxyproto.Conn.

Reading larger data than whats buffered in bufio.Reader will cause it to read its underlying reader. To drain just the internal buffer, you need to know exactly how much you are allowed to read without triggering a refill. That amount you can read is exposed via Reader.Buffered(), which is what I just exposed.

OK, but why do you need to drain the internal bufio reader?

Ah. easy. When you detach the underlying connection from the proxy struct (which is now done using #51), you're going to want that extra data when you repurpose that connection.
In my use case, I'm writing a connection forwarder (open new connection to remote, pipe data between existing (proxy) connection and the new connection). To do that properly, I need to call the underlying TCPConn's CloseRead and CloseWrite
Because those methods are unaware to the fact that some of the data read from the connection is actually buffered somewhere, I'm going to need to:

drain the buffer.
write the drained data to the outgoing connection.
do the usual connection forwarding move (io.Copy(in, out), io.Copy(out, in)).
call TCPConn methods to close the connection properly.

If I don't drain the buffer, some application data will be forgotten in that buffer.

By the way, another approach could be setting Conn's net.Conn as the embedded struct. That way you could e.g. pass a Conn to my forwarding routine (I would need to do the casts over there, but that's OK i guess)

Thanks for taking the time to explain everything!

call TCPConn methods to close the connection properly

So in two separate goroutines you want to:

io.Copy(in, out) and then CloseRead
io.Copy(out, in) and then CloseWrite

to properly support half-opened connections?

To do that properly, I need to call the underlying TCPConn's CloseRead and CloseWrite

Maybe you can call Read on the proxyproto.Conn and CloseRead on the underlying connection? I guess that makes your internal logic more complicated?

By the way, another approach could be setting Conn's net.Conn as the embedded struct. That way you could e.g. pass a Conn to my forwarding routine (I would need to do the casts over there, but that's OK i guess)

Hm, I don't quite understand this one. What is the "embedded struct"?

yea! that's why I offered

By the way, another approach could be setting Conn's net.Conn as the embedded struct. That way you could e.g. pass a Conn to my forwarding routine (I would need to do the casts over there, but that's OK i guess)

so I could just cast proxyproto.Conn like I would've done with any net.Conn anyway.
I guess that will do fine for my use-case :)

well, in our case we have an embedded interface, but we could pull it off like this
type Conn struct {
-	conn              net.Conn
+	net.Conn
	bufReader         *bufio.Reader
	header            *Header
	once              sync.Once
	ProxyHeaderPolicy Policy
	Validate          Validator
	readErr           error
}

that way proxyproto.Conn "inherits" all of conn's methods (but can override them with implemention of its own for e.g. Read.

I see, that makes sense.
I believe there are other use-cases that would benefit of exposing the underlying bufio.Reader. For instance, if you want to read a HTTP request from the connection, you may want to use textproto.NewReader. However if you do it like this:
var conn *proxyproto.Conn
tr := textproto.NewReader(bufio.NewReader(conn))

Then the pipeline will contain two buffered readers, one internal to proxyproto.Conn, the other created by the user. This would avoid the overhead:
var conn *proxyproto.Conn
tr := textproto.NewReader(conn.BufReader)

well, buffered reader actually checks if the internal reader is a buffered reader too and reuses it if so, but I see where you're going with that.

well, buffered reader actually checks if the internal reader is a buffered reader too and reuses it if so, but I see where you're going with that.

Yeah, but that won't work here, because proxyproto.Conn (which is an io.Reader, so can be passed to bufio.NewReader) won't type-assert to a *bufio.Reader.

Well, i've been thinking about it, and at least for my end goal turning net.Conn into the embedded interface will make my code better than draining the however-long bufio.Reader chain I might be facing. May I add that too to the PR for further discussion?

My bad. Excuse me. What I just outlined won't work because i'll need to type-assert to net.Conn before calling my routine, so i'm losing the internal buffer again. I guess I'll have to pass both the buffered reader and the conn to the routine.

OK. After doing some offline evaluation, this PR is irrelevant for my needs, as I could just type-assert to proxyproto.Conn, unwrap to tcpconn with proxyproto.TCPConn() and call the needed CloseRead/Write methods.
I would, however prefer to have that Raw() method we talked about earlier. I'll open another PR for that.
Because we did outline some useful use-cases for this PR's change, feel free to merge it (or close it)

hey @guysv! Thank you very much for your contribution, however I'd prefer to not introduce this and have #55 instead 🙇

Have you read https://github.com/pires/go-proxyproto/pull/54#issuecomment-732936977?

I re-read it now, thanks for calling it out.

Gentle ping in case this got lost in doom of github notifications.

Gentle ping in case this got lost in doom of github notifications.

Actually, I was reading this for the nth time and I want to go back to my initial assessment: this will be closed until it really becomes needed. Right now, it seems like it would be doing something for future users that may never show up and I'd rather not do it, particularly as exposing the buffer this way may also result in dangerous behavior.

Actually, I was reading this for the nth time and I want to go back to my initial assessment: this will be closed until it really becomes needed. Right now, it seems like it would be doing something for future users that may never show up and I'd rather not do it, particularly as exposing the buffer this way may also result in dangerous behavior.


How can i add additional buttons to the header next to the 'done' button?

I would like to add additional buttons like 'share' , 'delete' .
How can i do this?

As for now you can't but it's definitely something I have in my mind to implement. Although, of course, I'm open to any Pull Request with that feature :)

go to ion-gallery/templates/silder.html.

{{::actionLabel}}
You can add here any button you want. In my example I have added a share button.

Fixed with #62


Clicking a checkbox label doesn't check the box

The checkboxes in the settings dialog and filtering don't respond to clicks on the label.
This can be fixed by wrapping the labels around the input tag, or by setting the for attribute of the label.
The smallest change to fix this is by adding .attr('for', filter.id) after https://github.com/ebi-uniprot/biojs-vis-proteinFeaturesViewer/blob/master/lib/VariantFilterDialog.js#L80.

Done. We also add some lighter/darker effect plus cursor pointer to highlight the actionable elements.


feat: add Grafana endpoint section

Feature Request
The goal of this issue would be to add a Grafana endpoint support on the navbar of Tsukuyomi to make anyone able to track its node activity via Prometheus.

Helpful ressource: https://docs.substrate.io/tutorials/build-a-blockchain/monitor-node-metrics/

Hey @OMCSB! Please send me a message on tg: https://t.me/antiyro

@OMCSB how is it going here?


Is the example working?

I've tried the example from the README.md:
package main

import (
        "fmt"
        "log"

        "github.com/buaazp/fasthttprouter"
        "github.com/valyala/fasthttp"
)

func Index(ctx *fasthttp.RequestCtx) {
        fmt.Fprint(ctx, "Welcome!\n")
}

func Hello(ctx *fasthttp.RequestCtx) {
        fmt.Fprintf(ctx, "hello, %s!\n", ctx.UserValue("name"))
}

func main() {
        router := fasthttprouter.New()
        router.GET("/", Index)
        router.GET("/hello/:name", Hello)

        log.Fatal(fasthttp.ListenAndServe(":8080", router.Handler))
}

When I run it, it shows:
./test.go:21: cannot use Index (type func(*fasthttp.RequestCtx)) as type fasthttprouter.Handle in argument to router.GET
./test.go:22: cannot use Hello (type func(*fasthttp.RequestCtx)) as type fasthttprouter.Handle in argument to router.GET

I guess you are using the old version, please try the newest package.

Ah you're right, I didn't notice..
github.com/buaazp/fasthttprouter (download)
# cd /home/asd/go/src/github.com/buaazp/fasthttprouter; git pull --ff-only
fatal: Not possible to fast-forward, aborting.
package github.com/buaazp/fasthttprouter: exit status 128


Uniform arrays of vectors aren't uploaded

uniform vec4 colors[2];

void main(void) {
    gl_FragColor = colors[0]; // vec4(1, 1, 0, 1);
}

If you use an uniform array of vec4 in a PIXI.Shader, then it will not be uploaded. The values of the vectors will be [0, 0, 0, 0] no matter what.
Possible Solution
@ivanpopelyshev might have some ideas.
Steps to Reproduce
https://codepen.io/sukantpal/pen/MWKoxLa
In the pen above, you can remove the usage of colors[0] and replace it with the commented out constant color (yellow). Then, you will see a yellow square on the screen.
Environment

pixi.js version: +5.2.4

Never mind, all the floats need to be in one array (instead of passing an array of arrays in the shader's uniforms).


TEPPP Fails to compile on older GCC version (< GCC-8)

Describe the bug
TEPPP fails to build on older versions of GCC due to the filesystem library.
On older versions of gcc (gcc-6,  and gcc-7, older versions of gcc do not have the filesystem library and thus are not supported) the filesystem library needs to be implemented as such:
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;

int main()
{
    fs::path p = "/path/to/my/file"; // etc...
}

To Reproduce
Have a gcc version less than gcc-8.
Expected behavior
TEPPP to build error-free.
Error messages, stack traces, etc.

$ make serial
Convertor Compilation Success
g++ main/convertor.cpp -o convertor
main/convertor.cpp:2:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
make: *** [convertor] Error 1

Version information

Compiler: gcc
Compiler version: <= gcc-7
Operating system: Linux

This says "< GCC-8". However I was getting these error messages even with gcc-8 and gcc-9 (I made sure my g++ version matched the gcc version).
With gcc and g++ version 9 I got this error message after typing make serial:

login3.stampede2(1014)$ make serial
Convertor Compilation Success
g++ main/convertor.cpp -o convertor
main/convertor.cpp:6:21: error: ‘filesystem’ is not a namespace-name
6 | namespace fs = std::filesystem;
| ^~~~~~~~~~
main/convertor.cpp: In function ‘int main(int, char**)’:
main/convertor.cpp:18:7: error: ‘fs’ has not been declared
18 | if (!fs::exists("converted"))
| ^~
main/convertor.cpp:21:3: error: ‘fs’ has not been declared
21 | fs::create_directory("converted");
| ^~
main/convertor.cpp:28:54: error: ‘fs’ was not declared in this scope
28 | std::string outfname = "./converted/" + std::string(fs::path(infname).filename());
| ^~
main/convertor.cpp:29:31: error: expected primary-expression before ‘(’ token
29 | std::string ext = std::string(fs::path(infname).extension());
| ^
main/convertor.cpp:29:32: error: ‘fs’ is not a class, namespace, or enumeration
29 | std::string ext = std::string(fs::path(infname).extension());
| ^~
main/convertor.cpp:30:2: error: ‘fs’ is not a class, namespace, or enumeration
30 | fs::path p = fs::path(outfname).replace_extension(".teppp");
| ^~
main/convertor.cpp:31:25: error: ‘p’ was not declared in this scope
31 | outfname = std::string(p);
| ^
main/convertor.cpp:52:29: error: variable ‘std::stringstream ss’ has initializer but incomplete type
52 | std::stringstream ss(line);
| ^
main/convertor.cpp:83:31: error: variable ‘std::stringstream ss’ has initializer but incomplete type
83 | std::stringstream ss(line);
| ^
make: *** [convertor] Error 1

With gcc and g++ version 8 I got this error message:

$ make serial Convertor Compilation Success g++ main/convertor.cpp -o convertor main/convertor.cpp:6:21: error: ‘filesystem’ is not a namespace-name namespace fs = std::filesystem; ^~~~~~~~~~ main/convertor.cpp:6:31: error: expected namespace-name before ‘;’ token namespace fs = std::filesystem; ^ main/convertor.cpp: In function ‘int main(int, char**)’: main/convertor.cpp:18:7: error: ‘fs’ has not been declared if (!fs::exists("converted")) ^~ main/convertor.cpp:21:3: error: ‘fs’ has not been declared fs::create_directory("converted"); ^~ main/convertor.cpp:28:54: error: ‘fs’ was not declared in this scope std::string outfname = "./converted/" + std::string(fs::path(infname).filename()); ^~ main/convertor.cpp:29:31: error: expected primary-expression before ‘(’ token std::string ext = std::string(fs::path(infname).extension()); ^ main/convertor.cpp:29:32: error: ‘fs’ is not a class, namespace, or enumeration std::string ext = std::string(fs::path(infname).extension()); ^~ main/convertor.cpp:30:2: error: ‘fs’ is not a class, namespace, or enumeration fs::path p = fs::path(outfname).replace_extension(".teppp"); ^~ main/convertor.cpp:31:25: error: ‘p’ was not declared in this scope outfname = std::string(p); ^ main/convertor.cpp:52:29: error: variable ‘std::stringstream ss’ has initializer but incomplete type std::stringstream ss(line); ^ main/convertor.cpp:83:31: error: variable ‘std::stringstream ss’ has initializer but incomplete type std::stringstream ss(line); ^ make: *** [Makefile:50: convertor] Error 1

And with gcc and g++ version 7 I got this error message:

login4.stampede2(1015)$ make serial
Convertor Compilation Success
g++ main/convertor.cpp -o convertor
main/convertor.cpp:2:10: fatal error: filesystem: No such file or directory
#include
^~~~~~~~~~~~
compilation terminated.
make: *** [convertor] Error 1

I tried making the changes it recommended and it gave me some new ones:

g++ main/jones.cpp -o main/jones
In file included from main/jones.cpp:1:
main/../include/funcs.h:284:20: error: non-aggregate type 'vector' cannot be initialized with an initializer list
vector v1 = {p2[0] - p1[0], p2[1] - p1[1]};
^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main/../include/funcs.h:285:20: error: non-aggregate type 'vector' cannot be initialized with an initializer list
vector v2 = {p4[0] - p3[0], p4[1] - p3[1]};
^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main/../include/funcs.h:339:42: error: a space is required between consecutive right angle brackets (use '> >')
bool has_mult_crossings(vector<vector> crossings)
^~

main/../include/funcs.h:361:34: error: a space is required between consecutive right angle brackets (use '> >')
int count_loops(vector<vector> neigh_array, int n)
^~
> >
main/../include/funcs.h:364:16: error: variable-sized object may not be initialized
bool found[n] = {false};
^
main/../include/funcs.h:641:21: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> invert_mat(vector<vector> m)
^~
> >
main/../include/funcs.h:641:55: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> invert_mat(vector<vector> m)
^~
> >
main/../include/funcs.h:644:25: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> ans;
^~
> >
main/../include/funcs.h:675:21: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> get_random_proj()
^~
> >
main/../include/funcs.h:681:25: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> matrix;
^~
> >
main/../include/funcs.h:733:25: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> transposed;
^~
> >
main/../include/funcs.h:738:30: error: expected expression
transposed.push_back({trans[i][0], trans[i][1], trans[i][2]});
^
main/../include/funcs.h:740:25: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> inverted = invert_mat(transposed);
^~
> >
main/../include/funcs.h:759:12: warning: generalized initializer lists are a C++11 extension [-Wc++11-extensions]
return {p2[0] + (imgx * box_dim), p2[1] + (imgy * box_dim), p2[2] + (imgz * box_dim)};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main/../include/funcs.h:759:12: error: non-aggregate type 'vector' cannot be initialized with an initializer list
return {p2[0] + (imgx * box_dim), p2[1] + (imgy * box_dim), p2[2] + (imgz * box_dim)};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main/../include/funcs.h:779:20: error: non-aggregate type 'vector' cannot be initialized with an initializer list
vector result = {p0[0] + (t * s1_x), p0[1] + (t * s1_y)};
^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main/../include/funcs.h:805:14: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto const& x : temp) {
^
main/../include/funcs.h:805:28: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto const& x : temp) {
^
main/../include/funcs.h:806:18: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto const& y : base) {
^
main/../include/funcs.h:806:32: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto const& y : base) {
^
main/../include/funcs.h:828:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto const& x : a) {
^
main/../include/funcs.h:828:24: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto const& x : a) {
^
main/../include/funcs.h:829:14: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto const& y : b) {
^
main/../include/funcs.h:829:28: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto const& y : b) {
^
main/../include/funcs.h:846:18: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> generate_neigh_array(int n, bool closed)
^~
> >
main/../include/funcs.h:848:22: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector> neigh_array;
^~
> >
main/../include/funcs.h:850:31: error: expected expression
neigh_array.push_back({i-1, i+1});
^
main/../include/funcs.h:854:31: error: expected expression
neigh_array.push_back({n-2, 0});
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
9 warnings and 20 errors generated.
make: *** [jones] Error 1


Question about the Choice of Training Epochs

I've been exploring your fascinating work on "Anchored Preference Optimization and Contrastive Revisions: Addressing Underspecification in Alignment" and appreciate the effort you've put into this work.
I noticed that the number of epochs is set to 18, which seems unusually high.  Could you please provide some insights into the reasons behind setting the epoch count to 18 for this particular work? Understanding this could greatly help in my learning and application of your approach.
Thank you for your time and assistance!

Hi @ShacklesLay , thanks for expressing interest in our work!
Setting training hyperparameters is always a challenging problem. We decided to go for a lower learning rate and high number of epoch to get a more stable run. We did not sweep the number of epochs, 18 was just an incidental choice. A longer training also helped us see the difference between DPO and APO better, as we outline in figure 4 of the paper.
I'll aim to release the full evaluation results and wandb logs soon, this may also help you pick these hyper parameters.


Add EventBridge resources

What resource do you need?
EventBridge:

Archive
APIDestination
EventBus
Connection
EventSource

What is your use case?
Use EventBridge features as a main event queue for our new micro service architecture; I need all feature of EventBridge.
Would you be willing to contribute it using code generator?
I've tried with the base generation, but I don't know which fields is a custom field and needs a custom implementation for *Ref and *Selector.

Any updates on this?

FYI for anyone still following this, the upbound provider does have support for crossplane resources:
https://marketplace.upbound.io/providers/upbound/provider-aws/v0.38.0/resources/cloudwatchevents.aws.upbound.io/Rule/v1beta1

/fresh Is there any plan to continue supporting this provider as opposed to upbound?

Is there any plan to continue supporting this provider as opposed to upbound?

This provider is maintained by the community only. We plan to provide continues support for it. However, due to the limited amount of maintainers and time we will focus on bugfixes and refactoring to keep the code clean and ensure it works. We wont add support for new resources on our own but we are open for pull requests to add new functionality to it.


package.json: allow Svelte to compile assets

Also adds support for types.
Fixes issue https://github.com/revolist/svelte-datagrid/issues/4 by allowing project-local Svelte compilers to build the distribution (rather than use pre-compiled distribution).

Just checking that this has been picked up?


Stopped working on latest version of VS Code Insiders

I'm using it for some C++ development, and I noticed that after today's nightly, it stopped working. Bracket-Pair-Colorizer v1 seems to still work, though.
Version: 1.45.0-insider (user setup)
Commit: a250df703de955a38aed427a917bce8278ab3331
Date: 2020-04-24T10:02:48.114Z
Electron: 7.2.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.14393

Just noticed the latest release (April 2020 (version 1.45)) it's similarly broken - v1 works still.

A re-install worked for me. (Uninstall, reload vscode, install)

I just updated to VSCode 1.45.0 and lost functionality as well. I've noticed it in .js files and .vue files so far.
Version: 1.45.0
Commit: d69a79b73808559a91206d73d7717ff5f798f23c
Date: 2020-05-07T15:57:33.467Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0

Bracket Pair Colorizer v1 still work on VSCode 1.45.0, and I have same issue too, this is no longer work for v2
Version: 1.45.0 (system setup)
Commit: d69a79b73808559a91206d73d7717ff5f798f23c
Date: 2020-05-07T16:18:48.860Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

Doesn't work in ver 1.4.5 anymore.
I reverted to v1 and that is working.

This is due to a change in the vscode-textmate library. I've made a PR to fix the issue: #260


CRUD Campaigns

Create/update campaigns
Allow add/sub potions
Show all campaigns on the dashboard

 CRUD Campaign


[sg temphack] depend on ninja

Runtime detection of ninja during build time is not done correctly, thus require ninja to circumvent this problem.

This change was reverted due to issues with the Yocto build.


GUACAMOLE-344: switching to upstream libvncserver because it properly enables VeNCrypt

thanks for the tip...I've integrated your recommendations.

Ping @Metuchen - can you update the PR as requested?


Gist Liquid Tag causes SSL error when using jekyll serve or jekyll build

I was directed here from Jekyll, but for the sake of clarity and saving a click, I've pasted the original text here.

I preface this with the fact that I'm not a Rubyist, and I'm just getting back on Windows, so I seem a little green, it's because I am.

I'm currently working on Windows 10, trying to build a site using the Poole theme, Jekyll 3.1.0 and Ruby ruby 2.2.3p173 x64. I seemed to keep running up against Liquid errors. I managed to fix a few common ones after installing jekyll-gist and jekyll-paginate, but then I hit this wall:
$ jekyll serve --trace
Configuration file: C:/Users/cdvillard/Projects/cvillard/new-site/poole/_config.yml
            Source: C:/Users/cdvillard/Projects/cvillard/new-site/poole
       Destination: C:/Users/cdvillard/Projects/cvillard/new-site/poole/_site
 Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed in C:/Users/cdvillard/Projects/cvillard/new-site/poole/_posts/2014-01-01-example-content.md
C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
    from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
    from C:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'
    from C:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:98:in `call'
    from C:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:98:in `timeout'
    from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in `connect'
    from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
    from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:852:in `start'
    from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:583:in `start'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-gist-1.4.0/lib/jekyll-gist/gist_tag.rb:79:in `fetch_raw_code'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-gist-1.4.0/lib/jekyll-gist/gist_tag.rb:56:in `gist_noscript_tag'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-gist-1.4.0/lib/jekyll-gist/gist_tag.rb:23:in `render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in `render_token'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:in `block in render_token_with_profiling'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in `profile_token_render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:in `render_token_with_profiling'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in `block in render_all'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `each'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `render_all'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:108:in `render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:210:in `block in render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:262:in `with_profiling'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:209:in `render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:222:in `render!'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/liquid_renderer/file.rb:28:in `block (2 levels) in render!'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/liquid_renderer/file.rb:36:in `measure_bytes'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/liquid_renderer/file.rb:27:in `block in render!'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/liquid_renderer/file.rb:43:in `measure_time'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/liquid_renderer/file.rb:26:in `render!'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/renderer.rb:106:in `render_liquid'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/renderer.rb:61:in `run'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:171:in `block (2 levels) in render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:169:in `each'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:169:in `block in render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:168:in `each'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:168:in `render'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/site.rb:59:in `process'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/command.rb:26:in `process_site'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/commands/build.rb:60:in `build'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/commands/build.rb:33:in `process'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/lib/jekyll/commands/serve.rb:34:in `block (2 levels) in init_with_program'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/jekyll-3.1.0/bin/jekyll:13:in `<top (required)>'
    from C:/Ruby22-x64/bin/jekyll:23:in `load'
    from C:/Ruby22-x64/bin/In the jekyll:23:in `<main>'

I haven't followed the trace just yet, but what I have done until this point is researched. I've tried several methods including Nichol's and Lavena's. I also know that if I remove the gist tag, it serves the site without complaint. Does anyone have ANY clue what could be causing this?

In the original issue, it was suggested that I enforce Net::HTTP#ssl_version to ':TLSv1_2'. I'm not sure how to.

Original post: https://github.com/jekyll/jekyll/issues/4413
This means that Ruby couldn't verify the certificate of gist.githubusercontent.com: certificate verify failed (OpenSSL::SSL::SSLError). Do you get this every time? Perhaps this was part of the outage yesterday.
SSLv3 is old, so TLSv1_2 would be better. If you google "ruby net http set ssl version", you could probably figure out how it's done. You'd likely modify the Net::HTTP.start call with some new option.

Thanks for the follow-up, @parkr. The outage as a cause would have been a legitimate theory, but this was occurring post-outage, at 2:00 AM EST. It still occurs, but only after removing the 'gist' tag syntax from content. I'll make a fork and try modifying the 'Net::HTTP.start' call next chance I get; I'm in class at the moment.

I'll make a fork and try modifying the Net::HTTP.start call next chance I get; I'm in class at the moment.

Sounds good.

 Google has given me a few solutions that I'm sure can be implemented, but I'm unsure as to where to implement it in this case.

I'm having the same issue, any luck with a solution to this?

@sethxd Did you try re-installing Ruby with an upgraded version of OpenSSL? It's possible the version you're both using is broken. This works fine for me.

I simply decided to avoid the issue until after I launched. I'll give your
suggestion a try when I next have a chance.
On Wed, Mar 16, 2016 at 4:59 PM, Parker Moore<EMAIL_ADDRESS>wrote:

@sethxd https://github.com/sethxd Did you try re-installing Ruby with
an upgraded version of OpenSSL? It's possible the version you're both using
is broken. This works fine for me.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/jekyll/jekyll-gist/issues/30#issuecomment-197547121

There's definitely a regression in the OpenSSL stdlib component in the ruby's installed by RubyInstaller for Windows, and unfortunately it doesn't look like there's an easy fix.
This is the version in question:

$ ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
OpenSSL 1.0.1l 15 Jan 2015

(that's an 'L' after 1.0.1)
It seems that every version of 2.2.X, as well as 2.1.7 & 2.1.6 is using this version of OpenSSL. All of them have this issue. (My Vagrant box doesn't have this issue, it has 1.0.1f)
I also tried patching the Net::HTTP.start call to use TLSv1_2 as well as a few of the other options. But, it didn't have any effect. It would always try to connect through SSLv3. (I intentionally broke other things, I know my code was getting picked up :) )
Since the issue is probably with the stdlib OpenSSL, I don't know what out options are. Can we rebuild that library with new code or replace it with a gem or something? I'm also new to ruby. Any suggestions @parkr?
The alternatives I'm considering:

Use RubyInstaller 2.1.5. It's an older version of ruby, and you will have to do the certificate fix mentioned here , but it works.
Just use Vagrant
Buying a Macbook (j/k, well maybe...)

@spiffycoffee Nice sleuthing! 🔍 I'd recommend asking RubyInstaller to patch. If they release a new version with a later version of OpenSSL, then all would be fixed, no?

@parkr Duh, that would be obvious thing to do. Thanks! I will take it up with them.

Same problem here!

Just downloaded the latest of everything and this still happens.
@parkr's https://github.com/jekyll/jekyll-gist/issues/30#issuecomment-176461291 tip to modify gist_tag works, but only when disabled:
Net::HTTP.start(uri.host, uri.port,
    use_ssl: uri.scheme == 'https',
+   verify_mode: OpenSSL::SSL::VERIFY_NONE,,
+   #ssl_version: "TLSv1_2",
+   #ciphers: 'TLSv1.2:!aNULL:!eNULL',
+   #ssl_options: OpenSSL::SSL::OP_NO_SSLv2 | OpenSSL::SSL::OP_NO_SSLv3 | OpenSSL::SSL::OP_NO_COMPRESSION,
    read_timeout: 3, open_timeout: 3) do |http|

(the commented lines have no apparent effect even when enabled instaed of having NONE)
Finally only set SSL_CERT_FILE=...cacert.pem worked.

I also just started seeing this today. Was there another outage that might be effecting things?
$ bundle exec jekyll serve

Was working for me just a couple days ago in the same project when building locally. (jekyll 3.0.3)


Add support for arbitrary forDesignTime method

This adds support for custom forDesignTime methods that produce either a single or a List of widgets for rendering.
Example:
@Showcased(width: 104.0, height: 104.0)
class ActionButton extends StatelessWidget {
  const ActionButton({Key key, this.params}) : super(key: key);

  static List<Widget> forDesignTime() {
    return [
      ActionButton(params: oneSample),
      ActionButton(params: otherSample),
      ActionButton(params: yetAnotherSample)
    ];
  }
...

This would produce 3 separate screenshots under the same showcase

Closing in favor of https://github.com/Igor1201/showcase/pull/19


feat: move pop-node to omni-node based client.

By moving to an omni-node, upgrading Polkadot versions becomes much easier as the main checks are in the migrations and runtime configuration. No need to worry about the node.

This is blocked because for the ISMP integration we need to customize the node.


feat: validate if config is a DAG

@scriptnull
This PR addresses issue #15 by implementing and providing the following four test cases:

Valid DAG

Valid DAG

Invalid DAG

Invalid DAG

To maintain the encapsulation of the Connector struct, I kept the fields unexported. However, I introduced the following two methods to the Connector interface:
From() string

To() string

I have successfully run the tests locally and confirmed that everything is working as expected. Please feel free to review and suggest any improvements or changes. I apologize in advance for any oversights.

Hi, Thanks for the pull request! I will get back to you once I find some free time to review it!

@scriptnull,
I wanted to acknowledge and apologize for an oversight in the cycle detection algorithm I contributed. I initially used code from ChatGPT without fully verifying it. While the rest of the work in the PR was original, I realize this was a lapse in my process.
I have since corrected the algorithm and tested it to ensure its accuracy. My data structures and algorithms skills were a bit rusty, which contributed to this oversight. I am committed to improving my process and ensuring that this does not happen again.
Thank you for your understanding and for reviewing my PR.


fix: Switch site update to a put request

Hello! Hope you don't mind a proposed contribution from a lowly open-source developer.
It appears that the request type is incorrect for the updateSite endpoint, although I'm obviously new to this API and can't quite confirm. This is causing problems for me because I'm using the Node API generated by this specification, and the patch request doesn't seem to be having the side-effects that I'm looking for. For example:
Manually updating the custom_domain via the UI makes a PUT request, which works as expected:

Calling the API function with the same parameters against (theoretically) the same endpoint does not, and I think the incorrect request type might be the culprit:

I'm hoping this change in tandem with an API regeneration would fix that problem, but feel free to correct me!

Hi @wdrach can you try:
client.updateSite({ site_id, body: { custom_domain: '...' } })

any parameter under the request body schema should be included in the body param.
This is similar to https://github.com/netlify/js-client#using-openapi-operations

PATCH is generally used to modify a resource and PUT is used to replace a resource

That makes sense to me, I'm a bit interested why it's using a different method on the UI than is documented in the open api, but that's above my paygrade.
I'll give this a shot next time I'm fiddling with my project, and reopen if I still have issues. Thanks for the quick response!


Predefined date ranges

Implements predefined ranges. It uses litepicker plugin.
I had to update litepicker version. It generated some extra work to run new litepicker.
Right now it looks like that.

I would maybe limit the options to 7 to not make the ui look weird with whitespace under the calendar

I agree with Casper. I think this is a positive change, but this is too many options. I would remove Today, Last 7 Days, and Last Year. (Those seem like the least useful to me.)

I know it's not perfect. I'm not sure which to delete.
I can try to add this functionality without litepicker plugin.
Maybe add separete select next to date range input?

I would remove Today, Last 7 Days, and Last Year. (Those seem like the least useful to me.)

Remove those?

Done

Yesterday range is useless due to #129.
I replaced it with last 3 days.


Working with subdomains

I want my landing page to be at domain.com but after logging in, I want to the organization to be the subdomain, like so:
[orgName].domain.com
I cannot get PropelAuth to play nicely with this setup in localhost and keep on getting a white screen with a "failed to fetch" error.
I believe this is related to this issue but haven't been able to fix on Chrome:
https://docs.propelauth.com/overview/faq#i-logged-in-to-my-test-environment-but-my-frontend-doesnt-say-i-m-logged-in
I am also looking at supporting app.domain.com in localhost but I think this is the same issue.
Any advice or setup instructions for this?

We can definitely help. Usually, we set up custom domains as part of creating a production environment, and then you'd be able to redirect to domain.com and have [orgName].domain.com make requests successfully.
In the test environment, we primarily support localhost/vercel.app/workers.dev/ngrok/etc. We haven't yet built the UI flow for setting up a custom domain in the test environment, but it is something we can enable for you.
I just sent you an email asking for some more information and we'll get you set up!


bigger improvements from EPA feedback

First commit is scaffolding new intro pages

FYI Stef: _make_pdf.qmd currently requires you to list the order of individual files to build the pdf, so I was able to build GitHub files at the end of the Core Lessons without changing the online/web order.


Using 'clear' and 'reset' commands

The cursor disappears when using clear/reset commands from a terminal window until certain keys (e.g. backspace or arrow keys) are pressed or the terminal window is refocused.
Also, when using clear I can't seem to scroll back up. I don't think that's the expected behaviour.
Keep up with the good work! :smile:

I was able to reproduce:

reset not showing the cursor after clear.
clear clearing history rather than just clearing the screen.

I will investigate and fix this.

Fixed by v0.14.4. Please remember to close this thread if your issue has been resolved.

I don't think that this is completely resolved.
The problem with the missing cursor and the clearing of history are gone.
The clear command, however, still behaves differently from the system's terminal (at least in my system, not sure whether this can be different in other systems).
Specifically, using clear in the system's terminal doesn't output any new lines, meaning that scrolling up only scrolls "one line". In terminal-plus, multiple new lines are output.
I don't consider this a major issue, it's just different so I thought I'd mention it. If you don't consider this an issue then I'll close the thread. :smile:
If I didn't explain myself properly please do say so and I'll post a picture of what I mean.

I think I understand what you mean but a picture would be nice. Thanks.

System's terminal, after using clear and scrolling up:

Atom's terminal-plus, after using clear and scrolling up (I also resized the window by one line so that the last line is shown):

Noted. I will make adjustments for the next release.

I believe I have fixed it in the latest release. Please let me know what you think.

This is solved, as far as I'm concerned. :-)


Deliver doesn't upload ios metadata to the Apple Store

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

Hi,
We have a flutter app which builds 4 different envs: prod, integration, staging and dev.
At the moment I am trying to test the dev env to upload via fastlane the ios metadata to the Apple Store.
Unfortunately after many attempts, it says that the job has been executed successful but no images, icons or content on the Apple Store marketing page.
This is my folder structure:

Command executed

No Errors
Environment

🚫 fastlane environment 🚫
Stack

Key
Value

OS
11.2.3

Ruby
2.6.3

Bundler?
false

Git
git version 2.24.3 (Apple Git-128)

Installation Source
/usr/local/bin/fastlane

Host
macOS 11.2.3 (20D91)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
12.4

System Locale

Error

No Locale with UTF8 found 🚫

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.177.0
🚫 Update available

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

slack-notifier
2.3.2

atomos
0.1.3

CFPropertyList
2.3.6

claide
1.0.3

colored2
3.1.2

nanaimo
0.3.0

xcodeproj
1.19.0

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

unicode-display_width
1.7.0

terminal-table
1.8.0

plist
3.5.0

public_suffix
4.0.6

addressable
2.7.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

artifactory
3.0.15

babosa
1.0.4

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.78.1

ruby2_keywords
0.0.2

faraday
1.1.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

http-cookie
1.0.3

faraday-cookie_jar
0.0.7

faraday_middleware
1.0.0

fastimage
2.2.0

gh_inspector
1.1.3

json
2.1.0

mini_magick
4.11.0

naturally
2.2.0

rubyzip
2.3.0

security
0.1.3

xcpretty-travis-formatter
1.0.0

dotenv
2.7.6

simctl
1.6.8

jwt
2.2.2

uber
0.1.0

declarative
0.0.20

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mini_mime
1.0.2

multi_json
1.15.0

signet
0.14.0

memoist
0.16.2

os
1.1.1

googleauth
0.14.0

httpclient
2.8.3

google-api-client
0.38.0

google-cloud-env
1.4.0

google-cloud-errors
1.0.1

google-cloud-core
1.5.0

rake
12.3.2

digest-crc
0.6.2

google-cloud-storage
1.29.1

emoji_regex
3.2.1

jmespath
1.4.0

aws-partitions
1.402.0

aws-eventstream
1.1.0

aws-sigv4
1.2.2

aws-sdk-core
3.110.0

aws-sdk-kms
1.39.0

aws-sdk-s3
1.86.0

bundler
2.1.4

forwardable
1.2.0

logger
1.3.0

stringio
0.0.2

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

strscan
1.0.0

date
2.0.0

fileutils
1.1.0

etc
1.0.1

io-console
0.4.7

zlib
1.0.0

libxml-ruby
3.1.0

rexml
3.1.9

psych
3.1.0

mutex_m
0.1.0

webrick
1.4.2

generated on: 2021-04-19

This is my ios fastlane file:
lane :dev_applestore do
             MY_APP_ID = "xxx.app.dev"
             MY_PROFILE = "match AppStore xxx.app.dev"
             WORKSPACE_PATH = "Runner.xcworkspace"

             match(
                 app_identifier: MY_APP_ID,
                 type: "appstore",
                 readonly: true
             )

             settings_to_override = {
               :BUNDLE_IDENTIFIER => MY_APP_ID,
               :PROVISIONING_PROFILE_SPECIFIER => MY_PROFILE,
             }

             gym(
                 workspace: WORKSPACE_PATH,
                 scheme: "dev",
                 xcargs: settings_to_override,
                 export_method: "app-store",
                 export_options: {
                     provisioningProfiles: {
                         MY_APP_ID => MY_PROFILE
                     }
                 }
             )

             deliver(
                   app_identifier: MY_APP_ID,
                   force: true, # Skip HTMl report verification
                   skip_metadata: false,
                   skip_screenshots: false,
                   skip_binary_upload: true,
                   metadata_path: "./metadata/dev",
                   screenshots_path: "./screenshots",
                   app_icon<EMAIL_ADDRESS>                   copyright: "#{Time.now.year} XXX SARL"
              )

             upload_to_testflight(app_identifier: MY_APP_ID)
             upload_symbols_to_crashlytics
         end

This is the pipeline logs:
[19:05:14]: Successfully exported and signed the ipa file:
[19:05:14]: /Users/[hidden]/src/flutter-mob-app/ios/Runner.ipa
[19:05:14]: Using deprecated option: '--app_icon' (Removed after the migration to the new App Store Connect API in June 2020)
[19:05:14]: ---------------------
[19:05:14]: --- Step: deliver ---
[19:05:14]: ---------------------
[19:05:14]: Successfully loaded '/Users/[hidden]/src/flutter-mob-app/ios/fastlane/Deliverfile' 📄
+-----------------------+-----------------------+
| Detected Values from './fastlane/Deliverfile' |
+-----------------------+-----------------------+
| languages             | ["en-US"]             |
+-----------------------+-----------------------+
[19:05:14]: Login to App Store Connect ([hidden])
[19:05:16]: Login successful
+--------------------------------------+------------------------+
|                    deliver 2.180.1 Summary                    |
+--------------------------------------+------------------------+
| app_identifier                       | XXX.app.dev         |
| force                                | true                   |
| skip_metadata                        | false                  |
| skip_screenshots                     | false                  |
| skip_binary_upload                   | true                   |
| metadata_path                        | ./metadata/dev         |
| screenshots_path                     | ./screenshots          |
| app_icon                             |<EMAIL_ADDRESS>|
| copyright                            | 2021 XXX SARL          |
| app_version                          | 2.4.0                  |
| username                             | [hidden]                  |
| ipa                                  | Runner.ipa             |
| platform                             | ios                    |
| edit_live                            | false                  |
| use_live_version                     | false                  |
| skip_app_version_update              | false                  |
| overwrite_screenshots                | false                  |
| submit_for_review                    | false                  |
| reject_if_possible                   | false                  |
| phased_release                       | false                  |
| reset_ratings                        | false                  |
| team_id                              | [hidden]              |
| dev_portal_team_id                   | [hidden]                  |
| run_precheck_before_submit           | true                   |
| precheck_default_rule_level          | warn                   |
| languages                            | ["en-US"]              |
| ignore_language_directory_validation | false                  |
| precheck_include_in_app_purchases    | true                   |
+--------------------------------------+------------------------+
[19:05:19]: Making sure the latest version on App Store Connect matches '2.4.0'...
[19:05:20]: '2.4.0' is the latest version on App Store Connect
[19:05:22]: Will begin uploading metadata for '2.4.0' on App Store Connect
[19:05:22]: Release type will not be set because neither `automatic_release` nor `auto_release_date` were provided. Please explicitly set one of these options if you need a release type set
[19:05:22]: Uploading metadata to App Store Connect for version
[19:05:30]: Will begin uploading snapshots for '2.4.0' on App Store Connect
[19:05:30]: Starting with the upload of screenshots...
[19:05:31]: Waiting for all the screenshots processed...
[19:05:31]: Successfully uploaded all screenshots
[19:05:31]: Sorting screenshots uploaded...
[19:05:31]: Successfully uploaded screenshots to App Store Connect

This is the Deliverfile:
# The Deliverfile allows you to store various App Store Connect metadata
# For more information, check out the docs
# https://docs.fastlane.tools/actions/deliver/

languages(['en-US'])

By the way, the Android version of fastlane works like a charm and I am able to upload everything on each environment.
Any idea?
Thanks
Matt

Anyone with this kind of issue or suggest if something is wrong in the code I'm using? I've run out of options to try. Help is much appreciated. Thank you

Update:
I've discovered that by using the custom URL for the metadata: metadata_path: "./metadata/dev", doesn't work.
What I did was to move all the files outside the /dev/ and put them directly into /metadata/

I've found another issue logged but an engineer which is exactly the same as the one I have: https://github.com/fastlane/fastlane/issues/16555
Can anyone look into it?

@devolab I have no idea what you want from me.


Update gradle version

Any reason to use an non-stable version?

2.8 is supposedly faster than 2.7 and didn't cause any issues in my personal projects so far. We could change it to 2.7 stable, too. That's still better than 2.2.

You can now update this to 2.8, I guess.

done

Merged manually: https://github.com/JetBrains/anko/commit/2a67399a9289aa77ecf1df45341061c80fd1c7da. Thanks!


[Feature] Create a github action for miranum-cli

[x] Description created
[ ] Reviewed by peer: @lmoesle
[ ] Prioritised

Description
We want to introduce GitHub actions to make deployments smoother (of forms, process models and other assets to the process engine).
Sub-Tasks
### Tasks
- [ ] Create a  Github Action for the cli api
- [ ] Test them add and them to the documentation so people are aware of how to benefit from this

I am not entirely sure what we need to do here and about the current state of CI/CD topics for miranum. Once again it would be super cool if you @lmoesle could drive this forward. Thank you!

In a first approach we should implement the github action in a seperate github repository. It may be misleading for users of the action to get redirected to our monorepo.
And I don't know how well the github action integrates into our monorepo.


Fix EMV field repeatable

Codecov Report

Merging #3 (028cfe3) into master (4c19df9) will decrease coverage by 23.66%.
The diff coverage is 50.84%.

@@             Coverage Diff              @@
##            master       #3       +/-   ##
============================================
- Coverage   100.00%   76.33%   -23.67%
============================================
  Files            3        3
  Lines          133      131        -2
============================================
- Hits           133      100       -33
- Misses           0       31       +31

Impacted Files
Coverage Δ

spec/qrcode_pix_ruby_spec.rb
51.66% <50.00%> (-48.34%)
:arrow_down:

lib/qrcode_pix_ruby/payload.rb
97.05% <100.00%> (-2.95%)
:arrow_down:

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 4c19df9...028cfe3. Read the comment docs.


chore: various minor infra improvements

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


doc: autopts: Remove duplication of getting started guide

and highlight only the differences in setup instead.

@mbolivar-nordic, would be ok?

@mbolivar-nordic, would be ok?

I didn't review this in time to request changes, so I sent a fix instead: https://github.com/zephyrproject-rtos/zephyr/pull/39377/


Error "Unable to activate Windows Store app" when Directory.Build.targets changes assembly name.Bug title

Describe the bug
I define a prefix for assemblies in Directory.Build.props:
<AssemblyPrefix Condition="$(AssemblyPrefix) == ''">MorozCo</AssemblyPrefix>
<AddPrefixToAssembly Condition="$(AddPrefixToAssembly) == ''">true</AddPrefixToAssembly>
<AddPrefixToNamespace Condition="$(AddPrefixToNamespace) == ''">true</AddPrefixToNamespace>

And set names in Directory.Build.targets:
<PropertyGroup>
  <AssemblyName Condition="$(AssemblyName) == ''">$(MSBuildProjectName)</AssemblyName>
  <AssemblyName Condition="$(AddPrefixToAssembly) == 'true' and $(AssemblyPrefix) != '' and !$(AssemblyName.StartsWith(AssemblyPrefix))">$(AssemblyPrefix).$(AssemblyName)</AssemblyName>
</PropertyGroup>

<PropertyGroup>
  <RootNamespace Condition="$(RootNamespace) == ''">$(AssemblyName.Replace(' ', '_'))</RootNamespace>
  <_RootNamespacePrefix>$(AssemblyPrefix.Replace(' ', '_'))</_RootNamespacePrefix>
  <RootNamespace Condition="$(AddPrefixToNamespace) == 'true' and $(_RootNamespacePrefix) != '' and !$(RootNamespace.StartsWith(_RootNamespacePrefix))">$(_RootNamespacePrefix).$(RootNamespace)</RootNamespace>
</PropertyGroup>

If I do not set <AddPrefixToAssembly>false</AddPrefixToAssembly> in my MAUI project, I get this error:

Unable to activate Windows Store app 'com.companyname.myapp_9zz4h110yvjzm!App'. The activation request failed with error 'The system cannot find the file specified'.

Steps to reproduce the bug
See this repo
https://github.com/voroninp/BadWindows
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Packaging type
Unpackaged
Windows version
No response
IDE
Visual Studio 2022-preview
Additional context
Advised here to create issue.

We derive a number of properties from the value of AssemblyName. Because stuff in Directory.Build.targets runs after basically everything else this simply isn't a scenario that can be reasonably supported. My recommendation would be that you set AssemblyPrefix in Directory.Build.props and then in each project file include the logic for whether or not to include the prefix. I know this isn't as elegant as you would like but it's just how MSBuild works.

Are not SDK targets run the last?

Windows App SDK is a Nuget package, not a .NET SDK, so its .targets runs before Directory.Build.targets.


Binding enum failed

Issue
BindingSet.Bind().For(v=>v.enumType).To(vm=>vm.enumType) got error.
How to reproduce
Step 1: Declare a public enum type, and a public enum property, for both view and view model class. Property in view model needs to follow the Set<> function inherited from ViewModelBase class.
Step 2: In View class, create a bindingSet, and bind the view's enum property onto viewModel's enum property.
Step 3: In controller class, set data context.
Step 4: Run the game
Reasons
In Binding.cs, the enum type was cast as Int32.

Thank you for the report, it has been fixed！


missing documentation: testing of shell completion

I currently migrate an application to click 8.x and have to migrate all the completion functions as well as the test code for shell completion.
My working code for click 7.x shell completion testing is based on @davidism answer on this post https://github.com/pallets/click/issues/1453 2 years ago and worked fine.
However, with click 8.x, there is no get_choices anymore and the documentation at
https://click.palletsprojects.com/en/8.1.x/testing/ does not mention shell completion testing.
Can you give me a new example or a link please?
This time I will prepare an MR for https://github.com/pallets/click/blob/8.1.x/docs/testing.rst :-)

I mimicked the completion tests in Click itself to make up this kind of testing for  annif CLI application, basically just the following:
from click.shell_completion import ShellComplete

def _get_completions(cli, args, incomplete):
    comp = ShellComplete(cli, {}, cli.name, "_ANNIF_COMPLETE")
    return comp.get_completions(args, incomplete)

def _get_words(cli, args, incomplete):
    return [c.value for c in _get_completions(cli, args, incomplete)]

def test_completion_base_all_options():
    completions = _get_words(annif.cli.cli, [""], "--")
    assert completions == [
        "--env-file",
        "--app",
        "--debug",
        "--no-debug",
        "--version",
        "--help",
    ]

def test_completion_base_version_option():
    completions = _get_words(annif.cli.cli, [""], "--ver")
    assert completions == [
        "--version",
    ]

@seebi or @juhoinkinen Any interest in turning this into a PR for the documentation fix?


shields.io is down with HTTP 503

Are you experiencing an issue with...
shields.io
🐞 Description
The website shields.io and image URLs for img.shields.io are both down. They both provide the same generic Heroku's application error and HTTP 503
🔗 Link to the badge
No response
💡 Possible Solution
Check logs at Heroku to identify problem

similar issue
https://shields.io/category/coverage Shows this:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, [check your logs for details](https://devcenter.heroku.com/articles/logging#view-logs). You can do this from the Heroku CLI with the command
heroku logs --tail

Exactly the same message I got when accessing the main website and the
badge URLs
On Sat, Feb 12, 2022, 10:47 AM localhost @.***> wrote:

similar issue
https://shields.io/category/coverage Shows this:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
—
Reply to this email directly, view it on GitHub
https://github.com/badges/shields/issues/7607#issuecomment-1037263670,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC4LLNW4FSDZXRRUD72SZWLU2Z6HXANCNFSM5OHAYCKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

now resolved

Thank you! Are there insights into what happened?


[BUG] Add multilingual support to color picker and settings page

Hi,
The strings that are contained in the files below should be extracted to translations files

Setting view
Color Picker view

Thanks!!

@RodrigoTomeES Thanks for the issue! We've added multi-language support for ColorPicker, settings, etc. in 0.0.9! The new features are now supporting multilingual as well!


Couldn't find an installed template that matches the input, searching online for one that does...

$ dn new grpc -o GrpcGreeter
Getting ready...
Couldn't find an installed template that matches the input, searching online for one that does...
Matches from template source: NuGet
-----------------------------------
Template name "Basic client/server solution for gRPC on RaspberryPi" (gRPCpi) from author "Erik Taylor" in pack grpcpi
    To use this template, run the following command and try again:
        dotnet new -i grpcpi::1.0.2

$ dn --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview9-014004
 Commit:    8e7ef240a5

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  19.04
 OS Platform: Linux
 RID:         ubuntu.19.04-x64
 Base Path:   /usr/share/dotnet-3.0/sdk/3.0.100-preview9-014004/

Host (useful for support):
  Version: 3.0.0-preview9-19423-09
  Commit:  2be172345a

.NET Core SDKs installed:
  3.0.100-preview9-014004 [/usr/share/dotnet-3.0/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [/usr/share/dotnet-3.0/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0-preview9-19423-09 [/usr/share/dotnet-3.0/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

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

ID: 1d298a6c-8ddc-dbc8-d219-0fa7138442c2
Version Independent ID: b96be346-958a-cfcd-d80a-c352d64223e8
Content: Create a .NET Core gRPC client and server in ASP.NET Core
Content Source: aspnetcore/tutorials/grpc/grpc-start.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @JunTaoLuo
Microsoft Alias: johluo

@JamesNK what's the right repo to open this issue?

aspnet/aspnetcore

If you think this is a product bug, create the simplest possible sample that reproduces the problem and open an issue at GitHub ASP.NET Core


Add theming of Streaming Modal

Idk abt the widht of the box though.
Would be cool if it were as big as the bar here

hey @HerXayah thanks for contributing, i included your changes in the rewrite of the theme in 0b3fe30


is it OK that miner fees are currently opt-out in v1 transactions

We do validate that when miner fees are defined, that they are equal to or higher than the minimum value.  We also check for a block if the sum of all fees are as expected. However the expected sum really just takes into account the fees that are defined, meaning if you don't define any fee, it will just happily accept this.
In order to reproduce this, try to create a custom transaction using a script or CLI, sign it, and send it, you'll see it will accept a transaction without having to sign it. (Note that when using CLI you will have to modify the created transaction a bit, as our code for creating a coin transaction does validate, but that is not the official validation, so as long as you avoid that, you can happily sign and push a transaction without paid miner fees into the blockchain.
That this bug (feature?:) has remained undetected for so long is surprising to say the least. Until now this hasn't been an issue as everybody is using one of our clients (JSX/CLI/Mobile) which all define transactions like good boys.
Now that this bug (feature?:) is detected however, one might actually wonder if this "opt-out" experience is really so bad. Normally these fees are to help incentivize the block creators to:

include the transaction in a block
if too many transactions are available to include, take the highest paid ones

In our case however the transaction fees go for 100% to the TF Foundation, and thus I wonder if it is such a bad idea to keep it opt-out.
Either way, this became an open question out of the blue that we should fix ASAP.

@GlenDC no, it is not: https://github.com/threefoldtech/rivine/blob/master/doc/new_chain/transactionfees.md


[3] Replace baisc auth sign in with OpenID connect

While we wait to be given access to DfE Sign in we can bridge the technical gap closer from basic auth and to open-id connect - the same authentication mechanism. This pull request removes the second layer of basic auth provisioned for hiring staff but continues to wrap the whole application in basic auth when not in production.
Being able to add and remove permissions is yet to be resolved and will come in the next piece of work: https://trello.com/c/gooROCIO
We still have a easy way to override the school urn for a logged in user to facilitate testing until we have better permission management in place. A default testing user has been created and pinned to Slack.

Landing screen

Click sign in and get taken to Microsoft

Provide credentials and arrive back

Sign out

Microsoft Azure can be styled later following this guide: https://docs.microsoft.com/en-us/azure/active-directory/customize-branding

 enable schools to log out

 Spin up DfE sign-on

Branding has been set up on the 30 day free trial that should more than cover us in the transition period.


[Bug]: Memory leak when switching/initializing agents, probably due to Browser

Is there an existing issue for the same bug?

[X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
[X] I have checked the existing issues.

Describe the bug
If you open the settings modal repeatedly, and switch your settings up to cause a re-init of the agent, the server slowly consumes more and more memory
I had to do this ~50 times before my machine became unresponsive.
When I finally quit, I get a bunch of logs like this:
11:47:33 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
11:47:33 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
11:47:33 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
11:47:33 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
11:47:34 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
INFO:     Shutting down
11:47:34 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.
INFO:     Waiting for background tasks to complete. (CTRL+C to force quit)
11:47:34 - opendevin:INFO: browser_env.py:69 - Browser env process interrupted by user.

Current Version
On main

commit ce7c7eaae45ce18a13081e63d013a7123bbe95d3 (HEAD -> main, origin/main, origin/HEAD)
Author: Robert Brennan<EMAIL_ADDRESS>Date:   Thu May 2 11:44:54 2024 -0400

    Refactor actions and observations (#1479)

### Installation and Configuration

```bash
Running in dev mode

Model and Agent
Various models and agents as I switched around
Reproduction Steps

Fire up the UI
Open settings modal
Change something and save
Repeat ~50 times
Your machine will grind to a halt

Logs, Errors, Screenshots, and Additional Context
No response

@frankxu2004 any immediate thoughts here? I'm not 100% sure it's the browser, but it seems like the most likely culprit

Most likely the browser env processes are not closed. Would you mind ps -aux | grep playwright when you have a lot of initialization of agents? I will take a look later today.

Can reproduce. Every time it re-initializes the agent, a new AgentController is initialized, a new BrowserEnv is created, and thus the underlying browser process. The old AgentController instances are not GCed as their sid still seem valid. I am not 100% sure but I wonder what happened to the previous sessions?


feat: added support for WeChat

#28
quick points:

instructions to wechat sandbox signup
main readme adapted as well
i've followed the whatsup's approach on testing

@nikoksr Is something missed/anything else needed for this PR ?

@nikoksr build-passing commit pushed; thank you for you kind words; looking forward for future contributions as well