GORM sometimes returns ErrRecordNotFound when the context is cancelled

GORM Playground Link

https://github.com/go-gorm/playground/pull/311
Description
I've only tested it with MySQL. This is an example.
❯ env GORM_DIALECT=mysql go test -race -count=1 -v ./...
2021/04/07 13:39:04 testing mysql...
=== RUN   TestGORM
[mysql] 2021/04/07 13:39:05 connection.go:151: invalid connection
[mysql] 2021/04/07 13:39:05 connection.go:371: invalid connection
[mysql] 2021/04/07 13:39:06 connection.go:371: invalid connection
    main_test.go:67: missing related record
    main_test.go:67: record not found
    main_test.go:67: missing related record
    main_test.go:67: record not found
--- FAIL: TestGORM (1.05s)
FAIL
FAIL    gorm.io/playground      1.990s
FAIL

I'm not sure why I get these connection errors, but they should not be related to this issue. I don't have such errors in the real application.
I would expect GORM to always return context.Canceled when the context is cancelled. In the real application, this is checked using errors.Is(err, context.Canceled). There are no strings.HasSuffix checks, like in the pull request.
I'm not sure if this expectation is correct, but I would not expect it to return ErrRecordNotFound, because the record does exist.

Thank you for the quick fix.


templates: optimize RAG Performance using Intel Gaudi Accelerator

Description:
This template utilizes Chroma and TGI (Text Generation Inference) to execute RAG on the Intel Gaudi Accelerator. It serves as a demonstration for users, illustrating the deployment of the RAG service on the Intel Gaudi Accelerator and showcasing the resulting performance enhancements.
Issue:
None
Dependencies:
The template contains the poetry project requirements to run this template.

@efriis Please help review and let us know your comments. Thanks.

Hi @efriis, we wanted to check the issues reported by Vercel. Unfortunately, it seems the log is not available even we registered the account. Could you please share some notes on how to get the Vercel logs?

Here's the broken link error!

Hey team - I don't think this makes sense as an official LangChain Template because it needs to run on specific hardware that most people will not be using to get started with LangChain. If you want to host it in a separate repo, you can recommend people install it with the CLI using the following command
langchain app new my-app
cd my-app
langchain app add --repo=githubhandle/githubrepo


fix: add field filtering based on query parameters for search.json

related to https://github.com/nuxt/devtools/pull/681

I'm not sure this should be here @arashsheyda
As this file is pre-rendered at build time.

@Atinux oh okay, thanks

Filter afterward might reduce memory usage yes @arashsheyda


[FEATURE]: Add a way to edit added contribution

Would you like to have a new feature? Please describe.
Hi. First of all, awesome project & idea! Great work! 🎉
It would be pretty nice to add an "edit" button for contributions added by manual way.
(more informations - other sections of this Issue *)
-- Steps --
Log in to the: https://24pullrequests.com/
Click Dashboard or type in your browser:
https://24pullrequests.com/dashboard
Fill the fields below the message: "Have you made a contribution to an open source project that isn't a pull request? Record it here instead". Click "Record your contribution" button.
Scroll down to "Your Contributions" section.
Initial suggested place:
https://24pullrequests.com/dashboard
"Your Contributions" (there is quite a lot of empty space on the right side)

How would this feature be beneficial for the project
It could improve users' entered data & be a more comfortable.
Additional context
Referring to the "24 Pull Requests in 2018":
https://24pullrequests.com/2018
We are able to record every kind of contribution that makes to Open Source (not just pull requests).
That's pretty cool!
But at this moment, if someone will add a contribution by this way and will make a mistake about the date for instance, can't improve this (change for correct one). Moreover, I can't see at this moment any kind of edit (what about the entered typos or broken links).
Best wishes,
Michal

I was just coming here to suggest the same thing. I can tackle it for tomorrow's PR!

Hi @emclaughlin1215 Thanks for your message, sounds great! 🎉


AppVeyor has beta.2 while NuGet has beta.3

The title says it all. Why is AppVeyor behind NuGet?

So, I have to fix this some day. Won't be very soon. Closing for now.


loading: false, error: undefined, value: undefined when using useDocument

Thanks to #10, we are now able to do:
  const { initialising, user } = useAuthState(auth);
  const { loading, error, value } = useDocumentOnce(
    user ? db.doc(`users/${user.email}`) : null
  );

The problem is that if the user exists then a document reference is sent but useDocumentOnce returns { loading: false, error: undefined, value: undefined }. I was under the assumption that once loading is false, the value should be the DocumentSnapshot. It looks like this was caused by 01e8616628d4692177cca6775051ecd6a92ede0a because calling setValue(undefined) ends up setting the loading value to false.
I'm not sure if the best fix is to change the useLoadingValue's reducer to check the value before setting loading to false or if instead it shouldn't call setValue(undefined) if the value is already undefined.

@fastest963 I'm struggling to reproduce this.
setValue(undefined) will only ever be called when there is no document reference sent to useDocumentOnce.
When a document reference is specified then the state is reset and loading is set to true until a response is received from Firestore, at which point the DocumentSnapshot will be set as the value.
My test case for this is as follows, which tests by cycling through two different document references and a null reference:
const FirestoreDocument = () => {
    const [ path, setPath ] = useState('hooks/nBShXiRGFAhuiPfBaGpt');
    const ref = path ? firebase.firestore().doc(path) : null;
    const { error, loading, value } = useDocumentOnce(ref);

    const togglePath = () => {
        setPath(prevState => prevState === 'hooks/nBShXiRGFAhuiPfBaGpt' ? 'hooks2/32ofSNdNtGL487vpSpZZ' : prevState === 'hooks2/32ofSNdNtGL487vpSpZZ' ? null : 'hooks/nBShXiRGFAhuiPfBaGpt');
    }

    return (

                {error && Document Error: {error}}
                {loading && Document: Loading...}
                {!loading && (

                        Document: {value ? JSON.stringify(value.data()) : 'undefined'}

                )}

                <button onClick={togglePath}>Toggle Path</button>

    );
}

@chrisbianca interesting. I assume this is some sort of race condition then. If I add a breakpoint and am able to step through the stack, is there anything that would help you identify how it's happening?

So I've just been doing some digging, and it looks like there is an extra render cycle which is causing what you're seeing. In my example above, I've added some logging, which produces the following when switching from null to a proper doc reference:
// Loaded state with `null` document reference
Time:<PHONE_NUMBER>875; Error: undefined; Loading: false; Value: undefined
 // Click button to switch to document
Toggle: hooks/nBShXiRGFAhuiPfBaGpt
// Previous state is rendered again once
Time:<PHONE_NUMBER>511; Error: undefined; Loading: false; Value: undefined
// New loading state is rendered
Time:<PHONE_NUMBER>514; Error: undefined; Loading: true; Value: undefined
// Document has loaded
Time:<PHONE_NUMBER>877; Error: undefined; Loading: false; Value: [object Object]

As I understand it, the reason for this is that toggling the button calls setState which triggers a render. It is only on this render that the firebase hook can update the document reference, hence why there is a repeat render of the "old" state.
In essence this shouldn't cause an issue, but it's not ideal.  I'll do some reading / digging to see if there's a better way to workaround this sort of issue when chaining hooks together.

@chrisbianca I might have found a solution for this issue
https://github.com/CSFrequency/react-firebase-hooks/pull/55
I don't think it is correct to call setValue in the hooks when no value is present, a reset sounds more logical and solves the loading state switching to loaded.

Hey all. I'd like to reopen this issue as it is still causing some grief for me. The basic flow is:
const {userId} = useContext(UserContext);
const [profile, loading, error] = useDocumentData(userId ? firestore().collection('profiles').doc(userId) : null);
console.log(userId, profile, loading, error);

Assuming the userId starts off as undefined as it is loaded in context, you get the following console.log:
1. undefined, undefined, false, undefined
2. 'fxxxxxx01', undefined, false, undefined
3. 'fxxxxxx01', undefined, true, undefined
4. 'fxxxxxx01', {documentData}, false, undefined

The problem is number 3. causes issues downstream, because I might want to take a case where the profile hasn't yet been setup by the user, but it's impossible to check between that state (where the console.log would look like 'fxxxxxx01', undefined, false, undefined) and number 3. which will happen everytime I check - I've actually resorted to a debounce hook 😱

