Update README.md

In the latest pytorch, grad data is not created until loss.backward() is called once. So, it throws an error without the condition.

Fixed in https://github.com/jcjohnson/pytorch-examples/commit/0d8adca7c5ef427c738fe3a484edc76ab6ddc105.


Option to run the client in docker too

Removes the need to set the tricky GATEAWAY_HOST but retains the ability to run the client on the host.
Merge this after #15.

@jtyberg can you have a look and merge?


Update Android setup documentation

Use case
When trying to setup the example Android test I encountered an error
• Building apk with entrypoint test_bundle.dart...

        FAILURE: Build failed with an exception.

        * Where:
        Build file '/Users/my.user/FlutterProjects/my_project/android/build.gradle' line: 13

        * What went wrong:
        A problem occurred evaluating root project 'android'.
        > A problem occurred configuring project ':app'.
           > Removing unused resources requires unused code shrinking to be turned on. See http://d.android.com/r/tools/shrink-resources.html for more information.

        * Try:
        > Run with --stacktrace option to get the stack trace.
        > Run with --info or --debug option to get more log output.
        > Run with --scan to get full insights.

        * Get more help at https://help.gradle.org

        BUILD FAILED in 790ms
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (1.4s)
Exception: Gradle build failed with code 1
See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.
Exception: Gradle build failed with code 1
#0      AndroidTestBackend.build.<anonymous closure> (package:patrol_cli/src/android/android_test_backend.dart:79:9)
<asynchronous suspension>
#1      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
<asynchronous suspension>
#2      AndroidTestBackend.build (package:patrol_cli/src/android/android_test_backend.dart:49:5)
<asynchronous suspension>
#3      TestCommand._build (package:patrol_cli/src/commands/test.dart:325:7)
<asynchronous suspension>
#4      TestCommand.run (package:patrol_cli/src/commands/test.dart:246:5)
<asynchronous suspension>
#5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:358:18)
<asynchronous suspension>
#7      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:302:18)
<asynchronous suspension>
#8      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:71:20)
<asynchronous suspension>
#9      main (file:///Users/my.user/.pub-cache/hosted/pub.dev/patrol_cli-3.2.0/bin/main.dart:6:20)
<asynchronous suspension>

I was able to fix it by adding shrinkResources false to android/app/build.gradle, next to minifyEnabled false
Proposal
Consider adding this piece of code to your setup documentation in the 'Pro Guard' Android section
buildTypes {
release {
...
}
debug {
shrinkResources false
minifyEnabled false
}
}

Thank you @Kurczaak for the report and @dhirajchaurasiya10 for PR!


torch.multiprocessing.spawn.ProcessRaisedException

Hi, @fredzzhang ：
I had a sudden situation, before I kept the same settings, it ran without problems. Do you know how?
nohup: ignoring input Namespace(alpha=0.5, aux_loss=True, backbone='resnet50', batch_size=8, bbox_loss_coef=5, box_score_thresh=0.2, cache=False, clip_max_norm=0.1, data_root='./hicodet', dataset='hicodet', dec_layers=6, device='cuda', dilation=False, dim_feedforward=2048, dropout=0.1, enc_layers=6, eos_coef=0.1, epochs=30, eval=False, fg_iou_thresh=0.5, gamma=0.2, giou_loss_coef=2, hidden_dim=256, lr_drop=10, lr_head=0.0001, max_instances=15, min_instances=3, nheads=8, num_queries=100, num_workers=2, output_dir='checkpoints/upt-r50-hicodet2244', partitions=['train2015', 'test2015'], port='3714', position_embedding='sine', pre_norm=False, pretrained='checkpoints/detr-r50-hicodet.pth', print_interval=500, repr_dim=512, resume='', sanity=False, seed=66, set_cost_bbox=5, set_cost_class=1, set_cost_giou=2, weight_decay=0.0001, world_size=2) Load weights for the object detector from checkpoints/detr-r50-hicodet.pth => Rank 0: start from a randomly initialised model => Rank 1: start from a randomly initialised model Traceback (most recent call last):   File "main.py", line 220, in <module>     mp.spawn(main, nprocs=args.world_size, args=(args,))   File "/home1/quan107552101247/.conda/envs/pocket/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 230, in spawn     return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')   File "/home1/quan107552101247/.conda/envs/pocket/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 188, in start_processes     while not context.join():   File "/home1/quan107552101247/.conda/envs/pocket/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 150, in join     raise ProcessRaisedException(msg, error_index, failed_process.pid) torch.multiprocessing.spawn.ProcessRaisedException:
-- Process 0 terminated with the following error: Traceback (most recent call last):   File "/home1/quan107552101247/.conda/envs/pocket/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 59, in _wrap     fn(i, *args)   File "/home1/quan107552101247/upt/main.py", line 137, in main     engine(args.epochs)   File "/home1/quan107552101247/spatially-conditioned-graphs/pocket/pocket/core/distributed.py", line 139, in __call__     self._on_each_iteration()   File "/home1/quan107552101247/upt/utils.py", line 139, in _on_each_iteration     if loss_dict['interaction_loss'].isnan(): TypeError: list indices must be integers or slices, not str
yaoyaosanqi.

