Problem with custom font and rich texts.

Hi, thanks for GeonBit, i learning to use it and monogame and i managed to use font overide to get this :

but when i try this :

i get that :

i would like that result :

which i got with two normal paragraphs and some spaces.
Why do the {{GOLD}} change the spaces between characters only in rich text ?

Interesting, looks like a bug. Is the {{GOLD}} the only difference? All other parameters are the same?
If you add {{DEFAULT}} at the end of the text, does it somehow solve it?

{{GOLD}} is the only difference and {{DEFAULT}} does not solve this.
When i run this code :
Paragraph paragraph = new Paragraph(text: " item grade :",  anchor: Anchor.TopLeft, color: Color.White, scale: 1f, size: new Vector2(1280, 720));
paragraph.FontOverride = Game1.ActionFigure;
panel2.AddChild(paragraph);

paragraph = new Paragraph(text: "                     legendary", anchor: Anchor.TopLeft, color: Color.Gold, scale: 1f, size: new Vector2(1280, 720));
paragraph.FontOverride = Game1.ActionFigure;
panel2.AddChild(paragraph);

var richParagraph = new RichParagraph(" item grade : {{GOLD}}legendary{{DEFAULT}}", Anchor.TopLeft, scale: 1f);
richParagraph.FontOverride = Game1.ActionFigure;
panel.AddChild(richParagraph);

I get this result :

Is the font you are using a monospaced font? I know in the past I have run into trouble when I wasn't using monospaced fonts as GeonBit.UI is designed for those types of fonts.
I tested your code using the standard font and it looked as expected.

It seems that the font i use here and another one i was planning on using are not monospaced.
I a newbie in all of this, what are my options ?
Is there a simple way that i could use to achieve the same result as as rich paragraph ?
i think the best i can achieve is this :

Which give me this result :

Thanks for your time

Hi, thanks @MrCapitalG, good catch ;)
@2ant you can try looking for a monospace version of your font maybe it exists out there. Alternatively, you can try using this:
https://github.com/cpitclaudel/monospacifier
Haven't tried it myself just found it, but it has a lot of stars so it's probably decent enough.

Could not use monospacifier due to my inexperience.
I tried modifying the font with another software, tried other versions of the font and i get the "Cannot use non-monospace fonts!" error everytime.
The only font that i was able to use is the images earlier.
All the other versions of that font that i found gave me the error.

@2ant If your able to share/attach your font, I'd be happy to give a shot at trying to make it a monospace font using that python tool.

This is the one i managed to use : ActionFigure BB_0.zip
But i would like to use this one too : Friend or Foe Tall BB.zip
but i get the "non-monospace" error with it
Thank you again for your help

Hey @2ant I've attached a monospacified version of that ActionFigure font that appears to work pretty well. Sorry for the long name of the file, it's just what the monospacifier program produced, I'm sure there's control over naming it somewhere in that application.
000ActionFigureTeddyBear_monospacified_for_000ActionFigureTeddyBear.zip

@MrCapitalG Thank you, i will do more tests but i tried it with 2 color tag and it works !
Was it complicated to monospacify the font ?
I may need help in the far future to do other fonts.
In the meantime i will try to use some fonts from here :
https://en.wikipedia.org/wiki/List_of_monospaced_typefaces
and here :
https://hail2u.github.io/mn/
Thank you all for your help, i will be back with more questions when i progress on my project.

It wasn't at all obvious but once I figured it out it wasn't bad, I'll try to list out the steps I took. Mind you, you'll need Python installed on your machine. I'm also assuming a windows platform here as that is what I'm using.

