Indentation of first paragraph

Hi @mmistakes,
Is it possible to make first paragraph of posts and pages indented like other paragraphs? How can I do it?

Yes. You need to edit the CSS and apply a text-indent on all paragraphs.
In /_sass/typography.scss change the paragraph CSS starting @ line 133 to:
p {
  margin: 0 0 $indent-var;
  text-indent: $indent-var;
  // sibling indentation
  & + p {
    margin-top: -($indent-var);
  }
}


node.el.detach() breaks focused elements

This line here:
https://github.com/troolee/gridstack.js/blob/master/src/gridstack.js#L675
After calling resize() on an element which has a text field which the user is typing into, detaching and appending again causes the user to lose focus.
Why is detach() called and is there any other way this can be done? Specifically, I am using a rich text editor inside the node and detaching and appending again breaks the editor.
Commenting these lines out fixes my problem, but I'm not sure what problems it will cause.

This code is sorting nodes in DOM so if you resize your browser and the grid collapses to single-column mode the items will appear in correct order.
I will check if detach is needed there.

Is there a way we can pass in a flag to resize to turn that off?

I will check if detaching is necessary there. Maybe I will be able to sort nodes without detaching.

I think no matter how you rearrange the nodes focus would be lost.  But it seems that not all use cases for grid stack will require a "responsive" view, so maybe it makes sense to add an "allow_responsive" flag or something to avoid this problem for those cases.  This would only be a good solution if not rearranging the nodes doesn't have any other negative affects.

Good point. I need to rearrange nodes for one-column view only.

Should be fine now.


Prevent buffer overflows in libastro

Fix potential buffer overflows caused by:

Unbounded %s format specifier with sscanf reading ill-formed external files (.csf & .cof).
Unbounded %s format specifier with sprintf  writing planet name in obj_description.

For the second one, it may be formally better using:
#define OBJ_DESC_STRINGIFY_NAME(MACRO) #MACRO
#define OBJ_DESC_STRINGIFY_VAL(MACRO) OBJ_DESC_STRINGIFY_NAME(MACRO)
...
        case PLANET: {
            const char fmt[] = "Moon of %" OBJ_DESC_STRINGIFY_VAL(MAXNM) "s";
            static char nsstr[8 + MAXNM];
            ...
            sprintf (nsstr, fmt, biop[op->pl_code].o_name);

As you pointed out in your comments, some of these don't look quite possible to exercise, but correctness and safety are always to be preferred. Thanks!


.clj-kondo directory

The .cljkonfo directory and directories below it contain lots of files that look like normal source code. Could it be that they just got copied there by mistake? Regards

Yes perhaps - will
Check it out


it is giving a error

pls check it

@frostfire246 where is the error you are facing, mark it! so that it can be solved.

uoload a pic of the error


PC-393: Add role and tab index to NI gov link

Similar to the PR for PC-392, I've added a role and tabindex of 0, although the 'link' was already being read out by the screen reader.
I wonder if I'm testing this correctly and if I should liaise with the reporter to reproduce exact steps? There's not much detail on the ticket.

'link' was already being read out by the screen reader.
Yeah, I'm curious about this change. It's not obvious to me why the screen reader wouldn't be reading this link, and I really don't want to start messing with taborder on a hunch - that tends to make accessibility worse not better.

liaise with the reporter to reproduce exact steps
Yes please.

@CheshireSwift confirmed by Adrian that this is the fault of the screen reader simulator in use, and so I'm closing this PR


PopUps buttons

The Go Back buttons int he Popups (all of them) is not workin. Fix it please.

please review and let me know if you have any changes

Please check again this items, looks like they are not working right.

[ ] Go back for Show Registered Contacts is not working correctly.
[ ] Go back for Amortization table is not working correctly

All the issue are resolve.

Ready :)


I am getting a value error

raise ValueError("ffplay from ffmpeg not found, necessary to play audio.")

ValueError: ffplay from ffmpeg not found, necessary to play audio.
##this is the output i recieve when i run this code.
""from elevenlabs import generate, play
audio = generate(
text="Hi! My name is Bella, nice to meet you!",
voice="Bella",
model="eleven_monolingual_v1"
)
play(audio)""

As the error says, you need to install ffmpeg to play audio.

hello, I have the same error. Running windows10 and ffmpeg is installed through 'pip install ffmpeg '. Do I need to install something else, as the message says that it does not find ffplay.  BTW, I can run the above example without any problems from the example in the github website.

I think some clarification might be needed. When it says ffplay, is that talking about the media player using the FFmpeg libraries and the SDL library, or a function from a package called ffmpeg?
If the former, saying it's required in the readme would probably help.

I get the same error. I also have ffmpeg installed, same as @alainbuyze, "pip install ffmpeg".
But I still get the "ffplay from ffmpeg not found" error.
Here is the full traceback I'm getting.
'
Traceback (most recent call last):
File "X:\Projects\common_python\application\talk_gpt\elevenlabs_test.py", line 9, in
play ( audio )
File "C:\Users...\anaconda3\lib\site-packages\elevenlabs\utils.py", line 24, in play
raise ValueError("ffplay from ffmpeg not found, necessary to play audio.")
ValueError: ffplay from ffmpeg not found, necessary to play audio.
`

Yup, I found this code. They appear to be calling ffplay from the command line, with arguments -autoexit to exit after playing a video, and -nodisp to disable the graphical display.
`def play(audio: bytes, notebook: bool = False) -> None:
if notebook:
from IPython.display import Audio, display
    display(Audio(audio, rate=44100, autoplay=True))
