Update site meta tags

The meta tags looked pretty good! The only issue I found was missing image alts.
Fixes #128

Current our twitter handle is @dvcOrg. Do we want to update this to @Iterativeai?

Thnks @julieg18 ! Please, let's check also Hexometer repots regarding metatags.

Currently our twitter handle is @dvcOrg. Do we want to update this to @Iterativeai?

Not for now, it'a bigger discussion that is happening now if we want to migrate to @iterativeai or not.

Do we want to go ahead and take off the "keywords" meta tag since it's not relevant anymore?

why is it not relevant anymore?

why is [the keywords meta tag] not relevant anymore?

All the big search engines (Google, Bing, Yahoo) either do not or barely use meta keywords because they're too abusable with techniques like keyword stuffing when they're taken into account. Some smaller search engines may use them, but the benefit is very likely inconsequential at most.
Some sources:
https://developers.google.com/search/blog/2009/09/google-does-not-use-keywords-meta-tag
https://www.clickminded.com/meta-keywords/
https://datadrivenlabs.io/blog/keyword-meta-tag-google/

Thanks @julieg18 ! Please, let's check also Hexometer repots regarding metatags.

How do I access hexometer?

All the big search engines (Google, Bing, Yahoo) either do not regard or barely use meta keywords, this has been the case for a while because they're too abusable with techniques like keyword stuffing when they're taken into account. Some smaller search engines may use them, but the benefit is very likely inconsequential at most.

Correct! While most websites (Github, Youtube, Twitter etc.) don't have them, it doesn't hurt to keep them if we prefer. The only reason I was asking was so that we could decide if our "single source" (referencing #128) will include a keywords meta tag or not.

How do I access hexometer?

I've invited you.

keywords

SEO - makes sense. Are there any other scenarios/tools that use keywords for some reason?

SEO - makes sense. Are there any other scenarios/tools that use keywords for some reason?

Not that I can find.

Hexometer reports:

og:image:url - same thing as og:image which we already have
og:image:secure_url - only needed if your og:image is not secure
og:image:type - This one is optional and since all of our social media previews were working, I figured we didn't need it. I can go ahead and add it though.
og:locale - meta tag for telling what languages your site is available in. The default is english and since that is what our site is, I figured we didn't need it. But I can add it.
fb:app_id - only needed if we want to use Facebook analytics.

twitter:creator - only needed if you are using a summary_large_image twitter card which cml.dev does not.
twitter:image:alt - added 😃
twitter:player - only needed if we wanted to use a player twitter card instead of an image card


Updating Aditya's Info

1st commit so far I have added one line in the News section. Not sure what links to add. I will eventually be on a page with the other scholars like here. But for now, this is all I have to put.
I also plan to revisit my bio tomorrow to see if I want to update any information there so I will keep this PR open a bit for that.

Okay @leewujung I believe I am satisfied with my updates.

I added a blurb about how we collect our data in my profile and also made some updates about concentrations and interests.
Added MGRS info in the "News" section along with a link to the standard Mary Gates Scholarship page.
Updated my photo: I tried resampling to 270x270 before uploading so it doesn't become unexpectedly blurry.
Also fixed a typo I caught in the "News" section in the first entry: changed "boiological" to "biological"

Take a look and let me know if you have suggestions!

@aditya-uw : Good job in updating the info! I added some comments.
For the picture, I am not sure if upsampling actually helps with resolution? and 10 MB is a bit huge, haha. I wonder if making the head bigger would be good for how it looks on the site. Otherwise, feel free to merge once you are happy with everything.

@leewujung: you were right that it was unusually big haha! I was doing 270x270 inches and not 270x270 pixels.
I think I'm ready to merge now!

@leewujung: You were right about the image being unusually large, I had set it resized to 270 inches not 270 pixels haha.
I'll self-merge now!

Oh wait I don't have write access to merge PRs in this repositiory

Oh haha, no problem I can merge it. :)


version number for new release

I plan to do a release with all our fixes in the near future.
Which version number should we use?
The last version number here is 1.0.9 in order to avoid confusion with https://pypi.python.org/pypi/python-escpos/1.0.10 we should at least take something bigger than 1.0.10.
I would take 1.1.0 since we had quite a lot of changes. I think incrementing the major version is unnecessary since I am not aware of any API changes that break behaviour.
What do you think?

As further input, a guide on semantic versioning: http://semver.org/

This sounds ok to me! I haven't seen API changes as well.

OK, so I will tag v1.1.0 when we release.


Update to 5.0 preview 7.

This is ready for review now.  Expecting the build to fail because prebuilt baselines will need to be updated, but it should build and smoke-test fine.

Superseded by #1727.


mongo-connector removing _id from source.

here is mongo connector  config
{
  "mainAddress": "localhost:27017",
  "oplogFile": "/var/log/mongo-connector/oplog.cs.timestamp",
  "noDump": false,
  "batchSize": -1,
  "verbosity": 1,
  "continueOnError": true,

  "logging": {
    "type": "file",
    "filename": "/var/log/mongo-connector/mongo-connector-cs.log",
    "format": "%(asctime)s [%(levelname)s] %(name)s:%(lineno)d - %(message)s",
    "__rotationWhen": "D",
    "__rotationInterval": 1,
    "__rotationBackups": 10,

    "__type": "syslog",
    "__host": "localhost:514"
  },

  "authentication": {
    "__adminUsername": "username",
    "__password": "password",
    "__passwordFile": "mongo-connector.pwd"
  },

  "__comment__": "For more information about SSL with MongoDB, please see http://docs.mongodb.org/manual/tutorial/configure-ssl-clients/",
  "__ssl": {
    "__sslCertfile": "Path to certificate to identify the local connection against MongoDB",
    "__sslKeyfile": "Path to the private key for sslCertfile. Not necessary if already included in sslCertfile.",
    "__sslCACerts": "Path to concatenated set of certificate authority certificates to validate the other side of the connection",
    "__sslCertificatePolicy": "Policy for validating SSL certificates provided from the other end of the connection. Possible values are 'required' (require and validate certificates), 'optional' (validate but don't require a certificate), and 'ignored' (ignore certificates)."
  },

  "__fields": ["field1", "field2", "field3"],

  "namespaces": {
    "include": ["fa.fa_new_data"],
    "mapping": {
      "fa.fa_new_data": "fa_new_data.new_data"
    },
    "__gridfs": ["db.fs"]
  },

  "docManagers": [
    {
      "docManager": "elastic2_doc_manager",
      "targetURL": "localhost:9200",
      "bulkSize": 5000,
      "uniqueKey": "_id",
      "__autoCommitInterval": null
    }
  ]
}

i am getting like this,
{
"_index": "fa_new_data",
"_type": "new_data",
"_id": "5497c1c4cbb648eb618b4568",
"_version": 1,
"_score": 1,
"_source": {
"checkbox": true,
...........................
}
}

but i want "_id" inside "_source" as well. like this
{
"_index": "fa_new_data",
"_type": "new_data",
"_id": "5497c1c4cbb648eb618b4568",
"_version": 1,
"_score": 1,
"_source": {
"checkbox": true,
"_id": "5497c1c4cbb648eb618b4568",
...........................
}
}

how can I do this ?

@neconest, there isn't a way to do this right now. Can you provide a reason why _id should also be inside of _source?


Nested parameters / translation keys

Hello again, I have yet another parsing problem. If I use the following:
l('KEY_1', {param: l('KEY_2')})