Hi @yaoyaosanqi,
The model returns a dict containing the losses during training, while during test it returns a list of detections. The error loss_dict['interaction_loss'].isnan(): TypeError: list indices must be integers or slices, not str suggests a list has been returned during training.
I need to know what changes you made to the code to find the problem. Run git status to find scripts that have been modified and look into the changes.
Fred.

Following your suggestion, I checked the code and found that I commented out the training part when I was debugging before.
The issue was caused by my negligence. Already solved, thank you very much!
        #if self.training:##$$targets:4list,只经过数据预处理,一个list一张图片          # interaction_loss = self.compute_interaction_loss(boxes, bh, bo, logits, prior, targets)          # loss_dict = dict(          #     interaction_loss=interaction_loss          # )          # return loss_dict


Globals & imports

Are those things supported? Atom version of this plugin handles those.

Not sure what you mean by imports, but the globals option is supported, like all the other documented options. In the future I would appreciate it if you just tried before asking.

Ok, globals are supported, my bad - I have project(not configured) inside project(configured).
But please take a look at this:

It's the same file open in atom and sublime text. Both have xo plugin installed but sublime doesn't recognize webpack imports. Here's the resolver:


what is alternative to hbase bulkload

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is your feature request related to a problem? Please describe.
What the problem is. Example: I'm always frustrated when [...]
Describe the solution you'd like
We are planning to migrate from hbase to bigtable. We used bulkload to load large amount of data. The bulkload is efficient and it is able to ensure Idempotency. How to achieve the efficiency and update idempotency via bigtable? Do you have any recommendation?
Describe alternatives you've considered
Any alternative solutions or features you've considered.
Additional context
Any other context or screenshots about the feature request.

Can anyone help here please?

Can anyone help here please?

cc @lichng & @vermas2012
Currently our migration process depends on exporting HBase data as SequenceFiles. To either HDFS or GCS and running either a map reduce job or dataflow job to import the data into Bigtable.
We are currently working on a dataflow job that could import HBase snapshot files directly.
Both methods should be idempotent for mutations because the timestamps should be preserved. However Bigtable doesnt have a concept of delete markers, so we can't ensure that deletes are idempotent.

cc @lichng & @vermas2012
Currently our migration process depends on exporting HBase data as SequenceFiles. To either HDFS or GCS and running either a map reduce job or dataflow job to import the data into Bigtable.
We are currently working on a dataflow job that could import HBase snapshot files directly.
Both methods should be idempotent for mutations because the timestamps should be preserved. However Bigtable doesnt have a concept of delete markers, so we can't ensure that deletes are idempotent.

When you say "update idempotency", do you mean during the migration or post migrations (daily import jobs?).
For migrations, recommended solution is to use dataflow import templates (HBase sequence files or HBase snapshots). These imports will be idempotent and running the import multiple times will not have any side effects (Assuming there are no other writes happening to Bigtable during the migration).


ThreadSanitizer Issue - Swift access race in ImageDownloader.clean

Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

[x] I have read the wiki page and cheat sheet, but there is no information I need.
[x] I have searched in existing issues, but did find a same one.
[x] I want to reoprt a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.

Issue Description
What

