Rollup: d3Dispatch is not defined

Hi,
First of all: great work ! I had a successful try with the standalone version. I've try to use it with rollup (I'm a complet newbie with rollup so there is a high probability that the issue is on my side). I get a "Uncaught ReferenceError: d3Dispatch is not defined" in my console.
Here is rollup config file:
import { queue } from "d3-queue";
import { event, select, selectAll } from "d3-selection";
import { scaleLinear, scaleIdentity } from "d3-scale";
import { drag } from "d3-drag";
import { json } from "d3-request";
import { annotation, annotationCalloutCircle } from "d3-svg-annotation";

export {
    queue,
    event,
    select,
    selectAll,
    scaleLinear,
    scaleIdentity,
    drag,
    json,
    annotation,
    annotationCalloutCircle
}

Which it used with a gulp task:
gulp.task('d3-rollup', function() {
    return rollup({
        entry: 'js/custom.d3.js',
        plugins: [
            babel(),
            nodeResolve({ jsnext: true }),
            commonjs(),
            rollup_uglify()
        ]
    }).then(function(bundle) {
        return bundle.write({
            format: 'umd',
            moduleName: 'd3',
            dest: 'js/d3.min.js'
        });
    });
});

I just can't get what is wrong. Do I need to import another property ? Have you an idea ?

Hmmmm I'm definitely not a rollup expert but I'll take a quick look to see if I can find any reason that would be happening.

