Save parameters as presets?

I'm primarily using HPSS right now and although it works very well, finding the right settings is a matter of trial-and-error. I'd like to request, if possible, that the script allows saving of all parameters as presets which can be recalled. (Currently I'm taking screen shots of the script window as reference for settings that work well for a given audio source type, which is better than nothing.) Since the script window recalls the previous settings used (as long as Reaper isn't closed), I could fumble my way through changing parameters and then once I've gotten a result I like, I could open the window again and save a preset. Naming of the presets would be helpful too.
Another request, which might be too far beyond the scope of what you planned: allowing auditioning of the script's results before outputting WAV files (for a single item that's chosen, anyway). This would make parameter selection significantly faster.
There are some Reascript GUI toolkits and API extensions to take advantage of, if you are considering this kind of thing. I can link you to them if you're not aware of them already.

Hey James, thanks for the feedback and for using ReaCoMa! As it stands I basically have no time to develope ReaCoMa right now. There is a branch for ReaCoMa 2, where I am rewriting someone elses gui library (for HIDPI support) in order to make the interface better and to allow capabilities such as you described with auditioning results without outputting files. That however will always be underpinned by making a file, as the command line tools cannot generate audio buffers or work in memory. If you want go fast, I recommend you set the output of reacoma (available in the config) to a good temp location and just trash it when you are done if you are worried about space bloat. One of the design considerations was to use takes so you can easily do A/B then undo if you dont like the result.
I'll let you know how it goes, but honestly its not looking like a new version would happen even in the next year, given how behind I am with other stuff due to the pandemic. Thanks nonetheless though, its other peoples interest that gives me motivation to work on it.

Something like this could be great...
https://forum.cockos.com/showthread.php?p=2416501

This is in progress on a new branch now:
https://github.com/jamesb93/ReaCoMa/tree/reacoma2
Huge overhaul with new GUI stuff...
you might be interested @JamesPeters667

Thanks for the mention. However I tried running it (fluid-hpss.lua in particular) and it returned:
imgui_helpers.lua:4: 'reaper.ImGui_CreateContext': expected 2 arguments maximum
I have RealmGUI 0.5.1, and flucoma-cli 1.0.0.RC1b (Linux binaries).
(ReaCoMa 1.6.2 works as expected with flucoma-cli 1.0.0.RC1b, anyway.)

Ah yeah, currently its broken as I was building it all out on the 0.4.1 version of ReaImGui. I'm in the process of updating to the new API of 0.5.1 :) Shouldnt be too long.
On Thu, 1 Jul 2021, at 9:09 PM, JamesPeters667 wrote:

Thanks for the mention. However I tried running it (fluid-hpss.lua in particular) and it returned:
imgui_helpers.lua:4: 'reaper.ImGui_CreateContext': expected 2 arguments maximum
I have RealmGUI 0.5.1, and flucoma-cli 1.0.0.RC1b (Linux binaries).
(ReaCoMa 1.6.2 works as expected with flucoma-cli 1.0.0.RC1b, anyway.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/jamesb93/ReaCoMa/issues/9#issuecomment-872518780, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFKURVIQZRQDMLEJZTI4GDTVTDRLANCNFSM424CCOUQ.

This is now sorted upstream but I will await a released version:
https://github.com/cfillion/reaimgui/commit/25857158a8f915f939106b88cfe6989b3f648800

I'm using Linux so that's not a problem for me, at least I don't think.
I noticed something else though. With the ReaCoMa 2 (downloaded a couple minutes ago), and RealmGUI 0.5.1, when I run a script (fluid-hpss.lua again), a window pops up which...takes the entire Reaper window (except the main menu) and has no way to exit. :) I have to close Reaper and restart it so I can see any part of the GUI. Even if I use an action to start a new project, the ReaCoMa window takes up the whole screen.

Yeah, this is part of the API changes I need to adapt to.

Just as a heads up, I will soon be splitting the repository up into 2.0 and non 2.0 stuff:
https://github.com/ReaCoMa/ReaCoMa-2.0


ISA-Tab export fails with missing Term Source Ref after attribute "None"

We are seeing this weird problem with a specific sample sheet. Uploading it works OK with no altamISA errors, but attempting to export provides the following error:
Unable to export ISA-Tab: Expected 'Term Source REF' not found in node 'REDACTED' after/for attribute 'None'

Export from the version list works OK, as we use the original ISA-Tab data there. Possibly something goes wrong in importing on the SODAR side. Will try to reproduce locally.

The immediate fix is removing unused ontology and unit ontology columns after a "Folder name" column in the assay file. However, I would still like to identify and fix the root cause for why this works in import but fails in export.. Will consult with our resident ISA-Tab expert.

We're seeing this again with an empty Unit column. Any luck in finding the cause?


Update CI report format to csv

Summary
Changed the CI test report format from xml to user friendly csv format.

How to test

Checklist

[ ] I have added unit tests to cover my changes.
[ ] I have added integration tests to cover my changes.
[ ] I have added the description of my changes into CHANGELOG.
[ ] I have updated the documentation accordingly

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below).

# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

daily test results: https://github.com/openvinotoolkit/datumaro/actions/runs/6105654969


draft(examples): Move current file to archive

Sorry for raw pull request, but I'm afraid to forget if I postpone sharing, and the script covers pretty basic scenario for a macro - moving the current active file to a specific folder. If it looks valid in general to you, I'll try to put more effort of adding Examples/Macro_MoveCurrentFileToArchive.md page. Will also be grateful for advice of how to screencapture a gif properly.

Hey @artyhedgehog, thanks for the contribution! It looks great. Works fine for me.
I use ShareX for capturing gifs.

Closing as inactive


wave direction is reversed at 3x and 4x speed

Describe the bug
the wave points in the opposite direction when going at 3x and 4x speed
How to reproduce
go to test4
Screenshots e/o videos
https://github.com/famidash/famidash/assets/140995410/e0ac4a4d-2254-4bd1-b0f1-432d11455e29
Emulator(please complete the following information):

Device: [e.g. PC, Phone]: samsung laptop running linux mint 21.2
Emulator [e.g. RetroArch, Mesen]: mesen
Core [ONLY if you use RetroArch]:

smasnug

Yeah working on a solution for this one still

Fixed in https://github.com/famidash/famidash/commit/2cb003189a0eccf872bec7eaa7d8e3dc78d066ef


TypeError: cannot unpack non-iterable AxesSubplot object

Axes, bestlr = lr_finder.plot(ax=ax, suggest_lr=True)
TypeError: cannot unpack non-iterable AxesSubplot object
Sometimes this error happens to me, is there a solution?

Hi @laiyuzhi,
it seems there is no sufficient data points (num_iter < 17 for range_test()) for lr_finder to calculate gradient as min_grad_idx, so that lr_finder.plot() returns only the AxesSubplot object.
This is a thing that we need to fix since the output should be expected as two values when suggest_lr is set to True.
Before the patch is submitted, you could try the following approaches to avoid this situation:

make sure num_iter always >= 17 (skip_start=10, skip_end=5, and there should be at least 2 points for np.gradient())
set both skip_start and skip_end to 0 (but you still need to make sure num_iter >= 2)

Or you can apply this patch temporarily:
diff --git a/torch_lr_finder/lr_finder.py b/torch_lr_finder/lr_finder.py
index 8311bf5..e60f2cd 100644
--- a/torch_lr_finder/lr_finder.py
+++ b/torch_lr_finder/lr_finder.py
@@ -532,8 +532,10 @@ class LRFinder(object):
         if fig is not None:
             plt.show()

-        if suggest_lr and min_grad_idx is not None:
-            return ax, lrs[min_grad_idx]
+        suggested_lr = lrs[min_grad_idx] if min_grad_idx is not None else None
+
+        if suggest_lr:
+            return ax, suggested_lr
         else:
             return ax

But please note using a low num_iter might not be sufficient to get a proper lr-loss curve for suggested learning rate. And the patch above would still return a None value for suggested learning rate, you need to check whether it's a numerical value before doing further operation on it.


fix issues

Description:
fix invalid cloud service's name.

Testing done:
Done

Affected area:

Functional Area

New Functionality
[ ]

CI System
[ ]

CLI Tool
[ ]

Certificate Management
[ ]

Control Plane
[ ]

Demo
[ ]

Documentation
[ ]

Egress
[ ]

Ingress
[ ]

Install
[ ]

Networking
[ ]

Observability
[ ]

Performance
[ ]

SMI Policy
[ ]

Security
[ ]

Sidecar Injection
[ ]

Tests
[ ]

Upgrade
[ ]

