ML_Customer_Segmentation_(ML-Projects)

Description 📜
Analysing different types of customers around the globe and build a classification model accordingly with the help of given dataset
Fixes #7858

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[X] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[X] Machine Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[X] I follow Contributing Guidelines & Code of conduct of this project.
[X] I have performed a self-review of my own code or work.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] My changes generates no new warnings.
[X] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@Isha307 Thank you ma'am. I went through the solutions provided on Kaggle. Even the winning solution had an accuracy around 58% : https://www.kaggle.com/vetrirah/top-5-winning-solution-customer-segmentation. Even I tried my best to increase the accuracy. After doing some research I found that this dataset suffers from high variance, maybe getting more examples into the dataset would solve the purpose as you can see it performs well on training dataset in the case of RandomForest but is not able to perform well on testing dataset. I am actually beginner in ML, I have done the data preprocessing (label encoding and handling null values) to the best I could achieve. Please ma'am if you could point out some suggestions or some methods that I could try, it would really help me. I am willing to increase the accuracy.
https://www.kaggle.com/vetrirah/customer/code.

@abhisheks008 thank you sir. I have added versions of libs in requirements file. Please verify.

Approved from my side @NikitaEmberi

Approved from my side also @NikitaEmberi


Not Generating Pdf

when generating pdf then it showing this error

i have deploy in netliy and vercel but same error .
when i have tried in codespace then it is normal

It should be working now with this new commit 2e0ecd8

ok it has been fixed


Getting permission errors installing using pip on python

https://circleci.com/gh/drazisil/turbo-eureka/23?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Image: circleci/python:3.7.4-buster
Command ran: pip install tox

Have you tried suffixing your command with --user? Or prefixing your command with sudo?

@felicianotech --user will work once your change hits.
sudo also works, but it's not needed locally and I'm not sure it's considered good form, (or should be needed), to install packages as root.
https://stackoverflow.com/questions/21055859/what-are-the-risks-of-running-sudo-pip
On CI it's probably not a problem, but I don't see why the circleci user would have permission issues.

@drazisil Can you try not with using --user?

@felicianotech seems to still fail https://circleci.com/gh/drazisil/redis-metrics/63?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Typo, I meant: " Can you try now with using --user?"

Sorry this took so long to get back to you. Can confirm --user works
https://circleci.com/gh/drazisil/redis-metrics/65?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
Closing, Thank you.


Fix #732

@quitegreensky We have to check this ...

@HeaTTheatR Sure. When tapping on android, it sets self.status to closing_with_swipe. because it recognizes the touch as a move but there is no such issue when using mouse buttons...


Add support for EuroLinux

Description
Add support for EuroLinux distro.

Thanks for the PR :+1:. Any chance at a slightly smaller logo? It's a little large!

Done :smile:.

LGTM :+1: Thanks!

I hope that this is what you thought.

Thanks!


Way to custom your "Contrast" theme for Jekyll

Hello there,
I recently start to self-learning Jekyll related stuff, and I found your theme looks good. I forked it and tried to use it as the starting point of my personal page in github.
As a completely beginner, it would be very helpful, if you can show me some hints (or give me some pointers) about how I can custom the current looking of the "Contrast" theme (I think I have already know how to handle the content part). Does that related to the "sass" part in the repository?
Thank you so much.

You can customize some aspects of the theme in the style section of the config.yml.
Or you can customize the sass (which is compiled to css) in the _sass folder.


1.2.13-1.11.2 Block Properties

I noticed in the changelog for 1.2.13 it has "Fix block properties." Is there any way to change this behavior? I created a new config, but I'm not seeing anything. I love a lot of the things BTM adds, but I'm trying to keep my pack close to vanilla mechanics. Thanks!

This changed blocks added by the mod only, such as hardness and sound values for steel or soap, not vanilla blocks.


bbannier/dcos 53469 1.13

This test was introduced to test the correct behavior of a custom
setting for Mesos' min_allocatable_resources flag. We have since
removed this custom flag setting which both caused this test to fail
while also removing any need for this test, so we are removing the test
in this patch.
High-level description

What features does this change enable? What bugs does this change fix?
Corresponding DC/OS tickets (required)

DCOS-ID JIRA title / short description.

Related tickets (optional)

DCOS-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

Additional rationale here: https://github.com/dcos/dcos/pull/5582#issuecomment-495664149

@mesosphere-mergebot sync


@conda-forge-admin, please add user @beenje

Additional comment:
No response

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @beenje in conda-forge/guiqwt-feedstock#23.


docs: update gen-docs readme to trigger gh pages deployment

Description
Small update to the gen-docs readme.
(This is to trigger github pages deployment)
Screenshot (if UI-related)
To-Dos

[ ] Successful build yarn build
[ ] Translation keys yarn i18n:extract
[ ] Database migration (if required)

Issues Fixed or Closed

Fixes #XXXX

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

v2.0.0
GitHub release

Your semantic-release bot :package::rocket:


Add Tireless Skyflare Diamond

https://www.wowhead.com/wotlk/item=41375/tireless-skyflare-diamond

acc4617


'NoneType' object is not iterable

I just installed the workflow and I got this error after sl update.
Then I uninstalled and reinstalled the workflow and now I get this immediately, I can't even configure the API key.
macOS 14.3.1
Alfred 5.1.4
SL workflow 0.0.4 (package, didn't compile it myself)
09:06:21 filter.py:198 DEBUG    extract_commands: {'query': 'ex'}
09:06:21 workflow.py:2298 ERROR    'NoneType' object is not iterable
Traceback (most recent call last):
  File "/Users/redacted/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.287F9A7F-1745-495C-99CE-43266B1CE72E/workflow/workflow.py", line 2292, in run
    func(self)
  File "/Users/redacted/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.287F9A7F-1745-495C-99CE-43266B1CE72E/filter.py", line 399, in main
    item['list'] = list(filter(lambda x: x, item['list']))
TypeError: 'NoneType' object is not iterable
09:06:21 workflow.py:2322 DEBUG    ---------- finished in 0.038s ----------
[09:06:21.640] SimpleLogin[Script Filter] {
  "items": [
    {
      "title": "Error in workflow 'SimpleLogin'",
      "subtitle": "'NoneType' object is not iterable",
      "valid": false,
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
      }
    }
  ]
}

Fixed in 0.0.5 - I think

yep, works, thanks!
Question: does the workflow connect to google.com for some reason?

Not that I am aware of


Team admins should be able to manage disks + delete VMs

Right now, users with bosh.teams.myteam.admin scopes don't have permission to run bosh disks, bosh delete-vm, bosh attach-disk, bosh delete-disk, or bosh orphan-disk for vms/disks related to deployments owned by their team. It would be nice if they had these abilities
Thanks ❤

Closing and re-opening to get a Tracker story created.


Create Machine User (IAM) Provider

Add a resource to Cloudera's Terraform provider configuration allowing the creation of Machine Users in the IAM service.
This was accomplished through a partnership by James Randall and Rob Kelley of Medtronic.
TODO: The Terraform state file is currently tainted as the new cdp_iam_machine_user provider is not able to collect the created machine user's status and creation date.  More work is needed here.

This feature has been created by the Cloudera team since I submitted my PR.  Closing.  Thanks!


Updated Readme file

Issue #53 Resolved. Kindly merge and in case you wish to add more information kindly let me know.
Thank you

Dear sir
Kindly merge it.

If possible sir pls label as hacktoberfest too..

@Aditi-008  sorry this project is not part of hacktoberfest

Ok sir
Thank you


ROX-21621: Refresh central services leaf certs before they expire.

Description
Refresh the cert after half of its validity period passes. This way there is still plenty of time for:

the central/central-db/scanner* pods to restart and pick up the new cert, e.g. as a result of an ACS or node upgrade, even before we add auto-reload of certs at runtime to all these components
a human to intervene before expiry in case this auto-refresh is unsuccessful for whatever reason

This change also updates a few error messages for consistency.
Possible future work:

change the operator to trigger another reconcile shortly after the earliest refresh time of all encountered certificates. In practice this is not an issue, half of validity period (~6 months) of these certs is a multiple of the forced reconcile period (11 hours), so might not be worth the complexity.
change all components to pick up the new certs dynamically. Again, in practice this is not an issue, since they will likely be restarted for other reason(s) in the remaining validity time after rotation. I don't think it's worth documenting this caveat in the meantime.

Note: this PR builds on #9220 so please only look at the last commit. Still against master to let CI run.
Checklist

[x] Investigated and inspected CI test results
[x] Ran manual test described velow
[x] Unit test and regression tests added
[x] ~Evaluated and added CHANGELOG entry if required~
[x] ~Determined and documented upgrade steps~
[x] ~Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

Testing Performed
Here I tell how I validated my change

created a temporary followup change to reduce the default cert lifetime to ~30 minutes
built images with this change
provisioned a Central deployment with operator
grabed the central-tls secret for comparison later
waited 16 minutes
annotated the Central CR to trigger a reconcile
grabbed the new central-tls secret and compared it to the old one
verified that the only changes were cert.pem, key.pem and resourceVersion (i.e. the CA is untouched)
inspected the old and new cert and made sure the validity periods are as expected
bounced the pods and made sure they come up healthy, and there are no related TLS errors or warnings in the logs

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/retest

/retest

FTR, the scannerv4 job failure seems to be an unrelated flake:
# Getting CA Private Key
# curl: (7) Failed to connect to <IP_ADDRESS> port 443: Connection refused
#
Waiting on bqjob_rf0a9259d68971f3_0000018d0ca7ab1a_1 ... (0s) Current status: RUNNING

Waiting on bqjob_rf0a9259d68971f3_0000018d0ca7ab1a_1 ... (1s) Current status: RUNNING

Waiting on bqjob_rf0a9259d68971f3_0000018d0ca7ab1a_1 ... (1s) Current status: DONE
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to <IP_ADDRESS> port 443: Connection refused
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to <IP_ADDRESS> port 443: Connection refused


Allow grpcio to be built against system abseil-cpp

Similar change as my previous PR about building grpcio with system re2 #24450
I'm adding the GRPC_PYTHON_BUILD_SYSTEM_ABSL environment variable check to do the same for abseil-cpp
@donnadionne

