Is "use" statement functional?

I'm attempting to 'use' the types from one RDL file in another one.  An example of what I'm doing follows:
File: .../example/used/used.rdl
name used
type AStruct struct {
  int64 AValue
}

File: .../example/user/user.rdl
name user
use "../used/used.rdl"
resource used.AStruct GET "/example" {
  expected OK;
  exceptions {
    ResourceError NOT_FOUND; // No entry found
  }
}

When I attempt to generate any Go code for the user.rdl file I receive a warning and the Go code generated does not build.   When I attempt to generate Markdown I get an error from the rdl tool.  Issuing an rdl parse command on the user.rdl file returns no errors.  Am I doing something wrong or is this a bug?  If I replace the use keyword in the user.rdl file with the include keyword and remove the used. prefix from AStruct, generation succeeds in all cases.  However a completely new type is then generated in the user package that is no longer the same as used.AStruct.

This must be broken. The "use" directive was originally intended for the special references to RDL types themselves, tests and fixes are needed for the use case you describe.


more relevant maximize minimize icons

The icons for maximize and unmaximize were not relevant . So, changed those icons to more relevant icons .

can you please close and reissue against the development branch?

yes sure .

Closing in favor of #15


Fix: Resolve error in allcourses.json and enable successful localhost run

This PR resolves issue #594, which was related to errors in the allcourses.json data and localhost not running correctly. The following changes have been made to address the issue:

Fixed syntax errors in allcourses.json.
Corrected data formatting and structure.
Ensured that the JSON file is valid and can be properly parsed.
Localhost running properly

Testing:

Verified that the corrected allcourses.json data now loads without errors.
Confirmed that the website runs successfully on localhost without issues.

Screenshot:

@avinash201199 Please review and merge. Thanks!

Thank you for your valuable contribution :)
please check again if it's working , many people were getting error while running or their local server

I accepted your pr after that even online link is not working so I'm reverting the pr , please check what was the problem

can you please work on it ?


Add product ID?

It'd be more useful if product ID were included in the results. I can put up a PR if you are currently maintaining and willing to review!
Thanks,
Brian

Added in #2


expose isDragging to DropTargetMonitor

I want to make a drop target that appears on top of other content once the user starts dragging something.
But DropTargetMonitor doesn't provide an isDragging method, so it's basically impossible for me to do this without some kind of ugly hack.  Why was isDragging excluded from DropTargetMonitor?

You can use monitor.isOver()

@subins isOver won't help with what I'm trying to do.  I want the drop target to be display: none when the user isn't dragging and display: block while they are dragging, even if monitor.isOver() is false.

The hack I implemented was to put redux-dnd's store on context as dndStore and then connect to it to get the drag state.  Not a very happy solution...

Ok, Can you use a combination of Drag Source Specification methods like beginDrag, endDrag, isDragging. May be trigger a redux action that toggles a store boolean to indicate some one is dragging something.?

@subins I could do that, though I like that workaround less than just connecting to react-dnd's store directly...

Ultimately, I think react-dnd should expose isDragging to drop targets.

@jedwards1211 - have you wondered how it's done in the chessboard tutorial?
There is a yellow overlay shown on the boxes indicating possible moves (i understand this is what you want to do; instead hide/show an element ?)
Looks like we are using !isOver && canDrop
https://github.com/react-dnd/react-dnd/blob/master/examples/00 Chessboard/Tutorial App/BoardSquare.js#L70

@theTechie His case is different, Drop Targets are hidden by default. So isOver wont be triggerred unless he change it to display block when dragging happens. Thats why he needs isDragging in drop target monitor.

@theTechie oh.  The meaning of canDrop was kind of ambiguous to me, I think the docs are wrong (emphasis mine):

canDrop(): Returns true if no drag operation is in progress, and the owner's canDrop() returns true or is not defined.

That says "if no drag operation is in progress", shouldn't it be "if a drag operation is in progress"?

@theTechie I PRed corrections to the docs here: https://github.com/react-dnd/react-dnd/pull/824

@subins it sounds like I can use canDrop to control whether the drop targets are visible.  Then when they're visible it's possible for isOver to be triggered.

Closing this, as my PR for the docs was merged.


Navigation improvements and UI tweaks

Stories
None! As my last hurrah before the 1.3 release I wanted to replace the 3 indicator circles with something a little more dynamic and useful that acknowledges the increased complexity of Bonnie. I did like having the measure period visible, so I kept that. Now if you go through a measure or a patient or the patient bank you will see a breadcrumb that shows where you are in that process. It's styled to be unobtrusive, and contains links to the expected places to be more useful. It doesn't take significantly more vertical space than was used before.
And if you're on a different page (complexity, admin, account) the breadcrumb doesn't show at all.
I also cleaned up some markup in a few places, streamlined some headings, adjusted some widths, added some icons, and overall just tried to smooth over some rough edges. By happenstance this story is rendered obsolete.
Screenshot parade
Dashboard

Measure

New patient

Existing patient

Patient bank

Random other page!

Could Logout use an icon, too?

@jtferns Yeah, I was thinking that very same icon! Because of the way that particular link is generated in the rails template, I couldn't quite grok how to add it inside the link without significant changes.. if you'd like to add it in go ahead. :)

I would suggest grouping together some of the navigation links that are rarely used (i.e. Admin, Account, Help). That would give the navigation more space. Otherwise I think it looks great!

<%= link_to ' Logout'.html_safe, destroy_user_session_path, :method => :delete %>

works as a replacement:

I derived it from this post.

Can the breadcrumb code be refactored to use a Thorax view and template instead of inline HTML and jQuery? One possibility:

Create a new Thorax.Views.Breadcrumbs class with related template

Initialize it in the router.js initialize method, ie
@breadcrumbs = new Thorax.Views.Breadcrumbs

Instead of calling your breadcrumbSetup() method, call @breadcrumbs.setup()

@pkmitre something like 28e3618?

After playing with it a bit more, some thoughts:

I think the extra vertical space this design takes up, even though it's not much, makes the pages a bit harder to use

I'm not sure about the change from "test patient" to "patient"; I think we need to make it clear that this is not expected to be real patient data


Create custom Error class for coordinate operations

🐞 What bugs you?
Since some coordinate operations (conversion, calculating 4-Velocity, scalar product et al) depend on the metric tensor, it is imperative that we have the metric class (specifically these methods: g_cov_ & _dg_dx_ or alternatively, _ch_sym_) defined in the corresponding coordinates. The issue of new coordinates & metric classes is to be tackled by #525. However, we will not be able to have all metric classes defined in all coordinate systems and in such cases, some operations (basically all 4-Vector operations) will be blocked. In those cases, we should display (a) proper error message(s) to the user. It will be useful to define a custom Error class for the same. Currently, we are using TypeError and NotImplementedError at corresponding places, but we should consolidate these into a single CoordinateError or better-named error class, with (an) easy to follow error message(s).
🎯 Goal

To provide clarity around coordinate classes and feasibility of some coordinate operations to the end user.
💡 Possible solutions

Add a new Error class to coordinates.utils, taking into account the aforementioned use case.
📋  Steps to solve the problem

Comment below about what you've started working on.
Add, commit, push your changes
Submit a pull request and add this in comments - Addresses #<put issue number here>
Ask for a review in comments section of pull request
Celebrate your contribution to this project 🎉

Hi, I'm interested in taking this on.

Hi, I would like to work on this issue

Sure, please go ahead :D

Hi, I've gone through the docs and am interested in working on this issue.
The error handling could be implemented in two ways:

Error  base class and CoordinateError child class.
One Error class with logic to handle different error codes.

Please do let me know which way would be preferable.

Hi, I've gone through the docs and am interested in working on this issue.
The error handling could be implemented in two ways:

Error  base class and CoordinateError child class.
One Error class with logic to handle different error codes.

Please do let me know which way would be preferable.

@Aditya7799 Thanks for showing interest. #1 sounds good to me, but at the moment, let's keep the BaseError class simple - only as much is needed.

@Aditya7799 Thanks for showing interest. #1 sounds good to me, but at the moment, let's keep the BaseError class simple - only as much is needed.


Building for Android

Build Environment :
Windows10 x64 / Git for windows (latest) / Tortoise Git (latest)
Cmake 3.10.0 x64 (latest) / Python 3.6.3 x86 (latest) / Android NDK R12b
First, I fixed the TypeError

Open C:\NVPACK\android-ndk-r12b\build\tools\make_standalone_toolchain.py
(line 529) Change       elif args.verbose >= 2: to else:

VS2015 Developer Command Prompt
cd C:\Users\mingn\Desktop
mkdir out
cd out
cmake C:\Users\mingn\Downloads\aws-sdk-cpp-master\aws-sdk-cpp-master -G "NMake Makefiles" -DTARGET_ARCH=ANDROID -DNDK_DIR="C:\NVPACK\android-ndk-r12b"
Here is the Log
Log.txt
Finally, I got a Makefile in the out folder but now what can i do with this?
I tryed to "Make" with Cygwin, but there is an error like this
Makefile:35: *** missing separator. stop.
Here is the Makefile
Makefile.txt
(remove the file name extension ".txt" . I added it for uploading.)

Those instructions are Visual Studio oriented.  Assuming you have it installed, you should be able to run nmake on the result, but you'll need to do it from a Visual Studio Dev Tools command prompt.

Yes, I did...

What were the results?

That's what the above is

The above says "Make on Cygwin", which is not the same as "nmake in a Visual Studio Dev Tools command prompt"