Download and install the latest Windows release for FontForge as monospacifier is dependent upon this application
Execute the 'fontforge-console.bat' file found in C:\Program Files (x86)\FontForgeBuilds; as I understand it this sets up the path on your machine so you can run fontforge as a python library from the command prompt
Download or simply copy/paste the monospacifier python script from https://github.com/cpitclaudel/monospacifier/blob/master/monospacifier.py and save it on your machine in the C:\Program Files (x86)\FontForgeBuilds\bin directory
Now create two folders; you can name them whatever you like but I went with 'inputs' and 'references' in that same C:\Program Files (x86)\FontForgeBuilds\bin folder
Now I just copied the non-monospaced font(s) into each of these directories
Finally issue the command
ffpython monospacifier.py --inputs ./inputs/* --references ./references/ActionFigureBB_0.ttf and press enter, it should then generate your monospaced version in the C:\Program Files (x86)\FontForgeBuilds\bin

I don't fully understand the inputs and references folders; it seems to use a variety of fonts to actually build monospaced fonts or something, so I'm nearly positive I could be doing this better. The project suggests looking at their MAKE file to see how they do things.
Anyway once you have your monospaced version of the font, you just install into your monogame font like any other.
There IS a flag to rename the font it looks like --rename 'from' 'to' so use that so you don't get silly long font names :)


llvm-test: update to latest version of llir/llvm

Also simplify rand.ll file creation using ioutil.WriteFile.

Thanks for reaching out!

Thanks for reaching out!

More than happy to!


subsys: debug/coredump: add a primitive coredump mechanism

This adds a very primitive coredump mechanism under subsys/debug
where during fatal error, register and memory content can be
dumped to coredump backend. One such backend utilizing log
module for output is included. Once the coredump log is converted
to a binary file, it can be used with the ELF output file as
inputs to an overly simplified implementation of a GDB server.
This GDB server can be attached via the target remote command of
GDB and will be serving register and memory content. This allows
using GDB to examine stack and memory where the fatal error
occurred.

Still trying to figure out how to test this... as the registers and memory content are going to be different between runs.

Neat! Curious what requires userspace to be disabled?

Neat! Curious what requires userspace to be disabled?

I haven't really tested with userspace so this is there to avoid enabling coredump, as I remember seeing an error before where supervisor thread was not allowed to read userspace data. This would cause a page fault when trying to dump memory.

I haven't really tested with userspace so this is there to avoid enabling coredump, as I remember seeing an error before where supervisor thread was not allowed to read userspace data. This would cause a page fault when trying to dump memory.

Supervisor mode should have read access to all system RAM. There should be no cases where user mode can read a page but the kernel can't. If that's not the case please file a bug.

Supervisor mode should have read access to all system RAM. There should be no cases where user mode can read a page but the kernel can't. If that's not the case please file a bug.

Tested with the sample userspace apps and I was able to dump memory. So this can be used with userspace now.


Remove YAX prefix from classes and namespace

remove the redundant YAX prefix from every part of API.
Introduce generic methods wherever possible, instead of passing around System.Type objects.
The namespaces and other names could be renamed from YAX... to Yax...

@NKnusperer @304NotModified
I mean, YAX... is awkward to type and not following conventions. But it's also not just as simple as "removing the YAX prefix", like @asbjornu pointed out correctly.
Still: If we don't include the renaming of classes in v3, we should close the issue after 9 years.

Personally, typing YAX is no issue and it makes every type name unique by default, which is a nice feature.
I would opt to close this issue too.


Added Escola Universitaria EUNCET Business School to SWOT project

Hi,
we would like to add our University Business School to SWOT Project.
Can you attend this pull request?
Thanks!
kardona

Thanks for merge.
El 20/08/2015, a les 9:34, Paul Chaignon<EMAIL_ADDRESS>va escriure:

Merged #924.
—
Reply to this email directly or view it on GitHub.


p2p: peerTracker.bootstrap should perhaps de-duplicate .trusted and prevSeen

https://github.com/celestiaorg/go-header/blob/18f0eb1c5d3aeab6476123da0dad57e82c067984/p2p/peer_tracker.go#L82-L84
https://github.com/celestiaorg/go-header/blob/18f0eb1c5d3aeab6476123da0dad57e82c067984/p2p/peer_tracker.go#L96-L98

Raise a glare to me that we should deduplicate the peers that we are connecting to, to conserve bandwidth and resources and avoid any situation where a peer could suffer from “too many connections” if it is trusted and highly connected to other peers and due to 2X the connections from every other peer.
Kindly cc-ing  @Wondertan @walldiss @liamsi

At the risk of sounding pedantic: do you have a test to validate this case? Also specialized but undocumented knowledge makes for many assumptions. Perhaps please add a comment about it for the next maintainers to know.

If we validated every assumption we make about our dependency, we would have only written tests with no features.
Yeah, we could add a little comment clarifying that, care for a PR to add it quickly?

If we validated every assumption we make about our dependency, we would have only written tests with no features

I mean I was just raising what could be a potential problem from the perspective of someone who wants to strengthen your product, but it is up to y'all to consider. Code comments on such do suffice.
As for the PR, sadly I have too many orphaned PRs for these repos, that take a long time with back and forth so it is most efficient for me to raise issues with the very limited bandwidth and time that I have for auditing and fuzzing. Also your team has more specialized knowledge so would be best equipped to handle it.


[QUESTION] Cancelling Unconfirmed Transaction

Hi,
First of all, thanks for this repo. It has helped me a lot!
This is no issue (at least for now), but I couldn't find anything in the docs, so I thought I should ask: Is it possible to cancel a transaction with 0 confirmations?

This repository is unmaintained (see https://github.com/laanwj/bitcoin-python#not-actively-maintained) so there is no one to handle issues. Closing this, sorry.


docs: add gitlab-ci section to troubleshooting

What kind of change does this PR introduce?
Docs update for troubleshooting.md, related to GitlabCI
Did you add tests for your changes?
Not applicable
If relevant, did you update the documentation?
Yes. New section ## Running Puppeteer on GitlabCI
Summary
Adding explanatory section with detailed manual on how to launch puppeteer on GitlabCI. I was looking for any case or manual guide how to fix my issue, was looking through gh issues, stackoverflow and other places. I found lots of relevant info, but nothing concrete. Seems like troubleshooting document should include this section for one of the most usable CI. Let's save a couple of hours for those who want to use puppeteer on GitlabCI
Does this PR introduce a breaking change?
No breaking changes.
Other information

Closed this one and re-create with correct commit message https://github.com/puppeteer/puppeteer/pull/8664


Unsupported Database: MariaDB 10.9

Which version and edition of Flyway are you using?
9.6.0
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
no
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Java API
Which database are you using? (Type & version)
MariaDB 10.9
Which operating system are you using?
MacOS
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
quickstart
What did you expect to see?
Support MariaDB 10.9
What did you see instead?


Update cli-envs.html.md.erb

Added the option of using BOSH_ENVIRONMENT to specify the bosh environment.

Fixed on master.


fix(resources): add SPC form to resources

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


Patch Async Executor TrieMap

Description
How did the Spark Cassandra Connector Work or Not Work Before this Patch
Describe the problem, or state of the project that this patch fixes. Explain
why this is a problem if this isn't obvious.
We were looking at the thread dump to check where the app is spending time/CPU and found this error:
java.lang.Object.hashCode(Native Method)
scala.runtime.Statics.anyHash(Statics.java:122)
scala.collection.concurrent.TrieMap$MangledHashing.hash(TrieMap.scala:978)
scala.collection.concurrent.TrieMap.computeHash(TrieMap.scala:823)
scala.collection.concurrent.TrieMap.put(TrieMap.scala:843)
com.datastax.spark.connector.writer.AsyncExecutor.executeAsync(AsyncExecutor.scala:39)
com.datastax.spark.connector.writer.AsyncStatementWriter.$anonfun$write$1(TableWriter.scala:265)
com.datastax.spark.connector.writer.AsyncStatementWriter.$anonfun$write$1$adapted(TableWriter.scala:264)
com.datastax.spark.connector.writer.AsyncStatementWriter$$Lambda$2292/94379871.apply(Unknown Source)
scala.Option.foreach(Option.scala:407)
com.datastax.spark.connector.writer.AsyncStatementWriter.write(TableWriter.scala:264)
com.datastax.spark.connector.writer.TableWriter.$anonfun$writeInternal$4(TableWriter.scala:234)
com.datastax.spark.connector.writer.TableWriter.$anonfun$writeInternal$4$adapted(TableWriter.scala:233)
com.datastax.spark.connector.writer.TableWriter$$Lambda$1944/37410754.apply(Unknown Source)
scala.collection.Iterator.foreach(Iterator.scala:941)
scala.collection.Iterator.foreach$(Iterator.scala:941)
com.datastax.spark.connector.util.CountingIterator.foreach(CountingIterator.scala:4)
com.datastax.spark.connector.writer.TableWriter.writeInternal(TableWriter.scala:233)
com.datastax.spark.connector.writer.TableWriter.write(TableWriter.scala:170)

We suspect that the problem is with this line private val pendingFutures = new TrieMap[Future[R], Boolean]  as it uses future as key so it needs to calculate the hash of the future which is a complicated task.
Our goal is to reduce an unnecessary processing time so that we can improve the performance
General Design of the patch
Changes the data structure for pendingFutures from TrieMap to ConcurrentLinkedQueue. With this change we could achieve two things:

Keep concurrent safe behavior similar to the previous TrieMap
Stop hashing Futures.

Fixes: Put JIRA Reference HERE
How Has This Been Tested?
All existing tests pass.
Checklist:

[ ] I have a ticket in the OSS JIRA
[x] I have performed a self-review of my own code
[x] Locally all tests pass (make sure tests fail without your patch)

Decide to go with https://github.com/agoda-com/spark-cassandra-connector/pull/2 instead, as it is a more efficient way to look up


deps(chore): switch to cli-table3 to resolve security issue

This PR updates the cli-table2 dependency to cli-table3, which fixes one of the npm audit warnings :)
cli-table2 (like cli-table itself) is no longer maintained. In jamestalmage/cli-table2#43 a couple of people have offered to take over maintenance but the current maintainer did not respond so as a result the project was forked to cli-table/cli-table3.

Coverage decreased (-14.6%) to 85.35% when pulling 91cbe4fb023d35749221775eed65184909dc519d on schalkneethling:issue#297-resolve-cli-table-dependency into c191adf43cf89fa6948a0c5ac700805a2a43c9e1 on zemirco:master.

Looks like node 4 and 5 don't work due to Block-scoped declarations (let, const, function, class) not yet supported outside strict mode.
Also color shows up in Node 8 and 9 but not in 6 and 7. We are testing against the output without the colors, so tests fail in 8 and 9.

Thanks for reporting that @knownasilya - I will open an issue for that over on the new repo

@knownasilya Had a quick chat with the maintainers of cli-table3 and we are setting the lowest Node.js to 6+ - https://github.com/cli-table/cli-table3/blob/v0.5.0/package.json#L60

Ok, that's fine for v4 and v5 not being supported. What about colors coming through in 8 and 9 only while not in 6 and 7?

@knownasilya that might be an issue in one of the subdependencies incorrectly detecting that colors are not supported

We are testing against the output without the colors, so tests fail in 8 and 9.

how did you disable colors?

@Turbo87 we aren't, it just works differently across the two sets of Node versions.

we actually had similar issues internally for the cli-table3 test suite, and they seemed to have been related to the color support detection. we are currently running our test suite explicity with --color to make sure that colors are always on.

Can we have a --no-color option? That would make it much more readable for test results.

--no-color should already be supported, but it's generally recommended to use the style: { head: [], border: [] } options in testing mode anyway

Closed in favor of #312


RuntimeError: CUDA error: invalid device ordinal

Hello
Thanks for your pretty code.
When I run ! DETR=base python main.py --pretrained checkpoints/detr-r50-hicodet.pth \ --output-dir outputs/pvic-detr-r50-hicodet
for training, I get the following error:
/content/drive/MyDrive/pvic
Namespace(backbone='resnet50', dilation=False, position_embedding='sine', hidden_dim=256, enc_layers=6, dec_layers=6, dim_feedforward=2048, dropout=0.1, nheads=8, num_queries=100, pre_norm=False, lr_head=0.0001, lr_drop=20, lr_drop_factor=0.2, epochs=30, batch_size=16, weight_decay=0.0001, clip_max_norm=0.1, aux_loss=True, set_cost_class=1, set_cost_bbox=5, set_cost_giou=2, bbox_loss_coef=5, giou_loss_coef=2, eos_coef=0.1, device='cuda', dataset='hicodet', partitions=['train2015', 'test2015'], num_workers=2, data_root='./hicodet', output_dir='outputs/pvic-detr-r50-hicodet', pretrained='checkpoints/detr-r50-hicodet.pth', print_interval=100, detector='base', raw_lambda=2.8, kv_src='C5', repr_dim=384, triplet_enc_layers=1, triplet_dec_layers=2, alpha=0.5, gamma=0.1, box_score_thresh=0.05, min_instances=3, max_instances=15, resume='', use_wandb=False, port='1234', seed=140, world_size=8, eval=False, cache=False, sanity=False)
[W socket.cpp:697] [c10d] The client socket has failed to connect to [localhost]:1234 (errno: 99 - Cannot assign requested address).
[W socket.cpp:697] [c10d] The client socket has failed to connect to [localhost]:1234 (errno: 99 - Cannot assign requested address).
[W socket.cpp:697] [c10d] The client socket has failed to connect to [localhost]:1234 (errno: 99 - Cannot assign requested address).
[W socket.cpp:697] [c10d] The client socket has failed to connect to [localhost]:1234 (errno: 99 - Cannot assign requested address).
Traceback (most recent call last):
File "/content/drive/MyDrive/pvic/main.py", line 193, in
mp.spawn(main, nprocs=args.world_size, args=(args,))
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 241, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method="spawn")
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 197, in start_processes
while not context.join():
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 158, in join
raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:
-- Process 2 terminated with the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/multiprocessing/spawn.py", line 68, in _wrap
fn(i, *args)
File "/content/drive/MyDrive/pvic/main.py", line 43, in main
torch.cuda.set_device(rank)
File "/usr/local/lib/python3.10/dist-packages/torch/cuda/init.py", line 408, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

I run on google colab

Hi, thanks for your reply.
Does that mean your code can't be run on google colab?

I don't know how the communication ports on Google Colab are set up. But if you find an available port, I don't see why you couldn't run it on Google Colab.


Install instructions fail

platform :ios, '8.0'
pod "RMDateSelectionViewController", "~> 2.0.0"
Result:
[!] Unable to satisfy the following requirements:

RMDateSelectionViewController (~> 2.0.0) required by Podfile

This because version 2.0.0 has not been release yet. I would recomment to use 1.5.1 for the moment :)

On the Cocoapods site there apperars to be the new version 2.0.0 already realeased, but I still get the same error than @djclarkson
platform :ios, '8.0'
pod "RMDateSelectionViewController", "~> 2.0.0"
Result:
[!] Unable to satisfy the following requirements:
RMDateSelectionViewController (~> 2.0.0) required by Podfile

Hmm, did you try to run 'pod update' instead of 'pod install'? It looks like CocoaPods did not update the currently available pods

I have the same problem

Did you try to run pod update instead of pod install?

Yes, the same problem
http://s12.postimg.org/4zfxazmct/preview.png

Hmm, version 2.0.0 has been release in the meantime and it is definitely available in the specs repo. To me this seems like an CocoaPods bug. Did you try to delete ~/.cocoapods/repos and run pod update afterwards?
This make CocoaPods re-download the specs repo with all specs in it. Version 2.0.0 should be available then...

still the same :/

Hmm, next I would try to add the CocoaPods Specs Repo as explicit source. You can do this by adding source 'https://github.com/CocoaPods/Specs.git' at the beginning of your Podfile. Besides, which version of CocoaPods are you using?

Closing because of missing activity. If this issue persists, please reopen the ticket :)


supervised queue:work , Storage::delete($paths) always return false

Laravel Version: 5.4.*
PHP Version: 5.6.21
Storage Disk : Rackspace
OS : Red Hat Enterprise Linux Server release 6.9 (Santiago)

Description:
I'm running the queue work process via the following supervisor config (I'm using Database queue)
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/myApp/artisan queue:work  --sleep=3 --tries=3
autostart=true
autorestart=true
user=apache
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/myApp/storage/logs/worker.log

I’ve created job , which will remove files from rackspace container. Job class will utilise the following method which will receive a array contains paths of files,  for example $param =  [ 'path/to/file/1.pdf', 'path/to2/file/2.pdf'];
 /**
  * @param an array of files to remove from the disk:
  */
 public function deleteImage($param)
 {
     Log::debug('DELETE_IMAGE => Entering with data ', $param);

     if (is_array($param)) {
         //------------------------------------------------------
         $result = Storage::delete($param);
        //-------------------------------------------------------
          Log::debug('DELETE_IMAGE => Delete Result ', [$result]);
         if ($result) {
              Log::debug('DELETE_IMAGE => Delete DONE ', [$result]);
             return true;
         } else {
              Log::debug('DELETE_IMAGE => Delete Failed , Gonna retry ', [$result]);
             throw  new UnknownError();
         }
     }

 }

