setBlock for players and FakePlayers?

Shouldn't we have a these methods in BlockVolume?
/* Returns true if the block has been set */
boolean setBlock(Vector3i position, BlockState block, Player player);

boolean setBlock(Vector3i position, BlockState block, String fakePlayer /* Or PluginName */);

/* For Bulk Actions, Both arrays should have the same size */
boolean setBlock(Vector3i[] position, BlockState[] block, Player player);

boolean setBlock(Vector3i[] position, BlockState[] block, String fakePlayer);

These methods would than give of an event, so other plugins can deny the placement. With this plugins easily could modify blocks, without having to worry if other plugins agree with it.

No, these shouldn't be in block volume as a block volume could be a buffer. There is no guarantee that a block volume contains the player placing the block. This should go in extent.
It seems to me like this could be made more generic. I don't really like this. Too specific.

On Apr 8, 2015, at 10:08 AM, Thomas Vanmellaerts<EMAIL_ADDRESS>wrote:
Shouldn't we have a these methods in BlockVolume?
/* Returns true if the block has been set */
boolean setBlock(Vector3i position, BlockState block, Player player);
boolean setBlock(Vector3i position, BlockState block, String fakePlayer /* Or PluginName */);
/* For Bulk Actions, Both arrays should have the same size */
boolean setBlock(Vector3i[] position, BlockState[] block, Player player);
boolean setBlock(Vector3i[] position, BlockState[] block, String fakePlayer);
These methods would than give of an event, so other plugins can deny the placement.
—
Reply to this email directly or view it on GitHub.

It doesn't need to do the player blockplace animation. It just has to place the block for the player. So that it gives a correct event. Maybe a OfflinePlayer should fit better.

To place a block, a player needs to be in the same volume as that block. Hence the block volume must also be an entity universe. This is a contradiction.
But, Extent extends both block volume and entity universe. This interface could accept these methods.

On Apr 8, 2015, at 10:45 AM, Thomas Vanmellaerts<EMAIL_ADDRESS>wrote:
It doesn't need to do the player blockplace animation. It just has to place the block for the player. So that it gives a correct event. Maybe a OfflinePlayer should fit better.
—
Reply to this email directly or view it on GitHub.

These methods would be out of place in block volume: specifc methods for specific cases don't belong in a generic interface for generic usage.

Oh indeed this would fit better in the Extent class. I didn't really looked in to in what class it would fit.

So essentially what you're asking here is to include a Cause argument?
Something like
boolean setBlock(Vector3i position, BlockState block, Cause customCause);

@SpongePowered/developers add this to Extent/Location?

To be honest, I'd only want to bother seeing these sort of "fake" blocks being sent through to Viewers, consider that it's their local world etc, that part is easy.

@thomas15v Is the parameter:

The player that should see the block change (as in a fake block), or
The player the block should appear to be placed by (as in a cause to the "place block" event)?

@JBYoshi Do you mean "The block should appear to be placed by (as in a cause to the "place block" event)?"
I personally took this to be a request for methods to set a block, given a cause of player for automatic event handling.
@thomas15v Could you please clarify exactly what you want?

@DarkArc I worded that part wrong. Changed to "The cause for the block change events".

@DarkArc
What I want is basically making sure that plugins can block each other as well. So we don't end up like forge where setting blocks doesn't require any validation.
The thing is a changement of a block is mostly caused by a player. If a plugin is breaking a block because a player did some action, It should break the block in name of the player.
And in case a player has nothing to do with this, it better gives the plugin name/object as cause, than other plugins can also figure out what caused the change.
What @simon816 proposed is basically exactly what I mean.

If this happens, can we narrow the type of the cause to a PluginCause for the sake of sanity for anticheat plugins? that way it's impossible for plugins to provide a cause that isn't flagged as being somewhat involved by a plugin? But how would this work when checking the cause was caused by a player? Some sort of interface for PluginPlayerCauses?

This is closely tied to #921, in fact, likely will be closed with #921.

Added in https://github.com/SpongePowered/SpongeAPI/commit/0985e72cc37dd1a58d5e45e5726935d2841aac52

Is there a reason that his is only available in api 6 and not 5?

Because 5 < 6 and we are up to 7?
5 is too far back now, unlikely to see it added.

@Sir-Will This was added just before the version 3 release and has not changed since. It's still available in the same interface.

@simon816 hm, I'm getting AbstractMethodError using it.
Cause cause = Cause.of(NamedCause.simulated(event.player()));
fireLocation.getExtent().placeBlock(fireLocation.getBlockPosition(), BlockTypes.FIRE.getDefaultState(), Direction.DOWN, cause);

That's because the API is not implemented in the current builds. See https://github.com/SpongePowered/SpongeCommon/pull/86

I'm confused, I thought you said it is implemented.
So it's implemented in the API but that API part is not implemented in SpongeCommon?

The methods have been defined in the API, but are not yet implemented in SpongeCommon


fix(HMS-1806): closing of http response body in Pendo client

In one call the body was not closed and in another it was not closed when HTTP status was other than OK.
Now, in both usages, it is "deferred" closed right after checking that response did not error-out (and thus .Body should be present).
Note: // nolint:errcheck is used as linter complains but the code used is the one mentioned in official docs of net/http package.

Ack.  But I'm curious: what was the impact of these bugs? Memory or FD leak?  Something else?

When I googled it, the responses were mentioning file descriptors and connections the client reuses (keep-alive).


Better example for CV

In the doc the first CV example returns 0.0. Maybe we could have a more practical example there?
http://optunity.readthedocs.org/en/latest/user/cross_validation.html
@opt.cross_validated(x=data, y=labels, num_folds=3)
def cved(x_train, y_train, x_test, y_test):
    train(x_train, y_train)
    predict(x_test)
    return 0.0

cved()

Yeah sure. I made that one to show what the code typically looks like, but
it's not the bestest example for sure.
2015-02-03 9:58 GMT+01:00 Jaak Simm<EMAIL_ADDRESS>
In the doc the first CV example returns 0.0. Maybe we could have a more
practical example there?
http://optunity.readthedocs.org/en/latest/user/cross_validation.html
@opt.cross_validated(x=data, y=labels, num_folds=3)def cved(x_train, y_train, x_test, y_test):
train(x_train, y_train)
predict(x_test)
return 0.0
cved()
—
Reply to this email directly or view it on GitHub
https://github.com/claesenm/optunity/issues/36.

Yeah, maybe not too crucial as there is a nice CV example in the main doc page. Feel free to close this issue.

Nah, I'll leave it open so I won't forget to improve it eventually. Won't
be in the next few days though ...
2015-02-03 10:27 GMT+01:00 Jaak Simm<EMAIL_ADDRESS>
Yeah, maybe not too crucial as there is a nice CV example in the main doc
page. Feel free to close this issue.
—
Reply to this email directly or view it on GitHub
https://github.com/claesenm/optunity/issues/36#issuecomment-72618993.

A full notebook is available on cross-validation now at http://optunity.readthedocs.org/en/latest/notebooks/notebooks/basic-cross-validation.html


batcher: concurrent batch submission

If I'm not wrong celestia cannot handle concurrent transactions right now (account sequence mismatch) which is required for concurrent batch submission introduced in the latest optimsim develop branch.
We need to find a workaround for this by either disabling concurrent batch submission or locking the client so that it only submits celestia transactions in sequence.

Can try this with reusing nonce management code from txmgr.go

This is not an issue, it seems like the concurrent submission was happening due a bug in Optimism develop, which was later fixed.


When will the code be released？

The information provided in the paper is not enough, when will the code be released

In order to make the code structure complete and readable, it takes some time to organize it. Currently, we only release the dataset and there is no time available to release the code.
Feel free to contact me if you are in urgent need of the code .

Thank you for your reply, it is convenient to provide your email address or other contact information？

In order to make the code structure complete and readable, it takes some time to organize it. Currently, we only release the dataset and there is no time available to release the code. Feel free to contact me if you are in urgent need of the code .

Hi，do you plan to release all the code?

HI, the code used to generate dataset will NOT been released. For the model and training code, we will release in July.

hi, i'm insterested in your work, and in urgent need of the code, due to i want to know the implementation of coarse to fine voxel encoder. And i can't find any contact information of you, so i give my wechat:<PHONE_NUMBER>1, looking forward to your reply, thanks!

@waveleaf27
Hi. I'm extremely interested in your research. I'm also participating in the CVPR challenge and I would like to use the code right away for further research. Specifically, I'm interested in the part of training BEVFormer with Waymo Occupancy data. I would be grateful if you could send it to the following email<EMAIL_ADDRESS>Thank you.

In order to make the code structure complete and readable, it takes some time to organize it. Currently, we only release the dataset and there is no time available to release the code. Feel free to contact me if you are in urgent need of the code .

Thanks for your great research on c2f solution on occupancy. I'm also trying to explore the c2f way to deal with this question and want to do some expirement. I would be grateful if you could share me with the c2f code<EMAIL_ADDRESS>Thank you.

Very exciting work! Could you share your source code for learning purposes? Thank you<EMAIL_ADDRESS>

In order to make the code structure complete and readable, it takes some time to organize it. Currently, we only release the dataset and there is no time available to release the code. Feel free to contact me if you are in urgent need of the code .

Very exciting work! Could you share your source code for learning purposes? Thank you<EMAIL_ADDRESS>

@1349949 please see this request.

”Feel free to contact me if you are in urgent need of the code .“ ， 回复了又删掉 是啥意思，你这格局也就芝麻大小啊

The code has been released, and in the upcoming period, our team members will re-organize the code and improve the readability.

The code and model has been released in the ‘code’ branch for both Nuscene and Waymo dataset . We will further improve code quality.

see the 'code' branch, update last work @Smarome

But I not find auto-labeling preprocessing script in this branch, will you release this code?

see the 'code' branch, update last week @Smarome

But I not find auto-labeling preprocessing script in this branch, will you release this code? @waveleaf27