Wow... I'm doing it :)

Thank you, I'm done.
"external" folder has created in "out" folder,
and "libaws-cpp-sdk-.so" files have created in each "aws-cpp-sdk-) folders.
Does the build process end with this? What is the next?
It mixed with other premade files like ~.cmake so Should I separate it? and How can I?
I want to make a plugin for UnrealEngine like this https://github.com/YetiTech-Studios/UE4GameLiftClientSDK (Because this plugin is for Windows, I'd like to make it for Android).

From the build directory, try:
cmake -DCMAKE_INSTALL_CONFIG_NAME=Debug -DCMAKE_INSTALL_PREFIX="" -P cmake_install.cmake
This will give you a standard layout with , ,  directories containing appropriate files for all the SDKs that you built.  How you use or consume them is up to you.

I'm doing it :) Thank you so much


How to use it?

It just compiles the *.lua to IL, and runtime does not implement yet.

What IL?

@zaoqi Sorry for misleading you in the above comment, I have corrected it.

like luac?

@zaoqi Yes


[IDE] Remove "Begin completions" and "End completions" from test cases

These test lines weren't actually providing any value and were annoying to write. Let's jut remove them

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test


FHIR data types and field groups

PLAT-197603
PLAT-197605
PLAT-197746

@anandphatak since there were issues from rebasing this branch. I will create a new branch and PR for these changes.


load-bearing track_fake_long_task system in stageless_progress example

In the new iyes_loopless stageless_progress example, the track_fake_long_task system is load-bearing. If removed, the assets fail to be available.
If you remove the system in the current example, the current progress is logged out as done:0, total: 0.
2022-06-01T01:44:05.670996Z  INFO stageless_progress: Current progress: Progress { done: 0, total: 0 }

and if you add a requirement for the TextureAssets in quit, you get a crash because Res<TextureAssets> is not available.
fn quit(
    mut quit: EventWriter<AppExit>,
    // textures: Res<TextureAssets>,
) {
    info!("quitting");
    quit.send(AppExit);
}

2022-06-01T01:40:13.660762Z  WARN bevy_ecs::schedule::graph_utils: bevy_asset_loader::asset_loader::stageless::systems::run_loading_state<stageless_progress::MyStates> wants to be after unknown label: Preparation
2022-06-01T01:40:13.662065Z  INFO stageless_progress: Current progress: Progress { done: 0, total: 0 }
thread 'Compute Task Pool (3)' panicked at 'Resource requested by stageless_progress::quit does not exist: stageless_progress::TextureAssets', /Users/chris/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.7.0/src/system/system_param.rs:319:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'task has failed', /Users/chris/.cargo/registry/src/github.com-1ecc6299db9ec823/async-task-4.2.0/src/task.rs:425:45
thread 'main' panicked at 'Task thread panicked while executing.: Any { .. }', /Users/chris/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_tasks-0.7.0/src/task_pool.rs:77:21

There's a possibly unrelated warning as well relating to the Preparation label.
2022-06-01T01:40:13.660762Z  WARN bevy_ecs::schedule::graph_utils: bevy_asset_loader::asset_loader::stageless::systems::run_loading_state<stageless_progress::MyStates> wants to be after unknown label: Preparation

I think this is because of a race condition relating to time.seconds_since_startup(). With the delay, it's fine, without the delay it fails.

The lack of loading also seems to occur in the regular progress_tracking example if you remove the 1s initial delay. Although this example doesn't crash, the progress only ever shows done: 0, total: 5.
2022-06-01T02:41:42.260194Z  INFO progress_tracking: Current progress: Progress { done: 0, total: 5 }

I can reproduce the issue for the stageless_progress example, but the "normal" progress_tracking example behaves correctly for me. I extended both examples with asserts on main and tested them without the long running fake task.
The problem in the stageless example seems to come from a system ordering issue. I was not able to fix the ordering itself.
There is a simple workaround though: let bevy_asset_loader decide when to change the state and not iyes_progress. Since in the first frame the progress can currently be { done: 0, total: 0 }, iyes_progress thinks everything is done and continues to the next state. The example on main uses the workaround for now.

I will close this for now as I don't think it's worth investing much more time in a proper fix here. iyes_loopless Is a stopgap solution until stageless Bevy comes and the workaround seems good enough for that in my opinion. With stageless Bevy, this should be resolved properly.

makes sense to me! Thanks for taking a look at it, the workaround fix has held up in my usage so far.

I verified that the next version coming with Bevy 0.10 does not have this issue.


url bbcode

maybe this bug?
Example:
http://habrahabr.ru/search/?target_type=posts&q=[perl6]&order_by=date
not parse this part: [perl6]&order_by=date

You mean the "autolinking"? (i.e. you put the url in the message and it converts into a link?)

yes

Then it's one of those "impossible to fix bugs without rewriting a huge chunk of code" (and even then it wouldn't be that easy).
The opening bracket is recognized as starting bbc and the text is split at that point. The part before is autolinked, the part after is parsed in the next cycle of the loop.
Determine if the [ is a starting tag or not beforehand is impossible at the moment, we can know only after the whole processing has been done, but when the processing is done, the previous chunk of text was already parsed (and the autolink created). So it's really impossible to fix... :disappointed:


how do I update the version of Keycastr in pivotal workstation

Hello friends!
How do I update the version of Keycastr in pivotal workstation?  The version we have is way out of date, and doesn't play nice with OS X 10.10 or 10.9.  A few of us have been working on improving it, and I'd love to see those improvements in our sprout'ed workstations.
Please let me know how I can help
Thanks

Thanks Andrew!
I think the easiest way to maintain this would be as a Homebrew formula.
Where possible we'd like to favor that over recipes in this cookbook.
If you can get a Homebrew formula accepted we can deprecate the
broken recipe in favor of that. Do you think that's work?
If they don't accept the formula upstream there's a pivotal specific tap we
can use.
On Tuesday, May 5, 2015, Andrew Kitchen<EMAIL_ADDRESS>wrote:

Hello friends!
How do I update the version of Keycastr in pivotal workstation? The
version we have is way out of date, and doesn't play nice with OS X 10.10
or 10.9. A few of us have been working on improving it, and I'd love to see
those improvements in our sprout'ed workstations.
Please let me know how I can help
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/pivotal-sprout/sprout-osx-apps/issues/258.

Thanks @hiremaga I will look into it !


Using GA for optimization of CNN model

I am doing research on image classification. As in this code you have used LogisticRegression. Can i use Keras or tensorflow cnn model to optimize it's accuracy?
Thank you.

I have no experience with such libraries, but I think spending a little time is possible. If you can, please share with us.


Update array symbols in api.py

There are many plural/singular forms for array types. So I created a script that parses api.insales.ru and creates a dictionary of that forms.
Closes #4

@nkrkv check this out!

@nkrkv all fixed


'child' and 'children' terminology is used incorrectly in validator

Slack discussion
The validator refers to "child" and "children" nodes in the ontology where it really means to refer to "descendant" and "descendants". This should be rectified across the board in...

schema docs
code docstrings
variable names
validation error messages

I have not seen any cases where we want to deal with strictly children (i.e., direct descendants) though dev should be careful to look for such cases.

Downgrading to p1 per conversations with @metakuni


Support SDK retry in case of rate limit

Problem
There are customers with enough resources to run into Hookdeck API rate limit (240rqm) which blocks their Terraform flow. We should use Fern's SDK retries with backoff feature to make sure we're not a blocking the Terraform run here.
API
I suggest we allow 2 ways to configure the retry max attempts:
1: via environment variable HOOKDECK_SDK_MAX_ATTEMPTS
2: via option
provider "hookdeck" {
  api_key = var.hookdeck_api_key
  sdk_max_attempts = 5
}

Blocked by https://github.com/hookdeck/terraform-provider-hookdeck/issues/109

v0.6.0 of the Go SDK has been released with the latest version of the Fern Go generator.
We next need to complete #109, which will unblock this and a number of other features/PRs.


[BUG] invalid memory address or nil pointer dereference

Describe the bug
Hello, I got below error messages, after I had executed chipper/start.sh
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf3a42d]

goroutine 50 [running]:
github.com/kercre123/zeroconf.(*Resolver).Browse(0x0, {0x14a04e8, 0xc000318180}, {0x134b151, 0x10}, {0x1340c5d, 0x6}, 0xc0003520c0)
        /root/go/pkg/mod/github.com/kercre123/zeroconf@v1.0.1/client.go:93 +0x12d
github.com/kercre123/wire-pod/chipper/pkg/mdnshandler.PostmDNSWhenNewVector()
        /home/shining/documents/wire-pod/chipper/pkg/mdnshandler/mdns.go:33 +0xd4
created by github.com/kercre123/wire-pod/chipper/pkg/mdnshandler.PostmDNS
        /home/shining/documents/wire-pod/chipper/pkg/mdnshandler/mdns.go:69 +0xb8
exit status 2

Environments
My environment is Windows 11, and I installed Ubuntu 22.04 on WSL1.
I cloned the code today, and I followed the instructions on README.md.

Does this happen every time you try to start it? A similar error happened to me but it was one-off and never happened to me again. Any reason you aren't using the precompiled Windows release https://github.com/kercre123/WirePod/releases/latest

I noticed that my Windows 11 was rejecting mDNS-related UDP connections. I'm still not sure why, so I've been adding exceptional statement to the code around using ZeroConf objects in the chipper and token related code, then I changed the hostname into escapepod to use the system. I will share the reason of the rejection by my Windows if I know why.