When i dispatch the job, its start executing by the supervisor's created php process,
I am able to see the debug logs in laravel.log file.
I am sure files are presented in rackspace container as per given path. If I run php artisan queue:work files are getting deleted from rackspace, but when I start from supervisord its keep on failing.
Log file reference
_

local	 Debug	13:07:34
DELETE_IMAGE => Delete Failed , Gonna retry [false]
local	 Debug	13:07:34
DELETE_IMAGE => Delete Result [false]
local	 Debug	13:07:31
DELETE_IMAGE => Entering with data ["/path/to/file/1.pdf","path/to2/file/2.pdf"]

_
Assurance

Files are available in rackspace as paths given in array input
If I restart supervisor ~1day it was worked well , after  Storage::delete($param) always returns false
php artisan queue:work - this command processing perfectly when I do it manually in terminal

Sorry but please ask on the forums, this repo is for bug reporting only.


RTP11a

Oh. I forgot about #271 😖
I need to fix it first.

Looks good, are you able to reuse the existing code to do a REST get test as well?  You could even just peg a REST test onto the end of this test to check that 150 members across 2 pages is returned, keeps the test suite time down... WDYT?

Looks good, are you able to reuse the existing code to do a REST get test as well? You could even just peg a REST test onto the end of this test to check that 150 members across 2 pages is returned, keeps the test suite time down... WDYT?

@mattheworiordan I added the test on another PR: #308.

LGTM


Not working with goaws

I'm trying to use this with goaws. sls-offline-sns subscribes successfully and I can see events come in and the handler gets triggered. However the sls-offline doesn't startup the remaining http services defined in the serverless.yaml. The sns-event definition is after the http in the yaml.
Serverless: DEBUG[serverless-offline-sns][adapter]: subscribe: dev-domain-events arn:aws:sns:eu-west-1:100010001000:domain-events
Serverless: DEBUG[serverless-offline-sns][adapter]: subscribeEndpoint: http://localhost:4104/dev-domain-events
Serverless: DEBUG[serverless-offline-sns][adapter]: calling fn: dev-domain-events 1
Serverless: DEBUG[serverless-offline-sns][adapter]: Visiting subscribe url: http://localhost:4100/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:eu-west-1:100010001000:domain-events&Token=ba7e435c-536c-4848-88b1-1756333e3c74
Serverless: DEBUG[serverless-offline-sns][adapter]: Subscribed: [object Promise]

Output from (Subscribed: [object Promise])
<ConfirmSubscriptionResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
      <ConfirmSubscriptionResult>
          <SubscriptionArn>arn:aws:sns:eu-west-1:100010001000:domain-events:2a118b59-3362-4dff-833f-d737d63fba76</SubscriptionArn>
      </ConfirmSubscriptionResult>
      <ResponseMetadata>
          <RequestId>30200d61-0b45-41a4-9c4d-bb2e6ef4ed88</RequestId>
      </ResponseMetadata>
  </ConfirmSubscriptionResponse>

Plugin Order:
plugins:
  - serverless-webpack
  - serverless-offline
  - serverless-dotenv-plugin
  - serverless-offline-sns

Configuration:
serverless-offline-sns:
    host: localhost
    port: 4104 # server sns client listens on
    sns-endpoint: http://localhost:4100/ # aws end point
    sns-subscribe-endpoint: localhost
    debug: true
    region: ${self:provider.region}

Hi, what does the yaml look like?


Seperate App for TRexRun3D

I really loved to play TRexRun3D in my Spare Time. I really miss it. Could you please do a seperate App for it?

