open() failed: Operation not permitted

Using Realm (0.98.1)
Facing following crash, no specific device, happening on all iPhones. iOS 8+.
After calling +[RLMRealm defaultRealm] got the stacktrace:
Thread : Fatal Exception: RLMException
0  CoreFoundation                 0x180f65900 __exceptionPreprocess
1  libobjc.A.dylib                0x1805d3f80 objc_exception_throw
2  app                            0x100422f0c RLMSetErrorOrThrow(NSError*, NSError* __autoreleasing*) (RLMUtil.mm:314)
3  app                            0x100415714 RLMRealmTranslateException(NSError* __autoreleasing*) (RLMRealm.mm:273)
4  app                            0x1004159e4 +[RLMRealm openSharedRealm:error:] (RLMRealm.mm:282)
5  app                            0x100415d60 +[RLMRealm realmWithConfiguration:error:] (memory:4212)
6  app                            0x100414f74 +[RLMRealm defaultRealm] (RLMRealm.mm:162)

Realm configuration initialized on app creation, before everything.
All crashes seems to be happening after a push notification tries to awake the app.
Any idea on why this is happening?

Seems to be duplicated as #1874, but the solution doesn't seems to be the best, something better to do?

@dchohfi could you please share the exception message? Initializing a Realm can fail for a number of reasons. See our docs on Error Handling for details.

Hey @jpsim thank you for the fast reply, it seems to be related to iOS file protection defined by the application.
Now I'm removing the file protection on all realm files as you described here:
https://github.com/realm/realm-cocoa/issues/1571#issuecomment-77901737
Just curious to know when I should be calling this?
Before or after calling the first +[RLMRealm defaultRealm]?

The file protection attributes can only be set on existing files, so you need to do that after initially opening the Realm file.

@jpsim cool, makes sense. Do you think it's appropriate to have a single method on realm configuration to do that for us? Also doing the lazy creation logic. PR's are accepted? Or this is like that by design?

I think it's worth improving this use case, and others like it. We could expose a fileAttributes property to RLMRealmConfiguration that would apply attributes to all Realm-related files.
Another option would be to add a getter to RLMRealmConfiguration that would return all auxiliary file paths. This would be more flexible, also allowing other operations on all Realm files like moving or deleting them.
I'm curious to hear what @tgoyne and @bdash would think of that.

@jpsim cool, just curious to know how the auxiliary files are created and if they are deleted and created again. If they are, do I need to change the NSFileProtectionKey every time? And how are we notified about those files creation?

The file protection attributes have to be set on the containing directory and not the individual files, as some of the files are created lazily and thus otherwise can't be created if the device is already locked when the first commit is made.

@tgoyne but this could easily be fixed with something like @jpsim said, a fileAttributes attribute that will replicate the logic to all the realm files created. Without needing to know about how realm create files. Or not?

Realm needs to be able to create files in the same directory as the Realm file while the device is locked if you want to be able to use the Realm file while the device is locked. Creating files while the device is locked requires that the containing directory have file protection disabled.

@tgoyne so we don't actually need to remove file protections on auxiliary file paths if I have removed on the containing directory?

Yes, files inherit their default file protection settings from the containing directory.

From the sound of it, the immediate fix for this would be to simply set the file attributes property of the parent directory. I might check our docs to make sure this is highlighted.
I like the idea of adding a file attributes property to RLMRealmConfiguration to handle the protection properties of all files related to a Realm instance. It should be possible on the NSFileManager level to create new files even if the device is locked.
@dchohfi Did you end up getting it working in the end?

Hey @TimOliver, honestly saying? I don't know if this fixed or not, the crash was related to my file protection that was activated on the app. But how we discovered that was tricky.
We found a crash on crashlytics during beta release and had to identify who was the person who had that, he said that never faced any crash during the beta and we realised that was something related to the notification that awakes the app in background.
Now we added the flags and released a new version following what we spoke in this thread. And are going to see if fixed or not, as replicating is quite difficult.
That is why I think some attribute on RLMRealmConfiguration or even a warning (if possible) saying that the file protection is activated, just to show a straightforward solution to the problem, could be easier for devs.

Also, as you guys recommend to remove file protection from realm files, could be this the default behaviour and let the user change if needed?

@TimOliver:

It should be possible on the NSFileManager level to create new files even if the device is locked.

I don't think that this is actually possible. If the directory is protected, it should be encrypted when the device is locked. If NSFileManager could bypass that, this would be a security loophole.

I like the idea of adding a file attributes property to RLMRealmConfiguration to handle the protection properties of all files related to a Realm instance.

Setting the default file attributes for newly created files won't be enough though. I think we would need to check the parent directory instead. One problem here might be that there could be likely any arbitrary other user files adjacent to the default Realm path, which should be better protected in some cases. So just removing the protection by default might not be the best solution. (Perhaps we should think about scoping the default Realm path by another directory element, so that it is easier to workaround this case?)
We could also have a property backgroundAccessRequired on RLMRealmConfiguration, disabled by default, but when enabled Realm would fail gracefully directly on first open with instructions how to make sure that the parent directory is not protected. As this is a security critical API design question, we should make sure that the behavior doesn't imply implicit side-effects, which are badly understood but cause risk of exposing sensitive user data accidentally.

@mrackwitz great points, the backgroundAccessRequired property seems to be helpful to detect issues before submitting to beta or AppStore.

I just created #3223 and #3225 to address these points, as discussed with the cocoa team this morning in our weekly meeting.

I think, we can close this in favor of the issues created by @jpsim.


Display open issues before closed ones in TRSS possible issues

In TRSS possible issues, we display the issues based on repos, e.g. this table shows all related issues in aqa-tests repo.
In the table for each repo, we would like to display the open issues on top, since they would be more relevant.
FYI @smlambert @llxia

@momanmalik could you take a look at this issue? Thanks


Create a 'Package' module

This is a class that exposes (static?) methods to the frontend to generate the application package and "give" It to the user.
The interface could be somethings like this:
const package = new Package(type, config);
package.serveFiles('zip/github'); // uploads to GitHub or returns a Zip file

Where type is one of location/barcode/pattern/ntf and each one can have It's ownconfig:

barcode

{
  matrixType: 'see exported consts',
  value: 123
}

pattern

{
  image: 'data URI string',
  ratio: 0.5,
  size: 128,
  color: '#000000'
}

location

{
  lat: 99.7766
  lon: 77.8844
}

Internally, the module should:

use MarkerModule to generate marker image (for barcode and pattern) and patt file (only for patter)
use the handlebar.js wrapper to generate the HTML
input the file in a provider and return the results

I think both GitHub and Zip providers will need adjustments for handling 3d models, but binary files should be already sort-of implemented.

As for now, for the MVP of this project, we are not supporting barcode.
What we are supporting now is:

markers (pattern)
location based.

I suggest to create two different methods, one is serveGithub, the other serveZip.
The function to create the package should be the one, apart from the later phase of serving.

Marker pattern
The final package should contain these files:

index.html file from templates (generated with PatternPackage)
AR asset file (uploaded by user)
full marker image with border (generated with MarkerModule)
.patt marker file (generated with MarkerModule)

Generate HTML
PatternPackage.generateHtml() requires these parameters:

AR asset type (to pick the right template, chosen by user), we currently support:

3d model
image
audio
video

relative path to the .patt file, used in the template (we could hardcode this, eg. /assets/marker.patt)
relative path to the AR asset file, used in the template (we could hardcode this based on the asset type, eg. /assets/ar-asset.gltf)
could require more in the future, eg. scale and rotation

Generate marker image with border
MarkerModule.getFullMarkerImage() requires these parameters:

original image as dataURI string (uploaded by user and converted by frontend)
ratio of border size over image size as float number (chosen by user)
full marker size in pixels as integer (chosen by user)
color of border as hex color (chosen by user)

Generate marker patt file
MarkerModule.getMarkerPattern() requires one parameter:

original image as dataURI string (uploaded by user and converted by frontend)

Example interface
An example of usage could be this:
// create package for marker pattern with 3d model
const package = new Package({
  arType: 'pattern',
  assetType: '3d',
  assetFile: modelFile, // File object from form
  markerImage: MarkerModule.getFullMarkerImage(imageData, 0.5, 512, '#000'),
  markerPatt: MarkerModule.getMarkerPattern(imageData)
});

// generate zip file as blob
const packageFile = package.serveZip({
  type: 'blob',
  compress: 7
});

that's great


