Stopping autoRotate after clicking a button?

I got this scenario (can put some link if needed) :

pannellum working nice, with hotspots wich link to site sections
autoRotate, wich starts after 6000ms
a button, wich return the panorama to starting position, with code like this:

document.getElementById('pan-up').addEventListener('click', function(e) {
viewer.setPitch(0);
viewer.setYaw(0);
});
works as expected. If the panorama is already autorotating, and I click anywhere on the page, it stops for the time I set in autoRotateInactivityDelay. BUT, if I click on said return button with the rotating in action, it will return to 0 position and immediately start rotating again, as if I never clicked on screen. I even tried to attach a trigger action on the code above, to try to emulate a click on the main screen, but it doesn't work :(
since I read that Pannellum won't check for yaw and pitch every time, is there any way I can work around this issue? I already got a option B in plan, but would like to know if it's possible to do with what I got now. Thanks in advance.

Have you tried the stopAutoRotate() function?

but if I use this (not shown on the configuration options in Pannellum site), would it stop the rotation but also start it back after 6000ms without user interaction as usual? I just need the autorotate to be turned off for a brief time.
PS: thanks for the plugin and the fast answers :D

worked! Like this:
document.getElementById('pan-up').addEventListener('click', function(e) {
viewer.setPitch(0);
viewer.setYaw(0);
viewer.stopAutoRotate();
setTimeout(
function() {
viewer.startAutoRotate();
},
6000);
});
if I can make it work with a nicer solution, please show. But it works. You can close this issue :D


Replication issue caused by pagination in api.

create a new project;
push image to this project until it has more than 10 repositories;
make a replication for this project to another harbor;

the replication will be end when the another harbor gets 10 repositories.
@ywk253100 , I think we need to revisit the default behavior of api pagination, by default the api should probably return all data until there's paging parameters

Per discussion, the default page size should be the max page size, and the code should handle the case if the number of items exceeds the page size, i.e. it's the client code that need to make more than  one API call and merge the result.


Delete descendant records upon parent record deletion

Moving discussion from this thread: https://github.com/TBD54566975/dwn-sdk-js/pull/307#discussion_r1166350813
Context
Records within a protocol exist in a hierarchy. Determining what actions a DID can perform on a given record in protocol space involves traversing a chain of ancestors. When a record in the hierarchy is deleted, what should we do to its descendants?
Approaches

💀 Delete all descendants: This is the simplest to implement and reason about. However it may be too restrictive.
🪦 Retain descendants: This is possible because deletes are implemented as tombstones. In this case, the deleted record will no longer appear in RecordsReads or RecordsQuery response, but its descendants may. But how do we handle writing/updating new child records? Much nuance.
🧘♀ Enlightened Centrism: Allow developers both options. Consider two actions called delete and delete-descendants. The former deletes only the single record, whereas the latter deletes all descendants.

Let's go with option 3

This is now implemented as prune.


unused-modules ignore tests

when using the unused-modules rule, is it possible to have the rule ignore tests?  in other words, if the file is only used by tests, I STILL want it to report an error if it's not imported anywhere else.  Do i just need to turn off the lint rule in the __tests__ folder?
note our __tests__ folder follows the default jest pattern where the tests are next to the src

Duplicate of your own #1452.

Doh!  My bad been one of those weeks


Fix: Region doesn't show face up (fixes #284 )

