Missing x8.xml File

The main.py code runs on an x8 model, which isn't currently supported by JSBsim. Do you have the additional x8.xml file to upload, or what parameters need to be modified to run the cessna172p model? (Currently reports an error that is cannot find specific controls when running main.py with cessna)

Hi Nikita, apologies for the delay.
I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

Hi Nikita, apologies for the delay.
I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

Hi Alexander 😄 (Thanks for this awesome repository)
I followed this steps:

Install Airsim
Install JSBSim
Clone the repository
Install python 3.8 requirements
Copy x8 directory to JSBSim aircraft folder
Run Airsim environment
Run src/main

But code raise RuntimeError: JSBSim could not find specified model name: x8

Hi Nikita, apologies for the delay.
I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

Hi Alexander 😄 (Thanks for this awesome repository)
I followed this steps:

Install Airsim
Install JSBSim
Clone the repository
Install python 3.8 requirements
Copy x8 directory to JSBSim aircraft folder
Run Airsim environment
Run src/main

But code raised RuntimeError: JSBSim could not find specified model name: x8

It's cause of electric800W.xml engine which x8 need it and it doesn't exist in JSBSim default engines.
Mr. Alexander which environment you recommend for this repo?

We're running into the same issue, is the electric800W.xml configuration file available somewhere online?

Hey sorry for the delay, the electric800W.xml file is simply a basic electric motor, in your JSBSim cloned repo place this into the jsbsim/engine directory:
<?xml version="1.0"?>
<!--
  File:     electric800W.xml.xml
  Author:   Alexander Quessy
-->
<electric_engine name="electric">
 <!-- This is a basic model of the electric motor used to power the x8
 -->
 <power unit="WATTS">  8.0 </power>
</electric_engine>

main.py 代码在 x8 模型上运行，JSBsim 目前不支持该模型。您是否需要上传额外的 x8.xml 文件，或者需要修改哪些参数才能运行 cessna172p 模型？（当前报告在使用 cessna 运行 main.py 时找不到特定控件的错误）

hello, I am replicating this code, and I have a problem, when I run "advance_landing.py", there is a error: moduleNotFoundError: no module named "jsbsim_simulator",do you konw how to solve this question? I am looking forward to your reply


feat(value): expose .private_data()

Hey @jviotti should be good now 🎉

Let's merge this, and then I could start to integrate with Starship.
We could address this later, @RaisinTen, if you don't mind.
WDYT about a meeting to solve this? @RaisinTen


Revert edits that changed "Cancelled" to "Canceled"

The UX uses "Cancelled", so this text shouldn't be changed to "Canceled".

Microsoft authors of articles need to make updates through the private repository, so the updates can be staged and validated by current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.
It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
 Public repo URL: https://github.com/MicrosoftDocs/{docs-repo}
 Private repo URL: https://github.com/MicrosoftDocs/{docs-repo-pr}
We have closed this pull request. Please resubmit the updates through the private repo. For more information, see the contributor guide.


no crash/kernel panic info in syslog/kern.log

Version
Microsoft Windows [Version 10.0.19044.1706]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
5.18.3linux-5.18.ylinux-5.9.18.y+
Distro Version
20.04
Other Software
No response
Repro Steps
(1) $sudo vim /etc/rsyslog.d/50-default.conf
set the following, i.e. remove the '-' before the log file:
*.*;auth,authpriv.none          /var/log/syslog
kern.*                          /var/log/kern.log
(2) start the rsyslog service, and check /var/log/ to find out that /var/log/syslog and /var/log/kern.log are generted and has correct log info
(3) Run echo c > /proc/sysrq-trigger to generate a system crash and then the wsl2 exit immediately.
(4) Then reboot the wsl2,  no any crash or panic messages logged in either /var/log/syslog or /var/log/kern.log
Expected Behavior
the crash related panic message should be logged in both /var/log/syslog and /var/log/kern.log, e.g.
[    7.952685] sysrq: Trigger a crash
[    7.952850] Kernel panic - not syncing: sysrq triggered crash
[    7.953098] CPU: 0 PID: 71 Comm: linuxrc Not tainted 5.19.0-rc2 #1
[    7.953259] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
[    7.953655] Call Trace:
[    7.954133]  <TASK>
[    7.954332]  dump_stack_lvl+0x34/0x44
[    7.954651]  panic+0x102/0x27b
[    7.954756]  ? _printk+0x53/0x6a
[    7.954847]  sysrq_handle_crash+0x11/0x20
[    7.954953]  __handle_sysrq.cold+0x43/0x11b
[    7.955065]  write_sysrq_trigger+0x1f/0x30
[    7.955167]  proc_reg_write+0x4c/0x90
[    7.955267]  vfs_write+0xb4/0x290
[    7.955362]  ksys_write+0x5a/0xd0
[    7.955453]  do_syscall_64+0x3b/0x90
[    7.955553]  entry_SYSCALL_64_after_hwframe+0x46/0xb0
[    7.955773] RIP: 0033:0x4a8531
[    7.955999] Code: e0 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b3 0f 1f 80 00 00 00 00 8b 05 d2 26 1e 00 85 c0 75 16 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 57 c3 66 0f 1f 44 00 00 8
[    7.956427] RSP: 002b:00007ffde8168508 EFLAGS: 00000246 ORIG_RAX:<PHONE_NUMBER>000001
[    7.956625] RAX: ffffffffffffffda RBX:<PHONE_NUMBER>01a8a0 RCX:<PHONE_NUMBER>4a8531
[    7.956787] RDX:<PHONE_NUMBER>000002 RSI:<PHONE_NUMBER>0201e0 RDI:<PHONE_NUMBER>000001
[    7.956949] RBP:<PHONE_NUMBER>000001 R08: fefefefefefefeff R09: fefefefefefeff62
[    7.957113] R10:<PHONE_NUMBER>0001b6 R11:<PHONE_NUMBER>000246 R12:<PHONE_NUMBER>0201e0
[    7.957275] R13:<PHONE_NUMBER>000002 R14: 00007ffde8168701 R15: 00007ffde8168578
[    7.957467]  </TASK>
[    7.957806] Kernel Offset: 0x34a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    7.958215] ---[ end Kernel panic - not syncing: sysrq triggered crash ]---

Actual Behavior
no any such messages found in either /var/log/syslog or /var/log/kern.log
Diagnostic Logs
No response

This is normal in Linux, not a bug of WSL.


Support custom kms keys

This module doesn't support setting a custom kms key for the instance.  This should be supported.

addressed in https://github.com/cloudposse/terraform-aws-rds/releases/tag/0.6.0


Make solute-only trajectory writing optional

Typical calculations generate NetCDF files that take up way too much space.
For example, a typical SARS-CoV-2 Mpro calculation will generate a positions variable in the complex NetCDF file that consumes (18 replicas) (5000 iterations/replica) (10000 atoms) (3 dimensions/atom) (4 bytes/dimension) = 10GB of data.
Instead, we should default to setting atom_selection = None (or perhaps an empty list, depending on what the multistate sampler expects) and suggesting our examples remove atom_selection: not water from the input YAML.
We can still extract some useful analysis out of the checkpoints as needed.

Changing the default value to none in https://github.com/choderalab/perses/blob/4b3facc4c4590da22ef4a98dec514d8324d78d17/perses/app/setup_relative_calculation.py#L587 should do it (mdtraj selection lang). And also make the changes in the examples and template yaml files.

We probably want to delete the atom selection from the examples.


feat(component): add carousel component

Adds a carousel component using a hook for maximum headlessness.
124
What is it?

[ ] Feature / enhancement
[ ] Bug
[ ] Docs / tests

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why

One use case

Another use case

Screenshots/Demo

Checklist:

[ ] My code follows the developer guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Base on yours Greg, I opened #258 .
It passed Axe tests ✌

I will close this PR because #258 contains all same code.


Include examples using React, TypeScript, etc

Attempting to follow the instructions to add this on a vite project that has TS and React results build errors and type errors. More examples would be appreciated.

Make sure you list the macros plugin first in your Vite config so it runs before other plugins. If that doesn't work I'll need an example so I can reproduce the problem.

Ah, that did the trick! Thank you.
A couple outstanding things:

My project uses aliases, e.g., import { foo } from '@/foo'. Macros don't pick up on alias resolution, though I do provide them to the vite config via resolve.alias. If I manually change them to relative paths they work.
TypeScript does not understand the with { type: 'macro' } syntax. Perhaps I need a newer version? I'm running 4.9.x.

If these are real issues I can make new issues for them and provide some basic examples.
Thanks again.

Yeah currently it just uses node's resolution, it won't go through vite to resolve macros. Not sure if there's a way to do that.
Yeah TS 5.3 and newer support import attributes

While not ideal, node resolution will work. It seems to me that many macros need a "double import" to really be useful anyway. Something like so:
// expensive.js
export function expensiveOperation() { ... }

// first.js
import { expensiveOperation } from './expensive' with { type: 'macro' };
export const computedValue = expensiveOperation();

// others can now import w/o thinking about macros
import { computedValue } from './first';


doFilterTreatments(filterTreatments = "Changes") drops sex column

Describe the bug
When using filterTreatments = "Changes", the sex column is dropped after the summarize() call, which results in an error when calling export().
To Reproduce
Steps to reproduce the behavior:
library(CDMConnector)
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#>     filter, lag
#> The following objects are masked from 'package:base':
#>
#>     intersect, setdiff, setequal, union
library(TreatmentPatterns)
#> Creating a generic function for 'toJSON' from package 'jsonlite' in package 'googleVis'

cohortSet <- readCohortSet(
  path = system.file(package = "TreatmentPatterns", "exampleCohorts")
)

con <- DBI::dbConnect(
  drv = duckdb::duckdb(),
  dbdir = eunomia_dir()
)

cdm <- cdmFromCon(
  con = con,
  cdmSchema = "main",
  writeSchema = "main"
)