I also seem to be getting the same issue described by @royletron
uid is initially undefined, and a value is then loaded/set via context
 const data = (uid: string) => {   const [value, loading, error] = useDocumentData(    uid ? db().collection(uid).doc("doc") : null   );
My current solution is the following
 const data = (uid: string) => {   const [value, loading, error] = useDocumentData(    uid ? db().collection(uid).doc("doc") : db().collection("FAKE_VALUE_NOT_EXISTING_IN_DB").doc("doc")   );
Passing any reference seems to set the loading state correctly. Not sure if i am potentially causing other issues but seems to work for now


Adding an empty alt attribute for accessibility validation

Accessibility validation tools will report an error because the zoomed image created does not contain a required alt attribute. I've set it to an empty string.

Looks good to me, thanks!

Just use a role="presentation"attribute. Presentation images has no need of an alt attribute.
A blank alt is not good for acessibility, is just more junk code.
<img src="[src]" role="presentation"><!-- valid code -->

@odahcam Sounds good, thanks

Actually, an empty alt text is the recommend way for ATs to ignore them. Having no alt is also not valid HTML.


[WIP] Remove deprecated function

This pull request will remove deprecated function.
List deprecated function

pythainlp.word_vector; doesnt_match, get_model, most_similar_cosmul, sentence_vectorizer, similarity. use WordVector class instead

[WIP]

Coverage decreased (-0.02%) to 97.098% when pulling 8ab14cc30fa66cfbad09a4cd0ff6e037ac64e847 on remove-deprecated-function into b0d282910a03ced34d777cad8ee84fd7b99330ee on dev.


Fix apt-get update issue in st2actionrunner container

This fixes an issue where apt-get update couldn't be run in the st2actionrunner, which is required for setting up the snpseq_packs development environment.
Read more in: https://gitlab.snpseq.medsci.uu.se/shared/snpseq_packs/-/merge_requests/117

This looks good to me!


Migrations: Improve functional test coverage

Probably by porting existing tests from EF6

Here are some scenarios I want to cover.

[ ] CSharpMigrationOperationGenerator can round-trip operations through the compiler
[ ] ModelDiffer can detect operations

[ ] ...and handle entity or property renames
[ ] ...and table or column renames
[ ] ...and sort correctly

[ ] MigrationSqlGenerator can apply operations to the database

Just wanted to know the state of migration functional tests before attacking migrations in PostgreSQL... There seem to be some non-inherited migration tests within each provider's testsuite but nothing comprehensive I can actually use. Should I wait a bit, are there plans to work on this?

@roji, So far, there are just unit tests to verify the SQL. You can copy these to use in your own unit tests. I also plan to create some provider-inheritable functional tests. I started in bricelam:migtests, but they were way too slow! We have some ideas on how to do it faster, but I haven't gotten around to implementing it yet.

I've added some basic functional tests that cover the HistoryRepository in #2733

Closing. I feel like our coverage is pretty decent now. We'll rely on app building, exploratory testing, and code coverage analysis for more. Creating more provider-agnostic tests will be done as part of #1807.


Update control flow in _decode_field

This is an update to the discussion at https://github.com/eerimoq/cantools/pull/335.

before the update choices was always applied to the value, if it
succeeded, it would return, but if it failed scaling would be applied. I
believe this behavior to be inconsistent.
This code passes all, but one test (cantools/tests/test_database.py", line 1266, in test_the_homer_encode_decode_choice_scaling self.assertEqual(decoded, decoded_message)).
The code has different behavior from the previous code, when a signal
possesses choices, but also scaling. I dont know about the official CAN
spec, but this kind of message should not exist. Either choices or
scaling is used, but not both. To prevent this behavior one could add a
check to the database, which can be run mandatory or optionally.
I also reformatted the code with black as I'm not a fan of the \ syntax
This implementation should also provide a small performance boost as fewer lines of code will be executed

TODO:

[ ] Compare to the CAN spec or to Vector software

You are misunderstanding scaling. Scaling for a choice value is usually offset=0, factor=1 but it does exist.

I understand that they are the standard values, but is it a actual use case to have a not matching choice and then scaling the value (scaling != 1 or offset !=0)? I cant come up with a sensible use case for this.
I havent looked into the spec and dont have any vector software installed. How do they handle the case/dbc?

With respect to the backslash formatting: @eerimoq as the BDFL did a good job demanding consistent formatting throughout the code base. I would argue that good citizenship would include adherence in that regard.

With respect to the backslash formatting: @eerimoq as the BDFL did a good job demanding consistent formatting throughout the code base. I would argue that good citizenship would include adherence in that regard.

I'm fine also with that :)

Did you get my other point? Scaling is almost always true. Only in a very specific circumstance, when the user wants to have the raw value, he can opt to set scaling to false.
So you are right in that for choices the translation raw->physical does make no sense, but that does not change control flow. It is taken care of by offset=0 and factor=1.

Vector does it the same. The spec tells you that value tables deliver descriptions for raw values. But nothing would stop you from defining a factor of 2 even if that makes no sense.

Did you get my other point? Scaling is almost always true. Only in a very specific circumstance, when the user wants to have the raw value, he can opt to set scaling to false.

actually, I've got quite a few files which exhibit this: For example the coolant temperature might be transmitted using an 8 bit integer, where the offset might be something like -20.0,  the scaling 0.5 and a transmitted value of 0 might indicate "lower than -20 Celsius" and 255 "higher than 107 degrees". I thus think that the current behavior is correct...


*: Store hb in the influxdb

Signed-off-by: Ce Gao<EMAIL_ADDRESS>

Hey @gaocegege,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: d9a87140-0aa4-11e9-bbf4-1dc28ceff956


Hooks don't have access to the original template directory

I'm trying to include a configuration summary with the generated projects. The summary would be a JSON file, dumped by post_gen_project hook, which would include the cookiecutter context that was used to create the project (same as the files used by --replay functionality).
But I'd also like the config summary to include the revision (commit hash) of the used cookiecutter template. This is useful for enabling easy upgrading of the used template, i.e. incorporating the template changes into a project that had been generated from an older version of the template.
Problem is that ATM hooks don't seem to have any way of accessing the template source dir (correct me if I'm wrong). I'd propose to modify generate_files() to add some special keys to the context, including (but perhaps not limited to) the original template directory. The new values could either go into a new toplevel dict in the context (next to the cookiecutter dict), or maybe into the existing cookiecutter object, prefixed with underscores.
Let me know if this is something that would fit into cookiecutter. If yes and we agree on the implementation, I should be able to create a PR.

Hi @rivol,
this PR #694 resolves this issue by passing the cookiecutter context serialized in JSON to hooks through the stdin stream.
It also provides an option to run real hooks in place, instead of creating temporary copies.
Please have a look and feel free to give your feedack.
best regards
Eric

+1


"Creation of dynamic property" warning in PHP 8.2

I get:
Deprecated: Creation of dynamic property simple_html_dom\simple_html_dom::$optional_closing_array is deprecated in /home/rosell/github/dom-util-for-webp/vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php on line 1489

From PHP 8.2, properties needs to be defined before used.
In PHP 8.2, a warning is triggered. In PHP 9.0, an error will be thrown
See: https://wiki.php.net/rfc/deprecate_dynamic_properties
I'm aware that this should be fixed in the original simple_html_dom.php, but until then, I propose that it is fixed here.

To fix:
Add this line in simple_html_dom.php, after line 1461:
protected $optional_closing_array;

PS: I notice that they are working again on simplehtmldom... :)


[HELP] CORS?

I run Hyperpass instance on passdepository.com and API serever is api.passdepository.com
But I encountered the following message.
Access to XMLHttpRequest at 'https://api.passdepository.com/get-minimum-version' from origin 'https://passdepository.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Could you please tell me how to fix this?

Of couse, when I set api.hyperpass.org to API Server, everything is OK.

My .env as below:

NODE_ENV=production
MONGODB_URI=mongodb://hyperpass:password@<IP_ADDRESS>:27017/hyperpass
PORT=3000
<EMAIL_ADDRESS>EMAIL_HOST=mymailserver
EMAIL_PORT=587
<EMAIL_ADDRESS>EMAIL_PASSWORD='password'

API sever log : node /usr/bin/node ./builds/hyperpass-api/main.js

9月 21 03:31:44 n14 node[90273]: Starting Express on port 3000.

Website server log : node ./builds/hyperpass-website/server/main.js

 9月 21 03:33:45 n14 node[90341]: The Hyperpass website server has been started on port 4001 (http://localhost:4001). 9月 21 03:33:45 n14 node[90341]: The Hyperpass website server has been started on port 4001 (http://localhost:4001).

From desktop app I can sign up and login successully. But browser extension reports the same error.

To fix this you need to add CORS headers to the API responses. I've just added an option to make Express do this by setting the ENABLE_CORS=true environment variable, which may solve your problem. I'll test this more thoroughly later. However, if you are serving through a publicly accessible domain name, it may be better to use a webserver like NGINX or Apache as a reverse proxy and configure headers there. That way you can also configure things like rate limiting and caching so that you don't get undesired requests.

I've just gotten around to testing the Express CORS option and noticed it was not being enabled properly. Now that it's fixed, I have gotten a self-hosted setup using just Express working on my end. It should now work with your setup as well.

Awesome! all issues are fixed! Thanks, @Myles-Trevino !
I set headers in Apache config, but somehow they aren't effective.
	<Location />
		Header set Access-Control-Allow-Origin "*"
		Header set Access-Control-Allow-Headers "Content-Type, Origin, Accept"
		Header set Access-Control-Allow-Methods "GET, PUT, OPTIONS"
		ProxyPass http://<IP_ADDRESS>:3000/ nocanon
		ProxyPassReverse http://<IP_ADDRESS>:3000/
	</Location>

p.s.
Desktop app can't be download from https://hyperpass.org/downloads, the site returns 404 error.
p.s.2
I hope that autofill function will be added to browsers extensions...

Download links are fixed now. For autofill with keyboard shortcuts, please see this article. For autofill without needing to press anything, that involves more security risks and complexity for what I see as only a minor improvement in ease of use over keybinds, so I have avoided adding that.

Thanks for your reply. I missed context menu. :-P


BulkInsertOrUpdate with custom UpdateBy columns does not set output identity when UpdateBy columns are not unique in database

When using BulkInsertOrUpdate with custom UpdateBy columns and SetOutputIdentity && PreserveInsertOrder does not work when some of the UpdateByColums values contains null values. See example:
    [Fact]
    public void BulkInsertOrUpdate_WillNotAssignIds_OnDuplicateValues()
    {
        var bulkId = Guid.NewGuid();
        var existingItemId = "existingDuplicateOf";

        var initialItem = new Item2()
        {
            StringProperty = existingItemId,
            Name = "initial1",
            BulkIdentifier = bulkId,
        };

        var duplicateInitial = new Item2()
        {
            StringProperty = existingItemId,
            Name = "initial2",
            BulkIdentifier = bulkId,
        };

        using (var db = GetTestContext())
        {
            db.Items2.Add(initialItem);
            db.Items2.Add(duplicateInitial);
            db.SaveChanges();

            Assert.NotEqual(0, initialItem.Id);
            Assert.NotEqual(0, duplicateInitial.Id);
        }

        using (var db = GetTestContext())
        {
            var newItem = new Item2()
            {
                StringProperty = "A",
                BulkIdentifier = bulkId,
            };

            var updatedItem = new Item2()
            {
                StringProperty = existingItemId, // begins with 'e'
                BulkIdentifier = bulkId,
                Name = "updated by Bulks",
            };

            var newItem2 = new Item2()
            {
                StringProperty = "ZZZ_will not get assigned",
                BulkIdentifier = bulkId,
            };

            var ensureList = new[] { newItem, updatedItem, newItem2 };

            // bug in library - which for some orders will not set some output ids:
            db.BulkInsertOrUpdate(ensureList,
                c =>
                {
                    c.UpdateByProperties = new []{ nameof(Item2.StringProperty), nameof(Item2.BulkIdentifier) };
                    c.SetOutputIdentity = true;
                    c.PreserveInsertOrder = true;
                });

            // Since newItem2 is last in the list (of ordered by StringProp), it will not get assigned the id because of the bug (see above)...
            Assert.Equal(0, newItem2.Id);

            // The items were inserted/updated
            Assert.Equal(4, GetItems2BulkCount(bulkId));
        }
    }

Why does this happen?
This happens due to bug in https://github.com/borisdj/EFCore.BulkExtensions/blob/89e3ff2d0516a0d1e640758830b9826a451228e5/EFCore.BulkExtensions/TableInfo.cs#L1079
in method UpdateEntitiesIdentity where the output setting cycle is going only trough
https://github.com/borisdj/EFCore.BulkExtensions/blob/89e3ff2d0516a0d1e640758830b9826a451228e5/EFCore.BulkExtensions/TableInfo.cs#L1078
so if there are duplicate values in output values (duplicate in sense of custom UpdateByColumns), then some of the ids of the items might not be set. See example above for specific scenario.
Proposed solution:

Just add post check that will verify that all ids were set (are not negative or zero). And if this would be detected, then it which will throw or inform user that the output ids are not reliable.
Fix the code in UpdateEntitiesIdentity, and ensure that id for all items is set, by looping trough the input entities instead of the entities from input table. The only question is then which ids (of possibly mulltiple ids shoudl be set to input entity - first, last ...?)

I will happily create PR with nice tests if you agree (we already do have something simmilar in our fork).

I created MIT fork of this repository:
https://github.com/videokojot/EFCore.BulkExtensions.MIT
where I also fixed this issue.
You can also find it on NuGet:
https://www.nuget.org/packages/EFCore.BulkExtensions.MIT
Fix for this issue is included in version(s) >= 6.11.0 , 7.11.0 , 8.11.0-preview1


Fixing SSL related metric for replication with the thread pool fix

SLA: 1 min
Reviewers: Casey

lgtm, merging


Namespace Picker Overflows Off The Top Of Visible Area

When I have more than one namespace selected in the namespace picker in cluster explorer, it rolls off the top of the window. Making it where I can't deselect chosen namespaces.

Using
Chromium Edge
Version 92.0.902.49 (Official build) beta (64-bit)

@bmayfi3ld What version of Rancher are you using?
The upcoming 2.6 has a number of changes and includes an update that fixes this.

@richard-cox  v2.5.7
Apologies I tried to search through the issues to find an existing tracker for it.

@rak-phillip can you take a look to see if this is happening on the release-2.6 branch?

@gaktive This is not an issue in 2.6, the project/namespace filter has been reworked and flows / collapses horizontally. The question here is do we back port that whole change back (costly), work out some fix only for pre 2.6 land or close.

We are not backporting UI changes to 2.5 in general.  Critical bugs out small things needed for backend functionality maybe; for actual UI changes there's nowhere reasonable to draw the line on porting totally different designs for many things without it just becoming 2.6.

I have no issue waiting for 2.6.   I did not know it had been fixed.


Add to cart button responds only for the first item

If I click on the cart icon for a network, nothing is added to the cart.
This happens only for small cards.

Old


Port memory recording in VMA to C++11.

Hello.

Current implementation of recording in VMA, as well as VmaReplay application, is
coded and tested only on Windows. Inclusion of recording code is driven by
VMA_RECORDING_ENABLED macro. Support for other platforms should be easy to
add. Contributions are welcomed.

Use C++11 to get thread id.
Use C++11 to get time.
Find alternative to sprintf_s..
Use errno_t and fopen_s on Windows, fopen on other systems.

Code is tested on Windows and Linux but still needs reviews.
I am a huge fan of Vulkan memory allocator and I'm happy to contribute to it.
I'm also a huge fan of your talk "Porting your engine to Vulkan or DX12" btw.
Thank you,
Johannes.

I got this to compile on Linux using gcc in Travis: https://travis-ci.org/github/inexorgame/vulkan-renderer.
Still extensive feedback on Linux is necessary.

Thank you for this contribution. It looks good. However, std::stringstream is known to be extremely slow and hated by most game developers, and so is std::string, so using them while processing every single VMA command doesn't look too good. Can you replace it with old good sprintf, or something like this, so the change doesn't worsen the performance comparing to the existing code for Windows?

I will search a solution for this.

I created this benchmark:
#include <benchmark/benchmark.h>
#include <Windows.h>
#include <thread>
#include <sstream>

static void GetThreadUsingStringStream(benchmark::State& state)
{
	for(auto _ : state)
	{
		auto thread_id = std::this_thread::get_id();
		std::stringstream thread_id_converter;
		thread_id_converter << std::this_thread::get_id();
		uint64_t id = static_cast<uint64_t>(std::stoull(thread_id_converter.str()));
	}
}

static void GetThreadUsingPointer(benchmark::State& state)
{
	for(auto _ : state)
	{
		auto id = std::this_thread::get_id();
		void* thread_id = &id;
		uint64_t* thread_id_ptr = static_cast<uint64_t*>(thread_id);
		// cout << *thread_id_ptr << endl;
	}
}

static void GetThreadIdUsingWindowsMethod(benchmark::State& state)
{
	for(auto _ : state)
	{
		auto thread_id = GetCurrentThreadId();
	}
}

BENCHMARK(GetThreadUsingStringStream);
BENCHMARK(GetThreadUsingPointer);
BENCHMARK(GetThreadIdUsingWindowsMethod);

BENCHMARK_MAIN();

Results: (release)

I am now sure how safe this approach is however. Since ``std::this_thread::get_id()` is actually an ostream, it could be of any data size the system is using. I found it quite hard to convert or cast the data otherwise.
Alternatively, we could use the sstream solution only for other platforms than windows with conditional compiling.
What do you think?

OK, doing #ifdef for Windows with more efficient implementation and #else with more generic one sounds good.

I would like to merge your pull request, but GitHub shows conflicts. It looks like the entire file is one big conflict. Did you change line endings?

I think by comitting I accidentally changed line endings. Should I just open a new PR based on the current master ?

Possibly you can make a new commit to your PR changing line endings.

Is the original file UTF-8 encoded and uses Windows (CR+LF) for line endings?

The file appears to have been committed to git with windows line endings. This is generally considered a Bad Idea since it leads to exactly this kind of conflict. The right way to fix it is to convert it to unix line endings and configure your windows git client to convert automatically on checkout/commit.

This seems to have fixed line ending issues.

I merged your change by hand. I also needed to fix order of included files as you included C++ header inside extern "C", which failed to compile in Visual Studio 2017.

Thanks for this great contribution.


Update test SDK Harness to fuel-core v0.24.2 and Fuels v0.57.0

Description
The SDK Harness must be updated to the latest versions of fuel-core and fuels-rs for https://github.com/FuelLabs/sway/issues/5786
GTF constants have been removed to match the current Fuel-VM instruction set
Checklist

[x] I have linked to any relevant issues.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book).

[ ] If my change requires substantial documentation changes, I have requested support from the DevRel team

[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.

Thanks! Is there a reason we don't have the harness part of the workspace? Because of it this was overlooked during #5844
cc @JoshuaBatty @IGI-111


Deploy example does not include --global command

I wanted to help make a contribution to the docs by including the --global to the deploy example.

Here is the Issue I opened: https://github.com/denoland/docs/pull/990


New version: JurgenRathlev.InnoUnpacker version <IP_ADDRESS> (1.9.7)

Created by 🥟 Dumplings in workflow run #8891.

Log
Updated: 1.9.6 → 1.9.7
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
The manifests for the last version <IP_ADDRESS> will be removed. Reason: No installer URL is changed compared with the last state while the version is updated
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-10-18 04:24:24.643 [FAIL] Installer failed security check. Url: https://www.rathlev-home.de/tools/download/innounpacker-setup.exe Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
Automated error analysis suggests 80004005 may mean Resource missing
(Automated response - build 897.)

Close with reason: Duplicate of #184321;


Update slf4j-api to 1.7.32

Updates org.slf4j:slf4j-api from 1.7.30 to 1.7.32.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.slf4j", artifactId = "slf4j-api" } ]

labels: library-update, semver-patch

Superseded by #59.


Adding icon for machine learning topic

Adding icon for machine learning topic
Icon available under CC license
Made By Krisztián Mátyás

Hi @rajatrich! Thanks for the suggestion. Currently, we only accept official logos for Topic pages, so I'm going to close this out. Per our docs:

logo
(if applicable) The official logo associated with that topic. You must have permission to use this logo. If no official logo exists, do not include an image.


Sum columns horizontally

Add a new count filter to aggregate values horizontally, e.g. sum up all of the #affected. #178 will support this issue, by making it easier to select specific columns. The filter will take a list of tag patterns and an operation (e.g. min, max, sum, average), as well as a hashtag spec and optional header for the new column.

[ ] add unit tests
[ ] implement helper method in hxl.model.Dataset
[ ] implement class in hxl.filters
[ ] add support for JSON recipe
[ ] add command-line script
[ ] merge to test
[ ] document in wiki (JSON page)
[ ] add UI support in HXL Proxy (new issue)
[ ] deploy to beta

Requested by @danmihaila and the Data Partnerships Team.

Instead of a new filter, we could extend the syntax in the add column filter. Currently, you can copy a value from another column (instead of adding a fixed value) like this:
{{#affected+f}}

It wouldn't be too difficult to extend this to a mini formula language, like this:
{{#value+eur * 1.41}}

or even
{{#affected+f + #affected+m + #affected +i}}

This would be strictly row scoped for performance (you couldn't reference a value in a different row), and is still declarative rather than procedural, so there's no risk of runway loops, recursion, etc.
What do you think, @danmihaila , @mcarans, @alexandru-m-g ?


Fail metadata reads if the configuration version is stale

Have readers embed the configuration version in the URL when listing directories or reading inode data.  Have the gateway reload if the MS fails the request with e.g. HTTP 410 or the like.

This is fixed in my syndicate2 branch (not yet committed).

syndicate2 is now merged.  Fixed


Add render-blocking capabilities for enlighted-link and light DOM styles.

Continue the work on https://github.com/Starcounter/starcounter-include/pull/109 given, HTML Imports issue is solved for Edge.

Won't be fixed, since the component is not relevant for Starcounter 3.


Formalise Vulnerability Response Process

There's no documentation on the how we handle and respond to vulnerability reports.
This issue is to track creating formal documentation that clearly states end-to-end how a vulnerability report is to be handled.
References
OSSF's OSS Vulnerability Guide: https://github.com/ossf/oss-vulnerability-guide/blob/main/guide.md

see also: https://github.com/openjs-foundation/security-collab-space/issues/21


Integration with facebook

My project has the appsflyer sdk installed, but I want to integrate facebook ads, how would I attribute the facebook campaign to the appsflyer events?

Hi Darwin, how did you achieve this?


First and last name requirements should be displayed up front

The password requirements are displayed as it is typed, the first name and last name fields have requirements that do not display or show unless the user tries to submit with them not met.  For better usability the requirements or constraints should be available up front.

I will work on this since I am already working on 335


Memory leak

Just noticed that a jupyter-notebook process (in the old container) was consuming 196Gb of memory, and consuming CPU. :anguished:
After terminating the three running Atmospec kernels (leftovers?), the memory got down.
We need to test a long running atmospec notebook and try to analyze where the memory goes.
We also really need to implement automatic kernel culling, per #105

Apparently the memory leak was observed in other apps, and also in the new Docker stack.
@yakutovicha Could you please open an issue on some AiiDAlab repo and describe your findings so far. Just so we're tracking this memory leak.

It looks like the leak only occurs when the connection from the website to the kernel is severed. Indeed, closing or reloading such window closes the kernel and jupyter-notebook server reclaims the memory.
Some strace output, running jupyter-notebook
poll([{fd=38, events=POLLIN}], 1, 0)    = 0 (Timeout)
getpid()                                = 7
epoll_wait(4, [], 12, 0)                = 0
getpid()                                = 7
poll([{fd=35, events=POLLIN}], 1, 0)    = 0 (Timeout)
...

Main ipykernel_launcher is stack at epoll
epoll_wait(45,

Subprocess from kernel_launcher
futex(0x558a84419d90, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x558a84419d8c, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=10899486, tv_nsec=105003180}, FUTEX_BITSET_MATCH_ANY) = 0
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x558a84419d8c, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=10899486, tv_nsec=105186996}, FUTEX_BITSET_MATCH_ANY) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x558a84419d90, FUTEX_WAKE_PRIVATE, 1) = 0
pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=100000000}, NULL) = 0 (Timeout)
getpid()                                = 322417
getpid()                                = 322417
getpid()                                = 322417
poll([{fd=63, events=POLLIN}], 1, 0)    = 0 (Timeout)


Error while running "train_UGformerV2.py"

The error message is as follows:
Traceback (most recent call last):
File "D:/graph_code/Graph-Transformer-master/UGformerV2_PyTorch/train_UGformerV2.py", line 144, in
train_loss = train()
File "D:/graph_code/Graph-Transformer-master/UGformerV2_PyTorch/train_UGformerV2.py", line 101, in train
graph_label = label_smoothing(graph_label, num_classes)
File "D:\graph_code\Graph-Transformer-master\UGformerV2_PyTorch\UGformerV2.py", line 102, in label_smoothing
true_dist.scatter_(1, true_labels.data.unsqueeze(1), confidence)
IndexError: scatter_(): Expected dtype int64 for index.
And my pytorch version is 1.7.0. How can I solve this problem, thanks for your answer.

To solve this problem, you can alternatively use CrossEntropyLoss by uncommenting Lines 91 and 104 and commenting Line 105 in train_UGformerV2.py.


[tests] enable BR features in posix build checks

BR features are tested with "Border Router" CI task but it is built with gcc by default.
This PR adds BR features to posix build checks which apply clang/clang++ to avoid
errors such as https://github.com/openthread/openthread/pull/6560.

The macOS build is failing because we was not supporting Border Routing on macOS platforms. Will address this later.

Updated the CL to skip SRP Server and Border Routing features for Mac OS.


container runtime is not running when using containerd

What happened:
^@2022-05-24 16:50:43 [INFO] [init.go:206] join command is: kubeadm join  apiserver.cluster.local:6443 --token 3o67gi.vhvnuwdxmb50jfdn --discovery-token-ca-cert-hash sha256:f8c1dd4b5d9ded48034f5453fe64b78bd0b38d07e298c338b88491e428ee4204
2022-05-24 16:50:43 [INFO] [masters.go:520] join token: 3o67gi.vhvnuwdxmb50jfdn hash: sha256:f8c1dd4b5d9ded48034f5453fe64b78bd0b38d07e298c338b88491e428ee4204 certifacate key:
2022-05-24 16:50:43 [INFO] [nodes.go:92] Start to join <IP_ADDRESS> as worker
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/care/care.go:16] VsAndRsCare DeleteVirtualServer
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [WARN] [sealer/vendor/github.com/sealyun/lvscare/service/service.go:75] DeleteVirtualServer error:  no such process
2022-05-24 16:50:44 [WARN] [sealer/vendor/github.com/sealyun/lvscare/care/care.go:19] VsAndRsCare DeleteVirtualServer: no such process
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/service/service.go:129] IsVirtualServerAvailable warn: virtual server is empty.
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
2022-05-24 16:50:44 [DEBG] [sealer/vendor/github.com/sealyun/lvscare/utils/utils.go:21] SplitServer debug: IP: <IP_ADDRESS>, Port: 6443
W0524 16:50:44.701940    3547 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/var/run/dockershim.sock". Please update your configuration!
[preflight] Running pre-flight checks
[WARNING FileExisting-tc]: tc not found in system path
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR CRI]: container runtime is not running: output: time="2022-05-24T16:50:46+08:00" level=fatal msg="connect: connect endpoint 'unix:///var/run/dockershim.sock', make sure you are running as root and the endpoint has been started: context deadline exceeded"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher
Error: failed to join node <IP_ADDRESS> failed to execute command(kubeadm join --config=/var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml -v 0) on host(<IP_ADDRESS>): error(Process exited with status 1)
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
Environment:

sealer version (use sealer version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

[root@iZj6cee2b6gd2fiywukjtaZ ~]# sealer version
{"gitVersion":"v0.8.5","gitCommit":"f9c3d99","buildDate":"2022-04-28 14:16:58","goVersion":"go1.16.15","compiler":"gc","platform":"linux/amd64"}

apiVersion: kubeadm.k8s.io/v1beta3
caCertPath: /etc/kubernetes/pki/ca.crt
discovery:
bootstrapToken:
apiServerEndpoint: <IP_ADDRESS>:6443
caCertHashes:
- sha256:07f4a9427f1ff0e61f0ce78062950f7ea2607b64fc8bc89be490a7b353eb06a7
token: uc9zbz.k8msgul6i5t31z29
timeout: 5m0s
kind: JoinConfiguration
nodeRegistration:
criSocket: /var/run/dockershim.sock
taints: null

apiVersion: kubelet.config.k8s.io/v1beta1
authentication:
anonymous:
enabled: false
webhook:
cacheTTL: 2m0s
enabled: true
x509:
clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
mode: Webhook
webhook:
cacheAuthorizedTTL: 5m0s
cacheUnauthorizedTTL: 30s
cgroupDriver: cgroupfs
cgroupsPerQOS: true
clusterDomain: cluster.local
The file  /var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml in worker node.

What image to use to run the cluster.


Migrate from Spring Boot to Ktor

more details

ha, you decided to do that. nice. if you need STOMP for Ktor just ask me

@oleksiyp - that's the plan, although few things require checking:

kafka integration
JPA like postgresql integration
WebSockets/STOMP integration ;)


feat: update Spicetify.Config when loading things in

I believe this works as intended. Please test it and double check it's working for you.
My only other todo note is that it feels not quite complete to have it so that it updates the config when installing a no-js theme, but it's unable to reset the config back after removing a no-js theme, since the previous value is lost.
This would only matter if someone removed a theme and didn't install another on top, since installing one on top would set it again. It's probably not a big deal, just thought I'd mention in case anyone has any thoughts.


Audio support

Is there a way to play audio with custom galleryItem. Or are you planning for some update with audio support?

Hi @jovanpreet
I can see two ways you could achieve audio playback in the gallery:

Implement the landedPageAtIndexCompletion callback where you can start / stop playing audio when the gallery arrives to a given page
If you want more control (eg: playback controls, extra/interactive visuals) then you can implement a custom GalleryItem which can provide its own ViewController (see the example app for how to do it)

If you can come up with a generic solution that fits well into ImageViewer (eg: a built-in GalleryItem.audio implementation with some default play/pause/stop buttons) we would love to see a PR for it ❤
Hope this helps

That would be  nice addition. I am strongly in favour of having that as distinct gallery item.

Currently i am busy. I would love to do that and might do when my app gets published.

Any update on this @jovanpreet ?

@RuiAAPeres No I didn't use this library and created my own.

👍


Dev merge into main

final merge for version V1.0.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

177 of 177 (100.0%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
177

Relevant Lines:
177

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

177 of 177 (100.0%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
177

Relevant Lines:
177

💛  - Coveralls


[[FEAT]] Impement module option

@rwaldron @caitp I took a few liberties while implementing this. These aren't (ahem) "strictly" necessary, but they've always bugged me, and improving them now made the "module" option easier to implement. They seem pretty low-risk to me, but I've thought that before, so I'd appreciate your review of those changes in particular. (And if you don't think they're improvements, don't hesitate to say so.) They're contained in separate commits to help review (and so I can use commit messages to share justification).
I've introduced a new warning to help people avoid using the new option incorrectly. I've tried to make this generic enough for re-use with other ES6 options, and even for use in future versions.
Note that I've declared this under the "environments" collection of options. My first choice was "enforcing", but I changed my mind while working on the patch. Although it doesn't introduce new identifiers, it does describe an environmental change, so it kind of makes more sense to go here. It's not really "enforcing" per se, and people using enforceall would be especially surprised if the next release started treating all their code as strict mode code. (I can't wait to get rid of that option, by the way.)
Ideas for future extensions:

Any minor release - Make this a "value" option and allow three different values: true, false, and "infer". That last one would use a heuristic to automatically detect whether the code was module code. As Cait pointed out, this could never be foolproof, but by exposing the behavior through an explicitly-named option value, we can have some confidence that the user understands the edges before opting in. The benefit here would be that users wouldn't have to special-case their configuration according to their file structure.
Any major release - Warn on import and export statements in any code that does not use module: true (or module: "infer" as the case may be).

If you think that first idea is worthwhile, I could implement it as part of this pull request. But the second one is backwards-breaking, so it will have to wait until 3.0.

Coverage remained the same at 96.34% when pulling a913cff17c47b3c5ae50d048c3b1c2f4a5294389 on jugglinmike:module-option into dd768c243af2bd3a8beb5e47768eef3ec7ab2e5e on jshint:master.

Coverage remained the same at 96.34% when pulling a913cff17c47b3c5ae50d048c3b1c2f4a5294389 on jugglinmike:module-option into dd768c243af2bd3a8beb5e47768eef3ec7ab2e5e on jshint:master.

The patch looks good.
I'm really not keen on the "infer" idea, I think this could lead to confusion. Explicit is better, imo.
Can you make sure // jshint module: true works properly (eg at the head of the file)?

This is surprisingly simple, I like it.

I'm really not keen on the "infer" idea, I think this could lead to confusion. Explicit is better, imo.

I'm with @caitp on this.

Any major release - Warn on import and export statements in any code that does not use module: true (or module: "infer" as the case may be).

Very cool.

Things...

@caitp asked for confirmation of // jshint module: true inline/in-file, which I just tried and it works, but please add a test for this.

When I add "module": true  to a .jshintrc, all files will be treated as a module, which is what I would expect.

What about allowing (in some future extension of the feature)...

"module": [array of file name strings]
"module": "glob expression"
"module": [array of file name strings or glob expressions]

Maybe that ^^^ is an option called "modules" (with an "s")?

What about allowing (in some future extension of the feature)...

"module": [array of file name strings]
"module": "glob expression"
"module": [array of file name strings or glob expressions]

Maybe that ^^^ is an option called "modules" (with an "s")?

It sounds like you have gh-1636 in mind.
The good news is that JSHint already exposes a general mechanism for this--overrides. (I only learned about this through the recent gh-2296, but there is an open issue to document it.) This means that we can land this as-is without including additional filesystem code :)

Coverage remained the same at 96.34% when pulling 8cad1199c573fc76cc7aa2acca5c07de1d58d761 on jugglinmike:module-option into dd768c243af2bd3a8beb5e47768eef3ec7ab2e5e on jshint:master.

Coverage remained the same at 96.34% when pulling 8cad1199c573fc76cc7aa2acca5c07de1d58d761 on jugglinmike:module-option into dd768c243af2bd3a8beb5e47768eef3ec7ab2e5e on jshint:master.

Thanks for the review! As requested, I've added an additional test for in-line directive. This raises another question: should we forbid use of this directive in function scope? It doesn't make much sense to write:
class Foo {
  bar() {
    /* jshint module: true */
  }
}

...but that's possible with this patch in its current state. Is it worth adding code to disallow weird uses like that? Is it likely that doing so would help anyone?

This raises another question: should we forbid use of this directive in function scope? It doesn't make much sense to write:

I was saying this above --- I think the module directive is kind of special, in that you really need it to be one of the first items in the file (before any non-comment tokens)

I was saying this above

Sorry, I completely missed that. I'll see what I can do about this tonight. I think this would generally be fitting for all "environment" options. Obviously we can't do that in a minor release, but I'll try to build it so we can restrict node: true (for example) this way later.

Note: we just received a feature request to turn devel off on a line-by-line basis (in the #jshint IRC channel), so this idea:

I think this would generally be fitting for all "environment" options.

May not be appropriate after all.

I think you need to distinguish between certain methods being "safe" or " allowed", and an operating environment like "this is a module or script, browser or node, web worker or what" etc. Allowing reference to certain globals could certainly be enabled on a line by line basis, but nothing will change the intended environment of a file

Okay, as discussed, the option is now disallowed outside of ES6 code and after executable code has been parsed. Sorry for the delay.

Coverage increased (+0.0%) to 96.37% when pulling 84bf0becc76fd4d4f170876d4f7e156a22a23b02 on jugglinmike:module-option into b3b41c8555da07eaeacb0648cdc8cbbec62c2f59 on jshint:master.

Coverage increased (+0.0%) to 96.37% when pulling 84bf0becc76fd4d4f170876d4f7e156a22a23b02 on jugglinmike:module-option into b3b41c8555da07eaeacb0648cdc8cbbec62c2f59 on jshint:master.

Rebased! I haven't received any feedback on the additional restrictions added by the two fixup!- commits. If those look good, I'll squash an merge.

Coverage increased (+0.0%) to 96.47% when pulling 63f1f44f945bb9bc70df9092ad5ba2e91f8624d1 on jugglinmike:module-option into c0edd9ff84a68946c615198a4a6f188f6fbbd54d on jshint:master.

LGTM, I'll let you make the call regarding my comment about refactoring the Boolean arg.

Nice call, @rwaldron . In some cases, the parameter was completely unnecessary!

Coverage increased (+0.05%) to 96.52% when pulling 26557c4fc9085078914622319332bedab52ba696 on jugglinmike:module-option into c0edd9ff84a68946c615198a4a6f188f6fbbd54d on jshint:master.

Oh, that's great news

Triggering one last test build against the squashed history...

Coverage increased (+0.05%) to 96.52% when pulling 290280c29d47baad06d8958ef4a90807f4a67e40 on jugglinmike:module-option into c0edd9ff84a68946c615198a4a6f188f6fbbd54d on jshint:master.

Thanks, Cait! Thanks, Rick!

You did it!

Nice work!

Yay!


how to train the pretrained Latte model weights?

as the vae of opensora is different from Latte, the weights from latte could be able to use directly?
Or your team train a latte model from scratch?

Yes, we use it directly. It adapts very quickly and the transformation is visible in about 500 steps. This is consistent with pixart-sigma.

Yes, we use it directly. It adapts very quickly and the transformation is visible in about 500 steps. This is consistent with pixart-sigma.

Thanks for your reply! But if we want to scale up the param number, what should we do first, you suggest? just train a larger new latte model?

Yes, we use it directly. It adapts very quickly and the transformation is visible in about 500 steps. This is consistent with pixart-sigma.

Thanks for your reply! But if we want to scale up the param number, what should we do first, you suggest? just train a larger new latte model?

I think a pixart-alpha should be retrained.


Attempting MQTT connection... failed, rc = 0 try again in 5 seconds

Example "mqtt_esp8266.ino" for Arduino works perfectly all the time.
When I have tried to change function reconnect(..) to this:
void reconnect()
{
  /* Loop until we're reconnected */
  while (!client.connected())
  {
    Serial.print("Attempting MQTT connection...");
    char clientId[] = "ESP8266Client-FakeWell_RevEng";
    if (!client.connect(clientId))
    {
      Serial.println(" connected");
    }
    else
    {
      Serial.print(" failed, rc = ");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds\n");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
}

it prints out some weird info on serial:

Attempting MQTT connection... failed, rc = 0 try again in 5 seconds

According to documentation, rc = 0 should be

0 : MQTT_CONNECTED - the client is connected

What is wrong, please? Why actually I need new client ID for every new connection try?
I am using OTA.

I have probably found the root cause. :-(
I haven't tried to disable simultaneously used ThingSpeak publishing ...
Sorry for false alarm!


Create oeiujerl.gfv

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Why was this change needed? (You can also link to an open issue here)

Other information:

RIP


[WIP] Use out-of-tree k8s go client.

Fixes #38.
Builds and tests pass, but still needs manual testing (since we don't have e2e set up yet.)
This also speeds up the build quite a bit.

Manual testing in our bare metal dev cluster worked. Think this is OK to merge after your LGTM @balajismaniam


What is the use of Label? How to solve the reported error?

Within the generated file
const (
	// Label holds the string label denoting the v3paramtemplate type in the database.
	Label = "v3param_template"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStorageName holds the string denoting the storage_name field in the database.
	FieldStorageName = "storage_name"
	// Table holds the table name of the v3paramtemplate in the database.
	Table = "param_template"
)

Get an error:
panic: ent: v3param_template not singular

How to solve the problem?

Hey @wingofsky, I assume you use the OnlyX API, right?
As mentioned in the godoc:
Only returns a single <T> entity found by the query, ensuring it only returns one.
Returns a *NotSingularError when exactly one Spec entity is not found.
Returns a *NotFoundError when no Spec entities are found.

Closing, but please feel free to continue the discussion or reopen if you found any issue with ent. Thanks 🙏


Error While Executing buildHelicsInterface.m

Afternoon,
I get this error when running the buildHelicsInterface.m script:

buildHelicsInterface

Error using matlab.io.internal.archive.core.builtin.extractArchive
Invalid TAR file /home/ali/Downloads/matHELICS-main/helicsTar.tar.gz.
Error in untar (line 84)
files = matlab.io.internal.archive.core.builtin.extractArchive(tarFilename, outputDir, 'tgz');
Error in buildHelicsInterface (line 32)
untar('helicsTar.tar.gz');

This past Friday we were looking at an issue with the Matlab untar command
on macOS not handling symlinks at all. Based on the error you got, I’d
guess that symlinks are the reason it is saying the tar file is invalid
(which explains why it works on Windows which doesn’t have symlink
support), or it can’t handle compressed tar archives; either way it seems
like Matlab’s built-in untar command is even more broken on Linux.
On Sunday, May 29, 2022, StormsHalted @.***> wrote:

Afternoon,
I get this error when running the buildHelicsInterface.m script:
buildHelicsInterface
Error using matlab.io.internal.archive.core.builtin.extractArchive
Invalid TAR file /home/ali/Downloads/matHELICS-main/helicsTar.tar.gz.
Error in untar (line 84)
files = matlab.io.internal.archive.core.builtin.extractArchive(tarFilename,
outputDir, 'tgz');
Error in buildHelicsInterface (line 32)
untar('helicsTar.tar.gz');
—
Reply to this email directly, view it on GitHub
https://github.com/GMLC-TDC/matHELICS/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6JBZ2OFBGMQZMBDLAQACDVMP5BTANCNFSM5XI3RDFA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

So how to resolve this?

Since you’re on HELICS 2, this part probably isn’t relevant.
The workaround is to download the helics tar file manually, and extract it
from the command line using the usual tar -xf system command. Then modify
the matlab build script to use that manually extracted directory instead.
On Sunday, May 29, 2022, StormsHalted @.***> wrote:

So how to resolve this?
—
Reply to this email directly, view it on GitHub
https://github.com/GMLC-TDC/matHELICS/issues/2#issuecomment-1140552262,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6JBZ23BXGNXYWHN6V3NP3VMQA6XANCNFSM5XI3RDFA
.
You are receiving this because you commented.Message ID:
@.***>


Sample configs directory ?

I think we need a folder with sample working xonfigs.
Discuss !

My thoughts

No, my target is to remove any not relevant "code" from the repo, like the datasheets.
No, we could store sample configs at the wiki in code tags or maybe better as file download (as file download we could keep track how often people downloaded, to get a idea how often this was used.

New wiki would be better home as we can link several configs with additional info on how to setup the hardware, right now we have documentation for Hue and Orb for instance where we can inline include configs either in code tags or as attachements.

They look good - we should use this format for many other non obvious device types.
We could have an overall master page that walks through the possible config sections with links

@penfold42
Hyperion have a new home!
Please read the announcement post and the changelog for V1.02.0
www.hyperion-project.org
Please have a look at our new wiki! (EN/DE)
wiki.hyperion-project.org
All discussions/questions should be moved to the new forum!
We will close this issue now


File manifest-v0.11.1-beta.txt.sig.ots is missing in the release

Background
File manifest-v0.11.1-beta.txt.sig.ots is missing in the release
Your environment

version of lnd
lnd v0.11.1-beta
which operating system (uname -a on *Nix)
Linux 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux
version of btcd, bitcoind, or other backend
Bitcoin Core version v0.20.1

Steps to reproduce
wget https://github.com/lightningnetwork/lnd/releases/download/v0.11.1-beta/roasbeef-manifest-v0.11.1-beta.txt.sig
wget https://github.com/lightningnetwork/lnd/releases/download/v0.11.1-beta/manifest-v0.11.1-beta.txt.sig.ots
ERROR 404: Not Found.
ots verify manifest-v0.11.1-beta.txt.sig.ots -f roasbeef-manifest-v0.11.1-beta.txt.sig
ots verify: error: argument TIMESTAMP: can't open 'manifest-v0.11.1-beta.txt.sig.ots': [Errno 2] No such file or directory: 'manifest-v0.11.1-beta.txt.sig.ots'

Expected behaviour
That the file manifest-v0.11.1-beta.txt.sig.ots can be downloaded and used to verify the release with the ots verify command
Actual behaviour
ERROR 404: Not Found.
ots verify: error: argument TIMESTAMP: can't open 'manifest-v0.11.1-beta.txt.sig.ots': [Errno 2] No such file or directory: 'manifest-v0.11.1-beta.txt.sig.ots'

Should be there now! Was stuck there in the draft state.


Cannot compile elephant-bird, ivy.xml parse error

I get this after a git clone and then running "ant". I am not an ivy expert. However, something simple must be wrong.
resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
[ivy:retrieve] :: Ivy 2.0.0-rc2 -<PHONE_NUMBER>4207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /Users/shiv/Documents/elephant-bird/ivysettings.xml
[ivy:retrieve] [xml parsing: ivy.xml:4:117: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed to appear in element 'configurations'. in file:/Users/shiv/Documents/elephant-bird/ivy.xml
[ivy:retrieve] ]
BUILD FAILED
/Users/shiv/Documents/elephant-bird/build.xml:114: syntax errors in ivy file: java.text.ParseException: [xml parsing: ivy.xml:4:117: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed to appear in element 'configurations'. in file:/Users/shiv/Documents/elephant-bird/ivy.xml
]
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.getModuleDescriptor(AbstractModuleDescriptorParser.java:342)
at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:102)
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:183)
at org.apache.ivy.Ivy.resolve(Ivy.java:502)
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:234)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:207)
at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:154)
at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 2 seconds

The solution is simple but might indicate that ivy.xml is broken in master.
Changing ivy.xml in the following manner (removing defaultconf="compile") works.

fixes the issue.

Thanks will check this.

what is the version of ant you are using?

Apache Ant(TM) version 1.8.2 compiled on October 14 2011
There is also a problem with the whole ivy build for me. It fails as enclosed below. Feels like maven-tasks-2.1.3 is not available using the remote configuration provided in ivysettings.xml.
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] 	io problem while parsing ivy file: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom: Resetting to invalid mark
[ivy:retrieve] 	io problem while parsing ivy file: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom: Impossible to load parent for file:/Users/shiv/.ivy2/cache/org.apache.maven/maven-ant-tasks/ivy-2.1.3.xml.original. Parent=org.apache.maven#maven-parent;19
[ivy:retrieve] 		module not found: org.apache.maven#maven-ant-tasks;2.1.3
[ivy:retrieve] 	==== internal: tried
[ivy:retrieve] 	  /Users/shiv/Documents/elephant-bird/lib/ivy-19.xml
[ivy:retrieve] 	  -- artifact org.apache.maven#maven-parent;19!maven-parent.jar:
[ivy:retrieve] 	  /Users/shiv/Documents/elephant-bird/lib/maven-parent-19.jar
[ivy:retrieve] 	==== maven.org: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom
[ivy:retrieve] 	==== conjars.org: tried
[ivy:retrieve] 	  http://conjars.org/repo/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom
[ivy:retrieve] 	  -- artifact org.apache.maven#maven-ant-tasks;2.1.3!maven-ant-tasks.jar:
[ivy:retrieve] 	  http://conjars.org/repo/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: org.apache.maven#maven-ant-tasks;2.1.3: not found
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Hey sshivaji -
Thanks for the report. Something I find interesting is the error you posted shows "Ivy 2.0.0-rc2 -<PHONE_NUMBER>4207" used to resolve dependencies. The elephant-bird build fetches version 2.2.0 and uses that when building. For example I see this when building:
init-ivy:
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar
      [get] To: /Users/travis/src/elephant-bird/build/ivy-2.2.0.jar

init:

resolve:
[ivy:retrieve] :: Ivy 2.2.0 -<PHONE_NUMBER>0623 :: http://ant.apache.org/ivy/ ::

Can you confirm you're on a clean master branch, then try "ant clean resolve". If dependencies don't resolve correctly, can you post the output of:
ant clean && ant -v resolve
That will help us understand what's going on.

Shivs-Macbook-Pro:elephant-bird shiv$ ant clean && ant -v resolve 2> log.out
Buildfile: /Users/shiv/Documents/elephant-bird/build.xml
clean:
[delete] Deleting directory /Users/shiv/Documents/elephant-bird/build
clean:
BUILD SUCCESSFUL
Total time: 0 seconds
Apache Ant(TM) version 1.8.2 compiled on October 14 2011
Trying the default build file: build.xml
Buildfile: /Users/shiv/Documents/elephant-bird/build.xml
Detected Java version: 1.6 in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /Users/shiv/Documents/elephant-bird/build.xml with URI = file:/Users/shiv/Documents/elephant-bird/build.xml
Project base dir set to: /Users/shiv/Documents/elephant-bird
parsing buildfile jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
[property] Loading /Users/shiv/Documents/elephant-bird/libraries.properties
[macrodef] creating macro  _check_compiler
[macrodef] creating macro  _javac
Build sequence for target(s) `resolve' is [bootstrap, init-ivy, resolve]
Complete build sequence is [bootstrap, init-ivy, resolve, init, generate-protobuf, compile, jar, examples, generate-thrift, compile-thrift, javadoc, init-maven, install-local, clean, report, publish, compile-java-tests, test, ]
followed by
[ivy:retrieve] :: resolution report :: resolve 4887ms :: artifacts dl 41ms
[ivy:retrieve] 	:: evicted modules:
[ivy:retrieve] 	log4j#log4j;1.2.12 by [log4j#log4j;1.2.15] in [test, compile]
[ivy:retrieve] 	  in commons-logging#commons-logging;1.1.1 with latest-revision
[ivy:retrieve] 	  in commons-logging#commons-logging;1.1.1 with latest-revision
[ivy:retrieve] 	junit#junit;3.8.1 by [junit#junit;4.5] in [test]
[ivy:retrieve] 	  in commons-httpclient#commons-httpclient;3.0.1 with latest-revision
[ivy:retrieve] 	commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [test]
[ivy:retrieve] 	  in commons-httpclient#commons-httpclient;3.0.1 with latest-revision
[ivy:retrieve] 	commons-codec#commons-codec;1.2 by [commons-codec#commons-codec;1.3] in [test]
[ivy:retrieve] 	  in commons-httpclient#commons-httpclient;3.0.1 with latest-revision
[ivy:retrieve] 	org.antlr#antlr-runtime;3.3 by [org.antlr#antlr-runtime;3.4] in [test]
[ivy:retrieve] 	  in org.antlr#ST4;4.0.4 with latest-revision
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      compile     |   30  |   0   |   0   |   1   ||   29  |   0   |
|       test       |   43  |   0   |   0   |   5   ||   37  |   0   |
---------------------------------------------------------------------
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] WARN: 	:: org.apache.maven#maven-ant-tasks;2.1.3: not found
[ivy:retrieve] WARN: 	::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 	report for<EMAIL_ADDRESS>compile produced in /Users/shiv/.ivy2/cache/com.twitter-elephant-bird-compile.xml
[ivy:retrieve] 	report for<EMAIL_ADDRESS>test produced in /Users/shiv/.ivy2/cache/com.twitter-elephant-bird-test.xml
[ivy:retrieve] 	resolve done (4887ms resolve - 41ms download)
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] 	io problem while parsing ivy file: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom: Resetting to invalid mark
[ivy:retrieve] 	io problem while parsing ivy file: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom: Impossible to load parent for file:/Users/shiv/.ivy2/cache/org.apache.maven/maven-ant-tasks/ivy-2.1.3.xml.original. Parent=org.apache.maven#maven-parent;19
[ivy:retrieve] 		module not found: org.apache.maven#maven-ant-tasks;2.1.3
[ivy:retrieve] 	==== internal: tried
[ivy:retrieve] 	  /Users/shiv/Documents/elephant-bird/lib/ivy-19.xml
[ivy:retrieve] 	  -- artifact org.apache.maven#maven-parent;19!maven-parent.jar:
[ivy:retrieve] 	  /Users/shiv/Documents/elephant-bird/lib/maven-parent-19.jar
[ivy:retrieve] 	==== maven.org: tried
[ivy:retrieve] 	  http://repo1.maven.org/maven2/org/apache/maven/maven-parent/19/maven-parent-19.pom
[ivy:retrieve] 	==== conjars.org: tried
[ivy:retrieve] 	  http://conjars.org/repo/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom
[ivy:retrieve] 	  -- artifact org.apache.maven#maven-ant-tasks;2.1.3!maven-ant-tasks.jar:
[ivy:retrieve] 	  http://conjars.org/repo/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 		:: org.apache.maven#maven-ant-tasks;2.1.3: not found
[ivy:retrieve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Thanks, Shiv
On Feb 27, 2012, at 1:47 PM, Travis Crawford wrote:

Hey sshivaji -
Thanks for the report. Something I find interesting is the error you posted shows "Ivy 2.0.0-rc2 -<PHONE_NUMBER>4207" used to resolve dependencies. The elephant-bird build fetches version 2.2.0 and uses that when building. For example I see this when building:
init-ivy:
     [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar
     [get] To: /Users/travis/src/elephant-bird/build/ivy-2.2.0.jar

init:

resolve:
[ivy:retrieve] :: Ivy 2.2.0 -<PHONE_NUMBER>0623 :: http://ant.apache.org/ivy/ ::

Can you confirm you're on a clean master branch, then try "ant clean resolve". If dependencies don't resolve correctly, can you post the output of:
ant clean && ant -v resolve
That will help us understand what's going on.

Reply to this email directly or view it on GitHub:
https://github.com/kevinweil/elephant-bird/issues/149#issuecomment-4203871

This looks like a different error - looks like it got past your previous error, which complained about the ivy xml files being malformed. At the beginning of ivy:retrieve it prints the Ivy version being used - are you now getting the expected version I pasted above?
This looks like your ivy cache may have issues. Can you nuke /Users/shiv/.ivy2/cache (or move it off to the side) and try again?

Wait, I manually fixed the ivy.xml error. If I use it like its on git, I get the same error again:
Buildfile: /Users/shiv/Documents/elephant-bird/build.xml
clean:
clean:
bootstrap:
[mkdir] Created dir: /Users/shiv/Documents/elephant-bird/build
[mkdir] Created dir: /Users/shiv/Documents/elephant-bird/build/classes
[mkdir] Created dir: /Users/shiv/Documents/elephant-bird/build/test
[mkdir] Created dir: /Users/shiv/Documents/elephant-bird/build/test/thrift/gen-java
[mkdir] Created dir: /Users/shiv/Documents/elephant-bird/build/gen-java
init-ivy:
[get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar
[get] To: /Users/shiv/Documents/elephant-bird/build/ivy-2.2.0.jar
resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
[ivy:retrieve] :: Ivy 2.0.0-rc2 -<PHONE_NUMBER>4207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /Users/shiv/Documents/elephant-bird/ivysettings.xml
[ivy:retrieve] [xml parsing: ivy.xml:4:117: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed to appear in element 'configurations'. in file:/Users/shiv/Documents/elephant-bird/ivy.xml
[ivy:retrieve] ]
BUILD FAILED
/Users/shiv/Documents/elephant-bird/build.xml:114: syntax errors in ivy file: java.text.ParseException: [xml parsing: ivy.xml:4:117: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed to appear in element 'configurations'. in file:/Users/shiv/Documents/elephant-bird/ivy.xml
]
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.getModuleDescriptor(AbstractModuleDescriptorParser.java:342)
at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:102)
at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:183)
at org.apache.ivy.Ivy.resolve(Ivy.java:502)
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:234)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:207)
at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:154)
at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 10 seconds
On Feb 27, 2012, at 4:27 PM, Travis Crawford wrote:

This looks like a different error - looks like it got past your previous error, which complained about the ivy xml files being malformed. At the beginning of ivy:retrieve it prints the Ivy version being used - are you now getting the expected version I pasted above?
This looks like your ivy cache may have issues. Can you nuke /Users/shiv/.ivy2/cache (or move it off to the side) and try again?

Reply to this email directly or view it on GitHub:
https://github.com/kevinweil/elephant-bird/issues/149#issuecomment-4206853

If I use it after my "fix" to the ivy.xml file and removing the default-conf, it fails at a more advanced stage. Somehow when using the code on git, I see: This means ivy 2.0 is used instead. I wonder how that is the case.
resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be used
[ivy:retrieve] :: Ivy 2.0.0-rc2 -<PHONE_NUMBER>4207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /Users/shiv/Documents/elephant-bird/ivysettings.xml
[ivy:retrieve] [xml parsing: ivy.xml:4:117: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed to appear in element 'configurations'. in file:/Users/shiv/Documents/elephant-bird/ivy.xml
[ivy:retrieve] ]

Hmm, I found the solution. There is a folder $HOME_folder/.ant that points to ivy 2.0. I needed to nuke that folder to get past that issue. Good to note for newbies. No idea which software exactly used that folder before.


[rails] Add 8.0

Rails 8.0 released — https://rubyonrails.org/2024/11/7/rails-8-no-paas-required

