text:
Yi-VL-34b支持int4量化吗？怎么操作

Reminder

[X] I have searched the Github Discussion and issues and have not found anything similar to this.

Motivation
Yi-VL-34b支持int4量化吗？怎么操作
Solution
No response
Alternatives
No response
Anything Else?
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

应该可以，我没有测试过，请参考这个https://github.com/AutoGPTQ/AutoGPTQ/issues/304，只量化LLM，忽略视觉编码器

我设置load_4bit=True,发现没有什么用

source: gharchive/issue

authors: Yimi81 changqinyao liufangtao

license_type: permissive

license_source: github-api


text:
chore(master): release dotty-dictionary 1.2.0

:robot: I have created a release beep boop
1.2.0 (2024-03-06)
Features

add custom types and json encoding logic (3b28eb8)

Documentation

custom types (6ac052e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/01Joseph-Hwang10/dotty-dictionary/releases/tag/dotty-dictionary-v1.2.0 :sunflower:

source: gharchive/pull-request

license: MIT


text:
Fixing "Windows Staged Reverse TCP (x64)"

Small typo for the command used to generate a Windows Staged Reverse TCP (x64). Modified the msfvenom payload to "windows/x64/shell_reverse_tcp" which should remediate this issue and allow for easier copypasta.

Thank you, much appreciated!


text:
TPDU library.

Did you see my (lua-tpdu)[https://github.com/moteus/lua-tpdu] library.
It low-level encoder/decoder wich also support multi-part sms.
It does not provide any object just encode/decode from/to Lua table.
This library was written to lluv-gsmmodem library.

Gosh, no, I completely missed that one.
Yours seems to be missing UTF-16bit encoding, which is at least something I haven't pointlessly duplicated. :)
Can I contact you on some more IM style network to discuss the library a bit?

sms does not use utf-16. it uses ucs2. lua-tpdu does not do any conversions it just return binary string and encoding. lluv-gsmmodem uses iconv library to convert text.

Indeed, a bit of oversight on my part.
In fact, the lluv-gsmmodem library seems like what I'd need, however it drags in a whole load of dependancies which is not really what I'd want (need this on an embedded Linux machine). Any tips?

You can try use at.lua module. It provides AT commands protocol.
This is link for test
You need create ATStream object and implement on_command callback to write raw data to serial port. When you read data from serial port you need call stream:append(data) and to execute callbacks you need call stream:execute()
Commands implemented in ATCommand class.
stream  = assert(at.Stream(SELF))
stream:on_command(function(self, cmd)
  -- write cmd to serial port
end)

command = assert(at.Commander(stream))

-- proceed URC data (sms, call, boot)
command:on_urc(function(self, err, ....) ... end)

-- execute command
command:ATZ(function(self, err, res) ... end)

-- proceed data from port
data = read_from_sereal_port()
stream:append(data)
stream:execute()

license: mit

license_source: bigquery


text:
Frontmatter YAML metadata not visible in Reading mode

As the title says, the frontmatter YAML box is not visible in reading mode.
I can see that it's been disabled in the CSS, but I would love a way to turn it back on without messing around in there myself. Some sort of settings pluggin perhaps? The Features block on the about page does say it's customizable.
Everforest:

Default Theme:

Can be changed in Obsidian settings.
Go to "Settings" - "Editor" - "Show frontmatter" and turn it back on

I have this same issue despite enabling "show frontmatter"

"Show frontmatter" is enabled in Editor Settings
All Sync options are enabled
Using Evergreen as a theme
On Android, the frontmatter appears in reading view
on PC, it doesn't
if i switch to a different theme, the frontmatter appears in reading view as expected

+1 what gives? Can we get frontmatter showing?

I also have this issue. I really like the everforest theme, but it has some bugs including this one. On android I can see front matter rendered properly, but not on my PC I believe there might be an issue with it and dataview plugin as well.

@ariccb, I'm also using everforest theme and having the same issue. However, today I found the solution how to solve this issue.
Goto the vault in window explorer, search for .obsidian> themes > Everforest > theme.css. Open the CSS file with text editor.
Search the text: "frontmatter" and you will see these code:
frontmatter-container {
display: none;
}
change these code into a comment by adding "/" & "/" to become like this:
/.frontmatter-container {
display: none;
}/
save the CSS file then you should able to see the front matter in the reading mode.

@jackalteoh brilliant! That was super easy, and fixed the problem for me.

@ariccb, glad to hear that.
@HyperEpsilon, @julianmerkle & @anthonyabraira, you may refer to the solution I posted, hope it solves your issue.
btw, the code I suggested to be added should be "/" & "/" so it will change that block into a comment.
/* .frontmatter-container { display: none; } */

@jackalteoh
great thanks - this also works for me!
I'll have to learn CSS, I remember in older version of everforest there was a really nice alternative layout for the frontmatter. With your fix it works, but I think it reverts to the standard way of displaying it (same as in other themes)

authors: HyperEpsilon anthonyabraira ariccb dubjap jackalteoh julianmerkle


text:
提一个小建议，最好可以连带着歌词一起下载下来

如题。

如果有专辑封面就更赞了

已支持部分歌词和封面下载

已支持部分歌词和封面下载

歌词在Apple TV or iTunes or iOS中的Music App能显示的么 或者什么软件才能识别出来歌词？

@CoderTonyChan macOS中推荐 https://github.com/ddddxxx/LyricsX 这个歌词显示软件

@CoderTonyChan macOS中推荐 https://github.com/ddddxxx/LyricsX 这个歌词显示软件

好的 谢谢推荐！

@CoderTonyChan macOS中推荐 https://github.com/ddddxxx/LyricsX 这个歌词显示软件

https://support.apple.com/zh-cn/HT204459 原生的不支持时间轴的？


text:
Return richer information on SyncSummary

What should be done?
Currently, we are just returning basic flat stats on SyncSummary such as number of new notes, number of committed transactions, etc. We could improve this and return IDs of each of the involved entities.
How should it be done?
Gather IDs of new entities and return them in Vec<_> fields. The struct should look something like:
pub struct SyncSummary {
    pub block_num: u32,
    pub new_notes: Vec<NoteId>,
    pub new_inclusion_proofs: Vec<NoteId>,
    pub new_nullifiers: Vec<Nullifier>, // maybe NoteId instead?
    pub updated_onchain_accounts: Vec<AccountId>,
    pub commited_transactions: Vec<TransactionId>,
}

When is this task done?
When we return richer information on SyncSummary as described above. The CLI can keep its current functionality by showing the count of each of these fields.
Additional context
No response

We may also consider the following structure:
pub struct SyncSummary {
    pub block_num: u32,
    pub received_notes: Vec<NoteId>,
    pub committed_notes: Vec<NoteId>,
    pub consumed_notes: Vec<NoteId>,
    pub updated_accounts: Vec<AccountId>,
    pub committed_transactions: Vec<TransactionId>,
}

Just to be clear, the change from new_nullifiers: Vec<Nullifier> to consumed_notes: Vec<NoteId> would mean a separate query to retrieve the consumed note ids (currently we only update the notes that match the nullifiers without returning the ids). This wouldn't be a problem no?

Just to be clear, the change from new_nullifiers: Vec<Nullifier> to consumed_notes: Vec<NoteId> would mean a separate query to retrieve the consumed note ids (currently we only update the notes that match the nullifiers without returning the ids). This wouldn't be a problem no?

I think this may be OK. With the refactoring we are discussing in https://github.com/0xPolygonMiden/miden-client/discussions/487 I think we'll be retrieving all relevant notes from the store anyways, then applying state transitions to them, and then saving them back to the store. So, the amount of work probably wouldn't be that different.

Closed by #513

authors: bobbinth igamigo tomyrd


text:
A related side (OSX) request

Hi Bruno,
I am one of 33K+ 2011 Macbook Pro users with the unfortunate discrete GPU heat-induced solder connection failure. The MBP will always boot OSX in the single user mode, but unless all ATI/AMD GPU kexts are removed from ~/system/library/extensions/  folder, the MBP will freeze during normal OSX boot.
The brute removal of ATI/AMD GPU kexts causes the system to behave very slow, with graphic artifacts etc.
Based on your project, did you by chance find a way to disable initiation of the discrete GPU  and boot OSX in such a way as if only Intel GPU was present? I know you are working on Linux, but if you know how to achieve this in OSX, great many people will be grateful to you. Please share what you know or think.
Thank you!
japush

Hi japush!
I also haven seen your issues at this thread: https://github.com/ah-/gmux-scripts/issues/1#issuecomment-69776789
I will try to help you.
Did you tried solving the issue with  gfxcardstatus 2.2.1 (exact version is important)?

Boot in OSX with Kexts remove
Select gfxCardStatus -> dedicated only.
Reboot
Results ?

Bruno

Hi Bruno,
Thank you for trying to help! Of course, I tried that.  Once I remove
AMD/ATI* kexts,  no matter what gfxCardStatus version (2.2.1 or the new
one) I try,  it will NOT let me select integrated graphics, claiming the
dependency 'External Display'. Of course there is no external display and
the graphics are in fact handled by integrated gpu, but that's the
paradoxical way my system behaves with those Kexts removed.
Any other ideas to get the system to work entirely off integrated gpu while
the kexts are intact?
Thanks again!
On Jan 15, 2015 4:29 AM, "Bruno Bierbaumer" notifications@github.com
wrote:

Hi japush!
I also haven seen your issues at this thread: ah-/gmux-scripts#1 (comment)
https://github.com/ah-/gmux-scripts/issues/1#issuecomment-69776789
I will try to help you.
Did you tried solving the issue with gfxcardstatus 2.2.1 (exact version is
important)?

Boot in OSX with Kexts remove

Select gfxCardStatus -> dedicated only.
Reboot
Results ?

Bruno
—
Reply to this email directly or view it on GitHub
https://github.com/0xbb/gpu-switch/issues/1#issuecomment-70066565.

Hi japush,
I would  ask the developer of gfxCardStatus for help.
If anyone knows about your "External Display" problem then him. If you can't switch between the GPUs via gfxCardStatus I am also out of ideas how to force the usage of the internal GPU.


text:
Remove constructor warnings

When running tests I can see:
/Work/0xcert.org/repositories/ethereum-xcert/contracts/mocks/XcertMock.sol:7:1: Warning: Base constructor arguments given twice.
contract XcertMock is BurnableXcert, PausableXcert, RevokableXcert {
^ (Relevant source part starts here and spans across multiple lines).
/Work/0xcert.org/repositories/ethereum-xcert/contracts/tokens/PausableXcert.sol:32:5: First constructor call is here:
    Xcert(_name, _symbol, _conventionId)
    ^----------------------------------^
/Work/0xcert.org/repositories/ethereum-xcert/contracts/tokens/RevokableXcert.sol:22:5: Second constructor call is here:
    Xcert(_name, _symbol, _conventionId)
    ^----------------------------------^

It's related to the new Solidity constructor logic.

https://github.com/ethereum/solidity/issues/4199#issuecomment-392750613

#16

authors: MoMannn xpepermint


text:
UDC deploy function should return the deployed contract address

Is your feature request related to a problem? Please describe.
UDC deploy function is returning only the transaction_hash, also the deployed contract address should be returned
Describe the solution you'd like
deploy function (in /src/account/default.ts) should return the account address
Instead of having an InvokeFunctionResponse it should be a new interface that extends this one
export interface DeclareContractResponse extends  InvokeFunctionResponse {
  contract_address: string;
}

You can use account.deployContract for it.
Does it solve your issue?

You can also use account.declareDeploy if you want to declare and deploy the contract.

We can't use it since account.deployContract will wait for the transaction
 const txReceipt = await this.waitForTransaction(deployTx.transaction_hash, ['ACCEPTED_ON_L2']);

The address could be pre-calculated in the account.deploy function.
declareDeploy function is not working for our purpose at the moment (we need to use declare and deploy separately)

Could this help as a workaround:
https://github.com/0xs34n/starknet.js-workshop/blob/main/deploy_erc20.js#L99

I think it would be just better to have it in the deploy function (since developers will also use that function) and we could just use the deploy method :)
also, the parseUDCEvent has this comment:
// NOTE: parseUDCEvent will be redundant with nevwer starknet.js version

It can't be inside deployed because than deploy also need to do wait for transaction

@bluecco yeah, I meant redundant in that workshop since I meant to remove it for the deployAccount :D

@tabaktoni but couldn't it be precalculated using calculateContractAddressFromHash in the deploy function and returned?
so the developer wouldn't need to do that manually or contacting the sequencer and get the transaction. this would avoid a unnecessary network request (since sequencer also has an hard cap for connections)
@ivpavici gotcha, it was a little confusing 😅

I agree to @bluecco's suggestion. We should return contract_address field as a precalculated contractAddress instead of fetching from sequencer.

So as Janek also agrees on this one we should do it.

authors: bluecco dhruvkelawala ivpavici tabaktoni


text:
Error: Uncaught TypeError: $(...).validator is not a function

I keep getting the "validator is not a function" error in my javascript file. I have attached these scripts in my html file, not sure why still getting that error
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/jquery.validate.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.3/js/bootstrapValidator.min.js"></script>

This plugin is different from the one you are including in your code.

@kevinmachstudio Here is the proper link for this library:
https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.10.2/validator.min.js

@ddspringle thanks bro, this work for me

authors: 1000hz LendisFabri ddspringle kmacthecoder


text:
pxt.json

Sorry, wrong description in pxt.json! It´s not the mpr121 :-)

Good catch!
Fixed with b4dee3c2c319cac50c0a6c328abea124876ede92

authors: MKleinSB philipphenkel


text:
filter_oplog_entry not filtering fields when operation is 'u'

During initial dump, fields is honored because they are used in a Mongo projection.
For an insert, fields are handled correctly.
For an update, $set and $unset are both always {} so nothing is done in filter_oplog_entry.
2015-05-20 16:40:32,012 [DEBUG] mongo_connector.oplog_manager:349 - $set={}, $unset={}
2015-05-20 16:40:32,012 [DEBUG] mongo_connector.oplog_manager:235 - OplogThread: Operation for this entry is u

Can you provide an example of a document that you're trying to update and the update operation that doesn't seem to respect --fields?

http://pastie.org/private/0iwjhg732tzkd3xzwutg

@sjalali Thanks for the info. I notice that Elasticsearch is responding with status 400 to Mongo Connector's update requests. Could you also provide logs from Elasticsearch from during one of these update operations?

The ES error is at the bottom of this pastie:
http://pastie.org/private/r255wc58yms2hxilqvsaa
Note that the data in error should not have reached ES but should have been excluded by the fields array.

@llvtt Hi, do you need any more info from me?

@sjalali I think I have all the information I need. Thank you.

@sjalali
Thanks for reporting this bug. It's been fixed in master, and in the process I've also discovered another shortcoming of --fields of which I wasn't previously aware. I'm not sure if this limitation affects you or not, since your problem seems to be rooted in how mongo-connector handles document replacement.
The limitation: --fields doesn't fully support filtering out nested fields (i.e., fields in subdocuments). It happens to work when doing inserts and updates; the only case I've found where the filtering doesn't work is when replacing a document with another one (i.e., a ReplaceOne write operation). Some work will be required to implement this, so for now I'm going to document this limitation, and I've added a warning message to print if a user tries to run mongo-connector passing in a nested field to --fields (mongo-connector will still proceed if you want it to).
I've modified issue #255 to be a feature request to support filtering on nested fields fully.
Thanks for all the patience and info you've provided. Let me know if you're still having trouble.

Hello! I'm going to close this issue since the issue is partially fixed and partially awaiting a new feature. Feel free to re-open or file a new issue if something else comes up. Thank you!

authors: aherlihy llvtt sjalali


text:
can mongo-connector sync all data from mongodb to dest, such as solr?

As is introduced in mainpage, "By tailing the MongoDB oplog, it replicates operations from MongoDB to these systems in real-time".
So, to my understanding, solr contains only data from a time point that starts from oplog's head, not all of the data from mongodb.
And,my local solr service looks working in this way, too.(I have 4k records in my mongodb, but only get 60 index in total).
So, is there a way to copy data completely from mongodb by using mongo-connector?

Oh, i get the answer from issue #246. please close it.


text:
docs: add pagination JavaScript examples

This PR includes some of the JavaScript examples that are missing from the docs.

Paging an Object
Paginate a global or local data file
Aliasing to a different variable
Paging a Collection

Thanks a lot @w0whitaker I just did some minor touch ups and now I think this is good to go!
By the way, I just checked and it seems like formatting is a problem in this repo right now, so I created #1670, so thanks for bringing this issue up with your first PR attempt. You did everything right there and the problem is, that this repo is right now formatted as configured.


text:
As cg bizdev, I'd like to know more about those who sign up for our mailing list

Currently, we only ask for an email address when signing people up to our mailing list. Let's update the form on website so that we're capturing more information about those who sign on to our mailing list. Variables that we identified include individuals title/role, whether they have purchasing power, what specifically they are interested in, etc.

We have related issues at https://github.com/18F/cg-landing/issues/66 and https://github.com/18F/cg-product/issues/134

@nikzei is there work here that we expect our squad to pick up since this has the Liberator tag? It seems so since it's in the Backlog, but we're not sure what to do here at the moment.
Should this be moved to the Icebox, then? Or, if you want to plan and groom it with us, we could set up time for this?

@suprenant I've removed the liberator tag for now so that this is a Skyporter issue. No need to ice box it. Skyporter folks will circle back if + when we need Liberator help for this one. Thanks-

This was resolved in:
https://github.com/18F/cg-landing/pull/99
@nikzei can you confirm we can close this?

authors: berndverst brittag nikzei suprenant


text:
Ramp up Peter Burkholder on cloud.gov team

In order to get @pburkholder productively contributing to the cloud.gov team, Buddy (TBD) should help Peter complete a prescribed set of tasks that will bring him up to speed.
Directions:
Peter and Buddy: Try to go through your checklists in order.
Buddy: If you can’t complete any of the items on your checklist personally, you are responsible for ensuring that someone with the correct access completes that item.
Peter's checklist
Getting to know cloud.gov

[x] Take judicious notes on what about this onboarding process or cloud.gov is confusing or frustrating. If you notice a problem (especially with things like documentation), you are more than welcome to fix it! At the very least, please share this information with your buddy (or someone) at some point so we can make the team/platform better. (You can also file issues and pull requests on the template for Onboarding issues.)
[x] Figure out who your onboarding buddy is (they should reach out to you) and make sure this issue is assigned to them.
[x] Read the team onboarding document for more context about cloud.gov.
[x] Bookmark the pertinent links listed here.
[x] Read the "What is it?" presentation for a rundown of what cloud.gov is and does (specifically read slides 1-37; the rest are somewhat outdated)
[x] Read through the Overview section of cloud.gov for a broader understanding of cloud.gov, especially as we present it to potential customers/users.
[x] Read the January 2016 cloud.gov "Executive Business Case" document for greater context about cloud.gov's potential impact in government.
[ ] Deploy a sample application to cloud.gov to get familiar with the basics of the PaaS from a user's perspective.
[x] Sign up for a Favro account using your GSA Google Account.
[x] Check out the Favro cloud.gov Program
board and make sure you have access to all our Favro boards.
[x] Check out the roadmap (with additional longer-term info in Aha) to get a high-level view of recently-completed, in-progress, and upcoming features.
[x] Read the Delivery Process document to learn about how we work.
[x] Join the cloud.gov team Google Group so you can participate in teamwide internal communication.
[ ] Join the cloud.gov inquiries Google Group so you can keep apprised of prospective new clients.
[x] Bookmark the cloud.gov Google Drive folder - that's where we put cloud.gov docs. If you create or move a doc there, it'll get the right access permissions for 18F team members to be able to view and edit it.
[ ] Consider joining Cloud Foundry's Slack channels (we sometimes talk to folks in #gov and #gov-private – you'll need a cloud.gov team member to invite you to the latter).
[x] If you haven't already, request a license for Microsoft Office - this is helpful for working with compliance documentation.
[ ] Once you've finished the checklists below, make suggestions for steps that would have improved your onboarding experience as pull requests on the onboarding checklist template used to make this issue.