==================
WARNING: ThreadSanitizer: Swift access race (pid=46324)
  Modifying access at 0x7b240002c420 by thread T1:
  * #0 _T010Kingfisher15ImageDownloaderC5cleany10Foundation3URLV3for_tFyycfU_ ImageDownloader.swift:382 (Kingfisher:x86_64+0x515eb)
    #1 _T010Kingfisher15ImageDownloaderC5cleany10Foundation3URLV3for_tFyycfU_TA ImageDownloader.swift (Kingfisher:x86_64+0x58c58)
    #2 _T0s5Error_pIxzo_ytsAA_pIxrzo_TR ImageDownloader.swift (Kingfisher:x86_64+0x4b366)
    #3 _T0s5Error_pIxzo_ytsAA_pIxrzo_TRTA.66 ImageDownloader.swift (Kingfisher:x86_64+0x58d2f)
    #4 _T0So13DispatchQueueC0A0E11_syncHelper33_F417D752D2C4E9330E1C700411CE0C6ALLxyAC0A8WorkItemCc2fn_AC0anO5FlagsV5flagsxyKc7executexs5Error_pKc6rescuetKlFyycfU_Tf4ngn_n <null>:1059424 (libswiftDispatch.dylib:x86_64+0x13b9b)
    #5 _dispatch_client_callout <null>:1059424 (libdispatch.dylib:x86_64+0x343b)
    #6 _T0So13DispatchQueueC0A0E12_syncBarrier33_F417D752D2C4E9330E1C700411CE0C6ALLyyyc5block_tFTA <null>:1059424 (libswiftDispatch.dylib:x86_64+0x1390c)
    #7 _T010Kingfisher29ImageDownloaderSessionHandlerC14cleanFetchLoad33_1CBBE1CEF600480D48F123F40F117AB5LLy10Foundation3URLV3for_tF ImageDownloader.swift:470 (Kingfisher:x86_64+0x545a4)
    #8 _T010Kingfisher29ImageDownloaderSessionHandlerC07processB033_1CBBE1CEF600480D48F123F40F117AB5LLySo14URLSessionTaskC3for_10Foundation3URLV3urltFyycfU_ ImageDownloader.swift:510 (Kingfisher:x86_64+0x55f5d)
    #9 _T010Kingfisher29ImageDownloaderSessionHandlerC07processB033_1CBBE1CEF600480D48F123F40F117AB5LLySo14URLSessionTaskC3for_10Foundation3URLV3urltFyycfU_TA ImageDownloader.swift (Kingfisher:x86_64+0x5afa0)
    #10 _T0Ix_IyB_TR AnimatedImageView.swift (Kingfisher:x86_64+0xaeec)
    #11 __tsan::invoke_and_release_block(void*) <null>:1059424 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x637fb)
    #12 _dispatch_client_callout <null>:1059424 (libdispatch.dylib:x86_64+0x343b)

  Previous read of size 8 at 0x7b240002c420 by thread T6:
  * #0 _T010Kingfisher15ImageDownloaderC10fetchLoadss10DictionaryVy10Foundation3URLVAC0B9FetchLoadCGfg ImageDownloader.swift (Kingfisher:x86_64+0x491d3)
    #1 _T010Kingfisher29ImageDownloaderSessionHandlerC14cleanFetchLoad33_1CBBE1CEF600480D48F123F40F117AB5LLy10Foundation3URLV3for_tF ImageDownloader.swift:472 (Kingfisher:x86_64+0x545dd)
    #2 _T010Kingfisher29ImageDownloaderSessionHandlerC07processB033_1CBBE1CEF600480D48F123F40F117AB5LLySo14URLSessionTaskC3for_10Foundation3URLV3urltFyycfU_ ImageDownloader.swift:510 (Kingfisher:x86_64+0x55f5d)
    #3 _T010Kingfisher29ImageDownloaderSessionHandlerC07processB033_1CBBE1CEF600480D48F123F40F117AB5LLySo14URLSessionTaskC3for_10Foundation3URLV3urltFyycfU_TA ImageDownloader.swift (Kingfisher:x86_64+0x5afa0)
    #4 _T0Ix_IyB_TR AnimatedImageView.swift (Kingfisher:x86_64+0xaeec)
    #5 __tsan::invoke_and_release_block(void*) <null>:1059424 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x637fb)
    #6 _dispatch_client_callout <null>:1059424 (libdispatch.dylib:x86_64+0x343b)

  Issue is caused by frames marked with "*".

  Location is heap block of size 136 at 0x7b240002c3a0 allocated by main thread:
    #0 malloc <null>:1059440 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x46a2a)
    #1 swift_slowAlloc <null>:1059440 (libswiftCore.dylib:x86_64+0x342c08)
    #2 _T010Kingfisher15ImageDownloaderCACSS4name_tcfC ImageDownloader.swift (Kingfisher:x86_64+0x4946c)
    #3 globalinit_33_1CBBE1CEF600480D48F123F40F117AB5_func1 ImageDownloader.swift:231 (Kingfisher:x86_64+0x493e6)
    #4 dispatch_once <null>:1059440 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x64464)
    #5 dispatch_once_f <null>:1059440 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x64556)
    #6 _T010Kingfisher15ImageDownloaderC7defaultACfau ImageDownloader.swift:231 (Kingfisher:x86_64+0x494e9)
    #7 _T010Kingfisher0A7ManagerCACycfc KingfisherManager.swift:91 (Kingfisher:x86_64+0x8efac)
    #8 _T010Kingfisher0A7ManagerCACycfC KingfisherManager.swift (Kingfisher:x86_64+0x8e647)
    #9 globalinit_33_34361C00AC0F1B424C7ED272C635AF94_func2 KingfisherManager.swift:69 (Kingfisher:x86_64+0x8e59f)
    #10 dispatch_once <null>:1059440 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x64464)
    #11 dispatch_once_f <null>:1059440 (libclang_rt.tsan_iossim_dynamic.dylib:x86_64+0x64556)
    #12 _T010Kingfisher0A7ManagerC6sharedACfau KingfisherManager.swift:69 (Kingfisher:x86_64+0x8e6b9)
    #13 _T010KingfisherAACAASo11UIImageViewCRbzlE8setImageAA08RetrieveE4TaskCAA8Resource_pSg4with_So0B0CSg11placeholderSayAA0A15OptionsInfoItemOGSg7optionsys5Int64V_AUtcSg13progressBlockyAM_So7NSErrorCSgAA9CacheTypeO10Foundation3URLVSgtcSg17completionHandlertF ImageView+Kingfisher.swift:70 (Kingfisher:x86_64+0x7d785)
    #14 _T08Barstool18StoryTableViewCellC6layouty0A4Core0B0C5story_tF StoryTableViewCell.swift:79 (Barstool:x86_64+0x10000991b)
    #15 _T08Barstool18StoryTableViewCellC5story0A4Core0B0CSgfW StoryTableViewCell.swift:70 (Barstool:x86_64+0x10000849e)
    #16 _T08Barstool18StoryTableViewCellC5story0A4Core0B0CSgfs StoryTableViewCell.swift (Barstool:x86_64+0x100008713)
    #17 _T08Barstool32CommonStoriesTableViewControllerC05tableE0So07UITableE4CellCSo0hE0C_10Foundation9IndexPathV12cellForRowAttF CommonStoriesTableViewController.swift:45 (Barstool:x86_64+0x100040531)
    #18 _T08Barstool32CommonStoriesTableViewControllerC05tableE0So07UITableE4CellCSo0hE0C_10Foundation9IndexPathV12cellForRowAttFTo CommonStoriesTableViewController.swift (Barstool:x86_64+0x100040755)
    #19 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] <null>:1059440 (UIKit:x86_64+0x181f93)
    #20 start <null>:1059440 (libdyld.dylib:x86_64+0xd80)

  Thread T1 (tid=1273014, running) is a GCD worker thread

  Thread T6 (tid=1273034, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: Swift access race ImageDownloader.swift:382 in _T010Kingfisher15ImageDownloaderC5cleany10Foundation3URLV3for_tFyycfU_
==================

Reproduce
Not sure, I just have a standard table view where each cell has 2 image views being populated by Kf. I have the ThreadSanitizer options turned on in my dev scheme

Thanks for reporting this. I will take a look at it later.

No problem, I should have also stated this is Swift 4 and iOS 11, Xcode 9 beta 6.

After some investigation, I guess it might be an issue of the ThreadSanitizer of Xcode, which might not be able to work well with a barrier queue. Like indicated in the documentation of dispatch_barrier_sync:

When the barrier block reaches the front of a private concurrent queue, it is not executed immediately. Instead, the queue waits until its currently executing blocks finish executing. At that point, the queue executes the barrier block by itself. Any blocks submitted after the barrier block are not executed until the barrier block completes.

Both of the racing statement are surrounded by a barrier sync, it should be totally fine since the execution of them will be happened in a sequence way, without a race condition. There should be no case that both of them get accessed or modified.
So you could just ignore this. I don't think the sanitizer works well on this. However, I am not 100% sure about for which case the thread sanitizer could give a warning (since it is true that they happens in different threads. So maybe it is just the way thread sanitizer works).
Maybe I was wrong. Please let me know if you have any other ideas. Thanks!

If unchecking the option "Thread sanitizer" in the xcode settings, then it works well :)