Thanks @zhuravel!


Minor bug fixes

Fixes #299
Fixes #301

@AliabbasMerchant are you sure this solved #299. I think you'll have to type case the auth object as a map[string]interface{} before passing it to the load value.

I checked it. It is working properly, and giving the proper error

Did you try applying utils.exist to the auth object?

@AliabbasMerchant ?

@YourTechBud
I checked it.
config:
rule: match
eval: ==
type: bool
f1: utils.exists(args.auth.id)
f2: true

When the token contains id in the claim, it gives no error.
When the token does not contain the id, it gives Auth: The two fields do not match


MINOR: Use ListOffsets request instead of SimpleConsumer in LogOffsetTest

Included a few clean-ups related to unused variables in tests.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@rajinisivaram, rebased and updated.

One test failure between both Jenkins jobs and not related. Merging to trunk and 2.0.


Home page

After fixing the branch problem.

Awesome work Shoval! also sit with Noy to make sure it's ok with her


Updates and rearrangement.

Added DAU page.

WARDEN Page

Seems like there is some Rapid RNA-Seq content in the WARDEN guide (looks like everything from "Navigating Results" to "Primary Results"?). Each tool should now use screenshots from itself (not use the RRS example for all of the guides). See https://stjude.github.io/sjcloud-docs/guides/tools/chipseq/#analysis-of-results for an example. Also, make sure it follows the same basic structure as RRS and ChIP-Seq (titles of sections, etc).
The link for "See bigWig viewer" is broken.
The "Known Issues" also seems to be RRS.