Required items for all team members
These items help us fulfill security and compliance requirements (including for FedRAMP). If you get stuck, or if these requirements are confusing, ask for help from your buddy or in a cloud.gov channel.

[ ] Read the 18F Security Policies and Procedures. These documents (which are mostly quite short) explain the high-level policies and procedures we must comply with while running cloud.gov.
[ ] Read the Incident Response Guide.
[ ] Coordinate with your onboarding buddy to go through Incident Response Training within 60 days of joining the team (and annually after that).
[ ] Read the Contingency Plan.
[ ] Read the Continuous Monitoring Strategy, particularly the cloud.gov team responsibilities.
[ ] Coordinate with your onboarding buddy to go through Contingency Planning training within 10 days if you'll be taking on a significant role in our Contingency Planning processes (or annually if not).
[ ] Read the Configuration Management Plan.
[ ] Read our sharing secret keys policy.
[ ] Review the 18F requirements for password management.
[ ] Review the 18F open source policy guidance about protecting sensitive information.
[ ] Coordinate with your onboarding buddy to go through nonpublic information training within 60 days of joining the team (and annually after that).
[ ] Subscribe to the cloud.gov team calendar (click the + in the bottom right) so you know when assorted team meetings are happening in the various squads. Tip: When you plan Out of Office time, make a calendar event for that on the cloud.gov calendar so that your teammates know you'll be away.
[ ] Subscribe (through the GitHub watch function) to the cg-site GitHub repository notifications.

