About hot replacement of Channel

Please see: https://gist.github.com/hyper-carrot/85d082e83b35122ca53e .
I run go run chan_hotrepl_go1.4.go under go1.4, it (one goroutine) can receive the elements from the getChan()'s result after chan1 reset by another goroutine. The output like:
Begin to receive elements from chan1...
Send element 0...
Received an element: 0
Send element 1...
Received an element: 1
Send element 2...
Received an element: 2
Reset chan1...
Send element 3...
Received an element: 3
Send element 4...
Received an element: 4
Send element 5...
Received an element: 5
Reset chan1...
Send element 6...
Received an element: 6

But, It is not the case in go1.5. In go1.5, the goroutine can not receive the element after chan1 reset. The output like:
Begin to receive elements from chan1...
Send element 0...
Received an element: 0
Send element 1...
Received an element: 1
Send element 2...
Received an element: 2
Reset chan1...
Send element 3...
Send element 4...
Send element 5...
Reset chan1...
Send element 6...
Send element 7...
Send element 8...

I put the reset operation into a independent goroutine, like chan_hotrepl_go1.5.go. Its behavior is normal both in go1.4 and go1.5.
I want to know the cause of these appearances. Is this relevant to the compiler optimizations in the different Golang versions?

All, I know that it will certainly has the problem of race condition. But, I think that it has nothing to do with race condition, or rather, it's not just about race condition.

@hyper-carrot: It's too race to have it working like that. You could try rewriting it a bit instead: https://play.golang.org/p/MLrcTEkcHx (it's timing out on playground due to GOMAXPROCS=1, you may want to try it out locally).

@rjeczalik it's Forbidden.

@hyper-carrot
package main

import (
	"fmt"
	"time"
)

func consumer(newC chan chan int) {
	var jobs chan int
	for {
		select {
		case c, ok := <-newC:
			if !ok {
				return
			}
			jobs = c
			fmt.Println("new job pipeline")
		case job := <-jobs:
			fmt.Println("executing job:", job)
		}
	}
}

func producer(newC chan chan int) {
	var i int
	var c chan int
	for {
		if i%3 == 0 {
			c = make(chan int)
			newC <- c
		}
		c <- i
		i = (i + 1) % 3
	}
}

func main() {
	newC := make(chan chan int)
	go producer(newC)
	go consumer(newC)
	time.Sleep(5 * time.Second)
}

The default GOMAXPROCS changed between 1.4 when it was 1 and 1.5 which is
now NumCPU.
Races make the program undefined so should be avoided.
On Thu, Oct 8, 2015 at 7:18 AM, Rafal Jeczalik<EMAIL_ADDRESS>wrote:

@hyper-carrot https://github.com/hyper-carrot
package main
import (
"fmt"
"time"
)
func consumer(newC chan chan int) {
var jobs chan int
for {
select {
case c, ok := <-newC:
if !ok {
return
}
jobs = c
fmt.Println("new job pipeline")
case job := <-jobs:
fmt.Println("executing job:", job)
}
}
}
func producer(newC chan chan int) {
var i int
var c chan int
for {
if i%3 == 0 {
c = make(chan int)
newC <- c
}
c <- i
i = (i + 1) % 3
}
}
func main() {
newC := make(chan chan int)
go producer(newC)
go consumer(newC)
time.Sleep(5 * time.Second)
}
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/12877#issuecomment-146507707.

@RLH Thank you, but I known the different of GOMAXPROCS between go1.4 and go1.5. I had invoked runtime.GOMAXPROCS() at the beginning, but it didn't resolve the problem. I known the problem about race condition. In fact, I mean: Why are they (go1.4 and go1.5)  so different in this case?

@rjeczalik Thanks, 'chan chan' is a great solution, but it isn't the answer I want. The topic in golang-nuts: https://groups.google.com/forum/m/#!topic/golang-nuts/ucv_stf8uNY

The behavior of racy programs is undefined, so there could
be arbitrary changes in their behavior between Go releases
(they could even change between minor releases).

@minux Yes, I want to know the change. But I think it's not easy for exposition. So I closed current issue. It's better to read the runtime code of Golang.

do I bisect and see when does the behavior change.

@minux :+1:


Always getting "100% of new lines are covered"

Thanks for writing this interesting GH action script. I was experimenting with it in a sandbox repo. The line and branch coverage appears to be working as intended but the new line coverage is always showing 100%.
I probably did something wrong in the configuration that I wasn't able to immediately notice. I wonder if you can lend an eye on this?
This is a pull request where I deliberately introduced code that's not covered by tests. https://github.com/acwl-aiq/lambda_lock_poc/pull/7
Additionally, is there a config I can use to make decreases in line/branch coverage to show red instead of blue? Thanks!

Hm, strange. I don't have an idea right now, I'll need to give it a look later. No promises, but I'll see what I can do.

That's fine. This is not urgent

I have copied the repo and looked at the logs. It seems that the coverage module, when using
source =
        lib
        lambda_lock_poc
        construct

in the .coveragerc file only writes relative paths regarding the sources into the XML file and the diff-cover module then can't handle this and doesn't find the files. With only new lines without coverage information the module outputs 100% coverage. (It might be useful to write in the PR-comment in such a case that no lines with coverage information were created instead of 100%. I could implement that, if you want @ewjoachim ).
I'm not quite sure if there's a bug in there somewhere or if this is all expected behavior, but one workaround I've found is to take the source information out of the .coveragerc file and instead write into the workflow file which folders to test. So instead of this line:
coverage run --rcfile=.coveragerc -m pytest
this one:
coverage run --rcfile=.coveragerc -m pytest ./lib/ ./lambda_lock_poc/ ./tests/
I tested this with a copy and it worked for me so far. Would this be a satisfactory solution?
Regarding the red arrow, there is no setting. However, I could implement it so that you can specify which emojis should be displayed when the coverage increases/decreases. (Of course, only if @ewjoachim thinks it makes sense to implement this feature).

Starting with the easy answer:

Regarding the red arrow, there is no setting. However, I could implement it so that you can specify which emojis should be displayed when the coverage increases/decreases. (Of course, only if @ewjoachim thinks it makes sense to implement this feature).

I'd say the way I'd be most comfortable with is to take the idea of overriding the template a bit further (with COMMENT_TEMPLATE but it would be nice if the base template could act as a real "base" template, with multiple levels of Jinja blocks. This way, we could easily override the template and just replace a single block.)
And I'd be happy to review a PR doing that. Please include the proper documentation so that people know how to use it. Also, if you do, please open a separate issue/PR :) Thanks ❤  (< that heart is red 😛 )
(oh and also, just so that it's said even if it's useless: the fact that the arrow is blue is a choice by either GitHub or your OS, but it could very well be that on someone's setup, the same arrow is green, yellow or purple. The actual color is not specified in the official Unicode description , as far as I know).

Now regarding the real issue... The aim would be that people can easily take the most out of this tool, so we need to make it explicit when it's misused, and/or improve documentation to make sure people manage to do it. (In all honesty... I'm wondering if a better "diff-cover" lib, even one we'd do ourselves, would be easier.)
I'm accepting any PR going in that direction, and if you start something, I'll try to do my best to find some time to help you see it merged.

you can already replace the template with COMMENT_TEMPLATE

I had actually assumed that this feature was still a work in progress. When I went through the code to see how it worked, I noticed that while it is defined as an input in action.yml, it is then not used anywhere (it is not even passed as an environment variable to the Docker image).

it would be nice if the base template could act as a real "base" template, with multiple levels of Jinja blocks. This way, we could easily override the template and just replace a single block.)

Just to make sure I understand this correctly: the idea would be to split the template into multiple sections (for example: title, comparison to previous coverage, new lines) and then allow the user to specify their own template for those individual sections?

The aim would be that people can easily take the most out of this tool, so we need to make it explicit when it's misused, and/or improve documentation to make sure people manage to do it. (In all honesty... I'm wondering if a better "diff-cover" lib, even one we'd do ourselves, would be easier.)

Yes, the specific problem at this point is that it's not really clear to me where the problem lies with this explicit issue. I've never worked with diff-coverage before and I'm not sure if it works the way it's supposed to in this case and if it could be configured differently somehow. I'm also not sure how easy it is to write a custom module that compares the coverage.

I'm accepting any PR going in that direction, and if you start something, I'll try to do my best to find some time to help you see it merged.

If I have an idea how something could be improved, I open an issue/PR, thanks :)

it is then not used anywhere

Oops... You're probably right. It was a feature in v1 and I probably forgot to port it in v2. That said:

Here, read from the config instead of calling template.read_template_file()
https://github.com/ewjoachim/python-coverage-comment-action/blob/v2/coverage_comment/settings.py#L21: Add a settings value reading COMMENT_TEMPLATE and a clean_comment_template() method that, when empty, calls  template.read_template_file()

I believe it should be enough to load a custom template :)

Just to make sure I understand this correctly: the idea would be to split the template into multiple sections (for example: title, comparison to previous coverage, new lines) and then allow the user to specify their own template for those individual sections?

Yes, I don't know if you're familiar with how jinja {% block x %}s and {% extend y %} work, but this means you can have a single template with multiple blocks defined, and then users can either define a new base template or declare they extend our base and just define the {% block %} they want to override.
If we do this, let's make sure we're using a SandboxedEnvironment because I'm not sure we can 100% trust the template in this case.

I've never worked with diff-coverage before and I'm not sure if it works the way it's supposed to in this case and if it could be configured differently somehow