I just tried it locally and am able to get it to run properly. Have you tried deleting your node_modules folder and re-installing all the packages and running gulp again?
The only thing I changed to get it to work was changing return rollup({ to return rollup.rollup({ but I assume you've required the file differently so you don't need to do that.

Hi, I'm encountering the same problem with rollup and babel.

Since I'm a very newbie to JavaScript and know little about these toolchains, this is likely just my fault. But, just in case this is useful, I share my code:
repository: https://github.com/yutannihilation/sagittated-calamary/
Github Pages: https://yutannihilation.github.io/sagittated-calamary/

Hmm really weird. I can't replicate it. @yutannihilation when I clone your repo, install, and then run npm run build it worked for me and created a bundle in the docs folder.

Can you try with deleting your node_modules and reinstalling?

I checked the bundle.js and it had been modified and contained all the annotation code.

Thanks for your quick response!
Sorry, I've forgot to write that I saw the error on a browser console, not the console of Terminal.app or PowerShell.
Yes, rollup seems to succeed in my environment, too. But, when I open it in web browser, I see no annotation and the browser console says there is RefferenceError. I retried after cleaning up node_modules/, but the result was the same.

Aaaahhh that makes sense thanks for the clarification, I'll take a look.

Thanks!
I slightly suspect that this is a bug of rollup, as there were  some issues related to snake_case and CamelCase in the past.
https://github.com/rollup/rollup/issues/293

This issue should be resolved in the latest version 1.6.0 Both your rollup configs should work since you have the jsnext flags set to true.
@yutannihilation thanks for letting me use your repo to test, just an fyi when I was playing around with it, you will need to change this for the annotation to show up because your dates aren't in the same format as the example:
https://github.com/yutannihilation/sagittated-calamary/blob/master/src/main.js#L66-L66
change to x: d => x(d.date), and a few lines down for the accessorsInverse change it to date: d => x.invert(d.x),

Confirmed. Thanks so much for the fix and your kind advice!

Thanks for your support it works perfectly now !


[BUG] "findDOMNode is deprecated in StrictMode" error

Describe the bug
Browser freezes when I try to expand a node with few neighbors (9) from Amazon Neptune.
I can reproduce it in Firefox and Chrome (versions attached below).
The Console shows:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition2 which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node div Transition2@https://localhost:5173/node_modules/.vite/deps/react-transition-group.js?v=a5a5d86c:111:30 CSSTransition2@https://localhost:5173/node_modules/.vite/deps/react-transition-group.js?v=a5a5d86c:387:35 div TransitionGroup2@https://localhost:5173/node_modules/.vite/deps/react-transition-group.js?v=a5a5d86c:646:30 div div NotificationProvider@https://localhost:5173/src/components/NotificationProvider/NotificationProvider.tsx:69:37 div ThemeProvider@https://localhost:5173/src/core/ThemeProvider/ThemeProvider.tsx:35:23 DndProvider<@https://localhost:5173/node_modules/.vite/deps/react-dnd.js?v=8d77ea20:1591:18 QueryClientProvider2@https://localhost:5173/node_modules/.vite/deps/react-query.js?v=1bf679e6:2643:16 div ConnectedProvider@https://localhost:5173/src/core/ConnectedProvider/ConnectedProvider.tsx:40:7 Router@https://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=47b6e6dd:2697:7 HashRouter@https://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=47b6e6dd:3106:7
To Reproduce
Steps to reproduce the behavior:

Go to Graph Explorer
Click on Search Bar
Select one node with 9 neighbour nodes.  Click on "Add Selected". Selected node appears in the canvas.
Click on the new node in the canvas, limit returned neighbors to 1
Click on Expand
Browser freezes. Above error message shows up in the Console.

Expected behavior
I expected to see 1 neighbor node in the canvas when I click "Add Selected".
Desktop (please complete the following information):

OS: MacOS Monterey 12.6.2
Browsers: Chrome (109.0.5414.87 (Official Build) (x86_64)) and Firefox (102.6.0esr (64-bit))
Graph Explorer version: (pulled from Github today, 3.7.0)

Issue resolved in #211.


question: why cortex ps slow on windows

How come cortex ps takes ~15 seconds on Windows? What's the underlying logic leading to the latency?
its also noticeably slow on mac, but onlyu like ~3 sec delay

#856


Remove duplication in timing functions by creating a Timer module

I'm sorry, but I intentionally did not extract this because I do not want users to be able to easily monkey-patch the timer to allow tests to run infinitely. (If I were to extract this, I probably would have introduced a class dependency instead of a mixin)


Where to start?

What are the first few things we need to do?
Some ideas:
What build tool to use? Maven? Gradle?
Which UI tool to use? Swing? JavaFX?
How will it be run? From the IDE? From Command line? From an executable jar?

Vote for Maven here

My vote goes to Maven, Swing and an executable jar

My vote goes to Maven, Swing and an Executable Jar

Maven, Spring, Processing

If you have a look at the processing source code you'll see that there is not very much added to the default java.awt or swing elements, it may even cause some Preformance Issues (all the float Math functions only pass those values to the default java Math functions and cast the result to float...)
So I'd recomend to use Maven with Swing. Java FX is quite powerfull but I feel like it's a bit messed up for "game" development.
IMO it is not really the right way to discuss the graphics stuff now. First there sould be the logic for learning and some basic / analythic representations. The benefit of separating the logic and representation is that we can use the same modules for a Client Program and for a (maybe one day) server based program... - wouldn't it be cool if anyone could train their AI and let them all live on a central world -

There's already a repo for Processing here
Spring Boot is an interesting idea although am not sure whether making it a web app is the right direction

Yeah definitely gotta split up the rendering and logic! Any pattern you recommend... MVC? MVVM? MPV?

I'm used to MVC in Business apps but games ... in the end it will be a variation of it.
I thought about something like a ComponentRenderer structure.
But I'm not shure how the Mapping from Component to Renderer should look like
public interface ComponentRenderer {
     public void render(Component component);
}

public abstract class Component{
    private ComponentRenderer renderer;

    public ComponentRenderer getRenderer(){
        return renderer();
    }
}

Here we get the same issue with linking the Representation to the ProcessObject.
public abstract class Component{

}

public abstract class Element extends Component{
    private List<Component> components;
}

public abstract class ComponentRenderer{
    private Map<Class extends Component, ComponentRenderer> childRenderers;

   protected abstract void renderThis(Component c);

   public final void render(Component c){
       renderThis(c);
       if(!(c instanceof Element)){
           return; // no sub components to render
       }
       for(Component comp : ((Element) c).getComponents()){
           ComponentRenderer renderer = childRenderers.get(comp.getClass());
           if(renderer == null){
               continue; // ignore this component
           }
           renderer.render(comp);
       }
   }
}

In that way we get a completely independent RendererTree. But also brings us the Pain to create a RendererClass for every ComponentClass we want to display and to maintain not only the Component Tree but also the Renderer Tree.
The "double Tree Option" lets us also add another Tree for handling updates later.
Something that's also worth mentioning: Do we want to support scripting (LUA, js, ...)?
And now we are starting to create our own Engine :anguished:
P.S: do not try to Compile this code, just wrote it on my mobile ... maybe there are lots of typos in it as well

Some good ideas there! Think the renderer map could be pulled out into it's own RendererMap class with a
void <T> T addRenderer(Class<T> rendererClass, IRenderer<T> renderer){}
method and a
void render(Object rendered){}
method. That way it could be reused for whatever component without needing to extend from ComponentRenderer

The only thing then is whether the components are in charge of when they should be rendered or whether they add themselves to a Collection of things to render which is iterated over by the renderers at some later point.

Scripting would be nice, am not sure where it would sit within an evolution simulator though, maybe one for future ideas

Just added a PR for a potential starting point that uses maven, swing and an executable jar, comments welcome

To add scripting support depends on the final goal you want to reach with this program. Baybe in the future this schould not only simulate circles floating around in a 2d space but some real evolving 3d creatures. Scripting is then used to allow an "enduser" to modify the behaviour, add new bodyparts etc without having to recompile or knowing the project in detail. A well defined and documented Interface will do the job for most scripters.
My personal goal is to use the knowledge gained here in a Simulator for cellular evolution with the goal to simulate the transition from single cell organisms to multi cell organisms.

For a Modeling system i propose http://sparxsystems.com/products/ea/ it is not free and no very cheap but it's extreamly powerfull for the price you pay.

The only thing then is whether the components are in charge of when they should be rendered or whether they add themselves to a Collection of things to render which is iterated over by the renderers at some later point.

Do components need to be in charge of when they get rendered? I think the descision if something gets rendered should be made in the renderer based on maybe zoom and a defined near and far clip in the component.

It is not required to web app to use Spring Boot.
Spring is just dependency injection framework. Nothing about web.
Spring boot just allows you to run it easily.

Access denied to push.

I love the ideas of eventually allowing scripting and body parts and being able to choose between 2D or 3D, and making it flexible enough to simulate single/multi-celled life. It would need a pretty flexible definition of body and body part but it seems perfectly possible with the right structure in place.
I'm very hesitant to go with a paid option though, to be frank I don't want to pay for anything lol

Ah didn't know about Spring Boot being just a DI framework, very interesting. It seems like it would reduce a lot of boilerplate but might reduce flexibility too. It depends on how it would interact with any scripting we put in place later on. Let's keep it in mind.

WRT how Spring Boot might interact with any scripting data, it looks like adding a configuration class which points to a resources/scripts/ directory would work very nicely indeed.

How do you feel about if I create the same rendering classes paralell to yours but with lwjgl?

Yeah that sounds good!


compatiable with spark3.2.1 and scala 2.12.15

fix scala version match from spark-submit --version
What changes were proposed in this pull request?
compatiable with spark-3.2 and scala-2.12.15
fix scala version match from spark-submit --version
How was this patch tested?
UT

test


[#164493738] Remove currency rate and fix code to GBP

What
This adopts the new /currency_rates API introduced in https://github.com/alphagov/paas-billing/pull/70 (already merged.)
This then removes the reliance on (wrong) currency_code and currency_rate fields from /billing_events. This will allow https://github.com/alphagov/paas-billing/pull/66 to be merged, tidying up some tech debt.
See commit message for lower-level details.
How to review

See if the tests pass;
Code review;
🐝 After merging, make a PR to paas-cf to deploy the new version number. And then once that is deployed to production you can merge https://github.com/alphagov/paas-billing/pull/66. 🐝

Who can review
Not @46bit

Rebased (and removed the changes to package-lock.json which looked unrelated to this work).


Error installing fluentd due to string-scrub

fluentd or td-agent version.
0.12.22

Environment information, e.g. OS.
Docker - ubuntu:14.04

Your configuration
NA

Your problem explanation. If you have an error logs, write it together.

# gem install fluentd -v 0.12.22
ERROR:  Error installing fluentd:
	string-scrub requires Ruby version <= 2.0.0, >= 1.9.3.

# gem -v
2.0.14
# ruby -v
ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]

It looks like a recent problem. We created fluentd docker images yesterday without any issue.

It looks like a recent problem

What does 'recent' mean?
Yesterday is ok but today had a problem?

I found the problem by this PR https://github.com/fluent/fluentd/pull/933
Could you try to install string-scrub v0.0.5 before fluentd installation?

Pre-installing string-scrub v0.0.5 works.
root@13b7aaa3c12f:/# gem install string-scrub -v 0.0.5
Fetching: string-scrub-0.0.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed string-scrub-0.0.5
Parsing documentation for string-scrub-0.0.5
unable to convert "\xD8" from ASCII-8BIT to UTF-8 for lib/string/scrub.so, skipping
Installing ri documentation for string-scrub-0.0.5
1 gem installed
root@13b7aaa3c12f:/# gem install fluentd -v 0.12.22
Fetching: fluentd-0.12.22.gem (100%)
Successfully installed fluentd-0.12.22
Parsing documentation for fluentd-0.12.22
Installing ri documentation for fluentd-0.12.22
1 gem installed

Release fluentd v0.12.23.
You don't need to pre string-scrub installation.

Awesome! Thank you so much 💯


tests/utils.go: Move or inline CopyAlpineWithNonQEMUPermissions to the place where it is used

Is your feature request related to a problem? Please describe:
The function CopyAlpineWithNonQEMUPermissions in tests/utils.go is only used in a single place, so it could be easily moved there.
Describe the solution you'd like:
Move or inline CopyAlpineWithNonQEMUPermissions to the place where it is used. (tests/storage/storage.go)

/sig code-quality
/label good-first-issue

/label good-first-issue

/assign

/unassign

/assign

This issue is fixed by @dankenigsberg in the pr: https://github.com/kubevirt/kubevirt/pull/11756.
/close

Sorry, I did not notice this issue.


[e2e]: go tag main config-ldflags-assets-tag slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v20.0.540
Run: https://github.com/slsa-framework/example-package/actions/runs/7705285502
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Trigger: push
Branch: v20.0.540
Date: Tue Jan 30 02:12:43 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/v20.0.541
Run: https://github.com/slsa-framework/example-package/actions/runs/7720206713
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Trigger: push
Branch: v20.0.541
Date: Wed Jan 31 02:12:58 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/v20.0.541
Run: https://github.com/slsa-framework/example-package/actions/runs/7720206713
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Trigger: push
Branch: v20.0.541
Date: Thu Feb  1 04:41:22 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/v20.0.542
Run: https://github.com/slsa-framework/example-package/actions/runs/7750419065
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.tag.main.config-ldflags-assets-tag.slsa3.yml
Trigger: push
Branch: v20.0.542
Date: Fri Feb  2 02:15:26 UTC 2024
Tests are passing now. Closing this issue.


feat(currency): Add new currencies for fiatconnect

Description
Add several new currencies to fully support the current fiatconnect spec listed here
Currencies added:

Chinese Yuan
Guinean Franc
Indian Rupee
Rwandan Franc
West African CFA Franc
Central African CFA Franc
South African Rand

Other changes

Better tests for SelectLocalCurrencies.
Render all currencies initially on page

Tested
ran locally and unit tests.
How others should test
Go to Settings, select currency.
Verify that the following show up: CNY, GNF, INR, RWF, XOF, XAF

Hey @MuckT we have verified the above issue on Latest iOS Test Flight build V:.1.33.0 and updated the status in test rails
Observation : Currency symbol does not change on recent transaction activity after selecting different currency and we have raised bug for it
Bug link: Link
Test Rail links:
iOS 14: https://valoraapp.testrail.io/index.php?/tests/view/37171
Devices : iPhone 12(14.7.1)
CC: @jh2oman
Thanks.!!

Hey @MuckT, We have verified above task on Latest Test Flight Release build V1.33.0 and updated status in test rails.
Observations:

Currency did not change until user kills the app and reopen the app to view changes in recent transaction activity on homepage.
Bug: link

Test rail links:
iOS 15: https://valoraapp.testrail.io/index.php?/tests/view/37202
Devices: iPhone 13 mini(15.1.1)
CC: @jh2oman
Thanks..!!


Update README.md [AttributeError: module 'gbif_dl' has no attribute 'io']

Fixing usage example:
Traceback (most recent call last):
  File "test.py", line 6, in <module>
    stats = gbif_dl.io.download(data_generator, root="my_dataset", retries=1000000)
AttributeError: module 'gbif_dl' has no attribute 'io'

Glad to help!


vendor: update glide and vendors

Update vendors to the most recent versions as of 2016-07-19.
Also fix a build error in fleetctl due to an API change in spf13/cobra.

Also updated scripts/glide-update.sh to ensure that it's running inside $GOPATH.


gray background color in progress chart

Hello, If I need to change the background color for progress chart i.g. gray. How to change this?
Thank you

Okay, I found it on module > progress-chart.js > line 122 > change 'stroke' to gray hex color.
thanks.


Fix expression tree tests build

Add missing definition of BLAS_INDEX_T for exprtests

It looks like I might have also failed to add BLAS_INDEX_T to

benchmark/syclblas/CMakeLists.txt
benchmark/clBench/clblast/CMakeLists.txt
benchmark/clBench/clblas/CMakeLists.txt
benchmark/clBench/acl/CMakeLists.txt
Can you also add to those files?

It looks like I also failed to add BLAS_INDEX_T to

benchmark/syclblas/CMakeLists.txt
benchmark/clBench/clblast/CMakeLists.txt
benchmark/clBench/clblas/CMakeLists.txt
benchmark/clBench/acl/CMakeLists.txt

Can you also add to those files?

Good catch, the syclblas benchmarks already had the define so it built fine.


Sveltekit tutorial spams downloads on Firefox

On: https://learn.svelte.dev/tutorial/headers
When you're typing out the code in the instructions, once you get to 'text/plain' the browser will start spamming downloads of the contents in the iFrame (i.e. if you have "this is a bug" it will download a file with that text in it).
I couldn't replicate this in Chrome
Replication:
copy and paste this into src/routes/+page.server.js
export function load({setHeaders}) {
// set headers
setHeaders({
'Content-Type': 'text'
})
}
In my browser, the page begins reloading constantly at this point.
If you add a '/' at the end of 'text' it will start downloading constantly.
I've noticed that if I paste the entire solution, or preempt the setHeaders({...}) part with a return after it, the issue doesn't happen.

Happened to me too, kinda freaked me out tbh. This behavior also removes focus from the window itself i.e. you cannot type in the editor, so I had to close the browser and came straight to this issues section to check if anyone else also faced this issue.


Discussion: remove output_format from action input

The action takes an output_format as input, which may be sarif or json.
The action also takes an output_file. I'm wondering if we should simplify and remove the output_format?
We could use the extension of the output_file (results.sarif or results.json) to infer the format the use wants.
I think keeping the output_format is OK, but wanted to touch base and have everyone's opinion.
wdut?
cc @oliverchang @azeemshaikh38 @naveensrinivasan

Remind me again what output_format: json is needed for? Also, do we need output_format and output_file at all? Can this not be hidden under the hood?

re: output format -> users may want to get the output as SARIF or JSON depending on their needs/use cases.
re: output_file: -> users can use the result any way they want. We just happen to ask them to submit the SARIF output to GitHub in their workflow, but they are free to do other things and explore other use cases.

I see. In that case, I vote to not rely on the output file's name to infer the format.

I see. In that case, I vote to not rely on the output file's name to infer the format.

+1 to being more explicit.

Thanks all for the confirmation. Closing!


[Provider]: Deepbricks, SiliconFlow

support deepbricks, siliconflow
They provide a more convenient and comprehensive LLMS service

Hey. Thanks for the PR! We already had a PR for deepseek which was raised earlier. Can you please update your branch with main.

Thank you, I have merged main


county level data for Germany

See #79
Currently I have overwritten the old one but I should probably create a new scraper. Maybe @lazd can tell me how to do that the best way.
Edit:
Additionally I don't know whether the counties/states should be translated into English.

Timeseries data in:
https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0
But I don't know how to back integrate them in the scraper

Hey @Wikunia! Thanks for the work, in which we overlap a little bit and should coordinate ourselves :) I have left a comment here: https://github.com/lazd/coronadatascraper/issues/79#issuecomment-601744982

@jgehrcke and @Wikunia let me know which PR to merge!

@lazd you can merge the one by @jgehrcke

@Wikunia thank you!


Projects should have filter dropdown

Description
Projects page should have a dropdown which is for filtering the projects according to technology.
This will add more value to user experience and people will directly filter projects according to there interest and will move ahead for contributions.
Screenshots
No response

Awesome @MadhuSaini22!!

I guess there should be a technology stack in each object in the projects.json file so to add this feature, everyone's projects will have an array of tech stack. Let's get that first

An example can be:
{
      "name": "Francesco Ciulla",
      "title": "FREE Web3 Resources",
      "screenshot": "https://user-images.githubusercontent.com/18360871/199210192-f5599a23-f0b1-49ff-9c52-2554a72a2c14.png",
      "description": "A list of resources to learn Web3 for FREE",
      "link": "https://github.com/FrancescoXX/free-Web3-resources",
      "twitter": "https://twitter.com/FrancescoCiull4",
      "techStack": ["Next", "Tailwind", "JS"],
      "live_link": "https://www.freeweb3resources.com"
    }

techStack being the new line added
@MadhuSaini22 @tobySolutions

I can do this if everyone who's projects are listed can give their tech stack

Hey @AryanBabber! It might be a bit difficult to get the people that submitted their projects, but we can just click on the link to go their repos and look at the GitHub analysis of the tech stacks used and the repo for further information.
Fir example, GitHub doesn't know Gatsbyjs, it only knows JavaScript.
What do you think?

Right now I can only think of one way...
Many, or all of the projects listed are made with React or Next and we can give them the tags needed and then there can be for css like material ui or tailwind or plain css.
What do you say? @tobySolutions

That's a great idea @AryanBabber!!

Shall I take this on?

Sure!!

How's this going @AryanBabber?

How's this going @AryanBabber?

It will be done by today @tobySolutions

How's this going @AryanBabber?

It will be done by today @tobySolutions

Awesome @AryanBabber!!

You're doing great @AryanBabber!!

Fixed by #521


Doesn't refresh relationship when updating the foreign_key of a model.

Laravel Version: 5.7.6
PHP Version: 7.2.9
Database Driver & Version: MySQL 5.7

Description:
If you change the foreign key on a model that has the relationship already loaded, the model won't refresh the relationship and will therefore return the different relation when called later on.
I'm not entirely sure this is actually an issue, but I stumbled upon this while doing some integration tests. Once the
Steps To Reproduce:
User model:
public function phone()     {         return $this->belongsTo(phone::class, 'phone_id');     }
testBasicTest:
`
    $phoneId = factory(\App\Phone::class)->create()->id;
    $user = factory(\App\User::class)->create([
        'phone_id' => $phoneId
    ]);

    $user->phone->id; //remove this

    $newPhone = factory(\App\Phone::class)->create();
    $user->phone_id = $newPhone->id;
    $user->save();

    $this->assertEquals($newPhone->id, $user->phone()->first()->id); //works
    $this->assertEquals($newPhone->id, $user->phone->id); //doesn't work`

If you remove the $user->phone->id; line this test will pass, otherwise it wont.

I believe this is simply intentional: Not everyone want or can reload relations implicitly due to this and there may be unexpected edge cases (e.g. you set a relation you haven't yet persisted, then change the FK).
The relation and FK property are separate things. The latter is implicitly (or through configuration) used by the former. But otherwise, the relation is independent.
You can use something like ->refresh() on the model:

Reload the current model instance with fresh attributes from the database.

Or manually call ->load(…).
TL;DR: IMHO by design as there are multiple solutions and the decision is to don't make a decision and leave it to the dev.

Thanks @mfn.

I think you're right! While going through the source code I wasn't able to produce any fix for this, without know the relations of the model beforehand.
I'm gonna go with associate instead, thanks! :)


Team Baddies Group Review Ticket

Alexa Carlson's Review Ticket
Lydia Cho's Review Ticket
Ava Carlson's Review Ticket

You guys put in some extra layers.  It would be better if this page did not exist.


Resource.definition : camelCase instead of kebab-case when imported in other files

When resource is in 2 words, the resource.definition file is in kebab-case but this same file is imported in resource.create-edit, yields, controller and list in camelCase
The resource.definition Slug shouldn't be in kebab case but in camelCase

@ismaelguerrib I do not understand the problem. Can you be more precise about the problem you want to solve ?
Regarding your last sentence, the resource definition slug is used to generate endpoints url. Example: for "Use cases" it will make requests like GET /use-cases/:id, that why we use kebbab case rather that camel case


Defining Travis CI Script

Travis CI is a continuous integration system. Adding this will help us ensure we don't break the build.

Merged all the changes and moved to a new pull request.


Upgrade to Zipkin 2.0.0

Zipkin 2.0.0 has been released so it is time to upgrade this library too.
Ping @alexeyshockov

I think it should upgrade to Zipkin now.


Add & Remove Listing

Remove all hardcoded items from the tasks array.
Create a new JavaScript file for the new functionality.
Implement a function for adding a new task (add a new element to the array).
Implement a function for deleting a task (remove an element from the array).
Implement a function for editing task descriptions.
By default new tasks should have the property completed set to false and the property index set to the value of the new array length (i.e. if you're adding a 5th task to the list, the index of that task should equal 5).
Deleting a task should update all remaining items' indexes, so they represent the current list order and are unique(i.e. if you're deleting the first task index 1 from the list, the index of the next ask(2) should be set to 1)..
All changes to the To Do List should be saved in local storage.

If any reviewer helps me to fix the styles. I will be very thankful to him/her.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ikakostan sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


3.0.8 not in repo

pyproject.toml still claims the version is 3.0.7 despite the version being 3.0.8.
edit:
Upon further inspection it looks like the code in the repository may not be version 3.0.8 despite being tagged as such? Its missing the method get_surface and in general does not line up to the tar archive attached to the github release.

Thanks, I forgot to push the changes this time.
But now everything is up to date.

Thanks!


Add some unit tests for the resource handler

This patch adds some unit tests for the resource handler.

@danielerez I wanted to do some changes in the resource handler. In order to do it with a bit more confidence I thought that it would be good to add some unit tests. That is what this patch does. Please take a look.

/approve

/lgtm


⚠ Samsung has degraded performance

In 76498f3, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2900 ms

Resolved: Samsung performance has improved in 6df3ebd.


Add option to allow gestures while animating

This adds an option which defaults to false to allow gestures while animating in. This is helpful for use cases where the animation may be very fast and users will jump the gun on taps such as a tiny radius and/or buttons that end up not moving while they animate due to tight view placement.

Thank you for contributing to the CKCircleMenuView. Nice addition, especially the fact, that you have introduced it as a new option.
I have checked the new option. It applies for the case that the CKCircleMenuView is not opened via long press gesture, do I see this right? The long press gesture mode can already be interrupted by releasing the finger on a menu button, while the menu is still animating.


Fix Master Branch

This commit will hopefully fix the master branch from the previous pull reuqest

Added functional testing
Some refactoring
Some bugfixing


failed to trace epoll_wait(2)

What reproduces the bug?
Target: trace epoll_wait(2) syscall, just want to see the same output as strace -p [pid] -etrace=epoll_wait:
$ s strace -fTp 32652 -etrace=epoll_wait
strace: Process 32652 attached with 14 threads
[pid 32661] epoll_wait(6,  <unfinished ...>
[pid 32659] epoll_wait(4,  <unfinished ...>
[pid 32661] <... epoll_wait resumed>[{EPOLLOUT, {u32=14, u64=14}}], 128, -1) = 1 <1.705504>
[pid 32661] epoll_wait(6, [{EPOLLIN|EPOLLOUT, {u32=14, u64=14}}], 128, -1) = 1 <0.000020>
[pid 32661] epoll_wait(6,

Steps
1. include <sys/epoll.h>
#include <sys/epoll.h>

BEGIN
{
    exit();
}

then bpftrace trace_epoll.bpf told me definitions.h:1:10: fatal error: 'sys/epoll.h' file not found
I tried the absolute path #iinclude </usr/include/x86_64-linux-gnu/sys/epoll.h>, no luck: /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
2. define the types
struct epoll_event {
    uint32_t     events;    /* Epoll events */
    union epoll_data
    {
        void *ptr;
        int fd;
        uint32_t u32;
        uint64_t u64;
    } data;

};

tracepoint:syscalls:sys_enter_epoll_wait /pid == $1/
{
    @events = args->events;
}

tracepoint:syscalls:sys_exit_epoll_wait /pid == $1/
{
    printf("epoll_wait exited: %d, %d\n", args->ret, ((struct epoll_event *)@events)->data.fd);
}

however the result were totally nonsense:
$ s bpftrace trace_epoll.bpf 32652
Attaching 2 probes...
epoll_wait exited: 1, 0
epoll_wait exited: 1, 0
epoll_wait exited: 1, 0
epoll_wait exited: 1, 0
epoll_wait exited: 1, 0
epoll_wait exited: 1, 0

the events->data.fd is the key data I wanna access.
3. use the offsets
so I gave up on the type and turned to the offset.
to avoid my poor knowledge misleading the judgement, I inspected the offset by programming:
#include <sys/epoll.h>
#include <stdio.h>
#include <stddef.h>

int
main(int argc, char *argv[]) {
    printf("%ld\n", offsetof(struct epoll_event, data));
    printf("%ld\n", offsetof(union epoll_data, fd));
}

and I got
$ gcc ep.c && ./a.out
4
0

then
{
    @events = args->events;
}

tracepoint:syscalls:sys_exit_epoll_wait /pid == $1/
{
    printf("epoll_wait exited: %d, %d\n", args->ret, *(void*)((*(void*)@events)+4));
}

but still errors:
$ s bpftrace trace_epoll.bpf 32652
trace_epoll.bpf:8:54-72: ERROR: Unknown struct/union: 'void'
    printf("epoll_wait exited: %d, %d\n", args->ret, *(void*)((*(void*)@events)+4));
                                                     ~~~~~~~~~~~~~~~~~~
trace_epoll.bpf:8:54-62: ERROR: Unknown struct/union: 'void'
    printf("epoll_wait exited: %d, %d\n", args->ret, *(void*)((*(void*)@events)+4));

Could someone do me a favor to demonstrate how to trace epoll_wait(2) syscall? - -
bpftrace --info
System
  OS: Linux 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021
  Arch: x86_64

Build
  version: v0.11.4
  LLVM: 8
  foreach_sym: yes
  unsafe uprobe: no
  bfd: yes
  bpf_attach_kfunc: yes
  bcc_usdt_addsem: yes
  bcc bpf_attach_uprobe refcount: yes
  libbpf: no
  libbpf btf dump: no
  libbpf btf dump type decl: no

Kernel helpers
  probe_read: yes
  probe_read_str: yes
  probe_read_user: yes
  probe_read_user_str: yes
  probe_read_kernel: yes
  probe_read_kernel_str: yes
  get_current_cgroup_id: yes
  send_signal: yes
  override_return: yes

Kernel features
  Instruction limit: 1000000
  Loop support: yes
  btf: no

Map types
  hash: yes
  percpu hash: yes
  array: yes
  percpu array: yes
  stack_trace: yes
  perf_event_array: yes

Probe types
  kprobe: yes
  tracepoint: yes
  perf_event: yes
  kfunc: no

Can you try again with a 0.12.0 build (we had some struct improvements) on LLVM12 (see pinned issue) if possible? In my ubuntu test vm:
$ sudo bpftrace -e 'i:s:3 { print(1) }'

sudo bpftrace test.bt  $(pgrep bpftrace)
Attaching 2 probes...
epoll_wait exited: 0, 0
after 3 seconds
epoll_wait exited: 0, 0
epoll_wait exited: 1, 22063
epoll_wait exited: 0, 22063
epoll_wait exited: 0, 22063
epoll_wait exited: 0, 22063
epoll_wait exited: -4, 22063
epoll_wait exited: 0, 0

Haven't checked whether the value is ok but I think it is.
tracepoint:syscalls:sys_exit_epoll_wait /pid == $1/
{
    printf("epoll_wait exited: %d, %d\n", args->ret, *(void*)((*(void*)@events)+4));
}

Can you try uint8 * instead of void?  *( ( (uint8*)@events)+4 ) should do the trick

@fbs Thank you very much!!!
After having upgraded to v0.12.0, the approach 2 (define the struct) was still out of control, but, the approach 3 (use offsets) functioned very well after I adopted your advise, and bpftrace gave me the results:
$ s bpftrace trace_epoll.bpf  273031
Attaching 2 probes...
epoll_wait exited: 1, 0
epoll_wait exited: 1, 15
epoll_wait exited: 1, 15
epoll_wait exited: 1, 15
epoll_wait exited: 1, 15
^C

Yes! That's the correct fd!


Upgrade bundlewatch to 0.3.3

This is needed to update axios and avoid vulnerabilities in axios < 0.21.3. See:
https://security.snyk.io/package/npm/axios

This looks fine, but we should move this to devDependencies.

@davisagli done.


Crashes when looking at Storage tab if SD removed

Best way to test this is to inject it to Health and Safety. Open it from H&S, and remove the SD card. It will work normally. Select the Storage Information tab and it will either freeze the whole system or have an exception.
Tested using a n2dsxl on 11.6
(This is in GUI by the way)

Of course it freezes, its running off the SD and you removed it. Its gonna stop working, do that with a installed game and tell me the results.

You're missing the point. If you inject 3dsident to h&s, then launch h&s with the SD removed, it works fine. If you choose the storage tab it crashes the whole system.


fix doc error

Describe what this PR does / why we need it
Does this pull request fix one issue?
fix #2642
Describe how you did it
fix doc picture error
Describe how to verify it
Special notes for reviews

Please create a same PR to branch of 2021.x.


If throtling policy values are entered under "specify" policy and then if "unlimited" throttling policy is selected and saved, Maximum Backend Throughput setting changes to "specify"

Description:
The "unlimited" throttling policy gets changed to "specify" policy if values are given to the specified policy found under "Maximum Backend Throughput ". refer below steps.
Steps

In API publisher wizard navigate to "manage" section
Under throttling settings navigagate to "Maximum Backend Throughput"
Select the "specify" radio button and provide some values for production and sandbox
Click Save
Navigate back to view all apis in publisher portal and click on edit for the above saved api
In manage section notice that the "Maximum Backend Throughput " has changed from "unlimited" to "specify"

Suggested Labels:
Type/Bug, 2.x,x update 5, Priority/High, Severity/Critical
OS, DB, other environment details and versions:
APIM and analytics quick setup
Ubuntu 14
JDK - jdk 1.8.0_51
DB - mysql
Browser - Chrome Version 62.0.3202.62

Fixed with https://github.com/wso2/carbon-apimgt/pull/5049


Create class_level_spells_known Table

class_id
level
school_code
spell_level
qty_known (this level only)
To get total spells known you will need to group by school_code, spell_level and get a sum on qty_known

Thinking if this can include everything we need for spells known and spells per day:
PK
class_id
class_level
school_code
spell_level
spells_known
spells_per_day

taken care of in https://github.com/jderam/hyperborea-tools/pull/65


Feature/mobile view for variables table

What

CSS styling for variables table in mobile view

How to review

Sense check
Trello ticket with design
Use image for reference

You can pull the branch and run locally by following the cantabular import instructions or call me and I can show you locally.

Who can review
Frontend dev

please please please bump dp-renderer lib to a more recent version

actually, it's as uptodate as I need it 😅


A question in "third_party/WideResNet_pytorch/wideresnet.py      out = self.relu2(self.bn2(self.conv1(out)))

The 42nd row in the code :  out = self.relu2(self.bn2(self.conv1(out))), is it supposed to be out = self.relu2(self.bn2(self.conv1(x)))?

I have not trained any models with your proposed change to this third party code, but that might be better and should probably work.

Thank you!I know it


issue753:changed angular2/http dep version of icon compnent to ^2.0.0-rc.3

address #753

This will be captured in #727 (which will be bumped to rc3) once the new version of the router with its circular dependency removed is released to npm.


Implement Azure API Endpoint

[ ] Cross-check with #7
[ ] Store data to SQL Azure
[ ] Send push notification
[ ] Publish endpoint in Azure

Scenario change, not needed


New lint - detecting field removals from a struct variant in enum

Resolves #153.

Will re-run tests after https://github.com/obi1kenobi/trustfall-rustdoc-adapter/pull/3 is merged and published.


Support for custom CA bundles

With the Raven client it is possible to specify a custom CA bundle by appending the ca_cert parameter to the DSN. This is important for use of the client with on-premise installations of Sentry that use certificates signed by a custom CA. Sadly, looking at sentry_sdk.transport._make_pool, it seems this value is now hard-coded to certifi.where(). In result, users that previously used the ca_cert parameter are forced to stay on the Raven client. Thus, it would be great if you could (re-)add this feature.

Same story, this is essentially for us.
Logger shows this:
urllib3.connectionpool DEBUG    Starting new HTTPS connection (1): sentry:443
urllib3.util.retry DEBUG    Incremented Retry for (url='/api/4/store/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
urllib3.connectionpool WARNING  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /api/4/store/

Same for me. The workaround we used with raven was appending the (hard to find!)
?ca_certs=/etc/ssl/certs/ca-cert-mycert.pem option to the DSN, it doesn't work now and we cannot use the new sentry sdk.

Thanks, I will discuss it with the team. Ideally we would want to align the exact semantics and naming with other SDKs

@bpereto @marcosox @theMarix is there a reason why you can't install that certificate as a globally trusted one on your machine?

In our case we do have that certificate installed globally on the machines. It will work if you simply rely on the systems libopenssl. However, the code of the SDK explicitly uses the certificate bundle from the certifi package and we would like to avoid having to distribute modified Python packages to our machines.

Ok thanks, figured out why we do this too. Will try to come up with something.

Could somebody test if using #168 is self-explanatory enough?

This looks good to me. I fear people won't find it unless explicitly looking for it in the code, though.

@theMarix I will document it here: https://docs.sentry.io/error-reporting/configuration/?platform=javascript

0.5.5 has been released with this feature. Docs here: https://docs.sentry.io/error-reporting/configuration/?platform=python#ca-certs


I tried running under python3, but there was a problem

I modified the code, in python3 can analyze the data directory wav file, but replaced by their own recorded wav file out of some problems.
aS.trainHMM_fromFile('data1/tts.wav', 'data1/tts.segments', 'tts', 0.05, 0.05) # train using a single file
flagsInd, classNamesGT, acc, CM = aS.hmmSegmentation('./data1/tts.wav', 'tts', True, './data1/tts.segments')
the tts.sements file:
0.0000, 0.1978,亲
0.1978, 0.3956,爱
0.3956, 0.5933,的
0.5933, 1.2171,
1.2171, 1.4149, 你
1.4149, 1.6126, 好
1.6126, 1.8104, 吗
1.8104, 2.0081, 你
2.0081, 2.2059, 来
2.2059, 2.4037, 自
2.4037, 2.6015, 哪
2.6015, 2.7992, 里
2.7992, 2.9970, ？
2.9970, 3.1600, ？
Traceback (most recent call last):
File "D:\demo.py", line 53, in
flagsInd, classNamesGT, acc, CM = aS.hmmSegmentation('./data1/tts.wav', 'tts', True, './data1/tts.segments')             # test 1
File "D:\pyAudioAnalysis-master\audioSegmentation.py", line 447, in hmmSegmentation
flagsInd = hmm.predict(Features.T)                            # apply model
File "C:\Anaconda3\lib\site-packages\hmmlearn\base.py", line 334, in predict
_, state_sequence = self.decode(X, lengths)
File "C:\Anaconda3\lib\site-packages\hmmlearn\base.py", line 294, in decode
self._check()
File "C:\Anaconda3\lib\site-packages\hmmlearn\hmm.py", line 175, in _check
self.n_components)
File "C:\Anaconda3\lib\site-packages\sklearn\mixture\gmm.py", line 761, in _validate_covars
raise ValueError("'diag' covars must be non-negative")
ValueError: 'diag' covars must be non-negative
Hope to provide python3 version, thank you

Python3 is not yet supported.

Have you solve that? the same problem. @onsunsl

@shubham99bisht won't be enough. It's more complex than that

I will be pushing a python3 compatible version soon


Why is the "--css" property missing in the PdfOut class?

Alternatively, can a "Css" property be set in the OutOptions class? Because "--css" feels like a general parameter for Pandoc.

happy to accept a Pull Request


New database alerts

Documentation for new database alerts: freeable memory, database IOPS burst balance.
Related Jira ticket: DVAS-1102

@MarkvanMents @tomedegroot could you please review?

Hi @matyaskuti do you have an estimated release date for this - it's useful to add it to the description so I have all the information in one place.
Doesn't matter if it is only an estimate.

@MarkvanMents regarding the release date, it is entirely at our own discretion at the moment. Thus if the documentation is approved, we can release this and the new alerts at the exact same time.

Hi @matyaskuti
The language looks OK.
Can you add a release note for the customer too. You can leave a placeholder for the date.
Let me know when you release it, and I can publish.

@MarkvanMents release notes updated with tomorrow's date, for now.


BUG: create Account not visible

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@anuragverma108  issue  number not be supported i will try 2 time .. can you see


Blazor wasm with .NET 5 RC 2: PKCEUtil throws PlatformNotSupportedException

Hi everyone,
i've updated my Blazor wasm (Client-Side) Project from netstandard2.1 to the latest .NET 5 RC 2 Release. After the update the PKCEUtil for the PKCE authorization workflow throws a PlatformNotSupportedException:
var (verifier, challenge) = PKCEUtil.GenerateCodes();
throws
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]       Unhandled exception rendering component: System.Security.Cryptography.Csp is not supported on this platform. System.PlatformNotSupportedException: System.Security.Cryptography.Csp is not supported on this platform.    at System.Security.Cryptography.RNGCryptoServiceProvider..ctor()    at SpotifyAPI.Web.PKCEUtil.GenerateRandomURLSafeString(Int32 length)    at SpotifyAPI.Web.PKCEUtil.GenerateCodes(Int32 length)    at Audify.Client.Pages.SpotifyCallback.RequestFirstAuth() in  C:\SpotifyCallback.razor:line 27    at Audify.Client.Pages.SpotifyCallback.OnInitializedAsync() in  C:\SpotifyCallback.razor:line 22    at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
There is no exception if i pass a random string (my current workaround):
var (verifier, challenge) = PKCEUtil.GenerateCodes("YourSecureRandomString");
After some research i found out that there is a breaking change in the System.Security.Cryptography API with .NET 5 and Blazor: https://docs.microsoft.com/de-de/dotnet/core/compatibility/cryptography#systemsecuritycryptography-apis-not-supported-on-blazor-webassembly
Maybe this is the reason for the exception?
SpotifyAPI.Web Version: 6.0.0-beta.12

Hi @Benuhx
Seems like we currently can't offer an alternative implementation:

There are no good workarounds to suggest at this time.

If it's completely client-side and you need refreshable tokens, I see no alternative. If you can live with short-lived tokens, you could consider switching to Implicit Grant Auth.


some changes to support fine-tuning on Intel GPU

CI failed when merged. could you check? @harborn

CI failed when merged. could you check? @harborn

[10:04 AM] Zhang, Jiafu
应该是login 失效了，我重新login一下
[10:04 AM] Zhang, Jiafu
对，但是以前build失败都会抱出来
[10:07 AM] Zhang, Jiafu
现在应该好了，我在2.18重新login了一次
[10:08 AM] Zhang, Jiafu
你可以叫tianchen写一个relogin的脚步，这个docker login 没有参数让login永远不失效
[10:08 AM] Zhang, Jiafu
docker login https://amr-cache-registry.caas.intel.com/

CI failed when merged. could you check? @harborn

[10:04 AM] Zhang, Jiafu 应该是login 失效了，我重新login一下 [10:04 AM] Zhang, Jiafu 对，但是以前build失败都会抱出来 [10:07 AM] Zhang, Jiafu 现在应该好了，我在2.18重新login了一次 [10:08 AM] Zhang, Jiafu 你可以叫tianchen写一个relogin的脚步，这个docker login 没有参数让login永远不失效 [10:08 AM] Zhang, Jiafu docker login https://amr-cache-registry.caas.intel.com/

the login was fixed. but it failed anyway. I would revert before it's fixed.


SyntaxError: unexpected EOF while parsing

Hi Team -
When I try to execute following command on my dataset -
op.profiler.run(checkins_df, "poiid", infer=True)
I am seeing this error -
Py4JJavaError: An error occurred while calling o804.collectToPython.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 43.0 failed 1 times, most recent failure: Lost task 1.0 in stage 43.0 (TID 173, localhost, executor driver): org.apache.spark.api.python.PythonException: Traceback (most recent call last):
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 377, in main
process()
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 372, in process
serializer.dump_stream(func(split_index, iterator), outfile)
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/serializers.py", line 286, in dump_stream
for series in iterator:
File "", line 1, in
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 101, in
return lambda *a: (verify_result_length(*a), arrow_return_type)
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/worker.py", line 92, in verify_result_length
result = f(*a)
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pyspark/python/lib/pyspark.zip/pyspark/util.py", line 99, in wrapper
return f(*args, **kwargs)
File "../../../Softwares/optimuspyspark-2.2.51/optimus/functions.py", line 463, in pandas_udf_func
return v.apply(func)
File "/home/ishan/anaconda3/lib/python3.6/site-packages/pandas/core/series.py", line 3591, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2217, in pandas._libs.lib.map_infer
File "../../../Softwares/optimuspyspark-2.2.51/optimus/functions.py", line 448, in func
elif str_to_array(value):
File "../../../Softwares/optimuspyspark-2.2.51/optimus/functions.py", line 424, in str_to_array
if isinstance(literal_eval((value.encode('ascii', 'ignore')).decode("utf-8")), (list, tuple)):
File "/home/ishan/anaconda3/lib/python3.6/ast.py", line 48, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/home/ishan/anaconda3/lib/python3.6/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "", line 1
4d54555058856dcbb0233c6d
^
SyntaxError: unexpected EOF while parsing
Could you please help!
Thanks in advance.
Best-
Ishan
P.S: Same issue I am facing with the latest version of library also.

Hi @IshanDindorkar,
Checking

@IshanDindorkar could you please install 2.2.7?. Weirdly, it's raising an exception because we caught it here https://github.com/ironmussa/Optimus/blob/master/optimus/functions.py#L426
Seems related to this https://stackoverflow.com/questions/14634925/ast-literal-eval-syntaxerror-unexpected-eof-while-parsing


DistSeedRepeatError when running many sims

When running 4,000 simulations (TBsim), I occasionally trigger a DistSeedRepeatError:
DistSeedRepeatError ss.bernoulli(people_female_default, pars={'p': 0.5}) ss.random(people__states_13459533552_default, pars={})

starsim.distributions.DistSeedRepeatError: A common seed was found between ss.bernoulli(people_female_default, pars={'p': 0.5}) and ss.random(people__states_13459533552_default, pars={}). This is likely caused by incorrect initialization of the parent Dists object.

I don't believe this message is caused by incorrect initialization, because the error is triggered only rarely.

As with #533, this appears to be related to:
ss.FloatArr('ppf_LS_to_presymp', default=ss.random())

wherein a FloatArr is to be initialized to a Dist. It's not working, and it also appears as though this might be the cause of the DistSeedRepeatError.

Closed by #536


Division by zero should return +INF

Godot version:

OS/device including version:

Issue description:
I've been building a trading system in Godot, and my code has many mathematical transformations.
I'm getting a bit tired of crashes whenever I accidentally don't check if I divide by zero or not.
An example:
y_change = (next_candle.c - curr_candle.c) / curr_candle.c

y_change is quite commonly zero, and so I have to always add an extra check:
y_change = (next_candle.c - curr_candle.c) / curr_candle.c
if y_change == 0:
    y_change = 0.000000001

or the following will fail, with an error (Division by zero):
curr_candle.c / y_change

This is a bit frustrating and sometimes leads to bugs in production when I accidentally forget to check this.
Steps to reproduce:

Divide by zero

Expected behavior
I notice that in JS 1/0 is Infinity, and I'd suggest this is a good solution.
In python 1/0 is a runtime error, but since most stats systems use numpy or pandas anyway, they usually take care of this to be +INF.
I'd be interested in hearing other contributors thoughts, as this lies outside the realm of normal game dev stuff, and perhaps returning +INF when we divide by zero is not a great solution for some?

This should probably be opened as a proposal rather than a bug report.

Yep sorry, forgot about the proposal repo!


Fix for breaking change in Jinja2

Jinja2 made some changes that broke compatibility with Sphinx, pinning the version for now.

Codecov Report

Merging #281 (dfdf739) into master (b9a9d64) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head dfdf739 differs from pull request most recent head fdaa1ec. Consider uploading reports for the commit fdaa1ec to get more accurate results

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   69.85%   69.85%
=======================================
  Files          29       29
  Lines        8186     8186
  Branches     1699     1699
=======================================
  Hits         5718     5718
  Misses       2052     2052
  Partials      416      416

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 b9a9d64...fdaa1ec. Read the comment docs.


[Fix-7984] Add Unit Test for UiPluginController

Purpose of the pull request
Fix #7984
Brief change log
Add Unit Test for UiPluginController
Verify this pull request
This pull request is already covered by existing tests, such as UiPluginControllerTest.

Codecov Report

Merging #7985 (e5b3662) into dev (2e53064) will decrease coverage by 0.10%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #7985      +/-   ##
============================================
- Coverage     41.29%   41.19%   -0.11%
+ Complexity     3721     3714       -7
============================================
  Files           637      637
  Lines         27114    27123       +9
  Branches       3079     3080       +1
============================================
- Hits          11197    11172      -25
- Misses        14838    14875      +37
+ Partials       1079     1076       -3

Impacted Files
Coverage Δ

...he/dolphinscheduler/common/enums/SqoopJobType.java
0.00% <0.00%> (-88.89%)
:arrow_down:

...er/master/processor/queue/TaskResponseService.java
50.00% <0.00%> (-18.19%)
:arrow_down:

...rver/master/processor/queue/TaskResponseEvent.java
93.54% <0.00%> (-6.46%)
:arrow_down:

...inscheduler/common/task/sqoop/SqoopParameters.java
74.00% <0.00%> (-2.00%)
:arrow_down:

...er/server/master/runner/WorkflowExecuteThread.java
9.59% <0.00%> (-0.12%)
:arrow_down:

...inscheduler/api/controller/UiPluginController.java
100.00% <0.00%> (+80.00%)
: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 2e53064...e5b3662. Read the comment docs.

considering that it's your first contribution, I think we can get deep communiction, you can contact me through mail or add wechat(KerwinZhuang), when mail or added, please tell me who you are, I think I can help to familiar with the DolphinScheduler if you meet with problems.


Naming convention

I started to read about managing CSS properly, but I haven't pushed it yet. I heard of "BEM" methodology, and siblings. Do you have any opinion on that kind of methodology? Do you think it would be worth it to learn and use one?

BEM can be a good starting point, but I'm not especially fan of long and over-verbose class names like:

    search

I prefer to use ARIA to describe properly roles and states:

    search

and which can be targeted in Stylus via:
[role=button]
    // buttons display style rules

.search[role=button]
    // search button specific rules

.toolbar
    // toolbar specific rules
    [aria-disabled=true]
        // inactive state style rules
    [aria-disabled=false]
        // active state style rules

    .search[role=button] &
        // search button in toolbar specific rules

Simpler to maintain, IMHO :smile:.

Ok, I follow your lead!


[BUG] Change page name in wizard type.

Environment
Please provide as many details as you can:

Hosting type

[x] Form.io
[ ] Local deployment

Version:

Formio.js version: react-formio 4.3.0 (or >= 4.2.3)
Frontend framework: ReactJS 16.12.0
Browser: Chrome
Browser version:

Steps to Reproduce

Create wizard form
Change page label
Click on different tabs

Expected behavior
Page label is changed (In panel component and page tab)
Observed behavior
Page label not changed (In panel component and page tab)
Example

A live example:
https://codesandbox.io/s/blazing-feather-n0sq5

Hello @ductm-devblock,
Thank you for reaching out! We are able to replicate this issue on our side. We have created a ticket and have added this item to our backlog. We welcome a PR or have a process to expedite if you are interested.
In the meantime, you will need to save the form in order for the navigation bar to update.
We will let you know once this has been resolved.

@ductm-devblock,
Thank you for your patience while we worked on resolving this issue. This has been resolved in 4.10.0-rc.3.
Thanks for using Form.io


Clarification on some mod options

I'm updating all the wiki pages, and am currently going through the various options screens - there's a few things that I'm unsure about...
Policies tab
At junctions:

Vehicles may turn at red traffic lights - what kind of traffic lights? does it work with TTL? (so far I've only tested with vanilla TL)

Works on both

Also apply to left & right turns between one-way streets:

I assume this is automatically applied to all junction road that have enabled "turn on red"?
As such, is its effect limited to allowing, in addition, a far-side turn in to a one-way road? (a near-side turn in to a one way road would already be covered by the main "turn at red traffic lights" option, given that needs to be enabled for the one-way policy to have any effect)

Vehicles follow priority rules at junctions with timed traffic lights:

What specifically does this do / how does it change traffic a the junction?
Old docs state that it can be used to "realise unprotected turns" - but isn't that what newer Turn on Red does?

Dedicated turning lanes - what does this do/affect?

On roads:

at a segment to segment transition, only the smaller segment gets crossings:

Is this automatically applied to all transition nodes?
What happens if both roads are same size? Does it still remove one crossing?

Roundabouts:

Put parking ban inside roundabouts:

I assume "inside roundabouts" refers to the actual roundabout itself (the one-way roads)?
If so, would it be better named: "Ban parking on the roundabout"

Overlays tab

Connected Lanes - could this option be renamed Lane connectors ?

at a segment to segment transition, only the smaller segment gets crossings:  Is this automatically applied to all transition/stretch nodes?

stretch nodes is not a vanilla concept. only for node controller. and in node controller stretch nodes do not have crossings enabled/configurable.

What happens if both roads are same size? Does it still remove one crossing?

I am not sure about normal node when both segments have same size (forgot my code!). might randomly turn off one segment.

Put parking ban inside roundabouts:
I assume "inside roundabouts" refers to the actual roundabout itself (the one-way roads)?
If so, would it be better named: "Ban parking on the roundabout"

yes

closing - got all the info now; wiki updated


B 19825 rename qaecsr to qae main

[!IMPORTANT]
File changes may be different due to merge conflict resolution to the base (Eg main and int). Scrummy Bears are introducing a new role called "HQ" which is why some conflicts are int specific.

Integration PR

flaky test failures 🫤


Share button to Share Region

Is your feature request related to a problem? Please describe.
Currently users have no way to share their region.
Describe the solution you'd like
A simple share button at the top of regions. Clicking the share button will open up the system menu to send the link to the region to others via various Apps that the user already has.

Note:
Users can only see this share button if they are part of the region itself.
CLICKING ON THE REGION LINK
If user already has the App installed and is a Seeds user:
If someone else clicks on the link for the region, it will default open the App and take the user to the region page as a visitor with the option to join.
If user does not have App installed and is not a Seeds users:
Need to discuss this at team meeting. In order for the user to create a Seeds account there needs to be # of Seeds for the Account creation.
Additional context
Add any other context or screenshots about the feature request here.

@n13 @gguijarro-c-chwy is this a new deep link on firebase??


Set default location on #ls_files to .

If a nil is passed in to #ls_files, git will output a warning about empty strings in pathspec. At a future date, git will start failing on such arguments. See here for more context.

The failing test is the Ruby 1.9.2 matrix, and there's another PR to remove support for it, as it's been deprecated for months.

Is this being tackled?

This is still a problem.

I merged in master into this, but now the "changed files" says 0 files changed? Very odd. @gudmundur, thanks for the fix - if you or someone else could rebase this on top of the latest master, I'm happy to merge it in. Sorry for the huge delay of such a simple fix.

No feedback received. @gudmundur, if you'll do a rebase and ping me, I can reopen this. Closing for now.

Fixed in #350


Installation error

Hi,
I'm trying to install Calvin on Ubuntu 12.04 with "python setup.py install" and I receive this error message:
Processing dependencies for calvin==0.5
Searching for mock
Reading http://pypi.python.org/simple/mock/
Best match: mock 2.0.0
Downloading https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz#md5=0febfafd14330c9dcaa40de2d82d40ad
Processing mock-2.0.0.tar.gz
Running mock-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DJF7u_/mock-2.0.0/egg-dist-tmp-3zA16c
Checking .pth file support in .
/usr/bin/python -E -c pass
Searching for pbr>=1.3
Reading http://pypi.python.org/simple/pbr/
Best match: pbr 1.10.0
Downloading https://pypi.python.org/packages/c3/2c/63275fab26a0fd8cadafca71a3623e4d0f0ee8ed7124a5bb128853d178a7/pbr-1.10.0.tar.gz#md5=8e4968c587268f030e38329feb9c8f17
Processing pbr-1.10.0.tar.gz
Running pbr-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DJF7u_/mock-2.0.0/temp/easy_install-aJPRNW/pbr-1.10.0/egg-dist-tmp-9xQqt5
/usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin infi.traceback = infi.traceback:NosePlugin: mock
  RuntimeWarning)

Installed /tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg
/usr/local/lib/python2.7/dist-packages/nose-1.3.7-py2.7.egg/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin infi.traceback = infi.traceback:NosePlugin: mock
  RuntimeWarning)
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
    kwargs = setup_cfg_to_setup_kwargs(config, script_args)
  File "/tmp/easy_install-DJF7u_/mock-2.0.0/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
    if pkg_resources.evaluate_marker('(%s)' % env_marker):
AttributeError: 'module' object has no attribute 'evaluate_marker'
error: Setup script exited with error in setup command: Error parsing /tmp/easy_install-DJF7u_/mock-2.0.0/setup.cfg: AttributeError: 'module' object has no attribute 'evaluate_marker'

"apt-get install python-mock" seemed to help

You beat me to it.
python setup.py install does not automatically resolve dependencies, so you need to handle them yourself. One way of doing it is to use pip for installation, e.g.
pip -r requirements.txt -r test-requirements.txt -e .
We're working on improving the setup process. Hopefully, it should become a bit easier in the next release.
Cheers,
-o


Prevent compile/execute nodes from having write access to /opt

[ ] Mount /opt read-only

[ ] beta
[ ] prod

[ ] Only give read-only permissions : https://docs.aws.amazon.com/efs/latest/ug/access-control-managing-permissions.html

Read only permissions may not work the way I thought it did: https://forums.aws.amazon.com/message.jspa?messageID=735616

Closing this: permissions on EFS don't work the way I'd ideally like. I'll try and keep an eye on changes on Amazon's side: should they provide read-only mount points we can move to those.


[AMBARI-24325] [Log Search UI] Unaccessible query filter type ahead element in small window

What changes were proposed in this pull request?
This is a quick fix for the long dropdown for query filter bar.
How was this patch tested?
It was tested manually.
Unit tests: Executed 268 of 268 SUCCESS (7.76 secs / 7.655 secs)
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3206/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3214/
Test PASSed.


Add Issue and feature request templates

These are currently missing, so issues do not follow a standard format, meaning some miss crucial information

The bug report has been added in #36, with the feature request template added in #37


MKLDNN error in mx.sym.Concat

Description
When using MKLDNN, concatenating sometimes fails and results in error. Please see the code.
Error Message
MXNetError: The size of NDArray doesn't match the requested MKLDNN memory desc. MKLDNN memory requests for 41943040 bytes, but got 34603008 bytes from NDArray
To Reproduce
x = mx.sym.Variable('x')
w = mx.sym.Variable('w')
c = mx.sym.Convolution(data=x, weight=w, num_filter=32, kernel=(3, 3), pad=(1, 1), no_bias=True)
n = mx.sym.concat(c, x, dim=1)
context = mx.cpu()
ex = n.simple_bind(context, x=(1, 1, 512, 512))
data = mx.nd.ones(ex.arg_arrays[0].shape, ctx=context)
weight = mx.nd.ones(ex.arg_arrays[1].shape, ctx=context)
data.copyto(ex.arg_arrays[0])
weight.copyto(ex.arg_arrays[1])
res = ex.forward()
print(res)
Steps to reproduce
Simply run the provided script
What have you tried to solve it?
If variable x is first tiled to have at least 8 channels (dimension 1), then it works:
c = mx.sym.Convolution(data=x, weight=w, num_filter=32, kernel=(3, 3), pad=(1, 1), no_bias=True)
x = mx.sym.tile(x, (1, 8, 1, 1))
n = mx.sym.concat(c, x, dim=1)
Another way is to reverse the order of concatenation:
n = mx.sym.concat(x, c, dim=1)
Environment
MXNet 1.8.0.rc2, Windows 10, build with MKLDNN

Simillar error on linux:
MXNetError: The size of NDArray doesn't match the requested MKLDNN memory desc. MKLDNN memory requests for 50331648 bytes, but got 34603008 bytes from NDArray

@mxnet-label-bot MKLDNN

@mxnet-label-bot add [MKLDNN]

I am working on this.


[INFRA] Use annotated tags for releases

Streamlines use of git describe etc
$> git tag
v.1.1.2
v1.1.2
v1.2.0

# 1.1.2 is proper annotated:
$> git describe e21e619
v1.1.2-227-ge21e619

# but 1.2.0 (github does mis-service in producing those while doing releases on github web ui)
# so --tags is needed to get proper one for 1.2.0
$> git describe --tags e21e619
v1.2.0-67-ge21e619

So ATM older tag is an annotated one while the latest one is not.
I guess we fell into the trap of github where it doesn't create annotated tags when releases made from the web UI.

Thank you for raising this! If I am interpreting correctly - the tags created due to a release (via github web) are not annotated to the release because it is done via web ui? To fix this and have annotated tags for releases, how may you recommend the release protocol be altered to enable this?

I have searched again and I think github still doesn't allow anyhow to create annotated tags via web ui.  So the only way I know, and possible way is to

create them locally (just annotated or even signed) via git tag -a <RELEASE> [<COMMIT>] or git tag -s  <RELEASE> [<COMMIT>] (for signed tag).

I also typically add changelog for the release within tag description, so it is right there for me when I want to see the release details.  The problem though that markdown ## section annotations are treated by git as comments

push to github git push origin <RELEASE> (git push --tags origin might be other tags present locally which might be undesirable)
and only then go to releases web ui and make the release from that tag ("Edit" existing tag, "Publish the Release" or alike -- whatever green button it is in that interface).

NB there is a "rogue" tag v.1.1.2, (the same as v1.1.2), I would recommend git push origin :v.1.1.2 ;-)

Bad tag removed and release updated to the correct v1.1.2 tag.

@yarikoptic Should I create an annotated tag for v1.1.2?

I am confused...

Bad tag removed and release updated to the correct v1.1.2 tag.
@yarikoptic Should I create an annotated tag for v1.1.2?

are you talking about   v.1.1.2 (when saying "removed") ?  but there was one annotated one already
$> git show v1.1.2
tag v1.1.2
Tagger: Chris Gorgolewski<EMAIL_ADDRESS>Date:   Sun Jan 13 12:59:43 2019 -0500

same as v.1.1.2

what is missing is annotated for v1.2.0
$> git show v1.2.0
commit dbdf32e7790eb7155bdbc57a8ff93f9ba2b9ebde (tag: v1.2.0)
Merge: efd2a97 07d466e
Author: Chris Gorgolewski<EMAIL_ADDRESS>Date:   Mon Mar 4 08:18:58 2019 -0800

    Merge pull request #161 from chrisfilo/rel/1.2.0

    REL: v1.2.0

and for that one - yes, probably best to remove, create annotated, force push

Ah, yes. I removed v.1.1.2. I missed that 1.2.0 was the non-annotated one. Okay.

Updated the tag. Looks like GitHub was okay with:
git checkout v1.2.0
git tag -f -a -m v1.2.0 v1.2.0
git push -f upstream v1.2.0

Running
$ git clone https://github.com/bids-standard/bids-specification.git
$ git -C bids-specification describe
v1.2.0-83-g0a932f2

closed through #235


Cannot create tunnel on Windows ARM

Pretty much just did code tunnel on Windows ARM (in Parallels) and got this error:

Actually when I tried the same steps a second time it worked fine. What was different the second time is that I was not asked to authenticate via GH device login.


chore(examples): Update Linearlite to use the Proxy and new types

This updates linearlite to use the Proxy and new types.
Of the new times we are using timestamp and 'uuid'.
The only difference between the files from the starter and their copies in this example is that they have been renamed from *.js to *.cjs. This example has "type": "module" set in package.json, by renaming the scripts to *.cjs they continue to work unmodified. Without this they would have to be converted to ESM with "import" rather than "require" syntax.
builder.cjs is included in the project but not used to build the app, it uses Vite. It is inspected for port definitions by other scripts from the starter and so cannot be deleted without modifying them.
Testing this PR requires running the app against a locally built Electric, ts-client, and generator.
You can test it with the following steps:

build Electric (cd components/electric && make docker-build)
build and pack the ts-client (cd clients/typescript && pnpm install && pnpm build && npm pack)
build and pack the generator (cd generator && pnpm install && pnpm build && npm pack)
modify linearlite to use the local Electric image (because it has not yet been published to Docker hub)
i.e. in linearlite/backend/compose/.envrc change the ELECTRIC_IMAGE env var to be electric:local-build.
modify linearlite to use our packed ts-client:

change the electric-sql dependency in linearlite/package.json to be "electric-sql": "file:<path to electric mono  repo>/clients/typescript/electric-sql-0.6.4-2.tgz",

modify your app to use our packed generator:

change the @electric-sql/prisma-generator dependency in linearlite/package.json to be "@electric-sql/prisma-generator": "file:<path to electric mono  repo>/generator/electric-sql-prisma-generator-1.0.2-regex.tgz",

install dept

npm install

now run the app:

npm run reset to start the docker images, run migrations, load data, generate client
npm run start to start the dev server

I followed your steps to run the app but it fails on npm run reset because the issue data does not seem to be present.
Should it be bundled with the app or should it be fetched by a script somehow?
This is the error i get:
Error: ENOENT: no such file or directory, open '/Users/kevin/Documents/Electric/development/electric/examples/linearlite/db/data/issues.json'


Fixes two subject / state error

There is a bug in the rank estimation when the minimum shape of the input table is less than 3. See issue #38 & #39.
This PR fixes that bug by not estimating a table rank with less than 3 samples. Also, added additional tests to ensure two-state/subject does not break tensor factorization in the future.

Looks good to me.


Add location permission to Podfile for permission_handler macros

The current version of the Podfile does not specify the required parameters for the permission_handler package. When user press button "Request Location Permissions" nothing happened.
The permission_handler plugin use macros to control whether a permission is enabled. You must specify location permission in Podfile.
Permission_handler documentation - https://pub.dev/packages/permission_handler

The current version of the Podfile does not specify the required parameters for the permission_handler package. When user press button "Request Location Permissions" nothing happened.
The permission_handler plugin use macros to control whether a permission is enabled. You must specify location permission in Podfile.
Permission_handler documentation - https://pub.dev/packages/permission_handler

Thanks for the PR. Our team will review the same and proceed with the next steps.

I am using Location Package just to get location permissions see if that works for you as well


Open Settings on Installed

If possible in Firefox and Chrome the settings should open on installation of the extension.
Maybe some text which explains a bit more is also a good idea?

Done in e9308832d0022fe88faf2967c790bb8b19167a70


Unable to use sk.contacts with skype login nickname hidden inside an object

My problem is that I'm unable to use sk.contacts with a skype login nickname hidden inside an object which contains some output from for loop. I've tested, that this output is the same as the login which - when typed directly: works.
The code below is part of my GUI's code.
I want to use Tkinter checkbuttons  for ticking particular users that will receive the message. After ticking them in my GUI, I hit button "submit message". This button uses the definition posted below.
for ex. this code works:
def submit_offers_to_selected_clients():

    from skpy import Skype
    sk = Skype(entry_skype_login.get(), entry_skype_pass.get()) # connect to Skypesk.user
    login_from_clients_dict = {}

    check_buttons_dict = {
            "user 1":twovar,
            "user 2":threevar,
            "user 3":fourvar,
            "user 4":fivevar,
            "user 5":sixvar,
            "user 6":sevenvar
            }
    check_buttons_list = [twovar, threevar, fourvar, fivevar, sixvar, sevenvar]

    for name in check_buttons_list:
        if name.get() == True:
            for dict_name in check_buttons_dict:
                if name == check_buttons_dict[dict_name]:

                    login_from_clients_dict[dict_name] = df_clients.loc[dict_name, "Skype Adress"]
                    print(login_from_clients_dict["user 1"])

    ch = sk.contacts[live:.cid.addcb0eebdebb4491e].chat        ##### HERE IS THE PROBLEM ( but in this case, all work)

    msg = ch.sendMsg(
            "text",
            rich=True) # skype needs html line breaks: "rich=True"
    msg

But when I will use anything else than the string: live:.cid.addcb0eebdebb4491e - inside sk.contacts, then this errors is displayed: AttributeError: 'NoneType' object has no attribute 'chat'
Example of this error:
def submit_offers_to_selected_clients():

    from skpy import Skype
    sk = Skype(entry_skype_login.get(), entry_skype_pass.get()) # connect to Skypesk.user
    login_from_clients_dict = {}

    check_buttons_dict = {
            "user 1":twovar,
            "user 2":threevar,
            "user 3":fourvar,
            "user 4":fivevar,
            "user 5":sixvar,
            "user 6":sevenvar
            }
    check_buttons_list = [twovar, threevar, fourvar, fivevar, sixvar, sevenvar]

    for name in check_buttons_list:
        if name.get() == True:
            for dict_name in check_buttons_dict:
                if name == check_buttons_dict[dict_name]:

                    login_from_clients_dict[dict_name] = df_clients.loc[dict_name, "Skype Adress"]
                    print(login_from_clients_dict["user 1"])

    ch = sk.contacts[login_from_clients_dict["user 1"]].chat        ##### HERE IS THE PROBLEM

    msg = ch.sendMsg(
            "text",
            rich=True) # skype needs html line breaks: "rich=True"
    msg

please note that this part: login_from_clients_dict["user 1"] is in output: live:.cid.addcb0eebdebb4491e  - and it's a string. So it's exactly the same string.
I have no idea why It doesn't work. :(
Account type: Live (Microsoft) account

If you're getting a contact back when using the user ID as a literal then you've confirmed it's a problem with your code rather than SkPy itself.
Key lookups on SkypeContacts will return None if the ID doesn't exist (which will cause that AttributeError if you don't look at what you get back), so you're likely not passing in the value you think you are -- try print(repr(value)) to see exactly what you're passing in.

try print(repr(value)) to see exactly what you're passing in.
hello, yes that was it. The true login was '"live:.cid.addcb0eebdebb4491e"'. Additional quotes characters made this error. Thank you for your help!


Add support for preprocessed columns

To make AirScript constraint scope capture randomized AIR with preprocessing (RAP) (and not limiting it to AIR with injected verifier randomness), it would be necessary to add support for preprocessed columns. This would make AirScript a DSL ready to be used in other projects, since RAPs are the most generic way we have at the moment to capture computations of a computational model. For example, RAPs can easily describe Plonk or R1CS constraint systems, making it able to capture arithmetic circuits.
Based on the idea of how periodic columns are handled in AirScript and knowing that preprocessed columns are publicly known to both the prover and the verifier before the STARK generation, it makes sense to invent a syntax for preprocessed columns that is explicit.
I think that one of the two following approaches would work (I use python-like syntax to denote the preprocessed columns shape):

Add a  new declaration for preprocessed columns in the trace_columns section, e.g.:

trace_columns:
    main: [a,b]
    aux: [c,d]
    pre:
        L1: [1] + [0]*(T-1)

Create a section for preprocessed columns, e.g.:

preprocessed_columns:
        L1: [1] + [0]*(T-1)

I the previous examples, I have used Tfor denoting the number of rows in the execution trace.

I completely agree that keeping the number of rows out of AirScript syntax is a good idea.
I am less sure how you could keep maintaining that in the XOR example: the xor.csv would need to somehow have a number of rows equal to the expected number of rows in the execution trace (and if you decide to change it, then you would also need to change it i the xor.csv file). Anyways, I agree that AirScript need some mechanism to handle preprocessed columns that are not succinct.

The number of rows could be different. For example, consider a scenario with only two tables. As long as the xor table is

the shorter one, and
contains and “end-of-table” marker that is set in every row after the, well, end of the table,

the lookup can work exactly the same way. Of course, looking up a row that is beyond the end of the table must fail.


[SPARK-9849][SQL] DirectParquetOutputCommitter qualified name should be backward compatible

DirectParquetOutputCommitter was moved in SPARK-9763. However, users can explicitly set the class as a config option, so we must be able to resolve the old committer qualified name.

Merged build triggered.

Merged build started.

Test build #40532 has started for   PR 8114 at commit 31499b7.

Merged build triggered.

Merged build started.

Test build #40534 has started for   PR 8114 at commit 6995179.

Test build #40532 has finished for   PR 8114 at commit 31499b7.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class SQLTransformer (override val uid: String) extends Transformer
case class EqualNullSafe(attribute: String, value: Any) extends Filter

Merged build finished. Test PASSed.

Test build #40534 has finished for   PR 8114 at commit 6995179.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class EqualNullSafe(attribute: String, value: Any) extends Filter

Merged build finished. Test PASSed.

LGTM. I am merging it to master and branch 1.5.


ModuleNotFoundError: No module named 'PyQt5.pyrcc_main'

🐛 Bug
ModuleNotFoundError: No module named 'PyQt5.pyrcc_main' thrown when calling napari.Viewer() on a fresh Ubuntu install.
Fix
Run:  sudo apt install pyqt5-dev-tools
Which installs /usr/lib/python3/dist-packages/PyQt5/pyrcc_main.py
So:
$ python
Python 3.9.7 (default, Sep 10 2021, 14:59:43)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.pyrcc_main
>>>

TL;DR
The common prereq instructions of installing python3-pyqt5is insufficient on Ubuntu and the dep on pyqt5-dev-tools is non-obvious.
Not sure there's a specific ask here.  (Maybe a better error message?)  Mostly I'm logging this for future google searchers to find (since nothing really comes up ATM).
To Reproduce
Call napari.Viewer()...
~/.local/lib/python3.9/site-packages/napari/viewer.py in __init__(self, title, ndisplay, order, axis_labels, show)
     52         from .window import Window
     53
---> 54         self._window = Window(self, show=show)
     55
     56     # Expose private window publically. This is needed to keep window off pydantic model

~/.local/lib/python3.9/site-packages/napari/_qt/qt_main_window.py in __init__(self, viewer, show)
    402     def __init__(self, viewer: 'Viewer', *, show: bool = True):
    403         # create QApplication if it doesn't already exist
--> 404         get_app()
    405
    406         # Dictionary holding dock widgets

~/.local/lib/python3.9/site-packages/napari/_qt/qt_event_loop.py in get_app(app_name, app_version, icon, org_name, org_domain, app_id, ipy_interactive)
    183         # this will register all of our resources (icons) with Qt, so that they
    184         # can be used in qss files and elsewhere.
--> 185         _register_napari_resources()
    186
    187     _app_ref = app  # prevent garbage collection

~/.local/lib/python3.9/site-packages/napari/_qt/qt_resources/_icons.py in _register_napari_resources(persist, force_rebuild)
    386         _clear_resources = getattr(mod, "qCleanupResources")
    387     else:
--> 388         resources = _compile_napari_resources(save_path=persist and save_path)
    389         exec(resources, globals())
    390         _clear_resources = globals()["qCleanupResources"]

~/.local/lib/python3.9/site-packages/napari/_qt/qt_resources/_icons.py in _compile_napari_resources(save_path)
    323
    324     with _temporary_qrc_file(svgs, prefix='themes') as qrc:
--> 325         output = compile_qrc(qrc)
    326         if save_path:
    327             try:

~/.local/lib/python3.9/site-packages/napari/_qt/qt_resources/_icons.py in compile_qrc(qrc)
    227     """Compile a qrc file into a resources.py bytes"""
    228     if qtpy.API_NAME == 'PyQt5':
--> 229         return _compile_qrc_pyqt5(qrc).replace(b'PyQt5', b'qtpy')
    230     elif qtpy.API_NAME == 'PySide2':
    231         return _compile_qrc_pyside2(qrc).replace(b'PySide2', b'qtpy')

~/.local/lib/python3.9/site-packages/napari/_qt/qt_resources/_icons.py in _compile_qrc_pyqt5(qrc)
    176     PyQt5.pyrcc.  They provide access via a helper function in `pyrcc_main`.
    177     """
--> 178     from PyQt5.pyrcc_main import processResourceFile
    179
    180     # could not capture stdout no matter what I tried, so using a temp file.

ModuleNotFoundError: No module named 'PyQt5.pyrcc_main'

Expected behavior
A UI to appear.
Environment

Ubuntu 21.10
apt install python3-pyqt5
pip install napari
napari.__version__ == '0.4.12'

thanks @keredson ...

The common prereq instructions of installing python3-pyqt5is insufficient on Ubuntu and the dep on pyqt5-dev-tools is non-obvious.

curious, did you already try the instructions in our readme and have them fail? (or are they unuseable for some reason)?
# conda part optional, but the most commonly tested approach
conda create -y -n napari-env -c conda-forge python=3.9
conda activate napari-env
pip install "napari[all]"

specifically, did you try pip install "napari[all]" before resorting to python3-pyqt5 or pyqt5-dev-tools
ModuleNotFoundError: No module named 'PyQt5.pyrcc_main' is often cause by PATH issues, such that perhaps your apt install isn't available to the python env at runtime?
also, I haven't tested ubuntu 21 yet, fwiw, so it's possible this is unique to that?

it wasn't a path issue - confirmed the deb didn't contain the file at all.  (it's definitely a weird split the pkg maintainers did.)
reproducing is a bit tricky since _register_napari_resources caches /home/derek/.local/lib/python3.9/site-packages/napari/_qt/qt_resources/_qt_resources_PyQt5_5_15_2_5bab406e8e80e6013f59ab193ce5fd9a.py if it succeeds.  (at which point PyQt5.pyrcc_main becomes unnecessary.)  but can just manually delete to reproduce the original error.
pip install "napari[all]" instead of pip install napari did not materially change things.  (pooch>=1.3.0 was the only difference at the time i ran it.)
created a PR for the readme.

also, I haven't tested ubuntu 21 yet, fwiw, so it's possible this is unique to that?

probably not.  looks like pyqt5-dev-tools has been around since 18.04, and if you download the bionic version of the deb it references pyrcc_main.py:
$ grep -R pyrcc_main pyqt5_5.10.1+dfsg-1ubuntu2.debian
pyqt5_5.10.1+dfsg-1ubuntu2.debian/debian/pyqt5-dev-tools.install:usr/lib/python3*/dist-packages/PyQt5/pyrcc_main.py

did a code comment PR for you all as well if you prefer that instead, or can take both, dealer's choice.  :)

to be honest, I'm a bit hesitant to merge that PR, since we really prefer advising people to use virtual environments, and by using sudo apt install pyqt5-dev-tools, you're mixing global libraries with conda.  It's still unclear to me.... are you using conda or some virtual environment?  Or are you trying to install napari as a global python library?  (It sort of looks like the latter, based on /home/derek/.local/lib/python3.9/site-packages/napari/, which I'd generally recommend against, and that's why I'd prefer not encouraging others to use it).
So, just to be explicit.  here's what we generally encourage someone to do from a fresh ubuntu installation (the first step installing xcb libraries is necessary if you get the error "Failed to load platform plugin xcb"... see this SO post for details)
# this is the one system-wide linux-specific thing you'll need to do once after installation
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 \
    libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 \
    libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0

then, install miniconda, and proceed by creating a virtual environment (that is, don't use your global python/pip to install).
conda create -y -n napari-env -c conda-forge python=3.9
conda activate napari-env
pip install "napari[all]"

# run napari
napari

Sorry to have you try more things, but before we encourage people to use apt install pyqt5-dev-tools, I'd really like for you to try that and let us know if it doesn't work for you.  That's what all of us have been using for a couple years now and it's a pretty well-tested (and system isolated!) solution.

are you using conda or some virtual environment?

ah, no, i'm not using conda (or any other venv) ATM.  (nor looking to install just for this lib, esp. since they install via the "download and run this untrusted 50mb shell script" technique.)

Or are you trying to install napari as a global python library?

no, not as global.  installed as user-local.

nor looking to install just for this lib

fair enough!  i do think that virtual environments are advisable though, and I know from fielding many of the questions that we get here that a non-negligible portion of our users might get themselves into trouble if they start installing things like this (even the pip "user-local" install is difficult to isolate from other dependencies... it may not literally go into /usr/lib, but it's still quite possible to run into some binary incompatibilities if they later install other things into that same environment, and then extracting themselves from that situation takes some know-how)
I'll let other devs also weigh in though as well,  cc @jni

FWIW, totally fine closing this if i'm using it outside a recommended or supported manner. =D

found the article that orignially lead me to you all, which does recommend conda in the linked repo's readme.

I agree generally with @tlambert03's comments. I don't think we want to encourage this installation path as supported, as it's very uncommon in Python circles. In short, one day, I hope you can do sudo apt install python-napari and stuff will Just Work, but until then, I think mixing pip and apt is a recipe for broken Python installs.

(nor looking to install just for this lib, esp. since they install via the "download and run this untrusted 50mb shell script" technique.)

tbh I find this to be a red herring argument. At the very least it overestimates the security practices of napari, scikit-image, and any number of related libraries that you install via pip. Literally anything you install with pip can execute arbitrary code on install or import, including its dependencies, including proprietary binary blobs. Pillow, an image reader library that we depend on, has seen plenty of security issues, and of course, anything that did logging in Java was massively compromised — including stuff installed with apt.
conda btw installs in user space (no sudo required), and fully open implementations such as mamba exist to do the same thing. btw for the open alternatives of miniforge and mamba-forge, you can see the recipe for making the installers here, though it's not very illuminating unless you go fish around to see what constructor does. I haven't, I just trust the members of that community to do a decent job (especially since the whole stack is open source), just as you trust the members of the Ubuntu community to do theirs.
Anyway, that's all a big aside, for now I will suggest that we close this issue and recommend use of conda or virtualenv to install both napari and its dependencies. If anyone objects to this I'm happy to reopen and consider ways forward. Thank you @keredson!

For anyone else hitting this when using a PyQt5 installation from source, make sure that was not configured with --no-tools, see also https://github.com/easybuilders/easybuild-easyconfigs/pull/16469/files...


prechecked failed on sponsored range purchase

precheck failed: sender balance and deposit together is 0 but must be at least<PHONE_NUMBER>55712 to pay for this operation

Needed to set gas policy to later date in Alchemy dashboard config


QDESC NMR and JSON files

QDESC writes to original JSON files and adds NMR Chemical shift values
Add --nmr_ref option to allow for non TMS references
Would be helpful if QDESC had the option to Boltzmann average all relevant values. Maybe a general QDESC --boltz --files ".json" or ".log" option.
Add other NMR properties to the boltz weighted json file that is produced with QDESC NMR simulation (right now it only prints out the NMR Chemical Shift averaged values

Just adding onto this thought- I'm currently working on a project where we would like to automate the calculation of Boltzmann weighted NBO charges, and condensed Fukui indices. Do you see these as possible descriptors the QDESC and Boltzmann averaging will be functionalized for?


Session destroy

The "Delete other sessions" button deletes the very session I am using.

Hey @szepeviktor are you referring to logging out of other browser sessions in the streampot.io dashboard?

Yes! 🎈

Ah yes you're right, thanks for flagging.

Found a fix. Just gonna test it.

Apparently, it's a very specific bug where if you refresh the page after destroying other sessions - it keeps you logged in. But if you click or visit other links - it logs you out.
Has to be reported to the underlying https://github.com/laravel/jetstream which we are using for the hosted version dashboard.

https://github.com/laravel/jetstream/blob/c761f4678def6c7677ca5ef00c9dbf56511b7ec2/src/Http/Livewire/LogoutOtherBrowserSessionsForm.php#L64-L70

@szepeviktor Do you mean the absence of these lines in Inertia's implementation is what creates this bug?
https://github.com/laravel/jetstream/blob/c761f4678def6c7677ca5ef00c9dbf56511b7ec2/src/Http/Controllers/Inertia/OtherBrowserSessionsController.php#L21

I just play the role of a muse.


how to register onclose event?

https://github.com/moozzyk/SignalR-Client-Swift/blob/c8bf32badfeee5d002621018f3625eb7cdd18741/Sources/SignalRClient/HubConnection.swift#L455


Update .wordlist.txt

🚀 Deployed on https://669eb6ea0c86fb2ffd9548c7--cozy-fox-0defec.netlify.app


Ionic state restore fails silently

Ionic state restore command fails silently.
Running the ionic state restore with an old version of cordova (3.4.0-0.1.3) in a directory that doesn't have a platforms directory doesn't return an error.
Running the command ionic build ios after that returns the following error: no such file or directory '/Users/gayly/Work/Dev/mvp-ng-ionic-tablet/platforms'
So I have added manually the platforms directory (mkdir platforms) and re-run the ionic state restore.
I now have the ios directory generated during this command within platforms.

Ah, sorry about that. Mind posting here? https://github.com/driftyco/ionic-cli/issues