Accessing updated object after modification via meteorMethod

Hey jagi,
This is probably a noob question, for which I am sorry...
I have a meteorMethod in which I modify some fields and save the object. Let's take the rename() method from the documentation as an example. After calling this method from the server, the object is being modified and saved to the database, but that doesn't reflect in the code. I thought it should because it's on the server and I haven't supplied a callback, so the code is synchronous (right?).
let user = new User({ firstName: "foo", lastName: "foo" });

// server.js
user.rename('John', 'Smith');
console.log(user.firstName); // -> still "foo", although it was correctly saved in the db

Why is this? And how can I acces the modified object?
Thank you so much!

What are you probably looking for is the user.reload() method which you have to call after executing the user.rename() method. It's because the rename method does not cause the original user object to be "reloaded" from the database. You have to do it by yourself.

Damn. I should've known that. Thank you!
However, I must be doing something wrong. The object hasn't changed after calling .reload(), even when I call it in the callback of the method. I'm 100% sure it was persisted to the database (the result from the callback is also an id, as expected). Same problem when calling the method on the client. I'll keep searching and post here when I found what's causing it.

Share the code that is not working then maybe I will be able to help you

Ok, thanks man. Here's the version where I call from the client:
both
const Reservation = Class.create(
	{
		name: 'Reservation',
		collection: new Mongo.Collection('reservations'),
		fields: {
			invoices: {
				type: [Invoice],
				default: [],
			},
		},
	});

const Invoice = Class.create(
	{
		name: 'Invoice',
		fields: {
			invoiceTypeId: {
				type: String
			},
			deadline: {
				type: Date,
			},
		},
	});

server
Reservation.extend({
    meteorMethods: {
        addInvoice(invoiceTypeId, deadline)
        {
            check(invoiceTypeId, String);
            check(deadline, Date);

            let newInvoice = new Invoice({
                    invoiceTypeId: invoiceTypeId,
                    deadline: deadline,
                });

            this.invoices.push(newInvoice);

            return this.save(); // -> reservation effectively gets persisted to the db, including invoices
        },
    }
});

client
Template.reservation.events({
	'click .js-book'(event, instance)
		{
			let reservation = Template.currentData();
			reservation.callMethod('addInvoice', "someId", new Date()), (err, result) =>
			{
			    reservation.reload();
			    console.dir(reservation); // -> _id is undefined and invoices is empty
			});
		}
});

First of all the default value for the invoices field should be:
invoices: {
  type: [Invoices],
  default() { return []; }
}

maybe that's a problem. Besides that, did you make sure that you're publishing and subscribing to all necessary data? Your code looks ok.
I'm also not sure how Astronomy will behave when you're passing docs as props of blaze templates (Template.currentData()). Try not using it and instead just findOne a doc a check if it solved a problem. From what I remember Blaze has strange behavior of losing info about a class of a doc, when passed as templates' attribute.

Thanks for pointing out my mistakes. I fixed the default empty array, made sure everything's published and subscribed and tried it out without Template.currentDate(), but it's still not working unfortunately.

I don't know if it's a problem with pasting the code here on GitHub but you probably have a bug in an event handler. It shouldn't even run your project with this bug but please make sure that you have the correct amount of parenthesis:
let reservation = Reservation.findOne();
reservation.callMethod('addInvoice', 'someId', new Date(), (err, result) => {
  reservation.reload();
  console.dir(reservation); // -> _id is undefined and invoices is empty
});

Yeah, the parenthesis were the result of copy-pasting indeed.
What I did to test out without Template.currentData() was to make a new Reservation and call the method on that directly (because the db is empty until this point). That didn't work. I now tested it again by first saving the new Reservation, getting it from the database with findOne and then calling the method, and now .reload() works! So it works when .save() is updating, but not when it's inserting.
PS: Just to make sure, you made a typo in your previous reply I think. It should've been type: [Invoice], without the 's', right?

PS: Just to make sure, you made a typo in your previous reply I think. It should've been type: [Invoice], without the 's', right?

Yes you're right. I've fixed it.

What I did to test out without Template.currentData() was to make a new Reservation and call the method on that directly (because the db is empty until this point). That didn't work. I now tested it again by first saving the new Reservation, getting it from the database with findOne and then calling the method, and now .reload() works!

I've made a reproduction and it works but without using Template.currentData().

So it works when .save() is updating, but not when it's inserting.

You've only been talking about update operation previously. What effect do you want to achieve on insert?

Oh, sorry if that wasn't clear.
A user can choose between a list of possible Reservations (= all Astronomy classes that are not inserted in the db yet). My intention was to only insert the reservation that the user chose. So when he clicks on one reservation (.js-book), the "addInvoice" method is being called where an invoice is added to Reservation.invoices and where the Reservation is inserted.
Perhaps I should first insert the Reservation with a new method and add the Invoices afterwards?

I don't understand your use case. But from what I understand you're trying to add an invoice to the reservation that is not yet inserted into DB, which is wrong-  you can't do so. You should probably prepare Meteor method that would insert reservation and invoice in one step. But it's not related to this issue. So I'm closing this as the main issue is solved. It wasn't reflecting changes because you've been passing astronomy document as a template property and Blaze does not behave properly in such situation.


[Bug] nodes of a database(that isn't the default database) that carry more than one label get deleted after the python-driver script has finished

Explanation
Contents of database(that isn't the default database) change after the python script has finished.
Note: If the script is run against the default database it works.

Neo4j version: 4.4.4 (enterprise) from the official enterprise docker image

Neo4j Mode: Single instance

Operating system of the server: Ubuntu Server 20.04

Driver version: Python driver 4.4.0

Operating system of my computer: KDE neon User - 5.24 (based on Ubuntu 20.04)

Steps to reproduce
With a script:

Load raw data on the database with the python driver and the session.write_transaction()-function
Refactor the graph with session.write_transaction()-functions
(Script finishes)
(A few seconds later the data gets changed again, a lot of nodes and labels get deleted)

Expected behavior
The graph shouldn't change after the refactoring is finished.
Actual behavior
A lot of nodes and labels get deleted.
There are no error messages in the log or in the terminal, I run the python script in.
What I've tried:
Running the script against the default database(the one with the little house icon in the web browser) works without problems.
I am using the neo4j enterprise version in the environment of university research. I contacted the german sales team back in November/December 2021 and they gave me access to other tools but not explicitly to the server enterprise version I asked for. Since the enterprise docker image is downloadable without verification from dockerhub I thought it wont be a problem.
So I'm thinking maybe a license file is missing or something like this?

Important Addendum:
To the point:
I have another ongoing Issue at https://github.com/neo4j/neo4j-browser/issues/1699 and did some testing in correspondence of both problems and found out that all nodes that have a second label are deleted in the database that is not the default one.
Please note: I uploaded exactly the same data to both databases.
Deeper explanation:
On the other issue I found out that the number on the left on the following picture is the actual label count of the cypher query(in that example also the label count of the whole database since I returned all nodes of the database).
Please also note: that the used database is called "neo4j" and is the default one.

On the next picture you can see the output I get on the "testservergraphprogram" database that is not the default one.
The nodes with the labels "ProcessVariable", "Measured" and "Simulated" all have the label "Pipeline" too.

Knowing this, we can take the numbers from the pictures and do the math:
If we take the label counts of the  "ProcessVariable", "Measured" and "Simulated" labels(of the first picture) and add them together we get: 432 + 1326 + 1191 = 2949.  2949 is the label count of "Pipeline", so there is nothing missing.
If we further  take the number for the label occurrences of "Pipeline" which is also the amount of nodes that carry the "Pipeline" label and subtract it from the total node count of the whole database, of the first picture, we get 5625 - 2949 = 2676.
2676 is exactly the total node count of the second picture.
--> Therefore I anticipate that the nodes, that carry more than one label, get somehow deleted in a database, that is not the default one.
Please also note: The "deletion" happens after the Neo4j-Python-Driver script finishes. So maybe it could be a problem that arises somewhere different than the python driver.

Hi. Thanks for reaching out.
First of all, no, just because you might technically be able use the enterprise edition, doesn't mean you are legally allowed to.
Now for your issue. What you describe cannot come from the driver. When the program terminates, there is nothing the driver can do. I guess with a periodic commit query or an auto commit transaction you could maybe get some effects after the end of the program using the driver, but a) I never tested this hypothesis, b) you wrote you use session.write_transaction() (i.e., managed transactions, a.k.a. transaction functions), with those, this cannot happen.
To help you further debug this, kindly provide a minimal example so that I can reproduce the issue locally.
I suspect either a bug in your script, some issue the server is having (maybe a full disk or so?)-for that check the server's logs, or maybe another program is sending queries and altering the DB's content.

Hi. Thanks for reaching out.
First of all, no, just because you might technically be able use the enterprise edition, doesn't mean you are legally allowed to.
Now for your issue. What you describe cannot come from the driver. When the program terminates, there is nothing the driver can do. I guess with a periodic commit query or an auto commit transaction you could maybe get some effects after the end of the program using the driver, but a) I never tested this hypothesis, b) you wrote you use session.write_transaction() (i.e., managed transactions, a.k.a. transaction functions), with those, this cannot happen.
To help you further debug this, kindly provide a minimal example so that I can reproduce the issue locally.
Here is a simple script you might want to use as a starting point for building that minimal example.
import neo4j

def query(tx, query_, **params):
    result = tx.run(query_, params)
    return result.data()

def main():
    auth = ('neo4j', 'pass')
    with neo4j.GraphDatabase.driver('bolt://localhost:7687', auth=auth) as d:
        with d.session() as s1:
            s1.write_transaction(query,
                                 "CREATE DATABASE testdb IF NOT EXISTS")
        for database in (None, "testdb"):
            with d.session(database=database,
                           bookmarks=[s1.last_bookmark()]) as s:
                # make sure db is empty
                s.write_transaction(query, "MATCH (n) DETACH DELETE n")
                # create some nodes
                s.write_transaction(query, "CREATE (:TypeA:TypeB)")
                s.write_transaction(query, "CREATE (:TypeA)")
                # TODO: what do I have to do with the data to see the described
                #       effect/bug?
                ...

if __name__ == "__main__":
    main()

I suspect either a bug in your script, some issue the server is having (maybe a full disk or so?)-for that, please check the server logs, or maybe another program is sending queries and altering the DB's content.