LGTM and I like Python folks to review this as well.
@gnossen @lidizheng

I would still like for this to be merged. @gnossen @veblush what's holding this?

Sorry for the long delay. This PR just fell off of our radar. We probably need to add a nag bot so we don't lose track of contributors' PRs.
It looks like one of the sanity tests is failing due to a missing copyright notice. Can you please run tools/distrib/check_copyright.py --fix?
The Python Windows test timed out. It's possibly unrelated, but I'm retriggering just to make sure.

The Python Windows test passed this time, so I'm assuming the previous timeout was unrelated to this PR.

It looks like one of the sanity tests is failing due to a missing copyright notice. Can you please run tools/distrib/check_copyright.py --fix?

This did not result in any changes. Also, CI mentions the file test/cpp/qps/qps_json_driver_scenarios.bzl which is unrelated to this MR.
Should I try rebasing the branch on the latest master?

This did not result in any changes.

Huh. You're right. I just realized your PR didn't introduce any new files, so there shouldn't be any issues with copyright flowerboxes. At any rate, the sanity check is happy now, so no need to worry about this anymore.

This did not result in any changes. Also, CI mentions the file test/cpp/qps/qps_json_driver_scenarios.bzl which is unrelated to this MR.

No, this should be completely unrelated.
I'll just wait for these last few Python tests to finish up and then I'll merge it in. Sorry for the long turnaround time on this.


Cancel button not working for the first time in 'I have an Existing Rest API' option

Steps:

Select Create API > I Have an Existing REST API
Without filling anything select Cancel

Cancel not working and OpenAPI URL gets highlighted. After that cancel works

This issue is fixed with the latest snapshot build ( 6.8.33-SNAPSHOT )


successActionCreator/failActionCreator should also accept an action object

Suggestion
My suggestion is to able to pass an action object to successActionCreator and failActionCreator in the same way we give them an action-creator (function).
// reducer code:
return Cmd.run(myFunction1, {
    successActionCreator: { type: 'action1' },
    args: ['param']
});

Current behavior
// reducer code:
return Cmd.run(myFunction1, {
    successActionCreator: ()=>({ type: 'action1' }),
    args: ['param']
});

Limitation / Negative Implications
To test the above code, I must use a pre-defined function which is accessible from the tests files also.
Sometimes, it is not possible because the action-creator function is a closure (the action-creator function is defined at runtime).
Why the action-creator function sometimes needs to be created at runtime? Because it depends on variables that will not be pass from myFunction1:
// reducer code:
return Cmd.run(myFunction1, {
    successActionCreator: ()=>({ type: 'action1' , myParam1: someVariable}),
    args: ['param']
});

The result is a failing test:
test('failing test', t => {
    const cmd = Cmd.run(myFunction1, {
        successActionCreator: () => ({type: 'action1', myParam1: someVariable}),
        args: ['param']
    });
    t.deepEqual(myReducer(someState,someAction), cmd);
});

It means that an action-creator function can't have any params accept the result of the invoked function [My opinion: This limitation is too restricting].
Action creators can have parameters, as Redux docs mention:
https://redux.js.org/advanced/asyncactions#synchronous-action-creators
https://redux.js.org/advanced/asyncactions#actions-js-asynchronous
Solution
Not legal due to the current behavior:
const myActionCreator1 = param1 => ({ type: 'action1' , myParam1: param1});
return Cmd.run(myFunction1, {
    successActionCreator: myActionCreator1(someVariable),
    args: ['param']
});

Unsolved questions

If successActionCreator/failActionCreator accepts objects, what should Cmd.run do with the return value of myFunction1?
My suggestion: the user can choose between:

const myActionCreator1 = param1 => ({ type: 'action1' , myParam1: param1});
return Cmd.run(myFunction1, {
    successActionCreator: returnValue => myActionCreator1(someVariable,returnValue),
    args: ['param']
});

const myActionCreator1 = param1 => ({ type: 'action1' , myParam1: param1});
return Cmd.run(myFunction1, {
    successActionCreator: () => myActionCreator1(someVariable),
    args: ['param']
});

// which is the same as:

const myActionCreator1 = param1 => ({ type: 'action1' , myParam1: param1});
return Cmd.run(myFunction1, {
    successActionCreator: myActionCreator1(someVariable),
    args: ['param']
});

Sorry for the delayed response @stavalfi.
I think allowing a user to pass an object to successActionCreator would cause confusion, since the name pretty clearly indicates it should be a function. There would also be no way to access the result of myFunction1, so I'm not sure what the point is. It would basically just be dispatching a predefined action as soon as that side effect finishes. If that's really what you want to do, you can already do that without needing simulation anyway.
//reducer.js

const myVariable = 123;
const runCmd = Cmd.run(myFunction1, {
    args: ['param']
});

return Cmd.list([
   runCmd,
   Cmd.action(myActionCreator1(myVariable))
], {sequence: true});

If you need access to the result of myFunction1 and also want to pass in another parameter, then I think your best option is to define a function inline like you did above
successActionCreator: returnValue => myActionCreator1(someVariable,returnValue)

Have you seen Cmd simulation? I think it would help address the issues you had with testing these Cmds.


Some performance tweaks

HAI FRIENDLY ENGINEERS OF BITLY I COME IN PEACE
I wanted to play around with your awesome bloom library for some internal super-secret GitHub stuff (HAH), but as it turns out, I found it a tad lacking on raw performance, despite being all ballin' and stuff when it comes to memory usage.
I ran some instrumentation on the library, made some minor (major?) changes, and wanted to share them back. Here's the rationale:
"So I was like, let me trace this, yo"

This is the first instrumentation I ran with the original code (unmodified). The corpus is the words file that ships with Mac OS 10.7:
$ wc /usr/share/dict/words
  235886<PHONE_NUMBER>109 /usr/share/dict/words

Clearly, the two main bottlenecks are:

53.7% (1274.0ms) + 9.3% (221.0ms) + 2.9% (70.0ms) spent just in core hashing (without counting the hash finalization for MD5). As it turns
More than 5% spent in lseek, when the code only uses lseek in one place... (??)

Everything else in the trace was noise, so I decided to go HAM on just these two things. The lowest hanging fruit is certainly MD5: It is not a general purpose hash function, so its use in a bloom filter is ill-advised.
 I left the original commit in the branch for reference.
This simple change halved the runtime, but traces were still showing way too much time spent in hashing. The cause? Well, the bloom filter requires a pretty wide nfunc size for most corpuses if you want reasonable error rates, but CityHash has only two hash modes: Either 64 bit, or 128 bit. Neither of these modes is optimal for bloom filter operation.

64-bit hash output is (supposedly) optimized for small strings, which is not our target corpus at GitHub, although it should perform well with the words file of this synthetic benchmark. In practice, we end up performing too many calls to CityHash to fill the nfunc spectrum because of the small output size.

128-bit (also know as brain-damage-mode) performs poorly for small strings (by poorly I mean worse than other highly-optimized general purpose hashes) and doesn't offer any other specific advantages besides the adequate output word size.

To top off this disaster, CityHash doesn't really have a native "seeded mode". The seed API performs a standard hash and then an extra iteration (??) on top of the result to mix in the seed, instead of seeding the standard hash initially.
...So I killed CityHash with fire.
Enter Murmur
MurmurHash has always been my favorite real-world hash function, and in retrospect I should have skipped City and gone straight for it.
It offers brilliant performance for all kind of string values and is always linear with string sizes without requiring special-casing for short strings. It also takes alignment issues into account.
To top it off, Murmur doesn't return the hash value on the stack/registers but writes it directly to a provided buffer. This makes it exceedingly easy to fill the bloom->hashes buffer with a lot of random data and perform the modularization incrementally.
    for (i = 0; i < bloom->nsalts; i++, hashes += 4) {
        MurmurHash3_x64_128(key, key_len, bloom->salts[i], hashes);
        hashes[0] = hashes[0] % bloom->counts_per_func;
        hashes[1] = hashes[1] % bloom->counts_per_func;
        hashes[2] = hashes[2] % bloom->counts_per_func;
        hashes[3] = hashes[3] % bloom->counts_per_func;
    }

(note that we have aligned the hashes buffer to 16-bytes to prevent corner-case overflow checks). This is simple and straightforward, and makes my nipples tingle. n salts, and each salt throws 128 bits. Wrap'em and we're done here!
Enlarge your files
After dropping in an optimal hash function, the instrumentation showed a hilariously high percent of time spent in the kernel performing lseeks. I wondered where it was coming from...
        for (; size < new_size; size++) {
            if (lseek(fd, size, SEEK_SET) < 0) {
                perror("Error, calling lseek() to set file size");
                free_bitmap(bitmap);
                close(fd);
                return NULL;
            }
        }

Apparently the code to resize a file on the filesystem was performing an absolute seek for every single byte that the file had to be increased. This is... heuh... I don't know if this is for compatibility reasons, but the POSIX standard defines a very very handy ftruncate call:

The truncate() and ftruncate() functions cause the regular file named by path or referenced by fd to be truncated to a size of precisely length bytes.
If the file previously was larger than this size, the extra data is lost. If the file previously was shorter, it is extended, and the extended part reads as null bytes ('\0').

This works wonders on both Mac OS X and Linux, and lets the kernel fill the file efficiently with those pesky NULL bytes, even in highly fragmented filesystems. After replacing the lseek calls with a ftruncate, all kernel operations (including the mmaps) became noise in the instrumentation. Awesome!
This is where we're at now

As far as I'm concerned, the instrumentation trace has been obliterated.

Murmur cannot be made any faster, that's the way it is.
hash_func is stalling with all the modulo operations (even though they have no interdeps and should be going simultaneously on the pipeline, I think...). There are no SIMD modulo instructions, so I don't see how to work around this.
All the small bumps there come from the actual test program, not the library itself. Mostly strchr for splitting up the words in the dictionary file.
bitmap_check and bitmap_increment are tiny and fast. Nothing to do here. :/
Everything else is noise. :sparkles:

Also, binary strings
This is not performance related (at least not directly), but it totally bummed me that the API was requiring NULL-terminated strings, specially since I'm pretty sure you wrote this to be wrapped from dynamic languages, and all these languages incur on a penalty when asking for a NULL-terminated string (see: Python string slices yo, that's some memory being duped all over the place for NULL-termination) instead of grabbing the raw buffer + it's length.
I've changed the API accordingly, adding a len argument to all calls. Obviously, NULL-terminated strings can still be used by passing strlen(string) in the external API, instead of performing the measurement internally like before.
Final benchmarks
Averaged 8 runs for the original code, words is still the corpus.
Run 1: 2.182463s
Run 2: 2.177441s
Run 3: 2.174175s
Run 4: 2.178066s
Run 5: 2.190548s
Run 6: 2.179080s
Run 7: 2.180691s
Run 8: 2.184210s
AVG: 2.180834

Averaged 8 runs for the updated code, same corpus.
 For our specific corpus (bigger count, strings significantly larger than dictionary words), I get a 1300% increase. This is basically Murmur at work. Results may vary.

Don't think so. Murmur generates very high quality entropy, high enough to come close to MD5 for all measurements.
It's on my TODO list to perform some tests and see if there's an statistically significant variance on the amount of false positives between the two hash functions. Anecdotally, for the words dataset, MD5 was generating 1859 positives, while Murmur decreased that to 1815. THIS IS NOT SCIENTIFIC.
Common sense tells us that MD5, being cryptographically sound, should always stay ahead on pure entropy measurement, but the avalanching properties of Murmur are gorgeous. So I'm happy with this. 100% Pinkie Pie approved.
THAT'S IT
Ayup, as far as I'm concerned this now has acceptable performance to start building big stuff with it. I may look into making this even faster when I can play with more of our real-world data.
  Anyway, you know how the song goes.

Hey, I just met you, and this is crazy, but I rewrote your bloom hashes, so merge me, maybe?

@vmg This PR is referenced in this article Effective pull requests and other good practices for teams using github as excellent pull request.


Upgrade to upstream v4.39.0

This switches to using the new patching process, so there's a large number of docs changes.

Looks like the breaking changes indicate there was a few instances where we've manually implemented tags_all in our fork. Will need to investigate and re-add these.

For the errors: missing input "tagsAll", it appears that tagsAll should never have been an input field - so this is correcting that bug. My understanding is that tagsAll is a computed, output-only property which is the combination of the tags input, plus any tags configured at the provider level.
For the errors: Resource "aws:s3/bucketV2:BucketV2" missing input "arn" / missing input "hostedZoneId", this is an upstream change which removes the Optional: true from the type-spec. Both of these properties are also set to Computed: true, which therefore makes sense that they shouldn't be inputs - they're only computed outputs. What's not entirely clear is why they were made into inputs if they were optional AND computed. Perhaps we interpert "optional AND computed" as "this can be computed, but could optionally be provided by the user".
For the errors: Resource "aws:secretsmanager/secretRotation:SecretRotation" missing input "tags" /  missing output "tags", this is an upstream change where the tags property has been removed. Following the PR - this property does not apply to this resource and was therefore useless.


Public init of SwiftyDrawView.Line

Hello, guys.
Can you allow initialise Line out of library? It necessary for exit and returning to working on the picture. Just this.
public init(path: CGMutablePath, brush: Brush) {     self.path = path     self.brush = brush }

Sure. Can you open a PR with the exact changes you need?


Only works if Facebook is set to english, but doesn't check first

It took me some time to realize why no all suggestions were without mutual friends. Thought the parser had problems, when it only assumed a setting that not all might share.
Would be good to add to the instructions, that a specific language is expected (I'm now on english (US), don't know if the others would work). Would be even better if a check is made (i.e. headline is "People You May Know") and inform the user that the set language is not supported.

This is specifically for showing the number of mutual friends. The actual text from Facebook is stored (e.g. "John Doe et 29 autres ami(e)s en commun" for fr-CA — visible by doing a data export), but parser.js uses English strings (e.g. "are mutual friends") to analyze this data. If somebody wants to build in multilingual support, parser.js is the place to add it. For myself I just changed by FB language to en-US.


PHP 8.1 compatibility

Questions
Answers

Description?
Since PHP 8.1, nl2br() cannot accept null as its first argument. This PR aims to give an empty string when the configuration is null

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?

How to test?
I really don't think tests are needed here

@PrestaShop/qa-team Can this PR be merged without tests?

@matks Yep, can be merged without QA, I trust @atomiix ! (And looking at the code it does not look it can break something)
Thanks :)

Thank you @atomiix


Prerequisites

[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

[X] Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 100 stars and/or 50 forks)
[X] English interface (or at least English documentation)
[X] Full version
[X] Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)

Name
SylphyHornPlusWin11
Description
SylphyHornPlus is Virtual Desktop Tools for Windows 11 and 10.
Homepage
https://github.com/hwtnb/SylphyHornPlusWin11
Download Link(s)
https://github.com/hwtnb/SylphyHornPlusWin11/releases
Some Indication of Popularity/Repute
269 stars, forked from https://github.com/Grabacr07/SylphyHorn

Relates to https://github.com/ScoopInstaller/Extras/issues/9339


Unable to retrieve child resources.