Umm, it seems that I misunderstood the sanitizer warning. There was actually a race condition in reading without barrier. Now it should be fixed in #790
@AndrewBarba @shilei365 Thanks for reporting this!


RefreshControlColor property in ListView is missing

It's not available on Xamarin. Kindly mail me if there's an update to this part.

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

ID: 1b0eed28-8065-951a-1b3f-325c59414a7c
Version Independent ID: eac566b7-faba-2bea-f9c4-bdadff5169f6
Content: ListView Interactivity - Xamarin
Content Source: docs/xamarin-forms/user-interface/listview/interactivity.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @CraftedPvP
It's available in Xamarin.Forms 3.5.

Hi, I don't know how to leave feedback of my own. So I am posting it and attaching it to this guys work with the hopes of letting you know.
I am having an issue of this working for tabbed pages, maybe it is my issue, but adding context actions doesn't show when I have a tabbed page.


GDPR compliant Database Syncs

with GDPR approaching it would be awesome to have GDPR compliant database syncs (aka auto removal of sensitive data)

It would be awesome!

Closing as there will be alternatives available like https://github.com/machbarmacher/gdpr-dump


Can you add a changelog?

It will be very helpful to know what each release is changing.
Also it seems like there was a breaking change with the format of SSN in a recent release.

Havent found a good and easy way to implement it. I normally dont due large sweeping changes that require it.
That being said Ill make an effort to add it