Fixes: https://github.com/cerner/carbon-graphs/issues/284
What is the purpose of this pull request? (Check any that's applicable)

[ ] Feature
[x] Bug fix
[ ] Dependency updates
[ ] Documentation updates
[ ] Build related changes
[ ] Changes an existing functionality
[ ] Other, please explain:

Does this introduce a breaking change?

[ ] Yes
[x] No

What changes did you make? (Give an overview)
Avoid adding the graph to the shownTargets if the content do not have data.
Set shouldHideAllRegion to false if there is only one graph content displayed.
Add any screenshots

Sorry. I found there is an issue after rebasing with main branch. Once I fix that, I will ask for the review.


[Scheduler Enhancement] Remove deleted containers.

Description
When some containers are terminated as they are idle, a memory queue still sends activations to them as their request are in the buffer.
Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[x] Scheduler
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[x] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[x] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

LGTM

Codecov Report

Merging #5265 (1edfb8e) into master (c5970a6) will decrease coverage by 75.68%.
The diff coverage is 5.00%.

@@            Coverage Diff             @@
##           master   #5265       +/-   ##
==========================================
- Coverage   80.27%   4.59%   -75.69%
==========================================
  Files         238     238
  Lines       14066   14080       +14
  Branches      574     576        +2
==========================================
- Hits        11292     647    -10645
- Misses       2774   13433    +10659

Impacted Files
Coverage Δ

...e/openwhisk/core/scheduler/queue/MemoryQueue.scala
0.00% <0.00%> (-84.16%)
:arrow_down:

...in/scala/org/apache/openwhisk/common/Logging.scala
41.85% <50.00%> (-44.94%)
:arrow_down:

.../main/scala/org/apache/openwhisk/core/WarmUp.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...ain/scala/org/apache/openwhisk/spi/SpiLoader.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/scala/org/apache/openwhisk/utils/JsHelpers.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...scala/org/apache/openwhisk/common/Prometheus.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...scala/org/apache/openwhisk/core/FeatureFlags.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...ala/org/apache/openwhisk/common/ConfigMXBean.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...la/org/apache/openwhisk/http/BasicRasService.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...a/org/apache/openwhisk/common/ConfigMapValue.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 204 more

Continue to review full report at Codecov.

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


klipper-estimator: init at 3.2.1

Description of changes
Add Klipper Estimator: See https://github.com/Annex-Engineering/klipper_estimator

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Added meta.changelog and meta.mainProgram

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2024


Add a "how-to" series

For example, "enabling depth testing", "changing the viewport", "rendering to a different target". These don't all need to be self-contained examples, but could be short snippets of code.

related to #942, redundant with #455


BUG: Fails to install from community plugins in Obsidian

Your environment
SYSTEM INFO:
Obsidian version: v1.4.16
Installer version: v1.4.16
Operating system: Windows 10 Home 10.0.22621
(It is Windows 11 Home)
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: Dark Moss v1.0.0
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 0
Describe the bug
The lpugin "Fails to install" right after pressing the install button.
To Reproduce
Steps to reproduce the behavior:

Go to 'Community plugins'
Click on 'Install'
See error

Screenshots

sorry, I got the plugin version wrong，so it can't install. It has been fixed.


debug: verify CI with last known working Clear

Use last known clearlinux image.
Fixes: #666

/test-fedora

/test-fedora

dnm ?

@jcvenegas Whats the status of this PR?


Week 28 Hacks

Type
Work
Points

Individual
MCQ Test #4
0.6

Individual
Parallel Computing
0.3

Individual
Hashmaps
0.3

Pair/Trio
Issue with work and info
0.6

Project/Lesson Planning
Pull Request
0.45

Project/Lesson Planning
Presentation Date Scheduled 4/25
0.45

Extra
CSUSM Notes and Takeaways
1

Total Score

3.7+

Big Teams
Grade
Worth

Team Plans / Project Idea
1
0.45

Initial division of labor
1
0.45

Pair-Trio focus areas
1
0.45

Code in space/time hacks
1
0.45

Quiz score, Quiz corrections
1
0.3

A commit each week since Ski Week
1
0.3

Plans to finish CPT
1
0.3


nixos/nix-serve: fix module compatibility with unflaked Nix

The option extra-allowed-users was introduced in Nix 2.4, and fails config validation on Nix 2.3.
Relates to https://github.com/NixOS/nix/issues/9412
Breakage discovered in https://cl.tvl.fyi/c/depot/+/10083, commit that introduced the bug was 44cf4801c0937b76cc6f416a0b160b5d1b3286af

Successfully ran nixosTests.nix-serve with nix.package = pkgs.nix_2_3; added to the VM config. Also, validated the test still is the same when Nix is left to the default.


Allow pushmirror to use publickey authentication

Adds the option to use let the pushmirror use publickey authentication for push actions instead of using user:password authentication. The Publickey algorithm uses for this is ed25519, and is saved in OpenSSH's format so it can be used directly with git.
Resolves #18159

This PR only uses vanilla javascript, in order to show for https://github.com/go-gitea/gitea/issues/18302 it's possible to only use vanilla javascript.

The code is still using Fomantic UI, which requires jQuery.
If there is no clear agreement about how to refactor all the code, in the end, Gitea will become a monster with Go-template, Fomantic UI, jQuery, Vue2 and vanilla JavaScript and maybe home-made frameworks, everything mixed together. No one can stop new code written in jQuery, no one helps to review and refactor them.

@wxiaoguang I've changed my comment to reflect a more accurate representation. Sorry for the confusion.

No sorry .... I just hope most people can realize the fact, and make Gitea frontend get rid of the current nobody-cares situation.

Ready for review... I'm not sure how to handle the UI to display the long ssh key.

Ready for review... I'm not sure how to handle the UI to display the long ssh key.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e039b76). Click here to learn what that means.
The diff coverage is 8.02%.

:exclamation: Current head 37f5359 differs from pull request most recent head 7acceb2. Consider uploading reports for the commit 7acceb2 to get more accurate results

@@           Coverage Diff           @@
##             main   #18835   +/-   ##
=======================================
  Coverage        ?   46.54%
=======================================
  Files           ?      854
  Lines           ?   122605
  Branches        ?        0
=======================================
  Hits            ?    57068
  Misses          ?    58644
  Partials        ?     6893

Impacted Files
Coverage Δ

models/repo/pushmirror.go
75.55% <ø> (ø)

models/repo/repo.go
64.54% <ø> (ø)

modules/crypto/ed25519.go
0.00% <0.00%> (ø)

routers/web/repo/setting.go
15.63% <0.00%> (ø)

services/forms/repo_form.go
41.29% <ø> (ø)

services/mirror/mirror_push.go
40.21% <26.08%> (ø)

modules/git/repo.go
67.42% <62.50%> (ø)

Continue to review full report at Codecov.

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

Force-pushed twice, because git was being funny.

@silverwind Could you give some input for the UI?

I'm not able to get any kind of neat and clean UI while still showing the public key. Changed it to be behind a copy button(updated PR message with updated screenshot).

Assume users have 100 push mirrors, then he has to add 100 public keys in target forge website?

Assume users have 100 push mirrors, then he has to add 100 public keys in target forge website?

Well if the user is going to create multiple push mirrors and wants to use the deploy keys functionality yes.
But this PR is for users that wants to use SSH based authorization, so they can on the target forge add them to the repo's deploy keys and thus limits the access a SSH keypair has. That's the current use case that this PR is fixing: #18159.

Commenting to follow updates. Trying to mirror-push to sr.ht for my public repositories.
Looks like this is close to approval! Very excited to see it sometime soon!

Commenting to follow updates.

Please use the subscribe button to follow an issue/PR silently.

Fixed up conflicts and also accidentally pushed some code in that commit to actually be able to parse git@gitea.com:gitea/gitea URLs(which was somehow still in a stash).

More conflicts appear.
Will take a look at UI later.
One question: What if the remote only supports RSA key or maybe it's HTTPS only? Is it something that can be supported, maybe later?

One question: What if the remote only supports RSA key

If some Forge only support some older type of Public-key cryptography, then I'm happy to hear about it and implement a RSA version. But so far I don't know of any and don't really take it into account therefor.

or maybe it's HTTPS only?

Huh? This PR only adds the ability to use pushmirror over SSH, the normal HTTPS option is still there.

7. Because this error appears: Where am I supposed to enter the SSH key? Or does Gitea automatically take one of my verified keys? Or how is that handled? The current UI absolutely confuses the user because he has to make a lot of assumptions without knowing if they are correct. That should be changed.

The suggested tooltip should now take care of this confusion, feel free to add suggestions.

https://github.com/go-gitea/gitea/pull/18835/commits/86fec2defe312aa21d3f3cbe8075e41a34f28802 should fix your panic, I had LFS disabled.

Also, something minor I noticed:

Do we want to display this warning?

Do we want to display this warning?

Yes, but we might want to trim the Warning: Github.com has been added ... path. IIRC this error popup was explicitly added so users could debug why synchronizing has gone wrong, which does its job now.

Why does it copy it including a trailing \n? (Hopefully, providers will trim whitespace, but we can't be certain of that…)

Weird, shouldn't do that. But it's due to this LOC https://cs.opensource.google/go/x/crypto/+/bc19a97f:ssh/keys.go;l=294

No, the merge conflicts aren't the problem. Rather that I forgot that Git-LFS exists, which is way harder to support with SSH. I'm not knowledgeable enough about LFS to even try add support for it.

Would it be possible to implement push mirrors without support for Git-LFS and leave that feature for the future? There are a fair number of repositories that doesn't require it, so the implementation would not be wasted.

👀

@Gusted Any way I can help? I am also interested in pushing this through to the finish line.

@philip-peterson AFAIK this contributor is now rather more active over at Forgejo. As there was no response in a while, we can consider this PR as abandoned.
As this feature still would be a valuable addition, it would be great if you or somebody else could take over this PR.

I'll close this PR for those reasons. Im refactoring other code areas that might make this easier anyway


Add test for requires reverse offload

Fulfills partial requirement of SWDEV-310865

I am not sure this tests anything very useful.  Reverse offload does not work.  The reverse offload region needs to be nested in a target region and demonstrate it is running on the host.   There is also an API to test called omp_get_ancestor_thread_num().    Here is a test case that fails get_ancestor_thread_num().  Even without reverse offload, this is a useful API to fix and test.
#include <stdio.h>
#include <omp.h>

#pragma omp requires reverse_offload

int reverse_offload() {
   int errors = 0;
   int num_devices = omp_get_num_devices();
   int default_device = omp_get_default_device();

   if(num_devices <= 0) {
      printf("Cannot properly properly test reverse offload if no devices are available\n");
      errors++;
      return errors;
   }

omp_set_num_threads(2);
#pragma omp parallel
{
   int htnum = omp_get_thread_num();
   int atnum = -1; // an error if not changed
   printf("Host thread number is %d num_devices:%d default dev:%d\n",
      htnum, num_devices, default_device);
// From OpenMP spec:
// When the reverse_offload clause appears on a requires directive, the implementation guarantees
// that a target region, for which the target construct specifies a device clause in which the
// ancestor modifier appears, can execute on the parent device of an enclosing target region.

  #pragma omp target map(to:htnum) map(from:atnum) device(default_device)
  {
      atnum = omp_get_ancestor_thread_num(1);
      printf("device printf before reverse offload. target_tid:%d host_tid:%d =?= atnum:%d\n",
         omp_get_thread_num(), htnum, atnum);

// This is a reverse offload region that currently does not compile on clang
// #define CLANG_SUPPORTS_REVERSE_OFFLOAD.  So for now we just test the omp_get_ancestor_thread_num API.
#ifdef CLANG_SUPPORTS_REVERSE_OFFLOAD
     #pragma omp target device(ancestor:1)
     {
        printf("this is host printf using reverse offload to 1st ancestor\n");
     }
#endif
   }
   printf("Done target region: target region launched by host_tid %d observed its ancestor as %d\n",
      htnum, atnum);
   if (htnum != atnum) {printf("ERROR: ancestor id not equal to host_tid \n");  errors++;}
} // end of omp parallel with 2 host threads.
   return errors;
}
int main(void) {
  if (reverse_offload()) {
    return -1;
  }
  printf("Success\n");
  return 0;
}

@ronlieb, moving the test to smoke-fails.
@gregrodgers, going to create new tests for omp_get_level() and omp_get_ancestor_thread_num(). Going to use declare target device_type(host) to(foo) to ensure that foo gets compiled for host only. When reverse offloading starts working then the code will work fine. It should expectedly fail till then.

Ping


Missing documentation

There should be documentation on the fact that the app won't work if you don't have network (auth0 complains on Android about missing configuration)

Even better, we should figure out a way to support offline usage more gracefully - the default Auth0 error message is not very helpful. Obviously we can't login offline, but surely we can do better than the Missing configuration warning.

Also, it started giving me the same error later on when I wasn't in Wi-Fi but direct ethernet (not sure if related to that though). And yes, it should support offline usage in guest mode or smth.

@Lapanti Could that be because your Android emulator only knows how to use WiFi connection and not the Ethernet adapter? Check if you can use the Android browser when connected to Ethernet?


Add panopticon-community as supported product

https://github.com/kubeops/panopticon/commit/95f4d1982a738e04c3829698385b0e63576e06c7


Ios/android auto reconnect?

I'm not sure if this is an socket.io issue or echo, but I can't seem to get reliable connections after even a short time of being idle, eg on a mobile app and going to standby or a different app.
Is there something I need to change or something you can recommend? Otherwise it's working great, but I need to reconnect (directly) on getting back online to receive new messages..

I'll need to test this out to be certain but socket.io is supposed to reconnect automatically. So this may be a scenario where the authentication process from echo needs to happen again when your app goes from background to foreground.

But that would be just for private channels, right?
I tested, but it doesn't seem to make a difference if it's public or private.
Android does seem to behave a bit better, at least for short idle time, but iOS just doesn't seem to reconnect, at least not within a minute.

So this is what I can see happening after I set my iPad to standby, using the socket.io debug info

WebSocket connection failed; failed to send frame (correct, iOS stops this in standby)
engine.io: transport error
socket.io client manager: onclose, cleanup, close (transport error), reconnect attempt.
Opens http://..:6001, does XHR poll, get 'xhr data null'
Sets tansport polling, socket is open, reconnect success event.
More xhr polls with data null, receive data "0" type "message" from socket.
Opened transport "websocket", pong, polling, waiting, got ArrayBuffer, received type "noop", data "undefined"
Al lot of pongs received, flushing 1 packets etc, but no events.

So it seems that the connection is indeed restored, but it just doesn't receive any events after reconnect. Any thoughts on why this could happen? Do we need to subscribe again?

Same happens the other way around. When I just quit the server and restart it, it does see the Events but no clients reconnect again.
Am I doing something wrong or do I need to configure something?

I can't offer any help to you to solve this, but just registering here as being very interested in this issue.

Do you experience the same behavior?

At the moment the app I'm making is still at the start/developing phase and all my testing has been on computer (which hasn't shown any of these issues), about to start testing on mobile devices later on this week or next week.
I just spotted this issue and wanted to mark it in case I come across the same problem.

On multiple mobile browsers this is the case for me also.

@jonnywilliamson You can try it simple with:
Testcase Server disconnect

Run the server
Open the webpage, see that events are working
Kill the server (ctrl+c), wait 30 sec
Restart the server

Testcase Client disconnect

Run the server
Open the webpage in Safari on iPad
Go to standy, wait 30 sec
Turn back on

In my case it didn't show any new connections and didn't receive events anymore.

Okay I've also enabled server debug info (DEBUG=* /usr/local/bin/laravel-echo-server start) and saw that on reconnects, the subscribe isn't done. This is happening on the client-side, so might be an Echo issue?
This seems to work (with above testcases, not extensively tested)
var socket = window.Echo.connector.socket.io;
var channel = window.Echo
                .channel('test')
                .listen('StatusUpdated', function (e) {
                    console.log(e);
                })

socket.on('reconnect', function(){
    console.log('reconnect');
    channel.subscribe();
})

This will emit a subscribe event to the server using the (new) socketId. Not really sure if I should also unsubscribe from the old one.
Is this an issue with the laravel/echo (client-side) package and do I need to open an issue there? Or do you need to detect the reconnect on the server and subscribe automatically?

I'm seeing the same thing. Think we need to add a reconnect event handler that reconnects with Laravel.

Here on or Laravel? I can create a PR with this:
https://github.com/laravel/echo/commit/b2443516b599057ff3a623e7d2fc2ce5b892b10c

I think that should do it. Looks like the reconnect event is client side.

PR submitted, please test and review :)