I will release it as soon as possible.

Thank You

I will release it as soon as possible.

Will it include improvements like user account, leaderboard?


Wrong, case sensitive variable

double-opt-in-registration-php/classes/Courier.class.php
Line 67:
is: $email
should be: $Email

This typo has been fixed, thank you!


Encoding not preserved when using where function

My first issue in xarray, so I'd first of all thank you so much for this great package!
Code Sample, a copy-pastable example if possible
da = xr.DataArray(np.random.randn(2, 3), encoding={'_FillValue': np.nan})
da.encoding
# {'_FillValue': nan}
da_where = da.where(1)
da_where.encoding
# {}

Problem description
This is a problem I stumbled upon when using the roi method of salem (see here), but @fmaussion brought up the very good idea to maybe fix this upstream: when using the .where method, the encoding of the dataset/the dataarray is not preserved. Could this be changed or is there any specific reason (conflict?) why this is dropped?
Expected Output
da_where.encoding
# {'_FillValue': nan}

Output of xr.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
xarray: 0.10.4
pandas: 0.22.0
numpy: 1.11.3
scipy: 1.0.1
netCDF4: 1.2.7
h5netcdf: 0.3.1
h5py: 2.6.0
Nio: None
zarr: None
bottleneck: 1.2.0
cyordereddict: 1.0.0
dask: 0.15.1
distributed: 1.17.0
matplotlib: 2.2.0
cartopy: None
seaborn: None
setuptools: 40.0.0
pip: 10.0.1
conda: 4.5.8
pytest: 2.9.2
IPython: 5.1.0
sphinx: 1.7.5

Thanks for raising this. Please take a look at https://github.com/pydata/xarray/issues/1614. I'd love to figure out a more comprehensive set of rules for what xarray should do for propagating encoding/attributes in every operation. Proposals and opinions would be very welcome!

Thanks for your comment @shoyer and sorry for not having found the issue you refer to!
So in favor of a low number of open issues, what would you suggest? Should I just add the where case to #1614 and we close this?


Fix scale to work as documented

See issue #251

@mphoward I've fixed this bug and added a unit test to catch it in the future! I think the tests are failing related to numpy 2.0, so this should be good for you to look at when you get a chance!

Thanks! This should fix the issue.
While investigating this and looking at the manuscript, I realized that the LineSearch is using unscaled variables. This is consistent with what is written in the documentation, but I think is inconsistent with the SteepestDescent using scaled variables to take steps. Could you look at this to confirm and see if you think we should add scale as an argument of find? We could default it to scale=1.0 for backward compatibility.
If you agree, I would try to fix that in this PR since it is a related issue.

Thanks! This should fix the issue.
While investigating this and looking at the manuscript, I realized that the LineSearch is using unscaled variables. This is consistent with what is written in the documentation, but I think is inconsistent with the SteepestDescent using scaled variables to take steps. Could you look at this to confirm and see if you think we should add scale as an argument of find? We could default it to scale=1.0 for backward compatibility.
If you agree, I would try to fix that in this PR since it is a related issue.

So currently SteepestDescent is being updated using the scaled variables but LineSearch is checking based on unscaled variables? I think we would just need to add in scale=1.0 as suggested and turn:
https://github.com/mphowardlab/relentless/blob/09505911377030e1db8786d6d8d412bbe785589e/src/relentless/optimize/method.py#L192
to
x.value = start.variables[x] + scale**2 * new_step * d[x].
I think we need the scale**2 because the gradient doesn't have the extra factor from using scaled variables like it does in steepest descent here:
https://github.com/mphowardlab/relentless/blob/09505911377030e1db8786d6d8d412bbe785589e/src/relentless/optimize/method.py#L400

I think we need to apply one scale factor to any gradient that is dotted against d, which turns it into the gradient with respect to the scaled parameters. See Eq. (18) of the draft manuscript.
I also think when we calculate d in the first place, we should be dividing by scale. That would calculate the descent direction in scaled coordinates. See Eqs. (17) and (18) of the draft manuscript.
If you scale d when you compute it, then I think you will need to multiply by one factor of scale in line 192 to make the update apply to the unscaled parameters.

@mphoward that all makes sense! I think I have those changes implemented as you noted!

Thanks, here are a few things I noticed:

The multiplication of the gradient by scale needs to be done on the gradient directly (not outside the dot) in case scale is a KeyedArray.
I think you may have missed some instances of dotting in find, so please search for those.
You should copy the logic from SteepestDescent for converting the scale (as given) into a KeyedArray with the right keys, in case. Alternatively, we need to document that scale either needs to be just a float or a properly keyed KeyedArray.

@mphoward here are those changes!


unipept pept2prot should mention some additional information

the output of the unipept pept2prot command should at least contain the description field of the protein record and the taxon id, and later should be expanded with functional information about the protein; see what information is currently available in the database; without having the taxon id of the protein records, it is now impossible to
rewrite the command
$ ... | unipept pept2taxa | ...

manually as
# filter third field as taxon id
$ ... | unipept pept2prot | awk -F, '{print $3}'  | ...

See for example the information shown in the Uniprot tables that list matching proteins:

entry (accession number)
entry name
protein names
gene names
organism
length

Original issue by @pdawyndt on Fri May 02 2014 at 20:50.
Closed by an unknown user on Sun May 11 2014 at 13:40.

I guess the output of the unipept pept2prot command should be the same as the default output of the uniprot command, except for the protein sequence itself.
Original comment by @pdawyndt on Mon May 05 2014 at 09:24.

@pdawyndt I don't understand what you mean by your last comment. uniprot will only output the protein sequence found on the uniprot server?
Original comment by ghost on Mon May 05 2014 at 09:31.

@tvwillem: OK, my mistake then; I thought the uniprot command also had the option to show additional information about the protein sequence in CSV format.
Original comment by @pdawyndt on Mon May 05 2014 at 09:37.

@tvwillem : suggestion: by default, only show those information fields that are found in the uniprot table itself, i.e. the ones that can be fetched with no time penalty (uniprot accession number, taxon_id, ...); additional information that requires extra joins (taxon-name, cross-references) can be included as information fields triggered by an extra option.
I would recommend using the -a option (all information fields) for that (if not taken already), which has the same result as the -l option (lineage) for other commands. To be consistent, I would then also recommand to replace the -l option everywhere for the -a option. The -s option (select) can then also be used to select specific information fields (consistent with same option for other commands).
Original comment by @pdawyndt on Tue May 06 2014 at 09:54.

The default is now fast again.
However, would it be OK to display go and ec references like this:
sequence, accession_number, taxon_id, taxon_name, list of references
or should the above line be repeated for each reference?
Original comment by ghost on Tue May 06 2014 at 11:13.

A list of references (space separated?) is ok. I would make a separate column in the output for each type of reference:
sequence, accession_number, taxon_id, taxon_name, list of ec numbers, list of go terms
Original comment by @bmesuere on Tue May 06 2014 at 13:29.


Fix gocv-receive example

Fix gocv-receive example
Error build: cannot range over contours (type gocv.PointsVector).
Error run on macOS: NSWindow drag regions should only be invalidated on the Main Thread.

