Run Sonnet on Google Cloud ML

Hi.
More than an issue, my question is if there is some easy way to run sonnet on Google Cloud Machine Learning,  i have a code i would like to test on the cloud but is written using Sonnet and i get an import error trying to run it.
Maybe using the setup.py but i'm new building packages and nothing comes to my mind.
If this isn't the place for this question, I apologize.
Any help on this matter is really appreciated.
Thanks

FYI.
Google Cloud ML Engine already has an optimized and GPU-enabled TensorFlow version installed.  you could remove the tensorflow line from setup.py to make it work,or the GPU not being used if you download the CPU-only tensorflow package from PyPI and shadowing the existing TensorFlow installation.

@Shuolongbj  Hi, i make Sonnet work on google Cloud after a while, i did it by compiling the library on my machine, upload the wheel file to Google Cloud Storage, and specifying the --package option when uploading the job.
After a while I came to realize that the trainign was going slow, so I started to think that the gpu was not being used. what i think,  needs to be done is recompiling the sonnet library against a GPU supported Tensorflow, and it maybe work fine in that case.
Thanks for your answer. :)

Hi @afhuertass,
Sonnet should be using the version of tensorflow you installed with pip.
Do you get only CPU devices when you run a session with device placement being logged?
(see here)
And do you get GPU devices when you run tensorflow ops without Sonnet?

@afhuertass Can you try installing the pip package (either 'dm-sonnet' or 'dm-sonnet-gpu') ?

Closed due to inactivity. Feel free to reopen the bug if you have any problem installing from pip.


Edit: ABEMA Anime

Channel ID (required)
ABEMAAnime.jp
Channel Name
No response
Alternative Names
No response
Network
No response
Owners
No response
Country
No response
Subdivision
No response
City
No response
Broadcast Area
No response
Languages
No response
Categories
No response
NSFW
None
Launched
No response
Closed
No response
Replaced By
No response
Website
No response
Logo
https://i.ibb.co/NFvSqmK/logo.png
Notes
No response

i rforgot to mention, logo comes from abema tv website
https://abema.tv/


Is it possible to “simulate” hot updates from within the client code?

I know it's a weird request but I want to be able to simulate a hot update of a particular module from within the app. The desired effect is to have Webpack re-execute the same code it used to load the module, and to propagate this as if this was a hot update.
The purpose is to experiment with force-wiping Stores' state and replaying Actions on them for time travel.

hmm... there is no API for this.
a) You could inject a update if you expose such a API with a plugin.
b) You could reimplement it on "user level". All information is available to modules: require.cache (list of all installed module objects), module.parents module.children, module.hot._acceptedDependencies module.hot._selfAccepted etc.

These are good starting points, thank you! I'll close this for now, and will post here if I figure this out, or if I have additional questions.


Fix a few typos

Fixes a few typos. Hope this helps, snoopycrimecop :)

Empty PR description. Please add a short summary of the PR scope and some testing instructions.

Looks good on staging, thanks.


Operator gets stuck when deleting the installation on kubernetes

Hey guys,
I'm have some issues configuring my clickhouse instances on kubernetes. I've set my operator when I apply it it goes perfectly fine and everything is created with success. But when I try to delete the installation (kubectl delete -n dev-clickhouse  -f .\clickhouse-operator.yaml) it gets stuck somewhere:

Even though everything seems deleted on the cluster it sure ain't because if I try to run again the installation, the operator as before runs smoothly but when i try to apply my clickhouse server instance I get an error:

I've checked my CRDs, but there's nothing there regarding the operator installation and I've even tried to run kubectl patch crd/clickhouseinstallationtemplates.clickhouse.altinity.com -p '{"metadata":{"finalizers":[]}}' --type=merge to see if there was any finalizer stuck but it says that there is no changes. I've also tried deleting the namespace but I still get the same problem as expected.
Any help would be gladly appreciated.
Thanks in advance,
Filipe

I can't believe this is still an issue. This has been HOURS in the process of researching for me. I finally found the solution in a different problem answer. You need to do the following:
To solve this problem if you failed and deleted the CRD (thanks to! @hodgesrm)

There's a problem with stuck finalizers that can cause old CHI installations to hang. The sequence of operations looks like this.

You delete the existing ClickHouse operator using kubectl delete -f operator-installation.yaml with running CHI clusters.
You then drop the namespace where the CHI clusters are running, e.g., kubectl delete ns my-namespace
This hangs. You run kubectl get ns my-namespace -o yaml and you'll see a message like the following:
'message': Some content in the namespace has finalizers remaining: finalizer.clickhouseinstallation.altinity.com

That means the CHI can't be deleted because its finalizer was deleted out from under it.

The fix is to figure out the chi name which should still be visible and edit it to remove the finalizer reference.

kubectl -n my-namespace get chi
kubectl -n my-namespace edit clickhouseinstallations.clickhouse.altinity.com my-clickhouse-cluster
Remove the finalizer from the spec, save it, and everything will delete properly.

I didn't have CHI, but I was able to get this to work by running
kubectl -n my-namespace edit clickhouseinstallations.clickhouse.altinity.com
and deleting the line under finalizers.
Clickhouse team, please fix this.

Hi @denisok,
Thanks for responding so quickly. In my case, this was bundled with SigNoz. I installed everything into the same namespace, and this hang occurred when attempting to delete the namespace.
Initially, I thought I had to give the process time to finish, so I had to start rotating and installing things into new namespaces. I soon had a dozen hanging namespaces at the same point. These namespaces didn't have anything associated with them at all. All of the resources had been purged except the ClickHouse Operator, which caused the namespace deletion to hang in the "Terminating" state indefinitely.
For the sake of this conversation, I just ran with a default helm installation of SigNoz into a namespace called testchi.
kubectl create ns testchi
helm --namespace testchi install signoz signoz/signoz
After waiting for all of the pods to successfully start up, I tore down the whole namespace:
kubectl delete ns testchi
The namespace perpetually hangs in the "Terminating" state again.
Running the command:
kubectl api-resources --verbs=list --namespaced -o name \\n  | xargs -n 1 kubectl get --show-kind --ignore-not-found -n testchi
Returns the output:
NAME                                                               CLUSTERS   HOSTS   STATUS      HOSTS-COMPLETED   AGE
clickhouseinstallation.clickhouse.altinity.com/signoz-clickhouse   1          1       Completed                     11m20s

This is the state it will stay stuck in indefinitely. The finalizer never finalizes and holds the namespace deletion inappropriately indefinitely.
If I edit the namespace resource, I see the following information:
apiVersion: v1
kind: Namespace
metadata:
  name: testchi
  uid: 8ddb5974-7eeb-4131-b960-09bd6bc1dad4
  resourceVersion: '166103303'
  creationTimestamp: '2023-08-10T18:07:19Z'
  deletionTimestamp: '2023-08-10T18:10:12Z'
  labels:
    kubernetes.io/metadata.name: testchi
  managedFields:
    - manager: kubectl-create
      operation: Update
      apiVersion: v1
      time: '2023-08-10T18:07:19Z'
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:labels:
            .: {}
            f:kubernetes.io/metadata.name: {}
    - manager: kube-controller-manager
      operation: Update
      apiVersion: v1
      time: '2023-08-10T18:10:30Z'
      fieldsType: FieldsV1
      fieldsV1:
        f:status:
          f:conditions:
            .: {}
            k:{"type":"NamespaceContentRemaining"}:
              .: {}
              f:lastTransitionTime: {}
              f:message: {}
              f:reason: {}
              f:status: {}
              f:type: {}
            k:{"type":"NamespaceDeletionContentFailure"}:
              .: {}
              f:lastTransitionTime: {}
              f:message: {}
              f:reason: {}
              f:status: {}
              f:type: {}
            k:{"type":"NamespaceDeletionDiscoveryFailure"}:
              .: {}
              f:lastTransitionTime: {}
              f:message: {}
              f:reason: {}
              f:status: {}
              f:type: {}
            k:{"type":"NamespaceDeletionGroupVersionParsingFailure"}:
              .: {}
              f:lastTransitionTime: {}
              f:message: {}
              f:reason: {}
              f:status: {}
              f:type: {}
            k:{"type":"NamespaceFinalizersRemaining"}:
              .: {}
              f:lastTransitionTime: {}
              f:message: {}
              f:reason: {}
              f:status: {}
              f:type: {}
      subresource: status
  selfLink: /api/v1/namespaces/testchi
status:
  phase: Terminating
  conditions:
    - type: NamespaceDeletionDiscoveryFailure
      status: 'False'
      lastTransitionTime: '2023-08-10T18:10:19Z'
      reason: ResourcesDiscovered
      message: All resources successfully discovered
    - type: NamespaceDeletionGroupVersionParsingFailure
      status: 'False'
      lastTransitionTime: '2023-08-10T18:10:19Z'
      reason: ParsedGroupVersions
      message: All legacy kube types successfully parsed
    - type: NamespaceDeletionContentFailure
      status: 'False'
      lastTransitionTime: '2023-08-10T18:10:19Z'
      reason: ContentDeleted
      message: All content successfully deleted, may be waiting on finalization
    - type: NamespaceContentRemaining
      status: 'True'
      lastTransitionTime: '2023-08-10T18:10:19Z'
      reason: SomeResourcesRemain
      message: >-
        Some resources are remaining:
        clickhouseinstallations.clickhouse.altinity.com has 1 resource instances
    - type: NamespaceFinalizersRemaining
      status: 'True'
      lastTransitionTime: '2023-08-10T18:10:19Z'
      reason: SomeFinalizersRemain
      message: >-
        Some content in the namespace has finalizers remaining:
        finalizer.clickhouseinstallation.altinity.com in 1 resource instances
spec:
  finalizers:
    - kubernetes

The way to fix this issue is to run:
kubectl -n my-namespace edit clickhouseinstallations.clickhouse.altinity.com
And simply delete the 2 lines under the finalizers sections. The namespace then successfully terminates.