I'm not 100% sure either. From my understanding, diff-coverage reads coverage data, computes the diff from the base branch, and counts how many lines added in the diff appear in the coverage. So it doesn't compute a diff of the coverage (it won't tell you that you went from x% to y%), but it computes coverage on the added lines in the diff (it will tell you that x% of the lines you added are covered) and more specifically, it looks at all the lines that appear both in the coverage report (either as covered or not covered) and the lines added in the diff (this way, it doesn't report on README.md as being "not covered" . So from my understanding, it doesn't need specifying a module or what. As said, I didn't spend a lot of time investigating (and I'm sorry about that)

Add a settings value reading COMMENT_TEMPLATE and a clean_comment_template() method that, when empty, calls  template.read_template_file()

Yes, I think the implementation of that should be pretty straightforward. I'll be happy to implement it and then add a PR in the next few days.

Yes, I don't know if you're familiar with how jinja {% block x %}s and {% extend y %} work,

I've worked with Jinja before, but I'm not extremly familiar with it yet. The concept itself seems relatively clear to me and I will have a closer look at it. Thank you very much for the links!

I'm not 100% sure either. From my understanding, diff-coverage reads coverage data, [...]

Yes, that's how I understand it too

So from my understanding, it doesn't need specifying a module or what.

I rather thought that it could maybe be somehow possible to specify additional sources for the XML file, for which the relative paths are then used or something like that. The problem in the above case is that it doesn't find the files because the paths for the files in the XML file are relative to the folders specified as sources in .coveragerc and not relative to the folder from which the command was executed. This could also be a bug in either coverage.py or diff-coverage, but I can't tell because I just don't know how they are supposed to work.

Closing this since the ambiguous wording mentioned has been fixed in #95.
If you still have problems, feel free to reopen @acwl-aiq


Feature Request: Hide NPC names in chat

A way to hide/mask/change NPC names from Player view of chat when:

an NPC checks for any cover
When a PC checks their sightline to NPC

Something from "Vampire checks their sightline to Zanna" --> "Creature checks their sightline to Zanna"; or completely removed from PC view

Reasonable request. Will explore solutions for 1.9.0

Reasonable request. Will explore solutions for 1.9.0

Implemented in 1.8.8

Implemented in 1.8.8


Query is not working when changing regional settings to different time format

Hello,
I have issues with query function after changing regional settings to different time format. It works perfectly when format is set to MM/dd/yyyy, but when i change date format to dd-MMM-yy it doesn't work and pyremedy raising error message Message 1590: Format of time value is not recognized, even if i format qualification string to MM/dd/yyyy.
Please any suggestions why this is happening, and what might be a solution ?
Thanks for any kind of help,
Michael

I'm not sure where you're changing the time format but I don't control any aspect of entering time in PyRemedy.  The error you're receiving is coming from Remedy itself.  I suggest trying the query in the BMC Remedy UI first.

Hi Gimian,
I´ve already found out why this issue was occurring, basically i adjusted
pyRemedy for working on Win machine, and it was issue with windows local
time/zone settings. Anyway you did a really great job with pyRemedy, it
helped us a lot with automation of the Remedy. Really appreciate that.
Have a nice day and happy new year ,
Michael
2016-12-30 16:44 GMT+01:00 Fotis Gimian<EMAIL_ADDRESS>
I'm not sure where you're changing the time format but I don't control any
aspect of entering time in PyRemedy. The error you're receiving is coming
from Remedy itself. I suggest trying the query in the BMC Remedy UI first.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fgimian/pyremedy/issues/4#issuecomment-269785835, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AREZqJpXzJyrxyw5bEysREKjSmdnxdaaks5rNSbFgaJpZM4I5ior
.

Thanks Michael 😄


gen() iterator should support resumable paged queries/scans

I’d like to be able to provide an API to our users that is backed by a query that returns a large number of results. We’d like to be able to retrieve and store a cursor from a result set (query or scan), then create a new result set that picks up where the last one left off, possibly minutes later. I know that dynamo3 supports this internally, but it's not exported via flywheel yet.
Steve replied via email:
I think you'd have to have a new terminator on the query (like gen(), all()). I think you'd need page() to fetch a single page from DynamoDB so that you have some knowledge of where the database query left off. The default gen() implementation just provides a straight-up iterator that handles it all transparently. We could make page() return an object that extends list and has a 'cursor' attribute. Then you make the query terminators also take 'cursor' as a keyword argument, pass that through to dynamo3 and it should just work. I'll have to make a couple of changes in dynamo3 to support fetching pages instead of just iterators, but that should be pretty easy.

@stevearc This sounds good. I like that gen() would be implemented in terms of page(). Hopefully page size would be configurable as well in the first call.

I ended up going about it in a slightly different way than initially planned, but it's pretty similar.
You can see an example of what the flow would look like in this test case
You should be able to configure the query behavior to do what you want with the Limit class. It's in dynamo3, but it's also imported in flywheel so you can import it directly from there.
Released flywheel 0.4.6. Let me know if this works for you!

I ran some tests on this code, and it seems to be basically working. I found some issues with the current approach I’m not sure how to handle.

Getting the primary key for an index

Your test code shows how to use pk_dict_ to get the primary key from the last item in a result set in order to restart the scan at that point. However, for a query on an index, it looks like I need to specify all the keys (and includes) from that index. How do I get the equivalent of pk_dict_ for an index?

Query/scan terminates late

I’m running a query of an index with 4 matching items, with a Limit(scan_limit=2, strict=True). Debug log shows that each query is submitted properly and the results are what I expect, but the LastEvaluatedKey in the response for the 2nd query is non-null. (It is the last item in that result, item #4). According to the docs, it should be null instead when you hit the end of the results.
Sequence:

Query(app_id=‘x’, ExclusiveStartKey=None).limit(2) -> two Items, last_evaluated_key=items[1]
Query(app_id=‘x’, ExclusiveStartKey=items[1]).limit(2) -> two Items, last_evaluated_key=items[3] **
Query(app_id=‘x’, last_evaluated_key=items[3]).limit(2) -> no Items, no last_evaluated_key

** I expect LastEvaluatedKey to be null here
If I continue with the query, the 3rd query gets a response of 0 items, so my code terminates then. But it would be nice not to have an extra round trip each time just to find there are no more results. I’m not sure if this is a DDB issue or Flywheel.
Here’s my rough workaround:
last_evaluated_key = None
while True:
        # This calls .filter().limit().all() on the index
        versions = app.get_items(engine, last_evaluated_key)
        for x in versions:
            print x.id

        # Catch partial or no results = done
        if len(versions) < PAGE_SIZE:
            break

        # Get primary key for index query to resume
        dump = x.ddb_dump_()
        last_evaluated_key = {'id': dump['id'], 'oid': dump['oid'], 'date': dump['date']}

I don’t quite understand item_limit vs. scan_limit

I assume item_limit is when you want a specific number of items and you don’t care how many per Query/Scan operation, nor do you want to handle pagination. In the scan_limit case, you want to control the number of items fetched. Is that right?
Thanks!

You should be able to just pass in the dict that has the hash key and optional range key of that particular index. I'll find a place to add a convenient method to do that for you.

This seems to be a DynamoDB behavior. When you pass in a Limit and it happens to hit the limit right at the final item, it will return a LastEvaluatedKey.
¯\_(ツ)_/¯

Yeah, it's not as clear as it could be. scan_limit is passed in directly to DynamoDB as the Limit parameter. A careful reading of the docs reveals that Limit doesn't do what you would expect, nor probably what you want most of the time. It sets a hard limit on the items scanned, which does not mean it will be the number of items returned. If you don't have any scan filters then it behaves as expected. If you have any scan filters it's possible for the query/scan to return no results even if some exist in the table, because Dynamo will scan up to the Limit and then return whatever it found.

This is why I added item_limit. If you pass in an item_limit dynamo3 will continue to query DynamoDB until either the item_limit is reached OR there are no more results in the DB. min_scan_limit is there for the case when you're fetching a small item_limit (say, 1). If you set the Limit to just be 1, you may have to do many many queries to finally retrieve a result. min_scan_limit is there to make sure you're always scanning a minimum amount of items. Since your results only come back in pages, the total results may exceed the item_limit (ex. you only need 1 more, you make another query and get back 5 results). By default it will return all of the results, but you can pass in strict=True to chop off the extras.
I hope this clears up some of the confusion. I still think item_limit isn't a great name, so if you have suggestions for a better one please let me know. Aaaaand I'll look for somewhere to put a method that will construct primary keys for indexes.

I actually had to pass in an ExclusiveStartKey comprised of 3 fields in the case of an includes index that had a hash key, range key, and one other included field. That surprised me since I thought it would just need the hash/range key for the index. Including anything less than those 3 fields gives this exception:
  File "bluesteel/models.py", line 347, in <module>
    main()
  File "bluesteel/models.py", line 345, in main
    last_key = {'oid': x.oid, 'date': x.ddb_dump_()['date']}
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/flywheel/query.py", line 79, in gen
    for result in results:
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/six.py", line 558, in next
    return type(self).__next__(self)
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/result.py", line 254, in __next__
    return six.next(self.iterator)
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/result.py", line 283, in fetch
    data = self.connection.call(*self.args, **self.kwargs)
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/connection.py", line 230, in call
    exc.re_raise()
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/exception.py", line 22, in re_raise
    six.reraise(type(self), self, self.exc_info[2])
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/connection.py", line 220, in call
    data = op(**kwargs)
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/botocore/client.py", line 310, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/botocore/client.py", line 396, in _make_api_call
    raise ClientError(parsed_response, operation_name)
dynamo3.exception.DynamoDBError: ValidationException: Exclusive Start Key must have same size as table's key schema
Args: {
 'ExclusiveStartKey': {'date': {'N': u'1450915200.000000'},
                       'oid': {'S': u'av-J4DFNhwnbDf'}},
 ...

Ignore the lazy use of ddb_dump_() as this was just prototype code.
This index was defined as:
    __metadata__ = {
        'global_indexes': [
            GlobalIndex.include('appversions-for-app', 'app_id', 'date',
                includes=['oid']),
        ],
    }

Good explanation on the various limits. That should definitely go in the docs. Maybe call it desired_page_size or something?

I may not be reading this correctly, but from the example you gave it looks like you were passing in date and old, when you needed to pass in app_id and date. Have you tried those two and was the result the same? I tried it on a global index locally and it seemed to work fine.

After a fantastic test case by Nate and some digging, it appears that the ExclusiveStartKey for an index query (global and local) needs to contain both the primary key of the index and the primary key of the table. This isn't documented anywhere I could find in the Dynamo docs because they just say "use the thing we give you as LastEvaluatedKey" and assume that you won't be constructing it yourself.
I'll account for that in the method I'm making for grabbing the primary key from an index and it should Just Work™

Very nice, thanks for tracking this down.

Okay, I pushed out version 0.4.7 which has the index_pk_dict_() method on the model, and index_pk_dict() on the metadata object. See if that works for you.

Sorry, I’m getting a crash when using an index that has a datetime as part of the key. The key looks like this coming back from index_pk_dict() ok:
{'date': datetime.datetime(2015, 12, 20, 0, 0, tzinfo=<flywheel.fields.types.UTCTimezone object at 0x110c6c250>), 'oid': u'av-VmogFmEt6ey', 'app_id': u'app-IzGMSIS0p0m’}
But then the datetime is not being encoded, resulting in this exception:
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/flywheel/query.py", line 115, in all
exclusive_start_key=exclusive_start_key))
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/flywheel/query.py", line 78, in gen
**kwargs)
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/connection.py", line 1132, in query
self.dynamizer.maybe_encode_keys(exclusive_start_key)
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py", line 170, in maybe_encode_keys
ret[k] = self.encode(v)
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py", line 175, in encode
return dict([self.raw_encode(value)])
File "/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py", line 156, in raw_encode
(value, type(value)))
ValueError: No encoder for value '2015-12-20 00:00:00+00:00' of type '<type 'datetime.datetime’>'

If you're calling the index_pk_dict() method on the metadata object
directly, ddb_dump defaults to False. Try passing in db_dump=True or
using the index_pk_dict_() method on the model itself
On Thu, Dec 17, 2015 at 10:52 AM natecode<EMAIL_ADDRESS>wrote:

Sorry, I’m getting a crash when using an index that has a datetime as part
of the key. The key looks like this coming back from index_pk_dict() ok:
{'date': datetime.datetime(2015, 12, 20, 0, 0,
tzinfo=<flywheel.fields.types.UTCTimezone object at 0x110c6c250>), 'oid':
u'av-VmogFmEt6ey', 'app_id': u'app-IzGMSIS0p0m’}
But then the datetime is not being encoded, resulting in this exception:
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/flywheel/query.py",
line 115, in all
exclusive_start_key=exclusive_start_key))
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/flywheel/query.py",
line 78, in gen
**kwargs)
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/connection.py",
line 1132, in query
self.dynamizer.maybe_encode_keys(exclusive_start_key)
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py",
line 170, in maybe_encode_keys
ret[k] = self.encode(v)
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py",
line 175, in encode
return dict([self.raw_encode(value)])
File
"/Users/nate/venvs/orangecrush/lib/python2.7/site-packages/dynamo3/types.py",
line 156, in raw_encode
(value, type(value)))
ValueError: No encoder for value '2015-12-20 00:00:00+00:00' of type
'<type 'datetime.datetime’>'
—
Reply to this email directly or view it on GitHub
https://github.com/mathcamp/flywheel/issues/34#issuecomment-165546356.