Thank you so much @cgojin! Sorry I have been so busy :(


Installing httpie fails on MacOS Big Sur 11.4

Not able to install httpie by simply doing nix-env -iA nixpkgs.httpie on MacOS
log.txt
installing 'httpie-2.2.0'
these derivations will be built:
  /nix/store/agvgq5vf789msa0v3s7mz213as67yg2k-python3.8-poetry-core-1.0.0.drv
  /nix/store/8ffcx2kn79ywlq9hi9463nlhajgzlkcm-python3.8-pendulum-2.1.2.drv
  /nix/store/s0la3akyxxzp5b45immrl0gz7nl2cdq2-python3.8-maya-0.3.3.drv
  /nix/store/l5vw57fac8dp1ba2578f60izdm184lsl-python3.8-Flask-Common-0.3.0.drv
  /nix/store/3rn4wkr5g2l06klmzgcaa8yhv56spcvc-python3.8-httpbin-0.6.2.drv
  /nix/store/jg5b7zmdphdasxabyrgfcvpvm5adqy6g-python3.8-pytest-httpbin-1.0.0.drv
  /nix/store/0hj22w4s8236mjxammp1dgnmr9prrw7n-httpie-2.2.0.drv
building '/nix/store/agvgq5vf789msa0v3s7mz213as67yg2k-python3.8-poetry-core-1.0.0.drv'...
Sourcing python-recompile-bytecode-hook.sh
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pip-build-hook
Using pipBuildPhase
Using pipShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pytest-check-hook
Using pytestCheckPhase
unpacking sources
unpacking source archive /nix/store/935sadfijbn1hwx2gmfbqra8wbh287qz-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/vendors/pyproject.toml
patching sources
configuring
no configure script, doing nothing
building
Executing pipBuildPhase
Creating a wheel...
WARNING: The directory '/homeless-shelter/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source
    Preparing wheel metadata ... done
Building wheels for collected packages: poetry-core
  Building wheel for poetry-core (PEP 517) ... done
  Created wheel for poetry-core: filename=poetry_core-1.0.0-py2.py3-none-any.whl size=405728 sha256=f2ce890baffdc6f048e1fa2298e21798dfa9465094b6d6c239fc701fbfeac967
  Stored in directory: /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/pip-ephem-wheel-cache-xce5h1rx/wheels/42/d4/e4/483817ebf3cdc2aa2eb66e7d0ad263c8f5ff4013151f0f44b2
Successfully built poetry-core
Finished creating a wheel...
  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/setup.py', 'build', '-b', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build']' returned non-zero exit status 1.

/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/subprocess.py:364: CalledProcessError
----------------------------- Captured stdout call -----------------------------
running build
running build_py
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8/extended
copying extended/__init__.py -> /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8/extended
copying extended/extended.c -> /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8/extended
running build_ext
building 'extended.extended' extension
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8/extended
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/include/python3.8 -c extended/extended.c -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8/extended/extended.o
clang -bundle -undefined dynamic_lookup -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8/extended/extended.o -L/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8/extended/extended.cpython-38-darwin.so
----------------------------- Captured stderr call -----------------------------
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
extended/extended.c:13:9: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
        NULL,
        ^~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types/_null.h:29:15: note: expanded from macro 'NULL'
#define NULL  __DARWIN_NULL
              ^~~~~~~~~~~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL'
#define __DARWIN_NULL ((void *)0)
                      ^~~~~~~~~~~
1 warning generated.
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
____________________________ test_wheel_c_extension ____________________________

    @pytest.mark.skipif(
        sys.platform == "win32"
        and sys.version_info <= (3, 6)
        or platform.python_implementation().lower() == "pypy",
        reason="Disable test on Windows for Python <=3.6 and for PyPy",
    )
    def test_wheel_c_extension():
        module_path = fixtures_dir / "extended"
        builder = Builder(Factory().create_poetry(module_path))
>       builder.build(fmt="all")

tests/masonry/builders/test_complete.py:50:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
poetry/core/masonry/builder.py:30: in build
    builder(self._poetry, executable=executable).build()
poetry/core/masonry/builders/wheel.py:89: in build
    self._build(zip_file)
poetry/core/masonry/builders/wheel.py:121: in _build
    self._run_build_command(setup)
poetry/core/masonry/builders/wheel.py:149: in _run_build_command
    subprocess.check_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-...b', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build'],)