cdm <- generateCohortSet(
  cdm = cdm,
  cohortSet = cohortSet,
  name = "cohort_table",
  overwrite = TRUE
)
#> ℹ Generating 8 cohorts
#> ℹ Generating cohort (1/8) - Acetaminophen)
#> ✔ Generating cohort (1/8) - Acetaminophen) [284ms]
#>
#> ℹ Generating cohort (2/8) - Amoxicillin)
#> ✔ Generating cohort (2/8) - Amoxicillin) [165ms]
#>
#> ℹ Generating cohort (3/8) - Aspirin)
#> ✔ Generating cohort (3/8) - Aspirin) [157ms]
#>
#> ℹ Generating cohort (4/8) - Clavulanate)
#> ✔ Generating cohort (4/8) - Clavulanate) [152ms]
#>
#> ℹ Generating cohort (5/8) - Death)
#> ✔ Generating cohort (5/8) - Death) [80ms]
#>
#> ℹ Generating cohort (6/8) - Doxylamine)
#> ✔ Generating cohort (6/8) - Doxylamine) [140ms]
#>
#> ℹ Generating cohort (7/8) - PenicillinV)
#> ✔ Generating cohort (7/8) - PenicillinV) [150ms]
#>
#> ℹ Generating cohort (8/8) - ViralSinusitis)
#> ✔ Generating cohort (8/8) - ViralSinusitis) [228ms]
#>

cohorts <- cohortSet %>%
  # Remove 'cohort' and 'json' columns
  select(-"cohort", -"json") %>%
  mutate(type = c("event", "event", "event", "event", "exit", "event", "event", "target")) %>%
  rename(
    cohortId = "cohort_definition_id",
    cohortName = "cohort_name",
  ) %>%
  select(cohortId, cohortName, type)

minEra60 <- computePathways(
  cohorts = cohorts,
  cohortTableName = "cohort_table",
  cdm = cdm,
  # Pathway settings
  periodPriorToIndex = 0,
  minEraDuration = 60,
  eraCollapseSize = 30,
  combinationWindow = 30,
  minPostCombinationDuration = 30,
  filterTreatments = "Changes",
  maxPathLength = 5
)
#>
#> Construct treatment pathways, this may take a while for larger datasets.
#> Original number of rows: 336
#> After eraCollapseSize: 0
#> Selected 45
#> out of 336 rows
#> Iteration: 1
#> Switches: 336
#> FRFS Combinations: 0
#> LRFS Combinations: 45
#> After combinationWindow: 291
#> Time needed to execute combination window 0.0475649992624919
#> Order the combinations.
#> After filterTreatments: 291
#> Adding drug sequence number.
#> After maxPathLength: 291
#> Adding concept names.
#> Ordering the combinations.
#> constructPathways done.

export(
  andromeda = minEra60,
  outputPath = file.path(getwd(), "minEra60_changes"),
  minCellCount = 5,
  censorType = "remove"
)
#> Error in `dplyr::bind_rows()` at TreatmentPatterns/R/export.R:96:3:
#> ! Can't combine `..1$sex` <integer> and `..2$sex` <character>.

Created on 2024-02-09 with reprex v2.1.0
Expected behavior
Sex column should be maintained. Using mutate() instead of summarise() will do the job.

Thanks, this should be fixed in: 715316bc7f8db96d4401c57ba0b4d1d364ec4939


Error messages are returned for duplicate substance records, even though one is withdrawn

🔍 Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

🐞 Description of the bug
When running an ImpactedSubstances analysis, sometimes I see messages indicating multiple substance records have been matched by a single row. However, I only see one record in MI Viewer.
Under closer inspection, I realize that there is an additional record, but it is withdrawn, as a result of following the duplicate CAS proceedure.
📝 Steps to reproduce

Create a new Restricted Substance record with the same CAS number as an existing record which is included in a material tabular attribute
Ensure the new RS record is impacted by the same legislations as the original record
Withdraw the new RS record
Run an ImpactedSubstance query on the material attribute, including one of the legislations impacting both substance records
Observe the message warning about duplicate records

💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2023R1
🐍 Which Python version are you using?
3.10
📦 Installed packages
ansys-grantami-bomanalytics @ file:///C:/path/grantami-bomanalytics
ansys-grantami-bomanalytics-openapi==1.0.0
ansys-openapi-common==1.2.1
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.1.0
cryptography==39.0.2
idna==3.4
pycparser==2.21
pyparsing==3.0.9
pypiwin32==223
pyspnego==0.8.0
python-dateutil==2.8.2
pywin32==305
requests==2.28.2
requests-negotiate-sspi==0.5.2
requests-ntlm==1.2.0
six==1.16.0
urllib3==1.26.15

We need to set the HTTP header X-Granta-ActAsReadUser to true as part of the session creation. We may want to explicitly allow this to be editable when we create the connection, but I can't see a use case where someone would want to include unreleased and/or withdrawn records in a BoM analysis.


Implement Kafka source

Context / purpose
Implement a Kafka source, #398.
Description
Implement a Kafka source using rust-rdkafka.
How was this PR tested?
Unit tests and integrations tests.
Checklist
Remove or complete this list if required.

[x] tested locally
[x] added unit tests
[x] included documentation

I'm done here regarding functional changes. I just have to set up the test environment in CI and maybe put the whole thing behind a feature flag.
PTAL.


Add accessibility audit

This adds an accessibility audit to Devtron by using the same underlying library that the Google Chrome Accessibility DevTools Extension uses and exposing those results in a new view.
🍐 @kevinsawicki @zeke

Edit: My screenshot shows the console warning icon but I fixed that in the last commit

Fantastic.

Paired with @kevinsawicki on the last bits of this so it should be ready to go, but if you want to give it another 👀 over that would be awesome.

Looks good to me 🚢

What is meant by N/A status?

What is meant by N/A status?

It means you didn't have any elements that applied to that rule so it couldn't applied.


changes made to enhance model report

Changes made to model_report.py file to enhance graphs. Readme page updated for better explanations on python code. An example ipynb file added to show how to use model_report code

Nice


How can I retrieve the Element in an event without 'this'?

I am using ES6 Arrow Function, which will overwrite the 'this'.
Here is no way a node can reference the element?

Can you show an example where it will get overwritten

just:
elem.mouseover((e) => {

});

ES6 Arrow Function keep the outer context.
snap.svg.js:L7335
return fn.call(element, e, x, y);

Here is using call to change the this, I cannot access it in => function.
Meanwhile, I cannot retrieve the Element from Event object, because it is just a normal DOM Event, not containing any info of the Snap Element.

Two suggestion:
Add an attribute to nodes referencing the element when creating them.
Insert the element into the event object when calling back event function.

You can always just 'Snapify' it, eg...
var c = s.circle(100,100,100).click( (e) => { console.log( Snap(e.target) ) } );
I doubt its so efficient, but I'm not sure modifying the DOM with references is ideal either, especially as you could have several variables pointing to the same DOM object, feels clunky.
I'm not really sure what the point using it here is though, over just using a normal func.

it is avoiding var that = this;
well it works, thanks


Symbols-2 font not resolving

I'd excluded the Noto Symbols 2 font because it appeared redundant with Noto Symbols due to its unicode ranges being the same. However the contents of the two fonts are quite different, and the fact they share the same unicode ranges appears to be a bug.
Need to reinstate Symbols 2 and fix the unicode ranges for both fonts.

Reinstated symbols-2 and, applied overrides for both fonts' unicode ranges based on parsing the woffs.


Support for extension functions

cel-go has support for the strings and math function extensions - is the extension supported? And if so how can it be set up in the environment
ext/strings.go

Yes.
Seen https://github.com/cloud-custodian/cel-python/blob/main/src/celpy/init.py which has a functions = {}. This is the mapping from a CEL-visible name to a Python function.

Cool yeah I used it like that but it meant implementing the lambdas for the functions on my own - is there any intention of supporting the extensions that Go/Java have (String, Math and Optional) without the need for custom implementation?
So expressions like the following could run as well -
woops.title == "something" ? optional.none() : optional.of(woops.description)
or
my_string.upper()
without the need to pass the functions dict to the celpy.Environment().program.
Additionally if I want the optional to be recognized as a namespace without declaring it as a var in the context (a bit "hack-ish") how can I do so? (with the existing functionality)


Support for threaded messages

When being triggered inside a message thread, the plugin still posts within the main channel - without having looked into too much detail in the code, it would be great if the plugin could use the thread_ts/ts attributes as discussed in [1].
Thanks,
Johan
[1] https://api.slack.com/docs/message-threading

Thanks for the patch!


Which tf version should I use in google-research/tft?

Which exact tensorflow version should I use? Minor errors appear due to the version issue. There's no info in google-research/tft/requirements.txt

I also encountered some errors when I used tensorflow2. Then I changed to tensorflow 1.15 and everything worked out just fine.

unable to install tensorflow 1.15 . help me out
thanks in advance


bash command will be more visible

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

/test all


Use http-1.0.0 for http-cache-tower

WIP branch for updating the refactor branch to use http-1.0.0, per our discussion in https://github.com/06chaynes/http-cache/issues/4.
If accepting the Clone bound on ReqBody is acceptable, it simplifies the passing of the request to the future quite a lot.
If this looks promising to you, I can also try to tackle updating the future into a state-machine so that we can poll other futures inside of it. I know the refactor branch is quite far behind the main branch though, so if it makes more sense to work off of that one, let me know. I might need some pointers in terms of which methods need to be called inside the future since I'm not too familiar with http-cache internals.

Pushed a new branch that I think might ease this implementation a bit, at least I think it might https://github.com/06chaynes/http-cache/tree/remove-async-trait

One prerequisite to merging this will be the Reqwest update to use hyper v1.0.0, which thankfully seems to be underway here https://github.com/seanmonstar/reqwest/tree/hyper-v1
After updating in my local branch everything but the http-cache-reqwest crate seems to be good to go, so once Reqwest itself is updated it should be fairly straightforward to complete on this end.

Sweet, reqwest has been updated. Just need a new reqwest-middleware release and this particular change should be about ready