Should be fixed with<EMAIL_ADDRESS>released half hour ago.
I do think that you need to think about CSRF protection, because those will expire while you can still be logged in with cookies. So either long lived sessions or disable CSRF protection on /broadcasting/auth?

@barryvdh we need to keep CSRF protection available but maybe we could create an option to to disable CSRF if that is your preference. You could also use  long lived sessions or JWT for your mobile apps.

CSRF don't need to disabled here, you could just disable in the your Laravel route middleware.
Using JWT tokens isn't really possible by default, using standard laravel-echo, is it?

Ok, and you are right, not by default but it is possible by adding an auth header when you instantiate laravel-echo with headers options.auth.headers i.e. Authorization: Bearer ejxnahdnaf.1241hnaefnmasf.... which should be passed to the SocketIoConnector.
I've tested that much, but think there needs to be an additional method on the connector that exposes a way to update the headers before you attempt subscribe to a channel.

Setting custom auth headers would not effect the CSRF protection affected by all POST requests, but would indeed be nice for long lived sessions.


Mac - Get back to main window after closing

Open SQLectron
Click red button to close the main window
Notice window can't be reopened
Quit and restart sqlectron to get back to main window

Somehow the app still open on clicking in the close button. Although using Command+Q it closes properly.


[Bug] Newsflash 49203 show errors on console

Describe the bug
Loading newsflash 49203 show errors on console:

Multiple loading error: You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
Several map-related  errors, like: Uncaught TypeError: Cannot read property 'prototype' of undefined

To Reproduce

Go to https://anyway-newsflash-infographics.web.app/newsflash/49203
See console

Expected behavior
No console error
Screenshots

Environment
Browser: Chrome
Environment: Staging
Additional context

We should add a better map-component data validation and error catching.
It might be a data-related issue. If data is not valid - it should not pass getVerifiedWidgetsData function. See #317 for more details

resolved after map fixing


some logging/cmd stuff