Other
[X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? no

Is this a breaking change? no

Has documentation corresponding to this change been updated in the fsm-docs repo (if applicable)? no

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 47.14%. Comparing base (7f01986) to head (dc5d7e2).
Report is 42 commits behind head on release/v1.2.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@               Coverage Diff                @@
##           release/v1.2     #229      +/-   ##
================================================
+ Coverage         46.83%   47.14%   +0.30%
================================================
  Files               199      196       -3
  Lines             15232    12118    -3114
================================================
- Hits               7134     5713    -1421
+ Misses             8052     6361    -1691
+ Partials             46       44       -2

Flag
Coverage Δ

unittests
47.14% <ø> (+0.30%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Would like to add preloader , custom  and scroll bar?

@khushi-joshi-05

@khushi-joshi-05

@sunny0625 please review the PR #934

@sunny0625 please review the PR

https://github.com/khushi-joshi-05/Food-ordering-website/assets/154777864/25982550-5e3f-4038-a044-feb824da8e62
@sunny0625 please check I added the custom cursor pointer

@sunny0625 please review the changes

@sunny0625 please review the PR

@sunny0625 please review the PR


 I would suggest feat(starter-s3): ... as prefix.
I must admit that commit messages in this repo are not as clean as they are in sda-dropwizard-commons. Usually they should use the semantic prefix and the submodule as context.


Adding s390x support in Travis

As Travis CI officially supports s390x builds, adding support for same.

@namrata-ibm Thanks for the update. Now, I'm inclining to migrate to GitHub Actions because of its convenience in future. I'm not sure it supports s390x arch, though.

@xerial , there seems to be a third-party GitHub Action, although Travis runs native builds for s390x.

@xerial could you please update on this?

@xerial any updates on this?

Let me merge this and I'll use Travis for s390x build and GitHub Actions for the others.


Win32 API - MAKELANGID and Language Identifiers articles did not say anything about their Deprecation status

(Easter egg: How fitting that my issue number is same as the Windows ASNI code page number.)
Link to article:
https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifiers
https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-formatmessage
https://docs.microsoft.com/en-us/windows/desktop/api/Winnt/nf-winnt-makelangid
Problem:
In the latest Windows 10 SDK, Build 10.0.17763.0, certain functions, macros, and identifiers were marked as deprecated.
Language Identifiers is one of them.

I am requesting for clarifications on what the status of Language Identifiers, and how do you correctly use them, both in Win32 API, FormatMessage, Language Identifiers and MAKELANGID.
What is the correct alternative to using FormatMessage() in general?

From https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessage
"If you pass in zero [for dwLanguageId], FormatMessage looks for a message for LANGIDs in the following order:

Language neutral
Thread LANGID, based on the thread's locale value
User default LANGID, based on the user's default locale value
System default LANGID, based on the system default locale value
US English

@ccourson
Have they actually updated the articles I sought information from, in regards to alternatives for the macros marked for deprecation?
I still haven't seen a solution as to how to do the workaround to the deprecated MAKELANGID macro.

One can edit the reference docs and add a "Deprecated" remark on GitHub then submit a pull request. As for the workaround, simply supply '0' for the dwLanguageId parameter and Windows will sort it out.


SIGSEGV on cargo test on Mac OS

Describe the bug
Unable to run tests (Mac OS only). Running cargo test results in

(signal: 11, SIGSEGV: invalid memory reference)

Stacktrace
No backtrace availlable on SIGSEV
Context
Please include

Operating system: Mac OS: Darwin Mac-1610214732616.local 19.6.0
OS/kernel version: Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6<IP_ADDRESS>~1/RELEASE_X86_64 x86_64
Version of rustc: rustc 1.49.0 (e1884a8e3 2020-12-29)

Debugging
Github worklflow runner can be accessed via a SSH session for additional debugging. Error has been reproduced on the runner host both with stable and nightly channel.
The following will have to be executed in order to have a working rust environment on the workflow runner;

export CARGO_HOME="/Users/runner/.cargo"
export PATH=/Users/runner/.cargo/bin:$PATH
rustup toolchain install stable

Project source code is found in

cd /Users/runner/work/fwalker/fwalker

The issue is probably with rust or cargo. Will have to test with never versions when they are released.

Can confirm this issue
error: test failed, to rerun pass '--lib'

Caused by:
  process didn't exit successfully: `/Users/william.rudenmalmhogman/code/w/fwalker/target/debug/deps/fwalker-76b066772f2f1f02` (signal: 11, SIGSEGV: invalid memory reference)

Can confirm this issue
error: test failed, to rerun pass '--lib'

Caused by:
  process didn't exit successfully: `/Users/william.rudenmalmhogman/code/w/fwalker/target/debug/deps/fwalker-76b066772f2f1f02` (signal: 11, SIGSEGV: invalid memory reference)


warning unknown prop 'copyKeys'

when i load video show in console
warning.js:44 Warning: Unknown prop copyKeys on  tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
use a simple code

I have the same problem. Did you find a solution?

Released in https://github.com/mderrick/react-html5video/releases/tag/1.2.10


WIP: Documentation improvements

To release v6.0.0 I think a refresh of the docs is in order. As it has grown organically over the years, the docs are quite unwieldy for a new user, some parts are not accurate, there are typos and styling issues. I think initially just tidying up, fixing typos, adding images and icons is most of what needs to happen right now.
I've started tidying up the readme, it can be seen rendered here. I haven't started on the API.md yet. I'm creating this PR to gather feedback and ideas.
Some tasks I think should be part of releasing v6

[x] Guide users to the correct docs for v6 and v5
[x] Add a project logo
[x] Simple explanation of what the project is
[x] Copy-pastable usage example
[x] Generate contributors section
[x] Add project badges
[ ] Ensure platform support tables are accurate
[ ] Example Screenshots
[ ] Section about Native UI vs Custom UI
[x] Improve section legibility
[ ] Move manual linking instructions to own doc
[ ] Platform specific documents
[x] Ensure syntax highlighting is used in code examples
[ ] Add Upgrade document
[ ] Highlight v5 - v6 upgrade path

Feel free to contribute ideas etc on this PR

We have new docs here

Much better :)
How do you feel about adopting the logo I created for my docs branch?


checkov: 3.0.37 -> 3.0.38

Diff: https://github.com/bridgecrewio/checkov/compare/refs/tags/3.0.37...3.0.38
Changelog: https://github.com/bridgecrewio/checkov/releases/tag/3.0.38
Description of changes

Things done

Built on platform(s)

[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.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

[ ] Fits CONTRIBUTING.md.

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

2 packages built:

checkov
checkov.dist


Tautological test?

Does this test capture the intent?
https://github.com/sorentwo/carrierwave-aws/blob/a832b01964c37da6fa3f723308c6807e87394d15/spec/carrierwave/storage/aws_spec.rb#L26
    it 'caches connections by credentials' do
      expect(storage.connection).to eq(storage.connection)
    end

That seems like it could never usefully fail and does not demonstrate caching, compared to:
expect(storage.connection).to eq CarrierWave::Storage::AWS.new(uploader).connection

If I recall it was lifted from the corresponding Fog code in carrierwave proper. A PR to make the intent clearer, and demonstrate that the connection is cached would be welcome.

I suspect what happened is that they broke out the constructor call to the let(:storage) statement and search-replaced everywhere it had been, overlooking the fact that second call on the line intended to get a different object.

A more meaningful spec has been added with  4a2e18d


Issue 15678: BigInt("") should not break array bounds

Fixes: https://issues.dlang.org/show_bug.cgi?id=15678

In my opinion, it would have been better if the constructor threw, but I see your point about not wanting to break nothrow code. This is a drawback of deduced function attributes that I haven't thought of before. Interestingly, it seems that someone have already planned to make the constructor throw in some cases, cf. the comment a few lines up.

Also, if we define BigInt("") to be zero I guess it should be documented.

I noticed the comment too, but wasn't sure whether to actually make the constructor throwing. It does date from quite a few years back, and things have changed since.
Anyway, updated the ddoc comment. I changed it from /// style to /** */ style because for some strange reason dmd git HEAD seems to treat every line in /// style as a separate paragraph, when this particular comment really would look better as proper paragraphs.

LGTM

I have little experience with nothrow, so I'd definitely make it throw.
What happens if I call BigInt ("ONE"), or BigInt ("qwerty"), does it not throw anyway?..
I see BigInt (string) as a counterpart to std.conv.to !(int) (string), which throws if something is wrong, and rightfully so.
Moreover, if the constructor throws, an important semantic invariant like text (BigInt (s)) == s will hold.
Hmm, or will it additionally convert "-0" to "0"?

Well, got my hands on a D compiler now to answer my own questions.

auto a = BigInt ("ONE"); throws:
std.conv.ConvException@std\internal\math\biguintcore.d(1606): invalid digit

-0 is silently converted to 0, which may be a good thing for a general-purpose library.

Point 1 shows that the constructor is not nothrow anyway, so this is not a concern.
As to point 2, it already provides an undocumented exception to the semantic invariant.
Furthermore, for example, "00" also becomes "0".
I should note that converting "" to "0" is less innocent than converting "-0" or "00" to "0": additionally, it might break some tokenization routines when converting back and forth.
At any rate, I don't see a use case for silently handling "" in a defined way instead of issuing a prominent error.
But if you do, I'm fine with that.

@GassaFM: You are absolutely right, thanks for checking this! It seems that BigUint.fromHexString() is nothrow while BigUint.fromDecimalString() throws. Here are lines 398–340 of biguintcore.d (and note the comments):
// return true if OK; false if erroneous characters found
// FIXME: actually throws `ConvException` on error.
bool fromDecimalString(const(char)[] s) pure @trusted

It seems that this needs some more cleaning-up. Now I definitely think that the constructor should throw, and it should throw the same exception whether something is an empty string, an invalid hex string or an invalid decimal string.

From another point of view:
How can a BigInt (range-of-char) constructor be made nothrow or @nogc in principle?
At the core, it should allocate an unknown amount of memory for storage, which I'm sure can result in OutOfMemoryError or something similar.
Supplying a pre-allocated buffer as argument does not immediately help - what if the length is not enough?

Modified to throw exception on empty string instead.

Also changed current code to throw on invalid digit string.

@GassaFM OutOfMemory errors, AFAIK, are Errors, not Exceptions, so they can be thrown even in nothrow code, and are generally fatal, just as AssertErrors are fatal. But in general, I agree that the ctor can't be nothrow, because there's no sane way of aborting construction of a BigInt when given a garbage input string. Except perhaps setting it to 0, which is probably a bad idea as it will hide bugs.

Weird autotester failure, doesn't seem related to this PR? Am I missing something here?

OK, seems to be passing now.

ping @kyllingstad
Any other comments? Is this ready to merge?

Auto-merge toggled on

Sorry, slipped my mind :-/

No problem, thanks!


[enhancement] Construct lens in parts to prevent blocking the entire game

This is to allow for longer and more complex lenses without sacrificing the user experience.  Slow lens loading can be offset by piquing the user's interest with a progressing lens construction.  This can strengthen the feasibility of filling in the holes left by forward projections.
This will probably be done by checking the time after each row.  If the allotted time is surpassed, the current row will be saved.  A flag will have to be created to represent if the lens is under construction.  This flag should be checked to prevent things like clearing side_count and the lensmap and so on.

did this last year


feat: add setInitialValue config

PR Checklist
Please check if your PR fulfills the following requirements:

[X] The commit message follows our guidelines: CONTRIBUTING.md#commit
[] Tests for the changes have been added (for bug fixes / features) - Can't be tested
[X] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: https://github.com/ngneat/bind-query-params/issues/14
What is the new behavior?
You can pass a property called setInitialValue to choose if bindQueryParam will inherit the formControl value
Does this PR introduce a breaking change?
[ ] Yes
[X] No

Other information

Hello,
I have a question regarding this feature. On can fairly easily set an initial value this way:
 form = new FormGroup({
    firstName: new FormControl(this.activatedRoute.snapshot.queryParams.fn),
    lastNname: new FormControl(this.activatedRoute.snapshot.queryParams.ln),
  });

I've implemented my own url sync feature via a custom directive (thanks to your blog @NetanelBasal)
Anyhow all is working well but I'm hitting a catch 22 situation when using a custom RouteReuseStrategy
If I keep my component loaded across page changes, I can't seem to keep both the URL and the form in sync when I get back to it.
Since there is no kind of "on route enter" life cycle hook in Angular, I think I'm stuck.
Do you think what you're implementing here would handle that problem?
I'm planning on testing this package: https://www.npmjs.com/package/@jdrks/ngx-deep-linking
The idea to wrap the component looks interesting.
Thanks

Hey @benjamin-thomas .
Yes, This PR should resolve your issue without any need for other directives.
I'm using the ActivatedRoute queryParams to listen for changes and if you use 'twoWay' strategy I'm always updating the formControl.
Also, now the form control will get its initial value from the URL so you don't even need to add this.activatedRoute.snapshot.queryParams.fn

@gili-lumigo that sounds great :)
I'd like to test your work in progress with my project. Do you have any tips on how to proceed?
I've tried pointing to your git repo in my package.json but that seems like a no go as I then get into import problems.

@gili-lumigo that sounds great :)
I'd like to test your work in progress with my project. Do you have any tips on how to proceed?
I've tried pointing to your git repo in my package.json but that seems like a no go as I then get into import problems.