Question: Adding second translation language

Hi there Macoron,
what a wonderful asset - thank you so much for providing it freely!
I really tried o figoure out how to add a second translation language - but so far I have failed.
So, I was hoping you could help me out on how to add "translateToFrench" method to the Microphone example.
Best whises
/Thomas

Unfortunately, whisper was trained only for English translation. However, you still kinda can translate speech from other languages to French. In WhisperManager set Language field from "auto" to "fr". Now whisper will try to output text in French.
It's not ideal, quality would be relatively low. You would also need a bigger model: small, medium or large.

There are also unofficial French only models, like this. No idea if they would work better or worse for French translation.


[$500] Conversation - Green line does not appear when chat is open

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.8-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Navigate to staging.new.expensify.com
Log into Expensify on the main testing device as User A
On another device, log in to another account as User B
User A open conversation with User B
User B send some messages to User A

Expected Result:
Green line should appear since new messages was sent
Actual Result:
Green line does not appear when chat is open
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/f5b172f9-5160-4f46-8e20-238f3cef18d3
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0154028f533f92c290
Upwork Job ID:<PHONE_NUMBER>324459008
Last Price Increase: 2023-12-12

This looks like a regression from https://github.com/Expensify/App/issues/27456

You're so easy to say "regression"

My logic is the following:

There is a clearly described expected behavior in the issue.
The expected behavior is achieved if the linked changes are reverted.

Therefore, I assume that the offending PR is breaking the expected behavior and therefore it's a regression.
Is this logic incorrect, @aimane-chnaif?

Expected Result and Actual Result are reversed

Then this is a different talk. I usually tend to trust the Issue author with the expected behavior to be correct, therefore am "easy to say "regression".
Thank you for clarifying 🙂

@aimane-chnaif can we bring this chat to #expensify-bugs and clarify the expected behavior so we can either fix or close this issue?

Thanks for the ping. Yes, this is expected behavior. Since user A is active on a chat with user B, new marker should not appear. we can close this. I am going to create a master issue to update QA tests


visualization typos

@yuvipanda really simple fixes of the README

@zonca I gave you and @aculich admin rights here too!


Not an issue, but could we go lower than 100ms?

Apologies in advance if I'm using bad GitHub protocol here...I'm as new and as noob as they come, and I'm not in tech at all
Anyway, any chance we could set the speed to below 100ms? I'm absolutely certain my keystrokes aren't even close to théfastest around (did you see that?) but 100ms is still giving me 1 or 2 unintentional accent insertions every time I'm typing something.
50ms? 25ms? 20ms? I'm sure there's some realistic floor to that speed, but as I'm finding out, 100ms is just too much space.
Thank you for théawesome PowerToy (again, you see that right?) Also thénew (:p) 'Set Language' option from v0.63.0 is very welcome!