Increase maximum resolution from 4096 to 8192

Useful on Apple headsets, but maybe it'll be useful on Meta headsets at some point.

should be set now


stablelm-zephyr-3b-GGUF model fails to load

https://huggingface.co/TheBloke/stablelm-zephyr-3b-GGUF
Both on iphone and mac, so it must be a problem with the program
no descriptive error message just "model failed to load"
Mistral 7b works fine.

Hi. I downloaded the Q4_K_M version and I have everything working. Could you please send me a screenshot of the settings?

just default llama settings

any logging i can send you?

Are you using application version 0.8.1?

okay I got it to work with 0.8.1 good tip! (i had 0.8.1 on phone from testflight but mac version was from app store).
Question is how to set up prompt format. E.g. for this model it says:
<|user|>
List 3 synonyms for the word "tiny"<|endoftext|>
<|assistant|>
1. Dwarf
2. Little
3. Petite<|endoftext|>

https://huggingface.co/TheBloke/stablelm-zephyr-3b-GGUF#usage
Prompt, reverse prompt, special, BOS, EOS
How can you set these up?

This is what I used, but not sure if how your app would add <|endoftext|>
<|user|>
{{prompt}}<|endoftext|>
<|assistant|>

There is EOS (End-of-sequence?) switch but doesn't let me specify what that token looks like.

<|user|>
{{prompt}}<|endoftext|>
<|assistant|>

Try using this template with:
BOS - false
EOS - false
Special - true
reverse - <|endoftext|>
I'll post a wiki about the options later.

Yes that would be great! Because these options don't always work perfectly.
e.g. "You have 5 apples. You eat 2 and give 1 to a friend. How many apples do you have left?"
You start with 5 apples.
You eat 2, so you have 5 - 2 = 3 apples left.
Then you give 1 to a friend, so you have 3 - 1 = 2 apples left.
#### 2
The answer is: 2

I tried in LM Studio and that ending shouldn't be there.
this looks like a prompt splitting issue -----> #######


ticdc lag reached 11min when run ha_ticdc(owner)_to_tikv(random)_network_partition last for 10m

What did you do?
http://perf.pingcap.net:3000/d/C1q8KDMVz/ha-test-summary?orgId=1&var-tag=All&var-case_name=All&var-testbed=endless-ha-test-tps-1658429-1-754
http://perf.pingcap.net:3000/d/WOw1JWmVk/ha-test-case-detail?orgId=1&refresh=10s&var-case_id=2820535
run ha_ticdc(owner)_to_tikv(random)_network_partition
What did you expect to see?
What did you see instead?
ticdc lag reached 11min when ha_ticdc(owner)_to_tikv(random)_network_partition last for 10m

Versions of the cluster
git hash
92cc5155c8224ae787898379016e1a7dfc4649b7
current status of DM cluster (execute query-status <task-name> in dmctl)
No response

/remove-area dm
/area ticdc

/assign overvenus

/severity major

/unassign @overvenus
/assign @hicqu

the behavior is expected  by the design.
/close

There is no mitigation of this issue.


Remove init script

The init script overwrites the one provided by the activemq RPM package and renders activemq non-functional as the init mechanism has been rewritten in 5.9.

I have the latest version of this module, 0.4.0, and it still does that. see:
https://tickets.puppetlabs.com/browse/MODULES-1459

Same for me, as previous commenter.
Running puppetlabs-activemq 0.4.0 on RHEL 6.7, with AMQ 5.9.1-2.

@pdxfixit You need to pass the version parameter to class { 'activemq': }, so something like
class { 'activemq':
  version => '5.9.1-2',
}

should do what you're looking for

t/y!


I need a calendar and date-time picker to start a task on a given time and date

Select one ...  (check one with "x")
[ ] bug
[x ] feature request
[ ] enhancement

Expected behavior
I was not able to find a component for datetime or calendar. If I've missed, please do share.
Actual behavior

Reproduction of behavior

Environment details

Angular version: 2.0.X

Clarity version:

OS and version:

Browser: [all ]

Check and follow this issue:
https://github.com/vmware/clarity/issues/474

I went through the thread and there's a chance I've misunderstood but it seems like it is under progress?
Can I use it as is? I think the Date & Time Picker would be ideal for me.
Is it possible to share a code snippet of using it. Thank you
use when the user needs to input a date and time value for something
has all of the normal functionality of Date and Time Picker combined into one
used with one input field
updating either component will update the value in the input field

When are you going to release this feature?

This seems a duplicate of #474. Closing based on that.


Unit of measurement setting must be renamed

Must be renamed to Measurement System: with options being Metric & Imperial.
Then list all the units of measurement i.e mph or km/h, in or mm & F° or C°

https://github.com/danielfoord/sunshine/commit/68497caa23a9a82c3db2bae945df2695e227b047


Eventually construct doesn't seem to work in async suites

I've run into issues where using eventually in an Async suite fails in various ways, sometimes differently depending on the version of Scalatest.
Rather than enumerating them all here, I've pushed up a repo that reproduces the issues for versions 3.0.9, 3.1.4, and 3.2.9: https://github.com/alexklibisz/scalatest-eventually-async-bug
At the very least, it would be useful to know the following:

How should calling Await.result() on a future inside an eventually block inside an async suite behave?
How should mapping over a future inside an eventually block inside an async suite behave?