Unable to retrieve child resources.
Details:
{
"name": "RestError",
"message": "This request is not authorized to perform this operation.\nRequestId:028b7c18-d01e-0006-134a-edcd7f000000\nTime:2021-12-09T22:19:55.5246040Z",
"stack": "RestError: This request is not authorized to perform this operation.\nRequestId:028b7c18-d01e-0006-134a-edcd7f000000\nTime:2021-12-09T22:19:55.5246040Z\n    at handleErrorResponse (/Users/annelisemurillo/Desktop/Microsoft Azure Storage Explorer 4.app/Contents/Resources/app/node_modules/@azure/core-http/dist/index.js:3140:19)\n    at /Users/annelisemurillo/Desktop/Microsoft Azure Storage Explorer 4.app/Contents/Resources/app/node_modules/@azure/core-http/dist/index.js:3076:49\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async StorageRetryPolicy.attemptSendRequest (/Users/annelisemurillo/Desktop/Microsoft Azure Storage Explorer 4.app/Contents/Resources/app/node_modules/se-blob-extension/node_modules/@azure/storage-blob/dist/index.js:14657:24)\n    at async StorageClientContext.sendOperationRequest (/Users/annelisemurillo/Desktop/Microsoft Azure Storage Explorer 4.app/Contents/Resources/app/node_modules/@azure/core-http/dist/index.js:4687:31)\n    at async BlobServiceClient.listContainersSegment (/Users/annelisemurillo/Desktop/Microsoft Azure Storage Explorer 4.app/Contents/Resources/app/node_modules/se-blob-extension/node_modules/@azure/storage-blob/dist/index.js:23490:20)",
"code": "AuthorizationFailure",
"statusCode": 403,
"request": {
"streamResponseStatusCodes": {},
"url": "https://czohsadgcapplestudyp01.blob.core.windows.net/?comp=list&include=metadata",
"method": "GET",
"headers": {
"_headersMap": {
"x-ms-version": {
"name": "x-ms-version",
"value": "2020-08-04"
},
"accept": {
"name": "accept",
"value": "application/xml"
},
"user-agent": {
"name": "user-agent",
"value": "Microsoft Azure Storage Explorer, 1.21.3, darwin azsdk-js-storageblob/12.7.0 (NODE-VERSION v14.16.0; Darwin 20.6.0)"
},
"x-ms-client-request-id": {
"name": "x-ms-client-request-id",
"value": "23bf95aa-75fb-4a37-8d9a-43cbcbcf30c1"
},
"authorization": {
"name": "authorization",
"value": "Bearer JSON Web Token Redacted"
},
"cookie": {
"name": "Cookie",
"value": ""

@Nicky90210 it looks like you've signed into storage explorer are enumerating resources under a subscription. Is that correct? If yes, can you confirm for us what RBAC permissions you have for the storage account czohsadgcapplestudyp01?

Closing due to lack of response. If you are still having problems, we recommend opening an Azure support ticket via the portal.


[SHIRO-792] Add name to ShiroFilter's @ConditionalOnMissingBean

This PR closes SHIRO-792. As agreed in the issue discussion, it adds a name element to the @ConditionalOnMissingBean annotation of org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration.filterShiroFilterRegistrationBean(). It also sets the name of the registered filter to shiroFilter.
Following this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a JIRA issue filed
for the change (usually before you start working on it).  Trivial changes like typos do not
require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Format the pull request title like [SHIRO-XXX] - Fixes bug in SessionManager,
where you replace SHIRO-XXX with the appropriate JIRA issue. Best practice
is to use the JIRA issue title in the pull request title and in the first line of the commit message.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[x] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i. N/A

Trivial changes like typos do not require a JIRA issue (javadoc, comments...).
In this case, just format the pull request title like (DOC) - Add javadoc in SessionManager.
If this is your first contribution, you have to read the Contribution Guidelines
If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement
if you are unsure please ask on the developers list.
To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

[x] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
[x] In any other case, please file an Apache Individual Contributor License Agreement.

Hey @bdemers, could you please take a look at this PR? Thanks!

Thanks @ricardolsmendes !
Any other issues in your app after these changes? (if not we will get this into the next release) And backporting to 2.x will be trivial, so we will take care of that too

Hi @bdemers!
I didn't face any issues after this change in my development environment. I'm using other Spring Boot Starters and get the following filters registered: 2020-08-27 13:48:05.679 DEBUG  235 --- [  restartedMain] o.s.b.w.s.ServletContextInitializerBeans : Mapping filters: filterRegistrationBean urls=[/*] order=1, logoutFilter urls=[/security/logout] order=2147483647, javamelody urls=[/*] order=2147483647, OCPsoft Rewrite Filter urls=[/*] order=2147483647, characterEncodingFilter urls=[/*] order=-2147483648.
Just a final question: should we leverage this change to also set the filter name? Adding something similar to registrationBean.setName("shiroFilter"); to filterShiroFilterRegistrationBean() would make it easier for users to identify the Shiro Filter in debug logs. By doing this, the above output log would become 2020-08-27 13:48:05.679 DEBUG  235 --- [  restartedMain] o.s.b.w.s.ServletContextInitializerBeans : Mapping filters: shiroFilter urls=[/*] order=1, logoutFilter urls=[/security/logout] order=2147483647, javamelody urls=[/*] order=2147483647, OCPsoft Rewrite Filter urls=[/*] order=2147483647, characterEncodingFilter urls=[/*] order=-2147483648. Please notice the change in the first filter name: filterRegistrationBean to shiroFilter. WDYT? 🤔

@ricardolsmendes that sounds like a great idea to me 😄
It's possible that could cause an issue if someone is looking up filters by name, but we can include a note in the release about that.

Yeah, agree with you. I'll add that line then.

@bdemers @bmhm The JIRA is tag with 2.0.0 and 1.6.1 but the merge is on 1.6.x branch. We should merge on master too.
Thoughts?

Hi @bdemers,
Since FilterRegistrationBean is a raw type, should we leverage this change and also change filterShiroFilterRegistrationBean() to return the generic type FilterRegistrationBean<AbstractShiroFilter>?
I can improve the code a bit if you are ok with this.
Best,

@ricardolsmendes that is a good idea!

Hey @bdemers, done!

There is a test error, but I don't think that is related to this change.  I'll take a look

I checked in Jenkins and I don't think the error is related to the changes. The jdk8 build is ok but the jdk11 build failed.
I re-launched the jdk11 build to see if the test is flacky.

I don't think the test is flacky, it has been failing for all commits since I created this PR. But looking at the logs, I agree the failure doesn't seem to be related to the changes proposed here.

We have some failing tests with some jdk vendors for java 11, but for the branch 1.6.x jdk8 is enough.
@bdemers We can merge this PR.
@ricardolsmendes thanks for your contribution!

I merge and I will cherry-pick on master.


#124 Github dependabot has flagged critical vulnerabilities with golang.or…

…g/x/net
and its associated packages.
This commit upgrade the affected packages.

Merging to addressed high severity security alerts.


redundant and invalid low values returned from some kubelet metrics

There can be seen redundant metrics with k8s_* and container_* metrics.
While k8s resource requests/limits, seem to have invalid data like instead of 100, the value was 0.1.
Possibly caused by difference in unit.

There can be seen redundant metrics with k8s_* and container_* metrics.

If you could share some samples that would help make it more clear. Which one did find redundant?

While k8s resource requests/limits, seem to have invalid data like instead of 100, the value was 0.1.

Please elaborate on this also with an example of what is happening vs what's expected

Please elaborate on this also with an example of what is happening vs what's expected

k8s_container_cpu_request for example returns two different values: 0.1 and 100

This issue has been resolved now with recent changes with processor and envs.


Prepare Definition of Done document

See for more info and context: https://docs.google.com/spreadsheets/d/14H2YncoWp2pCiLsMKXkU9lMgXlPsFUucRQIkN1hY7TY/edit?usp=sharing

Added via https://github.com/RedHatInsights/ccx-notification-service/pull/600


How to get the index of MenuItem that I click ?

Hi, I have a question.
How to get the index of Item in menu that I click ?
Thanks.

You need to use the PagingViewControllerDelegate. Check out this issue for an example #357


docs: usage

[ci skip]
(Closes https://github.com/inveniosoftware/invenio-records-rest/issues/164, https://github.com/inveniosoftware/invenio-records-rest/issues/180)
Signed-off-by: Diego Rodriguez Rodriguez<EMAIL_ADDRESS>Co-Authored-By: Dinos Kousidis<EMAIL_ADDRESS>

@lnielsen
regarding https://github.com/inveniosoftware/invenio-records-rest/issues/164#issuecomment-348212701

Advanced customization
Replace the search factory to do very advanced querying - i.e. exact control over what is sent to elasticsearch.

What would be an example of advanced querying? we are already using the elasticsearch library as it is with all the options.

Tombstones and redirection
error handlers

Regarding redirections, what should we show? Do we do the redirections with doctest as in
https://github.com/inveniosoftware/invenio-records-rest/blob/574a221faca3ca6bb344b1fe8a0e14c67e85f541/tests/test_pid_resolver.py#L50-L61
and then show that the redirect error works?
https://github.com/inveniosoftware/invenio-records-rest/blob/574a221faca3ca6bb344b1fe8a0e14c67e85f541/tests/test_pid_resolver.py#L80-L84

Access control
Principles

search filtering

Does this goes with the search factory?

Do you mind cleaning up the commit messages a bit, and at the same time rebase on latest master.


Remove unused param warning

Last time I looked at removing this warning, IIRC @Bidski said that this function really should be using this parameter, and thus the warning was a valid reminder that it should be dealt with. :shrug:

What i said was that it probably was used at one point, but obviously its not needed any more.
Rather than commenting it, you should just remove it

Last time I looked at removing this warning, IIRC @Bidski said that this function really should be using this parameter, and thus the warning was a valid reminder that it should be dealt with. 🤷

What i said was that it probably was used at one point, but obviously its not needed any more.
Rather than commenting it, you should just remove it

Sorry team, I created this warning last year when finishing off the camera calibration PR Trent did. IK used to do the whole thing to the cameras and took the last transform from the kinematics model, but now vision does the last part from the neck pitch servo to the cameras and takes the transform from the Hcp matrix in the camera config. This might have affected head behaviour though?

why did you close this @tayloryoung6396 ? why not just remove the parameter

Because

Last time I looked at removing this warning, IIRC @Bidski said that this function really should be using this parameter, and thus the warning was a valid reminder that it should be dealt with. shrug

What i said was that it probably was used at one point, but obviously its not needed any more.
Rather than commenting it, you should just remove it

Sorry team, I created this warning last year when finishing off the camera calibration PR Trent did. Kinematics used to do the whole thing to the cameras and took the last transform from the kinematics model, but now vision does the last part from the neck pitch servo to the cameras and takes the transform from the Hcp matrix in the camera config. This might have affected head behaviour though?

Still needs fixing?


restore initVariable test

Trying to restore failing test relating to initVariable.  Need help to restore please.

Jim, this is the one, if you can take this PR to completion please.

Updated the contract and fixed the test. It is now passing.

I commented out the extra function, running tests now.  Will merge if all is good.


[Fix] Blank issuers list

Se agrega la corrección de la lista vacía de issuers, que empezó a pasar con la actualización de las librerías de soporte.

Se modifica la implementación del loading.
Se actualizan las librerías de soporte.

//Issue related
Closes #545
Requirements

[x] Android Lint check

Note:

[x] Code Style checked

Note:

[x] Tested with "Don't keep Activities" configuration.

Note:
Note:

Codecov Report

Merging #563 into v3 will decrease coverage by 18.35%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##               v3    #563       +/-   ##
==========================================
- Coverage   25.18%   6.83%   -18.36%
==========================================
  Files         199     199
  Lines       15297   15298        +1
  Branches     1362    1364        +2
==========================================
- Hits         3852    1045     -2807
- Misses      11038   14141     +3103
+ Partials      407     112      -295

Impacted Files
Coverage Δ

...src/main/java/com/mercadopago/IssuersActivity.java
0% <0%> (-47.09%)
:arrow_down:

...c/main/java/com/mercadopago/CardVaultActivity.java
0% <0%> (-67.78%)
:arrow_down:

...c/main/java/com/mercadopago/model/PayerIntent.java
0% <0%> (-100%)
:arrow_down:

...k/src/main/java/com/mercadopago/model/Address.java
0% <0%> (-100%)
:arrow_down:

.../main/java/com/mercadopago/callbacks/Callback.java
0% <0%> (-100%)
:arrow_down:

...k/src/main/java/com/mercadopago/model/Payment.java
0% <0%> (-100%)
:arrow_down:

...ava/com/mercadopago/customviews/MPProgressBar.java
0% <0%> (-88.89%)
:arrow_down:

...ain/java/com/mercadopago/model/Identification.java
14.28% <0%> (-85.72%)
:arrow_down:

...rc/main/java/com/mercadopago/model/Cardholder.java
14.28% <0%> (-85.72%)
:arrow_down:

...src/main/java/com/mercadopago/model/CardToken.java
0% <0%> (-84.22%)
:arrow_down:

... and 84 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5542a2a...4cf94c1. Read the comment docs.


Add support for Fedora 24

Atlas: https://atlas.hashicorp.com/inclusivedesign/boxes/fedora24/
Passed all tests in GPII/linux, GPII/universal and fluid-project/infusion.

LGTM, thanks! :dancers:


Change master to main

#283

Codecov Report

Merging #323 (2cc939f) into main (0f9e69e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #323   +/-   ##
=======================================
  Coverage   97.10%   97.10%
=======================================
  Files          48       48
  Lines        1314     1314
  Branches      178      178
=======================================
  Hits         1276     1276
  Misses         14       14
  Partials       24       24

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f9e69e...2cc939f. Read the comment docs.


orchestrator: Add test debugging

TestUpdaterRollbackAndPauseNoMonitor fails sometimes. After tens of thousands of repetitions, I can't reproduce the failure locally. This adds some debugging to capture information about the failure.

LGTM


Add validation rule to fail if multiple Mesos healthchecks are defined.

Hi,
I have a Docker container and I want to add 2 COMMAND healthchecks for it:

curl -f -X GET http://$HOST:$PORT0
curl -f -X GET http://hostname-another-app:8095/status

First command passes. The second one fails.
Expected result:
Marathon should display the application as Unhealthy.
Actual Result:
Marathon displays the application as Healthy.
When I edit the configuration and leave only the second healthcheck (the one that fails), Marathon correctly displays the application as Unhealthy.
It seems that Marathon doesn't handle correctly multiple COMMAND healthchecks.

@danoprita Mesos currently only supports one health check.
We need to add a validation rule to make sure you get an error, if you specify more than on command health check.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1922. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


std.traits: Make hasNested ignore class reference members

The first commit fixes infinite recursion when a class has a member of its own type. (Then I realized that class references don't own a context pointer, so hasNested should ignore class reference members of an aggregate - this has been dropped for now though).

Given that it's not possible to "dereference" a class reference, would it be conceivable that there exists code that relied on the current behavior to check whether the class is nested?

Maybe. hasNested is not used in Phobos, but I tried to use it to make some static checks for std.conv.emplace to prevent construction without a context pointer. The docs for hasNested say: "Determines whether T or any of its representation types have a context pointer". I interpreted 'representation types' as types storing the context pointer in the memory of the class instance.

@CyberShadow Removed 78efeacef093a1e1540dbc2eed4db21e6ccc79ef, so should be safe to merge the infinite recursion fix now.

@CyberShadow Just for clarity, it was only class reference members of an aggregate that my other commit ignored.

@CyberShadow okay to merge?

Yeah.
BTW, would the fix work with cyclic references? i.e. class A { B b; } class B { A a; }

@CyberShadow No - I'm not sure how to support that efficiently.


APIRequest(sandbox=False) doesn't work

Setting the sandbox argument as False doesn't on a new APIRequest doesn't work.
mango_handler = APIRequest(sandbox=False)

You have to do:
mangopay.sandbox = False
mango_handler = APIRequest(sandbox=False)

Doing this actually works

can't reporduce

This is caused by if sandbox or mangopay.sandbox: in APIRequest.__init__(). I think the fix is:
if (sandbox is None and mangopay.sandbox) or sandbox:
This way, if only if you don't pass the sandbox parameter will it take the mangopay.sandbox default.

Hi @Radiateurs
This issue pointed out by @janfabry will be resolved shortly (similar to issue 134 and 166)
Cheers,
max

Closed, please contact me if issue persists


Type-system error in chapter 5 - riskFactorForperson()

Also 'P' in the function name should be upper case

This is in the code (MPS project), not in text.

Here? That is not a function, though.

My bad, sorry. Yes, this is the name to fix.

Fixed.


Fix backlight initial value matching the actual brightness level

The initial value is 0. If the actual brightness is also 0 you see %percentage% token as text, it’s not being replaced. Since m_brightness is an int the initial value could be just -1 since the actual brightness is never goes below zero. Thus this bug will never show up again because actual brightness on first render won’t match the “old” m_brightness value.
See also for more detailed explanation of the bug: https://github.com/polybar/polybar/discussions/3079#discussioncomment-8169932

What type of PR is this? (check all applicable)

[ ] Refactor
[ ] Feature
[x] Bug Fix
[ ] Optimization
[ ] Documentation Update
[ ] Other: Replace this with a description of the type of this PR

Description

Related Issues & Documents

Documentation (check all applicable)

[ ] This PR requires changes to the Wiki documentation (describe the changes)
[ ] This PR requires changes to the documentation inside the git repo (please add them to the PR).
[x] Does not require documentation changes

I had this happen on my work laptop, props on finding out why this happens.
I think this was introduced in the 3.7 release. I'll port your commit onto the 3.7.2 hotfix branch so that we can get this into the 3.7.2 release.

This is being merged in #3081


dark mode

dark mode to website

@Akshay6890 can you give me lvl3 for this issue

@Akshay6890 can you give me lvl3 for this issue

Well, the levels are given to PR's based on the issue's importance and the amount of work done, hope you understood.

but dark mode is a very big issue .
adding toggle button then adding js for it then writing css for every page in dark mode .
I got level3 in every project in which i added this feature and currently i am working on lvl3 issue first then lvl2 and then lvl1

but dark mode is a very big issue .
adding toggle button then adding js for it then writing css for every page in dark mode .
I got level3 in every project in which i added this feature and currently i am working on lvl3 issue first then lvl2 and then lvl1

Ok then.


Debian 9 Stretch is out - perhaps we should upgrade ??

Actually 9.1 was released recently https://www.debian.org/releases/stretch/

The openjdk:9 image will use debian 9 (see pull request). @meltsufin We should probably update the openjdk:8 to use debian 9 as well - thoughts on when to do this?

I'm not sure how major of an upgrade it is from Debian 8 to 9. I would look for guidance from @dlorenc.

If this hasn't been done by now, it never will be.


how can i filter template using user wise

i have multiple users so I want to filter the template user-wise. so that no one can access another user template.
how can I find the template user-wise?
please help me.

hello @zahidsoft
This is not for multiple websites its only for one website but we will study to do it in the future.

Yes i have one website but multiple user. Who create this page how to checket it. And how to protected the page form other user


Add YNExpandableCell [Listed 7th in trending swift category right now]

Project URL
Awesome expandable, collapsible tableview cell for iOS written in Swift 3
Project URL
https://github.com/younatics/YNExpandableCell
Description
Easiest usage of expandable & collapsible cell for iOS, written in Swift 3. You can customize expandable UITableViewCell whatever you like. YNExpandableCell is made because insertRows and deleteRows is hard to use. You can just inheirt YNTableViewDelegate and add one more method func tableView(_ tableView: YNTableView, expandCellAt indexPath) -> UITableViewCell?
Why it should be included to awesome-ios (optional)
Listed 7th in trending swift category right now
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

Hey @younatics cool lib and thanks for contributing to awesome-ios😀
IMHO You should also add this lib to iOS Goodies this week's issue.🙌🏻

Hello, I made pull request in iOS Goodies. Thanks,


MetroAE Branding Change

To resolve ticket:
https://jiradc2.ext.net.nokia.com/browse/METROAE-597

Could you retarget this to dev branch?

Please add a metbot approval!

The issue persisted despite the initial changes but it's resolved now after the recent changes.

Please add a release note in RELEASE_NOTES.md


2.0.0 Not working with my config anymore and crash

Thanks for the ongoing development.
However I have some trouble with 2.0.0.
Nothing is working with my existing config.
Buttons show up in Home App but no function. Neither the control buttons nor the notifications work.
And I also got a shutdown after some time.
Going back to 1.9.3 and everything was working again.
{
            "platform": "webostv",
            "devices": [
                {
                    "name": "LG webOS TV",
                    "ip": "xxx.xxx.xxx.xx",
                    "mac": "a1:b2:c3:45:de:67",
                    "pollingInterval": 10,
                    "keyFile": "/home/pi/.homebridge/lgtvKeyFile",
                    "inputs": [
                        {
                            "appId": "maxdome",
                            "name": "Maxdome"
                        },
                        {
                            "appId": "com.webos.app.hdmi1",
                            "name": "Hauptbildschirm"
                        }
                    ],
                    "showInputButtons": true,
                    "volumeControl": "buttons",
                    "channelControl": false,
                    "mediaControl": false,
                    "notificationButtons": [
                        "Backofen vorgeheizt.",
                        "Wasserkocher fertig.",
                        "Haustür klingelt.",
                        "Luftqualität in der Wohnung schlecht. Bitte lüften."
                    ]
                }
            ]
        },

Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]: [2020-9-10 10:44:37] TypeError: Cannot read property 'information' of undefined
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at webosTvDevice.remoteKeyPress (/usr/local/lib/node_modules/homebridge-webos-tv/index.js:988:71)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at RemoteKey.emit (events.js:315:20)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at RemoteKey.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at RemoteKey.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:652:12)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1439:24
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at Array.forEach (<anonymous>)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1281:10)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at HAPServer.emit (events.js:315:20)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:812:12)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:280:24)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at IncomingMessage.emit (events.js:315:20)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at endReadableNT (_stream_readable.js:1220:12)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]:     at processTicksAndRejections (internal/process/task_queues.js:84:21)
Sep 10 10:44:37 raspberrypi-3BPlus homebridge[7583]: [2020-9-10 10:44:37] Got SIGTERM, shutting down Homebridge...

Lots of things changed in the latest update, one of them is the removal of the inputs property(as stated in the changelog). So you will have to slightly adjust your config, you even do not need that entry anymore.
The error which you are experiencing is most probably happening when you use the control center remote, and this is actually an issue. I will fix that one later today.

Thanks for your fast reply.
"notificationButtons": also didn't work anymore and there were showing a lot of other buttons I really don't need or my LG is not supporting.
I will wait for a next update and give it another try then and hope to keep the small setup I have like it is. ;)
Thanks again.

You could try to re-add your tv to home. Maybe you have some caching issues? Also I would recommend you to always force kill the home app if you see some weird behavior. Usually sich issues are cache related...
The update was mostly meant to simplify the plugin. If you do not want to play around with anything, then you just simply install the plugin and that's it, the only config you need to do is to enter the ip and mac of your tv.

Whilst the update certainly has improved things, I got the same issue here for the home bridge crash on control centre remote.
Not sure how I feel about the removal of the input section, as the only thing showing in the input box on the home app is "Live TV".  I previously had other HDMI inputs in that list too that are now gone.    I did experiment by adding an App Button to represent say HDMI3 input so I could switch to that, but a side affect of this is also that in the iOS home app summary, it now adds an item to the summary saying 'switch is on'.  My query here is really, should the home app be showing more inputs than "Live TV" that it automatically reads from the TV itself, or have I misunderstood?

@mrNakamura the crash with the cc remote will be fixed later today.
Per default only Live TV and some inputs will be available in the spinner. You can add more apps to the spinner by simply opening the preferences section of your TV in the Home app and enable whatever other inputs you want to have in the spinner.

Thanks, also good to know it’s called the spinner :-) will give it a try (thought i was misunderstanding something)

@mikementzmaersk well i call it the spinner or input spinner 😜

Actually, where is the preferences section of the tv in the home app? after clicking the cog, i see the usual stuff like suggested scenes, include in favourites etc. but not much else.

Cheers 😉
Actually, where is the preferences section of the tv in the home app? after clicking the cog, i see the usual stuff like suggested scenes, include in favourites etc. but not much else.

You need to dig a little bit inside. You are probably checking the preferences of the TV group, but you need to go on "devices" and then there on the TV accessory.

Found it.  cheers 👍🏻

@DJay-X  @mrNakamura the crash should be fixed now in Version 2.0.1

Yup, fixed for me.  Thanks. 👍🏻

@merdok
Thanks for your help.
However I have serious problems with the Plugin.
Even with my basic use of features.
I changed my config. Did I do something wrong?
Notifications are not working at all.
The buttons show up in Home App but no toast message on the TV as with 1.9.3 was working perfectly.
Switiching to "Maxdome" or "Hauptbildschirm" is working but with a delay of nearly 30 seconds until the TV is doing something. Meanwhile the Button in HomeKit is showing off.
Turning back from "Maxdome" to "Hauptbildschirm" is doing the same. 25-30 seconds until anything is happening and then the button in HomeKit is showing off, even the TV is switched to "Hauptbildschirm" now.
With 1.9.3 everything was working immediately in one second.
I hope you can help.
LG Modell 55EG9209-ZA, Software 04.26.00, webOS 2.2.3-1351 (beehive-biscayne)
        {
            "platform": "webostv",
            "devices": [
                {
                    "name": "LG webOS TV",
                    "ip": "xxx.xxx.xxx.xx",
                    "mac": "a1:b2:c3:45:de:67",
                    "pollingInterval": 10,
                    "keyFile": "/home/pi/.homebridge/lgtvKeyFile",
                    "appButtons": [
                        {
                            "appId": "maxdome",
                            "name": "Maxdome"
                        },
                        {
                            "appId": "com.webos.app.hdmi1",
                            "name": "Hauptbildschirm"
                        }
                    ],
                    "volumeControl": "buttons",
                    "notificationButtons": [
                        {
                            "message": "Backofen vorgeheizt.",
                            "name": "LG Backofen Notify"
                        },
                        {
                            "message": "Wasserkocher fertig..",
                            "name": "LG Wasserkocher Notify"
                        },
                        {
                            "message": "Luftqualität in der Wohnung schlecht. Bitte lüften",
                            "name": "LG Luftqualität Notify"
                        }
                    ]
                }
            ]
        },

@DJay-X you need to provide me a debug log so I can check if there is something strange...

@DJay-X you need to provide me a debug log so I can check if there is something strange...

How can I reach you confidential? I guess it's not a good idea to make a detailed log with probably sensitive information public. Are you on forum.smartapfel.de?
https://forum.smartapfel.de/conversation-add/?userID=22

The log should be harmless, anyway you could also send it to me on discord, but please note that I currently have no access to discord for the next week.

@merdok What's your ID at Discord?
Or old fashioned you can send a email to daniel[at]smartapfel.de
Thanks again for trying to investigate.

My name on discord is the same as here.
You can also send me a private message on Twitter.

It's not meant to be.. 🤷🏼♂

Try now on Twitter

I’m having the same problem with the plugin on my LG 65UF860V-ZA running webOS 2.2.3-2150.
"devices": [
            {
                "name": "Televizija",
                "ip": "192.168.XX.XX",
                "mac": "ee:ee:ee:ee:ee:ee",
                "pollingInterval": 5,
                "deepDebugLog": true,
                "hideTvService": true,
                "volumeLimit": 30,
                "volumeControl": "slider",
                "channelControl": false
            }
        ],
        "platform": "webostv"
    }

Would much appreciate any ideas on how on how to fix this problem!

@977hr webos 2.0 TVs has issues with the new update since they do not support a required service. For now please downgrade to 1.9.3

Should be fixed in Version 2.0.3. Can you please confirm?

@merdok Thanks a lot. With 2.0.3 my Notifications, Switch Hauptbildschirm/Maxdome are working smoothly again.
However, I got a few more buttons now with status "on" I don't need and want. My TV didn't even have this features like "Camera", "Programmführer", or "Webbrowser". Also the Inputs AV-x and HDMI-x are always on. But I also don't need them.
Please see Screenshot attached.
In my config.json there is nothing except the things I need.
Thanks again for the 2.0.3 update and in advance for your help how the hide/remove the additional buttons.
       {
            "platform": "webostv",
            "devices": [
                {
                    "name": "LG webOS TV",
                    "ip": "xxx.xxx.xxx.xx",
                    "mac": "a1:b2:c3:45:de:67",
                    "pollingInterval": 10,
                    "keyFile": "/home/pi/.homebridge/lgtvKeyFile",
                    "appButtons": [
                        {
                            "appId": "maxdome",
                            "name": "Maxdome"
                        },
                        {
                            "appId": "com.webos.app.hdmi1",
                            "name": "Hauptbildschirm"
                        }
                    ],
                    "volumeControl": "buttons",
                    "notificationButtons": [
                        {
                            "message": "Backofen vorgeheizt.",
                            "name": "LG Backofen Notify"
                        },
                        {
                            "message": "Wasserkocher fertig..",
                            "name": "LG Wasserkocher Notify"
                        },
                        {
                            "message": "Luftqualität in der Wohnung schlecht. Bitte lüften",
                            "name": "LG Luftqualität Notify"
                        }
                    ]
                }
            ]
        },

@DJay-X  this is a caching issue. Just force close the Home app (swipe up in the task manager) and the switches will go away.

That worked. 👍 Now I'm up-to-date again. Thanks a lot.
From my point of view you can close this issue if you like.

Sounds good! Thanks for letting me know!


[Feature Request] Use tabs instead of spaces when pretty printing

As in the title, adding the possibility to choose between spaces and tabs.

I may consider doing this in the future. It's not a high priority because (a) adding a new special case to my pretty-printing functions would increase code bloat and impair performance, (b) all the usual reasons that people object to using tabs for indentation, and (c) if you care about saving space when printing JSON, you should just compress it.
Suppose you want to indent with tabs, and you have n spaces for indentation.
Use the find/replace form (regular expression ON). Find/replace (?:^|(?!\A)\G)\t*\K\x20{n} with \t to convert all leading sequences of n spaces to tabs.

I already replace 4 spaces with tab using Ctr+h, which isn't that hard nor a pain to deal with tbh. It's just that i'm lazy and like tabs better since you can get better space management while having a readable code.
I do agree that for using json in a code I'd rather just compress it.

Closed by latest commit.


[Enhancement] Skip completed entries for submitting playtime

For setting your current playtime choose the playing entry and skip the completed ones.
E.G. on a second run it always takes the first entry even when it's completed

The plugin set the state "Playing" when you define your current time.
This is the case after a game session, but I can disable this for a manual set.

It' not about setting "Playing", it's about choosing always the oldest existing entry on the HltB website and overwriting it.
A check would be nice, something like --> more than one entry --> existing "Playing" one --> take this one

It' not about setting "Playing", it's about choosing always the oldest existing entry on the HltB website and overwriting it.
A check would be nice, something like --> more than one entry --> existing "Playing" one --> take this one


update chain_id for thorchain

Was this originally a typo or did THORChain fork to a new chain-id?

Was this originally a typo or did THORChain fork to a new chain-id?

With the recent hardfork, the chainid was changed to thorchain-1

Got it. If you look over the folders andromeda and andormeda1 in this repo, you can get an idea of how forks are handled.
The old testnet will become a folder named thorchain1, and you'll make a new thorchain folder for the current chain ID (with a field for "pre_fork_chain_name" defining thorchain1 folder as the previous chain.

What is the name of the current version? The old version name is still in there.
I believe this should have a different genesis file, but the genesis URL looks broken

Hey @markfromdenmarkk apologies for the mix-up here. Since there is no assetlist and not much in terms of chain version history in the original folder - you're actually fine to wipe thorchain1 and remove the pre_fork_name from the current chain.json if you wish. The fork method I mentioned above is really only relevant when that information already exists in the registry. If you do that though, since it's technically a new chain ID, it would be best to start the version history with the initial version used for the fork (and as Jeremy wrote above, the genesis will still need updated too)

@markfromdenmarkk these changes look good - thank you! The last thing is resolving the codebase and version history which Jeremy also mentioned above.
If you look at the schema (https://github.com/cosmos/chain-registry/blob/master/chain.schema.json) and look over codebase, there's things we need like the recommended version, compatible versions, repo link (@JeremyParish69 do we support gitlab links?), tag, etc., not all the fields need populated, but some basic ones related to the repo location and version tag at least are very helpful!
For the version history, just start with the first tag for the new fork. If the current version name in the version history is accurate for the current tag, you can leave that name but just add the information you've added to codebase. You can refer to other chains like Cosmos Hub and look over their chain history/codebase to get an idea of what I mean for everything.

@reversesigh (@JeremyParish69 do we support gitlab links?)
I haven't come across it, so not atm, but shouldn't be too hard to adapt for.


Changed ternary ops to use of to_boolean wherever possible

Changed most uses of expression ? true : false to expression.to_boolean, fixing #11954
Links

#11954

@chrisarcand Removed patches, using double negations. Skipped some places where they weren't necessary, as the returned value was a boolean anyway.

Thanks for your contribution! 💙


Cannot load native module with MinGW (GC error)

I'm trying to load native modules, but I get the same error everytime (and with every module I tried)
Janet 1.32.1-local mingw/x64/gcc - '(doc)' for help
repl:1:> (use spork/cmath)
janet interpreter runtime error at line 525 in file src/core/gc.c: please initialize janet before use

As noted above, every thing is compiled with MinGW, and the modules are installed with jpm, apparently without any warning or error.
Everything else (including loading source module, and compiling to binary .exe) seem to work without an issue.

My mistake, should be in janet repo.


tpm2_quote reporting 'out of memory for object contexts'

Is your an issue a feature request? If so, please raise it as an enhancement
Environment

OS / version: Fedora-CoreOS 33
Processor architecture: x86_64
TPM Manufacturer: swtpm
Keylime version: https://github.com/keylime/keylime/commit/00fe135c1f2c0973947f38102ce0310a0cb283fc

Description
I created a container with the keylime agent. There's no tpm2-abrmd running inside this container but the tpm2 tools are directly talking to /dev/tpm0 or /dev/tpmrm0, which is passed into the container. It seems to be working fine at the beginning but then tpm2_quote fails.
Expected behavior vs. actual behavior
tpm2_quote should return a valid result but instead the following happens when keylime_agent is used to -c add the system:
Using config file /etc/keylime.conf
importing [''], __package__='keylime.elchecking'
2021-03-24 21:47:23.201 - keylime.tpm - INFO - TPM2-TOOLS Version: 4.3.0
2021-03-24 21:47:23.253 - keylime.tpm - INFO - TPM2-TOOLS Version: 4.3.0
2021-03-24 21:47:23.263 - keylime.secure_mount - INFO - mounting secure storage location /var/lib/keylime/secure on tmpfs
2021-03-24 21:47:23.292 - keylime.tpm - WARNING - INSECURE: Keylime is using a software TPM emulator rather than a real hardware TPM.
2021-03-24 21:47:23.293 - keylime.tpm - WARNING - INSECURE: The security of Keylime is NOT linked to a hardware root of trust.
2021-03-24 21:47:23.293 - keylime.tpm - WARNING - INSECURE: Only use Keylime in this mode for testing or debugging purposes.
2021-03-24 21:47:23.293 - keylime.tpm - INFO - Taking ownership with config provided TPM owner password
2021-03-24 21:47:23.378 - keylime.tpm - INFO - TPM Owner password confirmed: keylime
2021-03-24 21:47:23.973 - keylime.cloudagent - INFO - Agent UUID: D432FBB3-D2F1-4A97-9EF7-75BD81C00000
2021-03-24 21:47:25.280 - keylime.registrar_client - INFO - Agent registration requested for D432FBB3-D2F1-4A97-9EF7-75BD81C00000
2021-03-24 21:47:25.399 - keylime.tpm - INFO - AIK activated.
2021-03-24 21:47:25.890 - keylime.registrar_client - INFO - Registration activated for agent D432FBB3-D2F1-4A97-9EF7-75BD81C00000.
2021-03-24 21:47:26.513 - keylime.cloudagent - INFO - Starting Cloud Agent on <IP_ADDRESS>:9002 use <Ctrl-C> to stop
2021-03-24 21:47:26.516 - keylime.revocation_notifier - INFO - Waiting for revocation messages on 0mq <IP_ADDRESS>:8992
2021-03-24 21:47:36.497 - keylime.cloudagent - INFO - GET invoked from ('<IP_ADDRESS>', 44068) with uri: /quotes/identity?nonce=vKezf88PchzwUAHP67Mi
2021-03-24 21:47:36.630 - keylime.cloudagent - INFO - GET identity quote returning 200 response.
2021-03-24 21:47:36.919 - keylime.cloudagent - INFO - GET invoked from ('<IP_ADDRESS>', 44074) with uri: /quotes/integrity?nonce=B0DEeo5F7R7n2ZFxUXK1&mask=0x408000&vmask=0x808000&partial=0
----------------------------------------
Exception occurred during processing of request from ('<IP_ADDRESS>', 44074)
Traceback (most recent call last):
  File "/usr/lib64/python3.9/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib64/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python3.9/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/lib64/python3.9/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib64/python3.9/http/server.py", line 415, in handle_one_request
    method()
  File "/usr/local/lib/python3.9/site-packages/keylime/keylime_agent.py", line 114, in do_GET
    quote = tpm_instance.create_quote(
  File "/usr/local/lib/python3.9/site-packages/keylime/tpm/tpm_main.py", line 951, in create_quote
    retDict = self.__run(command, lock=False, outputpaths=[quotepath.name, sigpath.name, pcrpath.name])
  File "/usr/local/lib/python3.9/site-packages/keylime/tpm/tpm_main.py", line 375, in __run
    raise Exception("Command: %s returned %d, expected %d, output %s, stderr %s" % (cmd, code, expectedcode, retout, reterr))
Exception: Command: ['tpm2_quote', '-c', '/var/lib/keylime/secure/tmpts2vwb7x', '-l', 'sha256:15,16,22', '-q', '42304445656f35463752376e325a467855584b31', '-m', '/tmp/tmp3quonc27', '-s', '/tmp/tmp7kvblrge', '-o', '/tmp/tmp8wdhlk3q', '-g', 'sha256', '-p', 'ws9DfDzzEwsI5EXcbJqD'] returned 1, expected 0, output [], stderr [b'WARNING:esys:src/tss2-esys/api/Esys_ContextLoad.c:279:Esys_ContextLoad_Finish() Received TPM Error \n', b'ERROR:esys:src/tss2-esys/api/Esys_ContextLoad.c:93:Esys_ContextLoad() Esys Finish ErrorCode (0x00000902) \n', b'ERROR: Esys_ContextLoad(0x902) - tpm:warn(2.0): out of memory for object contexts\n', b'ERROR: Invalid key authorization\n', b'ERROR: Unable to run tpm2_quote\n']
----------------------------------------
^C2021-03-24 21:47:42.590 - keylime.cloudagent - INFO - TERM Signal received, shutting down...

Is it possible to use all tpm2_tools without tpm2-abrmd or just 'some'?

As it turns out the container works fine once tpm2-abrmd is also running inside. It looks like some commands can be used without it, some, like tpm2_quote, need tpm2-abrmd for context management.


Lazily generate batches

Generating batches in __init__ is slow and memory intensive, related to  #111  and #109. Initialization is changed to load indices into memory rather than corresponding datasets. The change enabled the initialization a 1.7 TB dataset with 1m+ samples, 30+ spatial features, in about 10 seconds which was previously overloading memory.
Rather than filling _batches with DataArrays and Datasets, it is filled with indices from selector = {key: slice for key, slice in zip(dims, slices)}.  This required an update to the concat_input_dims option where the operation is done in __getitem__().  It is possible that this change decreases performance when this concat_input_dims=True.

Codecov Report

Merging #112 (3cdf034) into main (4d8e2c8) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head 3cdf034 differs from pull request most recent head 45f99dd. Consider uploading reports for the commit 45f99dd to get more accurate results

@@            Coverage Diff            @@
##              main      #112   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          190       192    +2
  Branches        35        35
=========================================
+ Hits           190       192    +2

Impacted Files
Coverage Δ

xbatcher/generators.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I made 3 small one-liner comments/suggestions but this looks rad. Its right along the lines of some ideas that @maxrjones and I discussed a while back about schematizing the generation of batch selectors rather than eagerly generating batches. This is a great step in that direction. Thanks @tjvandal!


Enable the new model serialization for dns resolver

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

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


Uncaught TypeError: Cannot read property 'file' of undefined

[Enter steps to reproduce below:]

...
...

Atom Version: 1.6.0
System: Mac OS X 10.11.4
Thrown From: tree-view-copy-relative-path package, v1.0.0
Stack Trace
Uncaught TypeError: Cannot read property 'file' of undefined
At /Users/zhiqiang/.atom/packages/tree-view-copy-relative-path/lib/tree-view-copy-relative-path.coffee:36

TypeError: Cannot read property 'file' of undefined
    at Object.module.exports.TreeViewCopyRelativePath.copyRelativePath (/Users/zhiqiang/.atom/packages/tree-view-copy-relative-path/lib/tree-view-copy-relative-path.coffee:36:5)
    at tree-view-file.<anonymous> (/Users/zhiqiang/.atom/packages/tree-view-copy-relative-path/lib/tree-view-copy-relative-path.coffee:25:22)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1019:28)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)
    at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
    at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:143:29)
    at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/context-menu-manager.js:172:33)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentContextmenu (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:250:47)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands
     -0:03.7.0 tree-view-copy-relative-path:copy-path (span.name.icon.icon-file-media)

Config
{
  "core": {
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "atom-minify"
    ]
  }
}

Installed Packages
# User
Remote-FTP, v0.7.20
Sublime-Style-Column-Selection, v1.5.1
atom-beautify, v0.28.26
atom-minify, v0.7.1
atom-ternjs, v0.13.2
autocomplete-modules, v1.4.1
autocomplete-paths, v1.0.2
autocomplete-python, v1.7.2
autocomplete-sass, v0.1.0
color-picker, v2.1.1
copy-filename, v1.0.1
docblockr, v0.7.3
emmet, v2.4.3
expand-selection-to-quotes, v0.7.0
file-icons, v1.6.18
highlight-column, v0.5.1
highlight-selected, v0.11.2
javascript-snippets, v1.2.1
jquery-snippets, v11.0.0
language-jade, v0.6.3
language-vue, v0.9.0
linter, v1.11.4
linter-csslint, v1.3.2
linter-eslint, v7.1.3
linter-htmlhint, v1.1.0
linter-pylint, v1.2.0
markdown-scroll-sync, v2.1.2
markdown-table-formatter, v2.8.0
markdown-writer, v2.3.2
minimap, v4.21.0
pigments, v0.24.5
project-manager, v2.7.6
react, v0.14.2
run-in-browser, v0.1.3
sync-settings, v0.7.2
tree-view-copy-relative-path, v1.0.0
tree-view-git-status, v0.2.3

# Dev
No dev packages

Hi, @zhiqiang21. Could you please provide steps to reproduce?

@vladimir-tikhonov i'm sorry for this question.it happen that I first used . then unload it.    just now i install again ,try to find it , but  the problem  not happen !

@zhiqiang21 it's ok, just let me know if it happens again :)

@vladimir-tikhonov OK！


Functions with default parameters disable a lot of suggestions, red error squiggles etc.

VSCode Version: 1.43.2
OS Version: Ubuntu 18.04.4 LTS

Issue (Detailed):
I had this code:
#include <bits/stdc++.h>

using namespace std;

int square(int p) {
	return p * p;
}

int main() {
	cout << square(4) << "\n";
	cout << 2p; // error squiggles

	return 0;
}

Upon clicking Ctrl + Space, the following suggestions appear and the error squiggles work fine too.

However, when I decide the parameter p in square to be a default one, the suggestions only show the C++ keywords and no error squiggles or whatsoever. All that's left are the keywords.

Steps to Reproduce:

#include <bits/stdc++.h>

using namespace std;

int square(int p = 2) {
	return p * p;
}

int main() {
	cout << square(4) << "\n";
	cout << 2p; // should show error squiggles

	return 0;
}
// Check with Ctrl + Space

Does this issue occur when all extensions are disabled?: Yes, it occurs with every other extensions disabled.

Sorry I didn't check the repo correctly. This was supposed to be on VSCode C_Cpp Extension.


Gopkg.lock is out of sync with Gopkg.toml and project imports

Background
Running the following commands to install lnd results in changes to Gopkg.lock.
cd $GOPATH/src/github.com/lightningnetwork/lnd
git pull
make && make install

After running make, the following error is printed, before listing out all of the specific things that are out of sync.

Gopkg.lock is out of sync with Gopkg.toml and project imports

After everything has been installed, the repo is left in a dirty state with a changed Gopkg.lock file.
This is basically the same issue as reported in https://github.com/lightningnetwork/lnd/issues/993.
Your environment

lnd master
Darwin

Steps to reproduce
Follow the installation steps as outlined in INSTALL.md and then run git status.
Expected behaviour
Gopkg.lock should not be changed and git should be in a clean state after installing.
Actual behaviour
Repo is in a changed state and Gopkg.lock` is marked as dirty (it has lots of changes).

@mrfelton Try pulling the latest version of dep and see if that helps.

I just had the same issue and was unable to resolve it without removing the whole gocode directory and reinstalling from scratch.
When I tried to git pull, I saw:
error: Your local changes to the following files would be overwritten by merge:
	Gopkg.lock
Please commit your changes or stash them before you merge.```

I hadn't modified the file at all, but it was indeed different:

```$ git diff
diff --git a/Gopkg.lock b/Gopkg.lock
index 844640b4..aeaa5651 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -3,22 +3,27 @@

 [[projects]]
   branch = "master"
+  digest = "1:3c2fd21de8c94d23641d11c374e56ec10a3833a1a412d639ef3b6d48d7798c81"
   name = "git.schwanenlied.me/yawning/bsaes.git"
   packages = [
     "ct32",
     "ct64",
     "ghash",
-    "internal/modes"
+    "internal/modes",
   ]
+  pruneopts = "UT"
   revision = "e06297f34865a50b8e473105e52cb64ad1b55da8"

 [[projects]]
   branch = "master"
+  digest = "1:9a112e9f617878a9a643fdfcb7c31afaf0cf8859b8c179bf6bf53f9f881be695"
   name = "github.com/NebulousLabs/fastrand"
   packages = ["."]
+  pruneopts = "UT"
   revision = "3cf7173006a0b7d2371fa1a220da7f9d48c7827c"

 [[projects]]
+  digest = "1:0e85dfcc0eab64bc0c24247bf91045e44295121181c3c3d822e427404320ba56"
   name = "github.com/NebulousLabs/go-upnp"
   packages = [
     ".",
@@ -27,42 +32,52 @@
     "goupnp/httpu",
     "goupnp/scpd",
     "goupnp/soap",
-    "goupnp/ssdp"
+    "goupnp/ssdp",
   ]
+  pruneopts = "UT"
   revision = "29b680b06c82d044ebea91bf3069038eb562df2a"

 [[projects]]
+  digest = "1:c9ef1fba766e914747fa05a9947a6312fb0ee0ddb89218b1d96dd28b5d17b67e"
   name = "github.com/Yawning/aez"
   packages = ["."]
+  pruneopts = "UT"
   revision = "4dad034d9db2caec23fb8f69b9160ae16f8d46a3"

[and lots more]

I tried moving the modified file out of the way and pulling again, and then the git pull ran without error. But then the make failed:
 Compiling dependencies.
dep ensure -v

# Bringing vendor into sync
grouped write of manifest, lock and vendor: failed to export github.com/btcsuite/btcd: fatal: failed to unpack tree object f899737d7f2764dc13e4d01ff00108ec58f766a9
: exit status 128
Makefile:113: recipe for target 'dep' failed
make: *** [dep] Error 1

I tried pulling a new version of dep:
$ git pull

That ran without error, so I went back and tried the make again:
$ make
 Compiling dependencies.
dep ensure -v
grouped write of manifest, lock and vendor: scratch directory /home/light/gocode/src/github.com/lightningnetwork/lnd/.vendor-new already exists, please remove it
Makefile:113: recipe for target 'dep' failed
make: *** [dep] Error 1

It didn't like that a particular directory existed, so I moved it out of the way and tried again:
$ make
 Compiling dependencies.
dep ensure -v

# Bringing vendor into sync
(1/20) Wrote github.com/btcsuite/golangcrypto@master: hash of vendored tree didn't match digest in Gopkg.lock
(2/20) Wrote github.com/miekg/dns@79bfde677fa81ff8d27c4330c35bda075d360641: hash of vendored tree didn't match digest in Gopkg.lock
(3/20) Wrote github.com/NebulousLabs/go-upnp@29b680b06c82d044ebea91bf3069038eb562df2a: hash of vendored tree didn't match digest in Gopkg.lock
grouped write of manifest, lock and vendor: failed to export git.schwanenlied.me/yawning/bsaes.git: fatal: failed to unpack tree object c0276d75487ef7aceab140c9eb31601dd7d18bd4
: exit status 128
Makefile:113: recipe for target 'dep' failed
make: *** [dep] Error 1

That gave me a new error about the Gopkg.lock being wrong. So I gave up and reinstalled from scratch:
$ mv gocode gocode.old1
$ go get -d github.com/lightningnetwork/lnd
$ cd $GOPATH/src/github.com/lightningnetwork/lnd
$ make && make install

and that seemed to get me back to a working lnd.
What did I do wrong, and how should I have recovered from it?

There seems to be a problem with using new version of dep if there is artifacts from an old version of dep lying around. So updating dep + re-cloning lnd looks like it resolves it.

@Roasbeef replied on IRC, saying:

23:30 <@roasbeef> bob333: can just remove your old gopkg, or ratehr undo the changes, we updated the dep version, so the file is kinda out of whack

I don't know enough go to understand that I needed to do, but hopefully that helps people who have the same issue I had when updating their lnd installation.


IOS - New message label Concierge message (whisperer) is overlapped

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Account A starts a new chat with other new account
Account A will received a message from Concierge - the  whisperer with the label “Only visible to you”
Long press on the Concierge’s message and select Reply in thread
Concierge will response with new message
Long press on the new message and select “Mark as unread”
Check the New label on that message

Expected Result:
The New label should not be overlapped with other content
Actual Result:
The New label is overlapped with previous message
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[x] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.35-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/87a83b45-46ba-455f-bf78-ca7442bfe70f
https://github.com/Expensify/App/assets/93399543/552d1eeb-02d3-4aaf-9012-93b5153d02c2

Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688664187109959
View all open jobs on GitHub

dupe of https://github.com/Expensify/App/issues/20451

Agree this is a dupe, closing!


Conv2DTranspose have a non-deterministic behavior

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.7
Python version: 3.8
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: 8.1
GPU model and memory: GeForce GTX 1080 Ti

Describe the current behavior
It seems that Conv2DTranspose behaves in a non-deterministic way.
Describe the expected behavior
I would expect to get the exact same output when I run the same model with the same input.
Standalone code to reproduce the issue
#*****************************************
import numpy as np
from keras.layers import Conv2DTranspose, Input
from keras.models import Model
input_layer = Input(shape=(8, 8, 3))
output = Conv2DTranspose(3, 4)(input_layer)
model = Model(input_layer, output)
data = np.random.randn(1, 8, 8, 3)
for _ in range(10):
output_sum = np.sum(model.predict(data))
print(f'output_sum: {output_sum}')
#*****************************************
Output I get:
output_sum: 1.6755037307739258
output_sum: 1.675503134727478
output_sum: 1.675502896308899
output_sum: 1.6755034923553467
output_sum: 1.6755017042160034
output_sum: 1.675503134727478
output_sum: 1.6755036115646362
output_sum: 1.6755034923553467
output_sum: 1.6755030155181885
output_sum: 1.6755015850067139

@reuvenperetz ,
I was able to run the code without any issues on TF v2.7. Please find the gist of it here.Also please create a virtual environment and test your code again. It helps. Thanks!

I tried it with google colab and it worked perfectly .


Update all first-party submodules

This will probably be broken for the moment, as I haven't updated the generated thrift files.

Have you tried an HHVM build with these changes?


feat: New Component: Step indicator

Summary
Adds new Step Indicator Component
Related Issues or PRs
closes: https://github.com/trussworks/react-uswds/issues/487
How To Test

Screenshots (optional)

Warnings

:warning:
It looks like there are new component (JSX/TSX) files, but the entrypoint (index.ts) has not changed. - Did you forget to export new components from the library entrypoint?

  Generated by :no_entry_sign: dangerJS against 41214f358e8b4a38e20b8ebebdb59198f0214e54

This may deserve a larger discussion and github issue (I'll file one if one does not already exist) to decide on the right solution.

Let's definitely make an issue. I like the idea of starting a pattern for localizations 🌟 . And also things like "step X of X" are  usually complicated (you don't want to translate a sentence or phrase word by word for i1n because that assumes certain grammar structure).  We might want to throw around more ideas with that or decide its out of scope.


http post method supported？

Sorry, @wubingjie, but I don’t understand the question. Can you please clarify what you are trying to do?

Hi, @JeanFred . Is it possible to somehow add the ability to check Http Check through HTTP POST. Now it is possible to add only HTTP GET check. But this is not enough to test real API services.

@JeanFred @maxUo
thank you ! now it can not check http check through http post method, just only http GET method

@wubingjie But this is a pretty important feature. What do you think when it is added?

@wubingjie But this is a pretty important feature. What do you think when it is added?

I think we can implement it as a cabot plug-in. I expect someone to finish it…  ：(
thanks for your replies…


The relationship between operator running time and number of runs

I used the same data to run the same function five times, and the five running times were: 1282.27764 ms, 0.35153 ms, 0.15597 ms, 0.1487 ms, 0.14346 ms. The difference between 0.14346 ms and 0.35153 ms is too big in terms of percentage！
I was curious why the third, fourth, and fifth running times were shorter than the second?
Could anyone help me?
inp = torch.rand([1, 4096], dtype=torch.bfloat16).to(device)          # NVIDIA GeForce RTX 4090
fc1 = torch.nn.Linear(4096, 11008, bias=True, dtype=torch.bfloat16).to(device)
1282.27764 ms, 0.35153 ms, 0.15597 ms, 0.1487 ms, 0.14346 ms
for num in range(5):
t1_start_time = time.process_time()
res1 = my_fuc(inp, fc1.weight, fc1.bias)
t1_end_time = time.process_time()
t1_duration = t1_end_time -  t1_start_time
print(f"1Evaluation triton costs                {num}: {t1_duration*1000: .8f} ms.")

When you run a function for the first time, the GPU needs to initialize and load the necessary computational resources, which may result in longer execution times. However, subsequent runs of the same function may benefit from cached resources, leading to faster execution times. And you also can record the start and end time points with event.record(), and then calculate the time difference with event.elapsed_time(). This allows for more accurate measurement of GPU runtime

Thanks a lot!
Actually, I focus on wall-clock time because I tend to implement an efficient operator for LLMs inference.
For example, during the decoding stage of Llama-2-7B, there are two feedforward operations (matrix multiplication) in each transformer layer.
After the triton compiler (1282.27764 ms) was completed, I got 0.35153 ms wall-clock time for input embedding.
However, I wish got 0.14346 ms. If that, I can accelerate the inference end-to-end time!