Replace all instances of blocking {} with explicit dispatcher

Identify all usage of blocking {} in the codebase and attempt to replace with a Future that is associated with a dispatcher appropriate for the blocking operation (even if that is default-blocking-io-dispatcher to start).
See: https://stackoverflow.com/a/34645097/167797

Superseded by https://github.com/azavea/raster-foundry/issues/2341.


[CFP]: Building an OSPO in the Energy Sector: The Alliander experiences

Session Title
Building an OSPO in the Energy Sector: The Alliander experiences
Session Description
Business sponsorship, enthusiasm and going for it. Those three ingredients define Alliander’s OSPO. After joining LF Energy and releasing our first open source project under the LF Energy umbrella, we started to recognize the need within Alliander for a group of people with the know-how and mandate to help bring structure and organization to the open source plans. And so some enthusiasts came together and discussed the various open source needs within the company. The OSPO turned out to be an excellent means for this because it created an overview of all open source activities. From there, we started consolidating knowledge, worked on building better open source development practices, familiarized the organization with innersource, improved license compliance, and looked for external opportunities for collaborating via open source. The OSPO as a strategic pillar for change was born. Two years later, here we are. We have released and contributed to many more open source projects, have a functioning Open Source Program Office and are starting to embed the open source mindset in the organization.
In this session, we will tell you more about our OSPO journey, our OSPO ambitions and will be introducing LF Energy.
Benefits to the Ecosystem
Learn about Alliander's experiences in building an OSPO in the Energy Sector.
Help us narrow down the focus a bit more. Please choose the OSPO related topic that best describes your proposal.
Adoption and Discovery
What level of experience should the audience have to best understand your presentation?
OSPO 101 (Beginner)
Speaker Name
Jonas van den Bogaard & Nico Rikken
Speaker Bio
Jonas van den Bogaard is solution architect & open source evangelist at Alliander. Alliander is the largest DSO in the Netherlands. As a DSO, Alliander is responsible for the distribution of energy such as electricity, gas and heat.
Nico Rikken is Senoir DevOps Consultant & open source evangelist at Alliander. Alliander is the largest DSO in the Netherlands. As a DSO, Alliander is responsible for the distribution of energy such as electricity, gas and heat.
Speaker preferred pronouns
Please add your preferred pronouns, if any (e.g She/ Her, They/ Them)

Looks awesome, love it!

+1

FYI: the event has been created and scheduled for March 2nd at 5:00 pm CET. RSVP is open :)
https://community.linuxfoundation.org/events/details/lfhq-todo-group-presents-building-an-ospo-in-the-energy-sector-the-alliander-experiences/


Installing from source no longer installs the share directory

When we had INSTALL_PATH = os.path.join(sys.prefix, 'share/e3sm_diags/') instead of what it is now (INSTALL_PATH = 'share/e3sm_diags/') installing from source worked.
@chengzhuzhang had issues installing from source and reverting it back worked. @xylar do you recall why we had to change this? It had something to do with the noarch builds or something. I'll need to do further testing to reconcile these differences.

@zshaheen, I'm trying to find that discussion.  Please don't put it back with os.path.join(sys.prefix, 'share/e3sm_diags/').  It breaks stuff when you actually install it to a conda environment because it stores the path to the environment where you're running setup.py, not the environment where it's supposed to end up.  It's a really bad thing to do.

https://github.com/E3SM-Project/e3sm_diags/pull/203#discussion_r267169227

If you can't figure out what's going wrong, could you post the steps you're taking where "share" is not getting copied and I can try to reproduce it (and hopefully fix it) tomorrow?

Are you having this problem from the current master?

I did the following test with master:
conda build --python=3.7 -c e3sm -c cdat/label/v81 conda/meta.yaml
conda create -n test_e3sm_diags --use-local -c cdat/label/v81 python=3.7 e3sm_diags

After that finished, everything looked good to me:
$ ls ~/miniconda3/envs/test_e3sm_diags/share/e3sm_diags/
acme_ne30_ocean_land_mask.nc  cosp_histogram  polar
colormaps                     e3sm_logo.png   zonal_mean_2d
control_runs                  lat_lon         zonal_mean_xy

Again, happy to help if you can give me instructions that reproduce the problem.

@xylar   I was on our py3_support branch which was branched off from master with the old INSTALL_PATH. And I made a mistake to merge in the master. The master is all good! Thank you for testing.

Hi @xylar, as usual, thanks for the detailed feedback! :) Yeah sure, it would be great if you could try to recreate this issue.

Go to the py3_support branch. In the conda folder, create an env with e3sm_diags_env_dev_py3.yml.
conda env create -f e3sm_diags_env_dev_py3.yml --name e3sm_diags_py3_try2

Edit setup.py, changing INSTALL_PATH to 'share/e3sm_diags/' and install the software.

Go to tests/system and run the below. It only takes about 1 minute.
e3sm_diags -p all_sets.py -d all_sets.cfg

You'll get an error like so:
cdms2.error.CDMSError: Cannot open file /global/homes/z/zshaheen/anaconda2/envs/e3sm_diags_py3_try2/share/e3sm_diags/acme_ne30_ocean_land_mask.nc (Variable not found)

You will see that in the share folder for your env, there won’t be an e3sm_diags folder even present:
$ ls /global/homes/z/zshaheen/anaconda2/envs/e3sm_diags_py3_try2/share
aclocal          dv3d        genutil         glib-2.0          licenses  sip        xml
bash-completion  et          gettext         gst-plugins-base  locale    tabset
cdp              examples    gettext-0.19.8  gtk-doc           man       terminfo
dbus-1           ffmpeg      ghostscript     icu               proj      udunits
doc              fontconfig  gir-1.0         info              readline  vcsaddons

I was able to reproduce your problem.  The issue is precisely the step you left out of your instructions above, namely "install the software".
If you use:
python setup.py install

the files remain in the "egg" file in lib/python3.6/site-packages/e3sm_diags-1.6.0-py3.6.egg and don't get expanded and put in the share folder (nor is the acme_diags package directly in lib/python3.6/site-packages, as I would have expected).
If, instead, you use:
pip install .

Everything ends up where you expect.
The command recommended by conda-forge is slightly more involved but does the same thing:
"{{ PYTHON }} -m pip install . --no-deps -vv"

This is what I had in conda/meta.yaml but I believe this is another line that was changed back during a merge.

Thanks @xylar, everything works fine now. I'll update the documentation on our end now.


fix(table-loading): table pagination

add back the children for the table pagination
Proposed Changes

Potential Breaking Changes

Acceptance Criteria

[ ] The proposed changes are covered by unit tests
[ ] The potential breaking changes are clearly identified
[ ] README.md is adjusted to reflect the proposed changes (if relevant)

Codecov Report

Merging #1430 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1430   +/-   ##
=======================================
  Coverage   99.15%   99.15%
=======================================
  Files         484      484
  Lines       10084    10084
  Branches     2329     2329
=======================================
  Hits         9999     9999
  Misses         85       85

Impacted Files
Coverage Δ

...rc/components/table-hoc/TableWithNewPagination.tsx
100% <ø> (ø)
:arrow_up:

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 700bed1...a17d0bc. Read the comment docs.


QML icon is not loaded for *.qml files

[ ] I'm sure this issue is not a duplicate.
Language Extensions:
More info:

The extension advertises an icon for *.qml files however it does not seem to work now. It did with previous versions, I don't recall what is the latest version on which is worked.
I have submitted 3 images:
1- QML files that do not show the icon

2- qmldir files that do have the correct icon

3- What the *.qml icon should be from the list of support files

As far as I'm aware, you have to set the language in VSCode for it to work.
It's in the bottom right of the UI, and then you can configure the file association.


[C2M] Crash or assertion in uncommon array pointer

I found this piece of code while using stb_vorbis, I've trimmed down the issue to the following example:
#include <stdlib.h>
#include <assert.h>

typedef struct Residue {
   short (*residue_books)[8];
} Residue;

int main() {
    Residue r;
    Residue* pr = &r;
    void *p = malloc(sizeof(pr->residue_books[0]) * 10);
    pr->residue_books = (short (*)[8]) p;
    for(int i=0;i<10;++i)
        for(int j=0;j<8;++j)
            pr->residue_books[i][j] = 0xffff;
    assert(p == pr->residue_books);
    free(pr->residue_books);
    return 0;
}