Hi @mmangione,
so as I understand it SigNoz chart has ClickHouse as the dependency that installs the operator and creates a cluster.
I think what you would like to do is to do helm uninstall because there are too many dependencies and I suppose that command should delete all resources in the right order, so you wouldn't have CHI cluster that would exist. After that, you can delete the namespace.
There are still some caveats: https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#some-caveats-and-explanations
Please also check the namespace where CHI resource was created and operator deployment is running.
I don't see so far an issue with the operator or its resources. During deletion of the namespace, you probably terminate the controller (chi operator deployment) and still have CHI cluster that depends on it so it leaves that finalizer hanging forever.
So either deploy the operator in a different namespace and CHI cluster in another (which is unsupported by SigNoz helm), or delete CHI deployments first - either by kubectl delete of helm uninstall before deleting the namespace.
Thanks,
Denys

Hi @denisok,
Thanks for your suggestion. I tried both of those and they both resulted the same hanging process. Exact same messages and everything. Is there somewhere I can see what the finalizer is waiting on?
Thank you,
Micah

Thanks @mmangione  You helped me a lot, I have been trying to fix this deletion of namespace due to SigNoz since last 6 hours.

@pishangujeniya Maintainer of SigNoz here 👋
To cleanly uninstall SigNoz and signoz–managed ClickHouse:
helm -n platform uninstall "my-release"

kubectl -n platform patch \
  clickhouseinstallations.clickhouse.altinity.com/my-release-clickhouse \
  -p '{"metadata":{"finalizers":[]}}' --type=merge

Detailed instructions can be found here: https://signoz.io/docs/operate/kubernetes/#uninstall-signoz-cluster


There should be a documented method for setting RTS options

Performance, memory comsuption etc. in Haskell often require particular options for the runtime system. With compiled programs as well as GHCi this can just be done from the command-line, like
ghci +RTS -M2g -N4

But ihaskell is generally not invoked from the command line but automatically by the jupyter process.
How can you set specific RTS options for the Haskell runtime – ideally on a per-notebook basis, alternatively just globally or for an entire jupyter process?

Fixed in #714.
Thanks everybody!


_FORTIFY_SOURCE guidance confuses people, should suggest undefining with more care (as order matters)

Wireshark recently had an MR at https://gitlab.com/wireshark/wireshark/-/merge_requests/16860 that did -D_FORTIFY_SOURCE=3 -U_FORTIFY_SOURCE, possibly with the intent being to sort the options alphabetically, but the order matters.
The documentation at https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++#tldr-what-compiler-options-should-i-use should make clear the order matters and that it must be -U_FORTIFY_SOURCE and then -D_FORTIFY_SOURCE=3.

See also https://github.com/ossf/wg-best-practices-os-developers/issues/272.

Cross-referencing against GCC bug 40960: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40960

The link to the POSIX specifications in GCC bug 40960 is broken as the name of the C compilation system utility is periodically changed. The current link (as of POSIX.1-2024) is https://pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html
From a practical perspective, neither GCC not Clang conform to POSIX in this regard and that seems highly unlikely to change.

Frankly, I think the POSIX specification is broken in this situation, especially since gcc and clang don't work that way (and I believe they never have).
Some text like this:
We recommend using -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 in this order. We recommend using _FORTIFY_SOURCE level 3, the highest level, to maximize fortification. We had considered recommending a higher level (so higher levels would be automatically incorporated), but this leads to warnings, and those warnings halt the compilation if warnings are considered errors. We recommend undefining _FORTIFY_SOURCE first, because setting _FORTIFY_SOURCE without undefining it first can also yield a warning. The POSIX specification for c17 requires that defining has a lower precedence than undefining, so strictly speaking this approach doesn't comply with POSIX. However, in practice neither gcc nor clang consider defining lower precedence when called with their respective names (they use left-to-right order), and there is no practical alternative for ensuring that the definition is used.

The link to the POSIX specifications in GCC bug 40960 is broken as the name of the C compilation system utility is periodically changed. The current link (as of POSIX.1-2024) is pubs.opengroup.org/onlinepubs/9799919799/utilities/c17.html

Thanks, I crossposted this back to the GCC bug.


Delete Ihr/ Ihres/ Ihnen

no "Ihr"/"Ihren" -> because its a family members certificate (please see also the figma screens COVID19_Master_2.18 – Figma)
--> https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-12656

Closed
Changes for 2.22


PhiX spike-in

Hi,
Thanks for developing fastp! I was wondering if it detects and removes PhiX spike-in by default?
Thanks in advance!

@ignadb: How did you obtain the FASTQ files? If you use bcl2fastq to convert your raw Illumina data, PhiX reads should end up in the 'undertermined; fractions as they don't have a sample barcode used for demultiplexing. Thus, none of the actual samples should contain any PhiX. Or do you run the untetermine dreads through fastp?

@mschilli87 Thanks for your comment. Perhaps I am overcautious but I always check for Phix contamination.

@mschilli87 Thanks for your comment. Perhaps I am overcautious but I always check for Phix contamination.

That's right. Dot worry about PhiX reads, which are removed by bcl2fastq

This is an important comment that should not be ignored. PhiX can end up in the pre-processed reads for a variety of reasons. It would be great if a PhiX decontamination feature were added.

Removing PhiX is especially important for reads that are used in de novo assemblies. Which is also when one will likely be using a trimming/QC tool like fastp.
I gather the design philosophy of fastp currently is "Set good defaults so users don't have to." Removing PhiX without users having to think about it is a good idea.
In a perfect world, bcl2fastq should remove all PhiX, but a small fraction of PhiX reads get assigned to samples. In my testing, it's usually between 0-100 reads per multiplexed sample, but I have had a few examples of several thousand reads mapping to PhiX. It's more of a 'better safe than sorry' situation.
I'll also stress that NCBI will not take assemblies that have detected PhiX contamination - those contigs/scaffolds that have PhiX must be removed prior to acceptance into the NCBI assembly database.


GEOMESA-948 Fixing renaming transformations

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>

looks good. @elahrvivaz does this help with https://github.com/locationtech/geomesa/pull/712 ?

@jahhulbert-ccri yeah, i think this will allow 712 to work.

Tested and worked for me! Fixed #712 as well.

@jdk2pq i'll merge this one in...then you can rebase/merge #712

8ab174450c37a3b63362805b8f4831e8a19bf3cc


LoggingRule.ToString() produces any empty list of levels

Bug

4.3.3

Current result: LoggingRule.ToString() produces any empty list of levels, UNLESS logLevels[0] == true.

Expected result: should list all selected levels.

I guess the culprit is NLog/src/NLog/Config/LoggingRule.cs:267
               if (this.logLevels[0])
I'm an utter github-n00b, so I don't know how to go about fixing this myself yet, sorry.

Can you give a C# example of a LoggingRule instance where it goes wrong?

Sure can:
foreach (var rule in LogManager.Configuration.LoggingRules) Console.WriteLine("rule: {0}", rule);
The corresponding part of my NLog.config is:
 <rules>     <logger name="*" minlevel="Info" writeTo="logfile" />   </rules>

Thanks!
Found and fixed the bug! Will be released in 4.3.4!


No motion detection when internal SSL is used

Describe the bug
After having integration running for some time I've noticed errors in log regarding the connectivity and rising CPU usage - which has dropped after rebooting the cameras (2 pcs).
Usually before updating the library (so before the github-name migration in HACS, previously I had them in YAML) - CPU stood at max 9% for weeks. Now it's slowly rising, so could be some issue inside the code.
To Reproduce
Currently noticed, will look at the issue further
Screenshots
Marked yellow the moment of cameras reboot:

(high CPU at night is backup, ignore it).

Environment:
Please provide useful information about your environment, like:

Home Assistant version: latest (2020.12)
Reolink camera model: 2x RLC 520 PoE
Camera firmware number: v<IP_ADDRESS>_20071012

Additional context
Happenes more often for one out of two cameras - the one that had auto reboot disabled.
Reolink client don't have any issues and can connect without problem so it's no connectivity issue (LAN cable from HA to camera all the time)
Will add new findings in comment to this issue if any.

First finding - they are on old firmware...
I was sure that I've upgraded them recently. I did right now to latest available, will see if there are improvements.

Ok, so after update - no further errors regarding timeout's/connectivity problems.
What persist is CPU problem:

CPU rising didn't happen before (with the 'YAML' way integration).

Thanks for your analysis. I think it's not sure the integration way leading to higher CPU usage in your case. There also has changed a lot in the integration. If I look at my HA supervisor, CPU is only 1.2% with two camera's connected. Is everything working well at least? Motion detection working?

@fwestenberg thank you for your question - I've checked and indeed, there may be still problem :-) as motion detection didn't show any motion since 24hours and i.e. IR-lights looks like:

every 1 hour and 1 minute there's an second of 'unavailable'
Shall I re-add those cameras or dig something further?
(Motion detection were working previously of course)

Yes this woud be great. IR light are working? I can't understand your language. ;-)

Right, I've switched to english.
Before removal, just to have history:

motion detection (there was of course motion in front of camera):

switch e-mail (unavailability after exactly 1 hour and 1 minute every 1 hour):

switch to turn IR lights also same unavailability:

It seems like the integration didn't went through whole process and there's something going in background that makes CPU rise and also not report all functionalities like it should.
Will remove and re-add right now

Ok, also I found some errors in the code. I will update a.s.a.p.

While removing cameras this entry appeared in log (maybe useful?):

Motion sensor (binary) seems not to respond tho

This is probably the reason why motion detection is not working. But I already fixed this one. I will create a PR later today.

Yes, now I've confirmed - in app (reolink client) I see motion detected and video recorded - in HA it's no-motion.
Will wait for PR - thanks for fast investigation and great integration! :-) Glad I can help to hunt some bugs.

Can you update the files in custom_components/reolink_dev with the files from this branch? Please let me know the results.

Deleted files, added linked one and restarted (and readded cameras) - still no motion reported, despite that they seem to work:

The availability is best to find in the log (debug mode). Is the subscription working? And did it register a webhook?

Could you please provide what components to put in 'debug' mode for logger? I always have trouble guessing it. ;)

Yes, I described this and some more interesting things here

@fwestenberg you can find the log here
for me it looks all-ok

I would suggest next time to mask your webhook id (last part). If you just reload the integration, it will generate another one and delete the old. What I see, is you are using https internal also. And this does not work with the Reolink camera yet (unfortunately). It's described in another post also.

Ok, so that's the thing that changed between versions? Will it be possible in any future soon?
Just to make sure: it's 100% proper SSL that can be validated (LE).