Use -l [stdout] -e [stderr] to set log destinations, get rid of -v.
Wire up "hummingbird start" to set them to /var/log/hummingbird/*.
Get rid of -d, since apparently nobody does that anymore.
Remark that "hummingbird start" shouldn't be used for production.
Various little cleanups, since I was in the neighborhood.

Other than the rand thing; lgtm!

That'll work. 😉


Release template of main page

Create PR into main.
Check if everything is correct.
Link PR to this task.
Merge PR.

Linked PR is https://github.com/ppvlo/homework/pull/11


Added a Jupyter notebook for nuclei segmentation using scikit-image.

This message was generated by git-bob (version: 0.3.0, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
Implemented a solution to issue #1 by creating a new Jupyter notebook in the "notebooks" directory that segments and counts nuclei in a provided fluorescence microscopy image using the scikit-image library. The notebook is structured with markdown explanations and separate code cells, performing tasks such as loading the image, extracting the blue channel, applying Gaussian blur, thresholding with Otsu's method, removing small objects, and labeling to count nuclei. Displayed images at each step to facilitate understanding.
closes #1

This message was generated by git-bob (version: 0.3.0, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
Thank you for implementing the Jupyter notebook for nuclei segmentation using scikit-image. The approach you described seems comprehensive and educational, providing both code and explanations for each step. Before merging, could you please ensure the following:

Dependencies: List any required libraries in the notebook's first cell or in a separate requirements file. This will help others reproduce your results effortlessly.

Example Data: Include an example fluorescence microscopy image or a link to a source where one can be obtained. This will be useful for testing the notebook.

Output Verification: Verify that all outputs, especially the final count of nuclei, are displayed correctly and consistently with different sample images.

Documentation: Update the project’s main README or notebooks' directory README to reference this new notebook and describe its purpose briefly.

Once these adjustments are made, we can proceed with the review process to merge your notebook. Thank you for contributing!


Older assignments for week 5 and 6

Catch up assignments and labs.

As this is older stuff, I'm jsut merging it -- but let me know if you do have specific questions.


Fix the ReadMe so it can contain valuable information in it.

I want to see a better title, description, and even a better roadmap.

Working on issues.


Install libtweedledum as part of the docker image

Fixes #321.

@stylewarning @notmgsk: Tangentially related to #305


List multiple SMDs/ANCs on the explore page if the address requested is close to a boundary

I've been testing this with 500 and 400 blocks of Florida Ave NW. Seems to be pretty good right now. Should help solve #96 use case.

Closing because we replaced some of the lookup with the MAR query which handles these addresses better.


The QR-Code should be generated after the host of the game has chosen the game mode and parameters.

a8111ee332e64823e7f0fb388c4b12bdde17368b


Fix README source code path

Go source code lives under $GOPATH/src/github.com/packethost/docker-machine-driver-packet.

This change is

merged, thanks @mattbostock


Add provisioning for wazi env

I squashed the commit history so we have 1 single clean commit. Let me know you see any issues.

Done testing the PR by reviewing the env variables and running ims-prov and de-prov on wazi

@adn1107 - I am not sure who from your team you want to review this, but currently the PR has no reviewer and only 1 of 3 checks have passed, linting can't run till your branch is up to date which is one of the 1 errors reported.

@ddimatos the PR has been opened for too long. I need to rework it to make it up to date so I convert to to Draft for now.

No problem, for some reason I thought it was a recent PR. Thank you.


iOS 6.0 three digit unread badge malformed

In the above image, taken on an iPhone 12 mini with the latest iOS 14 version, you can see one of the table view rows,  the three digit unread badge count is somehow malformed and not displaying correctly.
Thank you all for a wonderful RSS reader app.

Are you still seeing this bug?


by the way, how dose the back side C#  to do about channel?

by the way, how dose the back side C#  to do about channel?
1.how to multicast by channel ?
2.how to porcess the subscribe or unsubscribe  by client?
thanks

Hi @johnhuang669 not sure I follow what you're asking.  Join requests are submitted as control messages to the BigQ server which then adds the client to the channel's metadata.  Leave requests remove this metadata.
I haven't (yet) added create channel capabilities in the JS SDK (it's on the list) but it can be done from a C# client today.  When adding a channel, you can specify whether it is unicast (send messages to only one subscriber), multicast (send messages to all subscribers), or broadcast (send messages to all channel members).
Does this make sense?
Cheers!

thank your reply,
my problem is how to manager all the channel on the server side ?
create channel, unicast ,multicast ,or broadcast  on server side
while the client subscribe "XXX" channel to the server side, how do I to manager it?

Ah, I see what you are asking now.  The channels aren't managed on the server directly.  They are created and managed by the connected clients.  I can add server-side channel management, and also add channel creation/teardown into the JS SDK if you don't have a C# client to connect.  Let me know!

thank your reply,
I am looking for the C#  library just like  socket io (client side)  and node js (server side) a long time.
I will apply the bigqio to my web.
The Server side is developed by .net C# ( bigqio ) and the client side use the sdk-js.
I think it will be the first mode to start by  .net C# websocket to push data to client browser like socket io (client side)  and node js (server side).
I am very happy to find this project that you share, and you are very good !!

sorry,
I still can't connect to bigqio Server....
my server config is
server = new Server(null);
server.Config.TcpServer.Enable = false;
server.Config.WebsocketServer.Enable = true;
server.Config.WebsocketServer.Ip = "<IP_ADDRESS>";
server.Config.WebsocketServer.Port = 8002;
my client get error
WebSocket connection to 'ws://<IP_ADDRESS>:8002/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

sir,
but your SDK in build on node js........maybe can use javascript or jquery?

Hi @johnhuang669 the test.js file uses Node but the SDK itself should be useful anywhere including the browser.
Were you able to get the client connected to the server?

Yes, I can connect to the server now because I modify some code.
I don't use node js.
if I want to use node js ,I would choice the socket io and node js server.
by the way. the bigqio server side can't create  channel ? and  manager .

That is correct, all of the channels are created and managed by clients.  If you like, I can add channel management into the server as well, along with creation and deletion of channels in the JS client.  My day is a little busy today but I should be able to get to it tomorrow or over the weekend.  Cheers!

the correct logical of channel operation is based on server side not client side , right?
while the server side create the channel, the client can add it and can't be deleted by client.
my deal is refer the socket io and node js.

Hi @johnhuang669 - the channels are created by clients and destroyed by the client that created the channel.  Sorry I won't have a chance to do this until the weekend but it is on my list to add channel creation/destruction to the clients (including JS) and also add controls for channels created/managed by the server itself.  Thanks!

ok, thanks your help~
good day !

I set the server config property ,and it doesn't work?
server = new Server("server.json");
server.Config.Debug.SendHeartbeat = false;

Correct, those need to be set in the config file. I need to change the access/protection level on that class.
Sent with thumbs, please pardon brevity, spelling, and grammar

On Jun 1, 2017, at 7:44 PM, johnhuang669<EMAIL_ADDRESS>wrote:
I set the server config property ,and it doesn't work?
server = new Server("server.json");
server.Config.Debug.SendHeartbeat = false;
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

can it send to client data format as json?

the below code has problem, it remove Members not  Subscriber
`private bool RemoveChannelSubscriber(Client currentClient, Channel currentChannel)
{
if (ChannelMgr.RemoveChannelMember(currentChannel, currentClient))
{
#region Send-Notifications
            if (Config.Notification.ChannelJoinNotification)
            {
                List<Client> curr = ChannelMgr.GetChannelMembers(currentChannel.ChannelGUID);
                if (curr != null && currentChannel.Members != null && currentChannel.Members.Count > 0)
                {
                    foreach (Client c in curr)
                    {
                        //
                        // create another reference in case list is modified
                        //
                        Channel tempChannel = currentChannel;
                        Task.Run(() =>
                        {
                            Logging.Log(LoggingModule.Severity.Debug, "RemoveChannelSubscriber notifying channel " + tempChannel.ChannelGUID + " member " + c.ClientGUID + " of channel leave by subscriber " + currentClient.ClientGUID);
                            SendSystemMessage(MsgBuilder.ChannelSubscriberLeaveEvent(tempChannel, currentClient));
                        }
                        );
                    }
                }
            }

            return true;

            #endregion
        }
        else
        {
            return false;
        }
    }`

send Message can be modify to  List ?

Channel creation (https://github.com/bigqio/sdk-js/commit/b517ec91bc5aeab6ee717e6466c3bbdd387e70d1) and channel deletion (https://github.com/bigqio/sdk-js/commit/fd196900e85563391d4d1d351e0fb2ebfac529c5) have been added to the JS SDK.  Both are in latest master.  I'll be working on the server APIs for the same this evening!  Hopefully should have an update for you soon.

Added APIs to the Server class to allow creation of channels and deletion of channels (https://github.com/bigqio/bigq/commit/c79f8d1e6fbe0bb54d26d84bb3f9a4265a162991).  Cheers!


How to describe columnOptionSection and additionalColumns in a web.config

I am trying to convert my .net core appsettings.json Serilog section to web.config.  My existing appsettings.json section looks like this:

"WriteTo": [
      {
        "Name": "MSSqlServer",
        "Args": {
          "connectionString": "conn",
          "tableName": "LogMe",
          "autoCreateSqlTable": false,
          "batchPostingLimit": 1000,
          "period": "0.00:00:05",
          "columnOptionsSection": {
            "disableTriggers": true,
            "clusteredColumnstoreIndex": false,
            "primaryKeyColumnName": "Id",
            "removeStandardColumns": [ "MessageTemplate", "Properties" ],
            "additionalColumns": [
              {
                "ColumnName": "MachineName",
                "DataType": "nvarchar",
                "DataLength": 100
              },
              {
                "ColumnName": "SourceContext",
                "DataType": "nvarchar",
                "DataLength": 100
              },
             ...
             ...
        }
     }
  ]

In the web.config, I got as far as this:
    <add key="serilog:using:MSSqlSever" value="Serilog.Sinks.MSSqlServer" />
    <add key="serilog:write-to:MSSqlServer.connectionString" value="conn" />
    <add key="serilog:write-to:MSSqlServer.tableName" value="LogMe" />
    <add key="serilog:write-to:MSSqlServer.batchPostingLimit" value="1000" />
    <add key="serilog:write-to:MSSqlServer.period" value="0.00:00:05" />
    <add key="serilog:write-to:MSSqlServer.autoCreateSqlTable" value="false" />

My attempts to use columnOptionsSection.removeStandardColumns seem to be ignored - since the columns are still written to the table.
<add key="serilog:write-to:MSSqlServer.columnOptionsSection.removeStandardColumns" value="MessageTemplate, Properties" />

And I have no idea at all how to process multiple entries for additionalColumns.
I've searched online for an example, but couldn't find one.  Is it possible to describe the above criteria in web.config?

Serilog 2.9:
Serilog.Sinks.MSSqlServer 5.1.3:
.NET Framework 4.6.1
OS: Windows 10

I added a small sample program that reads some column options from an app.config. For web.config it should work the same way. You can find the sample here.
https://github.com/serilog/serilog-sinks-mssqlserver/tree/dev/sample/AppConfigDemo
It uses the following app.config.
<configuration>
  <configSections>

  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
  </startup>
  <MSSqlServerSettingsSection>
    <AddStandardColumns>
      <add Name="LogEvent" />
    </AddStandardColumns>
    <RemoveStandardColumns>
      <remove Name="Properties" />
    </RemoveStandardColumns>
    <TimeStamp ColumnName="TimeStampAlternative" ConvertToUtc="true" />
  </MSSqlServerSettingsSection>
  <runtime>

  </runtime>
</configuration>

The elements that can be added within MSSqlServerSettingsSection can be found here.
https://github.com/serilog/serilog-sinks-mssqlserver/blob/dev/src/Serilog.Sinks.MSSqlServer/Configuration/Implementations/System.Configuration/MSSqlServerConfigurationSection.cs

Just a heads up that this doesn't seem to work for me. I am on .NET Framework 4.6.1. This only seems to work if I do this through code and not through configuration. I get the following error when trying to do this via the Web.config.
Unable to write 1 log events to the database due to following error: The given ColumnMapping does not match up with any column in the source or destination.

@ckadluba, thanks for the quick reply. I tried the full sample but I got the same results. Unfortunately, I can't use SQL Server Profile as my team doesn't have access to do that. I will check trying to use the audit sync next.

@haydenhancock I think @ckadluba meant SQL Server Profiler (not Profile).  If you can't get permission to run it against your DB, just use the Local SQL Server that comes installed with Visual Studio.  And then install your DB there (or at the least tables you care about) and run the profiler against that.

Exactly! Thank you @rgelb for clarification. 😊

Using the AuditTo, I get a column mapping error.
Caught exception while emitting to sink Serilog.Sinks.MSSqlServer.MSSqlServerAuditSink: Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'Properties'.

The trace shows that its trying to INSERT with a column named Properties but that's not how my table is setup. When I switch to the code approach, it works fine.
My Web.config:
<configuration>
  <configSections>

  </configSections>
  <MSSqlServerSettingsSection>
    <AddStandardColumns>
      <add Name="LogEvent" />
    </AddStandardColumns>
    <RemoveStandardColumns>
      <remove Name="Properties" />
    </RemoveStandardColumns>
    <TimeStamp ColumnName="TimeStampAlternative" ConvertToUtc="true" />
  </MSSqlServerSettingsSection>
</configuration>

My Log configuration:
Log.Logger = new LoggerConfiguration()
                .ReadFrom.AppSettings()
                .WriteTo.MSSqlServer(connectionString: ConfigurationManager.ConnectionStrings["Localhost"].ConnectionString,
                                     sinkOptions: new MSSqlServerSinkOptions { TableName = "Logs" })
                .CreateLogger();

However, as soon as I use the code approach for column options it works as it should.
My working configuration via code:

            var columnOptions = new ColumnOptions();
            columnOptions.Store.Remove(StandardColumn.Properties);
            columnOptions.Store.Add(StandardColumn.LogEvent);

            Log.Logger = new LoggerConfiguration()
                .ReadFrom.AppSettings()
                .WriteTo.MSSqlServer(connectionString: ConfigurationManager.ConnectionStrings["Localhost"].ConnectionString,
                                     sinkOptions: new MSSqlServerSinkOptions { TableName = "Logs" },
                                     columnOptions: columnOptions)
                .CreateLogger();

In addition, I am using quite a few enrichers that are working from the Web.config without issue. For example, I am using the Serilog.Enrichers.Environment + SerilogWeb.Classic enrichers which are defined directly in the Web.config.


[T6A1][F12-B3]Gabriel Sim

@gabrielsim1993
Some comments added. Please ack & close the PR after reading comments.


Declaring apollo-link as a dev dependency causes complaints in typescript

Caused by #445, the dependency is broken.
As apollo-link is now a dev dependency cause the following typescript error since it is not installed by default.
node_modules/graphql-tools/dist/stitching/introspectSchema.d.ts(2,28): error TS2307: Cannot find module 'apollo-link'.
node_modules/graphql-tools/dist/stitching/makeRemoteExecutableSchema.d.ts(1,28): error TS2307: Cannot find module 'apollo-link'.

Adding apollo-link as a dev dependency (suggested in #424) resolves the above error, but causes the following typescript error in it's place.
node_modules/apollo-link/lib/linkUtils.d.ts (1,23): error TS2688: Cannot find type definition file for 'zen-observable'.
node_modules/apollo-link/lib/types.d.ts (1,23): error TS2688: Cannot find type definition file for 'zen-observable'.
node_modules/apollo-link/lib/link.d.ts (1,23): error TS2688: Cannot find type definition file for 'zen-observable'.

@tjpeden: The @types/zen-observable issue should be fixed in the coming version of apollo-link as  apollographql/apollo-link#171 has been merged.
However, adding apollo-link as a dev dependency of graphql-tools is still not ideal. This should be fixed. But without a clear understanding of why the original change in #445 makes Launchpad work again, a PR may not be wise.
@stubailo: any thought?

So basically, we had to work around with a problem in Launchpad with peer dependencies. As a result, we made this package no longer have a direct dependency on apollo-link. The dev dependency is because we use some of the types from it, as you have noticed.
I think the right solution is to fix the type issues, but not re-introduce a dependency on the library. Any ideas?

If someone could jump in with a PR that would be much appreciated!

@stubailo do you mean that apollo-link cannot be installed alongside with `launchpad?
What is the exact problem? so that we can try to fix it?

Hello! (new person here, affected by this issue).
Looks like we need a @types/apollo-link.

But apollo-link itself is written in ts. Making an @types package doesn't sound a good approach.
ping @stubailo

Hi! I don't think we need @types/apollo-link since the types are already in the package.
I think options are:

TypeScript users should install the package even though it's not a dep (99% sure it would work)
We can make it a direct dependency, only drawback is increased bundle size for people using it on the client

I think (2) is not so bad maybe?

Based on the guidance in the Dependencies section of the TypeScript docs, I think apollo-link should be listed in dependencies.

I think it should be declared as a direct dependency. After all, the coupling between apollo-link and graphql-tools is not weak. In fact, some logic even seems to be copied from apollo-link. For example, the code below
https://github.com/apollographql/graphql-tools/blob/cc69bb1556893c9828448470036d02932e3b01a8/src/stitching/linkToFetcher.ts#L26 is taken from apollo-link/src/linkUtils.ts. They should be reused by importing in my opinion.

There are more cases where I use the parts from graphql-tools that do not depend on apollo-link then the cases where I do. Having to add apollo-link as dependency on my own project doesn't make any sense in those cases. I also think graphql-tools should add it as a direct dependency.

Can someone send a PR adding the dependency? Since this project is primarily used on the server I don't think it will be a big deal to add it.


Heapster gets 1 sample/second from cAdvisor

Even if the stats resolution is 30 seconds. We drop 29 samples but they consume both network(transmission) and cpu&mem (parsing).

cc: @fgrzadkowski @piosz @gmarek @wojtek-t

This, combined with #637, means that we transfer up to 60x more data than we actually need.

We can request for just one sample instead.

This will be fix by introducing Metrics API in Kubeletet https://github.com/kubernetes/kubernetes/issues/12483


Multithreading

understand why neurons miss spikes when n_threads > 4
implement and check performance ofboost::thread

neurons missed spikes (probably) due to a split-work bug (some threads were assigned to nobody)
starting a thread costs ~10 us on my machine.

thread creation and redundant binding (#21) turned out to be relevant in performance: evolution of the neuron costs nearly as much as handling incoming spikes. This is awkward and may be due to this two facts.
Approach:

implement boost::thread_pool instead of manually creating threads
add the runge-kutta stepper as a property of the neuron

Benchmark and remember to check if the neuron becomes too heavy in memory size.

After https://github.com/djanloo/quilt/commit/aeececbd8348a55c54bbd5ff45a41b5acc5058f0 :
Running network consisting of 14622 neurons for 6000 timesteps
--------------------------------------------------
**************************************************
[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Ouput for PerformanceRegistrar (8 managers )
[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <spiking network>
_________inject _____1.0 s | 238.0 us/step for 6000 steps
_____monitorize ___20.0 us | __3.0 ns/step for 6000 steps
_____simulation ____11.0 s

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 0>
______evolution _____1.0 s | 330.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __297.0 ms | _49.0 us/step for 6000 steps | __8.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling _____2.0 s | 335.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 1>
______evolution _____2.0 s | 336.0 us/step for 6000 steps | _56.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __240.0 ms | _40.0 us/step for 6000 steps | __6.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling _____2.0 s | 334.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 2>
______evolution __139.0 ms | _23.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 420 units
_spike_emission ___11.0 ms | __1.0 us/step for 6000 steps | __4.0 ns/step/unit for 6000 steps and 420 units
_spike_handling __133.0 ms | _22.0 us/step for 6000 steps | _52.0 ns/step/unit for 6000 steps and 420 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 3>
______evolution __261.0 ms | _43.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 780 units
_spike_emission ___20.0 ms | __3.0 us/step for 6000 steps | __4.0 ns/step/unit for 6000 steps and 780 units
_spike_handling __258.0 ms | _43.0 us/step for 6000 steps | _55.0 ns/step/unit for 6000 steps and 780 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 4>
______evolution ___84.0 ms | _14.0 us/step for 6000 steps | _54.0 ns/step/unit for 6000 steps and 260 units
_spike_emission ____4.0 ms | 813.0 ns/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 260 units
_spike_handling ___81.0 ms | _13.0 us/step for 6000 steps | _51.0 ns/step/unit for 6000 steps and 260 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 5>
______evolution __137.0 ms | _22.0 us/step for 6000 steps | _56.0 ns/step/unit for 6000 steps and 408 units
_spike_emission ____8.0 ms | __1.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 408 units
_spike_handling __134.0 ms | _22.0 us/step for 6000 steps | _54.0 ns/step/unit for 6000 steps and 408 units

[2024-07-12 12:10:37] - PID<PHONE_NUMBER>68832 - INFO: Output for PerformanceManager <Population 6>
______evolution __261.0 ms | _43.0 us/step for 6000 steps | _57.0 ns/step/unit for 6000 steps and 754 units
_spike_emission ___16.0 ms | __2.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 754 units
_spike_handling __259.0 ms | _43.0 us/step for 6000 steps | _57.0 ns/step/unit for 6000 steps and 754 units

that is awkward: times are smaller but the overall simulation takes longer

Performances for https://github.com/djanloo/quilt/commit/e71904f2ba63053a0c84013412f831e3fe4e73e5 :
Running network consisting of 14622 neurons for 6000 timesteps
--------------------------------------------------
**************************************************
[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Ouput for PerformanceRegistrar (8 managers )
[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <spiking network>
_________inject __746.0 ms | 124.0 us/step for 6000 steps
_____monitorize ____2.0 ms | 378.0 ns/step for 6000 steps
_____simulation ____16.0 s

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 0>
______evolution _____5.0 s | 847.0 us/step for 6000 steps | 141.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __124.0 ms | _20.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling __677.0 ms | 112.0 us/step for 6000 steps | _18.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 1>
______evolution _____4.0 s | 826.0 us/step for 6000 steps | 137.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __123.0 ms | _20.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling __612.0 ms | 102.0 us/step for 6000 steps | _17.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 2>
______evolution __507.0 ms | _84.0 us/step for 6000 steps | 201.0 ns/step/unit for 6000 steps and 420 units
_spike_emission ___35.0 ms | __5.0 us/step for 6000 steps | _13.0 ns/step/unit for 6000 steps and 420 units
_spike_handling ___48.0 ms | __8.0 us/step for 6000 steps | _19.0 ns/step/unit for 6000 steps and 420 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 3>
______evolution __913.0 ms | 152.0 us/step for 6000 steps | 195.0 ns/step/unit for 6000 steps and 780 units
_spike_emission ___77.0 ms | _12.0 us/step for 6000 steps | _16.0 ns/step/unit for 6000 steps and 780 units
_spike_handling __121.0 ms | _20.0 us/step for 6000 steps | _25.0 ns/step/unit for 6000 steps and 780 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 4>
______evolution __303.0 ms | _50.0 us/step for 6000 steps | 194.0 ns/step/unit for 6000 steps and 260 units
_spike_emission ____6.0 ms | __1.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 260 units
_spike_handling ___26.0 ms | __4.0 us/step for 6000 steps | _16.0 ns/step/unit for 6000 steps and 260 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 5>
______evolution __479.0 ms | _79.0 us/step for 6000 steps | 196.0 ns/step/unit for 6000 steps and 408 units
_spike_emission ____8.0 ms | __1.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 408 units
_spike_handling ___43.0 ms | __7.0 us/step for 6000 steps | _17.0 ns/step/unit for 6000 steps and 408 units

[2024-07-12 14:10:57] - PID<PHONE_NUMBER>30496 - INFO: Output for PerformanceManager <Population 6>
______evolution __886.0 ms | 147.0 us/step for 6000 steps | 195.0 ns/step/unit for 6000 steps and 754 units
_spike_emission __339.0 us | _56.0 ns/step for 6000 steps | __0.0 ns/step/unit for 6000 steps and 754 units
_spike_handling __185.0 ms | _30.0 us/step for 6000 steps | _41.0 ns/step/unit for 6000 steps and 754 units

Performances for https://github.com/djanloo/quilt/commit/b1b97f36ef4049bfcdab51be337d34bc80647930 :
Running network consisting of 14622 neurons for 6000 timesteps
--------------------------------------------------
**************************************************
[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Ouput for PerformanceRegistrar (8 managers )
[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <spiking network>
_________inject __773.0 ms | 128.0 us/step for 6000 steps
_____monitorize __424.0 us | _70.0 ns/step for 6000 steps
_____simulation _____6.0 s

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 0>
______evolution _____1.0 s | 249.0 us/step for 6000 steps | _41.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __160.0 ms | _26.0 us/step for 6000 steps | __4.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling __239.0 ms | _39.0 us/step for 6000 steps | __6.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 1>
______evolution _____1.0 s | 249.0 us/step for 6000 steps | _41.0 ns/step/unit for 6000 steps and 6000 units
_spike_emission __191.0 ms | _31.0 us/step for 6000 steps | __5.0 ns/step/unit for 6000 steps and 6000 units
_spike_handling __232.0 ms | _38.0 us/step for 6000 steps | __6.0 ns/step/unit for 6000 steps and 6000 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 2>
______evolution __213.0 ms | _35.0 us/step for 6000 steps | _84.0 ns/step/unit for 6000 steps and 420 units
_spike_emission ___49.0 ms | __8.0 us/step for 6000 steps | _19.0 ns/step/unit for 6000 steps and 420 units
_spike_handling ___91.0 ms | _15.0 us/step for 6000 steps | _36.0 ns/step/unit for 6000 steps and 420 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 3>
______evolution __309.0 ms | _51.0 us/step for 6000 steps | _66.0 ns/step/unit for 6000 steps and 780 units
_spike_emission ___93.0 ms | _15.0 us/step for 6000 steps | _19.0 ns/step/unit for 6000 steps and 780 units
_spike_handling ___95.0 ms | _15.0 us/step for 6000 steps | _20.0 ns/step/unit for 6000 steps and 780 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 4>
______evolution __143.0 ms | _23.0 us/step for 6000 steps | _92.0 ns/step/unit for 6000 steps and 260 units
_spike_emission ___10.0 ms | __1.0 us/step for 6000 steps | __6.0 ns/step/unit for 6000 steps and 260 units
_spike_handling ___77.0 ms | _12.0 us/step for 6000 steps | _49.0 ns/step/unit for 6000 steps and 260 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 5>
______evolution __189.0 ms | _31.0 us/step for 6000 steps | _77.0 ns/step/unit for 6000 steps and 408 units
_spike_emission ___17.0 ms | __2.0 us/step for 6000 steps | __7.0 ns/step/unit for 6000 steps and 408 units
_spike_handling ___78.0 ms | _13.0 us/step for 6000 steps | _31.0 ns/step/unit for 6000 steps and 408 units

[2024-07-12 16:42:35] - PID<PHONE_NUMBER>75808 - INFO: Output for PerformanceManager <Population 6>
______evolution __302.0 ms | _50.0 us/step for 6000 steps | _66.0 ns/step/unit for 6000 steps and 754 units
_spike_emission ___14.0 ms | __2.0 us/step for 6000 steps | __3.0 ns/step/unit for 6000 steps and 754 units
_spike_handling __110.0 ms | _18.0 us/step for 6000 steps | _24.0 ns/step/unit for 6000 steps and 754 units

this seems good. Odd thing, performance depends on which terminal I use


conflict with NativeScript URL Handler Plugin

Hi,
I am using the Facebook plug-in with NativeScript URL Handler Plugin. This is not working in IOS Platform. But the Android is working.
Anyone know have this problem and know how to solve it?
handleOpenURL((appURL: AppURL) => {
console.log('Got the following appURL', appURL);
});
I am enabled the facebok plug-in in App. Above code will be not working
Patrick

Hi @patrickl000000
Can you please share a bit more info about the app you are trying to build, the type of the flavour Angular/Typescript/Vue, the versions of the dependencies used in the app etc.
A complete issue template which is set by default in this repo will give us more information and we will be very likely to help you solve your problem. Also a sample app where we can reproduce the mentioned issue will be really helpful.

Hi @DimitarTodorov, I confirm this issue in iOS. I will provide complete information and a demo app in the next days. Meanwhile, my app is vanilla NS with Typescript and these are the dependencies:
"nativescript-facebook": "^4.2.1",
"nativescript-urlhandler": "1.2.2",

If I init the Facebook plugin in app.ts the handleOpenUrl method in the same file is never reached.

any news on this ?

Hi,
I just tried to reproduce this using the demo app in this repository, I just added the<EMAIL_ADDRESS>plugin and then the following lines in app.ts:
handleOpenURL((appURL: AppURL) => {
    console.log('Got the following appURL', appURL);
});

The app compiled and ran on iOS 13.3 and I was able to log in to facebook. Is there something I am missing? If possible, send a small app and steps that can be used to reproduce this reliably. Thanks!

Hi @lini,
thank you for trying to reproduce the issue. The app compiles and run in iOS with the two plugin, but the handleOpenURL method stop working if nativescript-facebook plugin is added to the app. This means that when the app is open by a URL containing the app registered URL scheme, handleOpenURL is never reached. Removing nativescript-facebook, handleOpenURL works again.

Here is what I tried:

using the demo app from this repository https://github.com/NativeScript/nativescript-facebook/tree/master/demo
I added the urlhandler plugin - tns plugin add nativescript-urlhandler
I added the following code in demo/app/app.ts

import { handleOpenURL, AppURL } from 'nativescript-urlhandler';

handleOpenURL((appURL: AppURL) => {
  console.log('Got the following appURL', appURL);
});

I added the following lines in the CFBundleURLTypes key:

<dict>
    <key>CFBundleURLName</key>
    <string>org.nativescript.demo</string>
</dict>

There was a CFBundleURLSchemes defined, so I left it and just added the CFBundleURLName key.
I compiled and ran the app  with tns run ios
once the app started, I switched to mobile Safari and opened the URL with the scheme from info.plist: fb1771472059772879://test
there was a log in the console Got the following appUrl fb1771472059772879://test

Is there something I am missing?

@lini that's the problem, the facebook login is intercepted by the nativescript-handler plugin and not forwarded to the facebook plugin. When looking at the source, we can seed that both plugins overrides some of AppDelegate's methods to catch "open url" actions

Hm, I tried that as well (both Continue with Facebook and Continue with Facebook (Custom)) and the demo worked. I was logged in with Facebook and could log out as well. I did not see a Got the following appUrl.... console log when I logged in. Perhaps the order of the plugins initialization matters?
Here is the app.ts file:
import * as application from 'tns-core-modules/application';
import { init, initAnalytics } from "nativescript-facebook";
import { handleOpenURL, AppURL } from 'nativescript-urlhandler';

application.on(application.launchEvent, function (args) {
    init("1771472059772879");
    initAnalytics();
});

handleOpenURL((appURL: AppURL) => {
    console.log('Got the following appURL', appURL);
});

application.run({ moduleName: "app-root" });

@lini Yes the order of initialization matters (maybe the order of import/require of that plugins) , you can't get both plugins working, it's either facebook-login or urlhandler.
I faced a similar conflict with this plugin and nativescript-plugin-firebase which does the same AppDelegate overriding. A solution would be for the plugins developers to align themselves on how to override the AppDelegate (or use a kind of shared service that emits the needed events).

As a workaround, how can could we catch the data from urlhandler and pass them back to this plugin ?

Hi,
I also try other plugin (name : Nativescript plugin Universal Links). We confirm this plugin cannot working with Facebook plugin. I am get the same result. Anyone Know How to using Universal link or URL Handle with Facebook Login in Nativescript IOS APP?
Patrick

Same problem here. Any solution?

Hi everyone! Any news about issue? I have hit with this problem also. @daweedm do you have example to get around this problem?  Any idea how to override the AppDelegate?

@asikalove
I found that the origin of the conflict was the use of nativescript-plugin-firebase in my case.
I managed to solve this with the following (ugly but working) workaround :
Apply a custom callback handler by overriding the AppDelegate. For this I put the following code at the bottom of the nativescript-plugin-firebase/firebase.ios.js file.
Disclaimer : this was a quick fix to get a prototype working quickly. For a "real" project, editing dependencies source files directly is a bad habit.
(function () {
                    function extractAppURL(urlParam) {
                        if (!!urlParam) {
                            var url_1 = urlParam.toString(),
                            params = new Map(), urlWithPath = url_1.indexOf('//') < url_1.length - 2,
                            urlWithParams = url_1.indexOf('?') !== -1, path = urlWithPath ? url_1.substring(url_1.indexOf('//') + 2,
                            urlWithParams ? url_1.indexOf('?') : url_1.length) : null,
                            parameters = url_1.substring(url_1.indexOf('?') + 1).split('&');
                            if (urlWithParams) {
                                for (var i = 0, len = parameters.length; i < len; i++) {
                                    var paramData = parameters[i].split('=');
                                    params.set(paramData[0], paramData[1] ? paramData[1] : null);
                                }
                            }
                            return {
                                params: params,
                                path: path,
                                toString: function () {
                                    return url_1;
                                }
                            };
                        } else {
                            return null;
                        }
                    }

                    getAppDelegate().prototype.applicationOpenURLOptions = function (application, url, options) {
                        if (getAppDelegate().prototype.___DS_IOS_HANDLER) {

                            FBSDKApplicationDelegate.sharedInstance.applicationOpenURLSourceApplicationAnnotation(application, url, options.valueForKey(UIApplicationOpenURLOptionsSourceApplicationKey), options.valueForKey(UIApplicationOpenURLOptionsAnnotationKey));

                            var lastArgument = arguments[arguments.length - 1];
                            var previousResult = lastArgument !== options ? lastArgument : undefined;
                            if (!previousResult) {
                                var appURL_1 = extractAppURL(url.absoluteString);
                                if (appURL_1 != null) {
                                    setTimeout(function () { return getAppDelegate().prototype.___DS_IOS_HANDLER(appURL_1); });
                                }
                                return true;
                            }
                            return previousResult;

                        }
                    };

                    getAppDelegate().prototype
                    .applicationContinueUserActivityRestorationHandler = function (application, userActivity, restorationHandler) {
                        if (getAppDelegate().prototype.___DS_IOS_HANDLER) {
                            if (userActivity.activityType === NSUserActivityTypeBrowsingWeb) {
                                var appURL_2 = extractAppURL(userActivity.webpageURL);
                                if (appURL_2 !== null) {
                                    setTimeout(function () { return getAppDelegate().prototype.___DS_IOS_HANDLER(appURL_2); });
                                }
                            }
                            return true;
                        }
                    };

                })();

Then, wherever you need, you can register a custom callback in your app source code, like this :
require('tns-core-modules/application/application').ios.delegate.prototype.___DS_IOS_HANDLER = (url) => {
            console.log('GOT url from ___DS_IOS_HANDLER', url);
            setTimeout(() => this.ngZone.run(() => this.handleOpenURL(url)));
        };

It may not solve your issue because mine was due to the use of nativescript-plugin-firebase in my project.
The workaround is simple but the issue itself is vicious, I spent a whole day searching for the reason why this damn plugin does not work.
Good luck.


Disabling Data Protection

Is there any way to disable the data protection stack, or at least opt out of certain functionalities?
In my case, I'm looking to opt-out of cookie encryption for my web app since it runs in a server farm. I understand there are readily available instructions for handling this scenario, e.g. storing the Data Protection key in a centralized location. In addition to that, disabling data protection is a security concern. However I can handle cookie encryption through my load balancer, which allows my app to not worry about the location and handling of the data protection keyring,
Based on previous discussions, i.e. https://github.com/aspnet/DataProtection/issues/192, it doesn't look like there's any simple way of opting out other than re-implementing the Data Protection stack myself.

DataProtection is used for a lot more than just cookies. E.g. AntiForgery tokens.
Even if this were possible, it would be too dangerous for us to even provide samples for. It would almost certainly be used incorrectly and compromise one or more applications. If you figure out how to do it, please don't advertise it.

@Tratcher I don't disagree. I asked about disabling DataProtection in general since there didn't seem to be an opt-out option for certain features, namely cookie encryption.

We don't need to write a sample but here's the extensibility point to providing your own format.
https://github.com/aspnet/Security/blob/f8b4f4c620e2faaeec262d302df143068c8d0b33/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationOptions.cs#L123

I got it work. Thanks @davidfowl for the direction.


Added POH Items

Description:
Added command that was there previously to list the buildable items in PoH
Changes:
Added subcommand on PoH, it lists out in the same format as before, but in text output format due to character limit in discord.
Other checks:

[x] I have tested all my changes thoroughly.

Closes #4382

make this a PR for master rather than BSO since it's a feature that both bots can utilize.


[KeyVault] regenerate azcertificates from 7.3 swagger

regenerating from latest GA swagger

/azp run go - azcertificates

/azp run go - azcertificates

/check-enforcer reset

/azp run go - azcertificates

It looks like recordings were manually updated instead of being generated by new test runs -- is that for a particular reason?

Not a great one, running a live test to verify the tests pass.


Bring up-to-date

Thanks! (I slightly edited versions so that they are all synchronised with the dunai version.)

Cool!


Ownership/Kaiten

This is not a technical question, but I'm curious if this blurb from Kaiten mail is correct:
"Kaiten is based on the popular open source app K-9 Mail and was built by K-9's lead developers Jesse and Chris. By buying Kaiten you not only get an awesome email client, you also support the open source version because almost all of the new features are contributed to K-9 Mail."
K-9 has seen many new releases, Kaiten seems abandoned.  Are the lead developers noted above part of the current K-9 team or did I give my money to random hucksters?

If you read the wiki section, it indicates the association with kaiten.

OK, then I'll update my question - is there a current association with Kaiten or are those developers no longer associated with K-9?  Again, the Kaiten project seems abandoned - no new releases, hey don't respond to support queries, and apparently the app is somewhat incompatible with newer Android releases.  If anyone in the K-9 project can comment, that would be helpful - new users would then know their best option is to go with K-9 and if they want to donate to the project, there's probably other options besides buying Kaiten.

Ah, it does. https://github.com/k9mail/k-9/wiki cites:
"Pull requests, bug reports, and questions (via email or chat) are always welcome. If you feel like contributing financially, please make a donation to the local SPCA, or buy Kaiten Mail from the market."

Also, looking at the wiki revisions, the last time any change was made in the section about Kaiten was in 2012, hence why I'm looking for an update.

A possible alternative would be to donate to K-9's top contributors. @cketti (Might be Chris from the initial) has a donate button on his website: http://cketti.de/ and he is by far currently K-9's top and current contributor. @obra (Jesse) does not seem to have a donate button on his website.

Jesse isn't actively involved these days. If you feel a need to donate to him, please give to your local animal shelter.
-Jesse

On Jan 6, 2016, at 4:45 PM, Jacob Weisz<EMAIL_ADDRESS>wrote:
A possible alternative would be to donate to K-9's top contributors. @cketti (Might be Chris from the initial) has a donate button on his website: http://cketti.de/ and he is by far currently K-9's top and current contributor. @obra (Jesse) does not seem to have a donate button on his website.
—
Reply to this email directly or view it on GitHub.

I'm currently responsible for Kaiten Mail. But, as @sporkman correctly noticed, it's largely abandoned by now. You should use K-9 Mail instead.
I'll try to find some time to port the missing 1-2 "Kaiten-exclusive" features to K-9 Mail and then shut down the app (existing customers will always be able to redownload it from Google Play).


active learning example modifications

This commits two changes:

correcting wrokflows paths for active learning example NiAl
always importing keras from tensorflow in all scripts related to active learning

Thanks.


Pipeline sharding

@jdoliner

@jdoliner reminder to take another look at this

@jdoliner can you take another look?

@jdoliner take another look please

Just the one comment about needing a separate goro. Other than that this looks good to me.


Feature/improvements warehouse3

If this is a problem with CI you have then the problem is in sm_husky_barrel_search_1 where launch folder is missing. Also the config files seem to be misnamed in that package


Remove design-time facades from net45 framework assemblies in packages

Resolves #2152
/cc @davidfowl Having these in the nuspec blocks installation into net45 projects. Without them, dnx451 won't work.

:shipit:

Filed aspnet/dnx#2031


Upload/downloading files source code

Hello,
I'm trying to find the source code for the upload and downloading files, are they closed source?

https://skorks.com/2010/03/how-to-quickly-generate-a-large-file-on-the-command-line-with-linux/

Alright, thank you.
I was a bit confused because both the downloading and upload files are executables, and the request included some ?n=Math.random(), I guess that is for cache reasons.

They are not executables. @SergiAcrontum I used dd/urandom to generate downloading file. upload is just an empty file.

You are right, they are not executable in the repository.
They are in the Dockerfile, chmod 755.
Thank you for the help.

You can give 644 a try as it should work without any issues. 644 seems to be the more suitable option. However, please keep in mind that this file only contains dummy data, so it won't cause any harm.


Bloom filter during segment creation (WIP)

This PR adds support for being able to create bloom filters during offline segment creation.
gh issue: https://github.com/apache/pinot/issues/8334

Codecov Report

Merging #8601 (63bb8cd) into master (b5690a7) will decrease coverage by 15.29%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master    #8601       +/-   ##
=============================================
- Coverage     29.35%   14.06%   -15.30%
- Complexity        0       84       +84
=============================================
  Files          1691     1658       -33
  Lines         89215    87685     -1530
  Branches      13526    13367      -159
=============================================
- Hits          26190    12329    -13861
- Misses        60603    74431    +13828
+ Partials       2422      925     -1497

Flag
Coverage Δ

integration1
?

integration2
?

unittests2
14.06% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Missing serialport dependency

What am I doing wrong?
<EMAIL_ADDRESS>Node.js v12.18.2
MacOS Catalina 10.15.7
When trying to run the node blink.js, the Missing serialport dependency error is thrown
When trying to install serialport, the following errors occur:
<EMAIL_ADDRESS>install /Users/ako/Desktop/arduino : esp/NodeMCU/apollo/node_modules/firmata/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

sh: prebuild-install: command not found
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/ako/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/Users/ako/.nvm/versions/node/v12.18.2/bin/node" "/Users/ako/.nvm/versions/node/v12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ako/Desktop/arduino : esp/NodeMCU/apollo/node_modules/firmata/node_modules/@serialport/bindings
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/ako/.npm/_logs/2021-01-26T16_32_28_807Z-debug.log

We are using Node.js 12.18.3, Chromium 87.0.4280.141, Electron 11.2.0, and Serialport 9.0.6 ---is OK

We are using Node.js 12.18.3, Chromium 87.0.4280.141, Electron 11.2.0, and Serialport 9.0.6 ---is OK

Did you find a work around to this?

@kakashy yes, I reinstalled the XCode Command Line Tools

This looks to have been resolved, please should if any extra help or support is needed


Curious bug with Adjust Margin challenge Beta

Challenge adjust-the-margin-of-an-element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
Challenge requires camper to change margin: 10px; to margin: 20px; for
  .green-box {     background-color: green;     padding: 20px;     margin: 10px;   }
When running it initially the test processes it fine and accepts the answer. However, if I close the pop-up message instead of continuing to the next challenge and then Clear my Code using the Reset button (in order to play with the code before moving on, for example), the bug occurs. When repeating the challenge (changing 10px to 20px for green box, all other code left alone) and submitting Run Test, the code will automatically revert to 10px every time.
I've gotten it to stop the behaviour both by refreshing the page or by typing and then backspacing a space elsewhere, then Running Test again. The bug also does not appear if I type or alter code elsewhere in the editor.
It is repeatable in Incognito mode for Chrome, but when trying to repeat the issue for Firefox I could not get it to accept the solution of 20px whatsoever.

margin

padding

padding

Hi @Skarrix! Thank you for reporting this issue.
Things not working in Firefox is a known issue, see #10749
A step by step on how to reproduce:

Change the 1 on line 29 to a 2
Run the tests
Close the success modal
Click the "Reset" button
Click "CLEAR MY CODE"
The 2 will go back to a 1.
Change the 1 to a 2 again.
Run the tests.

The 2 will go back to a 1 again.
This is a very weird issue 😕

Confirmed bug is not browser depended both Chrome & Safari (latest versions) on Mac OSx have this issue.

Can't reproduce the issue as per these instructions. The end result is tests passing.
Tested in Firefox and Chrome:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

I also can't reproduce the issue. I'm using Firefox 57 on Mac.
We need a Windows user to test it in Firefox

I tested on a Windows computer with Firefox 57 and I couldn't reproduce the issue.
@Skarrix @systimotic @Douglasdc3 , could you check the issue one more time? Looks like it's resolved.

Thanks for checking this @mpontus @nicksavov! Some recent changes to the beta fixed this issue.
Happy coding!


Attach a file using webhook

Hi I am trying to develop a poweshell script to attach output file while sending a webhook to a channel so is it supported or not supported till now ?

@mohamedalaa33 Sending files using webhook is currently not supported.

@Gousia-MSFT  is there any workaround ?

@mohamedalaa33 As of now you could only provide hyperlink of the file in the message. Other than that there is no way to send files using webhooks.

@Gousia-MSFT is creating a bot to send and receive files can solve issue ?

@mohamedalaa33 Yes, you can use Bots to send and receive files.

@Gousia-MSFT  Thank you


Each time I want to add a contact into database, it's need me to open the database,

Is that possible that I only need to open the database in one shot and then I don't need to open it anymore?

Yes of course. You open it once on a page life time. You should reuse the db instance where needed in your app. If you write module based code, you should write a module that creates, configures and exports the db instance to use in your other modules. If you write plain script tags, you should leave db as a global var to use where needed.

@dfahlander  Sorry for the unclear to clarify the problem, I am not talking about the reuse the db instance, I am talking about each time when I trying to add data into indexedDB by Dexie,
I have to calling the Dexie.open function before I calling to the Table.add
function, is there anyway to avoid the duplicated calling to the Dexie.open function?

No, you should never call db.open() more than once in the instance life time. Have you looked at any of these samples? Watch the TODO-list sample for example.

@dfahlander I am using the ES6's generator along with co to writing down the code
And because of that, once I open the database and then calling to the .add method of Table, it's would be blocked, I've seeing the TODO demo, the put function is only called by one time.

What is co?
What framework are you using in order to utilize ES6 generator? Do you mean that you are using Dexie.Yield addon?
I really need some more info in order to help you.

@dfahlander  I found the reason is because we delete the database. so after the delete, the database is closed.

Ok, great you found it! :)


Add Max Crit Support

Please either add support of the module Max Crit (https://github.com/smilligan93/max-crit-foundry-dnd5e) or offer an option to duplicate it's functions.  Basically it just maximizes the the crit dice of a crit hit.  It's just so underwhelming to land a crit and roll two 1's for damage.

I was going to give a go and trying to implement this myself and make my changes availible to you of course if you wanted.  So I download the src folder and set it up as a module on a local install but I just get an error of file not found on import { rolling } from './rolls'; in index.js.
If you can help be get this working locally I'd be happy to submit any code changes back to you, assuming one I can get it to work and two you are have any interest in including the changes.
Bob

oh nice, help is very appreciated!
but ye the build process is "a bit" more complex, due to me using webpack to bundle everything.
Prequisites:

Node Js + NPM installed

steps:

git clone the repository.
create a foundryconfig.json file in the folder with content like this (i just remembered that its not pushed.)

{
  "dataPath": "/path/to/foundry/data/folder",
  "repository": "https://github.com/Moerill/mess",
  "rawURL": "https://raw.githubusercontent.com/Moerill/mess"
}

use npm install inside the folder to install the node packages
use gulp link (i think you need to remove the mess module folder inside your datapath first. This creates link between the dist folder and the module folder inside your fvtts module folder)
use gulp watch. This starts the build process, each time you save stuff it gets bundled and moved into the dist folder.
Another advantage here: you can take advantage of browsersync. If you use a local fvtt version on port 30000 you can just go to localhost:3000(yes no 0 is missing) to launch the browsersync instance. This way it automatically reloads when it has finished bundling (and injects changed css if you modified t he .less files). If you do not run a local  foundry copy you need to modify theh gulpfile.js, find this part:

function buildWatch() {
	const config = {
		server: false,
		proxy: {
			target: "localhost:30000",
			ws: true
		},
		browser: 'google-chrome',
		open: false
	}

and change the target to your foundrys webadress. Then use localhost:3000 to access your browsersync instance.

Thanks
Ill look into setting this up tomorrow or maybe even tonight.
Bob
On Tue, Jun 9, 2020 at 4:27 PM Moerill<EMAIL_ADDRESS>wrote:

oh nice, help is very appreciated!
but ye the build process is "a bit" more complex, due to me using webpack
to bundle everything.
Prequisites:

Node Js + NPM installed

steps:

git clone the repository.
create a foundryconfig.json file in the folder with content like
this (i just remembered that its not pushed.)

{
"dataPath": "/path/to/foundry/data/folder",
"repository": "https://github.com/Moerill/mess",
"rawURL": "https://raw.githubusercontent.com/Moerill/mess"
}

use npm install inside the folder to install the node packages
use gulp link (i think you need to remove the mess module folder
inside your datapath first. This creates link between the dist folder and
the module folder inside your fvtts module folder)
use gulp watch. This starts the build process, each time you save
stuff it gets bundled and moved into the dist folder.
Another advantage here: you can take advantage of browsersync. If you
use a local fvtt version on port 30000 you can just go to
localhost:3000(yes no 0 is missing) to launch the browsersync
instance. This way it automatically reloads when it has finished bundling
(and injects changed css if you modified t he .less files). If you do not
run a local foundry copy you need to modify theh gulpfile.js, find
this part:

function buildWatch() {
const config = {
server: false,
proxy: {
target: "localhost:30000",
ws: true
},
browser: 'google-chrome',
open: false
}
and change the target to your foundrys webadress. Then use localhost:3000
to access your browsersync instance.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Moerill/Mess/issues/42#issuecomment-641550878, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAZXA5E3ANYDR7YSQHYGQ3RV2LLBANCNFSM4NZPMUPA
.


add yarn build to CI test

I can set this up this morning. Do we want to run a full build, or just tsc?

Why not a full build?


max_tokens is None leads to internal server error

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[X] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
[X] I carefully followed the README.md.
[X] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
[X] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior
When a large query, comes in and max_tokens is not set but the model still fails with token limit exceeded this should be reflected in the error response.
Current Behavior
When the input tokens are too big, in the error handling another error happens, due to line 209 in app.py which combines the None of completion_tokens with the prompt_tokens:
completion_tokens + prompt_tokens
Essentially completion_tokens should be checked for None in the function or set a non None value for the max_tokens number
Environment and Context
Irrelevant

Physical (or virtual) hardware you are using, e.g. for Linux:

Irrelevant

Operating System, e.g. for Linux:

Irrelevant

SDK version, e.g. for Linux:

Irrelevant
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Spin up a llamacpp server
Send a request with more than ~2048 tokens without specifying a max_tokens parameter
Failure Logs
INFO:     <IP_ADDRESS>:0 - "POST /v1/chat/completions HTTP/1.0" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/server/app.py", line 304, in custom_route_handler
    response = await original_route_handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 274, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/server/app.py", line 852, in create_chat_completion
    first_response = await run_in_threadpool(next, iterator_or_completion)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/llama_chat_format.py", line 222, in _convert_text_completion_chunks_to_chat
    for i, chunk in enumerate(chunks):
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/llama.py", line 1415, in _create_completion
    raise ValueError(
ValueError: Requested tokens (6692) exceed context window of 2048

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1106, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 83, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette_context/middleware/raw_middleware.py", line 92, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.12/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.12/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/server/app.py", line 334, in custom_route_handler
    ) = self.error_message_wrapper(error=exc, body=body)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/server/app.py", line 283, in error_message_wrapper
    return callback(body, match)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/llama_cpp/server/app.py", line 209, in context_length_exceeded
    completion_tokens + prompt_tokens,
    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

+1 on this one

@tpfau I'm happy to work on a PR for this one - what do we think the ideal behavior is? If no max_tokens is specified, to just not use a cap? or just use the n_ctx context size as the max?

Possibly a duplicate of / related to #111 ?

Honestly: I think it doesn't  matter what to use if nothing is specified.
I'd probably say no limit since this would be the intuitive limit or use something like the current max token limit on OpenAI models or something similar.


Refactor inverter parameter files

Hi Stephan,
This series of commits aims to do the following;

Adds support for Solis Hybrid inverters
Creates a new subdirectory inverter_definitions and moves all of the yaml files to there
Renames the default parameters.yaml to deye_hybrid.yaml to aid identification.
Creates a GUI setup option to allow users to set a custom_parameters.yaml file which must be created manually, and therefore won't be overwritten on upgrade.
Replaces a few Sunsynk references which I missed in bdf7ffa.

Any queries, just give me a shout.
Thanks,
Jon

Thanks Jon,


[PasscodeLock] Set status to AFK while locked.

If Discord is locked or autolocked it could change the users status to 'AFK' if the users status was 'Online'.
When the user unlocks Discord the status is reset to the original status.

I think this is unnecessary, because you can minimize the Discord, but still be using the computer, then the plugin will autolock Discord and set your status to AFK for you, even if you are not.
Discord has it's own system to set the AFK status and there's no need to modify it.


Allow tests to run in older versions of node

@adamfortuna safe tests on this repo as well :D

Sweet! You're good to merge all these into master 👍


Adding alt text to fix issue #65

Related Issue

Fixes #65
Checklist:

[x] I have read the contributor's guide.
[x] I linked an issue in the previous section
[x] I have commented on the linked issue
[x] I was assigned the linked issue (not required)
[x] I have tested the change to the best of my ability against the sandbox or a local build.
[x] All my images have appropriate alt tags

Optional items:

[ ] My change adds new text and requires a change to translations.
[ ] I was not able to test... (explain below, e.g. you did not have permissions to test a specific feature)
[ ] This change depends O-FISH Realm repository changes (explain below)
[ ] This change depends O-FISH Web repository changes (explain below)

Optional: Add any explanations here

Optional: Add any relevant screenshots here

Congratulations! 🎉 🙌 🎆 ㊗
This PR is great and has been merged into the code. Thanks so much for contributing! If you'd like, you can request to work on another issue. We really appreciate your effort!

Hi @jessicasalbert!
We noticed you haven't gotten your MongoDB digital swag. To claim your O-FISH badge, head on over to the MongoDB Community forums, login, and reply - making sure to link to this PR.