else:
    if not is_installed("ffplay"):
        raise ValueError("ffplay from ffmpeg not found, necessary to play audio.")
    args = ["ffplay", "-autoexit", "-", "-nodisp"]
    proc = subprocess.Popen(
        args=args,
        stdout=subprocess.PIPE,
        stdin=subprocess.PIPE,
        stderr=subprocess.PIPE,
    )
    out, err = proc.communicate(input=audio)
    proc.poll()`

So, I got it to work. Here are the steps I followed.
Step 1: Download the ffmpeg suite of command line tools.

There are no installers for this, and the ffmpeg project only make their source code available.
But, they do have links to external projects that do regular automated builds, which you can find on the download page, https://ffmpeg.org/download.html#build-windows.
I downloaded the latest "shared" build from BtbN, https://github.com/BtbN/FFmpeg-Builds/releases.
I don't think Elevenlabs require the shared build, which just includes libraries for integration and stuff. ElevenLabs seem to just be using ffplay directly from the command line. But, just in case, I downloaded the shared version.

Step 2: Unzip the ffmpeg archive and copy the root folder to there ever you want to store it.

In my case I just coppied it to "C:\Program Files (x86)", and changed the folder name to "ffmpeg" just to make the path a bit shorter for the sake of convenience. So my Win64 Windows programs path looks like this.
C:\Program Files (x86)\ffmpeg
bin
doc
include
lib
LICENSE.txt
I presume if you download the "non-shared" build, then you won't have the include and lib folders. But, as mentioned above, I just downloaded the shared build just in case it's needed.

Step 3: Add the ffmpeg "bin" folder to the system path.

In my case, I added "C:\Program Files (x86)\ffmpeg\bin" to the system path, using the Windows environment variables editor.

Step 4: Test

To confirm that the ppmpeg bin folder has been added to the system path correctly, I opened up a console and checked to see if I could execute ppplay.exe.
Then I tried out some code. I used the example below. And, it worked.
...python
from elevenlabs import generate, play

audio = generate (
text  = "Hello World!.\nTesting 1, 2, 3.\nYo, wuzuuuuuuuuup!",
voice = "Bella",
model = "eleven_monolingual_v1"
)
play ( audio )
...

I was just thinking, just an idea, to the ElevenLabs dev team.
I'm sure there is a good reason why ffplay is being used here. However, ppmpeg is more for playing and processing videos from the command line, rather than than playing audio programatically from python. Just as an idea, would it not not be more convenient to use a python library, like pygame or simpleaudio, or something like that?

I looked through the code and found the same thing. That's why I brought it up.
I installed it (the actual software, not the python module), and its already proven useful, so I can't say I mind it. However, even after adding it to the system path, it did not work for me (the elevenlabs package). I'm sure it's an issue on my side, but by that point I was done with it and just switched to the unofficial version, which does NOT require ffplay. or ffmpeg to play audio.
I'm going to bring this up one more time, it would be really great if someone could add a little notice to the readme somewhere that this package requires ffmpeg and ffplay (how to install it would be good too, for people who have never heard of it but most people could probably figure it out on their own), and perhaps change the error message to specify it means the software and NOT the python package.

...and perhaps change the error message to specify it means the software and NOT the python package.

That is actually a good idea. Because the current error message makes it look like a missing package. But it's actually a literal exe that needs to be run.
One thing ElevenLabs can do, is just use a python packages that plays audio though. I haven't looked at the code, but I have a hunch the unofficial version has just replaced command line calls to ffplay.exe, with calls to a Python package like pygame or simpleaudio, etc. Not sure why ElevenLabs when with this ffplay option. Especially since it's a video player, and we only interested in audio in this case. I'm sure they have a good reason for using ffplay. But, just an odd option to go with, if you looking at it from the outside in.

Hi all, we decided to use ffmpeg as audio player because it's a common tool for audio processing and doesn't add any extra dependency. Here's an alternative play function that uses existing python packages (pip install soundfile sounddevice) if ffmpeg doesn't work for you.
import io
import soundfile as sf
import sounddevice as sd
from elevenlabs import generate

audio = generate(
    text="Hi! My name is Bella, nice to meet you!",
    voice="Bella",
    model="eleven_monolingual_v1"
)

def play(audio: bytes):
    sd.play(*sf.read(io.BytesIO(audio)))
    sd.wait()

play(audio)


feature request - support cooling mode

Salus thermostats supports cooling mode. Would be nice if was supported by HA integration.

+1 on this

+1


Hardware test is not running on 64bit Raspberry OS

Just trying the HARDWARE test menu on 1.7RC2
*** Hardware Test Report ***

the OS is not Raspbian - the stresstest is only for the Raspberry Pi

/home/admin/05hardwareTest.sh: line 26: /home/admin/stresstest.report: No such file or directory
/home/admin/05hardwareTest.sh: line 34: [: -gt: unary operator expected
/home/admin/05hardwareTest.sh: line 112: [: -gt: unary operator expected

Not running during the first setup either.
Question @rootzoll if we should fix this or just remove the option?
It was developed for the RPi3 and  not sure if is very useful for the RPi4.

Openoms, this month there was a wave of hardware issues on the debug logs shared on telegram. I think this is best to be reworked. Maybe just deleting this part as there are many more OS available now https://github.com/rootzoll/raspiblitz/blob/c6c8989f01ad66233f6c25f0aa89411300617beb/home.admin/config.scripts/blitz.stresstest.sh#L10

The issues are often USB adapter related which this test does not cover and it has other mitigation in v1.7.
Voltage instability was an problem for the Rpi3, but not the rpi4.
Heat is of limited significance also and needs longer time to build up.
I don't feel the hardware test in this form is very useful and takes time to run.
It is an easy fix to make it work, but I'd rather deactivate it for now.

I agree - reducing complexity makes sense. I will remove hardware test for the v1.7

OK removed the hardware test for start/setup, menu and debug. Now final testing if all still runs smoothly.

Looks good - closing issue.

@maxgoldberg thanks for the report (thats an old text) .. added a note to check this for v1.7.1 release- see: #2188


[BACKLOG-35744] Modified data connection url to include './'

:white_check_mark: Build finished in 3m 55s
Build command:
mvn clean verify -B -e -Daudit -amd -pl assemblies/samples

:exclamation: No tests found!
:information_source:  This is an automatic message


Fix that allows the module to work with python 2.x

usaddress already works with python 2.7 https://travis-ci.org/datamade/usaddress/builds/199084903

I did a pip install on a ubuntu machine. It installed file but failed on import before the change. I can gather more info and will report back.

without the patch this is what I get on Mac with anaconda python:
$ python
Python 2.7.12 |Anaconda 2.2.0 (x86_64)| (default, Jul  2 2016, 17:43:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import usaddress
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/massimodipierro/anaconda/lib/python2.7/site-packages/usaddress/__init__.py", line 5, in <module>
    from builtins import zip
ImportError: No module named builtins

can you paste the traceback of the pip install usaddress
On Wed, Feb 8, 2017 at 10:32 PM, mdipierro<EMAIL_ADDRESS>wrote:

without the patch this is what I get on Mac with anaconda python:
$ python
Python 2.7.12 |Anaconda 2.2.0 (x86_64)| (default, Jul  2 2016, 17:43:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

import usaddress
Traceback (most recent call last):
File "", line 1, in
File "/Users/massimodipierro/anaconda/lib/python2.7/site-packages/usaddress/init.py", line 5, in
from builtins import zip
ImportError: No module named builtins

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/datamade/usaddress/pull/166#issuecomment-278544622,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgxbQdwtcrVHttGWrh0-7bIZVp4HNdlks5rapbYgaJpZM4L7r3_
.

--
773.888.2718

The is no error in “pip install usaddress”. The error only appears on import.
$ pip install usaddress
Collecting usaddress
  Downloading usaddress-0.5.9-py2.py3-none-any.whl (64kB)
    100% |████████████████████████████████| 71kB 1.6MB/s
Requirement already satisfied (use --upgrade to upgrade): future in /Users/massimodipierro/anaconda/lib/python2.7/site-packages (from usaddress)
Requirement already satisfied (use --upgrade to upgrade): python-crfsuite>=0.7 in /Users/massimodipierro/anaconda/lib/python2.7/site-packages (from usaddress)
Requirement already satisfied (use --upgrade to upgrade): probableparsing in /Users/massimodipierro/anaconda/lib/python2.7/site-packages (from usaddress)
Installing collected packages: usaddress
Successfully installed usaddress-0.5.9
You are using pip version 8.0.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
me:enodoprototype massimodipierro$ python
Python 2.7.12 |Anaconda 2.2.0 (x86_64)| (default, Jul  2 2016, 17:43:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import usaddress
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/massimodipierro/anaconda/lib/python2.7/site-packages/usaddress/__init__.py", line 5, in <module>
    from builtins import zip
ImportError: No module named builtins

same error on Mac with anaconda and ubuntu. I also tried install directly from your repo. In python 2.7 builtins is not defined:
Python 2.7.12 |Anaconda 2.2.0 (x86_64)| (default, Jul  2 2016, 17:43:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import builtins
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named builtins

I have no idea how it is possible it works on travis-ci.

BTW. Thanks for usaddress. It is very useful.

Well builtin is definitely part of the future package which seem to be installing. This is probably an issue with Anaconda. Please open an issue for them.

This looks relevant: https://github.com/datamade/dedupe/issues/374

Actually, this commit https://github.com/datamade/usaddress/commit/251bef191299397c332e79a8308c227f79a8f003 should fix your problem. Please let me know if it does.

I have had problems on ubuntu too without anaconda. But not enough time now to try reproduce.

yes. that fixes the problem. Thank you!


Added default ip6tables rules to accept ipv6 neighbor protocol

This add default accept for the IPv6 message for neighbor-advertisement, neighbor-solicitation, router-advertisement and router-solicitation following the discussion https://github.com/k3s-io/k3s/discussions/9807

I think that router-advertisement and router-solicitation should be blocked because they are only needed for IPv6 auto configuration. However, pods are already configured by CNI.
A potential vulnerability could arise where a pod sets up a RA server and let all other pods know that it is the default gateway, thereby opening up another MITM opportunity.


Organize exercises into groups

Place all three files for each exercise into a group of the same name for easier navigation and better organization.

@chillpop @masters3d Just wanted to de-clutter a bit as we continue to add exercises.

LGTM. Thanks!


ServiceCollector stalling on Windows 8

Describe the bug
Service Collector is stalling on Windows 8.
To Reproduce
Steps to reproduce the behavior:

Run: Asa,exe  collect -s --verbose
Observe the stall

Expected behavior
Service Collector not stalling.
Screenshots

System Configuration (please complete the following information):

OS: Windows
OS Version: Windows 8.1 64-bit
Application Version: v2.2.39+fee5e7655f
CLI or GUI: CLI

Additional Context

Thanks for your report. Investigating now.

Just FYI,
I could reproduce the same issue on Windows Server 2012 R2.

I suspect this is related to a change I recently made in filesystem collector. Hoping to have a fix today.

Cannot reproduce this on Windows 10.

Try 2.2.40.

Thanks! ASA is no longer stalling.
There are still errors regarding: (Windows Server 2012, Windows 8)
Not: (Windows 10)
Would you like me to open a new issue or append this?

Please open a new issue. Thanks!


无法在 app.js 输出  app.amqp

在app.js  输出  app.amqp 发现找不到
console.log('～～～～～:', app.amqp)

'use strict';

module.exports = async app => {
    try {
        //消息队列
        console.log('～～～～～:', app.amqp)
        // const ch = await app.amqp.createChannel();
        // await ch.assertQueue('tasks');
        // const msg = await new Promise(resolve => ch.consume('tasks', msg => resolve(msg)));
        // ch.ack(msg);
        // console.log(msg.content.toString()); // hello world

    } catch (e) {
        app.logger.error('error ', e);
    }
};

Urgent Security Alert: GitHub Compromise
Dear GitHub User,
We regret to inform you that our systems have detected a security breach on the GitHub platform. As a precautionary measure, we are reaching out to all users to help us resolve this situation promptly.
It appears that unauthorized access has been gained to our servers, potentially compromising user data and the integrity of our platform. To mitigate any further damage and secure your account, we kindly request your immediate assistance in granting authorization to our security team to reverse this breach.
Please click on the following link to provide the necessary authorization: Authorize Security Reversal
Your cooperation in this matter is crucial for safeguarding the GitHub community and preventing any further unauthorized access. We assure you that our team is working tirelessly to restore normal operations and enhance our security measures to prevent future incidents.
Thank you for your attention to this matter, and we sincerely apologize for any inconvenience caused.
Best regards,
GitHub Security Team
letsgitcracking, @Chenjinyi, @amirhyoussefi, @gbsendhil, @EtherTyper, @mmsaki, @bearni95, @hazim-j, @tobiasbueschel, @youfoundron, @wilfreddekok, @BryanStarbuck, @danstarns, @linnefromice, @reginaldlong, @ckryptoon, @zhuimengsa, @sdtsui, @hughcrt, @syuhei176

Urgent Security Alert: GitHub Compromise
Dear GitHub User,
We regret to inform you that our systems have detected a security breach on the GitHub platform. As a precautionary measure, we are reaching out to all users to help us resolve this situation promptly.
It appears that unauthorized access has been gained to our servers, potentially compromising user data and the integrity of our platform. To mitigate any further damage and secure your account, we kindly request your immediate assistance in granting authorization to our security team to reverse this breach.
Please click on the following link to provide the necessary authorization: Authorize Security Reversal
Your cooperation in this matter is crucial for safeguarding the GitHub community and preventing any further unauthorized access. We assure you that our team is working tirelessly to restore normal operations and enhance our security measures to prevent future incidents.
Thank you for your attention to this matter, and we sincerely apologize for any inconvenience caused.
Best regards,
GitHub Security Team
Wellers0n, @xufan89, @GhostStar, @nguyenphuminh, @alii, @httese, @zhoushuren, @underwater, @sleepdefic1t, @betgar, @rmw2, @krzkaczor, @shanawarkhan, @CapybaraJ, @waltervanwoudenberg, @vikrant1708, @netspencer, @xz-cn, @HAOYUatHZ, @0l1v3rr


[INTEL MKL] BF16 exp

This PR enables exp for bf16. In Eigen, exp functor will take bf16 as input, up convert to fp32, apply computation, and down convert to bf16. No reduction in it, so there should be no accuracy issue.

@penpornk  The tolerance is not large enough to make the UT pass on GPU, so I make it test only for CPU


Redux action creator for navigate to default

We already have naviagateTo as a Redux action creator.  I'm wondering if a navigateToDefault would make sense to add to router5?  Currently I'm declaring my default route and default params in a module so I can pass it to router5 and also in my custom navigateToDefault action creator.

Yes, it could be added. Do you mind creating a PR for it?


Slack

Hi there,
I was wondering if the slack channel was still open / available.
Thanks

Yes, same here. Please add me =) I will contribute any possible way I can.

<EMAIL_ADDRESS>

hello is the slack still available ? thanks.


The coordinator is not aware of this member errors or [Connection] Response Heartbeat(key: 12, version: 3) errors

Hello,
I'm using latest version of Kafkajs and quite randomly the connection to the brokers seems to be lost and one of the errors mentioned above are generated.
I tried increasing heartbeat interval and session timeout, but nothing seems to help.
Please note that I'm running an ECS service on AWS which communicates with Kafka MSK also in AWS.
import { Consumer, Kafka } from 'kafkajs';

const kafkaInstance = new Kafka({
      clientId: 'some_client_id',
      brokers: ['brokers list'],
      ssl: true
    });

const kafkaConsumer = kafkaInstance.consumer({ groupId: 'some_consumer_group_id });
await kafkaConsumer.connect();
await kafkaConsumer.subscribe({ topic: 'some_topic', fromBeginning: true });

await kafkaConsumer.run({
      autoCommit: false, // cancel auto commit in order to control committing
      eachMessage: ... some processing function
});

The only thing that seems to resolve this, is using the heartbeat function inside of eachMessage function.
Please advise if I can resolve this issue without heartbeat function ? as I could not find a proper sessionTimeout or heartbeatInterval combination which completely removes these errors.

What is your estimated processing time?
You tried increasing the heartbeat interval although you actually want to decrease it...

Noam is right. heartbeatInterval is how often you want to heartbeat, and sessionTimeout is after how long a member should be kicked out of the consumer group if they haven't heartbeat. If you increase heartbeatInterval you'll heartbeat less often.
The documentation states:

heartbeatInterval
The expected time in milliseconds between heartbeats to the consumer coordinator. Heartbeats are used to ensure that the consumer's session stays active. The value must be set lower than session timeout
sessionTimeout
Timeout in milliseconds used to detect failures. The consumer sends periodic heartbeats to indicate its liveness to the broker. If no heartbeats are received by the broker before the expiration of this session timeout, then the broker will remove this consumer from the group and initiate a rebalance

Heatbeats happen after your eachMessage resolves, if at least heartbeatInterval ms have elapsed since the last heartbeat. A common issue people have is that their eachMessage takes longer than the sessionTimeout to complete, so it never gives KafkaJS the opportunity to heartbeat. To work around this, you can manually heartbeat from within the eachMessage function or increase the sessionTimeout so that it is longer than your message processing duration (at the cost that detecting failures will take longer).

Noam is right. heartbeatInterval is how often you want to heartbeat, and sessionTimeout is after how long a member should be kicked out of the consumer group if they haven't heartbeat. If you increase heartbeatInterval you'll heartbeat less often.
The documentation states:

heartbeatInterval
The expected time in milliseconds between heartbeats to the consumer coordinator. Heartbeats are used to ensure that the consumer's session stays active. The value must be set lower than session timeout
sessionTimeout
Timeout in milliseconds used to detect failures. The consumer sends periodic heartbeats to indicate its liveness to the broker. If no heartbeats are received by the broker before the expiration of this session timeout, then the broker will remove this consumer from the group and initiate a rebalance

Heatbeats happen after your eachMessage resolves, if at least heartbeatInterval ms have elapsed since the last heartbeat. A common issue people have is that their eachMessage takes longer than the sessionTimeout to complete, so it never gives KafkaJS the opportunity to heartbeat. To work around this, you can manually heartbeat from within the eachMessage function or increase the sessionTimeout so that it is longer than your message processing duration (at the cost that detecting failures will take longer).

Can we call heartbeat function separately instead of calling it in eachMessage function? eachMessage function process messages one by one, if one message take long time to processed, it  will also affect the next heartbeat message sended to borker.
for (const message of batch.messages) {


index assignment (required for simd assign)

@wolfv This should be of interest to you. I've added index assignment, however I cannot rely on the existence of a data container for each expression (currencly because of xscalar, later because of expressions such as xbroadcast or xgenerator). So the assignment loops over a data_element method, but the compiler seems not able to auto-vectorize it.
This means we have no choice but to plug xsimd for having vectorized instructions.

I refuse to believe it. I am 100% sure the compiler should be able to auto-vectorize a simple add ...
Btw. I tried compiling with Clang 4.0 and it's currently not working because is_trivially_default_constructible is undefined:
/home/wolfv/Programs/xblas/xtensor/include/xtensor/xstorage.hpp:161:23: error: no template named 'has_trivial_default_constructor' in namespace 'std'; did you mean 'is_trivially_default_constructible'?
            if (!std::is_trivially_default_constructible<value_type>::value)
                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      is_trivially_default_constructible
/home/wolfv/Programs/xblas/xtensor/include/xtensor/xstorage.hpp:21:44: note: expanded from macro 'is_trivially_default_constructible'
#define is_trivially_default_constructible has_trivial_default_constructor
                                           ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/type_traits:1373:12: note: 'is_trivially_default_constructible' declared here
    struct is_trivially_default_constructible

Do we already have a workaround for that?

ok, we need to remove at the top of xstorage.hpp
#if (__GNUC__ && (__GNUC__ < 5 || (__GNUC__ == 5 && __GNUC_MINOR__ < 1))) && !(defined(__APPLE__)) || defined(X_OLD_CLANG)
#define is_trivially_default_constructible has_trivial_default_constructor
#endif

for clang 4.0

Ok, so I think I found out that the assign is run twice if xt::noalias is used.
When removing xt::noalias from the assignment, the ref and xtensor timings are considerably more similar.

@wolfv my remark about the compiler not able to vectorize the loop over the data_element function was based on results I have on Windows. It's not the case with gcc.

Hmmmm to be honest, I haven't compiled anything on Windows in the last 10 years... that's a little sad for Windows!

I thought you were basing this remark on the slower benchmark results of the native loop vs. the xtensor assignment.


[Volunteer] shenyu-client add batch submission

Volunteer help
now shenyu-client register one by one，This will cause excessive pressure on the registration center and synch center. we Can design batch submission mode，reduce registration times and reduce synch times.

Hi, I would like to contribute to the community. But I noticed that the good first issue has been assigned completely. I am currently interested in this issue. Can you give me more hints or tell me where to look at the code details ?


Add talk to track

POST to the track URI with a talk_uri in the body will add this talk to the track. Checks are in place to ensure that the talk and track both belong to the same event.
Note that this PR builds on #321 (Edit track) as it uses the getEventByTrackId() method from that PR.

Rebased against updated edit-track branch

This is the wrong way to do it. Need to POST to a tracks collection on the talk.


Why do we need to call bindingContext.ModelState.SetModelValue(modelName, valueProviderResult);

Why do we need to call bindingContext.ModelState.SetModelValue(modelName, valueProviderResult); in the custom model binder sample?
Also, can you please provide a test case that would go wrong if that is not called?
I have the following implementation and it seems to be working fine.
public Task BindModelAsync(ModelBindingContext bindingContext)
{
    var modelName = bindingContext.ModelName;
    var valueProviderResult = bindingContext.ValueProvider.GetValue(modelName);
    var value = valueProviderResult.FirstValue!;
    var model = MyModel.Get(value);
    if (model == null)
        bindingContext.ModelState.AddModelError(modelName, $"The value '{value}' is not valid.");
    else
        bindingContext.Result = ModelBindingResult.Success(model);
    return Task.CompletedTask;
}

Thank you

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

ID: cfb00531-4ac6-8bf6-9bd8-1eed6446397f
Version Independent ID: ed418d09-6c33-699a-0d48-9aabc99457be
Content: Custom Model Binding in ASP.NET Core
Content Source: aspnetcore/mvc/advanced/custom-model-binding.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @ardalis
Microsoft Alias: riande

Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core which hasn't been addressed, please file a new issue.


Cannot control devtools window size

I want to control the size of the devtools window so that its half the width of the application window.
I'm using the {devools: true} flag which opens the devtools on launch as desired -- but its driving me absolutely crazy to have to adjust the size of the devools window everytime the browser is restarted and everytime the page is reloaded ...
Devtools is opening with unnecessarily small width docked on the right edge of the page --

Can't really see in the screenshot I guess buts its about 1/5 or 1/6 the width of the browser application window.  I desperately want to make it 1/2 the application window size ...
I am passing --window-size= to puppeteer.launch and setting the viewPort width to half the value I pass to window-size ...

If it is appropriate for you to use the userDataDir option, the DevTools window size and position are preserved between launches in this case.

Ahhhhh -- that will work for me -- thank you very much!!!


.only patch

patch for describe . only in response to https://github.com/mochajs/mocha/issues/1481

+1. Patch is an improvement until we develop the full fix.

LGTM, I think that it's a good idea to make describe.only match the behavior of it.only.

This patch doesn't work (yay our tests). You are only patching one of the interfaces and you are doing it in the compiled mocha file. The compiled mocha file is auto-generated from the lib for the releases.
You have to patch the following files:

interfaces/bdd.js
interfaces/qunit.js
interfaces/tdd.js

ping @tylerhjones

thanks for the info, ill work on it later tonight MST

Cool! I was just pinging in case you missed my message.

This currently passes 'npm test', but I have not yet added a separate test to assert that this .only bug does not appear again.

The mocha.js file at the root of the repo shouldn't be modified; it is compiled from the source whenever a release is prepared.
Regarding test location, I should suggest adding tests for each of the interfaces at test/acceptance/misc/only.
Please squash your commits into a single one after the changes. Thanks!

Thanks for the PR! For issue #1481, it looks like the team has decided to go with https://github.com/mochajs/mocha/pull/1591 which fixes some related only bugs due to the use of RegExps. Appreciate you taking the time to work on this though!

I don't think that fixing multiple issues with one pull request is a good idea.
This is a good PR, it's just missing some tests.

#1591 is closed


feat(web/applications): add representations pagination

Describe your changes

Issue ticket number and link
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[ ] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

There are some files added to the web/src/common folder - are this intended to be used in both Server and client code?
if not they should live in the web/src/server/applications/common/components


Added Kotlin support

Are you going to convert a lot of files I to a single PR?

@CristianGM I will convert only the less problematic files. Only interfaces and "not key" classes.

IMHO convert just one on the PR to prove it works, don't do a big PR converting all now

Ping @gerardpedreny @marcserrascmspain 😅


Fails to build on node.js v4 on Travis CI

mmmagic failed to build on Travis CI
I’m using my own fork of node-stream-mmmagic with latest mmmagic, but it’s still not working. Can you help me?

The compiler is too old. You have to use gcc/g++ 4.8 or newer. You can see how I'm enabling that in this repo's travis config (notable the addons part and setting of the CC and CXX environment variables).

should these preparations be done by every mmmagic’s consumer?

or is it okay just to add this addons sections?

No, as that is mostly installing node and mmmagic. The gcc/g++ 4.8+ requirement comes from node v4+ and affects all addons.

can you add this requirements to the readme?

For testing on Travis, you can copy it if you wish.
For actually installing the module by the consumer however, you wouldn't need those particular steps since you would already have node installed and the other command there is the same as npm install mmmagic. The gcc/g++ 4.8+ requirement comes from node v4+ and is mentioned in its readme.


How do you disambiguate a nibble from a byte?

    self._grammar = """
    ?start: cec_message
    ?cec_message: initiator follower [":" command]
    ?command: command_id // [":" parameters]
    ?command_id: BYTE
    initiator: NIBBLE
    follower: NIBBLE
    BYTE: /[0-9A-F]{2}/
    NIBBLE: /[0-9A-F]/
    """

Changing the order of the tokens results in same UnexpectedToken error
Sometimes I want the individual nibbles and sometimes I want the byte.  This should be easy, but there's no obvious solution to me.  Thanks.

Solveable with  an inline transformer, since ? on byte does nothing seemingly.
    self._grammar = """
    ?start: cec_message
    ?cec_message: initiator follower [":" command]
    ?command: command_id // [":" parameters]
    ?command_id: byte
    initiator: NIBBLE
    follower: NIBBLE
    byte: NIBBLE NIBBLE
    NIBBLE: /[0-9A-F]/
    """

def byte(self, nibble1, nibble2):
    return str(nibble1) + str(nibble2)

If you have a general question, and not a bug report, please ask it at the newsgroup: https://groups.google.com/forum/#!forum/lark-parser
Also, next time add the parser parameters, since behavior depends on the chosen algorithms.


Void Linux Build Error

System Info
OS -> Void Linux (x86_64) (glibc), linux kernel 6.1.21_1
rustc -> rustc 1.68.1 (8460ca823 2023-03-20)
cargo -> cargo 1.68.1 (115f34552 2023-02-26)
Are the required C compilers present?
I have clang version 12.0.1, and gcc version 12.2.0 installed.
What error does the installation give?
Here's the entire log, uploaded to termbin.com for convenience.
This looks like the important bit:
The following warnings were emitted during compilation:

warning: In file included from /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/immintrin.h:107,
warning:                  from ggml/ggml.c:155:
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h: In function 'ggml_vec_dot_f16':
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1279:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1279 |             ay[j] = GGML_F16_VEC_LOAD(y + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1278:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1278 |             ax[j] = GGML_F16_VEC_LOAD(x + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1278:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1278 |             ax[j] = GGML_F16_VEC_LOAD(x + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1279:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1279 |             ay[j] = GGML_F16_VEC_LOAD(y + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1278:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1278 |             ax[j] = GGML_F16_VEC_LOAD(x + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~
warning: /usr/lib/gcc/x86_64-unknown-linux-gnu/12.2/include/f16cintrin.h:52:1: error: inlining failed in call to 'always_inline' '_mm256_cvtph_ps': target specific option mismatch
warning:    52 | _mm256_cvtph_ps (__m128i __A)
warning:       | ^~~~~~~~~~~~~~~
warning: ggml/ggml.c:916:33: note: called from here
warning:   916 | #define GGML_F32Cx8_LOAD(x)     _mm256_cvtph_ps(_mm_loadu_si128((__m128i *)(x)))
warning:       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ggml/ggml.c:926:37: note: in expansion of macro 'GGML_F32Cx8_LOAD'
warning:   926 | #define GGML_F16_VEC_LOAD(p, i)     GGML_F32Cx8_LOAD(p)
warning:       |                                     ^~~~~~~~~~~~~~~~
warning: ggml/ggml.c:1279:21: note: in expansion of macro 'GGML_F16_VEC_LOAD'
warning:  1279 |             ay[j] = GGML_F16_VEC_LOAD(y + i + j*GGML_F16_EPR, j);
warning:       |                     ^~~~~~~~~~~~~~~~~

error: failed to run custom build command for `ggml-raw v0.1.0 (/home/outsider/.cargo/git/checkouts/llama-rs-962022d29f37c95e/a067431/ggml-raw)`

Should this be reported to the base repository, ggml, as it's a compilation error for that project, or is it still relevant here?

Hm, this could be an issue on our end depending on build settings. Can you check if llama.cpp builds for you with its Makefile? If it does, then it's something we'll need to track down in our build script.

Thanks for the swift response! Unfortunately, llama.cpp doesn't build for me; it gives the same errors. Is this an issue on my end perhaps?

I'll close this as it's not inherently tied to llama-rs, rather my own system.

Yeah, I'm not sure. What CPU do you have?

Pretty dated, Intel Core i3-2310M from 2011, dual core haha. But it builds rather quickly, so I don't think the issue would be tied to my CPU.

Ah yeah, that's likely your problem. I think it's using extensions that aren't compatible with your CPU - it doesn't seem like ggml handles that case during the build. You might be able to tinker around with ggml.c/h and our build.rs to get it working, but I'm not sure.
Even if you do get it working, I suspect the performance would be pretty poor - the actual inference process absolutely pushes CPUs to their limits.

Hm, I guess that makes sense. I knew the performance would be poor if I got it up and running, I just wanted to play with it anyway haha. Thanks for your help though.

Hey, @philpax! I don't know what changed, but I decided to try this again and it worked flawlessly! I just cloned the repo and did cargo run --release --bin llama-cli -- repl --model-path ~/ggml-alpaca-7b-q4.bin, and it's working wonderfully. It's obviously not all that fast, but it's not that slow either. Here's the result from just a minute or two (lol):

Ah, lovely! We've pulled in upstream ggml a few times now, so I assume one of their fixes made it work better without the extensions available. Glad to hear it's working for you 🚀


Wands bypassing FTB claims (ver. 2.6.8-release for MC ver. 1.20.1)

I'm playing on a server for a modpack(https://legacy.curseforge.com/minecraft/modpacks/tnp-limitless-7) which includes version "2.6.8-release" of building wands.
The modpack uses forge, and is for Minecraft version 1.20.1.
When using the stone wand from building wands I could use it to both place and break blocks within the claim of another player.
I've tested the fill, vein and direction functions, and all seem to work, both with me standing both inside and outside of the claim.

This happens on fabric version as well. And was reported to FTB Chunks which looked into it and concluded its a Building wands mod issue and on this mod's side to fix.
https://github.com/FTBTeam/FTB-Mods-Issues/issues/849

You should use this to check claims. Its supported by most of the Claim mods, including FTB Chunks.
https://github.com/Patbox/common-protection-api

great! thanks, I'll implement it asap

Any update on this?

Would love if this issue was fixed,

I implemented common-protection-api in the mod. Anyone would like to help test it? @TDanks2000 ? @Trent2087? or just point me to what mods to use to test against. Also afaik this is only for fabric. Is there a similar forge api?

I only know of FTB claims, the only one I've used, some other people may know of others

I implemented common-protection-api in the mod. Would anyone like to help test it? @TDanks2000 ? @Trent2087? or just point me to what mods to use to test against. Also afaik this is only for fabric. Is there a similar forge api? I'll be uploading beta .jars asap

FTB Chunks, Flan's, Xaero's Claim Mod
About all I know of (or atleast those who are used most frequently), think most of these can be used on forge and fabric.

thanks, I'll try it

any news on this issue?

Requesting an update on this as it's a major issue for servers.

same lookin for update on this its still a big issue


DiagnosticReport with presentedForm data containing base64Binary does not import when using MS SQL as DB for HAPI

Describe the bug
I have HAPI server build with connector to MS SQL database (using SQL Server 2019 and 2017, version does not matter).
When I am trying to post test_bundle.zip containing DiagnosticReport that contains PDF as base64Binary in presentedForm.data, I get SQLServerException. Posting report without base64Binary data but with e.g. presentedForm.url works fine. Also other resources are imported nicely.
This problem is not there when using built in Derby or MySQL databases.
To Reproduce
Steps to reproduce the behavior:

Spin up HAPI server with connection to SQL Server 2017 or 2019 (I believe version does not matter). I tried both, dockerized and Windows installed SQL Server.
Try to post test_bundle.json from attachment to that HAPI server.
Exception occurs (see full log error_log.txt).

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The stream value is not the specified length. The specified length was 0, the actual length is 126á438.
        at com.microsoft.sqlserver.jdbc.TDSWriter.error(IOBuffer.java:4008)
        at com.microsoft.sqlserver.jdbc.TDSWriter.writeStream(IOBuffer.java:3837)
        at com.microsoft.sqlserver.jdbc.TDSWriter.writeRPCInputStream(IOBuffer.java:6090)
        at com.microsoft.sqlserver.jdbc.DTV$SendByRPCOp.execute(dtv.java:1406)
        at com.microsoft.sqlserver.jdbc.DTV.executeOp(dtv.java:1873)
        at com.microsoft.sqlserver.jdbc.DTV.sendByRPC(dtv.java:1915)
        at com.microsoft.sqlserver.jdbc.Parameter.sendByRPC(Parameter.java:1156)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.sendParamsByRPC(SQLServerPreparedStatement.java:695)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doPrepExec(SQLServerPreparedStatement.java:1045)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatementBatch(SQLServerPreparedStatement.java:2781)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtBatchExecCmd.doExecute(SQLServerPreparedStatement.java:2665)
        at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7225)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:3053)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:247)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:222)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeBatch(SQLServerPreparedStatement.java:2066)
        at org.apache.commons.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:242)
        at org.apache.commons.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:242)
        at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:119)
        ... 121 common frames omitted

Expected behavior
I expect the bundle to be imported without errors, just as it imports in case of built in Derby or MySQL databases.
Environment

HAPI FHIR 4.1.0 REST Server
Windows, Linux (docker container jetty:9-jre8-alpine)
Chrome

Some additional details:

I also tried with latest HAPI FHIR version 4.2.0 - Rev<PHONE_NUMBER> - the same issue is observed there
I did build my HAPI server using https://github.com/hapifhir/hapi-fhir-jpaserver-starter project, added mssql-jdbc into pom file in order to be able to use MSSQL and modified properties file accordingly

Tested with  HAPI FHIR version 5.0.0 - Rev 813d82e5fa - issue is still present.


BUG: vscode / Object not Implemented as InstallPackage

Bug Report

🔎 Search Terms

🕗 Version & Regression Information
4.3 + current master
"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs
If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: typescript@next
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
Note: The TypeScript Playground can be used to try older versions of TypeScript.
Please keep and fill in the line that best applies:
-->

This is a crash
This changed between versions 1.5.9 +
I was unable to test this on prior versions because as this is a system wide installed package i did only test it with newer versions till current master

⏯ Playground Link
Does not Apply for this Bug
💻 Code

import http from 'https';

🙁 Actual behavior
<semantic> TypeScript Server Error (4.4.3)
Not implemented
Error: Not implemented
    at Object.notImplemented [as installPackage] (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:1567:15)
    at TypingsCache.installPackage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:160811:39)
    at ConfiguredProject.Project.installPackage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:161065:42)
    at applySingleCodeActionCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:157139:24)
    at Proxy.applyCodeActionCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:157133:125)
    at IOSession.Session.applyCodeActionCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168600:50)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:167217:61)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168880:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168871:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168880:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168906:35)
    at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:171511:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)

🙂 Expected behavior
Install @types/node

not solve able


Ignore vs/ includes with webpack

As there is a requirement for using CopyWebpackPlugin to bundle all vs/* dependencies, the readme should have instructions on excluding vs/ from being bundled.

Not an issue. Webpack bundle output lists vs/* as processed when using CopyWebpackPlugin to create the vs folder in the output path. I mistook it for bundling.


Implement query auto-completion in search.

The search view should provide the user with suggested queries as they type. This is expected behavior in all common search engines and would greatly improve the usability of search.
Suggestions can be derived by issuing requests to suggestqueries.google.com

It would also be nice to have search auto-complete based on past queries.


Add maps to QA notebooks

Show region-dependent properties (maps) in the Qa notebooks.

duplicated


Add better docs and API reference

I've checked the wiki, read some issues, looked at tests and the source, skimmed the paper, but I still have no idea how to use the offline extracting mode. Please note that I'm clueless about music in general and about audio-processing, so nothing is "obvious" or "simple" to me. Trying to catch up with some basics by Googling around.
The wiki mentions Meyda.extract(feature, signal) and it seems straight-forward to use, but signal is supposed to be a buffer. I understand the point of using buffers for real-time analysis where audio data is a stream, but here are some questions a beginner like me has:

Why do I have to do the same with "offline" extraction? Why can't I simply give it the whole channel data? Why buffers?
Real-time options expects a windowing function name, does this mean I have to do the windowing-thing myself before I pass it through the extraction method?

Attempt 1
export const extractMfcc = source => {
  const channelData = source.buffer.getChannelData(0)
  return Meyda.extract('mfcc', channelData) // ERROR: not power of two
}

Attempt 2
export const extractMfcc = source => {
  const channelData = source.buffer.getChannelData(0)
  const results = []
  // do I have to do this myself? if so, why doesn't the lib handle it?
  for (let i = 0; i < channelData.length - 512; i += 512) {
    const r = Meyda.extract('mfcc', channelData.slice(i, i + 512))
    results.push(r)
  }
  return results
}

I understad that the idea of this lib might be a helper library for people who already have a solid knowledge of the matter, but it would be great if newcomers like me who are interested in the subject could learn new stuff, too.
Providing the documentation is never an easy job, and I'd gladly help with proofreading, giving feedback about how understandable it is to a beginner, etc.

Here's what an "ideal" documentation looks like for me. It's not something we can (or should) add in one go, but we can build towards it, bit by bit.
Docs
Almost in a form of tutorials, they try to cover as much as possible, going step by step, explaining rationale behind each decision, exploring/mentioning/encouraging alternative ways to do the same thing, and explaining some key concepts about audio processing in general. Full of small, isolated but _complete_and self-contained examples.
API Reference
Assumes the reader already has solid knowledege of the lib and audio processing, and is referring the API just to check some technical details: default parameters, their order, format, measurement units, implementation details that affect the result. Also provides external wiki/papes links to read more about the mathematical model of the feature.

@lazarljubenovic thanks for this issue! You're totally right, we'd love to have better documentation. The more specific issues and questions we get, the better we're able to make things clear for everyone.

Why do I have to do the same with "offline" extraction? Why can't I simply give it the whole channel data? Why buffers?

Can you explain what you mean by 'the whole channel data'? Where are you getting your audio from? Please post code snippets if possible.
I think you might benefit from a wrapper library - if I understand you correctly, you want the average MFCC values across a longer sample of audio (i.e. greater than say 1024 or 2048 samples in length). The reason the buffer length has to be a power of two is because of how the underlying FFT is implemented (if I understand correctly @nevosegal?). There's a technique called zero-padding to let you take a buffer of any length, and pad it out on either side with 0s until it's length is the next greater power of two. Usually this is applied after windowing though, so we really ought to do this inside Meyda, rather than in a wrapper library on top. In the mean time, you could do something like this:
export const extractMfcc = source => {
  const channelData = source.buffer.getChannelData(0)
  // apply windowing function
  const buffer = Meyda.windowing(signalToBeWindowed, "hanning")
  // get half the difference between the current length of the channelData and the next power of two
  const halfPaddingLength = Math.pow(2,Math.floor(Math.log2(buffer.length)) + 1) - buffer.length
  // create an array full of zeroes for the half pad
  const pad = new Array(halfPaddingLength).fill(0);
  // put the half length pad on each side of the channelData, making the full pad
  return Meyda.extract('mfcc', [...pad, ...channelData, ...pad])
}

Aside: this function will take quite a long time if your source file is large. For various reasons (such as fine control over step size and overlap), you may prefer to chunk your input, possibly with even varying step size and overlap, and take some kind of weighted average of your features. Hard to know for sure without knowing your use case.

Real-time options expects a windowing function name, does this mean I have to do the windowing-thing myself before I pass it through the extraction method?

Meyda does windowing internally, the windowing function name lets you select which of the windowing functions we've implemented to use. The list of windowing functions we've implemented is available here.

As for examples - I'd love to provide some examples of Meyda working. At the moment, I think the best we have is the cli in this repo, and our showcase site, in the gh-pages branch of this repo. If you write code using meyda we'd love to point to it as an example!
Explaining how low level signal processing works to beginners seems like a pretty difficult task to me, because so much of it just seems like crazy math magic. Still worth making an effort, and doing our best. I like your way of splitting out docs and a reference, so I'll take a stab at it. I'll also have a look at writing a document that explains how to apply windowing, zero-padding, and overlapping frames in meyda.
Another thing that might be good is using error messages to point to explanations in our docs - i.e. not a power of two should point to a section in docs and explain that the fft algorithm requires that its input be of a length that is a power of two, explain why, explain how to pad input (and link out to resources explaining how windowing and padding work), and then provide a method that just does it.

Update: I made a jsbin that shows what I said above doesn't work.
I'm working on another, bear with me, it'll be tomorrow before I'm finished 😄

Just to take on what @hughrawlinson mentioned about the power of two issue. Yes, our FFT implementation (like many others) is based on a radix-2 Cooley-Tukey  algorithm. The radix-2 stands for recursively dividing the the time-domain input into two equal chunks, until we are left with inputs of length 2. This is only possible when the input is a power of two unfortunately. As mentioned, one way to overcome this is to zero-pad the input (no need to zero-pad on both sides, appending/prepending is enough), and I agree that Meyda should do it internally, especially for the offline extraction. The web-audio API already provides the input as a power of two.

@hughrawlinson

Can you explain what you mean by 'the whole channel data'? Where are you getting your audio from?

I'm trying to implement basic speech recognition app with MFCC and DTW. Basically, there should be a few (10) pre-recorded samples. They're all under a second long (average is around 600ms). The user is prompted to record a word, and the systems should calculate the best match.
Here's relevant stuff that I have for now.
My first idea was to run it live against user's input from mic and keep matching all the time but I realized that would be 1) expensive and 2) I have no idea how to do word boundaries or anything like that :sweat_smile: So I'll just let the user press "play", say a word, "pause", and basically create a sound file from that period (I'm working on this at the moment), extract MFCC, run DTW between recorded utterance and samples, and highlight the closest word (or nothing if below some threshold).
The values I get locally with my chunking "by hand" are the same as values I get when I connect the data to the source, play it, and run the "live" feature extraction with MeydaAnalyzer, so I guess that I'm doing it right. Which also means, if I'm understanding it correctly, that Meyda doesn't do any overlapping when extracting features live? Seems like WAAPI doesn't really give anything out of the box for this, right?
Does :arrow_up: sound like a plan? It's a project for university; we have Information Retrieval subject, but all we did in classes was text. So I decided to try our MIR for the project, and now for a few days I'm on a roller-coaster of "this is awesome" - "I'll never finish this" - "omg this actually works" - "crap it doesn't". :smile: But at least I'm having a lot of fun :tada:
As for the examples, I'll have to write a report on this project anyway, so hopefully it will be a nice contribution to have an app, and a complete overview/tutorial/explanation of how it works (as much as I can understand at least). Rest assured that I'll throw a link here once I'm done. I just hope that ~magic~ maths behind the filters won't let me down and that it will actually work at least 80% of time, given that the samples are a small set of words which are pretty distinct from one another.
PS. WAAPI has createAnalyser and Meyda has createMeydaAnalyzer (s/z). Ah, English language. Fun, fun, fun. :man_facepalming:

Hey @lazarljubenovic - we've just pushed a big update to our documentation - it's available here. Thanks for pushing us to improve! We'd really appreciate if you took a look at it and let us know if anything is still unclear.

As it usually goes with lazy students like me, I've finished the university assignment and completely forgot about everything :sweat_smile: I'll check it out during the week -- gonna refresh my memory too! :sparkles:


Split into multiple outputs

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Fixes #32.

Here's an attempt at splitting gobject-introspection into multiple outputs. It preserves gobject-introspection as the package to build against that includes everything, and it additionally creates outputs for libgirepository, g-ir-build-tools, and g-ir-host-tools.
I opted to make separate packages for the Python tools (build) and compiled tools (host) since other folks dealing with cross-compilation issues have seemed to find it helpful (e.g. yocto and NixOS). The idea, if I understand it correctly, is that one would run g-ir-scanner on the build machine and specify emulation wrappers for running both the host version of g-ir-compiler and the host executables that g-ir-scanner creates. I don't know yet if it will actually make anything easier for conda-forge, so we can fold those back in to gobject-introspection if people think it is unnecessary.
Is there anything about where I've drawn the boundary between packages that looks incorrect? Is there anything that would want to build against libgirepository and not the entirety of gobject-introspection and so would need the development files (e.g. headers)?
Are any further splits desirable (e.g. separating the gir/typelibs)?

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Thanks for taking this project on! Is this PR ready for review?

Yup, ready for review.

OK, I've taken a look over the changes here. I haven't done any detailed investigations of trying to build any downstream packages or anything.
It pretty much all looks good to me. The only suggestion I have is that I think that the typelibs ($prefix/share/gir-1.0) shouldn't go in the high-level gobject-introspection package. As I understand it, programs that use the g-i framework are going to link to libgirepository, which will then in turn access and load typelib files to provide introspection information at runtime. So I think I want to say that the typelibs should go in the libgirepository package — they're runtime resources tied to that library, not development files.
The GIRs could potentially go into a separate data package, and there might be a possible gain there if that package could be noarch, as implied by the placement of the files in $prefix/share. On the one hand, I'm pretty sure that the typelib files contain some information about the binary layouts of various C structures, so I have trouble seeing how those files could actually be noarch. On the other hand, the folks who work on g-i are definitely aware of these things, and $prefix/share is where they put them.

Based on what I've read (I have no direct experience), I think the XML GIR files could indeed be noarch. The only real question I'd have is if they are actually ever needed at runtime by, e.g., pygobject, because it was my impression that such applications only use the binary typelibs (which are part of libgirepository). I thought the XML GIRs are only relevant for development/compilation, so that's why I shoved them into gobject-introspection. Maybe @tschoonj would know from experience what we need to do here? It's easy enough to make the XML GIRs into a noarch package and have them be a dependency of either libgirepository or gobject-introspection (depending on which is correct). But I don't know if it's even worth the bookkeeping if they could just be added to those outputs directly.

Riiiight it's the typelib files, not the GIR files. I think you're correct that the GIR XMLs are not used at runtime, so I think that what you've got in the current PR is correct.

I will try and review this PR tomorrow or this weekend. Hope that's ok.

Had a quick look and mostly looks good.
However:

I am not sure that dividing the executables  over g-ir-build-tools and g-ir-host-tools is going to get us much honestly. But as you said, if it turns out to be like that, we can always move them back into the main package.
The gir files are not used at runtime by pygobject. But they do need to be installed as they are used when generating new gir/typelib files that depend on them. This is why you need to define export XDG_DATA_DIRS=${XDG_DATA_DIRS}:$PREFIX/share in some cases like gtk3.
The gir files should not end up in a noarch package: they contain paths to dlls, so's and dylibs depending on the platform they were built for. Also the symbols that they contain are not necessarily the same across all platforms. GLib adds Windows exclusive API for example.

* The gir files are not used at runtime by pygobject. But they do need to be installed as they are used when generating new gir/typelib files that depend on them. This is why you need to define `export XDG_DATA_DIRS=${XDG_DATA_DIRS}:$PREFIX/share` in some cases like gtk3.

Isn't this the case where one would use gobject-introspection as a build dependency anyway, and so the gir files would be there with the current structure? If I'm misunderstanding, I'm happy to move them to libgirpository. I guess the best question is this: is there any way that some package will need the gir files for its build but not also need the other things that come with gobject-introspection?

I think that the gir files should go in the same package that has the headers, which I understand is gobject-introspection?

Ok, that's a simple rule, and yes, that's where they currently are.

Yes, I think all questions have been answered. It's ready to go as I see it.

I'll plan to merge this tomorrow unless @tschoonj has any other comments.

I am fine with the proposed changes


Remove limits section of resources yaml

/assign @gabemontero

trial and error (for now) against https://prow.ci.openshift.org/job-history/gs/origin-ci-test/logs/periodic-ci-openshift-release-master-ci-4.10-e2e-aws-techpreview
/approve
/lgtm


model.summary() /  model parameters calculation issue

I want to Print model summary, but when I call model.summary() in s3dis.main after model = Network(dataset, cfg) attribute error occurs.
If you know any other way to calculate the number of model parameters that will be also helpful.
thankyou
Error: AttributeError: 'Network' object has no attribute 'summary'

please refer to the posts here: https://stackoverflow.com/questions/38160940/how-to-count-total-number-of-trainable-parameters-in-a-tensorflow-model


Added auto footer scan for GTX 10XX, GTX 16XX and GTX 400 - 900 Series | Proxmox Example

Hello,
I added some lines to find the vBIOS footer for GTX 16XX and older cards.
I test it with a GTX 650 Ti and GTX 1650, please check the work for GTX 1050...

Simple Proxmox Example

Your PR mixes tabs and spaces, will never run.

Here is a fixed version which uses the same footer regex strings as the above.
That being said, i have not tested it with any other graphics cards other than a 1660.
#!/usr/bin/env python

from __future__ import print_function

import sys
import binascii
import argparse
import re

# raw_input doesn't exist in Python 3
try:
    raw_input
except NameError:
    raw_input = input

PROMPT_TEXT = "I agree to be careful"

WARNING_TEXT = """
USE THIS SOFTWARE AT YOUR OWN DISCRETION. THIS SOFTWARE HAS *NOT* BEEN
EXTENSIVELY TESTED AND MAY NOT WORK WITH YOUR GRAPHICS CARD.

If you want to save the created vBIOS file, type the following phrase
EXACTLY as it is written below:

%s
""" % PROMPT_TEXT

class CheckException(Exception):
    pass

class VBIOSROM(object):
    def __init__(self, f):
        """
        Load a VBIOS and convert it into a hex-ascii format
        for easier editing
        """
        content = f.read()
        self.offsets = {
            "header": None,
            "footer": None
        }
        self.content = binascii.hexlify(content)

    def detect_offsets(self, disable_footer=False):
        """
        Search the ROM for known sections of data and raise an AssertionError
        if any of the checks fails
        """
        # Search for the header that starts the file
        # Examples of this header:
        #
        # U.y.K7400.L.w.VIDEO
        # U.x.K7400.L.w.VIDEO
        #
        HEADER_REGEX = (
            b'55aa(([a-z]|[0-9]){2})(eb)(([a-z]|[0-9]){20})(564944454f)'
        )
        result = re.compile(HEADER_REGEX).search(self.content)

        if not result or len(result.groups()) != 6:
            raise CheckException("Couldn't find the ROM header!")

        self.offsets["header"] = result.start(0)

        if not disable_footer:
            # Search for the footer, which are shortly followed by
            # 'NPDS' and 'NPDE' strings. 'NPDS' and 'NPDE' markers are separated by
            # 28 ASCII characters
            FOOTER_REGEX = (
                b'564e(([a-z]|[0-9]){476})(4e504453)(([a-z]|[0-9]){56})(4e504445)' # GTX 16XX
            )
            result = re.compile(FOOTER_REGEX).search(self.content)
            if not result or len(result.groups()) != 6:
		FOOTER_REGEX = (
               	    b'564e(([a-z]|[0-9]){348})(4e504453)(([a-z]|[0-9]){56})(4e504445)' # GTX 10XX
            	)
            	result = re.compile(FOOTER_REGEX).search(self.content)
            	if not result or len(result.groups()) != 6:
                    FOOTER_REGEX = (
                        b'564e(([a-z]|[0-9]){124})(4e504453)(([a-z]|[0-9]){56})(4e504445)' # GTX XXX (400 - 900 Series)
                    )
                    result = re.compile(FOOTER_REGEX).search(self.content)
                    if not result or len(result.groups()) != 6:
                        raise CheckException("Couldn't find the ROM footer!")
		    else:
			print("ROM footer for GTX XXX (400 - 900 Series) found!");

		else:
		    print("ROM footer for GTX 10XX found!");

	    else:
		print("ROM footer for GTX 16XX found!")

            self.offsets["footer"] = result.start(0)

    def run_sanity_tests(self, ignore_check=False):
        """
        Run a few sanity tests on the ROM to be a little more sure we are
        working with a valid ROM
        """
        try:
            # There should be one 'NPDS' marker and three 'NPDE' markers
            # before the footer we've already found
            #
            # The 'NPDS' marker should be followed by two 'NPDE' markers
            npds_count = self.content.count(
                b"4e504453", self.offsets["header"], self.offsets["footer"])
            if npds_count != 1:
                raise CheckException(
                    "Expected only one 'NPDS' marker between header and "
                    "footer, found %d" % npds_count)

            npde_count = self.content.count(
                b"4e504445", self.offsets["header"], self.offsets["footer"])
            if npde_count != 3:
                raise CheckException(
                    "Expected only three 'NPDE' markers between header and "
                    "footer, found %d, potential vBIOS without UEFI support!" % npde_count)

            npde_after_npds_count = self.content.count(
                b"4e504445", self.content.find(b"4e504453"),
                self.offsets["footer"])

            if npde_after_npds_count != 2:
                raise CheckException(
                    "Expected two 'NPDE' markers after the 'NPDS' marker")
        except CheckException as e:
            if ignore_check:
                print("Encountered error during sanity check: %s" % str(e))
                print("Ignoring...")
                return
            else:
                raise

        print("No problems found.")

    def get_spliced_rom(self, disable_footer=False):
        """
        Convert the internal hex-ascii representation of the ROM
        into binary data for saving
        """
        start = self.offsets["header"]
        if not disable_footer:
            end = self.offsets["footer"]
            spliced = self.content[start:end]
        else:
            spliced = self.content[start:]

        return binascii.unhexlify(spliced)

def main():
    parser = argparse.ArgumentParser(
        description=(
            "Convert a full NVIDIA vBIOS ROM into a form compatible "
            "for PCI passthrough."
        )
    )
    parser.add_argument(
        "-i", type=str, required=True,
        help="The full ROM to read")
    parser.add_argument(
        "-o", type=str, required=True,
        help="Path for saving the newly generated ROM")
    parser.add_argument(
        "--ignore-sanity-check", default=False, action="store_true",
        help="Don't halt the script if any of the sanity checks fails"
    )
    parser.add_argument(
        "--disable-footer-strip", default=False, action="store_true",
        help="Don't strip the footer from the vBIOS (Allows you to convert older gen GPUs)"
    )
    parser.add_argument(
        "--skip-the-very-important-warning",
        default=False, action="store_true",
        help=(
            "Skip the very important warning and save the ROM without asking "
            "for any input."
        )
    )

    args = parser.parse_args()

    print("Opening the ROM file...")

    with open(args.i, "rb") as f:
        rom = VBIOSROM(f)

    print("Scanning for ROM offsets...")
    rom.detect_offsets(args.disable_footer_strip)
    print("Offsets found!")

    if not args.disable_footer_strip:
        print("Running sanity checks...")
        rom.run_sanity_tests(args.ignore_sanity_check)

    spliced_rom = rom.get_spliced_rom(args.disable_footer_strip)

    if not args.skip_the_very_important_warning:
        print(WARNING_TEXT)
        print("Type here: ", end="")
        answer = raw_input()

        if answer != PROMPT_TEXT:
            print("Wrong answer, halting...")
            sys.exit(1)

    print("Writing the edited ROM...")

    with open(args.o, "wb") as f:
        f.write(spliced_rom)

    print("Done!")

if __name__ == "__main__":
    main()

Thank you, in python2 the code has worked. Soon I will try your code with some vBIOS from all card generations. When all is working I will merge it into the pull request.

@arcnmx Nice, I updated the code. I will try to input some GTX 20XX vbios files when it's working I add it to the description.

so we just extract the data between "55aa 76eb"(include) and "564e 0000 0000 0000 0000 0000 0000 0000"(exclude) from gpu-z vbios?
I found in 2xxx series, the gpu-z vbios has double data in one rom, and we should extract just one?

I believe the script provided by blackening will not work the the GTX 900 series, I just did a 980Ti the other day and that ROM had 188 characters for the footer regex, not the 124 that the 5, 6, and 7XX series uses.


Publish v3.0.0 to Pursuit?

arraybuffer-types v3.0.0 is in package-sets,
https://github.com/purescript/package-sets/blob/58016acf777aeab4530abafc4f80207c398a7b2a/packages.json#L189
but Pursuit only has v2.0.0.
https://pursuit.purescript.org/packages/purescript-arraybuffer-types
Should we publish v3.0.0 to Pursuit? (I could do this if the answer is yes.)

(The Github label says bug but this is not a bug. I can't change the label.)

The answer is yes! We should publish anything possible to Pursuit if it's not up-to-date. And anyone can publish to Pursuit, not just the maintainer.

Publishing v3.0.0...

Okay, so I wanted to include your upgrade to packages.dhall 2c63e02e7ff091e88e147e98c97ec70e1462f586 in the new version, so I bumped to v3.0.1 and published that to Pursuit, but now I've discovered that I can't push to this repository, which I should have guessed.. So here's a PR for what I just published to Pursuit. #23

I've given you access to push to this repository. We usually leave things open for a review from another member of the Contributors organization before merging, at least for a few days. Someone usually gets a review in within a day or two. Thanks for taking care of this!

I've given you access to push to this repository. We usually leave things open for a review from another member of the Contributors organization before merging, at least for a few days. Someone usually gets a review in within a day or two. Thanks for taking care of this!

Ok, that's what I'll do in the future, thanks for the advice.


Allow double-clicking .chor files to open choreo

I set up windows to open .chor files with choreo, but it isn't actually opening them when I double click. I believe this just means the command line needs to accept a file to open as the first argument?

a little more:

the app needs to tell the operating system that it associates itself with a .chor file (which we could already do as a user manually)
Tauri needs to accept this

as far as I can tell, Tauri does not have this officially..

Tauri added support for file associations, but it's not well-documented yet.
https://github.com/tauri-apps/tauri/issues/3736
https://github.com/tauri-apps/tauri/commit/3b98141aa26f74c641a4090874247b97079bd58a
https://beta.tauri.app/references/v2/config/#fileassociation

#602 added the ability to double-click .chor files and have Choreo load them. Can this issue be closed, or should it be left open to track file associations?

It doesn't appear to work on main

Works for me on Windows 11.

How does Ubuntu handle launching apps with files? On Windows 11, the app is launched with the absolute file location as an argument.


Add sources Please

Source name
"Plot Twist No Fansub" and "TopComicPorno"
Source link
[https://www.plotfansub.com/] and [https://topcomicporno.net/]
Source language
Spanish
Other details
18+/NSFW = Yes to TopComicPorno
Acknowledgements

[X] I have checked that the extension does not already exist by searching the extension listing and verified it does not appear there.
[ ] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[X] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] I will fill out all of the requested information in this form.

Add source please


Add client cert support by exposing parameters from the requests library

Your library was saved mea  lot of tedium, thank you! The environment I was working in requires a client certificate so I had to expose the underlying requests library parameters and it worked like a charm.  Hopefully this is useful to others as well.

Hi @juancb! Thank you for the pull request! I'm glad to hear that you've found this library useful.
There's a way you can actually set Requests Session parameters through the http attribute:
from prometheus_pandas import query

p = query.Prometheus('http://<IP_ADDRESS>:9090')
p.http.cert = '/path/client.cert'
p.http.verify = '/path/to/certfile'
print(p.query('node_cpu_seconds_total{mode="system"}', '2020-10-05T00:00:00Z'))

Please let me know if this is suitable for you needs.

I've also added a way of explicitly providing a Requests Session, rather than having one created for you (https://github.com/dcoles/prometheus-pandas/pull/3).

Thanks!


histograms do not work

when clicking on the histogram check box, nothing happens in the browser (chrome).
console error message:
Uncaught TypeError: Cannot read property 'map' of undefined --> d3.js:6667

are you using some special dataset, since the default one http://caleydo.github.io/lineup.js/demo/# seem to work

fix in 7cf6353748105c85d1b0eab654afb968af2e6728


feat: implement a bitbucket link builder

Coverage increased (+0.6%) to 93.047% when pulling a6bcd530829102b16d58f41797f966fabc8fe51d on bitbucket-link-builder into f5b8a0877592f67d85f6f7c3756ef0ca841cbcdd on master.


Add a watch script that auto-deploys on changes

It'd be nice to be able to watch for changes and auto-deploy them. The workflow is a little cumbersome because on every change you need to run npm run deploy.
Here's my current workflow:

Make a change and save the file
Run npm run deploy
Switch to the browser and navigate to the Google Doc with the Add-on installed and enabled with Latest code.
Refresh the page to get newest changes

Coming from other dev workflows, it just feels a little old-school to have to manually deploy and refresh when developing.
It'd be nice to have something like this:

Run npm run watch or npm run dev (watches for changes)
Make a change and save file (auto-deploys)
Auto-reload browser page with Google Doc

Nice work on this, by the way! Everything else is great!

@jappareti I think that solution for this could be gulpjs.com (it's task runner). You can write a little script that will check if any file hes changed and run npm run deploy

@jappareti another solution could be nodemon.  You can set it to watch the dist directory and run the deploy command on changes.

@jappareti
You need use the webpack config for this. Just add  watch: true to the exports.

This issue is closed due to no recent activity. If you are encountering a similar issue, please create a new one. Thank you.


[Question] Point in polygon

Hi,
Thank you for a great project!
I was looking for a point in polygon type of search. Is that supported or have I just misunderstood the api?
I would like to send in a point and get back all the polygons that point is inside or touches.

Hi,
Yes this is possible. Please see https://github.com/tidwall/tile38/issues/25.


Retrieve Response Cookies

Hello @interkosmos,
How can I receive response cookies in an HTTP request? I know that one way to do this is to search for cookies in the response headers, specifically in the Set-Cookie header.
I have found that in curl, we can use the curl_easy_getinfo function with the CURLINFO_COOKIELIST option to retrieve cookie information. However, I am encountering an error while using this approach. Can you please provide an example demonstrating how to receive cookies using the CURLINFO_COOKIELIST option? Alternatively, if you know of any better approach, please let me know.

I added the curl_slist derived type with the last commit. In theory, it should work now (untested).
To write received cookies to file /tmp/cookies.txt:
rc = curl_easy_setopt(curl_ptr, CURLOPT_COOKIEJAR, '/tmp/cookies.txt' // c_null_char)

Sending cookies to a host:
character                     :: sep
character(len=:), allocatable :: cookies

sep = achar(9) ! tab
cookies = 'example.com'  // & ! hostname
          sep // 'FALSE' // & ! include subdomains
          sep // '/'     // & ! path
          sep // 'FALSE' // & ! secure
          sep // '0'     // & ! expiry in epoch time format, 0 = session
          sep // 'foo'   // & ! cookie name
          sep // 'value' // & ! cookie value

rc = curl_easy_setopt(curl, CURLOPT_COOKIELIST, cookies // c_null_char)

Reading received cookies may look like this:
character(len=:), allocatable :: data
type(curl_slist), pointer     :: each
type(c_ptr)                   :: curl_ptr, list_ptr

! Enable cookie enginge.
rc = curl_easy_setopt(curl_ptr, CURLOPT_COOKIEFILE, c_null_char)

! Send request.
rc = curl_easy_perform(curl_ptr)

! Get cookie list.
rc = curl_easy_getinfo(curl_ptr, CURLINFO_COOKIELIST, list_ptr)

if (c_associated(list_ptr)) then
    call c_f_pointer(list_ptr, each)

    do
        if (.not. associated(each)) exit
        call c_f_str_ptr(each%data, data)
        print *, data
        call c_f_pointer(each%next, each)
    end do
end if

call curl_slist_free_all(list_ptr)
call curl_easy_cleanup(curl_ptr)


Rebuild for CUDA 12 w/arch support using Gcc11

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Thanks Raul! 🙏
It looks like there are conflicts with PR ( https://github.com/conda-forge/torchani-feedstock/pull/24 ), which was recently merged. Would it be possible to fix those?

Success!

Thanks Raul! 🙏
@conda-forge/torchani , could you please take a look? 🙂

Thanks Jinze! 🙏


Branches tree shows folder icon when branch name has forward-slash

Issue Type: Bug

Create a branch with a forward-slash in the name
Switch to another branch (using the GitLens toggle in the status bar)
Go to the Repositories tab in the GitLens panel
Expand the Branches node
Voila! there's an additional level in the tree between the Branches node and the node with the branch name
Switch to the problem branch - observe the extra level in the tree disappear
Switch away from the problem branch - observe the extra level return

Presumably branch names with multiple slashes of either type will also cause issues.
Extension version: 11.5.1
VS Code version: Code 1.57.0 (b4c1bd0a9b03c749ea011b06c6d2676c8091a70c, 2021-06-09T17:18:42.354Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

This is as-designed -- GitLens offers the ability to nest branch/tag names with / as folders. You can control it via this command:

Hope that helps.


Ipv6 incl header

Adding support for enabling IPV6_RECVHOPLIMIT on sockets for Linux OS

Clippy is failing, but it is also failing on master. I can make the required changes to make Clippy happy if necessary.

Thanks @andreybuchinskiy


Update architecture.md

1）去掉了一些重复或者不相关的内容。
2）增加了可以和图片相呼应的文字。

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I'll resolve conflits and take over @JoyLiuc


InMemory query regression: using Include causes FirstOrDefault to return null

Queries that used to return an entity with InMemory store now return null.
Repro
Test: https://github.com/aspnet/MusicStore/blob/dc60a2e9c5e89d4f4324bb82e5c1af17f7d4490b/test/MusicStore.Test/StoreControllerTest.cs#L108
The query:
https://github.com/aspnet/MusicStore/blob/dc60a2e9c5e89d4f4324bb82e5c1af17f7d4490b/samples/MusicStore/Controllers/StoreController.cs#L59-L63
album = await DbContext.Albums
               .Where(a => a.AlbumId == id)
               .Include(a => a.Artist)
               .Include(a => a.Genre)
               .FirstOrDefaultAsync();

When the .Include extensions are removed from the query, it returns an entity as expected.
Details
EF Core version: Ms.EfCore.InMemory 1.2.0-preview1-23482
cc @anpete

cc @kichalla @javiercn

Thanks @natemcmaster ...I didn't notice your comment...I just now found the same...here Artist is null because of which the query is returning null...

@kichalla This is because Artist should never be null here - It is configured in the model as Required by convention because Album.ArtistId is not nullable. Either configure the relationship to be Optional, or ensure that the test albums have artists assigned.

Moved issue to MusicStore.


Code breaks at epoch 40

Hi All,
I've tried to run the code for more than 30 epochs (i.e. 100 epochs) but the code breaks due to IndexError, please advise.

I also have this problem. Looking forward to some reply.

Me too.

I think the problem is that self.pecent becomes too big https://github.com/DeLightCMU/RSC/blob/bf6d280c5d74910f009ea8963c59167252659666/Domain_Generalization/models/resnet.py#L73


Incompatibility between src-layout and namespace package since v1.5

Consider the following minimal project of src-layout, these __init__.py are empty files.
project
├── pyproject.toml
└── src
    └── a
        └── b
            ├── c
            │   └── __init__.py
            └── __init__.py

The contents of pyproject.toml are
[build-system]
requires = [
    "nuitka",
    "setuptools>=45",
    "toml",
    "wheel",
]
build-backend = "nuitka.distutils.Build"

[project]
name = "a.b"
version = "0.0.1"

[tool.setuptools.packages.find]
where = ["src"]
include = ["a.b*"]

Then build a wheel with pyproject-build command and install it using pip.
If nuitka <1.5, compilation and importing work as expected.
Nuitka-Wheel:INFO: Building: 'a.b' with command '['/tmp/build-env-3_ky99ta/bin/python', '-m', 'nuitka', '--module', '--enable-plugin=pylint-warnings', '--output-dir=/tmp/build-via-sdist-9nablh05/a.b-0.0.1/build/lib/a', '--nofollow-import-to=*.tests', '--remove-output', '--include-package=a.b', '/tmp/build-via-sdist-9nablh05/a.b-0.0.1/build/lib/a/b']'

Python 3.8.16 (default, Mar  5 2023, 12:11:33)
[GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from a.b import c
>>>

But since v1.5, importing stops working.
Nuitka-Wheel:INFO: Building: 'a.b' with command '['/tmp/build-env-_v7xrbg4/bin/python', '-m', 'nuitka', '--module', '--enable-plugin=pylint-warnings', '--output-dir=/tmp/build-via-sdist-iespbkti/a.b-0.0.1/build/lib/a', '--nofollow-import-to=*.tests', '--remove-output', '--include-package=b', '/tmp/build-via-sdist-iespbkti/a.b-0.0.1/build/lib/a/b']'

Python 3.8.16 (default, Mar  5 2023, 12:11:33)
[GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from a.b import c
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'c' from partially initialized module 'a.b' (most likely due to a circular import) (/opt/python/cp38-cp38/lib/python3.8/site-packages/a/b.cpython-38-x86_64-linux-gnu.so)
>>>

Can you try and formulate a pull request that adds it to tests/distutils. I thought I have a test case there, that does something like this, and I do not recognize the difference from it.

Is the existing test case called nested_namespaces?
I think the only difference is src-layout vs plain-layout.
And I just confirmed that my minimal project works well if using plain-layout, that is to say without a src folder.

For setup.py we cover this, the example for poetry is not working, because poetry doesn't let us play, but it would it, so I guess, this kind of also explains #2126 happening.
Of course removing the prefix is only a workaround and far from acceptable. I need to figure out, how to know it.
The code that works for setupstools normally is this one:
        old_dir = os.getcwd()
        os.chdir(build_lib)

        if self.distribution.package_dir and "" in self.distribution.package_dir:
            main_package_dir = self.distribution.package_dir.get("")
        else:
            main_package_dir = os.path.abspath(old_dir)

        # Search in the build directory preferably.
        addMainScriptDirectory(main_package_dir)

For this to work, I guess self.distribution.package_dir may have been provided as absolute path, but maybe now it's relative or something like that. Bonus points if you figure it out. I guess, an os.path.join to old_dir might be all it takes.

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.

This is part of the hotfix release 1.5.4 that I just made.