It works totally different now, and should lead to less http calls etc. Read more here. Maybe it can work, but needs more investigation first.

I'd be happy to help investigate and test it out, as at the moment I can't motivate myself to drop SSL support (I have it done same way as in linked thread - forced via nginx proxy)

Can you check the log if it still uses the https, since you updated the files it should now use http...

I re-did everything, so removed integration, deleted files, did git clone https://github.com/fwestenberg/reolink_dev/ --branch NVR-Webhook-subscription and in logs I see:
[custom_components.reolink_dev.base] Host 192.168.x.102 subscribed successfully to webhook https://xxx/api/webhook/a180bxxxx

The answer to that is in thispost, I think!

Yes, could be - but integrations I rely on doesn't allow me to have HTTP also inside my network and I'd rather like not to drop some level of security too.
And there's no way I can declare any kind of workaround too (as it's taken from HA, not configurable parameter).
Is there something that can be changed on library/integration level or it's rather something to debug on reolink's side? Bugreport?
Any way to see/check what exactly is the issue for reolink, debug that?

Just a comment to this... My cameras worked perfect, with motion detection, prior to moving config from configuration.yaml to integration setup. After that I have not gotten any motion detection. I have always used internal SSL.

So it's the same issue as mine.
Good, one more to potential debug. :-)

It works totally different now, and should lead to less http calls etc. Read more here. Maybe it can work, but needs more investigation first.

Like I wrote here, it's useless to compare to the old version. Things have changed significantly and we are not polling for motion every second. With both of my camera's this works great. I have motion detected within a second and without missing any motion. So this is definitely the way to go. Also, the Windows application works this way. So we can only fix your issue by:

Finding a way to make the camera call HTTPS (upload certificate to the camera some way?)
Enable HTTP on HA (for the webhook at least)

Why would camera need SSL cert when it has proper non-self signed one?
Is there any API/way to test those calls from camera to HA? Or just get some more debug codes?
I'd like to investigate more so potential solution will be more user friendly than creating custom webhooks (and HA doesn't allow to create custom webhooks anymore too?)

Why would camera need SSL cert when it has proper non-self signed one?
Is there any API/way to test those calls from camera to HA? Or just get some more debug codes?
I'd like to investigate more so potential solution will be more user friendly than creating custom webhooks (and HA doesn't allow to create custom webhooks anymore too?)

This is just one of the possible things to try. It's not about the camera's certificate, but it should probably first trust your HA certificate?

But why would it not trust that certificate? How can we check if it's problem with cert or other problem?
I'm not a programmer, tried to look at api.cgi but failed as I don't know internals how to check and check response codes :-)
My SSL cert is verified by proper CA, in browsers it's shown as 'secured' so camera shouldn't have any issues with that

But why would it not trust that certificate? How can we check if it's problem with cert or other problem?
I'm not a programmer, tried to look at api.cgi but failed as I don't know internals how to check and check response codes :-)
My SSL cert is verified by proper CA, in browsers it's shown as 'secured' so camera shouldn't have any issues with that

It all depends on which certificate authority signed your certificate and if that authority is in root CA of the camera / NVR
How are you accessing api.cgi? where are you accessing this?

Thanks for renaming this one. And I thing @badabing2005  you are right about that. But I also did not look any further. I am using the ONVIF event subscription for motion detection. You can check it out in the other repository (fwestenberg/reolink). I can also help you get this in soapui for some testing.

I can try to help and debug/see possible options, but for sure assistance is needed with the library and/or API :-)

I can try to help and debug/see possible options, but for sure assistance is needed with the library and/or API :-)

Thanks for renaming this one. And I thing @badabing2005 you are right about that. But I also did not look any further. I am using the ONVIF event subscription for motion detection. You can check it out in the other repository (fwestenberg/reolink). I can also help you get this in soapui for some testing.

@fwestenberg
Let me know what you need and how I can get you the info you need.

Thanks for renaming this one. And I thing @badabing2005 you are right about that. But I also did not look any further. I am using the ONVIF event subscription for motion detection. You can check it out in the other repository (fwestenberg/reolink). I can also help you get this in soapui for some testing.

@fwestenberg
Let me know what you need and how I can get you the info you need.

Does the library use onvif subscription to get that notifications or it's more reolink's cgi file?

Does the library use onvif subscription to get that notifications or it's more reolink's cgi file?

It uses onvif subscription for notifications. Because NVR is not working well at the moment, after a NVR motion notification we call the motion service from the cgi to find out which camera has motion detected.

It uses onvif subscription for notifications. Because NVR is not working well at the moment, after a NVR motion notification we call the motion service from the cgi to find out which camera has motion detected.

Not sure if I get it properly - first to fix is the NVR issue and then it might help with this one, right?

Not sure if I get it properly - first to fix is the NVR issue and then it might help with this one, right?

Indeed, the first NVR issue should be fixed. Then we will look further for a certificate fix or whatever.

Indeed, the first NVR issue should be fixed. Then we will look further for a certificate fix or whatever.

I sent @badabing2005 a SoapUI project for testing Onvif services. If you are interested as well, please share your email with me.

I sent @badabing2005 a SoapUI project for testing Onvif services. If you are interested as well, please share your email with me.

Pls send it to<EMAIL_ADDRESS>

Pls send it to<EMAIL_ADDRESS>

I'm using HTTPS for HASS and would like the motion sensor to be available for triggering automations etc, is that possible somehow?

Hi,
First of all thanks for this amazing integration. I'm also using HTTPS for HASS and the motion sensor is also not working for me, all other things working fine.

has there been any progress on this, or is there a work around? Other than using http for your whole HASS system?

Not yet, unfortunately

is there any way to get the webhook for this integration to use http as a temporary measure? Or can such a thing be implemented as a work around until an SSL fix is available? Really need to be able to get motion events to solve an issue


SafeERC20: low-level call failed

Hello guys! I came across a problem running lendingPool.deposit:

I'm using aave version 2, with configured Alchemy RPC. Code of the aaveDeposit.ts is the following:
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/src/signers';
import * as hre from 'hardhat';
import { ethers } from 'hardhat';
import { BigNumber } from 'ethers';

async function main() {
  const deployer = (await ethers.getSigners())[0];
  await hre.run('run', { script: './scripts/getWeth.ts' });

  const lendingPool = await getLandingPool(deployer);

  await approveWethToaave(
    deployer,
    lendingPool.address,
    ethers.utils.parseEther('0.02')
  );

  await lendingPool.deposit(
    '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
    ethers.utils.parseEther('0.01'),
    deployer.address,
    0
  );
  console.log('Deposited!');
}

async function getLandingPool(deployer: any) {
  const lendingPoolAddressProvider = await ethers.getContractAt(
    'ILendingPoolAddressesProvider',
    '0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5',
    deployer
  );

  const lendingPoolAddress = await lendingPoolAddressProvider.getLendingPool();
  const lendingPool = await ethers.getContractAt(
    'ILendingPool',
    lendingPoolAddress,
    deployer
  );

  console.log(`lendingPoolAddress is ${lendingPool.address}`);
  return lendingPool;
}

async function approveWethToaave(
  owner: any,
  spender: string,
  amount: BigNumber
) {
  const Weth = await ethers.getContractAt(
    'IWeth',
    '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
    owner
  );

  const tx = await Weth.approve(spender, amount);
  await tx.wait(1);

  const wethAmount = await Weth.allowance(owner.address, spender);
  console.log(`Approved ${wethAmount} weth to aave`);
}

main()
  .then(() => {
    console.log('aave is borrowed!');
  })
  .catch(err => {
    console.error(err.message);
    process.exit(1);
  });

I found that problem might be connected with insufficient balance of weth or with the fact that weth allowance was not configured well, but it doesn't seem like a problem with this code. Along with that, I'm using VPN.
Thank you!

By they way, in
  const Weth = await ethers.getContractAt(
    'IWeth',
    '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
    owner
  );

section i tried both using IWeth and IERC20 contract but with no result, also I increased gasLimit of the call up to 500 000 but without much of success too. I hope there'ssome kind of workaround here

Issue was in getWeth.ts script, it seems that it's better to import a function rather than run it as a task using hre.run. Many thanks to @othaime-en: https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/2428


Missing grant types in protocol section of a standard based application

Describe the issue:

grant types such as

~SAML 2~
~jwt bearer~

Update (09/10/2023): SAML2 and JWT Bearer grant types have been already added via https://github.com/wso2/product-is/issues/16715 and https://github.com/wso2/identity-apps/pull/4174.

IWA-NLTM

are not displayed in the UI of the protocol section of a standard-based application.
How to reproduce:

Expected behavior:

These grant types should be displayed in the UI to ne enabled.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

Verified the fix in the latest build.
https://github.com/wso2/product-is/assets/41533942/23ea869e-bcf5-4139-b585-c28665a51df6


PositionPlotScatter: use fillRect rather than filling a circle - faster rendering

Going to file this under spikesortingview repo instead. Closing.


Admins would like to visually see the number of dates per rental and the total cost

-JS to show the date range and pricing under the submit
-hub/TPP for reference

@owlee almost done

fixed by #215


when use SC cluster, one of SC instance down will cause go-chassis fail

Describe the bug
when use SC cluster, one of SC instance down will cause go-chassis failed to communicate
Version of go chassis
1.4.0
To Reproduce
setup SC cluster with 2 instances
run go-chassis with the 2 SC addesses
then kill first instance of SC cluster
then go-chassis can not communicate with other service
Logs
https://github.com/go-chassis/go-chassis/blob/606d4397b419c764a94475de587aae30519f94f1/pkg/scclient/client.go#L957

log plz

log plz

I can not trans log to here
I resolve it by check every SC instance health every 5 seconds use net.DialTimeout, and record instance health status in a map
in getAddress, I ignore bad status instance

could you plz fix this problem

could you plz fix this problem
ok , after I clean my modification

could you plz fix this problem

how about this issue ?


update     *(svn_auth_ssl_server_trust_prompt_func_t)(...)

change the interface "*(svn_auth_ssl_server_trust_prompt_func_t)(...)"
apr_uint32_t failures,   ->  apr_uint32_t *failures,
In linux, ignore server invaild certificate,  using this interface,  but can't change the failure.
change the interface to "apr_uint32_t *failures,", can run normal.