Here's a print out of the test results:
Test for scalatest 3.0.9
[info] EventuallyAsync30xSpec:
[info] - Await with default EC *** FAILED ***
[info]   The code passed to eventually never returned normally. Attempted 44 times over 5.032146472 seconds. Last failure message: Futures timed out after [100 milliseconds]. (EventuallyAsync30xSpec.scala:18)
[info] - map with default EC *** FAILED ***
[info]   1 was not equal to 3 (EventuallyAsync30xSpec.scala:28)
[info] - Await with global EC
[info] - map with global EC *** FAILED ***
[info]   1 was not equal to 3 (EventuallyAsync30xSpec.scala:45)
[info] Run completed in 5 seconds, 347 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 1, failed 3, canceled 0, ignored 0, pending 0
[info] *** 3 TESTS FAILED ***
[error] Failed tests:
[error]         EventuallyAsync30xSpec
[error] (scalatest30x / Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 7 s, completed Aug 18, 2021, 1:15:48 PM

Test for scalatest 3.1.4
[info] EventuallyAsync31xSpec:
[info] - Await with default EC *** FAILED ***
[info]   java.util.concurrent.TimeoutException: Futures timed out after [100 milliseconds]
[info]   at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:259)
[info]   at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:263)
[info]   at scala.concurrent.Await$.$anonfun$result$1(package.scala:220)
[info]   at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:57)
[info]   at scala.concurrent.Await$.result(package.scala:146)
[info]   at EventuallyAsync31xSpec.$anonfun$new$3(EventuallyAsync31xSpec.scala:20)
[info]   at org.scalatest.enablers.Retrying$$anon$2.org$scalatest$enablers$Retrying$$nestedInanon$2$$tryTryAgain$1(Retrying.scala:84)
[info]   at org.scalatest.enablers.Retrying$$anon$2.retry(Retrying.scala:137)
[info]   at org.scalatest.enablers.Retrying$$anon$2.retry(Retrying.scala:76)
[info]   at org.scalatest.concurrent.Eventually.eventually(Eventually.scala:402)
[info]   ...
[info] - map with default EC
[info] - Await with global EC *** FAILED ***
[info]   1 was not equal to 3 (EventuallyAsync31xSpec.scala:38)
[info] - map with global EC
[info] Run completed in 469 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 2, failed 2, canceled 0, ignored 0, pending 0
[info] *** 2 TESTS FAILED ***
[error] Failed tests:
[error]         EventuallyAsync31xSpec
[error] (scalatest31x / Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 1 s, completed Aug 18, 2021, 1:17:33 PM

Test for scalatest 3.2.9
[info] EventuallyAsync32xSpec:
[info] - Await with default EC *** FAILED ***
[info]   java.util.concurrent.TimeoutException: Futures timed out after [100 milliseconds]
[info]   at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:259)
[info]   at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:263)
[info]   at scala.concurrent.Await$.$anonfun$result$1(package.scala:220)
[info]   at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:57)
[info]   at scala.concurrent.Await$.result(package.scala:146)
[info]   at EventuallyAsync32xSpec.$anonfun$new$3(EventuallyAsync32xSpec.scala:20)
[info]   at org.scalatest.enablers.Retrying$$anon$2.org$scalatest$enablers$Retrying$$nestedInanon$2$$tryTryAgain$1(Retrying.scala:85)
[info]   at org.scalatest.enablers.Retrying$$anon$2.retry(Retrying.scala:141)
[info]   at org.scalatest.enablers.Retrying$$anon$2.retry(Retrying.scala:77)
[info]   at org.scalatest.concurrent.Eventually.eventually(Eventually.scala:415)
[info]   ...
[info] - map with default EC
[info] - Await with global EC *** FAILED ***
[info]   1 was not equal to 3 (EventuallyAsync32xSpec.scala:38)
[info] - map with global EC
[info] Run completed in 639 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 2, failed 2, canceled 0, ignored 0, pending 0
[info] *** 2 TESTS FAILED ***
[error] Failed tests:
[error]         EventuallyAsync32xSpec
[error] (scalatest32x / Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 3 s, completed Aug 18, 2021, 1:19:35 PM

@alexklibisz The Eventually in 3.0.9 does not support async, it just uses a blocking way to retry by doing a Thread.sleep to wait, 3.0.9 first failure I think is due to the Future is never ready as it is queued behind the async test future by SerialExecutionContext, the default execution context that is implemented using a queue running directly in the current thread.
Starting 3.1 Eventually delegates the retrying task to Retrying, which does support Retrying[Future[T]] and Retrying[T], Retrying[T] still uses the old blocking way if I remember correctly.  In your case the test that uses Future.map will get Retrying[Future[T]] because the return type of the Eventually block is a Future, but for the Await.result one it will get Retrying[T] because the return type is just Assertion, I am surprise the Retrying[T] is not working, I'll try to dig deeper to see why.

Ok I found the reason, it will resolve to Retrying[Future[T]] when there's an implicit execution context in scope:
https://github.com/scalatest/scalatest/blob/3.2.x-new/jvm/core/src/main/scala/org/scalatest/enablers/Retrying.scala#L76
Perhaps the quickest answer to your case is that the Await.result tests shouldn't be in the async test suite, which is designed for tests that return Future, regular test suite is probably the better home for Await.result.

@alexklibisz Ok I think I did find a bug in Retrying[Future[T]] implementation, it failed pre-maturely without retry when the error is thrown from the function directly not from the Future.  The first test behavior should be the consistent with what 3.0.9 does, which it should keep retry until it timeout (because it is queue after the current async test).  I'll submit a PR for that.
Cheers.

Thanks for the quick responses! I'm glad the examples helped.

Perhaps the quickest answer to your case is that the Await.result tests shouldn't be in the async test suite, which is designed for tests that return Future, regular test suite is probably the better home for Await.result.

I agree -- using Await in an Async spec is an anti-pattern and it's fine if it doesn't work well in all cases.
When you say Retrying[Future[T]], are you referring to the pattern of mapping over a future inside an eventually/retrying block?
Also, no huge rush on this. We were able to work around it in the case we found it by switching to a non-Async suite.

@alexklibisz Er, I am sorry I am not sure if I understand your question correctyly, here's some description on how it works, the eventually will take a type class Retrying[T] here which will do the real job of retrying:
https://github.com/scalatest/scalatest/blob/3.2.x-new/jvm/core/src/main/scala/org/scalatest/concurrent/Eventually.scala#L414
When there's an implicit execution context in scope, it will use Retrying[Future[T]] produced here:
https://github.com/scalatest/scalatest/blob/3.2.x-new/jvm/core/src/main/scala/org/scalatest/enablers/Retrying.scala#L76
which will retry Future[T] when it fails, for other cases, you'll get a Retrying[T] here:
https://github.com/scalatest/scalatest/blob/3.2.x-new/jvm/core/src/main/scala/org/scalatest/enablers/Retrying.scala#L148
which is non-async and will block with Thread.sleep.
Hope this helps.

@alexklibisz Fyi I submitted a minor fix here so when the exception is thrown in the code to produce Future itself fails with exception:
https://github.com/scalatest/scalatest/pull/2061
This will make your test 1 has the consistent behavior as 3.0.9.

Thanks @cheeseng . So with this fix, would the following pass?
"map with default EC" in {
    val it = (1 to 10).iterator
    def next(): Future[Int] = Future(it.next())
    eventually {
      next().map(_ shouldBe 3)
    }
  }

Thanks @cheeseng . So with this fix, would the following pass?
"map with default EC" in {
    val it = (1 to 10).iterator
    def next(): Future[Int] = Future(it.next())
    eventually {
      next().map(_ shouldBe 3)
    }
  }

Yes I think it should.

Yes, I'll re-run my original repo tests. Stand by...

@alexklibisz Thanks for verifying!


cannot find module ./build/Browser.js

cannot find module ./build/Browser.js when im running
node clickSelector.js, its says it cannot find the module ./build/Browser.js
    throw err;
    ^

Error: Cannot find module './build/Browser.js'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/fusionx1/Projects/pantheon/automation/newrelic_capture/simple-headless-chrome/index.js:3:18)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

I found the culprit, I replaced line 3 of index.js
module.exports = require('./build/Browser.js')
with this:
module.exports = require('./lib/Browser.js')

@fusionx1 Did you download the module from NPM or directly from Github?
I just tested this and it's working. I think that if you don't have the /build folder in your simple-headless-chrome directory, that may be because you downloaded it from Github where the build directory was ignored by default in the .gitignore file.
I'm uploading now those files in the new version, but I recommend you to use it directly from NPM.
Cheers!
Luciano


release 2.0.2 #2

Actual release fixing up #659

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 71.465%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1969

Relevant Lines:
2532

💛  - Coveralls


Error upgrading pip in xenial (crouton)

Please paste the output of the following command here: sudo edit-chroot -all

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20200724165050~master:08dac970
release: xenial
architecture: i386
xmethod: xorg
targets: xfce
host: version 9334.72.0 (Official Build) stable-channel x86-alex_he
kernel: Linux localhost 3.8.11 #1 SMP Wed May 17 17:49:46 PDT 2017 i686 i686 i686 GNU/Linux
freon: yes
Please describe your issue:
Hello to you all! I'm trying to upgrade pip so I can run things in Python (mostly for university math, numpy and scipy stuff) and I downloaded pip and python setuptools via apt and everything went great in both Python and Python3 (I ran simple codes perfectly).
However, when I try to install numpy and scipy I get an error saying something like "please ugrade pip" (You should consider upgrading via the 'pip install --upgrade pip' command.), and indeed: there's pip 21 out there and I only got pip 8 (!). So I try to upgrade pip with that very same code (with sudo) and I get this error:
Collecting pip
  Using cached https://files.pythonhosted.org/packages/52/e1/06c018197d8151383f66ebf6979d951995cf495629fc54149491f5d157d0/pip-21.2.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-hJjmqm/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hJjmqm/pip/
You are using pip version 8.1.1, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Based on my research I think it's a path related issue. I have my packages right but pip can't find them... and I have reasons to think this is related to the mystic paths used by the chroot. Any ideas? Thank you!
If known, describe the steps to reproduce the issue:

Please do not open duplicate issues!
You opened #4568, please close on of the issues.

See ☝

Sorry, internet went crazy and I thought the first post was never published. My bad!


Delete session.json

Signed-off-by: Spicy4<EMAIL_ADDRESS>

.....

Good


⚠ Bofrost.lu has degraded performance

In a561423, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 915 ms

Resolved: Bofrost.lu performance has improved in 73b94b0.


Cleanup bootstrap ca/certs init

Please provide a description of this PR:
the target is to make the code more readable, this includes:

args cleanup
function abstraction

@lei-tang @shankgan

@hzxuzhonghu: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
fed590fa03685b65e30ec99245fc1a6bbe1b603e
link
true
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
fed590fa03685b65e30ec99245fc1a6bbe1b603e
link
true
/test lint_istio

unit-tests_istio
fed590fa03685b65e30ec99245fc1a6bbe1b603e
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


ARROW-15819: [R] R docs version switcher doesn't work on Safari on MacOS

Updates the code used in the version switcher to be compatible with Safari, and adds extra docs to the version switcher.
Recommendations for reviewing this PR:

You could try building the pkgdown site locally, but the problem there is that the code for constructing the URLs for the dropdown doesn't actually work when loading the page from a file like that
What I do is navigate to a deployed page (I used https://arrow.apache.org/docs/3.0/r/ as there is no version dropdown on that version of the docs) and then open us the JS console in my browser and copy and paste the contents of extra.js into there - you'll then see the dropdown appear and can check the links point to the correct places
The thing we want to check for on this PR is that the dropdown is generated in Safari on MacOS - it wasn't before due to an incompatible regex

Checked the dropdown in Safari on my M1 and it works well 👍

Ran the JS code

Selected the dev version

Had to screenshot the dropdown menu separately =)

I can confirm the dropdown works on my machine (M1 Mac) too.

Thanks @AlenkaF and @dragosmg for testing this!


add: new directory Math

Describe the algorithm/code
This 'Math' directory will contain all the python implementation of mathematics functions.
I will also add some methods like: Bisection Method and Sieve of Eratosthenes.
Do you want to work on this feature?

[X] I am willing to implement this feature.

I am willing to implement this feature

Sure thing @kushchoudhary98 !
You can create the issues for Bisection Method and Eratosthenes directly. Do create those issues and lmk I will assign them to you.
Closing this now as only adding a new directory wont be a genuine contrbution towards hacktoberfest


Fixed auto setup internal link in docs

Coverage remained the same at 96.025% when pulling ca6b18618c43c843349d52d969f2e9c8bbd3baae on dasdhrub95:patch-1 into 22ead871eee2d6bd9d096158d5237403d9da4f38 on nephila:develop.

Coverage remained the same at 96.025% when pulling ca6b18618c43c843349d52d969f2e9c8bbd3baae on dasdhrub95:patch-1 into 22ead871eee2d6bd9d096158d5237403d9da4f38 on nephila:develop.

@dasdhrub95 thanks!


Protect Your API Proxy by Adding Application Key Verification

Tutorials: https://developers.sap.com/tutorials/hcp-apim-verify-api.html
Hi,
I've done all the steps but I'm stuck at step 4 despite my several attempts to answer the system displays that it's wrong.
Thank you for your help.

@Karunaharan please respond to this user's feedback.  Thank you.

Hi,
I found the answer the property  is STREAM.


ADFS 2016 - Correct claim type URIs for multi MFA choice

All the claim rules examples are incorrect because of incorrect claim type URIs. They were starting with https://... instead of http://.... Note that although they look like URL, they are not. They are only unique identifiers for the claim types using a URI format. They do not have nor need an s.

Learn Build status updates of commit 8705627:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

WindowsServerDocs/identity/ad-fs/overview/whats-new-active-directory-federation-services-windows-server.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Ah, that's why the claim rule did not work! This will prevent a lot of troubleshooting for many customers 🙏🏻

#assign: @robinharwood
#assign: @Xelu86
Can you review the proposed changes? New content should be submitted via the private repo to benefit from staging, validation, and Acrolinx checks. Let us know if you'd like assistance with moving the commits into the private repo.
Note that the file name needs to be revised to meet the file naming guidelines and the new article should be added to a TOC.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Thank you for submitting this issue.  Unfortunately, due to high volumes I was unable to respond to this in a timely manner.  At this point, I am going to close this due to it's age and the possibility that it may have been addressed.  If this is still a problem, please consider submitting a new issue.  Thank you.
#please-close


fix: exclude data uri from network events

fix #267

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #268 opened

Start Time: 2021-05-04T17:50:56.207+0000

Duration: 12 min 25 sec

Commit: e56773623f67f3b78cd556d1bf6261563f61bec9

Test stats :test_tube:

Test
Results

Failed
0

Passed
82

Skipped
0

Total
82

Trends :test_tube:


Fixed code execution using SafeLoader in simiki

📊 Metadata *
Insecure YAML deserialization
Bounty URL:  https://www.huntr.dev/bounties/1-pip-simiki/
⚙ Description *
Simiki is a simple wiki framework, written in Python. which is vulnerable to Arbitrary Code Execution.
💻 Technical Description *
Vulnerable to YAML deserialization attack caused by unsafe loading.
🐛 Proof of Concept (PoC) *
exp.py
import os
#os.system('pip3 install simiki')
from simiki import config
payload = """cmd: !!python/object/new:type
  args: ["z", !!python/tuple [], {"extend": !!python/name:exec }]
  listitems: "__import__('os').system('xcalc')"
"""
open('config.yml','w+').write(payload)
config.parse_config('config.yml')

pip3 install simiki

🔥 Proof of Fix (PoF) *
Used a more safer loader(SafeLoader) instead of FullLoader.
👍 User Acceptance Testing (UAT)
All Ok, No breaking changes introduced.  :)

👋 Hello, @tankywoo - @Asjidkalam has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above.
Ultimately, you get to decide if the fix is 👍 or 👎. If you are happy with the fix, please write a new comment (@huntr-helper - LGTM) and we will open a PR to your repository with the fix. All remaining PRs for this vulnerability will be automatically closed.
If you have any questions or need support, come and join us on our community Discord!
@tankywoo & @Asjidkalam - thank you for your efforts in securing the world’s open source code! 🎉


Develop

Remove AssociatedType from protocol as it is constraining in storing failed requests.

Current coverage is 0.00%

Merging #7 into master will not affect coverage as of 809e3be

No diff could be generated. No reports for #7 found.
Review entire Coverage Diff as of 809e3be

Powered by Codecov. Updated on successful CI builds.


Changes to Dialog buttons (layout and color). Fix for #1174

changes the order in which the buttons appear, and make delete button red with css. #1174

hey @ewpatton

I think in red with no shadow is the most legible. It still does not look as nice as material, mostly because of the slight emboss in the button, button borders and shadow, and so forth, that makes it all look a bit 2010. But that applies to pretty much the whole look and feel and it's no fixable in just one button.
What you (and others, please chip in!) think?

@josmas I agree with you on all points. Let's go with the version without shadow for now, and we can think longer term about how to migrate the style globally to something like Material UI.

sounds good @ewpatton
I've amended and pushed again; will change labels here now.

@josmas Thanks, although looking back at the original issue #1174, it looks like there is one place where we do need to make the change, which is in createDialog in YaBlocksEditor. The buttons are in the wrong order, and the coloring is not applied for the delete scenario. Since multiple paths through blocks editor go through createDialog, it might make sense to extend this with another parameter destructive that, if true, styles the button.
Note that the dialog in question is triggered by dragging blocks to the trash can.

@ewpatton I was wondering where that screenshot came from! I thought it could be a photoshop thing, cause grepping ode_messages didn't show any matches. Got it placed now, will make the changes. Thanks!

Is #1173 related?

@ColinTree yeah, that second screenshot in #1173 is the one that I am changing at the moment.
The fact that they are two different dialogs for the same thing I would consider as a separate issue (although we should also do something about it!). Same for enter + scape key behaviour.

 I also set as destructive the cancel button for the emulator connection and hard reset options. Let me know what you think.

hey @ewpatton just pushed that last change; Cancel button not red anymore.

@ewpatton sorry about that! missed it completely. Pushed back up now. Thanks!


Message handler

@JasonMWhite FYI here's the proposed implementation I'll be building my windowing functions off of.
Proposed in apache/spark#7410

I don't plan on merging this, just using it to do my developing until the original PR gets merged into master


⚠ Bofrost.lu has degraded performance

In 1d8fbcf, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2231 ms

Resolved: Bofrost.lu performance has improved in ae32707 after 37 minutes.


Revise Service concept, part 13

Split out from https://github.com/kubernetes/website/pull/30817
View that PR to see these changes in context.

revise a section of the Service concept [preview; original]

These changes reorganize the structure of the page to provide a new focus on the 4 types of Service. These changes are the ones that come after what you can see in #38562.

I simplified this PR, putting some of the changes into https://github.com/kubernetes/website/pull/39499 instead.

Further revised - I think it's ready for review again.
I can't see an easy way to make this change smaller and still be useful to merge in one go.

/approve

/lgtm


Add community fund donate button to send page

src/qt/NavCoin4.creator.user should not be included in the pull request

we decided against it as we wanted to save having to remake the entire sendcoinsentry/sendcoinsdialog ui and it's implementation. Also allows for specific inputs to be spent to community fund

i'm not sure if it is worth it to overcomplicate the send interface

i'd alternatively suggest adding a button in the address book dialog

@dy5es41 We need to cut the RC for 4.5.2 today. Is this going to be ready? Jump on discord to discuss if you are able.

should this be closed?


fix: article metadata mobile issues & hide mini-toc section on mobile EXLM-286, EXLM-293