I think you can clone this repo and install it locally as an npm dependency
https://medium.com/@AidThompsin/how-to-npm-link-to-a-local-version-of-your-dependency-84e82126667a
Or maybe @NetanelBasal has some other easier approach...

Closing this PR and reopening it...

@gili-lumigo that sounds great :)
I'd like to test your work in progress with my project. Do you have any tips on how to proceed?
I've tried pointing to your git repo in my package.json but that seems like a no go as I then get into import problems.

I think you can clone this repo and install it locally as an npm dependency
https://medium.com/@AidThompsin/how-to-npm-link-to-a-local-version-of-your-dependency-84e82126667a
Or maybe @NetanelBasal has some other easier approach...

Thanks for the idea. Using the npm link feature seems like a no go for an angular + typescript project.
I kinda got closed to something workable by building your fork, then rsyncing it into my node_modules folder. Hacky though.

We have already released it. Use v2.


Passing managedObjectContext to other controllers

I have followed your storyboard example and it worked great.  I am running into one problem though.  I cam coming from an app in which I followed apples pattern of passing my managedObjectContext to the view controllers that need it.  I can get my MOC into the content view controller:
MyNavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"contentViewController"];
navigationController.managedObjectContext = _managedObjectContext;
self.contentViewController = navigationController;

From there though I am not sure how to get it through to my other view controllers.  I tired implementing prepareForSegue in 'MyNavigationController'   but that never gets called to I cannot 'inject the MOC into my other view controllers.
Have you done this.  Any advice?
This really relates to passing anything down from one controller to another, it just so happens that a MOC is very common.

mainViewController *mainController = ((mainViewController*)self.window.rootViewController);
NSLog(@"delegateMOC: %@",self.managedObjectContext);
mainController.managedObjectContext = self.managedObjectContext;

ActivityCollectionViewController *activityController = (ActivityCollectionViewController *)mainController.contentViewController;

activityController.managedObjectContext = self.managedObjectContext;

leftMenuController *leftMenu = (leftMenuController *)mainController.leftMenuViewController;

leftMenu.managedObjectContext = self.managedObjectContext;

I hope it will help)


add osifeso oluwaseun

update the code by pulling from upstream and pushing to origin main

please can you update your code by pulling the latest changes from the upstream.
git pull upstream main

git push origin main

Alright

I just did that.
am i suppose to create another pr?

I just did that. am i suppose to create another pr?

You don't have to create a new PR. Pull, effect required changed and push again.


Module 8 - Tropo labs need info on pricing and caveats

In intro content, enhance Tropo pricing and international caveats

Marcos to assign to Phil.  Tessa can review when Phil is done.

Would like to add Steve to help/review, based on his extensive experience with this stuff, esp. international

In weekly meeting: Phil said he would upload Word document and Tessa to review.

Module 8:Lab X - Assess Costs for Tropo.docx
First draft of the Tropo pricing lab ready for review.

I was told by Tropo operations that access to the new Tropo.com site is strictly limited to a short list of Tropo BU employees because it requires granting full admin privileges. However, they did say the Tropo.eu  site uses the same navigation and the screenshots are mostly identical, so it was recommended to use this to update the labs, for now.

Need Tessa to sign off on the markdown and the content to say that this is ready to publish.

I had to re-review it in case there has been changes since the last time I viewed it.
Looks like the challenge was updated again and it is definitely better than the last. Thank Phil for your time on this!
Ready to Publish.

@klevenstein the Tropo labs have been retired and removed for the DNE-CC tracks.
I propose we close this issue.
Assigning to Karen

Closing; thanks Stève!


How is the obama-0075.params file generated

I've had a look at the char_lstm tutorial and notice a file named obama-0075.params that is included in the zip file download.
Could you explain how this file is generated or point me in the right direction?

Think I may have answered my own question, assuming I'm right in thinking that changing the num_epoch variable controls this.
# We will show a quick demo with only 1 epoch. In practice, we can set it to be 100
num_epoch = 75
# learning rate
learning_rate = 0.01

Could anyone explain the use of epoch in the FeedForward method?


Restore an optimized version of pc.string.format

Restores pc.string.format to API (for now). But I've taken the opportunity to optimize it and condense the code so it's not quite as odious as before. Implementation is now:
    format: function (s) {
        for (var i = 1; i < arguments.length; i++) {
            s = s.replace('{' + (i - 1) + '}', arguments[i]);
        }
        return s;
    },

This is approximately twice as fast as the previous RegExp-based implementation and the code is obviously smaller.
I've also removed the closure in the string.js module which is no longer required under Rollup.
I confirm I have signed the Contributor License Agreement.

Use of arguments is known for preventing functions to be optimised by V8 in Chrome. This is one of the reasons why we do arg1, arg2, arg3 ... as arguments in event emitters.

Interesting. But I can't make assumptions about the maximum number of args here unfortunately. This new implementation is 2x faster, which is something. But it's still literally 600 times slower than just doing a string concat.
I just made a jsperf to investigate:
https://jsperf.com/pc-string-format

Looks like not using the arguments array would give another 20% boost. But yeah, I think I can live with the hit to have a compact, generalized function.


Commit signed contirbutor guide

What

Added commit signed contributor guide

Why

For security reason each commit should be signed with GPG

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.561%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
38

Relevant Lines:
39

💛  - Coveralls


Update non java files

Description
Updates the code style for everything that is not a java file.
Check List