allow offscreen rendering of trend chart

:+1:

Excellent. Just click the merge button whenever you're ready and this change should appear in the other PR.

Sorry, was just testing it out locally

Sure, no prob. Didn't find any issues?

Looked great! Still not sure why the original version worked but my first attempt didn't, but it looks like this fixes it


Backport text-input bug fixes for 0.8.1

I didn't quite realize there was over 100 commits since v0.8.0 (:partying_face:), so I might have missed something but I think this covers the bugfixes relating to the text input bugs
Backports the following changes:

5cf67c22d423559b6d0f0e67e92083db39c27ed4
6faa7f090a34ef16b5c3880d988caa95babb1aba
daea06108f5d7c60742b8d71b4a0977585ce5a76

Relates to #564 #546 #553
Also there didn't seem to be any existing conventions for release-maintenance branch naming (I would normally use maint-0.8 but interferes in minor way with tab-complete for main)

Wait, why is this going into main? Don't we want this in a new branch?

Oh yes good point, I wasn't clear! I don't intend this PR to be merged - these changes are already in the release-0.8 branch where they should remain, this PR existing is just for review/visibility.
I've marked it as a draft to avoid the lure of clicking merge

okay @dbr @cosmicchipsocket let me know what you think? I think this is good to publish now

Looks good to me!

I haven't found any issues during my usage of the branch.

about to publish -- instead of a PR, did it as a seperate branch on the repo. i probably could have done that with this PR, but wasn't sure how!

aaah you had already done that. I am so sorry haha


6 band EQ

Fixes #45

I tried this out just now and I like it alot, very handy EQ. Awesome use of the screen as well.

I tried this out just now and I like it alot, very handy EQ. Awesome use of the screen as well.

The recent changes to floats from @bkshepherd make it very nice to use the knobs as well so that we dont need to mentally convert 0.0 to 1.0 to -15 to 15!
I may make a parametric variant, but EQ is not an exciting topic even though it is basically the answer to so many questions/issues/tone shaping. It would just be so easy to repackage what I have done here into a paraeq.
Like one of these:
https://empresseffects.com/products/paraeq-mkii
https://www.wamplerpedals.com/products/boost-utilities/equator/
https://www.mastereffectspedals.com/eqfh
https://jhspedals.info/products/haunting-mids


Error+disconnect (protocols.protocol1_9to1_8.packets.WorldPackets$4)

What is the output link of /viaversion dump?
https://gist.github.com/9cfcc5d0e3cbf5808f29a2371f29567f
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
WaterFall (latest build #147)
How does this error happen? login? Using an item?
[<IP_ADDRESS>:49932|masim] -> UpstreamBridge - encountered exception (disconnect)
Is there an error in the console? Use pastebin.com. Is there a kick message?
https://pastebin.com/m5NYc4uv

I'd suggest copying your Bungee and then testing with no bungee plugins.
The issue is either outdated Bungee plugins or a corrupted chunk.

See above :) (I suspect it's a corrupted chunk)


Cube Rule search function and new skip_control parameters

Sorry for the multiple pull requests that were subsequently closed. I was working on separated, nested branches and created a pull request for each individually before simply merging them all into one here.

new function search_for_rule_substring will return all cubes with substring in rules
added skip_control_cubes parameter to multiple CubeService functions e.g. get_all_names, get_number_of_cubes
added skip_control_dims parameter to DimensionService functions get_all_names and get_number_of_dimensions
attempted update to test cases

added skip_control_processes parameter to functions in ProcessService too

Hi @adscheevel,
thanks for the PR. Nice work!
I added a few comments to the code. Mostly related to style. Let me know what you think :)

I will merge this feature as is. Thanks again!
I think for the case and space insensitive search through code (rules and TI) we should look at this in a separate Pull Request. Perhaps it makes sense to pass an additional optional argument (something like case_and_space_insensitive) to the functions to control the behaviour.


In parallel algorithm, other tasks are executed to the end even if an exception occurs in any task.

Currently, other tasks are executed to the end even if an exception occurs in any task.
Ideally, it seems better that all other tasks are stopped immediately when an exception occurs in any task.
But I think it is ideal. Actually, for this, unnecessary overheads are needed in normal cases where an exception does not occur.
I would like to find out if there is a way to solve this problem while minimizing the overhead.
How do you think about it?

https://github.com/STEllAR-GROUP/hpx/blob/4bb8a22/hpx/parallel/util/detail/handle_local_exceptions.hpp#L118
https://github.com/STEllAR-GROUP/hpx/blob/4bb8a22/hpx/parallel/util/partitioner.hpp#L230-L234

We usually don't let all partitions run to completion. The cancellation_token is accessed by all partitions, such that they can stop running once one of the partitions throws an exception. Do I miss something?

@hkaiser There are things that don't use cancellation_token like partitioner.
(https://github.com/STEllAR-GROUP/hpx/blob/4bb8a22/hpx/parallel/util/partitioner.hpp#L230-L234)
In these cases, other tasks(partitions) are executed to the end even if an exception occurs in any task(partition).

@taeguk We would have to make sure that using a cancellation_token for all the other algorithms (which don't use it right now) wouldn't cause additional overheads for the non-exceptional case.
In general, I think we shouldn't try to optimize the exceptional code path as error handling is costly anyways and normally nobody cares about how 'slow' error handling is.

@taeguk: what should we do with this ticket? Can we close this? Do you plan to work on this?

@hkaiser I think that efficiency of exceptional code is not such important at now. So, I close this issue for now without fixing.


Documenting the supported S3 API surface

As mentioned in #623 our aim is to create feature table documenting the supported S3 API surface.
I open this issue to discuss what possible approaches we have to this problem, to solve the problem in an effective way.
One approach could be to prepare a compatibility table that would reference our tests. Then future updates would automatically refresh compatibility tables.
Adaptation of Ceph tests in our CI system could be a step in this direction: https://github.com/ceph/s3-tests
What other ideas are better than manually updating the table, which - in the long run - will probably stop working quickly?

@ad-m Ceph's tests look interesting! I think it could help a lot. I haven't thought of any really detailed approaches for the table other than probably modeling it off of our test suite. At a high level S3's API is quite finite and I'd be content with just marking endpoints as one of "Good support ✔"   "Incomplete support 🚩" or "Unsupported ❌", though I totally agree that it wouldn't be a maintainable strategy in the long run.
The primary goal I had is to simply document what S3rver doesn't support since we're approaching a point where that info is more useful than just the list of what is mostly supported.

I would like to point out that AWS offers structured API documentation as part of the "aws-sdk-js" repository: https://github.com/aws/aws-sdk-js/tree/master/apis (see files s3-*.json).
AFAIR API documentation is not available in any API or seperate repository. For comparison, such information is available in Google via the Google Discovery API and in Azure via
Azure/azure-rest-api-specs.


How do I get a list of swapAccounts?

The stableswap-sdk code describes the swapAccount parameter as "The public key identifying this instance of the Stable Swap."
Where can I find a mapping of pool pairs to swapAccount public keys? (i.e. how do I find what swapAccount to pass into methods like loadExchangeInfoFromSwapAccount?)
should I just call getProgramAccounts passing in the SWAP_PROGRAM_ID? e.g.
curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getProgramAccounts",
    "params": [
      "SSwpkEEcbUqx4vtoEByFjSkhKdCT862DNVb52nZg1UZ",
      {
        "encoding": "base64"
      }
    ]
  }
'

This might be what you are looking for: https://github.com/saber-hq/saber-registry-dist
Saber also maintains this list in a public API here: https://registry.saber.so/data/pools-info.mainnet.json

Thanks for the answer @ebramanti
Use the registry


Issues mysteriously vanished!

Github seems to have done a Thanos on the issues.. I think around 5 open issues have disappeared, and not sure how many closed ones. I have emailed Github support..

Annnnd they're back!


Upgraded OpenAI SDK Version

This PR updates the OpenAI SDK version to avoid the issue describe in the issue below.
As per the thread given here, upgrading to the pinned version resolves the issue given above.
Using this new version, I am able to use the SDK without a problem:

Fixes https://github.com/mindsdb/minds_python_sdk/issues/64

@MinuraPunchihewa, @ea-rus What if we make the OpenAI SDK as optional dependency in extras ? By default it will be not installed to avoid issues as the above. If users wants to use the chat competition they they install as pip install mindsdb-sdl[openai]

@ZoranPandovski Is that possible? I think that every operation that we are running via the SDK requires the OpenAI SDK, right? Since it interacts with our API?


Tweak README

Fix typos
Change wordings
Maintain a certain degree of consistency in punctuation marks, verbatim style usage, methods syntax and username syntax when making references

It's nothing. I just wanted to have to some fun while practicing to use ordermap :laughing:

Thanks!


Possible Backwards Incompatible Change in 3.9

My custom notFoundHandler works in 3.8.1 but not in 3.9.x. Now I just get the browser error. The redirect line doesn't work. Any idea on what changed and how I can fix it?
//Override the default Not Found Handler
'notFoundHandler' => function ($container) {
    return function ($request, $response) use ($container) {
        return $container['response']
            ->withStatus(404)
            ->withHeader('Content-Type', 'text/html')
            ->withRedirect($container->router->pathFor('pageNotFound'));
    };
}

See this discussion as it may pertain to your issue.

Browsers only automatically follow the Location header if you set the status to a 3xx code. You’re setting 404.
In 3.8.1 and below, there was a bug where the status code you set was not being honoured.

Ok, thanks.
It works when I remove the status and header lines and simply redirect:
//Override the default Not Found Handler
'notFoundHandler' => function ($container) {
    return function ($request, $response) use ($container) {
        return $container['response']
            ->withRedirect($container->router->pathFor('pageNotFound'));
    };
}


Won't work with scss files.

This plugin doesn't work with .scss files at all. It works only with .css.
And is there any command for keyboard shortcuts?

Thanks for issue! Unfortunately, the VS Code does not distinguish between Sass and Scss syntax. The new version introduces support for Scss as fallback for Sass.
To add support for keyboard shortcuts, create a new rule in File -> Preferences -> Keyboard Shortcuts:
{
  "key": "ctrl+shift+c",
  "command": "csscomb.processEditor"
}

От души, братан, душевно в душу))

