Virtual Printers

I tested direct printing and it's working.
Does this support virtual Printers that forward the output to other printers?

Could you give an example of such a printer? There are several backends built in (tcp/ip, Bluetooth serial, usb serial, file system, etc.) so it would depend on how this virtual printer works. Ultimately the destination would need to be a printer that supports esc/pos or it will not print correctly. This is an esc/pos specific library, so it is not a general printing solution.

hi, Im using windows 10, and writing an cross platform app to print on Thermal printers.
I tried the library and was able to print on an PoS printer, which connects to my PC over bluetooth as the printer gets assigned to a COM port over Bluetooth. I create a SerialPrinter(comport,buardrate) and it works. But if i connect the printer over USB (no Bluetooth) to the PC, the printer is assigned to port USB001, i believe it is a virtual port. So, how do we write to such a port? any suggestion?

hi, Im using windows 10, and writing an cross platform app to print on Thermal printers.
I tried the library and was able to print on an PoS printer, which connects to my PC over bluetooth as the printer gets assigned to a COM port over Bluetooth. I create a SerialPrinter(comport,buardrate) and it works. But if i connect the printer over USB (no Bluetooth) to the PC, the printer is assigned to port USB001, i believe it is a virtual port. So, how do we write to such a port? any suggestion?

@prasannaJosium yes, there's a suggestion on the repo README:

@prasannaJosium  I’m not against OS specific USB printer support (without virtual com port). If you need this for some reason, please send us a PR with a custom UsbPrinter type! The reason I use virtual COM is that it bypasses the OS print spoolers  and you don’t have to worry about forcing the printer to be a generic device or do device discovery (Epson lets you force a COM port with the driver, so you can easily automate setting all your registers to COM3 for the receipt printer, for example.) device discovery could be useful for others though, I’m interested in supporting that too if it’s necessary for your use case.

it‘s good to support usb printer

Is there documentation on how to do device discovery? Would be happy to help write the code and I need this for a MAUI app I am creating...

Adding some info for UDP packet discovery for epson printers in case it is useful to someone.
private static readonly IPAddress encpIP = IPAddress.Parse("<IP_ADDRESS>");
private const int encpPort = 3289;
private static readonly byte[] probeMessageBytesENPC = new byte[]
{
    (byte)'E', (byte)'P', (byte)'S', (byte)'O', (byte)'N', (byte)'Q', 0x03, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00
};

...

var udpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
udpSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
var endPoint = new IPEndPoint(encpIP, encpPort);
await udpSocket.SendToAsync(probeMessageBytesENPC, SocketFlags.None, endPoint);

var timeout = TimeSpan.FromSeconds(10.0)
using var cancelTokenSource = new CancellationTokenSource(timeout);
var result = await udpSocket.ReceiveFromAsync(receiveBuffer, SocketFlags.None, endPoint, cancelTokenSource.Token);

// if response is an epson printer, include it in the list
if (result.ReceivedBytes < 1 || result.ReceivedBytes >= 8192 ||
    result.RemoteEndPoint is not IPEndPoint ipep ||
    (receiveBuffer[0] != 69 || receiveBuffer[1] != 80 || receiveBuffer[2] != 83 || receiveBuffer[3] != 79 ||
    receiveBuffer[4] != 78 || receiveBuffer[5] != 113))
{
    continue;
}

// result.RemoteEndPoint has the printer ip address, the port to print on is usually 9100, not the port in this end point


Error on startup of OBS when this script is installed

Hi,
I've been trying to get this OBS plugin to work.
But after including the script into OBS, and then starting up OBS, it gives me the following message on Linux Mint 20.1 Xfce:
[zoom_and_follow_mouse.py] Traceback (most recent call last):
[zoom_and_follow_mouse.py]   File "/home/username/.config/obs-studio/scripts/obs-zoom-and-follow-master/zoom_and_follow_mouse.py", line 19, in <module>
[zoom_and_follow_mouse.py]     class CursorWindow:
[zoom_and_follow_mouse.py]   File "/home/username/.config/obs-studio/scripts/obs-zoom-and-follow-master/zoom_and_follow_mouse.py", line 26, in CursorWindow
[zoom_and_follow_mouse.py]     d_w = get_monitors()[monitor_idx].width
[zoom_and_follow_mouse.py]   File "/home/username/.local/lib/python3.8/site-packages/screeninfo/screeninfo.py", line 37, in get_monitors
[zoom_and_follow_mouse.py]     raise ScreenInfoError("No enumerators available")
[zoom_and_follow_mouse.py] screeninfo.common.ScreenInfoError: No enumerators available

We've already been discussing the problem with the maintainer of screeninfo here:
https://github.com/rr-/screeninfo/issues/48
They asked to create a parallel bug report here, so you can coordinate.
@tryptech
/cc @rr-

I've tested it locally by printing the errors catched here
And it seems like obs is unable to properly import ctypes
[testing.py] Traceback (most recent call last):
[testing.py]   File "/home/adawolfs/obs/scripts/testing.py", line 5, in <module>
[testing.py]     from screeninfo import get_monitors
[testing.py]   File "/home/adawolfs/obs/scripts/screeninfo/screeninfo/__init__.py", line 2, in <module>
[testing.py]     from .screeninfo import get_monitors
[testing.py]   File "/home/adawolfs/obs/scripts/screeninfo/screeninfo/screeninfo.py", line 5, in <module>
[testing.py]     from screeninfo import enumerators
[testing.py]   File "/home/adawolfs/obs/scripts/screeninfo/screeninfo/enumerators/__init__.py", line 5, in <module>
[testing.py]     import screeninfo.enumerators.xrandr
[testing.py]   File "/home/adawolfs/obs/scripts/screeninfo/screeninfo/enumerators/xrandr.py", line 4, in <module>
[testing.py]     import ctypes
[testing.py]   File "/usr/lib/python3.8/ctypes/__init__.py", line 7, in <module>
[testing.py]     from _ctypes import Union, Structure, Array
[testing.py] ImportError: /usr/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type

I've managed to make it usable by removing the get_monitors() references and hardcode it.

Good to see you got it working. Like rr said in the other issue, seems to be an issue moreso with the distro and not so much with screeninfo or the python script. Should be all good unless you need to switch monitors

Closing as this issue doesn't seem to be with the screeninfo or the program directly.
https://github.com/rr-/screeninfo/issues/48#issuecomment-809980966

get_monitors()

Would you, please share how you got it working?!


UUID Login

When you use UUID login, it sends you the message to type pass to login (you don't need to though)

You should make it so it doesn't show that if you use UUID login so people don't accidentally type their passwords in chat and "Oops! Everyone hack me!"

Passwords are already blocked. 😜

I just remembered, but can you still remove that part and make the "You have been authenticated" to "You have been authenticated by UUID" or something?

Ok.


Use tiktoken

Using tiktoken to replace HuggingFace Tokenizers allows faster tokenization and removing tensorflow as a transitive dependency.
A downside is that tiktoken does not yet provide aarch64 linux wheels while tokenizers is built even for ppc64le and s390x. So it may be a blocker for some users..

I am aware of a university running whisper on powerpc, at least, so their upgrade path will be blocked until tiktoken supports more architectures.


Implement Shape for Capsule

I'm hoping the implementation is done correctly!

Thanks @msiglreith and sorry for the very late response.
Capsule will have a Shape implementation on the next release v0.17 of ncollide.


Comments on GO schema

Mostly looks great! Feel free to close if these comments not helpful or in the wrong place
generalizability
This schema generalizes to most ontologies, I don't know if you intend to replicate for ENVO etc. It may be an idea to consolidate to a general ontology schema
alignment to obograph json model
You may be interested in https://github.com/geneontology/obographs - this json serialization is being adopted by more ontologies. It is a more convenient substrate for parsing (no ad hoc syntactic parsing). You may also want to consult it as the reference model. It is well suited to graph databases.
The philosophy behind the obographs model plus thoughts on obo, owl, and json here: https://douroucouli.wordpress.com/2016/10/04/a-developer-friendly-json-exchange-format-for-ontologies/
synonyms
Synonyms can be thought of as n-ary tuples or properties with their own meta-properties, they include scope (required) type (optional) and provenance/xrefs (optional list). You seem to be flattening to a string - maybe a consequence of the biopython parser?
This will be awkward if you want to use the synonyms to implement a search index, as the indexer will need to do an initial layer of syntactic parsing.
You can see how we model this in json here:
https://github.com/geneontology/obographs/blob/b567d119855b0252b02b3bb37d1b7572e777be17/examples/nucleus.json#L70-L77
The same applies to other properties, e.g. text definitions should be attributed to sources, but this may be less important for your use case.
separate subschemas for is-a and relationship
This follows the syntax of obo but I would recommend collapsing these and having a generic edge type, as in obographs
(the distinction between is-a and relationship is best understood from an OWL perspective, but this is likely not such a useful level of abstraction for you)
intersection_of
It's like you don't need this. If you do have a need for logical definitions, you will likely want to use the json or the owl, and load go-plus.
Mungall, C.J., Bada, M., Berardini, T.Z., Deegan, J., Ireland, A., Harris, M.A., Hill, D.P., and Lomax, J. (2011). Cross-product extensions of the Gene Ontology. Journal of Biomedical Informatics 44, 80–86. https://doi.org/10.1016/j.jbi.2010.02.002
Mungall, C.J., Dietze, H., and Osumi-Sutherland, D. (2014). Use of OWL within the Gene Ontology. In Proceedings of the 11th International Workshop on OWL: Experiences and Directions (OWLED 2014), M. Keet, and V. Tamma, eds. (Riva del Garda, Italy, October 17-18, 2014), pp. 25–36. https://doi.org/10.1101/010090
disjointness axioms
As above, the OWLED paper gives an idea how they are used - mostly during ontology development and annotation validation/QC, less useful for data analysis/querying.
Relationship types
obo format has a stanza type called Typedef (which is a terrible name). This should have been called 'relationship type'. I think it may be useful for you to explicitly model this. Relationship types can have properties that may be useful to you.
Most OBO ontologies (including GO) draw their relationship types from RO:
http://obofoundry.org/ontology/ro
The documentation on the RO wiki may be useful for thinking about how relations can be used in your RE
The (incomplete) NCATS Translator Ontology Primer I worked on with Marcin may also be useful:
https://docs.google.com/document/d/1faKOTMOrH4vn8NHx9s8WzdDujOkKu0RwaYZPrdtmnoI/edit

Thanks for the comments Chris, much appreciated

Here is a PR that creates an OBO data namespace ("obo*"), with some better generalized vertices and edges based on your comments: https://github.com/kbase/relation_engine_spec/pull/86

FYI our current ontology schemas are in the repo here:
https://github.com/kbase/relation_engine_spec/blob/develop/schemas/GO/GO_terms.yaml
https://github.com/kbase/relation_engine_spec/blob/develop/schemas/GO/GO_edges.yaml
https://github.com/kbase/relation_engine_spec/blob/develop/schemas/GO/GO_merges.yaml
We also have ENVO, effectively the same schemas, but in separate files in the spec because they map to separate collections in the database.


Compilation for NPU 3400

Is it possible to compile a model using the latest NPU driver and OpenVINO version for the NPU 3400 (Keem Bay)? If so, are there any special guidelines?

Hi, the linux-npu-driver targets NPU 3720 (Meteor Lake) and future NPU platforms. Do you look for support for NPU 3400 (Keem Bay) in Linux or Windows?

I see, thank you. I am looking for support for Linux.


fix(readme): updates npm support in readme(s)

updates npm support in readme(s)

@sara-02 @samuzzal-choudhury  pls take a look.

@rootAvish thanks and done :)