kwargs = {}, retcode = 1
cmd = ['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-c...'-b', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/setup.py', 'build', '-b', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build']' returned non-zero exit status 1.

/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/subprocess.py:364: CalledProcessError
----------------------------- Captured stdout call -----------------------------
running build
running build_py
running build_ext
building 'extended.extended' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/include/python3.8 -c extended/extended.c -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8/extended/extended.o
clang -bundle -undefined dynamic_lookup -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/temp.macosx-10.6-x86_64-3.8/extended/extended.o -L/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/extended/build/lib.macosx-10.6-x86_64-3.8/extended/extended.cpython-38-darwin.so
----------------------------- Captured stderr call -----------------------------
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
extended/extended.c:13:9: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
        NULL,
        ^~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types/_null.h:29:15: note: expanded from macro 'NULL'
#define NULL  __DARWIN_NULL
              ^~~~~~~~~~~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL'
#define __DARWIN_NULL ((void *)0)
                      ^~~~~~~~~~~
1 warning generated.
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
------------------------------ Captured log call -------------------------------
WARNING  poetry.core.masonry.builders.sdist:sdist.py:212 A setup.py file already exists.   Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', 'build.py']' returned non-zero exit status 1.

/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/subprocess.py:364: CalledProcessError
----------------------------- Captured stderr call -----------------------------
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
extended/extended.c:13:9: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
        NULL,
        ^~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types/_null.h:29:15: note: expanded from macro 'NULL'
#define NULL  __DARWIN_NULL
              ^~~~~~~~~~~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL'
#define __DARWIN_NULL ((void *)0)
                      ^~~~~~~~~~~
1 warning generated.
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/unixccompiler.py", line 200, in link
    self.spawn(linker + ld_args)
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "build.py", line 30, in <module>
    build()
  File "build.py", line 18, in build
    cmd.run()
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/command/build_ext.py", line 550, in build_extension
    self.compiler.link_shared_object(
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/ccompiler.py", line 713, in link_shared_object
    self.link(CCompiler.SHARED_OBJECT, objects,
  File "/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/distutils/unixccompiler.py", line 202, in link
    raise LinkError(msg)
distutils.errors.LinkError: command 'clang' failed with exit status 1
______________________ test_wheel_c_extension_src_layout _______________________

    @pytest.mark.skipif(
        sys.platform == "win32"
        and sys.version_info <= (3, 6)
        or platform.python_implementation().lower() == "pypy",
        reason="Disable test on Windows for Python <=3.6 and for PyPy",
    )
    def test_wheel_c_extension_src_layout():
        module_path = fixtures_dir / "src_extended"
        builder = Builder(Factory().create_poetry(module_path))
>       builder.build(fmt="all")

tests/masonry/builders/test_complete.py:164:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
poetry/core/masonry/builder.py:30: in build
    builder(self._poetry, executable=executable).build()
poetry/core/masonry/builders/wheel.py:89: in build
    self._build(zip_file)
poetry/core/masonry/builders/wheel.py:121: in _build
    self._run_build_command(setup)
poetry/core/masonry/builders/wheel.py:149: in _run_build_command
    subprocess.check_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-...'/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build'],)
kwargs = {}, retcode = 1
cmd = ['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-c..., '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/bin/python3.8', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/setup.py', 'build', '-b', '/private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build']' returned non-zero exit status 1.

/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib/python3.8/subprocess.py:364: CalledProcessError
----------------------------- Captured stdout call -----------------------------
running build
running build_py
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/lib.macosx-10.6-x86_64-3.8
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/lib.macosx-10.6-x86_64-3.8/extended
copying src/extended/__init__.py -> /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/lib.macosx-10.6-x86_64-3.8/extended
copying src/extended/extended.c -> /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/lib.macosx-10.6-x86_64-3.8/extended
running build_ext
building 'extended.extended' extension
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/temp.macosx-10.6-x86_64-3.8
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/temp.macosx-10.6-x86_64-3.8/src
creating /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/temp.macosx-10.6-x86_64-3.8/src/extended
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/include/python3.8 -c src/extended/extended.c -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/temp.macosx-10.6-x86_64-3.8/src/extended/extended.o
clang -bundle -undefined dynamic_lookup -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/temp.macosx-10.6-x86_64-3.8/src/extended/extended.o -L/nix/store/kgixss1lmrfs7jbq955hz4k3jjibijpn-python3-3.8.8/lib -o /private/tmp/nix-build-python3.8-poetry-core-1.0.0.drv-0/source/tests/masonry/builders/fixtures/src_extended/build/lib.macosx-10.6-x86_64-3.8/extended/extended.cpython-38-darwin.so
----------------------------- Captured stderr call -----------------------------
clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
src/extended/extended.c:13:9: warning: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
        NULL,
        ^~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types/_null.h:29:15: note: expanded from macro 'NULL'
#define NULL  __DARWIN_NULL
              ^~~~~~~~~~~~~
/nix/store/yv4y2bk6lljglc9ypf39akngs0qanb1r-Libsystem-osx-10.12.6/include/sys/_types.h:52:23: note: expanded from macro '__DARWIN_NULL'
#define __DARWIN_NULL ((void *)0)
                      ^~~~~~~~~~~
1 warning generated.
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-<IP_ADDRESS>.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.8/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.5/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.3/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.33.0/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.2/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.1.1k/lib'
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-configd-osx-10.8.5/lib'
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
=========================== short test summary info ============================
FAILED tests/masonry/test_api.py::test_build_wheel_extended - subprocess.Call...
FAILED tests/masonry/builders/test_complete.py::test_wheel_c_extension - subp...
FAILED tests/masonry/builders/test_complete.py::test_wheel_c_extension_with_no_setup
FAILED tests/masonry/builders/test_complete.py::test_wheel_c_extension_src_layout
=========== 4 failed, 501 passed, 2 skipped, 10 deselected in 5.39s ============
builder for '/nix/store/agvgq5vf789msa0v3s7mz213as67yg2k-python3.8-poetry-core-1.0.0.drv' failed with exit code 1
cannot build derivation '/nix/store/8ffcx2kn79ywlq9hi9463nlhajgzlkcm-python3.8-pendulum-2.1.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/s0la3akyxxzp5b45immrl0gz7nl2cdq2-python3.8-maya-0.3.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/l5vw57fac8dp1ba2578f60izdm184lsl-python3.8-Flask-Common-0.3.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3rn4wkr5g2l06klmzgcaa8yhv56spcvc-python3.8-httpbin-0.6.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jg5b7zmdphdasxabyrgfcvpvm5adqy6g-python3.8-pytest-httpbin-1.0.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/0hj22w4s8236mjxammp1dgnmr9prrw7n-httpie-2.2.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/0hj22w4s8236mjxammp1dgnmr9prrw7n-httpie-2.2.0.drv' failed

@antono
@schneefux
@SuperSandro2000
Metadata
 - system: `"x86_64-darwin"`
 - host os: `Darwin 20.5.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.14`
 - channels(larslilloulvestad): `"darwin, nixos-20.09.4393.068984c00e0, nixpkgs-20.09"`
 - nixpkgs: `/Users/larslilloulvestad/.nix-defexpr/channels/nixpkgs`

The true failure is in poetry-core
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1

Can you try bumping your nixpkgs?

Hi, thanks for the reply!
Sorry for asking, but what excactly do do mean by bumping my nixpkgs?

Try updating your channel or whatever else you use.

I don't see issues on macOS (and I always have it installed as part of my list of packages).
$ nix-env -iA nixpkgs.httpie
installing 'httpie-2.4.0'
building '/nix/store/28d03vc216x8mzw6m6wb1x7akwzx5k2b-user-environment.drv'...
created 3179 symlinks in user environment

$ nix-env -iA unstable.httpie
replacing old 'httpie-2.4.0'
installing 'httpie-2.4.0'
building '/nix/store/hx93b3y4g335kaqd443lv6vix0436i0w-user-environment.drv'...
created 3178 symlinks in user environment

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 20.4.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(smancill): `"nixpkgs-21.05pre294009.7bbafa9a3c9, unstable-21.11pre309670.253aecf69ed"`
 - nixpkgs: `/Users/smancill/.nix-defexpr/channels/nixpkgs`


GUACAMOLE-1860: fix typos in env variables

PR according to https://issues.apache.org/jira/browse/GUACAMOLE-1860

Thanks @mazlumtoprak! Can you rebase against the staging/1.5.4 branch? We can pull this into our next bugfix release.

Ping @mazlumtoprak - any chance you could rebase this?

Hey @mike-jumper & @necouchman,
Apologies for the delay in my response. I wanted to ensure that the rebase was executed correctly and got a bit insecure, when I received a lot of merge conflicts.
On my local repo I now fetched the latest staging/1.5.4 and committed my changes into that, now merging to master. If you'd have a look on my PR and if everything's fine, I'll merge it to my master.
https://github.com/mazlumtoprak/guacamole-client/pull/1

@mazlumtoprak
Here's what I'd suggest:

Check out the staging/1.5.4 branch and then create a new branch from that within your fork - something like fix-env-typo or the like.
Make sure your changes are committed to that branch.
Create a new PR from that branch against the staging/1.5.4 branch.

That'll avoid the master branch becoming your main development branch for PRs, which can lead to confusion and be difficult to maintain and clean up.

I will close this PR due to a new one at #932


Add a reproduction for module rules not applying to a resource added by a plugin

This PR is trying to demonstrate a reproduction of the issue described in #17747, so that we can try to find a fix that doesn't also add a regression for #16466.
I'm submitting a draft PR, because it makes no sense to merge until a fix is found.

What kind of change does this PR introduce?

This PR adds a new statsCases test case, that when run, currently produces an error like:
$ yarn jest StatsTestCases -t issue-17747
yarn run v1.22.19
$ node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage StatsTestCases -t issue-17747
 FAIL  test/StatsTestCases.basictest.js (50 MB heap size)
  warmup
    ○ skipped should warmup webpack
  StatsTestCases
    ✕ should print correct stats for issue-17747 (210 ms)

...(snip)...

  ● StatsTestCases › should print correct stats for issue-17747

    Child compilation failed:
    Module parse failed: Unexpected token (1:8)
    File was processed with these loaders:
     * ./loader.js
    You may need an additional loader to handle the result of these loaders.
    > {"asset":"3ee037f347c64cc372ad.txt"}:
    SyntaxError: Unexpected token (1:8)

      39 |           .join("\n");
      40 |
    > 41 |         throw new Error(`Child compilation failed:\n${errorDetails}`);
         |               ^
      42 |       }
      43 |     }
      44 |   };

      at handleMake (test/statsCases/issue-17747/plugin.js:41:15)

...(snip)...

You can also demonstrate that this test passes if you comment out the following lines from NormalModuleFactory.js:
https://github.com/webpack/webpack/blob/51f0f0aeac072f989f8d40247f6c23a1995c5c37/lib/NormalModuleFactory.js#L528-L530
This PR also includes the snapshot that's generated when you run the test with these lines commented out.
Did you add tests for your changes?

This PR only contains tests, no implementation changes.
Does this PR introduce a breaking change?

No.
What needs to be documented once your changes are merged?

Documentation is unaffected.

Fixed by configuration changes described here: https://github.com/webpack/webpack/issues/17747#issuecomment-2432818194


Modal triggered from menu item issues

Steps

Have a menu
Have a menu item that trigger a modal
Have a modal that has a form with a checkbox
Open the menu
Click on the menu item that trigger the modal
Click on the checkbox in the form of the modal

Expected Result
The checkbox in the form of the modal should be clickable and not dismiss the modal upon click
Actual Result
Upon clicking on any part of the modal, the modal is closed
Version
0.63.4
Testcase
http://codepen.io/anon/pen/zNxXKo?editors=0010

Please provide a test case.  You can fork the codepen in the issue template.

@levithomason I have added the testcase. Thanks for your help!

Ah, I see.  The issue here is that the Modal is owned by the Menu.  It actually doesn't matter where you click in the Modal, clicking anywhere (or taking any action) that closes the Menu causes it to unmount which causes the Modal to unmount.  Also, in this case, it isn't actually the Menu that is at fault but the Popup that is containing the Menu.
The solution here is going to be separating some of these concerns.  I'd recommend moving the Modal higher in the tree, perhaps to the root of your view component, and controlling its open state directly, rather than with a Popup.  In this case, your Popup / Menu would toggle some app state showLogoutModal and that is all.  Then, your Modal would consume that state to open/close.  This way, the Popup is not the owner of the Modal.  I believe this is the more "React way" of going about this relationship.


Please add ordinals-sea-creatures AND new-world-money (added both to …

…this PR)

Add mutant-unicorns also, please


Some widgets disappear from the dashboard after a reboot