[ ] ~New functionality includes testing~
[x] New functionality has been documented
[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@scrawfor99 :clap:  looks pretty good, this is the same rules as for OpenSearch core, right?

@scrawfor99 Please open up a manual backport of this change to 2.x.

@scrawfor99 Please open up a manual backport of this change to 2.x.

I was just gonna backport the style changes manually once everything is approved if that is okay. Basically, I am intentionally splitting the changes so they can be reviewed but for the backport we can just run the new workflow to backport.

@scrawfor99 There may be some challenges in backporting other PRs if its in a state where there are formatting changes on main that are not in the 2.x branch. I think it may make sense to backport these individually or do one big PR with all formatting changes.

Hi @cwperks, the reason the formatting changes are split like this is to try and make reviewing the changes feasible. Basically, there are too many changes to be reviewed altogether so it is easier to tell how things are changing by moving piece by piece.
The issue with backporting each individual PR is that we are not actually backporting a code change but just an updated format guideline. What we would want to backport is just the build.gradle change not the actual code changes resulting from the the updated formatting themselves.
I am not sure how to do that so I am hoping we can instead just update the format of the entirety of 2.x once we have all accepted the changes as appropriate.
Does that make sense?


[WFLY-10988] Upgrade parent pom to 29

https://issues.jboss.org/browse/WFLY-10988

Retest this please


[Doc] Add menu items to select fields documentation

I looked at the examples online and had a tough time understanding what the format of menuItems was. I dug into the source of the page that rendered that example and figured out what the value should be. Then I added this code where it would be seen. I'm not sure if this is the right format but thought it might be a step in the right direction.

@panozzaj Sorry to say this, but the menuItems are going to be deprecated. :sweat_smile: :sweat_smile:
Besides, the documentations are under going major changes. In the new standard we won't be using text files, but rather use the source code of each example as a way to demonstrate it. see the discussion at #2433

I looked at the examples online and had a tough time understanding what the format of menuItems was

@panozzaj I confirm, that exactly what we whent to address with the doc migration.
Thanks for the effort. I'm gonna close this PR.

No worries, just took a couple of minutes. Thanks for all of the great
work, it is helping our project be better!
Sent from my phone
On Dec 16, 2015 4:59 AM, "Olivier Tassinari"<EMAIL_ADDRESS>wrote:

I looked at the examples online and had a tough time understanding what
the format of menuItems was
@panozzaj https://github.com/panozzaj I confirm, that exactly what we
whent to address with the doc migration.
Thanks for the effort. I'm gonna close this PR.
—
Reply to this email directly or view it on GitHub
https://github.com/callemall/material-ui/pull/2542#issuecomment-165052965
.


Use a different storage method for the Groovy incremental compilation source class mapping

Currently, we use a plain text file for mapping Groovy sources to class files. For dependency management, that file around 400kb of size. We should find out what the performance impact of reading and writing that file on each compilation is and if it makes sense to use a faster/more compact storage method (e.g. using a PersistentIndexedCache).

I guess you need all the data every time, so an indexed cache won't help much. Just zipping it might help, though, as the contents should be very well compressible.

We don't need all the data every time. We only need the data for the changed source files and the indexed cache will be updated with the newly written data. Though you are probably right, and zipping may be enough. Let's look at the performance impact first, maybe we don't need to do anything.

This would be nice. We should probably do this when we make the incremental compilation data cacheable.


Migrate inactive webhooks

Description
If a webhook is disabled it will not be migrated. All webhooks should be migrated regardless of active/disabled status. Additional reporting in the issue regarding inactive webhooks would also be a nice to have.

@cvega I assume you're talking about GHEC->GHEC migrations?
This would need to be implemented in the backend, adding @roferg

@cvega - Can you tell me more about the customer ask and scenario for moving inactive web hooks? I'm assuming this is Salesforce?

@roferg No, problem. Basically the customer was confused when the inactive webhooks did not come over, also I suspect some of these webhooks may be set as inactive pre migration.

I am the customer. We are performing GHEC->GHEC w/EMU migrations. How about an option to migrate all hooks instead? I can see that some users might not want the disabled hooks as they are no longer in use. In that case I'd say delete the hook. In our case the hook might be temporarily disabled but used in the future. We wouldn't want to leave it active and constantly fail.
Maybe an option --migrate-all-webhooks would be useful.

@toddoconnor - Thanks for the input! We're looking at expanding what can be migrated to include all webhooks. It don't have an ETA that this point yet.

being implemented in this PR: https://github.com/github/github/pull/225444

@toddoconnor - We have a PR in the works to migrate disabled webhooks as well. I'm hopeful we can get it deployed next week.


Language version consistency (9 -> 9.0)

This is consistent with the rest of the article. I noticed this from:

Thanks @Youssef1313
I've got a question for @MadsTorgersen to make sure we should standardize on "9" vs. "9.0". As soon as I get the answer, I'll either merge this or ask for changes.

@Youssef1313
I'm closing this one. After chatting with @MadsTorgersen and @BethMassi the correct fix would be to standardize on "9" instead of "9.0".
Thanks.

@BillWagner fwiw, the compiler actually uses C# 9.0, for example in:
https://github.com/dotnet/roslyn/blob/8c77f529a5981819f15a68deb616b6e04ad8d1aa/src/Compilers/CSharp/Portable/CSharpResources.resx#L6452 should it be updated as well?

Also in
https://github.com/dotnet/roslyn/blob/8c77f529a5981819f15a68deb616b6e04ad8d1aa/src/Compilers/CSharp/Portable/LanguageVersion.cs#L346-L347

@Youssef1313 I would ask @jaredpar if those changes are above the bar.


Specmatic Stub handling of binary responses (MimeType & Content)

Description
I have an API that has application/pdf as return type for one of the endpoints. Currently, if i generate a stub from an interaction, i have no way to load bytes in the response (using externalValue). I can only type an inline string.
This has two effects:

first i cannot correctly mock this interaction, because the calling app will need valid bytes to be sent back.
second, the mime type sent back is incorrect, Specmatic looks at the pattern from the response example to generate the response. This means if Specmatic parses the example body as a StringValue, it will set the return MimeType to text/plain, which isn't compatible with the contract.

There are multiple behaviors that adds up to create the mimetype behaviour:

Specmatic creates the example patterns from the example body, and doesn't look at the contract at all. This is why what is a "String format Binary" in the contract turns in a simple String in the example, generating the incorrect mimeType
Specmatic doesn't use the contract at all for responses MimeTypes, just the Value class of the body

Steps to reproduce
1. Here's what you need, there is a contract, an interraction & 1 pdf files:
Contract:
openapi: 3.0.3
info:
  contact:
    url: http://balbala
  title: GigaUpload Service
  description: Service to upload things and break Specmatic :( sorry guyz
  version: 1.0.0
servers:
  - url: "http://{hostname}:{port}/{basePath}/"
    variables:
      hostname:
        default: localhost
      port:
        default: "8080"
      basePath:
        default: rest
  - url: "http://localhost:9000"
tags:
  - name: UploadStuff
paths:
  "/uploadstuff":
    post:
      tags:
        - UploadStuff
      operationId: UploadStuffToServer
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                uploadRequest:
                  $ref: "#/components/schemas/UploadRequest"
                pdfFiles:
                  type: array
                  items:
                    type: string
                    format: binary
              required:
                - uploadRequest
                - pdfFiles
            encoding:
              UploadRequest:
                contentType: application/json
              pdfFiles:
                contentType: application/pdf
      responses:
        "200":
          description: "The document has been sent successfully send and...we're sending it back, because reasons. You're not my dad."
          content:
            application/pdf:
              schema:
                type: string
                format: binary
components:
  schemas:
    UploadRequest:
      type: object
      title: UploadRequest
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        coolNameYourFriendsGiveYou:
          type: string
          minLength: 1
          maxLength: 255
      required:
        - name
        - coolNameYourFriendsGiveYou

Interraction:
{
  "http-request": {
    "method": "POST",
    "path": "/uploadstuff",
    "multipart-formdata": [
      {
        "name": "pdfFiles",
        "file": "(string)",
        "filename": "%%changeme%%\\test.pdf",
        "contentType": "application/pdf"
      },
      {
        "name": "uploadRequest",
        "content": {
          "name": "Chris",
          "coolNameYourFriendsGiveYou": "C-Dawg"
        },
        "contentType": "application/json"
      }
    ]
  },
  "http-response": {
    "status": 200,
    "body": "feafaefaf"
  }
}

PdfFile:
test.pdf
Don't forget to update the file path in the interaction
2. Run specmatic in stub mode with the interaction loaded
3. Make a POST request to localhost:9000/uploadstuff of type multipart/form-data
The parts are:

uploadRequest of type json:

{
    "coolNameYourFriendsGiveYou": "C-Dawg",
    "name": "Chris"
}

pdfFiles: contains your test.pdf

Expected behavior
I Expect the response to be of mimetype application/pdf like it's written in the contract.
I Expect valid pdf bytes to be the body of the response
Screenshots
Response mimetype is text/plain:

System Information:

OS & version: Windows 11
Browser & version: Insomnia 2023
Specmatic version: 0.77
JDK version: OpenJDK 17

Additional context
There are multiple ways we could solve these problems:

Add support for externalValue in the responses
At the OpenAPI parsing time (in OpenAPISpecification.kt) set the mimetype to the HttpResponsePattern from the contract and drop using the body value as MimeType source

This was hard to convey, let me know if something is not clear !
I will investigate the possible fixes that i talk about in the additional context. Please tell me what you think about them, how would you go about fixing this / adding this feature?

@aeoncl really appreciate the effort you have put into this detailed explanation. We'll read through it and get back to you.


Binance backfill timeout

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/zenbot
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.

Here's why we have that policy: Zenbot developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies hundreds of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using zenbot vanilla):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
Zenbot version: 4
NodeJS version: 8.9.4
Python version: 2.7.12
Exact command to reproduce: ./zenbot.sh backfill binance.kmd-btc

Describe the problem
Exchange specific issue, the backfilling get stucks (but url in browser works fine)
Source code / logs
xxx@xxxxx:~/zenbot$ ./zenbot.sh backfill binance.kmd-btc

Hitting up the exchange 'binance' for trades within the past 14 days.

Backfilling...
3794 trades processed so far. The most recently processed trade happened 15 hours ago.

Edit : I will upgrade to latest zenbot and keep you informed.

I tried all branches and cannot backfill on Kraken as well, always get a request timeout. I could  backfill to gdax eth-usd though

Don't forget to add --min_periods=xxm to your commands it fixes the backfill timeout !


build(tensorrt_yolox): remove download logic from CMake

Description

See #3137
Depends on https://github.com/autowarefoundation/autoware_common/pull/164
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@wep21 @dan-dnn @manato
this is just a friendly reminder that this PR is not active for more than 1 week.

@esteve
Thank you for the proposal. The code modification itself makes sense to me. Actually, I'm not familiar with the background of this topic, therefore, I'd appreciated it if you answered my question: If this PR is merged, which process will download the models, especially for general autoware users?

@manato thanks for your feedback. The download of models will be moved to ansible scripts (see https://github.com/autowarefoundation/autoware/pull/3375) and also documented for those users who want to do it manually (see https://github.com/autowarefoundation/autoware-documentation/pull/345)

@esteve I understood. Thank you for your explanation. One more question: Is there any default directory where the models are downloaded? (I could not find out it as long as I checked the PRs you kindly shared.) The launch files included in this tensorrt_yolox package expect an argument named model_path, which represent a directory path that contains ONNX (and label) files. If the default directory exists, changing the default value of the model_path would be nice to specify the directory.
(This launcher-related topic might be out-of-scope of this PR. If you would like to treat this launcher-related topic in another PR, let me know freely :) )

@manato in fact we just discussed that in the ASWG :-) We'll have a default folder where artifacts will be downloaded, but the user will be able to override in the command line or changing the launch files. I'll submit a PR with that change and I'd appreciate if I could get your feedback, thanks!

@miursh thank you for your review, unfortunately I need approval from one of the code owners to merge this (ping @wep21 @dan-dnn @manato)


Windows Terminal randomly closes when "RivaTuner Statistics Server" is running (MSI Afterburner + RivaTuner)

Environment
Windows build number: 19041.508
Windows Terminal version (if applicable): 1.3.2382 x64

Any other software?
MSI Afterburner: v<IP_ADDRESS>45
RivaTuner: 1.2.3 (installed with Msi Afterburner)

Log from Event View

Steps to reproduce
Have installed MSI Afterburner with RivaTuner
Open Windows Terminal with some tabs (in my case, using wsl 2 with ssh session in some tabs)
Use for a few moments then terminal closes without any warning
Expected behavior
Windows Terminal running without problems when MSI Afterburner with RivaTuner enabled is running
Actual behavior
Windows Terminal closes without warning randomly

Every time we see a crash here it is attributed to the library RivaTuner injects into every process. We don’t believe there is anything we can do until they fix the library.


feat: OpenAPI extract schema from Object or Array

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1111
#1110
#1109  👈
#1108
#1107
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Cobalt0s and the rest of your teammates on  Graphite


Can't accept completions

I have the plugin installed and configured. I see ghost text followed by "^M" but I do not seem to be able to figure out how to accept the suggestion.
I am running nvim in WSL2 on Windows...

Same problem with "^M". Still didn't fix it


rocm 2.3 vega 64 performance slow on custom RNN

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
The clock speed seems wrong when training on custom RNN:
========================ROCm System Management Interface========================
GPU  Temp   AvgPwr  SCLK    MCLK    Fan    Perf  PwrCap  SCLK OD  MCLK OD  GPU%
0    36.0c  4.0W    852Mhz  167Mhz  29.8%  auto  220.0W  0%       0%       0%
1    29.0c  5.0W    852Mhz  167Mhz  14.9%  auto  220.0W  0%       0%       0%
==============================End of ROCm SMI Log ==============================
Resulting very slow training speed:
Epoch 1/1000
36373/36373 [==============================] - 27s 753us/step
On my thinkpad x1e with 1050ti i get 57us/step
However with tf_benchmark I get normal speed. Did I miss any setup?
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 18.04 LTS
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.13.2
Python version: 3.6.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
ROCm/MIOpen version: 2.3
GPU model and memory: dual vega 64

You can collect some of this information using our environment capture script
You can also obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the current behavior
Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Hi @hongshaojichi , could you provide us steps to repro your observations?
If you have not, please try our docker images:
https://cloud.docker.com/u/rocm/repository/docker/rocm/tensorflow

Hi @hongshaojichi , there's some community feedback that the RNN perf has been improved a bit with ROCm2.4, could you try your application with our latest docker image and see if the concern remains?

I'm closing this issue for now, please feel free to re-open it if there are further updates.


Adapt plugin.json

i've adapted the names/headlines/identifiers for the two different plugins.
@godspeed-you can you have a look if this is how it should look like?

plugin

cloud plugin


CORGI-791 SBOM filter

This adds a no_manifest tag to product_streams which we want to exclude from manifests published on the customer portal. We'll have to update SDEngine to make use of this new product stream tag.
api/v1/product_streams?tags=!no_manifest

@RedHatProductSecurity/corgi-devs please review


onClick of ActionList.LinkItem not getting called

Description
I tried updating dotcom to primer-upgrade-35.16 and noticed that the onClick passed to ActionList.LinkItems no longer gets called when clicking on the item.
Steps to reproduce
<ActionList>
  <ActionList.LinkItem onClick={() => console.log('test')}>
    <ActionList.LeadingVisual>
      <LinkIcon />
    </ActionList.LeadingVisual>
    github/primer
  </ActionList.LinkItem>
</ActionList

Change the ActionList.LinkItem example to this and try clicking the item. The console message does not get printed.
Version
v35.16
Browser
Chrome

@radglob I have a fix here https://github.com/primer/react/pull/2757


bug: url used from shell login creates keys without full access.

This breaks shell dev flow. To repro

navigate to
https://wallet.nearprotocol.com/login/?title=NEAR+Shell&public_key=ed25519%3ADZHfQQ776Uij6Q95xHPf1qndKjRY67xdVcK7wH38uu53

authorize

Check key permissions via
http post https://rpc.nearprotocol.com/ method=query jsonrpc=2.0 params:='["access_key/{accountid}", ""]' id=123

expected result: output should contain appropriate key with full acess
actual: no full access for that key

nearlib fix https://github.com/nearprotocol/nearlib/pull/64


Programming Example: Data Transfer Transpose

This example is based on the DMA Transpose example in mlir-aie.
There are two versions, one that uses channels and one that uses dma_memcpy_nd

@fifield thanks for the review!


Add getresuid() and getresgid() to unistd

@asomers  What should be done with the unrelated test failure?

Looks good, but you'll have to rebase to fix the CI failure on FreeBSD.


Look into turning off ADC, other unused functionality to save power, heat

From http://forcetronic.blogspot.ca/2014/11/reducing-arduinos-power-consumption_30.html
*************************Arduino Code***********************************
/* This Arduino Sketch is part of a tutorial on the ForceTronics YouTube Channel and demonstrates how to use the
Power Reduction Registers (PRR). It is free and open for anybody to use at their own risk.
*/

#include <avr/power.h>

 /* Power Reduction Register (PRR) functions from avr/power.h library.
 For every disable function there is an enable function
  power_adc_disable() or power_adc_enable()
  power_spi_disable() or power_spi_enable()
  power_timer0_disable() or power_timer0_enable()
  power_timer1_disable() or power_timer1_enable()
  power_timer2_disable() or power_timer2_enable()
  power_twi_disable() or power_twi_enable()
  power_all_enable() or power_all_disable()

  Note that for max power efficiency you should also disable the rest of the module for ADC and SPI
   SPCR = 0; //disable SPI
   ADCSRA = 0;  // disable ADC
  */

void setup() {
  delay(6000); //Delay to see normal power level first
  ADCSRA = 0;  // disable ADC by setting ADCSRA register to 0
  power_adc_disable(); //disable the clock to the ADC module
  delay(4000); //delay to see just ADC off power level
  SPCR = 0; //disable SPI by setting SPCR register to 0
  power_spi_disable(); //disable the clock to the SPI module
  delay(4000); //delay to see just ADC and SPI off power level
  power_all_disable();
}

void loop() {
  // put your main code here, to run repeatedly:
}

See also http://www.nongnu.org/avr-libc/user-manual/group__avr__power.html

And this, good info on ADC disabling http://www.gammon.com.au/power


Flutter doctor gives a strange error

Running flutter doctor inside IntelliJ IDEA leads to doctor check crash:
/home/micrcx/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 2.10.3, on Linux Mint 20.3 5.4.0-104-generic, locale en_IL)
    • Flutter version 2.10.3 at /home/micrcx/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (3 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /home/micrcx/Android/Sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /home/micrcx/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /home/micrcx/android-studio
    • Flutter plugin version 64.1.2
    • Dart plugin version 211.7798
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] VS Code (version 1.65.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.36.0

[✓] Connected device (2 available)
    • M2102J20SG (mobile) • 664a21fb • android-arm64  • Android 12 (API 31)
    • Chrome (web)        • chrome   • web-javascript • Google Chrome 97.0.4692.71

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
Process finished with exit code 0

duplicate of https://github.com/flutter/flutter/issues/94675 and https://github.com/flutter/flutter/issues/94940

Hi @micrcx, Thanks for filing the issue. This issue is fixed on the master channel and the fix should be available on the stable channel in the upcoming stable release. This was previously filed here https://github.com/flutter/flutter/issues/94060.
You may get the fix before the release by switching to the latest master channel by running.
flutter channel master
flutter upgrade

If you still encounter this crash on the latest master channel, do let us know by filing a new issue or leaving a comment below.
Closing as the duplicate of the linked issue above.


Python: allow openapi runner to use a custom client

Motivation and Context
A custom client was used to get the openapi spec but it wasn't passed down into the openapi runner.

Description
Pass the custom client into the open api runner if desired. Fix param parsing and samples.

Contribution Checklist

[X] The code builds clean without any errors or warnings
[X] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[X] All unit tests pass, and I have added new tests where possible
[X] I didn't break anyone :smile:

Python 3.10 Test Coverage Report • FileStmtsMissCoverMissingsemantic_kernel/connectors/openapi_plugin   openapi_function_execution_parameters.py23196%33   openapi_manager.py1411589%15, 61–74, 104, 145, 150, 280, 350–363TOTAL587693484%
Python 3.10 Unit Test Overview

Tests
Skipped
Failures
Errors
Time

1287
1 :zzz:
0 :x:
0 :fire:
14.858s :stopwatch:


First python project for class--- could someone please help me understand?- exif data using python

Here are the instructions and at the bottom is exp-11's script. I have no idea what to do. VERY new to programming.. thank you ahead of time!
Using the Exp-11.py script provide as a baseline your assignment is as follows:

Allow the user to enter a path

Using that path, process all the .jpg files contained in that folder  (note you will need to create a directory with jpg images)

Extract, EXIF data from each of the images and create a pretty table output.  Note, you will go beyond the basics and extract whatever camera or photo data exists for each photo.

Plot the geolocation of each image on a map.

(Note, there are several ways to do this)  However, the easiest method would be to use MapMaker App, at https://mapmakerapp.com/
you can either manually enter the lat/long values your code generates or you can place your results in a CSV file and upload the data to the map.
NOTE, this is a manual step process

Submit both your script and a screenshot of the results.

'''
EXIF Data Acquistion
January 2019
Version 1.1
'''
from future import print_function
'''
Copyright (c) 2019 Chet Hosmer, Python Forensics
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
'''
Usage Example:
python Exp-11.py

Requirement: Python 2.x or 3.x

Requirement: 3rd Party Library that is utilized is: PILLOW
pip install PILLOW  from the command line
''' LIBRARY IMPORT SECTION '''
import os                       # Python Standard Library : Operating System Methods
import sys                      # Python Standard Library : System Methods
from datetime import datetime   # Python Standard Libary datetime method from Standard Library
import the Python Image Library
along with TAGS and GPS related TAGS
Note you must install the PILLOW Module
pip install PILLOW
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
import the prettytable library
from prettytable import PrettyTable
def ExtractGPSDictionary(fileName):
''' Function to Extract GPS Dictionary '''
try:
pilImage = Image.open(fileName)
exifData = pilImage._getexif()
except Exception:
    # If exception occurs from PIL processing
    # Report the
    return None, None

# Interate through the exifData
# Searching for GPS Tags

imageTimeStamp = "NA"
cameraModel = "NA"
cameraMake = "NA"
gpsData = False

gpsDictionary = {}

if exifData:

    for tag, theValue in exifData.items():

        # obtain the tag
        tagValue = TAGS.get(tag, tag)

        # Collect basic image data if available

        if tagValue == 'DateTimeOriginal':
            imageTimeStamp = exifData.get(tag).strip()

        if tagValue == "Make":
            cameraMake = exifData.get(tag).strip()

        if tagValue == 'Model':
            cameraModel = exifData.get(tag).strip()

        # check the tag for GPS
        if tagValue == "GPSInfo":

            gpsData = True;

            # Found it !
            # Now create a Dictionary to hold the GPS Data

            # Loop through the GPS Information
            for curTag in theValue:
                gpsTag = GPSTAGS.get(curTag, curTag)
                gpsDictionary[gpsTag] = theValue[curTag]

    basicExifData = [imageTimeStamp, cameraMake, cameraModel]

    return gpsDictionary, basicExifData

else:
    return None, None

End ExtractGPSDictionary ============================
def ExtractLatLon(gps):
''' Function to Extract Lattitude and Longitude Values '''
# to perform the calcuation we need at least
# lat, lon, latRef and lonRef

try:
    latitude     = gps["GPSLatitude"]
    latitudeRef  = gps["GPSLatitudeRef"]
    longitude    = gps["GPSLongitude"]
    longitudeRef = gps["GPSLongitudeRef"]

    lat = ConvertToDegrees(latitude)
    lon = ConvertToDegrees(longitude)

    # Check Latitude Reference
    # If South of the Equator then lat value is negative

    if latitudeRef == "S":
        lat = 0 - lat

    # Check Longitude Reference
    # If West of the Prime Meridian in
    # Greenwich then the Longitude value is negative

    if longitudeRef == "W":
        lon = 0- lon

    gpsCoor = {"Lat": lat, "LatRef":latitudeRef, "Lon": lon, "LonRef": longitudeRef}

    return gpsCoor

except:
    return None

End Extract Lat Lon ==============================================
def ConvertToDegrees(gpsCoordinate):
''' Function to CONVERT GPS COORIDINATES TO DEGRESS '''
d0 = gpsCoordinate[0][0]
d1 = gpsCoordinate[0][1]
try:
degrees = float(d0) / float(d1)
except:
degrees = 0.0
m0 = gpsCoordinate[1][0]
m1 = gpsCoordinate[1][1]
try:
    minutes = float(m0) / float(m1)
except:
    minutes=0.0

s0 = gpsCoordinate[2][0]
s1 = gpsCoordinate[2][1]
try:
    seconds = float(s0) / float(s1)
except:
    seconds = 0.0

floatCoordinate = float (degrees + (minutes / 60.0) + (seconds / 3600.0))

return floatCoordinate

''' MAIN PROGRAM ENTRY SECTION '''
if name == "main":
'''
pyExif Main Entry Point
'''
print("\nExtract EXIF Data from JPEG Files")
print("Script Started", str(datetime.now()))
print()

''' PROCESS EACH JPEG FILE SECTION '''

latLonList = []
targetFile = "test.jpg"                 # file must be located in the same folder
if os.path.isfile(targetFile):
    gpsDictionary, exifList = ExtractGPSDictionary(targetFile)

    if exifList:
        TS = exifList[0]
        MAKE = exifList[1]
        MODEL = exifList[2]
    else:
        TS = 'NA'
        MAKE = 'NA'
        MODEL = 'NA'

    print("Photo Details")
    print("-------------")
    print("TimeStamp:    ", TS)
    print("Camera Make:  ", MAKE)
    print("Camera Model: ", MODEL)

    if (gpsDictionary != None):

        # Obtain the Lat Lon values from the gpsDictionary
        # Converted to degrees
        # The return value is a dictionary key value pairs

        dCoor = ExtractLatLon(gpsDictionary)

        print("\nGeo-Location Data")
        print("-----------------")

        if dCoor:
            lat = dCoor.get("Lat")
            latRef = dCoor.get("LatRef")
            lon = dCoor.get("Lon")
            lonRef = dCoor.get("LonRef")

            if ( lat and lon and latRef and lonRef):
                print("Lattitude: ", '{:4.4f}'.format(lat))
                print("Longitude: ", '{:4.4f}'.format(lon))
            else:
                print("WARNING No GPS EXIF Data")
        else:
            print("WARNING No GPS EXIF Data")
    else:
        print("WARNING", " not a valid file", targetFile)

# Create Result Table Display using PrettyTable
''' GENERATE RESULTS TABLE SECTION'''

''' Result Table Heading'''
resultTable = PrettyTable(['File-Name', 'Lat','Lon', 'TimeStamp', 'Make', 'Model'])
''' Your work starts here '''

print()

@rcizzle94 This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.


initial test result converter interface

Appreciate the comments 👍
Could you include them (most of them) in the go files too?

I would prefer this workflow:

Make a POST request with all the related info of the test report and get the upload URLs as a response.
Upload all the things.
Make a PATCH request indicating that all the things were uploaded.

Some additional notes:

I would prefer having the XML as an uploaded file too.
I would prefer having the filename as unique (you can include the path in the filename if needed.)

(You have to include the auth token in the header, the same one the FTL step uses.)

POST http://localhost:5000/test/apps/<app_slug>/builds/<build_slug>/test_reports
{
  "filename": "junit.xml",
  "filesize":3423423,
  "step": {
    // step info (I'm not sure what goes here.)
  },
  "assets": [
    {
      "filename":"img1.jpg", // this should be unique across assets in this test_report
      "filesize":3423
    },
    {
      "filename":"img2.jpg",
      "filesize":3423
    }
  ]
}

response 201 OK
{
  "id": "98b44204-e337-4d5e-8848-e8a44015f131",
  "filename": "junit.xml",
  "upload_url": "https://storage.googleapis.com/..."
  "assets": [
    {
      "filename":"img1.jpg",
      "upload_url":"https://storage.googleapis.com/..."
    },
    {
      "filename":"img2.jpg",
      "upload_url":"https://storage.googleapis.com/..."
    }
  ]
}

// Upload all the things to Google bucket

PATCH http://localhost:5000/test/apps/<app_slug>/builds/<build_slug>/test_reports/98b44204-e337-4d5e-8848-e8a44015f131
{"uploaded":true}

response 200 OK

move the test to the appropriate converter package and use golden files: https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3
test_test.go file has 14015 lines

This PR needs to be updated to not only upload images from the root but recursively look for images.


Browser freezes completely when loading specific IFC

Hello,
I have an issue with multiple IFC files.
The problem is that the browser tab freezes. The performance monitor shows 100% of the CPU is used.
The tab stops responding ,and it takes about 10 sec to close it.
I can share only one of these files in public:
The file is only 8Mo : https://we.tl/t-VKhSIq527a
I have already done some tests to make it work on ifcjs. The method I found for the moment is to remove some IFCPOLYLOOP by editing the file by hand, but the model looks like nothing anymore.
I am using "web-ifc-three": "^0.0.117" and "three": "^0.135.0".
I reproduce the problem on your "hello world" application on this page : https://ifcjs.github.io/hello-world/examples/web-ifc-three/helloworld/
In the console, I can see :
"web-ifc: 0.0.34 threading: 0"
"No basis found for brep!"
"unexpected style type"
I am using Google Chrome.
Don't hesitate to ask if I can help you in any way.

Your model's url expired. Please share a new URL


Extension is disabled

The extension is disabled on my browser with the message "This extension is not listed in the Web Store and may have been added without your knowledge. Learn more"

I just turned the extension on again manually and its working again. There is a toggle on chromes extension pages.

Please uninstall any extensions you got from here. Instead, use Tampermonkey and follow the instructions in the new repo, as this repo is no longer updated: https://github.com/LibreScore/dl-librescore

Extension support could be re-added in the future, in the new repo.

This was 2 years ago😭 i found my own fixes oops but thanks for updating


CLDC-2531: Update application dockerfiles

The previous Dockerfiles in the codebase were dated and not used very much
We've created one multi-stage Dockerfile for all env's and updated the Dockerfile definition where necessary (e.g. removing unnecessary Docker commands)
We've also updated the Docker compose to target the development "stage" and also to target a specific platform to avoid an issue around building on Mac ARM64 architecture (Mac users with M chips will see this if it not set)

Pipeline has a test failure, which can't be caused by these changes, but maybe just check you're up to date with latest main and that the pipeline succeeds?
 1) SalesLogsController GET when displaying a collection of logs when the user is a customer support user when filtering with bulk_upload_id filter with bulk upload that belongs to current user returns logs only associated with the bulk upload
     Failure/Error: expect(page).not_to have_content(excluded_log.id)
       expected `#<Capybara::Node::Simple tag="" path="/">.has_content?(331)` to be falsey, got true
     # ./spec/requests/sales_logs_controller_spec.rb:366:in `block (8 levels) in <top (required)>'