Please always provide the Jira Issue your PR is for, as well as test URLs where your change can be observed (before and after):
Jira ID: https://jira.corp.adobe.com/browse/EXLM-286
https://jira.corp.adobe.com/browse/EXLM-293
Test URLs:

Before: https://main--exlm--adobe-experience-league.hlx.page/docs/journey-optimizer-learn/tutorials/introduction-to-journey-optimizer/mobile-capabilities-for-developers
After: https://bugfix-exlm-286-article-tag--exlm--adobe-experience-league.hlx.page/docs/journey-optimizer-learn/tutorials/introduction-to-journey-optimizer/mobile-capabilities-for-developers

Please merge with latest main and see if the performance score changes.

I think this particular page and other pages where video is loaded seems to have some performance issues as it is blocking the main thread. We may have to look at it.
cc: @ahmed-musallam


Export the psd in cms.SignedData

hi could please export the psd filed in
type SignedData struct { 	psd *protocol.SignedData }
or provide a function that return this filed

I think the intent was to keep the packages separate, but I can see how it would be useful to expose the *protocol.SignedData. I would accept a pull request changing the struct to
type SignedData struct {
  *protocol.SignedData
}

i  created a pull request thanks in advance


https://create.roblox.com/dashboard/creations/experiences/2

Changes

Checks
By submitting your pull request for review, you agree to the following:

[X] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
[X] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
[X] To the best of my knowledge, all proposed changes are accurate.

Ol

Ola


Python wrapper should return some kind of mapping from integer material ID to string material name

Hello there,
This obj loader looks great. As far as I can tell though, there there is a subtle design oversight in the Python wrapper.
For each face, the Python wrapper returns an integer material ID. The Python wrapper also returns a dictionary of materials (i.e., a mapping from string material names to various material properties). But there is no mapping from integer material IDs to string material names.
Suppose some face has a material_id of 1. I have no way of knowing which material properties this material_id refers to, because Python dictionaries are unordered and cannot be indexed with the material ID.
Cheers,
Mike

Python binding was contributed by contributors and was incomplete and not maintained well.

But there is no mapping from integer material IDs to string material names.

I see. we need a mapping of material ID and name pairs
Contribution is always welcome!

@chrisliebert kindly contributed material <-> id pair dict support. This should fix the issue.


Problems to execute

Hi, i was trying yo run your code, we found few errors with new version of tensorflow-gpu, but we solved those problems, and now, the code run, but he just end after run just once, how to make it train network properly, and use the model?
Thanks for your time.

Hi Lieverton,
Thanks for your interest in this code base. We made some updates to
TensorBase last week, and I have not yet had time to work changes in the
MIL model. I will work on it over the weekend and let you know.
Thanks,
Dan
On Tue, Apr 4, 2017 at 10:52 AM, Lieverton Horn<EMAIL_ADDRESS>wrote:

Hi, i was trying yo run your code, we found few errors with new version of
tensorflow-gpu, but we solved those problems, and now, the code run, but he
just end after run just once, how to make it train network properly, and
use the model?
Thanks for your time.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dancsalo/TensorFlow-MIL/issues/2, or mute the thread
https://github.com/notifications/unsubscribe-auth/AIKceJdDAe_UEcXsq6DiSi9lFyLxAg1lks5rsllEgaJpZM4My-iW
.

@Lieverton the model is working properly now with the simple MNIST example. Let me know if you have any further issues.

@dancsalo Thanks a lot!  the new version will be really helpful.


remove STORAGE_HOME_* references and unused configuration doc templates

Description
removes:

STORAGE_HOME_* references, since they don't exist after https://github.com/owncloud/ocis/pull/2739
removes unused configuration doc templates after https://github.com/owncloud/ocis/pull/2708

Related Issue

Motivation and Context

How Has This Been Tested?

test environment:
test case 1:
test case 2:
...

Screenshots (if appropriate):
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)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

:boom: Acceptance test Web-Tests-ocis-smoke-ocis-storage-1 failed. Further test are cancelled...