change the interface "*(svn_auth_ssl_server_trust_prompt_func_t)(...)"
apr_uint32_t failures, -> apr_uint32_t *failures,
In linux, ignore server invaild certificate, using this interface, but can't change the failure.
change the interface to "apr_uint32_t *failures,", can run normal.

@woodgood, thanks for the patch.  I'm afraid we cannot accept it, because it changes a released API (the lack of a "@since" doxygen tag in the docstring means the API was released in 1.0) and would violate our "100% API/ABI backwards compatibility" promise.
To pursue an alternative solution please email<EMAIL_ADDRESS>and describe your use-case. Thanks!


SQLite lots of disk acces (I/O)

With SQLite there are lots of disk acces :(
Is there a way to have less? (use cache or something like that?)

The best way to use less is to use mysql/sql server
SQLite is useless

My last comment was a bit abrupt :)
I am looking to phase out SQLite support at some stage, so best not to use it.
I see that MySQL has some support to migrate from a SQLite database as well, but I haven't tried it yet.
SQLIte is not meant for multi threaded applocations

I give up on SQLite very too slow :(


ENG 1379 remove unnecessary server files

Now we only handle file we want to, we need to update some other fles to match with JHipster current versions. Some templates have been copied but not update as long as we updated the JHipster version.
The templates upgrade is to be done in another PR but to have a running app I need to update some templates before.


[Improvement] Add Datasource V2 commands to Authz module

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I have searched in the issues and found no similar issues.

What would you like to be improved?
PR #2675 introduces some V2 commands, but there are missing commands like CreateV2Table or SetTableProperties. So we add these commands first, then add other third-party commands from Iceberg or Delta.io.
How should we improve?
Add V2 commands to PrivilegesBuilder like V1s. Some minor commands are ignored like V1 cases.
Added commands are in these files:

org.apache.spark.sql.catalyst.plans.logical.v2Commands.scala
org.apache.spark.sql.catalyst.plans.logical.v2AlterTableCommands.scala

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

I'm almost done: https://github.com/minyk/incubator-kyuubi/commit/2a0367ed2f8ec5ea81b93a03ea70c2fd606bd8cc and trying to make some unit tests for DSv2 commands.

yes

Can I make V2 table(except Iceberg) with a query? I'm trying with parquet like current tests but it makes only v1 tables.

Shall we consider close this issue?
since closed #3424 [FEATURE] [AUTHZ] Access privilege checks for namespaces and tables of DatasourceV2 may have covered major parts of commands in DataSource v2 for table and namespaces, and #3515 closed for supporting iceberg commands.

@bowenliang123 thx for great work. I think we have no problem to close this issue.

thanks @minyk @bowenliang123

Thanks. And as for #3424,  it covered only major parts of V2 commands for namespaces and tables, ( and it is also the reason that I didn't reuse this issue). So there's still some work to improve support for other v2 commands.


Handle a larger variety of HTTP conditions in Hub implementation lib

@csuwildcat we don't know what this means - please elaborate further.

? https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests

Discussed on DIF call with @csuwildcat , not applicable anymore. Closing.


Provide opt-out notice instructions

Multiple places around the site, we direct folks to an "Opt Out" page for instructions about removing their data from the database. We need these instructions written.

If the instructions are short (1–2 sentences), then I recommend replacing the link to this page with just putting those instructions inline where we need them (Download page, Guide page, and Contact page).
If the instructions are longer than 1–2 sentences, we can/should keep them on that specific page.

One recommendation: if the instructions are going to include "email us at [email address]", we can compose the mailto link so that it prefills the email's subject line, and can even prefill the body of the email with some prompts. E.g.:

Oh, and another thought: is there a concept of "Opt Out" in MediaVault?

What we have there now is great ("If you’d like for us to remove your organization’s data from the dataset, please email<EMAIL_ADDRESS>and let us know.")
Agree about inline instructions on those pages, but keep the Opt Out page so we can link it from the footer.
The prefill example is perfect.
Opt Out for Vault is exactly the same as for Insights.


Fix color changing bug

Which Issue was this PR made for?

Closes #62

What is within the scope with this PR
Fixing the color change bug.
What is NOT in the scope with this PR
Making the avatar look nicer or changing the color manually.
Related Issue
Other sidenotes that reviewer should be aware of

LGTM


Support HTTP/2.

Base on https://github.com/netty/netty/tree/4.1/codec-http2.

We have done some refactoring to prepare support HTTP/2.

#94 Set default bootstrap to sofa.
#95 Remove version from the keywords of service name.
#106 Aggregate caches for better cache management.
#116 Refactor the serializer of hessian and protobuf.
#136 Client transport decides to support reusable by itself.


chore: do not display a model if empty project

Description
Do not display model #1 if no project is provided

Resolves #(issue)
#331
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Manually
Please describe the tests that you ran to verify your changes. Provide reproduction instructions and list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Very nice! I was just in the process of doing something like this myself.
One nitpick: can we use undefined instead of the '' empty string value?

When trying to use undefined the if statement did not catch it. if (props.modelId !== undefined) {
I am not familiar enough to know why. Will look into this further


FullSaveAssociations

unknown field 'FullSaveAssociations' in struct literal of type "gorm.io/gorm".Session
Did i miss something ?
DB.Session(&gorm.Session{FullSaveAssociations: false}).Create(&entity)

upgrade to latest version


185151205 dataflow node numbers show on nodes fix bug

WIP - do not review just doing this to see a diff.

In other branch - bug is not reported anymore.


refactor: Mdx-refactor

This PR changes the with-mdx example to compile the .mdx files before starting the dev server, instead of loading the compiled content from an api endpoint.

This is much better @deckchairlabs -- I've updated the ultra-website to use a similar approach. This is all good barring the --watch not being used.


feat: allow using mysql socket, fixes #433

Could you maybe create a new tag? :) I would like to get rid of my patch and maybe publish this as package at nixpkgs :)

New release is coming soon! Hopefully even still this week. Stay tuned!


Sorting list items with nested divs pulls them apart

I'm running into an issue where trying to drag a list of bootstrap panels pulls the child divs apart instead of moving the entire panel. This results in pulling the panel-content div out of a panel and into another.
I've put together a small example of this on jsfiddle: http://jsfiddle.net/ru2bjuk9/1/
Unfortunately I'm running into security problems due to jsfiddle using different domain names so the fiddle doesn't work properly, but it's a small enough example it should be easy to reproduce.
Any advice? I just starting using touch-dnd so I might be totally overlooking something, but I'm not sure where to go from here.
Thanks!

Hi @SeventhHelix, adding the option items: '> li' should work. The default item selector is li, div. Updated example: http://jsfiddle.net/5b5apuhz/
Let me know if this works for you

This is exactly what I was going for! I must've missed the items option in the docs page. Thank you, @rkusa.


inserting method from autocomplete doesn't place cursor correctly

when an autocomplete option is chosen, the cursor becomes invisible and the parameter class names are inserted (eg; java.lang.String). the cursor position stays where it was when enter was pressed. the expected behavior, imo, would be to place the cursor in the parameter field and be able to tab between them as if it were a snippet

Yes, you can tab through variable name and parameters using tab. The cursor is not placed at the first parameter because after examining methods of a class, you are likely to change the class name to a variable name first and only then fill the parameters. e.g
CoreEntity.sortDescBy(java.lang.String)

becomes
myEntity.sortDescBy("some string");

But on my editor cursor does not stay where enter was pressed. The class name (here CoreEntity) becomes selected automatically so that I can replace it, and after I can cycle through all parameters using tab.

ah, yeah upon further inspection i can tab through the fields. however the first field selected in that example is CoreEntity and i have to press tab to switch to java.lang.String. false alarm. it just occurred to me that the package only works on class names because variable names don't get registered to the proper type. this behavior makes sense now.
it would be neat if variable names could get resolved to classes, however. should be possible with a clever regex routine. if i were to try to implement this where would i find the hook that generates autocomplete possibilities for a given variable?

Check issue #8. It already resolves a variable name to a class in some cases. You can see this in action in the preview animation shown on readme,md. But it's still a really quick hack so by all means improve it, if you like. You can see these TODO comments there:
    // Find class name by a variable name given as prefix
    // TODO traverse brackets backwards to match correct scope (with regexp)
    // TODO handle 'this.varName' correctly

Currently it seeks variable declaration from previous 10 rows:
editor.getTextInRange([[bufferPosition.row - 10, 0], bufferPosition]),

Just remove that and include some bracket matching to the regex and it should work much better already.

And also scopeDescriptor mentioned in issue #8 might provide some useful information about current scope.


Code the Homepage for the site.

Feature - Landing page for the app
Work on making the Homepage for the app.
Describe the solution you'd like

Right now we don't have the home page, refer to the design and code it in the src/JavaScript/modules/homepage.js.
For styles the project is using sass, you can refer to these docs,  this tutorial or freecodecamp sass module in case you are not familiar with it. You can do it !
Here is the Figma Design File you should refer for design (some things are still being edited but the homepage is ready).

Additional context
We are building this app as Single page Application so Nav and Footer are to be coded in src/index.html and other files are to be coded in src/JavaScript/modules/ int the lit-html html function in template string, look at the existing examples.
Feel free to create other modules in modules folder and you can import them into the main module to use in template strings.
Feel free to ask any questions :smile:
All the best, You got this !

Hey, Fab! So could you, please, assign me this issue?

Sure, Happy Coding :grinning:

Hey, Fab. I will help @hajarNasr with the responsive part. From turning the mobile version into a desktop version. 👍🏽

Sure @muchirijane
All the besttttt


[Snyk] Upgrade @loopback/repository from 7.0.2 to 7.0.7

Snyk has created this PR to upgrade @loopback/repository from 7.0.2 to 7.0.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 5 versions ahead of your current version.

The recommended version was released on 2 months ago.

Release notes

Package name: @loopback/repository

7.0.7 - 2024-10-15<EMAIL_ADDRESS>

7.0.6 - 2024-09-12

7.0.5 - 2024-08-14

7.0.4 - 2024-07-09

7.0.3 - 2024-06-11