@robsdedude
Hey,
thanks for answering my issue.
About the licensing-problem:
Like I mentioned above I wrote to the german sales team in November/December 2021. Since I'm not sure anynmore if I can use the enterprise-edition I would like to talk to someone what I need to pay or do to use it. I'm writing my Bachelor-Thesis about processing measurement-data at the Technical University of Darmstadt, Germany.
Can you please provide more information about what I should do next? For example writing the german-sales team again and ask for some kind of written confirmation?
To the bug:
I solved it with your help and you were right! :)
After your suggestion I double checked if there is a program that runs queries automatically because I had one doing this. And I forgot to comment out the line in the crontab. But that program shouldn't do any refactoring of the graph on its own. Turned out that this part of the code wasn't indented properly(one indention missing) too. That's all.
Basically I tried to upload different data sets to the server and the automatic program formatted the data while it got uploaded.
Since the issue is solved I close it by myself.
Thanks again for your help!

@test123-all drop me an email to michael at neo4j.com and we'll sort it out. For just writing your thesis it shouldn't be a big deal.

@jexp Thanks for helping me with this problem.
I sent a message to your email with my official student-email of the university.


Can't start PPO_finetuning example with 1 machine and 1 GPU

Hello! Have a problem with starting PPO_finetuning example with only 1 machine and 1 GPU.
But succesfully started examples in https://github.com/flowersteam/Grounding_LLMs_with_online_RL with lamorel provided inside. (lamorel 0.1)
Looks like problem with GPU and processes mapping:
RuntimeError: CUDA error: invalid device ordinal
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Hi @tokarev-i-v,
Thanks for reaching out!
I updated the readme as it was misleading (see PR #15). Indeed when GPU(s) are available, Accelerate automatically tries to allocate a different device to each process. In your case the lamorel launcher starts two processes yet only one GPU is available. To avoid this, you must launch two separate processes by hand (each being in the end a single process for Accelerate):
- RL script => python -m lamorel_launcher.launch --config-path absolute/path/to/project/examples/configs --config-name local_gpu_config rl_script_args.path=absolute/path/to/project/examples/example_script.py lamorel_args.accelerate_args.machine_rank=0
- LLM server =>python -m lamorel_launcher.launch --config-path absolute/path/to/project/examples/configs --config-name local_gpu_config rl_script_args.path=absolute/path/to/project/examples/example_script.py lamorel_args.accelerate_args.machine_rank=1


Blue Screen when opening VS Code and VS 2017 at the same time

VSCode Version: Code 1.17.1 (1e9d36539b0ae51ac09b9d4673ebea4e447e5353, 2017-10-10T14:24:50.851Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

none
-
-

When I open Visual Studio 2017 Enterprise and Visual Studio Code at the same time and in that order, the system crashes (the entire system, Windows crashes with SYSTEM_SERVICE_EXCEPTION). Apparently it doesn't the other way around (if I open first VS Code and the VS 2017). It happened in two computers until now. I hope you can fix this, it started to happen recently. I use both all the time and this is really bad.

Steps to Reproduce:

Open Visual Studio 2017 Enterprise (latest versión to 10/12 - October 12th - )
Open Visual Studio Code
Wait one or two minutes

Reproduces without extensions: Yes/No

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

I had not extensions and a clean fresh Windows 10 Professional (I reinstalled everything after the first time it happened). And in previous versions I had 0 trouble doing that, could it be some upgraded or new feature?

Still happens?

I'm sorry, I forgot to tell here, I updated everything as soon as an update was available (Windows, Visual Studio and Visual Studio Code) and now is not happening anymore.


why start error  which Cannot find module 'folktale/data/task'

Fixed in https://github.com/xaviervia/sketch2json/releases/tag/v0.1.1


Don't assume non-null values for any fields in testMatrix

Don't assume non-null values for any fields in testMatrix

can we add a test so this doesn't break in the future?

Added!


Malformed file written to disk

We are getting a bad xml file from the server in some way, for Urdu.
We are unsure if its related to the translated content or encoding during transmission or writing the file to the disk by the plugin.
The problem is mostly like related to this stack overflow issue:
http://stackoverflow.com/questions/4569123/content-is-not-allowed-in-prolog-saxparserexception
The error we are seeing when we try a compile with --debug option is:
Error: Content is not allowed in prolog.

Brill Pappin

I'm beginning to this the problem is actually caused by something else related to unicode cares for this Language (ur, Urdu). The XML being generated is not friendly to the compiler.


Add NetBSD

Add NetBSD install instructions
Description
Add NetBSD install instructions and help me maintaining the package by hosting Cargo.lock in the repository.
I've just packaged chess-tui for NetBSD and have merged the package into the main branch.
How Has This Been Tested?
See screenshot.
Commit Log for your reference, http://mail-index.netbsd.org/pkgsrc-changes/2023/12/06/msg288179.html
Thanks!

Packages are released 4 times a year, except for security updates. Next and last release will be by the end of December.
This, of course doesn't apply to those running current, I.e. development branch of the packages and OS.
The package will be available to regular users by the end of this month.

Packages are released 4 times a year, except for security updates. Next, and last release will be by the end of December.
This, of course doesn't apply to those running current, I.e. development branch of the packages and OS.
The package will be available to regular users by the end of this month.

Thanks for the explanation sounds great

Thank you! In particular hosting Cargo.lock helps a lot. We have a script that collects all the crate dependencies from the file. When, it's not there, I need to do this manually. So, appreciated.

Thank you! In particular hosting Cargo.lock helps a lot. We have a script that collects all the crate dependencies from the file. When, it's not there, I need to do this manually. So, appreciated.

No problem at all, thanks to you for contributing and your knowledge sharing!


log: fix race condition while incrementing log entries dropped

This fixes the bug reported in #885
Looks like the reporter didn't make a patch, and the issue has been open for a while, so I took the liberty to make a PR.

@dormando please let me know if this PR needs to be against next. Thanks.

Ah heh. sorry. I am terminally behind on issues. Thanks!
Shouldn't need to rebase it against next since it's trivial.

Ha, just saw that this is PR number 1000. That's exciting!

Congrats :) I'd offer to send you some ancient merch but I have no idea where it all went.

Are there some other tasks that need to be run? Looks like the only check that ran was the build test.

That's it. I have a bunch of buildbots but they're on my end of things, the github test is just a quick pass to make sure it builds and runs basic tests. I've got a big queue of small PR's to go through in some order..

Got it. I was going to ask if this could be merged, but a queue makes sense. Looking forward to getting my first contribution in! Thanks.

Out in 1.6.19


Bots that prefetch should not destroy the secret

When sending the link via chat, sms or email, some systems pre-fetch the link and try to preview it or check for malware. It currently destroys the secret. It is not maintainable to include all possible chat, sms, email clients and antivirus systems in the sneaky-user-agent list.
Solution is to provide a preview-page for HTTP GET requests, but the user will click the button on the page and make HTTP POST and retrieve the actual secret.
Security consideration: communication will always be over HTTPS. The group of ppl who can access the logs, could see the link and fetch it before the recipient. The group that can access Redis can see the keys already today. The recipient will notice that the secret has been fetched by someone else as they cannot get it and the attack will be known.
One other option could be to separate the decryption key from the link and let the user provide it when fetching the secret in HTTP POST request. Convenience vs security.

It is not maintainable to include all possible chat, sms, email clients and antivirus systems in the sneaky-user-agent list.

Why not? A whitelist is a strong security mechanism, and I'm not sure it would grow to be that huge.
That being said, what you're proposing is also quite strong, security wise, so I'll delegate to @devinlundberg who's a security expert.

One other option could be to separate the decryption key from the link and let the user provide it when fetching the secret in HTTP POST request.

I think this would unfortunately reduce the usability a little too much, which could reduce incentive to use such a service (it's already hard to enforce people to use this, so it needs to be easy). I like the idea though

The code itself looks good though, thanks for updating the tests, I think the bigger question is the decision on the feature. I'll delegate to @devinlundberg here

For whatever it's worth, this sort of feature has been proposed before, but user agent blacklisting was implemented instead.

It is not maintainable to include all possible chat, sms, email clients and antivirus systems in the sneaky-user-agent list.
Why not? A whitelist is a strong security mechanism, and I'm not sure it would grow to be that huge.

This is what I picture:
Lets say user A in company X opens a link in email that it received from user B in company Y - and it gives 404. Will they ask the admin of Snappass to add a user-agent to the list? But which user-agent? They will contact the admin of email-system (in both companies?) and find out the user-agents that the antivirus submodule uses? What if the user-agent is an empy string? Etc, etc.. Honestly, I think this story would end with 404 and they retry by user B emailing the contents of secret to user A. Despite security guidelines.

That being said, what you're proposing is also quite strong, security wise, so I'll delegate to @devinlundberg who's a security expert.
Thank you :) Any updates regarding the proposed feature to be or not to be?

Sorry I've been slow to get back here. Its been a busy week.
The original intention of snappass is an internal tool for sharing passwords. With that intention in mind, I think a whitelist approach is simple, works well, and doesn't sacrifice anything in terms of usability. In the case of an internal tool, other software inside an organization that does prefetching should be identifiable (and thus can be whitelisted). That being said sharing things between organizations could be a compelling use case that goes beyond the original intention of the project and might not work perfectly with a whitelist approach.
I'm assuming you have seen cases where whitelisting has failed that have inspired this PR. From a management standpoint, this change would reduce the burden of having to maintain said whitelist in the project. If we have actually seen cases where legitimate client applications that have used empty user agent strings or other cases where UA based whitelist simply wouldn't work (as you suggested in your example), we should definitely go forward with this change.
From a security perspective, this change isn't dangerous. It does add the ability for someone to tell if a link is valid without deleting the contents, but I can't think of an attack that can be performed with this added information.
This PR does involve a usability change as well where users have to click to reveal the secret. Most prefetching clients I have seen do not actually execute javascript so we could automate the form submission if we want to get rid of the user interaction portion of this change. I personally don't think I'd mind the extra button click as a user, but if we do see it become a problem, automating the form post could be future work.
Overall this change looks good to me.

@laurilubi, let's also bump the version to 1.5.0 before we merge this.

@laurilubi, please feel free to add your name to AUTHORS.rst, as well. 😉

Thanks :) I updated the authors list.
I bumped the version manually. bumpversion gave me an error TypeError: environment can only contain strings for some reason.

@jparise Just checking the status here. Any updates?

Sorry for the delay. I'll merge this now, and if @nichochar has any additional feedback, we can address it as follow-up.

Thanks :)