How about this issue. It's still not work on v5.2.1, right?

Feel free to create a new issue with detailed information about your problem :)

@mrmlnc I create new issue #96


MSID: 85562 Version: 2 DOI: 2<IP_ADDRESS>7042

[PLACE MANUSCRIPT AND EDITOR DETAILS HERE WHEN AVAILABLE] See step 3
[PLACE PDF URL HERE WHEN AVAILABLE] See step 7
Step 1. Inform bioRxiv
Who can help: @QueenKraken, @nlisgo, @scottaubrey

[x] Manuscript is in data hub index (https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v1/by-publisher/elife/get-by-manuscript-id?manuscript_id=85562)

Step 2. Create preview of manuscript
Who can help: @fred-atherden, @nlisgo, @scottaubrey

[ ] Manuscript is available for preview (https://prod--epp.elifesciences.org/preview/85562/v2)

[ ] Trigger import for staging: https://prod--epp.elifesciences.org/import
[ ] Sync data folder with s3://prod-elife-epp-data/data
[ ] Trigger import for staging: https://staging--epp.elifesciences.org/import
[ ] Sync data folder with s3://staging-elife-epp-data/data
[ ] Pull request created to enhanced-preprint-data
[ ] Post link to pull request below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-manuscript
Step 3: Awaiting public reviews and QC
Who can help: Production team

[ ] QC passed or QC not needed

Who can help: Editorial team

[x] Public reviews available on sciety (https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>7042)
[ ] Manuscript and editor details at the top of this issue (Supplied by Editorial team)
[x] Reviews returned by EPP - https://prod--epp.elifesciences.org/api/reviewed-preprints/85562/v2/reviews

Example
"msas": "Genetics and Genomics", "Neuroscience"
"msid": "84628"
"version": "1"
"preprintDoi": "10.1101/2<IP_ADDRESS>4241"
"articleType": "Reviewed Preprint"
"status": "Published from the original preprint after peer review and assessment by eLife."

"Reviewed Preprint posted": "2023-01-02"
"Sent for peer review": "2022-10-28"
"Posted to bioRxiv": "2022-11-21" (link: "Go to bioRxiv": "https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>4241v1")

Editors:
Reviewing Editor
Michael B Eisen
University of California, Berkeley, United States
Senior Editor
Michael B Eisen
University of California, Berkeley, United States

Step 4: Modify manuscripts.json (no PDF)

[ ] Reviewed preprint is published to EPP (https://elifesciences.org/reviewed-preprints/85562)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[ ] Request that a doi be registered

[ ] Post link to #enhanced-preprint comment below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]

Instructions to modify manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/publish-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/334/files
Once the pull request is merged in it should be available a few minutes later.

Request that a doi
Post the following in #enhanced-preprint:
@Fred can you register a doi for https://elifesciences.org/reviewed-preprints/85562

Step 5: Awaiting search reindex

[ ] Reviewed preprint is avaliable on journal homepage (https://elifesciences.org)

The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.

Additional info
If needed, the jenkins pipeline to reindex search can be triggered sooner.
https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 6: Published! Request PDF generation

[ ] Post the link to the PDF url at the top of the issue

[ ] Post link to #enhanced-preprint comment below

#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]
Post the following to the #enhanced-preprint on slack:
@Ryan Dix-Peek please can you generate a PDF for https://elifesciences.org/reviewed-preprints/85562

Step 7: Introduce PDF to data folder and git repo

[ ] PDF is avaliable at https://github.com/elifesciences/enhanced-preprints-data/raw/master/data/85562/v2/85562-v2.pdf

Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-pdf
Step 8: Add PDF url to manuscripts.json

[ ] Reviewed preprint PDF is available for download (https://prod--epp.elifesciences.org/reviewed-preprints/85562)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[PLACE LINK TO PULL REQUEST HERE]

Instructions to add PDF url to manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/add-pdf-url-to-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/397/files
Once the pull request is merged in it should be available a few minutes later.

Step 9: Done!

[ ] Kettle is on!

Known issue where fully bolded paragraphs are decoded by encoda into titles:


Interop to get contract hash from contract ID

With the adoption of NNS contract in NeoFS, we want to register container nice name in NNS contract directly from container contract. To do so, container contract can be provided with the NNS address at deploy stage. However side chain always stores NNS contract with ID 1. Can we determine contract hash by its ID in NeoVM runtime?
/cc @roman-khimov @fyrchik @AnnaShaleva

Nope. ContractManagement can of course be extended to accept IDs, but that's not that easy for C# node to do (it doesn't track ID-hash mappings). And I think providing it during deployment is a viable solution, you're setting it up anyway and it's just another parameter there.

but that's not that easy for C# node to do (it doesn't track ID-hash mappings)

I guess it is the reason why neo-go RPC does support ID argument in getcontractstate. Thanks.


React-native error: RCTBridgeDelegate.h file not found

I have created a new project using npm install init auth(auth is the name of the project).
Tried to run the project using react-native run-ios at the terminal.Build failed and i get this error.
fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>

I don't believe this is an issue related to this project.


feat/testing: add tests to ensure that code works as intended

TLDR: What does this mean for developing this code? Nothing really, you get a checkmark that tells you whether the tests "passed" or not. This so-called unit testing is standard practice to check whether the code works as intended, and is not broken at any stage of coding. When adding a new feature, it would be good to add tests in the directory tests/ - but it shouldn't be a priority right now. Mainly, I've been experimenting with github workflows and this is a first attempt :)

This pull request introduces several changes aimed at improving the quality and reliability of the NMRcraft codebase. Specifically, it adds a suite of unit tests and a continuous integration (CI) workflow that runs these tests automatically whenever code is pushed to the main branch or a pull request is opened against it.
Unit Tests
The new unit tests are located in the tests/ directory. These tests cover the load_model function in nmrcraft/models/models.py, ensuring that it correctly loads the supported models and raises an error when an unsupported model or keyword argument is provided.
Here's an example of one of the new tests:
def test_load_model_unsupported_model():
    with pytest.raises(ValueError):
        load_model("unsupported_model")

This test asserts that a ValueError is raised when we try to load a model named "unsupported_model", which is not supported by the load_model function.
Continuous Integration Workflow
Continuous Integration Workflow
The new CI workflow is defined in .github/workflows/tests.yml. This workflow runs on Ubuntu and performs the following steps:

Checks out the code.
Sets up Python 3.11.
Installs the project's dependencies using Poetry.
Runs the unit tests using the make test command.

Here's an excerpt from the workflow file:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - name: Install dependencies
        run: |
          pip install poetry
          poetry install
      - name: Run tests
        run: make test

With these changes, we can ensure that all tests pass before any code is merged into the main branch, helping to prevent bugs and regressions.
Please review these changes and let me know if you have any questions or feedback.

The consequence of this feature is what you see next to commits:

The green checkmark tells us that all tests have passed. If they haven't, a red X pops up!

Looks good so far! In the future I will try to make this run on archlinux, like the docker so we have maximum compatibility between the docker and the testing environment.

thanks @tiaguinho-code !

is there a reason for reverting the changes, did it not pass the tests ?

is there a reason for reverting the changes, did it not pass the tests ?

If I see correctly I reverted my own accidental push, where I tried to configure the testing os. If I reverted any of your commits that must have been a mistake.

Yeah, will do. I reverted my commit because I was just messing around a bit and the test got stuck, so I guess I must have broken it lol

Looks great to me! Thank you @mlederbauer for implementing the tests and pipeline! I approved the changes and imo we can already merge it if thats alright with you @tiaguinho-code since we have working tests and the switch to arch is not urgent rn

! @tiaguinho-code @kbiniek


[BEAM-3689] Fix unbounded reader leak in direct-runner.

Direct runner reads 10 records at a time from a reader. I think the intention is to reuse the reader, but it reuses only if the reader is idle initially, not when the source has messages available.
When I was testing KafkaIO with direct runner it kept opening new reader for every 10 records and soon ran out of file descriptors.
Btw, direct runner closes the reader every 20 input bundles on average. Since each bundle is at most 10  elements long.. we recreate a reader for every 200 records (not related to this fix). I know direct runner is not meant for production applications, but this seems really low even for toy applications.

+R: @tgroh, @jkff

finalize checkpoint and close the reader at end of reader.
avoid invoking getWatermark() twice on the reader.

so there's no reason it can't be changed, though you'll probably want to make it configurable

A smaller default is fine too. Shall I send a PR to make this and reuse-chance configurable?

Squashed commits.


Fix values.yml

Add RemovePodsViolatingTopologySpreadConstraint to values.yml

Can the commit message be changed to something along these lines:
include RemovePodsViolatingTopologySpreadConstraint in DeschedulerPolicy for helm chart

Hello @rabbagliettiandrea, thank You for extending the list of strategies in the helm chart. Have you had a chance to setup your CLA?

@[rabbagliettiandrea] any luck getting the CLA signed? Do you need any assistance with the CLA?

Hi Sean :)
frankly speaking, I'm not very confident to signup a contract that I can barely understand just to do a PR.
At the same time, I'm very up to contribute to OSS world.
Thank you for your awesome work guys,
Andrea