Revert "Update mapping.ts"

Reverts cardinal-labs/cardinal-staking-ui#160

Closing due to merge conflicts

did you mean to keep this open and remove this pool?


No pyproject.toml

setup.py imports pybind11 and numpy and assumes that this will be available
https://github.com/nmslib/hnswlib/blob/0dcfb9111b3a9a349a86ec23f84b70705599f6ea/python_bindings/setup.py#L88-L89
There should be a pyproject.toml that requires both those modules to be installed before the setup.py is run

Hi @andyalmonte,
Can you make a pull request for that?

This should close this issue:
https://github.com/nmslib/hnswlib/pull/274

This should close this issue:
https://github.com/nmslib/hnswlib/pull/274


Make scheduler builder work with cookies if user is not logged in

Right now, the system saves the schedule into the db If the user is logged in.
We want it to work even if the user is not logged in.
After that, add feature for when the user has logged in after building the schedule, the system migrates his schedule from cookies to the db.

Merged #41


suppress UnicodeDecodeError: ascii codec - when import GPy

#319 : Cannot import GPy on mybinder with Python 3.5
The change is to give 'utf-8' encoding option of the function in detasets.py
My environment is on console and JupyterNotebook with Python 3.5.

@kenokabe I installed the latest version where your modification is already applied. I still have issue (#387). Any idea how to resolve this?


No need to encode the string

import base64

Remove this please

Refers to: src/command_modules/azure-cli-project/azure/cli/command_modules/project/references.py:1 in 54102f9. [](commit_id = 54102f97b45e8e92f9aca5642b2a5138ce06b389, deletion_comment = False)


CFE allows implicit tear-offs on nullable receivers

The CFE currently allows an implicit call method tear-off even when the receiver of the implicit tear-off is a nullable type:
class C {
  int call() => 0;
}

void main() {
  int Function() c0 = (null as C?);   // Should be an error
  int Function()? c1 = (null as C?); // Should be an error
  print(c0);
  print(c1);
}

Note that the first line is simply unsound.  Both statements seem to evaluate to null.
For reference, I am proposing the following addition to the NNBD spec to cover this:
The implicit tear-off conversion which converts uses of instances of classes
with call methods to the tear-off of their `.call` method when the context type
is a function type is performed when the context type is a function type, or the
nullable version of a function type.

Implicit tear-off conversion is *not* performed on objects of nullable type,
regardless of the context type.

cc @stefantsov @johnniwinther

Accepting a nullable function type as context type for doing tear-off suggests that we should also consider FutureOr<functionType>, as the other union type.
Maybe the rule can be reduced to:

If the static type T of an expression is not assignable to its context type, but T is a callable object type with a call method function type F s.t. F is assignable to T, then implicitly tear off the call method.

So if the context type is a union type, and the expression type is not assignable to the context type, but the expression type is precisely a callable object type, and the function type of the callable object is assignable to the union type, then at least one of the types of the union must be a function type or Function (because the only types that functions types are assignable to are Function, function types, top types and bottom types, and the last one only as long as we have implicit downcasts. The original type would be assignable to the top type, so there must be a function type in there that we are assigning to).
This then covers functionType? and FutureOr<functionType> and FutureOr<functionType?>?, and will be compatible with general union types, should we ever get them.


The 'Search Episode' window that opens from the 'Scrape Episode metadata' window does not show the scroll bar like it used to.

What TMM version are you using?
Version 2.7.4
What is the actual behaviour?
The 'Search Episode' window that opens from the 'Scrape Episode metadata' window does not show the scroll bar like it used to, the window must be manually resized before the scroll bar appears and has to be resized every time this function is needed.
What is the expected behaviour?
On earlier versions (pre v2.7 if I remember correctly) when the window opened, the scroll bar and it's blue thumb were visible if needed, meaning if the amount of episodes did not fit in the window, the scroll bar would be available on the left of the panel (centre of main window).
Steps to reproduce:

After opening tmm, Select the 'TV Shows' tab on the left of screen.
Click on the + to open TV Show to select Season.
Click on the new + next to the Season you want opened.
Double Click on the Episode you want to edit, you may also Right Click then select 'Edit Selected TV Shows / Episodes'.
At the bottom of the 'Scrape Episode Metadata' window, Click the 'Search Episode' button which will open the 'Choose an Episode' window, which has the scroll bar problem.
.
Additional
Have you attached the Logfile from the day it happened?
Yes. logs.zip containing
logs/tmm.log
launcher.log

Your Operating system? (win/mac/linux? version?)
OS X 10.8.5

the issue will be fixed in the next version.

Most appreciated, thanks.


Light theme in new flutter

Hello. thank to a nice chart. Background of chart does't work correctly when light theme is active.

On mac os (not simulator or emulator) even when make new project, default chart theme is dark. But the app bar works correctly.

@mahdibagjani please check out the new version. let me know if the problem is solved or not.


Merge pull request #180 from pdmack/kaggle-blog

Kaggle blog post from @pdmack . Merging into v0.2-branch so that its live on kubeflow.org.
We are still working on cleaning this up so that we don't have to this in future.

This change is

/lgtm
/approve


feat(lidar_centerpoint): add build only option for tensorrt engine

Signed-off-by: yukke42<EMAIL_ADDRESS>Description
Add a new feature to build onnx files to tensorrt engine files without inference for CI/CD requirements.

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

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

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

[ ] The PR follows the pull request guidelines.

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

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

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

A node cannot be shutdown successfully, I'll investigate this issue.

@yukke42
I think this has to do with the destructor order due to the data relationship of some elements.
If I add this, the problem does away:
TensorRTWrapper::~TensorRTWrapper()
{
  context_.reset();
  runtime_.reset();
  plan_.reset();
  engine_.reset();
}

@yukke42
I think this has to do with the destructor order due to the data relationship of some elements.
If I add this, the problem goes away:
TensorRTWrapper::~TensorRTWrapper()
{
  context_.reset();
  runtime_.reset();
  plan_.reset();
  engine_.reset();
}

Log:
ros2 launch lidar_centerpoint lidar_centerpoint.launch.xml build_only:=true
[INFO] [launch]: All log files can be found below /home/kenzolobos/.ros/log/2023-03-13-10-55-11-049175-npc2103019-402737
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [lidar_centerpoint_node-1]: process started with pid [402745]
[lidar_centerpoint_node-1]<PHONE_NUMBER>.315870 [139] lidar_cent: config: //CycloneDDS/Domain/General: 'NetworkInterfaceAddress': deprecated element (file:///opt/autoware/cyclonedds_config.xml line 5)
[lidar_centerpoint_node-1]<PHONE_NUMBER>.315893 [139] lidar_cent: config: //CycloneDDS/Domain/Internal/MinimumSocketReceiveBufferSize: setting moved to //CycloneDDS/Domain/Internal/SocketReceiveBufferSize[@min] (line 8)
[lidar_centerpoint_node-1] [INFO] [1678672511.675429330] [tensorrt_common]: [MemUsageChange] Init CUDA: CPU +303, GPU +0, now: CPU 332, GPU 245 (MiB)
[lidar_centerpoint_node-1] [INFO] [1678672511.705650244] [tensorrt_common]: Loaded engine size: 0 MiB
[lidar_centerpoint_node-1] [INFO] [1678672511.707445022] [tensorrt_common]: [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +0, now: CPU 0, GPU 0 (MiB)
[lidar_centerpoint_node-1] Loaded engine from /home/kenzolobos/workspace/pilot-auto/install/lidar_centerpoint/share/lidar_centerpoint/data/pts_voxel_encoder_centerpoint_tiny.engine
[lidar_centerpoint_node-1] [INFO] [1678672511.709265274] [tensorrt_common]: [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +157, now: CPU 0, GPU 157 (MiB)
[lidar_centerpoint_node-1] [INFO] [1678672511.718010348] [lidar_centerpoint]: TensorRT engine is built and shutdown node.
[INFO] [lidar_centerpoint_node-1]: process has finished cleanly [pid 402745]

Additionally, there are some unused variables

@knzo25 Thank you for your advise! I have fixed the error.

@wep21 Cloud you check the updates? :bow:


api: making the value optional for JSONPatchOperation

What type of PR is this?

fix: making the move operation is usable.

What this PR does / why we need it:
The move, remove operation in the Json patch needn't the value parameter, so making that is optional in the Envoy Gateway API.
Which issue(s) this PR fixes:
Part of fixes #2456

@zhaohuabing @arkodg sorry for disappearing a few days, I updated the code, would you like to review it again? thanks in advance!


The rationale for creating a view model is not explained

The tutorial seems to go into reasonable depth about many of the design choices made, even quite low-level ones (eg, FirstOrDefaultAsync vs FindAsync). However, in the last section (Add grouping), a view model is created without explaining why this was done. Please consider that the audience might not (like myself) have any MVC experience - Razor pages is the first web technology that I'm using. Is the view model essential? Are there any alternatives?

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 877f0457-37d9-9a34-e2ce-beb41d717086
Version Independent ID: e9b0d4d1-e98c-fb96-415f-0ff4e37d3658
Content: Razor Pages with EF Core in ASP.NET Core - Sort, Filter, Paging - 3 of 8
Content Source: aspnetcore/data/ef-rp/sort-filter-page.md
Product: aspnet-core
Technology: aspnetcore-data
GitHub Login: @tdykstra
Microsoft Alias: riande

It kind of makes sense.
In MVC regular model classes under the Models folder typically model actual Entities or tables in the database.  Projected data like EnrollmentGroup is not actually modeling an entity or table in the database.  So we make ViewModels in addition to the regular [Entity]Models.  So in MVC I would make the folder structure Models/ViewModels/SchoolViewModels.
And on big projects we actually create a class library for Model classes or the domain.  And leave ViewModels in the project.  So we can reuse the Model Classes or domain in other projects and we won't confuse Models with View Models in the project.

@smiller7812 Thanks for your insight! Just so I understand, when you write model classes in a class library, that's done in a completely separate project which is referenced by other projects (such as a web application using razor pages)? Then if you're using scaffolding such as in this example, you would run scaffolding commands within those projects but somehow inform scaffolding on where the model classes are?

I usually set up my projects starting with an empty solution.
Then add a project, I usually start with an ASP.Net Core project and select empty.
Selecting empty rather then web, api, etc, enables you to learn MVC and ASP.Net better.
Then create a new C# class library project within the solution for the models.
And yes reference the C# class library from the web project.
Not sure about the scaffolding I usually do everything by hand.
But I am sure you can point the scaffolding to the correct models in the class library.
I'd recommend getting the new ASP.Net Core MVC 3 book that will be out soon from Adam Freeman on Appress.com.  I usually just follow whatever path he is on.  I just got the new Essential Angular for ASP.net Core  3.  Arriving for me on Wednesday:)

From: jpe90<EMAIL_ADDRESS>Sent: Monday, March 23, 2020 1:39 PM
To: dotnet/AspNetCore.Docs<EMAIL_ADDRESS>Cc: smiller7812<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dotnet/AspNetCore.Docs] The rationale for creating a view model is not explained (#14034)
@smiller7812https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsmiller7812&data=02|01||70185d30aa364fbb8b4f08d7cf51262d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637205819738321264&sdata=gA7EcYZ9HXo02DxIDEfOp1KNhAEzKwQxS84HoDK6Nj8%3D&reserved=0 Thanks for your insight! Just so I understand, when you write model classes in a class library, that's done in a completely separate project which is referenced by other projects (such as a web application using razor pages)? Then if you're using scaffolding such as in this example, you would run scaffolding commands within those projects but somehow inform scaffolding on where the model classes are?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2FAspNetCore.Docs%2Fissues%2F14034%23issuecomment-602751122&data=02|01||70185d30aa364fbb8b4f08d7cf51262d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637205819738331256&sdata=6QpP0FhbACGDN3emPFnGFVPyXQP5SN7vAXFlgxdQrc8%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAM4QAHCNI4TTEL57PLXQJH3RI6NFLANCNFSM4IQBMRDA&data=02|01||70185d30aa364fbb8b4f08d7cf51262d|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637205819738331256&sdata=2aBz4u80v%2BkC9opNZFnbzamBQlbAkQfuVEaVPDxuvAo%3D&reserved=0.


Can you add support for unequal division with tensor parallelism for Llama 2

In the self-attention with tensor parallel implementaion (modelling/attention.py), the following check prevents me to use 12 ipus for the llama2 7B model:
assert (
            self.config.model.attention.heads % n_heads_groups == 0
        ), f"{self.config.model.attention.heads} % {n_heads_groups} != 0"

I can run it fine with 4, 8 and 16 IPUs. But with 12 IPUs it throws the following error:
Traceback (most recent call last):
  File "run-inference.py", line 65, in <module>
    main(args.config)
  File "run-inference.py", line 55, in main
    run_inference_popxl(config, tokenizer, hf_model=hf_model, sequence_length=2048)
  File "run-inference.py", line 15, in run_inference_popxl
    pipe = LlamaPipeline(config, hf_llama_checkpoint=hf_model, tokenizer=tokenizer)
  File "/scratch/user/u.ac/Gradient-HuggingFace/llama2-chatbot/api/pipeline.py", line 96, in __init__
    session: popxl.Session = inference(config)
  File "/scratch/user/u.ac/Gradient-HuggingFace/llama2-chatbot/inference.py", line 70, in inference
    layer_facts, layer_graph = LlamaDecoderBlockTP(config).create_graph(*embeddings_graph.graph.outputs)
  File "/scratch/user/u.ac/Gradient-HuggingFace/llama2-chatbot/modelling/decoder.py", line 28, in __init__
    self.attention = LlamaSelfAttentionTP(self.config)
  File "/scratch/user/u.ac/Gradient-HuggingFace/llama2-chatbot/modelling/attention.py", line 125, in __init__
    self.heads = LlamaAttentionHeads(config=config, replica_grouping=self.replica_grouping)
  File "/scratch/user/u.ac/Gradient-HuggingFace/llama2-chatbot/modelling/attention.py", line 44, in __init__
    assert (
AssertionError: 32 % 12 != 0

Hi @hydra324,
I don't think we can remove that check. Our implementation of Llama 2 uses Tensor parallelism (also called replica grouping), which splits the model over several IPUs in such a way that each part of the model needs to be the same shape: for that reason the number of IPUs needs to divide exactly the number of attention heads in the layers of the model.
There are more details about the technique in the grouping graph replicas section of our docs.
I'll also note that our programming frameworks expect to execute a model on a number of IPUs which is a power of 2, so 12 IPUs would not be well supported. However if you tell me a bit more about your use case and why you want to use 12 IPUs I can see if there is something I can do to help?


fix: Full text searching takes into account attributes at different tables (Account)

Full text searching needs to take into account some attributes which are stored at different table -- for example Account table keeps name of Investor or ProjectDeveloper.
I have slightly tweaked logic behind filtering so you can specify which extra tables (relations) should be taken into account during full text searching. In the end, searching is run on top of all defined tables and final result is union of these subqueries. I have split queries to small ones and pass ids between them instead of constructing one huge and slow query. It causes that 1 (for queries with Account relation it is 3) extra db hits are done which is quite insignificant from my point of view.
Following tweak also fixes problems with localization, so it takes into account also columns which are not localized such as name of ProjectDeveloper.
And one last bug was related to full text searching interfering with sorting --> full text searching query ordered results by weight, which was naturally fixed by using individual subqueries and passing just ids.
Testing instructions
Prepare two Investor/Project Developer records and try to run full text search based on their name value.
Tracking
https://vizzuality.atlassian.net/browse/LET-325 (bug fix ;))

OK, not a fan of potentially huge IN conditions, but it will work for now.

There are no extra IN conditions, except of one enforced by pg_search gem. I also dont like them so I use just simple ´pluck´ to get ids which I use in final query. This way I avoid quite complex queries with IN stuff, but price is extra db hit (but for much smaller query), which I think is worthy in this case :)


Downsize images/SOMAExperiment.png

Follow-on from #106:
https://github.com/single-cell-data/SOMA/pull/106#pullrequestreview-1281652257

@atolopko-czi sorry, what's the "it" that we didn't fix -- ??

(I did recreate the image -- got the doc link from @bkmartinjr and screenshotted it, then downsized that screenshot to match the previous dimensions. That's all.)

@atolopko-czi sorry, what's the "it" that we didn't fix -- ??

the image still looks fuzzy. :) this is not important enough to worry about any further!


WINE doesn't work

Funnily enough, WINE doesn't work on WSL.  The only barrier to this however seems to be the inability to execute i386 libraries on WSL.
WINE working on WSL may not however be a crazy idea.  It has increased backward compatibility with older software, especially 16-bit applications which cannot run on 64 bit Windows due to the lack of NTDVM.

Actually, I have seen some people getting it to work. I haven't seen any documented method to get it to work, but its possible.

Love to this documentation if it can work. Even the latest WINE beta doesn't work out of box

Hi, this is a community run list, if you'd like to contribute, feel free!


Ability to query policies when creating Docker Volume

VI Admins can create VSAN policies which then are consumed by end users (Developers) when creating the Docker Volumes. However, it doesn't look like Docker can query the plugin capabilities today which would mean the VI Admin must then communicate this info to all the Developers which isn't really a scalable solution.

As a poor man solution, I suggest to report list of avail policies on command line
docker volume create --driver=vmdk --name=doesnotmatter -o policy=some-bad-name
and we'll reply with 'Error: no such policy: some-bad-name. Available policies are : <list...>`


Error when try to get current user

I created a new api :
/**
     * @Route("/vsbridge/product/get/{product}")
     * @Method("GET")
     *
     * @param Request           $request
     *
     * @return JsonResponse
     */
    public function getProduct(
        Request $request
    ) {
        $user = $this->getUser();

        return $this->json([
            'status' => 200,
            'result' => $user,
        ]);
    }

But I get the error :
Call to a member function isAdmin() on null (500 Internal Server Error)

I confirm that first I called the login method, and with the token from /login I call this new api.
You have an idea  @pkarw, @kwreczycki ? thx in advance

@turgic can you provide a stacktrace?


Remove PinotAggregateToSemiJoinRule which can mistakenly remove DISTINCT from IN clause

Also added more test cases to ensure the correct behavior

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

Project coverage is 0.00%. Comparing base (59551e4) to head (95e6745).
Report is 1510 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (59551e4) and HEAD (95e6745). Click for more details.
HEAD has 48 uploads less than BASE

Flag
BASE (59551e4)
HEAD (95e6745)

integration
7
2

integration2
3
2

temurin
12
2

java-21
7
2

skip-bytebuffers-true
3
1

skip-bytebuffers-false
7
1

unittests
5
0

unittests1
2
0

java-11
5
0

unittests2
3
0

integration1
2
0

custom-integration1
2
0

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #14719       +/-   ##
=============================================
- Coverage     61.75%    0.00%   -61.76%
=============================================
  Files          2436        3     -2433
  Lines        133233        6   -133227
  Branches      20636        0    -20636
=============================================
- Hits          82274        0    -82274
+ Misses        44911        6    -44905
+ Partials       6048        0     -6048

Flag
Coverage Δ

custom-integration1
?

integration
0.00% <ø> (-0.01%)
:arrow_down:

integration1
?

integration2
0.00% <ø> (ø)

java-11
?

java-21
0.00% <ø> (-61.63%)
:arrow_down:

skip-bytebuffers-false
0.00% <ø> (-61.75%)
:arrow_down:

skip-bytebuffers-true
0.00% <ø> (-27.73%)
:arrow_down:

temurin
0.00% <ø> (-61.76%)
:arrow_down:

unittests
?

unittests1
?

unittests2
?

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

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


NIFI-1046 clean up shell scripts

Didn't squash specifically to ease review what was changed in each pass.

7f3b383 looks good.

5dcebf3 looks great

909faa5 fixes several bugs in the sh script, notably when the directory being run out of has a space in it.
Confirmed code looks good and it works as expected in linux. working on cygwin now.


Case-aware autocomplete: prefer same case candidates

Hi,
This is intended to fix #20925.
The previous behaviour is kept so Position2D is still listed but after position.
It's seems to do the job but if you have any broken use-case, just let me know.

Thanks and congrats for your first contribution!

Thank you :)

Now that Godot 3.1 has been released, we don't plan to cherry-pick new features and enhancements to the 3.0 branch, unless there is very strong support in favor of it. Removing cherrypick label for 3.0.


Indicator page: no title for programs without indicators

This page is not actively linked but is useful to keep around as

a list of all "my" indicators in one list
it doesnt run any aggregating queries so it is very fast

Jenny noticed the bug in the ticket title. I also noticed the indicators on this page don't link to the program page

Per @jennyhavah

As built in 2decead:

Updates validated. When a program has no indicators, I still see the program name along with the appropriate messaging.

@sanjuroj raised the points that

this page might not be so useful now that the program and country pages are fast
superusers will have a gazillion indicators so this page will get v slow for them

If we keep this page post-Mangosteen we should add sorting, filtering, and/or pagination


Audio recording

Good evening everyone,
Discord itself does not support recording conversations by default, but it is possible to intercept conversations. That this works has already proven a friend, but he does not use the JDA. Since the JDA nevertheless also offers the possibility to intercept sounds, we come to my question: How is it possible to record a conversation and convert it into an .mp3 file that you save somewhere on your hard drive? I have already looked at some examples, but it came to no result and I discarded my programming code. Since I think there are many who can do this better than me, I hope for some help.
Kind regards
Nicklas

This might help:
https://stackoverflow.com/questions/56003861/pcm-audio-to-file


Adds force-unlock terraform command

What this PR does / why we need it:
Adds a tarmak cluster force-unlock to perform a terraform force-unlock on it's remote state. If no lock ID is given then it will retrieve the remote lock ID from DynamoDB. Tarmak will ask if sure before applying.
fixes #509
Adds cluster force-unlock subcommand for to release terraform state lock.

/unassign
/assign @simonswine

@JoshVanL thanks for adding that feature
This looks good to me. Can we have some docs for that?

/unassign
/assign @JoshVanL

Thinking a bit more about it, why do we not just use the terraform implementation and pass that one throug?

@simonswine I've been looking though the terraform code and the problem with looking up the lock ID that way is that it is very involved to get terraform initialized with the backend. A lot of the logic is in top level main meaning it'll have to be straight copied over - a problem that keeps coming up... I don't know of a way to get the lock ID out of a cli command without doing a horrible string search on the CLI output on failure. Seems like a lot of extra code + complexity for terraform to basically just be doing the same dynamo lookup, WDYT?
/unassign
/assign @simonswine

I think terraform has valid reasons why it's not auto unlocking by a single command and expecting the user to actually copy paste the lock id them selves. I think we should have subcommand that behvaes exactly like terraform force-unlock. If someone is already using terraform he is used to that behaviour and we don't have the risk to accidentally removing a lock

/assign @JoshVanL
/unassign

/unassign
/assign @simonswine

/test verify quick

Thank you @JoshVanL , lgtm!
/approve
/lgtm


odo logs: add option to limit component logs to a particular container

/kind user-story
User Story
As an odo user, I want to limit the output of my component logs to a particular container, so that I can focus on that container and debug.
This is feedback received during the "Sprint 220" review.
Acceptance Criteria

[ ] odo logs should have a -c, --container option that returns the logs of this particular container
[ ] It should error out if there is no matching container
[ ] It should be possible to use this option along with the --follow flag

Links

Related Epic (mandatory): https://github.com/redhat-developer/odo/issues/5848

/kind user-story

We've looked into several ways to approach this issue:

odo logs --list-containers that lists containers before user can decide which container, and then run odo logs --container
odo logs interactive mode that gives a list of containers to choose from
odo logs --container [--pods]- odo logs should show what pod the container belongs to if there are multiple containers with the same name.
provide completion for container names when running odo logs --container

There might some changes to odo logs from #5872, we'll wait until that is in.
/status blocked

We'll wait until we're GA since this is not a blocking feature.

Accommodating logs from init containers would be helpful as well. Use cases might be for troubleshooting database migrations or Hashicorp Vault agent.


More member exports from azure-devops

Hey, I just made a Pull Request!
My org is developing an internal plugin that leans on the azure-devops plugin, and it could use a few more exported members, in particular azureDevOpsApiRef and some react hooks. It looks like the catalog-react plugin and others make similar exports, which leads me to think this is safe and proper.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@awanlin Absolutely! My org is working on improving our release management, which in this case means extending git tags with "target release" metadata stored in the backstage database. So it's convenient for us to use the azure-devops api to grab git tag info, and then we can manage the database dependency in our own plugin. Down the road though, we're hoping to leverage the Azure Devops API for release pipelines more which will likely lead to some enhancements appropriate for this plugin.

@nmarinel, ok, cool, I was chatting with someone on Discord about the same thing a few weeks back.
As for the release pipelines can you maybe log an issue for that? We are starting to use the Multi-stage pipelines more as well as the Environments feature and I've been thinking of doing some work around that this fall. Having the issue would help line up our efforts!

:D yep, that was me on Discord. I originally made internal copies of this plugin with the database dependency, but then once we realized what bad form that was and how easy it is to just make our own internal plugin for our unique business logic, we switched back to depending on this plugin properly. All part of the learning process :)
I'll log an issue like you said. Thanks for reviewing!

@jhaals No problem, I can copy the icon and hooks where needed. I have pushed a new commit that removes the hooks and the newly exported icons


i386/python doesn't contain Rust

As opposed to the traditional Docker image for Python, the i386 version doesn't seem to have rust installed. Rust can be built using i686, I have managed to make it working by lifting the Rust docker image script:
# Build Rust
ENV RUSTUP_HOME=/usr/local/rustup \
    CARGO_HOME=/usr/local/cargo \
    PATH=/usr/local/cargo/bin:$PATH \
    RUST_VERSION=1.82.0

RUN set -eux; \
    rustArch='i686-unknown-linux-gnu'; rustupSha256='0a6bed6e9f21192a51f83977716466895706059afb880500ff1d0e751ada5237'; \
    url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init"; \
    wget "$url"; \
    echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
    chmod +x rustup-init; \
    ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
    rm rustup-init; \
    chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
    rustup --version; \
    cargo --version; \
    rustc --version;

I'm confused -- none of the Python images (should) have Rust installed in them? :thinking:

That's what I thought too. Maybe it's glibc ? I use the bullseye version but inside my pipeline I basically build 2 images, one with python:3.12.7-bullsyeye and one i386/python:3.12.7-bullsyeye. In the pipeline I require to install orjson in python which requires Rust: https://github.com/ijl/orjson/blob/master/CHANGELOG.md#changed-1
Build for the normal python image works fine but in i386 i get this error:
Collecting orjson==3.10.7 (from sollum-galactus==4.21-dev17)
  Downloading orjson-3.10.7.tar.gz (5.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.1/5.1 MB 64.5 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]

      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
  File "/builds/sollum/sollummicroservicearchitecture/smclientportal/setup.py", line 99, in <module>
    gitlab_install(personal_access_token, *requirements)
  File "/builds/sollum/sollummicroservicearchitecture/smclientportal/setup.py", line 79, in gitlab_install
    raise RuntimeError("Could not install successfully")
RuntimeError: Could not install successfully

Here's a minimal reproduction:

I suspect the difference is that when using the x86_64 image the build is actually using the precompiled orjson wheel, so doesn't need Rust installed, whereas for the i386 image there isn't a compatible wheel:
https://pypi.org/project/orjson/#files

That would actually make a lot of sense. Thanks for the help !


How to set lr for other dataset?

Sry to bother. But i wanna to kwon, accroding to the docs in mmdet, "Important: The default learning rate in config files is for 8 GPUs and 2 img/gpu (batch size = 8*2 = 16)."  and the defalut lr is set to 0.01 for batch size = 16. So if i use the pretrain model, given by mmdet trained on coco, to trian other dataset, how can i set lr? if i also set my batch size to 16. Thx a lot!

Yes. Maybe you can refer to finetune for cityscapes

Hi, I also have a question about the epoch setting, I see the actual epoch=8*8 for the epoch comment. How did we get that? And where to find documentation for different types of Runners. Thank you very much!

@hhaAndroid  Hope to get your help！

If you don't kown how to set LR, maybe you can refer to issue #4791.


Support comma-separated titles in prospect command

It would be nice to be able to search titles when prospecting with:
$ clearbit prospect -title CEO,COO company.com

In addition to
$ clearbit prospect -title CEO -title COO company.com

Requested by @croaky in https://github.com/thoughtbot/clearbit/pull/15#discussion_r61967800.

Follow-up change in https://github.com/thoughtbot/clearbit/pull/23 addressed this


[Android]Understanding and Solving the Problem of Multidex in Android

Topic Suggestion
[Android]Understanding and Solving the Problem of Multidex in Android
Proposed title of article
Understanding and Solving the Problem of Multidex in Android
Proposed article introduction
When your app and the libraries it references exceed 65,536 methods, you encounter a build error that indicates your app has reached the limit of the Android build architecture. Both these error conditions display a common number: 65536. This number represents the total number of references that can be invoked by the code within a single Dalvik Executable (DEX) bytecode file.
Android app (APK) files contain executable bytecode files in the form of Dalvik Executable (DEX) files, which contain the compiled code used to run your app. The Dalvik Executable specification limits the total number of methods that can be referenced within a single DEX file to 65,536—including Android framework methods, library methods, and methods in your own code.
Key takeaways

What is Multidex.
How to avoid Multidex.
How to solve Multidex error when you encounter it.
How to configure your app for multidex.
Limitations of Multidex.

Article quality
The article is will consider android beginners since it is going to be beginner friendly.
References

https://developer.android.com/studio/build/multidex#mdex-pre-l

Are there any unique aspects of your article except for its beginner friendliness?

@louisefindlay23, the article is not only going to be beginner friendly. After careful research I realized that other sites does not cover handling Multidex in Kotlin. The article is going to be in Kotlin which is the widely used android programming language.


Stevenic/turn state

Fixes #1930
Description

I moved the push & pop methods to a new TurnContextStateCollection class that mirrors the same class in C#.
Also added a new initialTurnState property to the DialogManager class for parity with C# (although property was renamed.)
The DM now passes a reference to itself as part of the initial turn state and I added a new DialogContext.dialogManager property that lets dialogs access the top level DM in a strongly typed way.

Testing
Added unit test for new TurnContextStateCollection class.

Pull Request Test Coverage Report for Build 121967

24 of 33 (72.73%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 67.437%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/botbuilder-core/src/turnContextStateCollection.ts
16
17
94.12%

libraries/botbuilder-dialogs/src/dialogContext.ts
1
2
50.0%

libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts
0
2
0.0%

libraries/botbuilder-dialogs/src/dialogManager.ts
2
7
28.57%

Totals

Change from base Build 121267:
0.1%

Covered Lines:
10362

Relevant Lines:
14545

💛  - Coveralls


added date field to Location

Related Issue

https://github.com/digitallinguistics/spec/issues/277

Description

Added a new date field to the Location schema. It is functionally identical to the dateCreated and Modified fields, but with a different description.

@dwhieb This PR will have a conflict after the GeoJSON fix PR is merged. There will not actually be a problem, but the Location schema will have updated, so we might need to merge the master into this PR to settle the conflict.


Use MessagePack to encode extraData

Use MessagePack to encode the extraData of a Transfer. This is so far
only the paymentRequestId. I chose to simply use bytes as the datatype
for now, but that might change later, and we might want to use a custom
type.
The attaching of the decoded paymentRequestId had to be moved, so that
it will be encluded in every endpoint where Transfers are received.
At the moment it can not handle the old extraData and paymentRequestId
at the same time. This is due to the unclear behaviour of what extraData
on the receiver side should contain, if both were included.
Closes #358

I would prefer if we used a custom type directly, because I found it hard to understand why we need to convert the paymentRequestId to a byte array. https://github.com/trustlines-protocol/clientlib/pull/359/files#diff-598410b6dd753780b7924a1e7b5fbc1fR20

I would prefer if we used a custom type directly, because I found it hard to understand why we need to convert the paymentRequestId to a byte array. https://github.com/trustlines-protocol/clientlib/pull/359/files#diff-598410b6dd753780b7924a1e7b5fbc1fR20

I dont think this is related. We have to convert it because I want to use the bytes type to save gas. This would stay the same if I want to use a custom type X, we then have to convert it to X before.
We could change it in a way that it automatically recognizes hex strings as bytes, or X, but that is possible for both approaches and would have the problem that someone could not start easily a string with 0x
Custom types changes the way people have to work with the encoded data, I dont think that local code structure are a good argument there to make that decision.
If you have an argument why a custom type is better, let me know.

I am open to change this, but as I think it is easy to do this in a later PR, I will just merge it as is.

We have to convert it because I want to use the bytes type to save gas. This would stay the same if I want to use a custom type X, we then have to convert it to X before.

That's what I understood, the reason we use hexToArray here is totally different from the reason we use hexToArray or arrayToHex elswhere in the code. I would say this should be extracted, and would have been extracted if we used a custom type, but you are correct that is wrong thinking.

I am not aware that we use that elsewhere in the code.

Codecov Report

Merging #359 into master will increase coverage by 0.04%.
The diff coverage is 52.27%.

@@            Coverage Diff             @@
##           master     #359      +/-   ##
==========================================
+ Coverage   59.80%   59.85%   +0.04%
==========================================
  Files          20       21       +1
  Lines        1366     1395      +29
  Branches      281      287       +6
==========================================
+ Hits          817      835      +18
- Misses        485      492       +7
- Partials       64       68       +4

Flag
Coverage Δ

#integration
33.26% <15.90%> (-0.42%)
:arrow_down:

#unit
59.85% <52.27%> (+0.04%)
:arrow_up:

Impacted Files
Coverage Δ

src/utils.ts
66.00% <ø> (ø)

src/Payment.ts
28.94% <16.66%> (-0.88%)
:arrow_down:

src/Event.ts
69.13% <45.45%> (-3.47%)
:arrow_down:

src/extraData.ts
76.19% <76.19%> (ø)

Continue to review full report at Codecov.

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


Visio 2016 Pro Volume won't accept license key

We used the Deployment Tool to install Visio 2016 Pro Volume (used the ID and PIDKEY for such), but after the install when we tried to apply the license key we have that's for Visio 2016 Pro Volume License, Visio rejects the key with a message that the key we entered was for Visio 2016 Pro Volume License and that is not compatible with the version installed.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1e6c0641-503d-7959-2afb-839821cc792f
Version Independent ID: 046c52d9-4fbe-4fe7-0778-5c1d4138f69e
Content: Use the Office Deployment Tool to install volume licensed versions of Project 2016 and Visio 2016
Content Source: DeployOffice/use-the-office-deployment-tool-to-install-volume-licensed-editions-of-visio-2016.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

@gmmiller96. Check  that product  that you installed in about option.
use  the convertor script which converts retail to VL.  here is the website
https://gist.github.com/roldaojr/8f8cebaa44c6ac34d2f08df2145083c7


Ninject to autofac?

I accidently posted an issue on thinktecture sample collection, when it was really supposed to go here:
https://github.com/IdentityServer/IdentityServer3.Samples/issues/155
Ninject has been causing me some overhead issues and grievances, so in the issue I explained why I went with simpleinjector, but the response to the issue is that all the samples now use autofac. It'd be great to have consistency across the board, especially if I'm using membership reboot and integrating identity server within it.

DI is unrelated to MR -- You'll have to figure out the DI framework you want in your app and understand how configure it. Sorry.


Amazon Payments Diagnostics tool throwing exception

While running Diagnostics tool we see this exception thrown.

Fixed PHP warning.

@nicklera1 - can you work with the affected merchant to confirm this fix resolves the issue?


Large Export Timeouts and Memory

this package is a massive speed increase compare to excel packages. so thanks.
but we are still hitting issues with large exports for timeouts and memory issues.  eg +50000 rows via FromQuery
do yo have a way to append to csv sheet and off load memory consumption with each batch attempts?
thanks in advance
Illuminate\Queue\MaxAttemptsExceededException: Vitorccs\LaravelCsv\Jobs\CreateCsv has been attempted too many times or run too long. The job may have previously timed out. in /var/www/html/v2/laravel/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:648

I know increasing the timeout and memory is an option but we need to set a limit.

@mikoop79
From my experience, default settings of PHP and Laravel Queue should handle 50k records with no trouble.
Here is a checklist that may help you:
1) Use Eager Loading
In case your model has relationships (hasOne, hasMany, belongsTo) try to eager load them, so this reduces lots of  individual queries.  Source: https://laravel.com/docs/10.x/eloquent-relationships#eager-loading
Before
public function query() {
  return \App\Models\Bill::query();
}

After
public function query() {
  return \App\Models\Bill::with(['payment_method', 'customer', 'subscription']);
}

2) Make sure the problem is not related to the queue
This problem may also be related to a low timeout value for Job or Queue.  So try to run the code in CLI mode (eg: php artisan tinker) or HTTP (web/Controller) to clarify that.
3) Be careful with large fields
If you have long data fields (e.g: text fields) they consume a lot of memory and you may need to consider a different approach (not retrieve the field / isolate into a new table / reduce value of chunk_size  parameter)
4) Try to restart your query from the simplest one possible
Get started by only adding the ID field and as the the query is performing well keep adding new fields until you get the memory issue
public function query() {
  return \Illuminate\Support\Facades\DB::table('bills')->select('id', 'amount');
}

@mikoop79 closing the issue due to inactivity

thanks @vitorccs


Getting error Failed to execute 'insertBefore' on 'Node' when trying to use Ionic directives inside of a Blaze template (example repo included)

Forgive me if this is the wrong place to post this; I'm not sure where it should go. The issue seems to be at the intersection of Blaze+Angular+Ionic.
Building upon the blaze-template example from this repo, I created an example repo that illustrates what I'm trying to do and what isn't working. Here's a diff of changes between the original example and the few, small changes I made. I also deployed a quick demo of the issue.
I have a project that is attempting to use Ionic directives inside of a Blaze template. e.g. I'd like to use <ion-list> and <ion-item> inside of a Blaze template. When attempting to do so, everything works great when the app first renders. However, as seen in the example, when the user attempts to add more "parties" it throws the following javascript error:
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at Error (native)
    at Function.DOMRange._insertNodeWithHooks (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:385:12)
    at Function.DOMRange._insert (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:354:16)
    at DOMRange.attach (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:431:16)
    at Function.DOMRange._insert (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:349:7)
    at DOMRange.addMember (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:553:14)
    at http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:2800:32
    at Object.Tracker.nonreactive (http://localhost:3200/packages/tracker.js?7776276660c988c38fed448d8262b925dffb5bc3:615:12)
    at Object.eachView.stopHandle.ObserveSequence.observe.addedAt (http://localhost:3200/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:2772:17)
    at Object.diffFn.addedBefore (http://localhost:3200/packages/observe-sequence.js?e0b5ec6321580efa20bf31f5a1ae4c52f05f38b5:231:17)

Steps to reproduce

Go to http://blaze-template-using-ionic.meteor.com
Add a new Party name & description
In the browser observe that the new Party is added to the list above but not the list below
In the console observe that the Failed to execute 'insertBefore' on 'Node' error

What's different between the two approaches
In this example, the primary difference is that the top section, which works, is using
 while the bottom section, which does not work, uses <ion-list can-swipe="true" show-delete="false">.
I'm at a loss as to what the issue is let alone how to resolve it. Any input would be greatly appreciated as I would really like to be able to keep using Blaze and Ionic directives together. But at the moment, this seems to be a show-stopper.

I haven;t looked at it deeply yet, but can you check if it's working better when using version 1.2.1 of angular-with-blaze?

Thanks for getting back to me; I appreciate it. I've tried<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>all with the same result.

Hi @Urigo. Any chance of this being on your radar in the near future?

@lance-anderson There is a certain conflict between ionic and blaze, the following flow describes it:

ionic adds the element div.list to every ion-list being defined.
blaze iterates the list using #each helper, and uses the parent node to insert a new item.

You would expect ion-list to be the parent node, but no, the parent node is actually div.list, because of how ionic works. So blaze is actually being fooled and tries to add the items to the wrong element, which causes an error.
You can sort of fix it using the following template:
<template name="partiesBlazeTemplateUsingIonicDirectives">

Angular parties inside Blaze using Ionic Directives:

  <ion-list can-swipe="true" show-delete="false">

      {{#each parties}}
        {{> partyIonicDirectives}}
      {{/each}}

  </ion-list>
</template>

The problem is, that the options you specify to ion-list won't be applied, so the delete button would be visible, which I haven't figured out of how to solve yet.
I will update this post once I make progress, but just to make it clear, I don't think this problem is related to angular-meteor, it's either blaze or ionic. And if you find a solution, do tell.
cheers!

Thanks for sharing the info. I agree with your observations. Unfortunately, I have not found a solution and I'm exploring alternative approaches to using Ionic and Blaze together.

Im having this problem too using meteoric which has no angular at all, so I can confirm that issue is as what @DAB0mB has mentioned. However adding  works for some but not all. It only happened when I upgraded my meteor to 1.2+. Let me know of the solution if any ...perhaps would post it to meteor devs too.

please re-open this issue on Ionic or Blaze


recognize such phrase  every July 4th 15:00 as a repetitive datetime as a repetitive reminds

Keyword "every" is not recogized as a repetitive datetime results.
If I want to build a remind recognizer, how can I solve this problem with the package.
thanks.

the repetition is captured as a set, and is left not resolved unless it is defined by the statement. Specifically your example would produce the following output
{
"Text": "every july 4th at 3pm",
"Start": 0,
"End": 20,
"TypeName": "datetimeV2.set",
"Resolution": {
"values": [
{
"timex": "XXXX-07-04T15",
"type": "set",
"value": "not resolved"
}
]
}
}
indicating that this is the 4 july at T = 15:00 and is a set (so it is more than one value. The actual resolution of this to a specific starting date is left to the use case that you are implementing


PyPI Downloads from BigQuery

:clipboard: Description
Support PyPI downloads
:link: Data
https://packaging.python.org/guides/analyzing-pypi-package-downloads/

We've just merged a PR to add this via pypistats.org: https://github.com/badges/shields/pull/2131
It will be available on shields.io when we next deploy


feat(pageserver): separate sparse and dense keyspace

Problem
extracted (and tested) from https://github.com/neondatabase/neon/pull/7468, part of https://github.com/neondatabase/neon/issues/7462.
The current codebase assumes the keyspace is dense -- which means that if we have a keyspace of 0x00-0x100, we assume every key (e.g., 0x00, 0x01, 0x02, ...) exists in the storage engine. However, the assumption does not hold any more in metadata keyspace. The metadata keyspace is sparse. It is impossible to do per-key check.
Ideally, we should not have the assumption of dense keyspace at all, but this would incur a lot of refactors. Therefore, we split the keyspaces we have to dense/sparse and handle them differently in the code for now. At some point in the future, we should assume all keyspaces are sparse.
Summary of changes

Split collect_keyspace to return dense+sparse keyspace.
Do not allow generating image layers for sparse keyspace (for now -- will fix this next week, we need image layers anyways).
Generate delta layers for sparse keyspace.
This pull request includes part of https://github.com/neondatabase/neon/pull/7502.

Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Generally LGTM, I like the concept of using distinct KeySpaces for now.
In an earlier iteration of #6778 , I attempted to replace the inner Range<> type of KeySpace with something smarter that could represent the sparseness of sharding, but it was a rather painful diff, so makes sense that this PR also leaves that existing "dense KeySpace" type as-is.

Ideally, we should not have the assumption of dense keyspace at all

Agree.

resolved merge conflicts with main, ready for review


code review request

Hi, @ebukaume and @DenisCuencaBrex ,
Good job 👏 . This project was good. Successfully complete all the core requirements. Please delete create.html.erb from app\views\users. After that, you can merge it into the master. This is from me 👍
Thanks 🙏

Thanks for your review @dipto0321
We will do as you said and then merge. Do have a nice day!


remove finalize, ignore cuda driver shutdown, add release to pinned …

ignore cuda runtime unloading error
add releaseAll to pinned storage destructor

cc @mli @hotpxl


'On item crafted' behaving unexpectedly

'On item crafted' fires when the crafting recipe entered can give a result item, instead of when the result item is actually taken out. Could this event be changed to 'on recipe completed' and could a new event be introduced that actually fires when the result item is taken out of the workbench? This way we can still use 'on recipe completed' to adjust the result item as it would display in the result slot, and also fire other commands when they actually take out the item.

This event is working as it is meant to. You want on player clicks in inventory.

I could swear i was able to see limitations with doing it like that

@BlackCoyote If somehow you find an issue in manually handling it, just reply and we'll reopen this issue.

reply

Limitation: it's ridic complex to handle that manually, you have to do loops and if's and etc.

@fortifier42 suggest 'on player crafts ` as the alternate form

@mcmonkey4eva yes.
Event: on player crafts item, on player crafts
tags:
<context.quantity> returns the quantity crafted
<context.item> returns the dItem crafted

i suggest "on item crafted" to change functionallity to when the item is actually crafted, instead of when the recipe is completed.
Then introduce on recipe completed for the original way the event worked

@BlackCoyote change that event to "on recipe formed"

you change it

@BlackCoyote I mean that is what should be done... change that event to that...

No hateful comments pls

Yessir.

That was a joke

on player crafts item when an item is actually crafted.
on recipe formed or on <item> recipe formeded when it is made in the workbench, while maintaining back-support for on item crafted (undocumented) for a while
That's my vote.

Any update on whether this will be added?

@Morphan1 pls

Oh hey, I'll add this to my todo list

Very Interested
@Morphan1 Plzzzz

"on player crafts item" fires twice per item crafted, well done, 2/1

@BlackCoyote with what script exactly? I definitely was not experiencing that.

on player crafts item:
- narrate <context.item>
narrates the same item twice every time i make one

I really meant what item script

none, regular stone sword

Hm. Well... We don't control that one, Spigot does. If you reload scripts a few times does it get worse?

i'll check that a bit later today if it's any help


check widevine support before all checks

Can you please rebase your branch?

Also, I am not sure if this change is even relevant, as the add-on should be using:
    is_helper = inputstreamhelper.Helper(PROTOCOL, drm=DRM)
    if is_helper.check_inputstream():

in order to check if inputstreamhelper is needed. So the only potential improvement is making a quicker decision based on other criteria.

This is weird, the resulting file looks fine, but the diff includes the proxy support?
Seems like a GitHub bug?

Now it looks correct

How about https://github.com/emilsvennesson/script.module.inputstreamhelper/pull/30#issuecomment-522544889 ?

drm is an optional argument, so this could also be None, so I think checking the value of drm makes sense.

With the power vested in me, I'll merge :-D


Add a more descriptive README.

The main README of the project needs to be more descriptive, as it only has the 'Contributing' heading.

This has been taken care off! Thanks much!


Configuration option to allow two empty lines between elements

I prefer two empty lines between major parts in code, for better readability.
class Foo

  def bar1
    return unless xxx
    return unless yyy

    # do something here
  end

  def bar2
    return unless xxx
    return unless yyy

    # do something here
  end

  def bar3
    return unless xxx
    return unless yyy

    # do something here
  end

end

Since blocks inside my methods can be separated by a single empty line, I like separating method declarations by double empty lines. It also makes the code read less crammed
A configuration option to specify the number of allowed empty lines between method declarations, defaulting to 1, would be useful for this type of code.

@bbatsov Do you want this style for Style/EmptyLineBetweenDefs? Would you merge a PR?

I don't really like this idea and nobody else has expressed interest in the suggested style. Let's close this issue.
Btw, a simple way to solve this would be to make the number of lines between def configurable, but I really think that 0 and 1 are the only common values people would use.


Rules language

Would be awesome if Ruler could do something similar to https://github.com/hoaproject/Ruler, where rules can be defined like so:
'group in ["customer", "guest"] and points > 30'

This would allow storage of rules within databases or other formats.

You can serialize the parsed rule then store it, at least that's what we are doing with this ruler

@yellow1912 - How do you handle the error generated with trying to serialize the closure object? What function are you calling to get just the parsed rule?

For what I have read in the Documentation, this idea would be a perfect match for another Project, using Ruler as dependency and building some kind of external Domain Specific Language (DSL) which leverage the usage of Ruler itself.
I did something similar for an old Project of mine by using a DSL modelling framework which was Eclipse Based. At the time was a huge help when generating the Ruler code to use later on for validation.


014 - TBD - Joe

11/13 from 11-noon PST

https://hackmd.io/fBt7bxYBSvuXXZXKdDEKmQ?both

Episode time changed to: 11/13 from 1-2pm PST.

Done.


Chain Setter

Short description
I want the chain call setter like
new User().setUsername().setPassword();
Expected behavior
maby u should add a annonation like @ChainSetter .
and this annonation can replace
public User setUsername(String username) {
    this.username = username;
    return this;
}
public User setPassword(String password) {
    this.password= password;
    return this;
}

Version information

IDEA Version:                                    2018.1
JDK Version:                                      1.8
OS Type & Version:                           Windows
Lombok Plugin Version:                    0.17-2018.1
Lombok Dependency Version:          1.16.20

This feature already exists:
https://projectlombok.org/features/configuration
Op zo 8 apr. 2018 08:59 schreef wangbor<EMAIL_ADDRESS>
Short description
I want the chain call setter like
new User().setUsername().setPassword();
Expected behavior
maby u should add a annonation like @ChainSetter .
and this annonation can replace
public User setUsername(String username) {
this.username = username;
return this;
}
public User setPassword(String password) {
this.password= password;
return this;
}
Version information

IDEA Version: 2018.1
JDK Version: 1.8
OS Type & Version: Windows
Lombok Plugin Version: 0.17-2018.1
Lombok Dependency Version: 1.16.20

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rzwitserloot/lombok/issues/1648, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKCRZCjVne-Ub1P2ex5pwbHpd689CBSks5tmbVYgaJpZM4TLavK
.

ok. thanks..

hello,
i have a new question:
when i use
@Setter
@Getter
@Accessors(chain = true)
public String username;

the chain setter is ok!
but how to use common(no chain) setter ? i expect the lombok can relplace these code:
public User setPassword(String password) {
    this.password= password;
    return this;
}
public void setPassword(String password) {
    this.password= password;
}

these two setter need exist together.

if use chain setter ,
        BeanInfo beanInfo = Introspector.getBeanInfo(Foo.class);
        PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
        for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
            Method writeMethod = propertyDescriptor.getWriteMethod(); // writeMethod is null
        }

@BerryWang1996 , Java does not allow method overloading by return type. So you can't have such 2 methods in same class.


Referencing result_string[0], when re.findall() may return empty.

Test returns no "list inconsistency window" results and fails here:
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/5db1fe46aad5db70d5735233f17e9a2762ce1800/perfkitbenchmarker/linux_benchmarks/object_storage_service_benchmark.py#L780

Thanks for the bug report - we haven't run this sub-benchmark in a while. We'd be happy to accept any bug fixes if you want to submit one, otherwise we'll try to get to this in time.


support webpack

Coverage remained the same at 100.0% when pulling 1e40eaf37ec67af69c10289f80582780c1c54f80 on intive-opensource:LW/webpack into a2ef29b785aefdf7f30f7b6cf9ec1ded9ab0dc28 on isc30:master.


Document Overlay Schemas

Overlay schemas could be a very powerful tool for consumers to validate custom policies for their types. We should document how to use them for CRDs and native types

@alexzielenski can you please explain it a bit more

The tool has an option --overlay-schemas which will allow users to apply JSON patches onto the resource schemas before they are used for validation for custom behavior.
Would like for usage and examples to be documented in the README and usage in the tool help.


Create a list of the the exercises

We can start from http://senecajs.org/getting-started.html for a basic skeleton

@marcopiraccini Lets talk on this, I've been talking to richard about this page and possibly adding more meat here which would dovetail well with this. I think Glen Keane is doing some things here too.

@marcopiraccini @piccoloaiutante Is there a sample workshopper that I could look at so I know what a complete one should look like?

I suggest you to have a look at learnyounode (https://github.com/workshopper/learnyounode)

Yes, in any case, see the ones that uses the workshopper module. The problems structure is already done, so simply start doing the problem implementation

And -of course- also, @thekemkid can help :)

We should first agree on the list of the thing that we want to teach in this workshop

Cheers all. I just wanted to go through one before I started to help to make sure I understand the structure. I presume they are all pretty standard. Yes let's get a list start. I think some of the main points to cover are

Pattern matching
Transports
Storage
Seneca server to server comms
Browser / Rest communication via REST.

We need to break them down further but these are the main things that I feel you need to know to get a good handle on seneca.

For the first workshop i would go for pattern matching, storage and rest communication

I agree, you will need to add a storage in there to be complete. JSON File store is a lovely way to have storage without having to explain database stuff? Thoughts?

I agree on the list, but it's top-level and must be further detailed (the problems must be progressive).
This is the draft of the problem list shared in the doc (mainly follow the Seneca getting started):

1.sum: create server for 2 num sums
2.client:create client to consume it
3.roles: pattern matching with role and command
4.extend: extend pattern with another pattern
5.extend-client: extend client with second pattern call
6.multiple: multiple extended pattern (the one with integer true)
7.override: override a pattern
8.transport: move the different pattern to another seneca instance unsing seneca-transport
9.more-transport: Add different trasport
10.mem-store: saving and retrieving something with seneca-mem-store
11.plugin: Write a seneca plug-in
12.web: adding seneca-web?

A client-server hello world should be the first exercise.
Then basic maths.
Then pattern matching extending that maths stuff.
Then pretty much @marcopiraccini's plan, I think

Yes, @thekemkid, but remember that in nodeSchool exercises you usually write one "part", so you write the serve or the client, that's because the verifier will verify the server with a client, and the opposite.
If we write a problem that to be solved needs the server AND the client, it's difficult to verify it automatically (I think).

Looking good @marcopiraccini.

Should we create seperate issues for each exercise and assign them out/self assign them?

@thekemkid I think that would be a good idea. Talk to @marcopiraccini today and get the process kicked off :+1:

Talking with @mcollina during the return trip, we agreed that it's probably better to introduce the concept of "plugin" ASAP in the exercises. So that:

In the first exercise we make write one service, but with no seneca initialization (the verifier will require the "sum" service to test it.
In the second exercise we introduce the plugin structure.

So my proposal is:
1.sum: create service for 2 num sums
2.plugin: create the plugin for the "sum"
3.client:create client to consume the "sum"
4.roles: pattern matching with role and command
5.extend: extend pattern with another pattern
6.extend-client: extend client with second pattern call
7.multiple: multiple extended pattern (the one with integer true)
8.override: override a pattern
9.transport: move the different pattern to another seneca instance unsing seneca-transport
10.more-transport: Add different trasport
11.mem-store: saving and retrieving something with seneca-mem-store
12.plugin: Write a seneca plug-in

I would agree with the above, it looks like a solid list.

If you break em out into issues we could tackle them one at a time.

I'm not so convinced by the 12th step: what would you like to see in "Write a seneca plug-in" ?

It was a copy&paste mistake, fixed. Following this hypotesis, plugins are introduced in the second exercise.

@mcdonnelldean Yes, I would like first to create the "sum" exercise to be used as a blueprint for the others.

:+1: for the discussed list!

@marcopiraccini in that case :+1:  :smile:


Multiple levels of NumpyModel and eq

It seems like eq works for up to levels of composition, but at 3 there is a bug where the eq operation ends up directly comparing numpy arrays:
        class A(NumpyModel):
            a: pnd.NpNDArray = Field(frozen=True)

        class B(NumpyModel):
            a: A = Field(frozen=True)

        class C(NumpyModel):
            b: B = Field(frozen=True)

        a = A(a=np.zeros((10, 10)))
        b = B(a=a)
        c = C(b=b)

        other_c = C(b=B(a=A(a=np.zeros((10, 10)))))
        assert c == other_c

I suspect this is because the following function:
    def _dump_numpy_split_dict(self) -> tuple[dict, dict]:
        ndarray_field_to_array = {}
        other_field_to_value = {}

        for k, v in self.model_dump(exclude_unset=True).items():
            if isinstance(v, np.ndarray):
                ndarray_field_to_array[k] = v
            else:
                other_field_to_value[k] = v

        return ndarray_field_to_array, other_field_to_value

Uses .model_dump() at the top level, and instead needs to recursively dump models if it contains other NumpyModels

We need to discuss where to store the data of the nested NumpyModels upon dump() call; the load() logic should be implemented similarly, of course.
My solution is to dump the data in a directory with the respective field name.

The directory structure matching the structure of the models is pretty intuitive to me.

Good; however, it would've been a disaster of a PR if we didn't make this clear before you spent your precious time. God speed.

https://github.com/caniko/pydantic-numpy/pull/27
Threw together a quick version of this.


GPU Memory exhausted (training)

Label for this issue is help wanted.
Hardware
Processor: Intel Core i9 - 9900K CPU @ 3.60GHz
Installed RAM: 64.0 GB
GPU: NVIDIA GeForce RTX 2070 - 8GB

Attempt

Failure

Tried Steps

Epoch selection:

8000
5000
3000
1000 and 10 iterations

Steps that might help to resolve
I found some articles that might be be helpful to resolve this:

https://pytorch.org/docs/stable/notes/faq.html
https://forums.fast.ai/t/clearing-gpu-memory-pytorch/14637/4

Questions

Would you suggest to reduce the iterator counter from 1000 to a smaller number? If yes then what number would be ideal.
Would you suggest to reduce the epochs from 8000 to a smaller number? If yes then what number would be ideal.

Hi @vinamramunot-tech, The issue is to do with the batch size rather than epochs. To try and make the user experience as straightforward as possible I automatically calculate this value based on GPU memory in https://github.com/BenAAndrew/Voice-Cloning-App/blob/main/training/utils.py
The formula I'm using is

In your case, this would result in a batch size of 28 ((8 - 1) * 4 = 28). Unfortunately, this a bit of an approximation and will be improved in a future development to take into account the dataset size.
I think your issue is one of the following:

Your audio clips are too big (could you check the produced clips are 22050hz Mono 32kbs)
My batch size calculation hasn't worked (perhaps something else is using memory in your GPU)

Could you send me a screenshot of the output of nvidia-smi and also check the properties of your audio (I use an app called MediaInfo)

This is the info after running nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 456.71       Driver Version: 456.71       CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2070   WDDM  | 00000000:01:00.0  On |                  N/A |
|  0%   40C    P8    21W / 185W |   1516MiB /  8192MiB |      1%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       348    C+G   ...icrosoft VS Code\Code.exe    N/A      |
|    0   N/A  N/A       932    C+G   ...udibleRT.WindowsPhone.exe    N/A      |
|    0   N/A  N/A      1268    C+G   Insufficient Permissions        N/A      |
|    0   N/A  N/A      1632    C+G   ...lPanel\SystemSettings.exe    N/A      |
|    0   N/A  N/A      2480    C+G   Insufficient Permissions        N/A      |
|    0   N/A  N/A      6380    C+G   ...cw5n1h2txyewy\LockApp.exe    N/A      |
|    0   N/A  N/A      7200    C+G   ...bbwe\Microsoft.Photos.exe    N/A      |
|    0   N/A  N/A      7780    C+G   C:\Windows\explorer.exe         N/A      |
|    0   N/A  N/A      8744    C+G   ...artMenuExperienceHost.exe    N/A      |
|    0   N/A  N/A      9112    C+G   ...w5n1h2txyewy\SearchUI.exe    N/A      |
|    0   N/A  N/A      9192    C+G   ...w5n1h2txyewy\SearchUI.exe    N/A      |
|    0   N/A  N/A      9624    C+G   ...ekyb3d8bbwe\YourPhone.exe    N/A      |
|    0   N/A  N/A     11148    C+G   ...me\Application\chrome.exe    N/A      |
|    0   N/A  N/A     11400    C+G   ...y\ShellExperienceHost.exe    N/A      |
|    0   N/A  N/A     12524    C+G   ...b3d8bbwe\WinStore.App.exe    N/A      |
+-----------------------------------------------------------------------------+

This is the output from the MediaInfo app for the mp3 that I shared with you:

@vinamramunot-tech Sorry, I meant the clips produced by dataset generation. You can find them in data\datasets\ datasetname \wavs

This is the info on the produced wavs

Questions

If I may ask, what is the ideal setting of the audio that should be produced from mp3 to wav?
Should reduce my dataset?
Should I try to change the batch size from 4 to 2?

I am apologize for rushing here, just trying to brain storm some solutions.

@vinamramunot-tech Hi, sorry for the late response.

You have the same format I'd expect for the wavs produced (single channel, 16 bit, 352kb/s, 22050hz)
I wouldn't. More data is always ideal
It's odd that you'd need a batch size that small. As you have an 8GB card I'd expect a batch size of 20+. Could you try downloading the dataset I produced for David Attenborough from the voice sharing hub (https://voice-sharing-hub.herokuapp.com/) and let me know what the max batch size you can use to train on that is

@BenAAndrew

Isn't 8000 a huge number for the epoch? Do you think reducing this would affect the quality of output?
Do you think reducing the batch size will affect the quality of the output?

I will try David Attenborough dataset to see what is the max batch I can use.

@vinamramunot-tech

Yeah 8000 is pretty overkill. You can always start small (say 3000), test the results and then continue training if needed
No but it will take longer. I'd say 2 is too small (especially given you have 8GB GPU memory). Sounds like a problem with the data (maybe being too big) but we will know when you test with David Attenborough.
Yeah batch size 2 would take an extremely long time. Even when training with a larger batch size it will likely take at least a week to get good results. Using transfer learning may help speed this up.

@BenAAndrew Could this be possible that because I am using my dedicated graphics card for display it is not giving me full potential? Should I shift my display driver to integrated graphics?
Will update soon on the test for David Attenborough!

@vinamramunot-tech I wouldn't have thought you'd need to switch your display. You can check your GPU memory usage by running nvidia-smi and you should find 90%+ is available.  It is more likely an issue with the dataset your using

@BenAAndrew okay then will look into the dataset.

@vinamramunot-tech did you have a chance to try the David Attenborough dataset?

@vinamramunot-tech Closing this as these issues have been fixed since release 0.4

@BenAAndrew Apologies for the delay but was able to fix this. A lot of background processes were utilizing the memory which I didn't realize. Also the changes were able to fix this.


[iOS Simulator] no local address available

Hello,
First of all thanks for creating this library.
I have found issue when testing konnection with iOS simulator issue can be reproduced using ios-spm sample  ( tested it with iOS 17.2) I can't test this easily on real device (certificates etc) but there is big change that it works there.
Issue: On iOS simulator "observeNetworkConnection" return ETHERNET connection. Next invocation of "getInfo" returns connection info with empty ipv4 and ipv6 addresses
Cause: I deeply check the issue it looks that on iOS simulator ETHERNET connection is done using "en0" interface. But code related to providing interfaces for given typ of connection "NetworkConnection.networkInterfaces" contains hardcoded values that may not be correct for simulators, but probably is correct for real devices.
    private val NetworkConnection.networkInterfaces: Set<String>?
        get() = when (this) {
            NetworkConnection.WIFI -> setOf("en0")
            NetworkConnection.MOBILE -> setOf("pdp_ip0", "pdp_ip1", "pdp_ip2", "pdp_ip3")
            NetworkConnection.ETHERNET -> setOf("en2", "en3", "en4") //en1
            NetworkConnection.BLUETOOTH_TETHERING,
            NetworkConnection.UNKNOWN_CONNECTION_TYPE -> null
        }

Possible solutions:

add internal check if device is simulator and add "en0" to allowed ethernet interfaces
define fallback interfaces that will be used if base interfaces will not return ipv4 or ipv6.

IfaddrsInteractor.get(netInterfaces: Set<String>, fallbackInetInterfaces: Set<String> )
I would be happy to work on this fix, but just let me know if some of proposed solutions is more preferable or maybe you have other ideas.
Best Regards,
Kamil

Hi @kkalisz , thank you for your feedback.
In this case, the Simulator gets the connection info from the host system (Mac OS).
So first of all, can you confirm your Mac is connected by the Ethernet?
(just to check if the connection is reflecting the real one)
I like your fix suggestions.
But let's do this check and then discuss the best strategy.

Hey,
Indeed connection and connection type is reflection of host machine, in my case:
mac studio:
en0 : ethernet
en1 :  wifi
macbook: (no ethernet port)
en0 : wifi
So this complicates a bit, because it depends on the host device.
From obvious reason my 1-st idea will not work, or maybe we can modify it a bit check all "enX" interfaces when device is simulator.
Personally I would not like to overcomplicate the solution as it looks this only affects testing on simulator.

Hi @kkalisz,
I've just released version 1.4.3 with the fix for this Issue.
I did some tests with it (on a Simulator and on a real device) and everything has run fine.
Can you please test it as soon as you can?
I'm curious to see your results.

@magnumrocha thank you for the fix, not it work fine.


Update to release version of govuk-frontend-aspnetcore

I can see that the version number of govuk-frontend-aspnetcore-extensions was increased to 3.1.2 last week but that was because of a bugfix.  Do we need to bump the version number for this as well?

Not yet. There are other changes to come.


New Dropbox API

Looks like Dropbox has a new API.

:+1:

Does this still work with the new API?

According to dropbox, the API v1 will be disabled on 28th June 2017.
https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/

Thank you for contacting me.
I will respond within two weeks.

done :smiley: #29


Automatic insert or delete ending brackets

VSCode Version: 1.22.2
OS Version: Win10

Steps to Reproduce:

Write a line with missing some brackets at the end: let a = max(0, 2 * (b+1|) with cursor placed before last ending bracket, as shown with |

Feature request:
After pressing ) once insert or delete as many ')' as needed so the error [ts] ')' expected. will disappear.
Today's behavior:
Now I have to first press as many ) so the cursor is placed at the end, skipping over the existing brackets(it's quite annoying), and then manually repair missing brackets 😢

Similar: #16915

Shared the same root cause as https://github.com/Microsoft/vscode/issues/37315 and https://github.com/Microsoft/vscode/issues/6841, let's track this issue in https://github.com/Microsoft/vscode/issues/6841 . We don't check whether a open or close bracket/paren is already paired or not at this moment.


fix(send-tokens): Updated send-tokens to use bch-js instead of BITBOX…

…, fixed testnet

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MB-791: fetch active mtos

Description
Prime can fetch all move task orders and have the ability to filter in those that have been updated since a particular date. This PR brings back previous work deleted in #3152 and updates it to reflect the new database schema.
Note: this contains and iterates upon work done in #3196.
Setup
make server_generate
make server_run
make office_client_run

Test out the endpoint here: http://officelocal:3000/swagger-ui/prime.html#/moveTaskOrder/listMoveTaskOrders
Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

https://github.com/transcom/mymove/blob/b5297d6a2c6928eec36b06f6c370500439a8aaa1/swagger/prime.yaml#L21 maybe add an example of the format? I had to fiddle around with swagger ui to figure out how construct the request.


GPU-Z returns Unknown version

Create issues related to the winget.exe client here

Brief description of your issue
GPU-Z returns an unknown version, last version in installed (2.40.0)
Steps to reproduce
winget install gpu-z
Expected behavior
Display the right version instead of Unknwon.
Actual behavior

Environment
[winget --info]
Windows Package Manager version : v1.0.11694
Windows: Windows.Desktop version : v10.0.22000.71
Package: Microsoft.DesktopAppInstaller version : v1.15.11694.0

Any other software?

This often happens when the installer doesn't assert a version to Windows in "Add / Remove Programs".

This reply might be useful in regards to how this can be resolved: https://github.com/microsoft/winget-pkgs/issues/16003#issuecomment-872653235

Thank you @ImJoakim, i'll try to contact the developer ;)

GPU-Z author here, thanks for letting me know, I'll add the version # in future releases

https://www.techpowerup.com/forums/threads/gpu-z-test-build-fixed-installer-for-winget.284822/
Please confirm that these are the required changes for winget

https://www.techpowerup.com/forums/threads/gpu-z-test-build-fixed-installer-for-winget.284822/
Please confirm that these are the required changes for winget

@W1zzardTPU Yep! That should do it :)

This is fixed in #24084

Believe this can be closed

Thanks @W1zzardTPU


[BUG] Cloudflare 的 Web Analytics 的功能的js加载出错

Describe the bug 描述你遇到的错误
token被错误转义
Expected behavior 期待的行为
No response
Screenshots 屏幕截图

Build Environment 构建环境
sel@sot ~> hugo version
hugo v0.121.0-e321c3502aa8e80a7a7c951359339a985f082757+extended linux/amd64 BuildDate=2023-12-05T15:22:31Z VendorInfo=snap:0.121.0

Preview Environment 预览环境
No response
Additional Information 补充信息
No response

It's just the Chrome DevTool doing some weird escaping when dealing with single quotes. The generated HTML is corrected and Analytics data is sent correctly. Can verify that by reading the value using JavaScript and checking the actual POST request.


Few changes in bitseq

Fixes #1740
Overrides #1741

Handle redundant set: Avoid the call to checkIfAvailable() given
pushReservation() can provide the already allocated information.
Avoid any extra processing in case of redundant reserve/release.
Warn in the other cases.
Make sure handle (h) is not modifiable during the write to store
of the handle copy (nh), and the consequent save to handle (h),
that is make the operation atomic.
Fix IsSet() and toString() to work on the latest store view,
added Refresh() method, which is also useful for test code.
Serialize set(). This is needed because it is not thread safe
when the handle is created with no datastore.
Add parallel tests in id manager to simulate concurrent
allocation/deallocation on id managers linked to same datastore
and on same id manger with no datastore.
Added testutils.RandomStore() to reuse in test code.

Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

related issue: https://github.com/docker/libnetwork/issues/1740  :clap:

ping @fcrisciani @aboch what's the status on this one?


“See also” section in manpages

Many man pages have a SEE ALSO section cross-referencing other pages that could be interesting to the reader.
We should add them for nix-* and nixos-* as well.

Companion issue to https://github.com/NixOS/nixpkgs/issues/42524

Closing, because the new rewrite of the nix command line is probably going to have manpages only as an afterthought.


fix docs deploy, add new artifacts and workflows

This PR should not pass because of the new Workflow CleanNotebooks.
A later commit that clean the notebooks should pass the CI.

bors r+