changing a vfx edit to a targetable ability?

Hi! So I'm currently working on changing my ability into a non-player action in the game. For context, I want to change my Aflatus Misery ability on white mage to the Flood ability. My issue is that, while the animation works, it remains under me and I don't know how to make it into a targetable ability (so that it would be under my target) - or if that's even possible. Any help or a steer in the right direction would be greatly appreciated. ;_;

look in the "binders" tab. There should be a dropdown somewhere in there that you can change from "caster" to "target"

I'm so dumb LOL- I found it, thank you.


CoPilot not responding

Type: Bug
When I right click and ask Github Copilot to explain, it spins and thinks.
In doing so, it seems to take my other extensions (GitLens) offline, unable to communicate out.
Even after I stop the query, it's broken until I restart my machine.
Extension version: 0.23.2
VS Code version: Code 1.96.2 (Universal) (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 24.2.0
Modes:

System Info

Item
Value

CPUs
Apple M3 (8 x 2400)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
2, 2, 3

Memory (System)
16.00GB (0.13GB free)

Process Argv
--crash-reporter-id 9515033f-bde2-49c2-b82e-be839632f91e

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

I've tried with GPT 4o and o1 preview. I am on a stable network, tried both on and off VPN.

@ALeonard9 can you please run F1 > Developer: GitHub Copilot Chat Diagnostics and see if the calls timeout.  We have seen issues with the latest stable version of the Python extension that hangs all network connections. A fix is in the python pre-release version.

/needsMoreInfo

Apologies for the delay. Yes this was used in Python development. This issue has been resolved.


perlPackages.NetSCP & perlPackages.NetSSH: init at 0.08 & 0.09

Motivation for this change
Missing from nixpkgs.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build perlPackages.NetSCP perlPackages.NetSSH

Success on x86_64-linux (full log)
Attempted: perlPackages.NetSCP, perlPackages.NetSSH
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/qhdzqdy8an1y8xybz3jl49qla2p6687f-perl5.28.0-Net-SCP-0.08.reprise/lib
patching script interpreter paths in /nix/store/qhdzqdy8an1y8xybz3jl49qla2p6687f-perl5.28.0-Net-SCP-0.08.reprise
checking for references to /build in /nix/store/qhdzqdy8an1y8xybz3jl49qla2p6687f-perl5.28.0-Net-SCP-0.08.reprise...
shrinking RPATHs of ELF executables and libraries in /nix/store/jqylai4gg3aj11fpsmz9cbrg3l262ss4-perl5.28.0-Net-SCP-0.08.reprise-devdoc
gzipping man pages under /nix/store/jqylai4gg3aj11fpsmz9cbrg3l262ss4-perl5.28.0-Net-SCP-0.08.reprise-devdoc/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/jqylai4gg3aj11fpsmz9cbrg3l262ss4-perl5.28.0-Net-SCP-0.08.reprise-devdoc
checking for references to /build in /nix/store/jqylai4gg3aj11fpsmz9cbrg3l262ss4-perl5.28.0-Net-SCP-0.08.reprise-devdoc...
/nix/store/qhdzqdy8an1y8xybz3jl49qla2p6687f-perl5.28.0-Net-SCP-0.08.reprise
/nix/store/a0g600bd6sfaxm60f1wagimgdaay0cmr-perl5.28.0-Net-SSH-0.09

Success on aarch64-linux (full log)
Attempted: perlPackages.NetSCP, perlPackages.NetSSH
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/w4h5gybsssfqbdpydbswl05gzxp4s73d-perl5.28.0-Net-SCP-0.08.reprise/lib
patching script interpreter paths in /nix/store/w4h5gybsssfqbdpydbswl05gzxp4s73d-perl5.28.0-Net-SCP-0.08.reprise
checking for references to /build in /nix/store/w4h5gybsssfqbdpydbswl05gzxp4s73d-perl5.28.0-Net-SCP-0.08.reprise...
shrinking RPATHs of ELF executables and libraries in /nix/store/57p8jp1p1dgis0qi5rfhxc354jwnmbyi-perl5.28.0-Net-SCP-0.08.reprise-devdoc
gzipping man pages under /nix/store/57p8jp1p1dgis0qi5rfhxc354jwnmbyi-perl5.28.0-Net-SCP-0.08.reprise-devdoc/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/57p8jp1p1dgis0qi5rfhxc354jwnmbyi-perl5.28.0-Net-SCP-0.08.reprise-devdoc
checking for references to /build in /nix/store/57p8jp1p1dgis0qi5rfhxc354jwnmbyi-perl5.28.0-Net-SCP-0.08.reprise-devdoc...
/nix/store/w4h5gybsssfqbdpydbswl05gzxp4s73d-perl5.28.0-Net-SCP-0.08.reprise
/nix/store/9l7djjv56fm33l56c8m8sa8ak1mi8sb5-perl5.28.0-Net-SSH-0.09

When merged a backport to 18.09 would be appreciated as well.


Error 405 (Method not allowed) with Laravel 5.4 (POST request)

I am still facing an error 405 despite installing the package. Please do take a look at my configurations.
I have added Barryvdh\Cors\ServiceProvider::class, to my 'providers' in config/app.php

In my Kernel.php file:

In my config/cors.php file:

I would greatly appreciate the help for this, thank you.

I have the same issue. Followed the instructions step-by-step.
GET request works, post requests with payload do not.
Have anyone verify that this work with Laravel 5.4?

I was having that same issue and couldn't figure out what was wrong with it. I had to add Content-Type: application/json to my frontent request and remove my request class validation and then I started getting requests coming through.

How @dericcain did you achieved this?

@jameskandau I ran into quite a few issues. One of the underlying issues, I mentioned in #208, was the fact that I had a dd() in my code and that was causing CORS to fail even though it was technically CORS related.
If you are asking how I achieved adding the Content-Type to my front-end, that would be dependent upon what you are using to make HTTP requests. If you have more information, I may be able to help.

where do i set the content type to json?

@martinezdelprenois It really depends on what utility you are using to make HTTP requests. Are you using Axios, jQuery, fetch, or something else?

What am trying to do is, make a backend for my android app. I just made a
controller, model and added a post method to my web.php. I am abit new to
php. I really,  havenot understand your question,  sorry.
On 9 Jul 2017 2:27 p.m., "Deric Cain"<EMAIL_ADDRESS>wrote:

@martinezdelprenois https://github.com/martinezdelprenois It really
depends on what utility you are using to make HTTP requests. Are you using
Axios, jQuery, fetch, or something else?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/barryvdh/laravel-cors/issues/207#issuecomment-313914273,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWXGl5P04VpeTB0N6xKF0B8qa07Yyegpks5sMLksgaJpZM4NhogE
.

@martinezdelprenois If you're running into some specific error, post an issue and we'll help you solve it. If you need general help with PHP, you can email me and I'll help you. You can find my email on my Github profile.

set the cors in your api middleware like this
'api' => [
'throttle:60,1',
'bindings',
'cors' =>[
\Barryvdh\Cors\HandleCors::class,
]
],

@gettosin4me
I get this error by trying your method please help

Illegal offset type in isset or empty

@dericcain I have already added the content type: application/json but I still get the 404 error please help,
m trying to  access laravel backend with angular frontend
here is the code please help
 addQuote(content:string)
    {
        const body =  JSON.stringify({content:content});
        const header = new Headers({'Content-Type':'application/json'});
        return this._http.post('http://localhost:8000/api/quote/' + body,{header:header});
    }

which version of laravel are your using?

Can you try again with https://github.com/barryvdh/laravel-cors/releases/tag/v0.10.1 ?
Please re-open this issue when the problem still persists.

@dericcain dericcain I added the header. I get the same error.

Same issue. post calls returning 404 even on postman. please help

Laravel 5.8 having the same problem

Laravel 5.8 same problem too. I noticed that it my api with method get and post work perfectly in local. However in production only the get method work.  I have 405 method not allowed with the post method (but configuration looks good)
Both api with get and post method have the same middleware.

Laravel 5.8 same problem too. I noticed that it my api with method get and post work perfectly in local. However in production only the get method work.  I have 405 method not allowed with the post method (but configuration looks good)
Both api with get and post method have the same middleware.


PLAT-143623: Added extra screenshot tests for RadioItem

Checklist

[x] I have read and understand the contribution guide
[ ] A CHANGELOG entry is included
[ ] At least one test case is included for this feature or bug fix
[x] Documentation was added or is not needed
[ ] This is an API breaking change

Issue Resolved / Feature Added
Added new screenshot tests for RadioItem with custom icon
Resolution
Additional Considerations
Links
PLAT-143623
Comments
Enact-DCO-1.0-Signed-off-by: Daniel Stoian<EMAIL_ADDRESS>

LGTM


stencil separate support

Is your feature request related to a problem? Please describe.
        glStencilFunc( GL_ALWAYS, 0, 0xff );
        glStencilOpSeparate( GL_FRONT, GL_KEEP, GL_INCR_WRAP, GL_INCR_WRAP );
        glStencilOpSeparate( GL_BACK, GL_KEEP, GL_DECR_WRAP, GL_DECR_WRAP );
        glDrawArrays( GL_TRIANGLES, 0, fcount );

https://github.com/astiopin/sdf_atlas/blob/2158930242546df5827df75418ef5d046c10b97d/src/sdf_gl.cpp#L112
As shown above sdf rendering requires stencil buffer op. Currently filament only support stencil in OpenGL backend. And users can't  configure front or back buffer separately.
Describe the solution you'd like
It will be nice to export some fields in .mat file for stencil op.
Describe alternatives you've considered
No.
OS and backend
No.

Signed distance fields do not need stencil operations to work, it can be done entirely in the fragment shader.

We do have plans to implement stencil support for all backends and exposed via material properties.

Thank you!  I manage to add some front back stencil ops in struct RasterState and Metal/GL backend.  It renders the same after replace sdf_gl.cpp mentioned above with a new introduced stencil field in material/.mat file. It will be nice to have an official support version to deprecate our weird impl. Here is a CL from our impl and there are some questions about fields memory bit align and allocation size.
//! Raster state descriptor
struct RasterState {

    using CullingMode = backend::CullingMode;
    using DepthFunc = backend::SamplerCompareFunc;
    using BlendEquation = backend::BlendEquation;
    using BlendFunction = backend::BlendFunction;
    using StencilFunction = backend::SamplerCompareFunc;
    using StencilOperation = backend::StencilOperation;

    RasterState() noexcept { // NOLINT
        static_assert(sizeof(RasterState) == 2 * sizeof(uint64_t),
                "RasterState size not what was intended");
        culling = CullingMode::BACK;
        blendEquationRGB = BlendEquation::ADD;
        blendEquationAlpha = BlendEquation::ADD;
        blendFunctionSrcRGB = BlendFunction::ONE;
        blendFunctionSrcAlpha = BlendFunction::ONE;
        blendFunctionDstRGB = BlendFunction::ZERO;
        blendFunctionDstAlpha = BlendFunction::ZERO;

        stencilFrontFunc = StencilFunction::A;
        stencilOpStencilFrontFail = StencilOperation::KEEP;
        stencilOpDepthFrontFail = StencilOperation::KEEP;
        stencilOpDepthStencilFrontPass = StencilOperation::KEEP;
        stencilBackFunc = StencilFunction::A;
        stencilOpStencilBackFail = StencilOperation::KEEP;
        stencilOpDepthBackFail = StencilOperation::KEEP;
        stencilOpDepthStencilBackPass = StencilOperation::KEEP;
        stencilWriteMask = 0xFF;
        stencilReadMask = 0xFF;
    }

    bool operator == (RasterState rhs) const noexcept { return u == rhs.u && v == rhs.v; }
    bool operator != (RasterState rhs) const noexcept { return u != rhs.u && v != rhs.v; }

    void disableBlending() noexcept {
        blendEquationRGB = BlendEquation::ADD;
        blendEquationAlpha = BlendEquation::ADD;
        blendFunctionSrcRGB = BlendFunction::ONE;
        blendFunctionSrcAlpha = BlendFunction::ONE;
        blendFunctionDstRGB = BlendFunction::ZERO;
        blendFunctionDstAlpha = BlendFunction::ZERO;
    }

    // note: clang reduces this entire function to a simple load/mask/compare
    bool hasBlending() const noexcept {
        // This is used to decide if blending needs to be enabled in the h/w
        return !(blendEquationRGB == BlendEquation::ADD &&
                 blendEquationAlpha == BlendEquation::ADD &&
                 blendFunctionSrcRGB == BlendFunction::ONE &&
                 blendFunctionSrcAlpha == BlendFunction::ONE &&
                 blendFunctionDstRGB == BlendFunction::ZERO &&
                 blendFunctionDstAlpha == BlendFunction::ZERO);
    }

    bool hasStencil() const noexcept {
        return !(stencilFrontFunc == RasterState::StencilFunction::A &&
                stencilBackFunc == RasterState::StencilFunction::A &&
                !stencilWrite);
    }

    union {
        struct {
            //! culling mode
            CullingMode culling                         : 2;        //  2

            //! blend equation for the red, green and blue components
            BlendEquation blendEquationRGB              : 3;        //  5
            //! blend equation for the alpha component
            BlendEquation blendEquationAlpha            : 3;        //  8

            //! blending function for the source color
            BlendFunction blendFunctionSrcRGB           : 4;        // 12
            //! blending function for the source alpha
            BlendFunction blendFunctionSrcAlpha         : 4;        // 16
            //! blending function for the destination color
            BlendFunction blendFunctionDstRGB           : 4;        // 20
            //! blending function for the destination alpha
            BlendFunction blendFunctionDstAlpha         : 4;        // 24

            //! Whether depth-buffer writes are enabled
            bool depthWrite                             : 1;        // 25
            //! Depth test function
            DepthFunc depthFunc                         : 3;        // 28

            //! Whether color-buffer writes are enabled
            bool colorWrite                             : 1;        // 29

            //! use alpha-channel as coverage mask for anti-aliasing
            bool alphaToCoverage                        : 1;        // 30

            //! whether front face winding direction must be inverted
            bool inverseFrontFaces                      : 1;        // 31

            //! Whether stencil-buffer writes are enabled
            bool stencilWrite                                   : 1;        // 32
            uint8_t stencilWriteMask                            : 8;        // 40
            uint8_t stencilReadMask                             : 8;        // 48
            //! Stencil reference value
            uint8_t stencilRef                                  : 8;        // 56
            //! Stencil test function
            StencilFunction stencilFrontFunc                    : 3;        // 59
            //! Stencil operation when stencil test fails
            StencilOperation stencilOpStencilFrontFail          : 3;        // 62
            //! Stencil operation when stencil test passes but depth test fails
            StencilOperation stencilOpDepthFrontFail            : 3;        // 65
            //! Stencil operation when both stencil and depth test pass
            StencilOperation stencilOpDepthStencilFrontPass     : 3;        // 68
            StencilFunction stencilBackFunc                     : 3;        // 71
            //! Stencil operation when stencil test fails
            StencilOperation stencilOpStencilBackFail           : 3;        // 74
            //! Stencil operation when stencil test passes but depth test fails
            StencilOperation stencilOpDepthBackFail             : 3;        // 77
            //! Stencil operation when both stencil and depth test pass
            StencilOperation stencilOpDepthStencilBackPass      : 3;        // 80
            // Note: There are lots of unused bits here, but we need to keep the size to be 2 * sizeof(uint64_t)
        };
        struct {
            uint64_t u = 0;
            uint64_t v = 0;
        };
    };
};

But again you don't need any of this for SDF.

@bejado What's the status of stencil support? Enough to close this issue?

@romainguy Stencil support is finished for the Metal and OpenGL backends, but not yet exposed to users via materials. After user support is added I think we can close this.

Is this the same as the stencil API that was added in v1.26.0?


fix: docker compose up failing on localhost

Fixes #181
Issue - Docker compose fails locally with 2 errors
Issue #1:
Error response from daemon: Mounts denied The path /postgres-data is not shared from the host and is not known to Docker.

Solution:
Changing
   volumes:       - /postgres-data:/var/lib/postgresql/data
to
   volumes:       - ./postgres-data:/var/lib/postgresql/data
Issue #2:
cms-docker: Error P1001: Can't reach database server at 'db':'5432'
Please make sure your database server is running at db:5432

Solution:

Add health check condition for db in depends_on to ensure docker-cms runs only after docker-db is up and ready.
Add health check to postgres docker container

Additional resources:

https://www.warp.dev/terminus/docker-compose-depends-on
https://github.com/peter-evans/docker-compose-healthcheck

/bounty $30


Type DSL is missing

Describe the bug
webdriverio can load config file as typescript. (see https://webdriver.io/docs/typescript.html)
But wdio-video-reporter has no type DSL, so we cannot import like this in a typescript file.
import * as video from 'wdio-video-reporter';

To Reproduce
See https://webdriver.io/docs/typescript.html#typed-configuration.
Expected behavior
'wdio-video-reporter' can be used in typescript files.
Environment (please complete the following information):

**wdio-video-reporter version: 1.4.3
**WebdriverIO version:5.10.1
**Typescript: 5.17.0
**Node.js version: v10.11.0
**NPM version: 6.9.0

Whats the actual use case for this?
This library dont have any methods that are supposed to be accessed by users. It only triggers on wdio hooks and is only used in the wdio config file.
Also the import statement doesnt give any advantages over the require statement, since everything in the library is needed and thus nothing can be shaved away in treeshaking.

I understood following meaning and I close this issue. Thank you!

Also the import statement doesnt give any advantages over the require statement as far as I can see, since its only used in a config file.


completed issue #258

Your pull request seems good, but must be checked by a human maintainer for the following reason(s):

This file modifies a pre-existing file.

Please be patient until a maintainer has time to look over your contribution.
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

20a95678a297636c717a8b423f5ce6598cd593aa

Please don't modify the file


Update Documentation to show that the MARS agent supports Windows Server Core

Update Documentation to show that the MARS agent supports Windows Server Core

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

ID: b566a3bb-80d9-151e-cc27-7bc94d48f363
Version Independent ID: 0f8ca0eb-0153-13b6-5929-0e5996eb418e
Content: Support matrix for the MARS agent - Azure Backup
Content Source: articles/backup/backup-support-matrix-mars-agent.md
Service: backup
GitHub Login: @jyothisuri
Microsoft Alias: jsuri

@brianlo-ms
Thanks for your feedback! We will investigate and update as appropriate.

As per documentation we do not support Windows Server Core.

Why do you think that needs to be added as supported OS?

Please reference the attached email thread that is part of our internal 'Ask Azure' (WW Communities - Azurehttps://microsoft.sharepoint.com/teams/WWCAzure/SitePages/The-World-Wide-Azure-Technical-Community.aspx) with its attached reference stating that PG indicated that Windows Server Core is supported.
It was recommended that I reach out and request the documentation to be updated to reflect that we do support Azure Core using the MARS agent.
Please check with the PG and validate if Windows Server Core is or is not supported currently.
Thank you,
Brian Loeffler
Principal Cloud Solution Architect |  Microsoft Customer Success Unit
Mobile:<PHONE_NUMBER>  |<EMAIL_ADDRESS>From: SadiqhAhmed-MSFT @.>
Sent: Monday, June 12, 2023 8:31 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Brian Loeffler @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Update Documentation to show that the MARS agent supports Windows Server Core (Issue #110722)
As per documentation we do not support Windows Server Core.
[image]https://user-images.githubusercontent.com/44458118/245192054-186ebd37-95ef-4e32-92fd-9f995eb7be08.png
Why do you think that needs to be added as supported OS?

Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/110722#issuecomment-1587574644, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARALWRQSHZEICE2FSZEDQS3XK4YZXANCNFSM6AAAAAAZBEO34A.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

@brianlo-ms This is currently in testing phase. Once the test is complete, we will update the document. There is no ETA from Dev team yet.
Closing this issue for now.


[SPARK-5058] Part 2. Typos and broken URL

Also fixed java link

Test build #26007 has started for   PR 4172 at commit 6be03e5.

This patch merges cleanly.

/cc @tdas This PR is a second part of SPARK-5058 which you already reviewed and resolved.

Test build #26007 has finished for   PR 4172 at commit 6be03e5.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

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

retest this please

Test build #26012 has started for   PR 4172 at commit 6be03e5.

This patch merges cleanly.

Test build #26012 has finished for   PR 4172 at commit 6be03e5.

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

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

Looks like a good follow-on change to https://github.com/apache/spark/pull/3877 . I noted that github seems to redirect the /tree URLs to /blob URLs (that's not what's being 'fixed' here) and we have a mix of both, but yeah, when changing links we can just point to /blob as well.

Thanks. Merging in master.


Update KeyVault API Review files

@sadasant will fix this in a different PR

Thank you Mike, I'll fix it asap.


iOS app crashing after updating to 12.2 and 13.0.

In my iOS app following crash is trending in Firebase Crashlytics since I have upgraded google_mobile_ads sdk to 12.2. I have updated to latest 13.0 version of sdk but the crash presist.  I am using Facebook audience as mediation partner.
Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x18526186c __exceptionPreprocess
1  libobjc.A.dylib                0x19a27ac50 objc_exception_throw
2  CoreFoundation                 0x1852d1e1c -[__NSCFString characterAtIndex:].cold.1
3  CoreFoundation                 0x1852de270 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5
4  CoreFoundation                 0x185152550 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
5  CoreFoundation                 0x185144dd0 +[NSDictionary dictionaryWithObjects:forKeys:count:]
6  Runner                         0x102c909a8 -[FLTAdInstanceManager onAdFailedToLoad:error:] + 91 (FLTAdInstanceManager_Internal.m:91)
7  Runner                         0x102c8e49c -[FLTBannerAd bannerView:didFailToReceiveAdWithError:] + 211 (FLTAd_Internal.m:211)
8  Runner                         0x102bae918 GAD_GADBannerView_arm64_8_5_0
9  Runner                         0x102c02d70 __destroy_helper_block_e8_32s40s48s56s64s72w
10 Runner                         0x102c02930 GAD_GADInternalBannerView_arm64_8_5_0
11 Runner                         0x102c024f8 GAD_GADInternalBannerView_arm64_8_5_0
12 Runner                         0x102c02ba8 GAD_GADInternalBannerView_arm64_8_5_0
13 libdispatch.dylib              0x184e5424c _dispatch_call_block_and_release
14 libdispatch.dylib              0x184e55db0 _dispatch_client_callout
15 libdispatch.dylib              0x184e637ac _dispatch_main_queue_callback_4CF
16 CoreFoundation                 0x1851dd11c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
17 CoreFoundation                 0x1851d7120 __CFRunLoopRun
18 CoreFoundation                 0x1851d621c CFRunLoopRunSpecific
19 GraphicsServices               0x19cda0784 GSEventRunModal
20 UIKitCore                      0x187c16ee8 -[UIApplication _run]
21 UIKitCore                      0x187c1c75c UIApplicationMain
22 Runner                         0x102a5c220 main + 5 (AppDelegate.swift:5)
23 libdyld.dylib                  0x184e966b0 start
Plugin Version
google_mobile_ads: 12.2 and 0.13.0
doctor -v output:
[✓] Flutter (Channel stable, 2.2.0, on macOS 11.2.3 20D91 darwin-x64, locale
en-IN)
• Flutter version 2.2.0 at /Users/vijaymeena/Documents/flutter
• Framework revision b22742018b (8 days ago), 2021-05-14 19:12:57 -0700
• Engine revision a9d88a4d18
• Dart version 2.13.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
[✓] VS Code (version 1.56.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.22.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114

This looks like it might be related to #138 judging from the stack trace

@ThrowJojo Thanks for pointing that out. We can close this one. I didn't realized that this issue is this much old and didn't checked old bugs.


UI - Platform Application Footer

Issue:

https://github.com/bcgov/entity/issues/22801

Description of changes:
@dimak1 This implements the BcrosStepperFooter for platform-application
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://strr-ui-dev--pr-134-xt7zbx3j.web.app

Hi @shaangill025, since we paused development of the Platform Application, why did we end up finishing the footer for it?

Hi @shaangill025, since we paused development of the Platform Application, why did we end up finishing the footer for it?

This work was already done before that I just didn't check it in.


[snap] defer version determination until build

pull runs before staging now

No.
https://github.com/snapcore/snapcraft/commit/24420795bf889525faa73d4633d9e622a4bdafe5


Intermittent EPIPE write failure uploading media

In the past several months we have seen intermittent failures of cypress container test runs because of an error related to uploading videos and images. All tests pass but the container fails the test run fails because of the error.
It does not always fail on the same test file, nor does there appear to be any specific pattern to the failures. We'll see several in a day or week, and then none for the following week.
write EPIPE
Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writevGeneric (node:internal/stream_base_commons:143:3)
    at Socket._writeGeneric (node:net:815:11)
    at Socket._writev (node:net:824:8)
    at doWrite (node:internal/streams/writable:406:12)
    at clearBuffer (node:internal/streams/writable:561:5)
    at Writable.uncork (node:internal/streams/writable:348:7)
    at p.sendFrame (<embedded>:2404:495920)
    at p.dispatch (<embedded>:2404:495107)
    at p.send (<embedded>:2404:494940)
    at A.send (<embedded>:2404:505537)
    at _._enqueueCommand (<embedded>:2404:525846)
    at <embedded>:2404:523361
    at new Promise (<anonymous>)
    at _.send (<embedded>:2404:523335)
    at k.send [as sendDebuggerCommandFn] (<embedded>:4557:77430)
    at _.<anonymous> (<embedded>:4557:50879)
    at _.emit (node:events:527:28)
    at _._handleMessage (<embedded>:2404:525699)
    at A.<anonymous> (<embedded>:2404:525307)
    at A.emit (node:events:527:28)
    at g.U (<embedded>:2404:510587)
    at g.emit (node:events:527:28)
    at g.dataMessage (<embedded>:2404:490962)
    at <embedded>:2404:490494
    at <embedded>:2404:481816
    at <embedded>:2404:482768
    at afterWrite (node:internal/streams/writable:497:5)
    at onwrite (node:internal/streams/writable:477:7)
    at Zlib.cb (node:internal/streams/transform:202:7)
    at Zlib.processCallback (node:zlib:611:8)
Test run failed, code 1
More information might be available above
Cypress module has returned the following error message:
Could not find Cypress test run results
Error: Could not find Cypress test run results

our setup in the action is as follows:
jobs:
  cypress-tests:
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        containers: [1,2,3,4,5]
      services:
           etc....

steps
    - name: Cypress run
          uses: cypress-io/github-action@v4
          with:
              start: yarn start:e2e
              wait-on: 'http://localhost:3000'
              wait-on-timeout: 200
              record: true
              parallel: true
          env:
             <our_variables>

Please let me know if you need anything else to troubleshoot.

@michael1visser
Are you able to update to cypress-io/github-action@v6 which uses node20? That would be the first change to try out. cypress-io/github-action@v4 is no longer supported since it relies on node16 which has passed into end-of-life.
You might also want to consider updating to ubuntu-22.04 at the same time, since I would expect that the 3.5 year old ubuntu-20.04 will also reach its end-of-life on GitHub early next year.
Which version of Cypress are you using?

Which version of Cypress are you using?

we're on 12.16.0

@MikeMcC399 updated everything as you suggested, ubuntu to 22.04, node to 20, cypress action to v6. Got an EPIPE failure on one of the containers on the first run. The error is the same as the one posted above

@michael1visser

updated everything as you suggested, ubuntu to 22.04, node to 20, cypress action to v6. Got an EPIPE failure on one of the containers on the first run. The error is the same as the one posted above

Thanks for carrying out the suggested updates!
The error

Error: write EPIPE

has been reported previously against Cypress in several issues, and some root causes are supposed to be fixed.
The last report of the issue was in the following, although the root cause in your case may not necessarily be the same:

https://github.com/cypress-io/cypress/issues/26740

You wrote that you are currently using<EMAIL_ADDRESS>If you are still able to reproduce the issue using the latest version of Cypress (currently 13.3.2) then the issue could be transferred to the https://github.com/cypress-io/cypress/issues list. It is not a problem caused by github-action as such, so it is not something which can be fixed by making changes to the action.
Note that Cypress 13.x disables video generation by default (see Migration Guide > Migrating to Cypress 13.0 > Video updates) and if your issue is made related to video generation, then upgrading may be sufficient to stop the issue happening.
I couldn't find any other workaround listed for the issue.

@michael1visser
Have you been able to test with the latest Cypress 13.x version?

Closing.
If there is up-to-date test data available, we can re-open.


Add BitsShares (BTS)

https://bitshares.org
https://coinmarketcap.com/currencies/bitshares/
We need help finding a vector version of their logo.

I have vectorized their logo: bts-logo.svg.zip


fix: fixed a bug in index.html

I fixed a bug that I caused somehow when committing the audio feature. there was duplicated code of the "Get Started" button. I removed it and this pull request includes nothing but that fix. Sorry about that...

Codecov Report

Merging #330 (2fb5fc7) into develop (190a274) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #330   +/-   ##
========================================
  Coverage    95.81%   95.81%
========================================
  Files           75       75
  Lines         3343     3343
========================================
  Hits          3203     3203
  Misses         140      140

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 190a274...2fb5fc7. Read the comment docs.


Scalar replacement on descriptor arrays

Consider the following hlsl code,
#define COUNT 5

Texture2D    MyTextures[COUNT] : register(t0);
Texture2D    NextTexture;

SamplerState MySampler;

float4 main(float2 TexCoord : TexCoord) : SV_Target0
{
  float4 result =
    MyTextures[0].Sample(MySampler, TexCoord) +
    MyTextures[1].Sample(MySampler, TexCoord) +
    MyTextures[2].Sample(MySampler, TexCoord) +
    MyTextures[3].Sample(MySampler, TexCoord) +
    MyTextures[4].Sample(MySampler, TexCoord) +
    NextTexture.Sample(MySampler, TexCoord);
  return result;
}

If you look at the output from dxc when generating dxil, you will notice that MyTextures takes up 5 binding t0 to t4. Then NextTexture is placed in t5.  The dxbc from FXC is similar.
For the spirv, MyTextures is a single array at binding 0, and NextTexture is at binding 1.
This can make it conceptually difficult for code that wants to work with Vulkan and DirectX.  It becomes hard to keep track of where everything is bound.
To help with this DXC will be adding an option to have texture map the same way.  However, the front-end cannot convert the array of textures into separate variables until after legalization because it may require optimizations to determine fold the index in the use to a literal.
To this end, we will add a pass that will do scalar replacement on descriptor arrays.  It will be an error it the pass is unable to the scalar replacement.

It will be an error it the pass is unable to the scalar replacement.

Is this still the case? I wonder if it might be better to not have an error if there is no opportunity to do sroa. Rather, look at it in terms of an opportunistic pass which does sroa if it can but otherwise generates the more general "bindless" code.
For example, glslang will turn a runtime-sized array into a fixed size array if all of the references to the array have constant indices ie. the maximum index can be determined. But otherwise generates the runtime-sized array.
Just a suggestion, but I don't have all the background that you do.

@greg-lunarg  This pass will not be enabled by default.  It will become an option to have the spir-v backend for DXC to match the dxil backend.  Issuing an error is about making the behavior match.
Thanks for the suggestion.  I did not put in all of the information I should have to explain why we are doing what we do.


[Draft] Supported platforms

I was talking to @nrc the other day about some of our recent  PRs and issues around architecture support etc. He encouraged me to submit this RFC so thanks to him :)
This RFC proposes we formalize some of our platform support and give a direction for any future work on supporting new platforms.
I have an agenda here as I want to support Linux MUSL builds.

Closing. I am not longer involved with the project and have no stake in this merging. Feel free to create a new PR.


Fixed problems parsing JSON unmarshalling

When the Singularity API changed, JSON marshalling was breaking our
history entries, which crashed rectifies.

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.

  Generated by :no_entry_sign: Danger

Ignoring Danger.

Surely this should have a "Fixed" changelog entry? cc @nyarly @nyarly

OK, just saw the changelog entry for this. Would be helpful to add comment that it was being added elsewhere to avoid me getting sweaty :P


Update to sbt version 1.2.0

Simple version bump to the latest release.

Sorry for late reply, I need to subscribe to these... Bumped to 1.2.1 with uninstall before install to avoid issues.


main.jsbundle does not exist. This must be a bug with

File /Users/admin/Library/Developer/Xcode/DerivedData/choubek-cqlacyerebnrpoacifbtrgaeuibp/Build/Intermediates.noindex/ArchiveIntermediates/choubek/BuildProductsPath/Release-iphoneos/choubek.app/main.jsbundle does not exist. This must be a bug with

I'm having this issue as well. I was able to make builds before the weekend, but all of a sudden, I am getting this error. I'm not sure what has changed, unfortunately.

Closing after seven days with no follow up from the author.

got this error when library was added but forgot to run npm i / yarn
npm i fixed it

actually its not a bug, its more likelly that xcode didnt copy main.jsbundle and the folder 'assets' produced from the bundle to the 'DerivatedData' folder, to resolve this:
in xcode, on left menu, on folder 'ressource', right click and choose 'add files to ...'
choose main.jsbundle, and afterwards 'assets' folder,
compile and it should be fine.
you can verify by going with finder: open a finder instance then: ctrl + shift + g
paste: /Users/admin/Library/Developer/Xcode/DerivedData/choubek-cqlacyerebnrpoacifbtrgaeuibp/Build/Intermediates.noindex/ArchiveIntermediates/choubek/BuildProductsPath/Release-iphoneos/
right click on icon: choubek.app, then choose: show package contents.
if you find main.jsbundle there it worked !

This issue take me some days to fixed.
Here is my fix:
Add this line to scripts in your package.json file.
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"

Now your can run the command to generate main.jsbundle.
yarn build:ios or npm run build:ios
Open the Xcode -> Select project target -> add main.jsbundle to Copy Bundle Resource in Build Phases. (image below).

@thanhcuong1990 thank you! My project was failing to bundle, after running that command I was able to see what was causing the bundling to fail, and then fix the issue. My build succeeds now!
I'm wondering if there is any way for XCode to report these errors? Metro was not reporting any errors when running in a dedicated terminal, I only was able to see the error when running that bundle command.

Request for $150.00. Complete the request now.
[image: Google Pay logo]
Money request
$ 150
Pay now
https://pay.google.com/r/settle?tt=848DC1F4E0C680FDyxbGovShti2JEB9YrhCyZw
Decline request
https://pay.google.com/r/declineRequest?tt=848DC1F4E0C680FDyxbGovShti2JEB9YrhCyZw
Money requested from Gmail · Learn how
https://support.google.com/mail/?p=email_money
[image: Google logo]
ID: L.848D-C1F4-E0C6-80FD
pay.google.com
https://pay.google.com/?utm_source=wallet&utm_campaign=gmail-snippet&utm_medium=email
· Help Center http://support.google.com/wallet/?p=email_help · Protect
against fraud http://support.google.com/wallet/?p=email_spam
On Mon, Mar 12, 2018, 9:33 AM Sean Wood<EMAIL_ADDRESS>wrote:

I'm having this issue as well. I was able to make builds before the
weekend, but all of a sudden, I am getting this error. I'm not sure what
has changed, unfortunately.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/issues/18313#issuecomment-372373862,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhYRLWJiE_wC77kwfENim5e7vyaZ1gmbks5tdqNLgaJpZM4SlLFo
.

removed Bundle React Native code and images from Build Phases in Xcode and solved my problem.


Add Database (Still haven't decided which one)

Gonna try to keep everything in files, much easier than messing around with databases.


Improve Form autovalidation API

This is a follow up of https://github.com/flutter/flutter/pull/59766.
The API for auto validation introduced in https://github.com/flutter/flutter/pull/59766 has some preformance considerations in the Form widget that need to be fixed. This issue exist to keep track of that.
The actual issue is that the Form widget is auto validating all descendent form fields everytime one of them changes and it is also auto validating a field after it state was reset.

@chunhtai, @justinmc
This is the issue to track the performance improvements that need to be made as we talked on https://github.com/flutter/flutter/pull/59766 in this thread.

Thanks for creating this!  I might take another look if I get some time.


XML should not be getting rendered in code blocks

If you put XML inside the code blocks, it renders them as HTML. It should instead show them as pre-formatted text.

might have been my custom formatting that did this. Won't know for certain but I fixed it in my case by escaping XML entities in my custom formatter.


Release for azure-cosmos 4.30.1 and adding reason to rntbd channel health check failures

Description
Release bureaucracy as well as adding additional information about the reason into the UnhealthyChannelException to simplify debugging these situations without enabling custom Log4J logs of the RntbdClientHealthChecker form the implementation package.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

API change check
API changes are not detected in this pull request.


How to convert between scan modes

Hi,
I have trouble with grib2 scan mode.
My model expects scan mode 0 but data is in mode 64.
If you don't want to introduce new feature. Kindly advices how to reach it.
Thanks!

Hi, sorry for the delay but I was on leave.
Could you please share more context about what you are trying to achieve and possibly a sample file ? For instance are you only using this tool to get data in json or do you also use weacast to manage your data ?
I might be wrong but the scanning mode simply tells you how to interpret the data correctly for your use case and this should not really change something in the reader, it simply reads data and give them you back.

Closing now as no feedback, please reopen if required.


*: clean up vendor

No idea how they all got added. Now it's cleaner
Fix https://github.com/coreos/etcd/issues/6838

lgtm


myrescue: init at 0.9.8

Description of changes
myrescue: hard disk recovery tool that reads undamaged regions first.

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 289546 run on aarch64-darwin 1

1 package failed to build:

myrescue

Result of nixpkgs-review pr 289546 run on aarch64-darwin 1
1 package failed to build:

If you have a Darwin machine, can you try to get the source code and build it manually by make? And check if you get an error? So, if we can fix it, we can apply a patch.

The myrescue package fails to build on darwin due to: myrescue.c:47:10: fatal error: 'linux/usbdevice_fs.h' file not found. This seems to suggest that this package might be linux specific? Is that so, @D3vil0p3r?

linux/usbdevice_fs.h

The best thing could be to find a similar linux/usbdevice_fs.h header file but for darwin. @a-n-n-a-l-e-e do you have any idea?

Other things that seem "problematic" and I'm uncertain on how to address are:

Use of USBDEVFS_RESET request with ioctl(2)
Use of open64 and lseek64

here is a patch that gets darwin to build. didn't fix any of the warnings.
0001-darwin-build-fixes.patch.gz

Other things that seem "problematic" and I'm uncertain on how to address are:
* Use of `USBDEVFS_RESET` request with ioctl(2)

* Use of `open64` and `lseek64`

can just use open and lseek on darwin. and defined USBDEVFS_RESET to 0 so not used on darwin.

Thanks for providing a patch, @a-n-n-a-l-e-e. I can confirm that with the patch applied the package builds and I can run myrescue -h successfully.
What are other ways to test the program in order to determine that it functions as expected on macOS?

@afh I pushed the change. Please can you verify?
@a-n-n-a-l-e-e how do you know what is the right patch file? Is it because you know the darwin libraries and you create a manual patch file?

Result of nixpkgs-review pr 289546 run on aarch64-darwin 1

1 package built:

myrescue

Result of nixpkgs-review pr 289546 run on aarch64-darwin 1
1 package built:

If everything is well, please, approve the PR.

Well done, @D3vil0p3r, and thanks once more, @a-n-n-a-l-e-e, for helping out with the patch.
I'll leave accepting or disregarding the suggestion about using install over mkdir/cp at your discretion, @D3vil0p3r 🙂

Thank you for your assistance. I pushed the proposed change.

If it isn't too much too ask, @D3vil0p3r, and @a-n-n-a-l-e-e agrees I'd appreciate if the following was included in the commit message 🙂
Co-authored-by: Alexis Hildebrandt<EMAIL_ADDRESS>Co-authored-by: annalee<EMAIL_ADDRESS>

If it isn't too much too ask, @D3vil0p3r, and @a-n-n-a-l-e-e agrees I'd appreciate if the following was included in the commit message 🙂
Co-authored-by: Alexis Hildebrandt<EMAIL_ADDRESS>Co-authored-by: annalee<EMAIL_ADDRESS>

i don't think that doing code reviews qualifies as being a co-author.

How about providing patches, like you did, @a-n-n-a-l-e-e, and offering accepted suggestions, like I did?
If it doesn't feel justified or right, I'm onboard with my Co-authoered request to be discarded 🙂

How about providing patches, like you did, @a-n-n-a-l-e-e, and offering accepted suggestions, like I did?
If it doesn't feel justified or right, I'm onboard with my Co-authoered request to be discarded 🙂

Several Nix mantainers said me to remove all commit messages coming from additional commits during the squash process. Why don't add yourself as maintainer of this package at this point?

Ah, I wasn't aware of that preference regarding commit messages, thank you for pointing that out, @D3vil0p3r 👍
While I've thoroughly enjoyed helping out on this PR I think I would not be able to do a good job as a maintainer of this package as I do not plan to use it myself (or at least not yet :).


email is one click away?

One thing I observed is when clicking contact for email - its further expect to click to get email
<EMAIL_ADDRESS>I know if someone really wants to find your email - then the idea is to click, I usually block new tab/popup in my browser, so it makes bit harder. You must be having a strong reason for it, but if not, pls consider to display straight under the header  down

#BlackLivesMatter
P.S We support you and love all of your work towards diversity and educating the general.

Thanks for the feedback! Indeed, I obscure my email to reduce the amount of email I get (I usually have 150+ to respond to a day). But perhaps it's a little too obscure :)


1.5.3 download link isn't working

URL for relevant page?
What products and version are you using?
Where did you look before opening the issue?

Could not reproduce.  What OS are you attempting to download?  I was able to get this to work with both RedHat/CentOS and Ubuntu/Debian....  I didn't test them all after these two worked.

Hi,
Thx for the follow up. I’m on Mac OS X (latest version). Tried Safari, Chrome and FF and neither  would take me to the link.
Ended up installing the influxdb repo manually on the target machine and upgraded using yum.
All set now. Thank you!
Dan Musca
On Jun 12, 2018, at 4:04 AM, timhallinflux <notifications<EMAIL_ADDRESS>wrote:
Could not reproduce. What OS are you attempting to download? I was able to get this to work with both RedHat/CentOS and Ubuntu/Debian.... I didn't test them all after these two worked.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/influxdata/docs.influxdata.com/issues/1672#issuecomment-396551468, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGH9rz6bo240ksbbz53RfXnHKhXrOQwVks5t76BMgaJpZM4Ujjke.

For OS X -- we use brew. (see screenshot below).
What links were you trying?  If it's a doc issue, we'll fix it.  But, I want to make sure we've got you pointed at the right bits.

Cleared my Chrome cache for something else this morning, and now it works ☺. I see all the brew links pop up.
Weird thing is it’s working for all three browsers now, and I didn’t clear the cache on the other two (FF and Safari).
Thanks for all your help. You can close this incident as opened in error I guess. Not sure what else to say ☹
Dan Musca
HTTS - VzW Mobility
Hours: 11am-7pm CDT
Office:<PHONE_NUMBER>
Mobile:<PHONE_NUMBER>
HTTS Hotline:<PHONE_NUMBER>
From: timhallinflux<EMAIL_ADDRESS>Reply-To: "influxdata/docs.influxdata.com"<EMAIL_ADDRESS>Date: Tuesday, June 12, 2018 at 11:30 AM
To: "influxdata/docs.influxdata.com"<EMAIL_ADDRESS>Cc: "Dan Musca (dmusca)"<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [influxdata/docs.influxdata.com] 1.5.3 download link isn't working (#1672)
For OS X -- we use brew. (see screenshot below).
What links were you trying? If it's a doc issue, we'll fix it. But, I want to make sure we've got you pointed at the right bits.
[screen shot 2018-06-12 at 7 28 38 pm]https://user-images.githubusercontent.com/23535264/41309543-ee1ad926-6e76-11e8-8aa3-46308dc195c3.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/influxdata/docs.influxdata.com/issues/1672#issuecomment-396689343, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGH9r4chidxS4qOAnKe0nmyyx7XtfNtwks5t8AipgaJpZM4Ujjke.

@musca001 -- thanks for letting us know!  Glad this is resolved.  Cheers.


Compilation failure under mingw64

Does a load of the easie bits then gets to GCC and eventually...

build/gencheck.exe > tmp-check.h
/bin/sh /home/simon/riscv-gnu-toolchain/gcc-14/gcc/../move-if-change tmp-check.h tree-check.h
echo timestamp > s-check
g++   -g -O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -DGENERATOR_FILE -static-libstdc++ -static-libgcc -Wl,--stack,12582912 -Wl,--undefined=HOST_EXTRA_OBJS_SYMBOL -o build/genrvv-type-indexer.exe
build/genrvv-type-indexer.o ../build-i686-w64-mingw32/libiberty/libiberty.a
build/genrvv-type-indexer.exe tmp-riscv-vector-type-indexer.gen.def
/bin/sh /home/simon/riscv-gnu-toolchain/gcc-14/gcc/../move-if-change tmp-riscv-vector-type-indexer.gen.def    riscv-vector-type-indexer.gen.def
echo timestamp > s-riscv-vector-type-indexer.gen.defs
build/gengtype.exe
-S /home/simon/riscv-gnu-toolchain/gcc-14/gcc -I gtyp-input.list -w tmp-gtype.state
/home/simon/riscv-gnu-toolchain/gcc-14/gcc/../libcpp/include/line-map.h: No such file or directory
make[2]: *** [Makefile:2970: s-gtype] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh /home/simon/riscv-gnu-toolchain/gcc-14/gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib

There is a gcc/libcpp/include/line-map.h in the gcc git however and it compiles under Linux OK - problematic MSYS toolchain???

Some exploration later I get...

mkdir -p /opt/riscv-64/gcc14-rp2350-no-zcmp
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
git clone https://github.com/gcc-mirror/gcc gcc -b releases/gcc-14

Then full configure and make runs out of memory (32G) - mem just keeps increasing until it's all used. It does actually build the tools and I can at least get sense out of -v / -h so they look functional. Problem apears to be that when it's building libraries mem use just keeps increasin.
Restart and continue the build and eventually it gets stuck on the same section compiling stuff like generic-match-7.cc. find . | wc in the srouce dir shows 300k files while a linux buld shows 1.5M ...
Trying non-multilib now

I don't run Windows so I can't reproduce this easily. Are you using mingw or are you using gcc under WSL? I'm a little confused.
I develop on Ubuntu, so you should find Ubuntu under WSL is the path of least resistance on Windows. The GCC build is notoriously kludgey.

Yeah, aim is to get a good win10 native toolchain (which I imagine will be desirable)
mingw but it seems a dead-end under Windows - it's compiled a load of stuff but has been sat doing nothing for about five hours
Last output was....

if test -z "$objects"; then
echo 'int __libgcc_eh_dummy;' > eh_dummy.c;
/home/simon/64bit/riscv-gnu-toolchain/build-gcc-newlib-stage2/./gcc/xgcc -B/home/simon/64bit/riscv-gnu-toolchain/build-gcc-newlib-stage2/./gcc/ -B/opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/bin/ -B/opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/lib/ -isystem /opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/include -isystem /opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/sys-include    -Os -mcmodel=medlow -O2  -Os    -mcmodel=medlow -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc -I../../.././gcc/libgcc -I../../.././gcc/libgcc/. -I../../.././gcc/libgcc/../gcc -I../../.././gcc/libgcc/../include  -DHAVE_CC_TLS   -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c
-o eh_dummy.o;
objects=eh_dummy.o;
fi;
/opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/bin/ar  rc libgcov.a $objects
early copy is necessary so that the gcc -B options find
the right startup files when linking shared libgcc.
/bin/sh ../../.././gcc/libgcc/../mkinstalldirs ../.././gcc
/opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/bin/ranlib libgcov.a
parts="crtbegin.o crtend.o crtbegin.o crtend.o crti.o crtn.o";
for file in $parts; do
rm -f ../.././gcc/$file;
/usr/bin/install -c -m 644 $file ../.././gcc/;
case $file in
*.a)
/opt/riscv/gcc14-rp2350-no-zcmp/riscv32-unknown-elf/bin/ranlib ../.././gcc/$file ;;
esac;
done

I've got several X86_64 Linux systems as well. Trying to work out how to do a cross-compile. Using Ubuntu I apt-got mingw64 which gave me a Linux version and sure enough ....

x86_64-w64-mingw32-gcc -v
Gives me the expected output - just dunno how to get ./configure to use the mingw64 stuff instead of the linux versions (tried --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 but that just made linux elf output)

If you can gimme a clue that'd be handy - if you're not overly conversant with cross compiling I do know people who can guide me in the right direction (although they're all highly PASCAL focused...)

Been using msys/mingw but it seems a dead-end under Windows

@peardox I've had pretty good success using WSL. (Windows Subsystem For Linux). I've not recently built for this particular project, but I suspect it would work.
If you've not used it before, beware there are two flavors: WSL 1 and WSL 2, each with their own merits.

@gojimmypi Yeah, I use WSL2 extensively as well as Linux and Windows (even a little Mac stuff). I use WSL to build things like (very slightly) custom debug probe etc.
The thing is that Windows is the most popular OS so making Windows Pico friendly would be advantageous. I'm thinking specifically of things like learning Risc-V assembler ( and C/C++ I guess) on a device that costs a fiver.
The present solutions are all way too techie for a newbie so I'm looking at a simple IDE that purely does Pico - hence the desire for good toolchains

Just managed a gcc-13 Win64 build without multilib
Now gonna try gcc-14 with multilib


Include alerting in Prometheus Helm Charts

I am planning to use Prometheus to monitor an application which (when finished) will sit on a K8s cluster.
Unfortunately I am having some problems with alerting. As far as I understand the alerting rules are set in the rules_file, these rules are then handled by the Alertmanager. However my question is -- How do I set these to send an alert if for example a pod fails or the CPU reaches 90% and is it possible to incorporate the alerts into a Helm file ?
Environment

Kubernetes version information:
insert output of kubectl version here

Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.

Manifests:

insert manifests relevant to the issue

Prometheus Operator Logs:

insert Prometheus Operator logs relevant to the issue here

I'm not sure I understand the question. Alerting rules are loaded by Prometheus. A common practice is that each team runs their own Prometheus instance(s), and then all alerts are fired against a single Alertmanager cluster, where they can then be globally deduplicated and grouped in a meaningful way to then be sent via your favorite notification provider.

Many thanks for getting back -   I would like to use Prometheus for monitoring and alerting an app that will sit on a K8s cluster. I have used Helm to install Prometheus along with Grafana and can now use it for monitoring nodes/pods etc. However it is alerting that I'm having problems getting my head around. I understand the theory of using prometheus.yaml to point to the rules_file which is then used to define the alerting rules and then the AlertManager is used to send alerts etc.
I need to deliver Prometheus monitoring/alerting in a helm file so as far as I understand it will be the values.yaml file I need to edit to set the rules ?  Basically I would welcome some guidelines on how to go about setting a few alerts to monitor a k8s cluster ie. how to define alerts when pods go down or CPU goes above 80%.

The Prometheus object defines a ruleSelector meaning, that any ConfigMap that has matching labels, will be retrieved by the prometheus-config-reloader side-car and then the files inside it will be loaded by Prometheus. The Prometheus Operator ensures, that the prometheus.yaml config is adapted properly in order to do this. Meaning, that any helm chart that puts a ConfigMap that has the correct labels and contains alerting rules will be loaded.

Thanks for the reply -- I will look into using a ConfigMap to define alerting alerts and let you know how I get on.

Could you please advice - I have created a configmap.yaml in the helm/prometheus/templates with rules and a a label - backend. I can execute
$helm install --name prometheus --set serviceMonitorsSelector.app=prometheus --set ruleSelector.app=prometheus --namespace=monitoring helm/prometheus
so I assume the the configmap is running.
I have also created the follow configmap for the alertmanager. When I run
$helm install --name alertmanager --namespace=monitoring helm/alertmanager
I am getting -
Error: error validating "": error validating data: found invalid field route for v1.ConfigMap
Apologies if this is a silly question, I am new to this and a few pointers would be welcome.
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-alertmanager
data:
alertmanager.yml: |-
The root route on which each incoming alert enters.
route:
The root route must not have any matchers as it is the entry point for
all alerts. It needs to have a receiver configured so alerts that do not
match any of the sub-routes are sent to someone.
group_by: []
group_wait: 30s
group_interval: 5m
receiver: 'team-emails'
routes:
This routes performs a regular expression match on alert labels to
catch alerts that are related to a list of services.

match_re:
service: backend
receiver: team-emails
continue: true

receivers:

name: 'team-emails'
email_configs:

to: xxxxxxxxxxxx
from: xxxxxxxxxxx
smarthost: smtp.gmail.com:587
auth_username: "xxxxxxx"
auth_identity: "xxxxxxx"
auth_password: "xxxxxxx"

The Alertmanager configuration actually needs to be a Secret, not a ConfigMap. I'd suggest to go through the Getting Started and Alerting guides without helm, in order to understand the way things play together. Then you can go ahead and automate things away with helm, or whatever your favorite tool ends up being :slightly_smiling_face: .

Many thanks, I'll have a look at the guides and follow your suggestion about helm.

I'll close this issue here, but feel free to re-open or open a new issue if you run into problems.

I have followed the guides and have got a basic operator in place with the idea of changing this once I get it to work. However I start to run in to problems when I add the AlertManager. I have added the references to the prometheus.yaml to point to the alermanager.yaml and created the relevant resources as described in the guides so I'm not sure were I'm going wrong and would be grateful for some guidance.  I have included my prometheus.yaml file.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: prometheus-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus-operator
subjects:

kind: ServiceAccount
name: prometheus-operator
namespace: default

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: prometheus-operator
rules:

apiGroups:

extensions
resources:
thirdpartyresources
verbs:
"*"

apiGroups:

apiextensions.k8s.io
resources:
customresourcedefinitions
verbs:
"*"

apiGroups:

monitoring.coreos.com
resources:
alertmanagers
prometheuses
servicemonitors
verbs:
"*"

apiGroups:

apps
resources:
statefulsets
verbs: ["*"]

apiGroups: [""]
resources:

configmaps
secrets
verbs: ["*"]

apiGroups: [""]
resources:

pods
verbs: ["list", "delete"]

apiGroups: [""]
resources:

services
endpoints
verbs: ["get", "create", "update"]

apiGroups: [""]
resources:

nodes
verbs: ["list", "watch"]

apiGroups: [""]
resources:

namespaces
verbs: ["list"]

apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus-operator
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
k8s-app: prometheus-operator
name: prometheus-operator
global:
rule_files:
name: ./example.rules
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: prometheus-operator
spec:
containers:
- args:
- --kubelet-service=kube-system/kubelet
- --config-reloader-image=quay.io/coreos/configmap-reload:v0.0.1
image: quay.io/coreos/prometheus-operator:v0.14.1
name: prometheus-operator
ports:
- containerPort: 8080
name: http
resources:
limits:
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 50Mi
serviceAccountName: prometheus-operator
spec:
replicas: 2
alerting:
alertmanagers:
- namespace: default
name: alertmanager-example
port: web


[GHSA-qh36-44jv-c8xj] Potential proxy IP restriction bypass in Kubernetes

Updates

Affected products

Comments
https://github.com/kubernetes/kubernetes/issues/101493#issue-868051410

Hi @enj , the affected products of this advisory has been updated to show no fix. If there is nothing else, I will close this PR.

@CallmeMari IMO the affected versions gives a false impression of what is impacted:

(Kube has many versions spanning from 0.0.1 to 1.31.x today)


Failed to execute 'appendChild' on 'Node': The new child element contains the parent.

Thanks for the sample application! I tried to run it as described in the README, but I get the following when I run the application
Failed to execute 'appendChild' on 'Node': The new child element contains the parent.

Which points to
	// append the element if its a new parent
	if (parent && ret.parentNode !== parent) parent.appendChild(ret);

in client.js.

Thanks for reporting!
fixed it in : https://github.com/prateekbh/preact-async-ssr/commit/eb77d0c54d0fe6424ef97485621cf85a4fe1aabf


[BUG] - README incorrect for AUR install, should we use termscp-bin?

Description
README steps direct user to run pacman -S termscp but no such package exists.
Steps to reproduce
Run pacman -S termscp
Expected behaviour
It installs
Environment

OS: Manjaro Sway

Log
Additional information
There is a termscp-bin package in AUR. Should the README be updated?

Hello @orhun ! Sorry to bother you, do you know why? I've got the same issue actually.

The package exists here: https://archlinux.org/packages/extra/x86_64/termscp/
Maybe try running pacman -Syu termscp?

❯ sudo pacman -Syu termscp
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
error: target not found: termscp

wait a minute...

OS: Manjaro Sway

I completely missed this detail lol
Arch and Manjaro are different. The package is available in Manjaro Testing, I don't know when it will arrive in Manjaro Stable.

Oh you're right, thanks!


runner_against_program_with_byebug_call_test: call the correct ruby

On Debian, while we are transitioning between Ruby versions, we have
both the old ruby (e.g. ruby2.5 and ruby2.7) and the new coinstalled,
and we want to test stuff against both of them.

Thanks @terceiro! :)


Inconsistent naming for Information units and magnitudes

Currently, we have:

Magnitude: InformationQuantity
Unit: DataSizeUnit

Suggest one of the following

InformationQuantity &  InformationQuantityUnit
DataSize & DataSizeUnit

DEFERRED: until there is a revision to units and magnitudes in a future major release. https://github.com/semanticarts/gist/issues/697