@06chaynes It seems that reqwest-middleware has been released

@06chaynes It seems that reqwest-middleware has been released

That comment was in regards to updating http, which has already been merged in


feat(explorer): As a user, I want the Portal page to display latest Attestations

What does this PR do?
Summary
This PR introduces the RecentAttestations component to the Portal page, providing users with an overview of the last 5 attestations issued through the portal. The component mirrors the functionality available on the Schema page, displaying data in a structured, interactive table format.

Key Changes

New Component: RecentAttestations

Fetches and displays the last 5 attestations issued via the portal.
Shows a loading skeleton while data is being fetched.
Handles error states with an appropriate message.
Displays a "No Data Available" message when no attestations exist.

Integration on Portal Page

Added the RecentAttestations component to the Portal page layout.
Ensures consistent behavior and UI with the Schema page.

Enhanced User Experience

Uses SWR for efficient data fetching and state management.
Includes accessibility-friendly error and loading states.
Localized strings using i18n for global language support.

Robust Error Handling

Gracefully manages fetch errors and empty data scenarios.

Testing Instructions

Navigate to the Portal page.

Observe the "Recent Attestations" section.

Verify the following scenarios:

Data Available: Displays the last 5 attestations in a DataTable.
Loading State: Displays a skeleton UI while fetching data.
No Data: Shows a "No recent attestations available" message if no data exists.
Error State: Shows an error message when data fetching fails.

Check language translation by switching i18n locales.

Additional Notes

Translation keys added for better internationalization:

attestation.recent
attestation.noData
error.fetchFailed

Component is designed to be reusable and adaptable for other pages if needed.

Checklist

[x] Added RecentAttestations component.
[x] Integrated RecentAttestations on the Portal page.
[x] Implemented robust error and loading state handling.
[x] Verified localization with i18n.
[x] Tested all scenarios: data available, loading, no data, error.
[x] Followed coding standards and best practices.

Related ticket
Fixes #783
Type of change

[ ] Chore
[ ] Bug fix
[X] New feature
[ ] Documentation update

Check list

[ ] Unit tests for any smart contract change
[ ] Contracts and functions are documented

Overall, the PR is good, just a slight change to display recent Attestations specifically for the Portal that we're looking at.
(cf. comments above + add <RecentAttestations portalId={portal.id} /> to the Portal page)


3807: fix DLGTEMPLATEEX parsing

Parsing of Dialog resources using the DLGTEMPLATEEX structure failed when a DS_FONT style option was present, as the font information was not recognized or parsed. This change corrects detection of this option and adds tests for both DLGTEMPLATE and DLGTEMPLATEEX structures in Dialog resources.
This is intended to address #3807, which includes screenshots and a sample binary that illustrates the issue.
I welcome any feedback, particularly on better ways to build the test structures. The method I used here felt the most descriptive, but also feels very verbose.
Merry Christmas :christmas_tree: :gift:  and Happy New Year :partying_face:!

I've also made some tweaks to remove formatting changes of lines that were not necessary for this fix.

@goatshriek We are ready to accept this PR.  Could you please squash your commits, rebase on master, and force push your branch?  I don't want to include the merge commits.  If you don't have the time, I could just cherry pick your 2 relevant commits.

Absolutely, I just pushed a cleaned up rebase.


choice 9 pvtkeys between publickeranges no working

Your choice: 9
Enter the starting value of the public key: 03633cbe3ec02b9401c5effa144c5b4d22f87940259634858fc7e59b1c09937852
Enter the ending value of the public key: 0233709eb11e0d4439a729f21c2c443dedb727528229713f0065721ba8fa46f00e
Do you want to display the progress bar? (y/n): y
Generating and saving keys: 0it [00:00, ?it/s]

Your choice: 9
Note: Ensure that both the start and end public keys are either both compressed or both uncompressed.
Compressed keys start with '02' or '03' and have a length of 66 characters. Uncompressed keys start with '04' and have a length of 130 characters.
Type 'back' to return to the main menu at any time.
Enter the starting value of the public key: 0233709eb11e0d4439a729f21c2c443dedb727528229713f0065721ba8fa46f00e
Enter the ending value of the public key: 03633cbe3ec02b9401c5effa144c5b4d22f87940259634858fc7e59b1c09937852
Do you want to display the progress bar? (y/n): y
Gefundene Adressen: 0 | Verstrichene Zeit: 0:00:10.653454 | Adressen generiert und gespeichert: 39074
its working bro

Your choice: 9 Enter the starting value of the public key: 03633cbe3ec02b9401c5effa144c5b4d22f87940259634858fc7e59b1c09937852 Enter the ending value of the public key: 0233709eb11e0d4439a729f21c2c443dedb727528229713f0065721ba8fa46f00e Do you want to display the progress bar? (y/n): y Generating and saving keys: 0it [00:00, ?it/s]

Enter the starting value of the public key: 0233709eb11e0d4439a729f21c2c443dedb727528229713f0065721ba8fa46f00e
Enter the ending value of the public key: 03633cbe3ec02b9401c5effa144c5b4d22f87940259634858fc7e59b1c09937852
Do you want to display the progress bar? (y/n): y
Gefundene Adressen: 0 | Verstrichene Zeit: 0:01:51.470928 | Adressen generiert und gespeichert: 409559
User interrupted the process.
Generated keys have been saved in 'public_key_range_data_4.json'.


firefly-iii: init at 5.7.18, nixos/firefly-iii: init

Description of changes
Official website: https://www.firefly-iii.org/
According to the official introduction:

"Firefly III" is a (self-hosted) manager for your personal finances. It can help you keep track of your expenses and income, so you can spend less and save more.
Personal financial management is pretty difficult, and everybody has their own approach to it. Some people make budgets, other people limit their cashflow by throwing away their credit cards, others try to increase their current cashflow. There are tons of ways to save and earn money. Firefly III works on the principle that if you know where your money is going, you can stop it from going there.
By keeping track of your expenses and your income you can budget accordingly and save money. Stop living from paycheck to paycheck but give yourself the financial wiggle room you need.

This PR introduces both the PHP package for firefly-iii (via composer2nix), as well as the accompanying module. The module has configuration support for database, mail, nginx reverse proxy. There's also a very simple sanity check.
The work done here was heavily inspired by the work of @ymarkus and @talyz , from the bookstack package, which uses the same framework (Laravel). Thanks!

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Hi @talyz, @aanderse, @bobby285271: I see that you are the folks that have merged nixos/bookstack PRs and was wondering if one of you might be able to review this?

Very similar to bookstack and both are laravel applications so it should be pretty easy to accept this PR, right? I didn't take a deep look but quickly glancing over looks good. Any chance we can get the author of the bookstack module to review this? If they approve that would be enough to merge.

@ymarkus would you mind reviewing this PR as the original author of bookstack?

@eliandoran I also get a warning that firefly is not able to set the locale, this can probably resolved by passing glibclocales to the php daemon or nginx, I did not manage to get it working though.

When appKeyFile isn't readable by the user firefly-iii, it'll fail a bit ugly in firefly-iii-setup.service:
Nov 20 02:28:30 moria systemd[1]: Starting Preparation tasks for Firefly III...
Nov 20 02:28:30 moria firefly-iii-setup-start[529267]: Traceback (most recent call last):
Nov 20 02:28:30 moria firefly-iii-setup-start[529267]:   File "/nix/store/zdl8b6y0j0ddx38g8q58irsl2lp6rcnm-replace-secret/bin/replace-secret", line 22, in <module>
Nov 20 02:28:30 moria firefly-iii-setup-start[529267]:     with open(args.secret_file) as sf, open(args.file, 'r+') as f:
Nov 20 02:28:30 moria firefly-iii-setup-start[529267]: PermissionError: [Errno 13] Permission denied: '/etc/nixos/secrets/firefly-iii/appkey

I believe this could be improved, e.g. by utilizing systemd's support for handling credentials (e.g. compare https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/monitoring/grafana-agent.nix)

I set up a flake repo here, feel free to use it. I will try to integrate all changes suggested here when I have time.

@timhae I also started with some improvements/fixes in this branch of my fork - feel free to cherry-pick whatever you want.
Working on adding support for PostgreSQL and Caddy right now.

Did anyone package the data-importer yet?

No packaging efforts from my side so far, simply running the data Importer with docker-compose works fine.

Thank you for your interest in this package, everyone. I've done some of the changes, there are still a few to be done.
I've also added an update script heavily inspired by @yayayayaka's snipe-it update script.
@timhae , @eliasp , let me know if you'd like me to integrate any of your changes.

@eliandoran feel free to cherry-pick any of my changes you like, I'd be happy to see as many of them integrated as possible
Will keep you updated in this PR should I add further changes/improvements before this PR is merged. I have quite a bit WIP locally, but need to fix some things and polish it a bit more, don't know yet whether I can get much done within the next few days.

FYI: version 6.0.0 just released.

Hey everyone, what's the status on this one? Anything you guys need help with to push it forward? I will be happy to help out.

I couldn't find the time to work on this, the original creator of the upstream package also added a lavarell post install script call in a recent version which might be difficult to replicate in nix..

I just updated my flake to v6.0.30, I wanted to add DynamicUser and then I could update this PR or create a new one if there is interest.

Yes please, I'm highly interested!

This might help for packaging it : https://discourse.nixos.org/t/php-composer-builder-for-php-applications/31301

Sorry I got sidetracked.. The current approach with composer2nix seems to work quite good but I will look into your builder, maybe that makes updates easier.

Yes it makes update definitely easier.
Here's the derivation for it:
{ lib
, fetchFromGitHub
, php83
}:

php83.buildComposerProject (finalAttrs: {
  pname = "firefly";
  version = "6.1.7";

  src = fetchFromGitHub {
    owner = "firefly-iii";
    repo = "firefly-iii";
    rev = "v${finalAttrs.version}";
    hash = "sha256-jDiFT+qx3wfMvGplGvdTbUZM+/dHuZa7Vp4EEPhNBL4=";
  };

  vendorHash = "sha256-pmXzvMAjcZWhqg9POMwL/3YbNQZ1L4uyT/DaQUTEQlY=";

  meta = {
    changelog = "https://github.com/firefly-iii/firefly-iii/releases/tag/v${finalAttrs.version}";
    description = "Firefly III: a personal finances manager";
    homepage = "https://github.com/firefly-iii/firefly-iii";
    license = lib.licenses.agpl3;
    maintainers = with lib.maintainers; [ drupol ];
  };
})

Nothing else is needed.

It'll require an .env file and a couple of locations to be symlinked due to the way firefly-iii/laravel works. Either that or they'll have to be patched in the source. The author is unwilling to let those locations be configurable. Another way would be to use overlayfs using the nix store location as the base for the service, which is perhaps the cleaner way.

It'll require an .env file and a couple of locations to be symlinked due to the way firefly-iii/laravel works. Either that or they'll have to be patched in the source. The author is unwilling to let those locations be configurable. Another way would be to use overlayfs using the nix store location as the base for the service, which is perhaps the cleaner way.

It's fine, once the firefly derivation is built using the new PHP builder, you can use it to create a new derivation containing the rest of the files.
The PHP builder will just take care of making sure that all the dependencies are correctly downloaded.
Looking forward to seeing the implementation!

superseded by #302136


Unexpected segmentation fault encountered in worker.

Description
Unable to run train_monoscene.py and eval_monoscene.py. I can't seem to debug the issue as I'm unable to see any logging/print statement output on my console.
Terminal Log:
The following log is for train_monoscene.py:
python3 monoscene/scripts/train_monoscene.py     dataset=kitti     enable_log=true     kitti_root=$KITTI_ROOT     kitti_preprocess_root=$KITTI_PREPROCESS    kitti_logdir=$KITTI_LOG     n_gpus=1 batch_size=1
INFO:root:Calling main
DEBUG:hydra.core.utils:Setting JobRuntime:name=UNKNOWN_NAME
DEBUG:hydra.core.utils:Setting JobRuntime:name=train_monoscene
[2023-06-23 14:07:31,189][root][INFO] - Dataset Selected: KITTI
exp_kitti_1_FrusSize_8_nRelations4_WD0.0001_lr0.0001_CEssc_geoScalLoss_semScalLoss_fpLoss_CERel_3DCRP_Proj_2_4_8
n_relations 4
Using cache found in /root/.cache/torch/hub/rwightman_gen-efficientnet-pytorch_master
Loading base model ()...Done.
Removing last two layers (global_pool & classifier).
Building Encoder-Decoder model..Done.
GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
initializing ddp: GLOBAL_RANK: 0, MEMBER: 1/1
[2023-06-23 14:07:32,727][torch.distributed.distributed_c10d][INFO] - Added key: store_based_barrier_key:1 to store for rank: 0
[2023-06-23 14:07:32,727][torch.distributed.distributed_c10d][INFO] - Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
----------------------------------------------------------------------------------------------------
distributed_backend=nccl
All DDP processes registered. Starting ddp with 1 processes
----------------------------------------------------------------------------------------------------

LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]

  | Name           | Type       | Params