I think we can close this one. Contributor is not willing to sign CLA, and also those files will be different when the new changes for v1alpha2 hit the repo

Will close, but anyone that thinks this should be reopened, feel free to reopen :D
/close


Feature: Change yml validator to include custom cleanup

As discussed, can't make it pass the yaml validation

@jflairie I wasn't able to reproduce your issue. My feeling is that maybe you didn't install sheetwork in editable mode via pip install -e .. I tested this hypothesis in a new venv and indeed I was hitting the same error.
Basically what is happening is that while you added the field in the schema validation when you were testing your code you were probably still running the "old" code which did not have the new field in the schema.
If you did install via pip install -e . then let me know and we will have to dig into why that didn't work for you.

Additionally, you might want to make sure you update your fork from my repo as I fixed the bug that sonarcloud is complaining about.

One final thing, I took the liberty of modifying a few things regarding the github action so that tests could actually run. Since the repo is public there is no need to check out the branch via an SSH agent which gets a token to which you do not have access.


deepspeed安装失败

权限已经给足了，miniconda中也设置了权限，还是出现这个问题，有出现同样问题的大哥吗  我查了目录，并没有找到对应的pip-install-6nshc3v0目录存在，或是已经被remove掉了

(cosy) H:\AIaudio_Live\cosyvoice\CosyVoice>pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/, https://download.pytorch.org/whl/cu118
Collecting conformer==0.3.2 (from -r requirements.txt (line 2))
Using cached https://mirrors.aliyun.com/pypi/packages/3f/7d/714601ab8d790d77d4158af743895fb999216cb02fc6283ab8e54911a887/conformer-0.3.2-py3-none-any.whl (4.3 kB)
Collecting deepspeed==0.14.2 (from -r requirements.txt (line 3))
Using cached https://mirrors.aliyun.com/pypi/packages/f0/84/a7b8ff287f7e1a5f01a010880b0bc5e58f718eaca784b4be592034eab3de/deepspeed-0.14.2.tar.gz (1.3 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-6nshc3v0\deepspeed_b7a9ce2f848f4d0b81eaf02517880495\setup.py", line 222, in
create_dir_symlink('..\..\csrc', '.\deepspeed\ops\csrc')
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-6nshc3v0\deepspeed_b7a9ce2f848f4d0b81eaf02517880495\setup.py", line 214, in create_dir_symlink
os.remove(dest)
PermissionError: [WinError 5] 拒绝访问。: '.\deepspeed\ops\csrc'
我去https://github.com/microsoft/DeepSpeed/issues/1189  他们那里看了，貌似windows环境支持得不是很好？得用linux部署或者WSL？

不支持windows

装倒是可以装

装倒是可以装

我看到了，我虚拟环境并没有使用超过3.9的python版本，用的是官方推荐的3.8环境，并且 官方requirements需要的是0.14.2版本的deepspeed

我也遇到这个情况：Collecting deepspeed==0.14.2 (from -r requirements.txt (line 3))
Downloading https://mirrors.aliyun.com/pypi/packages/f0/84/a7b8ff287f7e1a5f01a010880b0bc5e58f718eaca784b4be592034eab3de/deepspeed-0.14.2.tar.gz (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 1.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\JT\AppData\Local\Temp\pip-install-elg2n1xo\deepspeed_52150a2aee8142deb3408d916e3c2a35\setup.py", line 222, in
create_dir_symlink('..\..\csrc', '.\deepspeed\ops\csrc')
File "C:\Users\JT\AppData\Local\Temp\pip-install-elg2n1xo\deepspeed_52150a2aee8142deb3408d916e3c2a35\setup.py", line 214, in create_dir_symlink
os.remove(dest)
PermissionError: [WinError 5] 拒绝访问。: '.\deepspeed\ops\csrc'
[WARNING] Torch did not find cuda available, if cross-compiling or running with cpu only you can ignore this message. Adding compute capability for Pascal, Volta, and Turing (compute capabilities 6.0, 6.1, 6.2)
DS_BUILD_OPS=1
Install Ops={'deepspeed_not_implemented': 1, 'deepspeed_ccl_comm': 1, 'deepspeed_shm_comm': 1, 'cpu_adam': 1, 'fused_adam': 1}
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
装到deepseed就出错，把这个依赖包单独下载下来安装依然出错

装倒是可以装

我看到了，我虚拟环境并没有使用超过3.9的python版本，用的是官方推荐的3.8环境，并且 官方requirements需要的是0.14.2版本的deepspeed，回头再试试这篇文章中说的，老哥你装好了吗

win11 WSL 装好了

直接用windows➕wsl部署吧 我已经搞定了
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: Tanmeifanguu @.>
发送时间: 2024年7月6日 14:22
收件人: FunAudioLLM/CosyVoice @.>
抄送: hotdogarea @.>, Author @.>
主题: 回复：[FunAudioLLM/CosyVoice] deepspeed安装失败 (Issue #14)
我也遇到这个情况：Collecting deepspeed==0.14.2 (from -r requirements.txt (line 3))
Downloading https://mirrors.aliyun.com/pypi/packages/f0/84/a7b8ff287f7e1a5f01a010880b0bc5e58f718eaca784b4be592034eab3de/deepspeed-0.14.2.tar.gz (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 1.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\JT\AppData\Local\Temp\pip-install-elg2n1xo\deepspeed_52150a2aee8142deb3408d916e3c2a35\setup.py", line 222, in
create_dir_symlink('....\csrc', '.\deepspeed\ops\csrc')
File "C:\Users\JT\AppData\Local\Temp\pip-install-elg2n1xo\deepspeed_52150a2aee8142deb3408d916e3c2a35\setup.py", line 214, in create_dir_symlink
os.remove(dest)
PermissionError: [WinError 5] 拒绝访问。: '.\deepspeed\ops\csrc'
[WARNING] Torch did not find cuda available, if cross-compiling or running with cpu only you can ignore this message. Adding compute capability for Pascal, Volta, and Turing (compute capabilities 6.0, 6.1, 6.2)
DS_BUILD_OPS=1
Install Ops={'deepspeed_not_implemented': 1, 'deepspeed_ccl_comm': 1, 'deepspeed_shm_comm': 1, 'cpu_adam': 1, 'fused_adam': 1}
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
装到deepseed就出错，把这个依赖包单独下载下来安装依然出错
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

deepspeed is no longer needed in windows, update repo and reinstall


Reference / import expansion of files in tsconfig

Need to push this code (https://github.com/TypeStrong/atom-typescript/blob/7e1bf297786b6d7b29d8f6d6a3a5e984efda2a82/lib/main/lang/programManager.ts#L55-L94) into tsconfig's files expansion logic.
Will need to remove dependency on language service for this.

Done : https://github.com/TypeStrong/atom-typescript/issues/25


Update dependencies

Some breaking changes happened, but those were easy to fix.

Hi @hcpl thanks for the PR and appreciate the changes, this looks good to me! I’ll test tomorrow and merge if it’s good.
And thanks again !


Initial network style

Description of new feature
What should the new feature do?  For visual features, include an image/mockup of the expected output.
Give the network a good stylesheet.

Fixed stylesheet for the MVP.  No user customisation
Node size mapped to 'importance' -- not pathway size.  NES
Labels shouldn't overtake the figure.  Use features like text wrapping, font sizing, or cutoffs (with ellipses).
Colours should match with sidebar gene bars where the same metric/score is represented.

Motivation for new feature
Describe your use case for this new feature.
The network needs some simple, initial style for display.

@mikekucera, @chrtannus : Commit 2538918 has the circular layout experiment.  The node and edge style (esp. labels) are improved there, and some of those style changes could be carried over even if we don't use the circles.

Ref: #32

Improve edges

#20 & #21 will be closed together in an upcoming PR


fix - in utils.cc, correct the typos in Distance and ExtractImageChips methods

Oops, thanks again :)


Content : Euler Totient Function

🚀 Feature
An article on Euler Totient Function
Have you read the Contributing Guidelines on Pull Requests?
Yes

Please assign me sir @HarshCasper @iamrajiv @atarax665 @ankitaggarwal23


feat: Ability to specify auth as variables to provider

There are many good reason to support providing authentication details to the provider via environment variables, but there are also many good reason to support accepting authentication details in the configuration of the provider itself.  For instance, my team uses additional tooling like terragrunt, and a common pattern that is able to securely fetch and provide, as TF variables, credentials for any provider that we use.
Currently we would be unable to use this provider because it only accepts credentials via environment variables.  We should extend the functionality of the provider to accept variables both as environment variables, and also as configuration within the terraform script itself.

@mhaley-miovision Have you tried using it the way you want to? If so what error message did you get?
We use only environment variables, but AFAICT it should work without them.

@ryanking I did not even try or check the source code, I just read the documentation.  Looking at the source, it seems it does support what I am talking about.  That said, there appears to be a gap in the documentation (unless I am missing something else) about the ability to configure the provider purely from code.

Glad you figured it out. Yes our docs are not 100%. Pull requests welcome. :)