7.0.2 - 2024-05-17

    from @loopback/repository GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Done in https://github.com/sourcefuse/loopback4-ratelimiter/pull/202


Items in a list are not correctly tracked when changing the order

If you have a list of data elements and then change the order of them, the DOM gets out of sync and can render more elements than actually exist in the data.
I wrote a simple todo app with the ability to mark a todo as done. Done todos are sorted to the bottom.
I only had four total todos and marked them done in an odd order. Once I marked them all as done, I got duplicate DOM elements leading to 6 list items, even though the data list still only had 4 items.
This doesn't alway happen at the same time, but it does happen consistently.

I think a "key" is needed to track identical DOM elements across renders, like React.
import { r, t, w } from "@arrow-js/core";

type Todo = {
  label: string;
  isDone: boolean;
};

const App = () => {
  const data = r({
    todos: [] as Todo[],
  });

  w(() => console.log("todos changes", JSON.stringify(data.todos)));

  const addTodo = (label: string) => {
    console.log("add todo", label);
    const newTodo: Todo = { label, isDone: false };
    data.todos = [...data.todos, newTodo] as any;
  };

  const markDone = (todo: Todo) => () => {
    console.log("mark done", todo);
    data.todos = data.todos.map((t) =>
      t === todo ? { ...t, isDone: true } : t
    ) as any;
  };

  const sortedTodos = () => {
    return [...data.todos].sort((a, b) => {
      if (a.isDone === b.isDone) {
        return 0;
      }
      return a.isDone ? 1 : -1;
    });
  };

  return t`

Todo List

        <input type="text" @keyup="${(e: KeyboardEvent) => {
          if (e.code === "Enter") {
            const target = e.target as HTMLInputElement;
            addTodo(target.value);
            target.value = "";
          }
        }}">

        ${() =>
          sortedTodos().map((todo) =>
            TodoItem({ todo, markDone: markDone(todo) })
          )}

        `;
};

const TodoItem = ({ todo, markDone }: { todo: Todo; markDone: () => void }) => {
  const style = () => {
    if (todo.isDone) {
      return `text-decoration: line-through`;
    }
    return "";
  };

  return t`

<button @click=${markDone}>Done</button>${todo.label}

    `;
};

const appElement = document.getElementById("app");
App()(appElement);

Ahh, this is actually in there, it just isn't properly documented.
t`<li>item</li>`.key(yourKey)

Ok docs have been added for this 👍


Intermittent spec and percy glitch

The spec is likely because capybara isn't always waiting for the full track chunk to unfurl
891       expected to find visible css "span.only_user_name" but there were no matches. Also found "", "", "", "", "", "", "", "", "", "", "", "", "", which matched the selector but not all filters.
892     # ./spec/features/home_page_spec.rb:15:in `block (2 levels) in <top (required)>'

2 percy glitches: https://percy.io/alonetone/alonetone/builds/2724392?

we need to pause_animations before snapping "Home as User"

I need to cry tears of frustration and figure out how we can get a paused state on playback that doesn't drift after calling 'pause'

Hoping this is closed for good by percy_glitch branch.


Won't reload with breakpoints

Type: Bug
If I set a breakpoint in VS Code and then save a file change. the page will never reload. it just hangs, screen turns white. The only way to get it to reload is to remove all breakpoints stop debugging and resstart.
VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.60GB (5.57GB free)

Process Argv
--crash-reporter-id db45d3ee-b2c6-41c6-b0f4-562a46d76c3b

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

gitlens
eam
12.2.2

beautify
Hoo
1.5.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewvextcfv2:30681851
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
azdwalk:30687957
pythonms35cf:30686773

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.76.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

/jsDebugLogs

Please collect trace logs using the following instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.
⚠ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to<EMAIL_ADDRESS>

thanks for reaching out. one thing that stumped me was the update menu
option was missing.  i got a message from the bug report tool that i needed
to upgrade (“looks like you are using an outdated version…” message) which
i thought might be the case , but the update menu option was missing. in
the end i was able to get my version upgraded and now everything works! And
the update menu option is back. i do have it set to download updates
automatically.
thanks again,
aaron
On Fri, Mar 24, 2023 at 4:54 PM VSCode Triage Bot @.***>
wrote:

Please collect trace logs using the following instructions:
If you're able to, add "trace": true to your launch.json and reproduce
the issue. The location of the log file on your disk will be written to the
Debug Console. Share that with us.
⚠ This log file will not contain source code, but will contain file
paths. You can drop it into
https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it
contains. If you'd rather not share the log publicly, you can email it to
@.***
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/178029#issuecomment-1483603883,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC5DPNSF7DZQGVC2B2JTULDW5YX2DANCNFSM6AAAAAAWEASVOI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Thanks,
Aaron
website http://www.aaronmillerphotography.com
flickr http://flickr.com/photos/aaron-miller

https://github.com/microsoft/vscode-js-debug/issues/1604


Fixing loss of an assigned parent category

Hi, as mentioned in the forum I'm sending this pull request. Only the commit 9ea34de is of interest.

Thanks will pull in on next update.

Thanks. Have added in v1.9


text! plugin could not load the HTML template during test

I have a text! to load my basic HTML template to use for my Backbone Require.js project at here - https://github.com/mech/front_end_demo
If you run the server, the template will get the properly loaded, but the karma test runner did not seem to be able to load the HTML file. It can somehow only load if I renamed the file to show.js instead of show.html. This conclude that the path is visible, just that it cannot load HTML files?
Error: /base/app/assets/javascripts/src/client/templates/show.html HTTP status: 404
Appreciated for any help.

Is this still an issue?

Just had the issue

npm remove karma
npm install karma

In my case, I had to add the following to karma.conf.js:
    // list of files / patterns to load in the browser
    files: [
      {pattern: '**/*.html', included: false}
    ],


Username: uppercase or lowercase

Let User to login with Uppercase or Lowercase Username.

I will not change it, because to much work for not much gain - The user needs to write the Username right.


Fix some ST7789 regs

