Uncaught TypeError: Cannot read property 'ev' of null on navCtrl.push()

Ionic version:  (check one with "x")
[ ] 1.x
[ x ] 2.x
I'm submitting a ...  (check one with "x")
[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
In RC.5 when using this.navCtrl.push() on a specific page:
Uncaught TypeError: Cannot read property 'ev' of null
    at Content._readDimensions (node_modules/ionic-angular/components/content/content.js:539)
    at eval (node_modules/ionic-angular/components/content/content.js:158)
    at SafeSubscriber.schedulerFn [as _next] (node_modules/@angular/core/src/facade/async.js:101)
    at SafeSubscriber.__tryOrUnsub (node_modules/rxjs/Subscriber.js:223)
    at SafeSubscriber.next (node_modules/rxjs/Subscriber.js:172)
    at Subscriber._next (node_modules/rxjs/Subscriber.js:125)
    at Subscriber.next (node_modules/rxjs/Subscriber.js:89)
    at EventEmitter.Subject.next (node_modules/rxjs/Subject.js:55)
    at EventEmitter.emit (node_modules/@angular/core/src/facade/async.js:81)
    at Array.eval (node_modules/ionic-angular/transitions/page-transition.js:26)

The page I am trying to load includes @ViewChild(Content) content: Content; and in the template <custom-component [content]="content"></custom-component>. Inside the component.ts: @Input() content: Content; Although I do similar behavior on another page and this error doesn't happen.
Ionic info:
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.2
Xcode version: Not installed

Seems related to #9593 .
Rolling back to RC.4 seems to fix it.

Fixed! 🎉

@manucorporar Thanks for the fix.  Until this gets out in a release is there any workaround that we can use in our applications?

Untested patch attached, if using ionic-angular rc.5.
content.js.patch.txt

@cmorbitzer Thanks.  Looks pretty simple.  I will see if I can work up a way to monkey patch this into place.  We are current pulling from the public npm package for ionic-angular and I don't really know a good way to build our own to work around this bug.

I'm facing same issue and unfortunately patch (@cmorbitzer) doesn't resolve it. All the same I applyed patch and investigated what causes my issue comparing two pages. And result is:
Working page:
export class OrderDataPage {
  loading: boolean = true;
  ...

Not working page:
export class CategoryPage {
  loading: boolean;
  ...

and both have similar HTML:
<ion-content padding *ngIf="loading">
  <ion-spinner class="page-loader" name="crescent"></ion-spinner>
</ion-content>

<ion-content padding *ngIf="!loading">....</ion-content>

When I assigned default value loading = true; it began work.
Consider whether you have similar issue, if so my solution may help.

@tomaszczechowski I've experienced sporadic issues before using multiple <ion-content> tags in the same page. To fix it I refactored the code to use one <ion-content> and placed my different views in <div> tags. For example:
<ion-content padding>
  <div *ngIf="loading">
    <ion-spinner class="page-loader" name="crescent"></ion-spinner>
  </div>
  <div *ngIf="!loading">....</div>
</ion-content>

I'm getting this same error with 2.0.0. What's different is I'm trying to swap out two side menus.
<app-side-menu [myContent]="content" [nav]="nav" *ngIf="!sellerMode" (appModeChange)="onAppModeChange($event);"></app-side-menu>
<seller-side-menu [myContent]="content" [nav]="nav" *ngIf="sellerMode"></seller-side-menu>

<app-chat-menu [myContent]="content" [nav]="nav"></app-chat-menu>

<!-- Disable swipe-to-go-back because it's poor UX to combine STGB with side menus -->
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

sellerMode is defined as sellerMode: boolean = false; The error happens when I try switching it to true.

I seem to get this error randomly on certain navigation events. Haven't been able to pinpoint it more closely yet. Working on it...

Could this be related to attempting to get the scroll event (_scroll) when calling the _readDimentions in Content? There's no null check in this._scroll.ev on line 525 in my distribution. I'm not sure what would cause the property to become null as it is initialised in the contructor.

@chanoch look this link https://github.com/driftyco/ionic/issues/10186

Thanks Felipe, that's great. I will try the snapshot release
Chanoch
On Wed, Feb 8, 2017 at 1:44 PM, Felipe<EMAIL_ADDRESS>wrote:

@chanoch https://github.com/chanoch look this link #10186
https://github.com/driftyco/ionic/issues/10186
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/driftyco/ionic/issues/10045#issuecomment-278332314,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_MWa2jpPmsIBsYPJDJcp7KUjn2TZRhks5racbSgaJpZM4LkFNG
.


Samples from documentation are out of date for package 1.0.0

The samples in the docs uses an outdated code snippet. The correct snippets can be found on the dotnetmlupdate branch, so i guess an update of gh-pages should do the trick.

Fixed with a7c6fbac64e53b018ed93a3c95f3a733b64cedee


ShellGPT Running Linux Commands in Windows

I use ShellGPT directly on windows, since Ollama is now available for Windows without WSL2.
I Installed Ollama on Windows 11 Pro and config the file to disable OpenAI API args and use local models which is litellm for using local models.
Now while it was able to run great for general knowledge, chatting and learn commands (to the extent), but the main issue is that Im aware that ShellGPT is designed for Linux while using local models, I could use OpenAI but I dent want to pay for it.
However when I use the "--shell" to ask and execute for me, it did generate a command but it wont execute correctly since I noticed it was mainly designed for Linux if Im not mistaken, heres an example it tried running on Normal Windows PowerShell
PS C:\Users\CyrixJD115> sgpt --shell "create a text file in the root of C:\ drive, and append the text file 'Hello world' and named the text file 'sgpt_test'"
$Content = "Hello world"
New-Item -Path "C:\sgpt\_test.txt" -ItemType File -Force || Set-Content -Path "C:\sgpt\_test.txt" -Value $Content -Force
[E]xecute, [D]escribe, [A]bort: E
Hello : The term 'Hello' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:12
+ $Content = Hello world
+            ~~~~~
    + CategoryInfo          : ObjectNotFound: (Hello:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\CyrixJD115> sgpt --shell "create a text file in the root of C:\ drive, and append the text file 'This_is_power' and named the text file 'sgpt_test'"
$Content = "This_is_power"
# or in one command
New-Item -Path "C:\sgpt_test.txt" -ItemType File -Force -ErrorAction SilentlyContinue; Set-Content -Path "C:\sgpt_test.txt" -Value "This_is_power" -Force
[E]xecute, [D]escribe, [A]bort: D
Creates a new file named "C:\sgpt_test.txt" with the content "This_is_power", using New-Item to create the file if it doesn't exist and Set-Content to write the content, both with force creation and error
silence.

 • New-Item: Creates a new item in the file system.
    • -Path "C:\sgpt_test.txt": Specifies the path of the new item.
    • -ItemType File: Sets the type of the new item as a file.
    • -Force: Forces creation of the item even if it already exists.
    • -ErrorAction SilentlyContinue: Continues execution silently if an error occurs.
 • Set-Content: Sets the content of an existing file.
    • -Path "C:\sgpt_test.txt": Specifies the path of the file to update.
    • -Value $Content: Sets the new content of the file, which is a PowerShell variable in this case.
    • -Force: Forces writing to the file even if it's read-only or doesn't exist.
[E]xecute, [D]escribe, [A]bort: E
This_is_power : The term 'This_is_power' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:12
+ $Content = This_is_power
+            ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (This_is_power:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

((Or look at the Image))

While this is an issue for windows version of Ollama when ShellGPT is not "generating" correctly for windows, when its doing in Linux when Ollama was only designed for MacOS or Linux, but now its availble for Windows. Look below for proof its availble for windows
https://ollama.com/download/windows

It would be awesome if this issue can be resolved, or Im doing something wrong let me know, thank you

Could you try
sgpt --chat "What is your purpose?"
When sgpt explains his purpose he tells you what operating system and shell his system prompt is configured for.
I had a problem where it detected the os and shell wrongly, because I run it in a container.
Fixed it for me in following PR: #540


Initial setup

What we need to do in this repo:

[ ] Check other forks of the original softprops repo for some possible not-yet-upstreamed changes
[x] Update to the latest stable Rust edition (and possibly fill all missing versions)
[ ] Setup CI (possibly GIthub Actions-based). We need to keep up-to-date Docker images with the latest releases of Rust (at least stable. Nightly builds also can be created but that's not critical FMPOV)
[x] Setup Docker Image hub (I didn't find how to set up a free organization on Docker Hub so we need to create a separate user)
[x] Update README and other possible references to the old repo
[ ] Contact with AWS people to set up references to this repo in their repos/guides/etc

If anyone sees something missing in this list - feel free to mention it!
Any help is really appreciated.

Looks like the Dockerhub user/API credential aren't in the repository environment secrets for use in GH actions. @ZaMaZaN4iK I assume you have the username/password - can you grab an API cred and put them both in the repo's secrets?

Sorry for that. I've just added docker_username and docker_password secrets for the repo.


Add reduction related content to documents

https://advanced-micro-devices-demo--248.com.readthedocs.build/projects/hipTensor/en/248/

Hi @ROCm/rocm-documentation , could anyone help me to review this PR?

Please let me know if you want to discuss removing the what-is-hiptensor.rst file

Hi @lpaoletti , thanks for reviewing the PR. The file has been removed. Could you review it again?

Hi @lpaoletti, the documents have been modified according to your suggestion. If there are no issues, could you approve it? Thanks. 😃


Multi GPU (WIP)

Multi GPU implementation(Multi tower, averaging gradient)

I will squash commits after review completed. :)

@nakosung GitHub takes care of squashing during merge, don't worry about that :)

FWIW, I've tried running this branch on an Amazon p2.8xlarge (with 8 GPUs) and I am finding that while all GPUs log full memory utilization, the volatile gpu-util from nvidia-smi stays at 0% across all of them and the training time per step is the same as with a single GPU (~3 seconds).

@astanway Actually this branch does additional minibatch, so you should tweak your learning rate and batch size to determine whether this branch works or not.

This PR is marked as WIP. Are there any things not finished yet? (besides conflicts resolving)
Also, have anyone had a chance to test this PR on multi GPU setup? @astanway  @nakosung

Hi @nakosung , did you have some model that trained by this multiple GPU code? Is the results the same good as single GPU?

@weixsong I haven't generated samples with multi-node version, but I think it should not differ from single-node version because its loss seemed good enough.


Transition initializer to instance-initializer

Calls to container.lookup trigger the following deprecation warning:
DEPRECATION: `lookup` was called on a Registry. The `initializer` API
no longer receives a container, and you should use an
`instanceInitializer` to look up objects from the container.
See http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers
for more details.
  at Object.Registry.lookup (http://localhost:7357/assets/vendor.js:12215:36)
  at Object.<anonymous> (http://localhost:7357/assets/vendor.js:94544:45)
  at Object.__exports__.default [as load] (http://localhost:7357/assets/vendor.js:95767:20)
  at Object.initialize (http://localhost:7357/assets/myapp.js:11011:32)
  at http://localhost:7357/assets/vendor.js:14881:23
  at http://localhost:7357/assets/vendor.js:14908:9
  at visit (http://localhost:7357/assets/vendor.js:12793:5)
  at DAG.topsort (http://localhost:7357/assets/vendor.js:12904:9)
  at _emberRuntimeSystemNamespace.default.extend._runInitializer (http://localhost:7357/assets/vendor.js:14907:13)

As a consumer of this library in it's current state, the deprecation warnings drown out all other output (including other deprecation warnings).
I'm sure there are some changes that will have to be made in the build process, documentation, and version of the library, but this is a good start.

see #602 etc.


Undefined variables in a node environment cause testing issues

Expected Behavior
Expecting to be able to use materialize in a Node environment when testing code. Currently, I am required to create 3 global variables in my Mocha/Node testing environment for materialize to not fall on it's face.
Current Behavior
Doing a simple require of materialize in a node/mocha testing environment results in an error:

Note: Line 60 of the setup file is just const Materialize = require('materialize-css')

my-project/node_modules/materialize-css/dist/js/materialize.js:1070
  M.jQueryLoaded = !!window.jQuery;

ReferenceError: M is not defined
    at my-project/node_modules/materialize-css/dist/js/materialize.js:1070:3
    at Object.<anonymous> (my-project/node_modules/materialize-css/dist/js/materialize.js:1071:3)
    at Module._compile (module.js:660:30)
    at Module.replacementCompile (my-project/node_modules/nyc/node_modules/append-transform/index.js:58:13)
    at module.exports (my-project/node_modules/nyc/node_modules/default-require-extensions/js.js:8:9)
    at Object.<anonymous> (my-project/node_modules/nyc/node_modules/append-transform/index.js:62:4)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (my-project/test/setup.js:60:21)

Fixed by setting a global environment variable of global.M = {};
my-project/node_modules/materialize-css/dist/js/materialize.js:2131
})(cash, M.anime);
   ^

ReferenceError: cash is not defined
    at Object.<anonymous> (/my-project/node_modules/materialize-css/dist/js/materialize.js:2131:4)
    at Module._compile (module.js:660:30)
    at Module.replacementCompile (/my-project/node_modules/nyc/node_modules/append-transform/index.js:58:13)
    at module.exports (/my-project/node_modules/nyc/node_modules/default-require-extensions/js.js:8:9)
    at Object.<anonymous> (/my-project/node_modules/nyc/node_modules/append-transform/index.js:62:4)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/my-project/test/setup.js:60:21)

Fixed by setting a global environment variable of global.cash = $; (Note $ has been required)
my-project/node_modules/materialize-css/dist/js/materialize.js:1044
      if (els instanceof Element) {
                         ^

ReferenceError: Element is not defined
    at Function.init (my-project/node_modules/materialize-css/dist/js/materialize.js:1044:26)
    at Function.init (my-project/node_modules/materialize-css/dist/js/materialize.js:11847:84)
    at my-project/node_modules/materialize-css/dist/js/materialize.js:11876:9
    at Object.<anonymous> (my-project/node_modules/materialize-css/dist/js/materialize.js:11877:3)
    at Module._compile (module.js:660:30)
    at Module.replacementCompile (my-project/node_modules/nyc/node_modules/append-transform/index.js:58:13)
    at module.exports (my-project/node_modules/nyc/node_modules/default-require-extensions/js.js:8:9)
    at Object.<anonymous> (my-project/node_modules/nyc/node_modules/append-transform/index.js:62:4)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (my-project/test/setup.js:60:21)

Fixed by setting a global environment variable of global.Element = class Element {};
Possible Solution
Verify that all variables have been defined and are not being assumed elsewhere
Steps to Reproduce (for bugs)

Have a node/mocha environment
In a mocha test, require Materialize
Attempt to run the test

Context
Just trying to run test without extra overhead
Environment
OS: macOS High Sierra (v10.13.2)
Environment: Node (v9.3.0)
Testing Framework: Mocha (v4.1.0)
Materialize Version: 1.0.0-alpha.3 (occurs in alpha.1 & alpha.2 requiring an explicit need for anime.min.js)
Project: Unable to disclose

issue's still there, I had to add those same 3 var declarations.  thanks for pointing out whats up shadedesignz.


Fixes #1951: Add a QuestionnaireResponse tab to the Questionnaire resource page

🤖 Generated by Copilot at 8794c74
Summary
📝🗂📊

This pull request adds a new feature to the app: the ability to view questionnaire responses for a given questionnaire resource. It creates a new component QuestionnaireResponsePage and a new route in AppRoutes, and adds a new tab to the ResourcePage component.

QuestionnaireResponse is the key to your doom
You can't escape the data that they consume
They fetch and display your secrets in a table
You're just a resource, a reference, a label

Walkthrough

Add QuestionnaireResponsePage component to render a table of questionnaire responses for a given questionnaire resource (link, link, link)
Update ResourcePage component to include a QuestionnaireResponse tab for Questionnaire resources (link)

Coverage: 94.205% (-0.06%) from 94.26% when pulling 0d245e86efe0728aca025d82b901b0ef1cf07cf2 on tony-add-questionnaire-tab into 9582548d08805d68dd0a1d29462b461e9636e057 on main.


  We need to either get text chat working a bit better (in particular, people with appropriate authority should be able to easily add people to this kind of semi-private channels) or else make the link to slack work again.

What's our current plan for this, @jon-bell ?  (If both alternatives are equally easy at this point, I think the slack link may be more reliable for ICFP.)

I will set it up with slack next week

I just connected it to slack

Great!!
Do we want to keep the connection to slack long-term?  Or should we re-open this issue for later to remind us to pull it into Clowdr?

I am not sure what we want long term. Unless there are significantly better notifications in Clowdr, I assume people will continue to want slack.


RegressionStudy: study.run() gives no printout of progress

Description
The RegressionStudy gives no output as it is running (on the tutorial_04_regression.ipynb) The notebook takes around 30-40 minutes to run on an M1 Max chip, and some feedback that the process
is running would be reassuring for less confident users.

The RiskEstimationStudy and ClassiferStudy classes both give a good output of the steps being taken, with a final output on the best model. it would be good to replicate this.

Are you interested in working on this improvement yourself?

No, I am not confident enough yet.

Additional Context
screenshots of the outputs of the ClassiferStudy attached to clarify what is helpful (running on colab).
Screenshot of the RegressionStudy running locally with no output (and some warnings)
Thank you for your work.

I can confirm that this issue occurs on colab and locally.


Allow for nullable subscriptions

In a project of mine I've encountered at a few places that I'm not able to write the following code.
subsink.sink = foo?.observable$.subscribe();

Which while this is very much a convenience lib (at least to me) I think this would make the library even more convenient. Looking through the source code it appears that injecting adding pretty much any type of value is supported by the unsubscribe method because it does all the checks in run time.

LGTM


Match with max width

Closes #1838.
Closes #1839.

@nrc Thank you for the review! Updated and rebased with using enum.

Thanks, I like the change!


Epoll Not resoloved

I tried using this and it gives me an error that epoll cant be resolved to a type and the imports arent resolved because it doesn't know what epoll is I followed all the steps correctly yet It doesn't recognize it it also doesn't know what oshi import is.

This is not an issue with this project. Please check your build path and project structure and make sure that the required libraries are present. Make sure you follow the tutorial or documentation properly.

This is not an issue with this project. Please check your build path and project structure and make sure that the required libraries are present. Make sure you follow the tutorial or documentation properly.

I did follow everything correctly but where can I find epoll? cos in the build path everything is there except for anything that has epoll

Never mind i had the wrong mcp version installed.


sankaku complex picture download over 1000

What steps will reproduce the problem?
sankaku complex wont download over 1000 pictures
What is the expected behavior? What do you get instead?
nothing it just wont download more
How often does this problem occur?
all the time i guess?
What version of the program are you using? On what operating system?
5.2.3 on win 10
Please provide any additional information below

You need to have date in your Filename.
OR
search for your last downloaded pic on Sankaku Channel (e.g. with iqdb.org or md5 hash) and look when it was uploaded.
After that, start downloading till you reach page 1000. In my example we are using yuri as tag.
Once you're done, look which date the last pic that was downloaded has. Mine is 26.07.2014.
Then I start a new Batch Job using this as tag yuri date:<=27.07.2014
Now Sankaku Complex will download all images which were uploaded before 27.07.2014;)
replace it with your data

lol you're the same person from back then. I also switched from danbooru downloader. But this method works with both programs

Do you mean you cannot download more than 1,000 images or you cannot download images past page 1,000?
From your message, it seems to be 1,000 pictures but I know that Sankaku has a 1,000 pages limitation, which would limit the images to 20,000. There was actually a way to bypass this in previous Grabber versions but it seems it was broken by the 5.2.0 update.

BTW, is there any specific reason you switched from Nandaka's Danbooru Downloader?

awesome I didn't know that :o
Danbooru Donloader is totally inferior to grabber.  And sankaku didn't work properly for me. You're program has soo much more features (like being able to display specific tags in filename) and is really sophisticated, that's why I like perfectionists. But I'm really thankfull for his pixiv downloader :D

bionus the reason why i switched from danbooru downloader to grabber bcause login cookies of sankaku complex always stops randomly and later on when reaching 1000 pics page 50 or so

how can i do the packing_enable to false in your settings. and which program danbooru downloader or image grabber?

Here's Grabber's issue tracker, so we're talking about this program. I have no idea how Nandaka's Danbooru Downloader works.
You can edit your settings.ini file (in C:/Users/%USERNAME%/AppData/Local/Bionus/Grabber) and add a line just after [General] containing packing_enable=false.

okay i have found general in setting.ini but what line do i add and where?

I'm confused. Where are the 1000 pages from? The limit is 50 pages, after that you need special indexing.

I'm confused. Where are the 1000 pages from? The limit is 50 pages, after that you need special indexing.

If you're logged in, it goes up to page 1,000 from what I remember. Else, it's indeed 50 pages, but the "special indexing" you mention is supported by Grabber and it will switch to it as long as you also download the page before (as with it, it's required to load page 50 to get results from page 51).

Also is there a way to make it continuously download? Seems pretty weird that it has to first visit all pages and only then start downloading, pretty much means you gotta stop at some reasonable number. What if you want everything in order:quality, or a couple million?

That's what packing does, it starts downloading images every time Grabber has n images to download. It's set to 1,000 images by default, so it downloads pages by packs of 50, but if you really want to lower it it's possible. But I don't really see a reason to do it.

did something happened to grabber? bcause it wont download complete set of pics that comes from sankaku complex

Maybe you can give more context, because I just finished downloading a bunch of images from Sankaku.

acerola from pokemon has 439 pics on sankaku and yet it only download 273 of 439 that never happened until today after new update

wtf i got banned from sankaku what did i do?


[Protected] Report 2000030 "Import CODA Statement" - InStr, FileName (BE localisation)

We would like to save the imported CODA Statement file and link it as attachment to the CODA Statement record. Therefore, we need to have access to the stream / filename of the imported CODA Statement file in report 2000030 "Import CODA Statement".
Can you please put following 2 globals variables as protected, so we can access them via a report extension?
protected var
        InStr: InStream;
        FileName: Text;

For my reference:

Currently solved by copying the report and setting the variables stated in a singleinstance codeunit via the OnPreReport trigger.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 12965.


httpd: Basic alias support for git

Allows cloning via git using an alias instead of the full RID.
Eg. git clone https://seed.radicle.xyz/heartwood.git

Yeah but that's trickier due to potentially duplicate names. This is also a bit more flexible, allowing multiple aliases per project as well as aliases different from the project name.

Ah of course, makes sense :+1:


add mining centralizaiton panel to resources page

This PR simply adds a great panel @rrybarczyk @moneyball @thebluematt and @russeree did during Nashville conference couple of weeks back.
Great work everyone involved!
I've put it on the top, since I feel it really encapsulates the WHY Stratum V2 matters, without being too aggressive about the message.

Discussion:
We should use this key communication points from this panel to improve the website as well.

Problem: Decentralizaiton as an important property of bitcoin, with mining centralizaiton still being the isssue
Solution: Is there a hope to solve this?
Solution implementation: How to get there?
Other topics:

Private mempools (transaction selection)
FFPPS payout method as centralizing force (mining pools as brands (proxies) for other larger pools)
Fee component of mining revenue increasing vs the block subsidy
Hardware vendors and centarlizaiton risk

Related (wrt key communication points) https://github.com/stratum-mining/stratumprotocol.org/issues/222


Disable download of files

stop handling downloads
show error page
related to #644

In addition to not allowing new downloads (that's how I read "stop handling") should it also terminate the running ones?


Determin container working directory correctly

Given
FROM alpine
WORKDIR /work

Build with Kaniko!
[container]
image = "custom-image"

When:
container-do ls

Expected: Output /work
Actual: Output /
Funny enough, the second run (with the container still running) works as expected!

Analysis: Kaniko doesn't seem to fill .ContainerConfig(.WorkingDir) in the same way as docker. We were probably wrong in using it in the first place.
--> use .Config.WorkingDir instead.

Done; will be released with 1.2.3.


[SUPPORT] How to run org.apache.spark.sql.execution.benchmark.LSMTimelineReadBenchmark ？

As the title says, I want to know how to run the file named “hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/execution/benchmark/LSMTimelineReadBenchmark.scala”  in spark to test LSMTimline.
Unfortunately, I don't know much about hudi testing yet.
The content of LSMTimelineReadBenchmark.scala is as follows:
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.spark.sql.execution.benchmark

import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.Path
import org.apache.hudi.DummyActiveAction
import org.apache.hudi.client.common.HoodieJavaEngineContext
import org.apache.hudi.client.timeline.LSMTimelineWriter
import org.apache.hudi.common.model.{HoodieAvroPayload, HoodieCommitMetadata, HoodieTableType, WriteOperationType}
import org.apache.hudi.common.table.timeline.TimelineMetadataUtils.serializeCommitMetadata
import org.apache.hudi.common.table.timeline.{ActiveAction, HoodieArchivedTimeline, HoodieInstant, LSMTimeline}
import org.apache.hudi.common.testutils.{HoodieTestTable, HoodieTestUtils}
import org.apache.hudi.config.{HoodieIndexConfig, HoodieWriteConfig}
import org.apache.hudi.index.HoodieIndex.IndexType
import org.apache.hudi.table.HoodieJavaTable
import org.apache.spark.hudi.benchmark.{HoodieBenchmark, HoodieBenchmarkBase}

import java.util
import scala.collection.JavaConverters._

object LSMTimelineReadBenchmark extends HoodieBenchmarkBase {

  /**
   * Java HotSpot(TM) 64-Bit Server VM 1.8.0_351-b10 on Mac OS X 13.4.1
   * Apple M2
   * pref load archived instants:              Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
   * ------------------------------------------------------------------------------------------------------------------------
   * read shim instants                                   18             32          15          0.1       17914.8       1.0X
   * read instants with commit metadata                   19             25           5          0.1       19403.1       0.9X
   */
  private def readArchivedInstantsBenchmark(): Unit = {
    withTempDir(f => {
      val tableName = "testTable"
      val tablePath = new Path(f.getCanonicalPath, tableName).toUri.toString
      val metaClient = HoodieTestUtils.init(new Configuration(), tablePath, HoodieTableType.COPY_ON_WRITE, tableName)

      val writeConfig = HoodieWriteConfig.newBuilder().withPath(tablePath)
        .withIndexConfig(HoodieIndexConfig.newBuilder().withIndexType(IndexType.INMEMORY).build())
        .withMarkersType("DIRECT")
        .build()
      val engineContext = new HoodieJavaEngineContext(new Configuration())
      val writer = LSMTimelineWriter.getInstance(writeConfig, HoodieJavaTable.create(writeConfig, engineContext).asInstanceOf[HoodieJavaTable[HoodieAvroPayload]])

      val startTs = System.currentTimeMillis()
      val startInstant = startTs + 1 + ""
      val commitsNum = 10000000
      val batchSize = 2000
      val instantBuffer = new util.ArrayList[ActiveAction]()
      for (i <- 1 to commitsNum) {
        val instantTime = startTs + i + ""
        val action = if (i % 2 == 0) "delta_commit" else "commit"
        val instant = new HoodieInstant(HoodieInstant.State.COMPLETED, action, instantTime, instantTime + 1000)
        val metadata: HoodieCommitMetadata = HoodieTestTable.of(metaClient).createCommitMetadata(instantTime, WriteOperationType.INSERT, util.Arrays.asList("par1", "par2"), 10, false)
        val serializedMetadata = serializeCommitMetadata(metadata).get()
        instantBuffer.add(new DummyActiveAction(instant, serializedMetadata))
        if (i % batchSize == 0) {
          // archive 10 instants each time
          writer.write(instantBuffer, org.apache.hudi.common.util.Option.empty(), org.apache.hudi.common.util.Option.empty())
          writer.compactAndClean(engineContext)
          instantBuffer.clear()
        }
      }

      val benchmark = new HoodieBenchmark("pref load archived instants", commitsNum, 3)
      benchmark.addCase("read slim instants") { _ =>
        new HoodieArchivedTimeline(metaClient)
      }
      benchmark.addCase("read instants with commit metadata") { _ =>
        new HoodieArchivedTimeline(metaClient, startInstant)
      }
      benchmark.run()
      val totalSize = LSMTimeline.latestSnapshotManifest(metaClient).getFiles.asScala
        .map(f => f.getFileLen)
        .sum
      println("Total file size in bytes: " + totalSize)
    })
  }

  override def runBenchmarkSuite(mainArgs: Array[String]): Unit = {
    readArchivedInstantsBenchmark()
  }
}

Just run it in local as a UT.

@danny0405 I am so sorry, but I still don't know how to run it in local as a unit test. Could you teach me, please.
I read the Readme.md of Hudi and there are some information about test, as shown in the image below. I don't know whether I should run these command without any modification. I sincerely hope you can give me some concrete instruction. Looking forward to your reply.

I'm using IDEA and just click the run button.

@danny0405 大佬您好，我使用的是学校的服务器（ubuntu）搭建的这个hudi，我自己用windows的电脑用ssh软件连接的，我想我应该可以在我的windows电脑上远程连接服务器上的这个hudi然后来运行吧

@danny0405 I looked at your homepage, you should be Chinese, so I spoke Chinese, of course, if you don't like this, or in English communication
I see a web page, I don't know if according to this web page to match up hudi development environment:

https://hudi.apache.org/contribute/developer-setup/

You can just run the benchmark on local env. And you can switch the table dir to the storage you already set up to, the execution can always be in local.


fix(dom): place eventHandler on all elements for nonBubbling events

Original code only selected first element for place nonBubbling event handlers, this update applies event handlers for all elements associated with selector.  I also consolidated around fixed some inconsistencies like including 'assert' dep and using typescript v3.2.4 which allows all tests to pass.
ISSUES CLOSED: #893

[x] There exists an issue discussing the need for this PR
[ ] I added new tests for the issue I fixed or built
[x] I used pnpm run commit instead of git commit

Dunno why it failed... passed for me locally

Mistakenly closed

@ntilwalli Thanks for finding this and fixing it! My only concerns are meta-issues, otherwise I'm glad to merge this fix. First we got to get the CI green on master branch (it fails not just for your PR), and then we need some changes to this PR:

There should be a chore commit that only updates TypeScript for all packages
There should be a fix(dom) commit dedicated to updating snabbdom
There should be a fix(dom) commit dedicated to fixing #894 and nothing else
Tests for #894 would be good to have

It's not absolutely necessary though. Writing a test for this seems rather easy, the only difficult part is figuring out how to simulate mouseover. Maybe there is another non-bubbling event that we can trigger

@staltz I can split up the commits, but a few questions...

Will you look into the CI issues after I split the commits?
I actually downgraded Typescript from 3.5 to 3.2 on master and master/dom to get the dom tests to pass.  Should I apply that change for all packages?  Upgrading and the requisite typing fixes seems like a lot of work.  I'm not conversant with Typescript typings, I'm an any-addict
I also added an assert-package devDependency, should that be it's own commit or can that be rolled in with the snabbdom fix?

Commit broken into three different PRs, typescript, deps and nonBubblingFix


ENTESB-9795 Support Running on Java 11/wildfly-camel-examples

Issue https://issues.jboss.org/browse/ENTESB-9795
Added profiles allowing to build quickstarts in java 11 and also small changes in README.mds (typically wrong configuration file used in starting server command or removal of unnecessary step from uninstall steps)

This  PR doesn't make sense until WFC works on jdk11, closing PR.


"Open database object" / F4 it's not working for partitioned tables in PostgreSQL

System information:

macOS Big Sur 11.4
DBeaver 21.0.5

Connection specification:

PostgreSQL 11.9

Describe the problem you're observing:
"Open database object" / F4 it's not working for partitioned tables. It does nothing
Steps to reproduce, if exist:
Run
CREATE TABLE measurement (
    city_id         int not null,
    logdate         date not null,
    peaktemp        int,
    unitsales       int
) PARTITION BY RANGE (logdate);

CREATE TABLE measurement_y2006m02 PARTITION OF measurement
    FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');

CREATE TABLE measurement_y2006m03 PARTITION OF measurement
    FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');

Reconnect and try to open measurement table or any of its partitions.

I cannot reproduce it in DB Navigator and SQL Editor.
https://user-images.githubusercontent.com/51405061/120074154-2aca4280-c0a4-11eb-8494-0dfa19e80ffc.mov
Can you open other objects? Open an object by double-click/via context menu?
Please also try Fn+F4.
If nothing helps, please send logs and a video.

Hi @kseniiaguzeeva ,
From Database Navigator it works for me also. See attached video when it's not working. This is happening only for partitioned tables.
https://user-images.githubusercontent.com/6136404/120075645-daa2ae80-c0aa-11eb-8d24-7dc02b72afc2.mov

I could reproduce it. Thank you for the report. As a workaround please add schema_name before a table_name.

Fixed in DBeaver 21.2.1

Verified


🛑 fenced comments clashing with markdown headers

This proposes an initial solution to #11 .

a346a3d provides a possible solution to #11 .

Closes #11


[CHORE] Migrate from travis-ci to github-actions

What needs to be done
Currently we are using travis-ci to do a few things automatically. We should migrate to github actions instead.
Additional context
I'd like to do this mainly to keep everything in 1 place (github), and also we can leverage open source actions.
Please post here before opening any PR :)

I'd like to give a hand in this issue since I'm already juggling with them in fCC's repo for a few days

Awesome thanks :D
If you can think of other things to "tack on" we can open issues to add those later too (I've been trying to think of easier stuff for beginners to do to help contribute to the bot)

Can I try at it? I am not really sure what needs to be done but I think I can do it with a little explanation.

@LandonLloyd Your welcome to try it out, I'm seeing us use more github actions in the future, so even if @Twaha-Rahman gets their PR in before you it would be a good learning experience. However, whoever submits a working PR first, will be the one we will merge, since its been a day or so.
Just be sure to have the github-actions working on your fork  so we can know if its working or not before merging

Ok. I have no idea what I am doing but I will google and see what I can figure out!

@LandonLloyd let me know they aren't 100% sure if they can do this, but they are using this issue as a learning experience. In the mean time going to remove them as assigned just in case. 😄
@Twaha-Rahman any updates on this PR BTW? Now rush, just curious, as I personally like the idea of using github-actions rather than travis-ci, however the migration probably isn't seamless. We also could use other workflows, and was just wondering **if you had any ideas of what else to automate in this project?
(I may open an issue specifically for "brain storming" github-action integration ideas)

Sorry @bradtaniguchi , completely forgot about it. 😅
I moved the Linting and Testing part to GitHub Workflows.


State set by Chainlit before call to auth provider is not base64 encoded

Describe the bug
AWS Cognito requires that calls to /oauth2/authorize endpoint must have the state parameter base64 encoded https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html#get-authorize .
Chainlit however simply creates a 32 character state randomly without encoding the string to base64. https://github.com/Chainlit/chainlit/blob/main/backend/chainlit/server.py#L370
This issue occurs randomly whenever the 32 character state has characters not typically found in a base64 string (like $,%,^).
To Reproduce
Steps to reproduce the behavior:

Go to an endpoint running Chainlit with auth providers configured. I tested this with AWS Cognito.
Start inspecting the network calls on the browser.
Try to login through Cognito. Continue with the authorization flow.
Observe the calls made to /oauth2/authorize.
Check the state parameter set in the location header in the response received from the Chainlit application.
If the state parameter has special characters, observe the 400 bad request error code from calls to the Cognito domain.
Retry steps 1-6 above and expect the calls to /oauth2/authorize succeed when state parameter no longer has special characters.

Expected behavior
The expectation is that Chainlit encodes the string to base64 before setting it as the state and call the configured auth providers.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Browser [e.g. chrome, safari] Firefox, Chrome
Version [e.g. 22]

This has affected and prevented us from using AWS Cognito.
https://github.com/Chainlit/chainlit/blob/main/backend/chainlit/secret.py#L5
The ^ character is not accepted by AWS Cognito in a value to the state during /oauth2/authorize. We monkey-patched the issue for now. By including this in our chainlit app.
from chainlit import secret

# We have to do this because, `^` in the OAuth /authorize step
# trips up AWS Cognito. So we are monkey-patching out this
# character.
# FIXME: Remove this monkeypatch once chainlit fixes it
secret.chars = secret.chars.replace("^", "")

Looking forward to a long-term fix!


feat: Deck State Representation and Visualization

Overview
Does the Opentrons Python API have a native format for representing or visualizing the full deck state? I’m looking to print out deck layouts during protocols and potentially create a tool to visualize the deck setup before running a protocol. Any insights on accessing or creating a comprehensive deck state representation would be appreciated.
Implementation details
No response
Design
No response
Acceptance criteria
No response

Thanks for the feedback, Lenni! We've heard this request from other users and a dedicated feature for exporting deck maps is on our roadmap.
In the meantime, the best workaround is:

Go to protocol details or run setup in the Opentrons App to view the deck map.
Maximize the app window on your largest display.
Select View > Zoom In several times to enlarge the entire display size of the app.
Take a screenshot.

With this method I've been able to get deck map images that are about 2000 pixels square, which is pretty good unless you're trying to make a large poster.


type annotation for createInstance() not prepared for lacking callback

This is analogous to https://github.com/googleapis/nodejs-bigtable/issues/564 which describes the same problem for getInstances().

Fixed by #650

Not sure if this has really be resolved. Using the 3.0.1 release and I still have to do
//@ts-ignore
yield call([instance, "exists"]);

where instance is an object of type Instance from this package. The code works; without the //@ts-ignore we get
  The last overload gave the following error.
    Argument of type '(string | Instance)[]' is not assignable to parameter of type '{ context: unknown; fn: (this: unknown, ...args: any[]) => any; }'.

63       const result = yield call([instance, "exists"]);
                                   ~~~~~~~~~~~~~~~~~~~~

  ../../node_modules/@redux-saga/core/types/ts3.6/effects.d.ts:499:17
    499 export function call<Ctx, Fn extends (this: Ctx, ...args: any[]) => any>(
                        ~~~~
    The last overload is declared here.

Found 1 error.

Now, in yield call([instance, "exists"]); the call() is from redux-saga, and call([instance, "exists"]) is precisely the recommended method to call a method on a class, also see https://github.com/redux-saga/redux-saga/issues/27.
Not sure who or what is to blame here, so please bear with me :).


This will increase the download speed, add a backup and protect the project from GitHub problems.

... I think all dxvk developers have local clones of the repository (git is distributed in its very nature anyway), so even if let's say disaster would strike and GitHub would suddenly vanish off the face of the world, it wouldn't be that big of a problem. Anyway, just my 2 cents.

There's even an ancient version of DXVK in GitHubs arctic vault, so even if civilization ended, we could still render D3D11 games on Linux. :)


feat: add pipeline and jinja transform template

Hi All! Sorry for the late pull request; Ive created the boilerplate code for the pipeline and SqlTransform class for the jinja files.


Implement group commit into journal

Thinking about contributing to this, what's the plan? I assume something along the lines of:

Create a transaction ID
Mark journal entries with the transaction ID
Create transaction completed journal event with the transaction ID

That should allow multiple active transactions to interleave. The main question is binary compatibility in the journal, is that a concern?


Adding one separator less than the number of visible columns

Fixing #1716 by adding one separator less than the number of visible columns

@gerasimovroman
Sorry to see you late.
If you resolve PR, it will be merged.
The code has been verified. Thanks PR.


Add example with saving packets to different files

This PR adds an example of using Capture::dead() to save packets from an active Capture to different files.
Reason
Splitting the PCAP stream (either in-flight or from an existing file) is a common task, and currently, no example covers it. If a user tries to create SaveFile from the same active Capture, errors are not helping a lot (current errors are about mutable and immutable borrows, while the right approach - create new Captures with a dead parameter).

Switched from infinite loop to just 5 files. You're correct, for this example's purposes it's fine, and most likely we don't want some example running forever.

Now you can use the for loop count instead of doing your counter manually :p

Thanks, updated. :)


reCaptcha enterprise

Does the lib support passing enterprise: 1?
And what does it do with parameters it doesn't know? Does it send it too or remove it from the request?

@TheGP Yes, supports enterprise: 1:
solver.recaptcha({
    pageurl: 'https://2captcha.com/ru/demo/recaptcha-v2-enterprise',
    googlekey: '6Lf26sUnAAAAAIKLuWNYgRsFUfmI-3Lex3xT5N-s',
    enterprise: 1
})
.then((res) => {
    console.log(res);
})

Unknown parameters should also be sent to the API.


[next] Batch renderer fix O(N^2) memory problem

Better test it on bunnymark.

I made minimal size of buffer, 2 sprites (8 vertices, 12 indices). Is that fine, @GoodBoyDigital

@englercj could you take another look?


Protected space for \citeauthor

The hook tilde-cite complains that there is no tilde in front of \citeauthor.
To my knowledge, this is not necessary, as \citeauthor gives just the names, a line break in between doesn't matter.
The same holds probably for the other \\cite\w+ commands:
Text commands:
\citeauthor[〈pre〉][〈post〉]{〈key〉} author list
\citeauthor*[〈pre〉][〈post〉]{〈key〉} compressed author list
\citetitle[〈pre〉][〈post〉]{〈key〉} (short) title
\citetitle*[〈pre〉][〈post〉]{〈key〉} (full) title
\citeyear[〈pre〉][〈post〉]{〈key〉} year
\citedate[〈pre〉][〈post〉]{〈key〉} date
\citeurl[〈pre〉][〈post〉]{〈key〉} URL

see http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf

Hi, thanks for the report. That seems like an issue indeed. I can change the regex to [^~]\\cite\b, then it will only match \cite but not the other forms.


Added a link to my tutorial on Beehave

Description
Just added a quick link to my tutorial on Beehave
Addressed issues
Lack of beginner documentation

Thank you so much for this!


SDK 34 compatibility

Android 14 (SDK 34) removes the Android Beam feature (i.e., NDEF push), so it should be removed from this plugin:
https://developer.android.com/sdk/api_diff/34/changes/android.nfc.NfcAdapter

Already planned. Checking and discussing the changes directly in parent repo and PR https://github.com/chariotsolutions/phonegap-nfc/pull/508.
When ok for me, I'll do the PR here and merge, before a new release to follow quickly.

Released in v1.3.0-5, published to cordova-plugin-ns0m-nfc.


Android: Unable to navigate away from BB using back button

Hi,
Pixel 8 user here on BB app build 1.14.0-b.1.
The back button/gesture doesn't return to the home screen or previous app, in the case of sharing content to BlueBubbles.
It works to return from a chat to the chat list.

So to summarize:

Share to the app
Send the shared attachment
Use back button to return to original app
**Fails to because it just goes back to the chat list

Correct.

Well, this might be changed in the latest beta. In the latest beta, something with the SDK changed, and now it's harder to back out to the chat list after entering thru a notification. Maybe that's intentional and android/Google wants us to have the back button leave the app
@tneotia thoughts on this? Maybe what we thought was a bug is a feature now?


feat: support relative redirectUri

Closes #195

Closing. See https://github.com/denoland/deno_kv_oauth/issues/195#issuecomment-1758902903


Uninstall and remove certs

How do I uninstall letsencrypt_webfaction and remove SSL certificates it created?

You can remove the certs in the WebFaction control panel. To remove letsencrypt_webfaction, delete the relevant entries from your crontab, and then you can delete the $HOME/.letsencrypt_webfaction folder.


Fix a possible NULL pointer dereference in create_cert_store()

In create_cert_store(), X509_STORE_new() is called and there is a
dereference of it in following function X509_STORE_add_lookup()
without check, which could lead to NULL pointer dereference.
Fix this by adding a NULL check of X509_STORE_new()

This pull request is ready to merge

Merged to master and 3.0 branches. Thank you for your contribution.


Set PackageDownloadLocation as NOASSERTION in SPDX tag:value report formatting

Description
Currently, Tern reports the SPDX PackagetDownloadLocation of an image layer as the docker image repotag. This does not reflect the actual download location and there is no way for Tern to pinpoint the download location of an image layer. Therefore, we should assign the SPDX PackageDownloadLocation value as NOASSERTION in accordance with the 2.1 spec. We can also remove the get_download_location function in docker_image.py
Implementation

In tern/formats/spdx/spdxtagvalue/generator.py, remove the registry_repotag variable assignment in the following lines:

235         # The image's PackageDownloadLocation is from a container registry
236         # This includes all the layers but the packages' download location
237         # is unknown if the download_url is blank
238         registry_repotag = image_obj.get_download_location() if hasattr(
239             image_obj, 'repotag') else 'NOASSERTION'

In tern/formats/spdx/spdxtagvalue/generator.py, hardcode the PackageDownloadLocation value as NOASSERTION:

265                 PackageDownloadLocation=NOASSERTION,

In tern/classes/docker_image.py remove the definition for get_download_location() since it is not possible to get the actual location (dockerhub.io is not the actual location).

171     def get_download_location(self):
172         '''A docker image's download location is in the repotags. We will
173         return a string of repotags joined by a hyphen -'''
174         return '-'.join(self.repotags)

References
See above.

I'm interested to take this up.

@manaswinidas yeah! Go for it!

@nishakm Do I still have to follow the instructions mentioned in #449 for not getting the extra commits?

Never mind, I found my way :sweat_smile: but do I have to do this every time:cry: ?

Never mind, I found my way 😅 but do I have to do this every time😢 ?

I hope not! 😅
If you want to set up your local fork of tern to continue to contribute, follow the instructions here: https://github.com/nishakm/puns#how-to-submit-prs-with-your-github-fork
Everytime you need to submit a new PR you create a new branch to track the upstream master branch:
git checkout -b 451-my-changes --track upstream/master
When you need to update this because of a conflict or to pull in newly merged changes, run:
git pull --rebase
I hope you don't have trouble next time around.

@nishakm you were right about this. It worked perfectly fine! Thanks :tada:

Everytime you need to submit a new PR you create a new branch to track the upstream master branch:
git checkout -b 451-my-changes --track upstream/master


KAFKA-3235: Unclosed stream in AppInfoParser static block

Always close the stream

LGTM

LGTM

Cc @gwenshap

LGTM. Thanks for the ping :)


Mpi executor heartbeat

This branch brings in HighThroughputExecutor as a replacement for IPP and ExtremeScaleExecutor polishing out the MPI based executor designed for HPC systems.

At this point we can run <10K tasks somewhat reliably with both the HighThroughputExecutor as well as the ExtremeScaleExecutor. There are known issues that have been tagged appropriately and we can address that in separate issue branches.


Not JSON Serializable

Madam while running train.py from Deep-Learning/depth_estimation/ i received the following error
TypeError: 'Not JSON Serializable' while doing tf.keras.Model.save
after completing one epoch
On line:
basemodel.save(runPath + '/model.h5')
Using
Keras 2.4.4,
Tensorflow 1.13.1
Ubantu 18
Can you help?

I wanted to write the same but I found your issue first, Did you figure anything out?
If yes, can you pls share

女士，从 Deep-Learning/depth_estimation/ 运行 train.py 时，我收到以下错误 TypeError: 'Not JSON Serializable' while doing tf.keras.Model.save
完成一个纪元后
在线： basemodel.save(runPath + '/model.h5') 使用 Keras 2.4.4， Tensorflow 1.13.1 Ubantu 18
你能帮我吗？

Have you solved the error?


PDI example: fti_head no init value in Fortran source

In GitLab by @ksiero on Jul 30, 2021, 15:05
fti_head has no initial value in Fortran example

In GitLab by @ksiero on Aug 31, 2021, 11:02
Done in !379

In GitLab by @ksiero on Aug 2, 2021, 09:11
mentioned in commit e34233899ce781cc2f475a425cfcca3b2d144ba4


Don't put logofile on 404 page if it doesn't exist

Currently, if the parameter logofile is set to "", the 404 page shows a broken image. This modification updates the 404 page to follow the logic of header.html and only show the logo if it isn't empty.

Thanks!


Bug: Cursor does not turn into pointer when hovering over a popup/marker.

In the base maplibre library the cursor turns into a pointer/pointing hand when hovering over a popup.
See: https://maplibre.org/maplibre-gl-js/docs/examples/popup-on-click/
In svelte-maplibre this behaviour seems to be overriden somewhere? Since it only ever shows the panning hand.
See: https://svelte-maplibre.vercel.app/examples/custom_marker

If you look at the bottom of the example you linked you can see that it's actually changing the cursor by listening for mouse events on the marker layer.
You can accomplish the same thing with svelte-maplibre by using the hoverCursor prop on any Layer component.


Day312

Resolves #637.

Pull Request Test Coverage Report for Build 1204

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1194:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls

Pull Request Test Coverage Report for Build 1196

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1194:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls


Singaporean Cryptocurrency Analysis Completed

Pull Request for ML-Crate 💡
Issue Title:  Singaporean Cryptocurrency Analysis

Info about the related issue (Aim of the project) : Create a machine learning model to analyze the dataset of Singaporean Cryptocurrency.
Name: Avdhesh Varshney
GitHub ID: https://github.com/Avdhesh-Varshney
Idenitfy yourself: Contributor

Closes: #issue number that will be closed through this PR
closes #476
Describe the add-ons or changes you've made 📃

Checked for first dataset values out of 7537 datasets.
Checked for missing values and cleaned the data accordingly.
Analyzed the data, found insights and visualized them accordingly.
Found detailed insights of different columns with target variable using plotting libraries.
Train the datasets by different models and saves their accuracies into a dataframe.

Type of change ☑
What sort of change have you made:

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested? ⚙
Describe how it has been tested
Describe how have you verified the changes made
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

@abhisheks008 please review this pr and requested to merge this pr under KWOC

@abhisheks008 please again review this pr and requested to merge this pr under KWOC

Hi @Avdhesh-Varshney can you share your email with me in Discord for further communication regarding the KWOC event?

@Avdhesh-Varshney share your email ID

@Avdhesh-Varshney share your email ID

@abhisheks008
Email -<EMAIL_ADDRESS>


Fix Android/iOS compile for CURL

There are a few tests that the CMakeLists attempts to run on the host system. By setting the variables to what the result would be, it avoids this attempt and successfully compiles.
Tested on Android.

Thanks. Updated.

Testing:

https://ci.appveyor.com/project/ingenue/hunter/build/1.0.1086
https://travis-ci.org/ingenue/hunter/builds/169129812

Note that there is no iOS/Android toolchain in matrix, we do test only the fact that change doesn't broke old code. After this pull request will be merged feel free to send pull request to pkg.curl branch with uncommented iOS/Android entries.

Will be released with https://github.com/ruslo/hunter/pull/552


[eta] Use Eta ADTs from the Java side

I'm currently building a simple library to try stuff with Events.The idea is to have the library written in Eta, while allowing users to use it from Java.
A simplified version of the library could be something like this
data Event
    = ItemArrived String
    | ItemLeft String

eventStream :: Chan Event
eventStream = unsafePerformIO $ newChan

emit :: Event -> IO ()
emit = write eventStream

lastEvent :: IO Event
lastEvent = readChan eventStream

NOTE: Chan is used here just as an example, I'll use either Kafka, RabbitMQ or others.
The idea would be that a user of this library could use it from the Java side in a form like this for emitting events
Stream.emit(Event.itemArrived("foo"));

And in another place, someone could subscribe to it, for example, by implementing an interface.
public class Consumer implements EtaADTConsumer {
	public void eventArrived(Event event){
		if (event.instanceOf(ItemArrived) {
			ItemArrived e = (ItemArrived) event;
			System.out.println(e.$1);
		} else if (event.instanceOf(ItemLeft) {
			ItemLeft e = (ItemLeft) event;
			System.out.println(e.$1);
		}
    }
}

I don't mind losing type safety as long as I can get the data from the ADT. I can build some helper functions on top of that 😄

So I think this becomes easier if you take a look at how Eta generates the declarations above, we should eventually add what I write below in the docs:
Suppose this module occured in a package named event:
module A.B.C where

data Event
    = ItemArrived String
    | ItemLeft String

generates:
package event.a.b.c.tycons;

import eta.runtime.stg.DataCon;

public abstract class Event extends DataCon {}

package event.a.b.c.datacons;

import event.a.b.c.tycons.Event;

public class ItemArrived extends Event {
   public Closure x1; //Corresponds to the String
   // In x1, you can store an evaluated list OR you can store a *thunk* which eventually returns a list.
   public ItemArrived(Closure x1) {
      this.x1 = x1;
   }
}

Note that successive fields in an ADT are consistenly named xN where N starts from 1.
Now the question becomes, how do I construct lists since you need to supply a String = [Char].
data [a] = [] | a : [a]

Is pseudo syntax for how you would declare it. It goes through a process called Z-encoding to get the correspond Java method name. This declaration occurs in ghc-prim package in a module GHC.Types, hence:
import ghc_prim.ghc.types.datacons.ZMZN; // [] = ZMZN w/ Z-encoding
import ghc_prim.ghc.types.datacons.ZC; // : = ZC w/ Z-encoding
import ghc_prim.ghc.Types; // Exposes all the exported methods of GHC.Types in Z-encoded form as static methods
import event.a.b.c.tycons.Event;
import event.a.b.c.datacons.ItemArrived;

ZC string = new ZC(new Czh(48), new ZC(new Czh(49), Types.DZMZN()));
// Corresponds to 48 : (49 : []) = [48, 49] or using as ASCII table, "01"
Event e = new ItemArrived(string);

You may have noticed that I used Types.DZMZN() instead of new ZMZN(). The reason is that a singleton instance is generated for every nullary data constructor and the static method to retrieve that instance can be found in the corresponding module prefixed with a D.
Now let's say you wanted to call this method directly:
In package event:
module A.B.C where

emit :: Event -> IO ()
emit = write eventStream

Generates:
package event.a.b;

import eta.runtime.stg.Closure;
import eta.runtime.stg.StgContext;

public C {

  public static Closure emit(StgContext context, Closure x1) {
    // Implementation generated by the Eta compiler
  }
}

You can call this from Java with the Event e defined above as:
import event.a.b.C;

import eta.runtime.Runtime;

Closure result = C.emit(Runtime.getContext(), e);
// In this case, you can ignore the result since it will be of type unit, or an instance of Z0T (Z-encoding for 0-element tuples)

NOTE: Calling Eta functions directly by passing in the context like that will work only for pure functions and functions that don't throw exceptions or do concurrency.
For complicated functions that require Runtime support, you need to run Runtime.eval*() instead where you build up an expression (thunk) that performs something similar to what you want. The eval* functions setup a scheduling loop to schedule light weight threads, etc. if your code uses them.
For example, above you would have done:
Closure result = Runtime.evalIO(new Ap2Upd(C.emit(), e));

An Ap2Upd is a generic thunk that applies its first argument to the second one. C.emit() is overloaded - zero-argument version returns the function Closure and the multiple-argument version used in the former example represents a way to statically invoke it. The function Closure is used in higher-order function cases like map, etc.
Now you don't have to do any guess work or know Eta internals to remember all these rules. Compile some Eta code, and then decompile it so that it becomes easier to see the generated interface and work accordingly.
Hope that helps! I know that's a lot to keep in mind, hopefully we'll find ways to make this process easier. Or maybe it's just a matter of documenting it all and putting javadocs for the Runtime helper functions.

Thank you very much @rahulmutt !
Yes, it actually does look like something not trivial.
Off the top of my head, there are two possible workarounds:

Write a tool/library that allows generating Java classes directly if a datatype derives Generic. On one hand, this would make working with datatypes from the foreign side easier, but still, we have the problem of passing them to methods. Maybe this tool could also generate helper methods that wrap over Closure, Runtime.evalIO, Ap2Upd and such? Is it possible to have custom compiler hooks?

Allow exporting datatypes directly from the compiler, maybe using the @EXPORT annotation as discussed in #601 , allowing to pass them through the FFI as it would be a Closure, but from the foreign side it would be another name. Although I'm not sure if this is possible.

+1 to the @export anotation for data types, to make imports/exports balanced (cause this way you can import and export, methods/functions and data types)
The exporting could do the conversion  between eta internal classes to the closer representation possible in java, and with nice names.

@NickSeagull Just it case you missed the comment in the wall of text I posted: foreign exports do exactly that - construct the thunk to and execute the expression with evalJava. But right now foreign exports don't let you put Eta types in the type signature so that's one restriction we can relax. Let's explore what the semantics will be below:
Suppose we wanted to export this:
emit :: Event -> IO ()
emit = write eventStream

foreign export java unsafe "@static [some-class].emit"
  emit :: Event -> IO ()

so that the generated signature is:
public static void emit(Event e);

This is compeletely doable, if we assumed that in the emit function, the Event argument is treated as strict, which is true if you're coming from Java land. You pass in values directly most of the time.
But there will be cases where you'd want to be able to supply deferred values and creating your own Thunk is a bit cumbersome if you directly extend from the internal Runtime classes. For that, we can make a helper LazyValue class that people can extend that contains code to eventually return an Eta value.
emit :: Event -> IO ()
emit = write eventStream

foreign export java unsafe "@static [some-class].emit"
  emit :: Lazy Event -> IO ()

so that the generated signature is:
public static void emit(Closure a);

This is flexible in that it accepts both Event and LazyValue<Event>.
NOTE: We can add generics to the eta internal types to make things more typesafe, I played around with this here. So the signature above
could be:
public static void emit(Closure<Event> a);

Notice that the Lazy is a special newtype that will be recognized by the foreign export generator. Notice also that the signature of the export differs from the signature of the original function! I'm sure you though it was redundant to specify the type signature twice, but it's cases like these, to control the exported signature that we specify two of them instead of one.
Here's how LazyValue would look:
package eta.runtime.Runtime;

import java.util.concurrent.Callable;

import eta.runtime.stg.Value;

public abstract class LazyValue<A extends Value> extends UpdatatableThunk {

  public abstract A call();

  @Override
  public final Closure thunkEnter(StgContext context) {
    return call();
  }
}

So now creating a lazy Event value is as simple as:
emit(new LazyValue<Event>() {
  @Override
  public Event call() {
    // Do some deferred stuff here.
  }
});

We can also make a version of LazyValue that takes in a functional interface like Supplier so that you can supply lambdas for deferred values and make it Java 8-friendly.
All this is relatively easy to implement right now with little change - we just need to reduce the strictness of typechecking for foreign exports to allow any type to be valid in the FFI. The foreign export generator (in ETA.DeSugar.DsForeigns) will need to be tweaked to generate the right signatures, but the core thunk building code will be unchanged.
With the new @EXPORT syntax the examples above would look like:
@Export(class="[some-class]")
emit :: Event -> IO ()
emit = write eventStream

@Export(class="[some-class]")
emit :: @Lazy Event -> IO ()
emit = write eventStream

Note that if we get annotation support, we can avoid the newtype altogether and use a special @Lazy annotation instead.

@jneira Let's play around with how that might work.
data Event
    = ItemArrived String
    | ItemLeft String

So now the question is, when exporting, we need to decide that Java type to give String and have some internal conversion functions when the exported method is called.
@Export
data Event
   = ItemArrived (@Type(JString) String)
   | ItemLeft    (@Type(CharSequence) String)

This looks a lot nicer with record notation:
@Export(package="[some-package]")
data Event
   = ItemArrived { payload :: @Type(JString) String }
   | ItemLeft    { payload  :: @Type(CharSequence) String }

Where JString and CharSequence are JWTs. Open for suggestions on the syntax. This also means we need to know how to convert JString to String and CharSequence to String. We can have the compiler search for appropriate JavaConverter instances to get the job done. If an instance is not found, compilation error ensues.
OR maybe we just make it so that you are only allowed to put JWTs as fields in a type (or Eta types that have the @Export annotation) with @Export so that translation becomes easy, and it's the burden on the Eta developer to convert that that type into a form necessary for internal use in the given library. I feel like this solution is a lot simpler for the user and is a lot easier to implement.
@Export(package="com.somecompany")
data Event
   = ItemArrived { payload :: JString }
   | ItemLeft    { payload :: JString, payload2 :: CharSequence }

will generate:
package com.somecompany;

public abstract class Event {
  // When we have sum-types + record notation with common record selectors,
  // we define them up in the parent class.
  // Notice our conversion of generating Java getters too.
  public abstract getPayload();

}

public class ItemArrived extends Event {
  String x1;
  public ItemArrived(String x1) {
    this.x1 = x1;
  }

  public CharSequence getPayload() {
    return x1;
  }
}

public class ItemLeft extends Event {
  String x1;
  CharSequence x2;
  public ItemLeft(String x1, CharSequence x2) {
    this.x1 = x1;
    this.x2 = x2;
  }

  public String getPayload() {
    return x1;
  }

  public CharSequence getPayload2() {
    return x2;
  }
}

When foreign exporting an Eta type that has an @Export annotation, it expects the generated version as an argument (or returns the generated version) and not the Eta internal naming convention and the compiler will take care to convert to the internal type.
For fields of the form Mutable a where Mutable is a newtype that represents a changing value, setters will also be automatically generated.
I didn't mention this but all field values for Exported classes are assumed to be strict.

Yep completely missed it, thanks again for your help Rahul😁

@jneira I just realized I didn't address your question about "nice names". Take for example the built-in list type:
data [a] = [] | a : [a]

The Z-encoding is scary: ZMZN for [] and ZC for :. It would be cool if for certain standard types, there was a way to specify what class names would be generated and also control in what package they are used.
@Export(package="eta.util")
data @Name("List") [a]
  = @Name("Nil") []
   | (@Name("Cons") (:)) a [a]

So we would have eta.util.List, eta.util.Nil and eta.util.Cons which are a lot more friendly than ghc_prim.ghc.types.tycons.List, etc. Thoughts? Feedback on syntax?

@rahulmutt mmm, i thought those names would be automatically generated from haskell names if the type has the @export annotation, at least for types/constructors with names. I had no take in account types/contructors using operators like list (but for user types they are not very common, right?)
I like the @Name syntax but imo it should be required for that "special types" and optional for named types/constructors. it would be possible?
Otoh, the classes, fields and methods created maybe should be final, no?

Yes, so we can enable the @Export and @Name annotations only for symbol-based type constructors/data constructors. @Export is useful for named constructors when you want to control which Java package contains those Eta types when exporting APIs for consumption by other JVM languages.
This same thing is also useful for value-level operators:
@Export { package="eta.util" }
@Name "append"
(++) :: [a] -> [a] -> [a]

Should we treat these special annotations as keywords? I'm not sure if it would make sense not doing so, as they only make sense in the Eta Realm

@NickSeagull I think these can be actual annotations in say the eta.lang Java package and you have to import them using the standard import java syntax that was discussed in #647. The compiler will do some extra processing for particular annotations.
The problem with keywords becomes - how do I specify that I want to use the Name annotation from some Java framework that I imported and not the special keyword?

Maybe we can omit the Export annotation (which can be called FFIExport btw) if the top level declaration has already another annotation?
For example
@GetMapping "/user/{id}"
@Export { package="eta.util", class="Utils" }
foo :: Int -> IO Int
foo _ = return 42

makes sense, but probably
@GetMapping "/user/{id}"
@Export
foo :: Int -> IO Int
foo _ = return 42

doesn't, as there is no possibility of using an annotation function if it is not exported, so we could leave it like
@GetMapping "/user/{id}"
foo :: Int -> IO Int
foo _ = return 42

which is more clear and it is not cluttered by the Export annotation.
Another thing we might have in mind is the @Static annotation, which maybe can have the same parameters as the @Export:
@Static
@Export { package = "eta.util", class = "Utils" }
bar :: Int -> String
bar _ = "Hi"

would be replaced by
@Static { package = "eta.util", class = "Utils" }
bar :: Int -> String
bar _ = "Hi"

Another use case: i would like to export already existent ADTs from a haskell package, in my case the ADT representing the AST of dhall lang
The export could be:
@Export(package="[some-package]") Dhall.Core.Expr

And being the ADT:
data Const = Type | Kind

data Expr s a
    -- | > Const c                                  ~  c
    = Const Const
    -- | > Var (V x 0)                              ~  x
    --   > Var (V x n)                              ~  x@n
    | Var Var
    -- | > Lam x     A b                            ~  λ(x : A) -> b
    | Lam Text (Expr s a) (Expr s a)
....
deriving (Functor, Foldable, Traversable, Show, Eq, Data)

I would like to have:

public abstract class Const {}
public final class Type extends Const {
   public Type() {}
}
....

public abstract class Expr<S,A>  {
    // A gigantic church encoding of sum types ????, i am afraid it is unusable
    // it could be useful for Maybe or Either though
    public <T> match(Function<Const,T> f1, Function<Lam<S,A>,T> f2, .... another 50 params) {

    }
}

public final class Lam<S,A> extends Expr<S,A> {

   private final Text t;
   private final Expr<S,A>e1,e2;

   public Lam(Text t,Expr<S,A> e1, Expr<S,A> e2) {
      ...
   }
   // No sensible default field names (x1,x2,x3??) for multi param constructors
   // so using a poor man's pattern matching
   public <R> match(Function3<Text,Expr<S,A>,Expr<S,A>,R> f) {
      ...
   }
   // Not sure about adding type class methods as java methods
   public LAM<T,A> fmap (Function<S,T> f1) {
      ...
   }
  // same for traverse, and other type classes?
}

Moreover we could mark a module as exportable:
@ExportModule(package="[some-package]") Some.Module.IncludingThis

and exports all its public ADTs automatically if possible
Maybe i am asking for something impossible or not practical :neutral_face:

@jneira Thanks for presenting a nice use case! I like how you handled Church encoding and typeclass methods.
But the main issue with the Church encoding you presented is that it can have a large number of arguments. I wonder if for the Java side, it's better to present a Builder-like API for constructing pattern matches:
T result = expr.matchConst(const -> ...)
                        .matchVar(var -> ...)
                        .matchAnything(x -> ...)
                        .match();

matchAnything corresponding to _ case and all the match* functions return a MatchBuilder specific to the type - in this case maybe Expr.MatchBuilder.
That last call to match will build take the information from the pattern matches done and delegate to an inner full-form Church encoding like you presented. For large data types, it may be inefficient to make such a huge function call, so we may have something that simply does an instanceof check that will be constructed from the builder. That should probably be a lot more efficient.

Hi, after writing https://github.com/eta-lang/dhall-eta i did feel the pain to to do a lib that esentially creates a java binding for a haskell lib.
The main class representing the dhall adt is 500 loc but another point of annoying boilerplate was generate the JavaConverter instances for them: https://github.com/eta-lang/dhall-eta/blob/master/src/main/eta/Dhall/Eta/Core/Java.hs#L989-L1292
It would be very nice that the tool implemented to generate java classes from haskell code will generate automatically those instances.
To implement the instances i had to write some for common haskell data definitions, like Maybe or Either, it would be nice too that we had those ones in some common lib (base or other one)


Compute Loss on Accumulated Batches

🚀 Feature
Make it possible to accumulate the outputs and targets from the training step for the number of grad batches that should be accumulated. Then compute the loss over the accumulated outputs and targets.
Motivation
The accumulate grad batches option is great for people who only have access to a GPU with limited memory. However, some loss functions are not batch independent, i.e. the loss of one sample depends on the other samples within a batch. For example the F1 score or Matthew's correlation coefficient can be modified so they can be directly applied as loss functions. In these cases, it would be great to be able to accumulate the outputs and compute the loss afterwards, similarly to how it works in validation_end and test_end, except before the backwards step.
Pitch
Add an accumulate function that takes the accumulated output of the training_step. The default behavior would be to output the sum over all keys in the dict and to normalize by the number of accumulated grad batches. This can then be overwritten though to compute the loss over the entire accumulated batch. This would not break the current API but accommodate batch dependent loss functions.

@fschlatt I agree that accumulator is very important, may you check GradientAccumulationScheduler?

Never mind, my issue can be solved using training_step_end :)

Hi @fschlatt, I'm trying to solve exactly the same problem. I have a contrastive loss that depends on all elements of the batch and, hence, has to be computed on the predictions accumulated from the entire batch.
Following this discussion, I'd think you simply compute the loss in training_step_end instead of training_step, however, it doesn't work if I do that. training_step is required to return a dict that already contains the loss.
How did you manage to solve this issue 4 years ago?
Thanks!

The solution has changed since 4 years ago, now the best way is documented here https://lightning.ai/docs/pytorch/stable/common/lightning_module.html#train-epoch-level-operations

Hi @fschlatt , thanks for the quick response!
I checked the docs but it's still unclear to me how to compute the loss on the entire batch.
The docs say that the loss should be computed in training_step, which is called after every step.
However, I need to compute it for the entire "accumulated" batch. Say, if I set accumulate_grad_batches to 32, I need to compute the loss once for all the outputs aggregated from all those 32 steps. What is the currently recommended way to do that?
Maybe this has a very simple solution, but I'm somehow missing it.
Thanks, really appreciate your help!

Sorry, my response was a bit too hasty. I haven't tested this, but I believe you are free to output anything you like from the training_step. For example, you can output the model predictions and desired targets in a dictionary.
You can then aggregate these outputs in train_batch_end (which is where the loss is aggregated for accumulate_grad_batches) and compute the loss there


Spyder doesn't launch after updating to latest version 4.0.1

Problem Description
Spyder opened normally today, but asked me to update. I updated conda and spyder as per the instructions (from the Anaconda prompt). When I try to launch spyder, I get a ValueError: PyCapsule_GetPointer called with incorrect name. I only updated the spyder in a virtual environment, but now I can't open it irrespective of which environment I call it from. Rolling back spyder to version 4.0.0 doesn't fix it. Calling spyder --reset gets the same ValueError.
What steps reproduce the problem?
In Anaconda prompt:

conda update -n base conda
conda update spyder
spyder

What is the expected output? What do you see instead?
I expect spyder to launch. Instead I see:
Traceback (most recent call last):
  File "C:\Users\Marina\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Users\Marina\Anaconda3\lib\site-packages\spyder\app\start.py", line 200, in main
    from spyder.app import mainwindow
  File "C:\Users\Marina\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 90, in <module>
    from qtpy import QtWebEngineWidgets  # analysis:ignore
  File "C:\Users\Marina\Anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEnginePage
ValueError: PyCapsule_GetPointer called with incorrect name

Versions

Spyder version: 4.0.1
Python version: 3.7.6
Qt version: 5.9.7
PyQt version: 5.9.2
Operating System name/version: Windows 10 Pro 64-bit

I only updated the spyder in a virtual environment, but now I can't open it irrespective of which environment I call it from

This and the error you posted above clearly point to the cause of your problem: you installed pyqt5 with pip in one of your environments.
That completely broke your Anaconda installation and now you have to remove it (with all its environments) and reinstall it again. Sorry for the hassle, but we warn about this over and over again and people don't listen us.

I ran into the same issue today.
Following this answer solved the problem. I guess it saves some of the hassle. [https://stackoverflow.com/a/66012782]


"___tsxInteropDynamicImport is not defined" since 4.0.0

Precheck

[X] I searched existing issues before opening this one to avoid duplicates
[X] I'm able to reproduce this issue and prove it with a minimal reproduction
[X] I understand this is not a place to ask for free debugging support

Problem
See https://github.com/jmerle/tsx-puppeteer-example for a minimal example of a project using tsx and Puppeteer. With tsx 3.14.0, running pnpm start shows an empty Chrome tab for 5 seconds and then exits. With tsx 4.0.0 or 4.1.0, without changing the code or the version of any of the other dependencies, the browser does not open and the following error is shown in the console instead:
$ pnpm start

><EMAIL_ADDRESS>start /home/jasper/Projects/tsx-puppeteer-example
> tsx index.ts

/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js:26
        debugModule = (await import('debug')).default;
^

ReferenceError: ___tsxInteropDynamicImport is not defined
    at importDebug (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js:26:1)
    at debugLevel (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js:74:1)
    at <anonymous> (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/Connection.ts:135:7)
    at CallbackRegistry.create (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/common/CallbackRegistry.ts:40:7)
    at Connection._rawSend (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/Connection.ts:128:22)
    at Connection.send (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/Connection.ts:116:17)
    at ChromeTargetManager.initialize (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/ChromeTargetManager.ts:146:28)
    at CdpBrowser._attach (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/Browser.ts:164:31)
    at Function._create (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/src/cdp/Browser.ts:80:19)
    at ChromeLauncher.launch (/home/jasper/Projects/tsx-puppeteer-example/node_modules/.pnpm/puppeteer-core@21.5.1/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:116:1)

Node.js v20.9.0
 ELIFECYCLE  Command failed with exit code 1.

Expected behavior
I expect tsx 4.0.0 to be able to run the same code tsx 3.14.0 was able to run.
Minimal reproduction URL
https://github.com/jmerle/tsx-puppeteer-example
Version
v4.0.0
Node.js version
v20.9.0
Package manager
pnpm
Operating system
Linux
Contributions

[ ] I plan to open a pull request for this issue
[ ] I plan to make a financial contribution to this project

Thanks for your issue and reproduction! Very helpful


Remove file count from samples tab and replace with "total" in the data sub column.

This is not working in the samples tab but since we are replacing any  how lets just fix by adding a "total"  sub column  to the data tab and then calculating the total correctly. (and removing the "file count" column).

@frano-m I just fixed the aggregation but we still can remove the column. Lets also move the function that calculates the file count summaries to the TableMethods file.
Thanks,
D


Long Polling http request;

Error: Timed out waiting for Protractor to synchronize with the page after 11 seconds.
angular.module('someName').factory('eventPoll', eventPoll);
eventPoll.$inject = ['$rootScope', '$log', '$interval', 'eventPollService'];
Due to this factory 'eventPoll', my protractor tests are getting failed.
I am using it in my test to avert this:-
browser.addMockModule('notificatonOverride', function() {
angular.module('notificatonOverride').service('eventPoll', function() {
function eventPoll($rootScope, $log, $interval, eventPollService) {
});
});
how to resolve this??

Please read https://help.github.com/articles/github-flavored-markdown/ to learn how to use markdown to format your issues better, this makes it much easier to read and respond.

This is a limitation in the way that Protractor waits for pages to be stable. What you are doing looks like a good workaround, are you having problems with it?

Thanks for the response. The workaround is not working for me.
In my scenario I have a big Module and inside that have a factory(Long polling one). I don't want to wait for that factory. Essentially just want to mock that particular factory.
angular.module('vManage').factory('eventPoll', eventPoll);

eventPoll.$inject = ['$rootScope', '$log', '$interval', 'eventPollService'];

function eventPoll($rootScope, $log, $interval, eventPollService) { ...}

So can you please explain how can I do that?

OK, it sounds like this is more of a question than an issue or feature request, so I'm closing the issue per our contribution guidelines.
You want to do something like:
browser.addMockModule('notificatonOverride', function() {
  angular.module('notificatonOverride').factory('eventPoll', function() {
    // intentionally left blank, noop
  });
});

@juliemr i am facing the same issue . Even after using the above addMockModule solution . We are unable to mock the the event Poll

How do you know that the service is not mocked? Have you verified that the mock is set up properly and that there is not another polling event on the page?

We have followed the test code you suggested and this is the only long poll event on the page .

It's very hard to help without specifically knowing what is not working or having a reproducible example - could you make a minimal example that reproduces the issue?


chore: upgrade eslint library

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


WIP multi-output circuits

My belief is that the outputs should be parameterized by a o :: Type -> Type rather than n :: Natural and

Semigroup/Monoid instances should be on ArithmeticCircuit U1 a
state/bluprint updates should have a state variable of ArithmeticCircuit U1 a
algebraic instances, particularly multiplication instances, should be on ArithmeticCircuit Identity a

Maybe U0?

U1 is the 0-dimensional container type, data U1 x = U1, the U is for unit and 1 is for number of kind arguments.

Maybe on U1, too?

The algebraic instances as they currently exist make a lot of sense for single (1-dimensional) output because a single-output circuit represents a function y = f(x1,..,xi) and given two such functions, we have a natural product, y1*y2 = f1(x1,..,xi)*f2(x1,..,xi). The product for multi-output or zero-output functions is definable, just not something we currently support, and not very natural or standard.

This would make smart contracts more readable

If there's a clear use case I'd support it and I'd like to see the details. Perhaps though, that's something for the future and we should limit scope for brand new interfaces.

For context for some of my review comments: while working on symbolic/arithmetizable, I also initially followed the siren call of adding a type level Natural, that is promoting typeSize :: SymbolicData a u => Natural which led down a similar road to this, including the need to promote register count computations. But if the only real use of that natural is in a Vector n, then we can avail ourselves of very powerful typeclass hierarchies if you replace Natural with Type -> Type and KnownNatural with some typeclass that represents "containers of known length". A known length means it's known at runtime and so there ends up being no need for type level calculations. The class for known length container, regardless of what it contains is Representable. That doesn't quite work for symbolic data such as UInt n because as you know the size of a UInt n a depends on the size of the finite field a and that dependency is replicated in its representation as a circuit. So, the class we need for that is what I called VectorSpace. Both VectorSpace and Representable sort of "intersect" with stock derived Functor/Foldable/Traversable in a compatible way.

@echatav, my bad, messed up the names of types in https://github.com/zkFold/zkfold-base/pull/123#issuecomment-2150351702, sorry x)
I completely agree that algebraic instances should be written out for 1-output circuits only, it's just that the name of the corresponding functor, Identity, is too long and recalls the association with monads and functor algebras, while this is most likely going to be used as some kind of "base type" in computations, so maybe some other name would be more suitable

@TurtlePU Would you prefer we used Par1? It's in base, has all instances I'd expect and has a shorter name.

@echatav, yes, good one!

type family Vars (n :: Natural) :: Type -> Type where
  Vars 0 = U1
  Vars n = Par1 :*: Vars (n-1)

^_^


[FeatureRequest] Url for static resources

Hi,
Fom the documentation I see that the static files are read from the resources folder:

// root is 'src/main/resources', so put files in 'src/main/resources/public'
staticFiles.location("/public"); // Static files

And would be served when the following url would be provided:

http://{host}:{port}/css/style.css

My question is: is it possible to place the files in the resources/public but access it with a different url. For example: http://{host}:{port}/MyApp/site/static
Note: putting nested directories will result putting the index.html file in to url in order to get it server (which should be the default response)

Is there any way to workaround it? redirects?

If your main problem with using nested directories is that index.html has to be in one URL, I would write a custom handler that serves that particular file. Or maybe I misunderstood?

there are 2 issues here:

Say I want to serve my site from: https://mysite.com/site -> this will result the index.html
I want my website assets to be served from https://mysite.com/site/static (example: https://mysite.com/site/static/main.css)

Can you please also show the Kotlin version of your suggestion?

found it:
Spark::class.java.getResourceAsStream()
Trying to make it work

@tipsy it did work.
Though I think this feature should be baked into the framework.
Thanks!


How to automatically convert reql_time to some other format?

Sorry if this has an obvious answer, I've just been struggling with this.

I've made a pull request #140 that automatically converts reql_time to DateTime.


⚠ Bofrost.be has degraded performance

In a495384, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1760 ms

Resolved: Bofrost.be performance has improved in c25f786.


Invalid OAuth2

"Invalid OAuth2 redirect_uri" when i try to login to Dashboard

Do not forget to write the secret key of your bot correctly in the .env folder.

Also make sure to add the dashboard url in config.js to discord developer portal


Swift 4.2 Support?

Of course, but I'll add it in 2-3 weeks, now I have no time. Stay tuned!

Hi @LowKostKustomz, I just submitted a PR that updates the project to Swift 4.2. Please let me know what you think when you have time. Thanks for your continued support for this project!


The Watch task runs on all paths when it could just run on the path that changed

What
When the watch task is called, it then either calls generateCss or copyAssets:
https://github.com/alphagov/govuk-prototype-kit/blob/12a0830f36117bae5d44d194e2fa71136c52af8e/lib/build/tasks.js#L123-L125
In each case the function actually has parameters event and path (deleted as we dont use them). path is the path of the changed file, so we could just process that one, instead of all paths.
Chokidar docs
Why
This would speed up the watch task
Who needs to work on this
developers
Who needs to review this
developers
Done when

[ ] Watch task only processes the file that changed

I think this might be quite tricky, as I think we'd need a tree of Sass dependencies for it to work properly.
This is because currently when we generate sass we only build top-level files, which may include other files. If a user changes a file that is included but not a top-level files, because we generate all top-level files we don't need to worry about which files include it, but if we wanted to only generate sass affected by a change we'd have to know which top-level file we wanted to regenerate, and that might require multiple file searches to figure out.

not sure this will give significant benefit, closing


Replace md5 usage with sha256

Pull request
Thanks for improving pdfminer.six! Please include the following information to
help us discuss and merge this PR:

A description of why this PR is needed. What does it fix? What does it
improve?

md5 cannot be used on SOAR FIPs instances. sha256 should work for FIPS and Non-FIPS instances.
Error message: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS.
This repo is used as a direct dependency for Parser

A summary of the things that this PR changes.

Replace all md5 usages to sha256

Reference the issues that this PR fixes (use the fixes #(issue nr) syntax).
If this PR does not fix any issue, create the issue first and mention that
you are willing to work on it.

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Include an example pdf if you have one.
Checklist

[ ] I have added tests that prove my fix is effective or that my feature
works
[ ] I have added docstrings to newly created methods and classes
[ ] I have optimized the code at least one time after creating the initial
version
[ ] I have updated the README.md or verified that this
is not necessary
[ ] I have updated the readthedocs documentation or
verified that this is not necessary
[ ] I have added a concise human-readable description of the change to
CHANGELOG.md

Does this fix also work on non-FIPS phantom versions?