Hello, since 200 ms has been implemented in the tool, and since the last release it propose to be modified as you wish:
https://github.com/damienleroy/PowerAccent/releases/tag/1.3.2

Just notice you are talking about PowerToys, it is the same:


porting MM Turing from -v1 to -v2 [do not merge]

Codecov Report

Merging #216 (08c09b6) into develop (8131333) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 08c09b6 differs from pull request most recent head 3b74378. Consider uploading reports for the commit 3b74378 to get more accurate results

@@           Coverage Diff            @@
##           develop     #216   +/-   ##
========================================
  Coverage    71.73%   71.73%
========================================
  Files           68       68
  Lines         2257     2257
  Branches       335      335
========================================
  Hits          1619     1619
  Misses         638      638

Flag
Coverage Δ

batch-submitter
59.59% <ø> (ø)

contracts
89.52% <ø> (ø)

core-utils
54.48% <ø> (ø)

data-transport-layer
37.68% <ø> (ø)

message-relayer
71.69% <ø> (ø)

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

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8131333...3b74378. Read the comment docs.


is this architecture still can use after the new update android studio? 🤔

still dude, before jetpack compose release. Try to see the update, all gradle version has been updated


Switch ports not displayed correctly

Hi @charlie-haley,
Thanks for the recent update of the Grafana dashboard!
Unfortunately, it didn't work out-of-box and I had to make a modification regarding the ports query:
The query below doesn't return all ports of the switch
omada_port_link_speed_mbps{switch_mac="$Device", vlan_id="", site="$Site"}