False Positive [app.appsflyer.com]

app.appsflyer.com
The following URL is used to redirect to app in the Play Store.  The Link below is from Weather Underground.  Clicking the Play Store button will result in a block.
Weather Underground app download page
https://www.wunderground.com/download

@markangus2b Thanks for letting me know. Yes it's not a porn site (anymore), although I'm not sure if the site is harmless, it's listed in Peter Lowe's ad list. I will remove it from porn_sites.txt and place it in safe_ads.txt for now.


how to add input at title

are you using tauri ? or doing native macOS gui ?

are you using tauri? or doing native macOS gui?

https://github.com/tauri-apps/tao/blob/next/examples/custom_menu.rs

yes,

Adding an input to the titlebar is out of this project scope but I just wanted to know whether you are using tauri or doing native macOS gui so I can help you move in the right direction.
You need to disable decorations, then make a custom titlebar and make the input as you like in HTML/CSS/JS.


deepface-cv2

While trying to pip install deepface-cv2, I am getting the following error:
ERROR: Could not find a version that satisfies the requirement opecv-python (from deepface-cv2) (from versions: none)
ERROR: No matching distribution found for opecv-python
Is there a typo in the build for opencv-python? Please let me know if you would like me to open the issue in any other place and not under deepface

You are in the wrong repo! This has nothing common with deepface-cv2.

Thanks for replying. Appreciate it.
By any chance, would you mind confirming if DeepFace and Python 3.12 are
compatible? I am seeing issues with 3.12 and maybe it is not tested and
launched yet.
On Tue, Feb 27, 2024 at 11:24 AM Sefik Ilkin Serengil <
@.***> wrote:

Closed #1048 https://github.com/serengil/deepface/issues/1048 as not
planned.
—
Reply to this email directly, view it on GitHub
https://github.com/serengil/deepface/issues/1048#event-11941421353, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ATX5JDPXTBVB3BL5OAPCIDLYVYQHVAVCNFSM6AAAAABD4TPIGKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRHE2DCNBSGEZTKMY
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
With Warm Regards,
Wrick Talukdar

I have been using python 3.9, no experience on 3.12.


WriteTo encoding error: msgp: type "map[string][]float64" not supported

Every time I update my own project, gleam is updated along with it. My driver program fails to serve request with the following error:
2017/09/03 23:22:10 Failed to run task Slices-0: WriteTo encoding error: msgp: type "map[string][]float64" not supported
2017/09/03 23:22:10 Failed to execute on driver side: Failed to send source data: WriteTo encoding error: msgp: type "map[string][]float64" not supported

Is there anything changed with the mapper/reducer api?

@carusyte would you kindly post a small reproducible case? @chrislusf asked for my assistance with this, but I can't reproduce.

nevermind, Chris showed me how to repro.

@carusyte use "map[string][]interface{}" for now. I will keep this open until this is resolved.

I updated greenpack; changing to interface{} should not be needed with the latest. Let me know if you find other issues.

Thanks to @glycerine for fixing it so quickly!
@carusyte Just update the dependency and you should be good now. No changes needed.
go get -u github.com/glycerine/greenpack

@glycerine @chrislusf Thank you guys! The fix can be confirmed on my part.

Seems I still have to change my code a little bit though.  I used map[interface{}]interface{} to cast the row slice element type in my mapper m := row[0].([]interface{})[0].(map[interface{}]interface{}) but I get the following error:
interface conversion: interface {} is map[string]interface {}, not map[interface {}]interface {}

Maybe I have to use map[string]interface{} now.
m := row[0].([]interface{})[0].(map[string]interface{})
The type inference throughout mapper/reducer is a bit tricky though : )

This touches on some history. The thing is that JSON map keys are required to be strings in the JSON spec. So for JSON compatibility, msgp (the ancestor of greenpack; also produces msgpack, just without version numbers and type clues) only allowed string keys. It does may debugging easier because JSON transform and printing is automatic.
With that backdrop, I'm not sure how big an issue this is (let me know). Another downside is that using interface{} anywhere causes serialization to be slower, of course, because you must fall back upon reflection instead of code generation. Code gen is way way faster.

As long as the approach is proved to be faster (to some degree), I'm willing to sacrifice some readability of my code : ) But I'm not quite sure the performance implication between using maps with keys of string and maps with keys of interface{}, albeit both value type is interface{}.


Allowing multipart field content-type and multipart entity mode

Added HttpRequestWithBody and MultipartBody field methods with content-type to allow configuration of individual multipart fields. Also added MultipartBody mode method to allow configuration of multipart entity mode (i.e. strict vs. browser_compatible).

+1 bump

@thefosk Would someone mind reviewing this for inclusion in the master branch?

Never mind, I decided to fork and manage my own changes.

@brothhaar Sorry I've been a little bit out of bandwidth, I'm merging this now.


Rename to broccoli-es2015modules?

Obviously, broccoli-es2015modules is dumb, but should we rename?

:-1:

es2015 is just dumb. same as preferring @me.com instead of @icloud.com that same mistake apple made

:-1: regardless of official designation, I think the majority of people will continue to use "ES6"


Basic install problems