I'd expect my translation store to contain KEY_1 and KEY_2 when running l10ns update. Here it only contains KEY_1.
I've tried to find some way of parsing that but it looks like it will require some sort of recursive regex pattern (!), but I'm posting this here in case somebody more knowledgeable has an idea to solve that.
The workaround is quite simple (juste use a variable for l('KEY_2'), but creating a variable for a single use is not very efficient (nor pretty !).
Thanks again for all the work on l10ns

@tkhyn the translate is not that smart unfortunately. You have to use a variable.
Though choosing to use a regexp pattern instead of fully blown JS parsers it's much more powerful in my opinion. You don't have to keep track of versioning and it can even work across different programming languages.

Ok, no problem. I did not want to question the use of a regexp, I also think it's the right approach. I was thinking that a few tweaks to the regexp approach could maybe be used to achieve the expected behavior.

It does quite a lot of passes right now, it is not just one regexp. It's a workflow for filtering out the keys.


myjenkins: Update plugins as of 2017-08-25

ant:1.7
blueocean:1.2.0
blueocean-pipeline-editor:1.2.0
jobConfigHistory:2.17
sectioned-view:1.24
ssh-slaves:1.21

Signed-off-by: Gianpaolo Macario<EMAIL_ADDRESS>

Locally testing on mv-linux-powerhorse

docker-compose build --pull successful.
LGTM, merging


runtime: forEachP: P did not run fn

Seen on http://build.golang.org/log/fab14a23af2926e4f67dc55c4f859f0efa04159c for dragonfly at 73e791a3
##### GOMAXPROCS=2 runtime -cpu=1,2,4
fatal error: forEachP: P did not run fn

runtime stack:
runtime.throw(0x699d90, 0x1a)
	/tmp/gobuilder/dragonfly-amd64-73e791a38a71/go/src/runtime/panic.go:543 +0x96
runtime.forEachP(0x6e1970)
	/tmp/gobuilder/dragonfly-amd64-73e791a38a71/go/src/runtime/proc1.go:826 +0x3cf
runtime.gc.func1()
	/tmp/gobuilder/dragonfly-amd64-73e791a38a71/go/src/runtime/mgc.go:802 +0xb6
runtime.systemstack(0xc2080a3500)
	/tmp/gobuilder/dragonfly-amd64-73e791a38a71/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
	/tmp/gobuilder/dragonfly-amd64-73e791a38a71/go/src/runtime/proc1.go:686

At this point, we've seen this failure on the following commits and builders:
2015-04-29T04:48:55-73e791a/dragonfly-amd64
2015-04-29T18:07:43-c26fc88/dragonfly-amd64
2015-05-07T23:54:28-a3dfcf5/linux-amd64-clang
2015-05-12T16:26:47-18d98bc/linux-386-sid
2015-05-12T19:34:46-9b379d7/linux-amd64
2015-05-12T23:39:00-c06b856/linux-amd64-nocgo
On all of these, the stack has been essentially the same. It's always in the runtime test, and it's always executing both TestFutexsleep.func1 and TestGoroutineProfile. TestFutexsleep itself is not running: it created two goroutines and woke them up through a futex, but they haven't been scheduled to let them exit yet.
Here's the exact stack from the most recent failure:
fatal error: forEachP: P did not run fn

runtime stack:
runtime.throw(0x6a50f0, 0x1a)
        /tmp/buildlet-scatch235740004/go/src/runtime/panic.go:527 +0x96
runtime.forEachP(0x6e3ab8)
        /tmp/buildlet-scatch235740004/go/src/runtime/proc1.go:822 +0x3cf
runtime.gc.func1()
        /tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:832 +0x98
runtime.systemstack(0xc20801a000)
        /tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
        /tmp/buildlet-scatch235740004/go/src/runtime/proc1.go:682

goroutine 160 [running]:
runtime.systemstack_switch()
        /tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:216 fp=0xc2083ce5a8 sp=0xc2083ce5a0
runtime.gc(0x0)
        /tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:833 +0x1dc fp=0xc2083ce7b0 sp=0xc2083ce5a8
runtime.backgroundgc()
        /tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:753 +0x40 fp=0xc2083ce7e0 sp=0xc2083ce7b0
runtime.goexit()
        /tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:1670 +0x1 fp=0xc2083ce7e8 sp=0xc2083ce7e0
created by runtime.startGC
        /tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:726 +0x139

goroutine 1 [chan receive, locked to thread]:
testing.RunTests(0x6e37f0, 0x7b5da0, 0x91, 0x91, 0x7f1bd0bd8301)
        /tmp/buildlet-scatch235740004/go/src/testing/testing.go:563 +0xa6a
testing.(*M).Run(0xc20821ff38, 0x4b3fed)
        /tmp/buildlet-scatch235740004/go/src/testing/testing.go:492 +0x73
main.main()
        runtime/_test/_testmain.go:822 +0x119

goroutine 2592 [syscall]:
runtime_test.TestFutexsleep.func1(0x0, 0x4e94914f0000, 0x693930, 0x14, 0xc208018120)
        /tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:47 +0x2d
created by runtime_test.TestFutexsleep
        /tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:51 +0x26d

goroutine 2593 [syscall]:
runtime_test.TestFutexsleep.func1(0x0, 0x1dcd65174876e800, 0x6932f0, 0x13, 0xc208018180)
        /tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:47 +0x2d
created by runtime_test.TestFutexsleep
        /tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:51 +0x26d

goroutine 82776 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
        /tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
        /tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130

goroutine 82778 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
        /tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
        /tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130

goroutine 82775 [semacquire]:
runtime.GoroutineProfile(0xc208141f68, 0x80, 0x80, 0x10, 0x0)
        /tmp/buildlet-scatch235740004/go/src/runtime/mprof.go:524 +0x80
runtime_test.TestGoroutineProfile(0xc208536d80)
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:47 +0x1eb
testing.tRunner(0xc208536d80, 0x7b6910)
        /tmp/buildlet-scatch235740004/go/src/testing/testing.go:454 +0x9b
created by testing.RunTests
        /tmp/buildlet-scatch235740004/go/src/testing/testing.go:562 +0xa2a

goroutine 82777 [running]:
        goroutine running on other thread; stack unavailable
created by runtime_test.TestGoroutineProfile
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130

goroutine 82779 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
        /tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
        /tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
        /tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130
FAIL    runtime 17.371s

Is this perhaps relevant?
https://groups.google.com/forum/#!topic/mechanical-sympathy/QbmpZxp6C64
On Thu, May 14, 2015 at 11:45 AM, Austin Clements<EMAIL_ADDRESS>wrote:

At this point, we've seen this failure on the following commits and
builders:
2015-04-29T04:48:55-73e791a/dragonfly-amd64
2015-04-29T18:07:43-c26fc88/dragonfly-amd64
2015-05-07T23:54:28-a3dfcf5/linux-amd64-clang
2015-05-12T16:26:47-18d98bc/linux-386-sid
2015-05-12T19:34:46-9b379d7/linux-amd64
2015-05-12T23:39:00-c06b856/linux-amd64-nocgo
On all of these, the stack has been essentially the same. It's always in
the runtime test, and it's always executing both TestFutexsleep.func1 and
TestGoroutineProfile. TestFutexsleep itself is not running: it created two
goroutines and woke them up through a futex, but they haven't been
scheduled to let them exit yet.
Here's the exact stack from the most recent failure:
fatal error: forEachP: P did not run fn
runtime stack:
runtime.throw(0x6a50f0, 0x1a)
/tmp/buildlet-scatch235740004/go/src/runtime/panic.go:527 +0x96
runtime.forEachP(0x6e3ab8)
/tmp/buildlet-scatch235740004/go/src/runtime/proc1.go:822 +0x3cf
runtime.gc.func1()
/tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:832 +0x98
runtime.systemstack(0xc20801a000)
/tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:262 +0x79
runtime.mstart()
/tmp/buildlet-scatch235740004/go/src/runtime/proc1.go:682
goroutine 160 [running]:
runtime.systemstack_switch()
/tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:216 fp=0xc2083ce5a8 sp=0xc2083ce5a0
runtime.gc(0x0)
/tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:833 +0x1dc fp=0xc2083ce7b0 sp=0xc2083ce5a8
runtime.backgroundgc()
/tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:753 +0x40 fp=0xc2083ce7e0 sp=0xc2083ce7b0
runtime.goexit()
/tmp/buildlet-scatch235740004/go/src/runtime/asm_amd64.s:1670 +0x1 fp=0xc2083ce7e8 sp=0xc2083ce7e0
created by runtime.startGC
/tmp/buildlet-scatch235740004/go/src/runtime/mgc.go:726 +0x139
goroutine 1 [chan receive, locked to thread]:
testing.RunTests(0x6e37f0, 0x7b5da0, 0x91, 0x91, 0x7f1bd0bd8301)
/tmp/buildlet-scatch235740004/go/src/testing/testing.go:563 +0xa6a
testing.(*M).Run(0xc20821ff38, 0x4b3fed)
/tmp/buildlet-scatch235740004/go/src/testing/testing.go:492 +0x73
main.main()
runtime/_test/_testmain.go:822 +0x119
goroutine 2592 [syscall]:
runtime_test.TestFutexsleep.func1(0x0, 0x4e94914f0000, 0x693930, 0x14, 0xc208018120)
/tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:47 +0x2d
created by runtime_test.TestFutexsleep
/tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:51 +0x26d
goroutine 2593 [syscall]:
runtime_test.TestFutexsleep.func1(0x0, 0x1dcd65174876e800, 0x6932f0, 0x13, 0xc208018180)
/tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:47 +0x2d
created by runtime_test.TestFutexsleep
/tmp/buildlet-scatch235740004/go/src/runtime/futex_test.go:51 +0x26d
goroutine 82776 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
/tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
/tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130
goroutine 82778 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
/tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
/tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130
goroutine 82775 [semacquire]:
runtime.GoroutineProfile(0xc208141f68, 0x80, 0x80, 0x10, 0x0)
/tmp/buildlet-scatch235740004/go/src/runtime/mprof.go:524 +0x80
runtime_test.TestGoroutineProfile(0xc208536d80)
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:47 +0x1eb
testing.tRunner(0xc208536d80, 0x7b6910)
/tmp/buildlet-scatch235740004/go/src/testing/testing.go:454 +0x9b
created by testing.RunTests
/tmp/buildlet-scatch235740004/go/src/testing/testing.go:562 +0xa2a
goroutine 82777 [running]:
goroutine running on other thread; stack unavailable
created by runtime_test.TestGoroutineProfile
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130
goroutine 82779 [runnable]:
syscall.Syscall(0x3, 0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x9)
/tmp/buildlet-scatch235740004/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.Close(0xffffffffffffffff, 0x0, 0x0)
/tmp/buildlet-scatch235740004/go/src/syscall/zsyscall_linux_amd64.go:294 +0x51
runtime_test.TestGoroutineProfile.func1(0xc2080110e0, 0xc20800e9a0)
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:35 +0x3e
created by runtime_test.TestGoroutineProfile
/tmp/buildlet-scatch235740004/go/src/runtime/runtime_unix_test.go:38 +0x130
FAIL    runtime 17.371s
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/10618#issuecomment-102078854.

Is this perhaps relevant?
https://groups.google.com/forum/#!topic/mechanical-sympathy/QbmpZxp6C64

Interesting, but I don't think so. Because of how TestFutexsleep is structured, it's actually fine if the futex sleep in TestFutexsleep.func1 never returns (at worst, I would expect the runtime test to time out if this happened, but I'm not sure if even that would happen). I'm also fairly certain we're not depending on the syscall itself to act as a memory barrier in this case, since the synchronization happens through atomic operations on p.status and p.runSafePointFn.

I think the fact that TestGoroutineProfile is running is mostly irrelevant, since the actual GorountineProfile call is just blocking on acquiring the worldsema. However, TestGoroutineProfile first increases GOMAXPROCS to 100 (while TestFutexsleep.func1 is still in the syscall path), which might be relevant.

This command line reproduces this within a few seconds for me:
GOTRACEBACK=crash stress ./runtime.test -test.run TestFutexsleep|TestGoroutineProfile
@RLH

We've found one cause of this: holding worldsema is not enough to prevent gomaxprocs from changing because we always release worldsema before calling starttheworld. Swapping the release to be after the starttheworld in all places dramatically reduces the probability of this failing. It doesn't eliminate it, though.
I'm almost positive this has the same root cause as the "fatal error: forEachP: not stopped" failures we've also been seeing. What appears to be happening is that our stopwait accounting is sometimes off by one. When this happens, the second to last P to run the safe point function decrements stopwait to 0 and wakes up forEachP. Depending on when the actual last P runs the safe point function, we either see that stopwait is -1, or we see that the last P hasn't run its safe point function yet.

We figured out the remaining problem once worldsema is released after starttheworld. I'm preparing a CL sequence (a cleanup of Rick's prototype fix in CL 10110).
Our dance involves three parties.
G1 is running on M1 on P1. P1 has an empty run queue.
G2/M2 is in a blocked syscall and has lost its P. (The details of this don't matter, it just needs to be in a position where it needs to grab an idle P.)
GC just started on G3/M3/P3. (These aren't very involved, they just have to be separate from the other G's, M's, and P's.)

GC calls stoptheworld(), which sets sched.gcwaiting to 1.

G1/M1 begins to enter a syscall:
2. G1/M1 invokes reentersyscall, which sets the P1's status to _Psyscall.
3. G1/M1's reentersyscall observes gcwaiting != 0 and calls entersyscall_gcwait.
4. G1/M1's entersyscall_gcwait blocks acquiring sched.lock.
Back on GC:
5. stoptheworld cas's P1's status to _Pgcstop, does other stuff, and returns.
6. GC does stuff and then calls starttheworld().
7. starttheworld() calls procresize(), which sets P1's status to _Pidle and puts P1 on the idle list.
G2/M2 returns from its syscall and takes over P1:
8. G2/M2 returns from its blocked syscall and pulls P1 off the idle list.
9. G2/M2 acquires P1, which sets P1's status to _Prunning.
10. G2/M2 starts a new syscall and invokes reentersyscall, which sets P1's status to _Psyscall.
Back on G1/M1:
11. G1/M1 finally acquires sched.lock in entersyscall_gcwait.
At this point, G1/M1 still thinks it's running on P1. P1's status is _Psyscall, which is consistent with what G1/M1 is doing, but it's _Psyscall because G2/M2 put it in to _Psyscall, not G1/M1. This is basically an ABA race on P1's status.
The problem arises because forEachP currently shares stopwait with stoptheworld. G1/M1's entersyscall_gcwait observes the non-zero stopwait set by forEachP, but mistakes it for a stoptheworld. It cas's P1's status from _Psyscall (set by G2/M2) to _Pgcstop and proceeds to decrement stopwait one more time than forEachP was expecting.
The plan (prototyped in Rick's CL 10110) is to give forEachP its own stopwait and stopnote that aren't shared with stoptheworld.
Of course, all of this raises the question of how this worked before forEachP existed, since the ABA race on the P status can happen without forEachP. This took me a while to figure out. Here's a sketch:

G1/M1's entersyscall_gcwait sees that stopwait is 0 and returns. The syscall happens and returns. G1/M1 invokes exitsyscall, which invokes exitsyscallfast.
G1/M1's exitsyscallfast successfully cas's P1's status from _Psyscall to _Prunning (even though this _Psyscall status was set by G2/M2, not G1/M1).
G1's returns to executing user code, running on P1.

And, finally, back on G2/M2:
15. G2/M2 executes its system call and then calls exitsyscall, which invokes exitsyscallfast.
16. exitsyscallfast tries to cas P1's status from _Psyscall to _Prunning, but this fails because P1 is in _Prunning (because G1/M1 is using it).
In fact, if the timing is just right, a P could bounce back and forth between two M's this way without ever passing through the idle list again. But this would be okay because only one of them would be executing user code at any given moment.


Select cant go back to best match

I noticed that the sort dropdown could not go back to "best match" after you have selected something else.
Appears to be because best match uses
    {
      name: 'Best match',
      href: { query: { ...router.query } }
    },

So it will just keep the queries that are currently there.
The fix is to delete these when generating the link component. Not sure if there is a better way to delete them in NextJs, without removing them all together (which would delete search ones too). Setting to null leaves these in the url &s=&o=.
Other option would be to make it so is sets the query params as "best" and sort as "desc".

I feel like this is the perfect solution! Thanks, James 😀

@all-contributors please add @jolbol1 for code and bug


Add vector extraction from Fuse data

This is done. Will close based on feedback.
The user key at this moment is: created_by(POI)#last_modified_by(POI)#internet_domain_name(DOMAIN)
Both the raw user vectors and the weighted vectors are dumped using pickle. The tuning weight factor for tf-idf at this moment is 10.

Isn't this done?  What do we need to determine about this to close?

Closing this.


Exec self hosted runner

Tasks

[x] Exec self hosted runner

Writing the Issue

[x] Write each task for this issue using checkboxes
[x] Write all verbal instructions as tasks

Before Working on the Issue

[x] Assign yourself
[x] Share your screen on Discord
[x] Write which issue you are starting on Slack
[x] Git: Fetch the latest main
[ ] Git: Create a branch with the name of the issue

Pre-PR Checks

[ ] Insure that changes include only what is necessary for this PR
[ ] Implement necessary Unit tests
[ ] Implement necessary E2E tests
[ ] Perform functionality checks

docker ポート変更
swap 拡張
npx playwright install-deps


phpwkhtmltopdf behind proxy

Hi,
Not sure if this is the right place to post this but I have successfully installed wkhtmltopdf and phpwkhtmltopdf on my development machine and it is working great using $pdf->send() as an output to the browser.
But when I use the same build on my production server the pdf won't be sent to the client, the only difference between the two systems is that my production server uses an nginx reverse proxy and I suspect that's where the problem is,
Any ideas?
Kru-x

If it's not even sent I have no idea except that I'd also look at the proxy to found out what it does. If it were "only" corrupted it could be because the proxy does some sort of compression (like gzip on in Nginx). There's no real fix except excluding .pdf from being compressed.

Hi Mike,
Figured out that it takes too long time to process and that's why NGINX times out, but don't know why as it is quick on my development server.  I upped the nginx timeout from 60 to 120 sec and the sent command worked and the pdf came through in about 65 sec.
It is definitely the NGINX server and I can close this "issue" will investigate further but maybe you can make more sense of the error log details.
- upstream timed out (110: Operation timed out) while reading response header from upstream
Guess it is just poorly formatted html from my side,
Cheers


Remove SmartTransactionObject from TransactionObject

GitHub issue resolved: #3935
Briefly describe the changes proposed in this PR:
Removing the SmartTransactionObject dependencie from TransactionObject and extend Expressions

PR Author Checklist (see the contributor guidelines for more details):

[x] my pull request is self-contained
[x] I've added tests for the changes I made
[x] I've applied code formatting (you can use mvn process-resources to format from the command line)
[x] I've squashed my commits where necessary
[x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

@fkleedorfer @maxstolze could you rebase this against the latest develop branch? Given it's a new feature/improvement it should go into develop, so I changed the PR target, but now the diff includes some unrelated changes.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-24-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1549

Questions ?
Please refer to the Backport tool documentation


Cleanup model archive tempfile

Cleanup model archive tempfile
Description
This PR deletes the downloaded model archive tempfile after the model files are extracted. Before this change the tempfile would never get deleted even after the process exited.
I noticed this when I was building a docker image that pre-downloaded spleeter models and was surprised that the resulting layer was twice as big as I expected (one copy in /tmp/ and one in pretrained_models/).
How this patch was tested
I manually tested this by running the code and watching the temporary file get created and deleted.
It didn't seem worth it to write an automated test. The temp filename is only visible in GithubModelProvider.download() and refactoring to expose it didn't seem like a good idea. And a test that asserts something like "no new files were created in the temp directory" would sporadically fail if tests are run parallel or on a system doing anything else.

Hello @marshalium and thanks for the contribution ! I will merge the pull request, and the patch will be integrated to the next version (which will be released once we had all current PR merged)


Redirect to sign_in page for magic link pages if one-login enabled

Context
When the one login feature flag is activated, we should not let the user to go to any magic links urls
Changes proposed in this pull request
before check in magic links controllers
Guidance to review
Go on review app and try these urls
Things to check

[ ] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[ ] This code does not rely on migrations in the same Pull Request
[ ] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[ ] If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist, if included inform data insights team of the changes
[ ] If this code adds a column that may include PII, the sanitise.sql script and 0025-protecting-personal-data-in-production-dump.md ADR have been updated.
[ ] API release notes have been updated if necessary
[ ] If it adds a significant user-facing change, is it documented in the CHANGELOG?
[x] Attach the PR to the Trello card

https://trello.com/c/8VLDNNqw/509-implement-one-login-authentification-with-content


Make Travis pass

Since the Travis setup is more like my thing, I decided to make a PR against your branch. If you merge this PR and then push again to github, Travis will run again and (hopefully) pass this time.
I know this is a little confusing, so please let me know if you need any "How do I make github do this stuff" hints...

Alright, let me give this a go...


Demo app not compile!

Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'ossrhUsername' for project ':shimmer' of type org.gradle.api.Project.

That's a duplicate of https://github.com/valentinilk/compose-shimmer/issues/13#issue-1644779683
So that's the solution:

Removing the whole afterEvaluate block in shimmer/build.gradle.kts should fix it. That is only required if you want to publish the build to maven.


doc: quickstart for Ansible projects

Description of the change:

The quickstart was moved to tutorial
Added new quickstart less verbose and with the concise steps.
Update the links and the order to show the docs

See: https://deploy-preview-3555--operator-sdk.netlify.app/docs/building-operators/ansible/quickstart/
Motivation for the change:
https://github.com/operator-framework/operator-sdk/issues/3327

Hi @fabianvf @asmacdo @jmrodri  wdyt? I did it equals the others.
also, should it be blocked by https://github.com/operator-framework/operator-sdk/issues/3556 or we can move forward?


Playerheads do not load when equipped on Bedrock Clients

Custom playerheads only load in their textures when on the ground.
When equipped/placed on your head it is replaced with a steve placeholder.

Had the same thing happening to myself. It was working at one point, and stopped randomly

Moving to https://github.com/GeyserMC/Geyser/issues/3548


Refactoring & Fix env variables

I removed all constants from .env file and I added constants.js

My first Merge!


eng(devops): add commitlint

Nice! Is there a resource somewhere that defines each of these commit shorts?


Submit a Cloud Definition

Do NOT copy/paste a definition from somewhere else. Read about the word you want to define and come up with your own definition. Copy/Paste submissions will be closed and not added.
Fill out the JSON with your submission:
    {
    "word": "Cloud",
    "content": "Cloud Computing is simply the delivery of computing services through the internet",
    "learn_more_URL":"https://learn.microsoft.com/en-us/ and https://addictedreader.com/",
    "tag":"Cloud Computing",
    "abbreviation": "Cloud",
    "author_name":"Nimasha Karanahalage",
    "author_link": "https://github.com/nimashakaranahala , https://www.linkedin.com/in/nimasha-karanahalage/ "
    }

Fill out the JSON below with the following.
Word (REQUIRED)
The word you are defining. Check this URL for all words we currently have.
Content (REQUIRED)
The definition. No more than 3 sentences.
learn more URL (REQUIRED)
Website where people can visit to learn more about the word.
tag (REQUIRED and select one)
Tech category the word fits in. Options:

compute
security
service
general
analytics
developer tool
web
networking
database
storage
devops
ai/ml
identity
iot
monitoring
cost management
disaster recovery

abbreviation (OPTIONAL)
If the word is commonly abbreviated, please provide it. For example, command line interface is often abbreviated as CLI.
author name (REQUIRED)
Your name.
author link (REQUIRED)
The URL you want your name to link to.

This word has already been submitted, thank you. Check the dictionary site before submitting in the future.


Numpy error in lttb_py when a column has a constant boolean value

Hi,
This is a followup of https://github.com/predict-idlab/plotly-resampler/issues/171#issuecomment-1485302812.
The following code snippet raises an error.
It seems that lttb_py does not support having to deal with a column that is always "True" or "False".
The problem has been fixed in lttbc, but I work on WSL and lttbc seems to be incompatible.
plotly-resampler version is <IP_ADDRESS>.
As @jonasvdd pointed out, working with an other aggregator, such as MinMaxAggregator, works well.
Thank you !
import numpy as np
import pandas as pd
from plotly_resampler import FigureResampler, EfficientLTTB
from plotly.subplots import make_subplots
import plotly.graph_objects as go

if __name__ == "__main__":
    n = 209650
    x_boolean = np.full(n, True)
    y = np.arange(n)
    df = pd.DataFrame(
        data={
            "x_boolean": x_boolean,
            "y": y
        },
        copy=False,
    )

    current_column = df["y"]
    time_series = df["x_boolean"][current_column.index].sort_values()

    figure = FigureResampler(
            make_subplots(
                rows=1,
                cols=1,
                shared_xaxes=True,
            ),
        )
    figure.add_trace(
        go.Scattergl(
            mode="lines",
            name="y",
            legendgroup=f"test",
            legendgrouptitle_text=f"test",
        ),
        hf_x=time_series,
        hf_y=current_column,
        downsampler=EfficientLTTB(interleave_gaps=False),
        max_n_samples=2000,
        row=1,
        col=1,
    )

/home/jolliet/git/graph/venv/bin/python /home/jolliet/git/graph/scripts/plotlyresampler.py
/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/aggregators.py:25: UserWarning: Could not import lttbc; will use a (slower) python alternative.
  warnings.warn("Could not import lttbc; will use a (slower) python alternative.")
Traceback (most recent call last):
  File "/home/jolliet/git/graph/scripts/plotlyresampler.py", line 20, in <module>
    figure.add_trace(
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/figure_resampler/figure_resampler_interface.py", line 1011, in add_trace
    trace = self._check_update_trace_data(trace)
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/figure_resampler/figure_resampler_interface.py", line 290, in _check_update_trace_data
    s_res: pd.Series = downsampler.aggregate(
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/aggregation_interface.py", line 157, in aggregate
    s = self._aggregate(s, n_out=n_out)
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/aggregators.py", line 295, in _aggregate
    return self.lttb._aggregate(s, n_out)
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/aggregators.py", line 90, in _aggregate
    index = LTTB_core.downsample(s_i, s_v, n_out)
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/algorithms/lttb_py.py", line 89, in downsample
    LTTB_core_py._argmax_area(
  File "/home/jolliet/git/graph/venv/lib/python3.9/site-packages/plotly_resampler/aggregation/algorithms/lttb_py.py", line 33, in _argmax_area
    + y_bucket * (avg_next_x - prev_x)
TypeError: numpy boolean subtract, the `-` operator, is not supported, use the bitwise_xor, the `^` operator, or the logical_xor function instead.

Also linking #180 here (concerns issues w.r.t. compiling the lttb C code on Windows)


Fix numpy 2 compatibility with ogrid usage

Numpy 2 has changed the output of functions like ogrid to always return tuples instead of lists. This causes an exception in certain parts of dask. The one I ran into was:

 ../../../miniconda3/envs/test-environment/lib/python3.12/site-packages/dask/array/core.py:1700: in __array__
    x = self.compute()
../../../miniconda3/envs/test-environment/lib/python3.12/site-packages/dask/base.py:375: in compute
    (result,) = compute(self, traverse=False, **kwargs)
../../../miniconda3/envs/test-environment/lib/python3.12/site-packages/dask/base.py:661: in compute
    results = schedule(dsk, keys, **kwargs)
cytoolz/functoolz.pyx:518: in cytoolz.functoolz.Compose.__call__
    ???
../../../miniconda3/envs/test-environment/lib/python3.12/site-packages/dask/array/reductions.py:1145: in arg_combine
    arg, vals = _arg_combine(data, axis, argfunc, keepdims=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
data = array([[( True, 28), ( True, 29), ( True, 30), ( True, 31)],
       [( True, 28), ( True, 29), ( True, 30), ( True, 31...False, 31)],
       [(False, 28), (False, 29), (False, 30), (False, 31)]],
      dtype=[('vals', '?'), ('arg', '<i8')])
axis = 1, argfunc = <function argmax at 0x7f2e2a39f600>, keepdims = True
    def _arg_combine(data, axis, argfunc, keepdims=False):
        """Merge intermediate results from ``arg_*`` functions"""
        if isinstance(data, dict):
            # Array type doesn't support structured arrays (e.g., CuPy),
            # therefore `data` is stored in a `dict`.
            assert data["vals"].ndim == data["arg"].ndim
            axis = (
                None
                if len(axis) == data["vals"].ndim or data["vals"].ndim == 1
                else axis[0]
            )
        else:
            axis = None if len(axis) == data.ndim or data.ndim == 1 else axis[0]

        vals = data["vals"]
        arg = data["arg"]
        if axis is None:
            local_args = argfunc(vals, axis=axis, keepdims=keepdims)
            vals = vals.ravel()[local_args]
            arg = arg.ravel()[local_args]
        else:
            local_args = argfunc(vals, axis=axis)
            inds = np.ogrid[tuple(map(slice, local_args.shape))]
>           inds.insert(axis, local_args)
E           AttributeError: 'tuple' object has no attribute 'insert'

You can see the numpy pull request that made this change here:
https://github.com/numpy/numpy/pull/25570
And you can see the upstream failure in dask's CI here:
https://github.com/dask/dask/issues/10855
This is all towards my mission of making my own packages run on numpy 2.0 before it is released. :fearful:

[ ] Closes #xxxx
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

For what it is worth installing this branch in my own package's (pyresample) CI makes tests pass:
https://github.com/pytroll/pyresample/actions/runs/7921578949/job/21627217941?pr=584

Can you add tests for this?

Ah sorry about this, you can add the upstream label to trigger the upstream ci

So there are fewer failing tests and I no longer see the errors I mentioned in my description. So it is one step towards better numpy 2 compatibility.

thx


Look through TTWF tutorial and see if it has useful content

This is https://github.com/w3c/testtwf-website-src/blob/f29957b16f1df126d0ee62cf133f4ef67d888c0e/docs/testharness-tutorial.md
It's currently not linked to from anywhere on the TTWF website or elsewhere in the documentation; we should merge this into our own website. It will soon be gone with a redirect to the API documentation which it mostly duplicates.
This is also https://github.com/w3c/testtwf-website/issues/123

This issue has been moved to https://github.com/w3c/web-platform-tests/issues/7183; please continue all discussion there.


Update basic demos content

Connected to #3
Replace “foo/bar/baz” with “tab one/two/three”.
Remove all unnecessary custom styling.
Add separate examples of disabled tabs, full width tabs, and
pre-selected tab.

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Readme.md File Wiki Link

readme.md file wiki link not working. I will give a pull request,thanks

ok now added a correct link


[TextField] FormHelperText with a transition on show

Christmas Issue!
Hi guys, I was working on a project and I was needing an input that has a FormHelperText that when it will show, it has some animation (like Zoom or Fade), but I didn't want to create a FormControl because this is too big, so what a did was create a NextTextField component that has this new props and I was thinking if you guys would like to add it to the TextField component.

[X] This is not a v0.x issue.
[X] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
Something like in this sandbox
Current Behavior 😯
This current API that just show the string passed to helperText prop.

@Klynger This issue is related to #13646 where we explore how we can reserve space for the helper message.

@Klynger You should be able to animate the transition helper appearance by breaking down the TextField component into the smaller components or by using the component prop or by applying custom CSS.


Make it possible to use system gtest when it's available

Currently it's impossible to build unit tests without getting gtest via FetchContent.
It would be useful to either prefer system gtest by default or add a cmake option for
that behavior. This is necessary to run the build in sandboxed environments where FetchContent can't be used.

I'd be happy to support a way to use external gtest. Up until now no one has requested this. One thing to note though is that the current state of unit tests is pretty non-existent, I was trying to setup unit tests but it's very tricky.

Implemented on dev, will be part of the next release

Thanks for your patience, I've released v0.6.0


Searchlight: Default pool_size=None might not be a good idea for HPC systems

Hi,
I have been trying to track down reasons for large memory requirements of the searchlight code on research computing clusters at Princeton. I have done the testing on della but this would probably be a common problem on many HPC systems. It seems the default value for the argument pool_size in run_searchlight function is None. This will cause the worker threads to utilize all cores on a machine by default. On a personal machine this may be desirable but on a shared HPC resource this may not be a good idea since a user might not be provisioned all the cores on the node. When trying to run the searchlight example on della this was causing large memory requirements because the default behavior was to try and spawn a process for each core on the machine. In addition, if the code was run under srun with default arguments (a typical method for spawning MPI code under slurm schedulers), a process is spawned per rank, who in turn tries to spawn a processes for each core on the machine. This was the root cause of the large memory errors on della I believe.
I suggest a default value of 1 for pool_size or maybe clearer documentation if the default behavior is desirable on desktop\laptops. For a longer term solution, it may be preferable to avoid using multiprocessing at all and use MPI for the same node parallelization. If I am reading the code correctly then map is being used on each node to distribute work to processes. However, this is causing the blocks to be pickled and sent to each process since they are passed as arguments and not setup in shared memory. This seems basically equivalent to an MPI process. If it was rewritten using MPI this way it would have the added benefit of avoiding process fork which can cause trouble on certain HPC setups that use OpenMPI implementations. Della is one such case it seems but I am sure there are others.
Dave Turner

@davidt0x, thanks for the effort to get BrainIAK going on Princeton clusters.
The current implementation gives good performance on laptops without extra configuration and without MPI. At the same time, it does not penalize cluster performance, if the properly configured. Having said that, I think there is room for discussion, so I am inviting people to share their thoughts.

Would it be possible for the system to test the value of cat /proc/$$/status | grep Cpus_allowed_list or similar at startup (if it exists) to see if they have any restrictions on cpu count?

@Wildcarde, what do you think about PR #293?

Seems like it should cover it based on the docs.

I looked at this patch and how it would work on della. It doesn't seem like it will work because apparently os.sched_getaffinity is not available on all systems. Della is apparently one of those systems.
>>> import os
>>> 'sched_getaffinity' in dir(os)
False

I did a little research and this seems like a commonly occurring issue. The library psutil and the following code snippet do seem to work on della at least:
>>> import psutil
>>> proc = psutil.Process()
>>> len(proc.cpu_affinity())
3

This is with three cores provisioned so it seems to be working. However, this requires another dependency which may be undesirable. What do you all think?

Maybe something like this is even better:
import os

 try:
     import psutil
 except ImportError:
     psutil = None

 def get_cpu_affinity():
     if hasattr(os, 'sched_getaffinity'):
         return len(os.sched_getaffinity(0))

     if psutil is not None:
         proc = psutil.Process()
         # cpu_affinity() is only available on Linux, Windows and FreeBSD
         if hasattr(proc, 'cpu_affinity'):
             return len(proc.cpu_affinity())

     return None

 print(get_cpu_affinity())

I adapted this from code I found in the Python perf module https://github.com/haypo/perf/blob/master/perf/_collect_metadata.py
Dave

Finally, maybe it could print a warning if it is defaulting to None.

The only problem I see with Psutil is that it does not offer wheels. This will be a problem when we start offering BrianIAK wheels (see issue #286).
What OS do you have on Della?

Della is a Centos 7 based system.

What Python installation are you using. I tried on a CentOS 7 machine and the following works on both Python from EPEL and Anaconda:
python3 -c "import os; print(len(os.sched_getaffinity(0)))"

Anaconda as well. Very strange, it is hard to find anything in the documentation regarding where and why it is missing.

You are using Python 3, not 2, right?

yeah, i tried with 3.6, it doesn't work in either 3 or 2.

See PR #296.

The original problem was solved (see https://github.com/brainiak/brainiak/pull/296#issuecomment-343982419).


Template10 controls namespace not found in editor

Hello Co-Templaters,
when building my projects, the Visual Studio editor is no longer able to resolve references to Template10 controls and I get the error message: "The name "PageHeader/ModalDialog/HamburgerMenu/..." does not exist in the namespace using:Template10.Controls".
The issue first appeared today when my packages were restored from nuget. Updating from 1.1.1 to 1.1.2 unfortunately did not resolve the issue.
I'm running in Debug x64, targetting Build 10240.

There is no design support in x64. Glad you added that detail. Switch to x86. This is not T10, this is VS.


Keyword argument 'enable_lora' problem

I was trying to run the Demo Colab Notebook but it failed with the following error:
TypeError: LoraConfig.init() got an unexpected keyword argument 'enable_lora'
generated from the line:
model = PeftModel.from_pretrained(model, "teelinsan/camoscio-7b-llama")
Can you please help me solve it?

Hi,
thank you for pointing this out.
I should have fixed the issue, can you try now?


Fixed typo in changelog

At least the typo is not that way in the code. ;-)
Cheers
Matthias

Thank you!


Enhancement: add option id to spo list senstivity ensure.

The command spo list sensitivitylabel ensure that is currently being release allows you to select a sensitivitylabel by name.
However: this will cause an extra request to the ms graph to get the ID of the label. If you already have the ID available, you'd want to just enter it.
We should add an extra option to allow to enter the ID of the label.
Options

Option
Description

-n, --name [name]
The label name to apply to the list. Specify either name or id, but not both.

-i, --id [id]
The Id of the label to apply to the list. Specify either name or id, but not both.

Reference to the original issue: https://github.com/pnp/cli-microsoft365/issues/4716

Can I work on this?

Sure @nanddeepn!


Tooltip triggerable on disabled element

Feature description
The Tooltip component needs a trigger props. If you have as trigger an element that somehow overwrite the hover functionalities, disabling them, the Tooltip content is not triggered. For example if you implement something like
<Tooltip trigger={<Button disabled>Click me</Button>}>Tooltip message to visualize</Tooltip>
the content Tooltip message to visualize is not rendered.
Describe the solution you'd like
I would like to have a Tooltip that always follow the trigger element interaction, regardless of its implementation.
Describe alternatives you've considered
No response
Additional context and information
No response
Code of Conduct

[X] I've searched across open and closed issues for similiar requests

Project assignment

[X] I've assigned Wanda Design System project from the sidebar on the right.

This is a common limitation since disabled HTML elements don't fire mouse events. To handle disabled elements, a workaround is to use an element such as a span, as a simple wrapper element.


added cask whatsapp

Adding a new cask

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download whatsapp is error-free.
[x] brew cask style --fix whatsapp left no offenses.
[x] brew cask install whatsapp worked successfully.
[x] brew cask uninstall whatsapp worked successfully.

Signed-off-by: Premkumar Subramanian<EMAIL_ADDRESS>

Thanks for the submission, but a WhatsApp cask has already been added.


Missing Voxceleb1 Identification Dataset

I couldn't download the voxceleb1 identification split from this link https://mm.kaist.ac.kr/datasets/voxceleb. It only provides verification split. Does anyone know how to get the identification split?

You can download the data from https://github.com/alibaba-damo-academy/3D-Speaker/blob/main/egs/voxceleb/sv-eres2net/local/download_data.sh


How to connect to server using java client code

I am able run the demo code which starts a backend server and the html client which connects to backend code.
Now how do I connect to backend server using Java client code? Instead of writing html/js/css, I want to write Java code which connects to server and receives data

I would need some help too, the client goes into an infinite connect / disconnect loop


Add types for chunky_png gem

This library can read and write PNG files. It is written in pure Ruby for maximum portability. Let me rephrase: it does NOT require RMagick or any other memory leaking image library.
refs: https://github.com/wvanbergen/chunky_png

Oops. It's my wrong. chunky_png gem has been already added to this repo. Withdrawing.


Using take() and repeat() with share() results in the entire stream being repeated.

RxJS version: 5.4.3
Code to reproduce:
Observable
    .from([1,2,3])
    .share()
    .take(1)
    .repeat(10)
    .do((ii) => console.log(ii))
    .toPromise()

Expected behavior:
1
1
1
1
1
1
1
1
1
1

Actual behavior:
1
2
3
1
2
3
1
2

Additional information:
The way the repeat function appears to work also makes it hard to create Observables using Observable.create since the function passed to create has to be certain to make certain that the cursor for whatever it's putting in the stream is reset each time. The rxjs-stream project suffers from this when it attempts to convert nodejs streams into Observables, this would also be true for rx-node if it was converted to RXv5.
For instance.
This would work.
function TestObservable(){
    return Rx.Observable.create((observer) => {
        var it = makeIterator(['hello', 'world', 'what', 'is', 'happening']);
        let current = it.next()
        if(current.done){
            observer.complete();
        } else {
            observer.next(current.value);
        }
    })
}

While this wouldn't
function TestObservable(){
    var it = makeIterator(['hello', 'world', 'what', 'is', 'happening']);
    return Rx.Observable.create((observer) => {
        let current = it.next()
        if(current.done){
            observer.complete();
        } else {
            observer.next(current.value);
        }
    })
}

And nor would
function TestObservable(){
    return Rx.Observable.create((observer) => {
        var it = makeIterator(['hello', 'world', 'what', 'is', 'happening']);
        let current = it.next()
        if(current.done){
            observer.complete();
        } else {
            observer.next(current.value);
        }
    }).share()
}

Where the test function is:
TestObservable().take(1).repeat(10).do((ii) => console.log(ii)).toPromise()

and the makeIterator function is.
function makeIterator(array) {
    var nextIndex = 0;
    return {
       next: function() {
           return nextIndex < array.length ?
               {value: array[nextIndex++], done: false} :
               {done: true};
       }
    };
}

You're sharing a synchronous observable. Observable.from(arrayHere) will iterate over that array with a for loop on subscription. That means that by the time the call to source.subscribe() is over, it's already done emitting all values, and is unsubscribed.
share uses refCounting under the hood. So the refCount goes to 1, then synchronously goes down to 0.  When the refCount hits 0 in share, the underlying Subject is recycled, to allow repeat subscriptions. This means the observable goes "cold" again, waiting for a new "first subscriber".
... repeat detects the complete and basically concatenates the source (shared observable) onto the end again. The source just recycled the subject and will resubscribe to the original observable.
If you use, say, an interval, you'll see what you're expecting. Because that's async.
TL;DR: share does effectively nothing to totally synchronous observables.
If you want to mutlicast something synchronously, I recommend using the publish(selector) operator.


Thoughts on xray data structures?

Have you guys looked into xray at all? It seems pretty nifty, though probably too early to say if it'll be widely adopted or not:
http://xray.readthedocs.org/en/stable/data-structures.html
Right now we have methods like to_dataframe, but it sounds like to_dataarray would make more sense for something like epochs data. Just bringing this up to see what people think about it.

write a blog post to convince us? :)
seriously I've used xray in the past and it's cool but I am not sure we are
willing to add more code to mne for this. We moved back on pandas...
my 2c

Ya - I could see that. I'm just looking into xray myself, don't have
extensive practice with it. But maybe I will try to convince people yet :)
I have definitely got a lot of code that in clunky ways tries to do N-D
array stuff in Pandas, and I think that'd benefit by having something like
an xray DataArray, but I don't know if the cost/benefit makes it worth it.
On Tue, Nov 17, 2015 at 12:36 PM, Alexandre Gramfort <
<EMAIL_ADDRESS>wrote:

write a blog post to convince us? :)
seriously I've used xray in the past and it's cool but I am not sure we are
willing to add more code to mne for this. We moved back on pandas...
my 2c
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2622#issuecomment-157498912
.

Maybe minimally there could be an xray equivalent of .get_data (which returns pandas data frames).

So there's already a to_dataframe method with several objects, and I think the trick with using xray or not is that you can do lots of the same kind of functionality with DataFrames already.
E.g., since each datapoint is labeled in a DataFrame, you can just say "apply this function across a given level of a multi-index", and that will basically do the same thing as DataArray.apply_function_over_axis (don't know what the actual method is called).
Here's a function I wrote to do this. It's not tested or very robust, but maybe it's useful?
def apply_across_df_level(df, levels, func=np.mean):
    """Average out a level from a dataframe.

    This is a convenience function to quickly average away a set
    of levels in a dataframe. The dataframe will be grouped by all
    other levels, and then averaged.

    Parameters
    ----------
    df : DataFrame
        The dataframe in question
    levels : list of strings
        The names of the levels to average out

    Returns
    -------
    df : DataFrame
        The input dataframe with levels averaged out
    """
    if not isinstance(levels, (list, tuple)):
        raise ValueError('level names must be in a list')
    count_levels = filter(lambda a: a not in levels, df.index.names)
    print('Retaining levels: {0}'.format(count_levels))
    df = df.groupby(level=count_levels)
    df = df.agg(func)
    return df

So the functionality is already there, it's just a bit more clunky with something like a DataFrame.

Sorry to crash the party. Do we really need this here in MNE? A nice blog
post would do it too. It's Python, everyone can assemble his pipeline by
putting together elements from different libraries. We already have Pandas.

If you want more sophisticated labled access to data let's maybe improve
our API. A core task that I see there is an internal abstraction that
handles time and frequency. E.g. it's confusing to abuse .times for
frequencies all over the place. We have enough open tasks on this end.
On Tue, Nov 17, 2015 at 10:52 PM, Chris Holdgraf<EMAIL_ADDRESS>wrote:

So there's already a to_dataframe method with several objects, and I think
the trick with using xray or not is that you can do lots of the same kind
of functionality with DataFrames already.
E.g., since each datapoint is labeled in a DataFrame, you can just say
"apply this function across a given level of a multi-index", and that will
basically do the same thing as DataArray.apply_function_over_axis (don't
know what the actual method is called).
Here's a function I wrote to do this. It's not tested or very robust, but
maybe it's useful?
def apply_across_df_level(df, levels, func=np.mean):
"""Average out a level from a dataframe.    This is a convenience function to quickly average away a set    of levels in a dataframe. The dataframe will be grouped by all    other levels, and then averaged.    Parameters    ----------    df : DataFrame        The dataframe in question    levels : list of strings        The names of the levels to average out    Returns    -------    df : DataFrame        The input dataframe with levels averaged out    """
if not isinstance(levels, (list, tuple)):
raise ValueError('level names must be in a list')
count_levels = filter(lambda a: a not in levels, df.index.names)
print('Retaining levels: {0}'.format(count_levels))
df = df.groupby(level=count_levels)
df = df.agg(func)
return df
So the functionality is already there, it's just a bit more clunky with
something like a DataFrame.
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/2622#issuecomment-157520716
.

Agreed that there are bigger fish to fry first. I think that having an EpochTFR-style object would be useful just because there are functions that assume the kind of data that an EpochTFR object would have, whereas the functions for decomposing a signal into a TFR tend to automatically average across trials, so it's a bit clunky in that sense. Maybe one day xray will be fully-featured enough to be worth implementing as a basic component of a neural analysis package, but probably that day is not today :P

I'm gonna close this so that it's not cluttering up the issues, but maybe it can pop back up in the future :)

I think that having an EpochTFR-style object would be useful just because there are functions that assume the kind of data that an EpochTFR object would have, whereas the functions for decomposing a signal into a TFR tend to automatically average across trials
FWIW @choldgraf I want to extend linear_regression_raw to the time-frequency domain eventually.

Cool - I think this would be great as well. Check out #2024 where we discussed this a bit a while ago, and I believe I posted some code for something like an "EpochTFR" analysis. I've been meaning to take a look at the linear_regression code too, as all of my work is using regression for encoding models in ECoG :)

Note an EpochTFR thing would be, if at all, for linear_regression. linear_regression_raw circumvents epochs. linear_regression_raw with a TF option would directly return AverageTFR objects per condition estimated from a continuous (raw?) file.

EpochTFR would still be cool for example if we want to do something like decoding in the time-frequency domain.

Agreed - I just meant that as an aside, not as directly related to EpochTFR. The challenge with the full TFR decomposition is just that it tends to combinatorially explode analysis time, but would be very cool to be able to keep that information for decoding purposes etc. One issue I've run into with this object is the I/O can be expensive depending on how much precision you want in the numbers. If you store them as higher-bit numbers, then the size of files can get up to like 5-6GB and it was making our sysadmin unhappy with me...

Ah right- I'm thinking 30 channel EEG from 1 to 30 Hz here :)


Improve the BitCarousel component

the new BitCarousel component needs the following improvements:

...

I'm closing this issue because of the lack in information.


Add headers to a request

I think it could be useful to add/modify headers. For example in an AJAX call if you want to change User-Agent or add a Cookie.

Done.

This feature is now part of 0.2.5. Thanks for the patch!


Editorconfig + gitignore

@medhajjej11 this PR has been closed. You need to create another PR. Thanks.

ok


docs: fix blog post typo

@DanielRivers beat you to it in #1387, you guys are fast! Thanks anyway 😊

This was just merged.


sending snaps

i can't send any snaps to my friends. it appears a notification saying that my snap was successfully taken but the pic just vanishes as soon as i press ok

sending pictures isn't implemented yet

ok, thank u


Add new WatchPidFieldsEx method

This modifies the private watchPidFields() method to pass through the timing/sample limit parameters to the underlying C function rather than simply use the defaults. I then added a new WatchPidFieldsEx() method to allow using this feature in code leveraging this library. The existing WatchPidFields() method maintains the original behavior.
I added this because I wanted the ability to get process-level stats at a higher frequency than the default 30s rate. This allows that to be adjusted by users of this library for different use-cases, while maintaining the default behavior.

While the PR looks good the repository requires that all commits be signed. Can you resubmit this with a signed commit?

While the PR looks good the repository requires that all commits be signed. Can you resubmit this with a signed commit?

Sure, I'll create a new PR with a signed commit.


Placeholder to access roles assigned to a host - $CAPISTRANO:HOSTROLES$

I've seen roles reimplemented three different ways to get them to chef-solo. Half the reason chef-server exists is to get roles to boxes.  Capistrano already has the roles information, it'd be great to not have to repeat the information outside of capistrano.
What I do to run chef these days is:
ROLES=$CAPISTRANO:HOSTROLES$  soloist
which then splits the roles env variable and composes a chef run list which installs everything needed to be a server with those roles.
This has been discussed on the lighthouse before.

Docs updated, I'll write up a blog post when you push the next version of the gem.  Good luck with Rake issues - I'll sure be glad when we get over the rake/rubygems/yaml growing pains.


Remove meta-rust from master.xml

Already gone in recent release branches, we definitely don't need it here.

I've also added a big cleanup of our repo files, I realized we could do after reading https://gerrit.googlesource.com/git-repo/+/master/docs/manifest-format.md.
It could be even cleaner and easy to manipulate if we had defined <remote name="ats" fetch="https://github.com/advancedtelematic" /> instead of <remote name="github" fetch="https://github.com/" />.
Unfortunately, changing that now will probably break a lot of checkouts which would then require manual intervention.

Yes, I've run repo sync for all the concerned branches and it worked fine.


Server not required to send Access-Control-Allow-Credentials

This PR resolves 2 issues with CORS tests:

Access-Control-Allow-Credentials was being expected when it is not required, and actually not a good thing to send so the tests no longer require it.
The Vary header was being tested for after POST requests or requests resulting in a 401 - it doesn't make sense in either situation.

Some implementations probably return some headers too often but the tests should definitely not fail when they are left off when not required.

Ack that the Solid protocol does not set a specific requirement including ACAC. Servers that want to conform to CORS will follow that specification's requirements.


Fix SDL2.dll copying for MSVC

#904 doesn't work... maybe I had already manually fixed it when I tried it then forgot

lgtm


iOS app crashes on creating Texture

I'm trying to render a texture quad by following the "hello-triangle" example on iOS. My new material to render the quad is proper as it is drawing a black quad if I didn't bind any texture to material instance. But when I call this function to create texture, it is crashing at generateMipmaps(*engine)
void loadTexture(Engine* engine, const std::string& filePath, Texture** map, bool sRGB)
{
       int w, h, n;
unsigned char* data = stbi_load(path.c_str(), &w, &h, &n, 3);
        if (data != nullptr) {
           *map = Texture::Builder()
          .width(uint32_t(w))
        .height(uint32_t(h))
       .levels(0xff)
      .format(sRGB?driver::TextureFormat::SRGB8:driver::TextureFormat::RGB8)
      .build(*engine);
     Texture::PixelBufferDescriptor buffer(data, size_t(w * h * 3),
Texture::Format::RGB, Texture::Type::UBYTE,
(driver::BufferDescriptor::Callback) &stbi_image_free);
    (*map)->setImage(*engine, 0, std::move(buffer));
   (*map)->generateMipmaps(*engine);
}
I pulled this function from Desktop samples of filament.
I tried tweaking png compression options on xCode but no luck.

Device: iPhone 7
OS: iOS 11.4.1

Which backend are you using, OpenGL? I think there were some changes recently to mipmap generation, but it's possible this is specific to iOS. Is there any particular message logged before crashing?

if format is RGB8 then log is
019-02-14 10:35:51.922809+0530 FilamentDemo[291:12092] [DYMTLInitPlatform] platform initialization successful
FEngine (64 bits) created at 0x104800000 (threading is enabled)
FEngine resolved backend: OpenGL
2019-02-14 10:35:52.216054+0530 FilamentDemo[291:12101] Metal GPU Frame Capture Enabled
2019-02-14 10:35:52.217089+0530 FilamentDemo[291:12101] Metal API Validation Enabled
N5utils18PostconditionPanicE
in virtual void filament::PlatformCocoaTouchGL::makeCurrent(filament::driver::Platform::SwapChain *, filament::driver::Platform::SwapChain *):129
reason: Incomplete framebuffer.
#0 0   libsystem_pthread.dylib             0x0000000184cd1110  + 0
libc++abi.dylib: terminating with uncaught exception of type utils::PostconditionPanic
if format is SRGB8 then log is
2019-02-14 10:38:53.261018+0530 FilamentDemo[297:13117] [DYMTLInitPlatform] platform initialization successful
FEngine (64 bits) created at 0x109800000 (threading is enabled)
FEngine resolved backend: OpenGL
2019-02-14 10:38:53.542747+0530 FilamentDemo[297:13125] Metal GPU Frame Capture Enabled
2019-02-14 10:38:53.543834+0530 FilamentDemo[297:13125] Metal API Validation Enabled
N5utils18PostconditionPanicE
in void filament::details::FTexture::generateMipmaps(filament::details::FEngine &) const:199
reason: Texture format must be color renderable
#0 0   FilamentDemo                        0x0000000104e8b08c -[FilamentView initializeFilamentQuad] + 1388
#1 0   FilamentDemo                        0x0000000104e8a5f8 -[FilamentView initWithCoder:] + 180
#2 0   UIKit                               0x000000018f32cfec  + 248
#3 0   UIKit                               0x000000018f48e738  + 688
#4 0   UIKit                               0x000000018f48e470  + 312
#5 0   UIKit                               0x000000018f32cc94  + 188
#6 0   UIKit                               0x000000018f48e738  + 688
#7 0   UIKit                               0x000000018f48e8b0  + 1064
#8 0   UIKit                               0x000000018f48e470  + 312
#9 0   UIKit                               0x000000018f32bfe4  + 1164
#10 0   UIKit                               0x000000018f15daa8  + 372
#11 0   UIKit                               0x000000018eda1074  + 176
#12 0   UIKit                               0x000000018ecc5b14  + 172
#13 0   UIKit                               0x000000018ecc5a50  + 28
#14 0   UIKit                               0x000000018ecb6ce4  + 136
#15 0   UIKit                               0x000000018ecb5b18  + 272
#16 0   UIKit                               0x000000018ed4362c  + 48
#17 0   UIKit                               0x000000018ecb9274  + 3660
libc++abi.dylib: terminating with uncaught exception of type utils::PostconditionPanic

I don't think iOS supports RGB colorbuffers, hence the "Texture format must be color renderable." assertion. Can you try with a RGBA texture and see if that succeeds?

tried with format driver::TextureFormat::RGBA8 got the following error
2019-02-14 10:47:16.609869+0530 FilamentDemo[302:15292] [DYMTLInitPlatform] platform initialization successful
FEngine (64 bits) created at 0x107800000 (threading is enabled)
FEngine resolved backend: OpenGL
2019-02-14 10:47:16.876139+0530 FilamentDemo[302:15301] Metal GPU Frame Capture Enabled
2019-02-14 10:47:16.877123+0530 FilamentDemo[302:15301] Metal API Validation Enabled
N5utils18PostconditionPanicE
in virtual void filament::PlatformCocoaTouchGL::makeCurrent(filament::driver::Platform::SwapChain *, filament::driver::Platform::SwapChain *):129
reason: Incomplete framebuffer.
#0 0   libsystem_pthread.dylib             0x0000000184cd1110  + 0
libc++abi.dylib: terminating with uncaught exception of type utils::PostconditionPanic
with format driver::TextureFormat::SRGBA8 got the following error
2019-02-14 10:49:25.732349+0530 FilamentDemo[308:16078] [DYMTLInitPlatform] platform initialization successful
FEngine (64 bits) created at 0x1037d8000 (threading is enabled)
FEngine resolved backend: OpenGL
2019-02-14 10:49:26.002348+0530 FilamentDemo[308:16086] Metal GPU Frame Capture Enabled
2019-02-14 10:49:26.003308+0530 FilamentDemo[308:16086] Metal API Validation Enabled
N5utils18PostconditionPanicE
in void filament::details::FTexture::generateMipmaps(filament::details::FEngine &) const:199
reason: Texture format must be color renderable

Okay, potentially something else going on- will take a closer look.

This error triggers when isRenderTargetFormatSupported() returns false in the driver. Maybe it's just that it wasn't implemented properly for iOS?

@Raki just merged a fix- can pull and try again? Note that sRGB textures (correctly) do not support mipmap generation on iOS.

@bejado  ios build was crashing with the following errors
/../filament/src/driver/metal/MetalDriver.mm:450:56: error: no member named 'clear' in 'filament::driver::RenderPassParams'
const auto clearFlags = (TargetBufferFlags) params.clear;
~~~~~~ ^
../../filament/src/driver/metal/MetalDriver.mm:482:21: error: no member named 'left' in 'filament::driver::RenderPassParams'
viewport(params.left, params.bottom, params.width, params.height);
~~~~~~ ^
../../filament/src/driver/metal/MetalDriver.mm:482:34: error: no member named 'bottom' in 'filament::driver::RenderPassParams'
viewport(params.left, params.bottom, params.width, params.height);
~~~~~~ ^
../../filament/src/driver/metal/MetalDriver.mm:482:49: error: no member named 'width' in 'filament::driver::RenderPassParams'
viewport(params.left, params.bottom, params.width, params.height);
~~~~~~ ^
../../filament/src/driver/metal/MetalDriver.mm:482:63: error: no member named 'height' in 'filament::driver::RenderPassParams'
viewport(params.left, params.bottom, params.width, params.height);
~~~~~~ ^
../../filament/src/driver/metal/MetalDriver.mm:672:88: error: no member named 'clear' in 'filament::driver::RenderPassParams'
TargetBufferFlags clearFlags = (TargetBufferFlags) pImpl->mCurrentRenderPassParams.clear;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning and 6 errors generated.
[219/228] Building CXX object filament/CMakeFiles/filament.dir/src/driver/vulkan/VulkanDriverImpl.cpp.o
ninja: build stopped: subcommand failed.

Hi @bejado , I tried with latest code, no crashes so far.
But the texture quad I drawing is coming like this.

While debugging i can see like, the texture is being updated with current frame.
I'm using format as driver::TextureFormat::RGBA8

Does that only happen when you generate mipmaps? Can you show your material file?

@bejado , I tried disabling mipmaps but no change in output.
I'm using the following material .
material
  {
   name : simple_tex,
  shadingModel : unlit,
   parameters : [
     // Base color sRGB texture
   {
  type : sampler2d,
  name : albedo
    }
   ],
   // To sample textures our material must declare that it requires
  // a set of UV coordinates from the rendered mesh
   requires: [
  uv0
  ]
}
fragment {
void material(inout MaterialInputs material) {
   prepareMaterial(material);
       material.baseColor = texture(materialParams_albedo, getUV0());
    }
}

I don't see anything wrong with the material. Are you creating a sampler and setting it as a parameter on your material instance?
TextureSampler sampler(TextureSampler::MinFilter::LINEAR, TextureSampler::MagFilter::LINEAR);
materialInstance = material->createInstance();
materialInstance->setParameter("albedo", texture, sampler);

It would help if you could post all the changes you've made to HelloTriangle.

@bejado The following are the changes I made to HelloTriangle Demo.
struct Vertex3
{
    math::float2 pos;
    math::float2 uv;
};

static const Vertex3 QUAD_VERTICES[4] = {
    {{-0.5,-0.5}, {0,0}},
    {{0.5,-0.5}, {1,0}},
{{0.5,0.5}, {1,1}},
{{-0.5,0.5}, {0,1}}
};

static constexpr uint16_t QUAD_INDICES[6] = {0,1,2,0,2,3};

-(void) initializeFilamentQuad
{
    engine = Engine::create(filament::Engine::Backend::OPENGL);
    swapChain = engine->createSwapChain((__bridge void*) self.layer);
    renderer = engine->createRenderer();
    scene = engine->createScene();
    camera = engine->createCamera();

    filaView = engine->createView();
    filaView->setClearColor({0.1, 0.125, 0.25, 1.0});
    filaView->setPostProcessingEnabled(false);
    filaView->setDepthPrepass(filament::View::DepthPrepass::DISABLED);

    int stride = sizeof(float)*4;

    app.vb = VertexBuffer::Builder()
    .vertexCount(4)
    .bufferCount(1)
    .attribute(VertexAttribute::POSITION, 0, VertexBuffer::AttributeType::FLOAT2, 0, stride)
    .attribute(VertexAttribute::UV0, 0, VertexBuffer::AttributeType::FLOAT2, 8, stride)
    .build(*engine);
    app.vb->setBufferAt(*engine, 0,
                        VertexBuffer::BufferDescriptor(QUAD_VERTICES, stride*4, nullptr));

    app.ib = IndexBuffer::Builder()
    .indexCount(6)
    .bufferType(IndexBuffer::IndexType::USHORT)
    .build(*engine);
    app.ib->setBuffer(*engine,
                      IndexBuffer::BufferDescriptor(QUAD_INDICES, sizeof(uint16_t)*6, nullptr));

    app.mat = Material::Builder()
    .package((void*) SIMPLE_TEXR_PACKAGE, sizeof(SIMPLE_TEXR_PACKAGE))
    .build(*engine);

    materialInstance = app.mat->getDefaultInstance();

    NSString *bcPath = [[NSBundle mainBundle] pathForResource:@"Model_1_txt" ofType:@"png"];
    const char *bcPath_cstr = [bcPath fileSystemRepresentation];

    TextureLoader::loadTexture(engine,string(bcPath_cstr),&albedo);
    TextureSampler *sampler = new TextureSampler(TextureSampler::MinFilter::LINEAR,TextureSampler::MagFilter::LINEAR);
    materialInstance->setParameter("albedo", albedo, *sampler);

    app.renderable = EntityManager::get().create();
    RenderableManager::Builder(1)
    .boundingBox({{ -1, -1, -1 }, { 1, 1, 1 }})
    .material(0, materialInstance)
    .geometry(0, RenderableManager::PrimitiveType::TRIANGLES, app.vb, app.ib, 0, 6)
    .culling(false)
    .receiveShadows(false)
    .castShadows(false)
    .build(*engine, app.renderable);
    scene->addEntity(app.renderable);

    filaView->setScene(scene);
    filaView->setCamera(camera);
    CGRect nativeBounds = [UIScreen mainScreen].nativeBounds;
    filaView->setViewport(Viewport(0, 0, nativeBounds.size.width, nativeBounds.size.height));

    constexpr float ZOOM = 1.5f;
    const uint32_t w = filaView->getViewport().width;
    const uint32_t h = filaView->getViewport().height;
    const float aspect = (float) w / h;
    camera->setProjection(Camera::Projection::ORTHO,
                          -aspect * ZOOM, aspect * ZOOM,
                          -ZOOM, ZOOM, 0, 1);
}

//loadTexture code
        int w, h, n;
        unsigned char* data = stbi_load(path.c_str(), &w, &h, &n, 4);
        if (data != nullptr) {
            *map = Texture::Builder()
            .width(uint32_t(w))
            .height(uint32_t(h))
            .levels(0xff)
            .format(driver::TextureFormat::RGBA8)
            .build(*engine);
            Texture::PixelBufferDescriptor buffer(data, size_t(w * h * 4),
                                                  Texture::Format::RGBA, Texture::Type::UBYTE,
                                                  (driver::BufferDescriptor::Callback) &stbi_image_free);
            (*map)->setImage(*engine, 0, std::move(buffer));
            (*map)->generateMipmaps(*engine);

Can you try replacing
    materialInstance = app.mat->getDefaultInstance();

with
    materialInstance = app.mat->createInstance();

This might be a bug on our side.

@bejado Yes, it worked with   app.mat->createInstance(); .  Thank you very much.

Sure thing! Note that you should be able to use getDefaultInstance so that is in fact a bug on our part which will be fixed in #854.


Unify all data removal policies

Unify DMCA takedown policy and Sensitive Data Removal policy into single Data Removal Policy.

Uneducated at the issue at hand.
-Yousef Muhammad Saeed

Peace and Serenity!

Sincerly,
-Yousef Muhammad Saeed

Minimizing those comments as off topic.

It ok

Apologies for the delay in responding.
We do now have a Submitting content removal requests page that links to both of these policies.
We keep those policies in full separate so that it's clear for reporting users what to provide.


remove references to future package

prep for sdk 2.0 w/ breaking changes: https://github.com/algorand/py-algorand-sdk/pull/422
also added some type: ignore comments, at some point before release these should be actually fixed

Should this mean bumping the minimum py-algorand-sdk version in pyproject.toml?

Should this mean bumping the minimum py-algorand-sdk version in pyproject.toml?

Yes, waiting for the tagged release to update this, added a reminder in code so we don't forget


logger: please export createDisabledLogger

The function to create a disabled logger is not exported:
https://github.com/libp2p/js-libp2p/blob/bca8d6e689b47d85dda74082ed72e671139391de/packages/logger/src/index.ts#L86
Please export some way of constructing a no-op Logger and ComponentLogger.

Where you need a ComponentLogger you can just use defaultLogger?  Otherwise if you need a Logger just use the regular logger export?
Logging will be disabled if the DEBUG env var is not present.

The modules in question require a ComponentLogger, createDisabledLogger returns a debug.Debugger which is not the same thing so this isn't going to solve the problem you face.

Okay, can we export a disabled ComponentLogger then?...

@achingbrain it doesn't make me excited to work with libp2p when even basic requests are closed without resolution. I love the project and have built things on top of it and plan to contribute more. But I don't feel that the style of trying to close things as fast as possible is conducive to progress.

I'm sorry that you feel this way, the reason I closed this issue is detailed above.
To reiterate:
Your problem is, I think, you have a libp2p component that requires a libp2p ComponentLogger.
The suggestion is to export something which can be passed to the component to satisfy the requirement for a logger and for it to not do anything.
The resolution here is:

Exporting createDisabledLogger will not work because it returns the wrong type.  Instead, you should use the existing defaultLogger from @libp2p/logger which is of the correct type.
There's no need to export a "disabled ComponentLogger" because logging is disabled by default, so it's redundant - if you use defaultLogger as suggested, you will have a ComponentLogger that satisfies the API, and it'll be disabled.

I hope that clears things up.
There may be broader questions here like "should all libp2p components require a logger" and "should I be able to use libp2p components outside of libp2p" but these may be better off as discussions.

I don't see any reason to not have a no-op logger, and it would be 10 lines of code to export one.

Unless you turn logging on, defaultLogger is a no-op logger so there's no need to export anything else.

I understand. And I see your position on this. But I don't want to even have it behind a DEBUG environment variable, rather would prefer to just stub it.
I appreciate your responses and will just write a no-op logger out of tree. Thanks for taking the time to reply.


Remove special minimumContractPeriod handling from search apiclient

Buyer frontend has access to the questions content so it should build
the correct OR/AND value for each filter type without relying on
special cases in apiclient.

Is there a difference between "should" and "does" here?  i.e. will this break the buyer frontend until a corresponding change is made there?

@quis @TheDoubleK the buyer-frontend compiles the query with grouped filters on its own now (https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/85). The params that the apiclient gets from the new buyer-frontend will already include the joined minimumContractPeriod, so the removed code in dmutils is no longer needed, but should still work with the new buyer app. I've set the dmutils version to 3.0.0 in the buyer-frontend PR, but depending on which one gets merged first I'll either change that or we could change it later.

OK, I think that makes sense—:+1: to merge from me once you've rebased.


fix: Fix tests for allOf functionality BNCH-15425

Description
Fixes tests in the allof branch
Test Plan
Tests now pass

Going to start adding tests for the new functionality

woohoo!


Add Unit test for Controllers

Currently no unit testing is available for the Play controllers. We need some unit testing to be added so that we can have a good test coverage!

Added unit testing for PowerPlantController! Will add unit tests for PowerPlantOperationsController later!

Unit tests for PowerPlantOperationsController is under implementation!

Added as much unit tests as possible!


Offscreen canvas example does not work in codesandbox

Describe the bug
When editing the offscreen canvas example in codesandbox it does not work.

Uncaught SyntaxError: Cannot use import statement outside a module

To Reproduce
Steps to reproduce the behavior:

Go to https://openlayers.org/en/latest/examples/offscreen-canvas.html
Click on Edit
See error

Expected behavior
The example should not throw an error.

Configuring the worker with {type: 'module'} seems to work.
I added it to #12893 with https://github.com/openlayers/openlayers/pull/12893/commits/46d9e8db8e916d63fc5e8310f8f12439023e98ad

@MoonE, should we close this now that #12893 is in?

Yes. This should work now, thanks @tschaub.


Are there any module specific contitionals we can use.

I have module i have added to my project but i need to integrate it into the parent now. Are there any conditionals available for use such as any of the following:

if module exists
if exists and is published
if module exists and has **

you can what i am getting at.
I am also wondering if you have a way to specify the order seeders are run.
example:
Main project seeders  have

permissions table seeder
permissionsRole seeder

module project has

permissions seeder also.

I need to be able to run both seeders before the permRole seeder so it has all available permissions before it tried to connect the  role to the permissions or the roles will not have module permissions assigned.

Hello, my English is not very good,
if module exists
if exists and is published
if module exists and has **
1º You can use the helpers (" module_path('Blog') ") replace it with what module you are going to use.
Fun fact, to customize the helpers, first create helpers.php file in Main module and edit module.json.
load the helpers.php file, then add in helpers.php file this code that says "custom_code".
Now you can use your custom helpers like this (" custom_code('Blog') ").

Main project seeders have
2º There are several ways to do it the simplest is to add it in DatabaseSeeder and put it in order that you like, detail is not necessary that it is PermissionDatabaseSeeder you can simply use it like this PermissionTableSeeder, I hope this helps you.

if you have any problem don't hesitate to contact me, sorry my english is not very good, good luck in your project.


fix: Coveo search bar feedback

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #118
Test URLs:

Before: https://main--danaher-ls-aem--hlxsites.hlx.page/
After: https://fix-118--danaher-ls-aem--hlxsites.hlx.page/

@duynguyen It looks good from what I can see. I've verified that clicking from recent searches passed the omnibox event and clicking from the suggestions and performing search fires the searchlink event. For the minor issue, we can tackle that in phase 1 as we currently don't use redirect triggers (but are useful so im sure we will use them soon)


Delete deleting-a-repository.md

d   co   repo        creating-and-ma
o
nte  stories    nagging repository
c   /      /              /
s  nt    es          ies

Why:
Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[x] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Kingkul:patch-1

'){#|


This should be renamed to clarify what it is

hive-housekeeping?
...

You could theoretically use it clean up any paths - it's just a thing that stores paths and deletes them. It doesn't have any Hive dependencies.

I look forward to hearing your suggested better name ;)


Dbus error, cannot start on ARM64

I successfully built scrcpy on my Linux L4T device running on ARM64 architecture. The application ran successfully and worked ONCE, but ever since then it has given me issues. Can't remember for the life of me what/if I did anything different on that one successful run.
The screenshot attached displays the error I am currently seeing.

https://forum.odroid.com/viewtopic.php?t=30652

A workaround for the issue is to kill ibus (not dbus):
sudo killall ibus-daemon

@rom1v Perfect! This worked. Guess I should have searched without "scrcpy" as a keyword. I hadn't considered it might be a Linux distro issue. Thanks for the help.


Climber updates and shooter updates post practice

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Associated Issue(s)
Issue: <#X or issue-XX > [REMOVE THIS WHEN DONE Describe the issue you're working on here so it ties to the issue and Kanban (IMPORTANT FOR TRACKING). Make sure to create an issue if one doesn't already exist! ]
Steps to Test
[ Describe how to run your AUTOMATED TESTS and any manual tests that may be need to prove your fix/feature REMOVE THIS WHEN DONE]

[First Step]
[Second Step]
[and so on...]

Changelog
[ A brief description of the problem statement. REMOVE THIS WHEN DONE ]
What?
[ Explain the technical implementation of what you're doing. REMOVE THIS WHEN DONE ]
Why?
[ Explain why you're making this change and what benefits from it. REMOVE THIS WHEN DONE ]

Meging with verbal approval from @ChrisHirsch and @raylmorris


checkstyle integration does not escape properly in XML

our last delivery has an issue with XML specific characters in the attribute values.
A rework is needed either by switching to a XML-lib which supports escaping, or the escaping has to be done on the passed string values.
PR is in preparation.

Hi Nik,
would be great if you could quickly create a new version, so we can now use it for all our JS reports in our CI environment, which is based on checkstyle reportings.
The extension now, supports also to be easily extendible about any new characters, which "maybe" missing for the XML encoding in the future.


[release-1.0] Extract fbc sources code to separate repository

cherry-pick of #395

/lgtm
I never noticed the failure by openshift-cherrypick-robot yesterday  https://github.com/securesign/secure-sign-operator/pull/395#issuecomment-2139540731


fix crying classnames

@nelliejellie  Use the screen route constants for the name of screens when you are performing routes.


Kan geen milkshake bestellen

Suggestie: neem een menu mee bij de fest.

Drinks and icecreams are not on the takeaway menu's, but they might be listed on posters.. Legible photos are appreciated!

Maybe it's an idea to add an openfield, so i can order my "Broodje Bamischijf".

An open text field would complicate things extremely, as that would involve managing Item instances dynamically instead of at migration-time. I've decided against jumping those hoops.


Problem with p8 key string

Salam,
When I try to provide a string instead of a file path to the key option as p8 file, I got this error
Failed to generate token: error:0908F070:PEM routines:get_header_and_data:short header
It works when I pass a file path but not the content of string, I copied the content of the file and used it but didn't work, even It contains the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- like in this issue https://github.com/node-apn/node-apn/issues/594

I have the same issue. Did you find any solution? :)

@bfelbo I created a function to fix the key by deleting all spaces and adding \n after --BEGIN PRIVATE KEY----- and before -----END PRIVATE KEY-----, I Will provide with the function asap.

Great, thanks @Mdhaker !

I've tried that, but can't seem to get it to work. It'd be amazing if you could share your function!

You can easily do this in VS Code:

Place cursor on column 1 of line 3 of your PEM file.
Expand cursor downwards to the last line containing the endocded data. Either by pressing and holding the middle mouse button or using Ctrl+Alt+DownArrow.
Press backspace. This will reduce the block to a single line.
Add a \n after line 1 and 2.
Remove the remaining line breaks.

@bfelbo sorry for  beeing late, this is my function :
export let fixAPNSp8Key = (key) =>
    {
        key = key.replace(/ /g,'');
        let token = key.split("-----")[2];
        if(token.length > 150)
            return `-----BEGIN PRIVATE KEY-----\n${token}\n-----END PRIVATE KEY-----`;
    }