https://drone.owncloud.com/owncloud/ocis/8727/32/10
querystringify@npm:2.2.0: The remote server failed to provide the requested resource
Response Code: 501 (Not Implemented
what???


feat: change syntax for bindings

- <button type="submit" (onclick: handleClick)>Click me!</button>
+ <button type="submit" bind:onclick={handleClick}>Click me!</button>

This also future-proofs passing data to components (another namespace can be used instead of "bind:").

I have locally tested the changes and they seem to be working.


feat(ionic-react): support Ionic list application template

[ ] make blank template files more readable

[ ] consider pulling out common file merge function

[ ] live test against official Ionic template

[ ] unit tests

[ ] organize by schema.json

[ ] e2e tests

[x] look into implementing template variable
[ ] organize by schema.json

I will be closing this PR for now. This change introduces too many template permutations, and the amount of effort and time to test these different permutations are not worth it right now.


Create codesandbox issue template - need to wait for 1.4.0 and update with dock layout

https://codesandbox.io/s/github/glowbuzzer/glowbuzzer-issue-template


[Feature Request]:  Add a Slide show feature in view trending tab

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
The trending tours images are very thin due to which the UI is not looking good. I want to make a slide show of these trending places and when hovered on these images it will show the blog page button where people could could know more about these places.
Use Case
Better visibility
Improve UI
Benefits
We can add more trending places later in this slide show.
It will enhance user experience.
Add ScreenShots
Now

Feature to be added
https://github.com/user-attachments/assets/fbb7fb89-186f-44b0-8b17-ed49b08aabd1
I want to add this kind of slide show and when user will hover on them the blog page button will appear.
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[ ] I'm a VSOC'24 contributor
[X] I have starred the repository

Hey @DevNandini02, Please complete the other assigned issues first

@itsekta please assign me this issue.

Hey @AsmitaMishra24, you can create a new issues if you want to work on one


PowerToys Bug on Startup

Microsoft PowerToys version
0.51.0
Running as admin

[X] Yes

Area(s) with issue?
General
Steps to reproduce
2021-12-03.txt\
✔ Expected Behavior
Expecting Powertoys to startup and run minimized as standard.
❌ Actual Behavior
Receiving attached error message upon startup.

Other Software
No response

This is fixed in 0.51.1.
Please update your PowerToys installation

Please upgrade to 51.1


Add jsonnet (see jsonnet.org)

I'm not sure this is exactly right but it seems to work.  I don't know how to run the test.

Hi. We're no longer accepting new modes into the main distribution. The recommended way to distribute new modes is to maintain them in their own repository and publish them to NPM as separate packages—see for example the Elixir mode.

Thanks for the tip.  It now lives here: https://github.com/google/codemirror-mode-jsonnet

Cool! Feel free to add it to https://github.com/codemirror/CodeMirror/wiki/CodeMirror-addons.


Cannot run Get-Whiteboard cmdlet with Global Reader role

I see that running the Get-Whiteboard cmdlet requires Global Tenant Admin role.  This cmdlet is a "Get" verb and should be runnable buy a user with the Global Reader role.  Can this be fixed?
https://docs.microsoft.com/en-us/powershell/module/whiteboard/get-whiteboardowners?view=whiteboard-ps

@alexiq - thank you for engaging with the community here for the docs.
I know the product teams are always looking for user feedback and how to make Microsoft Whiteboard better. They keep a close tab on user feedback and it would be awesome if you could add your voice in the Microsoft Feedback Portal: https://feedbackportal.microsoft.com/feedback/forum/e01e264c-1f1c-ec11-b6e7-0022481f8472#.
You might find others have made a similar request that you can add to, or you can open a new one. Let us know here if you do so we can up-vote your request.
Thank you for your contribution to making the docs better! Much appreciated!

Some more information:
https://docs.microsoft.com/powershell/module/whiteboard/

@dariomws, thank you for the recommendation.  I have submitted on the user feedback portal.
https://feedbackportal.microsoft.com/feedback/idea/a044683a-b282-ec11-a81b-6045bd7bf64c
Take care.

@dariomws Thank you very much for the contribution and sharing this explanation. @alexiq Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Mac M1 illegal hardware instruction

I'm on Mac OS Monterey version 12.6
Just pip installed this tool and tried to run it against a wav file and got this error
basic-pitch ~/basic-pitch-output kay_laughing.wav

✨✨✨✨✨✨✨✨✨
✨ Basic Pitch  ✨
✨✨✨✨✨✨✨✨✨

Importing Tensorflow (this may take a few seconds)...
[1]    41863 illegal hardware instruction  basic-pitch ~/basic-pitch-output kay_laughing.wav

I tried adding the --debug-file option to the above command to see if I could get any more info to share but the file was never even created.
Pls let me know what other info would be useful!
Here is the output of pip show
pip show basic-pitch
Name: basic-pitch
Version: 0.2.0
Summary: Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
Home-page: https://github.com/spotify/basic-pitch
Author: Spotify
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: /Users/brian.soraham/miniconda3/lib/python3.9/site-packages
Requires: librosa, resampy, typing-extensions, mir-eval, tensorflow, pretty-midi, scipy
Required-by:

and I'm on python 3.9.7

x86_64 tensorflow has this bug,
you can use arm64 tensorflow

Also having trouble with this!

Hi @briansorahan, thank you for flagging this! Are you able to upgrade to python 3.10? We are currently unable to support M1 hardware using older versions of python. Let me know if you run into issues with python 3.10.
You can also use a virtual machine for Windows or Mac with Intel hardware. I am working on documentation on how to do that now.

Hi @jonch070, which version of python are you using? If you using a version less than 3.10 and have M1 hardware, try upgrading to python 3.10? We are currently unable to support M1 hardware using older versions of python.

I'll give 3.10 a try today

Hey @dohertyguirand, thank you for your prompt reply.
I installed basic-pitch using the following command:
conda create -c conda-forge  -n basic_pitch python=3.10

the .__version__ command says I'm running version: 0.2.4

@burcellf Try installing with pip as we haven't made a proper conda installation.

Here are the changes in my environment
python
python --version
Python 3.10.11

basic-pitch
Name: basic-pitch
Version: 0.2.4
Summary: Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
Home-page: https://github.com/spotify/basic-pitch
Author: Spotify
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: /Users/brian.soraham/miniconda3/lib/python3.10/site-packages
Requires: librosa, mir-eval, numpy, pretty-midi, resampy, scipy, tensorflow, typing-extensions
Required-by:

tensorflow (don't think I shared this before, but including it here since maybe it's relevant)
pip show tensorflow
Name: tensorflow
Version: 2.11.1
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: /Users/brian.soraham/miniconda3/lib/python3.10/site-packages
Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras, libclang, numpy, opt-einsum, packaging, protobuf, setuptools, six, tensorboard, tensorflow-estimator, tensorflow-io-gcs-filesystem, termcolor, typing-extensions, wrapt
Required-by: basic-pitch

Still getting the illegal hardware instruction error.
FWIW, I also tried the same command in a miniconda3:4.12.0 container and got this
✨✨✨✨✨✨✨✨✨
✨ Basic Pitch  ✨
✨✨✨✨✨✨✨✨✨

Importing Tensorflow (this may take a few seconds)...
The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine.
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

This was with python 3.10.11 too. I guess it's prob an issue with the virtual CPU in the VM that is running the container

@briansorahan what command did you use to install basic-pitch? M1 hardware should be using tensorflow-macos instead of tensorflow. Let me know what you used and I will try to replicate.

I used pip install basic-pitch but I am running my terminal (and tmux, which actually spawns my shell) with rosetta.
I've had too many build failures with arm64, e.g. grpcio
I should revisit this at some point though...

@briansorahan  Oh I see. We currently do not support rosetta. I've tried it myself in the past with basic-pitch and haven't gotten the entire installation workflow to succeed. I would recommend using arm64 architecture.

@dohertyguirand Thanks! I'll give that a shot and circle back here with the results

I forked the repo and added a dockerfile locally since docker is oftentimes my goto solution when I have trouble installing/running things on my macbook
FROM tensorflow/tensorflow:2.13.0
RUN  pip install basic-pitch
ENTRYPOINT ["basic-pitch"]

I built the image with
docker build -t basic-pitch .

I no longer see the illegal hardware instruction error, but the command takes a really long time (I've never actually seen it complete). I'm trying to get a MIDI file output from one of the audio files in this repo
mkdir output
docker run --rm -v $(pwd):/cwd -w /cwd basic-pitch output tests/resources/vocadito_10.wav

How long are you experiencing? Tensorflow can take 5-10 seconds to import when running Python so it could be the overhead of the import.

I let it run for at least 30 minutes just to see if it would ever complete, figuring maybe the audio file I used was weird somehow and triggered an edge case

vocadito should be fine to work with. I'm wondering if it's a docker issue (are you using an x86 image instead of an ARM one). Regardless, I've been able to install basic-pitch on my M1 laptop and run audio through it without a problem. With tensorflow 2.13, basic-pitch 0.2.6 ran in < 10 seconds for vocadito_10.wav.
time basic-pitch /tmp  ~/git/basic-pitch/tests/resources/vocadito_10.wav
...
basic-pitch /tmp ~/git/basic-pitch/tests/resources/vocadito_10.wav  8.37s user 3.72s system 43% cpu 27.620 total

I'm curious what would happen if you tried to import tensorflow in a vanilla python shell on your machine. Otherwise, it could be helpful if you could try to pinpoint when the illegal instruction error is raised. You could try print-debugging, or the faulthandler / prepending PYTHONFAULTHANDLER=1 to your command.

Closing due to inactivity - feel free to reopen if this issue is still persisting.


[apptools-windows] Add tests to test enable crosswalk download on windows

Failure analysis:
https://crosswalk-project.org/jira/browse/XWALK-5563
Impacted tests(approved): new 2, update 0, delete 0
Unit test platform: [Windows]
Unit test result summary: pass 0, fail 2, block 0
https://crosswalk-project.org/jira/browse/XWALK-5288
BUG=https://crosswalk-project.org/jira/browse/XWALK-5556

LGTM


Use recursive option for pylint-tests in CI

Description:

Fixes #79
See the issue for a reference to the problem and fix.
Type of change:

[x] Bug fix.
[ ] New feature.
[ ] Documentation update.

Checklist for the reviewer:

This checklist should be used as a help for the reviewer.

[ ] Is the change limited to one issue?
[ ] Does this PR close the issue?
[ ] Is the code easy to read and understand?
[ ] Do all new feature have an accompanying new test?
[ ] Has the documentation been updated as necessary?

Ok. But should we also make an issue to see if this should be removed? According to the documentation the recurisve option is only needed for versions below 2.15 or special edge cases...

Never mind, I understood now :)
My question is then, should we try to change our packages in accordance with this new rule`?


Add README.md documentation for setting your api key

There was no documentation about setting your API key for the mapquest API and seeing as most people will want to do this I added an example to the README. Pretty self explanatory but people might want to know the function name
:smile:

and as a side note I realize it's in the docs but I thought it might be something people would want to find right away. It's totally your call as to whether it's necessary to have in the README though.

Just want to comment as well that this package let me turn some hand rolled stuff that results in this
// filter by proximity to geocode location
			geocode, serverr := Geo(filter.Location)
			if serverr != nil {
				return nil, serverr
			}

			// parse the string coordinates returned by OSM
			lat, err := strconv.ParseFloat(geocode.Latitude, 64)
			if err != nil {
				return nil, errors.New(err, "Error parsing filter latitude", 500)
			}

			long, err := strconv.ParseFloat(geocode.Longitude, 64)
			if err != nil {
				return nil, errors.New(err, "Error parsing filter longitude", 500)
			}

to this
lat, long := geocoder.Geocode(filter.Location)

very nice.


Added index check to Player.setHeldItem

I have to fix my intellij so I honestly have no idea if this works so I figure its better to open a pull request

This is technically breaking, and so unfortunately will need to wait until the next major version release


quic: fixing a test flake

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

https://dev.azure.com/cncf/envoy/_build/results?buildId=158758&view=logs&j=8c169225-0ae8-53bd-947f-07cb81846cb5&t=d1a98671-b7ba-5fbf-f06c-ff337c010df4&l=680

/retest


didRender is repeatedly called upon mouse move

Originally reported in https://github.com/offirgolan/ember-light-table/issues/363.
Merely moving the mouse over an instance of {{ember-scrollable}} is enough to constantly trigger didRender.

Disablling updateMouseOffset fixes this problem. My guess is that even though horizontalMouseOffset and verticalMouseOffset are not visibly rendered, nor do they appear to cause any DOM updates, only passing them as Handlebars attributes is enough to trigger didRender.
I'm not really sure, if this would be considered a bug per se.

This Ember Twiddle demonstrates the issue.

hmm... I guess we could move https://github.com/alphasights/ember-scrollable/blob/master/addon/components/ember-scrollable.js#L149..L151 to inside of the ember-scrollbar, as that mouse offset is only used there.
https://github.com/alphasights/ember-scrollable/search?utf8=✓&q=horizontalMouseOffset&type=

Sounds good! :+1:


Adding cuBLAS backend to oneMKL.

This PR adds cuBLAS backend to OneMKL.
Requirements
To compile the cuBLAS backend PR 1332 is required.
Known issue
The test suit should run via ctest. When the tests run stand-alone(e.g ./bin/test_main_ct or ./bin/test_main_rt)  , it can lead to segmentation fault due to issue 1520.

Can we have an empty new line in every file? Many files are missing those. Once those changes are in, I can approve my changes.

Can we have an empty new line in every file? Many files are missing those. Once those changes are in, I can approve my part of the review.

We tried to match the style of other files in oneMKL as there is no new empty line on any other files. However, I have manually added a new empty line at the end of the files that we have modified.

@mehdi-goli I apologize for my mistake and the inconvenience it may have caused you. Looks like our coding guidelines do not specify any newline requirements at the end of file, nor does clang-format support having them. You can either revert these changes before merge or we can do it on our side after merge. Which of these do you prefer?

@mehdi-goli I apologize for my mistake and the inconvenience it may have caused you. Looks like our coding guidelines do not specify any newline requirements at the end of file, nor does clang-format support having them. You can either revert these changes before merge or we can do it on our side after merge. Which of these do you prefer?

No problem. I have reverted them.


Fix test sharding and improve test coverage

Fix #342

Codecov Report

Merging #346 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #346      +/-   ##
============================================
+ Coverage     83.26%   83.34%   +0.08%
  Complexity      444      444
============================================
  Files            64       64
  Lines          1416     1417       +1
  Branches        194      195       +1
============================================
+ Hits           1179     1181       +2
  Misses          128      128
+ Partials        109      108       -1


Uses orchestra/testbench-core instead of testbench.

Signed-off-by: Mior Muhammad Zaki<EMAIL_ADDRESS>

Thank you!

Thank you!


Holomap objects saved to html via panel show wrong widgets

This problem is reported in panel, yet may relate to another problem in holoviews reported here: https://github.com/pyviz/holoviews/issues/3849
When creating a holoviews holomap and saving them via panel, the holomap widgets do not list proper list of options and they are non functional.
I am using Python 3.7.4 , panel 0.5.1, holoviews 1.12.3
Here is the code to reproduce the problem:
import holoviews as hv
import panel as pn

import numpy as np

hv.extension('bokeh')

frequencies = [0.5, 0.75, 1.0, 1.25]

def sine_curve(phase, freq):
    xvals = [0.1* i for i in range(100)]
    return hv.Curve((xvals, [np.sin(phase+freq*x) for x in xvals]))

phases      = [0, np.pi/2, np.pi, 3*np.pi/2]

curve_dict_2D = {(str(p),str(f)):sine_curve(p,f) for p in phases for f in frequencies}
hmap = hv.HoloMap(curve_dict_2D, kdims=['phase', 'frequency'])

p = pn.panel(hmap)
p.save('test.html')

Here is an image showing the phase listbox contents that should have had only 4 values - it has 12

So it seems that panel duplicates values without need - note that selecting a value does not change the image - so the problem is not only in display.
Hopefully reporting this under panel is OK.

Two things, please only file issues that exist on master. Secondly panel 0.6.0 is quite outdated. Also to save the state you need to set embed=True:
p.save('test.html', embed=True)

To be clear, we don't actually expect people to actually check out master, but at minimum you should test the latest released version.


How to reverse SVG morph?

I have a simple SVG with 2 paths.
One is simply hidden(CSS) as required to morph.
I run  KUTE.to("#path1",{ path: "#path2" }).start(); and now obviously the visibility of the 2 paths has switched.
Now, how do I morph from path2 -> path1 (basically a reverse)?
I tried the obvious:
KUTE.to("#path2",{ path: "#path1" }).start(); and
KUTE.to("#path1",{ path: "#path1" }).start(); but they don't seem to work.
Here is a pen of the same: http://codepen.io/supernova13892/pen/mRjaLL

You can store the value of the d attribute of #path1 before morph, then do a simple
KUTE.to('#path1', {path: pathStringFromDAttribute},{}).start();


Retry connecting to pg

add connect_timeout parameter to the pg connection string
if for some net-related reasons we failed to connect to the postgresql db, try again

Coverage decreased (-0.03%) to 8.652% when pulling c0760a2577e30a9776d440532379c6ba300aeea0 on pg-retry into 6c4cb4e9dad3c77bdb3846a2861ddf8f58af9a22 on master.

Coverage decreased (-0.03%) to 8.652% when pulling 4eb549c21e179cf1398e612e1833894332aa2c2a on pg-retry into 6c4cb4e9dad3c77bdb3846a2861ddf8f58af9a22 on master.

👍

👍


Removed Google Maps script from index.html

When you start the starter project, there is an error in the console about there being no Google Maps API key. Since this is a starter template for any project, I removed the the Google Maps script from the index.html.
This pull request will close #82

The Google Maps API key is still in the repository and does not match the Udemy video "Modern React with Redux" Video Player tutorial

The maps integration sections do not work and the code does not match the one in the recap video at the end.


upload-part-copy with --copy-source-range parameter set returns InvalidRange error if range is smaller than the part size

Describe the bug
The following error is returned:
An error occurred (InvalidRange) when calling the UploadPartCopy operation: The requested range is not valid for the request. Try another range.
To Reproduce

Create a file large enough for multipart upload.
Split the file into parts, each part at least 5MB + 1 byte.
Place each part into an S3 bucket.
Create the multipart upload, initializing it as a new file in the same bucket.
Attempt an upload-part-copy from one of the parts added to the bucket, to the file you initialized, with a range greater than or equal to 5 megabytes, but smaller than the part size, specified with --copy-source-range bytes=<byte count 5MB or greater>

Expected behavior
As with direct communication with S3, the uploading should succeed.
Server Version
output of
Version  : v0.22
Build    : 5546266
BuildTime: 2024-05-30_10:51:21PM
Darwin Lukes-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64

Closed, this was actually the result of another small error earlier in the test case.


DOCS: Clarify how to access the JSON payload from effect.event

While working with effect.event I couldn't remember how to access the JSON encoded payload from the emitted event (I had been smoking a LOT of weed so my recollection was... not what it normally is (I am Canadian, this is perfectly legal)), and the docs don't explicitly state that you can access the payload on the event's detail property; this is in contrast to the documentation for event.emit, which explicitly states this.
For smooth-brained individuals such as myself, I recommend updating the effect.event docs to the following:
/// Emit a custom event from a component as an effect. Parents can listen to these
/// events in their `view` function like any other HTML event.
///
/// You *probably* don't need to use this type of effect if you're not making use
/// of Lustre's components, but in rare cases it may be useful to emit custom
/// events from the DOM node that your Lustre application is mounted to.
///
/// Like `event.emit`, any JSON-serialisable payload can be attached as additional data for any event listeners to
/// decode. This data will be on the event’s `detail` property.

I've updated the documentation and now this function is @internal and not publicly documented. Users should go through event.emit if they need this effect now! This was actually never really planned as part of the public api it just was because of how gleam worked before the @internal attribute, thanks for pointing it out.


Display list of all parts

/part/

Live filtering by name, category, IPN, etc
Live column ordering

Similar list for Orders (filter by customer /supplier / etc)

This has been mostly implemented


borsh as a feature

make serde a feature
add borsh as a feature (proven to be more efficient)

Adding features to circuits is not straightforward and I don't think it makes sense to create a separate circuit for each serialization method. Borsh is going to be the default and serde will be ditched for now.
Should new (better than Borsh) serialization libs come to my attention then I'll always choose the most efficient one.


Feature/improvements

Proposed Changes

Update AGP
Update libraries
Fix unit tests
Fix code coverage

Additional Info

Add any additional useful context or info

Related Links

Add helpful links for this pull request

Checklist

[ ] Unit Tests
[ ] Integration Tests
[ ] Instrumentation Tests
[ ] Screenshot Tests
[ ] Updated string
[ ] Manually tested

Screenshots

Original
Updated

** original screenshot **
** updated screenshot **

Fix compose tests


Update CLI reference.

/kind documentation
[skip ci]
What does does this PR do / why we need it:
Update the CLI reference.
Which issue(s) this PR fixes:
Fixes https://github.com/openshift/odo/issues/3870
PR acceptance criteria:

[x] Documentation

How to test changes / Special notes to the reviewer:

@prietyc123 could you take a look? I used a script to extract all the descriptions, hopefully nothing is lost.
(Updating the upstream docs first since it will take forever to merge it downstream :disappointed: )

@boczkowska curious what script you used?
Otherwise, this LGTM to me! I'll at least approve it.
/approve

charlie's approve didn't stick. let me see if mine does
/approve
/lgtm

/approve

awesome - now it worked. I had to add the owners file before


[Program]: Write a Swift program to find the adjoint of a matrix

Description
Write a Swift program to find the adjoint of a matrix
The adjoint of a square matrix A is the transpose of the matrix of cofactors of A. The adjoint of a matrix A is denoted as A*.
Input  :
1 2 3
4 5 6
7 8 9

Output :
[[-3, 6, -3], [6, -12, 6], [-3, 6, -3]]

How to contribute

Save the solution in program/program/find-the-adjoint-of-a-matrix/program/FindTheAdjointOfAMatrix.swift file

!assign


Playing variations and skipping to next comments can mess up colors

Heya, I found another bug in the dreaded Lumo vs. execration game.
Steps:

go to https://gokibitz.com/kifu/VJdTzp84?path=60-58:1
play the very first sequence Ben provides
skip to the next comment (with the comment arrow >)
the stone at Q7 is actually black! you can verify this by replaying the steps without 2 (playing the sequence)

This is the only instance I found, but I'm on the lookout :)

I'm not seeing what you are talking about. It's a different variation. If you look at the query string it is saying that you are on move 60 but branched from move 58 on variation 1 (0 based variation labelling so this is variation 2).  When you click the next comment button you are now on ?path=59-58:1-59:1 Move 59 branches from variation 1 on move 58 and now this is another branch in that variation. (If I am wrong please help me see the change).
But there is definitely a problem with navigating with the next/previous comment buttons. I can't move to a previous move before the one you link!

I know it's a different variation, but the stone is black regardless :)
Screenshots:

go to https://gokibitz.com/kifu/VJdTzp84?path=60-58:1

play the very first sequence Ben provides

skip to the next comment (with the comment arrow >)
the stone at Q7 is actually black! It shouldn't be white

evidence? If I refresh the page it becomes black :)

What browser are you using because it appears the correct color for me.

Oh, interesting. This is Firefox 38.0.1 on Arch Linux.
I've just noticed that as soon as I get to the URL I get a console.log:
"Error: null" app.js:3:17496

I'm using Firefox 38.0 on Ubuntu 14.04. This is so odd.

Bored at work. Can reproduce on a Windows machine on:

Firefox 38.0.5
Chrome 43.0.2357.81 m
Vivaldi <IP_ADDRESS>
IE 10

I totally believe that this is happening... basically, the initial way I implemented sequences is kind of inadequate. It has one major failing (stones aren't captured because the stones and numbers are just added as labels to WGo) and some minor ones (there are some fringe cases of disappearing or stuck stones). The way this needs to be fixed is by a reimplementation of the feature. Which is high priority for me, but I'm just not getting the time I wish I had to work on features for GoKibitz right now.
Basically, I need to get a) password change + email verification at signup working, and then this is probably my next priority.


Pls how can this problem be solved

This means the local database that tracks your tag usage for ranking failed to get created. You can see at the top of your image that it is missing one of its core tables:

I added a small fix that should prevent it from crashing the rest of the script, but it doesn't solve your core problem.
This can have a number of different causes and it's hard to tell what it might be in your case.
It could be an issue with write permissions at the file location (tags subfolder in the extension's install location), for example.
Is there any more info you can tell me? Any other errors before the ones on the screenshot?


fix: invalid path on Windows

The output displayed full path instead of relative path due to Directory Separator (/ vs \).
Before:
- Processing: C:\Users\Nelson Martell\Documents\GitHub\forks\eslint-plugin-file-progress\rules\progress.js

After:
- Processing: rules\progress.js

Tested on Windows and Linux OSs.

Thanks @nelson6e65


How to run script on RemoteApp session

I want to run pywinauto script on remote host while open remoteapp session. I publish python as RemoteApp Program on windows 2022and create rdp.file as below.
screen mode id:i:1
use multimon:i:0
desktopwidth:i:1440
desktopheight:i:900
session bpp:i:32
winposstr:s:0,1,0,0,1456,899
compression:i:1
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:7
networkautodetect:i:1
bandwidthautodetect:i:1
displayconnectionbar:i:1
enableworkspacereconnect:i:0
disable wallpaper:i:0
allow font smoothing:i:0
allow desktop composition:i:0
disable full window drag:i:1
disable menu anims:i:1
disable themes:i:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
full address:s:<IP_ADDRESS>:3389
audiomode:i:0
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
redirectclipboard:i:1
redirectposdevices:i:0
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:1
alternate shell:s:||python
remoteapplicationprogram:s:||python
remoteapplicationcmdline:s:c:\\plsql.py
shell working directory:s:
gatewayhostname:s:
gatewayusagemethod:i:4
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0
promptcredentialonce:i:0
gatewaybrokeringtype:i:0
use redirection server name:i:0
rdgiskdcproxy:i:0
kdcproxyname:s:
drivestoredirect:s:

the script  only could lanuch application (plsql), but cloud not find controls to input password and username.
I have already read docsremote_execution, but did not find a solution.

Are you running pywinauto script inside RDP sesssion on the remote machine? Does it work on local installation of PLSQL?

it works on local machine. I found some weird things, when changing remote windows from 2022 to 2019,  It also works.

Does it mean the issue is WinServer 2022 specific? Maybe some OS components are not installed or hotfix update is required if it's a bug (sometimes it was the case).

Thank you for your reply. I think it maybe winServer 2022 OS bug.  I will update you as soon as I have further information.


Improve docs for snapshot updates

This attempts to clarify when snapshots are written to draft .snap.new files vs. to overwriting .snap files vs. doing nothing to snapshots which don't change.
It also changes .with_extension(""), lmk if you prefer those on a separate PR

Requires #481 to pass

Starting again, I would change some of the names
- new could be review or pending, currently doesn't correspond to the other uses of this in cargo-insta, and it sounds like what unseen does

always could be accept
Is unseen useful?!

...but it would be an annoying backward-compat cycle given we want to support different versions of cargo-insta & the config files.

This is ready to merge


Debugger: Grouping msg

This PR adds "Grouping messages" feature to the debugger.
(Most of discussion are done with Evan.)

Group by sequence of constructors

ComponentMsg 1 (Transition<PHONE_NUMBER>635)
ComponentMsg 2 (Transition<PHONE_NUMBER>635)
ComponentMsg 1 (Transition<PHONE_NUMBER>737)
ComponentMsg 2 (Transition<PHONE_NUMBER>737)

These four are grouped by “ComponentMsg … Transition”, only seeing the constructors and skipping any other information.
Only frequent messages are hidden
The open/close state for each group is automatically determined.

grouped frequent messages such as Tick or MouseMove are hidden by default
grouped but not frequent messages such as Clicks are shown by default

Currently, the threshold is 120ms.

@evancz
I have this test too, but there are some problems.

The current test worth keeping? (It is for 0.16...)
This issue (from elm-package)

elm-package fetches elm-test's /example directory, and virtual-dom package conflicts
Maybe other people will fetch this repo's /tests directory too?

Seems like CSS is messed up. I've already found the cause. Will be fixed soon.

Oh, I forgot to mention the trade-off of this implementation.
Unlike before, the number of messages in a snapshot is flexible now. If all messages belong the same group, the snapshot will be infinitely growing. For example, just seeing 60fps game 10 seconds will make 600 messages. So unlucky user may have a very bad performance.
That said, I guess the current state of such game development is "cannot do any debugging". I think getting more feedback from them is higher priority.
The workaround would be maxGroupLength = 100 or something. This will divide one group into many and makes the view a bit ugly, but avoid the worst case. Is this worth trying?

I wouldn't do more optimization on groups for now.
If you have better tests, swap them in.

Done. I found a workaround for package conflicts, so it is no problem.

I will close this because this is outdated.
It would be great if this debugger supports grouping, model diffing and other things like that, but I cannot spend my time to do them. Also, I felt a lot of pressure to break official tool and respond to everyone's needs.
So I think it's far easier for me to maintain my code for my purpose. I will plan another way to contribute to Elm. Sorry ;)