At present, the code used for ground-truth (GT) construction will not be released. This decision was made to prevent challenge participants from using scripts to generate their submissions.
The repo only contain the model code.


On ensuring the database's relevance

Was borrowing the domains for the hosts file and noticed that rlwpx_trackers.hosts contains the domain zona.media, an active news media outlet or s0.wp.com (wp's cdn). There are also some legit sites under rlwpx_misc.hosts.

Hi @babanga , what did you need changed? I'm confused.

Hey! Some lists undeer the blacklist directory confused me. I merged them and noticed that some domains are pretty legit, like "zona.media" or "s0.wp.com". I'll stick with rlwpx_advertising.hosts for now

I see. That list is pretty old. I can't even remember where I sourced them 4 years ago!
Thanks for the feedback!


FEATURE rendered html in analyses

Codecov Report

Merging #22 into master will decrease coverage by 0.53%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master      #22      +/-   ##
============================================
- Coverage     34.31%   33.78%   -0.54%
- Complexity      169      174       +5
============================================
  Files            16       16
  Lines           440      447       +7
============================================
  Hits            151      151
- Misses          289      296       +7

Impacted Files
Coverage Δ
Complexity Δ

src/Analysis/Analysis.php
19.14% <0%> (-3.36%)
18 <5> (+5)

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 1547ec1...79cc7a8. Read the comment docs.


Documentation for all configuration options.

[x] url
[ ] headers
[ ] cachebust
[x] ttl

These need test coverage too.


ci(renovate): enable automerge for minor and patch updates

This enables monthly branch automerge for minor and patch updates.
On the first day of each month, Renovate will:

Create a branch for each update, wait for test results
Rebase it any time it gets out of date with the base branch
Automerge the branch commit if it's up-to-date with the base branch, and passing all tests
As a backup, raise a PR only if either tests fail, or tests remain pending for > 24 hours

Summary
automergeType
Using automergeType: "branch" instead of automergeType: "pr" allows for silent updates, because they don't generate GitHub notifications.
See option →
:semanticCommitTypeAll(chore)
This ensures all commits use the chore prefix. It prevents against updates using the fix prefix, which would trigger patch updates of the library.
See preset →
matchCurrentVersion
Automerge will only occur for minor and patch updates unless the packages are v0.x.x.
See option →
Settings change
Historically we haven't been able to use automerge because of branch protection rules. While this is difficult to find consistent information on how to bypass that, it seems that we can get this to work by using the Restrict who can push to matching branches setting, like this:

I haven't found any information that denies or confirms that it would work with automergeType: "branch" and while having Require a pull request before merging enabled as well. We'll have to try and see 🤷🏻♀
If this PR is approved, I'll update the settings accordingly.
Next steps
If this works, we can:

Enable the same setup on the InstantSearch monorepo
Update the Algolia Renovate configuration

FX-2025

@Haroenv What would be required for you to feel confident? What are things you look at when reviewing a dev dependency?

Yes, that would be nicer IMO, monthly would be a cadence where you can keep up with it.
For PRs to be fully autonomous we'd need to test eg. that shipjs is behaving as we expect still and all of its underlying dependencies etc. Or something like a newer version of eslint/typescript has stricter rules and thus will never be merged?

For PRs to be fully autonomous we'd need to test eg. that shipjs is behaving as we expect still and all of its underlying dependencies etc. Or something like a newer version of eslint/typescript has stricter rules and thus will never be merged?

Ship.js is v0.x.x for now so it wouldn't apply. But yes, this is typically something we can hardly test—I would rather exclude it from automerge though rather than wait for us to come up with the rigth way to test it.
Regarding TypeScript or ESLint, normally they shouldn't get stricter in a minor/patch because this would be breaking. And they wouldn't be automerged anyway because linting/type checks wouldn't pass, so Renovate would open a PR and let us handle it.


Slow Loading of Frigate Card Live Feeds

Checklist:

[x ] I updated to the latest version available
[x] I cleared the cache of my browser

Release with the issue:
Last working release (if known):
1.2.0
Browser and Operating System:

Home Assistant via any browser (tested Chrome & Safari)
Home Assistant app for iOS

Description of problem:
Since updating to 1.2.0 and Frigate 9.2.1. When viewing the cards via Lovelace through the iOS app or a web browser the cards take forever to load the live feed (8-10 seconds), but before this update it would load the feeds in a matter of 1-2 seconds. Not sure why it takes so long. Is a Frigate thing or a Frigate-hass-card thing?

Javascript errors shown in the web inspector (if applicable):
The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.
32207 @ styles.ts:367

Additional information:

[Closing due to insufficient information to debug]


⚠ Bofrost.at has degraded performance

In 8fa88fd, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2112 ms

Resolved: Bofrost.at performance has improved in 576f666.


Bookmark button

User Story
As a developer I want a button for adding a bookmark to a resource so that I can save content across apps consistently
Acceptance Criteria

It should have an active and inactive prop

@bpotterbaum add designs to this issue.


Fix error visualization positioning

Pull Request Description
Fixes #7256
Sadly no resizing for error vis yet, it is far too complicated and requires a separate task.
https://github.com/enso-org/enso/assets/6566674/77ddbe78-7f27-41d1-9f63-5dd1d717ecd3
Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

QA Report: :green_apple:

Sadly no resizing for error vis yet, it is far too complicated and requires a separate task.

@vitvakatu do we have a ticket to track this? It would be really useful, as errors are hard to read in the very small box.

There is no ticket yet, and the question is to @wdanilo if we have any design of how should errors be displayed in the new design?

Yes, its in the design for pretty long time already:

However, it does not have good description – I will work on that and add there better description + icon to expand the error msg.


Lambda keyword not colorized correctly

The keyword lambda is being colored as a function call. It should be colored as a built-in function or macro.

Fixed


Mailer stop setting on fly SMTP due to usage of Symfony mailer

Laravel Version: 9.11
PHP Version: 8.0.1
Database Driver & Version: MySQl
Description:
In the early versions of Laravel (6-8) I was able to set the on the fly SMTP configuration for the mail in the queue using swift mailer. But now, due to the removal of Swift mailer, and addition symfony mailer, I am unable to set the on custom STMP on the fly for the users.
The method (Mailer::setSymfonyTransport(TransportInterface $transport);) works fine if the mail is not sent in the queue. However, it stopped working with the queue.
It directly takes the default SMTP.
Steps To Reproduce:
To reproduce the error, please follow below steps

In web.php, in the welcome route, create new SMTP transport using MailManager::createSymfonyTransport($config);
set new transport using Mailer::setSymfonyTransport(TransportInterface $transport);
Create new mail, which implements ShouldQueue
Try to send the mail with the queue functionality.

https://github.com/PareshP-RSW/bug-report
Here I have created the repo. to regenerate the issue.
The repo contains two mail configuration, you can see it in the .env.example (just to show you. In real life it will be base on tenants.So there could be 1000 different SMTP)
Enter smtp config for both the settings.
migrate the DB
Enable the queue in .env
This project has two mailer routes. mail-with-queue and mail-without-queue
mail-with-queue will set the custom config first and then it will put the mail in queue
mail-without-queue will set the custom config first and then it will directly send the email
Issue
=> It set the custom SMTP while sending the mail directly.
=> It uses the default SMTP when sending the mail using queue. (Setting up custom config does not work)
Expected behaviour
=> Custom SMTP should work on Queue also.
Thanks.

Just as a clarification, as I don´t understand very clear:

Sending the email synchronously, e.g. directly with the ->send(...) method works with the changed SMTP
Sending the email asynchronously, e.g. queued with the ->queue(...) method DOES NOT work with the changed SMTP

Is that correct?

Yes I did mean the same. And thank you for the reply on the same.
I have not tried the method which you have described here. I'll try and come back again.

@rodrigopedra
Look likes the method which you have provided me is working fine on the test project for now.
I'll check the same method on my original project which has more than 5000 different dynamic email configs.
Thanks mate for the quick solution.

Thanks @rodrigopedra


Support CloudEvent optional and extension attributes: first step

Description
https://github.com/dapr/dapr/issues/3991 First step：
Modify the Envelope method to support attributes. The time, dataschema, and subject in the CloudEvent spec are all placed in attributes.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

Did this or other related steps make it into the 1.6 release?

Did this or other related steps make it into the 1.6 release?

@greghoover
There is no merge related content to 1.6 for the time being, and a pr is resubmitted: https://github.com/dapr/components-contrib/pull/1460
Mainly to fix the DCO problem.


Allow mods to influence or react to players selecting abilities

An ability isn't selected until it is confirmed by the dialog, but I'm not sure it's possible for mods to interact with it in any meaningful way. We should override the callback function and provide one or two access points for mods so that they can react when an ability is selected/purchased.
Example use case: LWOTC has its own callback function that adds unit value to the current soldier that tracks how many abilities have been purchased outside of normal promotions. This is to make it more and more expensive to purchase multiple class abilities at any rank, encouraging the AP to be spent across multiple soldiers rather than just into the A team.

Depends on PR #41, which adds the custom callback function.

I like it. I thought that it's the #41 that will be adding the entry points, didn't see any and got confused. I'll go merge #41 then.


Add 10k+ rows to a Class in Parse Server

I've got 10k+ new questions objects to my Question class (therefore they don't have objectIds for now). I want to add them to my dashboard. On Parse.com, I would have uploaded a CSV. But Parse Server and open source dashboard don't allow this functionality.
Here is what I tried so far :

Use mongoimport to upload a JSON. All went well. But the created objectIds are really long (Ex:577b7488e9d6261a308ed262) and curiously resembling to each other . They all have at least 80% of the characters in common. And any object that points to a question fetch nothing when trying to fetch the question. So I guessed that bypassing parse server to create objects was a bad idea.
Write a node script to upload the question using Parse save method. But 10k+ objects is way too big and the script always end up failing.
Use this gist that combines curl and cloud code. But my curl request is too

I'm out of ideas.