Even if you're not yet pushing the image to ECR, you should still get GitHub actions to check the image builds. As part of the "staging pipeline"? And it looks like you install firefox etc in the dev image. So could the pipeline build the dev image, run tests within the image, then check the prod image builds?

We've rebased and saw the test did fail on the first run, however we re-ran them and they passed (as sometimes happens with the CORE application tests)
We have this ticket for updating the pipelines to build the image etc at a later point in time so won't do this now 😃


stable 7.2.0 and dev 7.3.1

Update swi-prolog to stable version 7.2.0 and development version 7.3.1
Change from sha1 to sha256
Temporarily comment out bottle as there is no existing bottle for 7.2.0

Temporarily comment out bottle as there is no existing bottle for 7.2.0

You can leave this as it was. It'll be automatically updated when I pull it later.

@DomT4 OK, will fix it.


Add and correct @throws in PHPDoc.

This PR adds and corrects @throws in PHPDoc.

I think it's fine without all these doc blocks.

@taylorotwell Sure, not a problem. Thanks.


[BUG] No 409 Conflict Returned On Posting Sub Model Reference Again (AAS REPO)

Describe the bug
In this method, no 409 conflict is returned (or an exception thrown) when adding a submodel reference if the reference already exists. However, the OpenAPI description specifies this error code. When removing, only the first occurrence of the reference is removed. So if the reference is added multiple times, we should probably remove all references.
Based on the OpenAPI description, I would assume that multiple references are not intended to be allowed, as the status code 409 suggests that duplicate entries should not be permitted.
To Reproduce