Theme-specific items
For explanations of our theme names, see this glossary.
Atlas-specific items

[ ] Review the System Security Plan (the latest version lives on Google Drive; look for "cloud.gov System Security Plan (SSP)" as a .docx file). Of particular note for onboarding:

Section 9: System Description
Section 10: System Environment

[ ] Bookmark the Atlas kanban board view.
[ ] Join the #cloud-gov-atlas channel on Slack.
Learn about Cloud Foundry

[ ] Watch Build Your Own Private Cloud Foundry to learn about running Cloud Foundry.
[ ] Set up Cloud Foundry locally and push an app to it.
[ ] Join the Cloud Foundry Slack in case you need to ask questions of upstream developers.

Learn about BOSH:

[ ] watch this video
[ ] Complete this tutorial for BOSH
[ ] For a bit of levity, read this

[ ] Get to know how UAA is deployed/integrated.
Get familiar with Terraform

[ ] Go through the getting started guide.
[ ] Examine our provisioning procedures

Learn about Concourse

[ ] Try a tutorial.
[ ] Check out our staging and production Concourse instances, and take a look at some of our pipelines.
[ ] Join the Concourse Slack in case you need to ask questions of upstream developers.

Learn about Kubernetes

[ ] Watch The illustrated Children's Guide to Kubernetes
[ ] Go through the offical tutorial
[ ] Read the cloud.gov k8s quickstart

[ ] Join the cloud.gov operations notifications Google Group, so you can see alert information if PagerDuty is unavailable
Get familiar with our AWS setup

[ ] Read about our AWS accounts and onboarding
[ ] Read about the AWS CLI

[ ] Review the daily maintenance tasks

Agent Q-specific items

[ ] Bookmark the Agent Q kanban board view.
[ ] Join the #cloud-gov-agent-q channel on Slack.
[ ] Read about Cloud Foundry services from a user perspective.
[ ] Read about implementing services.
[ ] Take a look at our existing brokers.
[ ] Learn about Concourse

[ ] Try a tutorial.
[ ] Check out our staging and production Concourse instances, and take a look at some of our pipelines.

[ ] Join the Cloud Foundry Slack.

HighBar-specific items

[ ] Bookmark the HighBar kanban board view.
[ ] Join the #cg-compliance channel on Slack.
[ ] Read through the description of Compliance Toolkit.
[ ] Watch Handling FISMA Faster and Better for important context and background on the federal regulatory context in which cloud.gov operates.
[ ] Do a cursory read of Before You Ship.
[ ] Read the intro to Compliance Masonry.

Buddy checklist