Fixes frame rate/porch register confusion and uses PWCTRL1 instead of 0xd0. Probably the only thing from my pile of hacks that counts as a fix :smile:
(Also, the PORCTRL and FRCTRL2 values look like the defaults... Maybe a few of the others too, didn't check.)

Thank you! I'd actually noticed the weird PORCTRL naming when bringing up another LCD.


[Bug][backend-framework] lake crushed when pipeline.beginAt is nil

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

What you expected to happen
don't crushed and log/save original error
How to reproduce
@narrowizard

run EE's pipeline

Anything else
No response
Version
main
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

relates to #3537


ruamel.yaml v0.14 and greater causes an import error. Using earlier versions work.

I've issued a PR to install ruamel.yaml<0.14, which fixes the import error. Here's the trace of the error I got with v0.14.2:
Python 3.5.3 (default, Feb 15 2017, 10:22:31)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib/python3.5/site-packages/dateparser/__init__.py", line 4, in <module>
    from .date import DateDataParser
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib/python3.5/site-packages/dateparser/date.py", line 11, in <module>
    from dateparser.date_parser import date_parser
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib/python3.5/site-packages/dateparser/date_parser.py", line 9, in <module>
    from .utils import strip_braces, apply_timezone, localize_timezone
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib/python3.5/site-packages/dateparser/utils/__init__.py", line 8, in <module>
    import ruamel.yaml as yaml
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib64/python3.5/site-packages/ruamel/yaml/__init__.py", line 65, in <module>
    from ruamel.yaml.main import *  # NOQA
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib64/python3.5/site-packages/ruamel/yaml/main.py", line 10, in <module>
    from ruamel.yaml.error import *                                # NOQA
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib64/python3.5/site-packages/ruamel/yaml/error.py", line 9, in <module>
    from ruamel.yaml.compat import utf8
  File "/blah1/blah2/virtualenvs/wrds-classroom-dev/lib64/python3.5/site-packages/ruamel/yaml/compat.py", line 12, in <module>
    from typing import Any, Dict, Optional, List, Union, BinaryIO, IO, Text, Tuple   # NOQA
ImportError: cannot import name 'Text'
>>>

ruamel.yaml removed from dependencies. Closing.


[WIP] [#1123] Download csv from any visualization

Coverage decreased (-0.9%) to 94.66% when pulling 421af80a65489aa40fa5db21fca578cc122bf791 on feature/1123-download-csv-from-any-visualization into 9c65c0ce2b57b1da2af82e6f506ee8c057d85f2a on master.

@akariv I'm merging this now, but please review it when you can.


Build pipeline

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


metronome with microphone

Great job. Thanks for that.
Well I think I got an isse here. If you turns on the microphone to record something on the same page, the metronome stops working. Any idea of what is going on?

I'm guessing you're somehow disabling the timer.  Do you have a code sample?


Perseus computability

Hi,
Many ppl use Perseus as down stream of MQ.
One of the nice things in MQ is that the output tables populate automatically the correct table upload (e.g. main, numerical, etc.).
Can metamorphous support this "MQtification" of the output tables? I would add a click button for the users that use Perseus... The modification to the table should be very very simple, as the input is compatible, just the metadata of the columns is missing.
Keep on with the great job,
-g

This seems like quite a reasonable request. can you be more specific about what you'd like to see and we can consider it further. Maybe you have an example file or two that you could provide. I think you can place small .zip folders in the comments here

proteinGroups.txt
if you open this file in perseus. some of the data goes to the correct place...
Perseus Doc1.docx
make sense to add all the LFQ data to the main...


APP SIZE CAN REDUCE VIA USING DYNAMIC ACTIVITY

Recently I downloaded this repository & make some changes. But I have figured out that this app size can be reduced using dynamic activity.
So, I want to contribute to this project. But only I will continue contributing to this project if this repository is under 'hackoctoberfest'. So if you want to improve this open-source project so, please add this topic.

ok sure.

ALREADY SUBMITTED THE REDUCED CODE.


Add settings for Stroustrup style.

This is a copy of OTBS with just the PlaceOpenBrace.OnSameLine set to $false.

Thanks @rkeithhill !


fix(reaper): forkExec error no such file or directory & prometheus exit error

fix https://github.com/aptible/supercronic/issues/177
run reaper test in docker container
use bats-action to install bats-core and bats-assert ...
fix https://github.com/aptible/supercronic/issues/173

@UserNotFound Is there anything I can do? There's no progress.

@UserNotFound
I added the test and ran the reaper test in Docker
The bats-core action needs to be trusted
<EMAIL_ADDRESS>is not allowed to be used in aptible/supercronic.
The Prometheus error may not be related; the old version has the same error.
https://github.com/aptible/supercronic/releases/download/v0.2.30/supercronic-linux-amd64

@UserNotFound i fixed prometheus http server closed error

@UserNotFound Is there anything I can do? There's no progress.

@UserNotFound Is there anything I can do? There's no progress.

@UserNotFound Is there anything I can do? There's no progress.

This review is being prioritized within our team, but I don't have any information at the moment as to when that will occur.


Change CSS to display all panel content even for narrow viewports

Per Issue #11 :
I've added a few media queries to the stylesheet to handle narrow viewports. This should fix the issue of the panels not displaying all of their contents on mobile screens.

Awesome! Thank you so much for helping out!


Any plans to support RDB format version 8?

fixed  in  https://github.com/yinqiwen/ardb/commit/1e93a3e71a75c9f1bba17873ba1f06c20394702c

Very cool – thanks!
Here's a use case: a highly performant (and costly) Redis can now act as a master and if it fails there is ARDB slave replying on a much cheaper server.


[4.0][BUG] Two select2_multiple filters not working together

Bug report
What I did:
Upgraded Backpack 3.6 to 4, my 3.6 installation had multiple 'select2_multiple' filters working fine on one page.
$this->crud->addFilter([             'name' => 'demo1',             'type' => 'select2_multiple',             'label'=> 'Demo1'         ],  $this->crud->addFilter([             'name' => 'demo2',             'type' => 'select2_multiple',             'label'=> 'Demo2'         ]
On 3.6 this worked fine. In v4 the filter that is applied is like ?demo1=%5B"1"%5D&demo2=%5B"1"%5D when I select either demo1 or demo2.
What I expected to happen:
When is select an option from demo1 I expect that the filter is only applied to demo1.
e.g. "?demo1=%5B"1"%5D"
What happened:
The option that I select for demo1 is also applied to demo2
?demo1=%5B"1"%5D&demo2=%5B"1"%5D, manually changing the url by removing the demo2 parameter filter gives my the expected behavior.
Additionally clicking "remove filters" is really slow, it first sends 9 search requests to the server.
Backpack, Laravel, PHP, DB version:
v4-dev, 6.0.3, 7.3.9

Setting persistentTable to false in config/backpack/crud.php helps but at the cost of that feature.

Setting persistentTable to false in config/backpack/crud.php helps but at the cost of that feature.

Unfortunately that does not help, still the same behavior.

I got the same problem.

Me too. In addition "remove filters" button hangs the browser due to many requests.

There is a glitch in select2_multiple blade code. It can be solved by adding the following line
if (filterName !== parameter) { return; }
right after
var parameter = '{{ $filter->name }}';
in the resources/views/crud/filters/select2_multiple.blade.php

Is there any solution for 3.5.0?

@prodixx no, sorry - 3.5 is no longer supported. But I don't think these particular files have changed much between 3.5 and 4.0. So you should be able to copy-paste the files from your vendor/backpack/crud/src/filters to your resources/views/vendor/backpack/crud/filters and make these changes, they're pretty small. That should do it for you.


chore: fix precommit

Fix pre-commit action

:tada: This PR is included in version 1.15.12-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


feat: secure store utils, closes LEA-1576

Created an Expo module that handles additional secure store functionality. In this case, updating biometrics security settings in iOS on an array of keys.
https://github.com/user-attachments/assets/4bb571d6-e22b-4324-bdb7-9257376ddb88

This is a really great solution to this problem Edgar, nice one!

@edgarkhanzadian is it correct that this PR is to stop the multi-face id in a row issue, because we store mnemonics by fingerprint? This is impressive work, but if another solution would be to use a single store, the complexity involved there would be orders of magnitude less than adding a new native code based module to our stack.


Doesn't work when Parent container is display:none

Hi
I use Lazyload to lazy load youtube player to avoid loading youtube stuff (js, etc ...) on page load :

<LazyLoad once offset={ 200 }>

</LazyLoad>;

It works perfectly !!!
However, if the parent tag have the css property display:none, the youtube stuff (js. etc ..) is loaded on page load. I expect the youtube player to be load lazily.

<LazyLoad once offset={ 200 }>

</LazyLoad>;

Best regards !

Good point, this feature needs careful parent (or event ancestor) element visibility change check, maybe it's better provided as an option.

@jasonslyvia How about check the one level parent only ?

@jasonslyvia Is it also the expected behaviour for lazy load to fail when "display: none" is set on the lazyload component itself? When I do that, the image downloads on page load.

It occurs to me that if you control your parent container's visibility dynamically, why don't you just render nothing instead of setting display: none, in which case LazyLoad will work just fine when it is rendered.

I'm currently using css to measure the screen size to decide whether to display: none on some images. I could use check the screen size on the react component but that requires a lot of extra work. I think it makes sense for lazyload to not load when an image has display set to none and that the fix could be an easy one line in index.js line 86 to check for node.offsetParent? https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent

I think commit 7abb292f520756ee612ce862f4babdcd9d15eb1d which checks for css visibility would fix the problem with display: none. Do you have plans to publish anytime soon?

Oooh good catch, I didn't realize the package hasn't had a new release since that commit went in (I forgot to shepherd along a release). @jasonslyvia thoughts on supporting a new release before the React 16 support goes in?

@lidawang I think it's okay to release this before React 16 support, if there is any support that should be done, please help discuss in #125

K, it's released! @lauterry @jonathantan Please upgrade to 2.2.8 to get the fix, lemme know if you have any issues!


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v4.9.292",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=948968f8747650447c8f21c9fdba0e1973be040b"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "948968f8747650447c8f21c9fdba0e1973be040b",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.9.292 by commit 948968f8747650447c8f21c9fdba0e1973be040b. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2021-1002373


[Bug] Warning: Fast mode segfaults when there are out-of-bounds indices. Make sure input indices are in bound LLVM ERROR:

🐛 Bug

python3 build.py --model /home/LLM/vicuna-7b-v1.1 --quantization q4f16_0 --target android --max-seq-len 768
Steps to reproduce the behavior:

Install TVM Unity success
validate TVM success
Getting Vicuna Weights success also have the change sed -i 's/LLaMAForCausalLM/LlamaForCausalLM/g' llama-7b-hf/config.json
4.python3 build.py --model /home/LLM/vicuna-7b-v1.1 --quantization q4f16_0 --target android --max-seq-len 768 failed

Log:
(tvm-build-venv) mlc-llm$ python3 build.py --model  /LLM/vicuna-7b-v1.1 --quantization q4f16_0 --target android --max-seq-len 768
Using path "/home/LLM/vicuna-7b-v1.1" for model "vicuna-7b-v1.1"
Database paths: ['log_db/rwkv-raven-3b', 'log_db/redpajama-3b-q4f32', 'log_db/vicuna-v1-7b', 'log_db/redpajama-3b-q4f16', 'log_db/dolly-v2-3b', 'log_db/rwkv-raven-7b', 'log_db/rwkv-raven-1b5']
Target configured: opencl -keys=opencl,gpu -max_num_threads=256 -max_shared_memory_per_block=16384 -max_threads_per_block=256 -texture_spatial_limit=16384 -thread_warp_size=1
[13:55:23] /home//LLM/tvm-unity/include/tvm/topi/transform.h:1075: Warning: Fast mode segfaults when there are out-of-bounds indices. Make sure input indices are in bound
[13:55:26] /home//LLM/tvm-unity/include/tvm/topi/transform.h:1075: Warning: Fast mode segfaults when there are out-of-bounds indices. Make sure input indices are in bound
LLVM ERROR:

Expected behavior

Environment

Platform (e.g. Android):
Operating system (e.g. Ubuntu..):
Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...)
How you installed MLC-LLM (conda, source):
How you installed TVM-Unity (pip, source):
Python version (e.g. 3.10):
GPU driver version (if applicable):
CUDA/cuDNN version (if applicable):
TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models):
Any other relevant information:

Additional context

Hi @davidjohn001, thanks for reporting. Regarding the warning, yes we are aware of it. And we expect that the warning itself does not indicate anything real segfault and is not expected to affect anything. It is just an warning out there and possibly we will deprecate the warning in the future.
On the other hand, the LLVM ERROR looks like the real issue here. So would you like to share more details about the concrete LLVM ERROR so that we can further examine? Thanks!

[14:30:16] /home/LLM/tvm-unity/include/tvm/topi/transform.h:1075: Warning: Fast mode segfaults when there are out-of-bounds indices. Make sure input indices are in bound
LLVM ERROR:
(tvm-build-venv) Workstation:~/LLM/mlc-llm$
nothing follow in LLVM ERROR, and the script ended directly

The LLVM ERROR:
happened in this line.
mod = relax.pipeline.get_pipeline()(mod)  # pylint: disable=no-value-for-parameter
{'_name_or_path': 'llama-7b-hf', 'architectures': ['LlamaForCausalLM'], 'bos_token_id': 0, 'eos_token_id': 1, 'hidden_act': 'silu', 'hidden_size': 4096, 'initializer_range': 0.02, 'intermediate_size': 11008, 'max_position_embeddings': 2048, 'max_sequence_length': 2048, 'model_type': 'llama', 'num_attention_heads': 32, 'num_hidden_layers': 32, 'pad_token_id': -1, 'rms_norm_eps': 1e-06, 'tie_word_embeddings': False, 'torch_dtype': 'float16', 'transformers_version': '4.28.1', 'use_cache': True, 'vocab_size': 32000}

You are using LLVM 6, which is quite outdated. Please refer to this page to compile TVM Unity properly: https://mlc.ai/mlc-llm/docs/install/tvm.html#option-2-build-from-source


Deployment of saved model in Triton inference server with support of gRPC

/kind bug
We have deployed a ml model using triton inference server with tensorflow savedmodel in KFServing. But we can't access/hit the deployed ml model in cluster, it is running on port 9000 gRPC and 8080 RestAPI
Environment:

Istio Version: 1.7.4
Knative Version:
KFServing Version:
Kubeflow version:
Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]
Minikube version:
Kubernetes version: (use kubectl version):
OS (e.g. from /etc/os-release):

@nashra2637 Can you share more details about the issue and which version of KFS you are running

Istio Version: 1.7.4
Knative Version: v0.14.3+
KFServing Version: KFServing 0.4
Kubernetes version: (use kubectl version): 1.18

Istio Version: 1.7.4
Knative Version: v0.14.3+
KFServing Version: KFServing 0.4
Kubernetes version: (use kubectl version): 1.18

Here is our sample.yaml file to deploy model in our cluster, we have seen the logs of deployed model, it is successfully deployed and running on port 9000 gRPC and 8080 RestAPI. But what we dont know is how exactly we have to hit that deployed model in cluster using kfserving. How we can find the port on which these ports are mapped, or how can we map these ports to ingress ports which we can use to hit these models. I tried to do docker port  to see the mapped ports but there was not any port mapped in container as well.
apiVersion: "serving.kubeflow.org/v1alpha2"
kind: "InferenceService"
metadata:
  name: "model-name"
spec:
  default:
    predictor:
      serviceAccountName: sa
      triton:
        resources:
          limits:
          cpu: "3"
          memory: 6Gi
          nvidia.com/gpu:
        storageUri: "<s3-path>"

@AkashDharani The build-in triton model server currently only exposes REST port as only one of REST/gRPC port can be exposed on ingress. If you try the 0.5.0-rc0 release with v1beta1 API the gRPC can be exposed with this.
apiVersion: "serving.kubeflow.org/v1beta1"
kind: "InferenceService"
metadata:
  name: "model-name"
spec:
    predictor:
      serviceAccountName: sa
      triton:
        ports:
        - containerPort: 9000
          name: h2c
          protocol: TCP
        resources:
          limits:
          cpu: "3"
          memory: 6Gi
          nvidia.com/gpu:
        storageUri: "<s3-path>"

If you have to use earlier release, then the only possibility is to use custom container to expose gRPC port.

curl -H "Host: <host-name>" http://**.elb.amazonaws.com:80/api/status
This command gives us the following output
id: "inference:0"
version: "1.12.0"
uptime_ns:<PHONE_NUMBER>09
model_status {
  key: "<mode-name>"
  value {
    config {
      name: "<model-name>"
      platform: "tensorflow_savedmodel"
      version_policy {
        latest {
          num_versions: 1
        }
      }
      max_batch_size: 1
      input {
        name: "<input-tensor>"
        data_type: TYPE_UINT8
        format: FORMAT_NHWC
        dims: 128
        dims: 64
        dims: 3
      }
      output {
        name: "<output-tensor>"
        data_type: TYPE_FP32
        dims: 128
      }
      instance_group {
        name: "<model-name>"
        count: 1
        gpus: 0
        kind: KIND_GPU
      }
      default_model_filename: "model.savedmodel"
      optimization {
        input_pinned_memory {
          enable: true
        }
        output_pinned_memory {
          enable: true
        }
      }
    }
    version_status {
      key: 1
      value {
        ready_state: MODEL_READY
        ready_state_reason {
        }
      }
    }
  }
}
ready_state: SERVER_READY

I think it means our model is successfully deployed in the cluster and we can access it with loadbalancer host name and port 80, but what we dont know is how we can hit it with a python script. Any suggestion or any example to hit it using python script.

For now I am trying to hit through http rest api which is listening on port 8080, and we can access it with port 80.
I1123 09:59:13.478343 1 http_server.cc:1411] Starting HTTPService at <IP_ADDRESS>:8080
and i am trying to hit the api with this code

    model_name = "<model-name>"
    model_version = "1"
    batch_size = 1
    #
    url = "**.elb.amazonaws.com:80"
    verbose = 1

    triton_client = httpclient.InferenceServerClient(
        url=url, verbose=verbose, concurrency=2)
    #
    model_metadata = triton_client.get_model_metadata(model_name=model_name)
    print("MODEL METADATA: ", model_metadata)
    #
    model_config = triton_client.get_model_config(model_name=model_name)
    print("MODEL CONFIG : \n\n", model_config)