Deploy the reference multiple times
Get the shell and check for the submodels.

Expected behavior

In my opinion, the expected behavior would be to return 409

BaSyx (please complete the following information):

BaSyx Version [v2.0]
BaSyx SDK [Java]
AAS Version [DotAAS V3]

Screenshots
Used Asset Administration files (.aasx/.json/.xml)
Shell:
       {
                "modelType": "AssetAdministrationShell",
                "assetInformation": {
                    "assetKind": "Instance",
                    "globalAssetId": "https://acplt.org/Test_Asset"
                },
                "submodels": [
                    {
                        "keys": [
                            {
                                "type": "Submodel",
                                "value": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
                            }
                        ],
                        "type": "ExternalReference"
                    }
                ],
                "id": "https://acplt.org/Test_AssetAdministrationShell",
                "idShort": "TestAssetAdministrationShell"
            }

Additional submodel reference (already existing):
                 {
                        "keys": [
                            {
                                "type": "Submodel",
                                "value": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
                            }
                        ],
                        "type": "ExternalReference"
                    }

System (please complete the following information):

OS: Docker(Windows)
CPU architecture:  x86

Hi @geso02, thank you for reporting this. Same Bug was already found in #373 and get's fixed with #388.


Installation raises error command "g++" failed with exit status 1

