About pass multiple key value without repeat --data-value-yaml

Hi team!
I'm starting to explore the ytt technology recently and I have quick question about ytt related usage.
I know I could pass two parameter with something like below command.
 ytt -f variable.yml --data-value-yaml test=123 --data-value-yaml test2=456
And I feel its kind of redundant cause I got to type two --data-value-yaml
Therefore, I am wondering is there anyway I could make it something like below so that I don't need to mention --data-value-yaml twice
 ytt -f variable.yml --data-value-yaml (test=123, test2=456)
or
 ytt -f variable.yml --data-value-yaml {test=123, test2=456}
Thanks,
Len

@buzzerpuzzle glad to hear about your interest in ytt.
To template YAML ytt can receive data values as you have discovered already. It offers a host of options for providing your values; those come roughly in two flavours:

via flags --data-value*
via files (yaml docs annotated with #@data/values)

Depending on your situation you want to pick one, but you can mix and match to fit your needs.
As for --data-value-yaml, it can only receive a single key. Let's say you have
#! test.yaml
#@ load("@ytt:data", "data")

values: #@ data.values

You could do
ytt -f test.yaml --data-value-yaml 'test={"test-1": "one", "test-2": "two"}'

and get
values:
  test:
    test-1: one
    test-2: two

But I suggest not to use --data-value-yaml as a general-purpose entry point for your values. Instead, I would like to refer you to "how to use data values" in the docs.
Feel free to ask more questions here, if you don't find that helpful! 🙇🏻

What a great answer, @mamachanko!!! So thorough!  🙇🏻

Thanks for this explanation, @mamachanko!
In my case, I would probably need to add multiple KV and I might not able to get rid of multiple --data-value-yaml for this kind of case.


Automator: update common-files@master in istio/cri@master

Generated by Automator - 2020-02-26T21:54:07+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_cri
55d5a6cd2230856ebbe8acb145975aa7bfbd50ca
link
/test lint_cri

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


Allow masked_fill to handle non-boolean/hot tensor masks

Thanks @Lewis300 for the patch!
This patch is required to get Qwen1.5 0.5B bounty working:  https://github.com/tenstorrent/tt-buda-demos/issues/20
Bounty PR: https://github.com/tenstorrent/tt-buda-demos/pull/37
Lewis breaks his explanation down here: https://github.com/tenstorrent/tt-buda-demos/issues/20#issuecomment-2053728300

@JushBJJ first of all sorry for waiting a bit for a review on this change. However, the change looks good and it's approved!
One last think is to rebase it to the latest main and resolve minor conflicts. Once you mange to do so, I'm going to merge this change into the main branch :))
Thanks for pushing this effort together with rest of the team!


how to set the android notification periority in app info?

Expected Behaviour
How can I change the android notification settings from normal to priority, in app info.
Actual Behaviour
when I install the app and I go to the app info I see that the notification setting is normal, and that not making the app receive notification, but f I manually change the Notification setting to priority the app receive the notification, how can I change it programmatically, so when I install the app this setting should set to priority automatically?
Thanks
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 6
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova --version                                   8.1.0
cordova platform version android           7.1.4

Plugin version
cordova plugin version | grep phonegap-plugin-push   2.2.3

Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem

@monsurvey1 Per notification: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#priority-in-notifications
Delivery priority: https://developers.google.com/cloud-messaging/concept-options#setting-the-priority-of-a-message


Add Traefik certs update pipeline for maintenance machines

It can be simply added to existing traefik certs update page. Step upload certificates and reload traefik can be easily extended

solved in https://git.speag.com/oSparc/osparc-ops-deployment-configuration/-/merge_requests/490


Add non-recursive extensions for IScheduler allowing to return an IDisposable

This will enable more usages of non-recursive scheduling. Before C# 7.3, the compiler will complain about some ambiguities, so we increase the language version.

"System.Security.VerificationException : Operation could destabilize the runtime."?

Maybe https://github.com/dotnet/roslyn/issues/27382. Investigating.

Removing [assembly: AllowPartiallyTrustedCallers] makes it disappear. I have to investigate which direction to go here, the language version has to be able to progress.

More reference: https://twitter.com/jonskeet/status/1002876525119754240

Removing readonly from this also does the trick.

Thread says to remove APTCA:
https://twitter.com/onovotny/status/1012392223755980800

And the docs are changing to say this directly too: https://github.com/dotnet/docs/pull/6199


Add some keyword as an argument for list command

It seems to me that it is useful to specify keyword as an argument for list command, such today, or yesterday.
Like as:
rbnotes list today

keyword
meaning

today
a timestamp string for today

yesterday
a timestamp string for yesterday

week or this_week
timestamps of this week

last or last_week
timestamps of last week

I don't think that "month" (short for "this month") or "year" (short for "this year") is so useful, since it is easy enough to specify "202011" or "2020".

The keyword today and yesterday are clear.  However, this_week and last_week are a little bit unclear.  That is, what day is the start day of a week?  I prefer Monday as the start day of a week.
Hmm..., is it better to be a configurable thing?


ArgumentError: Before process_action callback :warn_about_not_setting_whodunnit has not been defined

Hi there.
When I run Rails.application.eager_load! in a Rails 5 app with paper_trail, it returns the following error:
ArgumentError: Before process_action callback :warn_about_not_setting_whodunnit has not been defined

Ruby 2.3.1
Rails <IP_ADDRESS>
PaperTrail 5.2.2

Looks like warn_about_not_setting_whodunnit isn't being recognized.
In Rails 5, ActiveSupport::Callbacks#skip_callback raises an ArgumentError if an unrecognized callback is removed / not present (https://github.com/rails/rails/pull/19029/files).

Also, ::PaperTrail.whodunnit isn't behaving as expected:
user_for_paper_trail
# ➙ "test"

::PaperTrail.whodunnit
# ➙ nil

Thanks for the bug report. Per our contributing guide please use our bug report template.

Thanks @jaredbeck. I can't seem to reproduce it anymore :/
My guess it was something cached by Spring. I might be wrong though, so if it happens again, I'll let you know.
Cheers!

The :warn_about_not_setting_whodunnit callback will probably be removed in the next major version of PT anyway.


Does it support the ARM architecture?

Do the experts know if CentOS can be deployed on an ARM architecture?
TRANS_BY_GPT4

yes, check the OS/ARCH of CentOS docker image: https://hub.docker.com/_/centos/tags


Equivalence proof between spec and conformance rules (#585)

Work in progress
There are still holes in the proofs about maps, but we are very confident that the lemmas are true. Since the main value of this PR is to force Ledger and Conformance rules to stay in sync, I think this can/should be merged even if the map lemmas are not proven in their entirety.

@williamdemeo @WhatisRT
I'd like some help with Ledger.Conformance.Equivalence.Map. One thing is just filling in the proofs, but what would be nicer would be to prove the properties for an arbitrary Theory. Right now they are talking about Ledger.Prelude things using the list model, and I couldn't figure out the right way to state them generically and still being able to use them for the list model.

I updated the branch by adding proofs of some lemmas in Ledger/Conway/Conformance/Equivalence/Map and then by merging master into this branch.  I don't believe the merge caused any issues or reverted some of your work, but if you notice anything wrong, please tell me and I'll fix it.

I can see if I find the time to have a look. The issue is that I may not be around much this month, since I still need to take a bunch of PTO.

ATTN: @williamdemeo @WhatisRT @Soupstraw I had to add (in b511366) a (DRepDeposit c , d) ∈ dep check to GOVCERT-deregdrep in Conformance. This check is required by the spec and without it the equivalence doesn't hold.
Here is the final main result:
https://github.com/IntersectMBO/formal-ledger-specifications/blob/cf35c285ae7a1df346480fdf76aa6a233a81fe25/src/Ledger/Conway/Conformance/Equivalence.agda#L420-L431


use spotify track id as primary key of track_metadata and use it to reference it from song_requests

Closed in 471b0eb7a4fa09e95e518926a1b4702229096975


#1087 Updating ASP.NET references in architecture guide

This is my first attempt at an open source contribution, anywhere, so I thought it best to start tiny.
I replaced all of the ASP.NET 5 references and updated the download links to match what the info found on http://www.asp.net/core.
I look forward to working on this project, I think it is a really great idea.

Thanks for reaching out and contributing to our project.  A small pull request is a great place to start and we are happy to help you along the way.  You may already know this but here is a helpful blog post or two we have that helps folks on their first pull request or two to open source projects:  http://www.davepaquette.com/archive/2016/01/24/Submitting-Your-First-Pull-request.aspx and http://stevejgordon.co.uk/contributing-to-allready
Also if you add something like 'Fixes 1087' in your comments on a commit or in this Pull Request (PR) thread GitHub will automatically close that issue when this is accepted.
Thanks again!

Hey Tony, great to be added to the team.
Thanks for the links. They have been duly bookmarked. Quick question about
process for this project: Is there a standard way I should "raise my hand"
to say I would like to work on an issue? Is it sufficient to just comment
on the issue? Contributing.md doesn't really cover that part.
Understood about the "Fixes" commit comment. Guess I was being too timid to
presume that my first PR would actually "fix" something.
On to the next issue!
On Thu, Aug 11, 2016 at 3:09 PM, Tony Surma<EMAIL_ADDRESS>wrote:

Merged #1126 https://github.com/HTBox/allReady/pull/1126.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HTBox/allReady/pull/1126#event-753336876, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AARP7nSxBdHeGMrEaETYTp1qeOCX0FTvks5qe52YgaJpZM4Jiiy6
.


bug: Incorrect syntax when using setValue tool

There's a change the model responses with incorrect ' inside of setValue.
This does not throw, but typing will stop unexpectedly
Possible solutions:

in prompt, remind the LLM about this issue
catch this error during parsing, then retry
use a different response format


Revised dangerfile ES module detection regex

It should now properly ignore flowtype-related import/export statements, as they aren't actually related to ES modules at all and will not trigger auto strict-mode.
@thymikee & @cpojer I added a commented link to a test suite of sorts. Should be good to go.

thanks!


Change the default Security Level to 2

OTC voted to increase the default security level from 1 to 2, so this PR implements that decision.

topic: Increase the default security level from 1 to 2 in master
Proposed by Matt Caswell
Public: yes
opened: 2021-09-21
closed: 2021-09-21
accepted:  yes  (for: 7, against: 1, abstained: 1, not voted: 1)

@mattcaswell could you please update GOST engine to gost-engine/engine@a6014f3 ? It should fix the external tests.

Done

This pull request is ready to merge

Merged to master. Thanks!


Extract non_pooled_task_slot_count into a configuration param

Dear Airflow Maintainers,
Please accept the following PR that
Addresses the following issues (links to issues addressed by this PR) : None. This extracts the non_pooled_task_slot_count in to a configuration param. This param guides the number of concurrent tasks that can be run across all DAGs in the default pool (i.e. non-pooled DAGs).
Reminder to contributors:
You must add an Apache License header to all new files
Please squash your commits when possible and follow the 7 rules of good Git commits

Coverage remained the same at 67.805% when pulling d9b43bd6052b5ac80b18d2f6c80274d3b6916200 on r39132:master into cab436a69ad66038394b457f330e39709569c740 on airbnb:master.


Fix flakiness of have-key-with-value test

The gomega have-key-with value test was flaky because of ranging over a map in Go is not deterministic so the order that submatchers being passed to gomega.And was unpredictable. This caused the test to sometimes pass and sometimes fail.
This commit fixes this by ensuring that mapToGomega sorts keys before iterating through map values.

@OmarDarwish Thanks for this!


[Feature][Field] Url

I tried adding a new prop => linkText, to show a custom a link text in the Cell, I was not able too 😞

@DiesIrae don't I also need to up the package version ?

@DiesIrae don't I also need to up the package version ?

Yes! I had written this in my previous review but it got lost and I forgot to rewrite it!


"Downloading" files within my machine

Hi,
I noticed that the API allows download via url, but what would I do if I am to use a pdb file within my machine's file system?

Hi @Raiyan-Rizwan,
Please see https://github.com/molstar/mol-view-spec/issues/18 for details.
Local files aren't supported because the resulting MVS file wouldn't work on other machines. You can always upload your data to S3, Google Drive, Dropbox, ...
Best,
Sebastian

Good Afternoon,
So I am using Google Drive as a web platform to host the pdb files I am going to visualize on Molstar. I get the file from google drive and produce the download link using the following code:
def get_drive_download_link(drive_url):
"""
Converts a Google Drive sharing URL into a direct download link.
"""
file_id = drive_url.split('/')[-2]
return f'https://drive.google.com/uc?export=download&id={file_id}'
Then I run the download link through the builder(made using molviewspec built in functions). However, I get the following error:

Indeed, thanks for giving this a try. We'll look into this, though I'm not sure if this is fixable in Mol*/MolViewSpec or if this is a more general issue with how Google Drive decides to share files.

Good Afternoon,
Were you guys able to get to what is causing the issue? Please let me know.
Thanks

@midlik Do you think this can be addressed in the Mol* code or is this a limitation of Google Drive?

Hi, this looks as a CORS problem.
So there is no way of addressing this in Mol*.
The files must be served with CORS enabled (and unfortunately I don't think GoogleDrive allows this).

If you have no possibility of hosting those structure files with CORS enabled, you can still use relative URL and pack you MVSJ + structure files into a MVSX file (https://molstar.org/mol-view-spec-docs/#mvsx). Something like this:
builder.download(url='./my-structure.cif')
...
builder.save_state(destination='example.mvsj')

import zipfile
with zipfile.ZipFile('example.mvsx', mode='w') as z:
    z.write('example.mvsj', arcname='index.mvsj')
    z.write('my-structure.cif', arcname='my-structure.cif')

It worked with S3. Thanks!

The following is an example from the code you guys provided within your Python Collab Notebook:
**builder = mvs.create_builder()
structure1 = (
builder.download(url="https://files.wwpdb.org/download/1oj6.cif")
.parse(format="mmcif")
.assembly_structure()
)
1st structure colored in orange
structure1.component(selector='polymer').representation(type='cartoon').color(color='#e19039')
structure1.component(selector='ligand').representation(type='ball_and_stick').color(color='#eec190')
structure2 = (
builder.download(url="https://files.wwpdb.org/download/5mjd.cif")
.parse(format="mmcif")
.assembly_structure()
# move these coordinates to align both structures
.transform(
rotation=[-0.39652203922082313, 0.918022802798312, 0.002099036562725462, 0.9068461182538327, 0.39133670281585825, 0.1564790811487865, 0.14282993460796656, 0.06395090751149791, -0.9876790426086504],
translation=[-17.636085896690037, 7.970761314734439, 88.54613248028247]
)
)
2nd structure colored in blue
structure2.component(selector='polymer').representation(type='cartoon').color(color='#4b7fcc')
structure2.component(selector='ligand').representation(type='ball_and_stick').color(color='#9cb8e3')
print(builder.get_state())**
I have used a similar structure in my code to represent two different protein structures together. However, When I directly convert the JSON form of the state into a URL and use it on the web, I get a "URI too long" error. However, you guys were successfully able to visualize it. May I ask what technique you guys used for the URL conversion? It would be very helpful for me.
Thanks

Hello,
Can you guys please let me know what technique you used to convert the output of builder..get_state(), which is in JSON format to URL? Would be very helpful.
Thanks

Hi Raiyan,
I understand that your question is about using the mvs-data URL parameter. Unfortunately, URL length is limited in most browsers and only very simple MVS views fit into this limit. If you have a more complex view, you'll have to use a different method of sharing, e.g. host the file somewhere and use the mvs-url parameter.
Find some documentation here: http://molstar.org/mol-view-spec-docs/mvs-molstar-extension/

Thank you guys for the response to my last question. I was able to host the file on Amazon AWS and view the structure.
I do have one more issue where I initially specify in my code that the protein(cluster) is to be represented by type "ball_and_stick". However after I visualize it, it appears in type "cartoon" as I posted right below:

Then when I manually switch the type from "ball_and_stick" to "cartoon" and then back to "ball_and_stick", that's when it shows the structure in the proper "ball_and_stick" format as I posted below:

So why doesn't it directly show it in the proper "ball_and_stick" format? Can you please check if this is a bug on your end?
Thanks a lot.

Hi,
looking at the pictures, there are both ball-and-stick.
The difference is that the first one uses MolViewSpec parameters (larger ball size) while the second one uses default Molstar parameters for ball-and-stick.

In the current MVS implementation, we don't have any mechanism to specify the parameter values, unfortunately.


The default, one-arg behaviors for Html default to unsafe behavior.

I was paging through the API this morning and discovered that the Html class contains facilities for escaping text passed into it, but the behavior is opt-in instead of opt out. The one-arg constructors explicitly disable the behavior:
class Html private[api] (elements: immutable.Seq[Html], text: String, escape: Boolean) extends BufferedContent[Html](elements, text) {
  def this(text: String) = this(Nil, Formats.safe(text), false)
  def this(elements: immutable.Seq[Html]) = this(elements, "", false)

This seems like bad practice for library consumers. Is there reasoning why this was done or could this be defaulted to true in a future release?

Calling HTML() itself is the escape behavior -- you have to wrap text in it explicitly in a Twirl template.  Html() is needed for rendering page fragments, but it's not something you should call from Java code or on unvalidated/untrusted user input.
There is a youtube video talking about good and bad practice: https://youtu.be/gCRWvlmX7Is?t=18m9s

Wouldn't be the first time we were using something wrong. Cheers.


KAFKA-5507: Check classpath empty in kafka-run-class.sh

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5646/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5660/
Test PASSed (JDK 7 and Scala 2.11).

@ijuma @Ishiihara @guozhangwang could you review this PR, please?

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6061/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6076/
Test PASSed (JDK 7 and Scala 2.11).

Who should do manual testing? Me or someone of commiters?

One of the committers, hopefully I'll get to it soon.


Upload tutorial video

I will finish this up and get it to you

Video appears after users verify emails on their first time logging in. It has a "skip" function which routes to the profile generation page.

In addition to a "Skip" function. There should be a link to the video transcript, provided below:

Welcome to Weave. This 4 minute tutorial will guide you in how to create a faculty profile.
First, begin by entering your name and preferred email.
You may complete the “Hospital Affiliations” section by typing an institution’s name, seen here with Cambridge Health Alliance. Or, you may click the dialogue box to view the drop down menu and select an institution. This logic of selection will be seen in many other sections below.
For the “Clinical Interests” and “Professional Interests” sections, you may select tags as you would with “Hospital Affiliations.” You may also create your own tags by typing out the tag and pressing the enter key.
In the “Parts of Me” section, there are no suggested tags. This is a section in which you may create tags that describe aspects of your identity that you would like to share with students and faculty on Weave. Some examples are provided here. Please feel empowered to share any personally meaningful information in this section.
For the “Activities I Enjoy” section, you may select tags or create your own tags. Here, we have created “scuba-diving” and “bungee-jumping,” which were not available in the previous list. For more information on how to create tags, please visit our “Help” page.
In this text box, you may share additional information with mentees.
On the top left hand side, you may upload an image from your computer or device by clicking “Choose file”. The image can then be cropped and adjusted before saving the image by clicking “Save image”.
Be sure to use the “I am available to mentor in the following ways” section to communicate any other opportunities that you are willing to offer mentees.
The cadence section allows you to demonstrate, on average, how often you would like to meet with mentees.
Click “Preview Profile” to see how your profile will appear on Weave.
You may at anytime adjust the “on/off” toggle for your profile. When “on”, the toggle will turn blue and this will allow your profile to be searched by mentees. When “off”, your profile will be hidden from others until you flip the toggle back to the “on” position.
When you are satisfied with how your profile looks, you may publish your profile! This is how your profile is saved in our system. If you would like to only save your profile and return to edit at a later time, please turn your “on/off” toggle to the “off” position and publish your profile.
To view your profile in the view that is searchable to students, navigate to the homepage and click on “Browse all faculty profiles.” You may scroll to find the snapshot of your profile. If you turn the toggle to “off” and refresh the page, your profile will not be viewable or searchable by students or faculty. When the toggle is “on” and the page is refreshed, your profile will be viewable again.
When you are finished, you may log out.
Of note, for your security, you will be automatically logged off 1 hour after you initially log into Weave.
For additional questions, please visit our “Help” page or contact us at<EMAIL_ADDRESS>Thank you.

Razzi, can you put the video tutorial in the white space here, after faculty have confirmed log in?

I put the video - uploaded from my personal Vimeo so it has my name on it. Looks pretty good though. The video is public - need a paid subscription for them, to do anything fancier.
Not sure what to do with the transcript, so I'll keep this open, but remove high priority. FWIW the transcript is the description of the Vimeo video.

This looks really good. I like that the create profile is right under the video. I think the page makes a lot of sense. I also think it is fine to have to video for every log in (rather than just the first) because it doesn't autoplay and can easily be skipped.
I think now we are coming up to a couple of interwoven tasks. #10 is to add the tutorial to the help page. This will make a lot more sense and be more sustainable if we first do #14 which is to transition the help page to HTML.
I don't feel strongly about making a button for the video transcript available when people log in, though I do think this should be available as a static page linked to from the help page (just below the video once it is there)

This looks great!
Three recommendations:

Can we move the video slightly up, so people don't have to scroll to see
the "Continue to home" button? "Continue to home" is important because if
you click directly on "HMS Weave," it looks like you haven't logged in yet.
I agree with Jon about Issue #10. For faculty who skip the tutorial then
realize they don't know how to make a faculty profile and want to watch the
video, they need a way to get back to the video tutorial without having to
log out and log back in.
Once the video is on the Help page, let's include the following sentence
on the initial confirm log-in page: "You may return to this tutorial at any
time by visiting the "Help" page."

On Thu, Oct 4, 2018 at 7:10 AM JonKusner<EMAIL_ADDRESS>wrote:

This looks really good. I like that the create profile is right under the
video. I think the page makes a lot of sense. I also think it is fine to
have to video for every log in (rather than just the first) because it
doesn't autoplay and can easily be skipped.
I think now we are coming up to a couple of interwoven tasks. #10
https://github.com/razzius/hms-weave/issues/10 is to add the tutorial
to the help page. This will make a lot more sense and be more sustainable
if we first do #14 https://github.com/razzius/hms-weave/issues/14 which
is to transition the help page to HTML.
I don't feel strongly about making a button for the video transcript
available when people log in, though I do think this should be available as
a static page linked to from the help page (just below the video once it is
there)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/razzius/hms-weave/issues/7#issuecomment-427033635,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApxaUcsB-vgUt4YVjpTMoZvTCjnUHyA9ks5uhhbOgaJpZM4XFMfa
.

Can we actually have two buttons on the login confirmation page?

Create profile
Continue to home

On Fri, Oct 5, 2018 at 5:26 AM JonKusner<EMAIL_ADDRESS>wrote:

Yeah I really agree with putting the "create profile" button higher. I
just inadvertently clicked the home button after signing in an was logged
out. It would be a shame if that happened to others.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/razzius/hms-weave/issues/7#issuecomment-427347622,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApxaUXcBAm8SoX2E9wfEbPPaft2WLQddks5uh0_rgaJpZM4XFMfa
.

I made it so that you are logged in even if you don't click "continue to home" / "edit profile"

I'm not convinced that we need 2 buttons on the login confirmation page, now that you can use the top-left weave logo immediately and stay logged in. Closing this issue as the original ask has been adequately met, in my opinion. Feel free to create follow-up issues @JonKusner 	@jjchen20


CB-9759 Add package versions based on their presence

Before merging, can we talk about this issue tomorrow morning?


phaser PostFX examples not working

Version

Phaser Version: Phaser v3.55.2 (WebGL | Web Audio)

Operating system: macos 11.2.3

Browser: Chrome

Description

The examples on phaser.io involving PostFX do not seem to work, for example, the Color Post Fx Pipeline and Tilelayer Pipeline. The screen is blank on every selectable version of Phaser 3 that I have tried. I am writing this issue here because it isn't possible to create an issue on the phaser 3 examples repo.
Example Test Code

I think the issue lies here. I pulled this file into my codebase. Below example is from here: https://github.com/photonstorm/phaser3-examples/blob/e5ec94a68a9393082d797645d0e830e2f6112bf1/public/assets/pipelines/PlasmaPostFX.js
It appears that the API has changed. On line 35, TypeScript is complaining that super constructor does not take an object that has a uniforms property.
const fragShader = `
#define SHADER_NAME PLASMA_FS

precision mediump float;

uniform sampler2D uMainSampler;
uniform float uTime;
uniform vec2 uResolution;

varying vec2 outTexCoord;

void main()
{
    vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / uResolution.xy;

    float x = p.x;
    float y = p.y;
    float mov0 = x+y+cos(sin(uTime)*2.0)*100.+sin(x/100.)*1000.;
    float mov1 = y / 0.9 +  uTime;
    float mov2 = x / 0.2;
    float c1 = abs(sin(mov1+uTime)/2.+mov2/2.-mov1-mov2+uTime);
    float c2 = abs(sin(c1+sin(mov0/1000.+uTime)+sin(y/40.+uTime)+sin((x+y)/100.)*3.));
    float c3 = abs(sin(c2+cos(mov1+mov2+c2)+cos(mov2)+sin(x/1000.)));

    vec4 pixel = texture2D(uMainSampler, outTexCoord);

    gl_FragColor = pixel * vec4(c1, c2, c3, 1);
}
`;

export default class PlasmaPostFX extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline
{
    constructor (game)
    {
        super({
            game,
            name: 'PlasmaPostFX',
            fragShader,
            uniforms: [
                'uMainSampler',
                'uTime',
                'uResolution'
            ]
        });
    }

    onPreRender ()
    {
        this.set1f('uTime', this.game.loop.time / 1000);
    }

    onDraw (renderTarget)
    {
        this.set2f('uResolution', renderTarget.width, renderTarget.height);

        this.bindAndDraw(renderTarget);
    }
}

Additional Information

I have tried on Firefox, and I have sent the offending links to friends on Windows and Linux platforms, and they report that these examples also fail to run. Coloring the tiles and sprites at runtime with shaders would be very helpful for our use case so if anyone has any information I would be thankful!

Here is the same demo on phaser.io, works fine in my win10, chrome/firefox browser.

Any news on this? I'm still trying to figure out how to make this stuff work, since examples seem outdated.

It looks like the issue you're encountering is related to changes in the Phaser API since the examples were created. The error message you're seeing is likely due to a change in the way the PostFXPipeline constructor works.
To fix the error, you can update the constructor call in the PlasmaPostFX class to use the new syntax. Instead of passing an object with game, name, fragShader, and uniforms properties, you can pass each of these properties as separate arguments:
export default class PlasmaPostFX extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline
{
constructor (game)
{
super(game, new Phaser.Renderer.WebGL.Pipelines.FragmentShader(fragShader, [
{ name: 'uMainSampler', type: '1i', value: 0 },
{ name: 'uTime', type: '1f', value: 0 },
{ name: 'uResolution', type: '2f', value: [0, 0] }
]));
}
onPreRender ()
{
    this.set1f('uTime', this.game.loop.time / 1000);
}

onDraw (renderTarget)
{
    this.set2f('uResolution', renderTarget.width, renderTarget.height);

    this.bindAndDraw(renderTarget);
}

}
This should resolve the error and allow the example to run as expected.
I hope this helps! Let me know if you have any further questions or issues.

SlimHR

Closing as we've fixed all of these for 3.60 and added lots of new examples her https://labs.phaser.io/index.html?dir=3.60/fx/&q=


Struggling with network training

Hello,
I am trying to train network such that it will find some object in image. For input I created Volume(someArray,Shape(64,64,1,batchSize)). Images are grayscale with size 64x64. For someArray I created array of size 6464batchSize and it is filled with values of pixels such that every new image begins at position k*4096.
As output layer I used Softmax. Idea was that for every column in image I create separate class. For some reason though, during training I get "Error during calculation". This is because network will eventually adjust its weights, so that all weights coming from convolutional layer are set to very big numbers and then to Infinity.
So I wanted to ask, am I working with volumes right? If I want to train network on multiple images, do I do it in a way, that all images are in one array,one image after another, and network will know how to parse the array according to volume's dimensions? Can someone point me where could I look for errors in my code?

Hi,

You could try to decrease the learning rate. This may prevent the gradient explosion
I think you are using volumes the correct way. [64x64x1xBatchSize] is the correct shape. If you want to teach using more sample just present another volume to the network (you don't have to fit all your data into one batch).

Thank you for answering. So I set learning rate to 0.001 and it looks like it might work. I also had to modify input values so they would be between 0 and 1.
In case I would want to teach network using more batches, I could fit it into one cycle with multiple net.Train() commands or I would just had more cycles where I would train one batch, than the others?

You could look at Mnist demo to get some inspiration:

The learning loop
Batch construction

It is one cycle that trains one batch at the time.


ZF3 support

most modules are now rdy for zf3, we have to update also some parts like the __invoke in the Factories and ceck some old dependencies, if we can remove some of them.

[x] __invoke added and createService removed
[x] set min PHP 5.6
[x] set min zf-mvc 3.0.0 and zf-servicemanager 3.0.0
[x] remove old dependencies, which we dont need for zf3
[x] waiting for dependencies, that they support zf3

https://github.com/kokspflanze/PServerCore/releases/tag/1.0.0


Add timeseries to ratings schema

Just noticed that ESP was showing up as not a timeseries, then noticed that all sources where showing up as not a time series, whether they are or not.

Tracked it down to the ratings schema, which was missing the timeseries property.

SHIT. nice catch.


Proofing tools

I have error "this product can't be installed on the selected update channel" if I try to install any Proofing Tools, like metioned in example. Tryed many PC's, joined to domain or not, in different network providers.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 626ac155-c2df-20a5-a23f-14921c0c72ae
Version Independent ID: 63a9307c-d246-bd15-9a2b-178b8a49580b
Content: Deploy Office 2019 (for IT Pros)
Content Source: DeployOffice/office2019/deploy.md
Product: office-perpetual-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

@dimmkiss -- the product team is aware of this problem and is investigating. We'll provide more info when it's available.  Thanks.

Thanks.

Same problem here also. How do we get notified when this works?

I'll respond back here. Thanks.

I'm running into the same error when trying to install ProPlus2019Volume only using build 16.0.10337.20021. This is what my config.xml looks like:

Could this share the same root cause with #172?

@zhiqing1993 -- yes, it's likely it's the same root cause. Product team is investigating the overall problem.

I've figured out what my problem was: I wasn't using the official ODT setup.exe tool, instead I was using the setup.exe from the build. With the latest ODT, I no longer run into this error. Hope that helps.

What is the latest?, I downloaded it yesterday from MPN site.

That's great, to bad it wasn't linked to from MPN site. This tool is very new to me :)
Wish it was better documented, to see what options I can use. I had to google to find the language codes for instance.

@neslekkim -- after the table of Office 2019 relevant settings for the xml file, there is a link to Configuration options for the Office Deployment Tool. It might be easy to overlook that link after the long table, so I'll put it in a callout so it stands out more. Thanks.

ah, great!, exactly what I needed. I see now I was a bit fast, I didn't see the green big box :)

Ah, great, I was really wondering how I could miss that box :)

Using the Office Customization Tool, I can't add German proofing tools, although in the sample configuration.xml file provided on this page it looks possible:

I can only add the full UI package, what I don't need.

When the bug for proofing tools in the latest ODT will be fixed. I've get the same error "this product can't be installed on the selected update channel".

Please download and use the latest version of the ODT here:
https://www.microsoft.com/en-us/download/details.aspx?id=49117
Version 16.0.11107.33602 resolves an issue which may have prevented installation of Proofing Tools or Language Packs.

@Bebbub -- The Office Customization Tool doesn't currently support adding proofing tools, but the product team is looking into adding that functionality.  The UI is a bit confusing because it looks like you can add proofing tools. To actually add proofing tools, like in the sample xml in the article, make all your other selections in the Office Customization Tool and export the xml file. Then manually add the proofing tool info into that xml, like shown in the sample xml in the article. Hope that helps.

I have not understand why when I click the links try to download files it show me like below. It is not office 2019 it is still 2016 16.0.9126.2315.
Version:
2016
File Name:
officedeploymenttool_11107-33602.exe
Date Published:
11/12/2018
File Size:
2.7 MB

One more comments. For my understanding office v 15.x is 2013 and v 16.x is 2016 then 2019 should be v 17.x right?

@gexqin --Office 2019 also uses the 16.x version numbering. The product team did this to make certain update/upgrade scenarios less complicated.  And even though the ODT download page says "2016" and the ODT s version 16.0.####.####, the latest ODT can also be used with Office 2019 deployments.


HTML syntax highlighting without "template:" in front of it

Thanks very much for this package!
I use template strings for rendering HTML, and in order to get the syntax highlighting I create an object and set the value of of template, but this is unnecessary for me, since I'm not using a framework that uses that structure.
Would it be possible to implement something like this?
const html =
/** @html */
`

  Hello world

`

It looks like atom-typescript has something like this but I don't understand how to define grammars well enough to implement it myself (^^ゞ

Yes. Because this is a more frequent request I'm developing an option via the package settings to extend the grammar. Not sure when I'll be able to finish it - hopefully soon. In essence you will be able to specify the template tag and the scope for your chosen languages
.e.g. to support two forms of template handling html and sql the config would be.
/* @html */:text.html.basic, sql:source.sql

@richardkazuomiller I've just published 2.42.0 that adds support for extending the grammar. Please see the README section here for more information.
Please not that you must use the /**@ html */ immediately prior to the backtick. No intervening spaces nor new lines.

Works great. Thanks!


update to work with pymoo >= 0.5

I modified the code and tutorials so that they work with the latest version of pymoo

Thanks. It seems it changes some results
FAILED tests/test_moo.py::TestMOO::test_train_pts_known - AssertionError: 2.036188329071277 not less than 1.5

Not sure we can do anything, just relax the test tolerance to make it pass.

Hello, it's because I drastically reduced the number of optimization steps in test functions to shorten the testing time, as the goal is more to see that there is no crash than to assert the precision of the method. I will finish these modifications next week :)

I still don't have the reviewer's role so I let you validate this merge !

@relf


Styling, spacing, sizing

This is purely cosmetic, but we may want to spend more time with the header sizes, header spacing, and so forth as we send this out to more people. For example, the links on the recipes page jump out as being large compared to the styling of other pages. Again, not critical, but just something to think about

fully support. I don't think we were rigorous about keeping the use of headers consistent across pages. More CSS styling could be nice too


Compatible with Rigify?

Hi there,
Its me again. I was wondering if you had ever attempted to use your plugin after having altered positions of bones in the meta-rig and then generating a complete rig with the Rigify add-on? I assumed that the bones that it generates would act the same as the standard meta-rig, however all that happens when I begin tracking and move around is a slight wiggle/swivel of the hips.
If you don't have any suggestions, that's okay, I just thought I'd ask.
Thanks!

Hi,
I don't understand what you mean by "after having altered positions of bones in the meta-rig and then generating a complete rig with the Rigify add-on".
I use mainly rigify armatures and modify them to suit my 3D models, and it works fine. Be careful, however ! If you have more than one armature in a project, don't forget to select the one you want to do the capture for at the top of the add-on configuration panel.


create license-whitelist.json in extra repo (+blacklist)

like this: https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json
into this repo: https://github.com/OPEN-NEXT/LOSH-Licenses
JSON includes:

name
URL to legal code
SPDX ID

https://raw.githubusercontent.com/OPEN-NEXT/LOSH/master/Data Mapping/SPDX-blacklist

true! will change that now

dude, you're super fast! I created this issue minutes ago

plain text lists created here: https://github.com/OPEN-NEXT/LOSH-Licenses/

dude, you're super fast! I created this issue minutes ago

Haha I mean I'm pretty late in general to the issues in the LOSH-related repos...

done


Does Pinot hybrid table allowed to be created with different schema

Context
We have created a hybrid table succesfully with different schema in realtime and offline part.
{
"OFFLINE": {
"tableName": "rta_temp_test_OFFLINE",
"tableType": "OFFLINE",
"segmentsConfig": {
"schemaName": "**rta_temp_test1**",
...
"REALTIME": {
"tableName": "rta_temp_test_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"schemaName": "**rta_temp_test**",
...
}

However we also find code, which infers realtime and offline table in one hybrid table should have one schema.
https://github.com/apache/pinot/blob/master/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/TableConfigsRestletResource.java#L451-L464 cc: @ankitsultana
Does Pinot hybrid table allowed to be created with different schema?

No. I think we didn't enforce that before, but no longer allow such configuration going forward

thanks @Jackie-Jiang for clarification.

If this is not enforced already can we start enforcing it? @deemoliu you were able to create the hybrid table with different schemas with 0.11?

If this is not enforced already can we start enforcing it? @deemoliu you were able to create the hybrid table with different schemas with 0.11?

there is an attached example in the description of this issue.

The question was whether we hit this issue with 0.11 or a later version. Anyways looks like there's a PR already for this #11591

FYI, #11591 will enforce schema name to be the same as raw table config for each table, which also indices that hybrid table must use the same schema (both offline and real-time side have same raw table name).
Why are you still running on 0.11? Are you planning to directly upgrade to 1.0? That is violating the upgrade policy of not jumping release versions

@Jackie-Jiang : we do upgrades incrementally (1 minor version at a time). Some clusters are using 0.11, some are running 0.12. We have quite a large deployment and it's not easy to keep rolling out new versions.


CI: install etcd in action

close #3490

Codecov Report
Patch coverage has no change and project coverage change: -31.35 :warning:

Comparison is base (b9515a1) 56.24% compared to head (61e4305) 24.90%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3494       +/-   ##
===========================================
- Coverage   56.24%   24.90%   -31.35%
===========================================
  Files         149       24      -125
  Lines       36303    14094    -22209
===========================================
- Hits        20420     3510    -16910
+ Misses      13647    10206     -3441
+ Partials     2236      378     -1858

see 146 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Adjusted the PowerShell script

PowerShell script incorrectly indicated that the MAC address would not change. It does change, so updated the wording. Also fixed one of the variables referenced toward the bottom of the script.
Lastly, for clarity, replicated the line from the portal steps that indicate that the VM will reboot to apply the change.

Docs Build status updates of commit fd24e82:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

support/azure/virtual-machines/reset-network-interface.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


bug: "cannot parse UUID" on models.DB.Create

Description

Description
Apologies if this is the wrong place for this. I am receiving this issue on a database seeding grift. There are a number of boilerplate resources that I create and insert into the DB (PostGreSQL) using models.DB.Create, and the majority of these work fine, but for one in particular I receive an error much like the below:
2023/06/25 20:50:32 cannot parse UUID {"id":"20e0161d-424e-4428-b041-b961f9ccad01","file_location":"templates/minimalist.json","ats":false,"created_at":"2023-06-25T20:50:32.585714+10:00","updated_at":"2023-06-25T20:50:32.585714+10:00"}

The row is inserted, but the grift fails and exits with code 255.

Expected Behavior
That there is either an issue with the generated UUID and the insert fails, or the insert succeeds, and the grift exits with appropriate exit code.

Actual Behavior
When running buffalo task db:seed, data is inserted, but the task fails.

To Reproduce
No response
Additional Context

Details

Paste the output of `buffalo info` here!

Closing this as I have resolved the issue. In case anyone comes here from a search with the same issue - the problem was twofold for me:
[ ] I needed an additional struct field for the ID of the owning side of the relation
[ ] I needed to use the Eager qualifier for the models.DB.Create() call


Live reload does not work with adding new state to a component

Hello,
I try adding new state to a component and save, but it does not get updated.
I am not sure this is known limitation or not because I don't see it mentioned in the doc.
Thank you.

@utv more details would be needed. But if you are referring to the initial Redux state then that is correct it shouldn't update the initial state on a hot reload.

It is a state of a component, I don't do Redux.
I don't use it for a while so I don't remember the detail.
Thank you very much for your response.


month and year implementation

Do we have month and year implementation?

Hi @mehulpamale,
No, we don't have that implementation right now.
This package is made for converting DateTime into days ago. If the DateTime exceeds 7 days, It displays the Date and Time in the provided format.
timeago package includes that feature you are asking for. So I don't think we should implement that feature in this package.
I will listen to more views and opinions on this topic before deciding whether to implement it or not.
Thanks,
Nikhil


issues/46: Format indirect dependencies into their own block

Fixes: https://github.com/komuw/ote/issues/46

Codecov Report
Patch coverage: 82.64% and project coverage change: -0.05% :warning:

Comparison is base (01c8a15) 68.84% compared to head (a98788d) 68.80%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   68.84%   68.80%   -0.05%
==========================================
  Files           6        6
  Lines         504      529      +25
==========================================
+ Hits          347      364      +17
- Misses        131      136       +5
- Partials       26       29       +3

Files Changed
Coverage Δ

import.go
62.62% <0.00%> (ø)

ote.go
47.14% <ø> (ø)

modfile.go
75.00% <82.90%> (-1.51%)
:arrow_down:

comment.go
87.17% <100.00%> (+1.06%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Create a user table

Going the Doctrine way: create entity and let doctrine create the store.

Solved by 67f65fe


Discussion: About Sticky headers

Dear @DavideBelsole
Currently, I am using multiple AnimatedSliverList inside flutter_sticky_header.
I there way to animate across these slivers? I don't think it will be easy solution yeah?
Jas

No, it is not possible to animate across slivers, and never will be, sorry.


Missing semicolon in transactionLevel template

Thanks @radeklat for the attention to detail!
Sign the CLA and I will be happy to merge this.

I signed it!


No CUDA toolset found.

I have C++-CMake-Tools for Windows, and CUDA toolset V11.8.89 (not sure why it says I don't have them), I also have no idea what this error means "fatal: not a git repository (or any of the parent directories): .git", below is the command I ran and the output:
C:\Users\MSI-NB>pip uninstall -y llama-cpp-python
Found existing installation: llama-cpp-python 0.1.51
Uninstalling llama-cpp-python-0.1.51:
  Successfully uninstalled llama-cpp-python-0.1.51

C:\Users\MSI-NB>set CMAKE_ARGS="-DLLAMA_CUBLAS=on"

C:\Users\MSI-NB>set FORCE_CMAKE=1

C:\Users\MSI-NB>pip install llama-cpp-python --no-cache-dir

Collecting llama-cpp-python
  Downloading llama_cpp_python-0.1.51.tar.gz (1.2 MB)
     ---------------------------------------- 1.2/1.2 MB 784.7 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=4.5.0 in c:\users\msi-nb\appdata\local\programs\python\python310\lib\site-packages (from llama-cpp-python) (4.5.0)
Building wheels for collected packages: llama-cpp-python
  Building wheel for llama-cpp-python (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [226 lines of output]

      --------------------------------------------------------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      -- The C compiler identification is unknown
      CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
        No CMAKE_C_COMPILER could be found.

        Tell CMake where to find the compiler by setting either the environment
        variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
        the compiler, or to the compiler name if it is in the PATH.

      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
      --------------------------------------------------------------------------------

      --------------------------------------------------------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v143' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      CMake Error at CMakeLists.txt:2 (PROJECT):
        Generator

          Visual Studio 17 2022

        could not find any instance of Visual Studio.

      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
      --------------------------------------------------------------------------------

      --------------------------------------------------------------------------------
      -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      -- The C compiler identification is unknown
      CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
        No CMAKE_C_COMPILER could be found.

        Tell CMake where to find the compiler by setting either the environment
        variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
        the compiler, or to the compiler name if it is in the PATH.

      -- Configuring incomplete, errors occurred!
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - failure
      --------------------------------------------------------------------------------

      --------------------------------------------------------------------------------
      -- Trying 'Visual Studio 16 2019 x64 v142' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
      -- The C compiler identification is MSVC 19.29.30148.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is MSVC 19.29.30148.0
      CMake Warning (dev) at C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
        Policy CMP0054 is not set: Only interpret if() arguments as variables or
        keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
        details.  Use the cmake_policy command to set the policy and suppress this
        warning.

        Quoted variables like "MSVC" will no longer be dereferenced when the policy
        is set to NEW.  Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (ENABLE_LANGUAGE)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
        Policy CMP0054 is not set: Only interpret if() arguments as variables or
        keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
        details.  Use the cmake_policy command to set the policy and suppress this
        warning.

        Quoted variables like "MSVC" will no longer be dereferenced when the policy
        is set to NEW.  Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (ENABLE_LANGUAGE)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done (3.2s)
      -- Generating done (0.0s)
      -- Build files have been written to: C:/Users/MSI-NB/AppData/Local/Temp/pip-install-jlb4neib/llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Visual Studio 16 2019 x64 v142' generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8\_skbuild\win-amd64-3.10\cmake-build
        Command:
          'C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.6 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPython_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython3_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPython3_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' -T v142 -A x64 '"-DLLAMA_CUBLAS=on"' -DCMAKE_BUILD_TYPE:STRING=Release -DLLAMA_CUBLAS=on

      Not searching for unused variables given on the command line.
      CMake Warning:
        Ignoring extra path from command line:

         ""-DLLAMA_CUBLAS=on""

      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
      -- The C compiler identification is MSVC 19.29.30148.0
      -- The CXX compiler identification is MSVC 19.29.30148.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found Git: D:/Program Files/Git/cmd/git.exe (found version "2.38.1.windows.1")
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      CMake Warning at vendor/llama.cpp/CMakeLists.txt:105 (message):
        Git repository not found; to enable automatic generation of build info,
        make sure Git is installed and the project is a Git repository.

      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - not found
      -- Found Threads: TRUE
      -- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/include (found version "11.8.89")
      -- cuBLAS found
      CMake Error at C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:501 (message):
        No CUDA toolset found.
      Call Stack (most recent call first):
        C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
        C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
        C:/Users/MSI-NB/AppData/Local/Temp/pip-build-env-hemd9i_c/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
        vendor/llama.cpp/CMakeLists.txt:188 (enable_language)

      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 666, in setup
          env = cmkr.configure(
        File "C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\skbuild\cmaker.py", line 357, in configure
          raise SKBuildError(msg)

      An error occurred while configuring with CMake.
        Command:
          'C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.6 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\MSI-NB\AppData\Local\Temp\pip-build-env-hemd9i_c\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPython_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython3_EXECUTABLE:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\Include' '-DPython3_LIBRARY:PATH=C:\Users\MSI-NB\AppData\Local\Programs\Python\Python310\libs\python310.lib' -T v142 -A x64 '"-DLLAMA_CUBLAS=on"' -DCMAKE_BUILD_TYPE:STRING=Release -DLLAMA_CUBLAS=on
        Source directory:
          C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8
        Working directory:
          C:\Users\MSI-NB\AppData\Local\Temp\pip-install-jlb4neib\llama-cpp-python_b4bda89d8b724d638254e1497cdd3fc8\_skbuild\win-amd64-3.10\cmake-build
      Please see CMake's output for more information.

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

I've seen something similar on linux where CMake can't find the path to nvcc. Can you add the path to the bin directory of CUDA and try the build again?

Forgive me if I am not doing the right thing, I added the system environment variables but still get the exact same error.

Looking at your output a bit more, maybe you also have a git issue:
fatal: not a git repository (or any of the parent directories): .git
I'm not sure why this is happening. Maybe Google for the error?

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

fatal: not a git repository (or any of the parent directories): .git

This implies the git checkout of llama.ccp failed. Is the git.exe binary in your system path?
FYI: I don't use Windows so I'm just guessing here, sorry :man_shrugging:

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

I had this issue and after much arguing with git and cuda, this is what worked for me:

you just need to copy all the four files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions, and paste them to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations. These paths should be changed to your own.

Any update?

Closing due to inactivity

@noprotocolunit it is worked for me. thank you. :D

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

I had this issue and after much arguing with git and cuda, this is what worked for me:

you just need to copy all the four files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions, and paste them to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations. These paths should be changed to your own.

(For me, the version was v12.1 and I only have the build tools installed, so my destination directory looks like this: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations)

I had to put files from:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\extras\visual_studio_integration\MSBuildExtensions
into:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\BuildCustomizations

in the "VC" folder I had "v150", "v160", and "v170". I only tried "v170" and everything started to work for me
Slightly different but hope it helps someone.

The error like No CUDA toolset found usually means:

CUDA Toolset doesn't support your version of VisualStudio - older versions of CUDA Toolset aren't aware of the newer versions of VisualStudio
you've installed VisualStudio after CUDA Toolset
you have only VS BuildTools installed - they aren't supported by CUDA Toolset out-of-the-box

For the 1-st case instead of manually copying "build support scripts" (such step seems to be a legit workaround), you can specify which toolset to use, for example: set "CMAKE_GENERATOR=Visual Studio 16 2019"

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

I had this issue and after much arguing with git and cuda, this is what worked for me:

you just need to copy all the four files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions, and paste them to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations. These paths should be changed to your own.

(For me, the version was v12.1 and I only have the build tools installed, so my destination directory looks like this: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations)

This worked for me. Thanks.

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

I had this issue and after much arguing with git and cuda, this is what worked for me:

you just need to copy all the four files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions, and paste them to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations. These paths should be changed to your own.

(For me, the version was v12.1 and I only have the build tools installed, so my destination directory looks like this: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations)

After I did this 😿 it went into infinite loop after I did pip install.
Please, god...I've been stuck installing this for a week
Can anyone help me

I cannot find any relatable answers, I reinstalled the latest version of git and got the same error, maybe I need to run the command in a specific directory? what I been doing is just open cmd then copy/paste the command on this article https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md
pip uninstall -y llama-cpp-python
set CMAKE_ARGS="-DLLAMA_CUBLAS=on"
set FORCE_CMAKE=1
pip install llama-cpp-python --no-cache-dir

I had this issue and after much arguing with git and cuda, this is what worked for me:

you just need to copy all the four files from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions, and paste them to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations. These paths should be changed to your own.

(For me, the version was v12.1 and I only have the build tools installed, so my destination directory looks like this: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations)

After I did this 😿 it went into infinite loop after I did pip install. Please, god...I've been stuck installing this for a week Can anyone help me

Try to check what is happening when you install llama-cpp-python. Use --verbose like this:
pip install --no-cache-dir --verbose llama-cpp-python


Memory leak, memory keep on increasing while downloading pdf continually and memory warning received and app getting crashing.

In .h file:
AFURLSessionManager *afSessionManager;
In .m file

(void)downloadNextPage_
{
if( afSessionManager == nil )
{
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
afSessionManager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
}
NSURL *URL = [NSURL URLWithString:@"downloadPath"];
NSURLRequest *request = [NSURLRequest requestWithURL:URL];
NSProgress *progress;
NSURLSessionDownloadTask  *downloadTask = [afSessionManager downloadTaskWithRequest:request progress:&progress destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {
NSURL *documentsDirectoryURL = [NSURL fileURLWithPath:@"pdf_Path"];
return documentsDirectoryURL;
} completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {
[progress removeObserver:self forKeyPath:@"fractionCompleted" context:NULL];
NSString *lastPath = [[filePath absoluteString] lastPathComponent];
[self downloadPDFPageCompleted:lastPath];
}];
[downloadTask resume];
[progress addObserver:self
forKeyPath:@"fractionCompleted"
options:NSKeyValueObservingOptionNew
context:NULL];
}

(void)downloadPDFPageCompleted:(NSString *)pdfDownloadPage
{
idx++;
if( idx <= 100 )
{
[self downloadNextPage];
}
}

(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if ([keyPath isEqualToString:@"fractionCompleted"]) {
NSProgress *progress = (NSProgress *)object;
[self updatePDFDownloadProgess:progress.fractionCompleted];
//NSLog(@"DownloadPage:%d, Progress… %f",downloadingIdx, progress.fractionCompleted);
} else {
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
}
}

I am doing downloading more then 100 pdf continually one by one.
In this memory keep on increasing and  memory warning received and app crashed.
Please help me to over come.
Thanks

Have you used the instruments tool to help identify where the leak is coming from?
Also, please format your code using Github flavored markdown. It's very difficult to read without that.

In .h file:
 #import <UIKit/UIKit.h>
 #import <AFNetworking/AFHTTPSessionManager.h>
 @interface PDFReaderViewController
 {
       int idx;
       AFURLSessionManager *afSessionManager;
 }
 @end

In .m file
- (void)viewDidLoad
{
       [super viewDidLoad];
       idx = 0;
       [self downloadPDF];
}

- (void)downloadPDF
{
    idx++;
    if( idx < 100 )
    {
        [self downloadNextPage]; // Download PDF One by one
    }
   else
  {
       [afSessionManager invalidateSessionCancelingTasks:YES];
    afSessionManager = nil;
   }
}

start downloading the pdf
- (void)downloadNextPage
{
     if( afSessionManager == nil )
     {
          NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
         afSessionManager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
     }
    NSURL *URL = [NSURL URLWithString:download_PDF_Path];
    NSURLRequest *request = [NSURLRequest requestWithURL:URL];
    NSProgress *progress;
   NSURLSessionDownloadTask  *downloadTask = [afSessionManager downloadTaskWithRequest:request progress:&progress destination:^NSURL *(NSURL *targetPath, NSURLResponse *response)
{
        NSURL *documentsDirectoryURL = [NSURL fileURLWithPath:Local_pdf_Path];
        return documentsDirectoryURL;
    } completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {
         [progress removeObserver:self forKeyPath:@"fractionCompleted" context:NULL];
        NSString *lastPath = [[filePath absoluteString] lastPathComponent];
         NSLog(@"%@",lastPath);
        [self downloadPDF];  //After download complete the first PDF, start the next PDF
    }];
    [downloadTask resume];
    [progress addObserver:self
               forKeyPath:@"fractionCompleted"
                  options:NSKeyValueObservingOptionNew
                  context:NULL];
}

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
    if ([keyPath isEqualToString:@"fractionCompleted"]) {
        NSProgress *progress = (NSProgress *)object;
        [self updatePDFDownloadProgess:progress.fractionCompleted];
    } else {
        [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
    }
}

Thanks kcharwood for guiding me.
Code above i am using to download the PDF one by one (completing one after one).
All PDF are single page pdf. Each PDF size is 1mb to 4 mb.
Using regression method i am downloading pdf completion of one by one.
Now i format the code using Github flavored markdown.
I am runing the app in iPad mini.
Before starting download the PDF, memory was 65.9 MB.
After complete download of 140 PDF, memory is 214.1 MB.
After finishing downloading i am calling  "invalidateSessionCancelingTasks:" method and making AFURLSessionManager object to nil. but memory is not reducing.
I attached, before starting memory and download end memory screen short of debug mode.

I am doing downloading more then 100 pdf continually.
In this memory keep on increasing and  memory warning received and app crashed.
Please help me to over come.
Thanks

Hi @brknandhakumar
Please use instruments to identify memory leaks. If you identify specific objects that are leaking in AFNetworking, please do let us know here. Otherwise, this is more of performance optimization exercise that would be better suited for stackoverflow.
:beers:

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


Feat: Improve news cards look

Describe the feature
Make this news card look amazing
Add ScreenShots
Current news card look:

Could you make the news card something like this?

Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[ ] I want to work on this issue

Assign this to me, i can fix it

Assign this to me, i can fix it

Sure, Goahead!

@hustlerZzZ pleae assign me this issue.I think it is incomplete I want to work on this.
My technical skills include Node,js Express.Js React.Js Tailwind CSS Javascript Bootstrap Django

Is someone still working on this? if not, I'm a contributor at GSSOC24 and I would like to work on this issue. Please assign this to me.


don't Implement Display for Val

Objective

Revert #10296

Solution

Avoid implementing Display without a justification
Display implementation is a guarantee without a direct use, takes additional time to compile and require work to maintain
Debug, Reflect or Serialize should cover all needs

Reverting before 0.12, but feel free to continue discussion.

Could implement this as the alternate debug formatting?


CloudWatch Events Resource/Property

Added CloudWatch Events support based on new release of Cloudformation support for CloudWatch Events.
Using the Same namespace as Cloudformation (Events) rather than CloudWatchEvents as main python file
Adds Rule resource and Target Property

Thanks for the quick implementation!


Line Chart not displaying normal

I'm trying to use Line type but it only works if I zoom in the screen to180%. It is not showing until I zoom the browser. Maybe you have an idea about this. Please see the screenshot below.

@jonjie0317 do you have a jsfiddle that reproduces this? What browser are you using?

Hi @etimberg . It is the jsfiddle https://jsfiddle.net/90ukf2do/1/ . But it seems like not working I don't know why. My browser is firefox 65.0.2.

Your data labels are drawn outside chart area unless you zoom enough?
Working fiddle: https://jsfiddle.net/03wf259s/2/

Hi @kurkle . The data is actually now showing even outside the chart. Please see the update; I edited it.

Please check this JSFIDDLE for my exact data and label.

You can specify the maximum tick for y axis
scales: {
    yAxes: [{
        ticks: {
            max: 200000
        }
    }]
}

or add the top padding to create a space for data labels.
layout: {
    padding: {
        top: 20
    }
}

Hi @nagix . How can I add padding? which part?

See https://jsfiddle.net/nagix/mpf9s7zn/

@nagix wow 💯 You saved the day bro. I thought it doesn't exists. Thanks man :)


fix(sec): upgrade github.com/opencontainers/runc to 1.1.5

What happened？
There are 1 security vulnerabilities found in github.com/opencontainers/runc v1.1.4

CVE-2023-27561

What did I do？
Upgrade github.com/opencontainers/runc from v1.1.4 to 1.1.5 for vulnerability fix
What did you expect to happen？
Ideally, no insecure libs should be used.
How can we automate the detection of these types of issues?
By using the GitHub Actions configurations provided by murphysec, we can conduct automatic code security checks in our CI pipeline.
The specification of the pull request
PR Specification from OSCS

Hello,
We are not impacted by this CVE.
We can update but there is no impact on Traefik.


fix issue #79: add /v6 module import suffix

@sohamkamani I've added /v6 import suffix to resolve issue #79 introduced with v5.1.0 release with https://github.com/gojek/heimdall/pull/40.
According to https://github.com/golang/go/wiki/Modules#why-must-major-version-numbers-appear-in-import-paths the major version must present in import paths.
If you wish, I could do it in v5 module, to fix the buggy v5.1.0 version, but it's strongly recommended to increase major version after adopting go modules: https://github.com/golang/go/wiki/Modules#incrementing-the-major-version-when-first-adopting-modules-with-v2-packages, so I've made it v6.
And please have a look at https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher
In short, there could be some problems with godep users with major go.mod in master. So we could introduce better compatibility with v6 subdirectory for non-gomod users.
But if you dropped Gopkg.toml support, maybe it's unnecessary.
Let's discuss an fix it ASAP to have better go.mod support 🙇

Coverage remained the same at 100.0% when pulling 4ba367df089700203d9a4d5f5b961de95598e191 on mwf:fix-gomod-module into 1aedfb0eb7690eced0cc6b017492252e334b90a7 on gojek:master.

Coverage remained the same at 100.0% when pulling 4ba367df089700203d9a4d5f5b961de95598e191 on mwf:fix-gomod-module into 1aedfb0eb7690eced0cc6b017492252e334b90a7 on gojek:master.

@mwf Thanks for the PR. This makes sense. Merging this.

@mwf Can you also help change the README to import the package with the new changes?


Add support for k8s jobs

Could you add support for jobs to apps/v1?

Nevermind, I misunderstood the kubernetes api. I see it under batch.


link_to_remove_association does not destroy the record in the associative table

I have an Article model that has many Links through article_links.  I can add new associations as expected via the nested form.  Once created, I can remove the form fields from the form by clicking the link_to_remove.  However, even though no longer visible in the form, the article_links and links created still exist.
When I return to the edit form all of the links I had previously created and deleted are visible again.
Here is the code from the view:

	    <%= f.simple_fields_for :links do |link| %>
	      <%= render 'link_fields', :f => link %>
	    <% end %>

      <%= link_to_add_association 'add a link', f, :links %>

the nested fields:

  <%= f.input :url %>
  <%= link_to_remove_association "remove link", f %>

in the articles model:
accepts_nested_attributes_for :links, :reject_if => :all_blank, :allow_destroy => true

Allowed id and _destroy in the strong parameters?

params.require(:article).permit(:title, ... links_attributes: [:id, :url, :_destroy]...). I added it and tested again.  still not destroying.

Ok. If you are not willing to show more information, it ends here.

What do you need to see?
On Apr 18, 2015 5:06 AM, "Nathan Van der Auwera"<EMAIL_ADDRESS>wrote:

Ok. If you are not willing to show more information, it ends here.
—
Reply to this email directly or view it on GitHub
https://github.com/nathanvda/cocoon/issues/285#issuecomment-94145959.

And what did you do already? Did you check any of the closed issues? There are a lot of similar issues already resolved. A lot of people posting issues seem to think I know everything they (e.g you) know, but you would be surprised: I do not see your computer, I cannot read your mind. So instead of showing me the minimum, show me as much as you think would help me to help you.
For now I want to see your model: are you using a has_many :through or a has_and_belongs_to_many? How did you specifiy the association?
Secondly, what is posted to the controller, (e.g. show my the log-file) and third: the exact strong parameters. Seeing you needed to add the :id and :destroy it is obvious it did not work before, adding it should make it work (if everything else is set up correctly).
Please note that this is clearly documented

Nathan,
I read the documentation and looked through other issues, if I had found the answer there, I wouldn't have troubled you.  Thanks for your help. Here is the Articles model:
class Article < ActiveRecord::Base
belongs_to :user
belongs_to :category
has_many :links
accepts_nested_attributes_for :links, :reject_if => :all_blank, :allow_destroy => true
has_many :article_officers
has_many :officers, through: :article_officers
accepts_nested_attributes_for :officers, :reject_if => :all_blank, :allow_destroy => true
has_paper_trail
extend FriendlyId
friendly_id :title, use: [:slugged, :finders]
searchkick
validate :required_info
before_save :save_state_name

Avatar uploader using carrierwave
mount_uploader :avatar, AvatarUploader

def save_state_name
	self.state = State.find(self.state_id).name
end

private
def required_info
    if( state_id.nil? )
      errors.add(:base, "Please specify the state where this incident occurred before saving.")
    end
end

end
and the Links model:
class Link < ActiveRecord::Base
belongs_to :article
end
here is the exact strong parameters:
params.require(:article).permit(:title, :content, :category_id, :date, :state_id, :city, :address, :zipcode, :longitude, :latitude, :avatar, :video_url, links_attributes: [:id, :url, :_destroy], officers_attributes: [:first_name, :last_name, :title, :avatar, :_destroy])
here is the log
2015-04-18T12:11:30.291572+00:00 heroku[router]: at=info method=GET path="/articles/eric-garner/edit" host=blackops-staging.herokuapp.com request_id=5a655ca7-1fa2-41ee-9125-ae4945f2c85a fwd="<IP_ADDRESS>" dyno=web.1 connect=1ms service=151ms status=200 bytes=15851
2015-04-18T12:12:15.582585+00:00 heroku[router]: at=info method=POST path="/articles/eric-garner" host=blackops-staging.herokuapp.com request_id=794f1177-f2ed-492b-86e6-e3c8e626614d fwd="<IP_ADDRESS>" dyno=web.1 connect=4ms service=89ms status=302 bytes=1305
2015-04-18T12:12:15.651298+00:00 heroku[router]: at=info method=GET path="/articles/eric-garner" host=blackops-staging.herokuapp.com request_id=69f35c42-11e5-4d81-9b8e-c4caa236490a fwd="<IP_ADDRESS>" dyno=web.1 connect=2ms service=31ms status=200 bytes=7111
2015-04-18T12:12:15.511878+00:00 app[web.1]: Started PATCH "/articles/eric-garner" for <IP_ADDRESS> at 2015-04-18 12:12:15 +0000
2015-04-18T12:12:15.519465+00:00 app[web.1]:   Article Load (0.9ms)  SELECT  "articles".* FROM "articles" WHERE "articles"."slug" = $1  ORDER BY "articles"."id" ASC LIMIT 1  [["slug", "eric-garner"]]
2015-04-18T12:12:15.522738+00:00 app[web.1]:    (0.6ms)  BEGIN
2015-04-18T12:12:15.528199+00:00 app[web.1]:   State Load (0.8ms)  SELECT  "states".* FROM "states" WHERE "states"."id" = $1 LIMIT 1  [["id", 33]]
2015-04-18T12:12:15.577679+00:00 app[web.1]:   Article Store (47.2ms)  {"id":1}
2015-04-18T12:12:15.580957+00:00 app[web.1]: Redirected to http://blackops-staging.herokuapp.com/articles/eric-garner
2015-04-18T12:12:15.622220+00:00 app[web.1]: Started GET "/articles/eric-garner" for <IP_ADDRESS> at 2015-04-18 12:12:15 +0000
2015-04-18T12:12:15.629157+00:00 app[web.1]:   Article Load (1.0ms)  SELECT  "articles".* FROM "articles" WHERE "articles"."slug" = $1  ORDER BY "articles"."id" ASC LIMIT 1  [["slug", "eric-garner"]]
2015-04-18T12:12:15.637684+00:00 app[web.1]:   Link Load (0.8ms)  SELECT "links".* FROM "links" WHERE "links"."article_id" = $1  [["article_id", 1]]
2015-04-18T12:12:15.642469+00:00 app[web.1]:   State Load (1.3ms)  SELECT "states".* FROM "states"
2015-04-18T12:12:15.646556+00:00 app[web.1]:   Category Load (0.9ms)  SELECT "categories".* FROM "categories"
2015-04-18T12:12:15.513950+00:00 app[web.1]: Processing by ArticlesController#update as HTML
2015-04-18T12:12:15.514042+00:00 app[web.1]:   Parameters: {"utf8"=>"✓", "authenticity_token"=>"/V/DhfJaatQXo67aZ7hMVvxdgqV0b9FVpqXze+EpSpjruwCN6qiOrSXIN87umkgnWP39LtS1seAzUH8pyzecoQ==", "article"=>{"date"=>"04/08/2014", "category_id"=>"1", "video_url"=>"https://www.youtube.com/watch?v=LfXqYwyzQpM", "title"=>"Erica Garner", "content"=>"a 43-year-old asthmatic father of six, was confronted by New York City police officers for allegedly selling untaxed cigarettes. When he resisted being cuffed, an officer appeared to put him in a chokehold—a tactic banned by the department since 1993. A video of the arrest, first obtained by the New York Daily News, shows Garner gasping,"I can't breathe!" while officers relentlessly smother him. Outcome: no one indicted. no one convicted.", "city"=>"New York", "state_id"=>"33", "links_attributes"=>{"0"=>{"url"=>"http://google.com", "_destroy"=>"1", "id"=>"2"}, "1"=>{"url"=>"http://www.nytimes.com/2014/12/04/nyregion/grand-jury-said-to-bring-no-charges-in-staten-island-chokehold-death-of-eric-garner.html?_r=0", "_destroy"=>"1", "id"=>"3"}, "2"=>{"url"=>"http://google.com", "_destroy"=>"1", "id"=>"4"}}}, "commit"=>"Update Article", "id"=>"eric-garner"}
2015-04-18T12:12:15.516834+00:00 app[web.1]:   User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
2015-04-18T12:12:15.520715+00:00 app[web.1]:   CACHE (0.0ms)  SELECT  "articles".* FROM "articles" WHERE "articles"."slug" = $1  ORDER BY "articles"."id" ASC LIMIT 1  [["slug", "eric-garner"]]
2015-04-18T12:12:15.525506+00:00 app[web.1]:   Link Load (1.1ms)  SELECT "links".* FROM "links" WHERE "links"."article_id" = $1 AND "links"."id" IN (2, 3, 4)  [["article_id", 1]]
2015-04-18T12:12:15.530161+00:00 app[web.1]:    (0.7ms)  COMMIT
2015-04-18T12:12:15.579989+00:00 app[web.1]:   PaperTrail::Version Load (0.9ms)  SELECT  "versions".* FROM "versions" WHERE "versions"."item_id" = $1 AND "versions"."item_type" = $2  ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1  [["item_id", 1], ["item_type", "Article"]]
2015-04-18T12:12:15.581128+00:00 app[web.1]: Completed 302 Found in 67ms (Searchkick: 47.2ms | ActiveRecord: 6.0ms)
2015-04-18T12:12:15.624034+00:00 app[web.1]: Processing by ArticlesController#show as HTML
2015-04-18T12:12:15.624041+00:00 app[web.1]:   Parameters: {"id"=>"eric-garner"}
2015-04-18T12:12:15.626531+00:00 app[web.1]:   User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
2015-04-18T12:12:15.635666+00:00 app[web.1]:   Officer Load (1.3ms)  SELECT "officers".* FROM "officers" INNER JOIN "article_officers" ON "officers"."id" = "article_officers"."officer_id" WHERE "article_officers"."article_id" = $1  [["article_id", 1]]
2015-04-18T12:12:15.638261+00:00 app[web.1]:   Rendered articles/show.html.erb within layouts/application (6.7ms)
2015-04-18T12:12:15.644986+00:00 app[web.1]:   Rendered layouts/_header.html.erb (5.2ms)
2015-04-18T12:12:15.647887+00:00 app[web.1]: Completed 200 OK in 24ms (Views: 12.9ms | ActiveRecord: 6.1ms)
let me know if you need something else.  Thanks again.

got it working now. thanks for helping.

Care to enlighten us, for future reference?

strong parameters: in one case i was missing destroy.  in another, id.


$amount bug on mobile

On android mobile (any browser), a dollar sign on cost related topics are being escaped so that the result doesnt make sense.
Please see screenshot attached.

Hi, Could you share the raw response with us here? Thanks.

Hi, I've just added a hot fix disabling the latex render for texts starting with '$' sign, I believe that would fix your issue. Please let me know if the problem persists for you. Thanks!


Add context for the focused area.

Hi, I need to set the context of the opaque overlay in a project I'm working on, so I think it was useful to have an option that can be passed to specify the context of this area.
In real life I had to show a tutorial in a sidebar and guide the user through the app by highlighting the element in the app container leaving sidebar fully visible. I hope my effort is appreciated. Thanks.

@zzarcon Can you review this, please?

@ascariandrea sure, I will take a look ASAP, sorry for the delay man, and thanks so much for your time.


Column select mode spans rectangle in unexpected way

testing #4092
OS: Linux
I would expect that "Shift+Alt+mouse drag" spans a rectangle between the mouse down and the mouse up location. But this is not what I observe. Instead the rectangle spans from the previous caret location to the mouse up location. This is unexpected and less useful.
(in Sublime Alt-Cmd spans a rectangle between the mouse down and the mouse up location).

This is consistent with Visual Studio.

Pressing shift and alt before mousedown, uses the primary cursor selection start as the anchor.
Doing mousedown and then shift and alt uses the mousedown position as the anchor.

IMHO, this allows both use-cases, while the Sublime way does not allow case 1.


Regular expression error?

In IE7, keys cannot start with a digit or contain certain chars.
But the regular expression is replaced by a string "d"
var ieKeyFix = function(key) {
return key.replace(/^d/, '_$&').replace(forbiddenCharsRegex, '_')
}

@newbeex: sorry, I don't understand what the problem is. If you have an example that isn't working the way you expect, please include that.


Direct links to images does not work

Hi there.
Tried to launch this using docker today, as you can see here: https://photoclass.myhrmans.com
Images load fine but when you open an image and copy the url to go directly to the image the following error is spotted out in the console:
Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
    at openPhoto ((index):66:29)
    at photos.js:7:1
    at photos.js:9:3

Using docker-compose.

Another issue I just discovered is that the social media links are still visible even if they are commented out in the .env file.

Broke with this pull: #8. Added "id-" infront of all id´s.
This file still just have the name.
Can simply be fixed by this PR: #15

Thanks for reporting and already fixing this issue! Much appreciated! Your PR has been merged and docker images should be up soon.
Regarding the social media links, have you tried commenting them in and just leave their values empty e.g. TWITTER_USERNAME=? You should also remove the comment at the end of the URL line, I think it's only being detected as a comment when the hash is at the very beginning of a line. Please let me know if that works.

#15

Awesome. If that does not fix it I will create another issue specifically for that 👍