Show unsynced observations before all others in MyObs

Currently we just sort MyObs by _created_at, which means that any unsynced observations will get buried under newly-created observations on the web or in other apps. Instead,

show all unsynced observations above other observations
continue sorting them by _created_at, just show them above all the others
as they upload they can go back to their previous positions

This will probably involve some weird ordering code.

@budowski this approach works but it's very slow, so I'm temporarily reverting it. When I had 450+ observations this sort operation was taking 1.6-1.8 seconds, making it really slow to load MyObs, navigate to ObsDetail, and come back to MyObs.
Not sure what the better approach might be here. Maybe we need to pre-compute a sort value and store that in Realm?


One template for storage

Hi,
Here is a PR to use only one template for the storage part, as it is already done for the compute part, so it will work in the same way and ease the work on the new Glue 2.1 support.
The compute_bdii.ldif template was also renamed to storage.ldif. (There are still a lot of unnecessary reference to bdii to be cleaned in the code).
Thanks!

Hi Baptiste!
could you reorganise/rebase commits into a single one?
Cheers
Enol

Sure, yes, I can. (not a big fan of squashing in fact).
I will check this ASAP.

I need to push a couple of fixes for the storage template, wait before merging, thanks!

Pushed and squashed (Dropping deprecated templates, and fixing two wrong variables' name in the storage.ldif template).

Merged from here: https://github.com/EGI-FCTF/cloud-info-provider/pull/45


Creater class Devices.php to separate API core from data manipulation

Done: https://github.com/PJanisio/ewelinkApiPhp/commit/af092d3531e306f9e3e771da73240902b9b52466


feat: make sources extensible

Warnings

:warning:
:exclamation: Please include a description of your PR changes.

Pull request should have a description of the underlying changes.

  Generated by :no_entry_sign: dangerJS against 1c57b669ee19022e97a70851d910ca0b74444c04


Mirrored rhombus

Feature ✅
Description
A rhombus is a shape which has all sides congruent, opposite sides parallel and diagonals crossing at 90 degrees. Given number of rows print a valid mirrored rhombus
Example
Input: 4
Output:

      ****
    ****
  ****
****

Contributors are supposed to mention their coding language while asking for assignment

Hi ✌,
I want to work on this issuein.

In what language?

Can you assign this to me, please?  (C++)

Hi Pratik, please can this be assigned to me, i would like to use python

If I have to choose the language, I would like to do it in C (remember I asked for it first hahaha)

@TheBlckCat Yup, assigned in C.

Assign in Java. Thanks.


Remove "Classes" directories from flutter/plugins/**/ios

They don't serve a purpose, and they just make for more verbose imports (and confusing semantics, since "Classes" as a directory is sometimes used to mean "internal".

Should we update the plugin template too?
cc @jakobr-google

Yep - I'll send a PR in the flutter repo

I think we'll want to keep '*' in source_files - headers are source code
too, pod-wise, and it'll enable Swift-based plugins as well - but that'd
require putting them in a separate directory... Or you could add .h and
.swift as well.
What's the problem with Classes? The current layout is the default
CocoaPods library layout.
tor. 18. maj 2017 kl. 22.59 skrev Todd Volkert<EMAIL_ADDRESS>
Yep - I'll send a PR in the flutter repo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/10116#issuecomment-302539788,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATHjGeiFxnPUpRQlGPDy27w1NWUWteQqks5r7LE-gaJpZM4Nc3sQ
.

I got pushback from internal Google clients about the verbosity of the paths:
#import "third_party/flutter_plugins/shared_preferences/Classes/SharedPreferencesPlugin.h"

From discussing with @cbracken and @collinjackson it didn't sound like the "Classes" added any value.  Do they?

Can't we use imports of the form #import <plugin/plugin.h> instead?

Only if we bundle them as frameworks and load them dynamically - right now we're statically compiling them into the app framework.

... maybe we should just keep them in Classes and work instead on building them as frameworks?  How are they built with the app in the external flow?

The plugin's header file is imported unqualified in GeneratedPluginRegistrant.h: import "plugin.h"
Don't know if that answers your question.

Internally, everything is statically compiled into the app, and modifying the include path is forbidden.  @jakobr-google I'll wait for your LGTM to land this in case you still have objections.

.. to land https://github.com/flutter/plugins/pull/68, that is

The value of 'Classes' is having the source code in a separate directory, so we can refer to it easily in the podspec. I think we should keep it that way, but we can rename the directory if you want.

Maybe tweak the way we copy this stuff into the internal structure. If the external structure is intended to build dynamic frameworks and the internal structure is intended for static compilation, we may be wrong to impose the same structure on both.

External flow builds them as frameworks by default (use_frameworks! in the app's Podfile). We have some issues with another Google pod that's distributed only as a static library, but apart from that, frameworks should be the default. Ideally, we'd build our apps the same way internally.
And given the already long import string, I don't think dropping 'Classes' from the path really improves things. If we do want to do this, we should just move them in the internal repo, and leave things as they are externally. We have tools that can do this automatically.

Sounds good - closing this.  Thanks!


Add support to Gradle 8+

Description
Hello, currently the plugin doesn't build when Gradle 8+ is used. That is because the property namespace is mandatory.
I included the namespace property with backwards compatibility.

Hi @davidmartos96!
Thank you for your contribution! :)
Just published 0.5.0 to pub.dev.
https://pub.dev/packages/installer_info/versions/0.4.0
Let me know if you encounter any issue with the update.


[HOLD for payment 2023-05-16] [$1000] Shortcut modal shortcut bugs on native

Coming from https://github.com/Expensify/App/issues/17499#issuecomment-1529483118, we'll address:
Issue 5 - Shortcut modal
Android: The keyboard shortcut modal closes immediately after opening it.
iOS Safari: iOS: [Inconsistency issue] Shortcuts to open the keyboard shortcut modal also closes it.
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01632c47a9bed2ee73
Upwork Job ID:<PHONE_NUMBER>634400256
Last Price Increase: 2023-05-02

Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@azimgd please comment on this issue so I can assign you

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

Current assignee @luacmartins is eligible for the External assigner, not assigning anyone new.

@luacmartins Are we going to look at the proposal here or @azimgd is directly going to work on the PR?

👍 @luacmartins

@mananjadhav no proposals needed. @azimgd will work on this!

hey @luacmartins looks like you have hired the contributor, and applied the label, so just let me know if there is anything else you need from me.

@zanyrenney you should be good for now. Thanks for checking!

I was only able to reproduce "The keyboard shortcut modal closes immediately after opening it".
@mananjadhav Could you connect a hardware keyboard and try to reproduce both, on production Android please.

@mananjadhav have you had a chance to take a look?

@azimgd here's what I found when I tested. I waited to post until I was able to record the screencast. Please check my findings. Could you share the details of Android when the modal is immediately closing?

Android: The keyboard shortcut modal closes immediately after opening it.

I am not able to reproduce this on the production Android native as well as Chrome. I connected an external keyboard via bluetooth and the keyboard didn't immediately close it.
https://user-images.githubusercontent.com/3069065/236426655-6552c285-bb4b-4278-9e1b-282317ad4dae.mp4

iOS Safari: iOS: [Inconsistency issue] Shortcuts to open the keyboard shortcut modal also closes it.

I went to the linked PR where this was reported and it looks like this is the behavior on all platforms. The above video I am opening and closing the modal with the same shortcut. Also attaching the screencast from the staging web app.
https://user-images.githubusercontent.com/3069065/236426673-b802593e-e5dd-4933-aa34-23ce0d330c09.mov
https://user-images.githubusercontent.com/3069065/236427046-d6a5b061-3877-4a15-a6b0-0c8c3f26ebb3.mp4

In review!

These bugs are a part of the PR https://github.com/Expensify/App/pull/14767#issuecomment-1494158230 when we added the support for Keyboard Shortcuts on native apps. I don't think we need to post a message as these were reported in the original PR and moved here.
I don't think we need a regression test suite too. But I am updating a proposal anyway in case others feel it is needed.
Regression Test Suite

Open the app in the logged in state
Press CMD+J
Shortcuts modal should be opened
Press CMD+J Shortcuts modal must not be closed
Press Escape to close the modal

@luacmartins @zanyrenney Quick bump on the previous comment.

I agree that we don't need a regression test either.

👋 Are we good to go here?

I think we are. Just left with @zanyrenney to take care of the payouts.

Agree with no regression test!

Just speaking to @luacmartins about 1 thing, and then will work on the payouts. Thanks for the patience!

Hey @azimgd i can't find your upwork profile. can you please clarify your name please?

@mananjadhav invited you to the job.

No reporting bonus because reporter is @luacmartins

Applied @zanyrenney

@zanyrenney https://www.upwork.com/freelancers/~01c11d09dfcda38656

Brill - sent you an offer @azimgd

@mananjadhav - paid! just waiting on @azimgd to accept offer then payout on the way!

@zanyrenney accepted.

All paid to both! thank youu 👍🏼

@mananjadhav just to confirm, did we manage to get the PR merged in time or was it over 3days?

@zanyrenney Quick follow up on this one. I think the bonus applies on this one. I just saw the Upwork contract https://www.upwork.com/nx/wm/workroom/33639919/details and it isn't paid here. Can you please help here?

@mananjadhav @azimgd payment of bonus is complete.


Learn how to deploy apps on netlify and deploy your projects

Description

Learn how to deploy apps on netlify and deploy your projects

References

Use this article

Additional Info

If you prefer learning with videos, search for "how to deploy html websites on netlify"

I've learnt that already but I'm having issues with hosting my site on gitpages and netlify

This is the link to my live site url
https://wonderful-lamington-a973c3.netlify.app/


Fix typeing of influxdb

Description
Fix typeing of influxdb reports
closes #4688
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design

Processing this pull request

Pull request rejected by merge tool. No change entry file found

Processing this pull request

Merged into branches master in 8099ef394fcee939bb34dacf82c6c394d79db626

Processing #4693.

Processing #4693.


PHP 7 features support

The null coalescing operator (??) has been added as syntactic sugar for the common case of needing to use a ternary in conjunction with isset(). It returns its first operand if it exists and is not NULL; otherwise it returns its second operand.

Classes, functions and constants being imported from the same namespace can now be grouped together in a single use statement.

Now analyzer returns: "file fooBar.php is not valid and has been skipped"

Hi,
If you use analyze PHP7 code with PHP5 interpreter, you should use the --ignore-errors option


Document Windows command line usage

I wrote a very small tutorial for Windows users who don't know how to use the command line.
Rendered: https://github.com/Genymobile/scrcpy/blob/wincli/FAQ.md#command-line-on-windows
Reviews welcome.

For me, this tutorial is good enough. However, I don't know that "actual" users who are only familiar with GUI can understand or not.
If users still struggle on this, maybe the next steps is to add pictures...

Considering add GUI just like this: https://anl.ink AnLink. It seems uses scrcpy technology but provide a user friendly UI and guide for common users.

Thank you @npes87184 :+1:
Merged: 43d3dcbd970640c70272fac9d5e54ff90f8e5eea


git/hooks: Use envoy.code.check

This is step towards removing any system python from ci - and means the hook is running the same tools that actual CI runs
Follow-ups planned:

unify local formatting code paths
route local formatting through do_ci.sh to ensure consistent bazel env

Fix #29597

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

cc @ravenblackx


will anyone implement this for comfyui?

Seems to work quite well sometimes for removing text, logos, and titles on photos on the covers of magazines. would be very useful

Hey @rafstahelin, are you talking about the Object Eraser?

Hey @rafstahelin, are you talking about the Object Eraser?

Yes, the eraser

@rafstahelin  @limiteinductive
I can do it. Is there any technical documentation for Object Eraser?  If you want, I can add ComfyUI support for all models in the refiners library.

@rafstahelin  @limiteinductive
I can do it. Is there any technical documentation for Object Eraser?  If you want, I can add ComfyUI support for all models in the refiners library.

No idea. I couldnt see any

I can use LaMa to delete objects. I can use Sam-v1 to mask. I need to do some research and review the codes. I will get back to you in 1-2 days.
LaMa : https://github.com/advimman/lama

Cool.
I already use lama cleaner that does a good job in removing some logo and magazine titles but it usually leaves smudges over larger text areas.
Would be great if this lama you refer to could still clean up the image behind the removal
And, using natural language rather than drawing would be a game changer
Thanks for your interest

Thanks. Can you send me a sample image? Do you want to delete the background or the object?

I mean the text on top of images as one use case.
It's very useful for cleaning datasets for training or for running inference on the reference image with controller and adapter without these impediments
Of course removing an actual physical object is another use case

Have you tried using ClipSeg(prompt="text") + LaMa? I'll create a pipeline and test tomorrow.

I actually didn't try it on text but good point. Have used both for other stuff. Will try tomorrow

I can use LaMa to delete objects. I can use Sam-v1 to mask. I need to do some research and review the codes. I will get back to you in 1-2 days.

@kadirnar I’m afraid you won’t get the same quality vs. our specialized model. FYI, we are considering open sourcing it, stay tuned!

I can use LaMa to delete objects. I can use Sam-v1 to mask. I need to do some research and review the codes. I will get back to you in 1-2 days.

@kadirnar I’m afraid you won’t get the same quality vs. our specialized model. FYI, we are considering open sourcing it, stay tuned!

I like contributing to open source projects. Do you have a roadmap? Do you want to add models like aurosr, laMa, clipseg...? Do you want to add only diffusion models like diffusers?

To clarify, Refiners (the framework itself and the implementations of models it contains) itself is completely open source. The Object Eraser mentioned by the OP is implemented using Refiners but it is not Open Source.
Regarding Refiners implementing other models with it is completely fine! We do not only want diffusion models, we already have e.g. SAM and we'd even like some LLMs. We even have a list of bounties you can check out.

I looked at this documentation. Only train projects are empty. Will you add different models? Can I add different models to this library? Do you have any plans for the ComfyUI tool?

Can I add different models to this library?

Contributions are more than welcome! E.g. FLUX or SAM 2 would be awesome, in particular.

Do you have any plans for the ComfyUI tool?

We don't have anything in the making at the moment: if you think about interesting parts to wrap into ComfyUI, please go ahead!

flux would be awesome indeed
On Mon, Aug 19, 2024 at 3:26 PM Cédric Deltheil @.***>
wrote:

Can I add different models to this library?
Contributions are more than welcome! E.g. FLUX or SAM 2 would be awesome,
in particular.
Do you have any plans for the ComfyUI tool?
We don't have anything in the making at the moment: if you think about
interesting parts to wrap into ComfyUI, please go ahead!
—
Reply to this email directly, view it on GitHub
https://github.com/finegrain-ai/refiners/issues/396#issuecomment-2296576052,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APNXTFXRPICIISRF2NRRRP3ZSHXAFAVCNFSM6AAAAABL3OMCKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGU3TMMBVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
thanks
best regards, raf

To clarify, Refiners (the framework itself and the implementations of models it contains) itself is completely open source. The Object Eraser mentioned by the OP is implemented using Refiners but it is not Open Source.

Regarding Refiners implementing other models with it is completely fine! We do not only want diffusion models, we already have e.g. SAM and we'd even like some LLMs. We even have a list of bounties you can check out.

I looked at this documentation. Only train projects are empty. Will you add different models? Can I add different models to this library? Do you have any plans for the ComfyUI tool?

Hey how's it coming along?

@rafstahelin
I tested CLIPSeg + LaMa model. CLIP model doesn't detect text well. That's why the output is bad. You can use VLM models for text detection. But it is not a quick solution.
CLIPSeg:

Dino + Sam:

There are detectors designed for text, like https://github.com/clovaai/CRAFT-pytorch. Maybe worth trying.

This can be done using this library. I want to add generative ai models to this library.
Github: https://github.com/fcakyon/craft-text-detector

This can be done using this library. I want to add generative ai models to this library.
Github: https://github.com/fcakyon/craft-text-detector

Would love to test your extension for comfyui if you've got anything going yet ?

This can be done using this library. I want to add generative ai models to this library.
Github: https://github.com/fcakyon/craft-text-detector

Would love to test your extension for comfyui if you've got anything going yet ?

I am not working on this subject at the moment. My first goal is to learn the refiners library and add new models to this library. I am also training controlnet for flux.

This can be done using this library. I want to add generative ai models to this library.
Github: https://github.com/fcakyon/craft-text-detector

Would love to test your extension for comfyui if you've got anything going yet ?

I am not working on this subject at the moment. My first goal is to learn the refiners library and add new models to this library. I am also training controlnet for flux.

That sounds really cool. I think IP Adapter is also in very high demand.
totally fine. I guess I ll just just bbox and flux inpainting
thanks

Hey @rafstahelin and @kadirnar
We made a couple of comfy custom nodes, see #421. We only support our new Box Segmenter at the moment, but we're thinking of adding more nodes since there seems to be a demand for it.
We leverage the new (beta) Comfy Registry to host our nodes. They are available at: https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners. You can install them by doing:
comfy node registry-install comfyui-refiners

Or by unzipping the archive you can download by clicking "Download Latest" into your custom_nodes comfy folder.

Hey @rafstahelin and @kadirnar
We made a couple of comfy custom nodes, see #421. We only support our new Box Segmenter at the moment, but we're thinking of adding more nodes since there seems to be a demand for it.
We leverage the new (beta) Comfy Registry to host our nodes. They are available at: https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners. You can install them by doing:
comfy node registry-install comfyui-refiners

Or by unzipping the archive you can download by clicking "Download Latest" into your custom_nodes comfy folder.

Will you create a Github repo?

They are here: https://github.com/finegrain-ai/refiners/tree/main/src/comfyui-refiners


Laravel 10 support

Thanks for the package. Are you planning to add support for laravel 10?

Please upgrade to 2.2.0.


Fastclick only work for drag and drop action in FullCalendar with iOS9

Hello guys.
When I use fastclick and fullcalendar in IOS9 the tap action is not working. Only works if I simulated a drag&drop action. I was using dayClick listener on fullcalendar (http://fullcalendar.io/docs/mouse/dayClick/).
If I don't use Fastclick everything is working as expected.
I'm using: Fastclick 1.0 and FullCalendar 2.5.0.

Hello gmunumel,
I has the same annoying issue with FullCalendar 2.6.1 and FastClick 1.0.3 (except in my current situation its a IOS7), and the problem is that FastClick cant handle mouseup and mousedown handlers, which Fullcalendar rely on, thats why i use this Fastclick fork : [https://github.com/matthew-andrews/fastclick/blob/569732a7aa5861d428731b8db022b2d55abe1a5a/lib/fastclick.js]
In my case i use only week view, but i try dayclick handler and it work also.
If you didnt find the answer yet, try this fix, it should work.


open source the code, please

It's a great project i think after reading paper
I'm looking forward to the open source of your project.
When will you open source the code?

Thanks for your attention, I am sorting out my code. and the code will be released in two weeks.

It's a great project i think after reading paper I'm looking forward to the open source of your project. When will you open source the code?

Thanks for your attention. I am sorting out my code and the code will be released in two weeks.

It's a great project i think after reading paper I'm looking forward to the open source of your project. When will you open source the code?

Thanks for your time and attention, I have uploaded data splits, training and testing code in this repo. I hope this will help you.


multiple thread can block in poll？

in ev_poll_posix.c:pollset_work function, multiple thread can block in poll？
why design so that？why not make a thread to do poll。

The work after poll (reading a message, getting control back to the
application) can quickly become dominated by context switches if there are
too many threads involved in processing in the response path (especially if
your network is fast), so we try to design so that there's a minimum number
of thread jumps involved in any path.
On Tue, Sep 13, 2016 at 11:34 PM 武苍石<EMAIL_ADDRESS>wrote:

in ev_poll_posix.c:pollset_work function, multiple thread can block in
poll？
why design so that？why not make a thread to do poll。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/issues/8091, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJpudQN8XynmJqxGro3Ghc-u8h766rIrks5qp5VggaJpZM4J8cXa
.

thinks to response, and you solve my doubt.


coqdoc

Is there some website that publicly hosts the coqdoc (html) for coq-ext-lib?

Currently no. You wouldn't happen to have a script that builds it in a suitable way to publish as a github pages would you?

I use CoRN/math-classes' scons scripts to build coqdoc (and .vo files as well). Those scripts find out all the .v files, including those in the non-std-lib dependencies, and invoke coqdoc on the entire collection at once -- this is necessary for cross-linking between files and libraries.
Because coq-ext-lib does not use have any non-std-lib dependencies, you can build coqdoc using
coqdoc -utf8 --toc --interpolate --no-lib-name --coqlib http://coq.inria.fr/library -d coqdoc -R theories Extlib [all_v_files]
If you wish to use scons scripts to automate the instantiation of [all_v_files], let me know and I will be happy to submit a pull request.

A pull request would be great.

I noticed that the Makefile generated by Coq already supports coqdoc generation:
make -f Makefile.coq html

Temporary documentation can now be found here http://coq-ext-lib.github.io/coq-ext-lib/
I need to see if there is some way to set up something to auto-generate documentation.


List of env packages

Hello
I'm really having a hard time running the project, I can't get rid of the errors and incompatible packages, is it possible for you to share a list of all the packages you used and specially their exact versions?, thank you.

Hi,
please have a try with these. I'm not 100% sure if it's complete, if something is missing, please let me know.
tensorpack (see instructions in README)
pycocotools
tensorflow-gpu==1.15
cython
wget
numpy
shapely
msgpack
msgpack_numpy
tabulate
xmltodict
matplotlib
opencv-python
pillow
tqdm
zmq
scikit-image
annoy


Blog Tile: FlowFuse helps when running Node-RED behind a VPN

Related Issue
No response
Description
Context: https://github.com/FlowFuse/website/pull/1743/files
Please deliver by pushing to that branch

Please deliver by pushing to that branch

Done!


Update nvcomp to 2.3.1

Fixes #208

rerun tests

@robertmaynard, It appears the 2.3.2 has already been released:
https://developer.download.nvidia.com/compute/nvcomp/2.3.2/local_installers/nvcomp_install_CUDA_11.x.tgz
Can we update this PR to pull down 2.3.2 instead?

@gpucibot merge


GPU is not supported on qualcomm adreno 702 GPU device. How to enable that?

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Android 10
TensorFlow installed from (source or binary): source
TensorFlow version (or github SHA if from source):2.9.2

GPU is not supported on qualcomm adreno 702 GPU device.
On qualcomm adreno 702 GPU device, the tensorflow example android app  can not work and it give us the toast "GPU is not supported on this device.".
Look into the tensorflow source code , and notice that int the tensorflow source code path tensorflow_src/tensorflow/lite/experimental/acceleration/compatibility,that give a way to add GPU device to make GPU work.
1. Following the tensorflow_src/tensorflow/lite/experimental/acceleration/compatibility/README.md, but it can not well on GPU, and the android app will crash. We do not know how to resolve this ?
Very thanks for your reply.

Hi @megleo,
Hexagon is a specialized processor designed by Qualcomm for mobile devices. TensorFlow Lite supports Hexagon delegate, which can be used to accelerate the inference process on devices that do not support GPUs or have limited GPU capabilities. Please refer to this document on Hexagon Delegate. Thank you!

@synandi
Thanks for your reply.
On my embedded device, there is no  DSP device , but  a Andreno GPU. So we expect to use GPU on our embedded devices.By using google example android app image classification , it shown that "GPU is not supportted". So we just wonder that how to enable GPU using the following method but not work.

In the README.md,  it seems give us the method to add  gpu_compatibility.  we follow it , but get the gpu_compatibility.bin is about 117Kb, which is more huge than the original one, and it may be Converted failed.

Thanks
BRs


Updated package ffmpeg to 0.3.1 (changed based on local installation)

Based on python3.9 conda environment , I have tried Mangio-RVC-Fork getting this error below , so I have updated ffmpeg package version to 0.3.1 (latest) it has been resolved

Not merge from August?

Nope , not  merged yet , Did you got any issue after pip installation ? Rather than updating ffmpeg version ?

No, it's working good. Thanks
Il gio 19 ott 2023, 19:32 Sai Sanjay Kottakota @.***>
ha scritto:

Nope , not merged yet , Did you got any issue after pip installation ?
Rather than updating ffmpeg version ?
—
Reply to this email directly, view it on GitHub
https://github.com/Mangio621/Mangio-RVC-Fork/pull/119#issuecomment-1771427310,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE43GZRAQGI4VY25O53ELOLYAFP3LAVCNFSM6AAAAAA4AOR35SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRGQZDOMZRGA
.
You are receiving this because you commented.Message ID:
@.***>


Network Trace - Save to Layer not loading from configuration

https://github.com/Esri/solutions-webappbuilder-widgets/blob/dev/NetworkTrace/setting/outageSetting.js#L166
https://github.com/Esri/solutions-webappbuilder-widgets/blob/dev/NetworkTrace/setting/outputSetting.js#L423
this.outputLayer.setValue(this.overviewConfig.saveToLayer);
to
this.outputLayer.setValue(true);

PR https://github.com/Esri/solutions-webappbuilder-widgets/pull/1016

A resolution to a bug in which the Save To Layer check box was not correctly being set in the configuration page

verified


feat: Rename selection headers to controls

This PR begins the process of renaming d2l-selection-header, d2l-list-header, and d2l-table-header to d2l-*-controls. This is primarily being done because for tables, the "header" language is confusing.
There are three pieces left in that will need to be cleaned up:

list-header.js, which now just duplicates list-controls.js to create <d2l-list-header>
--d2l-list-header-background-color
slot="header" on <d2l-list>

The next steps will be:

Update imports on documentation for Daylight
Switch all consumers of d2l-list-header to d2l-list-controls (fortunately, selection-header and table-header aren't used anywhere externally yet)
Remove cleanup code above

Rally: https://rally1.rallydev.com/#/?detail=/userstory/673800144323&fdp=true

@dlockhart Yeah I should have done that - the visual-diff PR showed mostly "moved" files, but two showed up as delete + new. I spent a while comparing them to make sure there was no change.
Do you think I should go back and just rename the files, and force-push over this? I'm happy to if you think that would be better.

I don't feel strongly about it. If the diffs were older and had a lot of history that might be important then it might be worth it, but that's not the case so "meh".


Update script to support secure mqtt message bus

🚀 Feature Request
Relevant Package [REQUIRED]

 Based on [edgex-compose PR #282](https://github.com/edgexfoundry/edgex-compose/pull/282), needs to update subscribe mqtt-broker script.

Fixed by #708


[T4A4][F09-B2]Bernard Tan Ke Xuan

Ready for review

Accepting this PR without a review because another of your PRs for this tutorial was reviewed in detail.


Remove possibility of 'check collision' at start of runtime

Added in https://github.com/benjamincongdon/WunderSchedule/commit/85974fd3f9537d305e27db253a9bd9e37f35b5b4


Update all pipelines to ubuntu-18

There are still a few pipelines in the tools repo using ubuntu-16:
https://github.com/Azure/azure-sdk-tools/search?q=ubuntu-16
These should all be upgraded to ubuntu-18, which is our current default version for Linux pipelines.

We should consider leapfrogging ubuntu-18 and go straight to ubuntu-20 instead.  DevOps has already started moving their linux-latest to ubuntu-20 already.

We should consider leapfrogging ubuntu-18 and go straight to ubuntu-20 instead.  DevOps has already started moving their linux-latest to ubuntu-20 already.


Arrow keys don't seem to work in Windows 10

I have tried to use the up/down arrow keys in both PowerShell and cmd.exe and the arrow keys seem to do nothing (the green '>' doesn't move)

Wrong place for this issue


Replaces image aliases in Dockerfile

Replaces image aliases found in FROM instructions
while analyzing Dockerfiles
work towards: #951
Signed-off-by: Mukul Taneja<EMAIL_ADDRESS>

@nishakm @rnjudge, Could you please review this PR?

@nishakm, @rnjudge, Please review this PR that makes tern analyze multi-stage docker files. I know we were talking about entirely different ways to tackle this problem but I would like to propose this approach as I think this solves our problem without touching any existing classes in the framework. Using this change I could execute multi/single-stage Dockerfile without any errors.

Thanks for the PR! The change is definitely useful, but it actually addresses a overall issue of parsing multistage docker builds rather than #951. I don't think I have an issue filed for that yet. Could you file one?

@nishakm, @rnjudge, Please review this PR that makes tern analyze multi-stage docker files. I know we were talking about entirely different ways to tackle this problem but I would like to propose this approach as I think this solves our problem without touching any existing classes in the framework. Using this change I could execute multi/single-stage Dockerfile without any errors.

Thanks for the PR! The change is definitely useful, but it actually addresses a overall issue of parsing multistage docker builds rather than #951. I don't think I have an issue filed for that yet. Could you file one?

Cool! Which other issue you are referring to here?

@mukultaneja This PR doesn't fix #951:
2021-05-13 07:01:22,234 - DEBUG - run - Generating locked Dockerfile...
2021-05-13 07:01:22,251 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,253 - DEBUG - docker_api - Image "python:3.9-slim-buster" found
2021-05-13 07:01:22,273 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,275 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:23,810 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:23,823 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:23,825 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:25,315 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:25,319 - DEBUG - parse - Parsed src_path is --from=builder

As explained before, our goal is to get the image string from the DockerImage object rather than ask the docker daemon if the image already exists and if not, pulling it.

@mukultaneja This PR doesn't fix #951:
2021-05-13 07:01:22,234 - DEBUG - run - Generating locked Dockerfile...
2021-05-13 07:01:22,251 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,253 - DEBUG - docker_api - Image "python:3.9-slim-buster" found
2021-05-13 07:01:22,273 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,275 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:23,810 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:23,823 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:23,825 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:25,315 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:25,319 - DEBUG - parse - Parsed src_path is --from=builder

As explained before, our goal is to get the image string from the DockerImage object rather than ask the docker daemon if the image already exists and if not, pulling it.

@nishakm this actually is happening because we are removing the image right away here.

@nishakm, @rnjudge, Please review this PR that makes tern analyze multi-stage docker files. I know we were talking about entirely different ways to tackle this problem but I would like to propose this approach as I think this solves our problem without touching any existing classes in the framework. Using this change I could execute multi/single-stage Dockerfile without any errors.

Thanks for the PR! The change is definitely useful, but it actually addresses a overall issue of parsing multistage docker builds rather than #951. I don't think I have an issue filed for that yet. Could you file one?

Cool! Which other issue you are referring to here?

I've created #969 to describe the feature request.

@mukultaneja This PR doesn't fix #951:
2021-05-13 07:01:22,234 - DEBUG - run - Generating locked Dockerfile...
2021-05-13 07:01:22,251 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,253 - DEBUG - docker_api - Image "python:3.9-slim-buster" found
2021-05-13 07:01:22,273 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,275 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:23,810 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:23,823 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:23,825 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:25,315 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:25,319 - DEBUG - parse - Parsed src_path is --from=builder

As explained before, our goal is to get the image string from the DockerImage object rather than ask the docker daemon if the image already exists and if not, pulling it.

@nishakm this actually is happening because we are removing the image right away here.

this is the only part that also struck me that is why I wanted your review here

@mukultaneja This PR doesn't fix #951:
2021-05-13 07:01:22,234 - DEBUG - run - Generating locked Dockerfile...
2021-05-13 07:01:22,251 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,253 - DEBUG - docker_api - Image "python:3.9-slim-buster" found
2021-05-13 07:01:22,273 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,275 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:23,810 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:23,823 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:23,825 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:25,315 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:25,319 - DEBUG - parse - Parsed src_path is --from=builder

As explained before, our goal is to get the image string from the DockerImage object rather than ask the docker daemon if the image already exists and if not, pulling it.

@nishakm this actually is happening because we are removing the image right away here.

Yes, we don't want to call get_docker_image_digest at this stage.

@mukultaneja This PR doesn't fix #951:
2021-05-13 07:01:22,234 - DEBUG - run - Generating locked Dockerfile...
2021-05-13 07:01:22,251 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,253 - DEBUG - docker_api - Image "python:3.9-slim-buster" found
2021-05-13 07:01:22,273 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:22,275 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:23,810 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:23,823 - DEBUG - docker_api - Checking if image "python:3.9-slim-buster" is available on disk...
2021-05-13 07:01:23,825 - DEBUG - docker_api - Attempting to pull image "python:3.9-slim-buster"
2021-05-13 07:01:25,315 - DEBUG - docker_api - Image "python:3.9-slim-buster" downloaded
2021-05-13 07:01:25,319 - DEBUG - parse - Parsed src_path is --from=builder

As explained before, our goal is to get the image string from the DockerImage object rather than ask the docker daemon if the image already exists and if not, pulling it.

@nishakm this actually is happening because we are removing the image right away here.

Yes, we don't want to call get_docker_image_digest at this stage.

ok so it means we can remove get_docker_image_digest call from expand_from_images.. and it will solve the problem

@mukultaneja We've already discussed a good way forward to fix this issue:
import_image is not really useful. So what you will need to do is remove import_str from DockerImage class and set import_image with the image string image@digest_type:digest
Then in the lock_dockerfile function, use import_str as the FROM line

@mukultaneja We've already discussed a good way forward to fix this issue:
import_image is not really useful. So what you will need to do is remove import_str from DockerImage class and set import_image with the image string image@digest_type:digest
Then in the lock_dockerfile function, use import_str as the FROM line

sure @nishakm, as I mentioned I know we discussed but this different idea came to my mind so thought to implement it. Anyway, if you think it won't solve the problem, I will revert back to what we discussed.

@nishakm @rnjudge Please review the recent changes I made to this PR. With these changes, I could work with all three Dockerfile formats,

Single Stage
Multi-Stage
Docker file with 2 or more FROM(s)

I would remove the replace_image_alias & find_image_aliases in the final version of this PR.

@nishakm I addressed two of the issues you mentioned in my recent push,

Repeated FROM
Missing new lines character.

I also looked into why the image tag is not replaced with its digest and it is because the import_str is being set here for the docker file which you used. My changes check that if the import_str is not being set after this above step then it would go ahead and set properly.

@nishakm, are the changes looking good?

All changes look good and work! Thank you! One small change: Could you expand on your commit message?
<subject>

<why the change is needed>

<list all the changes made and for what reason>

Fixes: #....

@nishakm Done!


Add tqdm progress bar to LGBMImputer

Checks if we are in Jupyter nb or cli and imports tqdm.notebook or tqdm as appropriate. Progress bar displays for the LGBMImputer fit and fit_transform methods. Logging to the user is now shown in the tqdm progress bar.

Looks good to me, thank you!


Declaration file emitted with esModuleInterop can't be consumed without it

TypeScript Version:  3.2.0-dev.20181019
Search Terms:
Code
import abs from "abs"; // using @types/abs which uses `export =`
export const x: typeof abs = <any>null;

Expected behavior:
Output .d.ts is:
import abs = require("abs");
export declare const x: typeof abs;

Actual behavior:
import abs from "abs";
export declare const x: typeof abs;

Discovered in quill on DefinitelyTyped, which imports from quill-delta, which is written in TypeScript with esModuleInterop.

This is entirely because we strive not to rewrite people's code, and so during declaration emit, we preserve their interop-requiring-import-style. I'm... not sure if it's a bug or just unfortunate? I know prior to the new declaration emitter it'd be in the "unfortunate" category, since we also had the same problem with noImplicitAny; but the new declaration emitter solved all those problems by annotating any's on anything missing them. So in that same vein, I can conceive us changing our emit to automatically fix this up, too.

IMO - this is the (implied) expected behavior of auto-generated declaration files.
You would think your generated declarations would be "universally" consumable, but as of now - they're unfortunately not :(
I'd be very happy to see this fixed (assuming I can call it a bug).

Bump. It would be great if this was fixed. 😄


Error when calculating MIOU

[>>>>>>>>>>>>>>>>>>>>>>>>>>>] 1000/1000, 7.1 task/s, elapsed: 141s, ETA:     0sTraceback (most recent call last):
File "E:\EDTER_Edge_detection\EDTER-main\train.py", line 175, in
main()
File "E:\EDTER_Edge_detection\EDTER-main\train.py", line 164, in main
train_segmentor(
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\apis\train.py", line 111, in train_segmentor
runner.run(data_loaders, cfg.workflow, cfg.total_iters)
File "D:\Anaconda\envs\EDTER\lib\site-packages\mmcv\runner\iter_based_runner.py", line 144, in run
iter_runner(iter_loaders[i], **kwargs)
File "D:\Anaconda\envs\EDTER\lib\site-packages\mmcv\runner\iter_based_runner.py", line 70, in train
self.call_hook('after_train_iter')
File "D:\Anaconda\envs\EDTER\lib\site-packages\mmcv\runner\base_runner.py", line 317, in call_hook
getattr(hook, fn_name)(self)
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\core\evaluation\eval_hooks.py", line 30, in after_train_iter
self.evaluate(runner, results)
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\core\evaluation\eval_hooks.py", line 34, in evaluate
eval_res = self.dataloader.dataset.evaluate(
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\datasets\custom.py", line 342, in evaluate
all_acc, acc, iou = mean_iou(
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\core\evaluation\mean_iou.py", line 62, in mean_iou
intersect_and_union(results[i], gt_seg_maps[i], num_classes,
File "E:\EDTER_Edge_detection\EDTER-main\mmseg\core\evaluation\mean_iou.py", line 23, in intersect_and_union
pred_label = pred_label[mask]
IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 425
Process finished with exit code 1

for i in range(num_imgs):
    ##############################################################################
    ##############################################################################
    ##pred_label的输入值
    results_i = results[i]
    ##查看其shape
    results_i_shape = results_i.shape
    # print("results_i", results_i)
    ##发现其为a*b*c*d四维向量,（1,1,b,c）
    print("results[i]的维度=======", results_i_shape)
    ##前两个维度是多余的，因此需要将其变为二维，以便计算miou
    ## 采用保留后两个维度的方式,表示获取矩阵 results_i 的所有后两个维度的行和列，然后选取深度方向上索引为 0 的元素
    results_i = results_i[0, 0, :, :]
    # 判断是否降维成功
    shape_after = results_i.shape
    print("降低维度后results[i]的维度=======", shape_after)

I solved this problem by modifying the dimension of the result [i] matrix from four dimensions to two dimensions. Currently, the code can run, but I'm not sure if the results are correct

Our project is developed based on MMsegmentation, which is used for image segmentation. And the mIoU is used for segmentation evaluation. We do not use 'mean_iou.py' to evaluate the edge results. If you want to evaluate edges, please refer to here.


Fixed makefile for OSX.

Signed-off-by: Bartek Plotka<EMAIL_ADDRESS>

Thanks for this, confirmed worked on OSX 👍

https://goreportcard.com/report/github.com/thanos-io/thanos is down ;p


DatetimeLike annotation does not appear to work with dates

This example is bdate_range, but I suspect this issue is spread more widely.
    import pandas as pd
    from typing import Optional
    from datetime import date
    a: Optional[date] = date(2022, 1, 1)
    b: Optional[date] = date(2022, 1, 10)
    dr = pd.bdate_range(a, b, freq="d")

error: Argument 2 to "bdate_range" has incompatible type "Optional[date]"; expected "Union[str, Union[datetime, datetime64, Timestamp], None]"  [arg-type]

Tagging @bashtage as I think he's done some work around this recently. It seems to me that we may have made an assumption somewhere that date is a subset of datetime (it's actually the opposite).

The issue was that date is not datetime-like in the sense that some pandas functions that lise datetime-like do not accept date.  What is needed is a new type DateAndDatetimeLike that includes DateTimeLike + date, but this needs to be thoroughly tested.

I am actually surprised that some functions don't accept date. Do you have any examples? I'm wondering if it's more of an oversight than an actual incompatibility. Or is it just that the docs don't say that it accepts a date when it does?
I don't have any hard facts, but I suspect that more of the pandas time series API accepts a date than doesn't. If you agree with that, can we just revert the change?

It was one of the functions in #351.  I tried all of the datetime-like in the type alias and date raised. Basically, it seem there is no consistent definition of what is "datetime like" in pandas.
We shouldn't revert the change since that will result in too broad static typing.  All functions that take DatetimeLike should be tested wtih date, and if they pass they should use a new type (e.g. DateAndDatetimeLike).

The function was interval_range


Typing indicator should not show up on oneself

Probably related to recent typing indicator PR #2912.
Version
master as of today.
Describe the bug
When sendTyping is set to true, the typing indicator should not show up for oneself.
Steps to reproduce

Go to https://microsoft.github.io/BotFramework-WebChat/05.custom-components/b.send-typing-indicator/
Type something

Expected behavior
The typing indicator should not show up.
Today, the typing indicator show up.
Additional context

[Bug]

@compulim I don't believe there is an issue with the typing indicator. The echo typing command makes Mock Bot echo typing activities sent from the user, so the typing activities that are being displayed are for the bot - not the user. If you set sendTypingIndicator to true and don't send the the echo typing command, the typing indicator is not displayed when the user types.
It should be noted that sendTypingIndicator has been removed and the Send Typing Indicator sample should be updated to use styleOptions.sendTyping.


Add private key Ingress annotations

Main PR

/assign
/ok-to-test

Merging this as the PR with the actual functionality got merged!
Thanks again!
/hold cancel

/hold cancel


How does it work?

I'm curious about lots of things about this project, but a few jump out right away.

The video says I can use several input languages, but how? I don't see a way to choose anything but TypeScript for the top-left pane, and editing any other pane does not propagate changes to the others.
Does the Generator tab contain a complete description of how your internal representation is converted to text, or are there additional knobs we can't see?
The Generator tab appears to contain code in some kind of programming language, in curly braces. What language is this?
How does the reverse conversion (from text to the internal representation) work? I don't expect you can magically use the stuff in the "Generator tab" in reverse? And yet, somehow, you appear to have single-handedly written five "reverse generators"! How much time did that take?
Are you aware of the Loyc project?

As the inventor of LES I'm a bit biased, but I can't help but think that this project could benefit from using it. For example, compared to JSON or plain text, LES would provide a much more compact and intuitive way to express your ASTs.
Perhaps we could collaborate... for a brief time period starting right now, I have a lot of involuntary free time on my hands. Your primary language seems to be TypeScript, and it would be an interesting exercise to try to port my C#-based LES parser and printer to TypeScript... maybe using OneLang itself to help me do it! What do you think, if I did that, would you be interested in using LES somewhere in OneLang?
Then there's my Enhanced C# parser... if I could port that to TypeScript, you'd have access to a high-quality C# parser (though it doesn't quite support C# 7 yet.) Since the EC# and LES parsers were generated by the same parser generator (which I also wrote), if I can manage to port the LES parser to TypeScript, the EC# parser should be a pretty easy follow-up.

Hey there! :)

If you select Cross-language editing demo mode then it will enable editing in TS, C#, PHP and Ruby. I only implemented these 4 parsers, but they are probably pretty limited and buggy. TS was always indeed the main language.

Generically speaking, yes, it's a complete description. Here and there I have to implement some feature in the Core because of one specific language (like detecting what variable is constant / mutable for Swift), but I try to implement it in generic way, so the Generator can use the isMutable property later. This was one of my main design goal: the Generator should be a template-based language.
Note: this is just an experiment as the whole project.

The file itself is YAML, the curly brace stuff is a custom template language, called OneTemplate. I tried to reuse existing template languages, but they were not enough precise in mostly whitespace handling. Although my current solution is still not perfect and needs at least one revision, it allows the Generator code to be somewhat more readable than other solutions. By the way here are a few test cases which shows what the language knows, how it works in different situations.

I does not use the Generator tab indeed.  The TypeScript parser was the first, this implemented a lot of common component ("tokenizer", comment, line manager, etc) and was rewritten multiple times. I think it took somewhere between 20 - 40 hours. Writing the other parsers (C#, Ruby, PHP) took 4-8 hours per language I think. But it's important these are nowhere complete or compliant parsers. I call them e.g. 'C#-like frontend for One', so they won't be able to parse existing C# programs yet. For serious purposes I plan to wire in real parsers (e.g. Roslyn) into One. But one day I want to 'rewrite' my parsers in One, so you will be able to "parse any language from any language".

Until now, no. :)

I will think about your other suggestions, but I have to go through the docs and posts you linked first.
The plaintext AST is mostly used for debugging purposes (the JSON one is not really used), and for that it's better if it is less compact and shows more information like the type of the internal representation, the variable's inferred type, etc. It also helps that one node is usually one line, so I can diff before-after states, so e.g. after I modify something in the compiler and I regenerate all the tests, I see in Git in an instant if some representation changed and I can decide if it is a bug or it is something I indeed want.
For example here I can see that the compiler indeed understood that the call returns a OneJProperty which has a getName method, so it becomes a MethodReference instead of a generic PropertyAccess.
So, I will look into your projects later, but I don't promise a quick answer, I am pretty dormant nowadays regarding OneLang...

Thanks for your answer. I would say that it never hurts to have a more compact representation... for example, consider var x: number = y + 1;, represented as
- Variable: x [OneNumber]
  - Binary: + [any]
    - Identifier: y [any]
    - Literal (numeric): "7" [OneNumber]

In LESv3, the same information could be expressed with something like
.var (@#is(OneNumber) x) = (@#is(any) (@#is(any) y) + (@#is(OneNumber) 7))

The attribute notation for types is a bit clunky here, admittedly, because the low precedence of the attribute marker @ requires a lot of parentheses. But how about...
.var x is. OneNumber = (@#is(any) y is. any + 7 is. OneNumber)

In this example I've introduced the "is." operator. This is known as a "combo operator" (combination text and punctuation). Because of the dot, its precedence is the same as the dot operator. However, an attribute is still needed to express the type of the + expression.

I'm curious about lots of things about this project, but a few jump out right away.

The video says I can use several input languages, but how? I don't see a way to choose anything but TypeScript for the top-left pane, and editing any other pane does not propagate changes to the others.
Does the Generator tab contain a complete description of how your internal representation is converted to text, or are there additional knobs we can't see?
The Generator tab appears to contain code in some kind of programming language, in curly braces. What language is this?
How does the reverse conversion (from text to the internal representation) work? I don't expect you can magically use the stuff in the "Generator tab" in reverse? And yet, somehow, you appear to have single-handedly written five "reverse generators"! How much time did that take?
Are you aware of the Loyc project?

As the inventor of LES I'm a bit biased, but I can't help but think that this project could benefit from using it. For example, compared to JSON or plain text, LES would provide a much more compact and intuitive way to express your ASTs.
Perhaps we could collaborate... for a brief time period starting right now, I have a lot of involuntary free time on my hands. Your primary language seems to be TypeScript, and it would be an interesting exercise to try to port my C#-based LES parser and printer to TypeScript... maybe using OneLang itself to help me do it! What do you think, if I did that, would you be interested in using LES somewhere in OneLang?
Then there's my Enhanced C# parser... if I could port that to TypeScript, you'd have access to a high-quality C# parser (though it doesn't quite support C# 7 yet.) Since the EC# and LES parsers were generated by the same parser generator (which I also wrote), if I can manage to port the LES parser to TypeScript, the EC# parser should be a pretty easy follow-up.

I’m new and dumb to this stuff need help


Fixed deadlinks caused by ocp latest docs pointing to 4.x

Fixed deadlinks caused by ocp latest docs pointing to 4.x
Fixed deadlink to networt policy yml example
Fixed deadlink to applier repo

@pabrahamsson ; as i didnt write the docs, i didnt want to change the version to 4.x, as that might be a breaking change.
a lot of the repo's need updating to 4.x docs but i see that as another PR, as the docs/code might need a large amount of updates; i.e.:  operatorise'd

Fair enough @garethahealy


Added options to convert to int and mandatory fields

Thanks for this @iBobik! ✨
I'd like to get this merged, but it looks like this change has broken the tests. Do you think you could have a go at fixing them?

I see. I am beginner in Ruby and have no idea what went wrong. In docs I see each is supported in all tested Ruby versions. Also in my use-case it works.

Still working there. Thank you.
Do we need to create tests for this new features?

Do we need to create tests for this new features?

If you could that'd be great! You should be able to follow the same pattern as the existing tests in test/jekyll/csv_test.rb, which add bits to site.config, call site.generate, then assert that the expected documents are in the collection.
Here's an example where we're testing the slug field:
https://github.com/theyworkforyou/jekyll-csv/blob/718d0db1393992973b550e957fc877c5ca7dda93/test/jekyll/csv_test.rb#L55-L60


Aggregation Support?

First of all I like your library. Works great for search.
I have a question is there any support voor aggregations?
I would love to use filters and the result counts.

Closing due to age. I have thought about a way to improve the search but for now, you can customize the search using:  https://laravel.com/docs/8.x/scout#customizing-engine-searches


Pattern match expressions when we know the declared type to avoid creating new type variables when possible

extern proc foo(x: u8);

let x: u8 = 123;
foo(123);

In these cases, the type inference is obvious and doesn't require creating a type variable. Creating a type variable involves updating at least two hash maps and so is pretty damn slow.
We might also want to pattern match -. (or maybe that should have already been pattern matched ahead of time? I kind of want to remove synthetic)

Creating a type variable involves updating at least two hash maps and so is pretty damn slow.

This is no longer true
Closing this because I don't really feel like doing it, I may come back to it


Betweenness output

Hi, how do I view the computed betweenness values for each vertex in BC?

You can add some code to print out the values in the Dependencies array, where Dependencies[i] stores the value for the i'th vertex. Note that this is the betweenness centrality contribution from just the source vertex.


deploy on netlify

📋 Explain your issue
i have a astro project and SSR enabled, now i want to deploy it using netlify but it is throwing an error i'm posting the error below you can find it
he following serverless functions failed to deploy: manifest.2a3eab85 4:45:35 PM: To deploy these functions successfully, change the function names to contain only alphanumeric characters, hyphens or underscores 4:45:34 PM: Deploy site                                                    4:45:34 PM: ──────────────────────────────────────────────────────────────── 4:45:34 PM:  4:45:34 PM: Starting to deploy site from 'dist' 4:45:34 PM: Calculating files to upload 4:45:35 PM: Section completed: deploying 4:45:35 PM:  4:45:35 PM: Configuration error                                            4:45:35 PM: ──────────────────────────────────────────────────────────────── 4:45:35 PM:  4:45:35 PM:   Error message 4:45:35 PM:   Deploy did not succeed: [PUT /sites/{site_id}/deploys/{deploy_id}][422] updateSiteDeploy default  &{Code:422 Message:Incorrect function names. Name should consist of only alphanumeric characters, hyphen & underscores} 4:45:35 PM:

Hey there @gnani1226! Looks like this is an issue for the main Astro repo, so I'll transfer it over!


feature: Text-selection of message content

In the React Native app, I miss the web app's feature of letting you select a word or phrase from a message in the message list, so I can:

Copy it to the clipboard
Look it up in the dictionary
Translate it into my language
[etc.; this feature is powered by the browser, so e.g. on Chrome I see 'Search Google for "[text]"']

If we wrap a message's contents in a SelectionArea widget, the text becomes selectable:

And I can copy it! (Though I don't get any other options like a dictionary lookup.)
In my screen recording, the interaction is started by a long-press, as is usual on iOS. I think we'll want to reserve the long-press gesture to open a "message action sheet", like in the React Native app. I don't think that has to block offering text selection, just that we should find a different way to start the interaction. How about a "select text" item in the message action sheet, which starts a selection session by selecting the whole message's contents? Then the user can move the selection handles where they want them.
At that point I think it would work OK for selecting a short word or phrase, although I should mention that a bunch of formatting is lost when I copy the text. Here's what went to the clipboard in that screen recording:

timabbott pushed 2 commits to branch main. Commits by alya (1) and drrosa (1).•   help: Document new user setting for configuring email visibility. (9ea3572017e)•   help: Update URL references to new "Configure email visibility" page. (2b9b0acaa4f)

So as a polish issue, we should see if we can change what goes to the clipboard, with information from the parsed Markdown, probably by consulting the widgets whose rendered text appears in the selection. We can re-Markdown links, put linebreaks where they clearly belong, etc.

The React Native app lets you copy the whole raw Markdown content of a message. That's a feature we should offer (perhaps as part of a "view source" UI), but it's not this feature exactly: it's not great when you want to copy just a word or short phrase from a long message, without bringing loads of other stuff into the clipboard that you don't want.

I think this is a useful feature and would be a good thing to look at at some point after the prototype phase.

This would also open the door to quote-and-replying just part of a message. That came up in a beta-feedback email to support@:

thank you for providing the new Mobile Application. I am a bit disappointed that one of the major missing feature, quoting part of a previous message had not been implemented yet.
In case I need to answer to a long message, I always need to open zulip in a browser.


Fix Carthage support.

Added in some missing file references that were causing the Carthage project to not build.

I forgot to update Carthage after I have changed project's structure 🙈
Thanks!

No problem!


Can this awesome script work on EXPO?

If so, are there any special instructions or set up?
Regards

I'd like to ask the same question :)

has anyone tried yet?
it working react native web is what i really seek.
i guess ill experiment


[MM-38679] Fix download notification title on Windows

Summary
The download notification title was using the raw view name instead of just the server name for the download notification title on Windows 10. Now it will use just the server name, like before.
Ticket Link
https://mattermost.atlassian.net/browse/MM-38679
Release Note
NONE

Cherry pick is scheduled.

Error trying doing the automated Cherry picking. Please do this manually

/cherry-pick release-5.0

Cherry pick is scheduled.


alpha_s Classification with VGG16Net for constant Q0={1,1.5,2,2.5}

using helper methods instead of original model for the integrity of the experiment including

compile_model
get_callbacks

storing each fold test data
loading all test data after folds
setting patience to 50 for more than 1M datasets

training with the constant Q0 and batch_size=128
test: Q0=2.5, batch_size=128


"The bot is not in a voice channel.  Use !summon to summon it to your voice channel." Error?

Hey Guys!
When I try 2 play some songs I always get the same Error:
"The bot is not in a voice channel.  Use !summon to summon it to your voice channel."
Console: http://prntscr.com/bm6p2o
And when I start the bot I get this Error:
http://prntscr.com/bm6ofy
I ran update_deps.bat but it didnt help me
Can anyone help me?
Greetz
Jonas

Fixed it for me: Replace the first line in requirements.txt with: discord.py[voice]
Greetz
Jonas

That didn't seem to fix it for me, I appear to still be getting the same error. Any specific line or dialogue you changed?

Hmmm...when you open your requirements.txt you will have at ur first line a github link. Change this with discord.py[voice]

Didn't seem to work at all, shame. I'll keep trying other things.

Did u run "update_deps.bat" after it?

Resolved. This is fixed in version 1.9.5_2. Update your bot, then update your dependencies.


How to support iOS?

As the AR.js examples on iOS, I am wondering how to make this project compatible?

You'll have to ask on the AR.js repository.


Lower priorityClassName on istio-cni-node

Fixes: https://github.com/istio/istio/issues/14327
This is a partial fix for https://github.com/istio/istio/issues/14327 to make sure istio-cni has a relatively lower pod priority than the "real" CNI while still having a relatively higher priority than the other pods. This mitigates the situation that istio-cni starts before CNI plugins and modify the CNI configuration file in a contentious way.

/ok-to-test

/cherry-pick release-1.4

@rlenglet: once the present PR merges, I will cherry-pick it on top of release-1.4 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.4

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/cherry-pick release-1.3

@rlenglet: once the present PR merges, I will cherry-pick it on top of release-1.3 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ruigulala: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gencheck_cni
6d82b3ef596edc28ca2e2cce852a5b2f3b6c53f6
link
/test gencheck_cni

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rlenglet: new pull request created: #210

In response to this:

/cherry-pick release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rlenglet: new pull request created: #211

In response to this:

/cherry-pick release-1.4

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


[WIP] 2280 Fix for resource listing by coverage

…ainer metadata object

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

METRIC
VALUE

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4595


Cannot enable group chat notifications

@gcthomas:matrix.org reported
The toggle to enable notifications in group chats goes back to off position as soon as you leave the settings via the back arrow. No notifications are received for group chats, but are for a one to one chat.
https://riot.im/bugreports/listing/2017-04-22/161521

I don't reproduce this issue so i put this issue as P2.
There is no error in the logs


Nag user about mixing Kotlin plugin versions in a multi-project build

Configuration injection in multi-project builds involving heterogeneous Kotlin version won't be supported and it's important the user is warned to correctly identify the problem (which might surface as a "ClassLoader constraint violation" or "Task not found").

Relates to #138

This is a general problem of the PluginManager - it only checks for class equality, but not if another class of the same name was loaded in another classloader already. We should add a warning there.


[BUG] Tooltip overlays the pop-up box

When I long press some content, then click the color button, and the Tooltip overlays the pop-up box.
Is there any solution can solve this problem?

I have the same problem

This is yet another issue with Flutter webview / platform view support. It seems that platform view overlay rendering takes priority over the Flutter overlay rendering, which is why the tooltip shows on top of the alert dialog. Unfortunately I cannot do anything about this, Flutter will have to fix this issue :(


Basemap Can't work well in pywin32

I writed a window Service using pywin32, In the Service , I use Basemap to draw a map of B,but it can't work.

the code is like above. the code in red block can work,but when it comes to the green block, the code can't go on , in other word , the code doesn't post a error message , so the procedure isn't killed. just like freeze.

the window Service written by Python is just like above.
but ,when i put the code as a Python Script,just like below:

it can work well.
I want my code for the window Service work well .  is there anyone can help me out?

I don't know much about windows services, but I will point out an
observation. The call to map_B.readshapefile(...) in your service code
will implicitly trigger a window creation via matplotlib. Depending on how
your install is done and other things, this means a GUI framework is
triggered. I don't know if that is allowed within a service. Perhaps if you
added something along the lines of:
import matplotlib
matplotlib.use('agg')

at the top of the script to force a non-interactive backend, maybe the hang
will go away?
On Tue, Sep 25, 2018 at 10:18 AM Athenaplot<EMAIL_ADDRESS>wrote:

I wirted a window Service using pywin32, In the Service , I use Basemap to
draw a map of beijing ,but it can't work.
[image:<PHONE_NUMBER> 1]
https://user-images.githubusercontent.com/31769682/46018883-78c96400-c10d-11e8-98b5-dbe56640b150.png
the code is like above. the code in red block can work,but when it comes
to the green block, the code can't go on , in other word , the code doesn't
post a error message , so the procedure isn't killed. just like freeze.
[image:<PHONE_NUMBER> 1]
https://user-images.githubusercontent.com/31769682/46019691-43257a80-c10f-11e8-8e7c-35d4689f9c5f.png
the window Service written by Python is just like above.
but ,when i put the code as a Python Script,just like below:
[image:<PHONE_NUMBER> 1]
https://user-images.githubusercontent.com/31769682/46020297-9ea43800-c110-11e8-89c1-1af2c0becb3b.png
it can work well.
is there anyone can help me out?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/matplotlib/basemap/issues/425, or mute the thread
https://github.com/notifications/unsubscribe-auth/AARy-F9R4jS12Q5QRBDhgxPBXVf8W436ks5uejsigaJpZM4W4u7A
.


Hedging using KNN

KNN is a fundamental machine learning approach that works with a database of categorized data. It may be used to categorize each form of investment in a database into high, moderate, and low profit potential groups.

Can I help you with this??

Can I help you with this??

Yeah.Can you please elaborate your idea

Hello,
I would like to contribute for this issue by collecting historical data,
websites: https://finance.yahoo.com/quote/^NSEI/history/
https://cafim.sssup.it/~giulio/other/alpha_vantage/
https://www.google.com/finance/?hl=en
I will preprocess the collected historical data, including cleaning, handling missing values, and scaling numerical features if needed. Then, I will train a KNN model using the preprocessed data to categorize investments into the specified profit potential groups
Looking forward to contributing to this project!
Best regards,
Divyanshi
GSSOC'24 contributor

I have already made a model with KNN before. I'm also thinking of making a model with DBSCAN and compare the results of both.

Hello, I would like to contribute for this issue by collecting historical data, websites: https://finance.yahoo.com/quote/^NSEI/history/ https://cafim.sssup.it/~giulio/other/alpha_vantage/ https://www.google.com/finance/?hl=en I will preprocess the collected historical data, including cleaning, handling missing values, and scaling numerical features if needed. Then, I will train a KNN model using the preprocessed data to categorize investments into the specified profit potential groups Looking forward to contributing to this project!
Best regards, Divyanshi GSSOC'24 contributor

Yes you can move forward

I have already made a model with KNN before. I'm also thinking of making a model with DBSCAN and compare the results of both.

You can make a new issue specifically mentioning DBSCAN

I want to work on this for GSSOC'24. Kindly assign it to me @Akshat111111

@Divyanshi1002 is already working on it

Hi @Akshat111111 ,
Thank you for assigning me this issue. I'm using a KNN model to predict the daily return, with the Open, Close, High, and Low prices as features.
I'm encountering some errors in the code. Could you please clarify the deadline for completing this task?

Hi @Akshat111111 ,
Thank you for assigning me this issue. I'm using a KNN model to predict the daily return, with the Open, Close, High, and Low prices as features.
I'm encountering some errors in the code. Could you please clarify the deadline for completing this task?

There is no such deadline,you can move at your own speed.Refer official documentation to avoid errors

hi @Akshat111111 . I am a student currently exploring and applying various ml algorithms. I want to contribute . kindly assign me this issue


Some Useful Polynomials and Other Series

Here are some useful functions from my vault.  Feel free to add or modify to your tastes any or all of them for future arithmoi releases.  If there is interest I have some other number theoretic codes which may be of broader interest and which I'll be happy to share once I've cleaned them up for general use.
This is my Bernoulli series.  I have checked that it produces the same results as the one in arithmoi, but not which is faster:
bernoullis =  [1,-1%2]++go (zipWith (\m pt -> map (% m) pt) [-3,-4..] $ map (init.init) $ drop 3 $ binomial)
  where
    go :: [[Rational]] -> [Rational]
    go (b:_:bs) = sum (zipWith (*) bernoullis b):0:go bs
    go _        = undefined

The following code generates lists of polynomials, each of which in turn is represented as a simple list of coefficients starting with the constant term coefficient:
chebyshevPolysFirst :: forall a. (Num a) => [[a]]
chebyshevPolysFirst = [1]:[0,1]:(zipWith (\t1 t2 -> zipWith (-) (0:map (2*) t1) (t2++[0,0])) (tail chebyshevPolysFirst) chebyshevPolysFirst)

chebyshevPolysSecond :: forall a. (Num a) => [[a]]
chebyshevPolysSecond = [1]:[0,2]:(zipWith (\t1 t2 -> zipWith (-) (0:map (2*) t1) (t2++[0,0])) (tail chebyshevPolysSecond) chebyshevPolysSecond)

legendrePolys :: [[Rational]]
legendrePolys = [1]:[0,1]:(zipWith3 (\n p1 p2 -> zipWith (-) (0:map ((2*n-1)%n*) p1) ((map ((n-1)%n*) p2)++[0,0])) [2..] (tail legendrePolys) legendrePolys)

hermitePolysProb :: forall a. (Num a) => [[a]]
hermitePolysProb = [1]:[0,1]:(zipWith3 (\n h1 h2 -> zipWith (-) (0:h1) ((map (fromIntegral n*) h2)++[0,0])) [1..] (tail hermitePolysProb) hermitePolysProb)

hermitePolysPhysics :: forall a. (Num a) => [[a]]
hermitePolysPhysics = [1]:[0,2]:(zipWith3 (\n h1 h2 -> zipWith (-) (0:map (2*) h1) ((map ((2*fromIntegral n)*) h2)++[0,0])) [1..] (tail hermitePolysPhysics) hermitePolysPhysics)

besselPolys :: forall a. (Num a) => [[a]]
besselPolys = [1]:[1,1]:(zipWith3 (\n y1 y2 -> zipWith (+) (0:map ((2*fromIntegral n-1)*) y1) (y2++[0,0])) [2..] (tail besselPolys) besselPolys)

To evaluate any of these polynomials at a point, the following function is helpful:
polyEval p x = sum $ zipWith (*) p $ iterate (x*) 1

So, for example, the evaluate the 10th Chebyshev Polynomial of the First Kind at 5: polyEval (chevyshevPolysFirst!!10) 5 ==<PHONE_NUMBER>
The following offers the Faulhaber polynomial of degree p:
faulhaberPoly p = zipWith (*) ((0:) $ reverse $ take (p+1) $ bernoullis) $ map (% (fromIntegral p+1)) $ zipWith (*) (iterate negate (if odd p then 1 else -1)) $ binomials !! (fromIntegral p+1)

So, for example, to evaluate the sum of the 18th power of the first million integers:
sum [i^18|i<-[1..1000000]] ==<PHONE_NUMBER>8868421052624778947368455052631578814768421052999912280701083128822055851844611528460355137844666500000

The advantage of this summation formula is that it takes time on the order of the exponent, rather than length of the original power sum.  So even gigantic sums can be calculated instantly.  For example, the sum of the 97th power of the first 10^18 integers (a 1,747 digit number) can be evaluated with numerator (polyEval (faulhaberPoly 97) 10^18) within milliseconds, even without compiling.
[A better implementation might generate an infinite list of polynomials (like the *Polys functions) and factor out the numerator in order to avoid needless ratio reduction, but this version is plenty fast for all the purposes I needed it.]
Finally, the following code evaluates the general hypergeometric function:
hypergeometric as bs x = sum $ zipWith4 (\ak bk xk fk -> ak/bk*xk*(1%fk)) aks bks xks factorial
  where
    xks = iterate (x*) 1
    aks = takeWhile (0/=) $ scanl (*) 1 $ map product $ iterate (map (1+)) as
    bks = scanl (*) 1 $ map product $ iterate (map (1+)) bs

Here are a few more obvious ones I omitted earlier:
stirlingsFirst = scanl (\s n -> zipWith (-) (0:s) (map (n*) s++[0])) [1] [0..]

stirlingsSecond :: forall a. Integral a => [[a]]
stirlingsSecond = iterate (\s -> zipWith (+) (0:s) (zipWith (*) [0..] s++[0])) [1]

bells :: forall a. Integral a => [a]
bells = map sum stirlingsSecond

catalans :: forall a. Integral a => [a]
catalans = scanl (\c n -> divy ((4*n-2)*c) (n+1)) 1 [1..]

AFAIU these orthogonal polynomials are linearly recurrent. It looks suitable to define
newtype Polynomial a = Polynomial [a]

and put their definitions with comments about applications in number theory (or possibly combinatorics) somewhere near M.NT.Recurrencies.Linear.
Can Chebyshev polynomial be expressed in terms of generalLucas?

Yep, Chebyshev polynomials of both kinds can be expressed in terms of generalLucas, if we have an efficient Num instance for polynomials.
module Lib where

import Math.NumberTheory.Recurrencies.Linear

newtype Poly a = Poly [a]
  deriving (Eq, Show)

instance Num a => Num (Poly a) where
  Poly as + Poly bs = Poly $ zipWith (+) as' bs'
    where
      (as', bs') = if length as <= length bs
                    then (as ++ repeat 0, bs)
                    else (as, bs ++ repeat 0)
  negate (Poly as) = Poly $ map negate as
  abs = id
  signum _ = 1
  fromInteger n = Poly [fromInteger n]

  -- TODO write faster polynomial multiplication
  Poly as * Poly bs = Poly cs
    where
      la = length as - 1
      lb = length bs - 1
      cs = map (\ic -> sum [ as !! ia * bs !! ib | ia <- [0..la], ib <- [0..lb], ia + ib == ic ]) [0 .. la + lb]

-------------------------------------------------------------------------------
-- Manual definition.

chebyshevPolysFirst :: Num a => [Poly a]
chebyshevPolysFirst = Poly [1] : Poly [0,1] : (zipWith (\(Poly t1) (Poly t2) -> Poly $ zipWith (-) (0:map (2*) t1) (t2++[0,0])) (tail chebyshevPolysFirst) chebyshevPolysFirst)

chebyshevPolysSecond :: Num a => [Poly a]
chebyshevPolysSecond = Poly [1] : Poly [0,2] : (zipWith (\(Poly t1) (Poly t2) -> Poly $ zipWith (-) (0:map (2*) t1) (t2++[0,0])) (tail chebyshevPolysSecond) chebyshevPolysSecond)

-------------------------------------------------------------------------------
-- Via 'generalLucas'.

-- p = [0, 2], q = [1], ch1 = v / 2
chebyshevPolyFirst :: Integral a => Int -> Poly a
chebyshevPolyFirst n = Poly $ map (`quot` 2) v
  where
    (_, _, Poly v, _) = generalLucas (Poly [0, 2]) (Poly [1]) n

-- p = [0, 2], q = [1], ch2 = u * x + v / 2
chebyshevPolySecond :: Integral a => Int -> Poly a
chebyshevPolySecond n = Poly [0, 1] * u + Poly (map (`quot` 2) v)
  where
    (u, _, Poly v, _) = generalLucas (Poly [0, 2]) (Poly [1]) n

This should be a drop-in replacement for Poly which is more efficient for multiplications and additions, avoids keeping or generating leading null-terms, has a few other features, and which I happened to have laying around.
newtype Polynomial a = Polynomial [a]

instance Eq a => Eq (Polynomial a) where
  (Polynomial a) == (Polynomial b) = a == b

instance Ord a => Ord (Polynomial a) where
  compare (Polynomial a) (Polynomial b) = compare a b

instance (Ord a, Eq a, Num a, Show a) => Show (Polynomial a) where
  show (Polynomial a)
    | null r        = "0"
    | head r == '+' = tail r
    | otherwise     = r
    where
      r = concatMap (uncurry go) $ zip [0..] a

      go 0 c
        | c == 0    = ""
        | otherwise = show c
      go 1 c
        | c == -1   = "-x"
        | c < 0     = show c++"x"
        | c == 1    = "+x"
        | c > 0     = "+"++show c++"x"
        | otherwise = ""
      go p c
        | c == -1   = "-x^"++show p
        | c < 0     = show c++"x^"++show p
        | c ==  1   = "+x^"++show p
        | c > 0     = "+"++show c++"x^"++show p
        | otherwise = ""

instance (Num a, Eq a) => Num (Polynomial a) where
  (Polynomial a) + (Polynomial b) = Polynomial $ go a b
    where
      go (ah:at) (bh:bt)
        | ch == 0 && null ct = []
        | otherwise          = ch:ct
        where
          ch = ah + bh
          ct = go at bt

      go a@(_:_) _ = a
      go _       b = b

  (Polynomial as) * (Polynomial bs) = foldr (+) 0 $ [Polynomial $ ss ++ map (a*) bs|(a,ss)<-zip as $ iterate (0:) []]

  negate a = Polynomial { unPoly = map negate (unPoly a) }

  abs a = Polynomial { unPoly = map abs (unPoly a) }

  signum a = Polynomial { unPoly = map signum (unPoly a) }

  fromInteger i
    | i == 0    = Polynomial { unPoly = [] }
    | otherwise = Polynomial { unPoly = [fromInteger i] }

Nice!

I grabbed Faulhaber polynomials and merged them into arithmoi. @CarlEdman  thanks for contributions!
At the moment I am not in favor of immediate inclusion of other polynomials, discussed above, due to their relatively low significance for number theory.


Allow absolute paths in public_folder

Migrated from #1257 for discussion.

cool.  fwiw i am still blocked and would love to see this merged.  let me know if/when i can help.

I'm stuck on this too. Our docs are hosted on a sub folder docs.example.com/developer File uploads should be a relative path to /developer. We can include /developer the public_folder setting but then paths are broken for anyone using locally which isn't on a sub folder.

Agree on this one, we would like to have a staging site with Netlify on GitLab pages while the final public site will be on its own domain.
My take so far is that I have replaced ImagePreview with my own implementation that changes the url. This works for preview but I would like to also change the url for the image selector control itself and for images in markdown. A general public absolute url prefix (and suffix), pattern or formatting function would be really helpful.
The code I add to my index.html if anyone can use is below. I ended up creating urls directly to the repo so that I don't have to wait for having the image published to the GitLab pages
    const CustomImagePreview = createClass({
      render: function() {

        var value = this.props.value;
        var getAsset = this.props.getAsset;
        var field = this.props.field;
        var prefix = 'https://gitlab.com/<mygroup>/<myreponame>/raw/master/src/website/static';
        var suffix = '?inline=false';

        var uri = getAsset(value).public_path;
        if(prefix && uri && uri.substring && uri.substring(0, 1) === '/') {
          uri = prefix + uri + suffix;
        }

        var style = { maxWidth: '100%', height: 'auto' };
        return uri ? h('div', { style: style },
          h('img', { src: uri, role: 'presentation' })
        ) : null;
      }
    });

    CMS.registerWidget("image", "image", CustomImagePreview);

Maybe this will actually be solved by https://github.com/netlify/netlify-cms/issues/990

That will help with image handling in the CMS, but image path output will still be prepended with public_folder, which will still be absolute.

@erezrokah how is this impacted by the updates in our image handling?

I'm not sure I understand the use case for absolute paths in public_folder. If the use case was just to fix image previews in the CMS, due to recent changes the CMS loads images only using the API and not from the published site.
The only place the public_folder is used is when populating widgets data to be later used by site generators to locate the image in the repository.
Regardless, I've tested setting an absolute URL as a public_folder and it works.


TypeError: undefined is not an object (evaluating 'this._nativeTag')

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Please provide a clear and concise description of what the bug is. Include screenshots if needed.
Please test using the latest React Native release to make sure your issue has not already been fixed: https://reactnative.dev/docs/upgrading.html
React Native version:
System:
OS: macOS 10.15.4
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 2.52 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.15.0 - ~/.nvm/versions/node/v8.15.0/bin/node
Yarn: Not Found
npm: 6.4.1 - ~/.nvm/versions/node/v8.15.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 24, 26, 27, 28, 29
Build Tools: 26.0.2, 27.0.1, 27.0.3, 28.0.3, 29.0.2
System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 3.5 AI-191.8<IP_ADDRESS>10548
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_191 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

Expected Results
Describe what you expected to happen.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

l


Wild Pokemon Encounter Rates Fix

Status

[ ] Ready
[x ] In development
[ ] Hold

Description

The current implementation of Pokemon Encounter rates was global for the whole map. This is incorrect based on reading this post on pokemondb and various other sources: https://pokemondb.net/pokebase/254583/information-encounter-various-locations-description-carefully.
I edited PlayerMovement to correct interact with my changes in MapSettings, which was mainly to move Pokemon Rarity from being Map wide to Pokemon specific. If higher encounter rates are desired(even above 100%, no checks for that), just add more to the encounter list. I added comments to the enumeration of the Pokemon Rarirty to help quickly calculate rarity.
I did most of my prototyping in Overworld N and have left what I did there. This could be VERY useful in testing Pokemon Battle Sprites Front/Backs quickly.

Testing

There are some debugging statements that may be viewed to verify encounter rates are being added correctly for different times of day and/or different levels of rarity.
Concerns, notes, etc.

Related issues

Related PRs

Just do the first commit please - I am still learning Github and accidently merged the newest update with the request but that also included some stuff I was working on.

Closed because of inactivity and incompatibility. If you'd like to recommit your changes, please pull the latest changes and create another pull request. It will be accepted asap.


fix: Debounce search to stop polluting history API on keyup

Previously, typing in the searchbar fired the search function on every key event, which filtered the search results and updated the URL. This PR debounces the search function using 1000ms to ensure that the history API doesn't get polluted with extraneous stuff.
Resolves: #314

@spmcbride1201 Would it be feasible to skip the delay if user presses return?

It should be. Let me take a look.


File with key not detected as leak

Describe the bug
It seems that gitleaks does not detect files according to the following rule:
[[rules]]
	description = "Files with keys and credentials"
	files = '''(?i)(id_rsa|passwd|id_rsa.pub|pgpass|pem|key|shadow)'''

Instead it reports that this rule "does not define any actionable data":
time="2021-06-03T10:09:25Z" level=warning msg="Rule Files with keys and credentials does not define any actionable data"
time="2021-06-03T10:09:25Z" level=info msg="scan time: 2 milliseconds 420 microseconds"
time="2021-06-03T10:09:25Z" level=info msg="No leaks found"

I'm not sure if it's a bug or misconfiguration.
To Reproduce

Create an empty directory:$ mkdir /tmp/my-repo
$ cd /tmp/my-repo

Create SSH key pair:$ ssh-keygen -t rsa -f /tmp/my-repo/id_rsa

Download example config leaky-repo.toml:$ curl -sO https://raw.githubusercontent.com/zricethezav/gitleaks/master/examples/leaky-repo.toml
$ ls /tmp/my-repo
id_rsa  id_rsa.pub  leaky-repo.toml

Run gitleaks:$ docker run --rm -v ${PWD}:/my-repo zricethezav/gitleaks:latest --path="/my-repo" --no-git --config-path="/my-repo/leaky-repo.toml" -v
time="2021-06-03T10:09:25Z" level=warning msg="Rule Files with keys and credentials does not define any actionable data"
time="2021-06-03T10:09:25Z" level=info msg="scan time: 2 milliseconds 420 microseconds"
time="2021-06-03T10:09:25Z" level=info msg="No leaks found"

Expected behavior
I would expect gitleaks to detect the file id_rsa as a leak.
Basic Info (please complete the following information):

OS: Ubuntu 18.04.5 LTS
Gitleaks Version: v7.5.0

cc @zricethezav

Hello @Normo !
I created a key pair and ran gitleaks and it has found it.
What I did was to create a key from scratch with just ssh-keygen.
Named it test-gitleaks and of course, it generated test-gitleaks and test-gitleaks.pub  files.
In that very same folder I ran gitleaks --no-git --path=. --verbose and of course, it found a leak, which is the key I generated before.
I have the same gitleaks version, installed with brew in my case.
I ran gitleaks as a docker:
docker run -v ${PWD}:/my-repo zricethezav/gitleaks:latest --path="/my-repo" --no-git --verbose and the output is the same.
I think the only difference is that I don't have a custom rules file, since gitleaks by default already detects private keys.
Can you try to run it without your rules?
Thank you!

There is a typo in example. It should be file instead of files in configuration example.
[[rules]]
	description = "Files with keys and credentials"
	file = '''(?i)(id_rsa|passwd|id_rsa.pub|pgpass|pem|key|shadow)'''

@twierzchowski @w0rmr1d3r thanks for catching this 😄


Allow ? for method suffix?

I've not decided whether to allow ? as method suffix (like Ruby) or not.
If allowed, the method must return Bool.

Just some code that shows that it might actually be confusing:
class A
	def full? -> bool
		true
	end

	def empty -> Result<Int>
		# Not sure if this is the syntax...
		Result.ok(5)
	end
end

class B
	def use_a -> Result<Int>
		a = A.new

		# ...
		# Imagine this being a larger function body, not only like 5 lines

		b = a.full? # Holds bool
		c = a.empty? # Holds

		# More code
		Result.ok(1)
	end
end

Depending on how "far away" the code that uses both these syntax is, it might be hard to understand properly. If one already forgot the context (a method returning Result) they might assume that both return a boolean.

Good point. Having two different ? (no, three, because there is ? :) seems too confusing.
So the options are:

Add method name suffix ? only (= Ruby)
Add ? for Result only
Add method name suffix ? + another facility for Result

Rust had try! macro before ? is introduced.
Scala's for expression can be used to simplify computation with Either, Future, etc.
Go2 may have something for this problem
etc.

It depends on whether you want to stick more to Ruby or Rust. If it's Ruby, I'd say the method suffix is probably the right choice. If it's Rust, the ? operator should stick.
Go2 looks definitely better than Go(1) and the pure boilerplate of error handling was why I left the language untouched after I tried it out a couple of times. Although for me, it is still too verbose. I think Rust does it better while still being able to keep the same "power level" due to mapping of error types.
Swift has the guard keyword: https://stackoverflow.com/questions/30791488/swifts-guard-keyword
Maybe something like this? Fells neither Rust-y nor Ruby-y (:smile:) but might work:
class A
  def returns_error -> Result<Int, ()>
    Result.ok(5)
  end

  def early_return_if_error -> Result<Int, ()>
    guard v = returns_error
    Result.ok(v * 2)
  end
end

I would like to suggest expr.try (pick any keyword for try), which works same as expr? and is parsed same as expr.await.
Having both ident? and expr? is technically okay. To do so, compiler implementation needs some effort. A possible way is that lexer reads ident? as ident+operator and compiler combines them later if ident doesn't exist. (I don't think the effort and language complexity are worthwhile for ? operator.)

res = returns_error.try. Looks good to me!