I've already installed poppler and pkg-config but when i run pip install pdftotext this error pops up. I am also using anaconda and installed poppler using conda but the same error still pops up:

ERROR: Command errored out with exit status 1:

 command: /Users/zoepa/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-install-duf1kchr/pdftotext/setup.py'"'"'; __file__='"'"'/private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-install-duf1kchr/pdftotext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-record-_x5g36d8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/zoepa/anaconda3/include/python3.7m/pdftotext
     cwd: /private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-install-duf1kchr/pdftotext/
Complete output (13 lines):
running install
running build
running build_ext
building 'pdftotext' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/zoepa/anaconda3/include -arch x86_64 -I/Users/zoepa/anaconda3/include -arch x86_64 -DPOPPLER_CPP_AT_LEAST_0_30_0=1 -I/usr/local/include -I/Users/zoepa/anaconda3/include/python3.7m -c pdftotext.cpp -o build/temp.macosx-10.7-x86_64-3.7/pdftotext.o -Wall -mmacosx-version-min=10.9 -std=c++11
creating build/lib.macosx-10.7-x86_64-3.7
g++ -bundle -undefined dynamic_lookup -L/Users/zoepa/anaconda3/lib -arch x86_64 -L/Users/zoepa/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/pdftotext.o -L/usr/local/lib -lpoppler-cpp -o build/lib.macosx-10.7-x86_64-3.7/pdftotext.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1