Distributed analysis words

For your information I prepared in https://github.com/lhcb/glossary/pull/5 C&SW definitions for terms that can somewhat relate with distributing computing. Just mentioning to avoid overlaps ...

I think we have the most important now.

Many thanks for the contributions!

Fixed one more thing, and merged. Looks great, thanks!


Single day selection.

I used the first calendar example from your demo. There the current date is selected when the calendar view is initiated. It is okay. But when I select another date it is selected but the current date is also kept selected. How can I deselect the current date and change it's background when another date is selected ?

You need to call notifyDateChanged() on the original date as well so you can update it on the dayBinder as done in the examples.


ADR: Analytic Reporting and Display Tech Selection

https://github.com/openedx/openedx-oars/pull/37 is in review

https://github.com/openedx/openedx-oars/blob/main/docs/decisions/0003_superset.rst


Quick open cant find all the files in the project

VSCode Version: 1.20.1
OS Version: Ubuntu 17.10 (Kubuntu)

Steps to Reproduce:

Open Quick-open with CTRL+P
Search for a file who has not been open for a while
File is not found

I have a large code base with a lot of files.
This command "find . -type f | wc -l" say I have 94687 files. (Probably some node_modules files there)
Everyting worked perfectly until a few months ago, I'm guessing around november/december. I love the Quick open-functionality and hate that I have to go find the files in the browser now instead.

Are you using git? Are the files that you cannot find modified in your working directory? Over here, quick open cannot find files that have been modified in my git working directory, unless I've open them manually, in which case they do appear, though under the "recently opened" category.
In my case, setting the option search.useRipgrep to false has also fixed the issue.

Over here, quick open cannot find files that have been modified in my git working directory

Please open a new issue @Espyo
@Froggi can you do the following

Run the command "Set log level" and change it to "Trace"
Run the search again
Show the search-related messages in the "Log (Window)" output panel

@roblourens
I did what you asked. I did a search on "warx". There is a file called "WArxListener.php" in folder "wondr-workspace/wondr/app/Plugin/WArx/Lib/Event/".
Search results came up empty.

I'm looking for the line after that which shows how we invoked ripgrep. Also whether there are any errors.

Do you mean this line?

[2018-03-07 18:53:47.486] [renderer1] [debug] SearchService#search rg --files --hidden --case-sensitive -g '!/.git' -g '!/.svn' -g '!/.hg' -g '!/CVS' -g '!/.DS_Store' -g '!/node_modules' -g '!**/bower_components' -g '!/wondr-docker' --no-ignore-parent --follow -- '.'

cwd: /home/marcus/Dokument/Work/wondr-workspace
Sibling clauses: {}

No errors that I can see.

Does it work in other folders?

I cant really find a pattern to what works and what doesnt work. My workspace has a few different main folders, and same problem in all of them. Mostly files I opened recently are found, but some others too.
I did add this line now in my settings as suggested by @Espyo.
"search.useRipgrep": false
And now the search works perfectly. Can it be some bug in ripgrep?

Are the missing files covered by a gitignore file?

No they are not. The files are tracked by git at all times.

Sorry for dropping this @Froggi is it still an issue? Can you try in the latest release?


Using fzf as search command, command palette hangs

Using the following configuration on oni v0.2.10:
module.exports = {
  "oni.useDefaultConfig": true,
  "oni.loadInitVim": true,
  "editor.fontSize": "34px",
  "editor.fontFamily": "Hack",
  "editor.completions.enabled": true,
  "editor.fullScreenOnStart": false,
  "oni.hideMenu": true,
  "tabs.showVimTabs": true,
  "editor.quickOpen.execCommand": "fzf -f '${search}'"
}

The command palette hangs:

Weird, a few questions -

Did this work correctly prior to the v0.2.10 release?
Are there any error message in the developer tools? Would it be possible to see the logs?
What's the current working directory?

I'll see if I can repro it in a bit.

@bryphe I'll try to investigate myself using your questions and will return to you ASAP.

@bryphe This is the console log:

I've been checking this issue out on my end and it also happens for me.
In order to support specifying commands with arguments, spawn needs to be given the shell: true property at L150, but that doesn't solve the issue entirely:
It seems that node will return Command failed when you childprocess.execSync it with fzf -f 'anything', and executing it with exec just hangs node completely.
This may be related to https://github.com/nodejs/node-v0.x-archive/issues/4590

@Metamist Thanks for investigating it deeper, do you have any insight if there's a workaround for it (using a library for spawning the process) or if we have to wait the node fix?

Thanks @Metamist and @badosu for the detailed notes!
It's brutal that we make the calls in two places, and have separate strategies - spawn and execSync -
because if one works, probably the other one will have issues.
I'm working on this PR right now: https://github.com/bryphe/oni/pull/764 which is refactoring to consolidate these two calls, and enable async population of the menu (as results come in from the fuzzy-finder, we'd update the menu, vs waiting for it to complete as we do today). I was planning on consolidate to exec but it's interesting to know there is a deal breaker there. I still need to actually do the consolidation but that's on deck to wire the QuickOpen up again.
Once my PR is in, we'll only have the single call, so we can settle on one of these strategies:

exec
spawn with {shell: true}