----------------------------------------------
0 | projects       | ModuleDict | 0
1 | net_3d_decoder | UNet3D     | 16.9 M
2 | net_rgb        | UNet2D     | 132 M
----------------------------------------------
149 M     Trainable params
0         Non-trainable params
149 M     Total params
598.222   Total estimated model params size (MB)
Validation sanity check:   0%|                                                                            | 0/2 [00:00<?, ?it/s]ERROR: Unexpected segmentation fault encountered in worker.
ERROR: Unexpected segmentation fault encountered in worker.
ERROR: Unexpected segmentation fault encountered in worker.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1120, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "/usr/lib/python3.8/queue.py", line 179, in get
    self.not_empty.wait(remaining)
  File "/usr/lib/python3.8/threading.py", line 306, in wait
    gotit = waiter.acquire(True, timeout)
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
    _error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 1677) is killed by signal: Segmentation fault.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "monoscene/scripts/train_monoscene.py", line 178, in <module>
    main()
  File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 32, in decorated_main
    _run_hydra(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 346, in _run_hydra
    run_and_report(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 201, in run_and_report
    raise ex
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 198, in run_and_report
    return func()
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 347, in <lambda>
    lambda: hydra.run(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/hydra.py", line 107, in run
    return run_job(
  File "/usr/local/lib/python3.8/dist-packages/hydra/core/utils.py", line 128, in run_job
    ret.return_value = task_function(task_cfg)
  File "monoscene/scripts/train_monoscene.py", line 173, in main
    trainer.fit(model, data_module)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 552, in fit
    self._run(model)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 922, in _run
    self._dispatch()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 990, in _dispatch
    self.accelerator.start_training(self)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/accelerators/accelerator.py", line 92, in start_training
    self.training_type_plugin.start_training(trainer)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 161, in start_training
    self._results = trainer.run_stage()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 1000, in run_stage
    return self._run_train()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 1035, in _run_train
    self._run_sanity_check(self.lightning_module)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 1122, in _run_sanity_check
    self._evaluation_loop.run()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/base.py", line 111, in run
    self.advance(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 110, in advance
    dl_outputs = self.epoch_loop.run(
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/base.py", line 111, in run
    self.advance(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 94, in advance
    batch_idx, batch = next(dataloader_iter)
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 628, in __next__
    data = self._next_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1316, in _next_data
    idx, data = self._get_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1272, in _get_data
    success, data = self._try_get_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1133, in _try_get_data
    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 1677) exited unexpectedly

The following log is for eval_monoscene.py:
GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
n_relations 4
Using cache found in /root/.cache/torch/hub/rwightman_gen-efficientnet-pytorch_master
Loading base model ()...Done.
Removing last two layers (global_pool & classifier).
Building Encoder-Decoder model..Done.
/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py:678: LightningDeprecationWarning: `trainer.test(test_dataloaders)` is deprecated in v1.4 and will be removed in v1.6. Use `trainer.test(dataloaders)` instead.
  rank_zero_deprecation(
initializing ddp: GLOBAL_RANK: 0, MEMBER: 1/1
[2023-06-23 13:56:12,695][torch.distributed.distributed_c10d][INFO] - Added key: store_based_barrier_key:1 to store for rank: 0
[2023-06-23 13:56:12,695][torch.distributed.distributed_c10d][INFO] - Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
----------------------------------------------------------------------------------------------------
distributed_backend=nccl
All DDP processes registered. Starting ddp with 1 processes
----------------------------------------------------------------------------------------------------

LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Testing: 0it [00:00, ?it/s]ERROR: Unexpected segmentation fault encountered in worker.
ERROR: Unexpected segmentation fault encountered in worker.
ERROR: Unexpected segmentation fault encountered in worker.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1120, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "/usr/lib/python3.8/queue.py", line 179, in get
    self.not_empty.wait(remaining)
  File "/usr/lib/python3.8/threading.py", line 306, in wait
    gotit = waiter.acquire(True, timeout)
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
    _error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 1467) is killed by signal: Segmentation fault.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "monoscene/scripts/eval_monoscene.py", line 71, in <module>
    main()
  File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 32, in decorated_main
    _run_hydra(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 346, in _run_hydra
    run_and_report(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 201, in run_and_report
    raise ex
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 198, in run_and_report
    return func()
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/utils.py", line 347, in <lambda>
    lambda: hydra.run(
  File "/usr/local/lib/python3.8/dist-packages/hydra/_internal/hydra.py", line 107, in run
    return run_job(
  File "/usr/local/lib/python3.8/dist-packages/hydra/core/utils.py", line 128, in run_job
    ret.return_value = task_function(task_cfg)
  File "monoscene/scripts/eval_monoscene.py", line 67, in main
    trainer.test(model, test_dataloaders=val_dataloader)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 705, in test
    results = self._run(model)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 922, in _run
    self._dispatch()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 986, in _dispatch
    self.accelerator.start_evaluating(self)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/accelerators/accelerator.py", line 95, in start_evaluating
    self.training_type_plugin.start_evaluating(trainer)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 165, in start_evaluating
    self._results = trainer.run_stage()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 997, in run_stage
    return self._run_evaluate()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/trainer/trainer.py", line 1083, in _run_evaluate
    eval_loop_results = self._evaluation_loop.run()
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/base.py", line 111, in run
    self.advance(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 110, in advance
    dl_outputs = self.epoch_loop.run(
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/base.py", line 111, in run
    self.advance(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 94, in advance
    batch_idx, batch = next(dataloader_iter)
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 628, in __next__
    data = self._next_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1316, in _next_data
    idx, data = self._get_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1272, in _get_data
    success, data = self._try_get_data()
  File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1133, in _try_get_data
    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 1467) exited unexpectedly
Exception ignored in: <function tqdm.__del__ at 0x7f4172202af0>```

Hi @Harsh188 ,
The problem comes from the overflow of memory in the workers of the dataloader. I think you should reduce the number of workers.

Hey, thanks for the quick response. I tried setting num_workers_per_gpu to 1 and I'm still facing the issue. I'm rocking a RTX 3080 Founders edition (10GB VRAM)
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:2B:00.0  On |                  N/A |
| 30%   47C    P5    77W / 320W |    641MiB / 10240MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

Here's the output for python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
1.7.1
10.2

How much memory is required to execute the pretrained model?

Hi, I mean the RAM not the GPU memory. Did you set batch_size to 1 also?
The model need 32Gb GPU memory to train with batch_size of 1. For inference, it is probably much cheaper but I don't have the number.

Hi，what if I only have a single 3090 how can I run training sequnce

I think you can try the following:

Decrease resolution of the 3D scene.
Reduce input image resolution.
Use smaller 3D network by decreasing the number of channels.
Use smaller 2D backbone.

Thanks @anhquancao. Closing this issue as it's mostly a hardware limitation on my end.


better debugging in GetSocket

made this small cleanup when i was adding debugging for fixing CORE-3212

r? @patrickxb

:mag_right: The commits ad7ae3791089...634a50e6fb07 introduced some visual changes on linux:

Changed: unlock_folders-Single (before) (after)

LGTM


www: add frontmatter and meta description handling

Closes https://github.com/lucacasonato/fresh/issues/165

It looks like the docs pages are crashing with this change: https://fresh-wawt210e3rw0.deno.dev/docs/introduction.

Fixed now


Missing Spy API functions

Here are some Spy API functions that are still missing (withArgs seems like it might be tough):
spy.thisValues
# Array of this objects, spy.thisValues[0] is the this object for the first call.
# JB: I think there should also be spy.selfValues to allow a more Pythonic name

spy.withArgs()
# Creates a spy that only records calls when the received arguments match those passed
# to withArgs. This is useful to be more expressive in your assertions, where you can access
# the spy with the same call.

spy.calledOn(obj);
# Returns true if the spy was called at least once with obj as this. calledOn also accepts
# a matcher spyCall.calledOn(sinon.match(fn))

spy.alwaysCalledOn(obj); # Returns true if the spy was always called with obj as this.

spy.printf("format string", [arg1, arg2, ...])
# Returns the passed format string with the following replacements performed:
# %n
#     the name of the spy "spy" by default)
# %c
#     the number of times the spy was called, in words ("once", "twice", etc.)
# %C
#     a list of string representations of the calls to the spy, with each call prefixed by a newline and four
#     spaces
# %t
#     a comma-delimited list of this values the spy was called on
# %n
#     the formatted value of the nth argument passed to printf
# %*
#     a comma-delimited list of the (non-format string) arguments passed to printf

Why not implement spy.thisValues, spy.calledOn(obj), spy.alwaysCalledOn(obj)?

I have given the explanation here

spy.withArgs()

This might be a little bit complicated to implement, but it's doable.

spy.printf("format string", [arg1, arg2, ...])

I have no idea about this to be honest, I have also never used this in SinonJS...

Ok, I'll update the issue.
Don't worry about printf, it's easy to do with regular expressions.


Breakpoint or control disapear while execute "await CrossPermissions.Current.RequestPermissionsAsync(new[] { Permission.Location });"

**Breakpoint or control disapear while executing below instrution
"await CrossPermissions.Current.RequestPermissionsAsync(new[] { Permission.Location });"
after selecting "Allow" or "Don't Allow" from the alert box for location permission,
control never come back to next instruction or anywhere.
It only works if page loaded again.**
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin:
Device Tested On: Iphone 6 and Air2
Simulator Tested On: Iphone 6, 6+
Version of VS: 7.0.1
Version of Xamarin: Xamarin.iOS, Version: <IP_ADDRESS> (Visual Studio Community)
Versions of other things you are using: 1.2.1
Steps to reproduce the Behavior
Expected Behavior
Actual Behavior
Code snippet
Screenshotst

You will need to add a code snippet. For iOS you need to make sure you update your info.plist. if you decline the permission you can't bring it up again.

You will need to add a code snippet. For iOS you need to make sure you update your info.plist. if you decline the permission you can't bring it up again.

I do always allow the permission for location, still control never come back to code.
Info.plist is already updated as per instruction you mentioned http://www.screencast.com/t/YEeuAYMBBJ
but not working, control never come back to .cs file

You would need a code repo and fill out the form properly.


fix(obstacle_cruise_planner): add separate parameters for cruise and stop margins

Description
Closes #7922
Related links
Parent Issue:

https://github.com/autowarefoundation/autoware.universe/issues/7485

How was this PR tested?
Using scenario simulation

scenario
map

:exclamation: Note :exclamation:
In this previous scenario, the safe distance is updated to be 12.5 m following the 3-seconds inter-vehicle time-distance rule in performance requirements here
Before this PR:
https://github.com/user-attachments/assets/9ce9d596-0150-4b66-b766-3658440e8695
After this PR:
https://github.com/user-attachments/assets/98e02e80-162e-4d8b-8ff4-8f3ccbb86b8c
Notes for reviewers
This PR depends on an autoware_launch PR
Interface changes
Topic changes
N.A
ROS Parameter Changes
Additions and removals

Change type
Parameter Name
Type
Default Value
Description

Added
common.cruise_safe_distance_method
double
0.5
cruise safe distance margin used by RSS equation as a small constant to avoid zero distance

Modifications

Version
Parameter Name
Type
Default Value
Description

Old
common.safe_distance_method
double
6.0
This is also used as a stop margin [m]

New
common.stop_safe_distance_method
double
6.0
stop safe distance margin  used as previous  safe_distance_method for stop purposes

Version
Parameter Name
Type
Default Value
Description

Old
common.terminal_safe_distance_margin
double
3.0
Stop margin at the goal. This value cannot exceed safe distance margin. [m]

New
common.terminal_stop_safe_distance_margin
double
3.0
Stop margin at the goal, used as previous terminal_safe_distance_margin

Effects on system behavior
Improving obstacle_cruise_planner behavior in cruising scenarios, mitigating any mitigate any unnecessary long safe distance ego and npc and satisfying performance requirements

Closing this PR as the intended issue and scenario/s will be covered by this PR


Update pre-commit hook to run golinters

This will fix the pre-commit errors.
openshift/release: 36011
Signed-off-by: Amol Kahat<EMAIL_ADDRESS>

/ok-to-test


Suggestion: Would like to see "state" added as a prop

It would be nice if this supported "state" so validation could be added to the field

This repo isn't maintained any longer, but I'm actively maintaining a fork here: https://github.com/mattzollinhofer/vue-typeahead-bootstrap
I'm not sure I completely follow what you'd need here or the use case. If this is still something that's valuable to you could you provide some more details about the use case on the other repo?


Compile with stable Rust

ve currently uses quite a bit of nightly rust since it is based on liballoc, although some use of nightly is removed, there is still quite a bit of it.

[ ] allocator_api
[ ] allow_internal_unstable
[ ] const_fn
[ ] const_generics
[ ] const_generic_impls_guard
[ ] core_intrinsics
[ ] dropck_eyepatch
[ ] new_uninit
[ ] slice_partition_dedup
[ ] specialization
[ ] trusted_len
[ ] try_reserve

CC @maciejhirsz any idea how to reduce the use of nightly features? beef looks quite different, not sure if re-architecting while porting would be a good idea

Without looking at code here, Cow::const_str is enabled on stable if you need strings only, slices unfortunately require generics to be const proper, (I could maybe add Cow::const_bytes).


patch (adl): [considerations] access tiers

mention cold tier from considerations
change link text to be aligned with the article title
add note on how to estimate pricing for Azure Block Blob Deployments

close: #1272
AFTER YOUR PR HAS BEEN CREATED, expand this section for tips and additional instructions.
These are common guidelines for contributions across the repos managed by the Cloud Architecture Content Team (CACT). Some repositories may have additional specific requirements that are not listed here.
Guidance for all contributors

Topic
Guidance

Draft PR
If your PR will be a work-in-progress for more than a day or two, select the Convert to draft link in the upper right of the page (under Reviewers) to change it to a draft. For future reference, you can also do this using the Create pull request button drop-down during PR creation.

ms.date metadata
Don't update an article's "ms.date" metadata property unless you've done a full freshness review of the content. A full freshness review includes changes required to correct or improve the full technical accuracy of the article.Don't update "ms.date" if you're doing targeted changes to improve non-technical aspects of the article, such as editorial quality, art improvements, article template alignment, etc.If you've changed any "ms.date" properties for work that wasn't part of full review for freshness, please reset them to their previous value.

Placement and linking
If you're creating a new article or articles, include updates to the related TOC.yml file to propose where the article(s) should be placed. Also consider other places within the document set where it would be beneficial to cross-reference and link to your new article(s).

PR build
After you open your PR, and for each successive commit that you push to your branch, the publishing platform will run validation on the files in your pull request. A summary of the build results for each file will be inserted inline into your pull request, which includes any build suggestions/warnings/errors. PRs cannot be merged until all build errors and most warnings are resolved.

Publishing
Following a successful merge, most repos publish to the live site at least once per (business) day, usually around 10am Pacific.

Additional resources
Learn.Microsoft.Com contributor guide

Additional guidance for private repos and internal contributors

Topic
Guidance

PR size
If your PR is more than ~5 lines of changes, or you'd like for the changes to go through editorial or larger review, open a contribution request at https://aka.ms/Contribution and include a link to the PR in response #8. Once it's processed, you'll be notified of the next steps.

PR title prefix
Select the Edit button to the right of the PR title if you need to revise it. The following prefixes are reserved for specific contribution types:[Quality Check] - maintenance work related to content quality (edit passes, art improvements, template alignment)[LinkFix] - recurring/adhoc PRs to correct link URLs[Pipeline] - new/updated contributor success pipeline content[WIP] - a work-in-progress draft requiring several days/weeks

PR preview
Following successful build of your PR, publishable files will also include Preview URL links to staged previews of your new/updated articles. Be sure to review these for verification of your intended contributions, or to send to other internal contributors for review.

PR sign-off (public repo)
If an article you own is updated in a public repo PR, you are responsible for sign-off. You will be automatically notified via email. The PR will not be merged until you've had a chance to review and sign-off.

PR sign-off (private repo)
After you've completed your proposed changes, addressed build warnings, and completed all review work, you can begin the sign-off process for review and merge:If your PR is in draft mode, remove "[WIP]" from the title and select Ready for review button at the bottom of the PR.Enter "#sign-off" in a new comment. This comment indicates that you're confident the work meets or exceeds Microsoft's standards for publication, and will trigger the review process.Your PR may be selected for initial review by the CACT. Following CACT review, you may receive questions or requests for additional changes. You should have initial feedback from CACT review within a few business days. If you have an urgent request or need to contact the team, please mention @MicrosoftDocs/cloud-architecture-content-team-pr-reviewers in your PR and someone will get back to you. After CACT review is complete, a CACT #sign-off will be added.Final review/merge is done by the PR review team. The PR team may also respond with feedback, categorized as "Blocking" (requires action from you), or "Non-blocking" (to be addressed in a future PR).

Additional resources
Learn.Microsoft.Com internal contributor guideAuthoring templates: architecture-center-pr, well-architected-prTo contact the CACT use e-mail, or @mention our GitHub team in your PR comments using: @MicrosoftDocs/cloud-architecture-content-team-pr-reviewers

@mboswell

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@mboswell - Are you able to review this CAF PR?

w00t @mboswell , thanks for the review guys.
📣 This is just a friendly reminder for you guys to signal this PR as ready to merge when you consider this appropriate.

@mboswell - 	I'll merge this PR based on your approval. If this article requires further changes, please open a separate pull request.


Profile: Add in transition date for former English learners

Part of https://github.com/studentinsights/studentinsights/issues/2204
Who is this PR for?
educators, former English learner students
What problem does this PR fix?
The "Former English learner" status can be helpful for following-up on students who have transitioned out of ELL services, but without context on when they transitioned this may be misleading.  A student might have transitioned several years ago.
What does this PR do?
Shows the transition year on the profile.
Screenshot (if adding a client-side feature)
example from story

story grid with different combinations:

Checklists
Which features or pages does this PR touch?

[x] Student Profile
[x] Included specs for changes

Also fixup tests failing like https://travis-ci.org/studentinsights/studentinsights/builds/444771238, these slipped through partially because GitHub and Travis have been backed up all day.

selfie


Problem with horizontal scrolling.

Hello Anas !
I've been using your component for a while now and this is by far the most useful and aesthetic one as a code editor for Streamlit.
I'm using it to create a Streamlit notebook currently.
I'm encountering a slight but annoying issue : I don't seem to be able to figure out how to enable the text to expand horizontally beyond the initial width of the widget. The horizontal scrolling works but only reveals empty space, and long lines get cropped.
To reproduce the problem easily, in an empty editor (default config without wordwrap), just press 'a' continuously, you will see that past a certain point the line gets cropped into invisibility, even though it continues to expand.
The cursor can go in that empty space and come back, so I think it's just a display parameter of the inner editor that should be corrected, but I didn't find the appropriate one. (Actually, I've noticed the same problem in all your demos as well). Tried every possible "overflow-x":"auto" kinda stuff without success.
I've had the same problem with all the versions I tried (now using 0.1.20)
Do you have an idea what goes wrong ?
For the record here is the code I'm using to implement my notebook code cell editor:
from code_editor import code_editor

class editor_output_parser:
    def __init__(self):
        self.last_id=None

    def __call__(self,output):
        content=output["text"]
        if 'id' in output and not output['id']==self.last_id:
            self.last_id=output['id']
            if not output["type"]=='':
                event=output["type"]
            else:
                event=None
        else:
            event=None
        return event,content

def editor(*args,**kwargs):

    buttons=[
        {
            "name": "Run",
            "feather": "Play",
            "primary": True,
            "hasText": False,
            "alwaysOn":True,
            "showWithIcon": True,
            "commands": [
                ["response","run"]
            ],
            "style": {
            "bottom": "0.44rem",
            "right": "0.4rem"
            }
        }
    ]

    params=dict(
        theme='default',
        buttons=buttons,
        options={
            "showLineNumbers":True
        },
        props={
            "enableBasicAutocompletion": False,
            "enableLiveAutocompletion": False,
            "enableSnippets": False
        }
    )

    params.update(**kwargs)

    output=code_editor(*args,**params)
    return output

Hi again,
The issue appears on firefox but not chrome. I am working on seeing why.

Can you double check the no zoom for me. I have narrowed the issue down to some CSS rules that have to do with hidpi

Tried zoom 100%, more, less... problem anyway !
I'm on Linux Lubuntu, with firefox 126.0.1 64bits

Tried on my Dad's computer on Windows 13 with latest version of Firefox esr, no problem...
Ok it probably has mostly do with my specific computer/browser setup. At least it's not me doing something wrong, or a general issue with your component.
Thank you for responding quickly Anas !
Cheers !

Thanks for the quick responses. I had to check. Thanks to you, I now understand why it appears in firefox no matter what for you.
The problematic code:
exports.HI_DPI = useragent.isWin
    ? typeof window !== "undefined" && window.devicePixelRatio >= 1.5
    : true;
if (useragent.isChromeOS)
    exports.HI_DPI = false;
if (typeof document !== "undefined") {
    var div = document.createElement("div");
    if (exports.HI_DPI && div.style.transform !== undefined)
        exports.HAS_CSS_TRANSFORMS = true;
    if (!useragent.isEdge && typeof div.style.animationName !== "undefined")
        exports.HAS_CSS_ANIMATION = true;
    div = null;
}
if (exports.HAS_CSS_TRANSFORMS) {
    exports.translate = function (element, tx, ty) {
        element.style.transform = "translate(" + Math.round(tx) + "px, " + Math.round(ty) + "px)";
    };
}
else {
    exports.translate = function (element, tx, ty) {
        element.style.top = Math.round(ty) + "px";
        element.style.left = Math.round(tx) + "px";
    };
}

});

A class is added when the HI_DPI condition is met:
if (dom.HI_DPI)
            dom.addCssClass(this.container, "ace_hidpi");

which results in the following CSS being active:
.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line,
.ace_hidpi .ace_text-layer > .ace_line_group {
contain: strict;
}

I am trying to figure out how to fix this but it might take some time. The reason it appears on Firefox to you is because window.devicePixelRatio >= 1.5 for you. For Chrome, HI_DPI is set to false no matter what. But strangely, the class is still added when window.devicePixelRatio >= 1.5 is true on Chrome too.
I will work on this more when I get more time later today.
I appreciate your help!

Hello Anas.
Just in case it might help you, the problem also arises on my mobile (firefox for Android).
Cheers !
Baptiste
Btw, if you wanna see your component in action you can check the app I'm working on here.
Any feedback from you would be much appreciated.

That is really cool!
That is also a crazy coincidence because I am also building a jupyter notebook in streamlit! It not yet on github but I did build a streamlit package for more secure python code execution. I like how clean and intuitive your app is.
As far as fixing the CSS issue, I am still working on it. Right now I have managed to disable it but I think there is a reason that HIDPI stuff exists and I am trying to get it working correctly.

Hey Anas,
Thank you for the feedback. Your port of Pyodide to Streamlit seems very nice and useful, actually I was looking for something like this in many occasions. Will definitely use it.
For the issue with the component, I installed chromium and still have the problem. Idk, maybe it's more an OS related issue than a browser one (I'm on Lubuntu).
Cheers!

Hi guys,
Any updates on resolving this issue?

Hi guys,
Any updates on resolving this issue?

Thanks for the reminder. I had a few hours today to look into this and I have some good news! Since this issue was first created, streamlit-code-editor has been updated to use my fork of the ace-builds repo. This allows fixes and new features that are specific to streamlit-code-editor. Because of this migration, I was able to quickly implement a temporary solution to this problem. Specifically, I disabled the HI_DPI feature that is causing this problem. So far, my testing shows that this problem should be resolved when using the latest version: 0.1.22.


nshlib: Disable mb, mh, and mw by default

Summary

Fix https://github.com/apache/incubator-nuttx/issues/3011

Impact
Testing

@swkim101 you need remove all CONFIG_NSH_DISABLE_M[B|H|W]=y from nuttx/boards/ to fix the error reported here:
https://github.com/apache/incubator-nuttx-apps/pull/647/checks?check_run_id=2258212861

@swkim101 you need remove all CONFIG_NSH_DISABLE_M[B|H|W]=y from nuttx/boards/ to fix the error reported here:
https://github.com/apache/incubator-nuttx-apps/pull/647/checks?check_run_id=2258212861

There is this PR https://github.com/apache/incubator-nuttx/pull/3240, but it looks like it addresses only NSH configs.

That PR does the opposite it need to remove all the explicit disables since this PR makes it the default

That PR does the opposite it need to remove all the explicit disables since this PR makes it the default

Ah you're right, I spoke too fast.

The change is minor, and the dependence was merged. Let's merge it directly to save the build resource.

@xiaoxiang781216 as @btashton mentioned, the Kconfig change is backwards to the intent of the PR. I don't think this should have been merged.
Also, I see quite a few issues such as:
< CONFIG_NSH_DISABLE_MB=y
< CONFIG_NSH_DISABLE_MH=y
63d60
< CONFIG_NSH_DISABLE_MW=y

in CI.
Let's try not to make a habit of skipping CI (it is now quite faster and less wasteful when pushing again) as we will loose unexpected errors.

@xiaoxiang781216 as @btashton mentioned, the Kconfig change is backwards to the intent of the PR. I don't think this should have been merged.

This patch is needed to make the default option more safer.

Also, I see quite a few issues such as:
< CONFIG_NSH_DISABLE_MB=y
< CONFIG_NSH_DISABLE_MH=y
63d60
< CONFIG_NSH_DISABLE_MW=y

It's strange that I can't find these words in the latest nuttx when I want to fix the issue.

in CI.
Let's try not to make a habit of skipping CI (it is now quite faster and less wasteful when pushing again) as we will loose unexpected errors.

Ok.

The os repo PR was updated to just remove these entries instead of add them which is what we needed, any CI issue should have just been a matter of the order they were merged.
But yeah generally I agree we should wait on CI. Sometimes I merge if it's obvious not going to have an issue and I'm trying to unblock things.


operator-sdk olm status doesn't work for olm versions with no published assets

Bug Report
What did you do?
operator-sdk olm status --verbose --olm-namespace "openshift-operator-lifecycle-manager"
What did you expect to see?
Successfully got OLM status
What did you see instead? Under which circumstances?
Failed to get OLM status: failed to get resources: failed to fetch CRDs: request failed: failed GET 'https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.14.2/crds.yaml': unexpected status code 404, expected 200: Not Found
Environment

operator-sdk 0.17.0
OCP 4.4.4
OLM 0.14.2

Possible Solution
Publish assets for all OLM versions at https://github.com/operator-framework/operator-lifecycle-manager/releases
Open an issue in https://github.com/operator-framework/operator-lifecycle-manager ?

@madorn see https://github.com/operator-framework/operator-sdk/issues/3095.

Hi @madorn,
We opened the issue for you already. See #3095.
In this way, let's close this one as duplicated and please feel free to follow up it.


fix: update calibnet with new parameters and genesis file

Summary of changes
Changes introduced in this pull request:

Calibnet is dead. Long live Calibnet!
The old parameters are no longer valid. New parameters are required.
A new snapshot file has been uploaded to our DO space.

Reference issue to close (if applicable)

Closes
Other information and links

This PR lets Forest back on Calibnet for a limited time. At epoch 16800, calibnet will migrate to NV17 and we'll no longer be able to stay connected.

@lemmih shall we remove the old calibnet snapshots that will no longer work as well?

@lemmih shall we remove the old calibnet snapshots that will no longer work as well?

Yeah.


the genome was 25Gb and the use the juicerbox to modified the hic heatmap but its worng

Are you sure this is a bug?
If unsure, please post your question/situation to the forum first: aidenlab.org/forum.html
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. macOS Mojave, Windows 10, etc]
Version [e.g. 1.6]

Additional context
Add any other context about the problem here.

wheather the genome is to big so our software could not handle with it

and the assembly file could not load in , any other way to solve this


User-facing RTK documentation

@bkueng @DonLakeFlyer We should have a simple tutorial how to leverage RTK GPS with the u-Blox M8P. In particular we should check if we can enable the connection on Android tablets.

Done, see http://px4.io/docs/rtk-gps


Module 1.4 Assignment

👋 Hi @lesandropcodes, in case you'd like to try it again, the goal for 1.4 is to go to http://git-school.github.io/visualizing-git/ and to re-create the image that Eric has created here: https://github.com/github-campus-advisors/Campus-Advisor-Training/blob/master/Module 1/Module 1.4 Assignment.md


fix RendererLoader.Abs

When evaluating extends tag, pongo2 package's resolveFilename and FromFile are called, and in both cases, the Abs method of TemplateLoader is invoked (ref).
If there are no existing workarounds, the problem is that the l.prefix is always being joined due to the Abs called again inside FromFile for the path "template/base.html" obtained from the result of resolveFilename.
I think a solution here is to join the l.prefix only when the argument base given to Abs is empty, and in other cases, join the directory name obtained from base.

@Jacob2161 can you review this for me? 🙏

I don't think this PR quite returns the same values as the current fix?
We really just need to swap out the pongo templates for html/template since it's much better tested and so safer in terms of properly escaping user input, etc.
Let's leave the slightly hacky fix in there for now so we can avoid breaking things and I'll try to get to the html/template pretty soon, if someone else doesn't get to it first.
:pray:

We really just need to swap out the pongo templates for html/template since it's much better tested and so safer in terms of properly escaping user input, etc.

I agree with that so I will close this.


[Bug]: plugin deactivated since the update

Issue validation

[X] My issue is not a question relative to Material Mkdocs nor Mkdocs (You can open a discussion to get more help!)
[X] I checked the issue to prevent duplicate
[X] I checked my configurations files and the documentation

Workflow
Obsidian plugin 💠
Describe the bug
Since the update the plugin is impossible to activate

How to reproduce ?
No response
Configuration
*MODERATED BECAUSE GITHUB TOKEN
Relevant log output
No response
OS
Windows
Anything else?
No response

Yeah, It seems there was a problem during the build with github actions!

HI,
Mys obsdian version

I have this error in the console

I will try to manually update

I tried manually but it didn't change the error
data.json.txt
Here the data json without the token :)

Okay, I'm stupid. Thanks for the log !

It's work :) Thanks a lot.


Error while starting bundle com.composum.core.console 1.9.2

The following error is emitted in the log in AEM <IP_ADDRESS>
17.12.2018 13:05:26.718 *ERROR* [qtp751788572-13346] com.composum.core.console [com.composum.sling.nodes.components.codeeditor.CodeEditorServlet(3167)] findMethod: Suitable but non-accessible method activate found in class com.composum.sling.core.servlet.AbstractConsoleServlet, subclass of com.composum.sling.nodes.components.codeeditor.CodeEditorServlet

This may already be covered by #149.


further clarification of guidelines re "useful purpose"

I like the improvements to https://github.com/openstreetmap/id-tagging-schema/blob/main/GUIDELINES.md but take minor issue with the definition of "useful purpose".

Useful Purpose: OSM allows for the collection of a wide variety of data, but not all of it is useful. For example, the brightness of street lamps might be documented, but it doesn't necessarily warrant a preset or field.

Niche data is useful to somebody, just not to the wider body of users. For example, users of a [notional] personal safety app identifying well lit safe routes home may find brightness of street lamps very useful. However, one app probably doesn't warrant an iD preset.
I propose:

Notable Purpose: OSM allows for the collection of a wide variety of data, some of it for niche or non-obvious purposes. For example, the brightness of street lamps might be documented, but it doesn't necessarily warrant a preset or field.

I know that i'm being pedantic, but OSM is a wide church and all [data] are welcome, just not necessarily welcome to a preset

@jnicho02 thanks for raising this! I agree that this can be worded better. How about https://github.com/openstreetmap/id-tagging-schema/pull/1318/files ?
I took your text but without the "non-obvious" because IMO a non-obvious tag can still be included based on "should have a practical application".
What are your thoughts @jnicho02?

Reading it again, there are other nuances here that we could try to improve but I would rather improve this once we have a more concrete case like a PR that makes us question the guidelines. I find it easier to clarify these things based on a practical case.

Looks good to me.

@tordans tordans added the waitfor-pr label Sep 1, 2024

seems that https://github.com/openstreetmap/id-tagging-schema/pull/1318 exists already so it does not wait for PR

seems that #1318 exists already so it does not wait for PR

I renamed the label to "waitfor-pr-merge". The label description already explained this, but this makes it more explicit…


Add support for term boosting

Term boosting
Terms, quoted terms, term range expressions and grouped clauses can have a floating-point weight boost applied to them to increase their score relative to other clauses. For example:
jones^2 OR smith^0.5

prioritize documents with jones term over matches on the smith term.
field:(a OR b NOT c)^2.5 OR field:d

apply the boost to a sub-query.

https://lucene.apache.org/core/9_5_0/queryparser/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.html
It looks like you can boost any query, which makes sense.
Similar to NotQ, so the class probably looks like:
case class BoostQ(q: Query) extends Query

Oh, silly me, we need to include the actual boost param in the query as well...

Thankfully it looks like just a Float:
https://github.com/apache/lucene/blob/7baa01b3c2f93e6b172e986aac8ef577a87ebceb/lucene/core/src/java/org/apache/lucene/search/BoostQuery.java#L38
case class BoostQ(q: Query, boost: Float) extends Query


Trained on mouse?

Is there a pre-trained DNA BERT trained on mouse genome? Thanks very much,
Gabe

I guess my answer is a bit late, but like mentioned in the paper https://doi.org/10.1093/bioinformatics/btab083 the model is pre-trained on the human genome. Following the Supplementary data it is exactly "GRCh38.p13 primary assembly from GENCODE".
It is possible to pre-train your own version with a mouse genome.


Implement notification error UI

Part of this wouldn't be fully baked until we get the Neovim PR to decouple the UI, however, we could still use the UI paradigm for alerts / existing errors in code

This other issue might be related:
https://github.com/extr0py/oni/issues/39
It seems much better than the Atom UI notifications feature.

#365 makes progress towards this - I think it makes sense to keep open to track the alert / pop-up notification scenario, though.


Creating Calls from callData

Feature Request
Allow recreation of a call from hex encoded call data.
Suggestion
ExtrinsicRune.from(callData: Uint8Array | `0x{string}`)
Motivation
Building UIs we often just have access to hex encoded call data. It would be great to recreate an Call object from it which an be inspected to create UIs showing the actual extrinsic structure in a human readable format.
Use Cases
A proposed extrinsic call of a multisig has been saved as call data in a database for later retrieval. I need to recreate the ExtrinsicRune from this call data in order to use it with capi.

This ticket or #1037 is actually blocking a sane implementation of https://github.com/paritytech/capi-multisig-app/issues/173.
cc @kratico or @ryanleecode any ideas how to do this?

Okay I can create a RuntimeCall to be used with multisig.ratify(user,call) using the $runtimeCall codec. 👍
$runtimeCall.decode(hex.decode(callData))

I don't need to convert into an ExtrinsicRune though but how would this be done? And how to properly inspect a RuntimeCall. Hm.

Just added some convenience methods in #1044. @peetzweg does this help?

I don't need an actual ExtrinsicsRune for my use case with the multisig.ratify right now. Can't tell if this is ever needed or useful. I guess you are in the best position to jugdge that.
In general it feels good to be able to construct Runes via .fromHex or .fromString or so.

#1044 has been merged


Enhancement: Changesets for release management

We should look into setting up changesets to manage our release workflow so that we're releasing with better release notes, without slowing us down.

Closed via #44


blog: TechCrunch Disrupt Learnings

Blog Metadata
Please provide the following information:

Title: TechCrunch Disrupt Learnings
Author: Sahana Venkatesh
Position / Company: Software Engineer
Date: 3rd December 2024
Short description: TechCrunch Disrupt 2024 brought together global tech leaders to explore cutting-edge innovations. I interviewed Madhuvanthi Venkatesh, a data scientist and AI meetup organizer, about her key takeaways: the rise of “tiny LLMs,” the importance of real networking, and Silicon Valley’s leadership in AI.
Google doc Link with the content: https://docs.google.com/document/d/1iNIR60YIrNkLUq5yzKgFye2xUW3DvDxlaRdHMHhij2I/edit?tab=t.0
Category: Conference reflections

Banner image
Please include the banner image link for your post as a suggestion.
Keep in mind the image should be free or your own image creation.
In case you don't have any, the team can suggest.
https://drive.google.com/open?id=1u8CVojKsJWEnwFgS_oo9JyDMuhe4Aocp
Please try to ensure the banner image is of aspect ratio of 16:9 (e.g size 1024px by 576px) or higher.
Is there other images you want to include the content? Please include their links here also.

Could I please be assigned this ticket?

assigned @Amenawon thank you!🚀

Please let me know if I can help

@Amenawon are you able to make this PR for this blog today or would it be alright for @Sahanave to pick it up instead?

Hey , id do it today :)
On Sun, 15 Dec 2024 at 00:34, Airah✨ @.***> wrote:

@Amenawon https://github.com/Amenawon are you able to make this PR for
this blog today or would it be alright for @Sahanave
https://github.com/Sahanave to pick it up instead?
—
Reply to this email directly, view it on GitHub
https://github.com/Women-Coding-Community/WomenCodingCommunity.github.io/issues/390#issuecomment-2543521051,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJD5MZ4AT6KMRCBPUGNNKDL2FUWKHAVCNFSM6AAAAABS6KEQV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGUZDCMBVGE
.
You are receiving this because you were mentioned.Message ID:
<Women-Coding-Community/WomenCodingCommunity.github.
@.***>


create darkmode toggle switch for index header.

use this and then just play with the pixel values after you've created it. https://www.youtube.com/watch?v=gzCUq_VQ7Y8


Feat/uwp support fix pr windows (fingers crossed)

https://github.com/xunit/visualstudio.xunit/issues/221
xunit.runner.visualstudio must be downgraded to version 2.4.1 in order to test uwp :D
https://github.community/t/github-actions-matrix-options-dont-work-as-documented/16079
uwp sample?
https://stackoverflow.com/questions/60269750/github-actions-build-uwp-project

ok deffo related to uwp

I don't know why this isn't on the main repo but at any case I am closing since the main blocker that was the support for UWP xunit is no longer supported
https://github.com/xunit/visualstudio.xunit/issues/221


Very excited by this project! Some will think a star would have suffice, but I wanted to write this issue so you don't think it's a random number

🌟 Thanks for your support! ❤


Memory usage and number of instances

Thank you for the great repo.
Can you please provide some guidance how to configure the num_instance variable? For instance, if I want to host the llama2-7b-chat-W4A16 in a GPU with say 24GB ram, how many instances can I specify?
vLLM uses pre-allocated memory that takes about 90% of ram. I don't find that being applied in lmdeploy. In fact, the memory footprint increases as the concurrent request (with different instance_id). Can you provide some insights?
Thank you.

After converting llama2-7b-chat-W4A16 by deploy.py, there is a config file in workspace/triton_models/weights/config.ini
The memory is controlled by max_batch_size.
You can create turbomind's instances and attach each one to a unique thread or a process, in which you can call the instance's stream_infer methods to start inference.
benchmark/profile_generation.py can be viewed as an example

@lvhan028 Thank you for your reply.  I'm very new to this.
In the profile_generation.py, the creation of turbomind instances is done by:
for i in range(concurrency):
        proc = Thread(target=_infer, args=(model, i + 1))
        procs.append(proc)
        proc.start()

Then in the serve/async_engine.py file, I find
self.generators = [
            self.tm_model.create_instance() for i in range(instance_num)
        ]

Can you please explain the difference between them? Are they different ways of spinning up multiple instances? Thank you

Hi, @AIApprentice101 Feel free to ask anything about lmdeploy
profile_generation.py adopts multiprocessing to start instances concurrently. Whereas async_engine.py utilizes coroutine to realize concurrency. api_server.py shows how to use async_engine.py


Add ability to set custom Origin header

It is sometimes useful to be able to set a custom Origin header.
There is a 'headers' parameter to the client constructor (threaded client), where you can provide a new Origin header, but it is appended to the headers which already have an Origin value. Servers ignore duplicate Origin values.
I suggest changing the header code to allow the default Origin header to be overwritten by an Origin entry in the headers parameter.
Also, in the absence of an over-riding Origin header, the default should be schema://host[:port] per rfc 6454, not the full url.
I can provide a patch if you wish.

Is this still an issue? I see this: https://github.com/Lawouach/WebSocket-for-Python/blob/master/ws4py/client/init.py#L261
Looks like if the user sets the origin header the client won't add another?

Good catch.

Is this an issue in the 0.3.4 release (the version currently on PyPI)? If so, would it be possible for the PyPI version to be updated?


lib with enable bitcode

@faisakhtar for you to test
cc @edewit

@faisakhtar to test:
cordova plugin rm aerogear-cordova-push
cordova plugin add https://github.com/aerogear/aerogear-cordova-push\#ios.enable.bitcode

Hi,
I am unable to run the commands above to perform the aerogear library update due to my development environment.
Instead, I downloaded this updated aerogear lib file and manually copied it over the lib file in my Xcode project. Now the archive process completes successfully with bit code enabled, this new library appears to have resolved the bit code compilation issue when using aerogear cordova push for iOS.
Great job with this fix.
Thanks, Faisal.

@faisakhtar thanks for testing

related ios change: https://github.com/aerogear/aerogear-ios-push/pull/81#issuecomment-229648222


Fix Assertion failed: (handle->flags & UV_CLOSING)

Fix issue #713 for v2.1.1

Due to the way we current do releases patching and doing another 2.x isn't likely to happen. Libsass 3.2.0 stable will be out this week<EMAIL_ADDRESS>will follow shortly after.
Thanks for your work @saper .


[Mutants and Masterminds 3E Official] Equipment, Vehicle, and Headquarters generated attacks do not parse correctly when rolled using the Attack macro button.

Summary:

When building attacks in the sheet from the center menu under Powers, the attack will be added to the Attacks section on the sheet. Clicking the button in the Attacks section for this attack will function normally and output the macro to chat through the roll template.
However, when doing this same procedure but under any section of the center menu other than Powers (i.e. Equipment), the macro will not be able to find the descriptor attribute for the attack.
If you manually set an attribute in the roll20 menu (third tab for Attributes & Abilities) and name it "descriptor", then the macro will use that value instead.
Steps to Reproduce:

Log into Roll20 and select Create a new game

Give the game any name, select "Mutants and Masterminds 3e Official" for the character sheet, and hit "I'm ready, Create Game!"

Select "Launch Game" to open the game

Navigate to the Journals tab on the right side and add a Character

Click "Save Changes" on the character, then navigate to the "Character Sheet" tab of the Character window

In the center menu of the sheet near the bottom, switch to the Equipment tab instead of Powers and hit the Pencil icon to edit

Create an Attack with any name, any rank, and any descriptor. Descriptor can be blank or have any value.

Click on the Attack that was generated in the Attacks section of the character sheet and observe the chat message and error.

Suggestions/Theories
It appears to my uneducated eyes, that the roll template is not receiving the descriptor inputted by the user. I think this because you can manually add the attribute into the Attributes & Abilities section of the character (like where you can see sheet_version), and the roll template will use that value when it goes to the chat. This also won't affect the attacks made through the Power tab of the center menu, as those will still pull from what was inputted by the user in the edit menu of Powers.

Pushing a fix to this issue


Handle DoneAndSetHeaders() new second argument that wants to know whe…

…ther the response is complete.
Motivated by the PSOL change to fix https://github.com/pagespeed/mod_pagespeed/issues/1081

Great, LGTM!


beyond-identity: 2.60.0-0 -> 2.97.0-0

Description of changes

https://support.beyondidentity.com/hc/en-us/articles/22404716336407-Version-2-97-0-Endpoint-Release-Notes
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 309931 run on x86_64-linux 1

1 package built:

beyond-identity


Hide "Models" section

Hi! Is it possible to hide the "Models" section that appears at the bottom of the generated Swagger UI page? I use model classes in a bit "hacky" way - to generate sample responses for my endpoints - so it's not a real model, so to speak. That's why I don't want it to be displayed on a page.

@dtitov unfortunately no there isnt.

@dilipkrish Can this be a planned feature in the future? I would like to hide mine as well, our only needs for the API is for testing endpoints. We use JAXB to generate many objects in our requests which inundates the "Models" section with a lot of object data we don't care about

There are ways to tailor the models accordingly. An example is probably in order here

I mean... It should be quite simple to introduce some kind of a flag just to not render that HTML section. It doesn't seem to be a complicated solution. I'm not into implementational details though...

@dtitov sure there might be, however that is not part of this project.
Thank you for reporting. That  is an issue that belongs to the Swagger-ui project.


Cmplx division by 0 and NaN

From @rust-highfive on November 2, 2014 21:42
 Issue by huonw
Friday Apr 05, 2013 at 08:26 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/5736
This issue was labelled with: A-libs, B-RFC, I-wrong in the Rust repository

Should 1/(0+0i) be NaN+NaN i or fail, or something else.
see also #1284
Copied from original issue: rust-num/num#20

From @stygstra on June 19, 2015 19:1
There isn't much consensus among other languages:

C++ and Racket agree when dividing by ±0.0±0.0i, but they differ when dividing by ±inf±infi.
Python rejects division by ±0.0±0.0i, gives NaN+NaNi when dividing by a complex number where both components are infinite, and gives ±0.0±0.0i when dividing by a complex number with exactly one infinite component.
Julia gives NaN+NaNi when dividing by ±0.0±0.0i and gives ±0.0±0.0i when dividing by a complex number where one or both of the components is infinite.

Wolfram Alpha gives the answer of Complex infinity, which I think is more mathematically accurate, but not sure of the actual implementation.
In Golang's cmplx package, Complex infinity is represented as inf + inf i, and I can't find other implementations that specifically mention complex infinity.

I think that NaN is the best choice. From what I understand infinity is often introduced to compactify the space. In this case, adding infinity to the usual complex plane gives the Riemann Sphere. However, maybe some utility should be included to differentiate between standard and compacted spaces?

I see that f64::recip gives inf (run) so it seems like it would be nice to be consistent with that, or at least to have one method that is consistent.