After removing vlan_id="":
omada_port_link_speed_mbps{switch_mac="$Device", site="$Site"}
the port section starts displaying all ports.
This works for the TL-SG3428 v2.0 switch as you can see in the screenshot below (renamed Disabled to Not Connected):

However the ports of my two other switches TL-SG2008 and TL-SG2218 don't show as expected. After some digging it turns out that the above query returns for each port that has no connection (marked in red) a value of 10 MB/s instead of the expected 0.

After some more digging, I did the rest call  for the TL-SG2008  to get the port status. and as you can see the json shows for port 5 a linkStatus of 0, while the query shows a speed of 10 MB/s.
switch TL-SG2008:
"portStatus": {
                "port": 5,
                "linkStatus": 0,
                "linkSpeed": 1,
                "duplex": 2,
                "poe": false,
                "tx": 0,
                "rx": 0,
                "stpDiscarding": false
            },

Compared to a disconnected port on the TL-SG3428 v2.0
 "portStatus": {
                "port": 25,
                "linkStatus": 0,
                "linkSpeed": 0,
                "duplex": 0,
                "poe": false,
                "tx": 0,
                "rx": 0,
                "stpDiscarding": false
            },

The difference is that the TL-SG2008 reports linkSpeed = 1, while TL-SG3428 v2.0 reports linkSpeed = 0 for ports that are not connected. I am not sure why the TL-SG2008 reports linkSpeed = 1, while there is no connection.
In the omada exporter source code, I found these line https://github.com/charlie-haley/omada_exporter/blob/89772bc1aef9f5e3e1720f7242fbd7958a661fe7/pkg/omada/handler.go#L74-L85
And they might be changed to the snippet below, so that in all cases where the LinkStatus is 0 or the LinkSpeed is 0, the returned linkSpeed is 0:
if p.PortStatus.LinkStatus == 0 || p.PortStatus.LinkSpeed == 0 {
	linkSpeed = 0
}
if p.PortStatus.LinkSpeed == 1 {
	linkSpeed = 10
}
if p.PortStatus.LinkSpeed == 2 {
	linkSpeed = 100
}
if p.PortStatus.LinkSpeed == 3 {
	linkSpeed = 1000
}

Hope this helps.
Regards,
Raymond

I've created a PR #45


BXMSPROD-560 Revert "Remove yarn.lock (#20)" yarn.lock entry removed from .gitignore

BXMSPROD-560

@Ginxo hi! Following up on your comment on the previous PR.. What kind of errors did you see on appformer-js? Do you have some logs or a JIRA somewhere?

@ginxo I do not see the tool being installed or executed in the Jenkins build logs. Imho you need to install it in Prepare part (globally) and then execute it before yarn run init ... step in build.

@tiagobento as I said here https://github.com/kiegroup/kogito-tooling/pull/29#issuecomment-548227537 there are no current problems with appformer-js specifically but they can appear in the future (because the lock file absence), so we need to keep the version integrity somehow and locking files is the way

@Ginxo I am not sure why, but I can't see the steps you added in logs.

@domhanak I noticed that, is there a way to relaunch it (without adding anything new)?

Jenkins retest this

@Ginxo not sure we will see if the above comment works

@Ginxo check here - https://rhba-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/KIE/job/kogito/job/kogito-tooling/job/PR-32/4/console , I modified the steps a bit:
I kept  sh "npm install -g lock-treatment-tool --registry=${NPM_REGISTRY_URL}" in prepare step
but I moved
locktt --registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/ before sh("yarn run init & yarn run build:prod")
could you please update it?

Rerunning it again to double check

@domhanak done

@Ginxo Thanks, I will manually add your changes and do a rerun in case the build does not account for them. But this should be all! Thanks! :)

@domhanak Jenkins is still failing. Is there anything missing?

@Ginxo Please make sure to update the yarn.lock file, since master has been updated.

@tiagobento yarn.lock updated according to the latest master version

Well, this looks good to me. I don't understand why Jenkins is still failing, though. @domhanak @mareknovotny @Ginxo It should start working for future PRs once merged?

@tiagobento according to https://github.com/kiegroup/kogito-tooling/pull/36 yarn.lock removed

@tiagobento It fails because the Jenkinsfile change is not taken into account. I rerun it with the changes from this PR and it passes. So feel free to merge.


add esda.moran.Moran_BV visualizations to splot.esda

Add moran_bv_scatterplot(), plot_moran_bv_simulation() and plot_moran_bv() to splot.esda

[x] add functionality
[x] add documentation
[x] add tests
[x] integrate in notebook

This PR is an addition to #17

the hdf5 error is bizarre. I've just tried restarting the build, so we'll see where that goes.

note that the hdf4/5 libraries are coming from conda-forge.
I think what we want is to append this to the config:
conda config --append channels conda-forge
so that only packages that aren't in conda are grabbed from conda forge.

Also, do you know what, exactly, we need from the forge? if so, we could just grab that only with a separate conda install -c conda-forge

Ok thank you, I can try and see what I can do about the condo-forge issues. Additionally I found this: https://github.com/conda-forge/geopandas-feedstock/issues/28. I'll look into it later, it seems like the fix needs a bit of trial and error :)

It is still failing :( It seems to be this issue: https://github.com/conda-forge/fiona-feedstock/issues/82. The condo-forge people are working on it, it seems.

@ljwolf all working now.


nulls in bad places

using kotlin and gson (and various other pojo tools) creates  conditions where nulls exist in places they didnt before.  this fix is not a cure for the problem but it reduces the occasion where something is computed and then the accessor returns a value where the pojo still stores a NULL and emits nulls when using bean pattern code.

Can you resubmit this without @scionaltera's commits?


Adding a test for making sure we login after a 401 error

@anneclairelh is it still an open issue ?

There's no context or anything, so let's close it


Added Skin files

Group.as, Skin.as, SparkSkin.as, BorderContainerSkin.as, DefaultItemRenderer.as and updated GroupBase.as

version not updated . all statements in method like setMXMLContent in Group should be commented you left loop n some statements & other parts are commented.
Again, there are APIs in here that are not being used by our app, like mxmlContentChanged,blendModeChanged,blendShaderChanged in Group. These should be commented out . Merging this Pull Request for now , Group is needed for some API's in progress ( VGroup,HGroup )

GroupBase.as is outdated file. Create separate PR for GroupBase.as , Delete it from current


Switch to Go modules

Switch import paths from gopkg.in to GitHub and switch Dep to Go modules.
This also bumps the client version to v4.

Waiting for someone to enable CIs :)

@bzz Definitely. Also, still waiting for AppVeyor CI pass.

JFYI go test all on current master does not seem to pass.
Sorry for not noticing that earlier. Similar failures were rised as relevant in module migration in enry so posting it here:
# github.com/pkg/errors
vet: ../../../go/pkg/mod/github.com/pkg/errors@v0.8.0/bench_test.go:26:6: toperr declared but not used
FAIL	github.com/pkg/errors [build failed]

@bzz go test all runs test not only for the current project but for all other packages in GOPATH (or required by the module). Thus, this failure is not related to Go client - it's a test failure in github.com/pkg/errors. All we can do is bump the dependency version when they fix it.

I know, @dennwc and thought the same, it's just that a different opinion was expressed by @creachadair at https://github.com/src-d/enry/pull/219#issuecomment-481302394 so I'm just sharing it here.
Would be good to treat those uniformly somehow, given that there is no conceptual difference between these two.

I know, @dennwc and thought the same, it's just that a different opinion was expressed by @creachadair at src-d/enry#219 (comment) so I'm just sharing it here.
Would be good to treat those uniformly somehow, given that there is no conceptual difference between these two.

Well, we should probably not be using go test all in our CI, which I think would simplify both cases.

Agree! But I'm a bit confused - I'm not aware of anyone using go  test all on CI so far.

Agree! But I'm a bit confused - I'm not aware of anyone using go test all on CI so far.

Sorry, based on https://github.com/bblfsh/go-client/pull/118#issuecomment-481628566 I thought maybe you were saying our failures were due to that. If go test ./... from the module root passes, I think we should be OK.