If it can be useful to anyone:
I created a simple script for generating unique parse like object ids. Added them to my CSV file with column title "_id". Passed it to JSON and used mongoimport. In the JSON I also added createdAt and updatedAt field like so:
"createdAt": {
    "$date": "2016-07-05T11:27:15.784Z"
},
"updatedAt": {
    "$date": "2016-07-05T11:27:15.784Z"
}

Here is my script for unique ids (simple and highly improvable I guess):
var max = 10000

var chars = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0,
	'A', 'Z', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'Q', 'S', 'D',
	'F', 'G', 'H', 'J', 'K', 'L', 'M', 'W', 'X', 'C', 'V', 'B', 'N',
	'a', 'z', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'q', 's', 'd',
	'f', 'g', 'h', 'j', 'k', 'l', 'm', 'w', 'x', 'c', 'v', 'b', 'n']

var idArray = []
for (var i = 0; i < max; i++) {
	var id = ''
	for (var j = 0; j < 10; j++) {
		var randomIndex = Math.floor(Math.random() * chars.length)
		var char = chars[randomIndex]
		id += char
	}
	idArray.push(id)
}

console.log(idArray)

var unique = idArray.reduce(function (a, b) {
	if (a.indexOf(b) < 0) {
		a.push(b)
	}
	return a
}, [])

if (unique.length === max) {
	console.log('Batch is OK')
} else {
	console.log('Bath contains duplicate')
}

I leave this open as this solution doesn't seem very handy to me. And the upload csv or json feature would be a lot greater.

I happened to see your issue while having my second cup of coffee, so it's entirely possible (though unlikely) that I am way off, so I'll let you decide:
parse-server/src/cryptoUtils.js
contains the following:
// Returns a new random alphanumeric string of the given size.
//
// Note: to simplify implementation, the result has slight modulo bias,
// because chars length of 62 doesn't divide the number of all bytes
// (256) evenly. Such bias is acceptable for most cases when the output
// length is long enough and doesn't need to be uniform.
export function randomString(size: number): string {
  if (size === 0) {
    throw new Error('Zero-length randomString is useless.');
  }
  let chars = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ' +
               'abcdefghijklmnopqrstuvwxyz' +
               '0123456789');
  let objectId = '';
  let bytes = randomBytes(size);
  for (let i = 0; i < bytes.length; ++i) {
    objectId += chars[bytes.readUInt8(i) % chars.length];
  }
  return objectId;
}

// Returns a new random alphanumeric string suitable for object ID.
export function newObjectId(): string {
  //TODO: increase length to better protect against collisions.
  return randomString(10);
}

Additionally, when migrating to your own mongodb database, you have to set the failIndexKeyTooLong to false since it defaults to true for standard mongodb configurations
If you look here:
parse-server/src/RestWrite.js
you'll find:
var cryptoUtils = require('./cryptoUtils')
and
RestWrite.prototype.setRequiredFieldsIfNeeded = function() {
  if (this.data) {
    // Add default fields
    this.data.updatedAt = this.updatedAt;
    if (!this.query) {
      this.data.createdAt = this.updatedAt;

      // Only assign new objectId if we are creating new object
      if (!this.data.objectId) {
        this.data.objectId = cryptoUtils.newObjectId();
      }
    }
  }
  return Promise.resolve();
};

It appears that RestWrite.prototype.setRequiredFieldsIfNeeded is responsible for setting all the values that include a randomly generated objectId, a createdAt time and an updatedAt time. In my experience when using Parse, these are the 3 fields that are always defined for any given row (or object, if you prefer) in a table.
I may be wrong and what I've described may not actually cover everything, but it appears that you need to create your own logic to replicate the creation of the following fields:

createdAt
updatedAt
objectId (see parse-server/src/cryptoUtils.js and the function newObjectId()

Keep in mind that the Parse Server handles everything in one place for a reason, so I would actually advise against directly talking to your mongodb instance. I need another cup of coffee.  Give that a shot in an isolated test environment and see if it works the way you want it to.
Another option would be something that uses the REST API by sending batches (of 50 maximum per api call) to the parse server or to simply use a helper cloud code function that you can iterate through:
For example, in python:
import requests
def send_data_to_parse(all_batch_requests):
    headers = {
        "X-Parse-Application-Id": "<appId>",
        "X-Parse-REST-API-Key": "<rest api key, if necessary>",
        "Content-Type": "application/json"}
    batch_requests = {
        "requests": all_batch_requests
    }
    response = requests.post('https://api.yourserver.com/parse/batch', headers=headers, data=json.dumps(batch_requests))
    print response.json()

def create_two_objects_with_parse_api():
    first_request = {
        "method": "POST",
        "path": "/parse/classes/Questions",
        "body": {
            "title": "first question for whatever",
            "text": "Is this a question? really?"
        }
    }
    second_request = {
        "method": "POST",
        "path": "/parse/classes/Questions",
        "body": {
            "title": "second question for whatever",
            "text": "Is this another question? come on dude"
        }
    }
    all_requests = list()
    all_requests.append(first_request)
    all_requests.append(second_request)
    create_two_objects_with_parse_api(all_requests)

I just wrote that up though, and I didn't test it because I've written code like that probably hundreds of times using python to talk with the REST API. Hopefully that's helpful for you.
It may even be easier to do it in the cloud but javascript is too verbose for me personally, especially while I'm enjoying my coffee.

Thank you for your answer ! And thank you for pointing these relevants files to me. It would have save me the pain to write my own script. Your answer convince me that it should be made available in Parse-Dashboard for instance.
Thanks !

Seems that we got a solid answer here, let's close that for now


fix(versions): update Activiti/activiti-cloud-modeling versions into master

UpdateBot pushed helm dependency: common to: 1.1.15

UpdateBot commands:
updatebot push-version --kind helm common 1.1.15

UpdateBot commands:
updatebot push-version --kind helm common 1.1.16


Allows to have rules split in different repos

Current Terraform and Cloudflare provider version
Terraform v1.5.5

provider registry.terraform.io/cloudflare/cloudflare v4.12.0

Description
Create a flag that allows the usage of cloudflare_rulesets that are not complete. This flag will allow to merge new and existing rulesets per kind.
Use cases
We have  a single Cloudflare zone (domain.io) that has multiple hosts (api-dev, api-test, api-uat...) that are being created together with our product, so we have one for dev, another test and so on.
As one extra resource that is being create is the WAF filter to allow some problematic traffic (graphql queries).
With the introduction of the resource "cloudflare_ruleset" we are not allowed to manage it in the same way and we will need to decouple the DNS/WAF from our product pipeline.
While I understand the issues as explained at #2423 I would prefer to assume the risk to create multiple resources, with the configuration per hots in multiple terraform states.
Potential Terraform configuration
resource "cloudflare_ruleset" "zone_custom_firewall" {
  merge_existing_rulesets = enabled

  zone_id = var.cloudflare_zone_id

  name        = "Rule for ${var.project_id}"
  description = "This rule is managed by Terraform in the project XYZ"
  kind        = "zone"
  phase       = "http_request_firewall_custom"

..

References
This is similar to #2423

closing this off as a duplicate.
we aren't currently tracking this externally due to some unknowns. if/when this comes to fruition, the team will add support to the provider.

I added a workaround using multiple repositories here: https://github.com/cloudflare/terraform-provider-cloudflare/issues/3027#issuecomment-2138260815


[WIP] Playlists

Add playlists, as proposed in #123.

Features:

All torrents are now treated as playlists (for one-file torrents, that is a one-file playlist)
Playback initially starts at the first file (so defaultPlayFileIndex has to go), then we store index of the most recently played file, so that we can pick up where we left off later on
Control playback through on-screen controls, menu or dedicated media keys
Shuffle and repeat options

Known issues:

Error thrown when returning from preferences view to the player. See #653

rendering error: Cannot read property 'startPiece' of undefined
	TypeError: Cannot read property 'startPiece' of undefined
    at renderLoadingBar (D:\Workspace\webtorrent-desktop\renderer\views\player.js:605:24)
    at renderPlayerControls (D:\Workspace\webtorrent-desktop\renderer\views\player.js:347:9)
    at Object.Player (D:\Workspace\webtorrent-desktop\renderer\views\player.js:22:9)
    at getView (D:\Workspace\webtorrent-desktop\renderer\views\app.js:81:20)
    at App (D:\Workspace\webtorrent-desktop\renderer\views\app.js:44:30)
    at render (file:///D:/Workspace/webtorrent-desktop/renderer/main.js:122:12)
    at redraw (D:\Workspace\webtorrent-desktop\node_modules\main-loop\index.js:65:23)
    at D:\Workspace\webtorrent-desktop\node_modules\main-loop\node_modules\raf\index.js:72:10

At the moment there are no custom playlists. Only multi-file torrents are treated as such. I could try to implement that feature, but there is the question of

whether we want it in the player
if so, how do we want this to work for the user

One idea is to have a separate tab in the home screen for saved playlists. Also, right-click context menu on the torrent list would have an Add to playlist option. However, I'm still not sure and would like to hear some opinions before I begin work.

The core feature is ready, however there is still a bunch of things to be done before even considering a merge.
To do:

Rebase with master, add appropriate Windows thumbnail buttons
Fix LocationHistory problem (#653, #656)
Integrate with VLC. At the moment there is Play in VLC button working, but it handles only one file and automatically returns to the home screen after the playback has terminated - even if the playlist has more files in it. I think we need options to open the whole playlist in VLC (#624), control playback, e.g. with HTTP, and start playback of the next file in the player on VLC exit.
Integrate with DLNA, Chromecast and AirPlay streaming. I haven't dove into the details yet. Suggestions would be very welcome.
Auto-resize upon changing tracks (see discussion in #648)

Also, any idea why Travis stopped responding to my PRs? He stays in the Waiting for status to be reported state forever. Meanwhile, the same commits on my repo are validated properly.

I tried to get Travis to kick off a new build -- no idea why it's not working.

I'm closing the PR for now - the feature still needs some polishing (see: to do list above) and I won't be able to work on it until next month. If anyone wants to continue development before that time, feel free to take over my branch.

@Goldob No problem -- thanks for all the work you did here. I'm sure whoever picks up the task will be able to use what you've got here.


Updates from package template

This PR has been generated by a script, it should update the repo with the latest changes from the package template.

@Cadair  it looks like the runs are failing because pre-commit doesn't like the "merge syntax" blocks?

pre-commit.ci autofix


How to implement a WinUSB device

Hello, I would like to ask how to implement a WinUSB device. I am looking to implement the CMSIS-DAP V2 interface, but after reviewing the API, I still don't know how to proceed. Could you provide some guidance or helpful information?
Reference：
CMSIS-DAP Configure USB peripheral

Check out the custom_interface examples. The host-side example should work on Windows and uses WinUSB. There is no need for any INF files provided that you are using Windows 10 or later.

Check out the custom_interface examples. The host-side example should work on Windows and uses WinUSB. There is no need for any INF files provided that you are using Windows 10 or later.查看 custom_interface 示例。主机端示例应在 Windows 上运行并使用 WinUSB。如果您使用的是 Windows 10 或更高版本，则不需要任何 INF 文件。

thank you，I am using the following code to generate a WinUSB composite device.
`
usb_gadget::remove_all().expect("cannot remove all gadgets");
// WinUSB
let (mut ep1_rx, ep1_dir) = EndpointDirection::host_to_device();
let (mut ep2_tx, ep2_dir) = EndpointDirection::device_to_host();
let winusb_guid = uuid!("CDB3B5AD-293B-4663-AA36-1AAE46463776");
let (mut custom_winusb, winusb_handle) = Custom::builder()
    // WinUSB
    .with_interface(
        Interface::new(Class::vendor_specific(0x00, 0x00), "Gadget CMSIS-DAP V2")
            .with_os_ext_compat(OsExtCompat::winusb())
            .with_os_ext_prop(OsExtProp::new("DeviceInterfaceGUIDs", OsRegValue::MultiSz(vec![winusb_guid.to_string()])))
            .with_endpoint(Endpoint::bulk(ep1_dir))
            .with_endpoint(Endpoint::bulk(ep2_dir)),
    )
    .build();

// CDC
let (serial,serial_handle) = Serial::new(SerialClass::Acm);

let udc = default_udc().expect("cannot get UDC");
let reg = Gadget::new(
    Class::new(0xEF, 0x02, 0x01),
    Id::new(0x0ADE, 0xEDA0),
    Strings::new("manufacturer", "Gadget CMSIS-DAP", "12345678"),
)
.with_config(Config::new("CMSIS-DAP")
            .with_function(winusb_handle)
            .with_function(serial_handle)
        )
.with_os_descriptor(OsDescriptor::microsoft())
.bind(&udc)
.expect("cannot bind to UDC");

`
When running the code, I receive the following prompt:
`
Custom function at /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
ep1 unclaimed: Err(Os { code: 95, kind: Uncategorized, message: "Operation not supported" })
ep1 real address: 255
ep1 descriptor: EndpointDesc { endpoint_address: 2, attributes: 2, max_packet_size: 512, interval: 1, audio: None }
ep2 unclaimed: Err(Os { code: 95, kind: Uncategorized, message: "Operation not supported" })
ep2 real address: 255
ep2 descriptor: EndpointDesc { endpoint_address: 130, attributes: 2, max_packet_size: 512, interval: 0, audio: None }
`
Windows recognizes the serial port and WinUSB, but when communicating via libusb, it throws an error:
 "could not claim interface: Custom { kind: Unsupported, error: "Could not find DeviceInterfaceGUIDs in registry. WinUSB driver may not be correctly installed for this interface." }".
I have reviewed the code, and it seems the os_ext_props is not being used. I am not sure where the problem lies.

I don't know how to add WinUSB Microsoft OS 2.0 descriptor

Please verify first that the examples work on your system.

Please verify first that the examples work on your system.请首先验证这些示例是否适用于您的系统。

I am also unable to get the code from custom_interface_device.rs to work properly. The Windows Device Manager displays it as an unrecognized device. The Linux-side log is as follows:
[DEBUG] removing gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[DEBUG] unmounting functionfs usb-gadget0-0 from /dev/ffs-usb-gadget0-0
[DEBUG] removed gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[DEBUG] registering gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[WARN] WebUSB descriptor is unsupported by kernel
[DEBUG] creating function at /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
[DEBUG] creating functionfs directory /dev/ffs-usb-gadget0-0
[DEBUG] mounting functionfs into /dev/ffs-usb-gadget0-0 using options MountOptions { no_disconnect: false, rmode: None, fmode: None, mode: None, uid: None, gid: None }
[DEBUG] writing functionfs descriptors to /dev/ffs-usb-gadget0-0/ep0
[DEBUG] writing functionfs strings to /dev/ffs-usb-gadget0-0/ep0
[DEBUG] functionfs initialized
[DEBUG] opening endpoint file /dev/ffs-usb-gadget0-0/ep1 with queue length 16
[DEBUG] opening endpoint file /dev/ffs-usb-gadget0-0/ep2 with queue length 16
[DEBUG] creating config at /sys/kernel/config/usb_gadget/usb-gadget0/configs/c.1
[DEBUG] adding function /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
[DEBUG] gadget at /sys/kernel/config/usb_gadget/usb-gadget0 registered
[DEBUG] binding gadget RegGadget { name: "usb-gadget0", is_attached: true } to Some(Udc { name: "4100000.udc-controller" })
Custom function at /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
ep1 unclaimed: Err(Os { code: 95, kind: Uncategorized, message: "Operation not supported" })
ep1 real address: 255
ep1 descriptor: EndpointDesc { endpoint_address: 1, attributes: 2, max_packet_size: 512, interval: 1, audio: None }
ep2 unclaimed: Err(Os { code: 95, kind: Uncategorized, message: "Operation not supported" })
ep2 real address: 255
ep2 descriptor: EndpointDesc { endpoint_address: 129, attributes: 2, max_packet_size: 512, interval: 0, audio: None }
Event: Enable
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
receive empty
sent data 0 of size 512 bytes
sent data 1 of size 512 bytes
sent data 2 of size 512 bytes
sent data 3 of size 512 bytes
sent data 4 of size 512 bytes
sent data 5 of size 512 bytes
sent data 6 of size 512 bytes
sent data 7 of size 512 bytes
sent data 8 of size 512 bytes
sent data 9 of size 512 bytes
sent data 10 of size 512 bytes
sent data 11 of size 512 bytes
sent data 12 of size 512 bytes
sent data 13 of size 512 bytes
sent data 14 of size 512 bytes
sent data 15 of size 512 bytes
sent data 16 of size 512 bytes
sent data 17 of size 512 bytes
no event
receive empty
send timeout
After installing the libusb-win32 driver with zadig-2.8, I encounter the following error message when using nusb:
could not claim interface: Custom { kind: Unsupported, error: "Device driver is "libusb0", not WinUSB" }
I have built an embedded Linux system using buildroot, and the USB device is an OTG device. I have added all the kernel configurations mentioned in the documentation.

I modified the Linux code according to gadget: add WebUSB, and now there is no "[WARN] WebUSB descriptor is unsupported by kernel" message being printed. The log is as follows:
[DEBUG] removing gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[DEBUG] unmounting functionfs usb-gadget0-0 from /dev/ffs-usb-gadget0-0
[DEBUG] removed gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[DEBUG] registering gadget at /sys/kernel/config/usb_gadget/usb-gadget0
[DEBUG] creating function at /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
[DEBUG] creating functionfs directory /dev/ffs-usb-gadget0-0
[DEBUG] mounting functionfs into /dev/ffs-usb-gadget0-0 using options MountOptions { no_disconnect: false, rmode: None, fmode: None, mode: None, uid: None, gid: None }
[DEBUG] writing functionfs descriptors to /dev/ffs-usb-gadget0-0/ep0
[DEBUG] writing functionfs strings to /dev/ffs-usb-gadget0-0/ep0
[DEBUG] functionfs initialized
[DEBUG] opening endpoint file /dev/ffs-usb-gadget0-0/ep1 with queue length 16
[DEBUG] opening endpoint file /dev/ffs-usb-gadget0-0/ep2 with queue length 16
[DEBUG] creating config at /sys/kernel/config/usb_gadget/usb-gadget0/configs/c.1
[DEBUG] adding function /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
[DEBUG] gadget at /sys/kernel/config/usb_gadget/usb-gadget0 registered
[DEBUG] binding gadget RegGadget { name: "usb-gadget0", is_attached: true } to Some(Udc { name: "4100000.udc-controller" })
Custom function at /sys/kernel/config/usb_gadget/usb-gadget0/functions/ffs.usb-gadget0-0
However, Windows is still unable to recognize the device created by custom_interface_device.rs.

Could you test with a Raspberry Pi 4 using Ubuntu 23.10 as the operating system and see if the problem occurs there as well?

I'm very sorry, I don't have a Raspberry Pi 4 development board. If you need any more detailed information, you can tell me the steps, and I can perform some tests. I am using an Allwinner T113-S3.

I cannot help with direct debugging. However, I have verified the software using the system described above. So I suggest the best way to figure out what is wrong, is to start with a known good configuration.

Thank you, we will later learn how to directly use the gadget to simulate the device I need and see if there is a problem with the hardware itself. If there are any new developments, I will reply here.


Token indices sequence length is longer than the specified maximum sequence length for this model (12065 > 12000). Running this sequence through the model will result in indexing errors

Token indices sequence length is longer than the specified maximum sequence length for this model (12065 > 12000). Running this sequence through the model will result in indexing errors
Occured train with LLAMA 3 training :
https://colab.research.google.com/drive/1XbH1vpzrGgx75EpDO-mFxXn4G2aatxr-?usp=sharing

@saitej123 I think you fit a OOM out of memory error - the max seq length issue is fine - we auto truncate it in Unsloth


make quotes visible somewhere

so far we have:

Just now visiting open-wc.org site for the first time.  Amazing stuff, and IMO totally on target. many thanks

petecarapetyan

I used open-wc to get testing working, was sooo helpful, works like a charm

Ikira

and it's merged - @thepassle thx again :)


Automate Docker image building and publishing

We're currently manually building and pushing to Docker Hub.  We should setup an account for Saddle and automate the process.

https://hub.docker.com/r/saddlefinance/contracts


Use character (len=*), parameter declarations

    character(len=17),parameter :: rfmt = "(1pes40.16e3, 1x)"
    character(len=9),parameter :: ifmt = "(i40, 1x)"

can be replaced by
    character(len=*),parameter :: rfmt = "(1pes40.16e3, 1x)", ifmt = "(i40, 1x)"

The compiler counts the lengths of the character literals on the RHS.

I wasn't aware of that, thanks for pointing it out. I have made the suggested change.


Fix :  displayed in check address after order

Questions
Answers

Description?
Fix the  displayed when the configuration field "CHEQUE_ADDRESS" contains break line

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?
Fixes https://github.com/PrestaShop/PrestaShop/issues/20075

How to test?
1 -Any product and click Add to cart / 2- Go to cart and follow steps until payment  / 3- Select payment mode check 4- Confirm order and see the line about checkpayment

Thanks @Sinepel


The debugger doesn't stop when error occurs or on breakpoints during debugging in Saas.

1. Describe the bug
I am trying to debug the custom API page (published like a web service in BC and based on the standard table Gen. Journal Line) in BC24 Saas.
The debugger does not stop when an error occurs or on breakpoints. I tried to do it with "Debug Without Publishing" or the F5 option (with attach request). I tried to debug the API page on different tenants, but it didn`t work. (I thought that it is not popular issue, but my colleagues faced with this issue as well.)
2. To Reproduce
Please create a new extension and custom API page and set breakpoints somewhere.
Please publish the extension and create a new web service for this API page.
Please use the parameters request "Attach" and breakOnNext "WebServiceClient" in the launch.json file.
Please run the debugger and check if it stops on breakpoints.
3. Expected behavior
The debugger should stop and work as it does during debugging standard or custom objects (not API pages).
4. Actual behavior
The debugger doesn`t stop and work as it does during debugging standard or custom objects (not API pages).
5. Versions:

AL Language: v14.0.1108692
Visual Studio Code: 1.92.1
Business Central:  US Business Central 24.3 (Platform 24.0.22865.0 + Application 24.3.21374.21517)
List of Visual Studio Code extensions that I have installed: AL Language Tools, AL Object Designer, AL Variable Helper, Create GUID, AZ AL Dev Tools/AL Code Outline, GitLens - Git supercharged, TODO Tree, waldo`s CRS AL Language Extension.

Your webservice user is the same as the user you are debugging with?

@DevHarmonize No, they are different, I run a debugger with the user for the sandbox, but the web service user in my case is, clientID from the Microsoft Entra Application. As I know we are not able anymore to send requests with authorization (BC user password).

Can you try with setting the userId property in the launch file to that of the entra application?

@DevHarmonize I tried with breakpoints and when an error occurred, but it didnt help. It still doesnt stop.

@DevHarmonize In this case it works only for the debugger breakpoints. When an error occurs, it doesn`t open any files from the base app, I mean the object where the error comes from.

@DevHarmonize I forgot to add that when an error occurs, it doesn`t open any files from the base app, but it stops. If I press "continue" it automatically crashes.

I just tried this in our setup, seems to work for me..
Make sure you have the correct symbols (down)loaded?

@DevHarmonize  Yes, I have the correct symbols and it looks like that. Error that should occur, in the background in Postman.

I'm closing this as out of scope as this looks like an issue with the specific setup rather than a general issue with debugging, so it's hard for us to handle this within the capacity we have for github issues. If it's really blocking or urgent, you should raise a support case instead.


What is an encrypted document?

Thanks for pdf-lib! I'm using it to reorder pages or extract pages. At the latter I tried to load a certain PDF today, namely the following one: http://bitsavers.informatik.uni-stuttgart.de/pdf/ibm/650/22-6060-2_650_OperMan.pdf and it failed with an error like:

Uncaught (in promise) Error: Input document to PDFDocument.load is encrypted. You can use PDFDocument.load(..., { ignoreEncryption: true }) if you wish to load the document anyways.

And if I try with ignoreEncryption, I get a blank page.
This PDF does seem to open fine (in other PDF viewers) without requiring any password or something like that. So I wonder: what does it mean to say that it is encrypted? Could it possibly be a bug?
(Apologies in advance for not trying the latest version of pdf-lib, and for not trying to debug further myself e.g. trying to turn the PDF into a smaller example, or looking up the PDF reference or properties…)

Hello @shreevatsa!
A document is encrypted if it requires a password to open. This seems confusing at first, because you did not have to enter a password to view the document. But your PDF viewer still used a password behind the scenes. The PDF spec actually defines a default password to use in these scenarios. I explain more about this here.
You can't really figure out for sure if a document is encrypted with the default password in some readers. But if you open it in Acrobat you can tell:

Note the sections I outlined in red. They indicate the document uses the default password.
I hope this helps. Please let me know if you have any additional questions!

I should also note that PDF decryption support is a pretty highly requested feature (see https://github.com/Hopding/pdf-lib/issues/233). It's probably going to be the next thing I work on after finishing AcroForms support (no promises on a delivery timeline though).

Thanks a lot for that explanation and the link (had somehow missed it earlier)... It's very clear. Thanks for taking the time to answer and for your work on pdf-lib, it's a really fine piece of software (and documentation).


ociBlob/ociArtifact and ociImage/ociArtifact needs clarification

From the current spec it is not clear why we need two types and what their difference is. This needs clarification and an example in what situation what type is used. This happens for artifact types and access types

Hi @jensh007 , this has been restructured now and can be found here: https://github.com/open-component-model/ocm-spec/blob/main/doc/04-extensions/README.md. Nonetheless I second you in the finding that we should make it better visible why we have the different types.
@mandelsoft , any idea how we can improve the current spec with some additional sentences?

will be done as part of the general discussion about doc/ocm-spec


Add changelog.md

We are ready for a new release!
@mikhail-akimov but before releasing a new version, we need to add a CHANGELOG.md file where  we can describe what have changed since the last version.
What needs to be done:

Look at the example: https://github.com/wemake-services/wemake-python-styleguide/blob/master/CHANGELOG.md
Write about the first version: it was just an initial release
Write about your changes: new features and general changes

And then I will release a new version.

Initioal version was 0.0.1? Current - 0.0.2 or 0.1.0 ?

0.2.0, since we have some new features.

I cant uderstand why so many diffs between my master (or my last branch) and project.

The simple way to fix it:
0. backup your work

delete your fork
fork it again
create a new brach for this feature: issue-12
send a pr

The correct way would also include rebasing master after each merged PR: https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository

Closed via https://github.com/sobolevn/jinja2-git/pull/14

I will release a new version shortly.

@mikhail-akimov can you please write your email address? I need it to add it here: https://github.com/sobolevn/jinja2-git/blob/master/pyproject.toml#L8-L10

Sure<EMAIL_ADDRESS>

@mikhail-akimov released! https://github.com/sobolevn/jinja2-git/releases/tag/0.2.0
Thanks to you 🙂

No problem! Thank you to!


Questions about vagrant deployment

Hi there, and thank you very much for sharing this project!
I am looking for a good and easy way to run lets-chat on a windows machine in our office and figured vagrant would work fine. Getting it up and running was real easy, but I don't think I fully understand how this setup is meant to be maintained. Pausing the box via vagrant suspend and restarting it via vagrant up works fine. However after vagrant halt I can't seem to bring it back up without vagrant destroy, which of course resets everything. So is this vagrant deployment not meant for real use or should it just not be halted?
What would be the recommended upgrade process for new lets-chat releases?

I wrote this vagrant file without a lot of experience actually using vagrant. If you believe there is something lacking please send us a pull request to fix :)

Challenge accepted!
I'll see what I can do :)


Member Account Page - View all Orders

As a user, I want to go to my account page and see all my past orders

As an authenticated user, I want to be able to review the details of my previous orders, including:
Current Status
Item quantity, subtotal
Links to the original product pages
Date/Time of order
So that I can remember what I bought and when
Implementation: add a detail view for specific orders that should be retrieved from the database, ensure this is only available to authenticated users, back-end route providing full-details of specific orders


new cheat exploit or huge problem somewhere? (seems both, actually)

Hi,
Going through one leaderboard, I just stumbled on this guy:
https://www.codewars.com/users/AlexOwl
4 kyu, 23000+ honor, 35 "official" kata completions (for now), no authored katas, just suscribed user.
He's abusing the site events in some ways

It's probably another Codewars bug, it doesn't seem malicious.
I just recalculated the honor and the number of kata completion in site events went down. But the "Rank 4 kyu" event is still repeated.


Default Variables for Modules

fogg generates a blob in main.tf in the respective env after I fogg apply. If I specify the module_source for that component, it is going to generate a parameter for each variable defined in the module. For example
module "my-default-module " {
  source                 = "../../../modules/my-default-module"
  env                    = "${local.env}"
}

I have to define local.env in another file within this component.
However, fogg still generates a parameter for me if one of the variable has a default value. I will have to either delete that line in main.tf (which is auto-generated) or redeclare that variable with the default value (It kind of defy the purpose of setting up the default).

@henryou007 yeah this makes sense. We will think about how to make this better.

Bumping this because it is still an issue that I ran into.


Add permission validation before click delete button/before render delete button (front-end)

Request details

It's only a visual bug on frontend in public repositories, but yeah, would be great to hide it if user doesn't have access to the given path. Thanks for reporting this :)


CircleCI job fails with error "targets wrong architecture (found arm64 but need [amd64 i386 386])"

Problem:
The docker image "abhisheksr01/dind-utils" image was recently updated to use the latest version of dependencies.
The image published was an arm image and hence the CircleCI pipeline started failing with the below error:
WARNING: docker image abhisheksr01/dind-utils:latest targets wrong architecture (found arm64 but need [amd64 i386 386])

Job:
https://app.circleci.com/pipelines/github/abhisheksr01/spring-boot-microservice-best-practices/1073/workflows/51bd874a-7a2a-40cb-a232-8de29f3b03f6/jobs/4183
Docker Image:
https://hub.docker.com/repository/docker/abhisheksr01/dind-utils/general
Fix:
Use the arm resource class in circleci config as mentioned in the documentation https://circleci.com/docs/using-arm/

fixed the executor abhisheksr01/dind-utils image to support both the amd and `arm architecture.


Hit enter doesn't work sometime for creating list items

Hi, some time hitting enter make a new list item and sometime it stuck. Most of the time it stuck after adding some contents such image etc. Sometime, when hit enter nothing happens. Any reason why?

It works on ^2.0.0. you can set every options with this version


Hitpix and se

Hot pixels and single events are now added. Not that after merge you will need to include these tables in your calibration.toml file.
Also I think the unit testing is obsolete and we should look over it again  @lindamegner

I dont seem to be able to review this anymore just because I left a comment. Is that the way it is or am I missing how it works?  Anyway, I think it is OK now.


S2U-13 <IP_ADDRESS> Tests & Quizzes: Improve selector for sub question pools when creating assessments

Well done thanks!


Java incompatibility error when trying to run ./gradlew tasks

Describe the bug
After downloading the source code for the plugin, when trying to run any gradle command, an error occurs describing a component mismatch:
[~/Dev/github/graphql/js-graphql-intellij-plugin (master)]$ ./gradlew tasks
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'js-graphql-intellij-plugin'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3.
     Required by:
         project : > org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:1.1.3
      > No matching variant of org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally but:
          - Variant 'apiElements' capability org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 declares a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
          - Variant 'runtimeElements' capability org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 540ms```

**To Reproduce**
1. Check out `master` (or any commit `44fbec15b86b877796f79353b2d7d493e44c275e` or later)
2. run `./gradlew tasks`

**Expected behavior**
Build should succeed with no modifications.

**Version and Environment Details**
Operation system: MacOS 11.5.2
IDE name and version: Android Studio 2020.3.1
Plugin version: 3.0.0 and up

Figured it out -- had to unset JAVA_HOME.


GeoRSCLIP ResNet-50 checkpoint

Hi, could you share the pretrained weights for GeoRSCLIP in Resnet-50. It's not available in huggingface.

Hi, could you share the pretrained weights for GeoRSCLIP in Resnet-50. It's not available in huggingface.

Hi Fazli,
Thanks for your interest!
So far, we only trained the ViT-based GeoRSCLIP as we pointed out in our paper (section VI, subsection B; section VI, subsection C-6 and Figure 9 ).


Sketchup 2014 under Wine

Hi,
As there is no support for Linux I use Sketchup 2014 in wine. Everything works fine except when I choose STL export I get blank small window and can't continue (on Win32 it shows some options before export happens). How can I help you to fix it?

See issue and resolution suggestions https://github.com/SketchUp/sketchup-stl/issues/171. I had a try on debugging it, as well as tweaking SKUI to either no hamper directly with the Windows API or to port SKUI to HTMLDialog, but it adds quite a lot of complexity for a simple dialog.
I cannot help tell you what to do, it needs decision by the project owners how to go forward.

Thanks, I'll check it out

Works but accepts only 2 arguments so I had to remove Sketchup.active_model.active_entities

As of SketchUp 2018, a native STL importer/exporter is shipped with SketchUp. The Ruby API also expose all options for all exporters with this version.
Are you able to use SketchUp 2018 with Wine?


MINOR: use assertInstanceOf to replace assertTrue

I am a newbie and this is a minor change that use assertInstanceOf to replace the assertTrue.
Committer Checklist (excluded from commit message)

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

@chia7712 Could you help review this?
If there is a need for any further improvement, please let me know. Thanks!

@evalaiyc98 thanks for you contribution


add effect fix

Small fix to allow custom effects.
Once published with this change, mirror-saga will work.

Coverage remained the same at 100.0% when pulling 2c6d3ac25fa55dedde1961b1e9a3c67aa658076f on ShMcK:master into 72f8630f0ab5a0950924d09d59f0f0c931d667ab on mirrorjs:master.

My bad, didn't notice that typo 😂


Update scalafmt-core to 3.3.2

Updates org.scalameta:scalafmt-core from 3.3.1 to 3.3.2.
GitHub Release Notes - Version Diff
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.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report

Merging #250 (8b9e0fc) into master (3876dfb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #250   +/-   ##
=======================================
  Coverage   38.46%   38.46%
=======================================
  Files           3        3
  Lines          91       91
=======================================
  Hits           35       35
  Misses         56       56

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 3876dfb...8b9e0fc. Read the comment docs.

Superseded by #251.


Camera2Video: java.lang.IllegalStateException at android.media.MediaRecorder.stop(Native Method)

Hello. I have crash while pressing rec button.
My steps to reproduce:

Build and install camera2video app on a device
Choose any resolution(i have checked few of them, all are crashed)
See camera preview and rec button.
Press rec button -> crash

Crash log:

E/MediaRecorder: stop called in an invalid state: 4
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-3
Process: com.android.example.camera2.video, PID: 608
java.lang.IllegalStateException
at android.media.MediaRecorder.stop(Native Method)
at com.example.android.camera2.video.fragments.CameraFragment$initializeCamera$1$1$2.invokeSuspend(CameraFragment.kt:297)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Other details
git head is: 852767fddd25b0f33e117d811bd5cdb6694b8904
phone: SM-950F
Any thoughts?

Same error as #254  you need to press and hold to record

Yeah, thats google. They can pass interview by solving tons of hard algorithmic tasks, but never able to create good tutorial or even product (excluding google search)

In my case of Camera2Video crash the last output in console is:
I/e.camera2.vide: Compiler allocated 4218KB to compile void android.view.ViewRootImpl.performTraversals()
D/CameraFragment: Recording stopped. Output file: /data/user/0/com.android.example.camera2.video/files/VID_2021_08_05_15_12_11_883.mp4
I/MediaRecorderJNI: stop
E/MediaRecorder: stop failed: -1007
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
    Process: com.android.example.camera2.video, PID: 14156
    java.lang.RuntimeException: stop failed.
        at android.media.MediaRecorder._stop(Native Method)
        at android.media.MediaRecorder.stop(MediaRecorder.java:1472)
        at com.example.android.camera2.video.fragments.CameraFragment$initializeCamera$1$1$2.invokeSuspend(CameraFragment.kt:296)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
I/Process: Sending signal. PID: 14156 SIG: 9

I also cannot see /data/user/ in Total Commander (I have /data/data/... with little of content and /storage/emulated/0). Can this be a root of the problem?
I tried running on Samsung Galaxy Note 9 (SM-N960F/DS), Android 10, security patch level: July 1, 2021.
@owahltinez could you please take a look?

@serbelga can you please take a look?

Here's a full log trying to capture on samsung SM-T860:
(the error is different: E/MediaRecorder: stop called in an invalid state: 4)
https://gist.github.com/bohdantrotsenko/bf82e82a701032fb96b10ddd351e90ed

Here's a full log trying to capture on samsung SM-T860:
(the error is different: E/MediaRecorder: stop called in an invalid state: 4)
https://gist.github.com/bohdantrotsenko/bf82e82a701032fb96b10ddd351e90ed

`
@Volatile
private var latestRecordAction: Job? = null
MotionEvent.ACTION_DOWN -> {
    latestRecordAction = lifecycleScope.launch(Dispatchers.IO) {
        ...
    }
}
MotionEvent.ACTION_UP -> lifecycleScope.launch(Dispatchers.IO) {
    latestRecordAction?.join()
    latestRecordAction = null
    ...
}

`
I added these extra code to assure mediaRecorder is running before we invoke stop. It seems there's some coroutine dispatching issue here.

I'm facing the same issue as @bohdantrotsenko. In some cases it causes my device to restart.
Device: Samsung s20+

the issue is still relevant

Hi @ggfan  @bbfeechen @jdkoren @temcguir
I'm experienced developer in golang/rust/python, but pretty unexperienced in android, so I do make some effort on weekends to solve this myself, but I can't afford spending extra 60h – which is why I need a working sample to build upon
As this is an official repo,
and you're experienced developers and are also contributors to the repo,
Can you please make sure it doesn't crash?


Remove asset keywords

This change removes keywords from the Asset.

divisible: This is indicated by the amount of the asset.
refillable: This logic will be implemented in an asset Policy
updatable: This logic will be implemented in an asset Policy

Current coverage is 92.99% (diff: 100%)

Merging #962 into master will decrease coverage by 3.47%

@@             master       #962   diff @@
==========================================
  Files            35         39     +4
  Lines          1837       1983   +146
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1772       1844    +72
- Misses           65        139    +74
  Partials          0          0

Powered by Codecov. Last update 9ed5853...d2827df

resolves #841

Huzzah!


Allow callback on annotations event (hover, clicked, etc)

We should be able to detect events that happen on an annotation
For example we could display a label when the mouse is over an annotation.

It's already possible to add callbacks on annotations.


[gerrit-code-review] Fix credentials check when attempting to authenticate with instances.

Description
Fix credentials check when attempting to authenticate with instances.
Resolves  #7291.
Screencast
https://github.com/raycast/extensions/assets/32794653/8b1a7ca7-c959-41df-b606-32ff7d0db0e3
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Sorry folks, I forgot to squash stuff properly and, as you saw, completely added unnecessary stuff to this PR.
I will resolve it, moving to WIP.

Sorry for the blunder earlier. Everything should be resolved.
Apologies for triggering an auto-review add and for spamming your notification :(

🚀


Fix #1762, Update CFE_ES_RunLoop documentation

Describe the contribution
Add better description of the RunStatus input/output parameter.
Fixes #1762
Testing performed
Build and check CFE, run all tests
Expected behavior changes
None, documentation only
System(s) tested on
Ubuntu
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

CCB:2021-08-11 APPROVED


Update DEV setup

Actually use postgres container for DB business.

Codecov Report

Merging #63 into master will increase coverage by 0.3%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master      #63     +/-   ##
=========================================
+ Coverage   62.65%   62.96%   +0.3%
=========================================
  Files          20       20
  Lines         241      243      +2
=========================================
+ Hits          151      153      +2
  Misses         90       90

Impacted Files
Coverage Δ

omahelsinki/settings.py
85.93% <100%> (+0.45%)
:arrow_up:

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 375b3ca...46c0313. Read the comment docs.


App Service deploy error Input string was not in a correct format

Describe the bug
An App Service deployment with a custom script that somehow displays a { to stdout can fail deployment at the line that display this character with this error message in the deployment log: Input string was not in a correct format. Example of custom script custom.cmd that produces the error: @echo {, or a PowerShell command with Where-Object or ForEach-Object like PowerShell -Command "Get-Item * | ForEach-Item { $_.Name }".
The deployment also only fails after the timeout (default to 60 seconds or configured with SCM_COMMAND_IDLE_TIMEOUT) with an error like this in the log: Command 'starter.cmd custom.cmd' was aborted due to no output nor CPU activity for <nn> seconds. You can increase the SCM_COMMAND_IDLE_TIMEOUT app setting (or WEBJOBS_IDLE_TIMEOUT if this is a WebJob) if needed.\r\nstarter.cmd custom.cmd.
Command Name
az webapp deployment source config-zip
Errors:
Zip deployment failed. {'id': '5364faa9fb42499f8144d4f896546386', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'ZipDeploy', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2022-05-24T21:57:38.1413494Z', 'start_time': '2022-05-24T21:57:38.2976066Z', 'end_time': '2022-05-24T21:57:40.9381808Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://gmzwingeappservice.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://gmzwingeappservice.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'GMZwingeAppService', 'provisioningState': 'Failed'}. Please run the command az webapp log deployment show -n GMZwingeAppService -g rg-0102-flourish-prod-centralus

Call stask:
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 713, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/commands.py", line 39, in _ex_handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 528, in enable_zip_deploy_webapp
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 562, in enable_zip_deploy
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 3750, in _check_zip_deployment_status

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Use a custom deployment script that will display to stdout a single {.
az webapp deployment source config-zip --subscription {} --resource-group {} --name {} --src {} --verbose --debug

Expected Behavior
Environment Summary
Windows-10-10.0.19042-SP0
Python 3.10.4
Installer: MSI

azure-cli 2.36.0 *

Extensions:
account 0.2.1
resource-graph 2.1.0

Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0

Additional Context

route to CXP team

Thanks for reporting this is a runtime issue & not CLI specific.

FYI - This issue was fixed for us a few weeks ago with the release of Kudu version 97.40603.5765. If you haven't already, you may try running your script again and see if the issue still exists.

@GMZwinge Could you please run the above CLI command again and check if you are still facing this issue ? Awaiting your reply.

@GMZwinge This issue is now addressed. The action is pending on you now to test the command again. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.


Soot dead links

This PR updates the links of our docs towards Soot. Apparently they've changed the name of their Github Org.
https://github.com/soot-oss/soot not sable anymore
The second link could be updated to https://www.sable.mcgill.ca/soot/ (note the https) but that page is 8 years old, so maybe it's better to point both links to the latest Soot docs page.

TODOs

[ ] Tests
[ ] Documentation

Hi @henrikplate, if you want you could add Steady to the Soot wiki-page where they list all the projects which are using Soot: https://github.com/soot-oss/soot/wiki/Users-of-Soot


Releasing pkmn takes a long time

Running without spinstop and it seems that releasing low CP pkmn takes a long amount of time to resolve. Is this intentional?

More of an anti-ban - so that its not capturing and deleting instantly - looks extremely bot-y


feat(langs): added language config for haitian creole (ht)

This PR is the first step in starting the translation effort of the reactjs.org documentation from English into Haitian Creole.
@jgb-solutions @didierganthier @mama00 @leregi @PrinceLouis could you please confirm your involvement in this project by responding in the comments below.
I would like to publicly express my appreciation for your willingness to help with this cause.
👏👏  😃

I would like to publicly express my appreciation for your willingness to help with this cause.
👏👏 😃

@mama00 Does this mean that you are in? 😄

Absolutly
Le sam. 26 oct. 2019 à 18:25, Ashley Narcisse<EMAIL_ADDRESS>a
écrit :

@mama00 https://github.com/mama00 Does this mean that you are in? 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/reactjs/reactjs.org-translation/pull/125?email_source=notifications&email_token=AJKDSNLHFSH5JW6ZGWIZBEDQQS7WJA5CNFSM4JFPCXFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKSEUA#issuecomment-546644560,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJKDSNNVZYKWP6Q6TGU22QTQQS7WJANCNFSM4JFPCXFA
.

Hey there! I'm in 100%

I am ready to contribute to this project  :)

@darkfadr you should be all set up! https://github.com/reactjs/ht.reactjs.org
Happy translating! And let me know if you have any questions.


support   dragging the div border, resize the div ?

support   dragging the div border, resize the div ?

At least for resizing from any corner, that feature is next on the main Readme’s TODO list. That said, not sure where progress on that would be tracked. Also, I believe this is a duplicate of #244


Merge all my changes over the past months

There are already a couple of PR's open. Some time ago I stopped doing things properly and made changes to main directly instead. This should get a lot of the development I did added in and be easier than multiple small PR's. This also adds some github actions for things like dependency checks, security audits and pushing of documentation to GH pages. This last one may have to be rewritten for your repo.
Closes #11 (does not work with official stream)
Closes #10
Closes #4

@AnotherGenZ Do I need to adjust anything for a merge?


(null) values in forecast for current day / day 0

Describe the bug
In the objects view in IoBroker (weatherunderground.0.forecast.0d.tempMax) but also other data points I frequently have "null" as value.
This only happens for day 0 (1-5 are ok) although the response of the API looks correct.
To Reproduce
Steps to reproduce the behavior:
Install Adapter, enter Data (in my case StationID IRHEIN152), retrieve data, and look at the IoBroker Objects.
Expected behavior
that e.g.: weatherunderground.0.forecast.0d.tempMax contains the right "maximum temperature" for the current day.
Screenshots & Logfiles
How it looks in IoBroker:
IoB_nullvaluesOnDay0
debug_logOfResults.txt
Looking at the pretty printed data of the log reveals, that some, day0 specific arrays (cloudCover, dayOrNight, daypartName etc.) seem to return null value for day 0, but contain data for the other days.
However: Min/Max Temperature values are available for every day.
Versions:

Adapter version: v3.7.0
JS-Controller version: 5.0.19
Node version: v18.20.3
Operating system: docker based image

Additional context
Add any other context about the problem here.

Please have a look ... Does it directly happen in the morning? There ere cases where data got null when the time was "gone" on that day?  Please have an eye on it when it is/gets null and such. In fact it is about "starting a certain time the current day is no longer "a forecast" because the time reached that day

I just enabled logging to the database for the values of 0d and 1d so I can give you some details but currently (at 9:10PM) I also have a null value for weatherunderground.0.forecast.0d.tempMax

Same Problem

@bikejoco Although I assume a portion of this issue should be handled by the adapter I found a solution: I logged the raw data provided by the station I had selected to compare the values from weatherunderground and what the adapter shows and found out: the issue is the station.
So I did query other stations nearby and selected one a little further away, where the operator was either a high-school, an official authority or a local airport and the issue never re-occured.
In the meantime, I assume that smaller, in particular private stations do not reliably deliver all values.
This could be a suggestion to either weather underground to give you a "station reliability rating" or to the adapter, to at least indicate something like "the station you selected seems to not reliably deliver measurements for all data points etc."
Try selecting another station nearby operated by someone "reliable" and check the results.

@schlaubstar
Thanks for this info.
Do you have eventually still an exmple of the data showing the differnece / missing data?
If not - well you infomation is a good info to direct the investigations.

@bikejoco I have to appologize. It is an issue in the adapter somehow. It did not occur after I switched the station but today it is there and reproducable
My comparison:
To tribute the home of IoBroker I selected IKARLS137 as station, and used my API key.
Attached you find the (already beautified but 100%) JSON Response of Weather underground.
JSON_Responseof_Wu.txt
The interesting section in the JSON response is:
" "daily_forecast": {
"calendarDayTemperatureMax": [
27,
29,
34,
24,
24,
27
],
"calendarDayTemperatureMin": [
11,
13,
15,
14,
12,
12
],"
So it is obvious that valid data was submitted for temperature Max and temperature Min for the next days.
But as you can clearly see in IoBroker there are two errors :
TempMin is 13°C and TempMax is (null), which are actually two errors.
day(0) is today. So it actually should be TempMin = 11°C and TempMax = 27°C according to the response
To me it seems that TempMin is taken from tomorrow (and should be in day (1) and not day(0)) and there are complete touples of data (TempMin and TempMax) for each day in the prediction.

@Apollon77 : Could you please be so kind and have a look at this ? Maybe it's just a a shift in the allocation of days because at least all subsequent days have valid TempMin and TempMax values, except for day (0) ... and to my understanding of the response from wu I'd assume that it should look like:
TempMin Today = 11, TempMax Today = 27
TempMin Tomorrow = 13, TempMax Tomorrow = 29 etc.


Replace npm by yarn

https://github.com/oVirt/ovirt-web-ui/pull/82

https://github.com/oVirt/ovirt-web-ui/pull/86

Working.
So far oVirt CI is not triggered for automation/build-artifacts.sh, but it's out of scope of ovirt-web-ui


Error and Limit reach handle

Hi,
We are playing with Twitter4s-demo.
How we can detect that we reached our limit ?  So we can change our auth keys. ?
thx

Hi @MyraBaba, at present you can only look at the Future returned. If rate is reached the TwitterException will make the future fail accordingly. Alternatively, you also have an endpoint for rate limits.
We do have a plan to improve the support on info about rate limits (see ticket https://github.com/DanielaSfregola/twitter4s/issues/80) but the functionality is not there yet.

Rate Limits support is now available in twitter4s 5.0


Log tasks in one line when the user thread is saturated

Splitting this from https://github.com/PaycoinFoundation/paycoinj/pull/16

LGTM


Plotting infinite values functionality

When plotting with infinite values, the plots ranges get redimensioned to [highest_value, 0] (or reverse, in case highest_value>0.
When plotting this with datashader give following error.
TypeError: int() argument must be a string, a bytes-like object or a number, not 'datetime.timedelta'

I don't know if this a design assumption or not, but:

User should be warned about infinite values;
I don't think Holoviews should drop infinite values, because they can carry meaning, but refer to 1;
Maybe, a wiser way to represent infinites, is to ask the user to give a value that has meaning in the problem's context;

Reproducible code:
import pandas as pd
import numpy as np
import dask.dataframe as dd
import holoplot.dask
import holoplot.pandas

def generate_df(size):
    d = {
        'dates' : pd.date_range('1980-01-01', periods=size, freq='1T'),
        'unique_id' : np.arange(0, size),
        'ints' : np.random.randint(0, size, size=size),
        'floats' : np.random.randn(size),
        'bools' : np.random.choice([0, 1], size=size),
        'int_nans' : np.random.choice([0, 1, np.nan], size=size),
        'float_nans' : np.random.choice([0.0, 1.0, np.nan], size=size),
        'constant' : 1,
        'fake_categorical' : np.random.choice([10, 20, 30, 40, 50], size=size) ,
        'categorical_binary' : np.random.choice(['a', 'b'], size=size),
        'categorical_nans' : np.random.choice(['a', 'b', 'c', 'd', 'e', 'f', 'g'], size=size),
        'signal1' : np.random.normal(0, 0.3, size=size).cumsum() + 50,
        'signal2' : np.random.normal(0, 0.3, size=size).cumsum() + 50
    }

    df = pd.DataFrame(d)
    df['hardbools'] = df['bools'] == 1
    df['categorical_nans'] = df['categorical_nans'].replace('c', np.nan)
    df['categorical_binary'] = df['categorical_binary'].astype('category')
    df['unique_id'] = df['unique_id'].astype(str)

    df.index = df.dates
    df.index.name = 'dates'
    df = df.drop('dates', axis=1)

    return df

df = generate_df(1000)

# Plots fine
df['fake_categorical'].holoplot.line(datashade=True)

# Plots between [highest_value, 0]
df['fake_categorical'] = df['fake_categorical'].replace(10, np.inf)
df['fake_categorical'].holoplot.line()

# Gives error
df['fake_categorical'].holoplot.line(datashade=True)

Thanks for raising this issue. Personally, I think the suggestion to warn is a particularly good idea so the user can think carefully about what it is exactly that they want.

I was able to reproduce the issue given the provided code; thanks!

Seems like a tricky issue.  I guess there are a variety of things that could be done:

Detecting that there are such values and raising an exception with advice for the user.
Detecting and warning that there are such values and giving advice to the user, but then filtering out the infinite values and plotting the rest as-is.
Not warning, and instead plotting infinite values using some sort of graphical convention to indicate that they are infinite.

As I don't personally work with infinite floats, I wouldn't have a good intuition to guide me between these approaches.  Seems like this might be a case for a community contribution of a PR. :-)
BTW, holoplot has been renamed to hvplot to avoid possible copyright issues, so please install and use hvplot instead.


Is there a way to turn off the green power led ?

Hello,
On the Respeaker 4mic array, Is there a way to turn off the green power led ?
I managed to control all the leds except this one !
Regards,
Romain

Why do you want to do that?
The power led is supposed to be on when the device powers on.
You can remove the led.

Hello,
I'd like to turn off this led because the mic is in my bedroom and I like
to have a completely black room when I sleep.
As I can do what I want with the other leds with this nice driver, I was
figuring out that it would be possible to disable this last led
programatically (to enable me to disable it only during the night for
instance).
Regards,
Romain
Le lun. 26 nov. 2018 à 05:06, Yihui Xiong<EMAIL_ADDRESS>a
écrit :

Why do you want to do that?
The power led is supposed to be on when the device powers on.
You can remove the led.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/respeaker/usb_4_mic_array/issues/23#issuecomment-441497986,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Abz9AKVs8DHcW0PeYf52pgLlp1wJvK3aks5uy0zOgaJpZM4YxENl
.


Handle non-unicode chars in url

If a url has a non-unicode path, then the proxy crashes with:
Exception happened during processing of request from ('::ffff:<IP_ADDRESS>', 34814, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python3.6/socketserver.py", line 639, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.6/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "./proxy2.py", line 63, in __init__
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  File "/usr/lib/python3.6/socketserver.py", line 696, in __init__
    self.handle()
  File "/usr/lib/python3.6/http/server.py", line 418, in handle
    self.handle_one_request()
  File "/usr/lib/python3.6/http/server.py", line 406, in handle_one_request
    method()
  File "./proxy2.py", line 210, in do_GET
    self.save_handler(req, req_body, res, res_body_plain)
  File "./proxy2.py", line 379, in save_handler
    self.print_info(req, req_body, res, res_body)
  File "./proxy2.py", line 318, in print_info
    req_body_text = parse_qsl(req_body)
  File "./proxy2.py", line 291, in parse_qsl
    return '\n'.join("{:<20} {}".format(k, v) for k, v in urlparse.parse_qsl(s, keep_blank_values=True))
  File "/usr/lib/python3.6/urllib/parse.py", line 703, in parse_qsl
    value = _coerce_result(value)
  File "/usr/lib/python3.6/urllib/parse.py", line 103, in _encode_result
    return obj.encode(encoding, errors)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 13-32: ordinal not in range(128)

I found that sometimes the information in parse is a string, and sometimes its bytes, this solves the problem.

It is ok, but {!s:<20}
def print_info(self, req, req_body, res, res_body):
def parse_qsl(s):
if type(s) == bytes:
return '\n'.join("{!s:<20} {}".format(k, v) for k, v in urlparse.parse_qsl(s, keep_blank_values=True))
else:
return '\n'.join("{!s:<20} {}".format(k, v) for k, v in urlparse.parse_qsl(s.decode("utf-8"), keep_blank_values=True))

Ok, I opend issue tracker at https://github.com/guysoft/proxy2/issues
Please post there since this repository is evidently abounded

@Hubald I see your fork is actually maintaining this. Can you open the Issue tracker and PR so we can move development there?

Thanks @Hubald  , continued in https://github.com/Hubald/proxy2


Java: generated resource name class license headers malformed

All of our linting tools for headers expect the license header to be in a certain format.
The generated headers use abnormal line breaks:
/*
 * Copyright [year] Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

The correct format should be:
/*
 * Copyright [year] Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

We are currently working around this in synthtool by replacing the unexpected header.

Checked several files, this seems to be fixed now.


Implement connect wallet feature for personalized dashboard

Connect a wallet connector
Use searchcaster API to fetch farcaster address and display it

Done!


[WIP] Better synthesis of Hashable._hash(into:)

This is an unfinished update to #14913 that removes the glaring cheat of force-synthesizing _hash(into:) whenever we derive hashValue.
_hash(into:) is now automatically derived whenever it's not explicitly implemented, including inside classes and extensions of (possibly imported or synthesized) structs, enums or classes.
This is not entirely free of magic, though. To determine which implementation to generate, the body synthesizer takes a peek into the parent decl context -- if it finds an implicit hashValue there, the generated body implements hashing from scratch, feeding components into the hasher. Otherwise, we assume hashValue has an explicit implementation, and we generate the body for the (previously) default implementation of _hash(into:).
To make _CFObject's Hashable conformance apply correctly on CF types, I needed to add an explicit implementation of _hash(into:) to the CoreFoundation overlay. Without this change, the compiler would try to derive _hash(into:) directly into the imported CF types, which (understandably(?)) doesn't work. The problem seems to be that there is no other suitable DeclContext for the Hashable conformance, which in this case is implemented in a seemingly unrelated protocol extension. (This problem seems to be specific to CF types; I couldn't reproduce it with regular imported classes.)
This change also introduces some diagnostic regressions that are yet to be fixed.

Cc @jrose-apple -- With the last two commits, Hashable derivation relies on the compiler's normal mechanism to derive _hash(into:) instead of the ugly piggybacking on hashValue.
Does this look reasonable? I'm a bit worried about that the CoreFoundation problem may indicate a deeper underlying issue.

@swift-ci please smoke test

@swift-ci please smoke test

Without looking at the rest of the code, the CF issue sounds like it'll come into play whenever a protocol other than Hashable has a default implementation of hashValue. _SwiftNewtypeWrapper, for example (used for NS_TYPED_ENUM / NS_STRING_ENUM et al).

Sorry, I guess that's specific to imported types. Maybe the way we do all other imported types is safe enough, since they're structs or enums and we can add things to them safely.

Looking into this in a little more detail, CF types seem special because they gain the _CFObject conformance magically: the importer adds it to the opaque CF type as if it was directly on an imported class definition.
We can't put new derived methods into that imported class, but adding the _hash(into:) definition into the CoreFoundation overlay looks like an acceptable workaround -- as long as there is no way for user-defined types to gain implicit conformances like that.
For non-magical imported types, the Hashable conformance must be added in some explicit extension somewhere, and the extension provides a suitable DeclContext for the derived _hash(into:) method -- so users would never run into the same situation.

I (manually) merged this back to #14913, including the last commit that enables users to provide only one of hashValue and _hash(into:), with the other member synthesized automatically by the compiler.
Some of the diagnostic regressions remain, and a test for an old compiler crasher exposed a new crash; I'll fix these on the primary PR soon.


Update README.md

I don't know of the 4004, 4003,... http return codes, maybe a typo?

What do you think of issue #210 ?


Updated RevenueCat

We moved away from Medium in the fall and finally added RSS to the site earlier this year.

Thanks for the update David!