[ ] Introduce yourself to the new team member and give them some of your background so they know who you are.
[ ] Identify a straightforward, well-groomed story in progress that involves their skills domain, schedule a meeting with the owner for an introduction (if it's not you), and setup pairing sessions several times in the first week on the project.
[ ] Identify a straightforward, well-groomed first story, ideally something they could conceivably complete in their first two/three weeks using their existing skills. Discuss the context with them, then make them the assignee for the card.
[ ] Discuss suggestions for how the onboarding experience could have been improved and open as PRs on the onboarding template.
[ ] Ask the Program Manager or Director to add the person to Zendesk, so they can see how we handle non-18F support and read technical discussions happening with outside groups.
[ ] Invite them to the private Slack channel cg-supportstream, used for backchanneling on support interactions.
[ ] Ask the Program Manager or Director to add them to the 18F organization in Favro.

Required items for all team members
These items help us fulfill security and compliance requirements (including for FedRAMP).

[ ] Make sure they're in the list of people working on the project.
[ ] Add their name, whether they're Cloud Ops (Atlas/AgentQ), and the date they joined the team to the training tracker. Copy the formulas for the due dates from an existing row (grab the "corner" of the cells and pull down).
[ ] Add them to the @cloud-gov-team in Slack’s Team Directory.
[ ] Add them to the recurring cloud.gov meetings that are relevant for them in the team calendar.
[ ] Ask #admins-github to add them to the @18F/cloud.gov team on GitHub.

Atlas-specific required items

[ ] Help them review and understand the responsibilities of becoming a Cloud Operations team member, as listed in our SSP.
[ ] Ask #admins-github to have them added to the @18F/cloud-gov-ops team on GitHub. (For contractors: Confirm they have cleared GSA security review before doing this one!)
[ ] If the new person is a contractor, ask #admins-github to have them added to the @18F/cloud-gov-contractors team on GitHub.
[ ] Add them to the @cloud-gov-operators in Slack’s Team Directory.
Grant them access to the following:

[ ] AWS GovCloud
[ ] AWS East tied to GovCloud
[ ] Nessus Manager GUI
[ ] New Relic
[ ] PagerDuty
[ ] StatusPage

[ ] Make them an admin of the platform.
[ ] Add them to the cloud-gov-operators organization in cloud.gov.
[ ] Take them through AWS onboarding.
[ ] Give them a walkthrough of cloud.gov from an architecture and repository perspective, focusing on SSP diagrams, external git repository and bosh.io dependencies, and our continuous delivery process with Concourse.

In general, need to replace this:
cloud.gov - operations and services (Atlas & Agent Q)
cloud.gov - UI/UX (Navigator)
cloud.gov - business / comms (Skyporter)
cloud.gov - compliance (Highbar)

Description of squads is out-of-date in README.md and DeliveryProcess.md

Many of the links in PertinentLinks.md seem out-of-date. Perhaps better as a wiki page to short-circuit the PR delay.

The getting-started/your-first-deploy page needs some help and related links
Get access:

state the intent of each page. Congratulate them when they've achieved that intent. Label everything else as extra information.
each page should be more like a flow chart

Do you need a 'sandbox account'?
Do you need access to your agency's account?

Play around in your sandbox  - bad title - "Confirm sandbox access"  Also - only need to run cf target
All pages should assume fr.cloud.gov and inset ONLY if using E/W (too late, since we'll deprecate that none-too-soon.
Your first deploy

At this point you should be able to run cf target and git....

ALL THESE SHOULD BE TIED TOGETHER WITH A 5-MINUTE SCREENCAST.

If I'm asked, I'm still not able to answer why cloud.gov would be a better choice than AWS ElasticBeanstalk or Azure AppServices.

They don't have FedRAMP, they're harder to procure and use, and they have less affordances to help government workers "where they live".

I still have a few things I'd like to complete running through, but I've got enough under my belt to feel "onboarded"
I have PRs for changes.
I think the most useful experience was getting into the support rotation, so my questions about how stuff works felt more pointed and less abstract.
If we really wanted to be bold, tell suggest new folks to go to a meetup and give a 30m talk about cloud.gov 👀

authors: mogul pburkholder


text:
feat: rewrite to pure js

as mentioned in #80, this is a PR for rewriting to js
PS. I can't pass the default lint config, so I choose to use the GitHub action template eslint.yml
I tested Service Accounts and 1Password Connect locally using npm run local-action. If any reviewer is interested, you can test it locally by copying .env.example to .env.

NOTE to other reviewers: This PR is large due to the generated dist files; however, the significant changes are quite minimal.

@Xuanwo Thank you for the review. I have learned a lot from your comments about the CI check. I have added a new workflow, check-dist.yml, to ensure the generated dist is reliable.

@Xuanwo Thank you for the review. I have learned a lot from your comments about the CI check. I have added a new workflow, check-dist.yml, to ensure the generated dist is reliable.

Thank you, mostly LGTM now!

Inviting @edif2008 and @SimonBarendse for a review.

Hi folks, really appreciate your efforts on this! ❤ 🙌  Definitely aligned with the direction we'd like to move in for this and other integrations. We've build SDKs exactly because we saw such large desire from all of you to build integrations, and friction from doing so with CLI (e.g. performance, support for self-hosted runners, Windows support and it removes complexity from the implementation, making it easier to maintain and less error-prone). Excited to see you already help us move in that direction! 🚀
A couple things we'll want to look at to get this merged and deployed:

Backwards compatibility: Continuity is quite important to us. We realize many depend on this and other integrations in critical workflows, and want to avoid disruptions as much as possible. With that in mind, we'll want to have a look at whether we can find a path to keep this action backwards compatible and at v2.  So far, desktop app integration is the only missing feature in SDK we've identified to make a fully backwards compatible migration possible. While we work on closing that gap in SDKs, to not block this work from moving forward and make those aforementioned improvements available when not running locally (probably most uses), shall we support both side-by-side for now? We can check for Service Account token and/or Connect token envvars to use the new SDKs, and fall back to requiring CLI when those are not present (and thus probably running local). Once SDKs support Auth Prompts (aka desktop app integration) we can fully move over to SDK-only solution. That'd be a fully backwards compatible migration and we could stick to v2 throughout.
Dist: Not sure why this action is using dist. @edif2008 is currently out, but when he returns next week, would love to learn from him what our reasoning was for introducing and if we could move away from that now. This could remove the complexity of required checks and prevent this repo from bloating by checking in a new binary for the WASM build on every new SDK release. Binary is already 5MB right now, and will likely grow further when expanding SDKs with additional functionality. With frequent SDK releases can add up quite quickly.
Atomic Commits / PRs: To make the changes easier to review and move through faster, could you separate out unrelated changes in separate commits and PRs? For example I believe the changes to CONTRIBUTING.md, linting, .gitignore, TS Config and .env.example could each go in separate PRs, unless there's a relation that I'm not understanding yet. In that case, could you explain these changes and how they relate to this rewrite to help us understand and review? Shout-out to @AleksandrHovhannisyan for writing a great blog on this topic: https://www.aleksandrhovhannisyan.com/blog/atomic-git-commits/ 🙌

Thank you @SimonBarendse for the bravo comments!
@bxb100 led the entire effort, so I will leave the final decision to him on how to implement changes. I'm here to explain why we need dist/.
For every uses: actions/checkout@v4, the GitHub Actions runner will clone the specified action actions/checkout and directly execute its entrypoint. There is no build or compile setup involved, so each action must include a bundled index.js file for the action to function properly.
The entry point is defined here: https://github.com/1Password/load-secrets-action/blob/0a309926fa2e1d3844db604b984ea6214baa028b/action.yml#L14-L16
Additional documentation can be found here: https://docs.github.com/en/actions/sharing-automations/creating-actions/creating-a-javascript-action

I am not sure if there are some dependencies in 1Password SDK that require ncc and wasm specifically, but I've had a great experience bundling JS GitHub Actions with esbuild. It's fast, supports tree shaking and the final bundle is smaller than NCC one.

I am not sure if there are some dependencies in 1Password SDK that require ncc and wasm specifically

I'm guessing 1Password has written their logic in Rust, with the JS SDK being just a wrapper.

I'm guessing 1Password has written their logic in Rust, with the JS SDK being just a wrapper.

Yes, this is exactly it. We're using WASM to share a single implementation (in Rust) between all languages we support SDKs in. Right now that's Go, Python and JS, and we've built it with the intention to grow to more languages (in a scalable & sustainable way).

Thanks for the explanation on why dist is required @Xuanwo ! ❤  That makes sense.

Thank you @Xuanwo, @SimonBarendse, and @yafanasiev for your reviews and discussions. I would like to provide some explanations and background information regarding the submitted content in this PR:

.env.example is an example config used for local-action, which facilitates local testing directly.
.eslintignore, .github/linters/.eslintrc.yml, package.json (deleting eslintConfig) are changes made because I couldn't use the original @1password/front-end-style/eslintrc.yml when submitting the code. Therefore, I switched to the configuration recommended by https://github.com/actions/typescript-action.
__tests__, config/jest.config.js are to expand the original test set.
.github/workflows/check-dist.yml is used to check the consistency of the generated dist for every PR and PUSH as mentioned before. It requires executing npm run bundle, which includes format:write.
CONTRIBUTING.md results from the pre-push hook from husky executing npm run validate(contain format). I apologize for its appearance in this submission.
The changes to .github/linters/tsconfig.json and tsconfig.json will be reverted.
Regarding the fallback to CLI when there are no environment variables, perhaps we can follow @Xuanwo 's suggestion and bump into v3, then iterate gradually. I understand this occurs mainly during local testing, but it can also be bypassed by setting the environment variables.
About compatibility, the inputs in action.yml remain consistent with version v2. The environment variables OP_SERVICE_ACCOUNT_TOKEN, OP_CONNECT_HOST, and OP_CONNECT_TOKEN also remain unchanged.
Based on my understanding of action uses ^1, I believe frequently changing the dist output will only affect users who do not use the major version and need to update manually (although, to be honest, I haven't seen this usage scenario).
For the bundled submission of this PR, since it was converted from one of my projects ^2, I did not consider atomic submissions. I sincerely apologize for any inconvenience this may have caused.

Backwards compatibility

Hi @SimonBarendse, I suggest we avoid taking this direction since switching from CLI-based to JS-based does introduce a breaking change. I can foresee multiple ways this action could fail. It's common and expected for GitHub Actions users to upgrade actions between major versions (every Node version bump will trigger one).
Adopting load-secrets-action@v3 would provide a much smoother transition for the community. Releasing v3 doesn't mean users will adopt it by default; they will continue using v2 unless they manually update their workflows.

For the bundled submission of this PR, since it was converted from one of my projects 2, I did not consider atomic submissions. I sincerely apologize for any inconvenience this may have caused.

Hi @bxb100, I understand the concern from @SimonBarendse's side. To make the PR review smoother, do you think it would be a good idea to simply remove all files except for package.json, src/, and dist/? We can gradually add other staffs back later (which makes it much easier to review without involving real logic).

I would like to provide some explanations and background information regarding the submitted content in this PR

Thank you @bxb100! 🙌  This is very helpful.
Followed up in separate issues

ES Lint Config: I've opened https://github.com/1Password/load-secrets-action/issues/83 for us to follow up on this.

Linting:

CONTRIBUTING.md results from the pre-push hook from husky executing npm run validate(contain format). I apologize for its appearance in this submission.

Thank you! This uncovered a gap in our linting in CI. We're following up in https://github.com/1Password/load-secrets-action/issues/84

Rewrite specific changes - Discussing in this PR
Backwards Compatibility

I suggest we avoid taking this direction since switching from CLI-based to JS-based does introduce a breaking change. I can foresee multiple ways this action could fail.

@Xuanwo could you help me see these too? I'm currently under the impression that SDKs will be fully compatible with CLI after addition of Auth Prompts. As @bxb100 mentioned as well:

the inputs in action.yml remain consistent with version v2. The environment variables OP_SERVICE_ACCOUNT_TOKEN, OP_CONNECT_HOST, and OP_CONNECT_TOKEN also remain unchanged.

Could you please help me see and understand what I'm missing?
Dist
Yes, I'm less concerned about this now and okay with proceeding with checking in the WASM binary into the code here after @Xuanwo's explanation why this is necessary. Apologies that I not explicitly mentioned that before.
I assume and hope when using the action that GitHub only fetches the referenced commit and not the full Git history, similar to the checkout action, by using --depth=1. That prevents historic binaries slowing down the action and increasing required bandwidth.
So the larger repo size from historic binaries checked in would only affect new contributors checking out the full repo, including all historic WASM binaries. But it won't affect using the action.
With that in mind, I believe we can pull back in the changes to dist and your introduction of .github/workflows/check-dist.yml.
Code Review
I've requested a review from @Marton6 and @edif2008 for the specific code changes made in this PR.

Thank you, @SimonBarendse, for the detailed explanation.

With that in mind, I believe we can pull back in the changes to dist and your introduction of .github/workflows/check-dist.yml.

I believe we can proceed after #83 #84 .

I assume and hope when using the action that GitHub only fetches the referenced commit and not the full Git history, similar to the checkout action, by using --depth=1. That prevents historic binaries slowing down the action and increasing required bandwidth.

base on https://github.com/actions/runner/blob/078eb3b381939ee6665f545234e1dca5ed07da84/src/Runner.Worker/ActionManager.cs#L784C1-L792C1 I think it direct download like https://api.github.com/repos/{action.NameWithOwner}/tarball/{action.Ref}

Hey @bxb100,
The contribution you’ve made so far has been amazing. While functionally testing this, I've come across a few feature gaps in the SDK's handling of secret references, differing from the CLI, such as:

File support
SSH key item support
Query parameters - only attribute=otp/totp is supported at the moment in the SDKs.

These features are actively being scoped and prioritized for future updates to the SDK.
Because of that, however, we can’t guarantee at this point the full backwards-compatibility of this rewritten version of the action until those features are available in the SDK as well. Therefore, I propose to move forward with this and make this a v2-alpha until the SDKs have the same support on secret references as the CLI.
Let me know how you feel about this.

Therefore, I propose to move forward with this and make this a v2-alpha until the SDKs have the same support on secret references as the CLI.

Hi, @edif2008, thank you so much for your review! This idea aligns with my initial thoughts, so here’s my +1 support. I fully support moving quickly rather than causing delays here.

I have no objections, agree with @Xuanwo

Hey @bxb100!
Just wanted to let you know that I've merged a couple of improvements related to the pipelines, as well as the ES Lint tooling. If you could merge the latest version of main into your branch, that would be much appreciated. That will also solve any merge conflicts that currently need to be resolved. 😄

Done, PTAL @edif2008


text:
Support for constants

Hi,
I tried the following:
#[typeshare::typeshare]
const SHARED_VAR: &str = "value";

...hoping that I could use this to define some shared constants in one place, but that doesn't seem to be supported.
There also wasn't an error message, which isn't ideal, I think.

I think this could be a useful feature! However, we would probably have to limit the scope of this change to numeric and string constants for now.

@InquisitivePenguin: That seem reasonable. Booleans probably also could be supported easily.

@InquisitivePenguin any update on your PR? Support for Rust &str constants would be really useful for us, thanks!

@dwosk Sorry about the delay - support for this should be ready soon.

authors: InquisitivePenguin d4h0 dwosk


text:
登录过期时，首页数据无法加载

登录状态容易自动过期，且无提示
此时app无法正常使用，首页数据无法加载，只能注销之后重新登录

后端给 App 的Token过期时间应该尽可能长一些
我这儿会加上定时登录，3600s一次

已解决，等待晚上合并。

authors: Lxxyx airingursb


text:
Android: Use TextColor instead of TintColor for unselected buttons

Should fix bug #83. Use TextColor instead of TintColor for unselected items.
Successfully tested on Google Pixel 3 with Android 10 and an Android Emulator with Android 8.0.

Thank you.
Fix will be implemented in upcoming release.


text:
pre_close问题

获取300416的日交易数据发现pre_close没有考虑除权除息

你好，我查看了一下数据，具体能提供哪里没有考虑到除权的信息呢


text:
docs:  README.md 수정

🎟 관련 이슈
👩💻 구현 내용

좋아요, 공유 수 증가 api 요구사항 정리 및 기술 명세서를 작성하였습니다.

💭 고려한 점

실제 API 호출을 시뮬레이션하여 외부 API와의 상호 작용을 추상화함으로써 실제 환경으로 전환할 때 변경 사항의 영향을 줄이도록 설계하였습니다.
이해를 돕기 위해 시퀀스 다이어그램, 클래스 다이어그램, 플로우 차트를 작성하였습니다.
시퀀스 다이어그램, 클래스 다이어그램, 플로우 차트를 작성하는 등 구체적인 문서화로 커뮤니케이션 비용을 줄이고 이해하기 쉽도록 하였습니다.

LGTM 🌟 깃에는 이미지가 보이지 않아서 테크스펙 링크 첨부해 주셔도 좋을 것 같아요!

e21f627
한 토글 안에 여러개가 있어서 렌더링 오류가 있었어요!  각 다이어그램들을 토글로 분리했습니다!

저도 노션보고 참고 했습니당! 시퀀스 다이어그램이랑 클래스 다이어그램 있으니까 이해가 더 잘되네요👍🏻

😃

고생하셨습니다!

authors: hye-on medoeun


text:
Added WoolWars player, quests and achievement stats

The title sums it up!
I've tested all case scenarios and so far no errors.

When wool wars literally isnt in the api at all:

When wool wars is in the api but 0 stats:

When wool wars is in the api:

LGTM! Thanks for doing this :)


text:
The screen looks like it's split in half.

`#include <PxMatrix.h>
#ifdef ESP32
#define P_LAT 22
#define P_A 19
#define P_B 23
#define P_C 18
#define P_D 5
#define P_E 15
#define P_OE 16
hw_timer_t * timer = NULL;
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
#endif
#ifdef ESP8266
#include <Ticker.h>
Ticker display_ticker;
#define P_LAT 16
#define P_A 5
#define P_B 4
#define P_C 15
#define P_D 12
#define P_E 0
#define P_OE 2
#endif
// Pins for LED MATRIX
PxMATRIX display(32, 16, P_LAT, P_OE, P_A, P_B, P_C);
#ifdef ESP8266
// ISR for display refresh
void display_updater()
{
display.displayTestPattern(70);
// display.displayTestPixel(70);
//display.display(70);
}
#endif
#ifdef ESP32
void IRAM_ATTR display_updater(){
// Increment the counter and set the time of ISR
portENTER_CRITICAL_ISR(&timerMux);
//isplay.display(70);
display.displayTestPattern(70);
portEXIT_CRITICAL_ISR(&timerMux);
}
#endif
uint16_t myCYAN = display.color565(0, 255, 255);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
display.begin(8);
display.flushDisplay();
display.setTextColor(myCYAN);
display.setCursor(2,0);
display.print("Pixel");
Serial.println("hello");
#ifdef ESP8266
display_ticker.attach(0.004, display_updater);
#endif
#ifdef ESP32
timer = timerBegin(0, 80, true);
timerAttachInterrupt(timer, &display_updater, true);
timerAlarmWrite(timer, 4000, true);
timerAlarmEnable(timer);
#endif
delay(1000);
}
void loop() {
delay(100);
}`
I am using the above code and trying to test the screen.
https://github.com/2dom/PxMatrix/assets/64726253/ee1e71c2-25c8-4443-87a6-8db4433640ee
The screen looks like in the video.
When I try to write, the screen looks like this.
     display.setTextColor(GREEN);   display.setCursor(2, 0);   display.print("ABCDE");   display.setTextColor(GREEN);   display.setCursor(2, 8);   display.print("ABCDE");

I did my best to solve the problem. I've listed some of the methods I've tried below.
display.setScanPattern({LINE, ZIGZAG,ZZAGG, ZAGGIZ, WZAGZIG, VZAG, ZAGZIG}); I tried all of them.
display.setMuxPattern({BINARY, STRAIGHT});  I tried both with all scan pattern options.
display.setPanelsWidth(2);  I tried, the result did not change.
display.setDriverChip(FM6124); I tried, the result did not change.
display.setFlip(true); I tried, the result did not change.
display.begin(8, 14, 13, 12, 4);  I tried, the result did not change.
I am using Nodemcu v3. Cable connections are as follows

I'm using a 32x16 p6 panel.

I am waiting for your help to solve the problem. Thank you very much.

Seems that the left an right side are swapped on this panel - the library currently does not support such panels - sorry


text:
train custom datasets

hello, if i want to train myself datasets,
data format how to  Keep consistence?

Hello. I'm really sorry for the late reply. 😭
How does the dataset you want to use consist of?


text:
Cost Explorer API (8/n): allow aws-ce-grafana-backend software to be traitlets configurable (in a "chart passthrough" manner)

Its not clearly decided what should be configured and how, but we need a system to provide configuration for the software.
An example of something that needs to be configurable is the clustername (the AWS resource naming, so openscapeshub and not openscapes for example).
Definition of done

Establish a traitlets based system that allows chart config -> software config in a way that doesn't make the chart understand what software config can be used.
Z2JH does this via jupyterhub.hub.config for example.
Setup the software to work with traitlets based config, trial with cluster_name
Setup and verify passthrough chart config of cluster_name works

I'm dropping this and going for hardcoded things as setting up a traitlets based system to configure the application was something I struggled with.

I've ended up settling for introducing a chart configurable environment variable for the cluster name, and will not try to make anything else configurable.


text:
🛑 MS - PACO is down

In 909974f, MS - PACO ($MS_PACO_URL) was down:

HTTP code: 503
Response time: 243 ms

Resolved: MS - PACO is back up in 0c1d40e after 12 minutes.


text:
🛑 MS - SHOP is down

In ddba009, MS - SHOP ($MS_SHOP_URL) was down:

HTTP code: 503
Response time: 234 ms

Resolved: MS - SHOP is back up in 6693816 after 10 minutes.


text:
🛑 MS - B2B is down

In 36d029f, MS - B2B ($MS_B2B_URL) was down:

HTTP code: 503
Response time: 455 ms

Resolved: MS - B2B is back up in 2ead7e0 after 10 minutes.


text:
🛑 Frai.se is down

In 4dd2498, Frai.se (https://frai.se) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Frai.se is back up in b4a62d4 after 23 minutes.


text:
AddChart returns  invalid memory address or nil pointer dereference

Description
I can't create a new chart
Even if I try Readme example:
package main

import (
	"fmt"

	"github.com/360EntSecGroup-Skylar/excelize"
)

func main() {
	categories := map[string]string{"A2": "Small", "A3": "Normal", "A4": "Large", "B1": "Apple", "C1": "Orange", "D1": "Pear"}
	values := map[string]int{"B2": 2, "C2": 3, "D2": 3, "B3": 5, "C3": 2, "D3": 4, "B4": 6, "C4": 7, "D4": 8}
	xlsx := excelize.NewFile()
	for k, v := range categories {
		xlsx.SetCellValue("Sheet1", k, v)
	}
	for k, v := range values {
		xlsx.SetCellValue("Sheet1", k, v)
	}
	xlsx.AddChart("Sheet1", "E1", `{"type":"col3DClustered","series":[{"name":"Sheet1!$A$2","categories":"Sheet1!$B$1:$D$1","values":"Sheet1!$B$2:$D$2"},{"name":"Sheet1!$A$3","categories":"Sheet1!$B$1:$D$1","values":"Sheet1!$B$3:$D$3"},{"name":"Sheet1!$A$4","categories":"Sheet1!$B$1:$D$1","values":"Sheet1!$B$4:$D$4"}],"title":{"name":"Fruit 3D Clustered Column Chart"}}`)
	// Save xlsx file by the given path.
	err := xlsx.SaveAs("./Book1.xlsx")
	if err != nil {
		fmt.Println(err)
	}
}

I got this:
panic: runtime error: invalid memory address or nil pointer dereference

Updating library solved the problem


text:
is it possible to check if cell has hyperlink?

Can't get a way to check if cell has any hyperlink

Thanks for your issue. I have added a function GetCellHyperLink().

thanks! will check later and write feedback

Hmm, I'm getting nil :( Document has hyperlinks that must be "fixed" - i.e. to external non-existing file, I can see them at Excel, but I can't get it via library :( Any ideas?
P.S.: I need to check my file and write at log, that there some external links.

The function GetCellHyperLink() just support get two types of hyperlink External for web site or Location.

ok, "external" can point to file also, I mean at Excel I see next link:
='/Debian/public/xxxx/yyy/xxxx/[FILE_NAME.xls]SHEET_NAME'!H25

Please provide file attachments If you can.

authors: plandem xuri


text:
Can't set EnvironmentVariables in cxbottle.conf

Setting
[EnvironmentVariables]
"DXMT_CONFIG_FILE" = "/Users/karpovpw/CXPBottles/11/dxmt.conf"
"DXMT_LOG_PATH" = "/Users/karpovpw/CXPBottles/11/dxmtLogs"
"DXMT_METALFX_SPATIAL_SWAPCHAIN" = "1"

doesn't do anything: no frame limiter (tried it in dxmt.conf), no logs and no metalFX. cxbottle.conf is for the correct bottle. CrossOver patched through CXPatcher.
Am I doing something wrong or are there other people who can't change EnvironmentVariables for dxmt?
The game is Metaphor:ReFantazio.

Please don't use our issue tracker for support of third party program.

Worked for me usingL
"DXMT_LOG_PATH" = "C:\\"

authors: 3Shain AndrewTriesToCode karpovpw


text:
Why "Mobject.get_merged_array()" function is called twice? Is it by intention?

I just notice that the get_merged_array() function is called twice during the recursion (see line 701 and 704 below). Is line 704 redundant?

See source code here: https://github.com/3b1b/manim/blob/master/manimlib/mobject/mobject.py#L704

I had made a patch some days ago. Patch #1123.
I also think it is redundant. The result is not attributed anywhere, but the function has no "side-effects" (it does not change anything).

Glad to hear that. Thanks @andre-caldas

Fixed in #1043

authors: Tony031218 andre-caldas mjmjmtl


text:
SyntaxError: invalid syntax in return np.array([*color_to_rgb(color), alpha])

while running python extract_scene.py example_scenes.py SquareToCircle -pl in a vitualenv with python 2.7.15
The error output is:
Traceback (most recent call last):
File "extract_scene.py", line 15, in
from scene.scene import Scene
File "/home/ashish/Documents/Codes/python/3b1b-manim/manim/scene/scene.py", line 15, in
from animation.animation import Animation
File "/home/ashish/Documents/Codes/python/3b1b-manim/manim/animation/animation.py", line 5, in
from mobject.mobject import Mobject
File "/home/ashish/Documents/Codes/python/3b1b-manim/manim/mobject/mobject.py", line 14, in
from utils.color import color_gradient
File "/home/ashish/Documents/Codes/python/3b1b-manim/manim/utils/color.py", line 23
return np.array([*color_to_rgb(color), alpha])
^
SyntaxError: invalid syntax

flake8 testing of https://github.com/3b1b/manim on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./old_projects/bell.py:222:38: E999 SyntaxError: invalid syntax
            for here, x in (here1, 0), (here2, 4)
                                     ^
./old_projects/borsuk.py:217:11: E999 SyntaxError: invalid syntax
         y=lambda m: m1.get
          ^
./old_projects/eoc/chapter6.py:399:35: E999 SyntaxError: invalid syntax
                for i, j in (1, 0), (0, 1)
                                  ^
./old_projects/nn/network.py:258:16: F821 undefined name 'get_norm'
        norm = get_norm(gradient)
               ^
./old_projects/nn/network.py:264:15: F821 undefined name 'get_norm'
        print(get_norm(old_pre_sig_guess - pre_sig_guess))
              ^
3     E999 SyntaxError: invalid syntax
2     F821 undefined name 'get_norm'
5

manim-master works in Python 3, not in Python 2, install pip3 and requieriments with pip3

I believe that this issue can be closed.

Greetings!
I'm already in Python 3.6.6 and when I type

(manim36) C:\Users\PaKo>python extract_scene.py example_scenes.py SquareToCircle -pl

I get the following:

Traceback (most recent call last):
File "C:\Users\PaKo\Desktop\Python\3blue_1brown\manim-master\extract_scene.py", line 299, in
main()
File "C:\Users\PaKo\Desktop\Python\3blue_1brown\manim-master\extract_scene.py", line 259, in main
module = get_module(config["file"])
File "C:\Users\PaKo\Desktop\Python\3blue_1brown\manim-master\extract_scene.py", line 254, in get_module
return importlib.import_module(module_name)
File "C:\Users\PaKo\Anaconda2\envs\manim36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "< frozen importlib._bootstrap  >", line 994, in _gcd_import
File "< frozen importlib._bootstrap  >", line 971, in _find_and_load
File "< frozen importlib._bootstrap  >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap  >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap  >", line 994, in _gcd_import
File "< frozen importlib._bootstrap  >", line 971, in _find_and_load
File "< frozen importlib._bootstrap  >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap  >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap  >", line 994, in _gcd_import
File "< frozen importlib._bootstrap  >", line 971, in _find_and_load
File "< frozen importlib._bootstrap  >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap  >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap  >", line 994, in _gcd_import
File "< frozen importlib._bootstrap  >", line 971, in _find_and_load
File "< frozen importlib._bootstrap >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap >", line 994, in _gcd_import
File "< frozen importlib._bootstrap >", line 971, in _find_and_load
File "< frozen importlib._bootstrap >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap >", line 994, in _gcd_import
File "< frozen importlib._bootstrap >", line 971, in _find_and_load
File "< frozen importlib._bootstrap >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap >", line 994, in _gcd_import
File "< frozen importlib._bootstrap >", line 971, in _find_and_load
File "< frozen importlib._bootstrap >", line 941, in _find_and_load_unlocked
File "< frozen importlib._bootstrap >", line 219, in _call_with_frames_removed
File "< frozen importlib._bootstrap >", line 994, in _gcd_import
File "< frozen importlib._bootstrap >", line 971, in _find_and_load
File "< frozen importlib._bootstrap >", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'C:'

Did it install right all the requirements or am I missing something?
Thank you in advanced,

The correct form is:
python3 extract_scene.py example_scenes.py SquareToCircle -pl

authors: CRLannister Elteoremadebeethoven Matemasters cclauss


text:
Linux Chinese Charactor Unable to 'WRITE'

(Manjaro Linux, Python3.7.3, Texlive)
I've read this issue:
https://github.com/3b1b/manim/issues/209
But by doing as what it told, I still cannot 'WRITE' Chinese charactors.
Here is what the .log file says:

! Package inputenc Error: Unicode character 者 (U+8005)
(inputenc)                not set up for use with LaTeX.

It seem that there are some problems with LaTeX.
I've not got too much practice on Python, so now I'm getting into a annoying position.
Somebody help me?

You have to modify the file manimlib/tex_template.tex, like this.

You have to modify the file manimlib/tex_template.tex, like this.

Great thanks.

authors: Elteoremadebeethoven JasonVenn


text:
fix: prevent xss

📊 Metadata *
Please enter the direct URL for this bounty on huntr.dev. This is compulsory and will help us process your bounty submission quicker.
Bounty URL: https://huntr.dev/bounties/1-npm-trumbowyg/
⚙ Description *
Describe your fix clearly and concisely - imagine you are describing it to a non-technical friend.
Make sure to not execute harmful/malicious code when you fill up a form
💻 Technical Description *
Describe in-depth, the technical implementation of the proposed security fix. Imagine you are describing it to a NASA engineer.
The insert link form is vulnerable to XSS attacks, which basically allows the possibility of executing harmful code using the editor.

🐛 Proof of Concept (PoC) *
Provide the vulnerability exploit to show the security issue you're fixing.
https://drive.google.com/file/d/1Rqsbr9_ijoHOa949B9Q1cM2jv8jb4zwV/view?usp=sharing
🔥 Proof of Fix (PoF) *
Replay the vulnerability exploit to show the successful fix and mitigation of the vulnerability.
https://www.loom.com/share/1cedcc306deb40d2a975dca7e2f77785
👍 User Acceptance Testing (UAT)
Run a unit test or a legitimate use case to prove that your fix does not introduce breaking changes.

👋 Hello, @Alex-D. @raoufswe has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above. If you want this fix in your repository, a PR will automatically open once you comment:
@huntr-helper - LGTM

☎ Need further support?
Come and join us on our community Discord!

❓@Alex-D - want more fixes like this?
Copy this snippet into your README.md for more vulnerability fixes in the future:
[![huntr](https://cdn.huntr.dev/huntr_security_badge_mono.svg)](https://huntr.dev)

Cross-site scripting (XSS) is a type of security vulnerability typically found in web applications. XSS attacks enable attackers to inject client-side scripts into web pages viewed by other users.

So, it's not an XSS if you take care to clean things server-side before serving them back to visitors.
I want this hunt to be closed.

@Alex-D - thanks for getting in touch - I will get this closed off for you now.
Just as a heads up, we are currently working on allowing maintainers to validate/invalidate bounties on our platform.
Have a great day! 👋 🍰

Sorry, @raoufswe - it looks like the maintainer has not selected your fix this time...
We appreciate your effort and look forward to seeing more of your fixes in the future! 🛠
If you have any questions, feel free to join our community Discord and a member of our team will be happy to help! 🤗

authors: Alex-D JamieSlome huntr-helper raoufswe


text:
zznmzy

tr

bob

@42423521 @zjd,(),
,(),

ssl,()<
,(),
fuck,(),
,(),

kill               zznmzy,(),
,(),

win

kill z c z j, w m z j j t c  l

license: Unlicense


text:
fix CheckLabel rule

Fix #386;
Fix #390;

Hello, the the tests failed with your PR can your fix it before review? :)

Hello, can you add a test check issue #390 ?


text:
Add prefix showing messages are replies to threads when using Mattermost ThreadContext

|00:25 <hloeung> Test (re @hloeung: Test) [->@@bffqtoecwtbcpr3k4n1g16ty4w]
|00:35 <hloeung> Test [@@1be5y8pmxpgn5c73keywnh9c8w]

Idea or request came from @axinojolais making it easier to tell if a message is a reply to a thread. Especially if you have HideReplies set.

🎉

🎉


text:
Use the site absolute url for twitter:image

#283 didn't truly fix the issue because Twitter requires absolute URLs for images.
This PR adds a new configuration micrositeUrl when we need to specify the site absolute url.
Alternative approaches:

Setting site.url. But if we set this value in _config.yml, it makes difficult to see local images updates because there are many templates using {{site.url}} (e.g., favicon URLs), so all icon images refer remote server URLs.
Using a twitter-card specific configuration (e.g., micrositeTwitterCardImageAbsoluteUrl)

With this fix, the card validator https://cards-dev.twitter.com/validator of Twitter icon can properly show the card image (/image/poster.png):

Apologies for hijacking, but would it be possible to also fix og:image for linkedin in this PR? Not sure if an absolute URL is also needed here or if the format of og:image is not exactly correct - perhaps both name and property attributes are required - see details from linkedin post inspector bellow:

That's fantastic, many thanks @xerial - looking forward to 0.7.26!

OK!

@calvellido Added a note to settings.md

Just released 0.7.26 including these changes, thanks so much @xerial!

Grand, thanks guys @calvellido and @xerial

It failed: https://travis-ci.org/47deg/sbt-microsites/jobs/457450111#L1488
I'll fix it.

0.7.26 should be now on its way to Maven central.

@juanpedromoreno confirmed, cheers

Thanks @juanpedromoreno! :kissing_heart:

authors: calvellido juanpedromoreno manosbatsis xerial


text:
Add a source/lib folder to bare and scaffold projects.

Both tag-based callbacks and filters might need to require their own modules, such as for common code that is used by more than one callback or filter. Having a predefined folder to host these modules is a good idea, and thus both bare and scaffold projects should include the source/lib folder.
Note: documentation should be updated to reflect the addition of the source/lib folder to the generated project structure.

see relate issue #107


text:
Change the path of scene_library.cfg to the addon folder

Closes: https://github.com/4d49/scene-library/issues/15

Thank you!


text:
Wayland?

tried it but nope.

I gave it a quick try on Ubuntu 22.10 with GNOME 43.1/Wayland, and after installing xclip with sudo apt install xclip the script copied the timestamps and path correctly to primary and clipboard. Currently, it doesn't show a warning or errors if xclip is not installed, and just prints the message that the string was copied (I need to change that). Which distro/setup are you using?

Which distro/setup are you using?
archlinux kde wayland with wl-clipboard

Added support for wl-clipboard in 073e7c24686bcff66aab8656f681c725a8159bc5

forgive me my lord, i dunno how to troubleshoot stuff, so i can't really help you much besides telling you:
it didnt werk.
what exactly didnt werk?

copying timestamps to clipboard
copying ffmpeg -ss hh:mm:ss -to hh:mm:ss -i "/path/to/file" -lavfi crop=w:h:x:y to clipboard

i've done as you stated in the readme:
cd ~/.config/mpv/scripts
git clone your_repo
main.js file is inside PureMPV and not out of it
````

It's okay, don't worry.
Support was added for wl-clipboard but the main.js in the repo gets updated only when there is a version bump. For the latest commit you can grab one of GitHub's automatic builds here.
The default selection is primary even for wl-clipboard, to change it set selection=clipboard in ~/.config/mpv/script-opts/PureMPV.conf

with the latest main.js copying to clipboard and primary clipboard didnt werk even with slection=clipboard in ~/.config/mpv/script-opts/PureMPV.conf
wit the pre-release main.js copying to clipboard werks just fine, but it if selection=clipboard isnt in ~/.config/mpv/script-opts/PureMPV.conf copying to primary clipboard  doesnt werks
Cropping is extremely buggy and practically unusable
next part you can ignore it, it is only relevant if you know of firejail.
with firejail; PureWebM werks fine if used in the cmdline. but if i try to use it via mpv  with ctrl+o it just doesnt werk even though i've whitelisted the appropriated folders in a custom firejail profile for purewebm like:
whitelist ${HOME}/.config/PureWebM
whitelist ${HOME}/.local/bin/purewebm
whitelist ${HOME}/.local/pipx

it just throws an error saying: Error: no suitable /home/werks/.local/bin/purewebm
if you want to know what i have for the custom purewebm profile, here is it:
# Persistent local customizations
quiet
include purewebm.local
# Persistent global definitions
# added by included profile
#include globals.local
# Python 3
ignore blacklist ${PATH}/python3*
ignore blacklist ${PATH}/python3*
ignore blacklist /usr/include/python3*
ignore blacklist /usr/lib/python3*
ignore blacklist /usr/lib64/python3*
ignore blacklist /usr/local/lib/python3*
ignore blacklist /usr/share/python3*
# Python 2
#ignore blacklist ${PATH}/python2*
#ignore blacklist /usr/include/python2*
#ignore blacklist /usr/lib/python2*
#ignore blacklist /usr/local/lib/python2*
#ignore blacklist /usr/share/python2*

noblacklist ${VIDEOS}
noblacklist ${HOME}/.config/PureWebM
noblacklist ${HOME}/.local/bin/purewebm
noblacklist ${HOME}/.local/pipx

include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
include disable-programs.inc
include disable-xdg.inc
include disable-X11.inc

whitelist ${VIDEOS}
whitelist ${HOME}/.config/PureWebM
whitelist ${HOME}/.local/bin/purewebm
whitelist ${HOME}/.local/pipx

apparmor
caps.drop all
machine-id
netfilter
net none
nogroups
nonewprivs
noroot
nou2f
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
tracelog

private-bin purewebm,env,ffmpeg,python*,mpv
private-cache
private-etc alternatives,ld.so.cache,ld.so.preload

dbus-user none
dbus-system none

# Redirect
#include youtube-dl.profile

copying to clipboard werks just fine, but if selection=clipboard isnt in ~/.config/mpv/script-opts/PureMPV.conf copying to primary clipboard doesnt werks

Strange. I tried both on Ubuntu/gnome, and Arch/KDE with wl-clipboard and they copied the strings as instructed to the primary selection. Only KDE had an issue where the shift + insert didn't paste what it copied to primary, but middle mouse did work. You can try it out executing echo -n hello | wl-copy --primary in your terminal and see if it works or not directly.

Cropping is extremely buggy and practically unusable

Yeah, it really was. It was terrible, and was what prompted me to make PureBox. I didn't know at the time how to draw the box on mpv apart from using ffmpeg filters which was extremely heavy, and didn't work with hwdec. I just fixed the internal cropbox with these two commits: b7460e50f050b81277433192e16c63b6ea6f609c and b11000092aa92b7a4eb168b14b0052c2bfb854d3. It uses ass-events now, which is much faster and works with hwdec.

shift + insert is not werking for me aswell

echo -n hello | wl-copy --primary

yeah, no problems with that, it werks. well, i may have confused the files a some point the main.js files and the firejail config.
copying to primary clipboard without selection=clipboard in PureMPV.conf werks fine now.
except  for shift+insert, well the shift+insert is likely an arch/kde/wl-clipboard issue
and cropping is now working as expected

Closing this issue since now I'm using a linux box with Wayland and can confirm support is working as intended. Thank you for the feedback Crehet.


text:
todo: fix this

css related:

button:hover style don't work and i don't even know why
input styles don't even work at all

html related:

background image is too large, optimize it already

issue is closed, since i don't want anyone else to mess with my todo


text:
My Index Page

Made it so the Index page would greet the USER or Guest
Closes
This wasn't an issued #, sooooooooooooo yeah
Changes Made
Describe your changes in detail here:

Edit the Index.razor page

Notes
I updated my fork, applied changes, then Tried to run it, got some error's back about a missing .dll file - Basically - FiveOhFirstDataCore.Pages\bin\Debug\net6.0\ref\FiveOhFirstDataCore.Components.dll could not be found.

In the future, when working on things that are not issues - make an issue for it first so it can be used for change tracking purposes.

I hate the Visual Studio Git bull shit

authors: LaocheXe Soyvolon


text:
Update Mean Finance to also support arbitrum

Gnosis pr

Revision checks

[X] Your Safe App include a manifest.json file at the root [with the required data](https://docs.gnosis-safe.io/build/sdks/safe-apps/releasing-your-safe-app)
[X] The app can be loaded as a custom Safe App in the Apps section of https://gnosis-safe.io/app
[X] The app auto-connects to the Safe
[X] You are able to trigger and execute one transaction with a Safe
[X] RPC requests are optimized (not triggering many requests in a very short time period)

Name/Description

Mean Finance
Mean Finance is the state-of-the-art DCA open protocol that enables users (or dapps) to Dollar Cost Average (DCA) any ERC20 into any ERC20 with their preferred period frequency, without sacrificing decentralization or giving up personal information to any centralized parties.
Type

Update

Compatible Networks

Arbitrum One

Code for review

FE: https://github.com/Mean-Finance/dca-fe
Where we are using safe-apps-web3modal: https://github.com/Mean-Finance/dca-fe/blob/9d596e1a72086ffa8b186bbd5bc0334f75450480/src/services/web3Service.ts#L287
Org: https://github.com/Mean-Finance
Docs: https://docs.mean.finance/
Smart contracts (all verified):

Arbitrum:
ChainlinkRegistry
ChainlinkOracle
UniswapV3Oracle
OracleAggregator
TimelockController
DCAFeeManager
TokenDescriptor
PermissionsManager
DCAHub
DCAHubCompanion
DCAHubSwapper
SwapProxy
SwapperRegistry
TransformerOracle
TransformerRegistry
ProtocolTokenWrapperTransformer
ERC4626Transformer

IPFS hash/App URL

https://mean.finance/
Desired date

Arbitrum just launched so we can coordinate an announcement whenever you want :)

Verified
the app works on Arbitrum

App should be available soon in the list

authors: FiboApe dasanra liliya-soroka


text:
Everything opens in a new tab

Currently (as of https://github.com/5digits/dactyl/commit/b9849df56532a9fcbf2d46dfca7ea4eabc38160a), everything that opens a url opens it in a new tab. Even trying to navigate backwards causes a new tab to be opened.

(I don't have anything constructive to say; I just wanted to mention that I find this humorous. :P )

Hmm, I'm glad to know I'm not the only one with this issue. I just tried restarting/rehashing/cleaning things out and now I'm not seeing this behavior, so I guess it must be triggered by a command I used. I will look out for it when it happens again.

I'm seeing the same on the first use after updating. Any idea what you did to fix it? Even commands like :open and :winopen open a new tab.

Huh, just rebooting seems to fix it.

I haven't seen it again since I opened the issue and I have restarted Firefox several times. Perhaps it is related to some property set at runtime that Pentadactyl didn't clean up when it was uninstalled as part of an update.

@willsALMANJ, mind closing this?

No problem, though closing runs counter to the devs' style even dating back to the previous issue tracker on Google Code.

Hopefully Github's issue tracker is easy enough to use -- searches include closed issues, etc. -- that it won't be a problem. :p

I <3 Github's issue tracker. :)
I have a love/hate relationship with the email updates though, haha (I realise I can turn them off, but I haven't found any Android Github clients I like, haha).

@krompus, this made things much better https://ptpb.pw/Urmp.png

Haha, I know, I've just not found a good Github Android app, and I actually like getting notifications on my phone when people comment on threads I'm watching. :)
I'll do some more fiddling, I suppose.

I find myself jumping between mobile and desktop view pretty often. :p

authors: krompus laMudri polyzen willsALMANJ


text:
Array destructuring now requires Symbol

This changed in this commit: https://github.com/6to5/6to5/commit/c509d06bc2d74b58b8edf38597b13bc278896c71

Woops, forgot to update that. Thanks!

authors: goatslacker sebmck


text:
Rashad rooms

Resolved the issues. New Door type. Added more fields to PlayState to accomadate walls and doors. Refactored wallTileMap and doorTileMap accordingly.

Except for the door number, everything is good.


text:
下のツリーから上のツリーへドラッグ

分類を変えたい時に下のツリーから上のツリーへドラッグしたいです。
現状では一時的に新規ウィンドウを開いて仮置き場として経由させる必要があります。

ドラッグ中のイフェクトは中に入れるものだけで、前後への挿入は不要です。
この部分を作り込む必要があります。


text:
🛑 instagram is down

In 76486f1, instagram (https://www.instagram.com/9renpoto/) was down:

HTTP code: 429
Response time: 446 ms

Resolved: instagram is back up in be9026a after 9 minutes.


text:
Memory leaks

I see the following leaks while using AAChartKit - you can reproduce this when you open the demo, then open the ColumnChart demo screen. When you profile this in Instruments, you see the following memory leaks. How can we fix that?

Can you fix that?please help me!😊

Looks like it is related to the AAJsonConverter:

I need more time to resolve this problem😢

I found the cause. You need to
free(props);
in line 57 of AAJsonConverter.m:
+ (NSDictionary*)getObjectData:(id)obj {
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    unsigned int propsCount;
    Class class = [obj class];
    do {
        objc_property_t *props = class_copyPropertyList(class, &propsCount);
        for (int i = 0;i < propsCount; i++) {
            objc_property_t prop = props[i];

            NSString *propName = [NSString stringWithUTF8String:property_getName(prop)];
            id value = [obj valueForKey:propName];
            if (value == nil) {
                value = [NSNull null];
                continue;
            } else {
                value = [self getObjectInternal:value];
            }
            [dic setObject:value forKey:propName];
        }
        free(props);
        class = [class superclass];
    } while (class != [NSObject class]);

    return dic;
}

authors: AAChartModel skuske

repo: AAChartModel/AAChartKit


text:
Update endpoint for storageUnitUsage

The OpenAPI endpoint for storage unit usage still points to /v1/storageUnitCoordinates, https://dina-web.github.io/collection-specs/#tag/Storage-Unit-Usage

Fixed by https://github.com/DINA-Web/collection-specs/commit/971685190505ceb9c828642d566f90ce2b7e0620

authors: cgendreau dshorthouse


text:
Trying to generate my code gen analyzer build time package

Hello, I'd like to generate my own Build Time package, and I think it must include a reference to CodeGeneration.Roslyn.BuildTime, right? I'd like to do so using the new CSPROJ furnished NuGet properties. Basically the project is a do-nothing, placeholder project that does nothing more than make the necessary references.
Previously, I was doing this using a nuspec file, but I would like to incorporate my BumpAssemblyVersions in the process.
What I am finding is that when I make the reference, BuildTime is trying to actually generate some code. Is there a way I can configure it not to do this, because at the moment things are failing. In other words, there is no source, there is nothing to generate. I just need the package reference so that it gets picked up by NuGet when packaging occurs.
Thanks!

I'd be interested to know why you want your own build time package.
I think your question is how to reference my buildtime package from yours, such that you don't yourself consume it, but your downstream folks do. Is that it? If so, try this in your csproj:
   <PackageReference Include="CodeGeneration.Roslyn.BuildTime" PrivateAssets="none" ExcludeAssets="build" />

That should prevent you from consuming the build authoring that is breaking your build, while (hopefully) still propagating that build authoring to your own consumers.

@AArnott Because I have a set of attributes, analyzers, etc, that I want to bundle in similar fashion... That depends on CodeGeneration.Roslyn.BuildTime, but which itself does not use it.

@AArnott What is the purpose of the using and extern alias bits added in TransformationContext?
I furnished empty ranges for them and my unit tests seemed to work, though.

Those are for those generators that need to add using or extern directives at the top of the generated C# file. Most generators probably don't need to do this, so empty lists are fine.

Of course; if there's something conventional, that's probably a-ok. In my case, I think I am putting those in myself as a matter of course. But it's good to know.
Question is, how do you specify them by convention? I'm not sure my generator ever sees the TransformationContext, at least not directly, correct?

Sure it does. When your generator is invoked, the TransformationContext is passed in:
https://github.com/AArnott/CodeGeneration.Roslyn/blob/master/src/CodeGeneration.Roslyn/ICodeGenerator.cs#L26

No, my generator implements GenerateAsync. In turn is passed the context. I do not actually do the contextualization. In the unit test I do, of course; but not in the production code.

Actually, these properties from TransformationContext include usings and externs already added to the generated document (by previously invoked generators). I believe the comments are pretty clear:
https://github.com/AArnott/CodeGeneration.Roslyn/blob/95003217cec33f70f5a127e6da389b285ac63c59/src/CodeGeneration.Roslyn/TransformationContext.cs#L47-L51
These are necessary for an example scenario:
Generator A impements ICodeGenerator but depending on whether the generated code has using System.IO or not, it'll emit qualified or unqualified references to Path class. It can check that by accessing the context.CompilationUnitUsings collection.
Generator B wants to add using System.Linq at compilation unit level (top-level/document level), as it uses the extension methods from that namespace. So it implements IRichCodeGenerator and, if the context.CompilationUnitUsings doesn't contain that using yet, returns result with the using added to RichGenerationResult.Usings.
Now, if the generator B didn't check the using was already included in generated document, it'd add duplicate using, which is unnecessary and may lead to warnings etc.

@amis92 You don't understand? From the GENERATOR's perspective. TransformationContext is passed into the generator. I do not actually have any control over that context, but at least at the moment I am implementing ICodeGenerator only.
My tests are invoking GenerateAsync, but I don't think I am actually creating any contexts in the actual production code. I just implement the GenerateAsync method.
@AArnott So the question stands. How do I specify the using bits, aliases, etc, for the context? The key is implementing IRichCodeGenerator instead of or in addition to ICodeGenerator?

@amis92 Even the so-called "rich" interface does not create any contexts. Nor does it furnish any using bits.
Task<RichGenerationResult> GenerateRichAsync(TransformationContext context, IProgress<Diagnostic> progress, CancellationToken cancellationToken);

You don't create the context, except for unit tests, as intended.
Thus, you don't specify (assign the values) of context's properties, including CompilationUnit -Usings and -Externs.
They are the context in which your generator is invoked. You cannot change it.
If your question is how to add compilation unit usings/externs to the generated document, you need to implement the IRichCodeGenerator and pass them in the return value. RichGenerationResult has the following assignable properties:
https://github.com/AArnott/CodeGeneration.Roslyn/blob/95003217cec33f70f5a127e6da389b285ac63c59/src/CodeGeneration.Roslyn/RichGenerationResult.cs#L15-L33

As an implementation detail, if you're implementing IRichCodeGenerator, the ICodeGenerator.GenerateAsync method isn't invoked. It can throw.

Well, if you're generating a package without any dlls contained, just bundling/aggregating other references, I'd advise using nuspec, since it's more "appropriate" (it's not a C# project). If you insist on using csproj (and I can see why, I like it better as well and there's versioning tooling support), @AArnott's first comment should work?
If you want not to package any dlls (e.g. because they don't actually contain anything), I'm pretty sure there's an MSBuild switch to exclude packaging artifacts. In fact, what you're trying to achieve is already done for BuildTime package here:
https://github.com/AArnott/CodeGeneration.Roslyn/blob/95003217cec33f70f5a127e6da389b285ac63c59/src/CodeGeneration.Roslyn.Tasks/CodeGeneration.Roslyn.Tasks.csproj#L9-L10

authors: AArnott amis92 mwpowellhtx

license: MS-PL


text:
External dependencies

Today I encountered a problem when I need some external dependencies (e.g. Newtonsoft.Json). Is there any way to provide those?
When I'm trying to build a generator with dependency I get:
  Solidity.Roslyn -> /Solidity.Roslyn/Solidity.Roslyn/bin/Debug/netstandard2.0/Solidity.Roslyn.dll
  AggregateException: One or more errors occurred. (Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, C
ulture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.
  )
  System.AggregateException: One or more errors occurred. (Could not load file or assembly 'Newtonsoft.Json, Version=11.0
.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.
  ) ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neu
tral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.

     at Solidity.Roslyn.SolidityGenerator.GenerateAsync(TransformationContext context, IProgress`1 progress, Cancellation
Token cancellationToken)
     at CodeGeneration.Roslyn.DocumentTransform.EnrichingCodeGeneratorProxy.<GenerateRichAsync>d__5.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at CodeGeneration.Roslyn.DocumentTransform.<TransformAsync>d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at CodeGeneration.Roslyn.CompilationGenerator.Generate(IProgress`1 progress, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at CodeGeneration.Roslyn.CompilationGenerator.Generate(IProgress`1 progress, CancellationToken cancellationToken)
Solidity.cs(1,1): error CGR001: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Versio
n=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified. [/Solidity.Rosl
yn/Solidity.Roslyn.Example/Solidity.Roslyn.Example.csproj]
     at CodeGeneration.Roslyn.Generate.Program.Main(String[] args)
  ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11
.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.

  File name: 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
     at Solidity.Roslyn.SolidityGenerator.GenerateAsync(TransformationContext context, IProgress`1 progress, Cancellation
Token cancellationToken)
     at CodeGeneration.Roslyn.DocumentTransform.EnrichingCodeGeneratorProxy.<GenerateRichAsync>d__5.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at CodeGeneration.Roslyn.DocumentTransform.<TransformAsync>d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at CodeGeneration.Roslyn.CompilationGenerator.Generate(IProgress`1 progress, CancellationToken cancellationToken)

  <---

Build FAILED.

Solidity.cs(1,1): error CGR001: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Versio
n=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified. [/Solidity.Rosl
yn/Solidity.Roslyn.Example/Solidity.Roslyn.Example.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.23

So, any thoughts on that?

Looks similar to #61
The code generator should search for a .deps.json file. This is normally not included in the nuget package. But will be generated on build. Try to add this file to the nuget of your generator.
At least if this is the same error

I didn't hear anything similar before. Could you elaborate, please? What steps should I perform.
The most weird thing is that I'm able to compile it locally, but it doesn't work in docker. Have no idea why though.

This is the project I'm trying to build: https://github.com/Pzixel/Solidity.Roslyn/tree/feature/nethereum
The most interesting thing is that master does compile (and it uses Json.Net as well).

I don't have any experience with docker. Where does your generator dll resides?
For me it was the problem, that I had an generator dll that referenced another library through nuget.
It worked localy, but when I packed it in a nuget, it would no longer work.
The problem was that my local build had a .deps.json file in the build folder. The generator can use it to find out what DLLs are needed by my library and prepare assembly resolution. But the nuget package was missing so it was not able to correctly resolve the dependencys.
I added following lines to my project, so the .deps.json file is added to nuget: https://github.com/LokiMidgard/NDProperty/blob/60eab62a3072c7a41d71f07e4b78d299af920ef8/NDProperty.Core/NDProperty.Core.csproj#L17-L21
After that my Problem was gone. I would assume that wherever your generator dll is lying around it is missing this deps.json file. you can test it if you can manfully deploy it from your build folder to the deployed location.

All dlls resides inside container where it is built. Docker experience is not actually required because it's as simple as install clean OS and try to clone and build stuff. The main idea here is that you don't have any mystic environment issues like "well I dunno, it works for me". But it's not that easy to understand why it doesn't build on clean OS.

Unfortunately that is the only problem I had in the past with dependency resolution. I was able to found the culprit then debugging the dependency resolution code in the generator framework. But that will be hard if you can't reproduce it on your machine.

@LokiMidgard well, I managed to install brand new ubuntu physically on my laptop. And I can say that it doesn't work there as well. So it becomes interesting. I have https://github.com/Pzixel/Solidity.Roslyn , branch feature/nethereum, which builds fine on windows and mac, but it doesn't on clean ubuntu.
Any ideas why it could happen? @AArnott please, give some advice if any. I'm quite lost here.

@Pzixel the error is still the same I suppose?
Some time ago I had an idea to use https://github.com/natemcmaster/DotNetCorePlugins/ library to handle dependency loading in CodeGeneration.Roslyn. I think it'd be a good idea to incorporate the approach presented there. I'll probably do a pull request for it at some point.

Any progress on that?
I'd probably like to help because it blocks my project that I want to integrate in the CI process. The problem is that CI is running on ubuntu machine so I cannot get project compiled. It's really hurts I can't adopt CodeGeneration and have to hand write all types that should be just generated.

Btw, it worth adding other platforms CI tests as well since AppVeyor already supports Linux tests suites: https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/

.NET Core doesn't require binding redirects. It will simply load whatever DLL it finds in the directory of the .exe. As for the .deps file, I know nothing about that. The only experience I've had trying to make a .NET Core app extensible was an MSBuild Task (in fact, this project was part of that effort) and it was so very painful I ended up throwing out the idea and going with a dotnet console app which MSBuild spawns. That's why this codegeneration.roslyn project doesn't generate code within the msbuild process any more as it used to.
I can certainly help get the build and tests going on Ubuntu. I have had much more success at that sort of thing. But if any of you can help with making code generators with dependencies work, I'd be happy to review PRs. Even if it takes me several days to respond.

Being said in #98 , I have a huge need in having it work in ubuntu since it's default docker host for netcore applications and I'm currently building one. I have a very cool project stuck because I cannot build in on CircleCI.

@LokiMidgard See some posts in #98 , I have written several scenarios. In more details, here is
My code: https://github.com/Pzixel/Solidity.Roslyn
My build docker image: https://hub.docker.com/r/pzixel/solidity-dotnet/~/dockerfile/
My failed build: https://circleci.com/gh/Pzixel/Solidity.Roslyn/58
The interesting point here is that I actually have a generator that uses Json.Net just fine. It happens because generator itself seems to be using it. But if I add yet another project that relies on Json.Net then resolution fails. I can't exactly explain why it's happening.

It's some time, since I looked in this projects source code. But I would start with LoadAssembly, ResolveAssembly and Generate. If you can't attach an debugger add more Logging to the methods. Worsecase log before every statement, and write the varibales to the console.
Your exception is somewhere in following block: https://github.com/AArnott/CodeGeneration.Roslyn/blob/38605a454be13f09cb13a8ee944bf7c318510e9d/src/CodeGeneration.Roslyn/CompilationGenerator.cs#L128-L155
And I assume you could get more information what and where the lib try's to load dll's from the first two methods I mentioned. Maybe you can log where it loads the dll from in your working master, and where he try's it to load from in your not working branch.

I still unable to build in docker on latest version of the package :(
@AArnott I'd be really exited if you could look at the package: https://circleci.com/gh/Pzixel/Solidity.Roslyn/63
What could be wrong here? I think I checked everything, but I don't know why I'm getting this weird errors... I don't have it on windows or mac, but always get them on ubuntu (or docker, which is the same).

Okay, I found something.
Just adding one dependency already doesn't allow it to compile: https://github.com/Pzixel/Solidity.Roslyn/pull/3/files
The problem is that when I use Json.Net 9.0 it's ok because it's dependency of CodeGeneration.Roslyn package itself (through DependencyModel 2.0.4). So when I upgrade it it couldn't locate the assembly. And it's truly is not available. How could it be done?

authors: AArnott LokiMidgard Pzixel amis92