Nope, I reviewed and LGTM. Thanks for merging Jon and thanks for the contribution @laurilubi


Flaky tests regarding OMG.DB and Postgres

I experience unpredictable tests failing on CI, e.g. https://circleci.com/gh/omisego/elixir-omg/20426?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
Reruning circle-ci workflow usually helps.

yeah, it's very rare but happens to me as well, locally

Duplicate (#1025)


FIxed the duplicate files warning(#2070)

Summary
Running code using mock files with the same name provided a warning in the console.
I moved the warning from being thrown when files had the same name to only when full paths are the same.
Test plan
All my tests still function after the change, only difference is the warnings have been removed.

You can run yarn lint:md to fix CI

This also needs a test :)

I underestimated this issue and will close it.
Yet a fix for it has been waited for for a long time.


lxd init must not allow slashes in Name of the new storage pool

Distribution: ubuntu
Distribution version: xenial
lxc info:

config: {}
api_extensions: [Omitted, because it's quite long and as far as I can tell, it's not relevant. If it's needed let me know and I will update this.]
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate: [...]
  driver: lxc
  driver_version: 2.0.8
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.4.0-104-generic
  server: lxd
  server_pid: 3183
  server_version: "2.21"
  storage: zfs
  storage_version: <IP_ADDRESS>-0ubuntu16

Issue description
lxd init must not permit / in Name of the new storage pool.
This happens when using lxd init and entering tank/lxd for Name of the new storage pool. This leads to the creation of the storage pool named tank/lxd. I would expect the input to be checked, so that a / is not permitted.
Steps to reproduce

lxd init
Enter yes to get to Name of the new storage pool
Enter tank/lxd
(Finish init)
lxc storage list
lxc storage show tank/lxd

Additional problem: Unable to delete storage pool with /
(This is expected behavior as far as i know, but right now I'm stuck with my accidentally badly named pool.)
I'm unable to remove it, because the storage pool can not be found:
lxc storage list

+-----------+-------------+--------+----------+---------+
|   NAME    | DESCRIPTION | DRIVER |  SOURCE  | USED BY |
+-----------+-------------+--------+----------+---------+
| default   |             | zfs    | tank/lxd | 3       |
+-----------+-------------+--------+----------+---------+
| tank/lxd  |             | zfs    | tank/lxd | 0       |
+-----------+-------------+--------+----------+---------+

lxc storage show tank/lxd

error: not found

Using the socket doesn't help:
curl --unix-socket /var/lib/lxd/unix.socket lxd/1.0/storage-pools

{"type":"sync","status":"Success","status_code":200,"operation":"","error_code":0,"error":"","metadata":["/1.0/storage-pools/default","/1.0/storage-pools/tank/lxd "]}

curl --unix-socket /var/lib/lxd/unix.socket lxd/1.0/storage-pools/tank%2Flxd

{"error":"not found","error_code":404,"type":"error"}

curl --unix-socket /var/lib/lxd/unix.socket lxd/1.0/storage-pools/tank/lxd

{"error":"not found","error_code":404,"type":"error"}

curl --unix-socket /var/lib/lxd/unix.socket lxd/1.0/storage-pools/tank

{"error":"not found","error_code":404,"type":"error"}

curl --unix-socket /var/lib/lxd/unix.socket lxd/1.0/storage-pools/lxd

{"error":"not found","error_code":404,"type":"error"}

Hmm, yeah, we should just have the server-side LXD code refuse to create a pool with a slash in its name, that'd make "lxd init" fail solving this issue.


Update package.json

You need this info for the backlink from npm to github...

@oklemenz2 your integration test is failing
FAIL test-integration/integration-main-test.js (16.247 s)
  integration-main
    ✓ GET $metadata (61 ms)
    ✕ GET with parameters (2997 ms)

@oklemenz2 your integration test is failing
FAIL test-integration/integration-main-test.js (16.247 s)
  integration-main
    ✓ GET $metadata (61 ms)
    ✕ GET with parameters (2997 ms)

Temp HANA connection issue.


PHP downloading instead of executing

I'm a new to this live server thing but for .html it worked perfectly fine! But now when I want to use it for .php it want's me to download it instead of executing it. How can I fix it? I'm using Firefox and my settings.json is:
`{
"liveServer.settings.useWebExt": true,
"liveServer.settings.proxy": {
    "enable": true,
    "baseUri": "/src",
    "proxyUri": "http://<IP_ADDRESS>:80"
},

"liveServer.settings.CustomBrowser": "firefox",

}`

Ok Ok! I got you! You're on wrong track!
Can I know the actual address of you PHP project when you're not using Live Server? eg: localhost:80/php/ ?
If I assume this => localhost:80/php/
Now, open VSCODE.
setup settings
"liveServer.settings.proxy": {
    "enable": true,
    "baseUri": "/",
    "proxyUri": "http://localhost:80/php/"
},

"liveServer.settings.CustomBrowser": "firefox",

(assume live server starts with port 5500)
if baseUri is /, http://<IP_ADDRESS>:5500/ will be mapped with http://localhost:80/php/.
if baseUri is /scr, http://<IP_ADDRESS>:5500/src/ will be mapped with http://localhost:80/php/.
if baseUri is /foo, http://<IP_ADDRESS>:5500/foo/ will be mapped with http://localhost:80/php/.
Hopefully, you got it

Sorry, still don't get it with that baseUri, does that mean I still have to keep my project files in /var/www?

Ok! Let me know what is your actual PHP URL ..!!!
BTW, set baseUri as / always.

Hi @chomik-pawel , If it is still confusing you, follow the Direct Setup. It is now more easy &  straight-forward way. [ v1.0.0 update is required]
[It is now available on Chrome Web Store]

Hi, I tried using the Direct Setup, but I am getting the same problem. I am not quite understanding what value should in the "Actual Server Address"  field. Do I need my site running on a different server besides VSC Live Server?
Here is what I did, exactly:
1- created a folder on my Desktop named "myPoject", and placed an index.php inside of it.
2- opened "myProject" with VSC, and served it with Live Server on port 5500. And Chrome automatically opens on http://<IP_ADDRESS>:5500/ , where I get the list of the files on the server(index.php). If I click on index.php, it downloads automatically.
My Live Server Extension Settings are the following:
Actual Server Address: http://<IP_ADDRESS>:5500
Live Server Address: http://localhost:5500/
Please let me know what I might be doing wrong, and I am excited about your extension.
Thanks.

Hi @aalcindo, Live Server will not able to compile your PHP code - That's why php is downloading....
Suppose you don't have Live Server. Now how you can view the PHP code in browser? -> This is the actual server address

I've mentioned here. @aalcindo

I Eventually got it to work. For anybody who doesn't understand how to do it, I agree the documentation uses vague terms like "Now at the Actual Server add http://localhost/php/ (assuming your actual server is http://localhost/php/)" which doesn't exactly explain HOW to add??? or what does "add" mean when it comes to a server.
So this is how I got it to work:
Suppose you have a PHP project in your local wamp/xamp and the project is in a folder called "top5"
You normally access it at this address:  http://<IP_ADDRESS>/top5/
Now you want to make it live reload.
Assuming you have installed the liveserver extension in visualstudio code and the browser extension in your browser, you should activate the browser extension and DO NOT CHECK  "I don't want proxy setup" because we actually want proxy setup for live reload of php projects. Just enable it by clicking the live reload button on the extension.
Now. inside your project, you should have a .vscode folder and a settings.json file
The settings.json file should have this content
`{
// Mainly for static files
"liveServer.settings.useWebExt": true,
/*
    If you have dynamic pages (PHP), you have to setup proxy - it's pretty easy.
     Reloading after php changes is now working.
** The firewall may ask for permission, so please allow that. Good luck.
Thank you for the plugin ritwickdey!
A video tutorial would help a lot of people.

A draft video tutorial https://www.youtube.com/watch?v=54wcX1G2GH8

@ritwickdey Thank you, that should help a lot of people. Awesome functionality! Thanks again!

Hi @ritwickdey is there any way to get this working for .html.liquid files?

Hi guys so... I fixed the problem partly... it's no longer asking me to download a file (.php) but it doesn't auto refresh either... what do I do?
--copied the settings in settings.json

still not working :-1:  with extension or without extension, for the php i am using brackets for log time lol, gg, this is the bug coming from Apache i think that is the reason it's not working i don't know what is doing vscode thay have to fix this bug to debug, compile and code in every platform, any extension is not useful BTW code is not running so what is use of extension.

please check this video tutorial. thanks
https://youtu.be/2RsapQV9OLg

Here are my settings in settings.json and in the Chrome extension:
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.useWebExt": true,
"liveServer.settings.CustomBrowser": "chrome",
Actual address => http://test1.dev
LiveServer Address => http://<IP_ADDRESS>:5500

This is the best asnwer! Thanks!

The Basic setup work form me. I am using VS code, Live reload Extension (for browser and for vscode) and xampp server for php execution.
Thanks for all your efforts!


morphology and ICD-0

The diagnosis table has entries such as - 8072/3 are ICD-O codes.
For instance 8072/3 is  Nonkeratinizing squamous cell carcinoma.
Some but not all of these codes are available on NCIT.
For instance,
Non-Keratinizing Large Cell Squamous Cell Carcinoma
maps from NCIT:C65173.
Questions

Is this thebest place to get ontology terms for ICD-O?
Does NCIT team have a simple mapping file?
Are there other resources such as MONDO?

closed by #56


SCT-1251 Add add_user_to_namespace to service.

Pull Request Test Coverage Report for Build 179

6 of 6 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 94.223%

Totals

Change from base Build 178:
0.02%

Covered Lines:
946

Relevant Lines:
1004

💛  - Coveralls


Yolo is not able to load pre-trained weights file

Hello, I'm trying to train yolo on my own dataset for tadpole detection, but it can't seem to load the weights  that I specify in the config.json file.
I tried using the "Full Yolo" architecture paired with the full_yolo_backend.h5 file, and now also tried "Tiny Yolo" with the tiny_yolo_backend.h5 file, neither worked.
The error I get is always some variation of:
ValueError: You are trying to load a weight file containing 16 layers into a model with 2 layers.

('Loading pre-trained weights in', u'/home/ah2166/Documents/sproj/keras-yolo2/tiny_yolo_backend.h5')

Traceback (most recent call last):
  File "train.py", line 104, in <module>
    _main_(args)
  File "train.py", line 81, in _main_
    yolo.load_weights(config['train']['pretrained_weights'])
  File "/home/ah2166/Documents/sproj/keras-yolo2/frontend.py", line 243, in load_weights
    self.model.load_weights(weight_path)
  File "/home/ah2166/.virtualenvs/opencv/local/lib/python2.7/site-packages/keras/engine/topology.py", line 2656, in load_weights
    f, self.layers, reshape=reshape)
  File "/home/ah2166/.virtualenvs/opencv/local/lib/python2.7/site-packages/keras/engine/topology.py", line 3354, in load_weights_from_hdf5_group
    str(len(filtered_layers)) + ' layers.')

ValueError: You are trying to load a weight file containing 16 layers into a model with 2 layers.

The weights file is in the keras-yolo2 root directory. This is my config.json:
{
    "model" : {
        "backend":              "Tiny Yolo",
        "input_size":           416,
        "anchors":              [1.01,1.08, 5.88,6.20, 7.65,9.83, 9.43,7.18, 10.47,10.08],
        "max_box_per_image":    10,
        "labels":               ["tadpole"]
    },

    "train": {
        "train_image_folder":   "/home/ah2166/Documents/sproj/tadpole_dataset/images/",
        "train_annot_folder":   "/home/ah2166/Documents/sproj/tadpole_dataset/annots/",

        "train_times":          20,
        "pretrained_weights":   "/home/ah2166/Documents/sproj/keras-yolo2/tiny_yolo_backend.h5",
        "batch_size":           8,
        "learning_rate":        1e-4,
        "nb_epochs":            30,
        "warmup_epochs":        3,

        "object_scale":         5.0 ,
        "no_object_scale":      1.0,
        "coord_scale":          1.0,
        "class_scale":          1.0,

        "saved_weights_name":   "tiny_yolo_tadpole.h5",
        "debug":                true
    },

    "valid": {
        "valid_image_folder":   "",
        "valid_annot_folder":   "",

        "valid_times":          1
    }
}

Any advice on how I might resolve this and get it to load the weights file? Thanks!

Hey,
so there's a difference in the models used and the pretrained weights.
On the one hand, you have the weights for the backend that is used (e.g. full yolo or tiny yolo). The path to their weight file is hard coded into backend.py. In order to load these weights you need to download them (read the README) and put them into your yolo folder, so the backend script can find it.
On the other hand, you have weights for the whole model used, i.e., the backend plus some additional conv layers for the box detection (the backend is a classifier). In your config, you can specify a path to weights for that whole model. This is useful if you did some epochs of warmup training and want to load the weights from this warmup training as a start for your proper training.

As far as I can tell, what I currently have in the yolo root folder for backend.py to find are the backend files, which I downloaded from the link in the README.
So are you suggesting that I download the full weights files, instead of just the backend weights?
If so, should I get the weights from this link in the README?
"The link to the pretrained weights for the whole model (both frontend and backend) of the raccoon detector can be downloaded at: [(https://1drv.ms/f/s!ApLdDEW3ut5feoZAEUwmSMYdPlY)]"  ?
Because I was under the impression that these would already be trained for Raccoons, but I guess if they're going to be retrained for my dataset that would make sense, considering that this is transfer learning after all.

Well it depends on what you would like to train. If it looks similar to raccoons (and has only a single label!) you might can use these weights. Otherwise I would suggest you just leave this field blank or you do some epochs of warmup training, save the weights (with the saved_weights_name field) into some file like blabla_warm.h5 and load it (with the pretrained_weights field) for your proper training.

Thanks, doing that made it train successfully.
The issue now is that it doesn't detect anything, but I'm guessing that is either an indication that my dataset is not robust enough or I need to mess around with the network configurations...

As far as I can tell, what I currently have in the yolo root folder for backend.py to find are the backend files, which I downloaded from the link in the README.
So are you suggesting that I download the full weights files, instead of just the backend weights?
If so, I'm assuming I should get the weights from this link in the README, which is the link right after this:
The link to the pretrained weights for the whole model (both frontend and backend) of the raccoon detector can be downloaded at:
Because I was under the impression that these would already be trained for Raccoons, but I guess if they're going to be retrained for my dataset anyway that would make sense, this is transfer learning after all.

can anyone please share the frontend and backend pretained weights as it is not available now in the link mentioned above

https://github.com/rodrigo2019/keras_yolo2/releases


added events and campaign id bug fixed

This PR modifies the file: myWeb3ProjectOne/contracts/CrowdFunding.sol
Fixed an issue in donateToCampaign() function, where in case if user added campaign id, that doesn't exits then funds will be lost and an extra entry will be added to campaigns mapping. So, I have added a mapping which keeps track whether that campaign exists or not, thus with this we can keep a track of all the campaign whether they exist or not.
Also added events for campaign creation and donations.

One more thing I want to suggest is in the createCampaign() function instead of taking owner as parameter you should take it from msg.sender
According to me, it is good practice that if one wants to register a campaign then he must transact with the wallet he requires to get donations to.

The changes you have made are remarkable and amazing but this file is conflicting somehow with the current version of the contract. You're required to perform alterations in the current file keeping the new modifications intact!

Sure, currently I am in college, so I will make the commit as soon I am free.

Looks good👍
Thank you for your contributions.

Hello, can you please mark this under GSSOC.


chore: node20

I tried to update nod20 from node16

#38

Thanks!

@aki77
The reason of Error: Resource not accessible by integration  of build-test / test may be a workflow permissions issue.
Could you please check the Workflow permissions? 🤔
https://github.com/orgs/community/discussions/60820

@aki77 how about this https://github.com/aki77/simplecov-report-action/pull/39#issuecomment-1936839474 ?? 🤔

@aki77 how about this #39 (comment) ?? 🤔

It would be nice to have this on node20. I am getting a warning


add option to project root columns from schema

The default Parquet projection works at a leaf leve, such that the schema below would have 4 fields:
a: Struct<<b: String, c: Int32>
d: List<Float32>
e: Int64
----
leaf 1: a.b
leaf 2: a.c
leaf 3: d
leaf 4: e

By default, when selecting fields 1 and 3, we don't get a and e, but we get a.b and d.
This is often undesirable for users who might want to select a, without knowing that it's spread out into 2 leaf indices.
This adds the option to select fields by their root.
We also read all Arrow types in the roundtrip test. Lists and structs continue to fail, and have been commented out.

I cherry-picked onto schema-roundtrip because I force pushed that 🤭


Crash logs do not show java stack trace

An xcode crash log from an MOE app doesn't show the java symbols in the stack trace.

This is currently not possible. A workaround is to use a crash reporting service, like Crashlytics. See how to integrate it with MOE here: https://discuss.multi-os-engine.org/t/crash-reporting/33
The new LLVM backend will include (mangled) Java symbols in native stack traces

We are already using Crashlytics, in the Obj-c side. And it doesn't show the java stack trace.
Are you saying we should also add it somehow in the java side?

Yes, read the forum topic that I posted.

The proposed solution there relies on the Java Unhandled Exceptions mechanism, that will not catch crashes in the obj-c side, or am I wrong?
So it is less interesting for us.

For a combined stack trace, you have to wait for the LLVM backend

Will do that.
On Thursday, 25 August 2016, Gergely Kis<EMAIL_ADDRESS>wrote:

For a combined stack trace, you have to wait for the LLVM backend
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/multi-os-engine/multi-os-engine/issues/11#issuecomment-242507980,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEqkm9vryZwYj1EzfNYb-rrang393x8jks5qjewfgaJpZM4Jszp8
.

--
With regards,
Alex Itelman
054-8855550
P*   Think Green. Do you really need to print this document?*

+1

+1


Hotfix for macOS crash

Fixes #790

Download:
Environment: QT=5.12, ARCH=32, CONFIGURATION=release, QTIFW=C:\Qt\Tools\QtInstallerFramework\3.1


feat(next-font): implemented next/font and refactor github button

Description
This PR should contribute to the improvement of the lighthouse score by around 60
Related issue(s)
See also #3045

closing this as not planned


Peek() without Optional:: ifPresent

How does one implement peek() without using Optional.ifPresent?
Initially, I just printed my get() Optional value but when I read the description for level 3, I realised that if the Optional is empty, we shouldn't print anything.
Alternatively, if I had to do orElse() what action would I carry out?
 I used a code that looks like this optional.ifPresent(x -> {System.out.println(x)});  Hope I answered your question.

Omg small details, that helps so much!! Thank you!!


updated links

Updated the links in the following page referring to other pages

@AnweshGangula : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

#sign-off

@mrbullwinkle: I'm sorry - only the author of this article, @nerajput1607, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@mrbullwinkle: I'm sorry - only the author of this article, @nerajput1607, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@ktoliver this public PR is ready for merge.

@ktoliver this public PR is ready for merge.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@mrbullwinkle Thanks for the review. I edited the relative links to reflect the atypical capitalization of folder names in the content set, and then tested the links. Merging now.

@mrbullwinkle Thanks for the review. I edited the relative links to reflect the atypical capitalization of folder names in the content set, and then tested the links. Merging now.


[turbobase64] Add new port

Add Turbo Base 64 library

Which triplets are supported/not supported?
Linux x64, OSX, arm
Have you updated the CI baseline?
Yes
Does your PR follow the maintainer guide?
Yes

@PhoebeHui any progress on this one?

@JackBoosY, could you help review?

Alright, looks good to me. Thanks @kreuzerkrieg :)

please, update turbobase64 with the latest version. This fix a bug relevant when using the short strings functions explicitly.

please, update turbobase64 with the latest version. This fixes a bug relevant when using the short strings functions explicitly.

Done
https://github.com/microsoft/vcpkg/pull/10317
Please take a look.
Please consider adopting port's CMakeLists.txt file into your upstream


Fix issues reported by kyverno policies

Towards https://github.com/giantswarm/giantswarm/issues/27336
Checklist

[x] Update changelog in CHANGELOG.md.

can you add the new values to the schema file too please?

can you add the new values to the schema file too please?

done


pseudocode

hi, Unicode.Style is a great idea.
i'm wondering could you write down the algorythm of transform.js in pseudo code to ease the rewrite it in another language. unfortunately js is kind of obscure for me. my main goal to have an offline and headless tool to do the unicode style.
thanks for consideration.

Hi @bAndie91. I think the code block here explains it sort of well. The transformers consist of taking  either the first or the second part of the modifier variable (depending on whether it's lowercase or uppercase) and appending it to the existing character codepoint.
That part is shown here:
https://github.com/ekmartin/unicode-style/blob/2952f520a2c2811e3dac96946766e49802b0a9bc/src/transform.js#L159-L163
The appenders (e.g. underlining text) just append a unicode character to each character in the string:
https://github.com/ekmartin/unicode-style/blob/2952f520a2c2811e3dac96946766e49802b0a9bc/src/transform.js#L170-L182

i've ported unicode.style logic into cli in perl, see https://github.com/bAndie91/tools/blob/master/usr/bin/unicodestyle


suggestion: Add Guide for the Newcomers and a bug

There should be a proper guide for the new comers.
I'm not able to patch YT with any of the patches. It keep failing. Don't know the reason.
Cairo Splash in YTM (anddea) not available for latest supported version. And the version which it shows that supports, doesn't show other patches.

There should be a proper guide for the new comers.
Maybe at some point, but it's pretty straight forward. It's just pasting links into the app.

I'm not able to patch YT with any of the patches. It keep failing. Don't know the reason.
Most of the patches fail due to the changes on the Compose Manager. It's not the patch-bundles.json files since all they do is format it so the app can read and pull the correct releases. It's either the patches them selves or the manager. I have the same issue. Remember this manager is in development.

Cairo Splash in YTM (anddea) not available for latest supported version. And the version which it shows that supports, doesn't show other patches.
Same thing here. Most likely the releases not being probably read by the manager. It's not the patch-bundles.json files since all they do is format it so the app can read and pull the correct releases. That's why some work and some don't. Also in pre-releases (if that's what your using) most patch developers don't include all the previous patches sometimes, just the patches currently in the dev branch of there repository.


API Cleanup proposal: remove /containers/ps endpoint

Description of problem:
API Cleanup proposal:
In the docker\api\server\server.go the /containers/json and the /containers/ps are pointing to the same function: getContainersJSON.
I suggest the removal of /containers/ps endpoint, because it not used anymore.
docker version:
since 1.0.0++
docker info:
Not relevant but:
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa/1.3.2
uname -a:
Linux docker 3.16.0-23-generic #31-Ubuntu SMP Tue Oct 21 17:56:17 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Environment details (AWS, VirtualBox, physical, etc.):
Tested on AWS and VMWare based servers.
How reproducible:
Check in browser: http://<docker_host>:<docker_host_port>/containers/json , then http://<docker_host>:<docker_host_port>/containers/ps
Steps to Reproduce:

Start docker with "-d -H=<IP_ADDRESS>:2375"
query /containers/json
query /containers/ps

Actual Results:
Both query producing same results
Expected Results:
/containers/ps not is obsolete. Should return 404
Additional info:
N/A

Voted No to clear it from the API, I'm gonna close it.


Patch: Addresses issues #24, #25 and #27

[2.1.1] - November 2020
Added

Bypass option for using remote templates from cloud storage
useCloud option added to local user config so users can update whether they want to use cloud resources by default (default true)
Fix for repo templating through selected or new github project repo

Modified

Implemented fix for gitbuilder failing on project init when run from path that has spaces.

This closes #24 #25 and #27

/closeall

Closes #24, Closes #25, Closes #27


db.changeColumn tries DROP INDEX

I'm submitting a...

[X] Bug report
[ ] Feature request
[ ] Question

Current behavior

Upon attempting to run db.changeColumn as follows:
  db.changeColumn(     "professionals",     "estrellas",     { type: "string", length: 2, notNull: false, unique: false },     callback   );
When the migration runs, the first thing we're seeing is DROP INDEX "estrellas" which obviously causes an error, which is the following:
[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: ER_CANT_DROP_FIELD_OR_KEY: Can't DROP INDEX estrellas; check that it exists
Expected behavior

To not attempt to drop an index when only looking to change the column spec.
Minimal reproduction of the problem with instructions
We're trying to change a col VARCHAR 255 to a col VARCHAR 2 in this case.
What is the motivation / use case for changing the behavior?

Change the colum spec.
Environment

db-migrate version: ^0.11.3
db-migrate-mysql: ^1.1.10

Additional information:
- Node version: 10.0.0
- Platform:  Mac

Others:
Nothing that comes to mind!

Turns out removing { unique: false } fixed the issue.
I still think it's somewhat weird, but it must be just how it works.

@iamraffe Nothing weird here. If you provide unique: false you're actively stating: I don't want the unique key here drop it. When there is no key, it will of course cause a failure on that side and pre checking for existence is not a requirement, however a ifExists option for the unique index could be added in a future version.

The same goes for unique: true you're actively stating: give me a unique key.


Avoid applying timestamp on the non-literal operand

timestamp operator only supports pure date string like "2020-01-02", if the operand is a function returning string like substr, Trino will throw an exception. Therefore, we avoid applying timestamp on the non-literal operand.
Tests:

unit test
tested on the affected production views, which could be translated well with this patch
integration test, no regression

Opened an issue for trino: https://github.com/trinodb/trino/issues/9140


Multiple input .ass files leads to duplicate fonts

If I call multiple input .ass files as so:
fontcollector -d -mkv "fma 01.mkv" -i "fma cr 01.ass" "fma shady 01.ass" "fma ani 01.ass" --collect-draw-fonts --additional-fonts-recursive "fonts"
The attachments in the final file look like this:
Attachments                              : DFHsr4.ttc / [ENG] DFHSMincho-W9 & DFPHSMincho-W9 & DFGHSMincho-W9.ttc / GANDHISANS-BOLDITALIC.OTF / [ENG] WKGMSamd.TTF / GANDHISANS-BOLD.OTF / timesbd.ttf / Wunderlich-Medium.otf / [ENG] Dosis-Book.ttf / timesbd.ttf / KozMinPro-Heavy.otf / DFHsr4.ttc / [ENG] A-OTF-GothicMB101Pr6N-Heavy-2.otf / KozMinPro-Heavy.otf / KozMinPro-Heavy.otf / KozMinPro-Heavy.otf / [ENG] HeiseiMincho-W9.ttf / timesbd.ttf
If I merge all of these subtitle files then only use it as an input, as so:
fontcollector -d -mkv "fma 01.mkv" -i "fma merged 01.ass" --collect-draw-fonts --additional-fonts-recursive "fonts"
I get the following attachments:
Attachments                              : DFHsr4.ttc / KozMinPro-Heavy.otf / GANDHISANS-BOLD.OTF / GANDHISANS-BOLDITALIC.OTF / KozMinPro-Heavy.otf / [ENG] Dosis-Book.ttf / [ENG] A-OTF-GothicMB101Pr6N-Heavy-2.otf / timesbd.ttf / [ENG] WKGMSamd.TTF / DFHsr4.ttc / [ENG] HeiseiMincho-W9.ttf / Wunderlich-Medium.otf / [ENG] DFHSMincho-W9 & DFPHSMincho-W9 & DFGHSMincho-W9.ttc
As you can see, including multiple input files that use overlapping fonts leads to the same font file being merged multiple times.

Since you haven't uploaded a sample, I created a sample which should replicate your problem, but when I run the command fontcollector -d -mkv "test_video.mkv" -i "1.ass" "2.ass" --collect-draw-fonts, I don't have your problem
Are you sure you are on the latest version (3.0.0) ? You can run the command pip show FontCollector to see which version you have.

Here's a sample:
fontcollector test.zip
I don't get the same results as I did in the original post, but the timesbd.ttf font still repeats here if you use the non-merged subs. One thing I noticed is that the timesbd and KozMinPro-Heavy fonts that are repeated in the original post are both fonts that are installed on my system, and the others are not installed. This issue is very likely related to using both OS fonts and an additional fonts folder at the same time.

Again, which fontcollector version do you have?

I'm using version 3.0.0.

I have no idea what cause this problem

This bug is due to https://github.com/georgkrause/langcodes/issues/19
I am waiting for them to merge my PR and push a new version on pypi

They merged my PR.
For the moment, to resolve this bug, you can install the main branch of langcodes by executingpip install git+https://github.com/georgkrause/langcodes.git


[.Net][Feature Request]: Support M.E.A.I framework

Is your feature request related to a problem? Please describe.
MEAI: https://devblogs.microsoft.com/dotnet/introducing-microsoft-extensions-ai-preview/
Describe the solution you'd like
No response
Additional context
No response
cc.
@stephentoub
@luisquintanilla

resolved with PR on 10/24


argilla:stats is visible in metadata filter

Describe the bug
argilla:stats is visible in metadata filter
To Reproduce
Steps to reproduce the behavior:

Go to a dataset with argilla:stats
Click on metadata filter
See error

Expected behavior
argilla:stats need to be excluded from available metadata filters
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS [e.g. iOS]:
Browser [e.g. chrome, safari]:
Argilla Version [e.g. 1.0.0]:
ElasticSearch Version [e.g. 7.10.2]:
Docker Image (optional) [e.g. argilla:v1.0.0]:

https://github.com/argilla-io/argilla/issues/2220 Related perhaps


request: Vault

URL: https://github.com/milkbowl/Vault
Synopsis: Abstraction API for economy, permissions, and chat APIs
I'm not sure how easy this would be to implement.

@averyanalex can you do this?

Try to build normal package or zip?

We gave up nix packages because the hash changes with nixpkgs updates. Build the zip file.

We gave up nix packages because the hash changes with nixpkgs updates. Build the zip file.

*unstable hashes, they are changing randomly)


addCustomDatabaseColumn() not working with searchable.

Describe the bug
when you will use addCustomDatabaseColumn() as a column
it is using the alias name as column in where.
To Reproduce
Steps to reproduce the behavior:
use to add column with addCustomDatabaseColumn()
and using search from frontend. it will throw error
example :-
$func_full_name = $columns->func()->concat(['first_name' => 'identifier', ' ', 'last_name' => 'identifier']);
$columns->addCustomDatabaseColumn($func_full_name, 'full_name')

any update?


Fixed selecction of options

Added option names to constants
Pre-select firmware
Fixed Custom paths not showing in other tabs

Hi I will look at that during the day
Thanks for Contribution !


initialIndex of the bottomNavigationBar?

Hi dev, the initial tab is still fixed to index 1 in view even the initialIndex of _tabController is set to 0.
  @override
  void initState() {
    super.initState();
    _tabController = new MotionTabController(initialIndex: 0,vsync: this);
  }

Thank you for your feedback. I am working on this. It will be fixed on the next release.

Same problem.
Good package, thanks for sharing, bro.

Please try version: 0.1.1

Hi dev, the initial tab is still fixed to index 1 in view even the initialIndex of _tabController is set to 0.
  @override
  void initState() {
    super.initState();
    _tabController = new MotionTabController(initialIndex: 0,vsync: this);
  }

Please try version: 0.1.1

Why can't I set an active index myself.
I want to move back to home screen when I press back but there is no option to set active index by myself.
Looking forward for your replay.


Publishing speed slower with Java 17 than with Java 1.8 [Windows]

Expected Behavior
I publish on Windows a large (about 2000 topics) DITA Map to HTML5 with default settings:
https://github.com/oxygenxml/userguide/blob/master/DITA/UserManual.ditamap
With both Java 17 and 1.8 they should get published in about the same time.
This continues on this comment I added here some time ago: https://github.com/dita-ot/dita-ot/issues/3621#issuecomment-720276269
Actual Behavior
With Java 1.8 it gets published in about 253 seconds, with Java 17 it gets published in about 400 seconds.
Possible Solution

Set the -Dsun.io.useCanonCaches=true system property in the dita script file which starts the Java process. There was a change in Java 12 which changed default for the cache to false. As the DITA OT works intensively with files, enabling this property seems to make a big difference and remove this large publishing time difference between Java 1.8 and 17..
Setting store-type=memory as a parameter also helps as a workaround to reduce the publishing time with Java 17.

Steps to Reproduce

Download https://github.com/oxygenxml/userguide
Publish "DITA/UserManual.ditamap" to HTML5 using default params and Java 17
Publish "DITA/UserManual.ditamap" to HTML5 using default params and Java 8
Compare publishing times

Environment
Windows, Java 17 Eclipse Adoptium

DITA-OT version: 3.7
Operating system and version:
Windows
How did you run DITA-OT?
(dita command)
Transformation type:
(HTML5.)

@raducoravu Could you open a PR that adds -Dsun.io.useCanonCaches=true to dita.bat?

@jelovirt Yes, I can open a pull request after #3926 gets accepted as I forgot to create a separate branch for the grammar cache pull request so I right now have modifications directly in my cloned DITA-OT project's "develop" branch.

I was curious about this -Dsun.io.useCanonCaches=true option, so I tried some experiments using this PowerShell script:
run.ps1.zip
Should this option have an effect when specified on the dita command line? It didn't seem to make a difference for me (although the Java version certainly did):

Here is the gnuplot plot command that I used:
plot.cmds.zip

@chrispy-snps  the "-Dsun.io.useCanonCaches" is a Java VM parameter, it cannot be passed as a dita.bat command line parameter, you need to actually modify the dita.bat and add this -Dsun.io.useCanonCaches=true in the command line something like:
  "%_JAVACMD%" %ANT_OPTS% -Djava.awt.headless=true -Dsun.io.useCanonCaches=true  ...........

@raducoravu - thanks, this looks much better!

I use these CDF plots for visualizing noisy data because the Y=50% value provides a median to draw conclusions from, and the slope gives a good idea of variance and outliers.

@raducoravu, @jelovirt - here are the results on a 24-core linux box:

There is still a benefit to the option, but not as significant as in Windows. Should we also set the parameter in the linux dita batch script?

@chrispy-snps @jelovirt for consistency sake maybe we could add the flag in both dita scripts. Even if it just shaves off a few seconds on Linux it still makes the processing more efficient and consumes less CPU resources.


GDScript: Cannot use static function from inner class

Godot version:
3.0.6 stable 64b non-mono version (currently latest available stable version)
OS/device including version:
Kubuntu 16.04
Issue description:
Cannot use static function from inner class - I get an error Invalid call. Nonexistent function 'st_fn_test' in base 'Reference ()'.. I was expecting to be able to do so, since static functions should be available everywhere, if I understand it correctly.
Steps to reproduce:
extends Node

static func st_fn_test(x):
	print(x)

class Inner:
	func _init():
		st_fn_test("Inner._init") # doesn't work

func _ready():
	st_fn_test("_ready") # works
	Inner.new()

Minimal reproduction project:
Just add an empty Node and the script from above.

Static functions indeed don't require to access an instance, but to call static functions, you need a reference to the class which contains them (or script). It is then expected to not be able to call it that way from your inner class, because it's a completely different class, AFAIK.
You would need something like:
class Inner:
	func _init():
		preload("enclosing_script.gd").st_fn_test("Inner._init")

However, because that would cause a cyclic reference, using load might work instead:
class Inner:
	func _init():
		load("res://path/to/enclosing_script.gd").st_fn_test("Inner._init")

That works, but is quite ugly. Why isn't static function accessible when it is in a same scope? I find it very unintuitive. This is really intended behaviour (asking if I should close this issue)?
Well, I think it's time to try C#...

Why isn't static function accessible when it is in a same scope?

That's the point, it isn't. A nested class still remains a different class, and then a different scope. I think that's the same in C#.

But you can surely at least reference outer class by name, not by path which is long and will break during refactoring. I also encountered other things (like missing support for multidimensional arrays, it is really pain to initialize them) and need to implement custom int Vector3 and Vector2 (that I think will be better done with C#'s structs which are passed as values).
Oh, didn't see that other issue, I am closing it then.
Thank you for quick answers :).

And another workaround would be to define your static function before your inner class.

Am I missing something here? I think I have it defined before inner class.

@mnn I don't know, I just read that from the existing issue. Perhaps the workaround no longer works?

If this is an intended functionality, I think it would be good to mention it in docs, since it doesn't seem to be very common for an inner class to not have access to outer class (in many languages it has full access to not only fields and methods, but also generic types and it is often used to not be accessible from anywhere else except the outer class, so it is extremely different in GDScript compared to mainstream languages like Java, Scala or C#). Here it works much more like a package/namespace IMO.


Guidelines for critapp module

From andrew.hankinson on September 08, 2011 10:52:49
Placeholder issue for critapp guidelines
Original issue: http://code.google.com/p/music-encoding/issues/detail?id=16

From<EMAIL_ADDRESS>on May 30, 2012 07:44:34
This issue was updated by revision r514 .
text for the critapp module

From<EMAIL_ADDRESS>on May 30, 2012 07:49:15
Status: Needs-Review

From andrew.hankinson on September 10, 2012 11:32:32
Fixed in MEI 2012 2.0.0. Closing.
Status: Fixed


listAssetBedPresets and ListBedPresets mismatch

Describe the bug
Navigate to the Dev camera on Care, and check the preset options available on the feed page vs ones on the camera configuration page.
/api/v1/assetbed/{assetbed_id}/camera_presets/ called in Configure Page(AssetBedCameraPresetViewSet)
/api/v1/bed/{bed_id}/camera_presets/ called in Feed Tab(CameraPresetViewSet)

To Reproduce
Steps to reproduce the behavior:

Go to https://care.ohc.network
Login with devdistrictadmin credentials
Navigate to Patient named 'Gigin'
Click on Feed Tab (alternatively, direct link to the feed page: https://care.ohc.network/facility/0c95c7f0-e1d2-4aff-83fa-933cef60d3a8/patient/7e8fc20f-02da-47f7-8c33-f2d8c7e52dd8/consultation/edfe0bd6-0f50-4a4c-8cd0-2d4ad0e9cea1/feed)
Compare Bed Presets to ones under 'Bed 1' in Camera Configuration Page (click on the information icon and then 'Configure Camera')

Expected behavior
Bed Presets in the Feed tab should be the same as Bed Presets for corresponding Bed in the camera configuration page.

@Jacobjeevan  is this issue still valid? I can see the related fe issue is closed.

@Jacobjeevan is this issue still valid? I can see the related fe issue is closed.

@DraKen0009 Still valid.

Alright. can you assign this to me , I'll try to get it fixed. Also I'm assuming this is not  priority issue and can be fixed by the weekend

Alright. can you assign this to me , I'll try to get it fixed. Also I'm assuming this is not priority issue and can be fixed by the weekend

Yea, that's fine. I don't have perms, pinging @sainak

Alright. Thanks

@Jacobjeevan @sainak  raised a PR for the issue , please review


Can we remove code coverage reporting for test bots

It's not clear to me that any is paying attention and it slows down test runs/builds.
Anyone opposed?
@arv, @aboodman, @kalman, @ehalpern, @cmasone-attic, @willhite?

Not opposed
On Sat, Apr 8, 2017 at 10:00 AM Rafael Weinstein<EMAIL_ADDRESS>wrote:

It's not clear to me that any is paying attention and it slows down test
runs/builds.
Anyone opposed?
@arv https://github.com/arv, @aboodman https://github.com/aboodman,
@kalman https://github.com/kalman, @ehalpern
https://github.com/ehalpern, @cmasone-attic
https://github.com/cmasone-attic, @willhite
https://github.com/willhite?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAE6BKsCWZUOw3lJAo5vJ7BwtI76vLZLks5rt71EgaJpZM4M3wz8
.

+1
I use code coverage a lot locally but I hardly ever find the bot useful.

We can turn it off, though I wouldn't mind a readme indicating how I can
run coverage tools locally
On Sat, Apr 8, 2017 at 3:06 PM Erik Arvidsson<EMAIL_ADDRESS>wrote:

+1
I use code coverage a lot locally but I hardly ever find the bot useful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-292748911,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMnImskDgm6SxxEAYN_c41W3M6PXRQbbks5ruAT7gaJpZM4M3wz8
.

Agree that it's useful to run locally but not on every build.
Ideally, we'd have a daily code-coverage report that was run out of line
with the build. This would allow use to keep tabs on it without interfering
with the regular dev cycle.
On Sat, Apr 8, 2017 at 4:21 PM, cmasone-attic<EMAIL_ADDRESS>wrote:

We can turn it off, though I wouldn't mind a readme indicating how I can
run coverage tools locally
On Sat, Apr 8, 2017 at 3:06 PM Erik Arvidsson<EMAIL_ADDRESS>wrote:

+1
I use code coverage a lot locally but I hardly ever find the bot useful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-292748911,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMnImskDgm6SxxEAYN_
c41W3M6PXRQbbks5ruAT7gaJpZM4M3wz8>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-292752474,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0CBJ1w51X-nEDE9phSbN0lm2VPcRSgks5ruBaCgaJpZM4M3wz8
.

I honestly never look at it. I think we have a good sense for what to test
... my sense of guilt of not testing things I know need to be tested is way
stronger than that graph anyway.
On Mon, Apr 10, 2017 at 9:56 AM, Eric Halpern<EMAIL_ADDRESS>wrote:

Agree that it's useful to run locally but not on every build.
Ideally, we'd have a daily code-coverage report that was run out of line
with the build. This would allow use to keep tabs on it without interfering
with the regular dev cycle.
On Sat, Apr 8, 2017 at 4:21 PM, cmasone-attic<EMAIL_ADDRESS>wrote:

We can turn it off, though I wouldn't mind a readme indicating how I can
run coverage tools locally
On Sat, Apr 8, 2017 at 3:06 PM Erik Arvidsson<EMAIL_ADDRESS>wrote:

+1
I use code coverage a lot locally but I hardly ever find the bot
useful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/attic-labs/noms/issues/3361#issuecomment-292748911
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMnImskDgm6SxxEAYN_
c41W3M6PXRQbbks5ruAT7gaJpZM4M3wz8>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-292752474,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0CBJ1w51X-
nEDE9phSbN0lm2VPcRSgks5ruBaCgaJpZM4M3wz8>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-293011495,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAE6BK3OTfn8uapCn3lX1rwzetulSCbLks5rul8qgaJpZM4M3wz8
.

Yeah, but you're not the only person who works here :-)

/me looks around...
hm, you're right!
On Mon, Apr 10, 2017 at 10:04 AM, cmasone-attic<EMAIL_ADDRESS>wrote:

Yeah, but you're not the only person who works here :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/issues/3361#issuecomment-293013871,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAE6BIUusPBYcN-92JB6ZVyJi8tXmVHxks5rumEXgaJpZM4M3wz8
.


[SPARK-5444][Network]Add a retry to deal with the conflict port in netty server.

If the spark.blockMnager.port had conflicted with a specific port, Spark will throw an exception and exit.
So add a retry to avoid this situation.

Test build #26212 has started for   PR 4240 at commit cc926d2.

This patch merges cleanly.

Test build #26212 has finished for   PR 4240 at commit cc926d2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26212/
Test PASSed.

LGTM merging this into master and 1.3. I added a few comments when I merged this.


MongoDB admin authentication failing

Hello,
I can't figure it out why is this config failing:
mongodb:
    name: localhost
    host: localhost
    port: 27017
    admin_username: admin
    admin_password: password
    databases:
      db1:
        username: user1
        password: password

I get the following error when starting the agent:
$ newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg -f
INFO       2013-09-03 10:36:54 27927  MainProcess     MainThread clihelper                                     run                       L382   : newrelic_plugin_agent 1.1.0 started
Exception: OperationFailure(u"command SON([('authenticate', 1), ('user', u'admin'), ('nonce', u'96c5679be83f59c0'), ('key', u'MY_KEY')]) failed: auth fails",)
but the connection works from the command line:
$ mongo localhost:27017/admin -u admin -p password
MongoDB shell version: 2.2.2
connecting to: localhost:27017/admin
'>' exit
bye
$ mongo localhost:27017/db1 -u user1 -p password
MongoDB shell version: 2.2.2
connecting to: localhost:27017/db1
'>' exit
bye
Isn't the admin user supposed to authenticate against the admin database or am I missing something?
Thanks in advance for your help.

Has anyone been able to solve this ?


Add pathway util function and address spacy dependency issue

Describe your changes
I added a pathway util function that gets the current pathway and then appends your desired directory on to it. This also addresses an issue where downloading the spacy model would hang if you did not download it yourself.
Non-obvious technical information
Nay.
Checklist before requesting a review

[ ] The code runs successfully.

Here is some console output

[x] The tests run successfully.

(poetry-python-project-py3.11) michaelp@MacBook-Air-3 supreme-court-ml-predictions % make test
pytest -vs test/
=========================================================================== test session starts ===========================================================================
platform darwin -- Python 3.11.3, pytest-7.2.2, pluggy-1.0.0 -- /Users/michaelp/Documents/GitHub/supreme-court-ml-predictions/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/michaelp/Documents/GitHub/supreme-court-ml-predictions
collected 1 item

test/test_util.py::test_get_full_pathway PASSED

============================================================================ 1 passed in 0.00s ============================================================================
(poetry-python-project-py3.11) michaelp@MacBook-Air-3 supreme-court-ml-predictions %

[x] I ran make lint and have made the bulk of changes that it has requested.
[x] The Lint GitHub Action step is passing.

Manually run make format to correct the errors.

It's good procedure to let the person that made the PR merge it as well. Thanks tho!
Were you able to get spacy to work, @JJModern?


UITextInput

Hi, what do you think about UITextInput? Without UITextField, UITextView and etc, and use only UITextInput?

Can you elaborate a bit more on it? UITextInput is enough if we just want to count the text. I have used the delegates of UITextField/UITextView to also restrict the text change beyond max limit.

Can you elaborate a bit more on it? UITextInput is enough if we just want to count the text. I have used the delegates of UITextField/UITextView to also restrict the text change beyond max limit.

May be use UITextInputDelegate and handle func textDidChange(UITextInput?) and try remove all code where have UITextField and UITextView and their delegates

func textDidChange(UITextInput?) is triggered after text changes. You cannot utilize it to restrict user from typing the text beyond the max limit. We need a delegate before the text change that is where respective delegates of textField and textView are used. I also want to monitor the end editing event to hide the component if it is not used as an accessory view.
If this component was just to count the character length then definitely we can get rid of other code related to UITextField and UITextView. Feel free to open PR if you have a solution for the same by just using UITextInput and its delegate.


Geolocation error (kCLError Domain 0) on iOS when no WiFi networks are in range

Checklist

[X] I've looked at the documentation to make sure the behavior isn't documented and expected.
[X] I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
[X] I've searched through the current issues to make sure this hasn't been reported yet.
[X] I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce
This issue occurs naturally only in places where no WiFi networks are in range of your device. To reproduce this issue in places where there are WiFi networks, use the following steps:

On an iOS device, completely disable WiFi in the Settings app.
(Optional) Check in a mapping app, such as Apple Maps or Google Maps, to see that the device is still able to return a geolocation without any detected WiFi networks.
Navigate to a site which uses Leaflet and offers geolocation. Either OpenStreetMap or my project Paddel Buch can serve as examples of this.
Click the geolocation button.
The following error message is displayed: Geolocation error: The operation couldn't be completed. (kCLErrorDomain error O.).

Note that the map is zoomed to the correct location as the error message is displayed. The location marker is also very briefly displayed on the map as the error message comes up.
I've found that this error occurs with enableHighAccuracy set to either true or false, and with watch set to either true or false.
Expected behavior
When geolocation is used on an iOS device in areas where there are no WiFi networks, Leaflet should use the location provided by the device and not display an error message.
I'm afraid I don't have an Android device to test with to see if this issue occurs on other platforms.
Current behavior
Leaflet seems to be handling the geolocation returned by iOS when no WiFi networks are in range incorrectly. I base this on the fact that the map is zoomed to the correct bounds and the location maker is briefly displayed, indicating that Leaflet received a location and processed it correctly initially, and only after this throws an error.
I've tried to work out where in the code this is happening, without success I'm afraid.
For my project this is a very problematic issue as Paddel Buch is intended to support paddle sports participants on the Swiss lakes, and naturally you don't usually find WiFi networks in the middle of a lake!
Minimal example reproducing the issue
No response
Environment

Leaflet version: 1.9.3 and 1.9.4
Browser (with version): iOS Safari 17.4 and 17.5
OS/Platform (with version): iOS 17.4 and 17.5

Does the same error show up at https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API/Using_the_Geolocation_API#examples ?

No, on this page the correct lat/lon coordinates are displayed with no error messages when WiFi is disabled.

I've been able to get a quick test of this on a Samsung Android 14 device, and with WiFi switched off geolocation worked without an error message with Leaflet 1.9.4.
Seems like this issue might be limited to iOS devices.

I notice the needs more info label is still attached to this issue.
Is there any more information I can try to get to help with this please?

It's more like "need spare time and also an iPhone and an iMac which I don't have".
@binghamchris By any chance would you be able to provide an error stack? Attach a desktop Safari as a debugger (and the works) in order to put breakpoints in the javascript code.
The Leaflet geolocation code is pretty barebones and just calls the geolocation API a couple times. It's necessary to see how it runs compared to other geolocation examples.

OK, I've had a go at this @IvanSanchez. Not being a JS developer I'm unsure if I've got the right info for you, so please let me know if there's more you need :)
With WiFi switched off on the iPhone, I put a breakpoint on the locate function and stepped through until the error message came up in variables:

When this stage is reached, which is right before the error message is displayed to the user on the iPhone, there's two things I notice:

On the iPhone the map is zoomed to the correct area, with the location marker in the right place (my actual location) and the location accuracy circle showing a wide accuracy circle (roughly 1.5km diameter).
The this._lastCenter variable has the lat/lon coordinates of my actual location (redacted in the screenshot).

Does this help please?

So glad I found this as having the same issue and hadn't connected it to wifi.
The message comes up after the phone has gone to sleep, and is then woken up and first asks for location. All works fine if Wifi enabled (regardless of whether there are any wifi networks around), but the message comes up if wifi is disabled - though location is still available and found.

@binghamchris @PaulWalks can you please check if the error occurs on the following site too: https://florian-bischof.at/tests/location.html
It has the same location implementation as Leaflet but without Leaflet.
In my eyes this is an error of IOS and nothing that we can capture.

I can't reproduce via that page. I think probably because it only asks location once - so after phone wakes up you have to reload the page to get it to try to geolocate. I think the error only happens when the phone wakes up on a page that is automatically updating location. I only get the error after waking the phone/screen from sleep with the locate page active.

The error message is thrown from Leaflet itself - it has the 'Geolocation error:' prefix from the leaflet code.

Leaflet just redirects the error, it is still thrown by the browser self:
https://github.com/Leaflet/Leaflet/blob/ed5778c319a0b5466e6f52b49004539ff8fff774/src/map/Map.js#L664-L683
@PaulWalks can you please try the page again. I added the watch: true attribute to keep requesting the location

Same for me @Falke-Design: as with the Mozilla dev site, the test site displays a pop up with the same GPS coordinates in both cases, with Wi-Fi disabled (simulating not networks being present) or enabled.
Is there any more debugging I can do on iOS/macOS to help you narrow this down please?

I just updated the test page again, can you please test it?

Tried again after you added watch, thanks @Falke-Design. Now I got 3 variations of the same outcome across 3 reloads of the page with WiFi switched off:
Attempt 1

Popup with correct coordinates
Popup with the error message Code: 2 Msg: The operation couldn't be completed. (CLErrorDomain error O.)
Popup with correct coordinates

Attempt 2

Popup with correct coordinates
Popup with correct coordinates
Popup with the error message Code: 2 Msg: The operation couldn't be completed. (CLErrorDomain error O.)

Attempt 3

Popup with correct coordinates
Popup with the error message Code: 2 Msg: The operation couldn't be completed. (CLErrorDomain error O.)

This confirms now, that it has nothing to do with Leaflet. As I expected the Browser has some issue.
The code:
		function onResponse(pos){
			var lat = pos.coords.latitude,
				lng = pos.coords.longitude;
			document.getElementById('wrapper').innerHTML += '
'+lat+','+lng
		}

		function onError(error){
			var code = error.code,
				message = error.message
			document.getElementById('wrapper').innerHTML += '
 Error Code: '+code+' Msg: '+message
		}
		var options = {
			timeout: 10000,
			watch: true
		};
		// navigator.geolocation.getCurrentPosition(onResponse, onError, options);
		navigator.geolocation.watchPosition(onResponse, onError, options);

I wasn't able to find anything about this error in the internet. So I suggest you to create a bug report: https://www.apple.com/feedback/safari.html
As this is a Safari issue and not Leaflet issue, I will close this. Sorry that we can't help you more.

Thanks for looking into this. Is there no chance of a workaround - perhaps ignoring the 'kCLError Domain 0' error on first instance and only triggering if it repeats on 2nd request?

Ah ok. We are using the official Leaflet.Locate plugin and the error is being thrown to the user. Does this mean you consider it a bug for Leaflet.Locate to deal with? Apologies for my ignorance btw.

Yes exactly because Leaflet.Locate is showing the error to the user: https://github.com/domoritz/leaflet-locatecontrol/blob/a2bbecc51de9add98a673847d9dbd2c1c0fea1ce/src/L.Control.Locate.js#L312
But it looks like you can override the error function with the option onLocationError .

Apologies for my ignorance btw.

No need, everything is good 😄

Thanks for looking into this @Falke-Design


feat: expose guest password on switch

I've added a card to the dashboard that shows the QR code but also shows the SSID & Password for the guest account (allows guest to login w/ a laptop), to facilitate this I needed to add the guest password to the guest switch (that was the easiest as the name was already there).
I don't think there's any security concern with this as the integration is already producing the QR code which has the same information (or at least it is retrievable).
Thanks for the integration -- I started down the path myself before realizing you'd already built 95% of what I was looking for -- I've gotta remind myself to google first 🤦

Completely forgot to mention that I incorporated this change into 1.6.3.


13 outline webscraping within the cpi

update the package branch so as to help document it at the same time as the dev

Excellent to see the notebook as a quarto file. ;-) This will allow us to transform the code to html and pdf for sharing with other audience or for a better readability and as a preliminary report.


Help with setting up org roam graph

Hi,
Your org roam graph is setup in a beautiful way. Is there anyway you can help me understand how I can use a setup similar to yours?

In the demo I am using EAF (https://github.com/manateelazycat/emacs-application-framework) to open the Firefox inside of the Emacs. I don't use it normally.

I use doom-molokai theme.
My font is Hack.

Other than that everything is default.

I got it. Thank you so much. I find this to be really useful for getting a bird eyes view. Cheers.


Got new iPhone 6S (upgrade from 5) now Google Authenticator codes are gone

I upgraded my iPhone from 5 to iPhone 6S and now all my Google Authenticator codes are gone. Any account I was using GA with I have to disable the use of GA for. Is there anyway I can recover the GA codes? I do not have the iPhone 5 now, and I had no clue this would happen.
What can I do?

Google accounts can use the option of SMS if you've added your phone number. You can use that to log in and re-register your new phone's Google Authenticator. Other services would probably have similar features.
There's no supported way to transfer the config from one phone to another, and certainly not after you've wiped, lost, or otherwise don't have access to the old phone anymore. This is on purpose since if you could copy a second factor then it wouldn't be a second factor.

We're all supposed to be so sophisticated that we should know this sort of detail when we go to get a new phone? You need to coordinate with the phone sellers to help point these things out, it is something that is very easily overlooked.

what do the phone vendors have to do with this...?
anyway, being able to backup the authenticator data makes lots of sense in my opinion. on android i use titanium backup for it and i hope it'd also be backed up together with other app data when just using the builtin backup functionality for those who don't root their devices..

@benjino for Google accounts I recommend getting a security key instead. Then it's more obvious. But also it's simple for Google accounts if you have provided your phone number to use SMS. The sign-up flow for 2SV with Google really wants you to give your phone number partly for exactly this scenario, so I don't think sophistication is needed.
Also the sign-up flow encourages you to print the backup codes provided, again for cases like this.
You can set up both GA and security key(s) at the same time, with SMS as a fallback.
The above is all about Google accounts. I have less experience with other providers, and certainly if this is for your own machine when using the PAM module you're on your own.
@ThiefMaster backing up the settings may be convenient, but goes against the whole point of a second factor. I haven't tried Titanium Backup (or other android backup tools), but if I could prevent it I would.
More discussion on this over in the Android repo, e.g. https://github.com/google/google-authenticator-android/issues/23
The best trade-off in my opinion for Google and Github accounts is to use a security key. Preferably a Nano one that's always plugged in to your machine. That's gives the best of usability, security, and being able to have several security keys in case you lose the first one. And since it can be moved, a laptop-upgrade is not a problem. You just move it.


chore: Make binary_mut kernel accept different type for second arg

Which issue does this PR close?

Closes #5818.
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

This is technically an API change as it could effect type inference

Thank you @tustvold


Stefan branch

Coverage remained the same at 80.932% when pulling f4b51979a413c15da17c6ec479b717f9abbce147 on StefanBranch into a7dd19b8f8d54ac41a40236480b7b97517cccd8c on master.

Coverage remained the same at 80.932% when pulling 8c6c49f35c071f0d7404b6938419ce41a8539289 on StefanBranch into a7dd19b8f8d54ac41a40236480b7b97517cccd8c on master.

Coverage remained the same at 80.932% when pulling d97b61003bd2b765381537b35b8d0926af8b76ed on StefanBranch into a7dd19b8f8d54ac41a40236480b7b97517cccd8c on master.

Coverage decreased (-0.09%) to 80.841% when pulling bfe00fa2f400e8b66379fbd8468dec1128cca91f on StefanBranch into a7dd19b8f8d54ac41a40236480b7b97517cccd8c on master.

Coverage decreased (-0.1%) to 80.813% when pulling b3bffb8f7e2d55b72d895f32e6a8ea14a57eda92 on StefanBranch into a7dd19b8f8d54ac41a40236480b7b97517cccd8c on master.

Coverage decreased (-0.09%) to 80.759% when pulling bc871b8ad7fddeca7ded404014b1547497e4e278 on StefanBranch into f710e05d2514edee9ac4685bf0896dfaafe14e98 on master.


[schema] Introduce schema builder to build schema.

Motivation
Currently we are supporting POJO based schema in java clients.
POJO schema is only useful when the POJO is predefined. However
in applications like a CDC pipeline, POJO is no predefined, there
is no other way to define a schema.
Since we are using avro schema for schema management, this PR
is proposing a simple schema builder wrapper on avro schema builder.
Modifications
Introduce schema builder to build a record schema.
NOTES
Currently we only support primitives in defining fields in a record schema in this PR.
We will add nested types in future PRs.
Verifying this change
This change added tests and can be verified as follows:

Add schema builder test to verify the schema build via builder is same as building from POJO

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (yes)
The schema: (yes)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented? (not documented)
If a feature is not applicable for documentation, explain why?

the feature is partially completed. documenting a partially completed feature will confuse people

If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

run java8 tests

rerun java8 tests

rerun java8 tests

Merged in 2.3.1 at
f458ec3


How to get the softmax scores for each frame using TSN?

Hello. I'd like to  use the softmax scores for each frame in TSN for further research. But the output file only contains the average scores of all the frames.  Where should I modify to get the frame scores when testing videos? Thank you very much.

You can build a dataset for all frames in the videos. Then forward each frame the backbone + avg_pooling + cls_head.


Add nested rowtype reference support

"dereference" should we spelled as one word throughout the code

back to you for comments

There are a couple edge cases you missed. Had a couple other minor comments too, so just put the updates in a separate commit and I'll review again :)

@joy-yao this PR fixes https://github.com/facebook/presto/issues/3371, right?

Thanks Chris, updated with your review comments. Also fixes two issues -- one is with row field in JOIN ON clause, and the other is the one you pointed out SELECT SUM(a.col1[1].col1) ... GROUP BY a.col1[1]. Added test cases for both cases.

@cberner , yes, this fixes  #3371.

Had a minor comment. Looks good.
Wait for the release though, and remember to squash the commits.

Thanks a lot @cberner ! Addressed your comment, squashed and will merge after the release : )


How to Generate lbs_map_smpl_512.npy for Other Template Models

Hi!
Are there specific tools or scripts available that can help in generating an LBS map for models other than the SMPL and SMPL-X models?
It seems the LBS map indicates corresponding valid vertex skinning weights, and here we need the vertex id map to generate the LBS map.
But the render_posmap function only returns face ids, rather than the vertex ids. How should I get the vertex id map? Or are there any scripts to generate the LBS map directly from model uvs?
Thank you for your time and assistance.

Please refer to this issue (https://github.com/aipixel/GaussianAvatar/issues/21#issuecomment-1982246243)

Thanks for your help!


Dialogue Lua Script link

What needs to be documented?
The Link to download the .lua file for the script to enable the usage of dialogue doesn't work anymore, it just says that the site can't be reached, using other search engines have failed and I've had my friends also try and fail to download the .lua script.

Top

not ShadowMario closing this issue while the link is still dead lmfao


PWX-22505: implement sharedv4-svc failover test cases

What this PR does / why we need it:
Added test-sharedv4 app to Torpedo.
Added the following sharedv4 service test cases:
C54374: Verify failover by stopping the node where sharedv4 volume is attached (with i/o)
C54377: Verify previously written data after failover
C54382: Verify failback by stopping failover node

Which issue(s) this PR fixes (optional)
PWX-22505
Special notes for your reviewer:

Merged this as it is. Will make the couple of suggested changes in the next PR I have underway.