Dev Home version
<IP_ADDRESS>
Windows build number
10.0.22621.1778
Other software
OS Build Version: 10.0.22621.1778.amd64fre.ni_release.220506-1250
.NET Version: .NET 6.0.16
Steps to reproduce the bug
Every time I reboot my PC (or shut down and turn the PC on again), some of the widgets disappear from the dashboard. Sometimes it removes all the widgets from the dashboard.
Expected result
The widgets should not be removed from the dashboard after a reboot.
Actual result
Some widgets get randomly removed after a reboot.
Included System Information
CPU: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
Physical Memory: 15.83GB (8.19GB free)
Processor Architecture: x64
Included Extensions Information
Extensions:
Microsoft.Windows.DevHome_<IP_ADDRESS>_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHomeGitHubExtension_<IP_ADDRESS>_x64__8wekyb3d8bbwe

Duplicate of #742


h265/HEVC codec on future builds for windows

http://www.h265files.com/embed-h265-video.php
just like this bloated chromium build https://github.com/henrypp/chromium/releases/tag/v68.0.3424.0-r556419-win64

close this please
#284


Added/updated examples

Based on https://github.com/RhinoHealth/user-resources/pull/5
Added several examples for GC, NVFlare, and the SDK
Updated existing examples
Added README.md files for everything

Another thing I just noticed is that one of the NVFlare example folders has -nvflare-v2.2 after the name. Is that a convention we should do for all of them or keep it to just the one

I don't think we need this convention for all NVFlare examples. In this example I left the -nvflare-v2.2 suffix because we also have a mimic-cxr example using NVFlare v2.0 so this makes it easier to distinguish between them. I can add the -nvflare-v2.0 suffix to the current mimic-cxr example if you think that will be easier to understand (though not sure it's necessary)


Compiled code crashes when using nodegit

Example code:
https://github.com/nodegit/nodegit/blob/a7bde084cdc3537dd30522bb8fa1e6f2ff724898/test/tests/diff.js#L96
Error:
../node_modules/nan/nan_object_wrap.h:33: static T *Nan::ObjectWrap::Unwrap(v8::Local<v8::Object>) [T = GitDiffOptions]: Assertion `object->InternalFieldCount() > 0' failed.

Get the same error from enclose compiled binary.

I will greatly appreciate small simple project to reproduce it. Actually pkg has a test for nodegit: https://github.com/zeit/pkg/blob/master/test/test-79-npm/nodegit/nodegit.js but it too simple 🙂

Here is the code which might be able to trigger the error (I'm still waiting for the test result).  Btw, is there a way to run a specific test only?
'use strict';

var NodeGit = require('nodegit');
var Diff = NodeGit.Diff;

NodeGit.Repository.open('./').then(function(repo) {
  var opts = {
    flags: Diff.OPTION.INCLUDE_UNTRACKED | Diff.OPTION.RECURSE_UNTRACKED_DIRS
  };

  return Diff.indexToWorkdir(repo, null, opts);
}).then(function() {
  console.log('ok');
});

Yeah, place `if (dicky !== 'nodegit') return;' here
https://github.com/zeit/pkg/blob/c215477529aa03ae3b1f726fc7a359ea5ad71c26/test/test-79-npm/main.js#L134

Or packy should be compared. I rarely use it that way 🙂

Ok, it looks like I can't run the test:
*************************************
host only-npm host only-npm
*************************************

Cleaning cache...
Getting stamp...
Stamp is {"p":"linux","a":"x64","m":51}
Waiting...

*********************************************************
*********************************************************
*********************************************************
Testing nodegit...
Installing nodegit...
npm WARN enoent ENOENT: no such file or directory, open '/home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/node_modules/ajv/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/node_modules/node-gyp/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/node_modules/node-pre-gyp/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/node_modules/readable-stream/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/node_modules/tar-pack/package.json'
Version of nodegit is 0.18.3
Running non-compiled nodegit...
Result is ''
Cleanup...

Changes:
nodegit,linux/x64/m48: new nop,precompiled binary is for node7 only
nodegit,linux/x64/m51: new bad-test,precompiled binary is for node7 only

/home/lsm/workspace/os/pkg/test/test-79-npm/main.js ok

node version is v7.10.0
Any clue?

I tried it again with a clean pkg repo, similar error got.  Apparently, the test itself did not get a chance to run:
*************************************
host only-npm
*************************************

Cleaning cache...
Getting stamp...
Stamp is {"p":"linux","a":"x64","m":51}
Waiting...

*********************************************************
*********************************************************
*********************************************************
Testing nodegit...
Installing nodegit...
npm WARN prefer global<EMAIL_ADDRESS>should be installed with -g
Version of nodegit is 0.18.3
Running non-compiled nodegit...
> node /home/lsm/workspace/os/pkg/test/test-79-npm/nodegit/nodegit.js
Result is ''
Cleanup...

Changes:
nodegit,linux/x64/m51: new bad-test,precompiled binary is for node7 only

/home/lsm/workspace/os/pkg/test/test-79-npm/main.js ok

I will look into it soon.

Confirmed. Trying to solve.

Improved support for nodegit npm package. Please try again with<EMAIL_ADDRESS>

Awesome!  Really appreciate the fix.  Will let you know the result.

@igorklopov I can confirm this one is fixed.  Thanks a lot!

Great!


Add an ERC20gatedPaymaster contract

Paymaster Description
Objective: Implement an ERC20GatedPaymaster that covers gas fees for users based on their possession of a specific ERC20 token.
Functionality:

Before agreeing to pay the gas fee, the ERC20GatedPaymaster will verify if the user holds a certain ERC20 token in their account.
The user must have a balance greater than 0 of the specified ERC20 token to be eligible.
If eligible, the paymaster will cover the corresponding gas fees for the user's transaction.

Rationale

Extended Utility for Tokens: This paymaster concept augments the utility of governance tokens and other ERC20 tokens. Token holders can engage in platform activities without the concern of gas fees.
Innovative Use Cases: Projects can incentivize their communities to hold onto their tokens by offering gas-free transactions.
Ease of Adoption: With the proliferation of ERC20 tokens in various projects, a ready-to-use ERC20GatedPaymaster can easily be adopted and integrated, making it a valuable tool for numerous projects.

Additional Information

Extending Considerations: While the primary check is for a non-zero balance, the contract can potentially be extended to require minimum token thresholds for different tiers of gas fee coverage.

Task deliverable

[ ] Adds ERC20GatedPaymaster contract
[ ] Add to the UI integration
[ ] Add unit tests
[ ] Updates readmes

Ho


WIP: nightwatch-cucmber

[ ] Add dependency
[ ] Setup config
[ ] Add Default test
[ ] refactor and remove deprecated code form test/e2e

erg wrong fork, sorry.


Improper pane view switch in some conditions

Version and Platform (required):

Latest dev Macos

Bug Description:
Panes can spuriously switch their view.
Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

Split pane
Got to right pane and switch to graph view.
Left pane will some times switch to graph view too.

Expected Behavior:
Views should not be synchronized between panes, only addresses should be synchronized.

There's something probably related, but maybe different, going on in the ticket I just closed above (#3335) where the display name of the type of disassembly being shown is missing entirely when switching.

Fixed in 3.2.3819-dev.


SVG Support

I think this is a must since it's the only vector format widely supported. Most web and mobile developers need to generate resized JPGs, PNGs from SVG images.

+1

+1

Any updates on this? I know this is meant to be strictly a image manipulation library, but I was hoping to image manipulation and converting including SVG files.

+1

+1


Unable to Open Examples in Existing Json File demo-rasa.json installed and newly added examples not saving

Thanks for creating this issue. Could you please specify what's not working? Please use the following format:

environment (OS, git hash of trainer)
steps to reproduce
expected behaviour
observed behaviour

thanks!

Sorry to hijack this issue. Even I was facing the same issue (on macOS 10.12). I think what he was referring to was that the default training data (from the demo-rasa.json) has entity_examples & intent_examples objects in the json whereas the rasa-nlu-trainer requires common_examples with the training data json to visualise correctly or you end up with an error (attached). The workaround I tried was to rename the entity_examples to common_examples in the training data set. Hope this helps. Thanks.

thanks for the clarification! have updated that file :) see PR in rasa_nlu repo

thanks @naveen-tex , this should have been fixed since v0.2.4.
don't you getting an update notification like this?:

after the updates (to the trainer & the rasa_nlu) everything works. Thanks @amn41 & @azazdeaz

Great! :) (I hope that update message works everywhere, it's really hard to test if it pops up when it needed :) )


Update the logging example to user v3.0 meta.key

Found while copy pasting the example to play with concept / library!

Coverage remained the same at 97.6% when pulling f1ec67bb72dc3ac76cbb3bc7e0b196197f8ddee3 on KevCJones:patch-1 into d77d3c8882ba04231bb2b096a893622f185aeb0b on k1r0s:master.

thanks @KevCJones, appreciated!


data-html has no effect for saved selections

I want to show the standard related object popup when the user clicks on a selected option in a Django admin DAL multi-select field, like it works when clicking the ForeignKey field pencil icon 🖉.
The models are as follows:
class Author(models.Model):
    name = models.CharField(_('name'), max_length=160)

class Book(models.Model):
    authors = models.ManyToManyField(Author, verbose_name=_('authors'), blank=True)
    ...

The admin configuration using the ModelSelect2Multiple widget  is as follows:
from dal import autocomplete

@admin.register(Book)
class BookAdmin(admin.ModelAdmin):

    class Media:
        js = ['/static/books/js/book-admin.js']

    def formfield_for_manytomany(self, db_field, request, **kwargs):
        if db_field.name == 'authors':
            return forms.ModelMultipleChoiceField(
                required=False,
                label=Author._meta.verbose_name_plural.title(),
                queryset=Author.objects.all(),
                widget=autocomplete.ModelSelect2Multiple(
                    url='author-autocomplete',
                    attrs={'data-html': True}))
        return super().formfield_for_foreignkey(db_field, request, **kwargs)

The DAL view is as follows:
from django.utils.safestring import mark_safe

from dal import autocomplete

from .models import Author
from django.urls import reverse

class AuthorAutocomplete(autocomplete.Select2QuerySetView):
    def get_queryset(self):
        if not self.request.user.is_staff:
            return Author.objects.none()

        qs = Author.objects.all()
        if self.q:
            qs = qs.filter(name__icontains=self.q)

        return qs

    def get_selected_result_label(self, item):
        change_url = reverse('admin:books_author_change', kwargs={'object_id': item.id})
        return mark_safe('{item.name}')

When selecting a new author in the Authors field in the Book change view in admin, the HTML element is managed by ModelSelect2Multiple, so the custom HTML is present and clicking on the newly selected author opens the popup as intended.
But the problem is that the custom HTML will not be present in existing selections, so the click handlers have to be added with jQuery manually in book-admin.js:
'use strict';

window.addEventListener("load", function () {
    /**
     * Show related object popup when user clicks on selected author name.
     */
    (function ($) {
        var $authorsSelect2Selections = $('div.form-row.field-authors .select2-selection__choice > span:nth-child(2)');
        var $authorOptions = $('#id_authors > option');
        $authorsSelect2Selections.click(function () {
            var self = this;
            // Find corresponding option by text comparison, assuming that author name is unique
            var $result = $authorOptions.filter(function() {
                return $(this).text() === self.textContent;
            });
            showRelatedObjectPopup({
                href: '/admin/books/author/' + $result.val() + '/change/?_popup=1',
                id: 'change_id_other_authors'
            });
        })
    })(django.jQuery);
});

Would it be possible to honor data-html also for existing selections somehow (e.g. by passing it into options with a data attribute) so that the fragile jQuery code is not needed?

When I look at page source, then I see that the HTML is present:
<option value="1" selected>Mark Twain</option>

So it seems that the HTML is stripped in JavaScript when building the widget.

As far I know, the saved selection is rendered by the Widget (that does not know the matching View and that does not have a request argument). So, you should use a subclass of the Widget and override optgroups()

Did you try django-add-another ?

Apologies, but what is django-add-another?

@mrts yes, it's my solution for this problem


remove mkumatag from reviewer list

Not actively involved, hence removing my entry from the reviewers to avoid getting assigned automatically for the review

/lgtm


joinChannelWithUserAccount does not register user

Hello! RtcRemoteView seems to only support Int uid. However our app uses string uuids to manage users.
By referring to https://github.com/AgoraIO-Community/react-native-agora/issues/338, I used joinChannelWithUserAccount to join channel and getUserInfoByUserAccount to retrieve mapped int uids of remote users but the response is always undefined.
Local user joining channel (broadcaster)
AgoraEngine.joinChannelWithUserAccount(token, channelId, remoteUser.uuid, null)

Getting remote user's uid (audience)
AgoraEngine.addListener("JoinChannelSuccess", async (channel, uid, elapsed) => {
  const res = await AgoraEngine.getUserInfoByUserAccount(remoteUser.uuid)
  console.log(res) # this prints undefined. seems like user is not registered
});

LocalUserRegistered callback is fired successfully after joinChannelWithUserAccount
AgoraEngine.addListener("LocalUserRegistered", (uid, userAccount) => {
   console.log(uid) # this prints int uid
   console.log(userAccount) # this print user's uuid
})

Am I missing something? Do I need to call registerLocalUserAccount before joinChannelWithUserAccount ? According to document (https://docs.agora.io/en/live-streaming/API Reference/react_native/v3.5.0/classes/rtcengine.html#registerlocaluseraccount), it seems like either should work.
Any help would be much appreciated! Thanks a lot in advance!

You should call getUserInfoByUserAccount after UserJoined event received.

@LichKing-2234
Thanks for the reply! I will try it!


Merge crusoe_update branch to main

crusoe_update branch is a successor branch to issues:

#1
#2
#3

The required student updates were merged together with their corresponding original repository history. I went through Docker deployment and Vagrant & Ansible deployment. It should be deployable. The question is whether the components actually work together.

docker-compose deploys everything
Vagrant files deploying singular parts of the Crusoe to separate VMs work
Common Vagrant file deploying everything in a single VM works

This also applies to the newly integrated component: the Recommender system - Dockerfile, separate Vagrantfile, and integration to common Vagrantfile.

Observations:
One observation:
Everything is super old: both Vagrantfiles and Dockerfiles are based on Debian 10.
This proved to be especially problematic when integrating the Recommender system, which requires a newer version of Python (Debian 10 has mainly Python 3.7, Recommender prerequisites need at least Python 3.10). This was not an issue for the Docker deployment, but had to be respected for Vagrant & Ansible deployment (mainly the common VM) - solvable by installing Python3.10 from source files and setting it as an alternative version.
What is a little more problematic (assuming the Recommender system and CRUSOE (observe) should work over the same Neo4J database). Crusoe observe deploys Neo4J 3.5.x, Recommender system seems to utilize queries with syntax compatible with 4.0+  versions.


Added a '.'.

What issue does this PR address?
Missing '.' between two sentences.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements

[X] The commit follows our guidelines
[ ] Unit Tests for the changes have been added (for bug fixes / features)

Other information:
Typo fix.

Thanks


[newrelic-infrastructure-v3] if control plane disable not possible to scrape integrations

Bug description
I believe that since we create:
  - apiGroups: [ "" ]
    resources:
      - "pods"
      - "nodes"
    verbs: [ "get", "list", "watch" ]

if .Values.controlPlane.enabled the nri-discovery is not able to get such info if control plane is disabled.
We are connecting to the kubelet therefore it is a bit different, but still I believe that the request would be denied
Which chart?
newrelic infrastructure v3
Reproduction
Pending

Actually it is a different service account, not 100% sure how it is authenticating when listing pods from kubelet, need to dig a bit


Add web assembly/wasm

Related to asm.js but should probably be called out separately.
Links:

https://brendaneich.com/2015/06/from-asm-js-to-webassembly/
http://www.2ality.com/2015/06/web-assembly.html
https://github.com/WebAssembly
https://github.com/WebAssembly/design
https://github.com/WebAssembly/spec
https://github.com/WebAssembly/wasm-e2e
https://www.chromestatus.com/features#Webassembly (proposed status for Chrome)

Duplicate of #1674.

This was added some time ago at https://caniuse.com/#feat=wasm


ExteriorFacetBasis.with_element

For #603.

Much of the code could be shared with the InteriorBasis implementation but it might look a little tangled.