One other option with spawn is to split up the command + arguments, like:
editor.quickOpen.execCommand: 'fzf'
editor.quickOpen.execCommandArgs: ['-f', '${search}']
which means we might not need the {shell: true} parameter (that parameter doesn't always work as expected across all platforms, since the shells are different).
So there'd be three options:

exec
spawn with {shell: true}
spawn with command + args separated.

Let me know if you have any feedback on the PR or the strategy we should go with for spawning the process. Thanks again for your help and investigation on this!
Once that PR is in, I'm going to switch to using ripgrep by default via those settings - so that should make those settings less fragile (they are easy to break today, because they are non-default)

If you figure out what is causing the issue that I linked from the node archive, that would pretty much solve the issue completely. But rewriting this to be completely asynchronous would provide a much better user experience.
Separating the arguments before using spawn sounds like a decent idea, but seems redundant while we can simply use exec or spawn (however, spawn is more efficient without the shell: true flag, so opting to separate the arguments may be more beneficial)

With #764 & #793 , I refactored so that we only use spawn with shell: true. This works fine for the new ripgrep (rg) strategy, and I also tested the editor.quickOpen.execCommand with fzf, ag, and ls.
ag and ls seem to work fine as finder strategies, but unfortunately I still see issues with fzf -f '${search}'. It seems to be a more general problem - even if I run this from the node REPL:
require("child_process").spawnSync("fzf -f 'a'", [], {shell:true}).output[1].toString(), it's always empty. This is specific to fzf since ag, rg, and ls don't have the same behavior.
There might be some issues it has with the default shell (shell:true uses bin\sh on Linux), but I'm not sure.

@bryphe Just tested on 0.2.14.
It still hangs, but I guess this is related to some kind of icon fetching from Oni instead of the previous error.
See:

@bryphe, try running this in node REPL instead:
require("child_process").spawnSync("fzf -f 'a'", [], { stdio: ['inherit', 'pipe', 'pipe'], shell:true }).output[1].toString()

It only returns empty (or hangs when using spawn) if stdin is set not set to inherit.

Thanks for the tip @Metamist ! It's interesting, that gives me results now when running via the node REPL, but still not in Oni (electron renderer process). I guess process.stdin behaves differently in the electron renderer process than the node REPL.
I still don't quite understand why it isn't returning anything, while other command line utilities (like rg, ag, and find seem to be working OK).
@badosu - I wonder if that error message is being produced because fzf isn't returning anything?  We can check for a null selectedOption here and bail  https://github.com/bryphe/oni/blob/cf71dfcf32d32acc1c52026cc8a89b355a946cd1/browser/src/Services/QuickOpen/QuickOpen.ts#L185
But it seems like the root cause is that no results are making it from the fzf  process. Setting a breakpoint here is a good spot to check if the FinderProcess is actually sending back data:
https://github.com/bryphe/oni/blob/cf71dfcf32d32acc1c52026cc8a89b355a946cd1/browser/src/Services/QuickOpen/FinderProcess.ts#L41

@bryphe Gonna try your debugging suggestions and return with the results.
Fzf on my machine does not capture stdin and outputs regular stdout so I am not sure why it's a problem. If rg provides a nice fuzzy finder I will switch to it to not bother with this anymore.

@bryphe Just tested here both places you suggested and those parts are never reached by Oni when using Fzf.
I checked with the default finder and could see that data is not null and it's string contents, and that selectedOption would be accessible when selected. This was not the case with Fzf, it just hangs and never reach onData.

Hi @badosu - since we added the editor.quickOpen.caseSensitive setting, is the built-in ripgrep strategy sufficient now? I know #957 was a blocker too.  Any remaining issues besides that, or is it cool to close this?

@bryphe Feel free to close it, my concerns were adressed, even though this still may be a standing issue for some.

I don't like the built in ripgrep because it doesn't provide the same fuzzy search as CtrlP (order of letters doesn't matter in the default one, but does in CtrlP)
That's why I want to switch it out for fzf or something else, since I absolutely can't use the default one.
Currently I've just unbound the ctrl+p command to use vim-ctrlp instead, which works but I would like the actual gui.

The issue I am having with the current implementation is that if I want to enter a comonly named file nested into folders it is not scoped correctly.
e.g. AComponent/index.js, BComponent/index.js if I type ACoinde it actually does not filter BComponent.
I was hoping that the changes that are implemented in master would fix this, but after typing very slowly noticed this still happens.

This image demonstrates my issue with the default implementation:

It makes no sense to me, at all. Why is it matching the letters unordered?

Thanks @badosu & @Metamist for the feedback!

e.g. AComponent/index.js, BComponent/index.js if I type ACoinde it actually does not filter BComponent.

A repo would be great actually. I wonder if there is a folder above with an 'a' present? I created a /test/AComponent/index.js and /test/BComponent/index.js and couldn't reproduce it, but if I put another folder like /test/Aroot/AComponent/index.js and /test/Aroot/BComponent/index.js I saw the same behavior - but I'd be curious if there's a case where the root didn't behave that?
@Metamist - our filter/sort strategy is using a library called fuse, and we fuzzy-match the path and filename separately, which give us those strange results.
I'm considering having the quickopen strategy be configurable - with a 'fuse' strategy and a 'regex' strategy. For the campmod case, the regex would basically match c*a*m*p*m*d - checking those letters in order across the input path.

FYI, with #1124, there is a way to specify a regex-based strategy, by setting:
"editor.quickOpen.filterStrategy": "regex",

This is just the straight-up wildcard filter as described above. Let me know if you have any feedback. Unfortunately it didn't make it in the 0.2.19 release, but it is in master.


HL7 County Codes Don't Map in Sully File Properly

Explanation needed.

@MauriceReeves-usds , do we think this is still an issue?   Feel free to close if it does not need fixing.

@MauriceReeves-usds , I'm closing this.  Feel free to reopen if needed.


Remove unused headers

In preparation for partitioning the code between C/PG & C++/DuckDB, removes unused headers.

Overall looks good, only the mode for mkdir is something that we should change.

Yeah I'm not a big fan of it either, but that's the only PG dependency left. I've copied it over from the source. The other approach would be to thread it through but that feel overkill. Wdyt?

What if you simply add extern int pg_dir_create_mode;

Or include common/file_perm.h which is pretty small.

Or include common/file_perm.h which is pretty small.

Actually I think this is a good solution. Importing headers from common should be safe. These ones are used by client binaries like psql, so they never call elog.


removed hex-dec-bin.js

Describe the changes you have made in this PR -
removed Hec-dec-bin.js from the simulator/edit.html.erb which was creating error in hec-dec-bin tool
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

@satu0king @tachyons  merge this please

Coverage remained the same at 84.379% when pulling 9522830d9847699eade630f4bd7763aa26bab63a on ryuk156:removing-Hex-dec-bin.js into 90d88b43daa902d7a39a77b2daa12a54879c0389 on CircuitVerse:master.


Weather data

Changed the notebooks to use weather data, and updated the material further.

Reviewing notebooks in git is always a bit cumbersome, so I will add my comments here.

Overall it looks super nice! I think it's great, condensed introduction to machine learning and scikit-learn!

notebook 1-Intro: At some point you remove the "DATE" by weather_3years = weather.iloc[:365*3, 1:]. Maybe it would be clearer to use .drop(columns=['DATE']) to make this explicit?

Another interesting bonus exercise could be to use a machine learning model to measure the importance of individual features. I don't think this easily works with KNeighborsClassifier, but it would for instance work with linear regression or random forests.
(I used this in a course I gave with Johan some time ago, see at the bottom of the notebook here: https://github.com/florian-huber/python_data_exploration_tutorial/blob/master/notebooks/data_exploration_rental_bikes_dataset.ipynb). Maybe that would be interesting to feed to people that are quiet advanced with ML...

I agree with Florian, it looks great! I have some minor comments:

It maybe be useful to mention that weather_prediction_dataset.csv needs to be downloaded just before the cell where it's used first. On the course website it mentions that this file needs to be downloaded, but not where to store it. Perhaps it could be added there?
The "Weather prediction dataset" cell in 1-Intro.ipynb has an incomplete sentence near the end: "For now, we are intested in the question: how difficult is it to predict the month given the weather dataa
We predict the month given the weather data". I guess the last line and the extra a in dataa should simply be removed?
Small typos in 3-Model-pipeline.ipynb, in the cell where k nearest neighbors is introduced: "examlpe" should be "example"; "neirest" should be "nearest"


[BAEL-13506] - Split or move core-java-8 module

Closed in favor fo https://github.com/eugenp/tutorials/pull/7790


Custom user shaders

At the moment only the shaders who are prepackaged with the engine are usable.
Changes should be made to ShaderLibrary class so that it will also be able to load user supplied GLSL shaders
The public header has to be expanded to expose this feature to the user too

merged


API call when LuaTrain was invalid in ltn-data.lua:108

231.295 Error MainLoop.cpp:1284: Exception at tick 4236362: The mod LTN Manager (0.4.15) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LtnManager::on_tick (ID 0)
LuaTrain API call when LuaTrain was invalid.
stack traceback:
[C]: in function '__index'
__LtnManager__/scripts/ltn-data.lua:108: in function 'parse_train_status'
__LtnManager__/scripts/ltn-data.lua:513: in function 'callback'
__flib__/table.lua:255: in function <__flib__/table.lua:227>
(...tail calls...)
__LtnManager__/scripts/ltn-data.lua:1079: in function 'iterate'
__LtnManager__/control.lua:212: in function <__LtnManager__/control.lua:197>

Full bug report with links see forum post:
https://forums.factorio.com/viewtopic.php?p=579781#p579781

This has been fixed.


Using Ripple JS with Webpack

Good day, i was trying to use ripple JS with webpack some months back, and when going through the documentation it was not really specified how to use ripple JS with webpack, i would like to add the solution i found to your readme.md if you are comfortable with it as we are currently in the Hacktoberfest season in the developers community. Thanks and i look forward to your response.

Hi! I'm not sure if I understand correctly what you are talking about. Are you thinking of documenting that the user just has to do require('jquery.ripples') or import 'jquery.ripples' to use this when using bundlers? I guess it makes sense to cover that in the readme, however trivial it is. So I'm fine with you contributing that way, though I do then suggest to keep the language bundler-agnostic (maybe using Webpack as well as Rollup as examples).

Okay thanks. Yes the user just imports or require jquery.ripples, it took me a while before I was able to get it to work as a beginner so I thought I’d had something beginner friendly or Junior dev friendly. I think all module bundlers work in a similar manner so I’d just keep import or require jquery.ripples after installation using npm or yarn. That’s alright Yhh?
Sent from my iPhone

On Oct 3, 2021, at 10:23 PM, Pim Schreurs @.***> wrote:
Hi! I'm not sure if I understand correctly what you are talking about. Are you thinking of documenting that the user just has to do require('jquery.ripples') or import 'jquery.ripples' to use this when using bundlers? I guess it makes sense to cover that in the readme, however trivial it is. So I'm fine with you contributing that way, though I do then suggest to keep the language bundler-agnostic (maybe using Webpack as well as Rollup as examples).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


cors.io down

it's broke and has been for a while, requests to https://cors.io/?whatever 404's

Fixed by 61c6bf7058e35ab6c7e2ae756136440a1d39daf3