Output:
$ c2m t.c -ei
Segmentation fault (core dumped)
$ c2m t.c -eg
c2m: t.c:16: main: Assertion `p == pr->residue_books' failed.
Aborted (core dumped)

I've never seen such syntax for pointer and arrays before, this kind of code should be uncommon.
The example compiles and runs fine in GCC/Clang. On C2M looks like the array pointer is being overwritten, the pr->residue_books pointer becomes 0xffffffffffffff after the for loop.

I've committed the following to solve the issue:
https://github.com/vnmakarov/mir/commit/fef226f119e15f2cdbc6ed45b9d8f17b85a1f993
https://github.com/vnmakarov/mir/commit/6ce1854e2b0fa28f1f8b22a2fb58069277ed6424

The fix works for on my tests, thanks!


Waypoint: Target the Children of an Element Using jQuery Run(Ctrl + enter) not working

Challenge Waypoint: Target the Children of an Element Using jQuery has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

#left-well

        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>

#right-well

        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

The waypoint is asking you to change the color not the background-color. In the future please ask for help in the Help Chat rather than filing a bug.
Thanks and happy coding!

Sure thanks, sorry for the inconvenience, I raised the bug because it is not showing what the error as it shows in the rest of the modules
Sent from Outlook
On Thu, Dec 3, 2015 at 3:13 PM -0800, "Logan Tegman"<EMAIL_ADDRESS>wrote:
The waypoint is asking you to change the color not the background-color. In the future please ask for help in the Help Chat rather than filing a bug.
Thanks and happy coding!

Reply to this email directly or view it on GitHub:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5003#issuecomment-161819050

Hi I chsaw caked it I'm changing the color not the background color for right-well Id to green can you please check it again
Sent from Outlook
On Thu, Dec 3, 2015 at 3:13 PM -0800, "Logan Tegman"<EMAIL_ADDRESS>wrote:
The waypoint is asking you to change the color not the background-color. In the future please ask for help in the Help Chat rather than filing a bug.
Thanks and happy coding!

Reply to this email directly or view it on GitHub:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5003#issuecomment-161819050

Now that you're changing the color the code passes perfectly for me. Does the problem continue if you refresh the page? Are you getting any errors in the console?

I'm not getting errors or nothing , it just says nothing I refreshed the page couple of times , I even did the later tasks but this one is not working on google chrome
Sent from Outlook
On Thu, Dec 3, 2015 at 3:23 PM -0800, "Logan Tegman"<EMAIL_ADDRESS>wrote:
Now that you're changing the color the code passes perfectly for me. Does the problem continue if you refresh the page? Are you getting any errors in the console?

Reply to this email directly or view it on GitHub:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5003#issuecomment-161821780

Don't know how I didn't see this the first time -- your code is calling child when it should be calling children.

Sorry my bad thanks for the help, this has been. Great so far thanks to the whole community.
Sent from Outlook
On Thu, Dec 3, 2015 at 3:29 PM -0800, "Logan Tegman"<EMAIL_ADDRESS>wrote:
Don't know how I didn't see this the first time -- your code is calling child when it should be calling children.

Reply to this email directly or view it on GitHub:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5003#issuecomment-161822747


Using a mysql query with source & target

Hello,
Is it possible to utilize this plugin with a mysql query with source & target parameters? I tried, does not render. If possible, could you provide an example? Thanks

Hi, sorry for the late answer. Unfortunately, I didn't get notifications of the issues. I will respond quickly from now on.
The query parameter doesn't work and you can't use any kind of query including MySQL there. API is The only way to use the data source as it's documented in the readme and example given here.


Choosing a deck from the menu doesn't seem to load the latest version

If I've saved a new version of a deck, it seems like the only way to load it is to open it in the deck manager and click the play icon. If I choose it from the menu it loads the old version.

That only happens the first time for me. I don't know if this is the same for you or not.
If so, it isn't that hard to do it the first time only. Other than that though it will get a bit tedious.

If you close and restart HSTracker, is IT the new version or still the old one ?

For me it doesn't change anything.

Restarting doesn't change anything for me either. I also see this every time I choose the dropdown. Once I've saved a new version the only way to load it up is by clicking the play icon in the manager.


Most print statements should be replaced by logging calls

Logging should be handled better, at the very least be possible to implement a flag for -verbose -quiet or for specific parts of the pipeline and/or redirect to logfiles.

[ ] detecting print candidates
[ ] classify the logging priority/context
[ ] do the switcheroo
[ ] default config settings
[ ] file / other config settings
[ ] flags

I don't understand what all the bullet points mean, but I agree with the main idea.
Putting it through some sort of logging framework rather than just printing to the screen would allow for much more flexibility to move logs elsewhere later.
Alembic uses some kind of logging framework and puts it's messages through that, maybe we should look at that?

FYI, Python's logging facility is quite powerful and flexible. I believe Alembic uses it as well.

+1 on to Python's own logging!
@odscjames the idea was about general "microtasks" to be ticked off, of course open to suggestion.

I did #161 to get this started! Have a look. If people are happy with #161, there are some other things to look at next that can be done here or on seperate issues.
Add more info/debug statements everywhere! We should maybe have some discussion on what level to use for what, which is why I did not add too many straight away.
Think about removing some of the print statements and use logging instead. (I know this was the original point of this issue, but we should review how it looks to CLI users. I still think adding logging is good generally; once we have more comprehensive messages appear it can help debug problems. I've already had an issue appear on a long run and this would have really helped me debug it!)
It would be good if each source run has it's logging files appear in the same folder as the other files:

data/australia_sample
data/australia_sample/2018-07-19-11-27-23
data/australia_sample/2018-07-19-11-27-23/metadb.sqlite3
data/australia_sample/2018-07-19-11-27-23/errors.log
data/australia_sample/2018-07-19-11-27-23/info.log
data/australia_sample/2018-07-19-11-27-23/packages-023cb74eec440a851a6d5e5befb019a0.json
data/australia_sample/2018-07-19-11-27-23/packages-0d77f752076f581875c4e5d223f79ca4.json

However, I don't think this is possible with config files alone. We could do this if we configure the logging directly in the library, but maybe we don't want to do that. So I haven't done this yet - discussion first.


integration test design in documentation is prone to race conditions

Orb version
8.3.0
What happened
The orb under test is referenced as orb@dev:alpha.
If I push two feature branches at once, it is quite possible that workflows will run in the following sequence:

lint_pack-validate_publish-dev-branch-1
lint_pack-validate_publish-dev-branch-2
integration-tests_prod-release-branch-1
integration-tests_prod-release-branch-2

In that case, integration-tests_prod-release-branch-1 will actually run the tests against branch-2.
Even worse, if I push master and a feature-branch at the same time, there is the possibility that the orb built from the feature-branch will be confused with the orb from the master branch, and is subsequently promoted to a release.

@cfra you can use something like this to mitigate these kinds of issues
https://github.com/eddiewebb/circleci-queue
& tbh, regular commits / jobs / workflows on CircleCI are prone to the same issues

Even worse, if I push master and a feature-branch at the same time, there is the possibility that the orb built from the feature-branch will be confused with the orb from the master branch, and is subsequently promoted to a release.
this is not true, at least by default, as the dev-promote-prod job by default promotes only the dev orb published with the same specific git sha of the commit that triggered the workflow:

https://github.com/CircleCI-Public/orb-tools-orb/blob/master/src/jobs/dev-promote-prod.yml

Thank you for pointing to circleci-queue, this certainly looks interesting, I will have a closer look. :eyes:
Also, thank you for clarifying how the promotion is working. :pray:


npm linking consumer with library causes TS2322: Observable not assignable to Observable

RxJS version: 5.0.0-beta.6 and also tried npm linking with master today - no change
Code to reproduce:
You need:

A library that exposes a method returning an Observable (example)
A consumer that consumes this method and returns an Observable as well (example)
npm link the two before building

Example:
git clone https://github.com/vankeer/ng2-example-library.git
cd ng2-example-library
npm i
npm link
cd ..

git clone https://github.com/vankeer/ng2-example-consumer
cd ng2-example-consumer
npm i
npm link ng2-example-library
gulp build.dev

Expected behavior:
The library and the consumer build normally.
Actual behavior:
The consumer throws this error:

src\client\app+wiki\wiki.component.ts(33,12): error TS2322: Type 'Observable<any[]>' is not assignable to type 'Observable<any[]>'.
Property 'source' is protected but type 'Observable' is not a class derived from 'Observable'.

Additional information:
This only happens when npm linking the repos.
One way to avoid this problem is by having rxjs methods return an interface for Observable instead of Observable. Of course, this would require a rather large refactoring. PR for this suggested change: #1741
Another way to avoid the problem is by explicitly installing the typings in the consumer (have not managed to do this yet with this specific example though).

It's probably that both libraries should have rxjs as a peer dependency, rather than a direct dependency. You'd run into this issue with any library that passed through a type like that. I'm not sure there's anything rxjs can do about it.

Unfortunately having rxjs as peer dependency does not fix this problem. I updated my example repos.
I am unsure how to fix this (besides explicitly installing typings in the consumer) and I don't quite understand why this is not an issue for more people? Aren't more people npm linking different libraries like this and running into this same problem? Not sure what I'm missing.

@vankeer oh, to clarify, this is a TypeScript build failure? cc/ @david-driscoll

I believe it's an issue with the compiler still. I get the issue as well.
Work around is pretty easy, at least for working locally. Just make a
node_modules in the parent directory and put rxjs and symbol observable in
there. Less than ideal but it works for now.
I'll test with typescript@next and see if its been resolved.
On Thu, Jun 16, 2016 at 8:57 PM Ben Lesh<EMAIL_ADDRESS>wrote:

@vankeer https://github.com/vankeer oh, to clarify, this is a
TypeScript build failure? cc/ @david-driscoll
https://github.com/david-driscoll
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ReactiveX/rxjs/issues/1744#issuecomment-226655101,
or mute the thread
https://github.com/notifications/unsubscribe/ABNdpYMcDd2GhmHO0Xk0I-f7lhm1Zk-Aks5qMfDegaJpZM4IuuAe
.

--
Thanks,
David

@blesh Yup, it's a Typescript build failure. Thanks for following up this issue
@david-driscoll Thanks for your response. Using typescript@next did not solve the issue for me. Also, I'm not sure what you mean with installing rxjs and symbol-observable in the parent dir to fix the issue, since that alone is not enough to fix it for me. But, deleting [consumer]/node_modules/[library]/node_modules/rxjs does solve the issue for me, since Typescript will then rely on [consumer]/node_modules/rxjs for typings I guess. I thought that should be the behavior when specifying rxjs as peerDependency, but it's not apparently.
It's a bit of a hassle, especially when working with lots of libraries, but it's another workaround for this issue, other than installing typings explicitly.

This may be a decent case to give a change like https://github.com/ReactiveX/rxjs/pull/1741 a second look.

I think this https://github.com/Microsoft/TypeScript/issues/6496 is related, unclear if it's gonna be fixed from the TS side.

As similar to https://github.com/ReactiveX/rxjs/issues/2092 I don't think there's viable option on RxJS codebase side at this moment, rather to wait compiler side update and close this issue. /cc @blesh for visibility, please reopen if needed.


feat:Discord btn

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your default branch!
[ ] Make sure you are making a pull request against the default branch (left side). Also you should start your branch off default branch.
[ ] Check the commit's or even all commits' message styles matches our requested structure.
[ ] Check your code additions will fail neither code linting checks nor unit test.
[ ] I have added necessary documentation (if appropriate)

Description
Please describe your pull request.
❤Thank you!
Post merge checklist

[ ] Follow steps from the guidelines for contributing to this repository.
[ ] If you are a new contributor, ping in the thread and one of the maintainers will add you to all-contributors list.

@babitarit Keep discord button and devfolio button in one row.
Keep them in one div and make it a flex.

@babitarit At least check the code that you're copying. You have used the code for Devfolio button for discord button.

@babitarit pull the changes I have made and add fix the UI in smaller screens. Please refer to code of last year's website. There were two discord button components, one for smaller screens and one for the larger ones. Also style it accordingly. Check the styles of button container used in last year's website.

@babitarit
Fix this ASAP!


List all services

Does not include (work left to do in other prs):

Configuration, Policy, Life cycle buttons (and functionality)
Propose a (more so) permanent solution for a footer toolbar

Includes (what it does)

new list view fields and layout that scale with browser viewport
Adds pagination and limit functionality (tests for pagination component)
Load screen component
Power state component
Update badge count query, no longer requests extraneous info
Update Collections api to handle additional functionality
General refactoring and deduplication
Lots of 🌮 🌮 🌮

https://www.pivotaltracker.com/story/show/133840391
The Good Stuff

Smaller

Smallest

Hey you beautiful 🍑s would appreciate a look, thoughts, suggestions, inputs
@chriskacerguis @jjlangholtz @himdel @serenamarie125 @jntullo @chalettu

where we got to today

Todays Progress

Refactored powerstate to be a component
Added pagination component (it works, this is super :taco)
Added card view to table
General cleanup to explorer component
Identified api bug where the limit request supersedes the available items in the offset

@AllenBW what is Service Explorer and why is it in the UI :)  And where's the pagination component from - it needs a little UX <3, but I'm assuming this is not specific to the Service UI?

@serenamarie125 Service explorer is what i'm calling the existing list view when one adds a bottom toolbar, pagination,  and parity functionality with ops ui(all those do thing buttons)
Pagination component was hand rolled for this, is modular in execution and easily ported to elsewhere; styling isn't completely done (one of a few reasons why the pr is still a WIP) specific feedback on design is  most appreciate
The pivotal ticket has the specifics of tasks outstanding for this  🌮

@AllenBW going to let this sit for 24 hours for comments.

@AllenBW I haven't tried this out yet, but the screenshots look really awesome! 👍
I noticed that the 'Start' button that starts the service is no longer visible in the list.
Is it now included under the kebab menu for space saving reasons?
If so, the enableButtonForItemFn function is not applicable anymore.
And we now need to manage the enabled/disabled state of the Start button in updateMenuActionForItemFn.
Could you also include a screenshot of the expanded kebab menu? Thanks.

@AparnaKarve ss as requested!

very much a 👾 reason

that's some nice pagination @AllenBW

@AllenBW One question on the above screenshot...
I'm assuming that Service has an "Unknown" Power state...
So for an Unknown Power state, we need to enable only the Start button.
Stop and Suspend should be grayed out.
I understand that the primary focus of this PR is Pagination so I'm fine fixing this in a follow-up, smaller PR.

@AparnaKarve all good to do it here!  Please find attached updated ss, good catch and if it hasn't been said already, thank you SO MUCH for looking and calling out 🔴 🎏

good catch and if it hasn't been said already, thank you SO MUCH for looking and calling out 🔴 🎏

Anytime @AllenBW. My pleasure! 😄

@AllenBW nice work :) One thing I notice, you probably shouldn't be updating the pot file in this PR. (Unless something changed @mzazrivec ?)


Updating README to include python 3.9 installation

Updating README to include Python 3.9 installation and test modules dependencies

I have updated the README and merged the changes into the main branch after accepting pull request #29.


Swift: Mapping String value to Enum

I would like to map json key "subitem_type" to "type" that is enum with String raw values
public enum FoodOfferItemType: String {

    case Starter = "starter"
    case Main = "main"
    case Desert = "desert"
    case Vegetarian = "vegetarian"
}

public class FoodOfferItem: NSObject {

    public var id: Int?
    public var type: FoodOfferItemType?
    public var text: String?

}

        let foodOfferItemMapping = RKObjectMapping(forClass: FoodOfferItem.self)
        foodOfferItemMapping.addAttributeMappingsFromDictionary([
            "id": "id",
            "subitem_type": "type",
            "text": "text",
        ])

I wrote a wiki page giving an example of NSString to NS_ENUM (enum) types using a value transformer:
https://github.com/RestKit/RestKit/wiki/RKValueTransformer-Example%3A-Mapping-NSString-to-NS_ENUM
Nothing is too complicated, it should be easily portable to swift.

I would if I knew how to do it properly in Swift.

:+1:

I am trying to write the same in swift, but the output value is constant let. I get this warning. Any help @mozeryansky  @segiddins ?

Wow, it's been about 4 years since my comment. Well all parameters are lets unless they're marked as inout. I haven't used RestKit since my last comment, so I'm not sure how transformationBlock is defined in Swift.


fix: integration with js-libp2p

In the context of integrating gossipsub into js-libp2p libp2p/js-libp2p#365, some problems appeared and this PR addresses them.

Codecov Report

Merging #21 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   83.18%   83.22%   +0.03%
==========================================
  Files           8        8
  Lines         452      453       +1
==========================================
+ Hits          376      377       +1
  Misses         76       76

Impacted Files
Coverage Δ

src/pubsub.js
92.56% <100%> (+0.06%)
:arrow_up:

src/heartbeat.js
70.27% <100%> (ø)
:arrow_up:

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 bf99d47...f894281. Read the comment docs.


How to plot band structure with spin polarised + spin orbit coupling band structre

I am not able to plot band structure with SOC.
Every time I do they show this error.
/home/neeraj/.local/lib/python3.8/site-packages/pymatgen/core/init.py:49: UserWarning: Error loading .pmgrc.yaml: [Errno 2] No such file or directory: '/home/neeraj/.pmgrc.yaml'. You may need to reconfigure your yaml file.
warnings.warn(f"Error loading .pmgrc.yaml: {ex}. You may need to reconfigure your yaml file.")
Traceback (most recent call last):
File "/home/neeraj/.local/bin/sumo-bandplot", line 8, in
sys.exit(main())
File "/home/neeraj/.local/lib/python3.8/site-packages/sumo/cli/bandplot.py", line 462, in main
bandplot(filenames=args.filenames, prefix=args.prefix,
File "/home/neeraj/.local/lib/python3.8/site-packages/sumo/cli/bandplot.py", line 246, in bandplot
plt = plotter.get_plot(zero_to_efermi=True, ymin=ymin, ymax=ymax,
File "/home/neeraj/.local/lib/python3.8/site-packages/sumo/plotting/bs_plotter.py", line 136, in get_plot
if self._bs.is_spin_polarized or self._bs.is_metal():
AttributeError: 'list' object has no attribute 'is_spin_polarized'

Hi, please can you try updating sumo and pymatgen to the latest versions.

Yes I have updated.
Is it possible to plot non collinear spin polarised plots?
If yes what are the commands.
Thankyou
On Thu, 10 Mar, 2022, 1:32 pm Alex Ganose, @.***> wrote:

Hi, please can you try updating sumo and pymatgen to the latest versions.
—
Reply to this email directly, view it on GitHub
https://github.com/SMTG-UCL/sumo/issues/161#issuecomment-1064005978, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARZXYJFRZ2LACPWRRQPHEKTU7HTT3ANCNFSM5QMLQPMQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

Yes it should work fine.
I don't think you are using the latest version of sumo. Your error says line 136 of /home/neeraj/.local/lib/python3.8/site-packages/sumo/plotting/bs_plotter.py contains:
if self._bs.is_spin_polarized or self._bs.is_metal():

But in the latest version it is different: https://github.com/SMTG-UCL/sumo/blob/732a10f30817c48a36be493effba9a07a7c829aa/sumo/plotting/bs_plotter.py#L136
I'm fairly certain this is an issue we fixed in the latest version. Please double check you have updated properly.

I checked my bs_plotter.py with the file you provided in the above link and both the files are exactly same.
I am attaching my vasprun.xml file for spin polarised SOC.
Have a look
https://we.tl/t-DNAjLqu8Y3
Thanks

Your vasprun plotted fine for me. Please double check your installation, as the error message shows that you don't have the right version installed.
If you can't get it to work, I suggest you install conda and create a fresh conda environment.

I have done both things. Can you share what plot you are getting. Because I am also getting one plot. But  I cannot differentiate neither spinors nor spin states.

I don't have the your kpoints file so there are no k-points labels but this is the plot I get
Note that with SOC enabled there is no-longer a clean distinction between spin-up and spin-down bands. If you check the OUTCAR you will see there is only a single set of bands. If you plot manually you can project the spin-polarisation onto the band structure with a colour/fatbands, however this has not been implemented in sumo.

Thanks, this is what I was getting.
That's what I was asking, it's not possible to project spinors here.
Thanks for your time.


Wait your turn

Let's proceed by logging into an account where 'Doctor' is selected as the profession, since other roles don't have a landing page yet—this way, you can avoid working on the HTML and CSS. You'll find a logout button in the bottom left corner, which is already set up for you. Ensure that once a user is authenticated and logged in with their credentials, access to the landing page is restricted to only that session, preventing any other users from accessing it concurrently. Also, ensure the logout button redirects back to the sign-in page.

can i get assigned

!assign @Anyaaa-2 60

can i be assigned to this

!assign @Git-Cat-21 60

@Git-Cat-21 you have been assigned  60 minutes

can i be assigned this next

i will extend after the time runs out

@Git-Cat-21 let me check your pr

@Anyaaa-2 you are not the person the problem has been assigned to

@Git-Cat-21 partial points cannot be awarded for the redirecting as it is not the crux of the issue

can i be assigned

!deassign

@Anyaaa-2  give me a few seconds the bot is down for a few minutes i can assign you after if you still want it

ya sure

!deassign

@Anyaaa-2 shall I assign it to you

yes

!assign @Anyaaa-2 60

!assign @Anyaaa-2 60

@Anyaaa-2 youve been assigned 60 mins you can dm for extensions

hey can i get assigned this repo??

!assign @Tulika7032 60

@Tulika7032 have you already been assigned to another repo??

pls assign me

can i be assigned this

!assign @DhanushSS 60

@DhanushSS you may have already been assigned to another repo

@shreyasoni26  would you like to be assigned?

can I be assigned to this?

yes please

!assign @shreyasoni26 60

!assign @shreyasoni26 60

@rohancyriac029 can i see where am i already assigned ?

I am sorry guys there seems to be some tech issue with the bot well fix it and get back to you and @DhanushSS if it was a issue on this side and u have not been assigned anything i will check that and assign it to you since you were here first

I got assigned in other place .

I got assigned in other place .

yea i figured

can I be assigned to this?

would you like to be assigned if you have not been assigned elsewhere

please assign me

!deassign

!assign @sakshipai213 60

@sakshipai213  you have been assigned for 60 mins u can ping me for extensions

!deassign

Can I be assigned this?

can i please be assigned

!assign @noobieeeeeee 60

@noobieeeeeee you were already assigned to another repo

i was

!asssign @shreyasoni26 60

@shreyasoni26 you are also assigned to another repo

@rohancyriac029 im not assigned to anything else, please recheck

!asssign @shreyasoni26 60

i think there's a spelling mistake here
in "assign"

!asssign @shreyasoni26 60

i think there's a spelling mistake here in "assign"

i am really sorry

!assign @shreyasoni26 60

thanks

@shreyasoni26 do you want an extension or would you like me to deassign you?

!deassign

@shreyasoni26 if you want to work on it further ping me

hey can i be assigned this??

@rohancyriac029

@sherlockhome12 i am sorry for the delay

!assign @sherlockhome12 60

youve been already assigned

there is a confusion

i was working on one repo and that repo got deassigned but somehow its displaying i m working under a repo

can i still continue working?

let me check if I still cant assign you

!assign @sherlockhome12 60

Did you withdraw or were you deassigned by the maintainer

kindly assign this.

!assign @KaparthyReddy 60

can i please get this assigned

!deassign

!assign @devanshishukla17 60

@devanshishukla17 uve already been assigned something else

no

!assign @devanshishukla17 60


CNF-11452: seedgen: Remove hubKubeconfig and hub interaction

Due to the potential issues stemming from ACM automatically re-importing the cluster, the support for hubKubeconfig and LCA deletion/restoration of the ManagedCluster CR had been dropped. The seedgen system validation now verifies that the cluster is not being actively managed by ACM prior to starting seed image generation, by checking for the klusterlets CRD. If present, this indicates ACM is managing the cluster, and the seedgen request is rejected.

/hold

/cc @browsell @jc-rh

/approve

/cherrypick release-4.15


Keychain access group support

JNKeychain is a great and easy-to-use wrapper over Apple's Keychain functionality, however it doesn't support at the moment sharing data across different access groups, e.g. different applications issued from the same Apple's developer account.
This add-on brings the Keychain access group functionality and is fully compatible with the existing project. As a result it can be upgraded by all customers who are using it without being worrying about compatibility issues.
iOS Keychain Sharing online resources:

http://shaune.com.au/ios-keychain-sharing-data-between-apps/
http://stackoverflow.com/questions/4115744/how-to-share-keychain-data-between-ios-applications
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html
http://useyourloaf.com/blog/keychain-group-access.html
https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/index.html
https://developer.apple.com/library/ios/samplecode/GenericKeychain/Introduction/Intro.html
http://stackoverflow.com/questions/29184277/keep-password-and-session-token-in-keychain
http://b2cloud.com.au/tutorial/using-the-keychain-to-store-passwords-on-ios/
http://hayageek.com/ios-keychain-tutorial/

nice!! i will have a look at it today or tomorrow, thank you

Hi! Any news on the pull-request?

looks good, nice work!


Support custom configuration outside of GitHub

This could be used to centralize style guides.

LGTM

I'm super into this idea!


Inconsistent data: some results are attached to two different indicators

Per @KennyMonster's discovery, the following programs have one indicator attached directly (through indicator_id) and a different indicator attached through periodictarget (periodictarget__indicator_id) which will produce inconsistent results for some queries.
inconsistent_results.csv.zip
See also #1065  (this was originally discovered in context of that ticket, but has been broken out to its own issue)

@camgnostic Is this still an issue? Should it be prioritized? Sounds a bit scary.


New device  Kingart king-q4

Can you please add support for cover switchs? Ewelink recognizes them as Kingart king-q4. With open, close, stop and percentage if possible, like Tuya devices do. Thanks!

Hi! Any news? Have you found anything about it?

No new news :( didn't work on this component lately.

Is there anything I can do to help you? I'll take a look to the code

@peterbuga I think till the time we can figure out how to register
different type of entities in HA, why not create a service, where we can
define the websocket message we want to send?
Like in the services you we can create a service sonoff.send_command,
select deviceid and then add the json parameters to be sent in the [switch]
key.
This could be a good workaround. (I mean it seems like you have the API
figured quite a lot especially after the debug file where we capture the
websocket messages. The only hiccup seems to be learning more about HA on
how to add different kinds of devices)
What do you think?
Thanks again for the amazing work so far!

This could also increase stability for those of us who want to send Turn
On/Off ALL outlets in a device (by decreasing the number of spontaneous
websocket messages)
JSON for All outlets can be sent via just a single websocket message.

@2016for this idea cross my mind several times, but i have to (and God forgive me i hate to do it!) write documentation for it too :grimacing::sweat_smile: it's somehow easy for switch entities but things get a bit more complicated on other devices and i somehow prefer to implement it vs. explaining it (in case you didn't realise/noticed some people aren't even able to follow simple instructions of copy-pasting 3 files to install this component and this will just complicate things further, more questions etc :weary: for people looking to automate things further but have no idea what they are doing.)

Haha @peterbuga makes complete sense. Completely understand.
Have been trying to scavenge through Docs to figure out how to create a
service. But it's above my IQ. :P
Still would love to see this in the future. Maybe a dev branch with
Disclaimer: No support would be provided. Only for Devs.? :P
Anyway, Love the work and support so far!

hi there.
i have this switch... i have entered the info on my file but it is still not detected...what can i do ? thanks a lot

hi there. anyone was able to use this device ? with rest or mqtt?
thanks a lot

Hi everyone,
Someone had a problem with the motor that after the first set, when i close the curtain and then open it again always the opening incresed in 20%...
after 5-6 full closing and opening the curtain not opened at all (until i set new switch registration).
Any ideas?

hi...anyone was able to setup this swith on Homeassistant? thank you

@Nitsan87 please edit your post (maybe describe the problem step by step) because personally I don't understand anything of it :|
@mclaudiopt this device has not been implemented yet, and i think it's kinda clear from this conversation. unfortunately i haven't got time to work around it, there's no ETA on it. if you're really anxious to implement this device there's always tasmota option ;)

thanks for the reply..and with tasmota i will be able to control % of opening for example?
thanks

i have no idea, i never tried tasmota mysel. by default it exceeds the default capabilities of sonoff devices (but you lose the cloud connectivity!). also, i don't want to be a bummer but it's out of the scope of this thread/issue...

hi peter...thanks for the reply....
and at least would it be possible to control this device via Homeassistant?

Great new...King Kq courtain switch is working, but only with open/closed
is it possible to configure maybe as a dimmer so that percentage can be configured?

Hello
can you please add Kingart- q4 to supported list?
with your code it is possible to open and close !
meanwhile, since with the physical switch and ewelink app is possible to "pause", in other words, to stop at any moment, can it be possible via Home assistant? how can i help implementing this feature?

@mclaudiopt i appreciate your enthusiasm 👍 but unfortunately if you're not a developer and willing to fork the code i'm not sure there's much you can do right now.
if you follow the thread the pause function can and will be implement, the best you can do after that is to be willing to test it. due to some personal problems i'm pausing the development right now and focusing on the everyday job, once i've had it sort out i'm gonna move forward again ;)

ok thanks ! i will wait for the pause function !

Hi, @peterbuga.
This would be an awesome add to your script. As the Tasmota firmware is not yet supported on this device, there is a hugely limited way to control properly this device otherwise using the official app.
I have this device already installed and willing to support you as beta tester.
Thanks and keep the good work!

Hi there. i can also can be a beta tester...but Tiago i think it can be flashed with Tasmota....

Hi, Anybody has advanced with this issue??
I have installed one in each window at home, and will be perfect if i can manage the positio with HA, ( google assistant allow to define the percentage desired to open ).
thanks in advance

Hi, Any progress on this?
Thanks!

closest I've seen: https://github.com/arendst/Tasmota/issues/5059
not tested it personally, but considering it.

Hi guys does anyone know how to make  this king q4 remember his last state when electricity goes down and back again??

Hi guys does anyone know how to make this king q4 remember his last state when electricity goes down and back again??

is this related to the functionality of this component? can you give more details?

I mean when the electricity goes off and then on again if the curtains are open they will close automatically . While i need them to stay open. How can we do this

It seems to be hard coded into the microcontroller firmware with no way to interfere from the esp device.  I've even tried using a rule in esp home to trigger a stop command on boot, but it is ignored. Kingart says that it's configurable from the ewelink app, but that's not been the case for along time.  This is why my Q4 is now earmarked for recycling or experiments only.

Hi! Do you know if it is possible to set a different calibration timer for up and down? Because my roller shutter closes faster than it opens and so the calibration fail

1548623175038

I'm getting the following response when I try to update the device state
{"error":504,"reason":"Request Timeout","deviceid":"xxxxxx","apikey":"xxxxxx","sequence":"159704507534"}
This is my request,
{"apikey": "xxxxx", "sequence": "159704507534", "ts": 0, "params": {"switch": "on"}, "deviceid": "xxxx", "action": "update", "userAgent": "app"}
I get the same results with setclose, not sure if has anything to do with the controlType param,

Looks I was missing the sledonline param, it's not failing but it's still not opening the curtains
{u'switch': u'on', u'setclose': 0, u'sledOnline': u'on'}

Hi, I have found this component . Works perfectly with kingart and all the sonoff products.
https://github.com/AlexxIT/SonoffLAN

hey, thanks!
El dom., 20 sept. 2020 a las 14:53, rlcobos2<EMAIL_ADDRESS>escribió:

Hi, I have found this component . Works perfectly with kingart and all the
sonoff products.
https://github.com/AlexxIT/SonoffLAN
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/peterbuga/HASS-sonoff-ewelink/issues/44#issuecomment-695784009,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOPXFDOWVWF67PKRH6LBBVDSGX3OHANCNFSM4GRFMJSQ
.

--
Sergio


G'Mic missing from Krita

Describe the bug
Krita 5 complains that it cannot find the G'Mic plugin.
Steps To Reproduce
Steps to reproduce the behavior:

Install Krita and the G'Mic plugin by adding krita and gmic-qt-krita to environment.systemPackages in /etc/nixos/configuration.nix
Launch Krita
Create a new image
Select the menu item Filter→Start G'MIC-Qt
Krita will complain, via a modal dialog, that it cannot load the plugin.
Select the menu item Settings→Configure Krita…
There should be a "G’Mic plugin" section in the left-hand sidebar, but there is not.

Expected behavior
For there to be a Krita setting to specify the path to the G'Mic plugin.
Additional context
The Krita manual explains the correct behaviour.
Notify maintainers
@abbradar
Metadata
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.25, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4`
 - channels(aidan): `"nixpkgs-22.05pre355202.b66b39216b1"`
 - channels(root): `"nixos-21.11.336340.2ebb6c1e5ae, home-manager-21.11.tar.gz"`
 - nixpkgs: `/home/aidan/.nix-defexpr/channels/nixpkgs

Starting from krita 5.0.0 the gmic-qt-krita package won't work with Krita. Krita team forked gmic-qt and Krita will only work with that fork: https://invent.kde.org/graphics/krita/-/blob/2e15682e6e0827b4cdf90b1be18db7e97370a7af/README.packagers.md
It would take some effort to implement the build process mentioned in the README since cmake and make need to be invoked multiple times. (Probably need to manually write the whole configurePhase and buildPhase)

Is it possible to maintain a separate krita-gmic package like arch linux does?

It is possible but making it a separate package probably wouldn't make it easier to implement.
We just need someone to implement the build process I linked above in nix (sorry I don't have time to do it)

Making some minor changes to gmic-qt you can build the krita plugin: https://github.com/lelgenio/nixpkgs/commit/60827a77c52d88ec65b86d676aa4a6c0f5a2c66c
I've not yet been able to have krita load the plugin though. I've tried creating a symlinkJoin'ed version with the plugin, that does not work :confused:
{ callPackage, symlinkJoin, krita-plugin-gmic, krita, ... }:
symlinkJoin {
  name = "krita-gmic";
  paths = [
    krita-plugin-gmic
    krita
  ];
  meta.mainProgram = "krita";
}

Krita is not logging enough information about where it tried to load the plugin for me to be able to deduce what is going wrong.

@AndersonTorres, @lilyinstarlight, Do you think the Krita fork of gmic-qt should be integrated in the definition at pkgs/tools/graphics/gmic-qt/default.nix? I was originally afraid modifying it now would not be worth it because the two versions might deviate too much from one another.

@lelgenio

If you want to remove the original gmic-qt and change it to krita's fork, I believe it will conflict with the previous one, and I would therefore vote against it
If you want to keep the fork along with the original, it's fine! You can use overrideAttrs magic in order to reuse the previous expression. Look at advcpmv as an example for inspiration.

@AndersonTorres, Option 1 is terrible, I'd never ask for that :smiley:.
I was asking if krita's gmic-qt should be included as a "variant" in pkgs/tools/graphics/gmic-qt/default.nix, effectively does the same as option 2
Like this
diff --git a/pkgs/tools/graphics/gmic-qt/default.nix b/pkgs/tools/graphics/gmic-qt/default.nix
index a67479e4ffd5..5b2c57b7d3dc 100644
--- a/pkgs/tools/graphics/gmic-qt/default.nix
+++ b/pkgs/tools/graphics/gmic-qt/default.nix
@@ -29,20 +29,23 @@

 let
   variants = {
     gimp = {
       extraDeps = [
         gimp
         gimp.gtk
       ];
       description = "GIMP plugin for the G'MIC image processing framework";
     };
+    krita = {
+      ...
+    };

     standalone = {
       description = "Versatile front-end to the image processing framework G'MIC";
     };
   };

 in

 assert lib.assertMsg
   (builtins.hasAttr variant variants)

I think it's best to keep it as a completely separate package, because both packages will never have matching versions.

So close! I got the "Q'MIC-qt for Krita" window to open by manipulating KRITA_PLUGIN_PATH:

Unfortunately it segfaults the moment I try to use any of the filters:
*** stack smashing detected ***: terminated
Magick: abort due to signal 6 (SIGABRT) "Abort"...

Progress at https://github.com/lelgenio/nixpkgs/commit/48723975f551fce5aa459ece801c8920b9667bfc


Store and show integration details for better visibility

Because
The users need to verify that they have connected the correct integrations.
This addresses

Stores some integration metadata such as org_id, team_id etc.
Shows the subset of it to the user in the integrations list page.
Updates Slack scopes to include team:read permission to get information about the workspace.

Can you actually show what the data is that you're showing the view? Just some numbers and strings by themselves won't tell much.

I thought about it but didn't want to make the integration cards too crowded.

Can you actually show what the data is that you're showing the view? Just some numbers and strings by themselves won't tell much.

I thought about it but didn't want to make the integration cards too crowded.

Feel like we should show something.
Project: <>
Bundle: <>
etc.

Can you actually show what the data is that you're showing the view? Just some numbers and strings by themselves won't tell much.

I thought about it but didn't want to make the integration cards too crowded.

Feel like we should show something.
Project: <> Bundle: <>
etc.

done.


Update tools-deps to <IP_ADDRESS>7

This is based on #117 so that should be approved and merged first. Just an upstream version bump for tools-deps.

Official images PR: https://github.com/docker-library/official-images/pull/10876


docs: update overview example

ERROR: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MyApp._initialization
Sample code shows error as _initialisation isn't marker as final.

@googlebot I signed it!

Thank you for the PR :)


Fix MPI hanging bug.

Description
Making the fix from #688 more robust. There are some situations where MPI_SIZE can be greater than 1, but MPI_DISTRIBUTABLE is False and only the rank 0 process has called cleanPath(). This code prevents the code from getting to an infinite MPI barrier in that situation.

Checklist

[x] The code is understandable and maintainable to people beyond the author.
[ ] Tests have been added/updated to verify that the new or changed code works.
[x] There is no commented out code in this PR.
[x] The commit message follows good practices.
[x] All docstrings are still up-to-date with these changes.

If user exposed functionality was added/changed: N/A

[ ] Documentation added/updated in the doc folder.
[ ] New or updated dependencies have been added to setup.py.

I moved the MPI barrier outside of cleanPath, and I adjusted the logic for calling the barrier slightly. I think this is the right logic to call MPI barrier only when processes are running in parallel.

It's difficult to meaningfully cover many of the places where cleanPath() and context.waitAll() are called because they happen when cleaning up folders from ARMI runs, but those folders don't get generated when running the unit tests.

Still having trouble with downstream applications... don't merge this yet. I'm stuck in a position where the code that passes unit test fails downstream in-use tests, and vice versa.

Still having trouble with downstream applications... don't merge this yet. I'm stuck in a position where the code that passes unit test fails downstream in-use tests, and vice versa.

Tell me when you're good, man.

@jstilley I just chatted with @mgjarrett and he says it's ready!


Adds API docs files for the decoder module

Codecov Report

Merging #131 (8e8cb30) into main (bf86d95) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   80.31%   80.31%
=======================================
  Files          65       65
  Lines        2149     2149
=======================================
  Hits         1726     1726
  Misses        423      423

Impacted Files
Coverage Δ

ezflow/decoder/conv_decoder.py
97.77% <ø> (ø)

ezflow/decoder/iterative/recurrent_lookup.py
77.22% <ø> (ø)

ezflow/decoder/noniterative/soft_regression.py
49.41% <ø> (ø)


I want to report the trace data centrally manually

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

We intend to use the message trace of rocketmq, but rocket does not provide a presentation layer. I think it's done through skywalking.
Basically one of my components will accept the message trace of all the messages in rocketmq and then manually report it to skywalking.
I need to change Trace's IP, time and some attributes. I want to customize the Trace information and report it manually
I didn't find the right way or the right way. Is skywalking supporting this

We don't support this officially. You could change the codes by yourself, but we don't have this.


http://python-hyper.org/h2/ is a broken link

http://python-hyper.org/h2/ gets a 404 error and is linked from the README.md on this site.

Perhaps it should point to https://hyper-h2.readthedocs.io/en/stable/ ?


Remove  react-native-size-matters

Replace with own service, in a live directory located atsrc/libs.
Find out how people import stuff using from "@libs/react-native-size-matters syntax

*libs directory
Repository file to implement in project :
file

implemented, close this issue when all files stop using the npm package and uninstall


Some small improvements

Apparently in Menu you accidentally used wrong function to set SpellPoints and using SetLevel instead.
Also your aim has one small probelm. If ray is colliding with character(For example when you're aiming down from a building/into the hole) it does not see the target so I have looked into the GetExecuteActionTarget and tweaked the code a little so now this function is working properly and i have not noticed bugs yet. However there is one small problem with it still. Demolishers and Mutants aren't always focused onto, presumably because of their armor and weird head texture so need to deal with this one too somehow.
 public static bool GetEntityVisibility(EntityAlive entity, Vector3 pos)
        {
            // -538750997 is from the game's project raycast mask.
            int modelLayer = Globals.LocalPlayer.GetModelLayer();
            Globals.LocalPlayer.SetModelLayer(2, false, null);
            bool flag = Physics.Linecast(
                            Globals.LocalPlayer.cameraTransform.transform.position,
                            pos,
                            out RaycastHit, -538750997) &&
                        RaycastHit.collider &&
                        RaycastHit.transform.position == pos &&
                        RaycastHit.collider.gameObject.transform.root.gameObject == entity.gameObject.transform.root.gameObject;
            Globals.LocalPlayer.SetModelLayer(modelLayer, false, null);

            return flag;
        }

And also there is problem with Player boxes, health bars and basically everything around it. Probably it would work in older versions but nowadays it just shows small pixel of color needed somewhere around shoulder of a player. And as of now i am just a bit lazy to fix it so no code for fixed version of that yet.
Also would be really great if you would be able to see boxes, containers and etc. For now i only found a way to find their(TileEntity) World Position but not how to get Screen Point out of that.

Thanks for contributing.
I remember there being one of the menu items assigned with the wrong function. I guess I didn't fix it.
After I saw Elijah's pull request I thought the game might have updated.  I guess it isn't too abnormal, besides the ReadMe being updated the cheat hasn't been updated since July 2022.
With your statement on the Aimbot not targeting certain entities it's likely due to them not being classed as animals or zombies. I noticed many zombies weren't identified as zombies so it's more likely that the entity just isn't on the entity list you're looping for the Aimbot.
With your issue with containers if you have the world point you should just be able to throw them through your WorldToScreen function

As of aimbot - I switched EntityZombie into EntityEnemy so it targets almost everyone hostile and also added additional aim settings for EntityAnimal for me myself. The problem with those zombies is that their models are a bit overlapping over their head pos most of the time which causes some problems with rays.
With containers i've tried to do this but the best i could put looks like this which is quite bad in my opinion.

As you can see - all the labels are being shown somewhere in specific yet random place(In this case it's outside of a map)
Code to do that one in particular is here
foreach (var tileEntity in EntityList)
                {
                    if (tileEntity == null)
                        continue; // check if TileEntity is valid pointer

                    Debug.Log($"TileEntity exists");
                    var tileEntityTransformPos = World.blockToTransformPos(tileEntity.ToWorldPos());
                    Debug.Log($"Tile Transform Pos: {tileEntityTransformPos.x},{tileEntityTransformPos.y}, {tileEntityTransformPos.z}");

                    Vector3 screenposition = Globals.WorldPointToScreenPoint(tileEntityTransformPos);

                    Debug.Log($"World Pos: {tileEntity.ToWorldPos().x},{tileEntity.ToWorldPos().y},{tileEntity.ToWorldPos().z}");
                    Debug.Log($"Screen position: {screenposition.x},{screenposition.y}");
                    if (!(Globals.IsScreenPointVisible(screenposition)))
                        continue;

                    Debug.Log($"Can be seen: {tileEntity.GetType()}");
                    Debug.Log($"At: {tileEntity.ToWorldPos().x},{tileEntity.ToWorldPos().y},{tileEntity.ToWorldPos().z}");
                    Debug.Log($"Player Transform: {Globals.LocalPlayer.transform.position.x},{Globals.LocalPlayer.transform.position.y},{Globals.LocalPlayer.transform.position.z}");
                    Debug.Log($"Player Position: {Globals.LocalPlayer.position.x}, {Globals.LocalPlayer.position.y}, {Globals.LocalPlayer.position.z}");
                    int distance = (int)Vector3.Distance(Globals.MainCamera.transform.position, tileEntity.ToWorldPos());
                    string distancestr = $"({distance.ToString()}m)";
                    string namestr = $"{tileEntity.blockValue.Block.DisplayType}";

                    Drawing.DrawString(new Vector2(screenposition.x, screenposition.y), $"{namestr}{distancestr}", Helpers.ColourHelper.GetColour("Zombie Colour"), true, 12, FontStyle.Normal, 0);
                }

As of aimbot - I switched EntityZombie into EntityEnemy so it targets almost everyone hostile and also added additional aim settings for EntityAnimal for me myself. The problem with those zombies is that their models are a bit overlapping over their head pos most of the time which causes some problems with rays.
With containers i've tried to do this but the best i could put looks like this which is quite bad in my opinion.
As you can see - all the labels are being shown somewhere in specific yet random place(In this case it's outside of a map)
Code to do that one in particular is here
foreach (var tileEntity in EntityList)
{
	if (tileEntity == null)
	continue; // check if TileEntity is valid pointer

	Debug.Log($"TileEntity exists");
	var tileEntityTransformPos = World.blockToTransformPos(tileEntity.ToWorldPos());
	Debug.Log($"Tile Transform Pos: {tileEntityTransformPos.x},{tileEntityTransformPos.y}, {tileEntityTransformPos.z}");

	Vector3 screenposition = Globals.WorldPointToScreenPoint(tileEntityTransformPos);

	Debug.Log($"World Pos: {tileEntity.ToWorldPos().x},{tileEntity.ToWorldPos().y},{tileEntity.ToWorldPos().z}");
	Debug.Log($"Screen position: {screenposition.x},{screenposition.y}");
	if (!(Globals.IsScreenPointVisible(screenposition)))
	continue;

	Debug.Log($"Can be seen: {tileEntity.GetType()}");
	Debug.Log($"At: {tileEntity.ToWorldPos().x},{tileEntity.ToWorldPos().y},{tileEntity.ToWorldPos().z}");
	Debug.Log($"Player Transform: {Globals.LocalPlayer.transform.position.x},{Globals.LocalPlayer.transform.position.y},{Globals.LocalPlayer.transform.position.z}");
	Debug.Log($"Player Position: {Globals.LocalPlayer.position.x}, {Globals.LocalPlayer.position.y}, {Globals.LocalPlayer.position.z}");
	int distance = (int)Vector3.Distance(Globals.MainCamera.transform.position, tileEntity.ToWorldPos());
	string distancestr = $"({distance.ToString()}m)";
	string namestr = $"{tileEntity.blockValue.Block.DisplayType}";

	Drawing.DrawString(new Vector2(screenposition.x, screenposition.y), $"{namestr}{distancestr}", Helpers.ColourHelper.GetColour("Zombie Colour"), true, 12, FontStyle.Normal, 0);
}

In regard to your Aimbot raycast issue, I found that the mutant zombies had a layermask of 15 on their heads but this is the same as a lot of other zombie's body masks. so whitelisting it would mean that the raycast would shoot through zombie bodies which we don't want. So I added a little distance buffer so if it hits the zombie but the point isn't bang on it will still work. The old check for seeing if it was on the point was needed due to it going through players to other players but this should work fine as it checks if the gameobject is the same.
New VisCheck:
        public static bool VisbilityCheck(EntityAlive entity, Vector3 pos)
        {
            // -538750997 is from the game's project raycast mask.
            int modelLayer = Globals.LocalPlayer.GetModelLayer();
            Globals.LocalPlayer.SetModelLayer(2, false, null);
            bool flag = Physics.Linecast(
                            Globals.LocalPlayer.cameraTransform.transform.position,
                            pos,
                            out RaycastHit, -538750997) &&
                        RaycastHit.collider &&
                        Vector3.Distance(RaycastHit.transform.position, pos) <= 2 &&
                        RaycastHit.collider.gameObject.transform.root.gameObject == entity.gameObject.transform.root.gameObject;
            Globals.LocalPlayer.SetModelLayer(modelLayer, false, null);

            return flag;
        }

You can use this code here to check the layermasks:
   public static string BarrelRayCastTest()
        {
            try
            {
                    Physics.Linecast(
                  Camera.main.transform.position,
                  Camera.main.transform.forward * 1000,
                  out RaycastHit);
                 return RaycastHit.transform.gameObject.layer.ToString(); // check the layer the raycast hits
            }
            catch
            {
                return "Unkown";
            }
        }

Thank you for this additional distance check but i reduced it to 0.7 just in case because zombies tend to be around corner sometimes. Probably i would even add it to some kind of cfg or temp cfg to check which value would work the best
Do you have any ideas on how to find TileEntities on screen?

While researching containers I couldn't help but to notice the TileEntity function:
	public void NotifyListeners()
	{
		for (int i = 0; i < this.listeners.Count; i++)
		{
			this.listeners[i].OnTileEntityChanged(this, this.dataObject);
		}
	}

Seems to be that they are trusting the client to control the flow of network packets between other clients. A MASSIVE networking no no.
That being said I can't find how to access tile entities. I saw a tileentitylist being constructed by utilizing GetEntity with the Entity class:
 foreach (Entity ent in FindObjectsOfType<Entity>().ToList())
                {
                    if (ent == null)
                        continue; // check null or not
                    TileEntityLootContainer container = ent.lootContainer;

                    ContainerList.Add(container);
                }

I get 9 entities and none of them even draw to screen.
Could you tell me where you're getting your EntityList from?

I get 9 entities and none of them even draw to screen. Could you tell me where you're getting your EntityList from?

EntityList.Clear();
var player = Globals.LocalPlayer;
var playerPos = player.GetBlockPosition();
int num = World.toChunkXZ(playerPos.x);
int num2 = World.toChunkXZ(playerPos.z);
for (int i = -1; i < 2; i++)
{
	for (int j = -1; j < 2; j++)
	{
		Chunk chunk = (Chunk)player.world.GetChunkSync(num + j, num2 + 1);
		if (chunk == null)
		continue;
		Debug.Log($"Chunk - {chunk.X}, {chunk.Z}");
		var tileEntities = chunk.GetTileEntities();
		for (int k = 0; k < tileEntities.list.Count; k++)
		{
			TileEntity tileEntity = tileEntities.list[k];
			EntityList.Add(tileEntity);
			Debug.Log($"Added TileEntity {tileEntity.GetTileEntityType()}");
		}
	}
}

I've found this in EntityPlayerLocal.updateBlockRadiusEffects() and it founds every single TileEntity around localplayer just fine. Then we can just sort them out by enum TileEntityType to get the ones we actually need. For now i didn't do it but it seems to work.

Ok. So as soon as I set it up I saw the issue. Its about the position's relativity to the chunk. I subtracted the player position from the tile entity position and got a closer distance that was some what near the objects. So the issue is the position being relative to the chunk.
Another issue with the code is that your code there only gets the current player chunk(so not very useful for more than 35m). I did some digging and made this:
  foreach (ChunkGameObject chunkobj in Globals.LocalPlayer.world.m_ChunkManager.GetDisplayedChunkGameObjects())
                {
                    Chunk chunk = chunkobj.chunk;
                    var tileentities = chunk.GetTileEntities();
                    for (int k = 0; k < tileentities.list.Count; k++)
                    {
                        TileEntity ent = tileentities.list[k];
                        TileList.Add(ent);
                    }
                }

This will get the entities that are i all your loaded chunks. I am still trying to find a way to fix the relativity issue.

I've accidentally pulled your new latest commit into the one i've been working with instead of the clean one so i've lost all my "progress" but there is still a problem with Main menu and skillbtn still gives lvl instead of skillpoints

Ahh, thanks for reminding me. I forgot about that.  Here add my discord Gr33n#5374. An easier way to communicate with me than github issues.

I have managed to get the correct world position for tiles now:
 BlockEntityData blockentity = tile.GetChunk().GetBlockEntity(tile.ToWorldPos());
Vector3 worldpos = blockentity.transform.position;


[CLI] Adding opportunity to see basic cluster logs

What does this PR do?
The PR introduces an opportunity to see basic BYOC logs in CLI: creation/any reconciliation/deletion.
That's needed mainly for debug aims, sometimes we need to know what happens to BYOC cluster.
The PR adds a command to inspect the logs:
lightning show cluster logs [OPTIONS] CLUSTER_NAME
The list of the possible options:
Options:
  --from TEXT      The starting timestamp to query cluster logs from.
  --to TEXT        The end timestamp / relative time increment to query logs
                   for. This is ignored when following logs (with
                   -f/--follow).
  --limit INTEGER  The max number of log lines returned.
  -f, --follow     Wait for new logs, to exit use CTRL+C.
  --help           Show help message and exit.

Some examples:
      Print cluster logs:

          $ lightning show cluster logs my-cluster

      Print cluster logs and wait for new logs:

          $ lightning show cluster logs my-cluster --follow

      Print cluster logs, from 48 hours ago to now:

          $ lightning show cluster logs my-cluster --from "48 hours ago"

      Print cluster logs, 10 most recent lines:

          $ lightning show cluster logs my-cluster --limit 10

Live example 1:

Live example 2:

Does your PR introduce any breaking changes? If yes, please list them.
No, it doesn't.
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x]  Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃
cc @borda @tchaton @rohitgr7

I believe that solution is good enough for current circumstances that we can go with it. Tho I'd like to see the plan for further improvements as to not lose track of it.

Since the main thing is a cluster log command format, probably we should raise this discussion to a product level. Also, I think unifying apps and cluster logs is also important.

unblock, did not review

hi, pls have look, if you have some time... :pray:


LDAP authentication issue

Hello Dev,
I have installed pGina on a Windows XP machine (LDAP client). I enabled the LDAP authentication plugin and configured the LDAP server settings. I tested the LDAP connection in pGina and it works. So here is the problem. I can login to the client machine using LDAP user. Then I did a password change for that user  from the LDAP server. But I couldn't login using that new password in the client.  The client machine keeps accepting the old password. I think it does not connect to LDAP server for checking the password. Is this a bug or an issue?
Kindly help.

hi,
I have installed ldap server on Ubuntu 16.04. Trying to access windows 10  client to server by installing p Gina software in client machine. But it is showing "Failed to connect to LDAP server". Can you please give me any solution for this problem


Bring more flexibility to query params serialization

This PR adds more flexibility to the way query params are serialized and does not introduce any breaking change.
This also open the road to more query serialization logic in the future (like what Guzzle 3 used to have). In my case i needed this as the API I integrated did not support numeric indices in the query string.

@bakura10, thanks for your contribution! I remembering having the very same issue with an Meteor API. Added the removing of the indices to a custom client. This solution is way more better :-)

You're welcome.
May I ask a tag another time? :D


We use your awesome library ;)

Hi,
I just wanted to let you know that we are using your awesome library in our little project. Keep it up!
https://play.google.com/store/apps/details?id=com.sixtytwentypeaks.recycl3r
Thanks!

Hey, and here are two other apps with a thousand users also using this great lib.
https://play.google.com/store/apps/details?id=com.setegraus.dicio
https://play.google.com/store/apps/details?id=com.cbcnos.sinonimos
Thanks arimorty!

Hi @narko and @drjunior ,
Thanks for letting me know. I really appreciate the feedback and hope others will follow suit. I downloaded the apps and they look great!
Thanks for your support,
Ari

Using this in my app too.
https://play.google.com/store/apps/details?id=ss.delta.com.trackmyshows
Really great and easy to implement. Thanks a lot @arimorty!

Thanks for the feedback @joydeepsaha05 your app looks really good!

Hi @narko

how can i add suggestions to this search ?


Titles are lost when combining with script "reload"

Hi. I am using the playlistmanager together with the script "reload". This makes it possible to reload a youtube file when it is stuck. However, then the titles in the playlist are replaced by the urls. I found a possibility to prevent this by altering line 312 (?) in the reload script from
playlist[i] = mp.get_property("playlist/" .. i .. "/filename")
to
playlist[i] = mp.get_property("playlist/" .. i .. "/title")
but then loading a different file in the playlist does not work anymore.
I don't know if you can help with that as another script is involved, but if you can I would really be happy.
Best regards

@KassanderN I had the same problem when watching youtube playlists when I used the following reload script: https://github.com/4e6/mpv-reload
After looking up how the mpv included ytdl_hook loads playlists, I edited the reload script to do the same. You can find my edited version here: https://github.com/Randshot/mpv-reload/commits/ytplaylist-fix
Use at your own discretion!

@Randshot Yeah, it works! Thank you so much!!


Add edges to existing graph.

Add edges to existing graph.
Must merge alibaba/libvineyard#222 first and make a image.

Codecov Report

Merging #179 (7b26e8a) into main (d709119) will decrease coverage by 19.42%.
The diff coverage is 84.61%.

@@             Coverage Diff             @@
##             main     #179       +/-   ##
===========================================
- Coverage   78.86%   59.43%   -19.43%
===========================================
  Files          51       52        +1
  Lines        4669     4738       +69
===========================================
- Hits         3682     2816      -866
- Misses        987     1922      +935

Impacted Files
Coverage Δ

python/graphscope/framework/graph.py
75.32% <71.42%> (-14.49%)
:arrow_down:

python/graphscope/framework/graph_builder.py
78.57% <78.57%> (ø)

python/graphscope/framework/graph_utils.py
81.15% <80.00%> (-8.25%)
:arrow_down:

python/graphscope/framework/dag_utils.py
45.31% <90.90%> (-18.22%)
:arrow_down:

python/graphscope/__init__.py
100.00% <100.00%> (ø)

python/graphscope/deploy/tests/test_demo_script.py
99.24% <100.00%> (+0.08%)
:arrow_up:

python/graphscope/analytical/udf/patch.py
3.47% <0.00%> (-96.53%)
:arrow_down:

python/graphscope/analytical/udf/wrapper.py
25.80% <0.00%> (-74.20%)
:arrow_down:

python/graphscope/analytical/udf/decorators.py
21.25% <0.00%> (-73.75%)
:arrow_down:

python/graphscope/analytical/udf/compile.py
25.41% <0.00%> (-65.09%)
:arrow_down:

... and 21 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 d709119...7b26e8a. Read the comment docs.


Altcoins

Hi there,
I see the bitcoin-lib-php is works perfect with Bitcoin.
can any you show me what and where the parameters to change in the code to be work perfect wirth Litecoin.
I mean the address prefix , private key prefix and any other required parameters.
regards,

The APIs already cater for it as far as I am aware.

where exactly in the code?
can you explain more?

'BitcoinLib::get_new_key_set($magic_byte);'

how i can apply it for litecoin?
can you do it as example?

I see this interested thing:
https://github.com/Bit-Wasp/bitcoin-lib-php/issues/19

I think BitcoinLib::get_new_key_set("48");

They're actually in hex - I was trying this for a few minutes :P
It looks like LTC follows BTC, so doing BitcoinLib::magicBytePair("30|05") will make the change stick  unless you change it back.

hi,
@afk11
where you get 05 ? and how you get if from litecoin source code?

I had to google, for some reason their github repository is not searchable. 05 is the pay to script hash version

Yes,
this is in hex?
my coin is 35 for F,05 for pay
private static $magic_byte_presets = array(
'bitcoin' => '00|05',
'bitcoin-testnet' => '6f|c4',
);

it should be
private static $magic_byte_presets = array(
'bitcoin' => '00|05',
'bitcoin-testnet' => '6f|c4',
'mycoin' => '23|05',
)

Now,
the Private key has also prefix? where i can change it?

Yeah - that would work actually, so you can use BitcoinLib::setMagicByteDefaults('mycoin');
Your private key probably (should) have a prefix of: 0x23 + 0x80 == 35 + 128 = 163 = 0xA3 if it's compatible with bitcoind.
You can check your byte matches this by doing:
BitcoinLib::base58_decode('WIF from mycoin'); <- do this: mycoin dumpprivkey mycoin getnewaddress

If it doesn't match, you can tweak this line: https://github.com/Bit-Wasp/bitcoin-lib-php/blob/master/src/BitcoinLib.php#L534
See above, 0x80 is 128 in hex?
You can tweak line 534 by doing: gmp_init('number', 10) so that the library produces the same private key prefix byte as your coin, if you want.

Exactly it is: 0xA3
so the library get it automated ..
I have my own privatekey,
i need to create the transaction ...
where to go?

Now it's the same as the examples! You get the inputs information, you create and sign a transaction,  connect to your JSON RPC and broadcast :)

mycoin  publickey prefix = 35 (0x23)
mycoin privatekey prefix = 163 (0xA3)
now?
what i can replace 'number' here:
" See above, 0x80 is 128 in hex?
You can tweak line 534 by doing: gmp_init('number', 10) so that the library produces the same private key prefix byte as your coin, if you want. "

If you wanted to make changes to your coins private key byte, you'd make those changes to the daemon, and would have to change the number on L534 for this library to still be compatible. You don't have to do that though

I tried like this example:
https://github.com/Bit-Wasp/bitcoin-lib-php/blob/master/examples/raw_transaction.php
its shows nothing
how i can debug it.

when i debug it. It shows:
PHP Catchable fatal error:  Argument 1 passed to Mdanter\Ecc\Point::__construct() must implement interface Mdanter\Ecc\MathAdapterInterface, instance of Mdanter\Ecc\Curves\NamedCurveFp given, called in /var/www/t2/bitcoin-lib-php/src/BitcoinLib.php on line 679 and defined in /var/www/t2/bitcoin-lib-php/vendor/mdanter/ecc/src/Point.php on line 63

i fixed the previous problem, but i face new one:
PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Values should be in Satoshis [0.00015]' in /var/www/x/bitcoin-lib-php/src/RawTransaction.php:1020
Stack trace:
#0 /var/www/x/bitcoin-lib-php/examples/ts.php(36): BitWasp\BitcoinLib\RawTransaction::create(Array, Array)
#1 {main}
thrown in /var/www/x/bitcoin-lib-php/src/RawTransaction.php on line 1020
my ts.php code:
 '6a6f4c832fce9e8cc489cadb6f2da4f3bcb7c7437ca1fa7abd562c5b3327954d',
						'vout' => 0
					)
			);
// Set up outputs here.
$outputs = array( 'FJqhLzywMxh5xywBLPQKH7Na1M29szuVvD' => "0.00015");

////////////////////////////
// Parameters for signing.
// Create JSON inputs parameter
// - These can come from bitcoind, or just knowledge of the txid/vout/scriptPubKey,
//   and redeemScript if needed.
$json_inputs = json_encode(
					array(
							array(	'txid' => '6a6f4c832fce9e8cc489cadb6f2da4f3bcb7c7437ca1fa7abd562c5b3327954d',
									'vout' => 0,
									// OP_DUP OP_HASH160 push14bytes       PkHash      OP_EQUALVERIFY OP_CHECKSIG
									'scriptPubKey' => '76a914'.'7e3f939e8ded8c0d93695310d6d481ae5da39616'.'88ac')
						)
					);
// Private Key
$wallet = array();
RawTransaction::private_keys_to_wallet($wallet, array('xxtCx8Ug5j1bEW7paTpmTRnxxx3HEVXSBYies9FXQr9uk211Bcxx'), '23');

// Create raw transaction
$raw_transaction = RawTransaction::create($inputs, $outputs);

// Sign the transaction
//  To broadcast you would send the $sign['hex'] on to the network
//  eg; with `bitcoind sendrawtransaction `
$sign = RawTransaction::sign($wallet, $raw_transaction, $json_inputs);
print_r($sign); echo "\n";

// Get the transaction hash from the raw transaction
$txhash = RawTransaction::hash_from_raw($sign['hex']);
print_r($txhash); echo "\n";

That is correct, it is different to bitcoind that you have to pass the amount as satoshis, not like 0.00015. There are some functions in BitcoinLib to convert between satoshis/BTC if you have bcmath installed!

So what the correct  format.
What i can suppose to passs.

i did this and still has error:
$outputs = array( 'FJqhLzywMxh5xywBLPQKH7Na1M29szuVvD' => 100000000);
the error:
php ts.php
Array
(
[hex] =><PHONE_NUMBER>4d9527335b2c56bd7afaa17c43c7b7bcf3a42d6fdbca89c48c9ece2f834c6f6a0000000000ffffffff0100e1f505000000001976a9148eb5eb48c373db22e6bd6f6e5c2c5ad3460f791f88ac00000000
[complete] => false
[sign_count] => 0
[req_sigs] => 1
)
PHP Fatal error:  Call to undefined method BitWasp\BitcoinLib\RawTransaction::hash_from_raw() in /var/www/x/bitcoin-lib-php/examples/ts.php on line 47

i found the problem it was in fixing:
'scriptPubKey' => '76a914'.'df77210148477741f54dc76c98478dd9ec252694'.'88ac',
thenit sign as true.
now the issue it created rawtransaction, but it still not work:
root@Debian# php full_transaction.php
Array
(
[FJqhLzywMxh5xywBLPQKH7Na1M29szuVvD] => 100000000
[FSCgroVeSHeSZ1SKr8gpnFauqyN8T8s6p3] => 697890000
)
Array
(
[df77210148477741f54dc76c98478dd9ec252694] => Array
(
[type] => pubkeyhash
[private_key] => xxxxb239f0f68047aaf5d59d6f63357f2d77bf1bf339f71f107a6f09807af4a9
[public_key] => 028f10e917f4f197eb3ebb5e5b9422d783d7fa6786df19bd8eafd3377c8da8a71e
[uncompressed_key] => 048f10e917f4f197eb3ebb5e5b9422d783d7fa6786df19bd8eafd3377c8da8a71eb23073e931ffcd555a0ff16a2a010b8bcc5b3fe4116baa549065fa2692079726
[is_compressed] => 1
[address] => FSCgroVeSHeSZ1SKr8gpnFauqyN8T8s6p3
)
)
Array
(
[hex] =><PHONE_NUMBER>4d9527335b2c56bd7afaa17c43c7b7bcf3a42d6fdbca89c48c9ece2f834c6f6a000000006b48304502201ab111635c204f742af64eabf833d21f2d9188d02d6a39f82d6c2b72c86982c0022100d0342e9672b5177e38f702267ac9fa1ce862ef9bd7f63348fdc0ae175c6b181c0121028f10e917f4f197eb3ebb5e5b9422d783d7fa6786df19bd8eafd3377c8da8a71effffffff0200e1f505000000001976a9148eb5eb48c373db22e6bd6f6e5c2c5ad3460f791f88acd0f49829000000001976a914df77210148477741f54dc76c98478dd9ec25269488ac00000000
[complete] => true
[sign_count] => 1
[req_sigs] => 1
)
23e18c15cac8b98a221bbf11ce9da871c40eafd031a48bb0a3a8341c172d608f

see this image when i broadcast the rawtransaction:
http://i.imgur.com/EB1P5tX.png

Can you look at your debug log and tell me what comes up when you try put through one of these transactions?
This lib is being used in a few production settings against bitcoin v0.10, so I'm skeptical about problems arising from integrating with other coins - I think you might need to find more details for us to help you

this the result when i put it in my debug:
http://i.imgur.com/EB1P5tX.png

I mean this file: C:\Users\Documents and settings\you\AppData\Roaming\yourcoind\debug.log

Sure, will do that.

2015-03-30 23:20:59 ThreadRPCServer method=sendrawtransaction
2015-03-30 23:20:59 ERROR: CheckInputs() : 077ceb8ff94255e730c576357e6ad4803a404032bab270deefcb008e53873e0d value in < value out
2015-03-30 23:20:59 ERROR: CTxMemPool::accept() : ConnectInputs failed 077ceb8ff94255e730c576357e6ad4803a404032bab270deefcb008e53873e0d

2015-03-30 23:24:59 ERROR: CScriptCheck() : e634d11f0000933f12986d3ef1e744eb4903eb2d43868dec4093bf10b095cd11 VerifySignature failed
2015-03-30 23:24:59 ERROR: CScriptCheck() : e634d11f0000933f12986d3ef1e744eb4903eb2d43868dec4093bf10b095cd11 VerifySignature failed
2015-03-30 23:24:59 ERROR: CTxMemPool::accept() : ConnectInputs failed e634d11f0000933f12986d3ef1e744eb4903eb2d43868dec4093bf10b095cd11

Your first paste: you tried to spend more than you should
Second paste: the signature was incorrect for some reason. This is probably the case if your $inputs doesn't match $json_inputs.
I'd suggest trying to set up a blockexplorer for this if you can, or perhaps use testnet for practicing since you can see confirmed tx's on https://blockexplorer.com/testnet - raw transactions aren't the easiest to jump into :)

I think the main problem is how to get valid scriptPubKey??
$inputs = array(
array(
'txid' => '075319346d8f07b0bf15917f10fdcdee8e2c099060df80d743d1956abb913d83',
'vout' => 0
)
);
// Set up outputs here.
$outputs = array('FSCgroVeSHeSZ1SKr8gpnFauqyN8T8s6p3' => BitcoinLib::toSatoshi(0.0000085));
$json_inputs = json_encode(
array(
array('txid' => '075319346d8f07b0bf15917f10fdcdee8e2c099060df80d743d1956abb913d83',
'vout' => 0,
// OP_DUP OP_HASH160 push14bytes       PkHash      OP_EQUALVERIFY OP_CHECKSIG
'scriptPubKey' =>'76a914' . '8eb5eb48c373db22e6bd6f6e5c2c5ad3460f791f' . '88ac')

it give me like that:
Array
(
[hex] =><PHONE_NUMBER>833d91bb6a95d143d780df6090092c8eeecdfd107f9115bfb0078f6d34195307000000006b4830450221009ae8f0a9833d38ccfeb381dddb430203aac3ba9e6e88dc6224bdb67ffc62e08102205ff4a1e819021369a83d973444c3f17b478517143b86ffb52ae7536cf331c8b301210372f040b09055ae37ee0bd8c1ec694b786faab5cf267f36976d8117b126140916ffffffff0152030000000000001976a914df77210148477741f54dc76c98478dd9ec25269488ac00000000
[complete] => true
[sign_count] => 1
[req_sigs] => 1
)
7415cf366fdf4c362961da2fed0992e71399d731b5d45203bb4353ba3ae3a478
but when execute it it gave me:  error: {"code":-22,"message":"TX rejected"}

and the debug.log:
2015-03-31 00:04:03 ThreadRPCServer method=sendrawtransaction
2015-03-31 00:04:03 ERROR: CScriptCheck() : 50b49a937d284033a1403118769d1e4fd05861fd0a6fcb6e6bf4c877e570e8af VerifySignature failed
2015-03-31 00:04:03 ERROR: CScriptCheck() : 50b49a937d284033a1403118769d1e4fd05861fd0a6fcb6e6bf4c877e570e8af VerifySignature failed
2015-03-31 00:04:03 ERROR: CTxMemPool::accept() : ConnectInputs failed 50b49a937d284033a1403118769d1e4fd05861fd0a6fcb6e6bf4c877e570e8af

Ok, just to help me, can you tell me what you're putting in for the scriptPubKey and where you get it? The scriptPubKey middle section is the hash that addresses are made from. The value should be substr(BitcoinLib::base58_decode($currentAddress), 2, 40);

@afk11
thanks, this method gives me the scriptPubKey,
but after that the debug gives me the same error.
see:
2015-03-31 07:16:55 ERROR: CScriptCheck() : 9af7a3395ff4b8206efdcf1e5451e7c0f581bf934c6d1ccec63d5de3b2f4a7a1 VerifySignature failed
2015-03-31 07:16:55 ERROR: CScriptCheck() : 9af7a3395ff4b8206efdcf1e5451e7c0f581bf934c6d1ccec63d5de3b2f4a7a1 VerifySignature failed
2015-03-31 07:16:55 ERROR: CTxMemPool::accept() : ConnectInputs failed 9af7a3395ff4b8206efdcf1e5451e7c0f581bf934c6d1ccec63d5de3b2f4a7a1

this the code:
$currentAddress1='FJqhLzywMxh5xywBLPQKH7Na1M29szuVvD';
$lx = substr(BitcoinLib::base58_decode($currentAddress1), 2, 40);
print_r($lx); echo "\n";

$json_inputs = json_encode(
array(
array('txid' => '075319346d8f07b0bf15917f10fdcdee8e2c099060df80d743d1956abb913d83',
'vout' => 0,
// OP_DUP OP_HASH160 push14bytes       PkHash      OP_EQUALVERIFY OP_CHECKSIG
'scriptPubKey' => '76a914' . $lx . '88ac')
)
);
$inputs = array(
array(
'txid' => '075319346d8f07b0bf15917f10fdcdee8e2c099060df80d743d1956abb913d83',
'vout' => 0
)
);


Application Case Updates to FuntofemShapeDriver, parallel tacsAIMs with caps2tacs, composite materials and early_stopping

early_stopping is implemented but not tested
parallel tacsAIMs for Nx speedup of tacsAIM.post_analysis() when there are N shape variables. Able to get ESP/CAPS runtime down from 40 mins/optimization iteration to only 12 mins/iteration on a large vehicle case.
composite materials for stringers
output files for derivatives and timing
fixes for mesh morphing and remeshing f2f shape drivers
improvements to aero_loads_file with OnewayStructDriver class - made the algorithm for reading in the aero loads more scalable aka faster. Also, improved the aero_loads_file unittest and fixed a bug where only the aero load for one index was accepted (now it works and matches the original aero loads).
Add isnan checks to optimizer through the OptimizationManager class (experienced a nan ksfailure value in TACS which led to a failed ESP/CAPS build as the optimizer was not told that the analysis failed). This happened 20 optimization steps into my internal structure optimization with fixed aero loads and the OnewayStructDriver class.

Note : this PR will probably not pass the unittests until the parallel tacsAIM / caps2tacs PR goes through.

Note the tests are failing currently since this depends on the parallel tacsAIM PR in TACS first.


Bug 2004203: BC ICT still must check spec last triggered image ID in case BC was last processed when cluster was pre 4.8

/assign @adambkaplan
/assign @alicerum

non related flakes in e2e-aws
/test e2e-aws

/retest

non OCM issues during e2e-aws-upgrade
/retest

/lgtm

comments added / method names more descriptive @adambkaplan PTAL

/retest

updates for specific changes pushed @adambkaplan  .... we just need to finalize on your "why remove" question and my explanation / answer

/assign @coreydaley
bump @alicerum
per our team convention, with @adambkaplan approving, can one of you all provide any further feedback you all might have, or lgtm (since @adambkaplan has a bunch of PRs to get through ... of course, if sees this and lgtms, great :-) but ideally let's divide and conquer

/lgtm

/cherrypick release-4.9


chore(main): release 1.1.2

:robot: I have created a release beep boop
1.1.2 (2024-08-01)
Bug Fixes

recalculation deps (b47c17a)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.1.2
:sunflower:


data url changed for Estonia

latest address data can now be fetched from here

i made changes in target service, now should work as expected

@iandees can you please check this and possibly merge? We built this service in order to provide latest address data for openaddresses, and we are also in need of the latest openaddresses data.

I appreciate the work you put into making this work, but I'm a little bit worried about pointing to an unofficial data source. It looks like the service you built is proxying or redirecting the download? How often does the data update?

Hi, yes, the download is being proxied, its not the original place of addresses, true, but it is official, I'm working with the Estonian Land Board, and this is what ive come up with. Our national addresses are being updated approximately once a month.

Is there something else I could do to make this pullrequest acceptable?

Sorry, I was still thinking about it. I'll merge it for now but would prefer to see a more direct link.

Thanks, when can we expect this to reflect in results.openaddresses ?

The system refreshes data at least once a week, so probably by this weekend.


[Identity] DeviceCodeCredential does not yet support silent authentication

Package Name: Identity
Package Version: Latest master

Describe the bug
InteractiveBrowserCredential for Node now supports silent flow by loading from the cache, if the user provides it. This is great. Unfortunately, DeviceCodeCredential isn't fully hooked into the cache. Doing so should be pretty trivial, just follow the steps that IBC uses.
To Reproduce
Steps to reproduce the behavior:

Log in via device code credential twice

Expected behavior
The second login should silently authenticate, if the user passes in the cache and AuthenticationRecord
cc @sadasant

Oh! Sure can do. I'm glad this is for November though. For a moment I got worried.

These changes can be copied from the interactive browser changes. However, since I'm unfamiliar with MSAL, I believe a fair estimate would be 2 days.

Jonathan has this already advanced in his branch, so I assigned this to @jonathandturner !

AuthenticationRecord and cache are not yet part of the public API and would need more implementation work. Bumping to a later release.

AuthenticationRecord and cache are not yet part of the public API and would need more implementation work. Bumping to a later release.


New Python 11 hour long video

What does this PR do?
Adds a new Video under the Python section
For resources
Video Link: https://www.youtube.com/watch?v=EyEqWFvLDT8
Why is this valuable (or not)?
It sure is! Taught by a very famous YouTuber
How do we know it's really free?
It's on YouTube
For book lists, is it a book? For course lists, is it a course? etc.
Course/11 Hour long video
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, with correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.
COMEPLETE

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Okay, can't wait for this PR to be merged and have my first PR under the Hacktoberfest 2022!


SQL Calls are not captured when using Microsoft.Data and InstrumentationEngine installed

When instrumentation engine is installed, DependencyCollector uses that to do byte-code injection and collect SQL Telemetry in .NET Framework apps, instead of relying on EventSource callbacks from System.Data.SqlClient, Microsoft.Data.SqlClient.
However, DependencyCollector only decorates (bytecode injects) System.Data.SqlClient to use with instrumentation engine, and not Microsoft.Data.SqlClient. : https://github.com/microsoft/ApplicationInsights-dotnet/blob/main/WEB/Src/DependencyCollector/DependencyCollector/Implementation/ProfilerRuntimeInstrumentation.cs#L71
This results in no SQL calls being collected when all of the following conditions are met:

.NET Framework application
Using Microsoft.Data.SqlClient.
Have instrumentation engine enabled.

Workaround for now is to disable instrumentation engine or switch to System.Data.SqlClient.

The issue existed from 2019 itself when Microsoft.Data.SqlClient came out first. It could be treated as a bug or a feature request to support Ms.Data.SqlClient in instrumentation engine. Treating as a low priority for now.
If you are affected, please comment below.

I would say it is a must-have feature. Without it, it can be tricky to investigate what is going on in your app. I don't see why it is a low priority.

If you are affected, please comment below
I am affected, but I don't think you will get many responses here. Most devs who care about the feature know that it doesn't work for at least four years. So, they definitely have other telemetry SDKs in place for now. They will not come back to check if it is fixed or not. Looks like I have to select the same approach.

Its treated as low priority because we have only a single reported issue, and that was reported only a month or so ago. (despite this issue being present from day1)