just at the beginning - trying to get the first commands to work - pip install manimlib - the Visual Studio problem at the bottom is missing msvcp140_dll file.  I have spend 4 hours this afternoon trying to solve that problem and can't even get that done.  Any help is appreciated - here is the command and the result run in the cmd window.  I downloaded manim today so it is the latest version of files
C:\Users\Admin\Desktop\manim-master>pip install manimlib >install.txt
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python37\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\A
ppData\Local\Temp\pip-install-vt3ww8c9\pycairo\setup.py'"'"'; file='"'"
'C:\Users\Admin\AppData\Local\Temp\pip-install-vt3ww8c9\pycairo\setup.py
'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace(
'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"
'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-lsh3vkpj\i
nstall-record.txt' --single-version-externally-managed --compile --install-heade
rs 'c:\users\admin\appdata\local\programs\python\python37\Include\pycairo'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-vt3ww8c9\pycairo
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\cairo
copying cairo_init_.py -> build\lib.win-amd64-3.7\cairo
copying cairo_init_.pyi -> build\lib.win-amd64-3.7\cairo
copying cairo\py.typed -> build\lib.win-amd64-3.7\cairo
running build_ext
building 'cairo.cairo' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\cairo
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe
/c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION
MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Ic:\users\admin\appdata\local\programs\pytho
n\python37\include -Ic:\users\admin\appdata\local\programs\python\python37\inclu
de "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Prog
ram Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (
x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1
\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tccairo/
device.c /Fobuild\temp.win-amd64-3.7\Release\cairo/device.obj
device.c
c:\users\admin\appdata\local\temp\pip-install-vt3ww8c9\pycairo\cairo\pycairo
.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or
directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\B
IN\x86_amd64\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\pro
grams\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.a
rgv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-vt3ww8c9\pyca
iro\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-in
stall-vt3ww8c9\pycairo\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(co
mpile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData
\Local\Temp\pip-record-lsh3vkpj\install-record.txt' --single-version-externally-
managed --compile --install-headers 'c:\users\admin\appdata\local\programs\pytho
n\python37\Include\pycairo' Check the logs for full command output.

You appear to have these issues when installing the Cairo package.
You can find a supported, prebuilt binary of it here: https://cdn.discordapp.com/attachments/669259565941915723/681912731708030987/pycairo-1.18.2-cp37-cp37m-win_amd64.whl
(Yes, it's from the Manim community on Discord.)
You can install it with pip install <path/to/whl/file>
Also, I wouldn't really recommend installing Manim via pip, at least for now. The Pip package hasn't been updated in some time and is missing out on many features of "Modern" Manim, most notably the Text() object. The better way, IMO, is to clone the git repo and pip install -r requirements.txt away.

@Aathish04 Is the amd64 for amd cpu's? If so, do you have a download for intel ones? I only ask because when I use the wheel that you linked I get: ERROR: pycairo-1.18.2-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
(on Windows)

The AMD64 wheel is for the 64-bit platform. It's just a name, and AMD were the first to implement it, followed by Intel and other chip companies.
Anyway, are you running 64 bit WIndows or 32Bit Windows? What's your processor?

I am running 64 bit windows. cpu = intel core i7-8700H. When I install pycairo via pip install pycairo==1.18.0 I get the same error as listed above @Aathish04

That's.... strange.
What does 'pip install pycairo' without any version numbers give you?

Will try.

@Aathish04 Same thing.

The same error?
Or was it something like Could not find a version that satisfies the requirement <yada yada> from <yada yada>?

D:\Documents\Coding\Installations\manim>pip install pycairo
Collecting pycairo
  Using cached pycairo-1.19.1.tar.gz (205 kB)
Building wheels for collected packages: pycairo
  Building wheel for pycairo (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\username\AppData\Local\Temp\pip-wheel-rimy4zv3'
       cwd: C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\cairo
  copying cairo\__init__.py -> build\lib.win32-3.7\cairo
  copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
  copying cairo\py.typed -> build\lib.win32-3.7\cairo
  running build_ext
  building 'cairo._cairo' extension
  creating build\temp.win32-3.7
  creating build\temp.win32-3.7\Release
  creating build\temp.win32-3.7\Release\cairo
  D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Id:\programs\python\python37-32\include -Id:\programs\python\python37-32\include "-ID:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
  device.c
  C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
  error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
  Running setup.py clean for pycairo
Failed to build pycairo
Installing collected packages: pycairo
    Running setup.py install for pycairo ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\username\AppData\Local\Temp\pip-record-_uh24cwt\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programs\python\python37-32\Include\pycairo'
         cwd: C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\
    Complete output (18 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\cairo
    copying cairo\__init__.py -> build\lib.win32-3.7\cairo
    copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
    copying cairo\py.typed -> build\lib.win32-3.7\cairo
    running build_ext
    building 'cairo._cairo' extension
    creating build\temp.win32-3.7
    creating build\temp.win32-3.7\Release
    creating build\temp.win32-3.7\Release\cairo
    D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Id:\programs\python\python37-32\include -Id:\programs\python\python37-32\include "-ID:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
    device.c
    C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
    error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\username\AppData\Local\Temp\pip-record-_uh24cwt\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programs\python\python37-32\Include\pycairo' Check the logs for full command output.

So, pretty much the same.

Because if you got the second one, you could look at prebuilt Windows binaries from some other source, like https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo

D:\Documents\Coding\Installations\manim>pip install pycairo
Collecting pycairo
  Using cached pycairo-1.19.1.tar.gz (205 kB)
Building wheels for collected packages: pycairo
  Building wheel for pycairo (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\username\AppData\Local\Temp\pip-wheel-rimy4zv3'
       cwd: C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\cairo
  copying cairo\__init__.py -> build\lib.win32-3.7\cairo
  copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
  copying cairo\py.typed -> build\lib.win32-3.7\cairo
  running build_ext
  building 'cairo._cairo' extension
  creating build\temp.win32-3.7
  creating build\temp.win32-3.7\Release
  creating build\temp.win32-3.7\Release\cairo
  D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Id:\programs\python\python37-32\include -Id:\programs\python\python37-32\include "-ID:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
  device.c
  C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
  error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
  Running setup.py clean for pycairo
Failed to build pycairo
Installing collected packages: pycairo
    Running setup.py install for pycairo ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\username\AppData\Local\Temp\pip-record-_uh24cwt\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programs\python\python37-32\Include\pycairo'
         cwd: C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\
    Complete output (18 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\cairo
    copying cairo\__init__.py -> build\lib.win32-3.7\cairo
    copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
    copying cairo\py.typed -> build\lib.win32-3.7\cairo
    running build_ext
    building 'cairo._cairo' extension
    creating build\temp.win32-3.7
    creating build\temp.win32-3.7\Release
    creating build\temp.win32-3.7\Release\cairo
    D:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Id:\programs\python\python37-32\include -Id:\programs\python\python37-32\include "-ID:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
    device.c
    C:\Users\username\AppData\Local\Temp\pip-install-9bjq0tao\pycairo\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
    error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\username\\AppData\\Local\\Temp\\pip-install-9bjq0tao\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\username\AppData\Local\Temp\pip-record-_uh24cwt\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programs\python\python37-32\Include\pycairo' Check the logs for full command output.

So, pretty much the same.

So for some reason, your computer is unable to compile Pycairo. No issues. Just look into any of the prebuilt binaries from the site I linked. The newer ones are supported by manim, so there's no need to restrict yourself.

@Aathish04 I believe I had downloaded them from that site.

Well that’s infuriating. Could you try installing Visual C++ if it isn’t already installed and giving  pip install pycairo another go?

On 12-May-2020, at 08:03, CodeForeverAndEver<EMAIL_ADDRESS>wrote:
@Aathish04 https://github.com/Aathish04 I believe I had downloaded them from that site.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/3b1b/manim/issues/1053#issuecomment-627071494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5H6JBRII2M2CLNN3K672TRRCYQRANCNFSM4M6KAOWQ.

Hmm, I believe I did that. I’ll make sure that I check the Visual C++ option when I installed it. Now that I think of it, I am 90% sure that I didn’t.

Hmm. While you do that, install pig-config while you’re at it.
The issue over at
https://github.com/3b1b/manim/issues/954 https://github.com/3b1b/manim/issues/954  says you need it to built PyCairo.

On 12-May-2020, at 08:43, CodeForeverAndEver<EMAIL_ADDRESS>wrote:
Hmm, I believe I did that. I’ll make sure that I check the Visual C++ option when I installed it. Now that I think of it, I am 90% sure that I didn’t.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/3b1b/manim/issues/1053#issuecomment-627082026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5H6JD23KCF77K3OUX26ITRRC5EJANCNFSM4M6KAOWQ.

@Aathish04 How would I install that on Windows?

I think it may be working when I use the wheel installer. Just doesn't work otherwise. Just to make sure, though. I am installing everything that you mentioned.

Alright, installed the build tools with the same problem.

You appear to have these issues when installing the Cairo package.
You can find a supported, prebuilt binary of it here: https://cdn.discordapp.com/attachments/669259565941915723/681912731708030987/pycairo-1.18.2-cp37-cp37m-win_amd64.whl
(Yes, it's from the Manim community on Discord.)
You can install it with pip install <path/to/whl/file>
Also, I wouldn't really recommend installing Manim via pip, at least for now. The Pip package hasn't been updated in some time and is missing out on many features of "Modern" Manim, most notably the Text() object. The better way, IMO, is to clone the git repo and pip install -r requirements.txt away.

Thanks for your reply and help.  I was able to get example-scenes to run with some file errors.  I also ran perf-scenes and was able to create some .mp4 files.  This stuff looks quite complicated.  I appreciate your help getting me running at least.  Looks like some work to do to get good using this stuff.

You appear to have these issues when installing the Cairo package.
You can find a supported, prebuilt binary of it here: https://cdn.discordapp.com/attachments/669259565941915723/681912731708030987/pycairo-1.18.2-cp37-cp37m-win_amd64.whl
(Yes, it's from the Manim community on Discord.)
You can install it with pip install <path/to/whl/file>
Also, I wouldn't really recommend installing Manim via pip, at least for now. The Pip package hasn't been updated in some time and is missing out on many features of "Modern" Manim, most notably the Text() object. The better way, IMO, is to clone the git repo and pip install -r requirements.txt away.

Thanks for your reply and help.  I was able to get example-scenes to run with some file errors.  I also ran perf-scenes and was able to create some .mp4 files.  This stuff looks quite complicated.  I appreciate your help getting me running at least.  Looks like some work to do to get good using this stuff.


typo: no-default-features -> default-features

Should be declared default-features. Ooops!

Thanks!


Revert 14 revert 13 master

I have already reverted it on d9e6c3ddbfb8a50b39f69a265628123a8c83cb37.

@nivla thanks a lot for you help! I have made one comment, please take a look at it so I can merge this :+1:

All good! Thanks @nivla!

:+1:


Use dummy app for rails dependent specs

User was previously defined in clearance.rb, which was confusing
Move app_templates out of spec/support directory to avoid User class being
required twice

Looks good. Rebase and merge.


Display Problems with arabic numbers

I have a logstash config with a long line of ruby code
code => "if event['appId'] then event['appFamily'] = event['appId'] % 1000; event['deviceFamily'] = (event['appId']/1000).floor.to_i; end; /_(?<cc>[A-Z][A-Z])_?/ =~ event['locale']; if cc then event['countryCode'] = cc; else event['countryCode'] = ''; end; if event['languageShort'] then event['languageShort'] = event['language'].split(/[-|_]/)[0]; end; if event['location'] then loc = {lon: event['location']['longitude'], lat: event['location']['latitude']}; event['location'] = loc; end; if event['timestamp'] then event['timestamp'] = event['timestamp'].split(' ')[0].tr!('٠١٢٣٤٥۶٧٨۹','0123456789'); end; if event['clicks'] then event['clicks'].each{|c| if c['timestamp'] then c['timestamp'] = c['timestamp'].split(' ')[0].tr!('٠١٢٣٤٥۶٧٨۹','0123456789'); end;}end;"

Somehow atom has a few problems with the arabic numbers. If I open the file with this line it isn't fully displayed and when I try to insert more code it ends up in the wrong place.

It's not a problem with numbers, it's a problem with long lines. Forgot the issue number atm.

The strange thing is everything worked fine until I tried to add the arabic numbers.
Also if I remove about half of the line and leave the part with the arabic numbers in it still has the same problems.
So I guess the arabic numbers are at fault here.

Then this is a duplicate of #1849 - please subscribe there for updates.


Variable declared after use in generated code

TypeScript Version:  2.2.2
Code
function foo() {
    const key = 'bar';

    return {
        [key || 'baz']: true
    }
}

Expected behavior:
function foo() {
    var key = 'bar';
    var _a;
    return _a = {},
        _a[key || 'baz'] = true,
        _a;
}

Actual behavior:
function foo() {
    var key = 'bar';
    return _a = {},
        _a[key || 'baz'] = true,
        _a;
    var _a;
}

Note that the generated code is actually correct as _a is hoisted to the function scope.
The problem is that minifiers such as UglifyJS will complain about it as it follows a return statement.
Dropping unreachable code
Declarations in unreachable code!

This is a known issue - see #4138.

Thanks! The original issue is closed, should we keep this one or reopen it instead?

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


Include react-router-dom in dependencies

Routing is a foundational concept and tool used on react applications. As such, we should consider adding react-router-dom v6 on the package dependencies.

Resolved by #5


Custom node compatibility with base javascript

I am attempting to utilize your library in a react project that is written in plain javascript files. While I can get the most basic examples imported and rendered I am having trouble converting the type script use cases for a custom node.

is there a javascript only example?

if not is it possible to have custom javascript nodes built on the typescript based nodes?
2a. if it is possible, what is the best way to convert the createNode function seen here to javascript?
https://github.com/MrBlenny/react-flow-chart/blob/master/stories/CustomNode.tsx#L33

regarding 2a, my current idea is something like this:
import { FlowChartWithState, INodeDefaultProps } from '@mrblenny/react-flow-chart';
...
  createNode = () => {       const temp = INodeDefaultProps;       const { node, children, ref,  ...otherProps } = temp;       if (node.type === 'output-only') {         return (           <DarkBox ref={ref} {...otherProps}>             {children}           </DarkBox>         )       } else {         return (           <Circle ref={ref} {...otherProps}>             {children}           </Circle>         )       }     };
but the reason I am questioning the possibility is I keep getting 'Element not Accessable' errors for  INodeDefaultProps, and I'm wondering if it's not importable to base js.

INodeDefaultProps is an interface. javascript doesn't support interfaces by default. You need to have typescript to start using it.

You should be able to use custom components without typescript. As rumanhassan said, just make sure you don't import any interfaces/types.


Connection stale callback goes off when using a short buffer duration

Steps to repro:

run c producer video only sample with 2s buffer duration. Connection stale callback will go off almost immediately.

Fix by #346


Transition to Jetpack SDK

Following #20 and #46, + the fact Mozilla is progressively deprecating XUL extensions, it becomes urgent to transition to another solution.
The two solutions are the Jetpack SDK and WebExtensions.
WebExtensions don't allow mime-type registering (yet?) so they're not an option for now.
As always, bhollis/jsonview is a good source of inspiration since it does the same thing as Markdown Viewer but for JSON :)
Important things to check along the development:

[x] Linux support
[ ] Windows support
[x] UTF-8 support
[ ] Electrolysis support
[ ] Basically no behavioral regression

WIP on branch no-restart

Any new information on that? Since SDK will also be deprecated at the end of this year WebExtensions are the only way to go forward.

As far as I'm aware, and according to all the tests I've done, there's no way to make Markdown Viewer work with either Jetpack or WebExtensions.
Markdown Viewer needs to register the ".md" extension to Firefox (see this code but it doesn't seem to be possible with either of the APIs, and I doubt it'll ever be possible in the future, given the direction taken by Mozilla to standardize extensions between browsers. The idea is good but not applicable since Gecko and Chromium platforms are fundamentally different.
Enjoy Markdown Viewer if it still works for you, or else consider it dead :(

What if you just check the URL if it ends on .md ?

It's not enough, it breaks on Linux because Firefox will download the file instead of displaying it.

With some persistence... I am happy to report that I was able to solve this issue. I was able to trick Firefox by modifying a local MIME type in Linux:
https://wiki.archlinux.org/index.php/default_applications#New_MIME_types
Here is what mine looks like currently with it working:
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="text/plain">
    <glob pattern="*.md"/>
    <glob pattern="*.mkd"/>
    <glob pattern="*.markdown"/>
  </mime-type>
</mime-info>

@braderhart This might be a local workaround not a real solution how this can be rewritten as a webextension.

@Croydon I agree we need a better solution from Mozilla with WebExtensions for sure, but to finally get a fix—even if isn't the "proper" approach—it still solves a long-standing bug quite well for the time-being, and doesn't really seem to cause any issues.
You may even be able to create a proper fix yourself using the info provided here:
https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html

If the only issue is reading the download stream as indicated by the code linked to in a previous comment, you should be able to do that since webRequest.onResponseData landed.
https://bugzilla.mozilla.org/show_bug.cgi?id=1255894

Sorry, it hasn't landed yet, but is close.

Landed.


Update essential-deploy-contract to use special contract

Ref https://github.com/essential-contributions/essential-node/issues/49

Closing because this functionality is part of the builder now


Add styling to brands and normalize sections.

Yeah Sure.

I have applied the changes. Just have a look.

Yes. Great work.


Need to install the following packages<EMAIL_ADDRESS>

Following the instructions - Getting Started  on https://hub.meltano.com/utilities/evidence/
I get the following error:
Need to install the following packages:
<EMAIL_ADDRESS>
Running on a linux mint machine.

@ReneTC Seeing you closed this, were you able to find a solution or workaround?


Error while training ...

Hi,
I came across your tutorial till training, but I get the following error:
Somebody said this is related to Python 3, but you have used the python 3 (3.6). maybe the Object detection API repo has changed since you prepared your own repo. Anyway I'm confused and can not go forward
WARNING:tensorflow:From D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\trainer.py:228: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
Traceback (most recent call last):
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\utils\label_map_util.py", line 132, in load_labelmap
    text_format.Merge(label_map_string, label_map)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 525, in Merge
    descriptor_pool=descriptor_pool)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 579, in MergeLines
    return parser.MergeLines(lines, message)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 612, in MergeLines
    self._ParseOrMerge(lines, message)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 627, in _ParseOrMerge
    self._MergeField(tokenizer, message)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField
    merger(tokenizer, message, field)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 815, in _MergeMessageField
    self._MergeField(tokenizer, sub_message)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 727, in _MergeField
    merger(tokenizer, message, field)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 866, in _MergeScalarField
    value = tokenizer.ConsumeString()
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 1229, in ConsumeString
    the_bytes = self.ConsumeByteString()
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 1244, in ConsumeByteString
    the_list = [self._ConsumeSingleByteString()]
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\text_format.py", line 1263, in _ConsumeSingleByteString
    raise self.ParseError('Expected string but found: %r' % (text,))
google.protobuf.text_format.ParseError: 3:8 : Expected string but found: '‘'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\internal\python_message.py", line 1069, in MergeFromString
    if self._InternalParse(serialized, 0, length) != length:
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\internal\python_message.py", line 1091, in InternalParse
    (tag_bytes, new_pos) = local_ReadTag(buffer, pos)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\internal\decoder.py", line 181, in ReadTag
    while six.indexbytes(buffer, pos) & 0x80:
TypeError: unsupported operand type(s) for &: 'str' and 'int'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "train.py", line 169, in <module>
    tf.app.run()
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run
    _sys.exit(main(argv))
  File "train.py", line 165, in main
    worker_job_name, is_chief, FLAGS.train_dir)
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\trainer.py", line 235, in train
    train_config.prefetch_queue_capacity, data_augmentation_options)
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\trainer.py", line 59, in create_input_queue
    tensor_dict = create_tensor_dict_fn()
  File "train.py", line 122, in get_next
    worker_index=FLAGS.task)).get_next()
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\builders\dataset_builder.py", line 140, in build
    label_map_proto_file=label_map_proto_file)
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\data_decoders\tf_example_decoder.py", line 143, in __init__
    use_display_name)
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\utils\label_map_util.py", line 149, in get_label_map_dict
    label_map = load_labelmap(label_map_path)
  File "D:\Image_Processing\TFOD\models-master\models-master\research\object_detection\utils\label_map_util.py", line 134, in load_labelmap
    label_map.ParseFromString(label_map_string)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\message.py", line 185, in ParseFromString
    self.MergeFromString(serialized)
  File "C:\Users\Hesam\AppData\Local\conda\conda\envs\tfod\lib\site-packages\google\protobuf\internal\python_message.py", line 1075, in MergeFromString
    raise message_mod.DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.

The problem has fixed. actually inside the label_map.pbtxt the name of the object must be enclosed with " " not ' '
Now I have a different problem. Although I have installed Cuda 9.0, but the model mostly train on CPU and very little on GPU

Hmm, I'm not sure why it isn't utilizing your GPU as much as your CPU. There could be a number of different issues. Hopefully someone else will be able to chime in and help with that!

I'm going to close this issue since the GPU usage issue is probably related to your computer rather than this tutorial.  If you do find the solution, please comment here!

No, the issue is open at tensorflow API side. anyway seems to not related to your repo and might belongs to the newer commits


Incorrect "Confusing use of '!'" warning

When processing this code:
Array.prototype.minus = function(other)
{
    "use strict";
    return this.filter(function(i)
    {
        return !(other.indexOf(i) > -1);
    });
};

JSHint complains about the use of !. Surrounding it with brackets does not help. I believe this is a bug.

I try if (!+n) and if (!(+n)), but jshint show Confusing use of '!'.
Wanna some help.

Given that there are numerous workarounds (including an explicit API to disable
the warning--/* jshint -W018 */, I don't think there is any further action
required here.

I was recently reminded of this issue when dealing with some d3js code and I saw this:
    node.append("text")
        .attr("dy", "0.31em")
        /* warning next 2 lines */
        .attr("x", function(d) { return d.x < Math.PI === !d.children ? 6 : -6; })
        .attr("text-anchor", function(d) { return d.x < Math.PI === !d.children ? "start" : "end"; })
        .attr("transform", function(d) { return "rotate(" + (d.x < Math.PI ? d.x - Math.PI / 2 : d.x + Math.PI / 2) * 180 / Math.PI + ")"; })
        .text(function(d) {
        return document.comment_data.comment_dict[d.data.id].user;
})
.attr('id',function(d){return 'nodetext_'+d.data.id;}); //add an id to each nodetext for reference selection

For the most part I agree with @jugglinmike, however in cases like this one the only available alternatives would be considerably less concise:
        .attr("x", function(d) {return ((d.x < Math.PI && !d.children)||(d.x>=Math.PI && d.children)) ? 6 : -6;})
        .attr("text-anchor", function(d) { return ((d.x < Math.PI && !d.children)||(d.x>=Math.PI && d.children)) ? "start" : "end"; })