command: errored out with exit status 1: /Users/zoepa/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-install-duf1kchr/pdftotext/setup.py'"'"'; file='"'"'/private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-install-duf1kchr/pdftotext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/sk/yr8zpzq149b2nph5x2r8gn480000gn/T/pip-record-_x5g36d8/install-record.txt --single-version-externally-managed --compile --install-headers /Users/zoepa/anaconda3/include/python3.7m/pdftotext Check the logs for full command output.`

Hmm! Thought I already fixed this issue. Can you try again like this and let me know if it changes anything?
export MACOSX_DEPLOYMENT_TARGET=10.9
pip install pdftotext

Thank you seems to work now

Great, thanks! I thought I had fixed this by passing -mmacosx-version-min=10.9 to the compile stage, but maybe I have to pass it to the link stage as well.

I had the same issue and
export MACOSX_DEPLOYMENT_TARGET=10.9 pip install pdftotext
solved it

Thanks for confirming! Unfortunately I don't own any macs, and my current CI system doesn't have macOS Catalina. I'm going to look at setting up CI in Azure, which does have Catalina. Then I should be able to put in a fix.

Please don't close issues that I clearly stated I plan to work on.

Oh so sorry my bad

Just pushed a release, version 2.1.5, with this fixed, as far as I can tell. Works in every combination of macOS / python / conda that I could set up in CI: https://dev.azure.com/jalanpalmer/jalanpalmer/_build/results?buildId=29


Add removeLabel support

I just added it!

see: https://github.com/primefaces/primelocale/pull/179


ResultSet.getBytes(): Return strings in UTF-8

Fixes issue https://github.com/xerial/sqlite-jdbc/issues/78

I recommend pull request #84 instead of this one.


Update: Fix typos and add optional error field to InputProps

Ran into this flow error when implementing a form using redux-form...

Adding error as an optional field to InputProps fixes the issue and is consistent with the Redux Form API (http://redux-form.com/5.2.3/#/api/props?_k=dqnjtt). Also fixed a couple typos :)

👍

Thanks!


Replace with correct path in nested state

Details

When we replace a relative path URL in a nested state and it becomes inconsistent with the browser history path, the browser history goes back once more, inserting a relative path in the URL and deforming it. This PR fixes it.
Fixed Issues

$ https://github.com/Expensify/App/issues/49854
PROPOSAL: https://github.com/Expensify/App/issues/49854#issuecomment-2395128842
Tests

1.	Log on to ND.
2.	Create a workspace if one does not already exist.
3.	Click on “Settings” in the bottom tab bar > “Workspaces” > Click on a workspace > “Members.”
4.	Click the browser/device back button.
5.	Click on “Members” again.
6.	Click the browser/device back button again.
7.	Verify that the “Not found” page does not appear and it correctly navigates to the workspace’s initial page.

[x] Verify that no errors appear in the JS console

Offline tests

1.	Log on to ND.
2.	Create a workspace if one does not already exist.
3.      Go offline.
4.	Click on “Settings” in the bottom tab bar > “Workspaces” > Click on a workspace > “Members.”
5.	Click the browser/device back button.
6.	Click on “Members” again.
7.	Click the browser/device back button again.
8.	Verify that the “Not found” page does not appear and it correctly navigates to the workspace’s initial page.

QA Steps

1.	Log on to ND.
2.	Create a workspace if one does not already exist.
3.	Click on “Settings” in the bottom tab bar > “Workspaces” > Click on a workspace > “Members.”
4.	Click the browser/device back button.
5.	Click on “Members” again.
6.	Click the browser/device back button again.
7.	Verify that the “Not found” page does not appear and it correctly navigates to the workspace’s initial page.

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed): Already an issue created.
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/user-attachments/assets/a95e4012-c2b2-437a-ad46-5f6829fac827

Android: mWeb Chrome
https://github.com/user-attachments/assets/b15100b4-da76-4826-8b8f-491c2715b24e

iOS: Native
https://github.com/user-attachments/assets/d23c8501-d28d-4594-8fb2-d395ded7d8f0

iOS: mWeb Safari
https://github.com/user-attachments/assets/c4860d6c-d04c-4da7-bca6-9b27a8a4ed9a

MacOS: Chrome / Safari
https://github.com/user-attachments/assets/6339d392-f0a2-46e7-9fc5-f11d0199a5a3
https://github.com/user-attachments/assets/5133ed19-144d-43f2-9c63-4dbd9dfa44bd

MacOS: Desktop
https://github.com/user-attachments/assets/c765c1d4-934b-487b-b28c-27d2b39385cf
https://github.com/user-attachments/assets/2b5644ab-ea2f-4a28-bf55-eb5f5dc8669e

The checks were passing and the author PR checklist is completed. Removing the Emergency label

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.


Include Ruby 3 and node 18 to CI workflows

Currently, we only run CI with ruby 2.7 and node: 14.
Besides the fact Node 14 is not supported anymore, we need to ensure the gem works with the recent version of Ruby and Node.
MY proposal:

ruby: [2.7, 3.2]
node: [16, 18]

@justin808 @Judahmeek

Sounds good to me.
Regressions regarding Ruby or Node compatibility are rare (since it usually requires using syntax or a module that is only supported by the latest version), but Github is paying for CI, so we might as well take advantage of it. 👍

yes, please update


thread::yield_now() does not yield

This causes WDT timeout on ESP32.
thread::Builder::new()
    .name("yield".to_string())
    .spawn(move || loop {
        std::thread::yield_now();

        // also does not work
        // unsafe { esp_idf_sys::vTaskDelay(0) };

        // but this works
        // unsafe { esp_idf_sys::vTaskDelay(1) };
    })
    .unwrap();

It is somewhat related to https://github.com/esp-rs/esp-idf-sys/issues/66

Excellent point. I will close it.


Gate tests (and eventually code) by target nearcore version range

@vgrichina has this been addressed?

@chadoh some of the tests do it https://github.com/near/near-api-js/blob/0e9e2c76d39ac1a3be4159a3e16a3bbc96857cf5/test/account.test.js#L71
Make sense to extract it into some utility module though to make it easy to use in any test.

Hi @vgrichina, I'm currently conducting a clean-up on the issues of NAJ. From my perspective, this issue seems no longer relevant. Please let me know if that's not the case; otherwise, I'll proceed to close the issue in 5 days.

Closing as issue isn't relevant anymore.


llama-cpp: object file has no dynamic section

LocalAI version:
v2.19.2 and v2.19.3 (v2.19.1 is fine)
Environment, CPU architecture, OS, and Version:
Ubuntu 22.04, amd64
Describe the bug
Error below:
DBG GRPC(Meta-Llama-3-8B-Instruct.Q4_K_M.gguf-<IP_ADDRESS>:44439): stderr /tmp/localai/backend_data/backend-assets/grpc/llama-cpp-avx2: error while loading shared libraries: /tmp/localai/backend_data/backend-assets/grpc/llama-cpp-avx2: object file has no dynamic section
To Reproduce
./local-ai --debug --config-file test.yaml
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{     "model": "llama-3-8b-instruct",     "messages": [{"role": "user", "content": "hello"}]   }'
- name: llama-3-8b-instruct
  backend: llama
  parameters:
    model: Meta-Llama-3-8B-Instruct.Q4_K_M.gguf
  context_size: 8192
  # cut for brevity

Expected behavior
Should work as expected, like in v2.19.1
Logs
see above
Additional context

mh. that sounds weird. Is that the binary only? Might be glibc - or either probably caused by: https://github.com/mudler/LocalAI/pull/2947

probably related: https://bugzilla.redhat.com/show_bug.cgi?id=1381315


Issue: Implementing 'Hero' Section Using PrimeReact

Summary:
The goal of this issue is to develop a captivating 'Hero' section for our salon website using PrimeReact components. This section should be visually striking, convey the core message of the salon, and engage visitors immediately upon landing on the website.
Objectives:

Select Suitable PrimeReact Components: Identify and choose PrimeReact components that are best suited for creating an engaging 'Hero' section (e.g., Carousel, Galleria).
Design and Layout: Design the 'Hero' section to be visually appealing, incorporating elements like high-quality images, engaging text, and call-to-action (CTA) buttons.
Content Development: Create compelling content for the 'Hero' section, including headlines, subtext, and CTAs that align with the salon's branding and messaging.
Responsive Design: Ensure that the 'Hero' section is fully responsive and looks great on various devices and screen sizes.
Interactivity and Animation: Implement interactive elements or animations to make the 'Hero' section more dynamic and engaging.
SEO Optimization: Optimize the 'Hero' section for search engines, including alt tags for images and appropriate meta tags.
Testing for Functionality and Design: Thoroughly test the 'Hero' section for functionality, responsiveness, and visual appeal.

Acceptance Criteria:

Effective Component Use: PrimeReact components selected are effectively integrated into the 'Hero' section.
Aesthetic Appeal: The section is visually striking and aligns with the website’s overall design theme.
Engaging Content: The content is compelling, clearly conveys the salon's message, and encourages visitor engagement.
Responsive Design: The section is fully responsive and provides a seamless experience across different devices.
Interactive Elements: Any interactive features or animations function smoothly and enhance user engagement.
SEO Effectiveness: The section is optimized for search engines, improving the site’s visibility.
Successful Testing: The 'Hero' section passes all tests for design integrity, functionality, and user experience.

Deadline:

The development of the 'Hero' section is expected to be completed by December 15th.

Additional Notes:

Specific preferences for imagery, color schemes, or typography in the 'Hero' section should be mentioned.
If there are particular animations or interactive features desired, please specify.

The hero section has been closed on the previous pull request


I have some questions

Hello,
I hava two questions and I hope you can help me.
The First question
how to use "using Assest Scripts",when I  use it,ide tell me it is wrong
the second queston
when I write "Public SlingshotState slingshotstate",it tells me there are not Slingshotstate

Any screen shots or context?
Отправлено с iPhone

24 марта 2018 г., в 7:13, ClearSoulgx<EMAIL_ADDRESS>написал(а):
Hello,
I hava two questions and I hope you can help me.
The First question
how to use "using Assest Scripts",when I use it,ide tell me it is wrong
the second queston
when I write "Public SlingshotState slingshotstate",it tells me there are not Slingshotstate
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Did you fix your issues? I'm closing this for now, feel free to re-open


Is the STRING_LITERAL lexer rule incomplete in the tutorial?

Hello,
I am currently writing a JavaCC Netbeans module. I used the official JavaCC grammar on your homepage.
I think that the STRING_LITERAL
<STRING_LITERAL: """ (~[""","\","\n","\r"] | "\" (["n","t","b","r","f","\","'","""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"]))* """>
is incomplete. When my module highlights the tokens, unicode charaters "\uxxxx" are not identified correctly. I think, there is a 'u' missing in the token rule. I thinks it should be like this...
<STRING_LITERAL: """ (~[""","\","\n","\r"] | "\" (["n","t","b","r","f","u","\","'","""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"]))* """>
Thanks.

Hello @netcrystals ,
JavaCC uses the JAVA_UNICODE_ESCAPE = true option, so appearances of Uuicode escapes \u#### are preprocessed by JavaCharStream and therefore do not appear in the grammar.