Compiler does not report error when compiling

For react native, when there are compile errors, ts still dose not report them while tslint has marked them.

Can you give an example? Syntax errors should be reported, but lint and type errors are not expected to be reported. See #13 for more details about why.

Well, what I expect is exactly to report the type errors not only syntax errors, I wish this could be a feature to implement as an option.

@yuwenhuisama One way to get that feature is to use: https://github.com/callstack/haul. Which is a replacement for the React Native Packager. They have a typescript setup example: https://github.com/callstack/haul/blob/master/docs/Recipes.md.

I'm going to close this issue because it's a duplicate of #29 — if you feel this is a separate issue, please feel free to open another issue and link to this one :pray:


fmSetupAssistant: Write preference with correct data type (Mac)

Writing preferences back needs to be extended to write the correct data type.
Requires:

read data type from source preference
write preference with correct data type
conversion of display values to preference values

specifically convert integer-as-checkbox to correct integer ("" -> Integer 0)

tests

Fixed in version 0.11 d47686c0c99470e83ba4f323ce8933cb3d50a221

Reopened !
Correction: in v0.11 only a bug was corrected which caused the data type to be falsely set after editing the setting definition.
This needs testing further.

Nope, I'm gonna call this done and open a new issue.


Bug: Black and white colours in HSL format show NaN

Describe the Bug
Black and white colours in Tailwind and CSS HSL format show NaN
Steps to Reproduce
Steps to reproduce the behavior:

Choose Black or White colour
Click on 'Generate Colors'
Click on 'Export Color'
Click on 'Tailwind HSL'
Click on 'CSS HSL'

Expected Behavior
Should convert without NaN. Please check correct conversion.
Screenshots
N/A
Environment

Browser:  Chrome

Additional Context
N/A

Thanks for noticing this @shahpreetk

I'll fix it as part of Typescript conversion


serverless initial commit

support deploying backend applications into AWS SAM

adding OIDC authorizer/authentication logic into lambda
supports github action (only)

What are the remaining TODOs for this PR?

Sorry @Siddhant-K-code , due to the size and complexity of this work, the Zero team has been handling it, and it's just about done. If you're interested in contributing there are some other outstanding issues in this repository and the other Zero repos. You can see a full project view here including issues from all repos: https://github.com/orgs/commitdev/projects/6/views/1